@segmentstream/ontology 0.150.0 → 0.150.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,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.150.1
|
|
4
|
+
|
|
5
|
+
The workspace chat store's code takes the time of a message's disposition when Cloud copies what
|
|
6
|
+
the agent did before the store, so a copied decision keeps its own time. The runtime routes are
|
|
7
|
+
unchanged: a disposition the agent records is stamped when it is recorded.
|
|
8
|
+
|
|
3
9
|
## 0.150.0
|
|
4
10
|
|
|
5
11
|
The chat store's runtime routes take what the agent's dispatch needs: `release`, a change that gives
|
|
@@ -134,6 +134,11 @@ export type ChatMessageChange =
|
|
|
134
134
|
readonly reason?: string;
|
|
135
135
|
readonly sessionId?: string;
|
|
136
136
|
readonly turnId?: string;
|
|
137
|
+
/**
|
|
138
|
+
* When the agent did it, for a copy of what it did before the store; now otherwise. The
|
|
139
|
+
* runtime routes never take it.
|
|
140
|
+
*/
|
|
141
|
+
readonly at?: string;
|
|
137
142
|
}) | {
|
|
138
143
|
readonly change: "sent";
|
|
139
144
|
readonly channel: string;
|
|
@@ -406,7 +406,7 @@ export function sqlChatMessageStore(sql) {
|
|
|
406
406
|
const expired = `"disposition_at" < now() - interval '${CHAT_CLAIM_MINUTES} minutes'`;
|
|
407
407
|
const assignments = [
|
|
408
408
|
`"disposition" = ${params.add(input.disposition, "text")}`,
|
|
409
|
-
`"disposition_at" = now()`,
|
|
409
|
+
`"disposition_at" = ${input.at === undefined ? "now()" : params.add(input.at, "timestamptz")}`,
|
|
410
410
|
input.disposition === "claimed"
|
|
411
411
|
? `"reason" = ${reason}`
|
|
412
412
|
: `"reason" = coalesce(${reason}, "reason")`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/ontology",
|
|
3
|
-
"version": "0.150.
|
|
3
|
+
"version": "0.150.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",
|