@segmentstream/agent 0.8.3 → 0.8.5

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 (42) hide show
  1. package/README.md +14 -0
  2. package/dist/_chunks/{build-metadata-BLyaHLJW.mjs → build-metadata-BYl-5kFi.mjs} +1 -1
  3. package/dist/_chunks/{inbound-request-CYSoY6pu.mjs → inbound-request-B98tr4Pd.mjs} +1 -0
  4. package/dist/_chunks/workflow-serializable-BwttWNmY.mjs +715 -0
  5. package/dist/extension/lib/build-metadata.mjs +1 -1
  6. package/dist/extension/lib/conversations.mjs +10 -4
  7. package/dist/extension/lib/ontology-tools.mjs +1 -1
  8. package/dist/extension/lib/telegram/adapter.mjs +11 -3
  9. package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
  10. package/dist/extension/lib/telegram/attachments-send.mjs +1 -1
  11. package/dist/extension/lib/telegram/confirmation-expiry.mjs +1 -1
  12. package/dist/extension/lib/telegram/confirmations.mjs +1 -1
  13. package/dist/extension/lib/telegram/conversations.mjs +1 -1
  14. package/dist/extension/lib/telegram/customer-text.mjs +1 -1
  15. package/dist/extension/lib/telegram/deferred-confirmations.mjs +1 -1
  16. package/dist/extension/lib/telegram/files.mjs +1 -1
  17. package/dist/extension/lib/telegram/health.mjs +1 -1
  18. package/dist/extension/lib/telegram/images.mjs +1 -1
  19. package/dist/extension/lib/telegram/inbound-request.d.ts +2 -0
  20. package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
  21. package/dist/extension/lib/telegram/inbound.mjs +3 -2
  22. package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
  23. package/dist/extension/lib/telegram/media-policy.mjs +1 -1
  24. package/dist/extension/lib/telegram/silent.mjs +1 -1
  25. package/dist/extension/lib/telegram/turn-errors.mjs +1 -1
  26. package/dist/extension/lib/telegram/voice.mjs +1 -1
  27. package/dist/extension/lib/workflow-serializable.d.ts +29 -0
  28. package/dist/extension/lib/workflow-serializable.mjs +8 -0
  29. package/dist/extension/tools/attachments_discard.d.ts +2 -24
  30. package/dist/extension/tools/attachments_discard.mjs +2 -1
  31. package/dist/extension/tools/attachments_list.d.ts +2 -24
  32. package/dist/extension/tools/attachments_list.mjs +3 -1
  33. package/dist/extension/tools/attachments_promote.d.ts +2 -28
  34. package/dist/extension/tools/attachments_promote.mjs +3 -2
  35. package/dist/extension/tools/attachments_read.mjs +3 -2
  36. package/dist/extension/tools/attachments_send.d.ts +1 -7
  37. package/dist/extension/tools/attachments_send.mjs +4 -3
  38. package/dist/extension/tools/attachments_table.d.ts +2 -62
  39. package/dist/extension/tools/attachments_table.mjs +3 -2
  40. package/dist/extension/tools/questions_ask.d.ts +3 -13
  41. package/dist/extension/tools/questions_ask.mjs +2 -1
  42. package/package.json +1 -1
package/README.md CHANGED
@@ -447,6 +447,14 @@ Building the package needs Node.js 24, as eve does: `npm run build` runs `eve ex
447
447
  which writes the agent-shaped `dist/extension` tree, its declarations and eve's compatibility
448
448
  manifest.
449
449
 
450
+ SDK-authored tool results and conversation archive events normalize runtime values to JSON
451
+ before returning or encoding them. Exact decimal/bigint strings and binary byte views are
452
+ preserved; conversion diagnostics identify the boundary and value path without logging payloads.
453
+ Maps use entry arrays so distinct key types and object keys retain every entry. Native brand and
454
+ binary getters avoid provider accessors; projection failures retain their redacted cause graph
455
+ through the shared operator diagnostics reporter.
456
+ This guard does not intercept Eve's own workflow streams or third-party tools.
457
+
450
458
  ## Environment
451
459
 
452
460
  The platform sets every variable on the workspace's Vercel project. None of them is a model key or
@@ -592,3 +600,9 @@ honours the returned deadline within a 120-second processing budget; expiry fail
592
600
  closed without queueing an incomplete turn. Authenticated runtime health includes
593
601
  the built SDK version and deployment identity. Phase telemetry records webhook
594
602
  receipt, lifecycle/queue admission, model/tool events and typing API acceptance.
603
+
604
+ A configured hook failure, or a processing failure after it admits a task, returns
605
+ HTTP 503 with a correlation reference before durable queue admission. Telegram
606
+ can redeliver the same source; the hook and attachment reservation must preserve
607
+ idempotent source membership, storage results and the single acknowledgement.
608
+ Such a failure must not become an HTTP success with no queued work.
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- var version = "0.8.3";
7
+ var version = "0.8.5";
8
8
  function agentBuild(environment = process.env) {
9
9
  return {
10
10
  agent: version,
@@ -240,6 +240,7 @@ var InboundRequest = class {
240
240
  stopTyping;
241
241
  lifecycle;
242
242
  lifecycleKey;
243
+ retryReference;
243
244
  lifecycleContext;
244
245
  monitor;
245
246
  previousText;