@tangle-network/agent-app 0.63.15 → 0.63.17

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 (59) hide show
  1. package/bin/tangle-agent.mjs +0 -0
  2. package/dist/assets/schema.d.ts +1 -1
  3. package/dist/assistant/index.js +10 -10
  4. package/dist/chat-react/index.js +4 -4
  5. package/dist/chat-routes/default-backend.d.ts +1 -1
  6. package/dist/chat-routes/index.js +5 -5
  7. package/dist/chat-routes/router-producer.d.ts +1 -1
  8. package/dist/chat-routes/turn-route-contracts.d.ts +2 -3
  9. package/dist/chat-store/index.js +1 -1
  10. package/dist/{chunk-6ZVSMA4T.js → chunk-2VG6Q4TS.js} +3 -3
  11. package/dist/{chunk-BV3VZEKB.js → chunk-4GINUJPF.js} +2 -2
  12. package/dist/{chunk-L6BS2XTE.js → chunk-56OUN2WP.js} +5 -5
  13. package/dist/chunk-56OUN2WP.js.map +1 -0
  14. package/dist/{chunk-UKVLJBP4.js → chunk-6GX3UHQW.js} +10 -10
  15. package/dist/chunk-6GX3UHQW.js.map +1 -0
  16. package/dist/{chunk-RZLCBWGG.js → chunk-6RGNXPXW.js} +1 -1
  17. package/dist/chunk-6RGNXPXW.js.map +1 -0
  18. package/dist/{chunk-ZXZU32Q4.js → chunk-A3BJDXPX.js} +14 -1
  19. package/dist/chunk-A3BJDXPX.js.map +1 -0
  20. package/dist/{chunk-FTNGGR37.js → chunk-JNEWZCRF.js} +3 -8
  21. package/dist/chunk-JNEWZCRF.js.map +1 -0
  22. package/dist/{chunk-FZ3ZFVAC.js → chunk-KHJE7JAG.js} +3 -3
  23. package/dist/{chunk-X6SZGQTK.js → chunk-QAHBSKWG.js} +2 -2
  24. package/dist/{chunk-N6URQ6DM.js → chunk-QJ5DSIHV.js} +2 -2
  25. package/dist/{chunk-52SDU43B.js → chunk-RO25WIVS.js} +1 -1
  26. package/dist/chunk-RO25WIVS.js.map +1 -0
  27. package/dist/{chunk-2VJLLRVV.js → chunk-TEZETVLE.js} +2 -2
  28. package/dist/{chunk-JBXNU5WD.js → chunk-ZA56ZOIT.js} +3 -3
  29. package/dist/{chunk-JBXNU5WD.js.map → chunk-ZA56ZOIT.js.map} +1 -1
  30. package/dist/{chunk-V6YGLAQC.js → chunk-ZLP75JF5.js} +4 -4
  31. package/dist/hub-approvals/index.js +1 -1
  32. package/dist/hub-approvals-react/index.js +2 -2
  33. package/dist/{mention-editor-4BKBMWIK.js → mention-editor-NTEV2G63.js} +2 -2
  34. package/dist/preset-cloudflare/index.js +3 -3
  35. package/dist/public-consultation/index.d.ts +1 -1
  36. package/dist/public-consultation/index.js +4 -4
  37. package/dist/sandbox/index.d.ts +1 -1
  38. package/dist/sandbox/index.js +3 -1
  39. package/dist/sandbox/prompt-options.d.ts +5 -0
  40. package/dist/settings-react/index.js +1 -1
  41. package/dist/studio-react/index.js +1 -1
  42. package/dist/web-react/agent-profile-editor.js +4 -4
  43. package/dist/web-react/index.js +10 -10
  44. package/dist/workspace-react/index.js +3 -3
  45. package/package.json +12 -12
  46. package/dist/chunk-52SDU43B.js.map +0 -1
  47. package/dist/chunk-FTNGGR37.js.map +0 -1
  48. package/dist/chunk-L6BS2XTE.js.map +0 -1
  49. package/dist/chunk-RZLCBWGG.js.map +0 -1
  50. package/dist/chunk-UKVLJBP4.js.map +0 -1
  51. package/dist/chunk-ZXZU32Q4.js.map +0 -1
  52. /package/dist/{chunk-6ZVSMA4T.js.map → chunk-2VG6Q4TS.js.map} +0 -0
  53. /package/dist/{chunk-BV3VZEKB.js.map → chunk-4GINUJPF.js.map} +0 -0
  54. /package/dist/{chunk-FZ3ZFVAC.js.map → chunk-KHJE7JAG.js.map} +0 -0
  55. /package/dist/{chunk-X6SZGQTK.js.map → chunk-QAHBSKWG.js.map} +0 -0
  56. /package/dist/{chunk-N6URQ6DM.js.map → chunk-QJ5DSIHV.js.map} +0 -0
  57. /package/dist/{chunk-2VJLLRVV.js.map → chunk-TEZETVLE.js.map} +0 -0
  58. /package/dist/{chunk-V6YGLAQC.js.map → chunk-ZLP75JF5.js.map} +0 -0
  59. /package/dist/{mention-editor-4BKBMWIK.js.map → mention-editor-NTEV2G63.js.map} +0 -0
