@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.
Files changed (54) hide show
  1. package/dist/{activation-C6zNC2kx.js → activation-BwoSqHCc.js} +2 -2
  2. package/dist/{activation-C6zNC2kx.js.map → activation-BwoSqHCc.js.map} +1 -1
  3. package/dist/{activation-BidzGkUQ.d.ts → activation-CFS31SWI.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-manager-B7QadgrI.js → coordination-manager-ewBF777W.js} +2 -2
  7. package/dist/{coordination-manager-B7QadgrI.js.map → coordination-manager-ewBF777W.js.map} +1 -1
  8. package/dist/{delegate-CoscoyEo.js → delegate-BiuSfwBa.js} +2 -2
  9. package/dist/{delegate-CoscoyEo.js.map → delegate-BiuSfwBa.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +3 -3
  12. package/dist/{graph-mojMML8e.js → graph-D6FL1xze.js} +4 -4
  13. package/dist/{graph-mojMML8e.js.map → graph-D6FL1xze.js.map} +1 -1
  14. package/dist/{improve-Dm5ZE8mr.js → improve-SiKDcz5_.js} +5 -5
  15. package/dist/{improve-Dm5ZE8mr.js.map → improve-SiKDcz5_.js.map} +1 -1
  16. package/dist/index.d.ts +4 -3
  17. package/dist/index.js +8 -7
  18. package/dist/index.js.map +1 -1
  19. package/dist/intelligence.d.ts +2 -2
  20. package/dist/intelligence.js +8 -7
  21. package/dist/intelligence.js.map +1 -1
  22. package/dist/kernel.d.ts +1 -1
  23. package/dist/kernel.js +9 -9
  24. package/dist/{loop-runner-5cL_vZi0.js → loop-runner-CqlcC0i4.js} +2 -2
  25. package/dist/{loop-runner-5cL_vZi0.js.map → loop-runner-CqlcC0i4.js.map} +1 -1
  26. package/dist/{loop-runner-DyLD-aNb.d.ts → loop-runner-D9rcTNf2.d.ts} +2 -2
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +1 -1
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/profiles.d.ts +1 -1
  33. package/dist/{provision-supervisor-D9pO-iPl.js → provision-supervisor-DnwR0AyW.js} +3 -3
  34. package/dist/{provision-supervisor-D9pO-iPl.js.map → provision-supervisor-DnwR0AyW.js.map} +1 -1
  35. package/dist/{runtime-BJPXHWbc.js → runtime-DSYZeav8.js} +12 -13
  36. package/dist/{runtime-BJPXHWbc.js.map → runtime-DSYZeav8.js.map} +1 -1
  37. package/dist/{search-executor-CQEHMXoT.js → search-executor-DcGAOrAh.js} +9 -8
  38. package/dist/{search-executor-CQEHMXoT.js.map → search-executor-DcGAOrAh.js.map} +1 -1
  39. package/dist/{server-U9NGgudQ.js → server-SrPLb8w0.js} +3 -3
  40. package/dist/{server-U9NGgudQ.js.map → server-SrPLb8w0.js.map} +1 -1
  41. package/dist/{structural-rollout-wMSxE7bn.js → structural-rollout-C_lg83-u.js} +2 -2
  42. package/dist/{structural-rollout-wMSxE7bn.js.map → structural-rollout-C_lg83-u.js.map} +1 -1
  43. package/dist/{supervise-CNNhX0ab.js → supervise-BXw89Ajc.js} +12 -15
  44. package/dist/supervise-BXw89Ajc.js.map +1 -0
  45. package/dist/{supervisor-rK5Y8en6.js → supervisor-hHU3ZJnR.js} +63 -202
  46. package/dist/supervisor-hHU3ZJnR.js.map +1 -0
  47. package/dist/testing.d.ts +1 -1
  48. package/dist/testing.js +11 -11
  49. package/dist/tui/index.d.ts +1 -1
  50. package/dist/tui/index.js +1 -1
  51. package/dist/{types-0uzVKtFW.d.ts → types-DTHxh4X9.d.ts} +18 -57
  52. package/package.json +12 -12
  53. package/dist/supervise-CNNhX0ab.js.map +0 -1
  54. 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 { Nr as harnessInvocation, Ut as LEAF_CONTINUATION_TASK, _n as generateSpanId, an as openSlotGroup, bn as padTraceId, hn as createOtelExporter, mn as createOpenInferenceFileExporter, vi as promptFromAgentTurnInput, xn as toOtelAttributes, yi as promptOptionsFromAgentTurnInput, yn as padSpanId } from "./supervisor-rK5Y8en6.js";
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 { ATTR, branchSpan } from "@tangle-network/agent-trace-contract";
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 = padTraceId(`search-cell:${work.runId}`);
1802
- const rootSpanId = padSpanId(`search-cell:${work.runId}`);
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: (BigInt(Math.floor(input.startMs)) * 1000000n).toString(),
1906
- endTimeUnixNano: (BigInt(Math.floor(Math.max(input.startMs, input.endMs))) * 1000000n).toString(),
1907
- attributes: toOtelAttributes(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-CQEHMXoT.js.map
1914
+ //# sourceMappingURL=search-executor-DcGAOrAh.js.map