@ouro.bot/cli 0.1.0-alpha.1516 → 0.1.0-alpha.1518

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.
@@ -3,13 +3,179 @@
3
3
  "set": "mailbox",
4
4
  "tool": "ouro",
5
5
  "commands": [
6
+ {
7
+ "name": "mailbox send",
8
+ "summary": "File a letter to this agent's person: a request only they can answer, with the options their answer picks from. The answer comes back to the sender.",
9
+ "effect": "private",
10
+ "flags": {
11
+ "kind": {
12
+ "type": "enum",
13
+ "description": "decide: pick one of 2 to 5 options; do: a task only they can do; accept: approve finished work; know: something they should know.",
14
+ "values": [
15
+ "decide",
16
+ "do",
17
+ "accept",
18
+ "know"
19
+ ],
20
+ "required": true
21
+ },
22
+ "subject": {
23
+ "type": "string",
24
+ "description": "What is asked, in one line of at most 80 characters.",
25
+ "required": true
26
+ },
27
+ "why-only-you": {
28
+ "type": "string",
29
+ "description": "Why only the person can answer, at most 200 characters; required unless kind is know."
30
+ },
31
+ "body": {
32
+ "type": "string",
33
+ "description": "What the person needs to answer, in Markdown, at most 4,000 characters. It may run over several lines."
34
+ },
35
+ "options": {
36
+ "type": "string",
37
+ "description": "For a decide letter only: 2 to 5 options, each { label, effect }. Labels are words, without dashes, each its own, as JSON."
38
+ },
39
+ "links": {
40
+ "type": "string",
41
+ "description": "Pages the person may want while answering, each { label, url }, as JSON."
42
+ },
43
+ "dedupe-key": {
44
+ "type": "string",
45
+ "description": "A key of yours for this question: a send with a key you used before returns that letter instead of filing another."
46
+ },
47
+ "urgency": {
48
+ "type": "enum",
49
+ "description": "How soon it matters.",
50
+ "values": [
51
+ "now",
52
+ "today",
53
+ "whenever"
54
+ ],
55
+ "default": "whenever"
56
+ },
57
+ "hold-until": {
58
+ "type": "string",
59
+ "description": "\"interactive\" to hold it for a session with the person, or an ISO time."
60
+ },
61
+ "expires-at": {
62
+ "type": "string",
63
+ "description": "An ISO time after which the question is moot, such as 2026-12-01T17:00:00Z."
64
+ },
65
+ "lane": {
66
+ "type": "string",
67
+ "description": "Where you ask from, such as a desk task path, so the person knows who waits."
68
+ }
69
+ },
70
+ "output": "{ outcome, id, code, state, message }"
71
+ },
6
72
  {
7
73
  "name": "mailbox list",
8
- "summary": "List the letters this agent has filed for its person that are still waiting for an answer, oldest first. Read only.",
74
+ "summary": "List the letters this agent's person has been sent that still wait for an answer, oldest first, or every letter with all. Read only.",
9
75
  "effect": "private",
10
76
  "readOnly": true,
77
+ "flags": {
78
+ "all": {
79
+ "type": "boolean",
80
+ "description": "List answered, withdrawn and expired letters too."
81
+ },
82
+ "mine": {
83
+ "type": "boolean",
84
+ "description": "Only the letters this agent filed."
85
+ },
86
+ "kind": {
87
+ "type": "enum",
88
+ "description": "Only letters of this kind.",
89
+ "values": [
90
+ "decide",
91
+ "do",
92
+ "accept",
93
+ "know"
94
+ ]
95
+ }
96
+ },
11
97
  "output": "{ outcome, count, listing }"
98
+ },
99
+ {
100
+ "name": "mailbox read",
101
+ "summary": "Read one letter by id or code: what it asks, its options, its state and every event, such as when it was seen. Read only.",
102
+ "effect": "private",
103
+ "readOnly": true,
104
+ "args": [
105
+ {
106
+ "name": "letter",
107
+ "description": "The letter's id (ltr_…) or its code (L7).",
108
+ "required": true
109
+ }
110
+ ],
111
+ "output": "{ outcome, state, letter, events }"
112
+ },
113
+ {
114
+ "name": "mailbox wait",
115
+ "summary": "Block until a letter leaves waiting or the timeout ends, then return its state and a cursor to pass next time. Read only.",
116
+ "effect": "private",
117
+ "readOnly": true,
118
+ "args": [
119
+ {
120
+ "name": "letter",
121
+ "description": "The letter's id (ltr_…) or its code (L7).",
122
+ "required": true
123
+ }
124
+ ],
125
+ "flags": {
126
+ "cursor": {
127
+ "type": "number",
128
+ "description": "The cursor the last wait returned; events after it count.",
129
+ "min": 0
130
+ },
131
+ "timeout": {
132
+ "type": "number",
133
+ "description": "Seconds to wait, 1 to 300.",
134
+ "min": 1,
135
+ "max": 300,
136
+ "default": 60
137
+ }
138
+ },
139
+ "output": "{ outcome, state, cursor }"
140
+ },
141
+ {
142
+ "name": "mailbox withdraw",
143
+ "summary": "Take back a waiting letter this agent filed, with the reason, so the person stops seeing it.",
144
+ "effect": "private",
145
+ "args": [
146
+ {
147
+ "name": "letter",
148
+ "description": "The letter's id (ltr_…) or its code (L7).",
149
+ "required": true
150
+ }
151
+ ],
152
+ "flags": {
153
+ "reason": {
154
+ "type": "string",
155
+ "description": "Why it no longer needs an answer, in one line.",
156
+ "required": true
157
+ }
158
+ },
159
+ "output": "{ outcome, state }"
160
+ },
161
+ {
162
+ "name": "mailbox deliver",
163
+ "summary": "Ask Ouro to send a waiting letter to the person's own chat now, rendered by Ouro, and record that it was delivered.",
164
+ "effect": "private",
165
+ "args": [
166
+ {
167
+ "name": "letter",
168
+ "description": "The letter's id (ltr_…) or its code (L7).",
169
+ "required": true
170
+ }
171
+ ],
172
+ "output": "{ outcome, state }"
12
173
  }
13
174
  ],
