@mono-agent/agent-app 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -1
- package/dist/background-runtime.d.ts +32 -0
- package/dist/background-runtime.d.ts.map +1 -1
- package/dist/background-runtime.js +396 -36
- package/dist/background-runtime.js.map +1 -1
- package/dist/background-snapshot-key.d.ts +2 -0
- package/dist/background-snapshot-key.d.ts.map +1 -1
- package/dist/background-snapshot-key.js +32 -1
- package/dist/background-snapshot-key.js.map +1 -1
- package/dist/channels.js +18 -3
- package/dist/channels.js.map +1 -1
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +61 -0
- package/dist/cli.js.map +1 -1
- package/dist/launchd.d.ts +2 -0
- package/dist/launchd.d.ts.map +1 -1
- package/dist/launchd.js +46 -17
- package/dist/launchd.js.map +1 -1
- package/dist/managed-runtime-packages.js +1 -1
- package/dist/managed-runtime-packages.js.map +1 -1
- package/dist/memory-command.d.ts +6 -0
- package/dist/memory-command.d.ts.map +1 -1
- package/dist/memory-command.js +363 -3
- package/dist/memory-command.js.map +1 -1
- package/package.json +15 -15
- package/skills/mono-agent-composer/references/config-blueprint.md +7 -1
- package/skills/mono-agent-composer/references/discovery-questions.md +1 -1
- package/skills/mono-agent-composer/references/feature-coverage.md +2 -2
- package/skills/mono-agent-composer/references/playbooks.md +3 -3
package/README.md
CHANGED
|
@@ -261,6 +261,11 @@ mono-agent memory inspect --json
|
|
|
261
261
|
mono-agent memory retry --json
|
|
262
262
|
mono-agent memory retry <64-character-id> --json
|
|
263
263
|
mono-agent memory resolve <64-character-id> <reason-slug> --json
|
|
264
|
+
|
|
265
|
+
# Explicit BuJo cleanup: prepare is read-only; apply/restore require stop.
|
|
266
|
+
mono-agent memory forget prepare --ids-file ./forget-ids.txt --reason noise_cleanup --plan ./forget-plan.json --json
|
|
267
|
+
mono-agent memory forget apply --plan ./forget-plan.json --json
|
|
268
|
+
mono-agent memory forget restore --backup /path/returned/by/apply --json
|
|
264
269
|
```
|
|
265
270
|
|
|
266
271
|
Journal and BuJo always require a valid managed `.index/manifest.json`; only
|
|
@@ -277,7 +282,14 @@ generated configs, or an authored Ollama block). The advanced standalone
|
|
|
277
282
|
`retry` makes dead/delayed intake due for the
|
|
278
283
|
next store start; `resolve` explicitly abandons one item without claiming
|
|
279
284
|
capture succeeded, keeps permanent duplicate protection, and refuses a retained
|
|
280
|
-
semantic plan.
|
|
285
|
+
semantic plan. `forget prepare` accepts at most 32 ids and writes an owner-only,
|
|
286
|
+
single-link, content-free explicit-id plan. Stopped-store `forget apply` owns the
|
|
287
|
+
authoritative writer lease plus a durable sibling recovery fence, creates a
|
|
288
|
+
fsync-verified full backup, commits each id through durable migration-forget,
|
|
289
|
+
and rebuilds the managed generation. Failure restores automatically; process
|
|
290
|
+
death blocks normal writers until recovery resumes. Explicit restore refuses to
|
|
291
|
+
overwrite any durable change made after cleanup and atomically consumes the
|
|
292
|
+
verified sibling snapshot without constructing a third full copy.
|
|
281
293
|
|
|
282
294
|
For launchd fleet verification, invoke the deployed CLI with each plist's exact
|
|
283
295
|
`ProgramArguments[0]` Node, `[1]` CLI, absolute `--config`/`--env-file`, and
|
|
@@ -28,6 +28,31 @@ export interface ManagedBackgroundRuntimeInput {
|
|
|
28
28
|
/** Config-selected channel/memory plugin packages that must survive outside the caller's install tree. */
|
|
29
29
|
readonly additionalPackages?: readonly ManagedRuntimeAdditionalPackage[];
|
|
30
30
|
}
|
|
31
|
+
/** Inputs for the read-only fleet attestation of an already materialized runtime. */
|
|
32
|
+
export interface ManagedBackgroundRuntimeAttestationInput {
|
|
33
|
+
/** CLI from the trusted deploy checkout whose execution closure is expected. */
|
|
34
|
+
readonly currentCliPath: string;
|
|
35
|
+
/** CLI path persisted in the managed LaunchAgent. */
|
|
36
|
+
readonly runtimeCliPath: string;
|
|
37
|
+
readonly homeDir?: string;
|
|
38
|
+
readonly packageVersion?: string;
|
|
39
|
+
readonly nodeAbi?: string;
|
|
40
|
+
readonly platform?: NodeJS.Platform;
|
|
41
|
+
readonly arch?: string;
|
|
42
|
+
readonly packageSource?: string;
|
|
43
|
+
readonly additionalPackages?: readonly ManagedRuntimeAdditionalPackage[];
|
|
44
|
+
}
|
|
45
|
+
export interface ManagedBackgroundRuntimeAttestation {
|
|
46
|
+
readonly schema: "mono-agent.managed-runtime-attestation.v1";
|
|
47
|
+
/** Opaque, path-free identity used only to compare an initial and final probe. */
|
|
48
|
+
readonly fingerprint: string;
|
|
49
|
+
/** Safe lifecycle boundary: a managed worker must start after this install. */
|
|
50
|
+
readonly installedAt: string;
|
|
51
|
+
}
|
|
52
|
+
interface ManagedBackgroundRuntimeAttestationDeps {
|
|
53
|
+
/** Deterministic race-test seam; production never supplies this hook. */
|
|
54
|
+
readonly afterInitialCaptures?: () => Promise<void>;
|
|
55
|
+
}
|
|
31
56
|
export interface ManagedRuntimeInstallInput {
|
|
32
57
|
readonly stagingDir: string;
|
|
33
58
|
readonly packageVersion: string;
|
|
@@ -59,4 +84,11 @@ export declare function sanitizeManagedBackgroundWorkerEnvironment(env: Record<s
|
|
|
59
84
|
* version matches.
|
|
60
85
|
*/
|
|
61
86
|
export declare function ensureManagedBackgroundRuntime(input: ManagedBackgroundRuntimeInput, deps?: ManagedBackgroundRuntimeDeps): Promise<ManagedBackgroundRuntime>;
|
|
87
|
+
/**
|
|
88
|
+
* Prove, without installing or repairing anything, that a persisted managed
|
|
89
|
+
* runtime is the canonical private copy of the exact deploy-source execution
|
|
90
|
+
* closure (including config-selected plugin roots).
|
|
91
|
+
*/
|
|
92
|
+
export declare function attestManagedBackgroundRuntime(input: ManagedBackgroundRuntimeAttestationInput, deps?: ManagedBackgroundRuntimeAttestationDeps): Promise<ManagedBackgroundRuntimeAttestation>;
|
|
93
|
+
export {};
|
|
62
94
|
//# sourceMappingURL=background-runtime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-runtime.d.ts","sourceRoot":"","sources":["../src/background-runtime.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAG3F,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"background-runtime.d.ts","sourceRoot":"","sources":["../src/background-runtime.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAG3F,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAMzE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,gGAAgG;AAChG,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,6BAA6B;IAC5C,yEAAyE;IACzE,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACn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