@tangle-network/agent-runtime 0.337.2 → 0.338.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-DRHM55Oo.d.ts → activation-CsbNax2X.d.ts} +92 -4
- package/dist/activation-kbkAuSmY.js +889 -0
- package/dist/activation-kbkAuSmY.js.map +1 -0
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -6
- package/dist/agent.js.map +1 -1
- package/dist/{bundle-BPGjESee.js → bundle-DM60AI2B.js} +2 -2
- package/dist/{bundle-BPGjESee.js.map → bundle-DM60AI2B.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +2 -2
- package/dist/candidate-execution/index.js +4 -5
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/content-digest-sBTLujlK.js +9 -0
- package/dist/content-digest-sBTLujlK.js.map +1 -0
- package/dist/{delegate-B-T_ZB50.js → delegate-Se1YZKMb.js} +2 -2
- package/dist/{delegate-B-T_ZB50.js.map → delegate-Se1YZKMb.js.map} +1 -1
- package/dist/{coordination-driver-BHkFVqIq.js → driver-control-acknowledgers-T2a1Ouay.js} +4514 -4440
- package/dist/driver-control-acknowledgers-T2a1Ouay.js.map +1 -0
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +223 -227
- package/dist/durable.js.map +1 -1
- package/dist/{graph-C4RFlWAJ.js → graph-CY0wH838.js} +65 -18
- package/dist/graph-CY0wH838.js.map +1 -0
- package/dist/{graph-registry-DAI6KNXB.js → graph-registry-By0tUj4S.js} +16 -15
- package/dist/graph-registry-By0tUj4S.js.map +1 -0
- package/dist/{improvement-cycle-D1I4hQvf.js → improve-CWGBT13K.js} +75 -1220
- package/dist/improve-CWGBT13K.js.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/dist/{integrations-DopfCC2a.d.ts → integrations-6xttbPi9.d.ts} +3 -3
- package/dist/integrations-dFi-ALk7.js.map +1 -1
- package/dist/intelligence.d.ts +7 -94
- package/dist/intelligence.js +505 -13
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +13 -12
- package/dist/{loop-runner-bin-DOuBIJ2O.d.ts → loop-runner-bin-CFnrAHpl.d.ts} +2 -2
- package/dist/{loop-runner-bin-Dv5QvYDH.js → loop-runner-bin-CdPlhy9g.js} +3 -3
- package/dist/{loop-runner-bin-Dv5QvYDH.js.map → loop-runner-bin-CdPlhy9g.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/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +7 -3
- package/dist/mcp/index.js +6 -8
- package/dist/mcp/index.js.map +1 -1
- package/dist/{openai-tools-Oxk4KQrY.d.ts → openai-tools-zh2I_uD7.d.ts} +2 -2
- package/dist/platform.d.ts +7 -2
- package/dist/platform.js +16 -8
- package/dist/platform.js.map +1 -1
- package/dist/{prepare-CER-ZkPp.js → prepare-Bt0IouPq.js} +1241 -586
- package/dist/prepare-Bt0IouPq.js.map +1 -0
- package/dist/{profile-gNUsHNIJ.js → profile-Do-5xO_D.js} +89 -3
- package/dist/profile-Do-5xO_D.js.map +1 -0
- package/dist/profiles.d.ts +1 -1
- package/dist/profiles.js +1 -3
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-BhpQRTw-.d.ts → protected-model-port-DGxQ8_YM.d.ts} +3 -3
- package/dist/{provision-supervisor-DGegCUH4.js → provision-supervisor-0jMufp4h.js} +12 -9
- package/dist/provision-supervisor-0jMufp4h.js.map +1 -0
- package/dist/record-value-B6bwJxLa.js +12 -0
- package/dist/record-value-B6bwJxLa.js.map +1 -0
- package/dist/{run-layout-Cu8H7aeh.js → run-cancellation-BoW5Sg9Y.js} +174 -95
- package/dist/run-cancellation-BoW5Sg9Y.js.map +1 -0
- package/dist/{runtime-BOGpotnH.js → runtime-D37zRSs7.js} +431 -621
- package/dist/runtime-D37zRSs7.js.map +1 -0
- package/dist/{sandbox-profile-compat-QTkLe1Z6.js → sandbox-profile-compat-xSoVtdWw.js} +690 -697
- package/dist/sandbox-profile-compat-xSoVtdWw.js.map +1 -0
- package/dist/search-executor-DmgUm5p7.js +1916 -0
- package/dist/search-executor-DmgUm5p7.js.map +1 -0
- package/dist/{server-hZWM-G8w.js → server-DQHJszfk.js} +4 -4
- package/dist/server-DQHJszfk.js.map +1 -0
- package/dist/{search-executor-Cm1WZmL-.js → structural-rollout-DAvIE8mw.js} +2261 -3984
- package/dist/structural-rollout-DAvIE8mw.js.map +1 -0
- package/dist/{supervise-CvAKVfue.js → supervise-WuPAwfPh.js} +7793 -5338
- package/dist/supervise-WuPAwfPh.js.map +1 -0
- package/dist/{supervisor-Rz8AGpYb.js → supervisor-CPG1I9UN.js} +26590 -27196
- package/dist/supervisor-CPG1I9UN.js.map +1 -0
- package/dist/testing.d.ts +226 -1
- package/dist/testing.js +13 -14
- package/dist/testing.js.map +1 -1
- package/dist/{top-app-BaMw1W2z.js → top-app-C55Wa7uy.js} +339 -337
- package/dist/top-app-C55Wa7uy.js.map +1 -0
- package/dist/tui/bin.js +1 -1
- package/dist/tui/index.d.ts +17 -15
- package/dist/tui/index.js +2 -2
- package/dist/{types-Dl5L4r8Z.d.ts → types-CrNWif8-.d.ts} +17410 -17173
- package/dist/{workspace-streams-JLjh5DC6.d.ts → workspace-streams-BZZds1Fw.d.ts} +18 -16
- package/package.json +2 -2
- package/skills/agent-graphs/SKILL.md +10 -3
- package/skills/agent-graphs/references/authoring.md +17 -0
- package/skills/profile-authoring/SKILL.md +3 -3
- package/skills/supervise/SKILL.md +2 -2
- package/dist/activation-BDP6Eivv.js +0 -234
- package/dist/activation-BDP6Eivv.js.map +0 -1
- package/dist/coordination-driver-BHkFVqIq.js.map +0 -1
- package/dist/graph-C4RFlWAJ.js.map +0 -1
- package/dist/graph-registry-DAI6KNXB.js.map +0 -1
- package/dist/improvement-cycle-D1I4hQvf.js.map +0 -1
- package/dist/prepare-CER-ZkPp.js.map +0 -1
- package/dist/profile-gNUsHNIJ.js.map +0 -1
- package/dist/protected-model-port-BuRsviSL.js +0 -766
- package/dist/protected-model-port-BuRsviSL.js.map +0 -1
- package/dist/provision-supervisor-DGegCUH4.js.map +0 -1
- package/dist/run-layout-Cu8H7aeh.js.map +0 -1
- package/dist/runtime-BOGpotnH.js.map +0 -1
- package/dist/sandbox-profile-compat-QTkLe1Z6.js.map +0 -1
- package/dist/search-executor-Cm1WZmL-.js.map +0 -1
- package/dist/server-hZWM-G8w.js.map +0 -1
- package/dist/supervise-CvAKVfue.js.map +0 -1
- package/dist/supervisor-Rz8AGpYb.js.map +0 -1
- package/dist/top-app-BaMw1W2z.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AgentCandidateBundle, AgentImprovementActivation, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementProposal, AgentImprovementReview, AgentImprovementSurface, AgentProfile, AgentProfileImprovementChange, AgentProfileImprovementExperiment, AgentTrainingReceipt, AgentTrainingTask, HarnessType, ReasoningEffort, Sha256Digest } from "@tangle-network/agent-interface";
|
|
1
|
+
import { Df as WorkerSlots, Ff as BudgetPool, Jh as SharedBoxPlacementOptions, Qo as CollectedAgentTurn, Sh as ExecutorConfig, Zo as AgentTurnUsage, qh as SharedBoxPlacement, xb as OtelExportConfig } from "./types-CrNWif8-.js";
|
|
2
|
+
import { AgentCandidateBundle, AgentCandidateExperiment, AgentImprovementActivation, AgentImprovementActivationIntent, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementEvaluation, AgentImprovementProposal, AgentImprovementReview, AgentImprovementReviewDecision, AgentImprovementSurface, AgentProfile, AgentProfileDiff, AgentProfileImprovementChange, AgentProfileImprovementExecutionRef, AgentProfileImprovementExperiment, AgentTrainingReceipt, AgentTrainingTask, HarnessType, ReasoningEffort, Sha256Digest } from "@tangle-network/agent-interface";
|
|
3
3
|
import { CostLedgerHandle, CostReceiptInput, MaximumCharge, PairedPromotionDecision, PendingCostCallView, ProposalFinding, RunRecord } from "@tangle-network/agent-eval";
|
|
4
|
+
import { ProposalFinding as ProposalFinding$1 } from "@tangle-network/agent-eval/analyst";
|
|
4
5
|
import { CampaignCellResult, CampaignScenarioIdentity, CampaignStorage, CompareOptimizationMethodsOptions, OptimizationMethod, OptimizationMethodComparison, Scenario, SearchAllocator, SearchCellResult, SearchCellStage, SearchClaim, SearchClaimVerification, SearchHistoryReceipt, SearchLane, SearchModelIdentity, SearchPolicy, SearchSourceRef, SearchSplit, SearchStateView, SurfaceProposer, WorktreeAdapter } from "@tangle-network/agent-eval/campaign";
|
|
5
6
|
import { DispatchContext, MutableSurface as MutableSurface$1, Scenario as Scenario$1, SelfImproveBudget, SelfImproveOptions, SelfImproveProposerResult } from "@tangle-network/agent-eval/contract";
|
|
6
7
|
import { EvaluationClaim, SealedExperiment } from "@tangle-network/agent-eval/experiment";
|
|
@@ -917,6 +918,53 @@ declare function improve<TScenario extends Scenario$1, TArtifact>(profile: Reado
|
|
|
917
918
|
*/
|
|
918
919
|
declare function improve<TScenario extends Scenario$1, TArtifact>(opts: ImproveCodeRunOptions<TScenario, TArtifact>): Promise<ImproveCodeResult<TScenario, TArtifact>>;
|
|
919
920
|
//#endregion
|
|
921
|
+
//#region src/intelligence/improvement-surfaces.d.ts
|
|
922
|
+
/** Agent improvement surfaces delivered as exact `AgentProfileDiff` replacements. */
|
|
923
|
+
declare const AGENT_IMPROVEMENT_PROFILE_SURFACES: readonly ["prompt", "skills", "tools", "mcp", "hooks", "subagents"];
|
|
924
|
+
type AgentImprovementProfileSurface = (typeof AGENT_IMPROVEMENT_PROFILE_SURFACES)[number];
|
|
925
|
+
/**
|
|
926
|
+
* Profile changes eligible for the product-owned measured comparison path.
|
|
927
|
+
* The six directly deliverable profile surfaces retain their granular labels;
|
|
928
|
+
* any residual profile axis also adds the complete `agent-profile` surface.
|
|
929
|
+
*/
|
|
930
|
+
declare const AGENT_PROFILE_MEASURED_SURFACES: readonly ["prompt", "skills", "tools", "mcp", "hooks", "subagents", "agent-profile"];
|
|
931
|
+
type AgentProfileMeasuredSurface = (typeof AGENT_PROFILE_MEASURED_SURFACES)[number];
|
|
932
|
+
interface AgentImprovementTargetProfileDiffOptions {
|
|
933
|
+
id: string;
|
|
934
|
+
source?: AgentProfileDiff['source'];
|
|
935
|
+
metadata?: Record<string, unknown>;
|
|
936
|
+
}
|
|
937
|
+
type AgentImprovementActivationTargetIdentity = Pick<AgentImprovementActivationTarget, 'surface' | 'identity'>;
|
|
938
|
+
/** Bind caller-owned target identities to the exact source state Runtime measured. */
|
|
939
|
+
declare function buildAgentImprovementActivationTargets(surfaces: readonly AgentImprovementSurface[], experiment: AgentImprovementEvaluation['experiment'], intent: AgentImprovementActivationIntent, identities: readonly AgentImprovementActivationTargetIdentity[]): [AgentImprovementActivationTarget, ...AgentImprovementActivationTarget[]];
|
|
940
|
+
/** Return whether a measured surface can be delivered through an agent profile. */
|
|
941
|
+
declare function isAgentImprovementProfileSurface(surface: AgentImprovementSurface): surface is AgentImprovementProfileSurface;
|
|
942
|
+
/** Return whether a surface is eligible for shared profile measurement. */
|
|
943
|
+
declare function isAgentProfileMeasuredSurface(surface: string): surface is AgentProfileMeasuredSurface;
|
|
944
|
+
/**
|
|
945
|
+
* Return the canonical current-state input for one profile-deliverable improvement target.
|
|
946
|
+
* Missing slots become `null`; tools and subagents include both their direct and resource slots.
|
|
947
|
+
* Unrelated profile fields are excluded. The result matches `agentImprovementTargetInput` for the
|
|
948
|
+
* same profile inside a candidate bundle.
|
|
949
|
+
*/
|
|
950
|
+
declare function agentImprovementProfileSurfaceInput(profile: AgentProfile, surface: AgentImprovementProfileSurface): unknown;
|
|
951
|
+
/** Return the `Sha256Digest` of one profile surface using Runtime's canonical candidate digest. */
|
|
952
|
+
declare function agentImprovementProfileSurfaceDigest(profile: AgentProfile, surface: AgentImprovementProfileSurface): Sha256Digest;
|
|
953
|
+
/**
|
|
954
|
+
* Replace one measured profile surface exactly, including array-valued resources.
|
|
955
|
+
* Apply the returned diffs in order: a diff applies its set before its removal,
|
|
956
|
+
* so exact replacement requires a reset record followed by a set record.
|
|
957
|
+
*/
|
|
958
|
+
declare function agentImprovementTargetProfileDiffs(target: {
|
|
959
|
+
surface: AgentImprovementProfileSurface;
|
|
960
|
+
desiredInput: unknown;
|
|
961
|
+
}, options: AgentImprovementTargetProfileDiffOptions): [AgentProfileDiff, ...AgentProfileDiff[]];
|
|
962
|
+
/**
|
|
963
|
+
* Derive the ordered profile patch that changes one executable profile into
|
|
964
|
+
* another, then prove the patch preserves the complete candidate state.
|
|
965
|
+
*/
|
|
966
|
+
declare function agentImprovementProfileDiffs(baselineInput: AgentProfile, candidateInput: AgentProfile, options: AgentImprovementTargetProfileDiffOptions): [AgentProfileDiff, ...AgentProfileDiff[]];
|
|
967
|
+
//#endregion
|
|
920
968
|
//#region src/intelligence/activation.d.ts
|
|
921
969
|
interface CreateAgentImprovementActivationResultOptions {
|
|
922
970
|
completedAt: string;
|
|
@@ -1011,6 +1059,46 @@ declare function verifyAgentImprovementActivationResult(input: {
|
|
|
1011
1059
|
}): AgentImprovementActivationResult;
|
|
1012
1060
|
/** Validate and execute one product-owned activation transition. */
|
|
1013
1061
|
declare function executeAgentImprovementActivation(input: ExecuteAgentImprovementActivationInput, options: ExecuteAgentImprovementActivationOptions): Promise<AgentImprovementActivationResult>;
|
|
1062
|
+
interface CreateAgentImprovementProposalOptions {
|
|
1063
|
+
runId: string;
|
|
1064
|
+
findings: readonly ProposalFinding$1[];
|
|
1065
|
+
evaluation: AgentImprovementEvaluation;
|
|
1066
|
+
now?: () => Date;
|
|
1067
|
+
}
|
|
1068
|
+
interface ReviewAgentImprovementInput {
|
|
1069
|
+
decision: AgentImprovementReviewDecision;
|
|
1070
|
+
reviewedBy: string;
|
|
1071
|
+
reason: string;
|
|
1072
|
+
feedback?: string;
|
|
1073
|
+
now?: () => Date;
|
|
1074
|
+
}
|
|
1075
|
+
interface CreateAgentImprovementActivationOptions {
|
|
1076
|
+
intent: AgentImprovementActivationIntent;
|
|
1077
|
+
/** Runtime derives each exact source digest; callers identify only the records to change. */
|
|
1078
|
+
targets: [AgentImprovementActivationTargetIdentity, ...AgentImprovementActivationTargetIdentity[]];
|
|
1079
|
+
fundingOwner: string;
|
|
1080
|
+
authorizedBy: string;
|
|
1081
|
+
expiresAt: string;
|
|
1082
|
+
/** Required only when an activation targets the complete `agent-profile` surface. */
|
|
1083
|
+
executionRef?: AgentProfileImprovementExecutionRef;
|
|
1084
|
+
now?: () => Date;
|
|
1085
|
+
}
|
|
1086
|
+
/** Create the reviewable record only from a complete, recomputable experiment result. */
|
|
1087
|
+
declare function createAgentImprovementProposal(options: CreateAgentImprovementProposalOptions): AgentImprovementProposal;
|
|
1088
|
+
/** Persist a human or tenant-policy decision bound to one exact proposal. */
|
|
1089
|
+
declare function reviewAgentImprovementProposal(inputProposal: AgentImprovementProposal, input: ReviewAgentImprovementInput): AgentImprovementReview;
|
|
1090
|
+
/** Authorize product-owned writes only after the exact candidate was measured and approved. */
|
|
1091
|
+
declare function createAgentImprovementActivation(inputProposal: AgentImprovementProposal, inputReview: AgentImprovementReview, options: CreateAgentImprovementActivationOptions): AgentImprovementActivation;
|
|
1092
|
+
/** Validate a proposal and recompute every binding to its measured experiment. */
|
|
1093
|
+
declare function verifyAgentImprovementProposal(input: unknown): AgentImprovementProposal;
|
|
1094
|
+
/** Validate the canonical identity and wire shape of an improvement review. */
|
|
1095
|
+
declare function verifyAgentImprovementReview(input: unknown): AgentImprovementReview;
|
|
1096
|
+
/** Validate activation authority against the exact proposal, review, experiment, and base state. */
|
|
1097
|
+
declare function verifyAgentImprovementActivation(input: {
|
|
1098
|
+
proposal: unknown;
|
|
1099
|
+
review: unknown;
|
|
1100
|
+
activation: unknown;
|
|
1101
|
+
}): AgentImprovementActivation;
|
|
1014
1102
|
//#endregion
|
|
1015
|
-
export {
|
|
1016
|
-
//# sourceMappingURL=activation-
|
|
1103
|
+
export { ImproveCandidateValidationInput as $, Verifier as $t, AgentProfileMeasuredSurface as A, ImprovementCodeCandidate as At, searchMethod as B, SharedBoxSearchLane as Bt, verifyAgentImprovementProposal as C, ImproveSearchIdentity as Ct, AgentImprovementActivationTargetIdentity as D, ImproveSkillsOptions as Dt, AGENT_PROFILE_MEASURED_SURFACES as E, ImproveSearchResult as Et, buildAgentImprovementActivationTargets as F, SearchEnvironmentFault as Ft, ControlledTrainingCommand as G, subscriptionLane as Gt, SearchImprovementDecision as H, isSearchEnvironmentFault as Ht, isAgentImprovementProfileSurface as I, SearchLane$1 as It, ProfileTrainer as J, AgenticGeneratorExecutorForWorktree as Jt, ImproveTrainingOptions as K, DeepReadonly as Kt, isAgentProfileMeasuredSurface as L, SearchLaneKind as Lt, agentImprovementProfileSurfaceDigest as M, SearchDispatchContext as Mt, agentImprovementProfileSurfaceInput as N, SearchPromotion as Nt, AgentImprovementProfileSurface as O, ImproveSurface as Ot, agentImprovementTargetProfileDiffs as P, SearchCellContext as Pt, createCommandProfileTrainer as Q, AgenticGeneratorShotReceipt as Qt, improve as R, SearchLaneOptions as Rt, verifyAgentImprovementActivationResult as S, ImproveSearchAgent as St, AGENT_IMPROVEMENT_PROFILE_SURFACES as T, ImproveSearchOptions as Tt, decideSearchImprovement as U, routerLane as Ut, DecideSearchImprovementOptions as V, dedicatedLane as Vt, CheckpointServingPort as W, sharedBoxLane as Wt, TrainingBoundaryResult as X, AgenticGeneratorShotDisposition as Xt, ProfileTrainerRequest as Y, AgenticGeneratorOptions as Yt, TrainingDatasetDocument as Z, AgenticGeneratorShotExecution as Zt, createAgentImprovementActivationResult as _, ImproveProfileComponents as _t, AgentImprovementActivationTransitionInput as a, ImproveCost as at, reviewAgentImprovementProposal as b, ImproveRuntimeCodeGeneratorOptions as bt, CreateAgentImprovementActivationOptions as c, ImproveMethodContext as ct, ExecuteAgentImprovementActivationInput as d, ImproveMethodOptions as dt, VerifyResult as en, ImproveCandidateValidator as et, ExecuteAgentImprovementActivationOptions as f, ImproveMethodResult as ft, createAgentImprovementActivation as g, ImproveProfileAgent as gt, SealedCandidateActivationTransitionInput as h, ImproveOptions as ht, AgentImprovementActivationTransition as i, CandidateGenerator as in, ImproveCodeRunOptions as it, agentImprovementProfileDiffs as j, ImprovementProfileCandidate as jt, AgentImprovementTargetProfileDiffOptions as k, ImprovementCandidate as kt, CreateAgentImprovementActivationResultOptions as l, ImproveMethodFactory as lt, ReviewAgentImprovementInput as m, ImproveOptimizationRunOptions as mt, AgentImprovementActivationResultStore as n, commandVerifier as nn, ImproveCodeOptions as nt, AgentProfileImprovementActivationOperation as o, ImproveCustomCodeGeneratorOptions as ot, ProfileImprovementActivationTransitionInput as p, ImproveMethodSource as pt, ImproveTrainingResult as q, ReadonlyAgentProfile as qt, AgentImprovementActivationTargetPlan as r, defaultBuildPrompt as rn, ImproveCodeResult as rt, AgentProfileImprovementActivationTargetPlan as s, ImproveLineage as st, AgentImprovementActivationReconciliation as t, agenticGenerator as tn, ImproveCodeBaseOptions as tt, CreateAgentImprovementProposalOptions as u, ImproveMethodLineage as ut, createAgentImprovementProposal as v, ImproveProfileSurface as vt, verifyAgentImprovementReview as w, ImproveSearchMethod as wt, verifyAgentImprovementActivation as x, ImproveScenarioPartitions as xt, executeAgentImprovementActivation as y, ImproveResult as yt, SearchMethodOptions as z, SearchTraceOptions as zt };
|
|
1104
|
+
//# sourceMappingURL=activation-CsbNax2X.d.ts.map
|