@tangle-network/agent-runtime 0.300.0 → 0.306.1
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-DqWmWTyB.js → activation-C5wesfzd.js} +3 -3
- package/dist/{activation-DqWmWTyB.js.map → activation-C5wesfzd.js.map} +1 -1
- package/dist/{activation-Bhp8dYV5.d.ts → activation-wZ-8vOjV.d.ts} +88 -13
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{bundle-C9v5TH_H.js → bundle-C8EO05u3.js} +2 -2
- package/dist/{bundle-C9v5TH_H.js.map → bundle-C8EO05u3.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +3 -26
- package/dist/candidate-execution/index.js +6 -6
- package/dist/{coordination-driver-DzTvehd6.js → coordination-driver-yj9HPXef.js} +322 -223
- package/dist/coordination-driver-yj9HPXef.js.map +1 -0
- package/dist/{delegate-vJ2g76r6.js → delegate-KtrL9HWq.js} +5 -5
- package/dist/delegate-KtrL9HWq.js.map +1 -0
- package/dist/durable.d.ts +3 -15
- package/dist/durable.js +158 -124
- package/dist/durable.js.map +1 -1
- package/dist/{graph-BDQh3qry.js → graph-DcdyHbgf.js} +5 -6
- package/dist/graph-DcdyHbgf.js.map +1 -0
- package/dist/{improvement-cycle-D6cPLi6k.js → improvement-cycle-DsN-TVXR.js} +1129 -10
- package/dist/improvement-cycle-DsN-TVXR.js.map +1 -0
- package/dist/{index-sC6sl88d.d.ts → index-DflDZq_I.d.ts} +188 -748
- package/dist/index.d.ts +378 -12
- package/dist/index.js +223 -320
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +5 -5
- package/dist/intelligence.js +7 -8
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-DZglq4Cf.d.ts → loop-runner-bin-DZfRUVWy.d.ts} +3 -3
- package/dist/{loop-runner-bin-DQIHnCL0.js → loop-runner-bin-rVrSX5l1.js} +3 -3
- package/dist/{loop-runner-bin-DQIHnCL0.js.map → loop-runner-bin-rVrSX5l1.js.map} +1 -1
- 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 +6 -35
- package/dist/mcp/index.js +311 -364
- package/dist/mcp/index.js.map +1 -1
- package/dist/model-policy-DydyWTQg.js.map +1 -1
- package/dist/{openai-tools-DvR82zEo.d.ts → openai-tools-YO30D2s3.d.ts} +2 -2
- package/dist/{prepare-CGVNMb1o.js → prepare--nWcazPr.js} +7 -13
- package/dist/prepare--nWcazPr.js.map +1 -0
- package/dist/{profile-BetOB4_Q.js → profile-h04LDjV6.js} +2 -2
- package/dist/{profile-BetOB4_Q.js.map → profile-h04LDjV6.js.map} +1 -1
- package/dist/profiles.d.ts +2 -94
- package/dist/profiles.js +2 -451
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-CAa0t1MT.d.ts → protected-model-port-C9QtEf3y.d.ts} +2 -2
- package/dist/{protected-model-port-CuVHkhti.js → protected-model-port-wwalbyXM.js} +4 -4
- package/dist/{protected-model-port-CuVHkhti.js.map → protected-model-port-wwalbyXM.js.map} +1 -1
- package/dist/{provision-supervisor-IXBlLHE0.js → provision-supervisor-WxFEFQeJ.js} +14 -24
- package/dist/provision-supervisor-WxFEFQeJ.js.map +1 -0
- package/dist/{runtime-DpEt5v42.js → runtime-B9eBIyws.js} +86 -496
- package/dist/runtime-B9eBIyws.js.map +1 -0
- package/dist/{search-method-DvU-fc-f.js → search-executor-2tWr38Qw.js} +239 -1132
- package/dist/search-executor-2tWr38Qw.js.map +1 -0
- package/dist/{server-CIE8s4AN.js → server-CpKcrOPj.js} +5 -12
- package/dist/server-CpKcrOPj.js.map +1 -0
- package/dist/{stream-agent-turn-I3bb0eqF.d.ts → stream-agent-turn-B1giFgOg.d.ts} +4 -2
- package/dist/{substrate-UjsxukjZ.d.ts → substrate-L_sC7jCD.d.ts} +2 -2
- package/dist/{supervise-C5mktzrh.js → supervise-DllOHM4M.js} +206 -80
- package/dist/supervise-DllOHM4M.js.map +1 -0
- package/dist/{supervisor-CQSu5XGl.js → supervisor-gCfG6K1-.js} +1130 -1667
- package/dist/supervisor-gCfG6K1-.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +14 -14
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-C73caP0U.d.ts → types-DeuEkBhI.d.ts} +167 -261
- package/dist/{workspace-archive-pz8YJ1fr.d.ts → workspace-streams-CpSmt3zx.d.ts} +67 -3
- package/dist/{workspace-streams-D5gHJdTb.js → workspace-streams-ILw0eWZ0.js} +694 -2
- package/dist/workspace-streams-ILw0eWZ0.js.map +1 -0
- package/package.json +8 -8
- package/skills/generate-eval/SKILL.md +1 -1
- package/skills/profile-authoring/SKILL.md +5 -5
- package/skills/supervise/SKILL.md +2 -2
- package/dist/coordination-driver-DzTvehd6.js.map +0 -1
- package/dist/delegate-vJ2g76r6.js.map +0 -1
- package/dist/graph-BDQh3qry.js.map +0 -1
- package/dist/improvement-cycle-D6cPLi6k.js.map +0 -1
- package/dist/prepare-CGVNMb1o.js.map +0 -1
- package/dist/provision-supervisor-IXBlLHE0.js.map +0 -1
- package/dist/runtime-DpEt5v42.js.map +0 -1
- package/dist/search-method-DvU-fc-f.js.map +0 -1
- package/dist/server-CIE8s4AN.js.map +0 -1
- package/dist/supervise-C5mktzrh.js.map +0 -1
- package/dist/supervisor-CQSu5XGl.js.map +0 -1
- package/dist/workspace-streams-D5gHJdTb.js.map +0 -1
|
@@ -20,8 +20,16 @@ interface AgentCandidateArtifactPort {
|
|
|
20
20
|
readStream?(ref: AgentCandidateArtifactRef, options?: {
|
|
21
21
|
signal?: AbortSignal;
|
|
22
22
|
}): AsyncIterable<Uint8Array>;
|
|
23
|
+
/**
|
|
24
|
+
* The stored object with exactly this digest and length, or undefined when the store holds
|
|
25
|
+
* none. It finds an object by its content alone, so a workspace stored one object per file can
|
|
26
|
+
* skip every file the store already holds, and be read back from its manifest.
|
|
27
|
+
*/
|
|
28
|
+
locate?(object: Pick<AgentCandidateArtifactRef, 'sha256' | 'byteLength'>, options?: {
|
|
29
|
+
signal?: AbortSignal;
|
|
30
|
+
}): Promise<AgentCandidateArtifactRef | undefined>;
|
|
23
31
|
}
|
|
24
|
-
type AgentCandidateOutputPurpose = 'execution-plan' | 'materialization-receipt' | 'candidate-workspace-manifest' | 'candidate-workspace-archive' | 'task-manifest' | 'task-archive' | 'task-patch' | 'task-output' | 'task-outcome' | 'memory-after-manifest' | 'memory-after-archive' | 'grader-evidence' | 'benchmark-result' | 'model-settlement' | 'trace' | 'executor-native-evidence' | 'executor-capture' | 'run-receipt' | 'knowledge-retrieval-config' | 'knowledge-evaluation' | 'failure-evidence';
|
|
32
|
+
type AgentCandidateOutputPurpose = 'execution-plan' | 'materialization-receipt' | 'candidate-workspace-manifest' | 'candidate-workspace-archive' | 'candidate-workspace-file' | 'task-manifest' | 'task-archive' | 'task-patch' | 'task-output' | 'task-outcome' | 'memory-after-manifest' | 'memory-after-archive' | 'grader-evidence' | 'benchmark-result' | 'model-settlement' | 'trace' | 'executor-native-evidence' | 'executor-capture' | 'run-receipt' | 'knowledge-retrieval-config' | 'knowledge-evaluation' | 'failure-evidence';
|
|
25
33
|
/** Durable content-addressed evidence store controlled only by the evaluator. */
|
|
26
34
|
interface AgentCandidateOutputArtifactPort extends AgentCandidateArtifactPort {
|
|
27
35
|
/** Consume all chunks before publishing; preserve put's identity and cancellation guarantees. */
|
|
@@ -550,5 +558,61 @@ declare function captureAgentCandidateWorkspaceFiles(input: readonly AgentCandid
|
|
|
550
558
|
/** Create the standard bounded materializer for candidate execution ports. */
|
|
551
559
|
declare function createAgentCandidateWorkspacePort(options?: CreateAgentCandidateWorkspacePortOptions): AgentCandidateWorkspacePort;
|
|
552
560
|
//#endregion
|
|
553
|
-
|
|
554
|
-
|
|
561
|
+
//#region src/candidate-execution/workspace-streams.d.ts
|
|
562
|
+
interface CaptureAgentCandidateWorkspaceToArtifactsOptions {
|
|
563
|
+
limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
|
|
564
|
+
artifactPersistence: NonNullable<CaptureAgentCandidateWorkspaceOptions['artifactPersistence']>;
|
|
565
|
+
}
|
|
566
|
+
/** Capture regular files to durable artifacts with memory bounded by the manifest and stream buffers. */
|
|
567
|
+
declare function captureAgentCandidateWorkspaceToArtifacts(rootInput: string, options: CaptureAgentCandidateWorkspaceToArtifactsOptions): Promise<{
|
|
568
|
+
readonly snapshot: AgentCandidateWorkspaceSnapshotEvidence;
|
|
569
|
+
}>;
|
|
570
|
+
/**
|
|
571
|
+
* A workspace stored as one content-addressed object per file plus the manifest that names them.
|
|
572
|
+
*
|
|
573
|
+
* Its digest is the manifest's, the same identity an archived capture of the same files has. Two
|
|
574
|
+
* trees share every file they have in common, so storing one costs only the files no earlier
|
|
575
|
+
* capture in the store holds: on Discovery Lab run terraform-dc-tokens-20261006d, the files a
|
|
576
|
+
* director changed between two captures one to two minutes apart were 5.5 to 8.2 MB of a
|
|
577
|
+
* 60 to 70 MB workspace.
|
|
578
|
+
*/
|
|
579
|
+
interface AgentCandidateWorkspaceTree {
|
|
580
|
+
readonly kind: 'agent-candidate-workspace-tree';
|
|
581
|
+
/** The manifest's digest; the manifest is the object of this digest. */
|
|
582
|
+
readonly digest: Sha256Digest;
|
|
583
|
+
readonly manifest: AgentCandidateArtifactRef;
|
|
584
|
+
readonly files: number;
|
|
585
|
+
/** The bytes of every file in the workspace. */
|
|
586
|
+
readonly bytes: number;
|
|
587
|
+
/** The bytes this capture added to the store; every other file was already there. */
|
|
588
|
+
readonly storedBytes: number;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Store a workspace as a tree: each regular file the store does not already hold, then the
|
|
592
|
+
* manifest. The store must find objects by content (`locate`) and stream them.
|
|
593
|
+
*/
|
|
594
|
+
declare function captureAgentCandidateWorkspaceTreeToArtifacts(rootInput: string, options: CaptureAgentCandidateWorkspaceToArtifactsOptions): Promise<AgentCandidateWorkspaceTree>;
|
|
595
|
+
/**
|
|
596
|
+
* Read a tree back by its digest and confirm the store holds every file it names. Returns the
|
|
597
|
+
* manifest; reading a file is `artifacts.read` of what `locate` returns for its digest.
|
|
598
|
+
*/
|
|
599
|
+
declare function verifyAgentCandidateWorkspaceTree(tree: Pick<AgentCandidateWorkspaceTree, 'digest' | 'manifest'>, artifacts: AgentCandidateArtifactPort, options?: {
|
|
600
|
+
limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
|
|
601
|
+
signal?: AbortSignal;
|
|
602
|
+
}): Promise<AgentCandidateWorkspaceManifestMaterial>;
|
|
603
|
+
interface AgentCandidateWorkspaceArtifactsOptions {
|
|
604
|
+
role: 'task' | 'candidate' | 'knowledge' | 'memory';
|
|
605
|
+
snapshot: AgentCandidateWorkspaceSnapshotEvidence;
|
|
606
|
+
artifacts: AgentCandidateArtifactPort;
|
|
607
|
+
limits?: Partial<AgentCandidateWorkspaceArchiveLimits>;
|
|
608
|
+
signal?: AbortSignal;
|
|
609
|
+
}
|
|
610
|
+
/** Verify durable regular-file workspace evidence without retaining archive or file contents. */
|
|
611
|
+
declare function verifyAgentCandidateWorkspaceArtifacts(input: AgentCandidateWorkspaceArtifactsOptions): Promise<void>;
|
|
612
|
+
/** Restore regular-file artifacts into an empty destination, publishing only after complete verification. */
|
|
613
|
+
declare function materializeAgentCandidateWorkspaceFromArtifacts(input: AgentCandidateWorkspaceArtifactsOptions & {
|
|
614
|
+
destination: string;
|
|
615
|
+
}): Promise<void>;
|
|
616
|
+
//#endregion
|
|
617
|
+
export { PreparedAgentCandidateLaunch as $, AgentCandidateMemoryPort as A, AgentCandidateProtectedRunCapture as B, AgentCandidateExecutorPort as C, AgentCandidateExecutorTaskOutcomeCapture as D, AgentCandidateExecutorStopRequest as E, AgentCandidateOutputPurpose as F, AgentCandidateWorkspacePort as G, AgentCandidateRunFinalization as H, AgentCandidateProtectedModelActivation as I, CanonicalCandidateDocument as J, CANDIDATE_TRACE_ENV as K, AgentCandidateProtectedModelReservation as L, AgentCandidateModelLimits as M, AgentCandidateModelPort as N, AgentCandidateExecutorWorkspaceFile as O, AgentCandidateOutputArtifactPort as P, PreparedAgentCandidateKnowledge as Q, AgentCandidateProtectedModelSettlement as R, AgentCandidateExecutorMemoryCapture as S, AgentCandidateExecutorRequest as T, AgentCandidateTaskExecution as U, AgentCandidateRepositoryPort as V, AgentCandidateVerificationPorts as W, PreparedAgentCandidateExecution as X, PersistedTaskOutcomeEvidence as Y, PreparedAgentCandidateInstruction as Z, AgentCandidateBenchmarkGraderIdentity as _, captureAgentCandidateWorkspaceTreeToArtifacts as a, AgentCandidateExecutionPorts as b, verifyAgentCandidateWorkspaceTree as c, CapturedAgentCandidateWorkspace as d, PreparedAgentCandidateTrace as et, CreateAgentCandidateWorkspacePortOptions as f, AgentCandidateArtifactPort as g, createAgentCandidateWorkspacePort as h, captureAgentCandidateWorkspaceToArtifacts as i, AgentCandidateExecutionRoots as it, AgentCandidateMemoryResetResult as j, AgentCandidateExecutorWorkspaceInput as k, AgentCandidateWorkspaceArchiveLimits as l, captureAgentCandidateWorkspaceFiles as m, AgentCandidateWorkspaceTree as n, VerifiedAgentCandidate as nt, materializeAgentCandidateWorkspaceFromArtifacts as o, captureAgentCandidateWorkspace as p, CANDIDATE_TRACE_TAGS as q, CaptureAgentCandidateWorkspaceToArtifactsOptions as r, VerifiedAgentCandidateTaskOutcome as rt, verifyAgentCandidateWorkspaceArtifacts as s, AgentCandidateWorkspaceArtifactsOptions as t, ResolvedAgentCandidateContainer as tt, CaptureAgentCandidateWorkspaceOptions as u, AgentCandidateBenchmarkGraderPort as v, AgentCandidateExecutorProfileFile as w, AgentCandidateExecutorFinalCapture as x, AgentCandidateContainerPort as y, AgentCandidateProtectedModelSettlementCall as z };
|
|
618
|
+
//# sourceMappingURL=workspace-streams-CpSmt3zx.d.ts.map
|