@tangle-network/agent-runtime 0.193.1 → 0.195.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.
Files changed (131) hide show
  1. package/dist/{activation-BismttgN.js → activation-DtIbcFOX.js} +3 -3
  2. package/dist/{activation-BismttgN.js.map → activation-DtIbcFOX.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/candidate-execution/index.js +4 -4
  6. package/dist/{candidate-execution-BSkZErxD.js → candidate-execution-nvqVIMyS.js} +5 -4
  7. package/dist/{candidate-execution-BSkZErxD.js.map → candidate-execution-nvqVIMyS.js.map} +1 -1
  8. package/dist/{conversation-DILnmy84.js → conversation-BXPWMOSd.js} +4 -5
  9. package/dist/{conversation-DILnmy84.js.map → conversation-BXPWMOSd.js.map} +1 -1
  10. package/dist/conversation.d.ts +1 -1
  11. package/dist/conversation.js +1 -1
  12. package/dist/{coordination-driver-DujHiIGa.js → coordination-driver-iSN-m3VX.js} +281 -244
  13. package/dist/coordination-driver-iSN-m3VX.js.map +1 -0
  14. package/dist/{authoring-DWiqKSDY.js → delegate-DCC2muUd.js} +56 -13
  15. package/dist/delegate-DCC2muUd.js.map +1 -0
  16. package/dist/delegation-status-BlsbSeOB.js +358 -0
  17. package/dist/delegation-status-BlsbSeOB.js.map +1 -0
  18. package/dist/durable.d.ts +2 -2
  19. package/dist/durable.js +3 -3
  20. package/dist/{environment-provider-DEwsolvi.js → environment-provider-Dr-wfnHg.js} +422 -8
  21. package/dist/environment-provider-Dr-wfnHg.js.map +1 -0
  22. package/dist/{environment-provider-DpPGJfK-.d.ts → environment-provider-adVa6X7a.d.ts} +2 -2
  23. package/dist/environment-provider.d.ts +1 -1
  24. package/dist/environment-provider.js +1 -1
  25. package/dist/{graph-DORfp9WX.js → graph-DghidDx5.js} +138 -5
  26. package/dist/graph-DghidDx5.js.map +1 -0
  27. package/dist/graph.d.ts +3 -3
  28. package/dist/graph.js +4 -5
  29. package/dist/graph.js.map +1 -1
  30. package/dist/{improve-Bn1zpWHF.d.ts → improve-7VTwse1c.d.ts} +6 -6
  31. package/dist/{improvement-cycle-BbsiYcpH.js → improvement-cycle-bTBySunH.js} +22 -8
  32. package/dist/{improvement-cycle-BbsiYcpH.js.map → improvement-cycle-bTBySunH.js.map} +1 -1
  33. package/dist/{index-Vz-13VZq.d.ts → index-CVD30soi.d.ts} +4 -4
  34. package/dist/{index-DV1lzp9p.d.ts → index-DNx0nWZH.d.ts} +57 -51
  35. package/dist/{index-RM2oRI9s.d.ts → index-DO6DHgRP.d.ts} +2 -2
  36. package/dist/index.d.ts +10 -9
  37. package/dist/index.js +75 -29
  38. package/dist/index.js.map +1 -1
  39. package/dist/intelligence.d.ts +5 -5
  40. package/dist/intelligence.js +7 -6
  41. package/dist/intelligence.js.map +1 -1
  42. package/dist/{executable-spec-DxuiDFAU.js → jsonl-file-Bh1Q9nt0.js} +59 -3
  43. package/dist/jsonl-file-Bh1Q9nt0.js.map +1 -0
  44. package/dist/kernel.d.ts +6 -6
  45. package/dist/kernel.js +11 -12
  46. package/dist/{knowledge-RW1pbZCH.js → knowledge-U8WJ5xCI.js} +7 -17
  47. package/dist/knowledge-U8WJ5xCI.js.map +1 -0
  48. package/dist/knowledge.d.ts +1 -1
  49. package/dist/knowledge.js +1 -1
  50. package/dist/{loop-runner-bin-sBwcyQTc.js → loop-runner-bin-BU2NACsF.js} +3 -3
  51. package/dist/{loop-runner-bin-sBwcyQTc.js.map → loop-runner-bin-BU2NACsF.js.map} +1 -1
  52. package/dist/{loop-runner-bin-CGraqNiA.d.ts → loop-runner-bin-b4585v9Z.d.ts} +3 -3
  53. package/dist/loop-runner-bin.d.ts +1 -1
  54. package/dist/loop-runner-bin.js +1 -1
  55. package/dist/{materialization-CekWK6OO.js → materialization-vZssF9Nx.js} +28 -3
  56. package/dist/materialization-vZssF9Nx.js.map +1 -0
  57. package/dist/mcp/bin.js +3 -3
  58. package/dist/mcp/index.d.ts +4 -4
  59. package/dist/mcp/index.js +8 -8
  60. package/dist/mcp/index.js.map +1 -1
  61. package/dist/{openai-tools-6jUqkGG7.js → openai-tools-DmvmaG0a.js} +2 -2
  62. package/dist/{openai-tools-6jUqkGG7.js.map → openai-tools-DmvmaG0a.js.map} +1 -1
  63. package/dist/{prepare-B5fJ7mLS.js → prepare-DDGp0-rW.js} +4 -59
  64. package/dist/prepare-DDGp0-rW.js.map +1 -0
  65. package/dist/primeintellect/index.d.ts +1 -1
  66. package/dist/profiles.js +454 -1
  67. package/dist/profiles.js.map +1 -1
  68. package/dist/{protected-model-port-B0xFSAjt.js → protected-model-port-DxFN8DLS.js} +3 -2
  69. package/dist/{protected-model-port-B0xFSAjt.js.map → protected-model-port-DxFN8DLS.js.map} +1 -1
  70. package/dist/{protected-redaction--F3v1oo8.js → protected-redaction-wGo44k2K.js} +54 -3
  71. package/dist/protected-redaction-wGo44k2K.js.map +1 -0
  72. package/dist/{provision-supervisor-CddfH9mg.js → provision-supervisor-CRPbnJiB.js} +6 -8
  73. package/dist/{provision-supervisor-CddfH9mg.js.map → provision-supervisor-CRPbnJiB.js.map} +1 -1
  74. package/dist/{redact-D0OzQsyt.js → redact-BOU77QfQ.js} +1013 -24
  75. package/dist/redact-BOU77QfQ.js.map +1 -0
  76. package/dist/{runtime-V91N6sPc.d.ts → runtime-B8x43nGP.d.ts} +5 -4
  77. package/dist/{runtime-ZM4i-jEF.js → runtime-CuNJ0opC.js} +153 -77
  78. package/dist/runtime-CuNJ0opC.js.map +1 -0
  79. package/dist/server-D6XmE1Du.js +1311 -0
  80. package/dist/server-D6XmE1Du.js.map +1 -0
  81. package/dist/{stream-agent-turn-1ahpdeIo.d.ts → stream-agent-turn-B-gtBlOy.d.ts} +2 -2
  82. package/dist/{stream-agent-turn-DWWe_7bh.js → stream-agent-turn-DOtEsvCV.js} +3 -3
  83. package/dist/{stream-agent-turn-DWWe_7bh.js.map → stream-agent-turn-DOtEsvCV.js.map} +1 -1
  84. package/dist/{structural-rollout-CktnUTCC.js → structural-rollout-DxEQ77H7.js} +37 -51
  85. package/dist/structural-rollout-DxEQ77H7.js.map +1 -0
  86. package/dist/{supervise-Dj6zd2C7.js → supervise-C0V3pZXK.js} +154 -1961
  87. package/dist/supervise-C0V3pZXK.js.map +1 -0
  88. package/dist/testing.d.ts +2 -2
  89. package/dist/testing.js +14 -13
  90. package/dist/testing.js.map +1 -1
  91. package/dist/tui/index.d.ts +1 -1
  92. package/dist/tui/index.js +1 -1
  93. package/dist/{types-CGez_ZHQ.d.ts → types-B_pNTBjK.d.ts} +5 -2
  94. package/dist/{workspace-archive-yAPDklLV.js → workspace-archive-Ybomp7AN.js} +3 -2
  95. package/dist/{workspace-archive-yAPDklLV.js.map → workspace-archive-Ybomp7AN.js.map} +1 -1
  96. package/package.json +4 -4
  97. package/skills/agent-graphs/SKILL.md +28 -123
  98. package/skills/agent-graphs/references/authoring.md +34 -0
  99. package/skills/agent-graphs/references/measurement.md +18 -0
  100. package/skills/build-with-agent-runtime/SKILL.md +31 -117
  101. package/skills/build-with-agent-runtime/references/improvement.md +32 -0
  102. package/skills/codemode/SKILL.md +22 -34
  103. package/skills/codemode/references/runtime-execution.md +14 -0
  104. package/skills/generate-eval/SKILL.md +2 -1
  105. package/skills/loop-writer/SKILL.md +30 -84
  106. package/skills/supervise/SKILL.md +43 -77
  107. package/skills/supervise/references/profile-authoring.md +19 -0
  108. package/dist/authoring-DWiqKSDY.js.map +0 -1
  109. package/dist/coordination-driver-DujHiIGa.js.map +0 -1
  110. package/dist/environment-provider-DEwsolvi.js.map +0 -1
  111. package/dist/executable-spec-DxuiDFAU.js.map +0 -1
  112. package/dist/graph-DORfp9WX.js.map +0 -1
  113. package/dist/jsonl-file-CDfsCI5s.js +0 -59
  114. package/dist/jsonl-file-CDfsCI5s.js.map +0 -1
  115. package/dist/knowledge-RW1pbZCH.js.map +0 -1
  116. package/dist/materialization-CekWK6OO.js.map +0 -1
  117. package/dist/prepare-B5fJ7mLS.js.map +0 -1
  118. package/dist/protected-redaction--F3v1oo8.js.map +0 -1
  119. package/dist/redact-D0OzQsyt.js.map +0 -1
  120. package/dist/researcher-hgPa5p9i.js +0 -457
  121. package/dist/researcher-hgPa5p9i.js.map +0 -1
  122. package/dist/runtime-ZM4i-jEF.js.map +0 -1
  123. package/dist/snapshot-CTAf4uuA.js +0 -26
  124. package/dist/snapshot-CTAf4uuA.js.map +0 -1
  125. package/dist/spawn-journal-B9eTmVAn.js +0 -999
  126. package/dist/spawn-journal-B9eTmVAn.js.map +0 -1
  127. package/dist/structural-rollout-CktnUTCC.js.map +0 -1
  128. package/dist/supervise-Dj6zd2C7.js.map +0 -1
  129. package/dist/util-mCNUeboW.js +0 -419
  130. package/dist/util-mCNUeboW.js.map +0 -1
  131. package/skills/agent-graphs/IMPROVE.md +0 -58
@@ -1,9 +1,9 @@
1
- import { i as CollectedAgentTurn, r as AgentTurnUsage } from "./stream-agent-turn-1ahpdeIo.js";
2
- import { c as ExecutorConfig } from "./runtime-V91N6sPc.js";
1
+ import { i as CollectedAgentTurn, r as AgentTurnUsage } from "./stream-agent-turn-B-gtBlOy.js";
2
+ import { c as ExecutorConfig } from "./runtime-B8x43nGP.js";
3
3
  import { AgentImprovementSurface, AgentProfile, AgentProfileDiff, HarnessType, ReasoningEffort, Sha256Digest } from "@tangle-network/agent-interface";
4
4
  import { CostLedgerHandle, MaximumCharge, ProposalFinding } from "@tangle-network/agent-eval";
5
5
  import { CampaignScenarioIdentity, CompareOptimizationMethodsOptions, OptimizationMethod, OptimizationMethodComparison, WorktreeAdapter } from "@tangle-network/agent-eval/campaign";
6
- import { MutableSurface, Scenario as Scenario$1, SelfImproveBudget, SelfImproveOptions, SelfImproveResult } from "@tangle-network/agent-eval/contract";
6
+ import { MutableSurface, Scenario as Scenario$1, SelfImproveBudget, SelfImproveOptions, SelfImproveProposerResult } from "@tangle-network/agent-eval/contract";
7
7
  //#region src/improvement/improvement-driver.d.ts
8
8
  /** The byte-producing path that differs between the cheap
9
9
  * reflective path and the full agentic path. A generator makes (uncommitted)
@@ -502,7 +502,7 @@ interface ImproveResultBase<TCandidate extends ImprovementCandidate> {
502
502
  /** Frozen candidate only. Live state is changed through an approved activation. */
503
503
  candidate: TCandidate;
504
504
  /** Final-test decision for this search result. */
505
- decision: SelfImproveResult<Scenario$1, unknown>['gateDecision'];
505
+ decision: SelfImproveProposerResult<Scenario$1, unknown>['gateDecision'];
506
506
  /** Final-test lift when one was measured. */
507
507
  lift?: number;
508
508
  /** Paired final-test confidence interval for method-based profile runs. */
@@ -547,7 +547,7 @@ interface ImproveMethodResult extends ImproveResultBase<ImprovementProfileCandid
547
547
  }
