@tangle-network/agent-runtime 0.339.0 → 0.342.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-CVSFxis9.js → activation-CWPmt0Do.js} +4 -4
- package/dist/{activation-CVSFxis9.js.map → activation-CWPmt0Do.js.map} +1 -1
- package/dist/{activation-CJIIl_Ey.d.ts → activation-CXqtijue.d.ts} +2 -2
- package/dist/agent.d.ts +4 -18
- package/dist/agent.js +3 -21
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +2 -2
- package/dist/{bundle-DVOhBTic.js → bundle-Cwpit6Tg.js} +2 -2
- package/dist/{bundle-DVOhBTic.js.map → bundle-Cwpit6Tg.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +2 -40
- package/dist/candidate-execution/index.js +9 -255
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/{driver-control-acknowledgers-C53ggdJ6.js → coordination-manager-B5JsolDR.js} +4852 -4539
- package/dist/coordination-manager-B5JsolDR.js.map +1 -0
- package/dist/{delegate-CCWE_AkU.js → delegate-Rl-5paLJ.js} +2 -2
- package/dist/{delegate-CCWE_AkU.js.map → delegate-Rl-5paLJ.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +451 -358
- package/dist/durable.js.map +1 -1
- package/dist/{graph-CI9JXKqO.js → graph-Ce-59ZXn.js} +5 -5
- package/dist/{graph-CI9JXKqO.js.map → graph-Ce-59ZXn.js.map} +1 -1
- package/dist/{improve-BOXTLWJ3.js → improve-BZXt2qM0.js} +837 -704
- package/dist/improve-BZXt2qM0.js.map +1 -0
- package/dist/{improvement-adapter-HUt_-cWA.d.ts → improvement-adapter-sIthWkcN.d.ts} +2 -2
- package/dist/index.d.ts +6 -14
- package/dist/index.js +10 -10
- package/dist/intelligence.d.ts +4 -4
- package/dist/intelligence.js +205 -191
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +10 -10
- package/dist/{loop-runner-pmPIHFVY.js → loop-runner-B0MV1-CD.js} +2 -2
- package/dist/{loop-runner-pmPIHFVY.js.map → loop-runner-B0MV1-CD.js.map} +1 -1
- package/dist/{loop-runner-CWzG1bH4.d.ts → loop-runner-CuhbgVGo.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/placement.d.ts +2 -26
- package/dist/placement.js +1 -35
- package/dist/placement.js.map +1 -1
- package/dist/{prepare-bXkvPMJA.js → prepare-C-cWCyt3.js} +988 -735
- package/dist/prepare-C-cWCyt3.js.map +1 -0
- package/dist/{profile-Dpei_Sq0.js → profile-CbMw5hAn.js} +2 -2
- package/dist/{profile-Dpei_Sq0.js.map → profile-CbMw5hAn.js.map} +1 -1
- package/dist/profile-materialization-bPm0gGLO.d.ts +49 -0
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-BGgpy2r9.d.ts → protected-model-port-DVVh-hEk.d.ts} +2 -6
- package/dist/{provision-supervisor-CJ6Zz6dz.js → provision-supervisor-DL6gEMQp.js} +444 -419
- package/dist/provision-supervisor-DL6gEMQp.js.map +1 -0
- package/dist/{runtime-B2fjL9Oi.js → runtime-eghmj6W4.js} +1245 -1028
- package/dist/runtime-eghmj6W4.js.map +1 -0
- package/dist/{sandbox-profile-compat-BzVBFqrz.js → sandbox-profile-compat-FN2kab2-.js} +72 -72
- package/dist/{sandbox-profile-compat-BzVBFqrz.js.map → sandbox-profile-compat-FN2kab2-.js.map} +1 -1
- package/dist/{search-executor-zMumiak_.js → search-executor-rbjdZ3OD.js} +3 -3
- package/dist/{search-executor-zMumiak_.js.map → search-executor-rbjdZ3OD.js.map} +1 -1
- package/dist/{server-_4voDNrl.js → server-BiK1Kcno.js} +4 -4
- package/dist/{server-_4voDNrl.js.map → server-BiK1Kcno.js.map} +1 -1
- package/dist/{structural-rollout-DpLCXzaL.js → structural-rollout-BD9IN7K_.js} +3 -3
- package/dist/{structural-rollout-DpLCXzaL.js.map → structural-rollout-BD9IN7K_.js.map} +1 -1
- package/dist/{supervise-qAwXmPtD.js → supervise-DmOi7gll.js} +6525 -5562
- package/dist/supervise-DmOi7gll.js.map +1 -0
- package/dist/{supervisor-DHrUJhEZ.js → supervisor-DUWcecAd.js} +13717 -12778
- package/dist/supervisor-DUWcecAd.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +13 -13
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CaOXqRTq.d.ts → types-Cgs89PQd.d.ts} +315 -409
- package/dist/{types-zWfqDjeL.d.ts → types-Cwrea-bU.d.ts} +2 -17
- package/dist/workspace-store/index.d.ts +1 -82
- package/dist/workspace-store/index.js +274 -680
- package/dist/workspace-store/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/driver-control-acknowledgers-C53ggdJ6.js.map +0 -1
- package/dist/improve-BOXTLWJ3.js.map +0 -1
- package/dist/prepare-bXkvPMJA.js.map +0 -1
- package/dist/profile-materialization-B1wm2SPT.d.ts +0 -94
- package/dist/provision-supervisor-CJ6Zz6dz.js.map +0 -1
- package/dist/runtime-B2fjL9Oi.js.map +0 -1
- package/dist/supervise-qAwXmPtD.js.map +0 -1
- package/dist/supervisor-DHrUJhEZ.js.map +0 -1
|
@@ -138,21 +138,6 @@ interface FindingsStoreLike {
|
|
|
138
138
|
}>;
|
|
139
139
|
append(runId: string, findings: ReadonlyArray<AnalystFinding>): Promise<void>;
|
|
140
140
|
}
|
|
141
|
-
/**
|
|
142
|
-
* Narrow the `AnalystRegistryLike` further when we need streaming: the
|
|
143
|
-
* loop checks if the registry exposes `runStream` and uses it when
|
|
144
|
-
* present, falling back to `run()` otherwise. This keeps the type
|
|
145
|
-
* surface backwards-compatible — older registry shims that only
|
|
146
|
-
* implement `run` still work; they just don't forward per-analyst
|
|
147
|
-
* events.
|
|
148
|
-
*/
|
|
149
|
-
interface AnalystRegistryStreamingLike extends AnalystRegistryLike {
|
|
150
|
-
runStream?(runId: string, inputs: AnalystRunInputs, opts?: {
|
|
151
|
-
priorFindings?: ReadonlyArray<AnalystFinding> | Record<string, ReadonlyArray<AnalystFinding>>;
|
|
152
|
-
chainFindings?: boolean;
|
|
153
|
-
[k: string]: unknown;
|
|
154
|
-
}): AsyncIterable<AnalystRunEvent>;
|
|
155
|
-
}
|
|
156
141
|
/**
|
|
157
142
|
* Events emitted by `runAnalystLoop` via `opts.onEvent`. UIs and
|
|
158
143
|
* JSONL tail-sinks consume this stream. The loop awaits each
|
|
@@ -203,5 +188,5 @@ type AnalystLoopEvent = {
|
|
|
203
188
|
durationMs: number;
|
|
204
189
|
};
|
|
205
190
|
//#endregion
|
|
206
|
-
export {
|
|
207
|
-
//# sourceMappingURL=types-
|
|
191
|
+
export { ImprovementProposalSource as a, KnowledgeProposalSource as c, RunAnalystLoopResult as d, ImprovementEditBatch as i, KnowledgeReport as l, AnalystRegistryLike as n, ImprovementReport as o, FindingsStoreLike as r, KnowledgeProposalBatch as s, AnalystLoopEvent as t, RunAnalystLoopOpts as u };
|
|
192
|
+
//# sourceMappingURL=types-Cwrea-bU.d.ts.map
|
|
@@ -128,41 +128,6 @@ interface WorkspaceContentCodec {
|
|
|
128
128
|
seal(plain: Uint8Array, context: WorkspaceCodecContext): Promise<Uint8Array>;
|
|
129
129
|
open(sealed: Uint8Array, context: WorkspaceCodecContext): Promise<Uint8Array>;
|
|
130
130
|
}
|
|
131
|
-
/** A value did not open: unknown key, wrong tenant or path, tampering, or plaintext where a seal was required. */
|
|
132
|
-
declare class WorkspaceCodecError extends Error {
|
|
133
|
-
readonly code: "codec";
|
|
134
|
-
constructor(message: string);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* AES-256-GCM with a key id per value. `keys` maps key id to 32 raw bytes
|
|
138
|
-
* (base64 or base64url when a string). The encryption key and the key that
|
|
139
|
-
* derives replay-stable IVs are both derived from the raw key with HKDF, so the
|
|
140
|
-
* raw key is never used for two algorithms.
|
|
141
|
-
*
|
|
142
|
-
* Without an `operationId` every seal uses a random 96-bit IV. With one, the IV
|
|
143
|
-
* is an HMAC of the tenant, path, operation and plaintext, as in SIV: only an
|
|
144
|
-
* identical write repeats it, and that repeat reveals only that the write was
|
|
145
|
-
* repeated.
|
|
146
|
-
*/
|
|
147
|
-
declare function createAesGcmContentCodec(options: {
|
|
148
|
-
keys: Readonly<Record<string, string | Uint8Array>>;
|
|
149
|
-
activeKeyId: string;
|
|
150
|
-
}): WorkspaceContentCodec;
|
|
151
|
-
/**
|
|
152
|
-
* The AES-256-GCM codec from an app's env, or `null` when neither variable is
|
|
153
|
-
* set. `WORKSPACE_STORE_KEYS` is `id:base64,id:base64`; `WORKSPACE_STORE_KEY_ID`
|
|
154
|
-
* names the key new writes use. Setting one without the other is refused.
|
|
155
|
-
*/
|
|
156
|
-
declare function aesGcmContentCodecFromEnv(env: {
|
|
157
|
-
WORKSPACE_STORE_KEYS?: string;
|
|
158
|
-
WORKSPACE_STORE_KEY_ID?: string;
|
|
159
|
-
}): WorkspaceContentCodec | null;
|
|
160
|
-
/** Stored text of a sealed `content`: a prefix, then the sealed bytes in base64. */
|
|
161
|
-
declare const SEALED_CONTENT_PREFIX = "wsc1:";
|
|
162
|
-
/** Seal bytes a host is about to upload (an R2 object) under the entry's tenant and path. */
|
|
163
|
-
declare function sealWorkspaceBytes(codec: WorkspaceContentCodec, context: WorkspaceCodecContext, bytes: Uint8Array): Promise<Uint8Array>;
|
|
164
|
-
/** Open bytes a host downloaded for an entry's `bytes` reference. */
|
|
165
|
-
declare function openWorkspaceBytes(codec: WorkspaceContentCodec, context: WorkspaceCodecContext, sealed: Uint8Array): Promise<Uint8Array>;
|
|
166
131
|
interface ContentCodecOptions {
|
|
167
132
|
/**
|
|
168
133
|
* Return stored content that is not sealed as is, for a store being moved
|
|
@@ -170,13 +135,6 @@ interface ContentCodecOptions {
|
|
|
170
135
|
*/
|
|
171
136
|
readonly readPlaintext?: boolean;
|
|
172
137
|
}
|
|
173
|
-
/**
|
|
174
|
-
* `store` with every entry's `content` sealed at rest. Index fields, `bytes`
|
|
175
|
-
* references and tombstones pass through untouched; the host seals the bytes
|
|
176
|
-
* themselves. `idempotentOperations` is the inner store's: a replayed put with
|
|
177
|
-
* an `operationId` seals to the same bytes, so the inner replay check holds.
|
|
178
|
-
*/
|
|
179
|
-
declare function withContentCodec(store: WorkspaceStore, codec: WorkspaceContentCodec, options?: ContentCodecOptions): WorkspaceStore;
|
|
180
138
|
//#endregion
|
|
181
139
|
//#region src/workspace-store/contract.d.ts
|
|
182
140
|
interface WorkspaceStoreContractCase {
|
|
@@ -274,31 +232,12 @@ declare function renderPinnedMemory(entries: readonly WorkspaceEntry[], options?
|
|
|
274
232
|
}): string;
|
|
275
233
|
//#endregion
|
|
276
234
|
//#region src/workspace-store/harness.d.ts
|
|
277
|
-
/** Opening marker for the generated block in a harness's native memory file. */
|
|
278
|
-
declare const HARNESS_MEMORY_BEGIN = "<!-- workspace-store:memory begin. Generated from the workspace store; save memories with memory.remember. -->";
|
|
279
|
-
/** The generated block a host writes into a harness's native memory location. */
|
|
280
|
-
declare function renderHarnessMemory(entries: readonly WorkspaceEntry[], options?: {
|
|
281
|
-
maxTokens?: number;
|
|
282
|
-
}): string;
|
|
283
|
-
/** Replace the generated block in `native`, or append one; text outside it is kept byte for byte. */
|
|
284
|
-
declare function projectHarnessMemory(native: string, block: string): string;
|
|
285
|
-
/** Native files keyed by path, as the host read them. A missing file is absent or `undefined`. */
|
|
286
|
-
type HarnessNativeFiles = Readonly<Record<string, string | undefined>>;
|
|
287
|
-
/**
|
|
288
|
-
* What the harness added during the turn, outside the generated block: new
|
|
289
|
-
* lines in files that existed, and the body of new files (a Claude Code memory
|
|
290
|
-
* directory entry). Lines removed or present before are ignored; a removal is
|
|
291
|
-
* not a forget, which only `memory.forget` performs.
|
|
292
|
-
*/
|
|
293
|
-
declare function captureHarnessMemory(before: HarnessNativeFiles, after: HarnessNativeFiles): string[];
|
|
294
235
|
/** Where a captured memory came from. */
|
|
295
236
|
interface HarnessProvenance {
|
|
296
237
|
readonly harness: string;
|
|
297
238
|
readonly turnId: string;
|
|
298
239
|
readonly memberId: string;
|
|
299
240
|
}
|
|
300
|
-
/** Read the harness, turn, and member provenance encoded by `harnessActor`. */
|
|
301
|
-
declare function parseHarnessActor(actor: string): HarnessProvenance | null;
|
|
302
241
|
interface HarnessIngestResult {
|
|
303
242
|
readonly saved: WorkspaceEntry[];
|
|
304
243
|
/** Facts already in the store, by normalized text. */
|
|
@@ -309,16 +248,6 @@ interface HarnessIngestResult {
|
|
|
309
248
|
reason: string;
|
|
310
249
|
}[];
|
|
311
250
|
}
|
|
312
|
-
/**
|
|
313
|
-
* Save captured facts as workspace memories through the same policy as
|
|
314
|
-
* `memory.remember`, with the harness and turn as the actor. Duplicates of a
|
|
315
|
-
* memory the turn can see, or of an earlier fact in the batch, are skipped.
|
|
316
|
-
*/
|
|
317
|
-
declare function ingestHarnessMemories(context: WorkspaceToolContext, input: {
|
|
318
|
-
harness: string;
|
|
319
|
-
turnId: string;
|
|
320
|
-
facts: readonly string[];
|
|
321
|
-
}): Promise<HarnessIngestResult>;
|
|
322
251
|
interface MemoryDivergence {
|
|
323
252
|
/** Sum of the counts below; 0 means every native copy agrees with the store. */
|
|
324
253
|
readonly total: number;
|
|
@@ -334,16 +263,6 @@ interface MemoryDivergence {
|
|
|
334
263
|
uncaptured: string[];
|
|
335
264
|
}>;
|
|
336
265
|
}
|
|
337
|
-
/**
|
|
338
|
-
* Compare each native file with the store as `turn` sees it, after ingest ran.
|
|
339
|
-
* `before` is the files as projected at session start, `after` as they are now:
|
|
340
|
-
* only what the harness added since then can be uncaptured, so the profile's own
|
|
341
|
-
* generated text in the same file never counts. Files that held a generated
|
|
342
|
-
* block at session start are projection targets: losing the block counts every
|
|
343
|
-
* visible memory as missing. Other files (a new memory-directory entry) can
|
|
344
|
-
* only hold uncaptured facts.
|
|
345
|
-
*/
|
|
346
|
-
declare function memoryDivergence(store: WorkspaceStore, turn: WorkspaceTurn, before: HarnessNativeFiles, after: HarnessNativeFiles): Promise<MemoryDivergence>;
|
|
347
266
|
//#endregion
|
|
348
|
-
export { type ContentCodecOptions,
|
|
267
|
+
export { type ContentCodecOptions, type HarnessIngestResult, type HarnessProvenance, type MakeWorkspaceStore, type MemoryDivergence, type MemoryPolicy, type WorkspaceAccess, type WorkspaceBytesRef, type WorkspaceCodecContext, 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, assertWorkspacePath, checkWorkspacePut, createFileTools, createInMemoryWorkspaceStore, createMemoryTools, defaultMemoryPolicy, readTurnMemories, renderPinnedMemory, runWorkspaceStoreContract, workspaceStoreContractCases };
|
|
349
268
|
//# sourceMappingURL=index.d.ts.map
|