@segmentstream/agent 0.19.0 → 0.19.2
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/dist/_chunks/{build-metadata-CkW-D9NI.mjs → build-metadata-TBdFCnD6.mjs} +1 -1
- package/dist/extension/instructions.md +13 -12
- package/dist/extension/lib/build-metadata.mjs +1 -1
- 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
|
@@ -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.19.
|
|
7
|
+
var version = "0.19.2";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -18,18 +18,19 @@ Native confirmations pause this turn until the original requester approves or ca
|
|
|
18
18
|
The action has not run while approval is pending. Never claim success, repeat a pending action,
|
|
19
19
|
or treat a text acknowledgement as approval. Report completion only from the resumed tool result.
|
|
20
20
|
|
|
21
|
-
- When the ontology offers `app_feedback_submit`,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
- When the ontology offers `app_feedback_submit`, follow its published feedback reporting policy.
|
|
22
|
+
By default, offer once per problem and submit only after the member agrees to the title and
|
|
23
|
+
summary in their language. When the workspace explicitly preauthorizes technical failure reports,
|
|
24
|
+
record unexpected or persistent failures during requested work without another confirmation.
|
|
25
|
+
Include only the operation, safe technical reason and diagnostic references; never include business
|
|
26
|
+
contents, credentials or files in an automatic report. Feature/change requests and sharing contents
|
|
27
|
+
or files still require the member's agreement. First reuse the member's open `app_feedback` with
|
|
28
|
+
the same subject; claim reporting only after a successful submission or existing-item read.
|
|
29
|
+
If `app_feedback_file_attach` is available, attach only files the member agreed to share.
|
|
30
|
+
When a member starts talking to you, find their `app_feedback` with `responded_at` set and
|
|
31
|
+
`seen_at` empty, tell them the builders' response, then call `app_feedback_acknowledge` with
|
|
32
|
+
its `responded_at`. Older ontologies without `discover` return the legacy full catalog from
|
|
33
|
+
`describe`; use that available contract. New description results carry `kind` and `hash`.
|
|
33
34
|
- When the current member has permission and gives a clear instruction, act, including necessary
|
|
34
35
|
routine intermediate steps. Their authorization continues across turns. When they answer your
|
|
35
36
|
question, use the answer and continue the pending task without asking for permission again.
|
|
@@ -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-TBdFCnD6.mjs";
|
|
8
8
|
export { agentBuild };
|
|
@@ -23,7 +23,7 @@ import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs
|
|
|
23
23
|
import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
|
|
24
24
|
import { scopedAddress, sessionPolicy } from "./sessions.mjs";
|
|
25
25
|
import { handleWorkspaceCallback, isWorkspaceCallback } from "./callbacks.mjs";
|
|
26
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
26
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-TBdFCnD6.mjs";
|
|
27
27
|
import { attachmentLifecycle } from "./lifecycle.mjs";
|
|
28
28
|
import { observedMessages } from "./observed.mjs";
|
|
29
29
|
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-TBdFCnD6.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-Dx1B6Y5r.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-TBdFCnD6.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.19.
|
|
3
|
+
"version": "0.19.2",
|
|
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.
|
|
69
|
+
"@segmentstream-cloud/ontology": "0.61.1",
|
|
70
70
|
"@vercel/oidc": "^3.8.4",
|
|
71
71
|
"ai": "^7.0.137",
|
|
72
72
|
"csv-parse": "^7.0.3",
|