@mgamadeus/ddd-agents 0.11.9 → 0.11.11

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ContinueInPersonalSpace
3
- emitter: backend
3
+ emitter: tool
4
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
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
6
  ---
@@ -0,0 +1,19 @@
1
+ {
2
+ "wireName": "ContinueInPersonalSpace",
3
+ "fixtures": [
4
+ {
5
+ "name": "default",
6
+ "description": "The owner asked in a team conversation for their own mailbox: the notice that only they may use the connection, and the button that continues in their personal space (the preview's stand-in logs the click).",
7
+ "payload": {
8
+ "request": "Was steht heute in meinem Postfach?",
9
+ "reason": "The step needs a connection only its owner may use, and others read this conversation."
10
+ },
11
+ "locale": "de",
12
+ "expectedState": "data",
13
+ "width": 528,
14
+ "interactions": [
15
+ { "name": "continue", "click": { "selector": "[data-testid=\"continue-in-personal-space-widget-button\"]" }, "expectedState": "data" }
16
+ ]
17
+ }
18
+ ]
19
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ExtendConnectionPermission
3
- emitter: backend
3
+ emitter: tool
4
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
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
6
  ---
@@ -0,0 +1,30 @@
1
+ {
2
+ "wireName": "ExtendConnectionPermission",
3
+ "fixtures": [
4
+ {
5
+ "name": "default",
6
+ "description": "A send step needs a higher mail level than the connection has: the open-lock notice and the button that opens the connection's settings with that permission preselected (the preview's stand-in logs the click).",
7
+ "payload": {
8
+ "connectionId": 7,
9
+ "capability": "MAIL",
10
+ "level": "SEND_WITH_APPROVAL",
11
+ "reason": "Sending mail needs the level SEND_WITH_APPROVAL; the connection allows DRAFT."
12
+ },
13
+ "locale": "de",
14
+ "expectedState": "data",
15
+ "width": 528
16
+ },
17
+ {
18
+ "name": "calendar-in-english",
19
+ "description": "The same notice for a calendar write, for an English-speaking owner.",
20
+ "payload": {
21
+ "connectionId": 9,
22
+ "capability": "CALENDAR",
23
+ "level": "WRITE_WITH_APPROVAL"
24
+ },
25
+ "locale": "en",
26
+ "expectedState": "data",
27
+ "width": 528
28
+ }
29
+ ]
30
+ }
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: MailDraftPreview
3
- emitter: backend
3
+ emitter: tool
4
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
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
6
  ---
@@ -0,0 +1,51 @@
1
+ {
2
+ "wireName": "MailDraftPreview",
3
+ "fixtures": [
4
+ {
5
+ "name": "draft",
6
+ "description": "The draft the send step waits on: sender, two recipients, a copy, subject and a markdown body with a list, before the owner's yes.",
7
+ "payload": {
8
+ "status": "DRAFT",
9
+ "connectionId": 7,
10
+ "from": "praxis@example.org",
11
+ "to": ["anna@example.org", "ben@example.org"],
12
+ "cc": ["team@example.org"],
13
+ "subject": "Termine nächste Woche",
14
+ "bodyText": "Hallo Anna, hallo Ben,\n\nfür nächste Woche sind diese Termine frei:\n\n- Dienstag, 10:00\n- Donnerstag, 14:30\n\nViele Grüße",
15
+ "contentHash": "preview-draft"
16
+ },
17
+ "locale": "de",
18
+ "expectedState": "data",
19
+ "width": 528
20
+ },
21
+ {
22
+ "name": "sent",
23
+ "description": "The same mail after it went out: the card marks it sent.",
24
+ "payload": {
25
+ "status": "SENT",
26
+ "connectionId": 7,
27
+ "from": "praxis@example.org",
28
+ "to": ["anna@example.org", "ben@example.org"],
29
+ "subject": "Termine nächste Woche",
30
+ "bodyText": "Hallo Anna, hallo Ben,\n\nfür nächste Woche sind Dienstag, 10:00 und Donnerstag, 14:30 frei.\n\nViele Grüße",
31
+ "contentHash": "preview-sent"
32
+ },
33
+ "locale": "de",
34
+ "expectedState": "data",
35
+ "width": 528
36
+ },
37
+ {
38
+ "name": "table-and-image",
39
+ "description": "A body with a table and a markdown image: the table renders, the image shows only its alt text (no remote load).",
40
+ "payload": {
41
+ "status": "DRAFT",
42
+ "to": ["einkauf@example.org"],
43
+ "subject": "Bestellung",
44
+ "bodyText": "| Artikel | Menge |\n|---|---|\n| Handschuhe | 200 |\n| Masken | 500 |\n\n![Logo der Praxis](https://example.org/logo.png)"
45
+ },
46
+ "locale": "de",
47
+ "expectedState": "data",
48
+ "width": 528
49
+ }
50
+ ]
51
+ }