14
- "personOnly": {}
175
+ "personOnly": {
176
+ "mailbox answer": {
177
+ "reason": "You can't answer a letter for the person; only they can",
178
+ "how": "by replying to the letter in their chat, such as \"L7 2\""
179
+ }
180
+ }
15
181
  }
@@ -2,13 +2,192 @@
2
2
  "generator": "ouro-actions 1.12.0",
3
3
  "set": "mailbox",
4
4
  "tools": [
5
+ {
6
+ "name": "mailbox_send",
7
+ "title": "Write a letter",
8
+ "description": "File a letter to this agent's person: a request only they can answer, with the options their answer picks from. The answer comes back to the sender.",
9
+ "inputSchema": {
10
+ "type": "object",
11
+ "properties": {
12
+ "kind": {
13
+ "type": "string",
14
+ "description": "decide: pick one of 2 to 5 options; do: a task only they can do; accept: approve finished work; know: something they should know.",
15
+ "enum": [
16
+ "decide",
17
+ "do",
18
+ "accept",
19
+ "know"
20
+ ]
21
+ },
22
+ "subject": {
23
+ "type": "string",
24
+ "description": "What is asked, in one line of at most 80 characters.",
25
+ "maxLength": 80
26
+ },
27
+ "whyOnlyYou": {
28
+ "type": "string",
29
+ "description": "Why only the person can answer, at most 200 characters; required unless kind is know.",
30
+ "maxLength": 200
31
+ },
32
+ "body": {
33
+ "type": "string",
34
+ "description": "What the person needs to answer, in Markdown, at most 4,000 characters. It may run over several lines.",
35
+ "maxLength": 4000
36
+ },
37
+ "options": {
38
+ "type": "array",
39
+ "description": "For a decide letter only: 2 to 5 options, each { label, effect }. Labels are words, without dashes, each its own.",
40
+ "items": {
41
+ "type": "object",
42
+ "description": "One answer the person can pick.",
43
+ "properties": {
44
+ "label": {
45
+ "type": "string",
46
+ "description": "The option's words, at most 40 characters.",
47
+ "maxLength": 40
48
+ },
49
+ "effect": {
50
+ "type": "string",
51
+ "description": "What happens when the person picks it, at most 160 characters.",
52
+ "maxLength": 160
53
+ }
54
+ },
55
+ "required": [
56
+ "label",
57
+ "effect"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "minItems": 2,
62
+ "maxItems": 5
63
+ },
64
+ "links": {
65
+ "type": "array",
66
+ "description": "Pages the person may want while answering, each { label, url }.",
67
+ "items": {
68
+ "type": "object",
69
+ "description": "One page.",
70
+ "properties": {
71
+ "label": {
72
+ "type": "string",
73
+ "description": "The link's words.",
74
+ "maxLength": 80
75
+ },
76
+ "url": {
77
+ "type": "string",
78
+ "description": "An https:// or http:// address.",
79
+ "maxLength": 500
80
+ }
81
+ },
82
+ "required": [
83
+ "label",
84
+ "url"
85
+ ],
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "dedupeKey": {
90
+ "type": "string",
91
+ "description": "A key of yours for this question: a send with a key you used before returns that letter instead of filing another.",
92
+ "maxLength": 120
93
+ },
94
+ "urgency": {
95
+ "type": "string",
96
+ "description": "How soon it matters.",
97
+ "enum": [
98
+ "now",
99
+ "today",
100
+ "whenever"
101
+ ],
102
+ "default": "whenever"
103
+ },
104
+ "holdUntil": {
105
+ "type": "string",
106
+ "description": "\"interactive\" to hold it for a session with the person, or an ISO time.",
107
+ "maxLength": 40
108
+ },
109
+ "expiresAt": {
110
+ "type": "string",
111
+ "description": "An ISO time after which the question is moot, such as 2026-12-01T17:00:00Z.",
112
+ "maxLength": 40
113
+ },
114
+ "lane": {
115
+ "type": "string",
116
+ "description": "Where you ask from, such as a desk task path, so the person knows who waits.",
117
+ "maxLength": 120
118
+ }
119
+ },
120
+ "required": [
121
+ "kind",
122
+ "subject"
123
+ ],
124
+ "additionalProperties": false
125
+ },
126
+ "annotations": {
127
+ "readOnlyHint": false,
128
+ "destructiveHint": false,
129
+ "openWorldHint": false
130
+ },
131
+ "outputSchema": {
132
+ "type": "object",
133
+ "properties": {
134
+ "outcome": {
135
+ "type": "string",
136
+ "description": "needs-human when a new letter was filed, done when the send matched a letter already filed, preview on a dry run."
137
+ },
138
+ "id": {
139
+ "type": "string",
140
+ "description": "The letter's id, the receipt; empty on a dry run."
141
+ },
142
+ "code": {
143
+ "type": "string",
144
+ "description": "The letter's code, such as L7; empty on a dry run."
145
+ },
146
+ "state": {
147
+ "type": "string",
148
+ "description": "waiting, answered, withdrawn or expired; Ouro derives it from the letter's events."
149
+ },
150
+ "message": {
151
+ "type": "string",
152
+ "description": "What happened, in one line."
153
+ }
154
+ },
155
+ "required": [
156
+ "outcome",
157
+ "id",
158
+ "code",
159
+ "state",
160
+ "message"
161
+ ],
162
+ "additionalProperties": false
163
+ }
164
+ },
5
165
  {
6
166
  "name": "mailbox_list",
7
167
  "title": "Letters",
8
- "description": "List the letters this agent has filed for its person that are still waiting for an answer, oldest first. Read only.",
168
+ "description": "List the letters this agent's person has been sent that still wait for an answer, oldest first, or every letter with all. Read only.",
9
169
  "inputSchema": {
10
170
  "type": "object",
11
- "properties": {},
171
+ "properties": {
172
+ "all": {
173
+ "type": "boolean",
174
+ "description": "List answered, withdrawn and expired letters too."
175
+ },
176
+ "mine": {
177
+ "type": "boolean",
178
+ "description": "Only the letters this agent filed."
179
+ },
180
+ "kind": {
181
+ "type": "string",
182
+ "description": "Only letters of this kind.",
183
+ "enum": [
184
+ "decide",
185
+ "do",
186
+ "accept",
187
+ "know"
188
+ ]
189
+ }
190
+ },
12
191
  "required": [],
13
192
  "additionalProperties": false
14
193
  },
@@ -26,11 +205,11 @@
26
205
  },
27
206
  "count": {
28
207
  "type": "integer",
29
- "description": "How many letters wait for an answer."
208
+ "description": "How many letters the listing holds."
30
209
  },
31
210
  "listing": {
32
211
  "type": "string",
33
- "description": "One waiting letter per line, oldest first: code, state, age and subject; empty when none wait."
212
+ "description": "One letter per line, oldest first: code, state, age and subject; empty when none match."
34
213
  }
35
214
  },
36
215
  "required": [
@@ -40,7 +219,236 @@
40
219
  ],
41
220
  "additionalProperties": false
42
221
  }
222
+ },
223
+ {
224
+ "name": "mailbox_read",
225
+ "title": "Read a letter",
226
+ "description": "Read one letter by id or code: what it asks, its options, its state and every event, such as when it was seen. Read only.",
227
+ "inputSchema": {
228
+ "type": "object",
229
+ "properties": {
230
+ "letter": {
231
+ "type": "string",
232
+ "description": "The letter's id (ltr_…) or its code (L7).",
233
+ "maxLength": 64
234
+ }
235
+ },
236
+ "required": [
237
+ "letter"
238
+ ],
239
+ "additionalProperties": false
240
+ },
241
+ "annotations": {
242
+ "readOnlyHint": true,
243
+ "destructiveHint": false,
244
+ "openWorldHint": false
245
+ },
246
+ "outputSchema": {
247
+ "type": "object",
248
+ "properties": {
249
+ "outcome": {
250
+ "type": "string",
251
+ "description": "done, when the letter was read."
252
+ },
253
+ "state": {
254
+ "type": "string",
255
+ "description": "waiting, answered, withdrawn or expired; Ouro derives it from the letter's events."
256
+ },
257
+ "letter": {
258
+ "type": "string",
259
+ "description": "The letter as filed, as JSON."
260
+ },
261
+ "events": {
262
+ "type": "string",
263
+ "description": "What has happened to it, one event per line, oldest first: time and what happened."
264
+ }
265
+ },
266
+ "required": [
267
+ "outcome",
268
+ "state",
269
+ "letter",
270
+ "events"
271
+ ],
272
+ "additionalProperties": false
273
+ }
274
+ },
275
+ {
276
+ "name": "mailbox_wait",
277
+ "title": "Wait for an answer",
278
+ "description": "Block until a letter leaves waiting or the timeout ends, then return its state and a cursor to pass next time. Read only.",
279
+ "inputSchema": {
280
+ "type": "object",
281
+ "properties": {
282
+ "letter": {
283
+ "type": "string",
284
+ "description": "The letter's id (ltr_…) or its code (L7).",
285
+ "maxLength": 64
286
+ },
287
+ "cursor": {
288
+ "type": "integer",
289
+ "description": "The cursor the last wait returned; events after it count.",
290
+ "minimum": 0
291
+ },
292
+ "timeout": {
293
+ "type": "integer",
294
+ "description": "Seconds to wait, 1 to 300.",
295
+ "minimum": 1,
296
+ "maximum": 300,
297
+ "default": 60
298
+ }
299
+ },
300
+ "required": [
301
+ "letter"
302
+ ],
303
+ "additionalProperties": false
304
+ },
305
+ "annotations": {
306
+ "readOnlyHint": true,
307
+ "destructiveHint": false,
308
+ "openWorldHint": false
309
+ },
310
+ "outputSchema": {
311
+ "type": "object",
312
+ "properties": {
313
+ "outcome": {
314
+ "type": "string",
315
+ "description": "done when the letter has left waiting or has an event past the cursor, timeout when nothing changed."
316
+ },
317
+ "state": {
318
+ "type": "string",
319
+ "description": "waiting, answered, withdrawn or expired; Ouro derives it from the letter's events."
320
+ },
321
+ "cursor": {
322
+ "type": "integer",
323
+ "description": "How many events the letter has; pass it to the next wait."
324
+ }
325
+ },
326
+ "required": [
327
+ "outcome",
328
+ "state",
329
+ "cursor"
330
+ ],
331
+ "additionalProperties": false
332
+ }
333
+ },
334
+ {
335
+ "name": "mailbox_withdraw",
336
+ "title": "Withdraw a letter",
337
+ "description": "Take back a waiting letter this agent filed, with the reason, so the person stops seeing it.",
338
+ "inputSchema": {
339
+ "type": "object",
340
+ "properties": {
341
+ "letter": {
342
+ "type": "string",
343
+ "description": "The letter's id (ltr_…) or its code (L7).",
344
+ "maxLength": 64
345
+ },
346
+ "reason": {
347
+ "type": "string",
348
+ "description": "Why it no longer needs an answer, in one line.",
349
+ "maxLength": 200
350
+ }
351
+ },
352
+ "required": [
353
+ "letter",
354
+ "reason"
355
+ ],
356
+ "additionalProperties": false
357
+ },
358
+ "annotations": {
359
+ "readOnlyHint": false,
360
+ "destructiveHint": false,
361
+ "openWorldHint": false
362
+ },
363
+ "outputSchema": {
364
+ "type": "object",
365
+ "properties": {
366
+ "outcome": {
367
+ "type": "string",
368
+ "description": "done, when the letter was withdrawn; preview on a dry run, which checks the withdraw and writes nothing."
369
+ },
370
+ "state": {
371
+ "type": "string",
372
+ "description": "waiting, answered, withdrawn or expired; Ouro derives it from the letter's events."
373
+ }
374
+ },
375
+ "required": [
376
+ "outcome",
377
+ "state"
378
+ ],
379
+ "additionalProperties": false
380
+ }
381
+ },
382
+ {
383
+ "name": "mailbox_deliver",
384
+ "title": "Deliver a letter",
385
+ "description": "Ask Ouro to send a waiting letter to the person's own chat now, rendered by Ouro, and record that it was delivered.",
386
+ "inputSchema": {
387
+ "type": "object",
388
+ "properties": {
389
+ "letter": {
390
+ "type": "string",
391
+ "description": "The letter's id (ltr_…) or its code (L7).",
392
+ "maxLength": 64
393
+ }
394
+ },
395
+ "required": [
396
+ "letter"
397
+ ],
398
+ "additionalProperties": false
399
+ },
400
+ "annotations": {
401
+ "readOnlyHint": false,
402
+ "destructiveHint": false,
403
+ "openWorldHint": false
404
+ },
405
+ "outputSchema": {
406
+ "type": "object",
407
+ "properties": {
408
+ "outcome": {
409
+ "type": "string",
410
+ "description": "done, when the letter was sent."
411
+ },
412
+ "state": {
413
+ "type": "string",
414
+ "description": "waiting, answered, withdrawn or expired; Ouro derives it from the letter's events."
415
+ }
416
+ },
417
+ "required": [
418
+ "outcome",
419
+ "state"
420
+ ],
421
+ "additionalProperties": false
422
+ }
43
423
  }
44
424
  ],
45
- "refusals": {}
425
+ "refusals": {
426
+ "mailbox_answer": {
427
+ "ax": "outcome/1",
428
+ "action": "mailbox answer",
429
+ "effect": "private",
430
+ "audience": {
431
+ "only": true,
432
+ "who": "only you"
433
+ },
434
+ "target": null,
435
+ "state": "refused",
436
+ "summary": "Answer a letter: You can't answer a letter for the person; only they can. Ask the person, who does it by replying to the letter in their chat, such as \"L7 2\".",
437
+ "postcondition": {
438
+ "checked": false,
439
+ "holds": null,
440
+ "how": "not checked"
441
+ },
442
+ "receipt": null,
443
+ "next": [],
444
+ "error": {
445
+ "code": "person-only",
446
+ "exit": 2,
447
+ "thing": "mailbox answer",
448
+ "problem": "You can't answer a letter for the person; only they can. Ask the person, who does it by replying to the letter in their chat, such as \"L7 2\"",
449
+ "fix": null,
450
+ "message": "Answer a letter: You can't answer a letter for the person; only they can. Ask the person, who does it by replying to the letter in their chat, such as \"L7 2\"."
451
+ }
452
+ }
453
+ }
46
454
  }