@tangle-network/agent-runtime 0.337.2 → 0.339.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/dist/{activation-DRHM55Oo.d.ts → activation-CJIIl_Ey.d.ts} +90 -22
- package/dist/activation-CVSFxis9.js +876 -0
- package/dist/activation-CVSFxis9.js.map +1 -0
- package/dist/agent.d.ts +4 -4
- package/dist/agent.js +4 -7
- package/dist/agent.js.map +1 -1
- package/dist/{bundle-BPGjESee.js → bundle-DVOhBTic.js} +2 -2
- package/dist/{bundle-BPGjESee.js.map → bundle-DVOhBTic.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +4 -63
- package/dist/candidate-execution/index.js +6 -146
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/content-digest-sBTLujlK.js +9 -0
- package/dist/content-digest-sBTLujlK.js.map +1 -0
- package/dist/{delegate-B-T_ZB50.js → delegate-CCWE_AkU.js} +2 -2
- package/dist/{delegate-B-T_ZB50.js.map → delegate-CCWE_AkU.js.map} +1 -1
- package/dist/{coordination-driver-BHkFVqIq.js → driver-control-acknowledgers-C53ggdJ6.js} +4520 -4442
- package/dist/driver-control-acknowledgers-C53ggdJ6.js.map +1 -0
- package/dist/{durable-file-B_eJr6Mb.js → durable-file-gNI9ILAn.js} +1 -3
- package/dist/durable-file-gNI9ILAn.js.map +1 -0
- package/dist/durable.d.ts +3 -35
- package/dist/durable.js +225 -229
- package/dist/durable.js.map +1 -1
- package/dist/{graph-C4RFlWAJ.js → graph-CI9JXKqO.js} +65 -18
- package/dist/graph-CI9JXKqO.js.map +1 -0
- package/dist/{graph-registry-DAI6KNXB.js → graph-registry-BnO64cn8.js} +18 -17
- package/dist/graph-registry-BnO64cn8.js.map +1 -0
- package/dist/{improvement-cycle-D1I4hQvf.js → improve-BOXTLWJ3.js} +76 -1248
- package/dist/improve-BOXTLWJ3.js.map +1 -0
- package/dist/{improvement-adapter-D5gwwoXQ.d.ts → improvement-adapter-HUt_-cWA.d.ts} +2 -20
- package/dist/index.d.ts +10 -207
- package/dist/index.js +91 -305
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +10 -229
- package/dist/intelligence.js +506 -88
- package/dist/intelligence.js.map +1 -1
- package/dist/{jsonl-file-DBv31uPi.js → jsonl-file-C9Kde_0Z.js} +2 -2
- package/dist/{jsonl-file-DBv31uPi.js.map → jsonl-file-C9Kde_0Z.js.map} +1 -1
- package/dist/kernel.d.ts +4 -3
- package/dist/kernel.js +12 -13
- package/dist/loop-runner-CWzG1bH4.d.ts +32 -0
- package/dist/loop-runner-bin.d.ts +32 -2
- package/dist/loop-runner-bin.js +93 -1
- package/dist/loop-runner-bin.js.map +1 -0
- package/dist/loop-runner-pmPIHFVY.js +59 -0
- package/dist/loop-runner-pmPIHFVY.js.map +1 -0
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +101 -416
- package/dist/mcp/index.js +122 -206
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.js +231 -1
- package/dist/mcp/memory-bin.js.map +1 -1
- package/dist/model-policy-CyCUwHed.js.map +1 -1
- package/dist/placement.d.ts +2 -9
- package/dist/placement.js +1 -1
- package/dist/placement.js.map +1 -1
- package/dist/platform.d.ts +194 -2
- package/dist/platform.js +145 -9
- package/dist/platform.js.map +1 -1
- package/dist/{prepare-CER-ZkPp.js → prepare-bXkvPMJA.js} +1213 -710
- package/dist/prepare-bXkvPMJA.js.map +1 -0
- package/dist/{profile-gNUsHNIJ.js → profile-Dpei_Sq0.js} +89 -3
- package/dist/profile-Dpei_Sq0.js.map +1 -0
- package/dist/{profile-materialization-BnoEf1co.d.ts → profile-materialization-B1wm2SPT.d.ts} +3 -5
- package/dist/profiles.d.ts +2 -2
- package/dist/profiles.js +4 -43
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-BhpQRTw-.d.ts → protected-model-port-BGgpy2r9.d.ts} +4 -30
- package/dist/protected-redaction-DFCeo4vg.js.map +1 -1
- package/dist/{provision-supervisor-DGegCUH4.js → provision-supervisor-CJ6Zz6dz.js} +13 -10
- package/dist/provision-supervisor-CJ6Zz6dz.js.map +1 -0
- package/dist/record-value-B6bwJxLa.js +12 -0
- package/dist/record-value-B6bwJxLa.js.map +1 -0
- package/dist/{run-layout-Cu8H7aeh.js → run-cancellation-C9oL62sW.js} +175 -100
- package/dist/run-cancellation-C9oL62sW.js.map +1 -0
- package/dist/{runtime-BOGpotnH.js → runtime-B2fjL9Oi.js} +2639 -3187
- package/dist/runtime-B2fjL9Oi.js.map +1 -0
- package/dist/{runtime-hooks-Bj6wJHlH.d.ts → runtime-hooks-nsqxSUFL.d.ts} +2 -6
- package/dist/{sandbox-profile-compat-QTkLe1Z6.js → sandbox-profile-compat-BzVBFqrz.js} +690 -699
- package/dist/sandbox-profile-compat-BzVBFqrz.js.map +1 -0
- package/dist/search-executor-zMumiak_.js +1916 -0
- package/dist/search-executor-zMumiak_.js.map +1 -0
- package/dist/{server-hZWM-G8w.js → server-_4voDNrl.js} +362 -67
- package/dist/server-_4voDNrl.js.map +1 -0
- package/dist/{search-executor-Cm1WZmL-.js → structural-rollout-DpLCXzaL.js} +1680 -3403
- package/dist/structural-rollout-DpLCXzaL.js.map +1 -0
- package/dist/{substrate-B0TYNrXn.js → substrate-CGDFTSRh.js} +2 -9
- package/dist/substrate-CGDFTSRh.js.map +1 -0
- package/dist/{supervise-CvAKVfue.js → supervise-qAwXmPtD.js} +7768 -5360
- package/dist/supervise-qAwXmPtD.js.map +1 -0
- package/dist/{supervisor-Rz8AGpYb.js → supervisor-DHrUJhEZ.js} +26301 -26964
- package/dist/supervisor-DHrUJhEZ.js.map +1 -0
- package/dist/testing.d.ts +227 -2
- package/dist/testing.js +13 -14
- package/dist/testing.js.map +1 -1
- package/dist/tool-loop.d.ts +1 -1
- package/dist/{tool-server-Dqer2M4_.js → tool-server-XV4aJwoQ.js} +2 -2
- package/dist/tool-server-XV4aJwoQ.js.map +1 -0
- package/dist/top-snapshot-CbZE1JsU.js +502 -0
- package/dist/top-snapshot-CbZE1JsU.js.map +1 -0
- package/dist/tui/bin.js +711 -1
- package/dist/tui/bin.js.map +1 -1
- package/dist/tui/index.d.ts +5 -71
- package/dist/tui/index.js +3 -3
- package/dist/{types-Dl5L4r8Z.d.ts → types-CaOXqRTq.d.ts} +16230 -17376
- package/dist/workspace-store/index.d.ts +2 -27
- package/dist/workspace-store/index.js +2 -2
- package/dist/workspace-store/index.js.map +1 -1
- package/dist/{workspace-streams-JLjh5DC6.d.ts → workspace-streams-BiS4ABah.d.ts} +19 -32
- package/package.json +2 -2
- package/skills/agent-graphs/SKILL.md +10 -3
- package/skills/agent-graphs/references/authoring.md +18 -0
- package/skills/profile-authoring/SKILL.md +3 -3
- package/skills/supervise/SKILL.md +2 -2
- package/dist/activation-BDP6Eivv.js +0 -234
- package/dist/activation-BDP6Eivv.js.map +0 -1
- package/dist/coder-yhVWbdWc.js +0 -40
- package/dist/coder-yhVWbdWc.js.map +0 -1
- package/dist/coordination-driver-BHkFVqIq.js.map +0 -1
- package/dist/delegation-status-CF4D0NZ_.js +0 -358
- package/dist/delegation-status-CF4D0NZ_.js.map +0 -1
- package/dist/durable-file-B_eJr6Mb.js.map +0 -1
- package/dist/graph-C4RFlWAJ.js.map +0 -1
- package/dist/graph-registry-DAI6KNXB.js.map +0 -1
- package/dist/improvement-cycle-D1I4hQvf.js.map +0 -1
- package/dist/integrations-DopfCC2a.d.ts +0 -190
- package/dist/integrations-dFi-ALk7.js +0 -132
- package/dist/integrations-dFi-ALk7.js.map +0 -1
- package/dist/kb-gate-C8z2juK8.d.ts +0 -80
- package/dist/kb-gate-DpaSwXVx.js +0 -80
- package/dist/kb-gate-DpaSwXVx.js.map +0 -1
- package/dist/loop-runner-bin-DOuBIJ2O.d.ts +0 -164
- package/dist/loop-runner-bin-Dv5QvYDH.js +0 -246
- package/dist/loop-runner-bin-Dv5QvYDH.js.map +0 -1
- package/dist/memory-server-DXQ8IxGR.js +0 -234
- package/dist/memory-server-DXQ8IxGR.js.map +0 -1
- package/dist/openai-tools-DoQ32vpe.js +0 -44
- package/dist/openai-tools-DoQ32vpe.js.map +0 -1
- package/dist/openai-tools-Oxk4KQrY.d.ts +0 -24
- package/dist/prepare-CER-ZkPp.js.map +0 -1
- package/dist/profile-gNUsHNIJ.js.map +0 -1
- package/dist/protected-model-port-BuRsviSL.js +0 -766
- package/dist/protected-model-port-BuRsviSL.js.map +0 -1
- package/dist/provision-supervisor-DGegCUH4.js.map +0 -1
- package/dist/run-layout-Cu8H7aeh.js.map +0 -1
- package/dist/runtime-BOGpotnH.js.map +0 -1
- package/dist/sandbox-profile-compat-QTkLe1Z6.js.map +0 -1
- package/dist/search-executor-Cm1WZmL-.js.map +0 -1
- package/dist/server-hZWM-G8w.js.map +0 -1
- package/dist/substrate-B0TYNrXn.js.map +0 -1
- package/dist/supervise-CvAKVfue.js.map +0 -1
- package/dist/supervisor-Rz8AGpYb.js.map +0 -1
- package/dist/tool-server-Dqer2M4_.js.map +0 -1
- package/dist/top-app-BaMw1W2z.js +0 -1212
- package/dist/top-app-BaMw1W2z.js.map +0 -1
|
@@ -105,14 +105,8 @@ declare class WorkspaceConflictError extends Error {
|
|
|
105
105
|
}
|
|
106
106
|
/** Refuse anything but an absolute, normalized path such as `/files/report.md`. */
|
|
107
107
|
declare function assertWorkspacePath(path: string): void;
|
|
108
|
-
/** The member a path belongs to, or `null` for workspace-scoped paths. */
|
|
109
|
-
declare function memberIdFromPath(path: string): string | null;
|
|
110
108
|
/** Validate a put before any adapter touches storage; adapters call this first. */
|
|
111
109
|
declare function checkWorkspacePut(input: WorkspacePutInput): void;
|
|
112
|
-
/** Refuse an `operationId` that is present but empty, not a string, or over 256 chars. */
|
|
113
|
-
declare function checkOperationId(path: string, operationId: unknown): void;
|
|
114
|
-
/** Whether `entry` is exactly what `input` would write: same kind, content and bytes. */
|
|
115
|
-
declare function isSameWorkspaceWrite(entry: WorkspaceEntry, input: WorkspacePutInput): boolean;
|
|
116
110
|
/** Process-local adapter for tests, previews, and single-instance hosts. */
|
|
117
111
|
declare function createInMemoryWorkspaceStore(options?: {
|
|
118
112
|
now?: () => Date;
|
|
@@ -242,11 +236,6 @@ interface MemoryPolicy {
|
|
|
242
236
|
text: string;
|
|
243
237
|
}): WorkspacePolicyDecision | Promise<WorkspacePolicyDecision>;
|
|
244
238
|
}
|
|
245
|
-
/** A policy or path rule refused the call. */
|
|
246
|
-
declare class WorkspacePolicyError extends Error {
|
|
247
|
-
readonly code: "refused";
|
|
248
|
-
constructor(message: string);
|
|
249
|
-
}
|
|
250
239
|
/**
|
|
251
240
|
* Default authority. Reads: workspace memory, the speaker's own member memory,
|
|
252
241
|
* `/knowledge/**`, `/files/**`. Writes: viewers and guests none; any member may
|
|
@@ -273,14 +262,6 @@ declare function readTurnMemories(store: WorkspaceStore, turn: WorkspaceTurn): P
|
|
|
273
262
|
declare function createMemoryTools(context: WorkspaceToolContext): WorkspaceToolDefinition[];
|
|
274
263
|
/** `files.list`, `files.read`, `files.write`, `files.delete`, `files.search` over `/files/**` and `/knowledge/**`. */
|
|
275
264
|
declare function createFileTools(context: WorkspaceToolContext): WorkspaceToolDefinition[];
|
|
276
|
-
/**
|
|
277
|
-
* BM25 over entry text (and path words), highest score first, ties by path.
|
|
278
|
-
* Entries without inline text match on path words only.
|
|
279
|
-
*/
|
|
280
|
-
declare function rankEntries(entries: readonly WorkspaceEntry[], query: string, limit: number): {
|
|
281
|
-
entry: WorkspaceEntry;
|
|
282
|
-
score: number;
|
|
283
|
-
}[];
|
|
284
265
|
/**
|
|
285
266
|
* Render the memories a turn sees as one stable block for the per-turn preamble.
|
|
286
267
|
* Order: instructions, preferences, facts; workspace before member; then path.
|
|
@@ -295,8 +276,6 @@ declare function renderPinnedMemory(entries: readonly WorkspaceEntry[], options?
|
|
|
295
276
|
//#region src/workspace-store/harness.d.ts
|
|
296
277
|
/** Opening marker for the generated block in a harness's native memory file. */
|
|
297
278
|
declare const HARNESS_MEMORY_BEGIN = "<!-- workspace-store:memory begin. Generated from the workspace store; save memories with memory.remember. -->";
|
|
298
|
-
/** Closing marker for the generated block in a harness's native memory file. */
|
|
299
|
-
declare const HARNESS_MEMORY_END = "<!-- workspace-store:memory end -->";
|
|
300
279
|
/** The generated block a host writes into a harness's native memory location. */
|
|
301
280
|
declare function renderHarnessMemory(entries: readonly WorkspaceEntry[], options?: {
|
|
302
281
|
maxTokens?: number;
|
|
@@ -305,8 +284,6 @@ declare function renderHarnessMemory(entries: readonly WorkspaceEntry[], options
|
|
|
305
284
|
declare function projectHarnessMemory(native: string, block: string): string;
|
|
306
285
|
/** Native files keyed by path, as the host read them. A missing file is absent or `undefined`. */
|
|
307
286
|
type HarnessNativeFiles = Readonly<Record<string, string | undefined>>;
|
|
308
|
-
/** Lowercase, collapse spaces, drop a leading "Remember:" and trailing punctuation: the duplicate key. */
|
|
309
|
-
declare function normalizeMemoryText(text: string): string;
|
|
310
287
|
/**
|
|
311
288
|
* What the harness added during the turn, outside the generated block: new
|
|
312
289
|
* lines in files that existed, and the body of new files (a Claude Code memory
|
|
@@ -320,9 +297,7 @@ interface HarnessProvenance {
|
|
|
320
297
|
readonly turnId: string;
|
|
321
298
|
readonly memberId: string;
|
|
322
299
|
}
|
|
323
|
-
/**
|
|
324
|
-
declare function harnessActor({ harness, turnId, memberId }: HarnessProvenance): string;
|
|
325
|
-
/** Read the harness, turn, and member provenance encoded by {@link harnessActor}. */
|
|
300
|
+
/** Read the harness, turn, and member provenance encoded by `harnessActor`. */
|
|
326
301
|
declare function parseHarnessActor(actor: string): HarnessProvenance | null;
|
|
327
302
|
interface HarnessIngestResult {
|
|
328
303
|
readonly saved: WorkspaceEntry[];
|
|
@@ -370,5 +345,5 @@ interface MemoryDivergence {
|
|
|
370
345
|
*/
|
|
371
346
|
declare function memoryDivergence(store: WorkspaceStore, turn: WorkspaceTurn, before: HarnessNativeFiles, after: HarnessNativeFiles): Promise<MemoryDivergence>;
|
|
372
347
|
//#endregion
|
|
373
|
-
export { type ContentCodecOptions, HARNESS_MEMORY_BEGIN,
|
|
348
|
+
export { type ContentCodecOptions, HARNESS_MEMORY_BEGIN, type HarnessIngestResult, type HarnessNativeFiles, type HarnessProvenance, type MakeWorkspaceStore, type MemoryDivergence, type MemoryPolicy, SEALED_CONTENT_PREFIX, type WorkspaceAccess, type WorkspaceBytesRef, type WorkspaceCodecContext, WorkspaceCodecError, WorkspaceConflictError, type WorkspaceContentCodec, type WorkspaceDeleteInput, type WorkspaceEntry, type WorkspaceEntryKind, type WorkspaceEntryScope, type WorkspacePolicyDecision, type WorkspacePutInput, type WorkspaceRole, type WorkspaceStore, type WorkspaceStoreContractCase, type WorkspaceStoreContractOptions, type WorkspaceStoreContractResult, type WorkspaceTombstone, type WorkspaceToolContext, type WorkspaceToolDefinition, type WorkspaceTurn, aesGcmContentCodecFromEnv, assertWorkspacePath, captureHarnessMemory, checkWorkspacePut, createAesGcmContentCodec, createFileTools, createInMemoryWorkspaceStore, createMemoryTools, defaultMemoryPolicy, ingestHarnessMemories, memoryDivergence, openWorkspaceBytes, parseHarnessActor, projectHarnessMemory, readTurnMemories, renderHarnessMemory, renderPinnedMemory, runWorkspaceStoreContract, sealWorkspaceBytes, withContentCodec, workspaceStoreContractCases };
|
|
374
349
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1265,7 +1265,7 @@ function harnessActor({ harness, turnId, memberId }) {
|
|
|
1265
1265
|
if (!ACTOR.test(actor)) throw new TypeError(`invalid harness provenance: ${actor}`);
|
|
1266
1266
|
return actor;
|
|
1267
1267
|
}
|
|
1268
|
-
/** Read the harness, turn, and member provenance encoded by
|
|
1268
|
+
/** Read the harness, turn, and member provenance encoded by `harnessActor`. */
|
|
1269
1269
|
function parseHarnessActor(actor) {
|
|
1270
1270
|
const match = ACTOR.exec(actor);
|
|
1271
1271
|
return match ? {
|
|
@@ -1371,6 +1371,6 @@ async function memoryDivergence(store, turn, before, after) {
|
|
|
1371
1371
|
};
|
|
1372
1372
|
}
|
|
1373
1373
|
//#endregion
|
|
1374
|
-
export { HARNESS_MEMORY_BEGIN,
|
|
1374
|
+
export { HARNESS_MEMORY_BEGIN, SEALED_CONTENT_PREFIX, WorkspaceCodecError, WorkspaceConflictError, aesGcmContentCodecFromEnv, assertWorkspacePath, captureHarnessMemory, checkWorkspacePut, createAesGcmContentCodec, createFileTools, createInMemoryWorkspaceStore, createMemoryTools, defaultMemoryPolicy, ingestHarnessMemories, memoryDivergence, openWorkspaceBytes, parseHarnessActor, projectHarnessMemory, readTurnMemories, renderHarnessMemory, renderPinnedMemory, runWorkspaceStoreContract, sealWorkspaceBytes, withContentCodec, workspaceStoreContractCases };
|
|
1375
1375
|
|
|
1376
1376
|
//# sourceMappingURL=index.js.map
|