@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.
- package/dist/{activation-BismttgN.js → activation-DtIbcFOX.js} +3 -3
- package/dist/{activation-BismttgN.js.map → activation-DtIbcFOX.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/candidate-execution/index.js +4 -4
- package/dist/{candidate-execution-BSkZErxD.js → candidate-execution-nvqVIMyS.js} +5 -4
- package/dist/{candidate-execution-BSkZErxD.js.map → candidate-execution-nvqVIMyS.js.map} +1 -1
- package/dist/{conversation-DILnmy84.js → conversation-BXPWMOSd.js} +4 -5
- package/dist/{conversation-DILnmy84.js.map → conversation-BXPWMOSd.js.map} +1 -1
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.js +1 -1
- package/dist/{coordination-driver-DujHiIGa.js → coordination-driver-iSN-m3VX.js} +281 -244
- package/dist/coordination-driver-iSN-m3VX.js.map +1 -0
- package/dist/{authoring-DWiqKSDY.js → delegate-DCC2muUd.js} +56 -13
- package/dist/delegate-DCC2muUd.js.map +1 -0
- package/dist/delegation-status-BlsbSeOB.js +358 -0
- package/dist/delegation-status-BlsbSeOB.js.map +1 -0
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +3 -3
- package/dist/{environment-provider-DEwsolvi.js → environment-provider-Dr-wfnHg.js} +422 -8
- package/dist/environment-provider-Dr-wfnHg.js.map +1 -0
- package/dist/{environment-provider-DpPGJfK-.d.ts → environment-provider-adVa6X7a.d.ts} +2 -2
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{graph-DORfp9WX.js → graph-DghidDx5.js} +138 -5
- package/dist/graph-DghidDx5.js.map +1 -0
- package/dist/graph.d.ts +3 -3
- package/dist/graph.js +4 -5
- package/dist/graph.js.map +1 -1
- package/dist/{improve-Bn1zpWHF.d.ts → improve-7VTwse1c.d.ts} +6 -6
- package/dist/{improvement-cycle-BbsiYcpH.js → improvement-cycle-bTBySunH.js} +22 -8
- package/dist/{improvement-cycle-BbsiYcpH.js.map → improvement-cycle-bTBySunH.js.map} +1 -1
- package/dist/{index-Vz-13VZq.d.ts → index-CVD30soi.d.ts} +4 -4
- package/dist/{index-DV1lzp9p.d.ts → index-DNx0nWZH.d.ts} +57 -51
- package/dist/{index-RM2oRI9s.d.ts → index-DO6DHgRP.d.ts} +2 -2
- package/dist/index.d.ts +10 -9
- package/dist/index.js +75 -29
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +5 -5
- package/dist/intelligence.js +7 -6
- package/dist/intelligence.js.map +1 -1
- package/dist/{executable-spec-DxuiDFAU.js → jsonl-file-Bh1Q9nt0.js} +59 -3
- package/dist/jsonl-file-Bh1Q9nt0.js.map +1 -0
- package/dist/kernel.d.ts +6 -6
- package/dist/kernel.js +11 -12
- package/dist/{knowledge-RW1pbZCH.js → knowledge-U8WJ5xCI.js} +7 -17
- package/dist/knowledge-U8WJ5xCI.js.map +1 -0
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{loop-runner-bin-sBwcyQTc.js → loop-runner-bin-BU2NACsF.js} +3 -3
- package/dist/{loop-runner-bin-sBwcyQTc.js.map → loop-runner-bin-BU2NACsF.js.map} +1 -1
- package/dist/{loop-runner-bin-CGraqNiA.d.ts → loop-runner-bin-b4585v9Z.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{materialization-CekWK6OO.js → materialization-vZssF9Nx.js} +28 -3
- package/dist/materialization-vZssF9Nx.js.map +1 -0
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +8 -8
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-6jUqkGG7.js → openai-tools-DmvmaG0a.js} +2 -2
- package/dist/{openai-tools-6jUqkGG7.js.map → openai-tools-DmvmaG0a.js.map} +1 -1
- package/dist/{prepare-B5fJ7mLS.js → prepare-DDGp0-rW.js} +4 -59
- package/dist/prepare-DDGp0-rW.js.map +1 -0
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/profiles.js +454 -1
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-B0xFSAjt.js → protected-model-port-DxFN8DLS.js} +3 -2
- package/dist/{protected-model-port-B0xFSAjt.js.map → protected-model-port-DxFN8DLS.js.map} +1 -1
- package/dist/{protected-redaction--F3v1oo8.js → protected-redaction-wGo44k2K.js} +54 -3
- package/dist/protected-redaction-wGo44k2K.js.map +1 -0
- package/dist/{provision-supervisor-CddfH9mg.js → provision-supervisor-CRPbnJiB.js} +6 -8
- package/dist/{provision-supervisor-CddfH9mg.js.map → provision-supervisor-CRPbnJiB.js.map} +1 -1
- package/dist/{redact-D0OzQsyt.js → redact-BOU77QfQ.js} +1013 -24
- package/dist/redact-BOU77QfQ.js.map +1 -0
- package/dist/{runtime-V91N6sPc.d.ts → runtime-B8x43nGP.d.ts} +5 -4
- package/dist/{runtime-ZM4i-jEF.js → runtime-CuNJ0opC.js} +153 -77
- package/dist/runtime-CuNJ0opC.js.map +1 -0
- package/dist/server-D6XmE1Du.js +1311 -0
- package/dist/server-D6XmE1Du.js.map +1 -0
- package/dist/{stream-agent-turn-1ahpdeIo.d.ts → stream-agent-turn-B-gtBlOy.d.ts} +2 -2
- package/dist/{stream-agent-turn-DWWe_7bh.js → stream-agent-turn-DOtEsvCV.js} +3 -3
- package/dist/{stream-agent-turn-DWWe_7bh.js.map → stream-agent-turn-DOtEsvCV.js.map} +1 -1
- package/dist/{structural-rollout-CktnUTCC.js → structural-rollout-DxEQ77H7.js} +37 -51
- package/dist/structural-rollout-DxEQ77H7.js.map +1 -0
- package/dist/{supervise-Dj6zd2C7.js → supervise-C0V3pZXK.js} +154 -1961
- package/dist/supervise-C0V3pZXK.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +14 -13
- package/dist/testing.js.map +1 -1
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-CGez_ZHQ.d.ts → types-B_pNTBjK.d.ts} +5 -2
- package/dist/{workspace-archive-yAPDklLV.js → workspace-archive-Ybomp7AN.js} +3 -2
- package/dist/{workspace-archive-yAPDklLV.js.map → workspace-archive-Ybomp7AN.js.map} +1 -1
- package/package.json +4 -4
- package/skills/agent-graphs/SKILL.md +28 -123
- package/skills/agent-graphs/references/authoring.md +34 -0
- package/skills/agent-graphs/references/measurement.md +18 -0
- package/skills/build-with-agent-runtime/SKILL.md +31 -117
- package/skills/build-with-agent-runtime/references/improvement.md +32 -0
- package/skills/codemode/SKILL.md +22 -34
- package/skills/codemode/references/runtime-execution.md +14 -0
- package/skills/generate-eval/SKILL.md +2 -1
- package/skills/loop-writer/SKILL.md +30 -84
- package/skills/supervise/SKILL.md +43 -77
- package/skills/supervise/references/profile-authoring.md +19 -0
- package/dist/authoring-DWiqKSDY.js.map +0 -1
- package/dist/coordination-driver-DujHiIGa.js.map +0 -1
- package/dist/environment-provider-DEwsolvi.js.map +0 -1
- package/dist/executable-spec-DxuiDFAU.js.map +0 -1
- package/dist/graph-DORfp9WX.js.map +0 -1
- package/dist/jsonl-file-CDfsCI5s.js +0 -59
- package/dist/jsonl-file-CDfsCI5s.js.map +0 -1
- package/dist/knowledge-RW1pbZCH.js.map +0 -1
- package/dist/materialization-CekWK6OO.js.map +0 -1
- package/dist/prepare-B5fJ7mLS.js.map +0 -1
- package/dist/protected-redaction--F3v1oo8.js.map +0 -1
- package/dist/redact-D0OzQsyt.js.map +0 -1
- package/dist/researcher-hgPa5p9i.js +0 -457
- package/dist/researcher-hgPa5p9i.js.map +0 -1
- package/dist/runtime-ZM4i-jEF.js.map +0 -1
- package/dist/snapshot-CTAf4uuA.js +0 -26
- package/dist/snapshot-CTAf4uuA.js.map +0 -1
- package/dist/spawn-journal-B9eTmVAn.js +0 -999
- package/dist/spawn-journal-B9eTmVAn.js.map +0 -1
- package/dist/structural-rollout-CktnUTCC.js.map +0 -1
- package/dist/supervise-Dj6zd2C7.js.map +0 -1
- package/dist/util-mCNUeboW.js +0 -419
- package/dist/util-mCNUeboW.js.map +0 -1
- package/skills/agent-graphs/IMPROVE.md +0 -58
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { i as CollectedAgentTurn, r as AgentTurnUsage } from "./stream-agent-turn-
|
|
2
|
-
import { c as ExecutorConfig } from "./runtime-
|
|
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,
|
|
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:
|
|
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:
|
|
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-
|
|
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-
|
|
3
|
-
import {
|
|
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,
|
|
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 {
|
|
7
|
-
import { D as optimizerMethod, a as defaultStructuralRolloutPolicy } from "./structural-rollout-
|
|
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
|
-
|
|
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-
|
|
3244
|
+
//# sourceMappingURL=improvement-cycle-bTBySunH.js.map
|