Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge main and converge Pi cleanup test fixtures

zqchris78eedf6055d6
diff --cc apps/desktop/src/main/maker-host/pi-package-store.ts
index 3ec147c35e,ec4bac3859..a74b4d05fb
--- a/apps/desktop/src/main/maker-host/pi-package-store.ts
+++ b/apps/desktop/src/main/maker-host/pi-package-store.ts
@@@ -2055,22 -1846,9 +2069,23 @@@ async function inspectPackage
} catch (error) {
log.warn('failed to inspect Pi package', {
source: displaySource,
- message: error instanceof Error ? error.message : String(error),
+ failureCategory: piPackageMutationFailureCategory(error),
+ diagnostic: piPackageCommandDiagnostic(error),
});
+ const deterministicLimit = isDurableInspectionFailure(error);
+ const snapshotUnavailable = deterministicLimit
+ && installedRoot
+ && installationIdentity
+ && snapshotRoot
+ ? {
+ source: pkg.source,
+ installedRoot,
+ installationIdentity,
+ snapshotRoot,
+ warning: 'inspection-limit' as const,
+ retryAfterEpochMs: Date.now() + SNAPSHOT_UNAVAILABLE_RETRY_MS,
+ }
+ : undefined;
return {
rawSource: pkg.source,
view: {
@@@ -2741,11 -2288,10 +2756,12 @@@ export async function resolveManagedPiP
return await resolveResources();
} catch (error) {
log.warn('Pi package resources unavailable; starting without user packages', {
- message: error instanceof Error ? error.message : String(error),
+ failureCategory: piPackageMutationFailureCategory(error),
+ diagnostic: piPackageCommandDiagnostic(error),
});
return { extensions: [], skills: [], promptTemplates: [], packageRoots: [] };
+ } finally {
+ emitPiPackageStartupTiming(startupTiming);
}
}