@tangle-network/agent-runtime 3.0.36 → 3.0.40
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-B3vLJDlj.js → activation-n22lMRhH.js} +2 -2
- package/dist/{activation-B3vLJDlj.js.map → activation-n22lMRhH.js.map} +1 -1
- package/dist/agent.js +4 -4
- package/dist/{coordination-manager-CvWBnD3a.js → coordination-manager-C_ohXf63.js} +10 -9
- package/dist/{coordination-manager-CvWBnD3a.js.map → coordination-manager-C_ohXf63.js.map} +1 -1
- package/dist/{coordination-map-routing-BllzcZov.js → coordination-map-routing-2_hUlTnz.js} +2 -2
- package/dist/{coordination-map-routing-BllzcZov.js.map → coordination-map-routing-2_hUlTnz.js.map} +1 -1
- package/dist/{delegate-EaeQed8U.js → delegate-BYLjG7Ev.js} +2 -2
- package/dist/{delegate-EaeQed8U.js.map → delegate-BYLjG7Ev.js.map} +1 -1
- package/dist/durable.js +7 -7
- package/dist/{graph-XqPnqBK7.js → graph-T1-PBhLx.js} +7 -7
- package/dist/{graph-XqPnqBK7.js.map → graph-T1-PBhLx.js.map} +1 -1
- package/dist/{graph-registry-D6y6zffC.js → graph-registry-BoaUV5g8.js} +3 -3
- package/dist/{graph-registry-D6y6zffC.js.map → graph-registry-BoaUV5g8.js.map} +1 -1
- package/dist/{graph-registry-rV9mwxQO.js → graph-registry-EGeo_moB.js} +1 -1
- package/dist/{improve-YLCiNpX1.js → improve-BqMfcxh1.js} +8 -8
- package/dist/{improve-YLCiNpX1.js.map → improve-BqMfcxh1.js.map} +1 -1
- package/dist/index.js +10 -10
- package/dist/intelligence.js +5 -5
- package/dist/{jsonl-file-BBP9Dz9w.js → jsonl-file-CbxMVnUj.js} +16 -18
- package/dist/jsonl-file-CbxMVnUj.js.map +1 -0
- package/dist/kernel.js +12 -12
- package/dist/{loop-runner-8agTjOrD.js → loop-runner-CGa71-66.js} +2 -2
- package/dist/{loop-runner-8agTjOrD.js.map → loop-runner-CGa71-66.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +6 -6
- package/dist/{model-policy-C-RGAUW4.js → model-policy-JOcg3NRs.js} +2 -2
- package/dist/{model-policy-C-RGAUW4.js.map → model-policy-JOcg3NRs.js.map} +1 -1
- package/dist/profiles.js +1 -1
- package/dist/{provision-supervisor-DFZxaxuY.js → provision-supervisor-Dl6oYQDN.js} +6 -6
- package/dist/{provision-supervisor-DFZxaxuY.js.map → provision-supervisor-Dl6oYQDN.js.map} +1 -1
- package/dist/{run-cancellation-Cy8NtCtz.js → run-cancellation-BzmmqlM8.js} +3 -3
- package/dist/{run-cancellation-Cy8NtCtz.js.map → run-cancellation-BzmmqlM8.js.map} +1 -1
- package/dist/{runtime-BmAGI6UG.js → runtime-DoUb4SOs.js} +16 -16
- package/dist/{runtime-BmAGI6UG.js.map → runtime-DoUb4SOs.js.map} +1 -1
- package/dist/{scope-CBW-oIwP.js → scope-BGWRFiYt.js} +3 -3
- package/dist/{scope-CBW-oIwP.js.map → scope-BGWRFiYt.js.map} +1 -1
- package/dist/{search-executor-A2dtsTlx.js → search-executor-DPBewC3S.js} +4 -4
- package/dist/{search-executor-A2dtsTlx.js.map → search-executor-DPBewC3S.js.map} +1 -1
- package/dist/{server-B1BzXziA.js → server-M9dG-WG9.js} +3 -3
- package/dist/{server-B1BzXziA.js.map → server-M9dG-WG9.js.map} +1 -1
- package/dist/{structural-rollout-BBKSnDfB.js → structural-rollout-BylGQ_wK.js} +4 -4
- package/dist/{structural-rollout-BBKSnDfB.js.map → structural-rollout-BylGQ_wK.js.map} +1 -1
- package/dist/{supervise-zmX0eE6B.js → supervise-BfT708zt.js} +35 -22
- package/dist/supervise-BfT708zt.js.map +1 -0
- package/dist/{supervision-discovery-CvXb-yDc.js → supervision-discovery-C2Tjw6LX.js} +3 -3
- package/dist/{supervision-discovery-CvXb-yDc.js.map → supervision-discovery-C2Tjw6LX.js.map} +1 -1
- package/dist/{supervisor-B68cSh2T.js → supervisor-BDnqTl_R.js} +5 -7
- package/dist/supervisor-BDnqTl_R.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/{top-web-C8TMsrZ6.js → top-web-Ms-SgnGN.js} +36 -12
- package/dist/{top-web-C8TMsrZ6.js.map → top-web-Ms-SgnGN.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.js +2 -2
- package/package.json +1 -1
- package/dist/jsonl-file-BBP9Dz9w.js.map +0 -1
- package/dist/supervise-zmX0eE6B.js.map +0 -1
- package/dist/supervisor-B68cSh2T.js.map +0 -1
package/dist/testing.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { L as immutableCandidateValue, N as canonicalCandidateDigest$1 } from "./workspace-streams-8ALHaZzx.js";
|
|
2
|
-
import { c as verifyAgentImprovementProposal } from "./activation-
|
|
2
|
+
import { c as verifyAgentImprovementProposal } from "./activation-n22lMRhH.js";
|
|
3
3
|
import { a as applyExactAgentProfileDiff, v as parseExactAgentProfile } from "./profile-ClvuI8aY.js";
|
|
4
|
-
import { f as supervisorAgentWithTestBrain, r as superviseWithTestBrain, v as driverAgent } from "./supervise-
|
|
5
|
-
import { r as runGraphWithTestBrain } from "./graph-
|
|
4
|
+
import { f as supervisorAgentWithTestBrain, r as superviseWithTestBrain, v as driverAgent } from "./supervise-BfT708zt.js";
|
|
5
|
+
import { r as runGraphWithTestBrain } from "./graph-T1-PBhLx.js";
|
|
6
6
|
import { SANDBOX_SIZE_PRESET_NAMES, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
7
7
|
// src/testing/fixtures/agent-improvement-proposal.json
|
|
8
8
|
var agent_improvement_proposal_default = {
|
|
9
9
|
changedSurfaces: ["prompt"],
|
|
10
|
-
digest: "sha256:
|
|
10
|
+
digest: "sha256:54fdd35b84cbc6087d8ae4042b89ddb141540c1ffcb72db2b2234307587495c2",
|
|
11
11
|
evaluation: {
|
|
12
12
|
"decision": {
|
|
13
13
|
"contributingChecks": [
|
|
@@ -4578,7 +4578,7 @@ var agent_improvement_proposal_default = {
|
|
|
4578
4578
|
],
|
|
4579
4579
|
"metadata": {
|
|
4580
4580
|
"fixture": "agent-improvement-proposal",
|
|
4581
|
-
"runtimeVersion": "3.0.
|
|
4581
|
+
"runtimeVersion": "3.0.40"
|
|
4582
4582
|
},
|
|
4583
4583
|
"objectives": [
|
|
4584
4584
|
{
|
|
@@ -4689,8 +4689,8 @@ var agent_improvement_proposal_default = {
|
|
|
4689
4689
|
"baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
|
|
4690
4690
|
"candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
|
|
4691
4691
|
"kind": "agent-eval-loop",
|
|
4692
|
-
"recordDigest": "sha256:
|
|
4693
|
-
"runId": "agent-runtime-3.0.
|
|
4692
|
+
"recordDigest": "sha256:28949e27cedd1c72273c4c72bfd5dc58b7c4be4a566b50ae323fa72a8affdc56",
|
|
4693
|
+
"runId": "agent-runtime-3.0.40-proposal-fixture",
|
|
4694
4694
|
"schema": "agent-candidate-experiment"
|
|
4695
4695
|
}
|
|
4696
4696
|
},
|
|
@@ -4713,12 +4713,12 @@ var agent_improvement_proposal_default = {
|
|
|
4713
4713
|
}],
|
|
4714
4714
|
kind: "agent-improvement-proposal",
|
|
4715
4715
|
proposedAt: "2026-07-10T01:00:00.000Z",
|
|
4716
|
-
runId: "agent-runtime-3.0.
|
|
4716
|
+
runId: "agent-runtime-3.0.40-proposal-fixture"
|
|
4717
4717
|
};
|
|
4718
4718
|
// src/testing/fixtures/agent-profile-improvement-proposal.json
|
|
4719
4719
|
var agent_profile_improvement_proposal_default = {
|
|
4720
4720
|
changedSurfaces: ["prompt", "skills"],
|
|
4721
|
-
digest: "sha256:
|
|
4721
|
+
digest: "sha256:199dffba31ccca12886018bb3d4a09e32cc2cefe3f7422fcb169760d38845c0f",
|
|
4722
4722
|
evaluation: {
|
|
4723
4723
|
"decision": {
|
|
4724
4724
|
"contributingChecks": [
|
|
@@ -6352,7 +6352,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6352
6352
|
],
|
|
6353
6353
|
"metadata": {
|
|
6354
6354
|
"fixture": "agent-profile-improvement-proposal",
|
|
6355
|
-
"runtimeVersion": "3.0.
|
|
6355
|
+
"runtimeVersion": "3.0.40"
|
|
6356
6356
|
},
|
|
6357
6357
|
"objectives": [
|
|
6358
6358
|
{
|
|
@@ -6463,7 +6463,7 @@ var agent_profile_improvement_proposal_default = {
|
|
|
6463
6463
|
"baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
|
|
6464
6464
|
"candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
|
|
6465
6465
|
"kind": "agent-eval-loop",
|
|
6466
|
-
"recordDigest": "sha256:
|
|
6466
|
+
"recordDigest": "sha256:6200666b3bc11e3cf122e30340bf4fcf94142121d0566147aab64a231cedc1ef",
|
|
6467
6467
|
"runId": "profile-improvement-1",
|
|
6468
6468
|
"schema": "agent-profile-improvement-experiment"
|
|
6469
6469
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { L as FileSpawnJournal, Xi as recordValue, Xn as harnessTranscriptArtifact, Yt as FileResultBlobStore, d as legacySupervisorRunsRoot, g as safeWorkerFile, i as nodeStreamFile, n as ROOT_STREAM_FILE, oa as linkAbort, pn as FileObserverJournal, sa as runAbortable, v as supervisorRunsRoot, z as spawnJournalRecordEvents } from "./scope-
|
|
2
|
-
import {
|
|
3
|
-
import { h as rootCoordinationOwner, v as FileCoordinationLog } from "./run-cancellation-
|
|
4
|
-
import { d as projectPursuit, o as readFailureRecord, s as readSettleRecord, t as discoverDurableSupervisionRun } from "./supervision-discovery-
|
|
1
|
+
import { L as FileSpawnJournal, Xi as recordValue, Xn as harnessTranscriptArtifact, Yt as FileResultBlobStore, d as legacySupervisorRunsRoot, g as safeWorkerFile, i as nodeStreamFile, n as ROOT_STREAM_FILE, oa as linkAbort, pn as FileObserverJournal, sa as runAbortable, v as supervisorRunsRoot, z as spawnJournalRecordEvents } from "./scope-BGWRFiYt.js";
|
|
2
|
+
import { n as parseCommittedJsonLines } from "./jsonl-file-CbxMVnUj.js";
|
|
3
|
+
import { h as rootCoordinationOwner, v as FileCoordinationLog } from "./run-cancellation-BzmmqlM8.js";
|
|
4
|
+
import { d as projectPursuit, o as readFailureRecord, s as readSettleRecord, t as discoverDurableSupervisionRun } from "./supervision-discovery-C2Tjw6LX.js";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import { isRecord } from "@tangle-network/agent-core";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -1354,7 +1354,9 @@ async function serveTopAgent({ request, response, path, base, roots, snapshots,
|
|
|
1354
1354
|
const stream = createTopAgentStream(Date.now());
|
|
1355
1355
|
response.write(`event: reset\ndata: ${JSON.stringify(stream.reset)}\n\n`);
|
|
1356
1356
|
let updating = false;
|
|
1357
|
-
|
|
1357
|
+
let finalizing = false;
|
|
1358
|
+
const update = (changedRoots) => {
|
|
1359
|
+
if (!finalizing && !changedRoots.has(root)) return;
|
|
1358
1360
|
if (updating || response.destroyed || response.writableEnded) return;
|
|
1359
1361
|
updating = true;
|
|
1360
1362
|
(async () => {
|
|
@@ -1385,12 +1387,22 @@ async function serveTopAgent({ request, response, path, base, roots, snapshots,
|
|
|
1385
1387
|
});
|
|
1386
1388
|
};
|
|
1387
1389
|
transcripts.add(update);
|
|
1388
|
-
response.on("close", () =>
|
|
1389
|
-
|
|
1390
|
+
response.on("close", () => {
|
|
1391
|
+
finalizing = true;
|
|
1392
|
+
transcripts.delete(update);
|
|
1393
|
+
update(/* @__PURE__ */ new Set([root]));
|
|
1394
|
+
});
|
|
1395
|
+
update(/* @__PURE__ */ new Set([root]));
|
|
1390
1396
|
}
|
|
1391
1397
|
// src/tui/top-web.ts
|
|
1392
1398
|
/** Interval for reconciling missed filesystem notifications in the live viewer. */
|
|
1393
1399
|
const TOP_SNAPSHOT_RECONCILE_MS = 500;
|
|
1400
|
+
const JOURNALS = [
|
|
1401
|
+
"observer.jsonl",
|
|
1402
|
+
"spawn-journal.jsonl",
|
|
1403
|
+
"journal.jsonl"
|
|
1404
|
+
];
|
|
1405
|
+
const stampOf = (info) => `${info.size}:${info.mtimeMs}`;
|
|
1394
1406
|
/** Read-only web transport over the same snapshots as the terminal. No execution or writes. */
|
|
1395
1407
|
async function serveTopWeb(options) {
|
|
1396
1408
|
if (!options.roots.length) throw new Error("At least one --root is required");
|
|
@@ -1403,6 +1415,8 @@ async function serveTopWeb(options) {
|
|
|
1403
1415
|
const transcripts = /* @__PURE__ */ new Set();
|
|
1404
1416
|
const snapshots = /* @__PURE__ */ new Map();
|
|
1405
1417
|
const digests = /* @__PURE__ */ new Map();
|
|
1418
|
+
const touched = /* @__PURE__ */ new Set();
|
|
1419
|
+
const lastStamps = /* @__PURE__ */ new Map();
|
|
1406
1420
|
const watchers = [];
|
|
1407
1421
|
let sequence = 0;
|
|
1408
1422
|
let reading = false;
|
|
@@ -1420,10 +1434,14 @@ async function serveTopWeb(options) {
|
|
|
1420
1434
|
try {
|
|
1421
1435
|
const changed = [];
|
|
1422
1436
|
for (const root of roots) {
|
|
1423
|
-
const
|
|
1437
|
+
const marker = JOURNALS.map((name) => resolve(root, name)).find((path) => existsSync(path));
|
|
1438
|
+
const stamp = marker ? await stat(marker).then(stampOf, () => "none") : "runs-root";
|
|
1439
|
+
if (!touched.has(root) && snapshots.has(root) && lastStamps.get(root) === stamp) continue;
|
|
1440
|
+
lastStamps.set(root, stamp);
|
|
1441
|
+
const snapshot = marker?.endsWith("observer.jsonl") ? await loadTopSnapshot(root, { runDir: root }) : marker?.endsWith("spawn-journal.jsonl") ? await loadTopSnapshot(root, {
|
|
1424
1442
|
runDir: root,
|
|
1425
1443
|
format: "journal"
|
|
1426
|
-
}) :
|
|
1444
|
+
}) : marker?.endsWith("journal.jsonl") ? await loadTopSnapshot(root, {
|
|
1427
1445
|
runDir: root,
|
|
1428
1446
|
format: "workflow"
|
|
1429
1447
|
}) : await loadRunsRoot(root);
|
|
@@ -1443,7 +1461,9 @@ async function serveTopWeb(options) {
|
|
|
1443
1461
|
};
|
|
1444
1462
|
for (const client of clients) send(client, frame);
|
|
1445
1463
|
}
|
|
1446
|
-
|
|
1464
|
+
const changedRoots = /* @__PURE__ */ new Set([...changed.map((snapshot) => snapshot.root), ...touched]);
|
|
1465
|
+
touched.clear();
|
|
1466
|
+
for (const update of transcripts) update(changedRoots);
|
|
1447
1467
|
} finally {
|
|
1448
1468
|
reading = false;
|
|
1449
1469
|
if (dirty && !closed) schedule();
|
|
@@ -1464,7 +1484,11 @@ async function serveTopWeb(options) {
|
|
|
1464
1484
|
}, 16);
|
|
1465
1485
|
};
|
|
1466
1486
|
await refresh();
|
|
1467
|
-
|
|
1487
|
+
const mark = (root) => () => {
|
|
1488
|
+
touched.add(root);
|
|
1489
|
+
schedule();
|
|
1490
|
+
};
|
|
1491
|
+
for (const root of roots) watchers.push(watch(root, { recursive: true }, mark(root)));
|
|
1468
1492
|
const reconcile = setInterval(schedule, 500);
|
|
1469
1493
|
const heartbeat = setInterval(() => {
|
|
1470
1494
|
for (const client of clients) client.write(": alive\n\n");
|
|
@@ -1635,4 +1659,4 @@ async function loadRunsRoot(root) {
|
|
|
1635
1659
|
}
|
|
1636
1660
|
export { topAgentMetadata as _, buildSupervisorView as a, numberValue as c, topSnapshot as d, totalSpend as f, readTopAgentInspection as g, readTopAgentHistory as h, aggregateSnapshot as i, parseSpend as l, harnessSessionRows as m, runTopWeb as n, isSpawnEvent as o, createTopAgentStream as p, serveTopWeb as r, loadTopSnapshot as s, TOP_SNAPSHOT_RECONCILE_MS as t, parseTime as u, topAgentWorker as v };
|
|
1637
1661
|
|
|
1638
|
-
//# sourceMappingURL=top-web-
|
|
1662
|
+
//# sourceMappingURL=top-web-Ms-SgnGN.js.map
|