@tangle-network/agent-app 0.60.220 → 0.60.222

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 (52) hide show
  1. package/dist/assistant/index.js +3 -2
  2. package/dist/assistant/index.js.map +1 -1
  3. package/dist/chat-react/index.js +2 -1
  4. package/dist/chat-routes/hybrid-producer.d.ts +93 -0
  5. package/dist/chat-routes/index.d.ts +1 -0
  6. package/dist/chat-routes/index.js +118 -4
  7. package/dist/chat-routes/index.js.map +1 -1
  8. package/dist/chat-routes/router-producer.d.ts +3 -1
  9. package/dist/chat-routes/turn-routes.d.ts +10 -5
  10. package/dist/{chunk-NHCS55QI.js → chunk-4WEC4NOU.js} +4 -1
  11. package/dist/chunk-4WEC4NOU.js.map +1 -0
  12. package/dist/{chunk-KNTRS7OZ.js → chunk-BQILMP73.js} +70 -115
  13. package/dist/chunk-BQILMP73.js.map +1 -0
  14. package/dist/{chunk-2XUIWCRW.js → chunk-DA5XLDZR.js} +7 -2
  15. package/dist/chunk-DA5XLDZR.js.map +1 -0
  16. package/dist/chunk-LGMJMCSE.js +157 -0
  17. package/dist/chunk-LGMJMCSE.js.map +1 -0
  18. package/dist/{chunk-WLH4DEB2.js → chunk-OMB4HQ2W.js} +54 -19
  19. package/dist/chunk-OMB4HQ2W.js.map +1 -0
  20. package/dist/chunk-OXUBZ5SE.js +54 -0
  21. package/dist/chunk-OXUBZ5SE.js.map +1 -0
  22. package/dist/{chunk-MAOTZ77B.js → chunk-QGEYQ7SU.js} +2 -2
  23. package/dist/{chunk-WDY47GBR.js → chunk-XWJDF34U.js} +56 -14
  24. package/dist/chunk-XWJDF34U.js.map +1 -0
  25. package/dist/{chunk-C7WAGXQN.js → chunk-YS2RYZQG.js} +9 -8
  26. package/dist/{chunk-C7WAGXQN.js.map → chunk-YS2RYZQG.js.map} +1 -1
  27. package/dist/public-consultation/index.js +2 -1
  28. package/dist/public-consultation/index.js.map +1 -1
  29. package/dist/runtime/index.js +2 -2
  30. package/dist/runtime/router-turn.d.ts +6 -0
  31. package/dist/runtime/router-turn.js +1 -1
  32. package/dist/sandbox/escalation-speculator.d.ts +15 -27
  33. package/dist/sandbox/index.js +1 -3
  34. package/dist/sandbox/sandbox-run-tool.d.ts +4 -3
  35. package/dist/signoff/app-defaults.d.ts +2 -1
  36. package/dist/signoff/cli.js +1 -1
  37. package/dist/signoff/index.js +1 -1
  38. package/dist/turn-trace/index.js +6 -146
  39. package/dist/turn-trace/index.js.map +1 -1
  40. package/dist/web-react/chat-composer.d.ts +2 -1
  41. package/dist/web-react/index.js +10 -4
  42. package/dist/web-react/workspace-prewarm.d.ts +7 -0
  43. package/dist/workspace-react/index.d.ts +9 -1
  44. package/dist/workspace-react/index.js +8 -2
  45. package/dist/workspace-react/index.js.map +1 -1
  46. package/package.json +1 -1
  47. package/dist/chunk-2XUIWCRW.js.map +0 -1
  48. package/dist/chunk-KNTRS7OZ.js.map +0 -1
  49. package/dist/chunk-NHCS55QI.js.map +0 -1
  50. package/dist/chunk-WDY47GBR.js.map +0 -1
  51. package/dist/chunk-WLH4DEB2.js.map +0 -1
  52. /package/dist/{chunk-MAOTZ77B.js.map → chunk-QGEYQ7SU.js.map} +0 -0
@@ -1444,9 +1444,6 @@ WHERE key = ?1 AND pending_warm_at = ?2 RETURNING key`, key, warmAt, day, Math.m
1444
1444
  }
1445
1445
 
1446
1446
  // src/sandbox/escalation-speculator.ts
1447
- function parsePrewarmHint(value) {
1448
- return value?.trim().toLowerCase() === "deterministic" ? "deterministic" : "off";
1449
- }
1450
1447
  var DEFAULT_ESCALATION_TOOLS = ["sandbox_run", "sandbox_exec"];
1451
1448
  var PROCESS_MEDIA = /^(application\/(pdf|zip|x-zip|gzip|x-tar|vnd\.openxmlformats|vnd\.ms-excel|vnd\.oasis)|text\/(csv|x-python|x-script))/i;
1452
1449
  var PROCESS_EXTENSIONS = /\.(pdf|xlsx?|csv|tsv|ods|zip|tar|gz|py|ipynb|js|ts|sh|sql|parquet|json)$/i;
@@ -1465,13 +1462,16 @@ function createEscalationSpeculator(options) {
1465
1462
  const tools = new Set(options.escalationTools ?? DEFAULT_ESCALATION_TOOLS);
1466
1463
  let fired = null;
1467
1464
  const speculate = (hint) => {
1468
- if (options.mode === "off" || fired) return;
1465
+ if (fired) return;
1469
1466
  fired = hint;
1470
1467
  try {
1471
1468
  options.onSpeculate?.(hint);
1472
1469
  } catch {
1473
1470
  }
1474
- void options.leases.signal(options.boxKey, "escalation-likely").catch(() => void 0);
1471
+ try {
1472
+ void Promise.resolve(options.warm()).catch(() => void 0);
1473
+ } catch {
1474
+ }
1475
1475
  };
1476
1476
  return {
1477
1477
  onInput(input) {
@@ -1479,7 +1479,9 @@ function createEscalationSpeculator(options) {
1479
1479
  if (hint) speculate(hint);
1480
1480
  },
1481
1481
  onEvent(event) {
1482
- if (event.type === "tool_call_start" && event.toolName && tools.has(event.toolName)) speculate("tool-call-start");
1482
+ if ((event.type === "tool_start" || event.type === "tool_call_start") && event.toolName && tools.has(event.toolName)) {
1483
+ speculate("tool-call-start");
1484
+ }
1483
1485
  },
1484
1486
  get fired() {
1485
1487
  return fired;
@@ -3733,7 +3735,6 @@ export {
3733
3735
  WARM_LEASE_DECLINED_UNTIL_DDL,
3734
3736
  WARM_LEASE_PENDING_DDL,
3735
3737
  createD1WarmLeaseStore,
3736
- parsePrewarmHint,
3737
3738
  DEFAULT_ESCALATION_TOOLS,
3738
3739
  escalationHints,
3739
3740
  createEscalationSpeculator,
@@ -3793,4 +3794,4 @@ export {
3793
3794
  isTerminalPromptEvent,
3794
3795
  detectInteractiveQuestion
3795
3796
  };
3796
- //# sourceMappingURL=chunk-C7WAGXQN.js.map
3797
+ //# sourceMappingURL=chunk-YS2RYZQG.js.map