@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.
Files changed (88) hide show
  1. package/dist/{activation-DqWmWTyB.js → activation-C5wesfzd.js} +3 -3
  2. package/dist/{activation-DqWmWTyB.js.map → activation-C5wesfzd.js.map} +1 -1
  3. package/dist/{activation-Bhp8dYV5.d.ts → activation-wZ-8vOjV.d.ts} +88 -13
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-C9v5TH_H.js → bundle-C8EO05u3.js} +2 -2
  7. package/dist/{bundle-C9v5TH_H.js.map → bundle-C8EO05u3.js.map} +1 -1
  8. package/dist/candidate-execution/index.d.ts +3 -26
  9. package/dist/candidate-execution/index.js +6 -6
  10. package/dist/{coordination-driver-DzTvehd6.js → coordination-driver-yj9HPXef.js} +322 -223
  11. package/dist/coordination-driver-yj9HPXef.js.map +1 -0
  12. package/dist/{delegate-vJ2g76r6.js → delegate-KtrL9HWq.js} +5 -5
  13. package/dist/delegate-KtrL9HWq.js.map +1 -0
  14. package/dist/durable.d.ts +3 -15
  15. package/dist/durable.js +158 -124
  16. package/dist/durable.js.map +1 -1
  17. package/dist/{graph-BDQh3qry.js → graph-DcdyHbgf.js} +5 -6
  18. package/dist/graph-DcdyHbgf.js.map +1 -0
  19. package/dist/{improvement-cycle-D6cPLi6k.js → improvement-cycle-DsN-TVXR.js} +1129 -10
  20. package/dist/improvement-cycle-DsN-TVXR.js.map +1 -0
  21. package/dist/{index-sC6sl88d.d.ts → index-DflDZq_I.d.ts} +188 -748
  22. package/dist/index.d.ts +378 -12
  23. package/dist/index.js +223 -320
  24. package/dist/index.js.map +1 -1
  25. package/dist/intelligence.d.ts +5 -5
  26. package/dist/intelligence.js +7 -8
  27. package/dist/intelligence.js.map +1 -1
  28. package/dist/kernel.d.ts +4 -4
  29. package/dist/kernel.js +9 -9
  30. package/dist/{loop-runner-bin-DZglq4Cf.d.ts → loop-runner-bin-DZfRUVWy.d.ts} +3 -3
  31. package/dist/{loop-runner-bin-DQIHnCL0.js → loop-runner-bin-rVrSX5l1.js} +3 -3
  32. package/dist/{loop-runner-bin-DQIHnCL0.js.map → loop-runner-bin-rVrSX5l1.js.map} +1 -1
  33. package/dist/loop-runner-bin.d.ts +1 -1
  34. package/dist/loop-runner-bin.js +1 -1
  35. package/dist/mcp/bin.js +3 -3
  36. package/dist/mcp/index.d.ts +6 -35
  37. package/dist/mcp/index.js +311 -364
  38. package/dist/mcp/index.js.map +1 -1
  39. package/dist/model-policy-DydyWTQg.js.map +1 -1
  40. package/dist/{openai-tools-DvR82zEo.d.ts → openai-tools-YO30D2s3.d.ts} +2 -2
  41. package/dist/{prepare-CGVNMb1o.js → prepare--nWcazPr.js} +7 -13
  42. package/dist/prepare--nWcazPr.js.map +1 -0
  43. package/dist/{profile-BetOB4_Q.js → profile-h04LDjV6.js} +2 -2
  44. package/dist/{profile-BetOB4_Q.js.map → profile-h04LDjV6.js.map} +1 -1
  45. package/dist/profiles.d.ts +2 -94
  46. package/dist/profiles.js +2 -451
  47. package/dist/profiles.js.map +1 -1
  48. package/dist/{protected-model-port-CAa0t1MT.d.ts → protected-model-port-C9QtEf3y.d.ts} +2 -2
  49. package/dist/{protected-model-port-CuVHkhti.js → protected-model-port-wwalbyXM.js} +4 -4
  50. package/dist/{protected-model-port-CuVHkhti.js.map → protected-model-port-wwalbyXM.js.map} +1 -1
  51. package/dist/{provision-supervisor-IXBlLHE0.js → provision-supervisor-WxFEFQeJ.js} +14 -24
  52. package/dist/provision-supervisor-WxFEFQeJ.js.map +1 -0
  53. package/dist/{runtime-DpEt5v42.js → runtime-B9eBIyws.js} +86 -496
  54. package/dist/runtime-B9eBIyws.js.map +1 -0
  55. package/dist/{search-method-DvU-fc-f.js → search-executor-2tWr38Qw.js} +239 -1132
  56. package/dist/search-executor-2tWr38Qw.js.map +1 -0
  57. package/dist/{server-CIE8s4AN.js → server-CpKcrOPj.js} +5 -12
  58. package/dist/server-CpKcrOPj.js.map +1 -0
  59. package/dist/{stream-agent-turn-I3bb0eqF.d.ts → stream-agent-turn-B1giFgOg.d.ts} +4 -2
  60. package/dist/{substrate-UjsxukjZ.d.ts → substrate-L_sC7jCD.d.ts} +2 -2
  61. package/dist/{supervise-C5mktzrh.js → supervise-DllOHM4M.js} +206 -80
  62. package/dist/supervise-DllOHM4M.js.map +1 -0
  63. package/dist/{supervisor-CQSu5XGl.js → supervisor-gCfG6K1-.js} +1130 -1667
  64. package/dist/supervisor-gCfG6K1-.js.map +1 -0
  65. package/dist/testing.d.ts +2 -2
  66. package/dist/testing.js +14 -14
  67. package/dist/tui/index.d.ts +1 -1
  68. package/dist/tui/index.js +1 -1
  69. package/dist/{types-C73caP0U.d.ts → types-DeuEkBhI.d.ts} +167 -261
  70. package/dist/{workspace-archive-pz8YJ1fr.d.ts → workspace-streams-CpSmt3zx.d.ts} +67 -3
  71. package/dist/{workspace-streams-D5gHJdTb.js → workspace-streams-ILw0eWZ0.js} +694 -2
  72. package/dist/workspace-streams-ILw0eWZ0.js.map +1 -0
  73. package/package.json +8 -8
  74. package/skills/generate-eval/SKILL.md +1 -1
  75. package/skills/profile-authoring/SKILL.md +5 -5
  76. package/skills/supervise/SKILL.md +2 -2
  77. package/dist/coordination-driver-DzTvehd6.js.map +0 -1
  78. package/dist/delegate-vJ2g76r6.js.map +0 -1
  79. package/dist/graph-BDQh3qry.js.map +0 -1
  80. package/dist/improvement-cycle-D6cPLi6k.js.map +0 -1
  81. package/dist/prepare-CGVNMb1o.js.map +0 -1
  82. package/dist/provision-supervisor-IXBlLHE0.js.map +0 -1
  83. package/dist/runtime-DpEt5v42.js.map +0 -1
  84. package/dist/search-method-DvU-fc-f.js.map +0 -1
  85. package/dist/server-CIE8s4AN.js.map +0 -1
  86. package/dist/supervise-C5mktzrh.js.map +0 -1
  87. package/dist/supervisor-CQSu5XGl.js.map +0 -1
  88. 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
