@segmentstream/ontology 0.97.0 → 0.98.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 +4 -3
- package/dist/agent-review.d.ts +95 -0
- package/dist/agent-review.js +200 -0
- package/dist/analyze.d.ts +2 -2
- package/dist/analyze.js +17 -5
- package/dist/chat.d.ts +16 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -0
- package/dist/permissions.d.ts +5 -3
- package/dist/permissions.js +9 -5
- package/dist/runtime/agents.js +53 -0
- package/dist/service/agent/protocol.d.ts +18 -0
- package/dist/service/agent/protocol.js +33 -0
- package/dist/service/agent/server.js +48 -1
- package/dist/service/chat/archive.d.ts +2 -1
- package/dist/service/chat/delivery.js +11 -0
- package/dist/service/chat/envelope.d.ts +2 -2
- package/dist/service/chat/providers/provider.d.ts +2 -0
- package/dist/service/chat/providers/slack.js +1 -1
- package/dist/service/chat/providers/telegram.d.ts +6 -1
- package/dist/service/chat/providers/telegram.js +14 -3
- package/dist/service/chat/providers/whatsapp.js +1 -1
- package/dist/service/chat/review-delivery.d.ts +38 -0
- package/dist/service/chat/review-delivery.js +258 -0
- package/dist/service/mcp/runtime-policy.js +5 -1
- package/dist/service/mcp/server.js +5 -1
- package/dist/service/operations.js +13 -1
- package/dist/service/runtime-contract.d.ts +28 -0
- package/dist/slack.js +3 -1
- package/dist/whatsapp.js +3 -1
- package/package.json +1 -1
package/dist/slack.js
CHANGED
|
@@ -17,5 +17,7 @@ export function escapeSlackMarkdown(text) {
|
|
|
17
17
|
* Markdown.
|
|
18
18
|
*/
|
|
19
19
|
export function renderSlack(markdown, attribution, separator = "\n\n") {
|
|
20
|
-
return
|
|
20
|
+
return attribution === ""
|
|
21
|
+
? markdown
|
|
22
|
+
: `${markdown}${escapeSlackMarkdown(separator)}_${escapeSlackMarkdown(attribution)}_`;
|
|
21
23
|
}
|
package/dist/whatsapp.js
CHANGED
|
@@ -25,5 +25,7 @@ export function literalWhatsAppText(text) {
|
|
|
25
25
|
* attribution in italics. Neither can open or close the member's formatting.
|
|
26
26
|
*/
|
|
27
27
|
export function renderWhatsApp(text, attribution, separator = "\n\n") {
|
|
28
|
-
return
|
|
28
|
+
return attribution === ""
|
|
29
|
+
? text
|
|
30
|
+
: `${text}${literalWhatsAppText(separator)}_${literalWhatsAppText(attribution)}_`;
|
|
29
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/ontology",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.98.1",
|
|
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",
|