@segmentstream/agent 0.11.0 → 0.12.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/README.md +1 -1
- package/dist/_chunks/{build-metadata-F_kHphOG.mjs → build-metadata-Dl-ZJp5p.mjs} +1 -1
- package/dist/extension/instructions.md +10 -0
- 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 +3 -3
package/README.md
CHANGED
|
@@ -451,7 +451,7 @@ To reach a local ontology service, set `SEGMENTSTREAM_AGENT_ONTOLOGY_URL=http://
|
|
|
451
451
|
production tokens of the workspace's project, though, so a local run gets the ontology only from a
|
|
452
452
|
local ontology service configured to accept that token.
|
|
453
453
|
|
|
454
|
-
Building the package needs Node.js 24, as eve does: `
|
|
454
|
+
Building the package needs Node.js 24, as eve does: `pnpm run build` runs `eve extension build`,
|
|
455
455
|
which writes the agent-shaped `dist/extension` tree, its declarations and eve's compatibility
|
|
456
456
|
manifest.
|
|
457
457
|
|
|
@@ -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.
|
|
7
|
+
var version = "0.12.1";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -19,6 +19,16 @@ talking to you, and you act with exactly their permissions.
|
|
|
19
19
|
reload definitions already known for the current ontology hash. Metadata visibility does
|
|
20
20
|
not grant record access. The operation tools are narrowed to the member's current permissions;
|
|
21
21
|
if an operation is missing, say so instead of looking for a way around.
|
|
22
|
+
- When the ontology offers `app_feedback_submit`, the app accepts feedback for its builders.
|
|
23
|
+
Offer to send it when the member wants something no permitted tool, field or data provides, an
|
|
24
|
+
operation is refused for lack of permission, an operation fails unexpectedly or a retryable
|
|
25
|
+
failure persists, or the member says something works badly or asks for something new. Do not
|
|
26
|
+
offer what you can do yourself; offer once per problem. Before submitting, look for the member's
|
|
27
|
+
open `app_feedback` with the same subject. Submit only after the member agrees to the title and
|
|
28
|
+
summary you show in their language, then add each screenshot or file they sent with
|
|
29
|
+
`app_feedback_file_attach`, promoting a chat attachment into it. When a member starts talking to
|
|
30
|
+
you, find their `app_feedback` with `responded_at` set and `seen_at` empty, tell them the
|
|
31
|
+
builders' response, then call `app_feedback_acknowledge` with its `responded_at`.
|
|
22
32
|
Older ontologies without `discover` return the legacy full catalog from `describe`; use that
|
|
23
33
|
available contract. New description results carry `kind` and `hash`.
|
|
24
34
|
- When the current member has permission and gives a clear instruction, act, including necessary
|
|
@@ -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-Dl-ZJp5p.mjs";
|
|
8
8
|
export { agentBuild };
|
|
@@ -13,7 +13,7 @@ import { decisionRouter } from "../group-routing/router.mjs";
|
|
|
13
13
|
import { runtimeToken } from "../runtime-token.mjs";
|
|
14
14
|
import { conversations } from "../conversations.mjs";
|
|
15
15
|
import { archivedRoutingMessages } from "../group-routing/routing-context.mjs";
|
|
16
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
16
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Dl-ZJp5p.mjs";
|
|
17
17
|
import { confirmationLocale } from "./confirmation-text.mjs";
|
|
18
18
|
import { telegramSendScope } from "./send-queue.mjs";
|
|
19
19
|
import { d as failureText, h as withDeliveryLocale, i as withReplacedText, m as safeTelegramFetch, n as currentInboundRequest, p as reportTelegramError, r as runInboundRequest, t as InboundRequest } from "../../../_chunks/inbound-request-BrWspFw5.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-Dl-ZJp5p.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";
|
|
@@ -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-Dl-ZJp5p.mjs";
|
|
8
8
|
import { object } from "../confirmation-description.mjs";
|
|
9
9
|
import { n as currentInboundRequest, p as reportTelegramError } from "../../../_chunks/inbound-request-BrWspFw5.mjs";
|
|
10
10
|
import { needsConfirmation } from "../confirmations.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
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",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
58
58
|
"lint": "eslint src tests --config ../../eslint.config.mjs",
|
|
59
59
|
"test": "vitest run",
|
|
60
|
-
"prepack": "
|
|
60
|
+
"prepack": "pnpm run build",
|
|
61
61
|
"eval:routing": "tsx tests/routing-eval/cli.ts"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@chat-adapter/telegram": "4.41.0",
|
|
65
|
-
"@segmentstream-cloud/ontology": "0.
|
|
65
|
+
"@segmentstream-cloud/ontology": "0.48.1",
|
|
66
66
|
"@vercel/oidc": "^3.8.4",
|
|
67
67
|
"ai": "^7.0.128",
|
|
68
68
|
"csv-parse": "^7.0.3",
|