@tangle-network/agent-app 0.63.1 → 0.63.3

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 (39) hide show
  1. package/dist/agent-profiles/d1.js +3 -3
  2. package/dist/agent-profiles/index.js +3 -3
  3. package/dist/chat-routes/index.d.ts +1 -0
  4. package/dist/chat-routes/index.js +15 -15
  5. package/dist/chat-routes/route-storage.d.ts +21 -1
  6. package/dist/chat-routes/turn-route-contracts.d.ts +2 -9
  7. package/dist/{chunk-A2NQMVMF.js → chunk-464WRGJ3.js} +14 -5
  8. package/dist/chunk-464WRGJ3.js.map +1 -0
  9. package/dist/{chunk-XEAZWJ3W.js → chunk-7Y7U7U7X.js} +2 -2
  10. package/dist/{chunk-5BJHKQ33.js → chunk-ACB7KOQ6.js} +4 -4
  11. package/dist/{chunk-7TZA2TAM.js → chunk-FCYHDENJ.js} +2 -2
  12. package/dist/{chunk-WSQFNMIA.js → chunk-HRBF4B5L.js} +5 -5
  13. package/dist/{chunk-WSQFNMIA.js.map → chunk-HRBF4B5L.js.map} +1 -1
  14. package/dist/{chunk-SRWQCWLR.js → chunk-IX6UVHXY.js} +3 -3
  15. package/dist/{chunk-MM3GOLHO.js → chunk-PGWKYLHC.js} +11 -25
  16. package/dist/chunk-PGWKYLHC.js.map +1 -0
  17. package/dist/{chunk-ND5XWLRU.js → chunk-POIVNKYH.js} +83 -24
  18. package/dist/chunk-POIVNKYH.js.map +1 -0
  19. package/dist/preset-cloudflare/index.js +8 -8
  20. package/dist/public-consultation/index.js +8 -8
  21. package/dist/rollout/d1.d.ts +24 -3
  22. package/dist/rollout/d1.js +46 -24
  23. package/dist/rollout/d1.js.map +1 -1
  24. package/dist/sandbox/index.js +7 -5
  25. package/dist/sandbox/prewarm-route.d.ts +7 -0
  26. package/dist/stream/index.js +17 -17
  27. package/dist/tools/index.js +4 -4
  28. package/dist/turn-stream/adapters.d.ts +6 -0
  29. package/dist/turn-stream/index.js +3 -1
  30. package/dist/turn-stream/index.js.map +1 -1
  31. package/dist/work-product/index.js +2 -2
  32. package/package.json +3 -2
  33. package/dist/chunk-A2NQMVMF.js.map +0 -1
  34. package/dist/chunk-MM3GOLHO.js.map +0 -1
  35. package/dist/chunk-ND5XWLRU.js.map +0 -1
  36. /package/dist/{chunk-XEAZWJ3W.js.map → chunk-7Y7U7U7X.js.map} +0 -0
  37. /package/dist/{chunk-5BJHKQ33.js.map → chunk-ACB7KOQ6.js.map} +0 -0
  38. /package/dist/{chunk-7TZA2TAM.js.map → chunk-FCYHDENJ.js.map} +0 -0
  39. /package/dist/{chunk-SRWQCWLR.js.map → chunk-IX6UVHXY.js.map} +0 -0
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-I6BZVIRH.js";
5
5
  import {
6
6
  defineAppTool
7
- } from "./chunk-7TZA2TAM.js";
7
+ } from "./chunk-FCYHDENJ.js";
8
8
  import {
9
9
  ToolInputError
10
- } from "./chunk-WSQFNMIA.js";
10
+ } from "./chunk-HRBF4B5L.js";
11
11
 
12
12
  // src/agent-profiles/index.ts
13
13
  import {
@@ -672,4 +672,4 @@ export {
672
672
  PROFILE_MEMORY_PREFIX,
673
673
  profileTools
674
674
  };
675
- //# sourceMappingURL=chunk-SRWQCWLR.js.map
675
+ //# sourceMappingURL=chunk-IX6UVHXY.js.map
@@ -18,8 +18,9 @@ import {
18
18
  import {
19
19
  createEscalationSpeculator,
20
20
  createSandboxRunTool,
21
- escalationHints
22
- } from "./chunk-ND5XWLRU.js";
21
+ escalationHints,
22
+ resolveTurnStorage
23
+ } from "./chunk-POIVNKYH.js";
23
24
  import {
24
25
  addStepFinishUsage,
25
26
  assistantRowIdForTurn,
@@ -31,16 +32,6 @@ import {
31
32
  normalizeClientTurnId,
32
33
  resolveChatTurn
33
34
  } from "./chunk-YG66IHDU.js";
34
- import {
35
- createDurableTurnLock
36
- } from "./chunk-A2NQMVMF.js";
37
- import {
38
- coalesceDeltas,
39
- createBufferedTurnTap,
40
- createD1TurnEventStore,
41
- replayTurnEvents,
42
- stampReplaySeq
43
- } from "./chunk-ISP6ZH3G.js";
44
35
  import {
45
36
  mentionInputToPart,
46
37
  toChatMessageParts
@@ -81,6 +72,12 @@ import {
81
72
  parseInteractionCancel,
82
73
  parseInteractionRequest
83
74
  } from "./chunk-6VQCFJWP.js";
75
+ import {
76
+ coalesceDeltas,
77
+ createBufferedTurnTap,
78
+ replayTurnEvents,
79
+ stampReplaySeq
80
+ } from "./chunk-ISP6ZH3G.js";
84
81
  import {
85
82
  ModelFailoverExhaustedError,
86
83
  buildModelChain,
@@ -342,7 +339,7 @@ function createRouterTurnProducer(options) {
342
339
  draftParts: snapshot,
343
340
  usage,
344
341
  get model() {
345
- return outcome?.servedModel ?? options.model;
342
+ return outcome?.servedModel ?? void 0;
346
343
  },
347
344
  modelAttribution: () => ({
348
345
  requestedModel: options.model,
@@ -2883,17 +2880,6 @@ function earlyTurnWork(started, log) {
2883
2880
  };
2884
2881
  }
2885
2882
 
2886
- // src/chat-routes/route-storage.ts
2887
- function resolveTurnStorage(options) {
2888
- const store = options.turnStore;
2889
- if ("append" in store) return { ...options, turnStore: store };
2890
- return {
2891
- ...options,
2892
- turnStore: createD1TurnEventStore(store.db),
2893
- turnLock: options.turnLock ?? createDurableTurnLock({ ...store.lock, scopeOf: () => "thread" })
2894
- };
2895
- }
2896
-
2897
2883
  // src/chat-routes/turn-routes.ts
2898
2884
  async function admitTurn(request, trace, options, waitUntil) {
2899
2885
  const parse = trace.start("admission.parse", "admission");
@@ -3362,4 +3348,4 @@ export {
3362
3348
  createChatTurnRoutes,
3363
3349
  streamChatRouteAsSandboxEvents
3364
3350
  };
3365
- //# sourceMappingURL=chunk-MM3GOLHO.js.map
3351
+ //# sourceMappingURL=chunk-PGWKYLHC.js.map