@tangle-network/agent-runtime 0.349.0 → 0.352.1
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-wBipBkCf.d.ts → activation-BidzGkUQ.d.ts} +2 -24
- package/dist/{activation-tNGW73Y9.js → activation-C6zNC2kx.js} +12 -14
- package/dist/{activation-tNGW73Y9.js.map → activation-C6zNC2kx.js.map} +1 -1
- package/dist/agent.d.ts +8 -12
- package/dist/agent.js +9 -12
- package/dist/agent.js.map +1 -1
- package/dist/{analyst-loop-DZw5QWT9.js → analyst-loop-BZvXCDKy.js} +2 -3
- package/dist/{analyst-loop-DZw5QWT9.js.map → analyst-loop-BZvXCDKy.js.map} +1 -1
- package/dist/analyst-loop.d.ts +3 -5
- package/dist/analyst-loop.js +1 -2
- package/dist/{bundle-1xaJEgjq.js → bundle-DeDkJbsr.js} +3 -4
- package/dist/{bundle-1xaJEgjq.js.map → bundle-DeDkJbsr.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +13 -33
- package/dist/candidate-execution/index.js +16 -18
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/chat-turn.d.ts +2 -0
- package/dist/chat-turn.js +1 -0
- package/dist/{coordination-manager-B2Z_MmL9.js → coordination-manager-B7QadgrI.js} +101 -132
- package/dist/{coordination-manager-B2Z_MmL9.js.map → coordination-manager-B7QadgrI.js.map} +1 -1
- package/dist/{delegate-Dr-63jFl.js → delegate-CoscoyEo.js} +19 -21
- package/dist/delegate-CoscoyEo.js.map +1 -0
- package/dist/durable.d.ts +16 -149
- package/dist/durable.js +57 -980
- package/dist/durable.js.map +1 -1
- package/dist/{errors-DodWX-cb.js → errors-AzSuGI23.js} +5 -3
- package/dist/errors-AzSuGI23.js.map +1 -0
- package/dist/execution-handle-Bd2_nUB6.js +167 -0
- package/dist/execution-handle-Bd2_nUB6.js.map +1 -0
- package/dist/execution-handle-CujvqgCn.d.ts +130 -0
- package/dist/{graph-DPejYB3C.js → graph-mojMML8e.js} +192 -14
- package/dist/graph-mojMML8e.js.map +1 -0
- package/dist/{improve-DwSahPi1.js → improve-Dm5ZE8mr.js} +36 -53
- package/dist/{improve-DwSahPi1.js.map → improve-Dm5ZE8mr.js.map} +1 -1
- package/dist/{improvement-adapter-sIthWkcN.d.ts → improvement-adapter-D5GRU1eY.d.ts} +2 -6
- package/dist/index.d.ts +41 -89
- package/dist/index.js +45 -61
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +39 -59
- package/dist/intelligence.js +24 -33
- package/dist/intelligence.js.map +1 -1
- package/dist/journal-store-BJPMUydp.js +3925 -0
- package/dist/journal-store-BJPMUydp.js.map +1 -0
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +12 -11
- package/dist/{loop-runner-CP6MfO1b.js → loop-runner-5cL_vZi0.js} +5 -6
- package/dist/{loop-runner-CP6MfO1b.js.map → loop-runner-5cL_vZi0.js.map} +1 -1
- package/dist/{loop-runner-C6pGq-2l.d.ts → loop-runner-DyLD-aNb.d.ts} +3 -5
- package/dist/loop-runner-bin.d.ts +5 -8
- package/dist/loop-runner-bin.js +2 -3
- package/dist/mcp/bin.js +6 -8
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +8 -18
- package/dist/mcp/index.js +17 -25
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.js +4 -6
- package/dist/mcp/memory-bin.js.map +1 -1
- package/dist/{model-policy-CyCUwHed.js → model-policy-C-RGAUW4.js} +11 -13
- package/dist/{model-policy-CyCUwHed.js.map → model-policy-C-RGAUW4.js.map} +1 -1
- package/dist/placement.d.ts +12 -14
- package/dist/placement.js +1 -2
- package/dist/platform.d.ts +7 -13
- package/dist/platform.js +3 -6
- package/dist/platform.js.map +1 -1
- package/dist/{prepare-B9wWffjO.js → prepare-XWwsOh8O.js} +50 -69
- package/dist/{prepare-B9wWffjO.js.map → prepare-XWwsOh8O.js.map} +1 -1
- package/dist/{profile-JLJd2wFG.js → profile-C01SQZKa.js} +58 -92
- package/dist/profile-C01SQZKa.js.map +1 -0
- package/dist/{profile-materialization-bPm0gGLO.d.ts → profile-materialization-BRY22Oh8.d.ts} +1 -3
- package/dist/profiles.d.ts +25 -12
- package/dist/profiles.js +52 -11
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-DVVh-hEk.d.ts → protected-model-port-IKqhTypD.d.ts} +2 -14
- package/dist/{protected-redaction-DFCeo4vg.js → protected-redaction-DilFZch5.js} +2 -3
- package/dist/{protected-redaction-DFCeo4vg.js.map → protected-redaction-DilFZch5.js.map} +1 -1
- package/dist/{provision-supervisor-C4v2vqDo.js → provision-supervisor-D9pO-iPl.js} +11 -15
- package/dist/{provision-supervisor-C4v2vqDo.js.map → provision-supervisor-D9pO-iPl.js.map} +1 -1
- package/dist/{run-cancellation-CzFhQGMa.js → run-cancellation-CoJRKvih.js} +6 -7
- package/dist/{run-cancellation-CzFhQGMa.js.map → run-cancellation-CoJRKvih.js.map} +1 -1
- package/dist/{runtime-CsvGCQpl.js → runtime-BJPXHWbc.js} +652 -215
- package/dist/runtime-BJPXHWbc.js.map +1 -0
- package/dist/{runtime-hooks-tXpAarhW.js → runtime-hooks-CsW2pfFk.js} +2 -3
- package/dist/{runtime-hooks-tXpAarhW.js.map → runtime-hooks-CsW2pfFk.js.map} +1 -1
- package/dist/{runtime-hooks-nsqxSUFL.d.ts → runtime-hooks-ZQqPw-0g.d.ts} +1 -3
- package/dist/{sandbox-profile-compat-DtuJWFrM.js → sandbox-profile-compat-CXjozdWL.js} +52 -653
- package/dist/sandbox-profile-compat-CXjozdWL.js.map +1 -0
- package/dist/{search-executor-CCb82Umc.js → search-executor-CQEHMXoT.js} +12 -15
- package/dist/{search-executor-CCb82Umc.js.map → search-executor-CQEHMXoT.js.map} +1 -1
- package/dist/{server-CKPwZU-I.js → server-U9NGgudQ.js} +19 -30
- package/dist/{server-CKPwZU-I.js.map → server-U9NGgudQ.js.map} +1 -1
- package/dist/{structural-rollout-DylC_fwU.js → structural-rollout-wMSxE7bn.js} +71 -70
- package/dist/structural-rollout-wMSxE7bn.js.map +1 -0
- package/dist/{substrate-CGDFTSRh.js → substrate-Db2pp6y3.js} +2 -3
- package/dist/{substrate-CGDFTSRh.js.map → substrate-Db2pp6y3.js.map} +1 -1
- package/dist/{supervise-BGfm2GlY.js → supervise-CNNhX0ab.js} +460 -195
- package/dist/supervise-CNNhX0ab.js.map +1 -0
- package/dist/supervision-discovery-CewADdEs.js +772 -0
- package/dist/supervision-discovery-CewADdEs.js.map +1 -0
- package/dist/{supervisor-wS9Ehz_x.js → supervisor-rK5Y8en6.js} +521 -4320
- package/dist/supervisor-rK5Y8en6.js.map +1 -0
- package/dist/{task-queue-0fKkoweu.d.ts → task-queue-kefGy79U.d.ts} +1 -3
- package/dist/task-queue.d.ts +1 -1
- package/dist/task-queue.js +1 -2
- package/dist/testing.d.ts +7 -15
- package/dist/testing.js +241 -244
- package/dist/testing.js.map +1 -1
- package/dist/tool-loop.d.ts +16 -19
- package/dist/tool-loop.js +2 -3
- package/dist/{tool-server-XV4aJwoQ.js → tool-server-CZWd_Opp.js} +3 -4
- package/dist/{tool-server-XV4aJwoQ.js.map → tool-server-CZWd_Opp.js.map} +1 -1
- package/dist/{top-snapshot-CflmaDgk.js → top-snapshot-DcV7VG4m.js} +179 -163
- package/dist/top-snapshot-DcV7VG4m.js.map +1 -0
- package/dist/tui/bin.js +50 -81
- package/dist/tui/bin.js.map +1 -1
- package/dist/tui/index.d.ts +27 -58
- package/dist/tui/index.js +2 -2
- package/dist/{types-C8BGOCBn.d.ts → types-0uzVKtFW.d.ts} +388 -484
- package/dist/{types-Cwrea-bU.d.ts → types-qsqfyQoY.d.ts} +1 -3
- package/dist/util-ebWMWzY0.js +624 -0
- package/dist/util-ebWMWzY0.js.map +1 -0
- package/dist/workspace-store/index.d.ts +12 -22
- package/dist/workspace-store/index.js +13 -10
- package/dist/workspace-store/index.js.map +1 -1
- package/dist/{workspace-streams-BiS4ABah.d.ts → workspace-streams-Dq2Fzk3c.d.ts} +1 -11
- package/package.json +31 -26
- package/skills/agent-graphs/SKILL.md +17 -4
- package/skills/be-ambitious/SKILL.md +46 -0
- package/skills/graph-designer/SKILL.md +9 -2
- package/dist/delegate-Dr-63jFl.js.map +0 -1
- package/dist/errors-DodWX-cb.js.map +0 -1
- package/dist/graph-DPejYB3C.js.map +0 -1
- package/dist/profile-JLJd2wFG.js.map +0 -1
- package/dist/record-events-D93DkpAx.js +0 -263
- package/dist/record-events-D93DkpAx.js.map +0 -1
- package/dist/runtime-CsvGCQpl.js.map +0 -1
- package/dist/sandbox-profile-compat-DtuJWFrM.js.map +0 -1
- package/dist/structural-rollout-DylC_fwU.js.map +0 -1
- package/dist/supervise-BGfm2GlY.js.map +0 -1
- package/dist/supervisor-wS9Ehz_x.js.map +0 -1
- package/dist/top-snapshot-CflmaDgk.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { m as ValidationError, o as NotFoundError, t as AgentEvalError } from "./errors-
|
|
3
|
-
import {
|
|
4
|
-
import { n as createStdioToolServer } from "./tool-server-
|
|
5
|
-
import { n as delegate } from "./delegate-
|
|
6
|
-
import { t as UI_LENSES } from "./substrate-
|
|
1
|
+
import { fn as buildLoopSpanNodes } from "./supervisor-rK5Y8en6.js";
|
|
2
|
+
import { m as ValidationError, o as NotFoundError, t as AgentEvalError } from "./errors-AzSuGI23.js";
|
|
3
|
+
import { c as errorMessage, l as fnv1a32Hex } from "./util-ebWMWzY0.js";
|
|
4
|
+
import { n as createStdioToolServer } from "./tool-server-CZWd_Opp.js";
|
|
5
|
+
import { n as delegate } from "./delegate-CoscoyEo.js";
|
|
6
|
+
import { t as UI_LENSES } from "./substrate-Db2pp6y3.js";
|
|
7
7
|
import path, { dirname } from "node:path";
|
|
8
8
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
9
9
|
import "node:stream";
|
|
10
|
-
|
|
10
|
+
// src/mcp/delegation-trace.ts
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
13
|
* Compact loop-trace tee for the delegation journal.
|
|
@@ -29,7 +29,7 @@ import "node:stream";
|
|
|
29
29
|
/** Default cap on spans retained per delegation record. @experimental */
|
|
30
30
|
const DELEGATION_TRACE_MAX_SPANS = 512;
|
|
31
31
|
/** Default cap on the serialized trace payload per record, in bytes. @experimental */
|
|
32
|
-
const DELEGATION_TRACE_MAX_BYTES =
|
|
32
|
+
const DELEGATION_TRACE_MAX_BYTES = 262144;
|
|
33
33
|
/**
|
|
34
34
|
* Derive the compact span tree for ONE loop run from its buffered
|
|
35
35
|
* `LoopTraceEvent` stream. Same reconstruction as the OTEL exporter
|
|
@@ -131,8 +131,7 @@ function composeLoopTraceEmitters(...emitters) {
|
|
|
131
131
|
if (pending.length > 0) return Promise.all(pending).then(() => void 0);
|
|
132
132
|
} };
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
//#region src/mcp/delegation-store.ts
|
|
134
|
+
// src/mcp/delegation-store.ts
|
|
136
135
|
/**
|
|
137
136
|
*
|
|
138
137
|
* Persistence port for the MCP delegation queue.
|
|
@@ -304,8 +303,7 @@ function parsePersistedState(raw) {
|
|
|
304
303
|
function cloneRecord(record) {
|
|
305
304
|
return structuredClone(record);
|
|
306
305
|
}
|
|
307
|
-
|
|
308
|
-
//#region src/mcp/feedback-store.ts
|
|
306
|
+
// src/mcp/feedback-store.ts
|
|
309
307
|
/** In-memory `FeedbackStore` — suitable for single-process use and tests. @stable */
|
|
310
308
|
var InMemoryFeedbackStore = class {
|
|
311
309
|
events = [];
|
|
@@ -336,8 +334,7 @@ function eventToSnapshot(event) {
|
|
|
336
334
|
if (event.rating.label) snap.label = event.rating.label;
|
|
337
335
|
return snap;
|
|
338
336
|
}
|
|
339
|
-
|
|
340
|
-
//#region src/mcp/task-queue.ts
|
|
337
|
+
// src/mcp/task-queue.ts
|
|
341
338
|
/**
|
|
342
339
|
*
|
|
343
340
|
* State machine for async MCP delegations:
|
|
@@ -852,8 +849,7 @@ function canonicalize(value) {
|
|
|
852
849
|
for (const [k, v] of entries) out[k] = canonicalize(v);
|
|
853
850
|
return out;
|
|
854
851
|
}
|
|
855
|
-
|
|
856
|
-
//#region src/mcp/tools/delegate.ts
|
|
852
|
+
// src/mcp/tools/delegate.ts
|
|
857
853
|
/** MCP tool name for the `delegate` generic-delegation tool. @stable */
|
|
858
854
|
const DELEGATE_TOOL_NAME = "delegate";
|
|
859
855
|
/** Human-readable description of the `delegate` MCP tool, injected into the tool manifest. @stable */
|
|
@@ -947,8 +943,7 @@ function createDelegateHandler(options) {
|
|
|
947
943
|
return toDelegateResult(await delegate(args.intent, opts));
|
|
948
944
|
};
|
|
949
945
|
}
|
|
950
|
-
|
|
951
|
-
//#region src/mcp/tools/delegate-feedback.ts
|
|
946
|
+
// src/mcp/tools/delegate-feedback.ts
|
|
952
947
|
/** MCP tool name for the `delegate_feedback` feedback-recording tool. @stable */
|
|
953
948
|
const DELEGATE_FEEDBACK_TOOL_NAME = "delegate_feedback";
|
|
954
949
|
/** Human-readable description of the `delegate_feedback` MCP tool, injected into the tool manifest. @stable */
|
|
@@ -1110,8 +1105,7 @@ function createDelegateFeedbackHandler(options) {
|
|
|
1110
1105
|
function randomFeedbackId() {
|
|
1111
1106
|
return `fbk-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
|
|
1112
1107
|
}
|
|
1113
|
-
|
|
1114
|
-
//#region src/mcp/tools/delegate-ui-audit.ts
|
|
1108
|
+
// src/mcp/tools/delegate-ui-audit.ts
|
|
1115
1109
|
/**
|
|
1116
1110
|
*
|
|
1117
1111
|
* `delegate_ui_audit` MCP tool — async kickoff for UI audit runs. Validates
|
|
@@ -1365,8 +1359,7 @@ function defaultEstimate(args) {
|
|
|
1365
1359
|
const routes = args.routes.length;
|
|
1366
1360
|
return PER_LENS_PER_ROUTE_ESTIMATE_MS * lenses * routes;
|
|
1367
1361
|
}
|
|
1368
|
-
|
|
1369
|
-
//#region src/mcp/types.ts
|
|
1362
|
+
// src/mcp/types.ts
|
|
1370
1363
|
/**
|
|
1371
1364
|
* Every delegation profile a queued record can carry. One owner: the tool schemas and validators
|
|
1372
1365
|
* that filter on a profile read this list, so a profile added here cannot be one a tool refuses.
|
|
@@ -1377,8 +1370,7 @@ const delegationProfiles = [
|
|
|
1377
1370
|
"researcher",
|
|
1378
1371
|
"ui-auditor"
|
|
1379
1372
|
];
|
|
1380
|
-
|
|
1381
|
-
//#region src/mcp/tools/delegation-history.ts
|
|
1373
|
+
// src/mcp/tools/delegation-history.ts
|
|
1382
1374
|
/** MCP tool name for the `delegation_history` read-past-delegations tool. @stable */
|
|
1383
1375
|
const DELEGATION_HISTORY_TOOL_NAME = "delegation_history";
|
|
1384
1376
|
/** Human-readable description of the `delegation_history` MCP tool, injected into the tool manifest. @stable */
|
|
@@ -1454,8 +1446,7 @@ function createDelegationHistoryHandler(options) {
|
|
|
1454
1446
|
return { delegations: options.queue.history(args) };
|
|
1455
1447
|
};
|
|
1456
1448
|
}
|
|
1457
|
-
|
|
1458
|
-
//#region src/mcp/tools/delegation-status.ts
|
|
1449
|
+
// src/mcp/tools/delegation-status.ts
|
|
1459
1450
|
/**
|
|
1460
1451
|
*
|
|
1461
1452
|
* `delegation_status` MCP tool — synchronous poll. Returns the current
|
|
@@ -1524,8 +1515,7 @@ function createDelegationStatusHandler(options) {
|
|
|
1524
1515
|
return status;
|
|
1525
1516
|
};
|
|
1526
1517
|
}
|
|
1527
|
-
|
|
1528
|
-
//#region src/mcp/server.ts
|
|
1518
|
+
// src/mcp/server.ts
|
|
1529
1519
|
const DEFAULT_SERVER_NAME = "agent-runtime-mcp";
|
|
1530
1520
|
const DEFAULT_SERVER_VERSION = "0.22.0";
|
|
1531
1521
|
/**
|
|
@@ -1593,7 +1583,6 @@ function createMcpServer(options = {}) {
|
|
|
1593
1583
|
stop: stdio.stop
|
|
1594
1584
|
};
|
|
1595
1585
|
}
|
|
1596
|
-
//#endregion
|
|
1597
1586
|
export { composeLoopTraceEmitters as a, FileDelegationStore as i, createDelegateHandler as n, DelegationTaskQueue as r, createMcpServer as t };
|
|
1598
1587
|
|
|
1599
|
-
//# sourceMappingURL=server-
|
|
1588
|
+
//# sourceMappingURL=server-U9NGgudQ.js.map
|