@tangle-network/agent-runtime 0.115.1 → 0.117.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/README.md +7 -1
- package/dist/{activation-Bt_XVkjK.js → activation-BZ2FyX0O.js} +3 -3
- package/dist/{activation-Bt_XVkjK.js.map → activation-BZ2FyX0O.js.map} +1 -1
- package/dist/agent.d.ts +3 -64
- package/dist/agent.js +5 -207
- package/dist/agent.js.map +1 -1
- package/dist/{analyst-loop-BoNIG2hA.js → analyst-loop-DvSciOfB.js} +2 -2
- package/dist/{analyst-loop-BoNIG2hA.js.map → analyst-loop-DvSciOfB.js.map} +1 -1
- package/dist/analyst-loop.js +1 -1
- package/dist/candidate-execution/index.d.ts +3 -3
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{candidate-execution-CfpJrd3o.js → candidate-execution-PX61zXd2.js} +4 -4
- package/dist/{candidate-execution-CfpJrd3o.js.map → candidate-execution-PX61zXd2.js.map} +1 -1
- package/dist/{environment-provider-Cygthiy3.d.ts → environment-provider-CTZjdIUg.d.ts} +661 -34
- package/dist/{environment-provider-CCaEhA-l.js → environment-provider-CzcEyRL7.js} +140 -31
- package/dist/environment-provider-CzcEyRL7.js.map +1 -0
- package/dist/environment-provider.d.ts +1 -1
- package/dist/environment-provider.js +1 -1
- package/dist/{improvement-cycle-tEswzEPr.js → improvement-cycle-Bcqz8rZI.js} +160 -19
- package/dist/improvement-cycle-Bcqz8rZI.js.map +1 -0
- package/dist/{index-DZukewLl.d.ts → index-BHSYaWrC.d.ts} +3 -3
- package/dist/{index-K7nucOmw.d.ts → index-BTUG4Xln.d.ts} +8 -7
- package/dist/{index-BUWd8QJq.d.ts → index-DPWJxSRa.d.ts} +884 -497
- package/dist/{index-C-FYUuFG.d.ts → index-X2YwyWkc.d.ts} +2 -2
- package/dist/index.d.ts +9 -10
- package/dist/index.js +12 -13
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +10 -9
- package/dist/intelligence.js +15 -9
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +4 -4
- package/dist/kernel.js +8 -8
- package/dist/{knowledge-CUXQE8Sq.js → knowledge-CDlrayRc.js} +7 -7
- package/dist/knowledge-CDlrayRc.js.map +1 -0
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.js +1 -1
- package/dist/{local-harness-BnB1E9nM.d.ts → local-harness-t6cDWDQ2.d.ts} +3 -105
- package/dist/{loop-runner-bin-DzJz48Fb.js → loop-runner-bin-BxhhDtmG.js} +4 -4
- package/dist/{loop-runner-bin-DzJz48Fb.js.map → loop-runner-bin-BxhhDtmG.js.map} +1 -1
- package/dist/{loop-runner-bin-BZl5vp7t.d.ts → loop-runner-bin-oyL7it5O.d.ts} +3 -3
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +43 -10
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +4 -43
- package/dist/mcp/index.js +5 -205
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-CynwZMZd.js → openai-tools-CO9X36zy.js} +2 -2
- package/dist/{openai-tools-CynwZMZd.js.map → openai-tools-CO9X36zy.js.map} +1 -1
- package/dist/{prepare-BHQBb02e.js → prepare-BbI6qGOW.js} +5 -2
- package/dist/prepare-BbI6qGOW.js.map +1 -0
- package/dist/primeintellect/index.d.ts +1 -1
- package/dist/{protected-model-port-BP6Z4eau.d.ts → protected-model-port-B0yXMpLL.d.ts} +10 -2
- package/dist/{protected-model-port-DqAH1Z2M.js → protected-model-port-COnyZfML.js} +2 -2
- package/dist/{protected-model-port-DqAH1Z2M.js.map → protected-model-port-COnyZfML.js.map} +1 -1
- package/dist/{redact-BRaHUFMf.d.ts → redact-BEtQtvd6.d.ts} +2 -2
- package/dist/{runtime-BatQajPB.js → runtime-Ce39zfqn.js} +145 -53
- package/dist/runtime-Ce39zfqn.js.map +1 -0
- package/dist/{sandbox-events-DeI5xX8P.js → sandbox-events-Yhd1GYWl.js} +4 -2
- package/dist/sandbox-events-Yhd1GYWl.js.map +1 -0
- package/dist/spawn-journal-B_mu_oH2.js +857 -0
- package/dist/spawn-journal-B_mu_oH2.js.map +1 -0
- package/dist/{structural-rollout-DEf37yQy.js → structural-rollout-DLwW69R4.js} +4 -4
- package/dist/structural-rollout-DLwW69R4.js.map +1 -0
- package/dist/{supervise-B7TIJR3D.js → supervise-U7_K5yuV.js} +2645 -829
- package/dist/supervise-U7_K5yuV.js.map +1 -0
- package/dist/{supervisor-DzQu5Ydu.js → supervisor-CAXiCKnX.js} +3802 -967
- package/dist/supervisor-CAXiCKnX.js.map +1 -0
- package/dist/testing.js +98 -76
- package/dist/testing.js.map +1 -1
- package/dist/{workspace-archive-DXzJq7WP.js → workspace-archive-CqPIijFA.js} +2 -2
- package/dist/{workspace-archive-DXzJq7WP.js.map → workspace-archive-CqPIijFA.js.map} +1 -1
- package/package.json +1 -1
- package/dist/environment-provider-CCaEhA-l.js.map +0 -1
- package/dist/improvement-cycle-tEswzEPr.js.map +0 -1
- package/dist/knowledge-CUXQE8Sq.js.map +0 -1
- package/dist/otel-export-CPZTSADj.js +0 -852
- package/dist/otel-export-CPZTSADj.js.map +0 -1
- package/dist/prepare-BHQBb02e.js.map +0 -1
- package/dist/runtime-BatQajPB.js.map +0 -1
- package/dist/sandbox-events-DeI5xX8P.js.map +0 -1
- package/dist/spawn-journal-DCPbicXB.js +0 -457
- package/dist/spawn-journal-DCPbicXB.js.map +0 -1
- package/dist/structural-rollout-DEf37yQy.js.map +0 -1
- package/dist/supervise-B7TIJR3D.js.map +0 -1
- package/dist/supervisor-DzQu5Ydu.js.map +0 -1
- package/dist/trace-propagation-B-pL7xn_.js +0 -57
- package/dist/trace-propagation-B-pL7xn_.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as ConfigError } from "./errors-DEAvWQPy.js";
|
|
2
|
-
import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, J as candidateMaterializerHarness, K as applyExactAgentProfileDiff, Q as parseAgentCandidateProfileActivation, Y as createAgentCandidateProfileActivation, Z as omitUndefinedObjectFields, ct as omitTopLevelDigest, d as verifiedResourceTextByDigest, f as verifyAgentCandidateBundle, it as canonicalCandidateDocument, n as executePreparedAgentCandidate, nt as canonicalCandidateBytes, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest$1, st as immutableCandidateValue, t as prepareAgentCandidateExecution, ut as verifyCanonicalCandidateDocument } from "./prepare-
|
|
3
|
-
import {
|
|
4
|
-
import { E as optimizerMethod, a as defaultStructuralRolloutPolicy } from "./structural-rollout-
|
|
5
|
-
import { t as runAnalystLoop } from "./analyst-loop-
|
|
2
|
+
import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, J as candidateMaterializerHarness, K as applyExactAgentProfileDiff, Q as parseAgentCandidateProfileActivation, Y as createAgentCandidateProfileActivation, Z as omitUndefinedObjectFields, ct as omitTopLevelDigest, d as verifiedResourceTextByDigest, f as verifyAgentCandidateBundle, it as canonicalCandidateDocument, n as executePreparedAgentCandidate, nt as canonicalCandidateBytes, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest$1, st as immutableCandidateValue, t as prepareAgentCandidateExecution, ut as verifyCanonicalCandidateDocument } from "./prepare-BbI6qGOW.js";
|
|
3
|
+
import { Ft as harnessInvocation, Lt as runLocalHarness, mt as runSettledCommand } from "./supervisor-CAXiCKnX.js";
|
|
4
|
+
import { E as optimizerMethod, a as defaultStructuralRolloutPolicy } from "./structural-rollout-DLwW69R4.js";
|
|
5
|
+
import { t as runAnalystLoop } from "./analyst-loop-DvSciOfB.js";
|
|
6
6
|
import { CostLedger, canonicalJson, makeProposalFinding } from "@tangle-network/agent-eval";
|
|
7
7
|
import { campaignScenarioIdentity, campaignSplitDigestFromIdentities, compareOptimizationMethods, gitWorktreeAdapter, verifyCodeSurface } from "@tangle-network/agent-eval/campaign";
|
|
8
|
-
import { AGENT_IMPROVEMENT_SOURCE_METADATA_KEY, agentCandidateMaterializationReceiptSchema, agentCandidateRunReceiptSchema, agentImprovementActivationSchema, agentImprovementProposalSchema, agentImprovementReviewSchema, agentImprovementSourceMetadata, agentImprovementSourceSchema, agentProfileDiffSchema, agentProfileImprovementArmSchema, agentProfileImprovementExecutionRefSchema,
|
|
8
|
+
import { AGENT_IMPROVEMENT_SOURCE_METADATA_KEY, agentCandidateMaterializationReceiptSchema, agentCandidateRunReceiptSchema, agentImprovementActivationSchema, agentImprovementProposalSchema, agentImprovementReviewSchema, agentImprovementSourceMetadata, agentImprovementSourceSchema, agentProfileDiffSchema, agentProfileImprovementArmSchema, agentProfileImprovementExecutionRefSchema, agentProfileModelHintsSchema, agentProfileSchema, candidateExecutionEvidenceSchema, changedProfileImprovementSurfaces, defineAgentProfileDiff, numbersApproximatelyEqual, sha256DigestSchema } from "@tangle-network/agent-interface";
|
|
9
9
|
import { createHash, randomUUID } from "node:crypto";
|
|
10
10
|
import { applyWorkspacePlan, materializeCandidateProfile, materializeProfile } from "@tangle-network/agent-profile-materialize";
|
|
11
11
|
import { existsSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
@@ -1796,10 +1796,11 @@ const AGENT_IMPROVEMENT_PROFILE_SURFACES = [
|
|
|
1796
1796
|
"subagents"
|
|
1797
1797
|
];
|
|
1798
1798
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
*
|
|
1799
|
+
* Profile changes eligible for the product-owned measured comparison path.
|
|
1800
|
+
* The six directly deliverable profile surfaces retain their granular labels;
|
|
1801
|
+
* any residual profile axis also adds the complete `agent-profile` surface.
|
|
1801
1802
|
*/
|
|
1802
|
-
const AGENT_PROFILE_MEASURED_SURFACES = [
|
|
1803
|
+
const AGENT_PROFILE_MEASURED_SURFACES = [...AGENT_IMPROVEMENT_PROFILE_SURFACES, "agent-profile"];
|
|
1803
1804
|
function deriveChangedSurfaces(baselineBundle, candidateBundle) {
|
|
1804
1805
|
if (baselineBundle.knowledge || candidateBundle.knowledge) assertKnowledgeCandidatePair(baselineBundle, candidateBundle);
|
|
1805
1806
|
assertCodeCandidatePair(baselineBundle, candidateBundle);
|
|
@@ -1945,14 +1946,154 @@ function agentImprovementTargetProfileDiffs(target, options) {
|
|
|
1945
1946
|
function agentImprovementProfileDiffs(baselineInput, candidateInput, options) {
|
|
1946
1947
|
const baseline = parseExactAgentProfile(omitUndefinedObjectFields(baselineInput, "profile improvement baseline"), "profile improvement baseline");
|
|
1947
1948
|
const candidate = parseExactAgentProfile(omitUndefinedObjectFields(candidateInput, "profile improvement candidate"), "profile improvement candidate");
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1949
|
+
if (canonicalCandidateDigest$1(baseline) === canonicalCandidateDigest$1(candidate)) throw new Error("profile improvement candidate does not change the profile");
|
|
1950
|
+
const completeChanges = completeAgentProfileReplacementDiffs(baseline, candidate, options);
|
|
1951
|
+
if (canonicalCandidateDigest$1(completeChanges.reduce((profile, change) => applyExactAgentProfileDiff(profile, change, "complete profile improvement candidate change"), baseline)) !== canonicalCandidateDigest$1(candidate)) throw new Error("complete profile improvement change did not reproduce the candidate");
|
|
1952
|
+
return completeChanges;
|
|
1953
|
+
}
|
|
1954
|
+
function completeAgentProfileReplacementDiffs(baseline, candidate, options) {
|
|
1955
|
+
const remove = {};
|
|
1956
|
+
const set = {};
|
|
1957
|
+
if (profileValuesDiffer(baseline.name, candidate.name) || profileValuesDiffer(baseline.description, candidate.description) || profileValuesDiffer(baseline.version, candidate.version)) {
|
|
1958
|
+
remove.identity = true;
|
|
1959
|
+
if (candidate.name !== void 0) set.name = candidate.name;
|
|
1960
|
+
if (candidate.description !== void 0) set.description = candidate.description;
|
|
1961
|
+
if (candidate.version !== void 0) set.version = candidate.version;
|
|
1962
|
+
}
|
|
1963
|
+
if (profileValuesDiffer(baseline.tags, candidate.tags)) {
|
|
1964
|
+
remove.tags = true;
|
|
1965
|
+
if (candidate.tags !== void 0) set.tags = candidate.tags;
|
|
1966
|
+
}
|
|
1967
|
+
if (profileValuesDiffer(baseline.prompt, candidate.prompt)) {
|
|
1968
|
+
remove.prompt = true;
|
|
1969
|
+
if (candidate.prompt !== void 0) set.prompt = candidate.prompt;
|
|
1970
|
+
}
|
|
1971
|
+
if (profileValuesDiffer(baseline.model, candidate.model)) {
|
|
1972
|
+
remove.model = true;
|
|
1973
|
+
if (candidate.model !== void 0) set.model = candidate.model;
|
|
1974
|
+
}
|
|
1975
|
+
if (profileValuesDiffer(baseline.harness, candidate.harness)) {
|
|
1976
|
+
remove.harness = true;
|
|
1977
|
+
if (candidate.harness !== void 0) set.harness = candidate.harness;
|
|
1978
|
+
}
|
|
1979
|
+
if (profileValuesDiffer(baseline.permissions, candidate.permissions)) {
|
|
1980
|
+
remove.permissions = true;
|
|
1981
|
+
if (candidate.permissions !== void 0) set.permissions = candidate.permissions;
|
|
1982
|
+
}
|
|
1983
|
+
if (profileValuesDiffer(baseline.tools, candidate.tools)) {
|
|
1984
|
+
remove.tools = true;
|
|
1985
|
+
if (candidate.tools !== void 0) set.tools = candidate.tools;
|
|
1986
|
+
}
|
|
1987
|
+
if (profileValuesDiffer(baseline.mcp, candidate.mcp)) {
|
|
1988
|
+
remove.mcp = true;
|
|
1989
|
+
if (candidate.mcp !== void 0) set.mcp = candidate.mcp;
|
|
1990
|
+
}
|
|
1991
|
+
if (profileValuesDiffer(baseline.connections, candidate.connections)) {
|
|
1992
|
+
remove.connections = true;
|
|
1993
|
+
if (candidate.connections !== void 0) set.connections = candidate.connections;
|
|
1994
|
+
}
|
|
1995
|
+
if (profileValuesDiffer(baseline.subagents, candidate.subagents)) {
|
|
1996
|
+
remove.subagents = true;
|
|
1997
|
+
if (candidate.subagents !== void 0) set.subagents = candidate.subagents;
|
|
1998
|
+
}
|
|
1999
|
+
replaceChangedProfileResources(baseline.resources, candidate.resources, remove, set);
|
|
2000
|
+
if (profileValuesDiffer(baseline.hooks, candidate.hooks)) {
|
|
2001
|
+
remove.hooks = true;
|
|
2002
|
+
if (candidate.hooks !== void 0) set.hooks = candidate.hooks;
|
|
2003
|
+
}
|
|
2004
|
+
if (profileValuesDiffer(baseline.modes, candidate.modes)) {
|
|
2005
|
+
remove.modes = true;
|
|
2006
|
+
if (candidate.modes !== void 0) set.modes = candidate.modes;
|
|
2007
|
+
}
|
|
2008
|
+
if (profileValuesDiffer(baseline.confidential, candidate.confidential)) {
|
|
2009
|
+
remove.confidential = true;
|
|
2010
|
+
if (candidate.confidential !== void 0) set.confidential = candidate.confidential;
|
|
2011
|
+
}
|
|
2012
|
+
if (profileValuesDiffer(baseline.metadata, candidate.metadata)) {
|
|
2013
|
+
remove.metadata = true;
|
|
2014
|
+
if (candidate.metadata !== void 0) set.metadata = candidate.metadata;
|
|
2015
|
+
}
|
|
2016
|
+
if (profileValuesDiffer(baseline.extensions, candidate.extensions)) {
|
|
2017
|
+
remove.extensions = true;
|
|
2018
|
+
if (candidate.extensions !== void 0) set.extensions = candidate.extensions;
|
|
2019
|
+
}
|
|
2020
|
+
if (Object.keys(remove).length === 0) throw new Error("complete profile differ found no changed fields");
|
|
2021
|
+
const common = {
|
|
2022
|
+
kind: "agent-profile-diff",
|
|
2023
|
+
...options.source ? { source: options.source } : {},
|
|
2024
|
+
metadata: {
|
|
2025
|
+
...options.metadata ?? {},
|
|
2026
|
+
surface: "agent-profile"
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
const reset = agentProfileDiffSchema.parse(defineAgentProfileDiff({
|
|
2030
|
+
...common,
|
|
2031
|
+
id: `${options.id}:agent-profile:reset`,
|
|
2032
|
+
title: "Reset changed agent profile fields",
|
|
2033
|
+
remove
|
|
2034
|
+
}));
|
|
2035
|
+
if (Object.keys(set).length === 0) return [reset];
|
|
2036
|
+
return [reset, agentProfileDiffSchema.parse(defineAgentProfileDiff({
|
|
2037
|
+
...common,
|
|
2038
|
+
id: `${options.id}:agent-profile:set`,
|
|
2039
|
+
title: "Set changed agent profile fields",
|
|
2040
|
+
set
|
|
2041
|
+
}))];
|
|
2042
|
+
}
|
|
2043
|
+
function replaceChangedProfileResources(baseline, candidate, remove, set) {
|
|
2044
|
+
if (!profileValuesDiffer(baseline, candidate)) return;
|
|
2045
|
+
const resourceRemoval = {};
|
|
2046
|
+
const resourceSet = {};
|
|
2047
|
+
let changedSubfields = 0;
|
|
2048
|
+
if (profileValuesDiffer(baseline?.files, candidate?.files)) {
|
|
2049
|
+
changedSubfields += 1;
|
|
2050
|
+
resourceRemoval.files = true;
|
|
2051
|
+
if (candidate?.files !== void 0) resourceSet.files = candidate.files;
|
|
2052
|
+
}
|
|
2053
|
+
if (profileValuesDiffer(baseline?.tools, candidate?.tools)) {
|
|
2054
|
+
changedSubfields += 1;
|
|
2055
|
+
resourceRemoval.tools = true;
|
|
2056
|
+
if (candidate?.tools !== void 0) resourceSet.tools = candidate.tools;
|
|
2057
|
+
}
|
|
2058
|
+
if (profileValuesDiffer(baseline?.skills, candidate?.skills)) {
|
|
2059
|
+
changedSubfields += 1;
|
|
2060
|
+
resourceRemoval.skills = true;
|
|
2061
|
+
if (candidate?.skills !== void 0) resourceSet.skills = candidate.skills;
|
|
2062
|
+
}
|
|
2063
|
+
if (profileValuesDiffer(baseline?.agents, candidate?.agents)) {
|
|
2064
|
+
changedSubfields += 1;
|
|
2065
|
+
resourceRemoval.agents = true;
|
|
2066
|
+
if (candidate?.agents !== void 0) resourceSet.agents = candidate.agents;
|
|
2067
|
+
}
|
|
2068
|
+
if (profileValuesDiffer(baseline?.commands, candidate?.commands)) {
|
|
2069
|
+
changedSubfields += 1;
|
|
2070
|
+
resourceRemoval.commands = true;
|
|
2071
|
+
if (candidate?.commands !== void 0) resourceSet.commands = candidate.commands;
|
|
2072
|
+
}
|
|
2073
|
+
if (profileValuesDiffer(baseline?.instructions, candidate?.instructions)) {
|
|
2074
|
+
changedSubfields += 1;
|
|
2075
|
+
resourceRemoval.instructions = true;
|
|
2076
|
+
if (candidate?.instructions !== void 0) resourceSet.instructions = candidate.instructions;
|
|
2077
|
+
}
|
|
2078
|
+
if (profileValuesDiffer(baseline?.failOnError, candidate?.failOnError)) {
|
|
2079
|
+
changedSubfields += 1;
|
|
2080
|
+
resourceRemoval.failOnError = true;
|
|
2081
|
+
if (candidate?.failOnError !== void 0) resourceSet.failOnError = candidate.failOnError;
|
|
2082
|
+
}
|
|
2083
|
+
if (changedSubfields === 0) {
|
|
2084
|
+
remove.resources = true;
|
|
2085
|
+
if (candidate !== void 0) set.resources = candidate;
|
|
2086
|
+
return;
|
|
2087
|
+
}
|
|
2088
|
+
remove.resources = resourceRemoval;
|
|
2089
|
+
if (Object.keys(resourceSet).length > 0) set.resources = resourceSet;
|
|
2090
|
+
}
|
|
2091
|
+
function profileValuesDiffer(baseline, candidate) {
|
|
2092
|
+
const comparable = (value) => value === void 0 ? { present: false } : {
|
|
2093
|
+
present: true,
|
|
2094
|
+
value
|
|
2095
|
+
};
|
|
2096
|
+
return canonicalCandidateDigest$1(comparable(baseline)) !== canonicalCandidateDigest$1(comparable(candidate));
|
|
1956
2097
|
}
|
|
1957
2098
|
function improvementSurfaceReplacement(target) {
|
|
1958
2099
|
const value = target.desiredInput;
|
|
@@ -2506,7 +2647,7 @@ function profileImprovementMetadata(metadata, source, optimizationReceipt) {
|
|
|
2506
2647
|
*/
|
|
2507
2648
|
async function proposeAgentProfileImprovement(options) {
|
|
2508
2649
|
const source = agentImprovementSourceSchema.parse(options.source);
|
|
2509
|
-
if (!isAgentProfileMeasuredSurface(options.improvement.surface ?? "prompt")) throw new Error("measured profile improvement supports
|
|
2650
|
+
if (!isAgentProfileMeasuredSurface(options.improvement.surface ?? "prompt")) throw new Error("measured profile improvement supports profile surfaces or a complete agent profile; use the sealed-candidate path for this surface");
|
|
2510
2651
|
assertMeasuredAnalysisOptions(options.analysis);
|
|
2511
2652
|
const inputFindings = assertProposalFindings(options.improvement.findings ?? [], "profile improvement input findings");
|
|
2512
2653
|
const costLedger = createProfileImprovementCostLedger(options.budgetUsd);
|
|
@@ -2778,7 +2919,7 @@ function validateShippableAgentImprovementEvaluation(input, runId, subject) {
|
|
|
2778
2919
|
/** Use each owning package's complete measurement validator before a proposal is persisted. */
|
|
2779
2920
|
function verifyAgentImprovementEvaluation(input) {
|
|
2780
2921
|
if (typeof input === "object" && input !== null && "kind" in input && input.kind === "agent-profile-improvement-measured-comparison") {
|
|
2781
|
-
const evaluation =
|
|
2922
|
+
const evaluation = verifyAgentProfileImprovementExperimentComparison(input);
|
|
2782
2923
|
optimizationActivationReceiptFromMetadata(evaluation.metadata);
|
|
2783
2924
|
return evaluation;
|
|
2784
2925
|
}
|
|
@@ -2848,4 +2989,4 @@ function sameOrderedValues(left, right) {
|
|
|
2848
2989
|
//#endregion
|
|
2849
2990
|
export { improve as A, agenticGenerator as B, agentImprovementTargetInput as C, buildAgentImprovementActivationTargets as D, assertProfileImprovementTargetsShareIdentity as E, normalizeRolloutPolicy as F, summarizeFindings as G, defaultBuildPrompt as H, parseRolloutPolicy as I, worktreeChangedPaths as K, serializeRolloutPolicy as L, rawTraceDistiller as M, ROLLOUT_POLICY_EXTENSION as N, isAgentImprovementProfileSurface as O, applyRolloutPolicyToProfile as P, structuralRolloutPolicyFromProfile as R, agentImprovementTargetDigest as S, agentProfileImprovementStateDigest as T, rawTraceEvidenceProblem as U, commandVerifier as V, requiresRawTraceEvidence as W, AGENT_IMPROVEMENT_PROFILE_SURFACES as _, executeAgentCandidateExperimentCell as a, agentImprovementProfileSurfaceDigest as b, requireSealedCandidateExperiment as c, verifyAgentImprovementActivation as d, verifyAgentImprovementProposal as f, optimizationActivationReceiptFromMetadata as g, createOptimizationActivationReceipt as h, createAgentImprovementProposal as i, withMethodRuntimeControls as j, isAgentProfileMeasuredSurface as k, reviewAgentImprovementProposal as l, verifyCandidateExecutionEvidence as m, createAgentImprovementActivation as n, proposeAgentImprovement as o, verifyAgentImprovementReview as p, createAgentImprovementMeasuredComparison as r, proposeAgentProfileImprovement as s, AgentCandidateExperimentCellExecutionError as t, runAgentCandidateExperiment as u, AGENT_PROFILE_MEASURED_SURFACES as v, agentImprovementTargetProfileDiffs as w, agentImprovementProfileSurfaceInput as x, agentImprovementProfileDiffs as y, AGENTIC_PROFILE_RESOURCE_ROOT as z };
|
|
2850
2991
|
|
|
2851
|
-
//# sourceMappingURL=improvement-cycle-
|
|
2992
|
+
//# sourceMappingURL=improvement-cycle-Bcqz8rZI.js.map
|