@mgamadeus/ddd-agents 0.11.7 → 0.11.9
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/dist/files/widgets/ContinueInPersonalSpaceConversationWidget/ContinueInPersonalSpaceConversationWidget.md +26 -0
- package/dist/files/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md +3 -3
- package/dist/files/widgets/ExtendConnectionPermissionConversationWidget/ExtendConnectionPermissionConversationWidget.md +28 -0
- package/dist/files/widgets/MailDraftPreviewConversationWidget/MailDraftPreviewConversationWidget.md +45 -0
- package/package.json +4 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ContinueInPersonalSpace
|
|
3
|
+
emitter: backend
|
|
4
|
+
summary: Offer to continue a request in the owner's personal space, written when a connection only the owner may use is refused in a conversation others read.
|
|
5
|
+
description: Written by the backend (never by the model) when the owner asks, in a conversation that other people read, for something only a connection of their own may answer. Shows one line saying so and a button "Continue in your personal space"; the click hands the request to the app (AgentsEnvironment.startConversationInPersonalSpace), which starts a new conversation in the owner's personal space with the request as its first message. Nothing goes back into the conversation the widget sits in. Without the app hook, or without a request in the block, the widget renders nothing.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ContinueInPersonalSpaceConversationWidget
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
A notice with a lock icon ("Only you may use this connection, and others read this conversation.") and one button,
|
|
12
|
+
"Continue in your personal space". The button is usable once: the click calls the app's
|
|
13
|
+
`startConversationInPersonalSpace(request)` and disables itself. The app decides how the new conversation opens (its
|
|
14
|
+
space picker, its window). Both texts are interface keys, translated through the app's texts.
|
|
15
|
+
|
|
16
|
+
## Data structure
|
|
17
|
+
```ts
|
|
18
|
+
interface ContinueInPersonalSpacePayload {
|
|
19
|
+
request: string; // the owner's request, the first message of the new conversation (required; empty = nothing renders)
|
|
20
|
+
reason?: string; // the backend's English reason; not shown
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## App duty
|
|
25
|
+
Set `startConversationInPersonalSpace` in the environment. Without it the widget renders nothing, so an app that has
|
|
26
|
+
no personal space shows no dead button.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ConversationSearchResults
|
|
3
3
|
emitter: agent
|
|
4
4
|
canvas: conversationSearchResults
|
|
5
|
-
summary: Grouped
|
|
5
|
+
summary: Grouped results of a search across earlier conversations. DATA-COMPLETE; ≤5 groups inline, more → canvas.
|
|
6
6
|
description: Renders the result of searchConversations (cross-chat semantic recall) — matches grouped by conversation (title · date · matched message excerpts with the query bolded), each with an arrow to jump to that chat. Few groups inline, many in the canvas side panel.
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -46,9 +46,9 @@ What the widget receives after the platform filled it:
|
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## When to use
|
|
49
|
-
- After
|
|
49
|
+
- After `searchConversations`, when the owner wants to SEE or open the matches — copy the block its result names (it carries `groupsFromToolCallId`; the platform fills `groups`) instead of re-listing them in prose.
|
|
50
50
|
- Few matches → they render inline; many → they open in the canvas side panel automatically (or set `display`).
|
|
51
|
-
- Skip for
|
|
51
|
+
- Skip for `searchThisConversation` (the current chat — answer inline in prose) and when the owner asked for a summary of what was discussed.
|
|
52
52
|
|
|
53
53
|
## ASCII layout (inline / canvas)
|
|
54
54
|
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ExtendConnectionPermission
|
|
3
|
+
emitter: backend
|
|
4
|
+
summary: Offer to open a connection's settings when a step needs a level or provider permission the connection does not have yet.
|
|
5
|
+
description: Written by the backend (never by the model) when a step needs a level the agent connection does not have, or a permission the provider has not granted yet. Shows one line saying so and a button "Extend the permission"; the click hands the connection, capability and level to the app (AgentsEnvironment.openConnectionPermissions), which opens its connection settings with that permission preselected. The level takes effect only once the owner raised it there. Without the app hook, or without a connection, capability and level in the block, the widget renders nothing.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ExtendConnectionPermissionConversationWidget
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
A notice with an open-lock icon ("This step needs a permission the connection does not have yet.") and a button
|
|
12
|
+
"Extend the permission". Each click calls the app's `openConnectionPermissions({connectionId, capability, level})`;
|
|
13
|
+
the button stays usable, since the owner may leave the settings unchanged. Both texts are interface keys, translated
|
|
14
|
+
through the app's texts; the block's `reason` (the backend's English sentence for logs and the model) is deliberately
|
|
15
|
+
not shown.
|
|
16
|
+
|
|
17
|
+
## Data structure
|
|
18
|
+
```ts
|
|
19
|
+
interface ExtendConnectionPermissionPayload {
|
|
20
|
+
connectionId: number; // the connection (required, > 0)
|
|
21
|
+
capability: string; // MAIL, CALENDAR, CONTACTS, FILES or CHAT (required)
|
|
22
|
+
level: string; // the level the step needs (required)
|
|
23
|
+
reason?: string; // the backend's English reason; not shown
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## App duty
|
|
28
|
+
Set `openConnectionPermissions` in the environment. Without it the widget renders nothing.
|
package/dist/files/widgets/MailDraftPreviewConversationWidget/MailDraftPreviewConversationWidget.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: MailDraftPreview
|
|
3
|
+
emitter: backend
|
|
4
|
+
summary: The exact mail of a send step as one compact preview (from, to, subject, body) with one send button, or the mail as sent.
|
|
5
|
+
description: Written by the mail tool (never by the model) before a send step that waits for the owner's yes (status DRAFT) and after the mail went out (status SENT). Shows the sender, the recipients, the subject and the body rendered as markdown (lists and tables read as one; a long body folds with "Show more"). A DRAFT carries one button "Send"; the click posts the button's label, translated as the owner reads it, as the owner's message, which is the confirmation of exactly this mail. The button goes away once a later row carries the SENT preview of the same contentHash, or once a later owner message answered the preview without the click. A SENT preview shows a "Sent" chip and no button. Without a recipient in the block the widget renders nothing.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# MailDraftPreviewConversationWidget
|
|
9
|
+
|
|
10
|
+
## Description
|
|
11
|
+
A card that reads like the mail itself: the header fields From (when known), To, Cc and Bcc (when set) and Subject in
|
|
12
|
+
a label column and a value column, a hairline, then the body as markdown (tables compact, ruled and banded). A body
|
|
13
|
+
taller than 240px folds under a fade and offers "Show more" / "Show less".
|
|
14
|
+
|
|
15
|
+
`DRAFT`: one button "Send" under the body. The click calls the chat's `sendMessageToChat` with the button's label,
|
|
16
|
+
translated through the app's texts, so the owner's message is the word they clicked. While the host takes the message
|
|
17
|
+
and until the `SENT` row arrives the button stays, busy and disabled ("Sending…"); a send the host refuses (`false`)
|
|
18
|
+
leaves it usable. Without a click the button shows only while the message is interactive and no later owner message
|
|
19
|
+
exists. It goes away for good when a later row carries a `MailDraftPreview` block with status `SENT` and the same
|
|
20
|
+
`contentHash`.
|
|
21
|
+
|
|
22
|
+
`SENT`: a "Sent" chip beside the header, no button.
|
|
23
|
+
|
|
24
|
+
Every interface text (field labels, "Send", "Sending…", "Sent", "Show more", "Show less") is an interface key; the
|
|
25
|
+
mail's own fields are the owner's data and are shown as written. In an e-mail capture the body is shown whole and
|
|
26
|
+
there is no button.
|
|
27
|
+
|
|
28
|
+
## Data structure
|
|
29
|
+
```ts
|
|
30
|
+
interface MailDraftPreviewPayload {
|
|
31
|
+
status: "DRAFT" | "SENT"; // DRAFT waits for the owner's yes; anything other than SENT reads as DRAFT
|
|
32
|
+
connectionId?: number; // the connection the mail goes through
|
|
33
|
+
from?: string; // the connection's sending address or name
|
|
34
|
+
to: string[]; // the recipients (required, at least one)
|
|
35
|
+
cc?: string[]; // omitted when empty
|
|
36
|
+
bcc?: string[]; // omitted when empty
|
|
37
|
+
subject?: string;
|
|
38
|
+
bodyText?: string; // the body as written: markdown
|
|
39
|
+
contentHash?: string; // the hash of the exact send step; binds the SENT row to its DRAFT
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## App duty
|
|
44
|
+
None beyond the chat: the send goes through the conversation's `sendMessageToChat`. The backend counts the owner's
|
|
45
|
+
message as the confirmation only right after the `DRAFT` row with the step's `contentHash`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgamadeus/ddd-agents",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9",
|
|
4
4
|
"description": "The web frontend of the ddd-agents module: the agent chat, the widget renderer and the composed-view kit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|
|
@@ -94,11 +94,14 @@
|
|
|
94
94
|
"./kit/ComposedViewConversationWidget.md": "./dist/files/kit/ComposedViewConversationWidget.md",
|
|
95
95
|
"./widgets/ClockConversationWidget/ClockConversationWidget.md": "./dist/files/widgets/ClockConversationWidget/ClockConversationWidget.md",
|
|
96
96
|
"./widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.md": "./dist/files/widgets/ConceptExplainerConversationWidget/ConceptExplainerConversationWidget.md",
|
|
97
|
+
"./widgets/ContinueInPersonalSpaceConversationWidget/ContinueInPersonalSpaceConversationWidget.md": "./dist/files/widgets/ContinueInPersonalSpaceConversationWidget/ContinueInPersonalSpaceConversationWidget.md",
|
|
97
98
|
"./widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md": "./dist/files/widgets/ConversationSearchResultsConversationWidget/ConversationSearchResultsConversationWidget.md",
|
|
98
99
|
"./widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.md": "./dist/files/widgets/CurrencyConverterConversationWidget/CurrencyConverterConversationWidget.md",
|
|
99
100
|
"./widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.md": "./dist/files/widgets/CustomVisualizationConversationWidget/CustomVisualizationConversationWidget.md",
|
|
100
101
|
"./widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md": "./dist/files/widgets/DriveFilesConversationWidget/DriveFilesConversationWidget.md",
|
|
101
102
|
"./widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.md": "./dist/files/widgets/EntityMentionConversationWidget/EntityMentionConversationWidget.md",
|
|
103
|
+
"./widgets/ExtendConnectionPermissionConversationWidget/ExtendConnectionPermissionConversationWidget.md": "./dist/files/widgets/ExtendConnectionPermissionConversationWidget/ExtendConnectionPermissionConversationWidget.md",
|
|
104
|
+
"./widgets/MailDraftPreviewConversationWidget/MailDraftPreviewConversationWidget.md": "./dist/files/widgets/MailDraftPreviewConversationWidget/MailDraftPreviewConversationWidget.md",
|
|
102
105
|
"./widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.md": "./dist/files/widgets/MultiChoiceConversationWidget/MultiChoiceConversationWidget.md",
|
|
103
106
|
"./widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.md": "./dist/files/widgets/QuickRepliesConversationWidget/QuickRepliesConversationWidget.md",
|
|
104
107
|
"./widgets/SuggestedActions/SuggestedActions.md": "./dist/files/widgets/SuggestedActions/SuggestedActions.md",
|