@agentorg/cli 0.0.1 → 0.0.2
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 +3 -3
- package/dist/src/bindings/mcp/encoding.js +1 -4
- package/dist/src/clients/cli/commands.js +1 -1
- package/dist/src/clients/cli/index.js +1 -1
- package/dist/src/clients/mcp/agent.d.ts +3 -5
- package/dist/src/clients/mcp/agent.js +10 -23
- package/dist/src/clients/mcp/command.d.ts +1 -1
- package/dist/src/clients/mcp/command.js +5 -11
- package/dist/src/clients/mcp/projects.d.ts +1 -2
- package/dist/src/clients/mcp/projects.js +5 -9
- package/dist/src/clients/mcp/sessions.d.ts +1 -5
- package/dist/src/clients/mcp/sessions.js +1 -10
- package/dist/src/clients/mcp/setup.js +4 -8
- package/dist/src/clients/mcp/waiter.d.ts +0 -2
- package/dist/src/clients/mcp/waiter.js +9 -20
- package/dist/src/domain/actors.js +3 -7
- package/dist/src/domain/attention.d.ts +8 -7
- package/dist/src/domain/attention.js +31 -47
- package/dist/src/domain/capabilities.js +0 -1
- package/dist/src/domain/claims.js +2 -2
- package/dist/src/domain/errors.d.ts +1 -1
- package/dist/src/domain/errors.js +1 -1
- package/dist/src/domain/index.d.ts +1 -15
- package/dist/src/domain/model/attention.d.ts +1 -5
- package/dist/src/domain/model/attention.js +5 -6
- package/dist/src/domain/model/builtins.d.ts +12 -179
- package/dist/src/domain/model/builtins.js +3 -6
- package/dist/src/domain/model/claims.d.ts +1 -3
- package/dist/src/domain/model/claims.js +1 -3
- package/dist/src/domain/model/index.d.ts +0 -7
- package/dist/src/domain/model/index.js +0 -3
- package/dist/src/domain/model/json-schema.d.ts +1 -4
- package/dist/src/domain/model/records.d.ts +0 -3
- package/dist/src/domain/model/records.js +3 -7
- package/dist/src/domain/model/system.d.ts +1 -5
- package/dist/src/domain/model/system.js +1 -5
- package/dist/src/domain/model/team.d.ts +4 -119
- package/dist/src/domain/model/team.js +8 -19
- package/dist/src/domain/model/workspace.d.ts +2 -86
- package/dist/src/domain/model/workspace.js +0 -1
- package/dist/src/domain/ports.d.ts +3 -4
- package/dist/src/domain/registry.d.ts +2 -16
- package/dist/src/domain/registry.js +22 -54
- package/dist/src/domain/system.js +1 -5
- package/dist/src/domain/team.d.ts +1 -1
- package/dist/src/domain/team.js +13 -33
- package/dist/src/domain/workspace.js +2 -10
- package/dist/src/home.d.ts +5 -5
- package/dist/src/home.js +6 -6
- package/dist/src/server/command.js +2 -2
- package/dist/src/server/index.d.ts +1 -1
- package/dist/src/server/index.js +2 -2
- package/dist/src/storage/sqlite/database.d.ts +5 -0
- package/dist/src/storage/sqlite/database.js +32 -1
- package/dist/src/storage/sqlite/index.js +1 -2
- package/dist/src/storage/sqlite/schema.d.ts +3 -4
- package/dist/src/storage/sqlite/schema.js +4 -4
- package/node_modules/@uniac/agentic-workspace/README.md +5 -5
- package/node_modules/@uniac/agentic-workspace/dist/examples/authority.d.ts +0 -1
- package/node_modules/@uniac/agentic-workspace/dist/examples/authority.js +3 -16
- package/node_modules/@uniac/agentic-workspace/dist/src/actors/index.d.ts +13 -13
- package/node_modules/@uniac/agentic-workspace/dist/src/actors/index.js +9 -25
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/common.d.ts +1 -9
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/common.js +2 -4
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/forms.d.ts +0 -13
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/forms.js +0 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/messages.d.ts +0 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/messages.js +3 -3
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/work.d.ts +2 -15
- package/node_modules/@uniac/agentic-workspace/dist/src/contracts/work.js +9 -14
- package/node_modules/@uniac/agentic-workspace/dist/src/mcp/index.js +1 -1
- package/node_modules/@uniac/agentic-workspace/dist/src/persistence/index.d.ts +1 -4
- package/node_modules/@uniac/agentic-workspace/dist/src/persistence/sqlite.js +2 -15
- package/node_modules/@uniac/agentic-workspace/dist/src/records.d.ts +0 -7
- package/node_modules/@uniac/agentic-workspace/dist/src/records.js +0 -14
- package/node_modules/@uniac/agentic-workspace/dist/src/work/asks.d.ts +20 -19
- package/node_modules/@uniac/agentic-workspace/dist/src/work/asks.js +39 -41
- package/node_modules/@uniac/agentic-workspace/dist/src/work/index.js +18 -24
- package/node_modules/@uniac/agentic-workspace/docs/contracts.md +23 -29
- package/node_modules/@uniac/agentic-workspace/docs/design.md +13 -13
- package/node_modules/@uniac/agentic-workspace/docs/hub-integration.md +25 -50
- package/node_modules/@uniac/agentic-workspace/package.json +1 -1
- package/package.json +3 -3
- package/skills/agentorg/SKILL.md +39 -38
- package/skills/agentorg/references/claude-code.md +3 -4
- package/vendor/uniac-agentic-workspace-0.0.2-8aebc44.tgz +0 -0
- package/vendor/workspace.json +6 -6
- package/dist/src/clients/mcp/levels.d.ts +0 -17
- package/dist/src/clients/mcp/levels.js +0 -7
- package/vendor/uniac-agentic-workspace-0.0.1-26fd0ee.tgz +0 -0
|
@@ -32,9 +32,7 @@ export declare const ActorCreated: z.ZodObject<{
|
|
|
32
32
|
actor: z.ZodObject<{
|
|
33
33
|
id: z.ZodString;
|
|
34
34
|
name: z.ZodString;
|
|
35
|
-
path: z.ZodString;
|
|
36
35
|
purpose: z.ZodString;
|
|
37
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
38
36
|
online: z.ZodBoolean;
|
|
39
37
|
created_at: z.ZodISODateTime;
|
|
40
38
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -60,9 +58,7 @@ export declare const ActorClosed: z.ZodObject<{
|
|
|
60
58
|
actor: z.ZodObject<{
|
|
61
59
|
id: z.ZodString;
|
|
62
60
|
name: z.ZodString;
|
|
63
|
-
path: z.ZodString;
|
|
64
61
|
purpose: z.ZodString;
|
|
65
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
66
62
|
online: z.ZodBoolean;
|
|
67
63
|
created_at: z.ZodISODateTime;
|
|
68
64
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -88,7 +84,6 @@ export declare const ACTORS: {
|
|
|
88
84
|
interfaces: {
|
|
89
85
|
readonly actor_create: {
|
|
90
86
|
readonly writes: true;
|
|
91
|
-
readonly level: "organization";
|
|
92
87
|
readonly request: z.ZodObject<{
|
|
93
88
|
name: z.ZodString;
|
|
94
89
|
purpose: z.ZodString;
|
|
@@ -101,9 +96,7 @@ export declare const ACTORS: {
|
|
|
101
96
|
actor: z.ZodObject<{
|
|
102
97
|
id: z.ZodString;
|
|
103
98
|
name: z.ZodString;
|
|
104
|
-
path: z.ZodString;
|
|
105
99
|
purpose: z.ZodString;
|
|
106
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
107
100
|
online: z.ZodBoolean;
|
|
108
101
|
created_at: z.ZodISODateTime;
|
|
109
102
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -122,11 +115,10 @@ export declare const ACTORS: {
|
|
|
122
115
|
}, z.core.$strict>>;
|
|
123
116
|
credential: z.ZodString;
|
|
124
117
|
}, z.core.$strict>;
|
|
125
|
-
readonly description: "Create
|
|
118
|
+
readonly description: "Create an Actor, on the organization's one level beside every other.\n\nReturns the actor and its credential, shown only this once. Whatever fills the position connects to the core with it.\n\nWith execution, wait for the Provider and return its separate ready, failed or unknown outcome. The Actor remains created for every execution outcome. Ready confirms Provider creation, independently of Actor connectivity.";
|
|
126
119
|
};
|
|
127
120
|
readonly actor_close: {
|
|
128
121
|
readonly writes: true;
|
|
129
|
-
readonly level: "organization";
|
|
130
122
|
readonly request: z.ZodObject<{
|
|
131
123
|
actor: z.ZodString;
|
|
132
124
|
}, z.core.$strict>;
|
|
@@ -134,15 +126,13 @@ export declare const ACTORS: {
|
|
|
134
126
|
actor: z.ZodObject<{
|
|
135
127
|
id: z.ZodString;
|
|
136
128
|
name: z.ZodString;
|
|
137
|
-
path: z.ZodString;
|
|
138
129
|
purpose: z.ZodString;
|
|
139
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
140
130
|
online: z.ZodBoolean;
|
|
141
131
|
created_at: z.ZodISODateTime;
|
|
142
132
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
143
133
|
}, z.core.$strict>;
|
|
144
134
|
}, z.core.$strict>;
|
|
145
|
-
readonly description: "Close
|
|
135
|
+
readonly description: "Close another Actor whose work is done. Any open Actor may close any other; the person is never closed.\n\nIts Hub connections close. Its part passes to the person: the Work it requested and the asks waiting on it.";
|
|
146
136
|
};
|
|
147
137
|
};
|
|
148
138
|
};
|
|
@@ -152,7 +142,6 @@ export declare const ACTIVITY: {
|
|
|
152
142
|
interfaces: {
|
|
153
143
|
readonly activity: {
|
|
154
144
|
readonly writes: false;
|
|
155
|
-
readonly level: "organization";
|
|
156
145
|
readonly request: z.ZodObject<{
|
|
157
146
|
since: z.ZodOptional<z.ZodNumber>;
|
|
158
147
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -175,7 +164,6 @@ export declare const ACTIVITY: {
|
|
|
175
164
|
export declare const BUILTINS: {
|
|
176
165
|
readonly attention: {
|
|
177
166
|
readonly writes: false;
|
|
178
|
-
readonly level: "report";
|
|
179
167
|
readonly request: z.ZodObject<{
|
|
180
168
|
since: z.ZodOptional<z.ZodString>;
|
|
181
169
|
wait: z.ZodDefault<z.ZodNumber>;
|
|
@@ -187,7 +175,6 @@ export declare const BUILTINS: {
|
|
|
187
175
|
ask: "ask";
|
|
188
176
|
assigned: "assigned";
|
|
189
177
|
message: "message";
|
|
190
|
-
raised: "raised";
|
|
191
178
|
review_due: "review_due";
|
|
192
179
|
reviewed: "reviewed";
|
|
193
180
|
updated: "updated";
|
|
@@ -207,11 +194,10 @@ export declare const BUILTINS: {
|
|
|
207
194
|
}, z.core.$strict>;
|
|
208
195
|
next: z.ZodString;
|
|
209
196
|
}, z.core.$strict>;
|
|
210
|
-
readonly description: "Read what concerns you since your last read. On your records: Work given to you or changed by its requester, an answer to your submission, an answer to your ask
|
|
197
|
+
readonly description: "Read what concerns you since your last read. On your records: Work given to you or changed by its requester, an answer to your submission, an answer to your ask, and a message to you. Routed to you: an ask on Work you requested, and a submission of Work you requested. The person also gets the asks on Work their asker requested itself or on no Work, and stands in for closed Actors. Your own writes are not items. changed names the Actors, Work and conversations anyone's writes touched.\n\nReturns at once when there is something; otherwise it waits up to wait seconds. Pass the returned next as since to continue, and give the call a timeout longer than wait.";
|
|
211
198
|
};
|
|
212
199
|
readonly claim: {
|
|
213
200
|
readonly writes: true;
|
|
214
|
-
readonly level: "organization";
|
|
215
201
|
readonly request: z.ZodObject<{
|
|
216
202
|
resource: z.ZodString;
|
|
217
203
|
note: z.ZodString;
|
|
@@ -228,7 +214,6 @@ export declare const BUILTINS: {
|
|
|
228
214
|
};
|
|
229
215
|
readonly release: {
|
|
230
216
|
readonly writes: true;
|
|
231
|
-
readonly level: "organization";
|
|
232
217
|
readonly request: z.ZodObject<{
|
|
233
218
|
resource: z.ZodString;
|
|
234
219
|
}, z.core.$strict>;
|
|
@@ -239,11 +224,10 @@ export declare const BUILTINS: {
|
|
|
239
224
|
until: z.ZodNullable<z.ZodISODateTime>;
|
|
240
225
|
claimed_at: z.ZodISODateTime;
|
|
241
226
|
}, z.core.$strict>;
|
|
242
|
-
readonly description: "Release a shared resource you hold; the
|
|
227
|
+
readonly description: "Release a shared resource you hold; the person may release any.";
|
|
243
228
|
};
|
|
244
229
|
readonly system_status: {
|
|
245
230
|
readonly writes: false;
|
|
246
|
-
readonly level: "organization";
|
|
247
231
|
readonly request: z.ZodObject<{
|
|
248
232
|
diagnosticLimit: z.ZodDefault<z.ZodNumber>;
|
|
249
233
|
}, z.core.$strict>;
|
|
@@ -301,7 +285,6 @@ export declare const BUILTINS: {
|
|
|
301
285
|
};
|
|
302
286
|
readonly connection_list: {
|
|
303
287
|
readonly writes: false;
|
|
304
|
-
readonly level: "organization";
|
|
305
288
|
readonly request: z.ZodObject<{
|
|
306
289
|
instanceId: z.ZodOptional<z.ZodUUID>;
|
|
307
290
|
after: z.ZodDefault<z.ZodNumber>;
|
|
@@ -344,7 +327,6 @@ export declare const BUILTINS: {
|
|
|
344
327
|
};
|
|
345
328
|
readonly provider_list: {
|
|
346
329
|
readonly writes: false;
|
|
347
|
-
readonly level: "organization";
|
|
348
330
|
readonly request: z.ZodObject<{
|
|
349
331
|
instanceId: z.ZodOptional<z.ZodUUID>;
|
|
350
332
|
after: z.ZodDefault<z.ZodNumber>;
|
|
@@ -368,7 +350,6 @@ export declare const BUILTINS: {
|
|
|
368
350
|
};
|
|
369
351
|
readonly connection_disconnect: {
|
|
370
352
|
readonly writes: true;
|
|
371
|
-
readonly level: "organization";
|
|
372
353
|
readonly request: z.ZodObject<{
|
|
373
354
|
instanceId: z.ZodUUID;
|
|
374
355
|
connectionId: z.ZodUUID;
|
|
@@ -378,23 +359,16 @@ export declare const BUILTINS: {
|
|
|
378
359
|
connectionId: z.ZodUUID;
|
|
379
360
|
closed: z.ZodLiteral<true>;
|
|
380
361
|
}, z.core.$strict>;
|
|
381
|
-
readonly description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is
|
|
362
|
+
readonly description: "Detach one exact Hub socket with transient close code 1000. Refused for the calling socket or observed local work. Actor authority is your own other socket, or the person; Provider authority is the person. Clients may reconnect; this neither stops native work nor revokes identity. Never retry an unknown outcome blindly.";
|
|
382
363
|
};
|
|
383
364
|
readonly team: {
|
|
384
365
|
readonly writes: false;
|
|
385
|
-
readonly
|
|
386
|
-
readonly request: z.ZodObject<{
|
|
387
|
-
actor: z.ZodOptional<z.ZodString>;
|
|
388
|
-
depth: z.ZodDefault<z.ZodNumber>;
|
|
389
|
-
}, z.core.$strict>;
|
|
366
|
+
readonly request: z.ZodObject<{}, z.core.$strict>;
|
|
390
367
|
readonly response: z.ZodObject<{
|
|
391
|
-
root: z.ZodString;
|
|
392
368
|
positions: z.ZodArray<z.ZodObject<{
|
|
393
369
|
id: z.ZodString;
|
|
394
370
|
name: z.ZodString;
|
|
395
|
-
path: z.ZodString;
|
|
396
371
|
purpose: z.ZodString;
|
|
397
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
398
372
|
online: z.ZodBoolean;
|
|
399
373
|
created_at: z.ZodISODateTime;
|
|
400
374
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -433,15 +407,13 @@ export declare const BUILTINS: {
|
|
|
433
407
|
}, z.core.$strict>>;
|
|
434
408
|
}, z.core.$strict>;
|
|
435
409
|
asks: z.ZodNumber;
|
|
436
|
-
branchAsks: z.ZodNumber;
|
|
437
410
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
438
411
|
}, z.core.$strict>>;
|
|
439
412
|
}, z.core.$strict>;
|
|
440
|
-
readonly description: "Read
|
|
413
|
+
readonly description: "Read every open Actor, oldest first: identity, purpose, timestamps, actual Hub connection presence, its last write, its own open asks, and from the Work on it its state and headline. A closed Actor is read with actor_view.";
|
|
441
414
|
};
|
|
442
415
|
readonly actor_view: {
|
|
443
416
|
readonly writes: false;
|
|
444
|
-
readonly level: "team";
|
|
445
417
|
readonly request: z.ZodObject<{
|
|
446
418
|
actorID: z.ZodOptional<z.ZodString>;
|
|
447
419
|
completed: z.ZodDefault<z.ZodNumber>;
|
|
@@ -451,9 +423,7 @@ export declare const BUILTINS: {
|
|
|
451
423
|
actor: z.ZodObject<{
|
|
452
424
|
actorID: z.ZodString;
|
|
453
425
|
name: z.ZodString;
|
|
454
|
-
path: z.ZodString;
|
|
455
426
|
purpose: z.ZodString;
|
|
456
|
-
managerID: z.ZodNullable<z.ZodString>;
|
|
457
427
|
online: z.ZodBoolean;
|
|
458
428
|
lastActiveAt: z.ZodNullable<z.ZodISODateTime>;
|
|
459
429
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -590,10 +560,6 @@ export declare const BUILTINS: {
|
|
|
590
560
|
note: z.ZodOptional<z.ZodString>;
|
|
591
561
|
at: z.ZodISODateTime;
|
|
592
562
|
}, z.core.$strict>>;
|
|
593
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
594
|
-
actorID: z.ZodString;
|
|
595
|
-
at: z.ZodISODateTime;
|
|
596
|
-
}, z.core.$strict>>;
|
|
597
563
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
598
564
|
text: z.ZodString;
|
|
599
565
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -648,10 +614,6 @@ export declare const BUILTINS: {
|
|
|
648
614
|
note: z.ZodOptional<z.ZodString>;
|
|
649
615
|
at: z.ZodISODateTime;
|
|
650
616
|
}, z.core.$strict>>;
|
|
651
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
652
|
-
actorID: z.ZodString;
|
|
653
|
-
at: z.ZodISODateTime;
|
|
654
|
-
}, z.core.$strict>>;
|
|
655
617
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
656
618
|
text: z.ZodString;
|
|
657
619
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -705,10 +667,6 @@ export declare const BUILTINS: {
|
|
|
705
667
|
note: z.ZodOptional<z.ZodString>;
|
|
706
668
|
at: z.ZodISODateTime;
|
|
707
669
|
}, z.core.$strict>>;
|
|
708
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
709
|
-
actorID: z.ZodString;
|
|
710
|
-
at: z.ZodISODateTime;
|
|
711
|
-
}, z.core.$strict>>;
|
|
712
670
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
713
671
|
text: z.ZodString;
|
|
714
672
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -817,10 +775,6 @@ export declare const BUILTINS: {
|
|
|
817
775
|
note: z.ZodOptional<z.ZodString>;
|
|
818
776
|
at: z.ZodISODateTime;
|
|
819
777
|
}, z.core.$strict>>;
|
|
820
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
821
|
-
actorID: z.ZodString;
|
|
822
|
-
at: z.ZodISODateTime;
|
|
823
|
-
}, z.core.$strict>>;
|
|
824
778
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
825
779
|
text: z.ZodString;
|
|
826
780
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -930,10 +884,6 @@ export declare const BUILTINS: {
|
|
|
930
884
|
note: z.ZodOptional<z.ZodString>;
|
|
931
885
|
at: z.ZodISODateTime;
|
|
932
886
|
}, z.core.$strict>>;
|
|
933
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
934
|
-
actorID: z.ZodString;
|
|
935
|
-
at: z.ZodISODateTime;
|
|
936
|
-
}, z.core.$strict>>;
|
|
937
887
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
938
888
|
text: z.ZodString;
|
|
939
889
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1043,10 +993,6 @@ export declare const BUILTINS: {
|
|
|
1043
993
|
note: z.ZodOptional<z.ZodString>;
|
|
1044
994
|
at: z.ZodISODateTime;
|
|
1045
995
|
}, z.core.$strict>>;
|
|
1046
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1047
|
-
actorID: z.ZodString;
|
|
1048
|
-
at: z.ZodISODateTime;
|
|
1049
|
-
}, z.core.$strict>>;
|
|
1050
996
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1051
997
|
text: z.ZodString;
|
|
1052
998
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1101,10 +1047,6 @@ export declare const BUILTINS: {
|
|
|
1101
1047
|
note: z.ZodOptional<z.ZodString>;
|
|
1102
1048
|
at: z.ZodISODateTime;
|
|
1103
1049
|
}, z.core.$strict>>;
|
|
1104
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1105
|
-
actorID: z.ZodString;
|
|
1106
|
-
at: z.ZodISODateTime;
|
|
1107
|
-
}, z.core.$strict>>;
|
|
1108
1050
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1109
1051
|
text: z.ZodString;
|
|
1110
1052
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1213,10 +1155,6 @@ export declare const BUILTINS: {
|
|
|
1213
1155
|
note: z.ZodOptional<z.ZodString>;
|
|
1214
1156
|
at: z.ZodISODateTime;
|
|
1215
1157
|
}, z.core.$strict>>;
|
|
1216
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1217
|
-
actorID: z.ZodString;
|
|
1218
|
-
at: z.ZodISODateTime;
|
|
1219
|
-
}, z.core.$strict>>;
|
|
1220
1158
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1221
1159
|
text: z.ZodString;
|
|
1222
1160
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1326,10 +1264,6 @@ export declare const BUILTINS: {
|
|
|
1326
1264
|
note: z.ZodOptional<z.ZodString>;
|
|
1327
1265
|
at: z.ZodISODateTime;
|
|
1328
1266
|
}, z.core.$strict>>;
|
|
1329
|
-
raises: z.ZodArray<z.ZodObject<{
|
|
1330
|
-
actorID: z.ZodString;
|
|
1331
|
-
at: z.ZodISODateTime;
|
|
1332
|
-
}, z.core.$strict>>;
|
|
1333
1267
|
resolution: z.ZodOptional<z.ZodObject<{
|
|
1334
1268
|
text: z.ZodString;
|
|
1335
1269
|
reason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1341,24 +1275,13 @@ export declare const BUILTINS: {
|
|
|
1341
1275
|
}, z.core.$strict>>;
|
|
1342
1276
|
}, z.core.$strict>>>;
|
|
1343
1277
|
}, z.core.$strict>>;
|
|
1344
|
-
reports: z.ZodArray<z.ZodObject<{
|
|
1345
|
-
id: z.ZodString;
|
|
1346
|
-
name: z.ZodString;
|
|
1347
|
-
path: z.ZodString;
|
|
1348
|
-
purpose: z.ZodString;
|
|
1349
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
1350
|
-
online: z.ZodBoolean;
|
|
1351
|
-
created_at: z.ZodISODateTime;
|
|
1352
|
-
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
1353
|
-
}, z.core.$strict>>;
|
|
1354
1278
|
actors: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1355
1279
|
name: z.ZodString;
|
|
1356
1280
|
}, z.core.$strict>>;
|
|
1357
1281
|
}, z.core.$strict>;
|
|
1358
|
-
readonly description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups
|
|
1282
|
+
readonly description: "Read an Actor's report as one view, computed now: its state and headline, the Work on it with its open asks, its own open asks, the asks routed to it, the submissions it answers, the Work it must take up or hand on, its follow-ups and recent completions. Anyone may view any Actor, a closed one included. Default: you.";
|
|
1359
1283
|
};
|
|
1360
1284
|
readonly message_send: {
|
|
1361
|
-
level: "organization" | "report" | "team";
|
|
1362
1285
|
request: z.ZodObject<{
|
|
1363
1286
|
recipientID: z.ZodString;
|
|
1364
1287
|
text: z.ZodString;
|
|
@@ -1384,7 +1307,6 @@ export declare const BUILTINS: {
|
|
|
1384
1307
|
writes: boolean;
|
|
1385
1308
|
};
|
|
1386
1309
|
readonly message_get: {
|
|
1387
|
-
level: "organization" | "report" | "team";
|
|
1388
1310
|
request: z.ZodObject<{
|
|
1389
1311
|
messageID: z.ZodString;
|
|
1390
1312
|
}, z.core.$strict>;
|
|
@@ -1409,7 +1331,6 @@ export declare const BUILTINS: {
|
|
|
1409
1331
|
writes: boolean;
|
|
1410
1332
|
};
|
|
1411
1333
|
readonly message_list: {
|
|
1412
|
-
level: "organization" | "report" | "team";
|
|
1413
1334
|
request: z.ZodObject<{
|
|
1414
1335
|
between: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1415
1336
|
counterpartyID: z.ZodOptional<z.ZodString>;
|
|
@@ -1443,7 +1364,6 @@ export declare const BUILTINS: {
|
|
|
1443
1364
|
writes: boolean;
|
|
1444
1365
|
};
|
|
1445
1366
|
readonly work_create: {
|
|
1446
|
-
level: "organization" | "report" | "team";
|
|
1447
1367
|
request: z.ZodObject<{
|
|
1448
1368
|
title: z.ZodString;
|
|
1449
1369
|
goal: z.ZodOptional<z.ZodString>;
|
|
@@ -1544,10 +1464,6 @@ export declare const BUILTINS: {
|
|
|
1544
1464
|
note?: string | undefined;
|
|
1545
1465
|
at: string;
|
|
1546
1466
|
}>;
|
|
1547
|
-
raises: {
|
|
1548
|
-
actorID: string;
|
|
1549
|
-
at: string;
|
|
1550
|
-
}[];
|
|
1551
1467
|
resolution?: {
|
|
1552
1468
|
text: string;
|
|
1553
1469
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1638,10 +1554,6 @@ export declare const BUILTINS: {
|
|
|
1638
1554
|
note?: string | undefined;
|
|
1639
1555
|
at: string;
|
|
1640
1556
|
}>;
|
|
1641
|
-
raises: {
|
|
1642
|
-
actorID: string;
|
|
1643
|
-
at: string;
|
|
1644
|
-
}[];
|
|
1645
1557
|
resolution?: {
|
|
1646
1558
|
text: string;
|
|
1647
1559
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1653,7 +1565,6 @@ export declare const BUILTINS: {
|
|
|
1653
1565
|
writes: boolean;
|
|
1654
1566
|
};
|
|
1655
1567
|
readonly work_get: {
|
|
1656
|
-
level: "organization" | "report" | "team";
|
|
1657
1568
|
request: z.ZodObject<{
|
|
1658
1569
|
ticketID: z.ZodOptional<z.ZodString>;
|
|
1659
1570
|
askID: z.ZodOptional<z.ZodString>;
|
|
@@ -1726,10 +1637,6 @@ export declare const BUILTINS: {
|
|
|
1726
1637
|
note?: string | undefined;
|
|
1727
1638
|
at: string;
|
|
1728
1639
|
}>;
|
|
1729
|
-
raises: {
|
|
1730
|
-
actorID: string;
|
|
1731
|
-
at: string;
|
|
1732
|
-
}[];
|
|
1733
1640
|
resolution?: {
|
|
1734
1641
|
text: string;
|
|
1735
1642
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1819,10 +1726,6 @@ export declare const BUILTINS: {
|
|
|
1819
1726
|
note?: string | undefined;
|
|
1820
1727
|
at: string;
|
|
1821
1728
|
}>;
|
|
1822
|
-
raises: {
|
|
1823
|
-
actorID: string;
|
|
1824
|
-
at: string;
|
|
1825
|
-
}[];
|
|
1826
1729
|
resolution?: {
|
|
1827
1730
|
text: string;
|
|
1828
1731
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1868,10 +1771,6 @@ export declare const BUILTINS: {
|
|
|
1868
1771
|
note?: string | undefined;
|
|
1869
1772
|
at: string;
|
|
1870
1773
|
}>;
|
|
1871
|
-
raises: {
|
|
1872
|
-
actorID: string;
|
|
1873
|
-
at: string;
|
|
1874
|
-
}[];
|
|
1875
1774
|
resolution?: {
|
|
1876
1775
|
text: string;
|
|
1877
1776
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1961,10 +1860,6 @@ export declare const BUILTINS: {
|
|
|
1961
1860
|
note?: string | undefined;
|
|
1962
1861
|
at: string;
|
|
1963
1862
|
}>;
|
|
1964
|
-
raises: {
|
|
1965
|
-
actorID: string;
|
|
1966
|
-
at: string;
|
|
1967
|
-
}[];
|
|
1968
1863
|
resolution?: {
|
|
1969
1864
|
text: string;
|
|
1970
1865
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -1976,13 +1871,10 @@ export declare const BUILTINS: {
|
|
|
1976
1871
|
writes: boolean;
|
|
1977
1872
|
};
|
|
1978
1873
|
readonly work_list: {
|
|
1979
|
-
level: "organization" | "report" | "team";
|
|
1980
1874
|
request: z.ZodObject<{
|
|
1981
|
-
ownerID: z.ZodOptional<z.ZodString
|
|
1875
|
+
ownerID: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1982
1876
|
requesterID: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1983
1877
|
waitsOnActorID: z.ZodOptional<z.ZodString>;
|
|
1984
|
-
ownerWithin: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
requesterWithin: z.ZodOptional<z.ZodString>;
|
|
1986
1878
|
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1987
1879
|
accepted: "accepted";
|
|
1988
1880
|
active: "active";
|
|
@@ -2080,10 +1972,6 @@ export declare const BUILTINS: {
|
|
|
2080
1972
|
note?: string | undefined;
|
|
2081
1973
|
at: string;
|
|
2082
1974
|
}>;
|
|
2083
|
-
raises: {
|
|
2084
|
-
actorID: string;
|
|
2085
|
-
at: string;
|
|
2086
|
-
}[];
|
|
2087
1975
|
resolution?: {
|
|
2088
1976
|
text: string;
|
|
2089
1977
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2174,10 +2062,6 @@ export declare const BUILTINS: {
|
|
|
2174
2062
|
note?: string | undefined;
|
|
2175
2063
|
at: string;
|
|
2176
2064
|
}>;
|
|
2177
|
-
raises: {
|
|
2178
|
-
actorID: string;
|
|
2179
|
-
at: string;
|
|
2180
|
-
}[];
|
|
2181
2065
|
resolution?: {
|
|
2182
2066
|
text: string;
|
|
2183
2067
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2189,7 +2073,6 @@ export declare const BUILTINS: {
|
|
|
2189
2073
|
writes: boolean;
|
|
2190
2074
|
};
|
|
2191
2075
|
readonly work_update: {
|
|
2192
|
-
level: "organization" | "report" | "team";
|
|
2193
2076
|
request: z.ZodObject<{
|
|
2194
2077
|
ticketID: z.ZodOptional<z.ZodString>;
|
|
2195
2078
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2281,10 +2164,6 @@ export declare const BUILTINS: {
|
|
|
2281
2164
|
note?: string | undefined;
|
|
2282
2165
|
at: string;
|
|
2283
2166
|
}>;
|
|
2284
|
-
raises: {
|
|
2285
|
-
actorID: string;
|
|
2286
|
-
at: string;
|
|
2287
|
-
}[];
|
|
2288
2167
|
resolution?: {
|
|
2289
2168
|
text: string;
|
|
2290
2169
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2374,10 +2253,6 @@ export declare const BUILTINS: {
|
|
|
2374
2253
|
note?: string | undefined;
|
|
2375
2254
|
at: string;
|
|
2376
2255
|
}>;
|
|
2377
|
-
raises: {
|
|
2378
|
-
actorID: string;
|
|
2379
|
-
at: string;
|
|
2380
|
-
}[];
|
|
2381
2256
|
resolution?: {
|
|
2382
2257
|
text: string;
|
|
2383
2258
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2423,10 +2298,6 @@ export declare const BUILTINS: {
|
|
|
2423
2298
|
note?: string | undefined;
|
|
2424
2299
|
at: string;
|
|
2425
2300
|
}>;
|
|
2426
|
-
raises: {
|
|
2427
|
-
actorID: string;
|
|
2428
|
-
at: string;
|
|
2429
|
-
}[];
|
|
2430
2301
|
resolution?: {
|
|
2431
2302
|
text: string;
|
|
2432
2303
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2516,10 +2387,6 @@ export declare const BUILTINS: {
|
|
|
2516
2387
|
note?: string | undefined;
|
|
2517
2388
|
at: string;
|
|
2518
2389
|
}>;
|
|
2519
|
-
raises: {
|
|
2520
|
-
actorID: string;
|
|
2521
|
-
at: string;
|
|
2522
|
-
}[];
|
|
2523
2390
|
resolution?: {
|
|
2524
2391
|
text: string;
|
|
2525
2392
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2531,7 +2398,6 @@ export declare const BUILTINS: {
|
|
|
2531
2398
|
writes: boolean;
|
|
2532
2399
|
};
|
|
2533
2400
|
readonly work_submit: {
|
|
2534
|
-
level: "organization" | "report" | "team";
|
|
2535
2401
|
request: z.ZodObject<{
|
|
2536
2402
|
ticketID: z.ZodString;
|
|
2537
2403
|
expectedRevision: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2622,10 +2488,6 @@ export declare const BUILTINS: {
|
|
|
2622
2488
|
note?: string | undefined;
|
|
2623
2489
|
at: string;
|
|
2624
2490
|
}>;
|
|
2625
|
-
raises: {
|
|
2626
|
-
actorID: string;
|
|
2627
|
-
at: string;
|
|
2628
|
-
}[];
|
|
2629
2491
|
resolution?: {
|
|
2630
2492
|
text: string;
|
|
2631
2493
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2716,10 +2578,6 @@ export declare const BUILTINS: {
|
|
|
2716
2578
|
note?: string | undefined;
|
|
2717
2579
|
at: string;
|
|
2718
2580
|
}>;
|
|
2719
|
-
raises: {
|
|
2720
|
-
actorID: string;
|
|
2721
|
-
at: string;
|
|
2722
|
-
}[];
|
|
2723
2581
|
resolution?: {
|
|
2724
2582
|
text: string;
|
|
2725
2583
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2731,13 +2589,11 @@ export declare const BUILTINS: {
|
|
|
2731
2589
|
writes: boolean;
|
|
2732
2590
|
};
|
|
2733
2591
|
readonly work_answer: {
|
|
2734
|
-
level: "organization" | "report" | "team";
|
|
2735
2592
|
request: z.ZodObject<{
|
|
2736
2593
|
askID: z.ZodString;
|
|
2737
2594
|
ticketID: z.ZodOptional<z.ZodString>;
|
|
2738
|
-
answers: z.
|
|
2595
|
+
answers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2739
2596
|
note: z.ZodOptional<z.ZodString>;
|
|
2740
|
-
raise: z.ZodOptional<z.ZodLiteral<true>>;
|
|
2741
2597
|
}, z.core.$strict>;
|
|
2742
2598
|
response: z.ZodType<{
|
|
2743
2599
|
revision: number;
|
|
@@ -2778,10 +2634,6 @@ export declare const BUILTINS: {
|
|
|
2778
2634
|
note?: string | undefined;
|
|
2779
2635
|
at: string;
|
|
2780
2636
|
}>;
|
|
2781
|
-
raises: {
|
|
2782
|
-
actorID: string;
|
|
2783
|
-
at: string;
|
|
2784
|
-
}[];
|
|
2785
2637
|
resolution?: {
|
|
2786
2638
|
text: string;
|
|
2787
2639
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2871,10 +2723,6 @@ export declare const BUILTINS: {
|
|
|
2871
2723
|
note?: string | undefined;
|
|
2872
2724
|
at: string;
|
|
2873
2725
|
}>;
|
|
2874
|
-
raises: {
|
|
2875
|
-
actorID: string;
|
|
2876
|
-
at: string;
|
|
2877
|
-
}[];
|
|
2878
2726
|
resolution?: {
|
|
2879
2727
|
text: string;
|
|
2880
2728
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -2920,10 +2768,6 @@ export declare const BUILTINS: {
|
|
|
2920
2768
|
note?: string | undefined;
|
|
2921
2769
|
at: string;
|
|
2922
2770
|
}>;
|
|
2923
|
-
raises: {
|
|
2924
|
-
actorID: string;
|
|
2925
|
-
at: string;
|
|
2926
|
-
}[];
|
|
2927
2771
|
resolution?: {
|
|
2928
2772
|
text: string;
|
|
2929
2773
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -3013,10 +2857,6 @@ export declare const BUILTINS: {
|
|
|
3013
2857
|
note?: string | undefined;
|
|
3014
2858
|
at: string;
|
|
3015
2859
|
}>;
|
|
3016
|
-
raises: {
|
|
3017
|
-
actorID: string;
|
|
3018
|
-
at: string;
|
|
3019
|
-
}[];
|
|
3020
2860
|
resolution?: {
|
|
3021
2861
|
text: string;
|
|
3022
2862
|
reason?: "cancelled" | "reassigned" | "submitted" | undefined;
|
|
@@ -3029,7 +2869,6 @@ export declare const BUILTINS: {
|
|
|
3029
2869
|
};
|
|
3030
2870
|
readonly actor_create: {
|
|
3031
2871
|
readonly writes: true;
|
|
3032
|
-
readonly level: "organization";
|
|
3033
2872
|
readonly request: z.ZodObject<{
|
|
3034
2873
|
name: z.ZodString;
|
|
3035
2874
|
purpose: z.ZodString;
|
|
@@ -3042,9 +2881,7 @@ export declare const BUILTINS: {
|
|
|
3042
2881
|
actor: z.ZodObject<{
|
|
3043
2882
|
id: z.ZodString;
|
|
3044
2883
|
name: z.ZodString;
|
|
3045
|
-
path: z.ZodString;
|
|
3046
2884
|
purpose: z.ZodString;
|
|
3047
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
3048
2885
|
online: z.ZodBoolean;
|
|
3049
2886
|
created_at: z.ZodISODateTime;
|
|
3050
2887
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -3063,11 +2900,10 @@ export declare const BUILTINS: {
|
|
|
3063
2900
|
}, z.core.$strict>>;
|
|
3064
2901
|
credential: z.ZodString;
|
|
3065
2902
|
}, z.core.$strict>;
|
|
3066
|
-
readonly description: "Create
|
|
2903
|
+
readonly description: "Create an Actor, on the organization's one level beside every other.\n\nReturns the actor and its credential, shown only this once. Whatever fills the position connects to the core with it.\n\nWith execution, wait for the Provider and return its separate ready, failed or unknown outcome. The Actor remains created for every execution outcome. Ready confirms Provider creation, independently of Actor connectivity.";
|
|
3067
2904
|
};
|
|
3068
2905
|
readonly actor_close: {
|
|
3069
2906
|
readonly writes: true;
|
|
3070
|
-
readonly level: "organization";
|
|
3071
2907
|
readonly request: z.ZodObject<{
|
|
3072
2908
|
actor: z.ZodString;
|
|
3073
2909
|
}, z.core.$strict>;
|
|
@@ -3075,19 +2911,16 @@ export declare const BUILTINS: {
|
|
|
3075
2911
|
actor: z.ZodObject<{
|
|
3076
2912
|
id: z.ZodString;
|
|
3077
2913
|
name: z.ZodString;
|
|
3078
|
-
path: z.ZodString;
|
|
3079
2914
|
purpose: z.ZodString;
|
|
3080
|
-
manager: z.ZodNullable<z.ZodString>;
|
|
3081
2915
|
online: z.ZodBoolean;
|
|
3082
2916
|
created_at: z.ZodISODateTime;
|
|
3083
2917
|
closed_at: z.ZodNullable<z.ZodISODateTime>;
|
|
3084
2918
|
}, z.core.$strict>;
|
|
3085
2919
|
}, z.core.$strict>;
|
|
3086
|
-
readonly description: "Close
|
|
2920
|
+
readonly description: "Close another Actor whose work is done. Any open Actor may close any other; the person is never closed.\n\nIts Hub connections close. Its part passes to the person: the Work it requested and the asks waiting on it.";
|
|
3087
2921
|
};
|
|
3088
2922
|
readonly activity: {
|
|
3089
2923
|
readonly writes: false;
|
|
3090
|
-
readonly level: "organization";
|
|
3091
2924
|
readonly request: z.ZodObject<{
|
|
3092
2925
|
since: z.ZodOptional<z.ZodNumber>;
|
|
3093
2926
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -58,10 +58,9 @@ export const ActivityResult = z
|
|
|
58
58
|
export const ACTORS = toolDefinition("actors", {
|
|
59
59
|
actor_create: {
|
|
60
60
|
writes: true,
|
|
61
|
-
level: "organization",
|
|
62
61
|
request: ActorCreate,
|
|
63
62
|
response: ActorCreated,
|
|
64
|
-
description: `Create
|
|
63
|
+
description: `Create an Actor, on the organization's one level beside every other.
|
|
65
64
|
|
|
66
65
|
Returns the actor and its credential, shown only this once. Whatever fills the position connects to the core with it.
|
|
67
66
|
|
|
@@ -69,18 +68,16 @@ With execution, wait for the Provider and return its separate ready, failed or u
|
|
|
69
68
|
},
|
|
70
69
|
actor_close: {
|
|
71
70
|
writes: true,
|
|
72
|
-
level: "organization",
|
|
73
71
|
request: ActorClose,
|
|
74
72
|
response: ActorClosed,
|
|
75
|
-
description: `Close
|
|
73
|
+
description: `Close another Actor whose work is done. Any open Actor may close any other; the person is never closed.
|
|
76
74
|
|
|
77
|
-
|
|
75
|
+
Its Hub connections close. Its part passes to the person: the Work it requested and the asks waiting on it.`,
|
|
78
76
|
},
|
|
79
77
|
});
|
|
80
78
|
export const ACTIVITY = toolDefinition("activity", {
|
|
81
79
|
activity: {
|
|
82
80
|
writes: false,
|
|
83
|
-
level: "organization",
|
|
84
81
|
request: Activity,
|
|
85
82
|
response: ActivityResult,
|
|
86
83
|
description: "Read the organization's audit metadata, oldest first.",
|