@segmentstream/ontology 0.145.0 → 0.146.0
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/runtime-source.d.ts +5 -0
- package/dist/runtime-source.js +5 -0
- package/dist/service/mcp/server.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.146.0
|
|
4
|
+
|
|
5
|
+
`initialize` lists the channels a tool call's runtime source may name (`telegram`, `slack`,
|
|
6
|
+
`whatsapp`), so that an agent sends a Slack or WhatsApp message's source only to an ontology that
|
|
7
|
+
reads it. `RUNTIME_SOURCE_PROVIDERS` exports the list.
|
|
8
|
+
|
|
3
9
|
## 0.145.0
|
|
4
10
|
|
|
5
11
|
`agent_chat.send` takes `buttons` under a text: rows of links (`{ text, url }`) and workspace
|
package/dist/index.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export { sqlAgentStore, resolveChannelIdentity, resolveChannelSignIn } from "./r
|
|
|
114
114
|
export { DEFAULT_AGENT_LIMITS, PLATFORM_CHANNEL_LIMITS, clampChannelLimits, effectiveChannelLimits, } from "./runtime/agent-counters.js";
|
|
115
115
|
export type { ChannelAppProvider } from "./service/channel/provider.js";
|
|
116
116
|
export type { RuntimeSource, ActionRuntime } from "./runtime-source.js";
|
|
117
|
+
export { RUNTIME_SOURCE_PROVIDERS } from "./runtime-source.js";
|
|
117
118
|
export { callbackIdentityToken, serveWorkflowCallback } from "./service/workflow-callback.js";
|
|
118
119
|
export { compiledWorkflowId, triggerPath, vercelWorkflowEngine, WorkflowStepFailed, } from "./service/workflows.js";
|
|
119
120
|
export type { WorkflowEngine, WorkflowPage, WorkflowRunRecord, WorkflowStepRecord, } from "./service/workflows.js";
|
package/dist/index.js
CHANGED
|
@@ -77,6 +77,7 @@ export { runBlobStorageMaintenance } from "./storage/operator.js";
|
|
|
77
77
|
export { runNewUserHook } from "./runtime/new-user-hook.js";
|
|
78
78
|
export { sqlAgentStore, resolveChannelIdentity, resolveChannelSignIn } from "./runtime/agents.js";
|
|
79
79
|
export { DEFAULT_AGENT_LIMITS, PLATFORM_CHANNEL_LIMITS, clampChannelLimits, effectiveChannelLimits, } from "./runtime/agent-counters.js";
|
|
80
|
+
export { RUNTIME_SOURCE_PROVIDERS } from "./runtime-source.js";
|
|
80
81
|
export { callbackIdentityToken, serveWorkflowCallback } from "./service/workflow-callback.js";
|
|
81
82
|
export { compiledWorkflowId, triggerPath, vercelWorkflowEngine, WorkflowStepFailed, } from "./service/workflows.js";
|
|
82
83
|
export { validateBrowserSignIn } from "./sign-in.js";
|
package/dist/runtime-source.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* The channels whose message a tool call's runtime source can name. `initialize` lists them, so
|
|
4
|
+
* that an agent sends only a source its ontology reads.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RUNTIME_SOURCE_PROVIDERS: readonly ["telegram", "slack", "whatsapp"];
|
|
2
7
|
/** Decoded only at a verified runtime boundary; ordinary action arguments never establish provenance. */
|
|
3
8
|
export declare const RuntimeSource: Schema.Union<readonly [Schema.Struct<{
|
|
4
9
|
readonly provider: Schema.Literal<"telegram">;
|
package/dist/runtime-source.js
CHANGED
|
@@ -11,6 +11,11 @@ const TelegramLocation = Schema.Struct({
|
|
|
11
11
|
horizontal_accuracy: Schema.optionalKey(Schema.Number.check(Schema.isBetween({ minimum: 0, maximum: 1500 }))),
|
|
12
12
|
live_period: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),
|
|
13
13
|
});
|
|
14
|
+
/**
|
|
15
|
+
* The channels whose message a tool call's runtime source can name. `initialize` lists them, so
|
|
16
|
+
* that an agent sends only a source its ontology reads.
|
|
17
|
+
*/
|
|
18
|
+
export const RUNTIME_SOURCE_PROVIDERS = ["telegram", "slack", "whatsapp"];
|
|
14
19
|
/** A Telegram chat, with the references Telegram's own actions and attachments use. */
|
|
15
20
|
const TelegramRuntimeSource = Schema.Struct({
|
|
16
21
|
provider: Schema.Literal("telegram"),
|
|
@@ -13,6 +13,7 @@ import { currentCaller } from "../caller-context.js";
|
|
|
13
13
|
import { requireRuntimeOperation, runtimeManifest } from "./runtime-policy.js";
|
|
14
14
|
import { CONFIRMATION_PREVIEW_METHOD, previewLocale, withoutConfirmation } from "./confirmation.js";
|
|
15
15
|
import { consumeChatEnvelope, CurrentChatCall } from "../chat/envelope.js";
|
|
16
|
+
import { RUNTIME_SOURCE_PROVIDERS } from "../../runtime-source.js";
|
|
16
17
|
import { ChatList, ChatHistory, ChatPostWire, RuntimeChatPostWire } from "../chat/schemas.js";
|
|
17
18
|
import { ChatPostResult } from "../../chat.js";
|
|
18
19
|
import { chatKind, listedChatProviders } from "../chat/providers/index.js";
|
|
@@ -672,9 +673,10 @@ function dispatch(server, message, request) {
|
|
|
672
673
|
capabilities: {
|
|
673
674
|
tools: {},
|
|
674
675
|
resources: {},
|
|
675
|
-
// The agent runtime learns that tool calls accept its chat source
|
|
676
|
-
// the catalog. The `me` tool keeps its `_meta` marker for
|
|
677
|
-
|
|
676
|
+
// The agent runtime learns that tool calls accept its chat source, and from which
|
|
677
|
+
// channels, without listing the catalog. The `me` tool keeps its `_meta` marker for
|
|
678
|
+
// older agents.
|
|
679
|
+
experimental: { [RUNTIME_SOURCE_META]: { providers: [...RUNTIME_SOURCE_PROVIDERS] } },
|
|
678
680
|
},
|
|
679
681
|
serverInfo: {
|
|
680
682
|
name: "segmentstream-ontology",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/ontology",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|