- export { AgentCandidateProtectedModelSettlement as A, CanonicalCandidateDocument as B, AgentCandidateMemoryResetResult as C, AgentCandidateOutputPurpose as D, AgentCandidateOutputArtifactPort as E, AgentCandidateTaskExecution as F, PreparedAgentCandidateLaunch as G, PreparedAgentCandidateExecution as H, AgentCandidateVerificationPorts as I, VerifiedAgentCandidate as J, PreparedAgentCandidateTrace as K, AgentCandidateWorkspacePort as L, AgentCandidateProtectedRunCapture as M, AgentCandidateRepositoryPort as N, AgentCandidateProtectedModelActivation as O, AgentCandidateRunFinalization as P, CANDIDATE_TRACE_ENV as R, AgentCandidateMemoryPort as S, AgentCandidateModelPort as T, PreparedAgentCandidateInstruction as U, PersistedTaskOutcomeEvidence as V, PreparedAgentCandidateKnowledge as W, AgentCandidateExecutionRoots as X, VerifiedAgentCandidateTaskOutcome as Y, AgentCandidateExecutorRequest as _, captureAgentCandidateWorkspace as a, AgentCandidateExecutorWorkspaceFile as b, AgentCandidateArtifactPort as c, AgentCandidateContainerPort as d, AgentCandidateExecutionPorts as f, AgentCandidateExecutorProfileFile as g, AgentCandidateExecutorPort as h, CreateAgentCandidateWorkspacePortOptions as i, AgentCandidateProtectedModelSettlementCall as j, AgentCandidateProtectedModelReservation as k, AgentCandidateBenchmarkGraderIdentity as l, AgentCandidateExecutorMemoryCapture as m, CaptureAgentCandidateWorkspaceOptions as n, captureAgentCandidateWorkspaceFiles as o, AgentCandidateExecutorFinalCapture as p, ResolvedAgentCandidateContainer as q, CapturedAgentCandidateWorkspace as r, createAgentCandidateWorkspacePort as s, AgentCandidateWorkspaceArchiveLimits as t, AgentCandidateBenchmarkGraderPort as u, AgentCandidateExecutorStopRequest as v, AgentCandidateModelLimits as w, AgentCandidateExecutorWorkspaceInput as x, AgentCandidateExecutorTaskOutcomeCapture as y, CANDIDATE_TRACE_TAGS as z };
554
- //# sourceMappingURL=workspace-archive-pz8YJ1fr.d.ts.map
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