@segmentstream/ontology 0.206.0 → 0.207.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
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.207.0
|
|
4
|
+
|
|
5
|
+
Ontology actions can read the verified original Telegram message time in `context.runtime.source.sent_at`, including when delivery was delayed or the sender edited the message. The agent sends the field only to ontologies that advertise support.
|
|
6
|
+
|
|
3
7
|
## 0.206.0
|
|
4
8
|
|
|
5
9
|
A Telegram Mini App can opt into pairing the original sender with an invited workspace email account, with the same signed browser challenge as Cloud sign-in.
|
package/dist/runtime-source.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export declare const RuntimeSource: Schema.Union<readonly [Schema.Struct<{
|
|
|
12
12
|
readonly chat_id: Schema.String;
|
|
13
13
|
readonly thread_id: Schema.String;
|
|
14
14
|
readonly message_id: Schema.optionalKey<Schema.String>;
|
|
15
|
+
/** Original send time from the provider. Edits retain the original time. */
|
|
16
|
+
readonly sent_at: Schema.optionalKey<import("./property.js").Property<string, false, false>>;
|
|
15
17
|
readonly reply_to_message_id: Schema.optionalKey<Schema.String>;
|
|
16
18
|
readonly callback_query_id: Schema.optionalKey<Schema.String>;
|
|
17
19
|
readonly sender: Schema.optionalKey<Schema.String>;
|
package/dist/runtime-source.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
+
import { p } from "./property.js";
|
|
2
3
|
import { ChatChannelName } from "./chat-channel.js";
|
|
3
4
|
const Id = Schema.String.check(Schema.isMinLength(1), Schema.isMaxLength(512));
|
|
4
5
|
/**
|
|
@@ -24,6 +25,8 @@ const TelegramRuntimeSource = Schema.Struct({
|
|
|
24
25
|
chat_id: Id,
|
|
25
26
|
thread_id: Schema.String.check(Schema.isMaxLength(512)),
|
|
26
27
|
message_id: Schema.optionalKey(Id),
|
|
28
|
+
/** Original send time from the provider. Edits retain the original time. */
|
|
29
|
+
sent_at: Schema.optionalKey(p.timestamp()),
|
|
27
30
|
reply_to_message_id: Schema.optionalKey(Id),
|
|
28
31
|
callback_query_id: Schema.optionalKey(Id),
|
|
29
32
|
sender: Schema.optionalKey(Id),
|
|
@@ -13,6 +13,7 @@ declare const RuntimeEnvelope: Schema.Struct<{
|
|
|
13
13
|
readonly chat_id: Schema.String;
|
|
14
14
|
readonly thread_id: Schema.String;
|
|
15
15
|
readonly message_id: Schema.optionalKey<Schema.String>;
|
|
16
|
+
readonly sent_at: Schema.optionalKey<import("../../property.js").Property<string, false, false>>;
|
|
16
17
|
readonly reply_to_message_id: Schema.optionalKey<Schema.String>;
|
|
17
18
|
readonly callback_query_id: Schema.optionalKey<Schema.String>;
|
|
18
19
|
readonly sender: Schema.optionalKey<Schema.String>;
|
|
@@ -61,6 +62,7 @@ declare const CurrentChatCall_base: Context.ServiceClass<CurrentChatCall, "@segm
|
|
|
61
62
|
} | undefined;
|
|
62
63
|
readonly channel?: string | undefined;
|
|
63
64
|
readonly message_id?: string | undefined;
|
|
65
|
+
readonly sent_at?: string | undefined;
|
|
64
66
|
readonly reply_to_message_id?: string | undefined;
|
|
65
67
|
readonly callback_query_id?: string | undefined;
|
|
66
68
|
readonly sender?: string | undefined;
|
|
@@ -115,6 +117,7 @@ export declare function consumeChatEnvelope(args: Readonly<Record<string, unknow
|
|
|
115
117
|
} | undefined;
|
|
116
118
|
readonly channel?: string | undefined;
|
|
117
119
|
readonly message_id?: string | undefined;
|
|
120
|
+
readonly sent_at?: string | undefined;
|
|
118
121
|
readonly reply_to_message_id?: string | undefined;
|
|
119
122
|
readonly callback_query_id?: string | undefined;
|
|
120
123
|
readonly sender?: string | undefined;
|
|
@@ -694,7 +694,12 @@ function dispatch(server, message, request) {
|
|
|
694
694
|
// The agent runtime learns that tool calls accept its chat source, and from which
|
|
695
695
|
// channels, without listing the catalog. The `me` tool keeps its `_meta` marker for
|
|
696
696
|
// older agents.
|
|
697
|
-
experimental: {
|
|
697
|
+
experimental: {
|
|
698
|
+
[RUNTIME_SOURCE_META]: {
|
|
699
|
+
providers: [...RUNTIME_SOURCE_PROVIDERS],
|
|
700
|
+
fields: ["telegram.sent_at"],
|
|
701
|
+
},
|
|
702
|
+
},
|
|
698
703
|
},
|
|
699
704
|
serverInfo: {
|
|
700
705
|
name: "segmentstream-ontology",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/ontology",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.207.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",
|