@segmentstream/agent 0.21.1 → 0.21.3
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 +9 -0
- package/dist/_chunks/{build-metadata-kBu1knj6.mjs → build-metadata-4OtDDJQ7.mjs} +1 -1
- package/dist/extension/lib/agent-task-channel.mjs +7 -5
- 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
package/README.md
CHANGED
|
@@ -16,6 +16,15 @@ one. eve and the package move together.
|
|
|
16
16
|
npm install @segmentstream/agent eve@0.85.0
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
## Deploying workspace source
|
|
20
|
+
|
|
21
|
+
The agent deploys with its workspace. Main pushes deploy by default; to accumulate source
|
|
22
|
+
updates for an explicit release, commit `.segmentstream/deployment.json` with
|
|
23
|
+
`{ "schemaVersion": 1, "trigger": "manual" }`. Cloud still stores and indexes pushes,
|
|
24
|
+
and `segmentstream deploy` explicitly deploys current main with the existing authorization
|
|
25
|
+
and idempotency checks. This changes no agent schedules or tool permissions and adds no
|
|
26
|
+
scheduler. Removing the file or selecting `"push"` restores automatic deployment.
|
|
27
|
+
|
|
19
28
|
## Set up
|
|
20
29
|
|
|
21
30
|
The workspace's `agent/` directory is an eve app in eve's documented layout, a package of its own
|
|
@@ -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.21.
|
|
7
|
+
var version = "0.21.3";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -180,11 +180,13 @@ function agentTaskChannel(options = {}) {
|
|
|
180
180
|
const [taskId, sessionId] = body;
|
|
181
181
|
const owner = await args.resolveSession(taskAddress(taskId));
|
|
182
182
|
if (owner?.id !== sessionId) return Response.json({ ended: false });
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
args.waitUntil(owner.reset().then(() => void 0, (cause) => {
|
|
184
|
+
if (!SessionNotActiveError.is(cause)) log("[segmentstream] agent_task_end_failed", {
|
|
185
|
+
taskId,
|
|
186
|
+
sessionId,
|
|
187
|
+
error: cause
|
|
188
|
+
});
|
|
189
|
+
}));
|
|
188
190
|
return Response.json({ ended: true }, { status: 202 });
|
|
189
191
|
}
|
|
190
192
|
return defineChannel({
|
|
@@ -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-4OtDDJQ7.mjs";
|
|
8
8
|
export { agentBuild };
|
|
@@ -24,7 +24,7 @@ import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs
|
|
|
24
24
|
import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
|
|
25
25
|
import { scopedAddress, sessionPolicy } from "./sessions.mjs";
|
|
26
26
|
import { handleWorkspaceCallback, isWorkspaceCallback } from "./callbacks.mjs";
|
|
27
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
27
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-4OtDDJQ7.mjs";
|
|
28
28
|
import { attachmentLifecycle } from "./lifecycle.mjs";
|
|
29
29
|
import { observedMessages } from "./observed.mjs";
|
|
30
30
|
import { expireDeferredCards, handleDeferredCallback, isDeferredCallback } from "./deferred-confirmations.mjs";
|
|
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
|
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
7
|
import { runtimeRequestFailure } from "./runtime-request.mjs";
|
|
8
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
8
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-4OtDDJQ7.mjs";
|
|
9
9
|
import { GET } from "eve/channels";
|
|
10
10
|
const HEALTH_ROUTE = "/eve/v1/telegram/health";
|
|
11
11
|
function healthRoute(input) {
|
|
@@ -10,7 +10,7 @@ import { n as currentInboundRequest, p as reportTelegramError } from "../../../_
|
|
|
10
10
|
import { member } from "../actor.mjs";
|
|
11
11
|
import { needsConfirmation } from "../confirmations.mjs";
|
|
12
12
|
import { OntologyActionNotPermitted, actionToolName, ontologyTools } from "../ontology-tools.mjs";
|
|
13
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
13
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-4OtDDJQ7.mjs";
|
|
14
14
|
var AttachmentLifecycleNotPermitted = class extends Error {
|
|
15
15
|
code = "attachment_lifecycle_not_permitted";
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.3",
|
|
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.65.
|
|
69
|
+
"@segmentstream-cloud/ontology": "0.65.2",
|
|
70
70
|
"@vercel/oidc": "^3.8.4",
|
|
71
71
|
"ai": "^7.0.137",
|
|
72
72
|
"csv-parse": "^7.0.3",
|