@tangle-network/agent-runtime 3.0.30 → 3.0.31
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-D0dnzmz_.d.ts → activation-DQhy-ET-.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +1 -1
- package/dist/{coordination-manager-CIeVgZcp.js → coordination-manager-B4ePZZDF.js} +19 -9
- package/dist/{coordination-manager-CIeVgZcp.js.map → coordination-manager-B4ePZZDF.js.map} +1 -1
- package/dist/{delegate-C6e7UJNA.js → delegate-CYpe4KH1.js} +2 -2
- package/dist/{delegate-C6e7UJNA.js.map → delegate-CYpe4KH1.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-CIAsV8GC.js → graph-CJ7La4ZS.js} +3 -3
- package/dist/{graph-CIAsV8GC.js.map → graph-CJ7La4ZS.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/intelligence.d.ts +2 -2
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +6 -6
- package/dist/{loop-runner-_3NabgWH.d.ts → loop-runner-D1JVNvwC.d.ts} +2 -2
- package/dist/{loop-runner-BbWD5f9L.js → loop-runner-DgON7FnW.js} +2 -2
- package/dist/{loop-runner-BbWD5f9L.js.map → loop-runner-DgON7FnW.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 +2 -2
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +3 -3
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-RUefSoIS.js → provision-supervisor-BrRWbxo9.js} +2 -2
- package/dist/{provision-supervisor-RUefSoIS.js.map → provision-supervisor-BrRWbxo9.js.map} +1 -1
- package/dist/{runtime-BpQ8jOYP.js → runtime-C7dIb3ui.js} +6 -6
- package/dist/{runtime-BpQ8jOYP.js.map → runtime-C7dIb3ui.js.map} +1 -1
- package/dist/{server-DBy7Ev8_.js → server-BXveLAfq.js} +2 -2
- package/dist/{server-DBy7Ev8_.js.map → server-BXveLAfq.js.map} +1 -1
- package/dist/{supervise-Cz5gaGDW.js → supervise-CKizKwTp.js} +2 -2
- package/dist/{supervise-Cz5gaGDW.js.map → supervise-CKizKwTp.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +10 -10
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-DQ4JHRDD.d.ts → types-ISwInoqb.d.ts} +15 -23
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ad as WorkerSlots, Rm as SharedBoxPlacement, Tf as BudgetPool, fo as AgentTurnUsage, fv as OtelExportConfig, hm as ExecutorConfig, po as CollectedAgentTurn, zm as SharedBoxPlacementOptions } from "./types-
|
|
1
|
+
import { Ad as WorkerSlots, Rm as SharedBoxPlacement, Tf as BudgetPool, fo as AgentTurnUsage, fv as OtelExportConfig, hm as ExecutorConfig, po as CollectedAgentTurn, zm as SharedBoxPlacementOptions } from "./types-ISwInoqb.js";
|
|
2
2
|
import { AgentCandidateBundle, AgentCandidateExperiment, AgentImprovementActivation, AgentImprovementActivationIntent, AgentImprovementActivationOutcome, AgentImprovementActivationResult, AgentImprovementActivationTarget, AgentImprovementEvaluation, AgentImprovementProposal, AgentImprovementReview, AgentImprovementReviewDecision, AgentImprovementSurface, AgentProfile, AgentProfileDiff, AgentProfileImprovementChange, AgentProfileImprovementExecutionRef, AgentProfileImprovementExperiment, AgentTrainingReceipt, HarnessType, ReasoningEffort, Sha256Digest } from "@tangle-network/agent-interface";
|
|
3
3
|
import { CostLedgerHandle, CostReceiptInput, MaximumCharge, PairedPromotionDecision, PendingCostCallView, ProposalFinding, RunRecord } from "@tangle-network/agent-eval";
|
|
4
4
|
import { ProposalFinding as ProposalFinding$1 } from "@tangle-network/agent-eval/analyst";
|
|
@@ -1059,4 +1059,4 @@ declare function verifyAgentImprovementActivation(input: {
|
|
|
1059
1059
|
activation: unknown;
|
|
1060
1060
|
}): AgentImprovementActivation;
|
|
1061
1061
|
export { ImproveCodeBaseOptions as $, CandidateGenerator as $t, AgentProfileMeasuredSurface as A, SearchPromotion as At, DecideSearchImprovementOptions as B, sharedBoxLane as Bt, verifyAgentImprovementProposal as C, ImproveSearchOptions as Ct, AgentImprovementActivationTargetIdentity as D, ImprovementCodeCandidate as Dt, AGENT_PROFILE_MEASURED_SURFACES as E, ImproveSurface as Et, isAgentImprovementProfileSurface as F, SearchLaneOptions as Ft, ImproveTrainingOptions as G, AgenticGeneratorOptions as Gt, decideSearchImprovement as H, DeepReadonly as Ht, isAgentProfileMeasuredSurface as I, SearchTraceOptions as It, ProfileTrainerRequest as J, AgenticGeneratorShotReceipt as Jt, ImproveTrainingResult as K, AgenticGeneratorShotDisposition as Kt, improve as L, SharedBoxSearchLane as Lt, agentImprovementProfileSurfaceDigest as M, SearchEnvironmentFault as Mt, agentImprovementProfileSurfaceInput as N, SearchLane$1 as Nt, AgentImprovementProfileSurface as O, ImprovementProfileCandidate as Ot, agentImprovementTargetProfileDiffs as P, SearchLaneKind as Pt, ImproveCandidateValidator as Q, commandVerifier as Qt, SearchMethodOptions as R, dedicatedLane as Rt, verifyAgentImprovementActivationResult as S, ImproveSearchMethod as St, AGENT_IMPROVEMENT_PROFILE_SURFACES as T, ImproveSkillsOptions as Tt, CheckpointServingPort as U, ReadonlyAgentProfile as Ut, SearchImprovementDecision as V, subscriptionLane as Vt, ControlledTrainingCommand as W, AgenticGeneratorExecutorForWorktree as Wt, createCommandProfileTrainer as X, VerifyResult as Xt, TrainingBoundaryResult as Y, Verifier as Yt, ImproveCandidateValidationInput as Z, agenticGenerator as Zt, createAgentImprovementActivationResult as _, ImproveResult as _t, AgentImprovementActivationTransitionInput as a, ImproveLineage as at, reviewAgentImprovementProposal as b, ImproveSearchAgent as bt, CreateAgentImprovementActivationOptions as c, ImproveMethodLineage as ct, ExecuteAgentImprovementActivationInput as d, ImproveMethodSource as dt, ImproveCodeOptions as et, ExecuteAgentImprovementActivationOptions as f, ImproveOptimizationRunOptions as ft, createAgentImprovementActivation as g, ImproveProfileSurface as gt, SealedCandidateActivationTransitionInput as h, ImproveProfileComponents as ht, AgentImprovementActivationTransition as i, ImproveCustomCodeGeneratorOptions as it, agentImprovementProfileDiffs as j, SearchCellContext as jt, AgentImprovementTargetProfileDiffOptions as k, SearchDispatchContext as kt, CreateAgentImprovementActivationResultOptions as l, ImproveMethodOptions as lt, ReviewAgentImprovementInput as m, ImproveProfileAgent as mt, AgentImprovementActivationResultStore as n, ImproveCodeRunOptions as nt, AgentProfileImprovementActivationOperation as o, ImproveMethodContext as ot, ProfileImprovementActivationTransitionInput as p, ImproveOptions as pt, ProfileTrainer as q, AgenticGeneratorShotExecution as qt, AgentImprovementActivationTargetPlan as r, ImproveCost as rt, AgentProfileImprovementActivationTargetPlan as s, ImproveMethodFactory as st, AgentImprovementActivationReconciliation as t, ImproveCodeResult as tt, CreateAgentImprovementProposalOptions as u, ImproveMethodResult as ut, createAgentImprovementProposal as v, ImproveRuntimeCodeGeneratorOptions as vt, verifyAgentImprovementReview as w, ImproveSearchResult as wt, verifyAgentImprovementActivation as x, ImproveSearchIdentity as xt, executeAgentImprovementActivation as y, ImproveScenarioPartitions as yt, searchMethod as z, routerLane as zt };
|
|
1062
|
-
//# sourceMappingURL=activation-
|
|
1062
|
+
//# sourceMappingURL=activation-DQhy-ET-.d.ts.map
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JS as OutputAdapter, S as RuntimeStreamEvent, TS as AgentRunSpec, XS as SandboxClient } from "./types-
|
|
1
|
+
import { JS as OutputAdapter, S as RuntimeStreamEvent, TS as AgentRunSpec, XS as SandboxClient } from "./types-ISwInoqb.js";
|
|
2
2
|
import { a as ProfileMaterializationContract, c as assertProfileMaterializes, n as AssertProfileMaterializationOptions, o as ProfileMaterializationIssue, r as DefineProfileMaterializationContractOptions, s as ValidateProfileMaterializationOptions, t as AgentProfileMaterializationAxis } from "./profile-materialization-BRY22Oh8.js";
|
|
3
3
|
import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as validateSurfaces } from "./improvement-adapter-D5GRU1eY.js";
|
|
4
4
|
import { AgentProfile, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
|
package/dist/agent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Oi as mapSandboxEvent } from "./scope-D5T_q60y.js";
|
|
2
2
|
import { l as sha256 } from "./jsonl-file-BBP9Dz9w.js";
|
|
3
3
|
import { A as createSandboxForSpec, Kt as assertProfileMaterialization, qt as assertProfileMaterializes, tn as sandboxActProfileMaterialization } from "./supervisor-CIsucL58.js";
|
|
4
|
-
import "./runtime-
|
|
4
|
+
import "./runtime-C7dIb3ui.js";
|
|
5
5
|
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
6
6
|
import { isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
7
7
|
import { parseFindingSubject } from "@tangle-network/agent-eval/analyst";
|
|
@@ -879,12 +879,12 @@ function createEventBus(now = Date.now) {
|
|
|
879
879
|
}
|
|
880
880
|
return best;
|
|
881
881
|
};
|
|
882
|
-
const
|
|
883
|
-
const i = bestIndex(kinds);
|
|
882
|
+
const pullAt = (i) => {
|
|
884
883
|
if (i < 0) return void 0;
|
|
885
884
|
pulled++;
|
|
886
885
|
return queue.splice(i, 1)[0];
|
|
887
886
|
};
|
|
887
|
+
const pullRecord = (kinds) => pullAt(bestIndex(kinds));
|
|
888
888
|
return {
|
|
889
889
|
async publish(event, opts) {
|
|
890
890
|
const record = staged.get(event) ?? {
|
|
@@ -903,10 +903,9 @@ function createEventBus(now = Date.now) {
|
|
|
903
903
|
if (opts?.queue !== false) for (const handler of [...queuedHandlers]) handler(record);
|
|
904
904
|
return record;
|
|
905
905
|
},
|
|
906
|
-
pull(kinds)
|
|
907
|
-
return pullRecord(kinds)?.event;
|
|
908
|
-
},
|
|
906
|
+
pull: (kinds) => pullRecord(kinds)?.event,
|
|
909
907
|
pullRecord,
|
|
908
|
+
take: (seq) => pullAt(queue.findIndex((r) => r.seq === seq)),
|
|
910
909
|
queued(kinds) {
|
|
911
910
|
return queue.filter((r) => matches(r, kinds));
|
|
912
911
|
},
|
|
@@ -1887,7 +1886,7 @@ function mountGraphsTools({ opts, tools, admitSpawn }) {
|
|
|
1887
1886
|
}
|
|
1888
1887
|
}
|
|
1889
1888
|
// src/mcp/tools/coordination-journal-reader.ts
|
|
1890
|
-
function createJournalReader({ opts, bus }) {
|
|
1889
|
+
function createJournalReader({ opts, bus, readSteer }) {
|
|
1891
1890
|
let journalReadTo = 0;
|
|
1892
1891
|
const redactJournalEvent = resolveRedactor(opts.redactJournal);
|
|
1893
1892
|
const clampBound = (raw, field, fallback, max) => {
|
|
@@ -1952,7 +1951,8 @@ function createJournalReader({ opts, bus }) {
|
|
|
1952
1951
|
bounded = true;
|
|
1953
1952
|
break;
|
|
1954
1953
|
}
|
|
1955
|
-
const
|
|
1954
|
+
const candidate = matching[index];
|
|
1955
|
+
const { record, event: _placeholder, ...stamp } = candidate;
|
|
1956
1956
|
const row = {
|
|
1957
1957
|
...stamp,
|
|
1958
1958
|
event: redactedRow(record)
|
|
@@ -1976,6 +1976,7 @@ function createJournalReader({ opts, bus }) {
|
|
|
1976
1976
|
}
|
|
1977
1977
|
entries.push(row);
|
|
1978
1978
|
usedBytes += bytes;
|
|
1979
|
+
if (trackOwnRead && !candidate.prior && record.event.type === "lead-message") readSteer(record.seq);
|
|
1979
1980
|
}
|
|
1980
1981
|
const last = entries[entries.length - 1];
|
|
1981
1982
|
const nextRow = last === void 0 ? sinceRow : last.row + 1;
|
|
@@ -4775,7 +4776,16 @@ function createCoordinationToolsForManager(opts, lifetime) {
|
|
|
4775
4776
|
};
|
|
4776
4777
|
const journal = createJournalReader({
|
|
4777
4778
|
opts,
|
|
4778
|
-
bus
|
|
4779
|
+
bus,
|
|
4780
|
+
readSteer: (seq) => {
|
|
4781
|
+
const record = bus.take?.(seq);
|
|
4782
|
+
const attempt = state.driverAttempt;
|
|
4783
|
+
if (record) state.deliveries.push({
|
|
4784
|
+
record,
|
|
4785
|
+
attempt,
|
|
4786
|
+
acknowledged: false
|
|
4787
|
+
});
|
|
4788
|
+
}
|
|
4779
4789
|
});
|
|
4780
4790
|
const ackEnv = {
|
|
4781
4791
|
opts,
|
|
@@ -5121,4 +5131,4 @@ function createResumeReplay({ opts, bus, ledger, analysis, projectSettled }) {
|
|
|
5121
5131
|
}
|
|
5122
5132
|
export { downMessageRefusalReasons as a, createSteerAcknowledger as c, coordinationVerbNames as d, createFileRunContext as f, watchTrace as i, budgetOverspendText as l, withRunContext as m, createCoordinationToolsForManager as n, createEventBus as o, createInMemoryRunContext as p, defaultToolDetectors as r, createCancelAcknowledger as s, createCoordinationTools as t, normalizeAnalyzeOnSettle as u };
|
|
5123
5133
|
|
|
5124
|
-
//# sourceMappingURL=coordination-manager-
|
|
5134
|
+
//# sourceMappingURL=coordination-manager-B4ePZZDF.js.map
|