@segmentstream/agent 0.43.0 → 0.44.1

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 (55) hide show
  1. package/CHANGELOG.md +1037 -0
  2. package/README.md +1 -0
  3. package/dist/_chunks/{build-metadata-CkBdh-TE.mjs → build-metadata-CVgWc844.mjs} +1 -1
  4. package/dist/_chunks/{inbound-request-DgQB4g1J.mjs → inbound-request-CK0QqEOP.mjs} +36 -1
  5. package/dist/_chunks/{principal-nQ_gwLJs.mjs → principal-BXvelsZk.mjs} +1 -1
  6. package/dist/extension/config.d.ts +13 -3
  7. package/dist/extension/config.mjs +8 -0
  8. package/dist/extension/hooks/authorization.mjs +1 -1
  9. package/dist/extension/instructions/persona.mjs +1 -1
  10. package/dist/extension/lib/actor.mjs +1 -1
  11. package/dist/extension/lib/attachment-tools.mjs +1 -1
  12. package/dist/extension/lib/build-metadata.mjs +1 -1
  13. package/dist/extension/lib/chat-address.mjs +1 -1
  14. package/dist/extension/lib/chat-context.mjs +1 -1
  15. package/dist/extension/lib/chat-recorder.mjs +1 -1
  16. package/dist/extension/lib/confirmations.mjs +1 -1
  17. package/dist/extension/lib/ontology-connection.mjs +1 -1
  18. package/dist/extension/lib/ontology-file-call.mjs +1 -1
  19. package/dist/extension/lib/ontology-tools.mjs +1 -1
  20. package/dist/extension/lib/review/hold.mjs +1 -1
  21. package/dist/extension/lib/review/reply.mjs +1 -1
  22. package/dist/extension/lib/role-skill.mjs +1 -1
  23. package/dist/extension/lib/runtime-envelope.mjs +1 -1
  24. package/dist/extension/lib/slack/attachments-send.mjs +1 -1
  25. package/dist/extension/lib/stored-files.mjs +1 -1
  26. package/dist/extension/lib/telegram/adapter.mjs +27 -7
  27. package/dist/extension/lib/telegram/app-links.d.ts +39 -0
  28. package/dist/extension/lib/telegram/app-links.mjs +53 -0
  29. package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
  30. package/dist/extension/lib/telegram/attachments-send.mjs +2 -2
  31. package/dist/extension/lib/telegram/callbacks.mjs +2 -2
  32. package/dist/extension/lib/telegram/chat-archive.mjs +1 -1
  33. package/dist/extension/lib/telegram/confirmations.mjs +2 -2
  34. package/dist/extension/lib/telegram/customer-text.d.ts +2 -1
  35. package/dist/extension/lib/telegram/customer-text.mjs +1 -1
  36. package/dist/extension/lib/telegram/files.mjs +2 -2
  37. package/dist/extension/lib/telegram/health.mjs +1 -1
  38. package/dist/extension/lib/telegram/images.mjs +1 -1
  39. package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
  40. package/dist/extension/lib/telegram/inbound.mjs +2 -2
  41. package/dist/extension/lib/telegram/lifecycle.mjs +3 -3
  42. package/dist/extension/lib/telegram/media-policy.mjs +1 -1
  43. package/dist/extension/lib/telegram/principal.mjs +1 -1
  44. package/dist/extension/lib/telegram/session-recovery.mjs +1 -1
  45. package/dist/extension/lib/telegram/silent.mjs +1 -1
  46. package/dist/extension/lib/telegram/structured.mjs +1 -1
  47. package/dist/extension/lib/telegram/turn-errors.mjs +2 -2
  48. package/dist/extension/lib/telegram/voice.mjs +1 -1
  49. package/dist/extension/lib/whatsapp/adapter.mjs +2 -0
  50. package/dist/extension/lib/whatsapp/links.d.ts +12 -0
  51. package/dist/extension/lib/whatsapp/links.mjs +34 -0
  52. package/dist/extension/model.mjs +1 -1
  53. package/dist/extension/tools/attachments_promote.mjs +1 -1
  54. package/dist/extension/tools/questions_ask.mjs +1 -1
  55. package/package.json +3 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,1037 @@
