@tangle-network/agent-runtime 3.0.30 → 3.0.32
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-BspipHFs.js → activation-CWOj5iZe.js} +2 -2
- package/dist/{activation-BspipHFs.js.map → activation-CWOj5iZe.js.map} +1 -1
- package/dist/{activation-D0dnzmz_.d.ts → activation-DQhy-ET-.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{coordination-manager-CIeVgZcp.js → coordination-manager-s1hbIqXx.js} +22 -12
- package/dist/{coordination-manager-CIeVgZcp.js.map → coordination-manager-s1hbIqXx.js.map} +1 -1
- package/dist/{delegate-C6e7UJNA.js → delegate-ubXkOvcK.js} +2 -2
- package/dist/{delegate-C6e7UJNA.js.map → delegate-ubXkOvcK.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +6 -6
- package/dist/{graph-CIAsV8GC.js → graph-BPqKAgZp.js} +5 -5
- package/dist/{graph-CIAsV8GC.js.map → graph-BPqKAgZp.js.map} +1 -1
- package/dist/{improve-DVJMU8wm.js → improve-CXK2GKbS.js} +6 -6
- package/dist/{improve-DVJMU8wm.js.map → improve-CXK2GKbS.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-BbWD5f9L.js → loop-runner-CJxzdLr-.js} +2 -2
- package/dist/{loop-runner-BbWD5f9L.js.map → loop-runner-CJxzdLr-.js.map} +1 -1
- package/dist/{loop-runner-_3NabgWH.d.ts → loop-runner-D1JVNvwC.d.ts} +2 -2
- 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 +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-RUefSoIS.js → provision-supervisor-B6-0_VQb.js} +4 -4
- package/dist/{provision-supervisor-RUefSoIS.js.map → provision-supervisor-B6-0_VQb.js.map} +1 -1
- package/dist/{run-cancellation-s3uzwrd6.js → run-cancellation-BRIB385R.js} +2 -2
- package/dist/{run-cancellation-s3uzwrd6.js.map → run-cancellation-BRIB385R.js.map} +1 -1
- package/dist/{runtime-BpQ8jOYP.js → runtime-LN0kcRwo.js} +11 -11
- package/dist/{runtime-BpQ8jOYP.js.map → runtime-LN0kcRwo.js.map} +1 -1
- package/dist/{scope-D5T_q60y.js → scope-CCHfmCvY.js} +2 -2
- package/dist/{scope-D5T_q60y.js.map → scope-CCHfmCvY.js.map} +1 -1
- package/dist/{search-executor-9mTYFafI.js → search-executor-Cypg4sCQ.js} +3 -3
- package/dist/{search-executor-9mTYFafI.js.map → search-executor-Cypg4sCQ.js.map} +1 -1
- package/dist/{server-DBy7Ev8_.js → server-CdP5hoHJ.js} +3 -3
- package/dist/{server-DBy7Ev8_.js.map → server-CdP5hoHJ.js.map} +1 -1
- package/dist/{structural-rollout-DkMKSOOb.js → structural-rollout-BS3hVAq2.js} +3 -3
- package/dist/{structural-rollout-DkMKSOOb.js.map → structural-rollout-BS3hVAq2.js.map} +1 -1
- package/dist/{supervise-Cz5gaGDW.js → supervise-CfuHhf-S.js} +5 -5
- package/dist/{supervise-Cz5gaGDW.js.map → supervise-CfuHhf-S.js.map} +1 -1
- package/dist/{supervision-discovery-BS5k2s-A.js → supervision-discovery-DcQU64rK.js} +2 -2
- package/dist/{supervision-discovery-BS5k2s-A.js.map → supervision-discovery-DcQU64rK.js.map} +1 -1
- package/dist/{supervisor-CIsucL58.js → supervisor-C-mx3kR8.js} +55 -39
- package/dist/supervisor-C-mx3kR8.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{top-web-B981CLsj.js → top-web-l3naxnjo.js} +4 -4
- package/dist/{top-web-B981CLsj.js.map → top-web-l3naxnjo.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-DQ4JHRDD.d.ts → types-ISwInoqb.d.ts} +15 -23
- package/package.json +1 -1
- package/dist/supervisor-CIsucL58.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as writeWorkerSteerAcknowledgement, Ei as assertValidBudget, L as FileSpawnJournal, O as parseWorkerToolTraceArtifact, Y as runtimeGraphMetadataKey, Yt as FileResultBlobStore, Zr as settlementFailureCause, f as readWorkerCancelRequests, h as readWorkerSteerRequests, hi as contentAddress, k as workerTraceAnalysisStore, l as claimWorkerSteerDelivery, lr as isLiveNodeStatus, m as readWorkerSteerAcknowledgement, ot as meterRuntimeOwnedAccounting, p as readWorkerCancellation, ur as isTerminalNodeStatus, wt as resolveSpawnResourcePaths, x as writeWorkerCancellation, z as spawnJournalRecordEvents } from "./scope-
|
|
1
|
+
import { C as writeWorkerSteerAcknowledgement, Ei as assertValidBudget, L as FileSpawnJournal, O as parseWorkerToolTraceArtifact, Y as runtimeGraphMetadataKey, Yt as FileResultBlobStore, Zr as settlementFailureCause, f as readWorkerCancelRequests, h as readWorkerSteerRequests, hi as contentAddress, k as workerTraceAnalysisStore, l as claimWorkerSteerDelivery, lr as isLiveNodeStatus, m as readWorkerSteerAcknowledgement, ot as meterRuntimeOwnedAccounting, p as readWorkerCancellation, ur as isTerminalNodeStatus, wt as resolveSpawnResourcePaths, x as writeWorkerCancellation, z as spawnJournalRecordEvents } from "./scope-CCHfmCvY.js";
|
|
2
2
|
import { b as resolveRedactor, m as errMessage, u as detachedFrozen } from "./jsonl-file-BBP9Dz9w.js";
|
|
3
|
-
import { Dt as failedItems, Tt as checkVerdictOf, Y as INBOX_RECEIPT_KEY, _ as withDriverExecutor, _t as CheckUnavailableError, b as createExecutorRegistry, nt as createPeerMailbox, v as InMemoryResultBlobStore, y as InMemorySpawnJournal } from "./supervisor-
|
|
4
|
-
import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, t as applyRunCancellation, v as FileCoordinationLog } from "./run-cancellation-
|
|
3
|
+
import { Dt as failedItems, Tt as checkVerdictOf, Y as INBOX_RECEIPT_KEY, _ as withDriverExecutor, _t as CheckUnavailableError, b as createExecutorRegistry, nt as createPeerMailbox, v as InMemoryResultBlobStore, y as InMemorySpawnJournal } from "./supervisor-C-mx3kR8.js";
|
|
4
|
+
import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, t as applyRunCancellation, v as FileCoordinationLog } from "./run-cancellation-BRIB385R.js";
|
|
5
5
|
import { a as admitRuntimeSpawn, i as workerSettlement, n as resolveJsonPointer, o as safeJsonText, r as textBytes, t as createMapRouting } from "./coordination-map-routing-BllzcZov.js";
|
|
6
6
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
|
|
7
7
|
import { argHash, errorStreakDetector, observeAll, repeatedActionDetector } from "@tangle-network/agent-eval";
|
|
@@ -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-s1hbIqXx.js.map
|