@segmentstream/agent 0.22.6 → 0.22.7

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 CHANGED
@@ -889,3 +889,13 @@ Recovered Telegram sessions retain their recovery continuation while awaiting a
889
889
  confirmation or an answer. They do not alias the original inbox, whose predecessor
890
890
  may still own its durable hook. Confirmation callbacks retain the recorded owner
891
891
  and the usual requester, expiry and idempotency checks.
892
+
893
+ ### Sending to the registered Telegram channel
894
+
895
+ Import `telegram` from `@segmentstream/agent/telegram` and pass it to Eve's
896
+ `to(telegram, { chatId }).send(message, options)` in an authored channel or
897
+ schedule. This references the mounted channel; it does not create a second bot
898
+ or sender. Its configured connection, session recovery, pairing and normal
899
+ ontology authority still apply. The calling channel must authenticate and
900
+ authorize its caller and choose the intended destination before forwarding.
901
+ The reference alone grants no access or messaging authority.
@@ -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.22.6";
7
+ var version = "0.22.7";
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-C9CHlcKU.mjs";
7
+ import { t as agentBuild } from "../../_chunks/build-metadata-Dw_9d3ee.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-C9CHlcKU.mjs";
27
+ import { t as agentBuild } from "../../../_chunks/build-metadata-Dw_9d3ee.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-C9CHlcKU.mjs";
8
+ import { t as agentBuild } from "../../../_chunks/build-metadata-Dw_9d3ee.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-C9CHlcKU.mjs";
13
+ import { t as agentBuild } from "../../../_chunks/build-metadata-Dw_9d3ee.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.22.6",
3
+ "version": "0.22.7",
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",
@@ -38,6 +38,10 @@
38
38
  "./tools": {
39
39
  "types": "./dist/tools/index.d.ts",
40
40
  "default": "./dist/tools/index.mjs"
41
+ },
42
+ "./telegram": {
43
+ "types": "./dist/extension/channels/telegram.d.ts",
44
+ "default": "./dist/extension/channels/telegram.mjs"
41
45
  }
42
46
  },
43
47
  "eve": {