@segmentstream/agent 0.17.12 → 0.17.14
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/README.md +4 -2
- package/dist/_chunks/{build-metadata-Ci2gQKz3.mjs → build-metadata-Dq5Bu5nW.mjs} +1 -1
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/group-routing/dequeue.mjs +7 -3
- package/dist/extension/lib/telegram/adapter.mjs +1 -1
- package/dist/extension/lib/telegram/health.mjs +1 -1
- package/dist/extension/lib/telegram/lifecycle.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -309,7 +309,9 @@ share a group chat's session never share a client.
|
|
|
309
309
|
applies per-path probability thresholds. Pending questions are hints inside a live conversation,
|
|
310
310
|
never a bypass or another session. Untagged bursts wait 6 seconds (maximum 15); same-caller
|
|
311
311
|
messages steer one chat/topic session and other callers are rechecked when dequeued. A durable
|
|
312
|
-
burst fence prevents a second accepted turn.
|
|
312
|
+
burst fence prevents a second accepted turn. Claimed mentions and commands survive later
|
|
313
|
+
human-directed messages in the burst, recorded as `dequeue_explicit_kept`; archive failures
|
|
314
|
+
and duplicate claims still cancel. See [group configuration](../../docs/agent.md#groups).
|
|
313
315
|
- **Voice.** Voice messages, audio files and video notes are downloaded through the connection and
|
|
314
316
|
transcribed with `models.stt` through AI Gateway before the turn.
|
|
315
317
|
The transcript becomes the message, with a note such as `[voice message, 12 s]` in
|
|
@@ -615,7 +617,7 @@ Eve resolution, so member/topic routing survives a cold start. No second provide
|
|
|
615
617
|
|
|
616
618
|
## Release and migration
|
|
617
619
|
|
|
618
|
-
The coordinated release uses Agent SDK 0.17.
|
|
620
|
+
The coordinated release uses Agent SDK 0.17.13, Eve 0.76.3, Ontology SDK 0.56.0 and App SDK 0.25.2.
|
|
619
621
|
The compatible Cloud archive/API must be deployed first; migrations run only through its CI/CD gate.
|
|
620
622
|
Publish the ontology SDK before the agent SDK. Upgrade the workspace ontology before its agent,
|
|
621
623
|
with the declared Telegram provider mapping and explicit `agent_chat:post_message` grant.
|
|
@@ -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.17.
|
|
7
|
+
var version = "0.17.14";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -4,5 +4,5 @@ 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
|
-
import { t as agentBuild } from "../../_chunks/build-metadata-
|
|
7
|
+
import { t as agentBuild } from "../../_chunks/build-metadata-Dq5Bu5nW.mjs";
|
|
8
8
|
export { agentBuild };
|
|
@@ -4,6 +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
|
+
import { addressingReason } from "./signals.mjs";
|
|
7
8
|
import { recordedMessageSignals } from "./conversation.mjs";
|
|
8
9
|
import { conversationDecisionRouter } from "./conversation-router.mjs";
|
|
9
10
|
import { routeMessage } from "./router.mjs";
|
|
@@ -54,7 +55,9 @@ function conversationDequeueGuard(archive = conversations(), classifier = decide
|
|
|
54
55
|
const burst = routingBurst(input.signals, recent, input.policy);
|
|
55
56
|
const latest = burst.messages.at(-1);
|
|
56
57
|
const signals = recordedMessageSignals(latest, input.signals);
|
|
57
|
-
const
|
|
58
|
+
const claimedAddressing = addressingReason(input.signals);
|
|
59
|
+
const explicit = claimedAddressing === "mention" || claimedAddressing === "command";
|
|
60
|
+
const route = explicit ? "reply" : await routeMessage({
|
|
58
61
|
groups: input.policy,
|
|
59
62
|
signals,
|
|
60
63
|
policy: input.policy.mode,
|
|
@@ -122,10 +125,11 @@ function conversationDequeueGuard(archive = conversations(), classifier = decide
|
|
|
122
125
|
eventId: `group-routing:dequeue:${ctx.session.turn.id}`,
|
|
123
126
|
kind: "decision",
|
|
124
127
|
decision: route === "reply" ? "reply" : "silent",
|
|
125
|
-
reason: `dequeue_${route}`,
|
|
128
|
+
reason: explicit ? "dequeue_explicit_kept" : `dequeue_${route}`,
|
|
126
129
|
argsSummary: JSON.stringify({
|
|
127
130
|
router: decisions.at(-1)?.router,
|
|
128
|
-
burst_id: input.burst_id
|
|
131
|
+
burst_id: input.burst_id,
|
|
132
|
+
claimed_addressing: explicit ? claimedAddressing : void 0
|
|
129
133
|
})
|
|
130
134
|
}));
|
|
131
135
|
if (route === "observe") ctx.cancel();
|
|
@@ -20,7 +20,7 @@ import { archivedRoutingMessages } from "../group-routing/routing-context.mjs";
|
|
|
20
20
|
import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
|
|
21
21
|
import { scopedAddress, sessionPolicy } from "./sessions.mjs";
|
|
22
22
|
import { handleWorkspaceCallback, isWorkspaceCallback } from "./callbacks.mjs";
|
|
23
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
23
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Dq5Bu5nW.mjs";
|
|
24
24
|
import { attachmentLifecycle } from "./lifecycle.mjs";
|
|
25
25
|
import { observedMessages } from "./observed.mjs";
|
|
26
26
|
import { expireDeferredCards, handleDeferredCallback, isDeferredCallback } from "./deferred-confirmations.mjs";
|
|
@@ -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
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
7
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Dq5Bu5nW.mjs";
|
|
8
8
|
import { runtimeRequestFailure } from "./runtime-request.mjs";
|
|
9
9
|
import { GET } from "eve/channels";
|
|
10
10
|
const HEALTH_ROUTE = "/eve/v1/telegram/health";
|
|
@@ -9,7 +9,7 @@ import { object } from "../confirmation-description.mjs";
|
|
|
9
9
|
import { n as currentInboundRequest, p as reportTelegramError } from "../../../_chunks/inbound-request-DxRm5LC8.mjs";
|
|
10
10
|
import { needsConfirmation } from "../confirmations.mjs";
|
|
11
11
|
import { OntologyActionNotPermitted, actionToolName, ontologyTools } from "../ontology-tools.mjs";
|
|
12
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
12
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Dq5Bu5nW.mjs";
|
|
13
13
|
var AttachmentLifecycleNotPermitted = class extends Error {
|
|
14
14
|
code = "attachment_lifecycle_not_permitted";
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.14",
|
|
4
4
|
"description": "Mount a SegmentStream workspace's agent on eve: the ontology as tools, acting as the member who writes, and Telegram through the workspace's connection.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@chat-adapter/telegram": "4.41.0",
|
|
69
|
-
"@segmentstream-cloud/ontology": "0.56.
|
|
69
|
+
"@segmentstream-cloud/ontology": "0.56.1",
|
|
70
70
|
"@vercel/oidc": "^3.8.4",
|
|
71
71
|
"ai": "^7.0.128",
|
|
72
72
|
"csv-parse": "^7.0.3",
|