@@ -25,10 +25,11 @@ import {
25
25
  peekWorkspaceSandbox,
26
26
  resolveTurnStorage,
27
27
  runForegroundSandboxSingleFlight,
28
+ sandboxPromptExecutionOptions,
28
29
  sandboxPromptRunner,
29
30
  streamSandboxPrompt,
30
31
  turnStorageBindings
31
- } from "./chunk-ZXZU32Q4.js";
32
+ } from "./chunk-A3BJDXPX.js";
32
33
  import {
33
34
  redactErrorMessage
34
35
  } from "./chunk-MH74DY2I.js";
@@ -38,7 +39,7 @@ import {
38
39
  createAssistantDraftWriter,
39
40
  rowIdOf,
40
41
  storeSupportsDraftPersistence
41
- } from "./chunk-N6URQ6DM.js";
42
+ } from "./chunk-QJ5DSIHV.js";
42
43
  import {
43
44
  normalizeClientTurnId,
44
45
  resolveChatTurn
@@ -47,7 +48,7 @@ import {
47
48
  historyContentWithAttachments,
48
49
  mentionInputToPart,
49
50
  toChatMessageParts
50
- } from "./chunk-RZLCBWGG.js";
51
+ } from "./chunk-6RGNXPXW.js";
51
52
  import {
52
53
  ChatTurnInputError,
53
54
  DISPATCH_MAX_PARTS,
@@ -290,6 +291,9 @@ function createRouterTurnProducer(options) {
290
291
  }
291
292
  });
292
293
  }).then(async (result) => {
294
+ if (result.continuation && !result.failure) {
295
+ result.failure = { code: "turn_deadline", message: "The reply was stopped before it finished." };
296
+ }
293
297
  outcome = result;
294
298
  const final = await options.onOutcome?.(result);
295
299
  if (final && final.trailingText) {
@@ -3339,6 +3343,7 @@ function createDefaultChatBackend(projectId, env, config, bindings, modelPolicy)
3339
3343
  return runForegroundSandboxSingleFlight({
3340
3344
  claim: createD1PrewarmClaimStore(bindings.db),
3341
3345
  workspaceId: scope.workspaceId,
3346
+ trace: args.trace,
3342
3347
  harness,
3343
3348
  provision: () => ensureWorkspaceSandbox(shell, { ...scope, harness, trace: args.trace }),
3344
3349
  peek: () => peekWorkspaceSandbox(shell, scope),
@@ -3361,12 +3366,7 @@ function createDefaultChatBackend(projectId, env, config, bindings, modelPolicy)
3361
3366
  detach: true,
3362
3367
  systemPrompt: config.systemPrompt,
3363
3368
  interactions: config.interactions,
3364
- effort: args.executionLimits?.maxReasoningTokens === 0 ? "none" : args.body.effort ?? config.effort,
3365
- ...args.executionLimits?.maxOutputTokens !== void 0 ? {
3366
- maxOutputTokens: args.executionLimits.maxOutputTokens,
3367
- maxTotalOutputTokens: args.executionLimits.maxOutputTokens
3368
- } : {},
3369
- ...args.executionLimits?.maxReasoningTokens ? { maxReasoningTokens: args.executionLimits.maxReasoningTokens } : {}
3369
+ ...sandboxPromptExecutionOptions(args.executionLimits, args.body.effort ?? config.effort)
3370
3370
  });
3371
3371
  return {
3372
3372
  when: (args) => config.router !== false && Boolean(env.TANGLE_API_KEY?.trim()) && !turnCarriesFiles(args.prompt) && !args.executionLimits?.maxReasoningTokens,
@@ -3912,4 +3912,4 @@ export {
3912
3912
  createChatTurnRoutes,
3913
3913
  streamChatRouteAsSandboxEvents
3914
3914
  };
3915
- //# sourceMappingURL=chunk-UKVLJBP4.js.map
3915
+ //# sourceMappingURL=chunk-6GX3UHQW.js.map