@tangle-network/agent-app 0.63.6 → 0.63.7

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 (35) hide show
  1. package/dist/chat-routes/default-backend.d.ts +46 -0
  2. package/dist/chat-routes/dispatch-first.d.ts +3 -2
  3. package/dist/chat-routes/index.d.ts +1 -0
  4. package/dist/chat-routes/index.js +13 -345
  5. package/dist/chat-routes/index.js.map +1 -1
  6. package/dist/chat-routes/route-prewarm.d.ts +2 -0
  7. package/dist/chat-routes/route-storage.d.ts +13 -4
  8. package/dist/chat-routes/sandbox-model-source.d.ts +1 -0
  9. package/dist/chat-routes/turn-ownership.d.ts +2 -1
  10. package/dist/chat-routes/turn-route-contracts.d.ts +21 -5
  11. package/dist/{chunk-XYSKMHWG.js → chunk-42QCR4CV.js} +548 -15
  12. package/dist/chunk-42QCR4CV.js.map +1 -0
  13. package/dist/{chunk-JRTWTADT.js → chunk-E3AOUTIR.js} +5 -2
  14. package/dist/chunk-E3AOUTIR.js.map +1 -0
  15. package/dist/{chunk-IDG2XR5O.js → chunk-EKXG4JSN.js} +2 -2
  16. package/dist/chunk-EKXG4JSN.js.map +1 -0
  17. package/dist/{chunk-YCMVNXAX.js → chunk-NUWSPR5O.js} +2 -2
  18. package/dist/{chunk-OCR36QGZ.js → chunk-UVMKP5IK.js} +65 -28
  19. package/dist/chunk-UVMKP5IK.js.map +1 -0
  20. package/dist/public-consultation/index.js +3 -3
  21. package/dist/runtime/index.js +2 -2
  22. package/dist/runtime/router-turn.d.ts +2 -2
  23. package/dist/runtime/router-turn.js +1 -1
  24. package/dist/sandbox/index.js +1 -1
  25. package/dist/sandbox/prompt-events.d.ts +1 -1
  26. package/dist/sandbox/sandbox-run-error.d.ts +8 -0
  27. package/dist/sandbox/sandbox-run-tool.d.ts +5 -9
  28. package/dist/signoff/cli.js +1 -1
  29. package/dist/signoff/index.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunk-IDG2XR5O.js.map +0 -1
  32. package/dist/chunk-JRTWTADT.js.map +0 -1
  33. package/dist/chunk-OCR36QGZ.js.map +0 -1
  34. package/dist/chunk-XYSKMHWG.js.map +0 -1
  35. /package/dist/{chunk-YCMVNXAX.js.map → chunk-NUWSPR5O.js.map} +0 -0
@@ -301,6 +301,9 @@ function firstOutputRow(kind, pin, sources, traceWired, calls, exports) {
301
301
  function prewarmRow(sources) {
302
302
  const usesBox = filesMatching(sources, /@tangle-network\/agent-app\/sandbox|\bensureWorkspaceSandbox\b/).length > 0;
303
303
  if (!usesBox) return { id: "prewarm", label: "prewarm route", status: "na", detail: "the app opens no workspace box" };
304
+ const assembled = filesMatching(sources, /\bcreateChatTurnRoutes\s*[(<]/)[0];
305
+ const mounted = filesMatching(sources, /\bprewarm\s*:\s*[\w.]+\.prewarm\b|\.prewarm\s*\(\s*(?:request|c\.req\.raw)/)[0];
306
+ if (assembled && mounted) return { id: "prewarm", label: "prewarm route", status: "ok", detail: `assembled route in ${assembled.path}; mounted in ${mounted.path}` };
304
307
  const shared = filesMatching(sources, /\bcreateWorkspacePrewarmRoute\b/)[0];
305
308
  if (shared) return { id: "prewarm", label: "prewarm route", status: "ok", detail: `shared route in ${shared.path}` };
306
309
  const local = sources.find((file) => /prewarm/i.test(file.path) || /['"`/]prewarm['"`/]/.test(file.text));
@@ -415,7 +418,7 @@ function checkAppDefaults(repoRoot, options = {}) {
415
418
  { row: trace.row, id: "turn-trace", optedOut: trace.optedOut },
416
419
  { row: firstOutputRow("visible", pin, sources, traceWired, calls, options.exports), id: "first-visible", optedOut: null },
417
420
  { row: firstOutputRow("text", pin, sources, traceWired, calls, options.exports), id: "first-text", optedOut: null },
418
- { row: prewarmRow(sources), id: "prewarm", optedOut: null },
421
+ { row: prewarmRow(sources), id: "prewarm", optedOut: filesMatching(sources, /\bprewarm\s*:\s*false\b/).length ? "prewarm: false disables the inherited route" : null },
419
422
  { row: placementRow(configs), id: "placement", optedOut: null },
420
423
  { row: toolCountRow(), id: null, optedOut: null },
421
424
  { row: limitAlarmsRow(sources), id: "limit-alarms", optedOut: null },
@@ -2895,4 +2898,4 @@ export {
2895
2898
  formatWorkspaceSurfaceReport,
2896
2899
  runWorkspaceSurfaceCli
2897
2900
  };
2898
- //# sourceMappingURL=chunk-JRTWTADT.js.map
2901
+ //# sourceMappingURL=chunk-E3AOUTIR.js.map