@tangle-network/agent-runtime 0.350.2 → 0.353.2

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 (95) hide show
  1. package/dist/{activation-CfJMyzEs.js → activation-BkRaG5t0.js} +4 -4
  2. package/dist/{activation-CfJMyzEs.js.map → activation-BkRaG5t0.js.map} +1 -1
  3. package/dist/{activation-DyiHrTlS.d.ts → activation-CFS31SWI.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/{bundle-Ze8pd07a.js → bundle-DeDkJbsr.js} +2 -2
  7. package/dist/{bundle-Ze8pd07a.js.map → bundle-DeDkJbsr.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +4 -4
  9. package/dist/chat-turn.d.ts +2 -0
  10. package/dist/chat-turn.js +1 -0
  11. package/dist/{coordination-manager-BkVfWlMz.js → coordination-manager-BrRkc55z.js} +4 -4
  12. package/dist/{coordination-manager-BkVfWlMz.js.map → coordination-manager-BrRkc55z.js.map} +1 -1
  13. package/dist/{delegate-DgEie4ad.js → delegate-CAdajnf8.js} +3 -3
  14. package/dist/{delegate-DgEie4ad.js.map → delegate-CAdajnf8.js.map} +1 -1
  15. package/dist/durable.d.ts +7 -130
  16. package/dist/durable.js +24 -952
  17. package/dist/durable.js.map +1 -1
  18. package/dist/{errors-wuhGvpE3.js → errors-AzSuGI23.js} +4 -1
  19. package/dist/errors-AzSuGI23.js.map +1 -0
  20. package/dist/execution-handle-Bd2_nUB6.js +167 -0
  21. package/dist/execution-handle-Bd2_nUB6.js.map +1 -0
  22. package/dist/execution-handle-CujvqgCn.d.ts +130 -0
  23. package/dist/{graph-Cx0FhKSE.js → graph-CyaIHVGR.js} +7 -6
  24. package/dist/{graph-Cx0FhKSE.js.map → graph-CyaIHVGR.js.map} +1 -1
  25. package/dist/{improve-i0HU1-aa.js → improve-DwG-yioQ.js} +10 -9
  26. package/dist/{improve-i0HU1-aa.js.map → improve-DwG-yioQ.js.map} +1 -1
  27. package/dist/index.d.ts +4 -3
  28. package/dist/index.js +14 -11
  29. package/dist/index.js.map +1 -1
  30. package/dist/intelligence.d.ts +2 -2
  31. package/dist/intelligence.js +12 -10
  32. package/dist/intelligence.js.map +1 -1
  33. package/dist/journal-store-BJPMUydp.js +3925 -0
  34. package/dist/journal-store-BJPMUydp.js.map +1 -0
  35. package/dist/kernel.d.ts +1 -1
  36. package/dist/kernel.js +11 -10
  37. package/dist/{loop-runner-DvfOXVx9.d.ts → loop-runner-D9rcTNf2.d.ts} +2 -2
  38. package/dist/{loop-runner-BwN9MhdP.js → loop-runner-DwS3jARE.js} +3 -3
  39. package/dist/{loop-runner-BwN9MhdP.js.map → loop-runner-DwS3jARE.js.map} +1 -1
  40. package/dist/loop-runner-bin.d.ts +1 -1
  41. package/dist/loop-runner-bin.js +1 -1
  42. package/dist/mcp/bin.js +4 -4
  43. package/dist/mcp/index.d.ts +1 -1
  44. package/dist/mcp/index.js +8 -8
  45. package/dist/mcp/memory-bin.js +2 -2
  46. package/dist/{model-policy-GSxWwP-b.js → model-policy-C-RGAUW4.js} +2 -2
  47. package/dist/{model-policy-GSxWwP-b.js.map → model-policy-C-RGAUW4.js.map} +1 -1
  48. package/dist/{prepare-DE8TQnLu.js → prepare-XWwsOh8O.js} +4 -3
  49. package/dist/{prepare-DE8TQnLu.js.map → prepare-XWwsOh8O.js.map} +1 -1
  50. package/dist/{profile-CAhZDW2T.js → profile-C01SQZKa.js} +3 -3
  51. package/dist/{profile-CAhZDW2T.js.map → profile-C01SQZKa.js.map} +1 -1
  52. package/dist/profiles.d.ts +1 -1
  53. package/dist/profiles.js +2 -2
  54. package/dist/{provision-supervisor-Bde_FF0R.js → provision-supervisor-AEnei2Jq.js} +7 -7
  55. package/dist/{provision-supervisor-Bde_FF0R.js.map → provision-supervisor-AEnei2Jq.js.map} +1 -1
  56. package/dist/{run-cancellation-BLy_Zz-w.js → run-cancellation-CoJRKvih.js} +2 -2
  57. package/dist/{run-cancellation-BLy_Zz-w.js.map → run-cancellation-CoJRKvih.js.map} +1 -1
  58. package/dist/{runtime-6Ec9sHRe.js → runtime-DCYSaYHW.js} +42 -39
  59. package/dist/{runtime-6Ec9sHRe.js.map → runtime-DCYSaYHW.js.map} +1 -1
  60. package/dist/{sandbox-profile-compat-BxMQ1VXv.js → sandbox-profile-compat-CXjozdWL.js} +4 -623
  61. package/dist/{sandbox-profile-compat-BxMQ1VXv.js.map → sandbox-profile-compat-CXjozdWL.js.map} +1 -1
  62. package/dist/{search-executor-B7g_5Wjl.js → search-executor-B2jc63hZ.js} +14 -11
  63. package/dist/{search-executor-B7g_5Wjl.js.map → search-executor-B2jc63hZ.js.map} +1 -1
  64. package/dist/{server-fvEMwGMQ.js → server-CKBTwWM8.js} +6 -6
  65. package/dist/{server-fvEMwGMQ.js.map → server-CKBTwWM8.js.map} +1 -1
  66. package/dist/{structural-rollout-B86bSixU.js → structural-rollout-rRT3ypqz.js} +7 -5
  67. package/dist/{structural-rollout-B86bSixU.js.map → structural-rollout-rRT3ypqz.js.map} +1 -1
  68. package/dist/{supervise-CaeZcgAW.js → supervise-B3_wtgHS.js} +18 -21
  69. package/dist/supervise-B3_wtgHS.js.map +1 -0
  70. package/dist/supervision-discovery-CewADdEs.js +772 -0
  71. package/dist/supervision-discovery-CewADdEs.js.map +1 -0
  72. package/dist/{supervisor-C1OePYE-.js → supervisor-C_sDmX5H.js} +156 -3984
  73. package/dist/supervisor-C_sDmX5H.js.map +1 -0
  74. package/dist/testing.d.ts +1 -1
  75. package/dist/testing.js +13 -13
  76. package/dist/{tool-server-CwuYeW_Z.js → tool-server-CZWd_Opp.js} +2 -2
  77. package/dist/{tool-server-CwuYeW_Z.js.map → tool-server-CZWd_Opp.js.map} +1 -1
  78. package/dist/{top-snapshot-ChwpTr7A.js → top-snapshot-DcV7VG4m.js} +178 -161
  79. package/dist/top-snapshot-DcV7VG4m.js.map +1 -0
  80. package/dist/tui/bin.js +45 -74
  81. package/dist/tui/bin.js.map +1 -1
  82. package/dist/tui/index.d.ts +25 -54
  83. package/dist/tui/index.js +2 -2
  84. package/dist/{types-Fowuwdz2.d.ts → types-DTHxh4X9.d.ts} +47 -63
  85. package/dist/util-ebWMWzY0.js +624 -0
  86. package/dist/util-ebWMWzY0.js.map +1 -0
  87. package/dist/workspace-store/index.js +9 -3
  88. package/dist/workspace-store/index.js.map +1 -1
  89. package/package.json +18 -13
  90. package/dist/errors-wuhGvpE3.js.map +0 -1
  91. package/dist/record-events-B2GUgYdz.js +0 -261
  92. package/dist/record-events-B2GUgYdz.js.map +0 -1
  93. package/dist/supervise-CaeZcgAW.js.map +0 -1
  94. package/dist/supervisor-C1OePYE-.js.map +0 -1
  95. package/dist/top-snapshot-ChwpTr7A.js.map +0 -1
@@ -1,14 +1,17 @@
1
- import { An as toOtelAttributes, Cn as createOpenInferenceFileExporter, En as generateSpanId, Hr as harnessInvocation, Ii as unavailableSignalOfFailure, On as padSpanId, Pi as unavailablePauseMs, Qt as LEAF_CONTINUATION_TASK, da as promptFromAgentTurnInput, fa as promptOptionsFromAgentTurnInput, kn as padTraceId, mn as openSlotGroup, wn as createOtelExporter } from "./supervisor-C1OePYE-.js";
2
- import { i as ConfigError, m as ValidationError } from "./errors-wuhGvpE3.js";
3
- import { R as immutableCandidateValue, st as sleep } from "./sandbox-profile-compat-BxMQ1VXv.js";
4
- import { a as concreteProfileModel, l as profileProviderModel } from "./model-policy-GSxWwP-b.js";
1
+ import { X as unavailableSignalOfFailure, q as unavailablePauseMs } from "./journal-store-BJPMUydp.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-C_sDmX5H.js";
3
+ import { i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
4
+ import { v as sleep } from "./util-ebWMWzY0.js";
5
+ import { a as concreteProfileModel, l as profileProviderModel } from "./model-policy-C-RGAUW4.js";
6
+ import { R as immutableCandidateValue } from "./sandbox-profile-compat-CXjozdWL.js";
7
+ import { ATTR, branchSpan, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract";
5
8
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
6
9
  import { CostAccountingIncompleteError, CostCeilingReachedError, costForTokenPricing, costForUsage } from "@tangle-network/agent-eval";
7
10
  import { createHash, randomUUID } from "node:crypto";
8
11
  import { mkdirSync, renameSync, writeFileSync } from "node:fs";
9
12
  import { dirname, join } from "node:path";
10
13
  import { materializeProfile } from "@tangle-network/agent-profile-materialize";
11
- import { ATTR, branchSpan } from "@tangle-network/agent-trace-contract";
14
+ import { msToUnixNano, toOtlpAttributes } from "@tangle-network/agent-trace-contract/otlp";
12
15
  import { createRunCostLedger, fsCampaignStorage, openSearchLedger, searchClaimDecision, searchReceiptAccounting, verifySearchClaim } from "@tangle-network/agent-eval/campaign";
13
16
  import { sealExperiment } from "@tangle-network/agent-eval/experiment";
14
17
  import { harnessSystemPromptIntents } from "@tangle-network/agent-interface/harness-capabilities";
@@ -1796,8 +1799,8 @@ function searchTracing(options) {
1796
1799
  * of its spans; an attempt's own OTLP exporter is shut down at the end and read whole.
1797
1800
  */
1798
1801
  function attemptTrace(work, lane, exporter, ownsExporter) {
1799
- const traceId = padTraceId(`search-cell:${work.runId}`);
1800
- const rootSpanId = padSpanId(`search-cell:${work.runId}`);
1802
+ const traceId = toW3CTraceId(`search-cell:${work.runId}`);
1803
+ const rootSpanId = toW3CSpanId(`search-cell:${work.runId}`);
1801
1804
  const startMs = Date.now();
1802
1805
  let written = 0;
1803
1806
  let dropped = 0;
@@ -1900,12 +1903,12 @@ function otelSpan(input) {
1900
1903
  ...input.parentSpanId ? { parentSpanId: input.parentSpanId } : {},
1901
1904
  name: input.name,
1902
1905
  kind: 1,
1903
- startTimeUnixNano: (BigInt(Math.floor(input.startMs)) * 1000000n).toString(),
1904
- endTimeUnixNano: (BigInt(Math.floor(Math.max(input.startMs, input.endMs))) * 1000000n).toString(),
1905
- attributes: toOtelAttributes(attributes),
1906
+ startTimeUnixNano: msToUnixNano(input.startMs),
1907
+ endTimeUnixNano: msToUnixNano(Math.max(input.startMs, input.endMs)),
1908
+ attributes: toOtlpAttributes(attributes),
1906
1909
  status: { code: input.status }
1907
1910
  };
1908
1911
  }
1909
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 };
1910
1913
 
1911
- //# sourceMappingURL=search-executor-B7g_5Wjl.js.map
1914
+ //# sourceMappingURL=search-executor-B2jc63hZ.js.map