@segmentstream/agent 0.7.0 → 0.7.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 CHANGED
@@ -79,16 +79,16 @@ Both entry points export the same handle: `@segmentstream/agent` and
79
79
  }
80
80
  ```
81
81
 
82
- | Field | Default | Meaning |
83
- | ---------------------------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
84
- | `channels.telegram.connection` | none | The Connect key whose credential is the bot token. Without `channels.telegram`, no Telegram. |
85
- | `channels.telegram.policy` | `"smart"` | Classifies unaddressed group messages and captionless uploads; legacy `mention` is an alias for `smart`; tags are optional |
86
- | `channels.telegram.linkPreviews` | `all` | Keep native first-link previews; `external` previews external links only; `none` disables previews. Caller options take precedence. |
87
- | `channels.telegram.additionalOwnOrigins` | `[]` | Additional exact HTTP(S) workspace origins, including local ports; no paths or credentials. |
88
- | `models.stt` | `"spacexai/grok-stt"` | The AI Gateway transcription model for voice messages; `false` leaves them untranscribed |
89
- | `models.imageDescription` | `google/gemini-2.5-flash-lite` | Image evidence for group routing even with native vision; `false` disables descriptions |
90
- | `models.decision` | `"typesafe-ai/jev-1.14.0"` | The AI Gateway decision model of the inbound router |
91
- | `ontology.connection` | `true` | Whether the agent reaches the ontology over MCP |
82
+ | Field | Default | Meaning |
83
+ | ---------------------------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
84
+ | `channels.telegram.connection` | none | The Connect key whose credential is the bot token. Without `channels.telegram`, no Telegram. |
85
+ | `channels.telegram.policy` | `"smart"` | Classifies unaddressed group messages and captionless uploads; legacy `mention` is an alias for `smart`; tags are optional |
86
+ | `channels.telegram.linkPreviews` | `external` | Suppress own-workspace previews and preview the first external link; opt into `all` for native previews or `none` to disable them. Caller options take precedence. |
87
+ | `channels.telegram.additionalOwnOrigins` | `[]` | Additional exact HTTP(S) workspace origins, including local ports; no paths or credentials. |
88
+ | `models.stt` | `"spacexai/grok-stt"` | The AI Gateway transcription model for voice messages; `false` leaves them untranscribed |
89
+ | `models.imageDescription` | `google/gemini-2.5-flash-lite` | Image evidence for group routing even with native vision; `false` disables descriptions |
90
+ | `models.decision` | `"typesafe-ai/jev-1.14.0"` | The AI Gateway decision model of the inbound router |
91
+ | `ontology.connection` | `true` | Whether the agent reaches the ontology over MCP |
92
92
 
93
93
  An unknown field or an invalid value fails the mount with `SegmentStreamAgentConfigError`, naming
94
94
  each path. `manifestOf(config)` returns the normalized configuration, defaults applied, for the
@@ -23,7 +23,7 @@ export interface SegmentStreamAgentConfigInput {
23
23
  readonly connection: string;
24
24
  /** `smart` (default) or `mention`. */
25
25
  readonly policy?: string;
26
- /** Telegram’s native first link (default), external links only, or no previews. */
26
+ /** External links only (default), Telegram's native first link, or no previews. */
27
27
  readonly linkPreviews?: string;
28
28
  /** Additional exact HTTP(S) origins belonging to this workspace. */
29
29
  readonly additionalOwnOrigins?: readonly string[];
@@ -65,7 +65,7 @@ function telegramSettings(value, issues) {
65
65
  message: "must be \"smart\" or \"mention\"",
66
66
  path: [...path, "policy"]
67
67
  });
68
- const linkPreviews = telegram.linkPreviews === void 0 ? "all" : telegram.linkPreviews;
68
+ const linkPreviews = telegram.linkPreviews === void 0 ? "external" : telegram.linkPreviews;
69
69
  const additionalOwnOrigins = telegram.additionalOwnOrigins === void 0 ? [] : telegram.additionalOwnOrigins;
70
70
  if (!TELEGRAM_LINK_PREVIEWS.some((mode) => mode === linkPreviews)) issues.push({
71
71
  message: "must be \"external\", \"none\" or \"all\"",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/agent",
3
- "version": "0.7.0",
3
+ "version": "0.7.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",
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@chat-adapter/telegram": "4.41.0",
65
- "@segmentstream-cloud/ontology": "0.32.0",
65
+ "@segmentstream-cloud/ontology": "0.32.1",
66
66
  "@vercel/oidc": "^3.8.4",
67
67
  "ai": "^7.0.128",
68
68
  "csv-parse": "^7.0.3",