@segmentstream/ontology 0.165.0 → 0.165.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.165.1
4
+
5
+ An approved draft sent without some of its files is recorded as a message the agent did not write,
6
+ as an edited one is, so the agent's next turn learns which files reached the person.
7
+
3
8
  ## 0.165.0
4
9
 
5
10
  Staff choose a draft's files and post files of their own. `agent_draft.approve` takes `files`, the
@@ -276,9 +276,11 @@ export function reviewSender(input) {
276
276
  kind: "outbound",
277
277
  messageId: null,
278
278
  replyToMessageId: replyTo,
279
- // The agent's session holds its draft: the session sees an edit, and a redraft it never
280
- // wrote, as a message it did not write, and its own draft sent as written as its own.
279
+ // The agent's session holds its draft: the session sees an edit, a redraft it never wrote,
280
+ // and a reply sent without some of its files as a message it did not write, and its own
281
+ // draft sent as written as its own.
281
282
  sessionId: text === draft &&
283
+ files.length === heldFiles.length &&
282
284
  (review.revises_id === null || review.revises_id === undefined) &&
283
285
  typeof review.session_id === "string"
284
286
  ? review.session_id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/ontology",
3
- "version": "0.165.0",
3
+ "version": "0.165.1",
4
4
  "description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "SegmentStream",