@tangle-network/agent-runtime 0.352.1 → 1.0.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-C6zNC2kx.js → activation-BwoSqHCc.js} +2 -2
- package/dist/{activation-C6zNC2kx.js.map → activation-BwoSqHCc.js.map} +1 -1
- package/dist/{activation-BidzGkUQ.d.ts → activation-CFS31SWI.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-B7QadgrI.js → coordination-manager-ewBF777W.js} +2 -2
- package/dist/{coordination-manager-B7QadgrI.js.map → coordination-manager-ewBF777W.js.map} +1 -1
- package/dist/{delegate-CoscoyEo.js → delegate-BiuSfwBa.js} +2 -2
- package/dist/{delegate-CoscoyEo.js.map → delegate-BiuSfwBa.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-mojMML8e.js → graph-D6FL1xze.js} +4 -4
- package/dist/{graph-mojMML8e.js.map → graph-D6FL1xze.js.map} +1 -1
- package/dist/{improve-Dm5ZE8mr.js → improve-SiKDcz5_.js} +5 -5
- package/dist/{improve-Dm5ZE8mr.js.map → improve-SiKDcz5_.js.map} +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +8 -7
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-5cL_vZi0.js → loop-runner-CqlcC0i4.js} +2 -2
- package/dist/{loop-runner-5cL_vZi0.js.map → loop-runner-CqlcC0i4.js.map} +1 -1
- package/dist/{loop-runner-DyLD-aNb.d.ts → loop-runner-D9rcTNf2.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 +4 -4
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-D9pO-iPl.js → provision-supervisor-DnwR0AyW.js} +3 -3
- package/dist/{provision-supervisor-D9pO-iPl.js.map → provision-supervisor-DnwR0AyW.js.map} +1 -1
- package/dist/{runtime-BJPXHWbc.js → runtime-DSYZeav8.js} +12 -13
- package/dist/{runtime-BJPXHWbc.js.map → runtime-DSYZeav8.js.map} +1 -1
- package/dist/{search-executor-CQEHMXoT.js → search-executor-DcGAOrAh.js} +9 -8
- package/dist/{search-executor-CQEHMXoT.js.map → search-executor-DcGAOrAh.js.map} +1 -1
- package/dist/{server-U9NGgudQ.js → server-SrPLb8w0.js} +3 -3
- package/dist/{server-U9NGgudQ.js.map → server-SrPLb8w0.js.map} +1 -1
- package/dist/{structural-rollout-wMSxE7bn.js → structural-rollout-C_lg83-u.js} +2 -2
- package/dist/{structural-rollout-wMSxE7bn.js.map → structural-rollout-C_lg83-u.js.map} +1 -1
- package/dist/{supervise-CNNhX0ab.js → supervise-BXw89Ajc.js} +12 -15
- package/dist/supervise-BXw89Ajc.js.map +1 -0
- package/dist/{supervisor-rK5Y8en6.js → supervisor-hHU3ZJnR.js} +63 -202
- package/dist/supervisor-hHU3ZJnR.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-0uzVKtFW.d.ts → types-DTHxh4X9.d.ts} +18 -57
- package/package.json +12 -12
- package/dist/supervise-CNNhX0ab.js.map +0 -1
- package/dist/supervisor-rK5Y8en6.js.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { X as unavailableSignalOfFailure, q as unavailablePauseMs } from "./journal-store-BJPMUydp.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Ar as harnessInvocation, Ut as LEAF_CONTINUATION_TASK, _n as generateSpanId, an as openSlotGroup, gi as promptOptionsFromAgentTurnInput, hi as promptFromAgentTurnInput, hn as createOtelExporter, mn as createOpenInferenceFileExporter } from "./supervisor-hHU3ZJnR.js";
|
|
3
3
|
import { i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
|
|
4
4
|
import { v as sleep } from "./util-ebWMWzY0.js";
|
|
5
5
|
import { a as concreteProfileModel, l as profileProviderModel } from "./model-policy-C-RGAUW4.js";
|
|
6
6
|
import { R as immutableCandidateValue } from "./sandbox-profile-compat-CXjozdWL.js";
|
|
7
|
+
import { ATTR, branchSpan, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract";
|
|
7
8
|
import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
|
|
8
9
|
import { CostAccountingIncompleteError, CostCeilingReachedError, costForTokenPricing, costForUsage } from "@tangle-network/agent-eval";
|
|
9
10
|
import { createHash, randomUUID } from "node:crypto";
|
|
10
11
|
import { mkdirSync, renameSync, writeFileSync } from "node:fs";
|
|
11
12
|
import { dirname, join } from "node:path";
|
|
12
13
|
import { materializeProfile } from "@tangle-network/agent-profile-materialize";
|
|
13
|
-
import {
|
|
14
|
+
import { msToUnixNano, toOtlpAttributes } from "@tangle-network/agent-trace-contract/otlp";
|
|
14
15
|
import { createRunCostLedger, fsCampaignStorage, openSearchLedger, searchClaimDecision, searchReceiptAccounting, verifySearchClaim } from "@tangle-network/agent-eval/campaign";
|
|
15
16
|
import { sealExperiment } from "@tangle-network/agent-eval/experiment";
|
|
16
17
|
import { harnessSystemPromptIntents } from "@tangle-network/agent-interface/harness-capabilities";
|
|
@@ -1798,8 +1799,8 @@ function searchTracing(options) {
|
|
|
1798
1799
|
* of its spans; an attempt's own OTLP exporter is shut down at the end and read whole.
|
|
1799
1800
|
*/
|
|
1800
1801
|
function attemptTrace(work, lane, exporter, ownsExporter) {
|
|
1801
|
-
const traceId =
|
|
1802
|
-
const rootSpanId =
|
|
1802
|
+
const traceId = toW3CTraceId(`search-cell:${work.runId}`);
|
|
1803
|
+
const rootSpanId = toW3CSpanId(`search-cell:${work.runId}`);
|
|
1803
1804
|
const startMs = Date.now();
|
|
1804
1805
|
let written = 0;
|
|
1805
1806
|
let dropped = 0;
|
|
@@ -1902,12 +1903,12 @@ function otelSpan(input) {
|
|
|
1902
1903
|
...input.parentSpanId ? { parentSpanId: input.parentSpanId } : {},
|
|
1903
1904
|
name: input.name,
|
|
1904
1905
|
kind: 1,
|
|
1905
|
-
startTimeUnixNano: (
|
|
1906
|
-
endTimeUnixNano: (
|
|
1907
|
-
attributes:
|
|
1906
|
+
startTimeUnixNano: msToUnixNano(input.startMs),
|
|
1907
|
+
endTimeUnixNano: msToUnixNano(Math.max(input.startMs, input.endMs)),
|
|
1908
|
+
attributes: toOtlpAttributes(attributes),
|
|
1908
1909
|
status: { code: input.status }
|
|
1909
1910
|
};
|
|
1910
1911
|
}
|
|
1911
1912
|
export { sharedWorkerClientName as _, reconcileInterruptedSearchCalls as a, improveSearchCost as b, searchExecutor as c, taggedLedger as d, DEFAULT_SHARED_BOX_RESOURCES as f, sharedBoxRefusal as g, ROUTER_CLIENT_HEADER as h, isSearchEnvironmentFault as i, sharedBoxLane as l, sharedBoxPlacement as m, assertSearchLanes as n, routerLane as o, DEFAULT_SHARED_BOX_WORKERS as p, dedicatedLane as r, searchCallTags as s, SearchEnvironmentFault as t, subscriptionLane as u, decideClosedSearch as v, runtimeShipDecision as x, decideSearchImprovement as y };
|
|
1912
1913
|
|
|
1913
|
-
//# sourceMappingURL=search-executor-
|
|
1914
|
+
//# sourceMappingURL=search-executor-DcGAOrAh.js.map
|