@tangle-network/agent-runtime 0.199.0 → 0.200.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-c3um4SY1.d.ts → activation-BPxs-Iu2.d.ts} +2 -2
- package/dist/{activation-zQWmiiPg.js → activation-Ct-BTTzF.js} +2 -2
- package/dist/{activation-zQWmiiPg.js.map → activation-Ct-BTTzF.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -3
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop-DZw5QWT9.js +176 -0
- package/dist/analyst-loop-DZw5QWT9.js.map +1 -0
- package/dist/analyst-loop.d.ts +1 -11
- package/dist/analyst-loop.js +2 -2
- package/dist/{coordination-driver-vWb7kViA.js → coordination-driver-qdAwriPV.js} +8 -5
- package/dist/{coordination-driver-vWb7kViA.js.map → coordination-driver-qdAwriPV.js.map} +1 -1
- package/dist/{delegate-Ch93bpH5.js → delegate-BWHG-zZW.js} +2 -2
- package/dist/{delegate-Ch93bpH5.js.map → delegate-BWHG-zZW.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +2 -2
- package/dist/{graph-C6pT08K-.js → graph-cCqKhLqz.js} +3 -3
- package/dist/{graph-C6pT08K-.js.map → graph-cCqKhLqz.js.map} +1 -1
- package/dist/{improvement-cycle-CxZKIbLD.js → improvement-cycle-yia1ST3c.js} +4 -4
- package/dist/{improvement-cycle-CxZKIbLD.js.map → improvement-cycle-yia1ST3c.js.map} +1 -1
- package/dist/{index-CMTUgh-T.d.ts → index-Br191WbE.d.ts} +190 -142
- package/dist/index.d.ts +4 -4
- package/dist/index.js +20 -46
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +13 -104
- package/dist/intelligence.js +7 -406
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +3 -3
- package/dist/kernel.js +8 -9
- package/dist/{loop-runner-bin-CAf1OQot.d.ts → loop-runner-bin-BNRdsDOn.d.ts} +3 -3
- package/dist/{loop-runner-bin-SNrh585k.js → loop-runner-bin-jQ8hXO9J.js} +4 -4
- package/dist/{loop-runner-bin-SNrh585k.js.map → loop-runner-bin-jQ8hXO9J.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-D5YSCDVD.js → provision-supervisor-BA2-GPth.js} +3 -3
- package/dist/{provision-supervisor-D5YSCDVD.js.map → provision-supervisor-BA2-GPth.js.map} +1 -1
- package/dist/{redact-Dv8WcCKy.js → redact-h-oaw11Q.js} +13093 -11221
- package/dist/redact-h-oaw11Q.js.map +1 -0
- package/dist/{runtime-BN16GbTA.js → runtime-DeqdBVeC.js} +8 -9
- package/dist/{runtime-BN16GbTA.js.map → runtime-DeqdBVeC.js.map} +1 -1
- package/dist/{server-CbNb_N1x.js → server-U_k9NUbk.js} +3 -3
- package/dist/{server-CbNb_N1x.js.map → server-U_k9NUbk.js.map} +1 -1
- package/dist/{stream-agent-turn-CLOQr497.d.ts → stream-agent-turn-CJWthifS.d.ts} +42 -13
- package/dist/{structural-rollout-DANCelu6.js → structural-rollout-BcMmrpv4.js} +2 -3
- package/dist/{structural-rollout-DANCelu6.js.map → structural-rollout-BcMmrpv4.js.map} +1 -1
- package/dist/{supervise-BGNXB8No.js → supervise-DmFO50N6.js} +497 -90
- package/dist/supervise-DmFO50N6.js.map +1 -0
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/package.json +3 -3
- package/dist/analyst-loop-BknOQUW5.js +0 -546
- package/dist/analyst-loop-BknOQUW5.js.map +0 -1
- package/dist/redact-Dv8WcCKy.js.map +0 -1
- package/dist/sandbox-events-DbC2WKKS.js +0 -929
- package/dist/sandbox-events-DbC2WKKS.js.map +0 -1
- package/dist/supervise-BGNXB8No.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { $n as
|
|
1
|
+
import { $n as buildRuntimeEventOtelSpans, Hr as parseCommittedJsonLines, Mi as providerMessageText, Qn as buildLoopSpanNodes, Ur as prepareJsonlAppend, Vr as isNoEntError, Wr as writeAllBytes, Xn as INTELLIGENCE_WIRE_VERSION, Zn as buildLoopOtelSpans, ar as loopEventToOtelSpan, cr as toOtelAttributes, dr as sanitizeAgentRuntimeEvent, er as createOpenInferenceFileExporter, fr as sanitizeKnowledgeReadinessReport, ir as generateSpanId, li as executableAgentProfileSnapshot, lr as createRuntimeEventCollector, n as defaultRedactorIdentityMaterial, nr as exportEvalRuns, or as padSpanId, pr as sanitizeRuntimeStreamEvent, r as resolveRedactor, sr as padTraceId, t as defaultRedactor, tr as createOtelExporter, ur as createRuntimeStreamEventCollector } from "./redact-h-oaw11Q.js";
|
|
2
2
|
import { a as JudgeError, c as RetainedInteractiveAdmissionError, d as RetainedRunDispatchBindingError, f as RuntimeRunStateError, i as ConfigError, l as RetainedInteractiveBindingError, m as ValidationError, o as NotFoundError, r as BackendTransportError, s as PlannerError, t as AgentEvalError, u as RetainedRunAdmissionError } from "./errors-DodWX-cb.js";
|
|
3
|
-
import { A as streamAgentTurn, D as optimizerMethod, F as newRuntimeSession, I as nowIso, L as startOrResumeRuntimeSession, M as createSandboxPromptBackend, N as normalizeBackendStreamEvent, O as strategyAuthorMethod, P as InMemoryRuntimeSessionStore, R as touchSession, j as createIterableBackend } from "./structural-rollout-
|
|
3
|
+
import { A as streamAgentTurn, D as optimizerMethod, F as newRuntimeSession, I as nowIso, L as startOrResumeRuntimeSession, M as createSandboxPromptBackend, N as normalizeBackendStreamEvent, O as strategyAuthorMethod, P as InMemoryRuntimeSessionStore, R as touchSession, j as createIterableBackend } from "./structural-rollout-BcMmrpv4.js";
|
|
4
4
|
import { t as assertExecutableAgentProfile } from "./model-policy-DKDyr-fc.js";
|
|
5
|
-
import { Ft as connectStdioMcp, Pt as McpSpawnFault } from "./runtime-
|
|
5
|
+
import { Ft as connectStdioMcp, Pt as McpSpawnFault } from "./runtime-DeqdBVeC.js";
|
|
6
6
|
import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
7
|
-
import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-
|
|
7
|
+
import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-yia1ST3c.js";
|
|
8
8
|
import { a as canonicalCandidateBytes, d as omitTopLevelDigest, l as embeddedCandidateArtifact, o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
|
|
9
9
|
import { d as persistCandidateOutputArtifact } from "./prepare-CAO1yXov.js";
|
|
10
|
-
import { t as createAgentImprovementActivationResult } from "./activation-
|
|
10
|
+
import { t as createAgentImprovementActivationResult } from "./activation-Ct-BTTzF.js";
|
|
11
11
|
import { i as sealAgentCandidateBundle, t as captureAgentCandidateWorkspace } from "./workspace-archive-BMOnloFf.js";
|
|
12
|
-
import { n as supervise } from "./supervise-
|
|
13
|
-
import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-
|
|
12
|
+
import { n as supervise } from "./supervise-DmFO50N6.js";
|
|
13
|
+
import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-jQ8hXO9J.js";
|
|
14
14
|
import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DoQ32vpe.js";
|
|
15
15
|
import { agentCandidateKnowledgeSchema, agentProfileSchema, canonicalAgentProfileDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
16
16
|
import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
|
|
@@ -1522,46 +1522,20 @@ var OfficialOptimizerUnavailableError = class extends ConfigError {
|
|
|
1522
1522
|
* `adaptive-sequential`, `best-of`, `vote`, or `omni` explicitly.
|
|
1523
1523
|
*/
|
|
1524
1524
|
function officialGepa(options) {
|
|
1525
|
-
|
|
1526
|
-
const redactor = resolveRedactor(redact);
|
|
1527
|
-
const redactionPolicyRef = optimizerRedactionPolicyRef(redact);
|
|
1528
|
-
assertMaxFindingsChars("officialGepa", maxFindingsChars);
|
|
1529
|
-
const objective = redactOptimizerText("officialGepa", "objective", config.objective, redactor);
|
|
1530
|
-
return (context) => {
|
|
1531
|
-
const externalEvaluationRef = optimizerEvidencePolicyRef({
|
|
1532
|
-
runtimeEvaluationRef: context.evaluationRef,
|
|
1533
|
-
redactionPolicyRef,
|
|
1534
|
-
describeScenario,
|
|
1535
|
-
describeArtifact,
|
|
1536
|
-
authorizeSensitiveCandidate
|
|
1537
|
-
});
|
|
1538
|
-
return withMethodRuntimeControls(withDependencyHelp("gepa", externalEvaluationRef, redactor, redactionPolicyRef, gepaOptimizationMethod({
|
|
1539
|
-
...config,
|
|
1540
|
-
objective,
|
|
1541
|
-
evaluationId: externalEvaluationRef,
|
|
1542
|
-
background: methodBackground({
|
|
1543
|
-
context,
|
|
1544
|
-
background,
|
|
1545
|
-
includeFindings,
|
|
1546
|
-
maxFindingsChars,
|
|
1547
|
-
label: "officialGepa",
|
|
1548
|
-
redactor
|
|
1549
|
-
}),
|
|
1550
|
-
...describeScenario ? { describeScenario: (scenario) => redactOptimizerEvidence("officialGepa", "scenario descriptor", describeScenario(scenario), redactor) } : {},
|
|
1551
|
-
...describeArtifact ? { describeArtifact: (artifact, scenario) => redactOptimizerEvidence("officialGepa", "artifact descriptor", describeArtifact(artifact, scenario), redactor) } : {}
|
|
1552
|
-
})), {
|
|
1553
|
-
costAttribution: "optimizer-run",
|
|
1554
|
-
validateCandidate: (input) => assertSafeOptimizerCandidate("officialGepa", input, authorizeSensitiveCandidate)
|
|
1555
|
-
});
|
|
1556
|
-
};
|
|
1525
|
+
return officialOptimizer("gepa", options, (config) => gepaOptimizationMethod(config));
|
|
1557
1526
|
}
|
|
1558
1527
|
/** Build a complete method backed by Microsoft's official SkillOpt trainer. */
|
|
1559
1528
|
function officialSkillOpt(options) {
|
|
1529
|
+
return officialOptimizer("skillopt", options, (config) => skillOptOptimizationMethod(config));
|
|
1530
|
+
}
|
|
1531
|
+
/** Keep evidence redaction, identity, dependency errors, and candidate controls identical for both wrappers. */
|
|
1532
|
+
function officialOptimizer(optimizer, options, create) {
|
|
1533
|
+
const label = optimizer === "gepa" ? "officialGepa" : "officialSkillOpt";
|
|
1560
1534
|
const { background, includeFindings = true, maxFindingsChars, describeScenario, describeArtifact, redact, authorizeSensitiveCandidate, ...config } = options;
|
|
1561
1535
|
const redactor = resolveRedactor(redact);
|
|
1562
1536
|
const redactionPolicyRef = optimizerRedactionPolicyRef(redact);
|
|
1563
|
-
assertMaxFindingsChars(
|
|
1564
|
-
const objective = redactOptimizerText(
|
|
1537
|
+
assertMaxFindingsChars(label, maxFindingsChars);
|
|
1538
|
+
const objective = redactOptimizerText(label, "objective", config.objective, redactor);
|
|
1565
1539
|
return (context) => {
|
|
1566
1540
|
const externalEvaluationRef = optimizerEvidencePolicyRef({
|
|
1567
1541
|
runtimeEvaluationRef: context.evaluationRef,
|
|
@@ -1570,7 +1544,7 @@ function officialSkillOpt(options) {
|
|
|
1570
1544
|
describeArtifact,
|
|
1571
1545
|
authorizeSensitiveCandidate
|
|
1572
1546
|
});
|
|
1573
|
-
return withMethodRuntimeControls(withDependencyHelp(
|
|
1547
|
+
return withMethodRuntimeControls(withDependencyHelp(optimizer, externalEvaluationRef, redactor, redactionPolicyRef, create({
|
|
1574
1548
|
...config,
|
|
1575
1549
|
objective,
|
|
1576
1550
|
evaluationId: externalEvaluationRef,
|
|
@@ -1579,14 +1553,14 @@ function officialSkillOpt(options) {
|
|
|
1579
1553
|
background,
|
|
1580
1554
|
includeFindings,
|
|
1581
1555
|
maxFindingsChars,
|
|
1582
|
-
label
|
|
1556
|
+
label,
|
|
1583
1557
|
redactor
|
|
1584
1558
|
}),
|
|
1585
|
-
...describeScenario ? { describeScenario: (scenario) => redactOptimizerEvidence(
|
|
1586
|
-
...describeArtifact ? { describeArtifact: (artifact, scenario) => redactOptimizerEvidence(
|
|
1559
|
+
...describeScenario ? { describeScenario: (scenario) => redactOptimizerEvidence(label, "scenario descriptor", describeScenario(scenario), redactor) } : {},
|
|
1560
|
+
...describeArtifact ? { describeArtifact: (artifact, scenario) => redactOptimizerEvidence(label, "artifact descriptor", describeArtifact(artifact, scenario), redactor) } : {}
|
|
1587
1561
|
})), {
|
|
1588
1562
|
costAttribution: "optimizer-run",
|
|
1589
|
-
validateCandidate: (input) => assertSafeOptimizerCandidate(
|
|
1563
|
+
validateCandidate: (input) => assertSafeOptimizerCandidate(label, input, authorizeSensitiveCandidate)
|
|
1590
1564
|
});
|
|
1591
1565
|
};
|
|
1592
1566
|
}
|