548
548
  interface ImproveCodeResult<TScenario extends Scenario$1, TArtifact> extends ImproveResultBase<ImprovementCodeCandidate> {
549
549
  mode: 'code';
550
- raw: SelfImproveResult<TScenario, TArtifact>;
550
+ raw: SelfImproveProposerResult<TScenario, TArtifact>;
551
551
  }
552
552
  type ImproveResult<TScenario extends Scenario$1, TArtifact> = ImproveMethodResult | ImproveCodeResult<TScenario, TArtifact>;
553
553
  //#endregion
@@ -562,4 +562,4 @@ declare function improve<TScenario extends Scenario$1, TArtifact>(profile: Agent
562
562
  declare function improve<TScenario extends Scenario$1, TArtifact>(opts: ImproveCodeRunOptions<TScenario, TArtifact>): Promise<ImproveCodeResult<TScenario, TArtifact>>;
563
563
  //#endregion
564
564
  export { CandidateGenerator as $, ImprovementProfileCandidate as A, ImprovementRefusedProfilePopulationCandidate as B, ImproveRuntimeCodeGeneratorOptions as C, ImprovementCandidate as D, ImproveSurface as E, ImprovementProfilePopulationCandidate as F, AgenticGeneratorShotDisposition as G, ReadonlyAgentProfile as H, ImprovementProfilePopulationCandidateSource as I, Verifier as J, AgenticGeneratorShotExecution as K, ImprovementProfilePopulationLineage as L, ImprovementProfileCandidatePopulationAvailable as M, ImprovementProfileCandidatePopulationUnavailable as N, ImprovementCodeCandidate as O, ImprovementProfilePopulationArtifactSource as P, defaultBuildPrompt as Q, ImprovementProfilePopulationLineageNode as R, ImproveResult as S, ImproveSkillsOptions as T, AgenticGeneratorExecutorForWorktree as U, DeepReadonly as V, AgenticGeneratorOptions as W, agenticGenerator as X, VerifyResult as Y, commandVerifier as Z, ImproveOptimizationRunOptions as _, ImproveCodeOptions as a, ImproveProfileComponents as b, ImproveCost as c, ImproveMethodContext as d, ImproveMethodFactory as f, ImproveMethodSource as g, ImproveMethodResult as h, ImproveCodeBaseOptions as i, ImprovementProfileCandidatePopulation as j, ImprovementMaterializedProfilePopulationCandidate as k, ImproveCustomCodeGeneratorOptions as l, ImproveMethodOptions as m, ImproveCandidateValidationInput as n, ImproveCodeResult as o, ImproveMethodLineage as p, AgenticGeneratorShotReceipt as q, ImproveCandidateValidator as r, ImproveCodeRunOptions as s, improve as t, ImproveLineage as u, ImproveOptions as v, ImproveScenarioPartitions as w, ImproveProfileSurface as x, ImproveProfileAgent as y, ImprovementProfilePopulationObservationSource as z };
565
- //# sourceMappingURL=improve-Bn1zpWHF.d.ts.map
565
+ //# sourceMappingURL=improve-7VTwse1c.d.ts.map
@@ -1,10 +1,11 @@
1
+ import { D as detachedSnapshot } from "./materialization-vZssF9Nx.js";
1
2
  import { i as ConfigError } from "./errors-CDZ8XsVj.js";
2
- import { n as streamAgentTurn, t as collectAgentTurn } from "./stream-agent-turn-DWWe_7bh.js";
3
- import { n as detachedSnapshot } from "./snapshot-CTAf4uuA.js";
4
- import { $ as parseExactAgentProfile, G as applyExactAgentProfileDiff, J as createAgentCandidateProfileActivation, K as assertCandidateProfileBinding, Q as parseAgentCandidateProfileActivation, W as agentCandidateProfileAsAgentProfile, X as materializeAgentCandidateProfilePlan, Z as omitUndefinedObjectFields, ct as canonicalCandidateBytes, d as verifiedResourceTextByDigest, f as verifyAgentCandidateBundle, gt as verifyCanonicalCandidateDocument, lt as canonicalCandidateDigest$1, mt as omitTopLevelDigest, n as executePreparedAgentCandidate, pt as immutableCandidateValue, t as prepareAgentCandidateExecution, ut as canonicalCandidateDocument } from "./prepare-B5fJ7mLS.js";
3
+ import { n as streamAgentTurn, t as collectAgentTurn } from "./stream-agent-turn-DOtEsvCV.js";
4
+ import { a as canonicalCandidateBytes, d as omitTopLevelDigest, o as canonicalCandidateDigest$1, p as verifyCanonicalCandidateDocument, s as canonicalCandidateDocument, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
5
+ import { $ as parseExactAgentProfile, G as applyExactAgentProfileDiff, J as createAgentCandidateProfileActivation, K as assertCandidateProfileBinding, Q as parseAgentCandidateProfileActivation, W as agentCandidateProfileAsAgentProfile, X as materializeAgentCandidateProfilePlan, Z as omitUndefinedObjectFields, d as verifiedResourceTextByDigest, f as verifyAgentCandidateBundle, n as executePreparedAgentCandidate, t as prepareAgentCandidateExecution } from "./prepare-DDGp0-rW.js";
5
6
  import { a as concreteProfileModel, t as assertExecutableAgentProfile } from "./model-policy-Wf2MxXJ9.js";
6
- import { Tn as runSettledCommand, lt as createExecutor } from "./redact-D0OzQsyt.js";
7
- import { D as optimizerMethod, a as defaultStructuralRolloutPolicy } from "./structural-rollout-CktnUTCC.js";
7
+ import { Vn as runSettledCommand, lt as createExecutor } from "./redact-BOU77QfQ.js";
8
+ import { D as optimizerMethod, a as defaultStructuralRolloutPolicy } from "./structural-rollout-DxEQ77H7.js";
8
9
  import { t as runAnalystLoop } from "./analyst-loop-CSH7P-Bf.js";
9
10
  import { AGENT_IMPROVEMENT_SOURCE_METADATA_KEY, agentCandidateMaterializationReceiptSchema, agentCandidateRunReceiptSchema, agentImprovementActivationSchema, agentImprovementProposalSchema, agentImprovementReviewSchema, agentImprovementSourceMetadata, agentImprovementSourceSchema, agentProfileDiffSchema, agentProfileImprovementArmSchema, agentProfileImprovementExecutionRefSchema, agentProfileModelHintsSchema, agentProfileSchema, applyAgentProfileDiff, candidateExecutionEvidenceSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, changedProfileImprovementSurfaces, defineAgentProfileDiff, diffAgentProfiles, numbersApproximatelyEqual, sha256DigestSchema } from "@tangle-network/agent-interface";
10
11
  import { CostLedger, canonicalJson, makeProposalFinding } from "@tangle-network/agent-eval";
@@ -646,7 +647,8 @@ function worktreeDirty(worktreePath) {
646
647
  function worktreeChangedPaths(worktreePath) {
647
648
  const result = spawnSync("git", [
648
649
  "status",
649
- "--porcelain",
650
+ "--porcelain=v1",
651
+ "-z",
650
652
  "--untracked-files=all"
651
653
  ], {
652
654
  cwd: worktreePath,
@@ -654,7 +656,19 @@ function worktreeChangedPaths(worktreePath) {
654
656
  });
655
657
  if (result.error) throw new Error(`agenticGenerator: git status failed to spawn in ${worktreePath}: ${result.error.message}`);
656
658
  if (result.status !== 0) throw new Error(`agenticGenerator: git status exited ${result.status} in ${worktreePath}: ${result.stderr.trim()}`);
657
- return result.stdout.split("\n").map((line) => line.trim()).filter((line) => line.length > 0).map((line) => line.slice(3).trim());
659
+ const records = result.stdout.split("\0");
660
+ const paths = [];
661
+ for (let i = 0; i < records.length; i += 1) {
662
+ const record = records[i];
663
+ if (!record) continue;
664
+ paths.push(record.slice(3));
665
+ if (record[0] === "R" || record[1] === "R" || record[0] === "C" || record[1] === "C") {
666
+ const source = records[++i];
667
+ if (!source) throw new Error(`agenticGenerator: git status omitted a rename/copy path in ${worktreePath}`);
668
+ paths.push(source);
669
+ }
670
+ }
671
+ return paths;
658
672
  }
659
673
  //#endregion
660
674
  //#region src/improvement/cleanup.ts
@@ -3227,4 +3241,4 @@ function sameOrderedValues(left, right) {
3227
3241
  //#endregion
3228
3242
  export { agentImprovementTargetInput as A, ROLLOUT_POLICY_EXTENSION as B, optimizationActivationReceiptFromMetadata as C, agentImprovementProfileSurfaceDigest as D, agentImprovementProfileDiffs as E, isAgentImprovementProfileSurface as F, structuralRolloutPolicyFromProfile as G, normalizeRolloutPolicy as H, isAgentProfileMeasuredSurface as I, defaultBuildPrompt as J, agenticGenerator as K, improve as L, agentProfileImprovementStateDigest as M, assertProfileImprovementTargetsShareIdentity as N, agentImprovementProfileSurfaceInput as O, buildAgentImprovementActivationTargets as P, withMethodRuntimeControls as R, createOptimizationActivationReceipt as S, AGENT_PROFILE_MEASURED_SURFACES as T, parseRolloutPolicy as U, applyRolloutPolicyToProfile as V, serializeRolloutPolicy as W, profilePolicyWithBudget as _, executeAgentCandidateExperimentCell as a, profileTaskScenarioIdentity as b, requireSealedCandidateExperiment as c, verifyAgentImprovementActivation as d, verifyAgentImprovementProposal as f, profileImprovementMetadata as g, createProfileImprovementCostLedger as h, createAgentImprovementProposal as i, agentImprovementTargetProfileDiffs as j, agentImprovementTargetDigest as k, reviewAgentImprovementProposal as l, verifyCandidateExecutionEvidence as m, createAgentImprovementActivation as n, proposeAgentImprovement as o, verifyAgentImprovementReview as p, commandVerifier as q, createAgentImprovementMeasuredComparison as r, proposeAgentProfileImprovement as s, AgentCandidateExperimentCellExecutionError as t, runAgentCandidateExperiment as u, profilePreparationAccounting as v, AGENT_IMPROVEMENT_PROFILE_SURFACES as w, sealProfileImprovementBenchmark as x, profileStateDigest as y, rawTraceDistiller as z };
3229
3243
 
3230
- //# sourceMappingURL=improvement-cycle-BbsiYcpH.js.map
3244
+ //# sourceMappingURL=improvement-cycle-bTBySunH.js.map