1
+ # Changelog
2
+
3
+ ## 0.44.1
4
+
5
+ Pins @segmentstream/ontology 0.99.2.
6
+
7
+ ## 0.44.0
8
+
9
+ Telegram can open links to the workspace app inside the bot's Main Mini App. Set
10
+ `channels.telegram.appLinks` to `"miniApp"` in `agent/segmentstream.json`: as each message is
11
+ delivered, a link to one of the app's pages on the workspace's own origins (those link previews
12
+ count as its own, and `additionalOwnOrigins`) becomes `https://t.me/<bot>?startapp=p_…`, in replies,
13
+ interim messages, edits and URL buttons. The app SDK's proxy opens that page, where the Telegram
14
+ Mini App sign-in signs the member in. The model and the session keep the app's own address, so
15
+ other channels never receive a Telegram link. Links to sign-in, consent, `/agent/connect`, `/api`,
16
+ `/mcp`, `/.well-known` and `/_next`, links whose page and query exceed Telegram's 512-character
17
+ start parameter, confirmation cards, exact chat posts and the captions of files sent with
18
+ `segmentstream__attachments_send` stay as written, as does every link while the bot's username is
19
+ unknown. A page's `#fragment` is not carried.
20
+
21
+ The default, `"web"`, leaves links unchanged. To use `"miniApp"`, set the bot's Main Mini App in
22
+ BotFather to the app's production URL, enable Telegram in the app
23
+ (`createSegmentStreamApp({ channels: { telegram: true } })`) and update `@segmentstream/app` to the
24
+ release that opens these links. A workspace that builds its own `t.me` links with an agent tool
25
+ does not need it any more; links it already sent keep working only as long as the workspace keeps
26
+ its own decoder in the app.
27
+
28
+ WhatsApp replies write the agent's links as WhatsApp shows them. WhatsApp has no Markdown links,
29
+ so a link written `[label](url)` reached the person as written, and a bare URL arrived in angle
30
+ brackets. A link is now sent as `label: url`, or the URL alone when its label is the URL, with no
31
+ character of the URL escaped. Other formatting and other channels are unchanged.
32
+
33
+ Each package carries its changelog, `CHANGELOG.md`: the notes of every release up to the installed
34
+ one, newest first. An npm package has it beside its `package.json`, such as
35
+ `node_modules/@segmentstream/ontology/CHANGELOG.md`; a Python sdist has it at its root and a
36
+ wheel in `.dist-info/extra_metadata/CHANGELOG.md`. `segmentstream changelog` prints the same notes
37
+ for the releases between a project's pins and the CLI's starter, paragraphs starting with
38
+ `Action required:` first.
39
+
40
+ Pins @segmentstream/ontology 0.99.1.
41
+
42
+ ## 0.43.0
43
+
44
+ One word for one thing: the agent's settings, code, logs and docs say chat, session or chat archive,
45
+ never conversation. See the terms in `docs/agent.md`.
46
+
47
+ Configuration, which deploys unchanged and warns to rename:
48
+
49
+ - `review` replaces `conversations` in `agent/segmentstream.json`, one level flatter:
50
+ `"review": { "byRole": { "lead": { "mode": "whenUnsure", "minConfidence": 0.9 } }, "default": { "mode": "never" } }`.
51
+ The criteria stay in `agent/review/<role>.md`. `conversations` is still read as before.
52
+ - Group routing policy `"chat"` replaces `"conversation"`, and `engagement.engagementMinutes`
53
+ replaces `engagement.conversationMinutes`. The earlier names read as the new ones, in the top
54
+ level, every chat and the shadow policy, and in router payloads stored with them.
55
+
56
+ Code: the archive client is `chatArchive()`, its types `ChatArchive`, `ChatEvent` and `ChatPage`,
57
+ and the routing exports `chatKey` and `groupChatAddressing` replace `conversationKey` and
58
+ `groupConversationAddressing`. The agent appends and searches the archive under `agent/chats/`,
59
+ which Cloud serves.
60
+
61
+ Compatibility: the agent sends the chat to the ontology service in `X-SegmentStream-Agent-Chat`
62
+ and, for services built before, `X-SegmentStream-Agent-Conversation`; the ontology service reads
63
+ either. Sessions, Telegram principals and file parts stored before keep working. The attachments
64
+ REST route reads a `conversation` filter and answers it beside `chat`, for CLIs built before; the
65
+ attachments table keeps its column name.
66
+
67
+ Pins @segmentstream/ontology 0.99.0.
68
+
69
+ ## 0.42.1
70
+
71
+ Pins @segmentstream/ontology 0.98.1.
72
+
73
+ ## 0.42.0
74
+
75
+ The WhatsApp channel answers an unpaired sender with `replies.pairingRequired` and a call-to-action
76
+ button labelled `replies.pairingButton` that opens the app's `/agent/connect` page, as Telegram
77
+ does, instead of a bare link. WhatsApp shows at most 20 characters of the label. A workspace that
78
+ sets no `replies.pairingButton` keeps getting the text followed by the link.
79
+
80
+ ## 0.41.0
81
+
82
+ Reply review. `conversations` in `agent/segmentstream.json` says, per role of the person the agent
83
+ replies to (`byRole`, first match in the order written, then `default`), who sends its replies on
84
+ Telegram and WhatsApp: `{ "review": { "mode": "never" } }`, the agent, as before;
85
+ `{ "mode": "always" }`, a member reviews every reply; or
86
+ `{ "mode": "whenUnsure", "minConfidence": 0.9 }`, the decision model (`models.decision`) judges
87
+ each reply in the conversation the person saw, with the criteria in `agent/review/<role>.md` or
88
+ `agent/review/default.md`, and the agent sends the replies it gives at least `minConfidence`. A
89
+ model failure holds the reply. A reviewed conversation gets no interim messages.
90
+
91
+ A held reply becomes a record of the new built-in ontology entity `agent_review`, created through
92
+ the runtime route `POST /api/ontology/agent/reviews`. `agent_review.approve({ review, text? })`
93
+ sends the draft or the member's edit to the person's conversation as the agent, without sender
94
+ attribution and at most once, through the ontology's `chat.<provider>.connection`;
95
+ `agent_review.reject({ review })` discards it. Reading, approving and rejecting need
96
+ `agent_review:read`, `agent_review:approve` and `agent_review:reject`: no wildcard covers them,
97
+ including a pipeline's `*:*`, and agent tasks cannot approve. Every ontology gets the entity and
98
+ its table on its next deploy; a workspace entity named `agent_review`, or `user` inverses named
99
+ `agentReviews` or `decidedAgentReviews`, must be renamed. Chat providers render a post with an
100
+ empty attribution without a footer, and Telegram posts can name a forum topic.
101
+
102
+ The app SDK's permission matcher now treats `agent_review`, `app_feedback`, `app_feedback_file`
103
+ and `user_identity` as the ontology service does: an entity wildcard covers none of them.
104
+
105
+ Pins @segmentstream/ontology 0.98.0.
106
+
107
+ ## 0.40.1
108
+
109
+ Pins @segmentstream/ontology 0.97.0.
110
+
111
+ ## 0.40.0
112
+
113
+ SegmentStream texts live in files beside `agent/segmentstream.json`, at fixed paths, so the JSON
114
+ holds only choices and numbers. Each persona's text is `agent/personas/<persona>.md`: the SDK
115
+ reads it when the agent is built, and the platform puts it inline when it deploys, so the mount
116
+ stays `segmentstream(config)`. The `files` option, its `?raw` imports and the
117
+ `@segmentstream/agent/raw` types are removed; delete them from `agent/agent.ts`. Guidance for the
118
+ group decision model goes in `agent/groups/instructions.md`, which the platform adds after its
119
+ own rules; a workspace-level `groups.smart.instructions` in the JSON still works but warns, and the
120
+ file wins over it.
121
+
122
+ ## 0.39.0
123
+
124
+ Personas and skills by role. `agent/segmentstream.json` may declare `personas` (`byRole` and
125
+ `default`), which choose one persona text, `agent/personas/<name>.md`, for each session from the
126
+ roles of the person who started it. The mount passes the texts as `files`, each imported with
127
+ `?raw`; `/// <reference types="@segmentstream/agent/raw" />` types those imports, and the build
128
+ fails when a named text is missing. The persona follows the workspace's instructions as a system
129
+ instruction. `forRoles(roles, skill)`, exported from `@segmentstream/agent`, makes a module in
130
+ `agent/agent/skills/` an eve dynamic skill that only sessions started by a person holding one of
131
+ the roles list and load. Agents that declare neither are unchanged. The platform instructions now
132
+ name the person talking to the agent whether they were invited or signed up, and say how a
133
+ persona relates to the workspace's instructions.
134
+
135
+ ## 0.38.3
136
+
137
+ A Telegram group message from someone who signed up is counted against the turn limits before the
138
+ agent answers it, whatever roles they hold: their unaddressed messages no longer pass on the first
139
+ lookup because they hold a role other than `member`.
140
+
141
+ A WhatsApp message without text or attachments from a stranger gets no pairing link or refusal, as
142
+ in Telegram. A stranger on a WhatsApp number open to sign-up becomes a user with their first
143
+ message and is answered as that user.
144
+
145
+ Pins @segmentstream/ontology 0.96.0.
146
+
147
+ ## 0.38.2
148
+
149
+ Pins @segmentstream/ontology 0.95.0.
150
+
151
+ ## 0.38.1
152
+
153
+ Pins @segmentstream/ontology 0.94.1.
154
+
155
+ ## 0.38.0
156
+
157
+ Files in Slack work as they do in Telegram.
158
+
159
+ - A file a member sends in Slack is stored before the turn as the member's temporary attachment in
160
+ `slack:<channel id>` and named to the model in the `<attachments>` block, so
161
+ `attachments_read`, `attachments_table`, `attachments_promote` and `attachments_discard` work on
162
+ it. A file that cannot be stored is named with the reason and a reference.
163
+ - The attachment tools take the chat from the turn's conversation on any channel. Before, they took
164
+ it from Telegram's attributes only and refused every call in Slack.
165
+ - `attachments_send` in a Slack turn uploads the stored files with `files.getUploadURLExternal`
166
+ and shares them together in the turn's thread with `files.completeUploadExternal`, the caption as
167
+ the comment. The Slack connection needs `files:write`, among its default scopes. Each upload
168
+ carries at most the connection proxy's 2 MiB, as in Telegram.
169
+
170
+ Upgrade the ontology SDK with it: an older ontology refuses `slack` as an attachment source, and the
171
+ file then reaches the model only as eve's file part.
172
+
173
+ Pins @segmentstream/ontology 0.94.0.
174
+
175
+ ## 0.37.1
176
+
177
+ Files members send in Slack reach the agent again. Slack answers a file's `url_private` with a
178
+ redirect, which the connection proxy returns as it is, so every Slack attachment failed with HTTP
179
+ 302 and the model saw only its name. The Slack channel now follows redirects as `fetch` does: a
180
+ location under Slack's API or files is requested through the connection proxy again, which adds
181
+ the bot token; any other HTTPS location is fetched directly with no credential. Every hop is
182
+ checked the same way, wherever it answered from, and at most five redirects are followed.
183
+
184
+ `questions_ask` outside Telegram now tells the model to ask in its reply, which the conversation
185
+ already continues, instead of failing with "A member in a chat is required."; the instructions say
186
+ the same.
187
+
188
+ ## 0.37.0
189
+
190
+ Members can ask the agent to post into a Telegram chat from a Slack or WhatsApp conversation, not only from Telegram.
191
+
192
+ **Agent**
193
+ - Every channel now stamps its principal with the conversation a message came from: provider, chat, thread, whether it is the member's own direct conversation, and there the member's id on the provider.
194
+ - The posting card checks, pins and executes from that conversation.
195
+ - In Slack and WhatsApp, eve's approval card shows the exact message, destination and attribution, as the Telegram card does. A card the channel cannot show whole is refused.
196
+ - Edit stays Telegram-only.
197
+
198
+ **Ontology**
199
+ - `RuntimeSource` is now a union: the Telegram source, unchanged, or `{ provider: "slack" | "whatsapp", chat_id, thread_id, kind, peer?, message_id?, sender? }`. Action code that reads Telegram-only fields such as `attachments` or `callback_query_id` must narrow on `provider === "telegram"` first.
200
+ - Delivery refuses a source on a channel other than the member's verified pairing.
201
+ - Delivery also refuses a post into the conversation it came from, including a private destination naming the same person.
202
+ - Which chats can receive a post is set separately per provider (`chat.telegram`, `chat.slack`, `chat.whatsapp`).
203
+
204
+ Upgrade both SDKs together. An older ontology refuses a Slack or WhatsApp source before sending anything. Posting from Telegram is unchanged with any combination of versions.
205
+
206
+ Members can ask the agent to post into a Slack channel or into a member's Slack direct message, from Telegram, Slack or WhatsApp. The post keeps the same exact preview, requester-only approval, ten-minute expiry, attribution and idempotency as a Telegram post.
207
+
208
+ **Ontology**
209
+
210
+ - Declare `chat.slack: { connection }` beside `chat.telegram` to make Slack chats destinations. The connection must be listed in `connections` and must not be Telegram's. Without it nothing changes: Slack chats are neither listed nor posted to.
211
+ - Slack destinations are:
212
+ - the channels in the `agent_chat` registry with provider `slack`;
213
+ - `slack:private:<member id>` for each member paired on Slack.
214
+ - `chat_list` lists Slack destinations only when Slack is declared. Telegram's chats are listed as before.
215
+ - `chat_history` still reads Telegram chats only. A Slack conversation is archived under its session rather than under the channel a destination names, so its history is not offered.
216
+ - A Slack post is one `chat.postMessage` call through the declared connection:
217
+ - `markdown_text` is the member's exact Markdown, then the separator and the attribution, both escaped, with the attribution in italics.
218
+ - `reply_to` is the `ts` of a thread's message.
219
+ - Slack's own refusal consumes the key. A timeout, a 5xx, or an answer that cannot be parsed or verified is `uncertain` and is never resent.
220
+ - The receipt carries the message's `ts` and no URL.
221
+ - `@segmentstream/ontology/slack` exports `renderSlack`, `escapeSlackMarkdown` and `SLACK_MESSAGE_LIMIT`.
222
+ - Telegram delivery, digests and operation ids are unchanged.
223
+
224
+ **Agent**
225
+
226
+ - The posting card describes Slack destinations with the ontology's own renderer.
227
+ - The Telegram card shows a Slack post's exact Markdown and attribution as literal text.
228
+ - The Slack channel reports these channels to the chat registry, titled by `conversations.info`:
229
+ - a channel where a paired member writes;
230
+ - a channel it joins, leaves or sees renamed.
231
+ - Direct and group direct messages are never reported.
232
+ - Channels are reported only once the Slack connection is authorized for `channels:read` and `groups:read`. These are opt-in: list them in the `SlackConnection`'s `scopes` beside the defaults and authorize it again. A Slack app SegmentStream creates with them also subscribes to `member_joined_channel`, `member_left_channel`, `channel_rename` and `group_rename`. Without them, Slack direct messages to paired members are still destinations, and connections on the default scopes keep working without reauthorization.
233
+ - An agent before this release refuses a Slack destination when it describes the post, so nothing is sent. Upgrade both SDKs together.
234
+
235
+ Members can ask the agent to post into another paired member's WhatsApp chat with the workspace's number, from Telegram, Slack or WhatsApp. The post keeps the same exact preview, requester-only approval, ten-minute expiry, attribution and idempotency as any other post.
236
+
237
+ Meta delivers free-form text only inside the 24-hour customer-service window, which opens when the member last wrote to the number. A post outside it fails with Meta's code, 131047, and is not resent. `sent` means Meta accepted the message: a failure Meta reports only later, in the number's delivery statuses, does not change the receipt.
238
+
239
+ **Ontology**
240
+
241
+ - Declare `chat.whatsapp: { connection }` beside `chat.telegram` and `chat.slack` to make members' WhatsApp chats destinations. The connection must be listed in `connections` and must not be another provider's. Without it nothing changes.
242
+ - A destination is `whatsapp:private:<member id>` for each member with a live WhatsApp pairing; its external id is their WhatsApp id. WhatsApp has no group destinations.
243
+ - A WhatsApp post is one text message from the connected number, `POST /phone/messages` through the declared connection:
244
+ - the body is the member's text as written, then the separator and the attribution in italics; WhatsApp's formatting markers (`*`, `_`, `~`, `` ` ``) in the separator and the attribution are replaced by look-alikes WhatsApp never formats;
245
+ - link previews are off;
246
+ - the body is at most 4096 characters and is refused, never cut, when longer;
247
+ - a post cannot reply to a message: `reply_to` is refused.
248
+ - Meta's refusal with an error code consumes the key, and its code is kept in the operator diagnostic. A timeout, a 5xx, or an answer that cannot be parsed or names no message is `uncertain` and is never resent.
249
+ - The receipt's `message_id` is Meta's `wamid…`; it has no URL.
250
+ - `@segmentstream/ontology/whatsapp` exports `renderWhatsApp`, `literalWhatsAppText` and `WHATSAPP_MESSAGE_LIMIT`.
251
+ - Telegram and Slack delivery are unchanged.
252
+
253
+ **Agent**
254
+
255
+ - The posting card describes WhatsApp destinations with the ontology's own renderer, and shows no card for a reply to one.
256
+ - The Telegram card shows a WhatsApp post's text and attribution as literal text.
257
+ - A post from a member's WhatsApp chat into that same chat is refused.
258
+ - An agent before this release refuses a WhatsApp destination when it describes the post, so nothing is sent. Upgrade both SDKs together.
259
+
260
+ Pins @segmentstream/ontology 0.93.0.
261
+
262
+ ## 0.36.3
263
+
264
+ Confirmations now work in Slack and WhatsApp. Before, a click on an approval card's button in either channel was always refused, so no action that needs a confirmation could run there.
265
+
266
+ - A click on a confirmation's own button in Slack or WhatsApp now decides it, as in Telegram. Only the requesting member's click counts, and a typed message still never approves.
267
+ - eve's approval card in these channels shows the same trusted facts as the Telegram card.
268
+ - If the facts are too long for the channel's card (one Slack section, or WhatsApp's 1024-character button message), the call is refused and the agent is asked to narrow it. The card is never cut.
269
+
270
+ No configuration changes.
271
+
272
+ ## 0.36.2
273
+
274
+ A Telegram message routed to the agent carries its time: the `<speaker>` block gives `sent_at`, the
275
+ message's time in UTC, and the agent's instructions take today's date from it. The chat context
276
+ dates only earlier messages, so a session that started in the morning took the day of yesterday's
277
+ last message for today.
278
+
279
+ ## 0.36.1
280
+
281
+ Update the ontology's coordinated Workflow 5 packages to the 5.5 release and require patched Zod validation. Workspace apps must update their `workflow` dependency to match the ontology SDK's peer requirement.
282
+
283
+ Require patched postal-mime and fast-xml-parser releases in the agent SDK to prevent excessive CPU use when parsing crafted email headers or XML.
284
+
285
+ Require patched filelock in the pipeline SDK, and patched oauthlib and pyasn1 in its BigQuery extra. Rebuild installed environments and images to replace older dependencies.
286
+
287
+ Pins @segmentstream/ontology 0.92.1.
288
+
289
+ ## 0.36.0
290
+
291
+ The agent answers in Slack. Bind a `SlackConnection` whose Slack app was created from Console as
292
+ `channels.slack.connection` in `agent/segmentstream.json`; `replies.pairingRequired` is required
293
+ with it. The channel is eve's Slack channel at `/eve/v1/slack`: mentions and direct messages start
294
+ a turn in a thread, later replies in that thread reach the agent to answer or stay quiet, and
295
+ approvals and questions are buttons only the member they were put to can answer. SegmentStream
296
+ relays the app's events signed with the project's agent webhook secret, and every Slack call goes
297
+ through the connection. Members pair their Slack account like Telegram and WhatsApp; unpaired
298
+ senders get the pairing link in a message only they see.
299
+
300
+ ## 0.35.0
301
+
302
+ `configWarnings(config)` lists the settings an `agent/segmentstream.json` sets that configure
303
+ nothing, each with its path: retired session and group keys, and `groups.*.thresholds.engaged`,
304
+ `neutral` and `humanThread` where the conversation group policy applies (at the top level, in a
305
+ chat, or in the shadow policy), since that policy reads only `thresholds.reply` and
306
+ `thresholds.defer`. The agent logs these thresholds at startup as it already logs retired keys.
307
+
308
+ Cloud records the list with each deployment's agent manifest, `segmentstream deploy` prints it
309
+ after the deployment together with any settings the SDK refuses, and the agent page in Cloud shows
310
+ it. Nothing changes in routing: remove the listed settings from `agent/segmentstream.json`.
311
+
312
+ ## 0.34.1
313
+
314
+ The agent SDK depends on the ontology SDK under its new name, `@segmentstream/ontology`. Agent
315
+ projects change nothing; an ontology still on `@segmentstream-cloud/ontology` keeps working with
316
+ it.
317
+
318
+ Pins @segmentstream/ontology 0.92.0.
319
+
320
+ ## 0.34.0
321
+
322
+ The conversation group policy reads two workspace thresholds. `groups.smart.thresholds.reply`
323
+ (0.5 to 1, default 0.5) is the probability the agent needs, both that it is the likeliest
324
+ addressee and that the message needs a response, before it answers; the default keeps today's
325
+ majority rule. `groups.smart.thresholds.defer`, below `reply`, opens a band where the agent
326
+ decides itself: a message whose two probabilities both reach `defer`, without answering, starts a
327
+ turn marked `"routing":"uncertain"` in `<message_audience>`, and the platform instructions tell
328
+ the agent to answer only if the message is meant for it and otherwise call
329
+ `segmentstream__no_reply`. With a band, a message the decision model fails or times out on
330
+ reaches the agent the same way instead of being observed. `defer` defaults to `reply`, so nothing
331
+ changes until a workspace sets it. Each message in the band costs a turn of the main model.
332
+
333
+ Both apply only to the conversation policy, at the top level or per chat under `groups.chats`;
334
+ `defer` may not exceed `reply` after inheritance. Route decisions record
335
+ `decision_model_uncertain`, `decision_model_failed_uncertain` or
336
+ `decision_model_timeout_uncertain`, and router payloads record `defer` in `thresholds_applied`.
337
+ The Cloud console shows both thresholds for agents that report them.
338
+
339
+ Workspace agents get eve's `no_reply` tool as `segmentstream__no_reply`. A turn that calls it ends
340
+ without a message, and the call, with the model's reason, stays in the session history and the
341
+ conversation archive like any tool call. Telegram shows no typing indicator for it. The platform
342
+ instructions now tell the agent to call it where they said to answer exactly `[SILENT]`: when a
343
+ group message is not for it, when a member closes the conversation, and when a reply would add
344
+ nothing. With `channels.telegram.interimMessages` on, text written alongside the call is still
345
+ sent, so the instructions tell the agent to write none.
346
+
347
+ Update `agent/agent/instructions.md`: where it tells the agent to answer exactly `[SILENT]`, tell it
348
+ to call `segmentstream__no_reply` instead. The starter's group rule now reads "For human
349
+ conversations or messages not for you, take no action and call `segmentstream__no_reply`." A final
350
+ reply of exactly `[SILENT]` or `NO_REPLY` is still not delivered until 2027-02-09; after that it is
351
+ sent as text.
352
+
353
+ Pins @segmentstream/ontology 0.91.0.
354
+
355
+ ## 0.33.0
356
+
357
+ Add the WhatsApp channel: `channels.whatsapp: { connection: "whatsapp" }` in
358
+ `agent/segmentstream.json` binds the workspace's `WhatsAppConnection`, and the agent answers
359
+ members who paired their WhatsApp account at `/eve/v1/whatsapp`. SegmentStream relays the number's
360
+ messages there, signed with the project's agent webhook secret; replies, read receipts, typing and
361
+ media downloads go through the connection. A sender nobody paired gets `replies.pairingRequired`,
362
+ which the channel requires, followed by the pairing link. Media uploads are not admitted.
363
+
364
+ ## 0.32.0
365
+
366
+ Actions can describe their own confirmation card with `action({ confirm })`: a read-only function
367
+ of the input, the principal and the chat's `locale` that returns the card's title, icon, facts to
368
+ check, collapsed details and page link in the workspace's words, or refuses the input with
369
+ `ActionRejected` before anyone is asked. Its MCP tool lists `preview: true` in its card facts, and
370
+ the MCP method `segmentstream/confirmation/preview` answers with that card, running and writing
371
+ nothing; a tool without `confirm` is refused there, and a principal whose permission for the action
372
+ is scoped gets no card from it.
373
+
374
+ The agent asks such an action for its card before showing one: the card needs no `_confirmation`
375
+ from the model, a refusal reaches the member as the action's reason instead of a card, and a
376
+ description that fails, cannot be shown or lacks the input's file falls back to the action's fields. Telegram cards are
377
+ formatted (bold title or question, linked facts, collapsed details), with a green confirm button
378
+ and the action's page as a button. Their status line keeps the card and adds a marker unless the
379
+ workspace's word has one, in a group who decided, and the time in each reader's time zone; a failure the
380
+ action refused shows its reason instead of a diagnostic reference. The agent's instructions no
381
+ longer announce an action before its card or repeat its outcome after it.
382
+
383
+ Pins @segmentstream/ontology 0.90.0.
384
+
385
+ ## 0.31.14
386
+
387
+ Pins @segmentstream/ontology 0.89.0.
388
+
389
+ ## 0.31.13
390
+
391
+ Pins @segmentstream/ontology 0.88.0.
392
+
393
+ ## 0.31.12
394
+
395
+ Pins @segmentstream/ontology 0.87.2.
396
+
397
+ ## 0.31.11
398
+
399
+ No behavior change: comments now mark the code kept only for compatibility with earlier names and earlier releases. Upgrade notes will name each removal before it ships.
400
+
401
+ Pins @segmentstream/ontology 0.87.1.
402
+
403
+ ## 0.31.10
404
+
405
+ Pins @segmentstream/ontology 0.87.0.
406
+
407
+ ## 0.31.9
408
+
409
+ Confirmation cards accept email addresses. A recipient's address in the agent's question or in a
410
+ card fact is plain text, not a link, so a card that names where a document or message goes is no
411
+ longer refused; links, web addresses and file names still are. A refused `_confirmation` now names
412
+ what is wrong with it, so the agent can correct the copy instead of guessing.
413
+
414
+ ## 0.31.8
415
+
416
+ Pins @segmentstream/ontology 0.86.0.
417
+
418
+ ## 0.31.7
419
+
420
+ A paired member who joins or is added to a Telegram group joins the chat's `members` at once,
421
+ so they can read the chat's history before they write there. The join notice starts no turn.
422
+
423
+ Pins @segmentstream/ontology 0.85.0.
424
+
425
+ ## 0.31.6
426
+
427
+ Pins @segmentstream/ontology 0.84.2.
428
+
429
+ ## 0.31.5
430
+
431
+ Pins @segmentstream/ontology 0.84.1.
432
+
433
+ ## 0.31.4
434
+
435
+ Pins @segmentstream/ontology 0.84.0.
436
+
437
+ ## 0.31.3
438
+
439
+ Group routing no longer downloads or reads PDFs. The classifier sees a document's kind and
440
+ filename, as a person in the chat does before opening it; images and voice messages are still
441
+ described for routing. PDF text extraction never worked in deployed agents, because the bundle
442
+ did not include its parser; the `unpdf` dependency is removed. The main model still reads PDFs
443
+ in its turn as before.
444
+
445
+ ## 0.31.2
446
+
447
+ Pins @segmentstream/ontology 0.83.0.
448
+
449
+ ## 0.31.1
450
+
451
+ The approval policy no longer downloads the ontology's whole tool catalog for each call (#822).
452
+ Eve passes each call's tool annotations to the policy, which now approves a routine call from them
453
+ without another request; the ontology still checks the member's permissions when the call runs. A
454
+ confirmable action's annotations also carry its card facts, so its card reads only the records it
455
+ names. A tool that another tool calls, such as an attachment promotion's action, is read alone from
456
+ the ontology's `ontology://tools/{name}` resource, and runtime-source support comes from the
457
+ ontology's `initialize` capabilities. With an ontology that predates these, the policy answers from
458
+ the catalog listing as before. A select value is now labelled when its schema writes the option as
459
+ a single-value `enum`.
460
+
461
+ The platform instructions and the ontology connection's description name the metric tools,
462
+ `list_metrics`, `get_dimensions`, `get_dimension_values` and `query_metrics`: `list_metrics` lists
463
+ every metric the member may compute, entity metrics and model metrics, and `query_metrics` counts,
464
+ sums and compares them.
465
+
466
+ The ontology connection's description and the platform instructions name
467
+ `segmentstream__ontology__discover`, so the agent calls it through `eve__tool` without searching
468
+ for it, with the member's request and its own restatement of what they want. An ontology that
469
+ ranks entities by meaning answers with the likely entities and the tools the member may call for
470
+ each.
471
+
472
+ The platform instructions and the ontology connection's description no longer send the agent to
473
+ `describe`. They point it to `<entity>_find`, which says what fields and values mean, and to the
474
+ metric tools for numbers, and name `segmentstream__ontology__discover` for ontologies that rank
475
+ entities by meaning. An attachment promotion's input contract is read from the action's own tool.
476
+
477
+ Pins @segmentstream/ontology 0.82.0.
478
+
479
+ ## 0.31.0
480
+
481
+ `segmentstream.model(choice)` now takes the chat model choice from `agent.ts`. Under eve 1.0 the
482
+ extension's configuration is bound only inside the extension, so with Agent SDK 0.30.0
483
+ `segmentstream.model()` without a choice found no model and every turn failed. In
484
+ `agent/agent/agent.ts`, import `../segmentstream.json` and pass `models.chat`:
485
+
486
+ ```ts
487
+ import config from "../segmentstream.json";
488
+
489
+ export default defineAgent({
490
+ model: segmentstream.model(config.models.chat),
491
+ // ...
492
+ });
493
+ ```
494
+
495
+ A missing or invalid choice now fails `eve build`, before a deployment, instead of the first
496
+ message.
497
+
498
+ ## 0.30.0
499
+
500
+ The Agent SDK now builds on eve 1.0.0-rc.6. Pin `eve` to `1.0.0-rc.6` with this release in the
501
+ workspace's `agent/package.json`, and in `agent/agent.ts` rename `compaction.thresholdPercent` to
502
+ `compaction.threshold` (same 0–1 value): eve 1.0 refuses the old key at build. Workspace code that
503
+ ends a session calls `end()` instead of `reset()`.
504
+
505
+ The SDK keeps the Telegram questions and sign-in prompts it posts in its own channel state instead
506
+ of eve's internal keys, and leaves typed answers to eve, which answers the oldest open request with
507
+ the person's next message. The sandbox's `bash` waits 60 seconds by default (up to 120 with
508
+ `timeout`) and shows the model its output as plain text.
509
+
510
+ ## 0.29.3
511
+
512
+ Pins @segmentstream/ontology 0.81.1.
513
+
514
+ ## 0.29.2
515
+
516
+ Pins @segmentstream/ontology 0.81.0.
517
+
518
+ ## 0.29.1
519
+
520
+ Pins @segmentstream/ontology 0.80.2.
521
+
522
+ ## 0.29.0
523
+
524
+ Conversation-policy group messages no longer wait for the rest of a burst or get dropped as part
525
+ of one. The Telegram webhook used to hold every message for six seconds of quiet, but in practice the
526
+ chat's next update arrived only after the previous one was answered, so the wait never saw the
527
+ next message and delayed each by about thirteen seconds; a series of forwarded files then arrived
528
+ one at a time, each interrupting the agent's work. A durable burst fence and a recheck when a
529
+ queued turn started then cancelled later messages of the series as already answered, losing
530
+ their files. Both are removed: every message is routed when it arrives, and a member's messages
531
+ that reach the agent while their turn runs steer it, eve's default, so a series of files and the
532
+ instruction after them reach the same turn. Other members still queue.
533
+
534
+ `groups.smart.engagement.burst.quietSeconds` and `maxSeconds` are accepted and ignored with a
535
+ warning; `gapSeconds` still groups a member's adjacent messages for classification. The
536
+ `debounceBurst` export is removed, and group turns no longer carry a `groupRouting` auth
537
+ attribute.
538
+
539
+ ## 0.28.0
540
+
541
+ The conversation group policy reads the chat instead of tracking conversations with timers. Code
542
+ now decides only explicit cases: a bot mention, command, agent vocative or reply to the agent goes
543
+ to the agent; a reply to, tag of, or leading/trailing name of a person goes to that person. Every
544
+ other message goes to the decision model with the chat's last `groups.smart.context.messages`
545
+ messages (60 by default), however old, and the agent answers when the model names it as the
546
+ likeliest addressee with a probability of at least 0.5 and the message needs a response. A
547
+ question about the agent's last answer is now routed to the agent even hours later, where the
548
+ former 10-minute idle timer and 15-minute transcript window hid that answer from the model.
549
+
550
+ The classifier no longer receives a computed conversation state (`route_context`) and no longer
551
+ asks `ends_conversation`; after an explicit `[SILENT]` the runtime makes no extra classifier call.
552
+ The platform prompt is neutral English; add workspace examples and languages with
553
+ `groups.smart.instructions.append`. `engagement.idleMinutes`, `humanExchangeMinutes`,
554
+ `humanQuestionMinutes`, `inferredMaxMinutes` and `thresholds.continuation`,
555
+ `inferredContinuation`, `contested`, `ambient` and `humanExchange` are still accepted, so existing
556
+ configurations deploy, but ignored with a warning; remove them. The `groupConversationState`
557
+ export and the `ConversationAnalysis` and `ConversationPath` types are removed;
558
+ `groupConversationAddressing` remains.
559
+
560
+ ## 0.27.0
561
+
562
+ Telegram chat context is incremental. Each archived message of the chat or forum topic that a
563
+ session has not seen joins its history once, ahead of the next turn, as a data-only
564
+ `<chat_messages>` block: chatter the agent only observed, automated posts and other sessions'
565
+ posts, never the messages delivered to the session or the replies it sent. The session keeps a
566
+ bookmark in eve state, so history stays append-only and is not re-sent on every turn, which
567
+ previously appended a new snapshot of up to 30,000 characters per turn and made eve compact busy
568
+ group sessions every few minutes. A new session starts with the chat's newest 50 messages; a
569
+ session from before this release reads only what arrived since its previous turn. A turn
570
+ cancelled before its first model call shows its messages again on the next turn, and an archive
571
+ read failure no longer fails the turn. The registry's `<chat>` guidance is shown once and again
572
+ when it changes. A forum's General topic reads only messages without a topic.
573
+
574
+ Each answered message's own context keeps only its facts (speaker, audience, attachments). The
575
+ reply-language and after-action rules, the conversation policy's `[SILENT]` rule (now keyed on
576
+ `engagement_policy` in `<message_audience>`) and the description of chat context moved into the
577
+ SDK's system instructions. The message no longer carries the routing evidence or the observed
578
+ backlog.
579
+
580
+ The SDK no longer runs its own session policy. `sessions.compactAt`, `sessions.timezone` and
581
+ `sessions.idleResetHours` are still accepted, so existing configurations deploy, but ignored with
582
+ a warning at configuration load: eve compacts sessions automatically near the context window
583
+ (`compaction` in `agent.ts`) and ends idle sessions after `limits.sessionTimeoutMs`. The resolved
584
+ `sessions` settings, and the deployment manifest, keep only `scope`. The webhook no longer reads a
585
+ session's stream tail on every message for this policy.
586
+
587
+ The in-process observed-message ring is removed, together with the `groupObservedMessages`
588
+ export. Group routing for every engagement policy, the conversation language of short messages,
589
+ and the native images of observed messages that the next answered turn carries all come from the
590
+ conversation archive, which now also records each message's stored attachments by reference.
591
+ Every process therefore routes with the same context. Deploy Cloud's agent console update with or
592
+ before this release: it reads a manifest whose `sessions` holds only `scope`.
593
+
594
+ ## 0.26.1
595
+
596
+ Pins @segmentstream/ontology 0.80.1.
597
+
598
+ ## 0.26.0
599
+
600
+ The Telegram channel returns to Eve's native typing indicator: one `typing` chat action in the
601
+ message's chat and topic when a message is admitted, when its turn starts and when each tool call
602
+ is requested. Nothing refreshes it on a timer, and a refused action never affects the turn.
603
+
604
+ The webhook no longer keeps its request open to follow the turn's session stream and refresh typing
605
+ every four seconds, so it no longer logs the turn's model and tool phases; those events remain in
606
+ the session's durable stream. Admission, storage and queue-acceptance phase logs are unchanged.
607
+
608
+ Breaking: `telegramTypingBlock`, `recordTelegramTypingStart` and the `TelegramTypingSource`,
609
+ `TypingCursor` and `TypingBlockResult` types are removed from `@segmentstream/agent/extension`.
610
+ Delete any application workflow, step or `turn.started` hook built on them before upgrading; the
611
+ channel's own indicator replaces them, and no `typing_monitor_started` decisions are recorded.
612
+
613
+ ## 0.25.7
614
+
615
+ A confirmation card is shown only with the agent's own question: when a tool offers
616
+ `_confirmation`, a call that needs a card but carries no copy, or invalid copy, is refused
617
+ before any card and the agent is asked to write the question and labels in the chat's
618
+ language. The workspace's confirmation copy remains the presentation for older tools that
619
+ offer no `_confirmation`.
620
+
621
+ ## 0.25.6
622
+
623
+ A Telegram address whose session owner sits on a deleted deployment now continues at one
624
+ successor that every deployment shares, so the conversation, its confirmation cards and its
625
+ questions survive later deploys instead of starting fresh on each one. The successor is named
626
+ by the unreachable run; if its own deployment is deleted later, the next successor follows the
627
+ same rule. A typing monitor stops after 30 minutes, so a turn that never records its end no
628
+ longer keeps a worker running.
629
+
630
+ ## 0.25.5
631
+
632
+ Pins @segmentstream/ontology 0.80.0.
633
+
634
+ ## 0.25.4
635
+
636
+ Pins @segmentstream/ontology 0.79.4.
637
+
638
+ ## 0.25.3
639
+
640
+ Pins @segmentstream/ontology 0.79.3.
641
+
642
+ ## 0.25.2
643
+
644
+ Pins @segmentstream/ontology 0.79.2.
645
+
646
+ ## 0.25.1
647
+
648
+ Pins @segmentstream/ontology 0.79.1.
649
+
650
+ ## 0.25.0
651
+
652
+ The agent no longer publishes the per-minute confirmation-expiry cron. Since the native Eve MCP migration no call creates a deferred Telegram card, so the schedule only opened every Telegram workspace's ontology database once a minute, which kept its Neon compute awake around the clock. Native approval expiry is checked at button press. The retired ledger is no longer read on inbound messages, and pressing an old deferred card runs nothing.
653
+
654
+ ## 0.24.2
655
+
656
+ Pins @segmentstream/ontology 0.79.0.
657
+
658
+ ## 0.24.1
659
+
660
+ Confirmation cards now name records whose titles carry legal-form initials, such as
661
+ "Example Groep N.V" or "Example B.V."; file names, domains and links are still refused. When a
662
+ target's title cannot be shown, the denial tells the model which field it was, that another call
663
+ will be refused the same way, and that the member can rename the record or make the change in the
664
+ app. `segmentstream__attachments_stage` still checks the member's access to a stored file on every
665
+ call, but no longer transfers its bytes when the sandbox already holds the same SHA-256 at its
666
+ staged path. The conversation log records each retried model attempt (`model.retried`) with its
667
+ attempt number and redacted error.
668
+
669
+ ## 0.24.0
670
+
671
+ A confirmation card no longer holds a shared chat. Eve keeps every other member's message waiting
672
+ while a turn waits on a person, so before the agent answers a message it now cancels the receiving
673
+ session's parked approval turn, including for the requester's own message. The cancelled action
674
+ does not run, its card shows the cancellation, and the new turn carries an `<approval_recovery>`
675
+ note naming it. Messages the router only observes leave the card waiting. The ten-minute expiry is
676
+ unchanged and is still checked when a button is pressed.
677
+
678
+ The agent retires the PostgreSQL confirmation ledger used before the native MCP migration. It no
679
+ longer registers the minute schedule that expired those cards, which called the workspace's
680
+ ontology service every minute in every Telegram workspace and kept its database from suspending,
681
+ and no longer reads that ledger on each inbound message. Those cards expired ten minutes after
682
+ they were posted; a press on one of their buttons now gets the workspace's expired callback text
683
+ and runs nothing. The ledger table remains for audit history.
684
+
685
+ A continuing group session now receives only the conversation evidence that arrived since its last
686
+ member message, with a one-minute overlap and a `recent_messages_since` marker, instead of the
687
+ whole 30- or 60-message window on every turn. Eve keeps earlier evidence in the session history.
688
+ New, compacted and cleared sessions still receive the whole window, and routing decisions are
689
+ unchanged.
690
+
691
+ ## 0.23.16
692
+
693
+ Pins @segmentstream/ontology 0.78.0.
694
+
695
+ ## 0.23.15
696
+
697
+ Pins @segmentstream/ontology 0.77.3.
698
+
699
+ ## 0.23.14
700
+
701
+ Pins @segmentstream/ontology 0.77.2.
702
+
703
+ ## 0.23.13
704
+
705
+ Pins @segmentstream/ontology 0.77.1.
706
+
707
+ ## 0.23.12
708
+
709
+ Pins @segmentstream/ontology 0.77.0.
710
+
711
+ ## 0.23.11
712
+
713
+ Pins @segmentstream/ontology 0.76.1.
714
+
715
+ ## 0.23.10
716
+
717
+ Pins @segmentstream/ontology 0.76.0.
718
+
719
+ ## 0.23.9
720
+
721
+ Pins @segmentstream/ontology 0.75.0.
722
+
723
+ ## 0.23.8
724
+
725
+ Pins @segmentstream/ontology 0.74.3.
726
+
727
+ ## 0.23.7
728
+
729
+ Pins @segmentstream/ontology 0.74.2.
730
+
731
+ ## 0.23.6
732
+
733
+ Pins @segmentstream/ontology 0.74.1.
734
+
735
+ ## 0.23.5
736
+
737
+ Pins @segmentstream/ontology 0.74.0.
738
+
739
+ ## 0.23.4
740
+
741
+ Pins @segmentstream/ontology 0.73.0.
742
+
743
+ ## 0.23.3
744
+
745
+ Pins @segmentstream/ontology 0.72.0.
746
+
747
+ ## 0.23.2
748
+
749
+ Pins @segmentstream/ontology 0.71.0.
750
+
751
+ ## 0.23.1
752
+
753
+ Telegram sessions in the default `chat` scope no longer alias the chat's topic or a member's
754
+ question address while they wait for a confirmation or an answer; only `thread` scope needs those
755
+ aliases. In a group, Eve aliases every agent post, so a recovered session's continuation stopped
756
+ naming its recovery address and the session claimed the inbox its unreadable predecessor still
757
+ held. Eve then ended the session as soon as it asked a question or requested approval. Thread scope
758
+ keeps its aliases.
759
+
760
+ ## 0.23.0
761
+
762
+ Let a workspace agent work on files already stored in the app, and on office documents.
763
+
764
+ - New `segmentstream__attachments_stage` tool (with `"sandbox": true`, never in task sessions):
765
+ copies a chat attachment, or a record's stored file by `entity`, `id` and optional `property`,
766
+ into `/workspace/.segmentstream/files/`, read as the member through the same grants as
767
+ `attachments_read` and checked against its SHA-256. No URL or credential enters the sandbox;
768
+ `attachments_promote` with `path` remains the way out.
769
+ - `segmentstream__read_file` now keeps eve's model output, so images and PDFs reach the model as
770
+ files and the agent can look at pages it rendered. Before, it saw only their size and type.
771
+ - New opt-in `@segmentstream/agent/sandbox/documents`: the base toolset plus LibreOffice Writer
772
+ without its GUI, python-docx, reportlab, WeasyPrint and metric-compatible fonts. Re-export it
773
+ from `agent/agent/sandbox.ts` instead of `@segmentstream/agent/sandbox`; the first build
774
+ prepares a new snapshot (about 200 MB more). The base sandbox's toolset is unchanged, so
775
+ existing agents keep their snapshot.
776
+
777
+ ## 0.22.10
778
+
779
+ Pins @segmentstream/ontology 0.70.0.
780
+
781
+ ## 0.22.9
782
+
783
+ Pins @segmentstream/ontology 0.69.0.
784
+
785
+ ## 0.22.8
786
+
787
+ Allow the documented recipient, signature and provider placeholders when validating private/group chat preview templates. Preserve rejection of unknown placeholders and technical text in ordinary customer-facing configuration.
788
+
789
+ ## 0.22.7
790
+
791
+ Expose the existing mounted Telegram channel as a public reference for Eve cross-channel delivery. Authored channels and schedules can use the normal receive/session path without constructing another adapter or reaching through private package paths. The reference grants no authority; callers still authenticate and authorize the delivery.
792
+
793
+ ## 0.22.6
794
+
795
+ Keep recovered Telegram confirmations and pending questions on their recorded continuation instead of claiming a predecessor's inbox. Add optional workspace-authored exact-post preview templates for private and group destinations, including recipient and signature placeholders.
796
+
797
+ ## 0.22.5
798
+
799
+ Pins @segmentstream/ontology 0.68.3.
800
+
801
+ ## 0.22.4
802
+
803
+ Pins @segmentstream/ontology 0.68.2.
804
+
805
+ ## 0.22.3
806
+
807
+ Pins @segmentstream/ontology 0.68.1.
808
+
809
+ ## 0.22.2
810
+
811
+ Pins @segmentstream/ontology 0.68.0.
812
+
813
+ ## 0.22.1
814
+
815
+ Pins @segmentstream/ontology 0.67.0.
816
+
817
+ ## 0.22.0
818
+
819
+ Ontology file calls can save permitted read-only results directly into the session's isolated
820
+ sandbox with `save_result: true`. Scripts receive exact JSON, paging metadata and a digest without
821
+ model transcription. The mode refuses write tools, preserves member/task permissions and query
822
+ bounds, and limits each result file to 8 MiB. Existing file calls keep their response behavior.
823
+
824
+ ## 0.21.7
825
+
826
+ Pins @segmentstream/ontology 0.66.3.
827
+
828
+ ## 0.21.6
829
+
830
+ Document the opt-in hourly production admission window for existing operator
831
+ release processes. Manual source storage and indexing continue; production create
832
+ and retry are refused outside the configured window before an attempt or desired
833
+ commit write, with a typed next-opening response. Preview lifecycle and default
834
+ per-push deployment remain unchanged.
835
+
836
+ Pins @segmentstream/ontology 0.66.2.
837
+
838
+ ## 0.21.5
839
+
840
+ Document replication lifecycle availability separately from delivery freshness.
841
+ The Cloud worker keeps published streams active during later delivery lag, so
842
+ ordinary writes do not restart copy workflows or indefinitely hold release gates.
843
+ Initial baselines, replay, generation changes and freshness watermarks retain
844
+ their existing verification requirements.
845
+
846
+ Pins @segmentstream/ontology 0.66.1.
847
+
848
+ ## 0.21.4
849
+
850
+ Pins @segmentstream/ontology 0.66.0.
851
+
852
+ ## 0.21.3
853
+
854
+ Document the source-controlled manual deployment trigger available in Cloud. Workspaces can
855
+ accumulate main updates for explicit releases while retaining source indexing, deployment
856
+ authorization, canonical idempotency and retries. The default remains per-push deployment;
857
+ the setting introduces no scheduler, SDK API change or ontology migration.
858
+
859
+ Pins @segmentstream/ontology 0.65.2.
860
+
861
+ ## 0.21.2
862
+
863
+ A task session ends without a 15-second wait. The session asks its deployment to end it from its own
864
+ event handler, and the reset waited for that handler, so every task logged
865
+ `agent_task_end_failed` after a timeout. The end route now answers at once and ends the session
866
+ after the response.
867
+
868
+ ## 0.21.1
869
+
870
+ Pins @segmentstream/ontology 0.65.1.
871
+
872
+ ## 0.21.0
873
+
874
+ Add workflow tasks (`docs/agent-tasks-spec.md`). The new `segmentstream__tasks` channel answers
875
+ `POST /eve/segmentstream/v1/tasks` for the deployment's own functions in production: it reads the
876
+ task with its secret from the ontology, starts a session at `task:<task id>` with the workspace's
877
+ prompt as its first message, acting as the workflow's user, and reports `completed`,
878
+ `needs_input` or `failed` when the turn ends, then ends the session. Task sessions call `/mcp` with
879
+ `X-SegmentStream-Agent-Task` instead of `X-SegmentStream-Act-As`, run permitted ontology actions
880
+ without confirmation cards, and are not offered attachments, member files, chat history or chat
881
+ posting. Nothing calls the route until the workspace's ontology is upgraded to the ontology SDK
882
+ release that adds `agentTask`.
883
+
884
+ The attachment tools and `attachments_send` are now dynamic tools that a task session is not
885
+ offered; members get them unchanged. A workspace that redefines one of them from
886
+ `@segmentstream/agent/tools` evaluates the dynamic definition instead of spreading it.
887
+
888
+ ## 0.20.4
889
+
890
+ Pins @segmentstream/ontology 0.65.0.
891
+
892
+ ## 0.20.3
893
+
894
+ Pins @segmentstream/ontology 0.64.0.
895
+
896
+ ## 0.20.2
897
+
898
+ Pins @segmentstream/ontology 0.63.0.
899
+
900
+ ## 0.20.1
901
+
902
+ Pins @segmentstream/ontology 0.62.0.
903
+
904
+ ## 0.20.0
905
+
906
+ Recognize model budget exhaustion and temporary model service outages in failed turns.
907
+ Telegram can use optional workspace-owned `texts.notice.modelBudgetExceeded` and
908
+ `texts.notice.modelUnavailable` copy, falling back to the existing failure notice.
909
+ The operator archive records a deduplicated model service alert without business content.
910
+
911
+ ## 0.19.2
912
+
913
+ Pins @segmentstream/ontology 0.61.1.
914
+
915
+ ## 0.19.1
916
+
917
+ Allow workspaces to preauthorize minimal technical failure reports during requested work with feedback.automaticFailureReports. Keep confirmation for other feedback and preserve existing role scopes and defaults.
918
+
919
+ Pins @segmentstream/ontology 0.61.0.
920
+
921
+ ## 0.19.0
922
+
923
+ Upgrade to Eve 0.85.0 and its v27 event protocol. Rebuild the workspace agent with this SDK and Eve 0.85.0 together. Dynamic definitions, native MCP authorization, Telegram confirmations, conversation capture, delivery receipts and durable stream cursors now use Eve's current APIs. Preserve exact-post consent, member permissions, session model selection and attachment lifecycle handling through the upgrade. Idle older sessions use Eve's native deployment handoff; keep previous deployments available for in-flight work.
924
+
925
+ ## 0.18.3
926
+
927
+ Pins @segmentstream/ontology 0.60.1.
928
+
929
+ ## 0.18.2
930
+
931
+ Actions may opt into enforced read-only provider connections while retaining transactional local writes. Their MCP annotations no longer request external-effect confirmation solely for those connections; local destructive and irreversible effects retain confirmation.
932
+
933
+ MCP file-writing actions expose idempotency options when preparation stages a file, including actions with no client upload input.
934
+
935
+ Telegram failure notices use workspace-authored text without appending internal diagnostic identifiers. Full failures and their correlation identifiers remain in operator diagnostics.
936
+
937
+ Pins @segmentstream/ontology 0.60.0.
938
+
939
+ ## 0.18.1
940
+
941
+ Read warehouse-backed records through the ordinary find/get tools and HTTP routes,
942
+ with opaque source-key identities, bounded pagination and permission-checked
943
+ value-matched relationship traversal. The typed app client exposes these reads.
944
+ Observations remain in the warehouse; no ontology tables or actions are added.
945
+
946
+ Pins @segmentstream/ontology 0.59.0.
947
+
948
+ ## 0.18.0
949
+
950
+ Replace the ontology gateway with Eve's native MCP connection for every paired member, without
951
+ a mode setting. Remove the four ontology gateway tools and their bespoke search and metadata cache.
952
+ Eve owns discovery and direct calls; the existing member-bound
953
+ approval policy preserves permissions and exact chat-post previews. Approvals now pause the turn.
954
+
955
+ Upgrade the workspace ontology and agent together. Remove workspace-authored instructions for
956
+ the retired gateway. Migrate script-generated JSON payloads to the narrow `ontology_call_file`
957
+ tool: it snapshots the file before native approval and dispatches the original contents once.
958
+ Remove `confirmations.mode`; legacy `deferred` configs are accepted and ignored. Existing
959
+ deferred cards retain their callbacks, durable execution fences and expiry sweep, but no new
960
+ ontology call creates a deferred card.
961
+
962
+ Runtime MCP listings omit optional output schemas unless `mcp.toolListing: "full"` is selected.
963
+ Input schemas, annotations, metadata and all permitted operation names remain available.
964
+
965
+ Pins @segmentstream/ontology 0.58.1.
966
+
967
+ ## 0.17.21
968
+
969
+ Pins @segmentstream/ontology 0.58.0.
970
+
971
+ ## 0.17.20
972
+
973
+ - Enable text feedback by default on upgrade and deploy. Human members receive a reserved,
974
+ unassignable reporter role with own-item scopes; OAuth consent narrowing remains authoritative.
975
+ Files default on only when another entity has a blob; explicit `feedback: true` retains files.
976
+ Configure `feedback: { builders: [...] }`, `files` or `feedback: false` in workspace code.
977
+ Missing responders produce a warning, including in the starter. Manifest 11 records the resolved
978
+ settings. Historical deployments keep their existing grants.
979
+ - Pipeline workload `*:*` no longer grants feedback or widens named feedback scopes. Explicit
980
+ grants retain their meaning; review services that relied on the former wildcard exception.
981
+ - The agent attaches a member's screenshots and files to feedback only when
982
+ `app_feedback_file_attach` is available.
983
+
984
+ Pins @segmentstream/ontology 0.57.0.
985
+
986
+ ## 0.17.19
987
+
988
+ Declare sandbox tool callbacks inline with module-level executor references. A
989
+ higher-order wrapper captured a complete ToolDefinition, including functions,
990
+ which Eve correctly rejected when persisting dynamic tools for a durable turn.
991
+ Keep the existing sandbox provenance gate, schemas, labels and explicit-enable
992
+ behavior while making each callback's closure serializable.
993
+
994
+ ## 0.17.18
995
+
996
+ Pins @segmentstream/ontology 0.56.3.
997
+
998
+ ## 0.17.17
999
+
1000
+ Expose a bounded Telegram typing activity and durable monitor diagnostics for an
1001
+ authored application workflow. The activity follows only its source turn, stops
1002
+ on completion, failure, cancellation or input wait, and calls the declared
1003
+ connection without serializing member or provider tokens. Application workflow
1004
+ wrappers keep their lifecycle independent of the webhook host and can continue
1005
+ with a bounded event cursor for long-running turns.
1006
+
1007
+ Keep the explicitly enabled SDK sandbox tools available with defaultTools false.
1008
+ The guarded wrappers retain the provided schemas and labels but no longer inherit
1009
+ Eve's optional-framework-tool marker.
1010
+
1011
+ ## 0.17.16
1012
+
1013
+ Pins @segmentstream/ontology 0.56.2.
1014
+
1015
+ ## 0.17.15
1016
+
1017
+ Keep group-routing silence at Telegram delivery. Duplicate and observe cancellations, and silent or
1018
+ unadmitted routed group turns, produce no notice, including when a cancellation callback is
1019
+ replayed. Other cancellation and failure notices keep a symbol before their reference when the
1020
+ workspace supplies no copy (such as `texts.notice.cancelled`), so a notice never consists only of
1021
+ the reference, and the send boundary rejects a message that is only an eight-character hex token
1022
+ containing a letter, so ordinary numeric answers still send. Redacted delivery diagnostics, with
1023
+ their operation and correlation reference, are written to the conversation archive before the
1024
+ channel callback returns, so a notice stays diagnosable after runtime logs expire. Primary turn
1025
+ failures are reported before the routing lookup, and archive-write failures keep their redacted
1026
+ cause in operator logs.
1027
+
1028
+ A mid-sentence human mention in a reply to the agent now goes through classification, so a
1029
+ beneficiary can be told apart from an addressee; leading and terminal human addresses and named
1030
+ Telegram text mentions keep their current behavior. Ordinary text turns start the typing monitor,
1031
+ which keeps a four-second cadence and has no fixed ten-minute cutoff; it remains bounded by the
1032
+ webhook host lifetime. Multipart captions are preserved and source-prefixed pending answers are
1033
+ cleared.
1034
+
1035
+ ## 0.17.14
1036
+
1037
+ Pins @segmentstream/ontology 0.56.1.