@tangle-network/agent-runtime 0.71.1 → 0.73.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 +8 -8
- package/dist/agent.d.ts +27 -17
- package/dist/agent.js +21 -9
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/analyst-loop.js +3 -2
- package/dist/{chunk-4KGQHS7U.js → chunk-7ODB76J5.js} +2 -18
- package/dist/chunk-7ODB76J5.js.map +1 -0
- package/dist/chunk-HPYWEFVY.js +4039 -0
- package/dist/chunk-HPYWEFVY.js.map +1 -0
- package/dist/{chunk-P5OKDSLB.js → chunk-IODKUOBA.js} +5 -3
- package/dist/{chunk-P5OKDSLB.js.map → chunk-IODKUOBA.js.map} +1 -1
- package/dist/chunk-NBV35BR6.js +68 -0
- package/dist/chunk-NBV35BR6.js.map +1 -0
- package/dist/{chunk-5ISW5JUF.js → chunk-NCH4XUZ7.js} +2004 -6551
- package/dist/chunk-NCH4XUZ7.js.map +1 -0
- package/dist/chunk-PBE35ULD.js +52 -0
- package/dist/chunk-PBE35ULD.js.map +1 -0
- package/dist/{chunk-VLF5RHEQ.js → chunk-T2HVQVB4.js} +1 -66
- package/dist/chunk-T2HVQVB4.js.map +1 -0
- package/dist/{chunk-K3RM4MPM.js → chunk-U56XGKVY.js} +9 -24
- package/dist/chunk-U56XGKVY.js.map +1 -0
- package/dist/chunk-UZ5SODU7.js +29 -0
- package/dist/chunk-UZ5SODU7.js.map +1 -0
- package/dist/{delegates-CsXJPZDH.d.ts → coordination-DU0saWeg.d.ts} +875 -1099
- package/dist/index.d.ts +7 -8
- package/dist/index.js +10 -12
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +1 -1
- package/dist/lifecycle.d.ts +281 -0
- package/dist/lifecycle.js +174 -0
- package/dist/lifecycle.js.map +1 -0
- package/dist/{loop-runner-bin-DLM_bVQO.d.ts → loop-runner-bin-eD3m0rHW.d.ts} +10 -27
- package/dist/loop-runner-bin.d.ts +5 -6
- package/dist/loop-runner-bin.js +6 -6
- package/dist/loops.d.ts +47 -10
- package/dist/loops.js +47 -42
- package/dist/mcp/bin.js +17 -329
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +10 -190
- package/dist/mcp/index.js +949 -47
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-kdCS-T12.d.ts → openai-tools-CBurv8Cu.d.ts} +11 -13
- package/dist/otel-export-BKmNwiCb.d.ts +180 -0
- package/dist/profiles.d.ts +3 -3
- package/dist/profiles.js +1 -5
- package/dist/profiles.js.map +1 -1
- package/dist/{substrate-BoRXgvka.d.ts → substrate-rNj6TDc3.d.ts} +7 -23
- package/dist/{types-CdnEAE3U.d.ts → types-JufmXF2a.d.ts} +80 -1
- package/dist/worktree-DaxOvw-C.d.ts +702 -0
- package/dist/{worktree-fanout-CK2ypmEm.d.ts → worktree-fanout-DIffZohV.d.ts} +15 -5
- package/package.json +6 -1
- package/dist/chunk-4KGQHS7U.js.map +0 -1
- package/dist/chunk-5ISW5JUF.js.map +0 -1
- package/dist/chunk-74UAWZXE.js +0 -278
- package/dist/chunk-74UAWZXE.js.map +0 -1
- package/dist/chunk-DVQGYDN5.js +0 -59
- package/dist/chunk-DVQGYDN5.js.map +0 -1
- package/dist/chunk-INXDNX2W.js +0 -475
- package/dist/chunk-INXDNX2W.js.map +0 -1
- package/dist/chunk-K3RM4MPM.js.map +0 -1
- package/dist/chunk-VLF5RHEQ.js.map +0 -1
- package/dist/chunk-XRYEZPR6.js +0 -88
- package/dist/chunk-XRYEZPR6.js.map +0 -1
- package/dist/coordination-BPQmuwv8.d.ts +0 -666
- package/dist/delegation-profile-Bvfro2m1.d.ts +0 -99
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { S as SandboxClient,
|
|
2
|
-
import { F as FleetHandle,
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { A as AnalystRegistry, C as CoordinationEvent, a as CoordinationTools, b as CoordinationToolsOptions, D as DELEGATE_DESCRIPTION, c as DELEGATE_INPUT_SCHEMA, d as DELEGATE_TOOL_NAME, e as DelegateArgs, f as DelegateHandlerOptions, g as DelegateResult, h as FeedbackEvent, I as InMemoryFeedbackStore, J as JsonRpcMessage, i as JsonRpcResponse, M as MakeWorkerAgent, j as McpServer, k as McpServerOptions, l as McpToolDescriptor, m as McpTransport, Q as Question, n as QuestionDecision, o as QuestionPolicy, p as QuestionRecord, S as SettledWorker, q as createCoordinationTools, r as createDelegateHandler, s as createInProcessTransport, t as createMcpServer, u as eventToSnapshot, v as validateDelegateArgs } from '../coordination-BPQmuwv8.js';
|
|
1
|
+
import { S as SandboxClient, d as LoopSandboxPlacement } from '../types-JufmXF2a.js';
|
|
2
|
+
import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-DU0saWeg.js';
|
|
3
|
+
export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, E as DelegateResearchConfig, G as DelegateResearchResult, H as DelegateResult, I as DelegateRunCtx, J as DelegateUiAuditConfig, K as DelegateUiAuditRoute, L as DelegationError, M as DelegationFeedbackSnapshot, N as DelegationHistoryEntry, O as DelegationPersistenceError, P as DelegationProfile, Q as DelegationProgress, R as DelegationRecord, S as DelegationResultPayload, T as DelegationResumeContext, V as DelegationResumeDriver, W as DelegationResumeTick, X as DelegationRunContext, Y as DelegationStateCorruptError, Z as DelegationStatus, _ as DelegationStore, $ as DelegationTaskQueueOptions, a0 as DelegationTraceCaps, a1 as DelegationTraceCollector, a2 as DelegationTraceSpan, a3 as DetachedSessionDelegateOptions, a4 as DetachedSessionRefParts, a5 as DetachedTurn, a6 as DetachedTurnResumeDriverOptions, a7 as DetachedWinnerSelection, a8 as DriveTurnCapableBox, a9 as DriveTurnTick, aa as FeedbackEvent, ab as FeedbackRating, ac as FeedbackRefersTo, ad as FileDelegationStore, ae as FileDelegationStoreOptions, af as FleetWorkspaceExecutorOptions, ag as InMemoryDelegationStore, ah as InMemoryFeedbackStore, ai as JsonRpcMessage, aj as JsonRpcResponse, ak as MakeWorkerAgent, al as McpServer, am as McpServerOptions, an as McpToolDescriptor, ao as McpTransport, ap as Question, aq as QuestionDecision, ar as QuestionPolicy, as as QuestionRecord, at as ResearchOutputShape, au as ResearchSource, av as RunDetachedTurnOptions, aw as SettleDetachedCoderTurnOptions, ax as SettledWorker, ay as SiblingSandboxExecutorOptions, az as SubmitInput, aA as SubmitOutput, aB as TraceContext, aC as UiAuditorDelegationOutput, aD as buildDelegationTraceSpans, aE as capDelegationTrace, aF as coderTaskFromArgs, aG as composeLoopTraceEmitters, aH as createCoordinationTools, aI as createDelegateHandler, aJ as createDelegationTraceCollector, aK as createDetachedTurnResumeDriver, aL as createFleetWorkspaceExecutor, aM as createInProcessTransport, aN as createMcpServer, aO as createPropagatingTraceEmitter, aP as createSiblingSandboxExecutor, aQ as detachedSessionDelegate, aR as detachedTurnEvents, aS as eventToSnapshot, aT as formatDetachedSessionRef, aU as hashIdempotencyInput, aV as parseDetachedSessionRef, aW as readTraceContextFromEnv, aX as runDetachedTurn, aY as settleDetachedCoderTurn, aZ as traceContextToEnv, a_ as validateDelegateArgs } from '../coordination-DU0saWeg.js';
|
|
4
|
+
import { L as LocalHarness, G as GitRunner, r as runLocalHarness } from '../worktree-DaxOvw-C.js';
|
|
5
|
+
export { C as CreateWorktreeOptions, D as DiffOptions, a as DiffResult, b as LocalHarnessResult, R as RemoveWorktreeOptions, c as RunLocalHarnessOptions, W as WorktreeHandle, d as captureWorktreeDiff, e as createWorktree, f as removeWorktree } from '../worktree-DaxOvw-C.js';
|
|
7
6
|
export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CuzMYGYM.js';
|
|
8
|
-
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-
|
|
7
|
+
export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-CBurv8Cu.js';
|
|
9
8
|
import { AnalystFinding } from '@tangle-network/agent-eval';
|
|
10
|
-
import {
|
|
9
|
+
import { U as UiLens } from '../substrate-rNj6TDc3.js';
|
|
11
10
|
import '@tangle-network/sandbox';
|
|
12
|
-
import 'node:child_process';
|
|
13
11
|
import '@tangle-network/agent-interface';
|
|
12
|
+
import '../otel-export-BKmNwiCb.js';
|
|
14
13
|
import '../router-client-C7kp_ECN.js';
|
|
14
|
+
import 'node:child_process';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @experimental
|
|
@@ -148,92 +148,6 @@ declare function makeCheckRunner(kinds: Record<string, Check>, opts: CheckRunner
|
|
|
148
148
|
error: string;
|
|
149
149
|
}>;
|
|
150
150
|
|
|
151
|
-
/**
|
|
152
|
-
* @experimental
|
|
153
|
-
*
|
|
154
|
-
* `delegate_code` MCP tool — async kickoff. The handler validates the
|
|
155
|
-
* input, computes an idempotency key over the canonical fields, hands
|
|
156
|
-
* the task to the queue, and returns `{ taskId, estimatedDurationMs }`.
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
/** @experimental */
|
|
160
|
-
declare const DELEGATE_CODE_TOOL_NAME = "delegate_code";
|
|
161
|
-
/** @experimental */
|
|
162
|
-
declare const DELEGATE_CODE_DESCRIPTION: string;
|
|
163
|
-
/** @experimental */
|
|
164
|
-
declare const DELEGATE_CODE_INPUT_SCHEMA: {
|
|
165
|
-
readonly type: "object";
|
|
166
|
-
readonly properties: {
|
|
167
|
-
readonly goal: {
|
|
168
|
-
readonly type: "string";
|
|
169
|
-
readonly description: "Natural-language description of what the coder must accomplish.";
|
|
170
|
-
};
|
|
171
|
-
readonly repoRoot: {
|
|
172
|
-
readonly type: "string";
|
|
173
|
-
readonly description: "Absolute path inside the sandbox where the repo lives.";
|
|
174
|
-
};
|
|
175
|
-
readonly contextHint: {
|
|
176
|
-
readonly type: "string";
|
|
177
|
-
readonly description: "Optional free-form context the coder sees in the prompt prelude.";
|
|
178
|
-
};
|
|
179
|
-
readonly variants: {
|
|
180
|
-
readonly type: "integer";
|
|
181
|
-
readonly minimum: 1;
|
|
182
|
-
readonly maximum: 8;
|
|
183
|
-
readonly description: "Number of parallel coder harnesses. Default 1.";
|
|
184
|
-
};
|
|
185
|
-
readonly config: {
|
|
186
|
-
readonly type: "object";
|
|
187
|
-
readonly properties: {
|
|
188
|
-
readonly testCmd: {
|
|
189
|
-
readonly type: "string";
|
|
190
|
-
};
|
|
191
|
-
readonly typecheckCmd: {
|
|
192
|
-
readonly type: "string";
|
|
193
|
-
};
|
|
194
|
-
readonly forbiddenPaths: {
|
|
195
|
-
readonly type: "array";
|
|
196
|
-
readonly items: {
|
|
197
|
-
readonly type: "string";
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
readonly maxDiffLines: {
|
|
201
|
-
readonly type: "integer";
|
|
202
|
-
readonly minimum: 1;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
readonly additionalProperties: false;
|
|
206
|
-
};
|
|
207
|
-
readonly namespace: {
|
|
208
|
-
readonly type: "string";
|
|
209
|
-
readonly description: "Multi-tenant scope (customer-id, workspace-id).";
|
|
210
|
-
};
|
|
211
|
-
};
|
|
212
|
-
readonly required: readonly ["goal", "repoRoot"];
|
|
213
|
-
readonly additionalProperties: false;
|
|
214
|
-
};
|
|
215
|
-
/** @experimental */
|
|
216
|
-
declare function validateDelegateCodeArgs(raw: unknown): DelegateCodeArgs;
|
|
217
|
-
/** @experimental */
|
|
218
|
-
interface DelegateCodeHandlerOptions {
|
|
219
|
-
queue: DelegationTaskQueue;
|
|
220
|
-
delegate: CoderDelegate;
|
|
221
|
-
/** Override the duration hint. */
|
|
222
|
-
estimateDurationMs?: (args: DelegateCodeArgs) => number;
|
|
223
|
-
/**
|
|
224
|
-
* Record a deterministic detached-session resume key on single-variant
|
|
225
|
-
* submissions (derived from the idempotency key, so retried identical
|
|
226
|
-
* inputs name the same logical turn). Enable only when the wired delegate
|
|
227
|
-
* dispatches via sandbox sessions — `detachedSessionDelegate` routes
|
|
228
|
-
* onto its `driveTurn` tick path when the ref is present. Fanout
|
|
229
|
-
* (`variants > 1`) never records a ref: one resume key cannot express N
|
|
230
|
-
* sessions + winner selection.
|
|
231
|
-
*/
|
|
232
|
-
detachedDispatch?: boolean;
|
|
233
|
-
}
|
|
234
|
-
/** @experimental */
|
|
235
|
-
declare function createDelegateCodeHandler(options: DelegateCodeHandlerOptions): (raw: unknown) => Promise<DelegateCodeResult>;
|
|
236
|
-
|
|
237
151
|
/**
|
|
238
152
|
* @experimental
|
|
239
153
|
*
|
|
@@ -313,100 +227,6 @@ interface DelegateFeedbackHandlerOptions {
|
|
|
313
227
|
/** @experimental */
|
|
314
228
|
declare function createDelegateFeedbackHandler(options: DelegateFeedbackHandlerOptions): (raw: unknown) => Promise<DelegateFeedbackResult>;
|
|
315
229
|
|
|
316
|
-
/**
|
|
317
|
-
* @experimental
|
|
318
|
-
*
|
|
319
|
-
* `delegate_research` MCP tool — async kickoff for source-grounded
|
|
320
|
-
* research tasks. Same async semantics as `delegate_code`: returns a
|
|
321
|
-
* taskId immediately, idempotent on canonical inputs.
|
|
322
|
-
*
|
|
323
|
-
* The handler does not import a researcher profile directly — consumers
|
|
324
|
-
* inject a `ResearcherDelegate` via `createMcpServer({ researcherDelegate })`.
|
|
325
|
-
* The substrate cannot depend on `@tangle-network/agent-knowledge`
|
|
326
|
-
* without inducing a dependency cycle.
|
|
327
|
-
*/
|
|
328
|
-
|
|
329
|
-
/** @experimental */
|
|
330
|
-
declare const DELEGATE_RESEARCH_TOOL_NAME = "delegate_research";
|
|
331
|
-
/** @experimental */
|
|
332
|
-
declare const DELEGATE_RESEARCH_DESCRIPTION: string;
|
|
333
|
-
/** @experimental */
|
|
334
|
-
declare const DELEGATE_RESEARCH_INPUT_SCHEMA: {
|
|
335
|
-
readonly type: "object";
|
|
336
|
-
readonly properties: {
|
|
337
|
-
readonly question: {
|
|
338
|
-
readonly type: "string";
|
|
339
|
-
readonly description: "The research question to answer.";
|
|
340
|
-
};
|
|
341
|
-
readonly namespace: {
|
|
342
|
-
readonly type: "string";
|
|
343
|
-
readonly description: "Multi-tenant scope (customer-id, workspace-id). REQUIRED.";
|
|
344
|
-
};
|
|
345
|
-
readonly scope: {
|
|
346
|
-
readonly type: "string";
|
|
347
|
-
readonly description: "Bound, e.g. \"audience for cpg-founder ICP\".";
|
|
348
|
-
};
|
|
349
|
-
readonly sources: {
|
|
350
|
-
readonly type: "array";
|
|
351
|
-
readonly items: {
|
|
352
|
-
readonly type: "string";
|
|
353
|
-
readonly enum: readonly ResearchSource[];
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
readonly variants: {
|
|
357
|
-
readonly type: "integer";
|
|
358
|
-
readonly minimum: 1;
|
|
359
|
-
readonly maximum: 8;
|
|
360
|
-
};
|
|
361
|
-
readonly config: {
|
|
362
|
-
readonly type: "object";
|
|
363
|
-
readonly properties: {
|
|
364
|
-
readonly recencyWindow: {
|
|
365
|
-
readonly type: "object";
|
|
366
|
-
readonly properties: {
|
|
367
|
-
readonly since: {
|
|
368
|
-
readonly type: "string";
|
|
369
|
-
readonly description: "ISO datetime";
|
|
370
|
-
};
|
|
371
|
-
readonly until: {
|
|
372
|
-
readonly type: "string";
|
|
373
|
-
readonly description: "ISO datetime";
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
readonly additionalProperties: false;
|
|
377
|
-
};
|
|
378
|
-
readonly maxItems: {
|
|
379
|
-
readonly type: "integer";
|
|
380
|
-
readonly minimum: 1;
|
|
381
|
-
};
|
|
382
|
-
readonly minConfidence: {
|
|
383
|
-
readonly type: "number";
|
|
384
|
-
readonly minimum: 0;
|
|
385
|
-
readonly maximum: 1;
|
|
386
|
-
};
|
|
387
|
-
};
|
|
388
|
-
readonly additionalProperties: false;
|
|
389
|
-
};
|
|
390
|
-
};
|
|
391
|
-
readonly required: readonly ["question", "namespace"];
|
|
392
|
-
readonly additionalProperties: false;
|
|
393
|
-
};
|
|
394
|
-
/** @experimental */
|
|
395
|
-
declare function validateDelegateResearchArgs(raw: unknown): DelegateResearchArgs;
|
|
396
|
-
/** @experimental */
|
|
397
|
-
interface DelegateResearchHandlerOptions {
|
|
398
|
-
queue: DelegationTaskQueue;
|
|
399
|
-
delegate: ResearcherDelegate;
|
|
400
|
-
estimateDurationMs?: (args: DelegateResearchArgs) => number;
|
|
401
|
-
/**
|
|
402
|
-
* Record a deterministic detached-session resume key on single-variant
|
|
403
|
-
* submissions. Same contract as `DelegateCodeHandlerOptions.detachedDispatch`.
|
|
404
|
-
*/
|
|
405
|
-
detachedDispatch?: boolean;
|
|
406
|
-
}
|
|
407
|
-
/** @experimental */
|
|
408
|
-
declare function createDelegateResearchHandler(options: DelegateResearchHandlerOptions): (raw: unknown) => Promise<DelegateResearchResult>;
|
|
409
|
-
|
|
410
230
|
/**
|
|
411
231
|
* @experimental
|
|
412
232
|
*
|
|
@@ -606,4 +426,4 @@ interface DelegationStatusHandlerOptions {
|
|
|
606
426
|
/** @experimental */
|
|
607
427
|
declare function createDelegationStatusHandler(options: DelegationStatusHandlerOptions): (raw: unknown) => Promise<DelegationStatusResult>;
|
|
608
428
|
|
|
609
|
-
export { type Check, type CheckRunnerOptions,
|
|
429
|
+
export { type Check, type CheckRunnerOptions, DELEGATE_FEEDBACK_DESCRIPTION, DELEGATE_FEEDBACK_INPUT_SCHEMA, DELEGATE_FEEDBACK_TOOL_NAME, DELEGATE_UI_AUDIT_DESCRIPTION, DELEGATE_UI_AUDIT_INPUT_SCHEMA, DELEGATE_UI_AUDIT_TOOL_NAME, DELEGATION_HISTORY_DESCRIPTION, DELEGATION_HISTORY_INPUT_SCHEMA, DELEGATION_HISTORY_TOOL_NAME, DELEGATION_STATUS_DESCRIPTION, DELEGATION_STATUS_INPUT_SCHEMA, DELEGATION_STATUS_TOOL_NAME, DelegateFeedbackArgs, DelegateFeedbackResult, DelegateUiAuditArgs, DelegateUiAuditResult, DelegationExecutor, DelegationHistoryArgs, DelegationHistoryResult, DelegationStatusArgs, DelegationStatusResult, DelegationTaskQueue, type DetectExecutorArgs, FeedbackStore, FleetHandle, GitRunner, type InProcessExecutorDescribePlacement, type InProcessExecutorOptions, LocalHarness, UiAuditorDelegate, createDelegateFeedbackHandler, createDelegateUiAuditHandler, createDelegationHistoryHandler, createDelegationStatusHandler, createInProcessExecutor, defaultChecks, detectExecutor, liftFindings, makeCheckRunner, renderTrace, runCheck, runLocalHarness, validateDelegateFeedbackArgs, validateDelegateUiAuditArgs, validateDelegationHistoryArgs, validateDelegationStatusArgs };
|