@aeolus-fleet/common 0.26.1 → 0.27.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.
Files changed (51) hide show
  1. package/dist/fleet/core-version.d.ts +20 -0
  2. package/dist/fleet/core-version.js +59 -0
  3. package/dist/fleet/core-version.js.map +1 -0
  4. package/dist/fleet/index.d.ts +70 -9
  5. package/dist/fleet/index.js +90 -7
  6. package/dist/fleet/index.js.map +1 -1
  7. package/dist/fleet/no-terminal-questions.d.ts +1 -1
  8. package/dist/fleet/no-terminal-questions.js +1 -1
  9. package/dist/fleet/no-terminal-questions.js.map +1 -1
  10. package/dist/rules/index.d.ts +1 -0
  11. package/dist/rules/index.js +1 -0
  12. package/dist/rules/index.js.map +1 -1
  13. package/dist/rules/read-reach.d.ts +4 -0
  14. package/dist/rules/read-reach.js +5 -0
  15. package/dist/rules/read-reach.js.map +1 -0
  16. package/dist/schemas/console.d.ts +6 -0
  17. package/dist/schemas/crew-request.d.ts +2 -0
  18. package/dist/schemas/crew-request.js +3 -0
  19. package/dist/schemas/crew-request.js.map +1 -1
  20. package/dist/schemas/delivery.d.ts +79 -4
  21. package/dist/schemas/delivery.js +43 -5
  22. package/dist/schemas/delivery.js.map +1 -1
  23. package/dist/schemas/fleet.d.ts +72 -37
  24. package/dist/schemas/fleet.js +31 -9
  25. package/dist/schemas/fleet.js.map +1 -1
  26. package/dist/schemas/follow.d.ts +8 -0
  27. package/dist/schemas/history.d.ts +232 -19
  28. package/dist/schemas/history.js +20 -3
  29. package/dist/schemas/history.js.map +1 -1
  30. package/dist/schemas/index.d.ts +2 -0
  31. package/dist/schemas/index.js +2 -0
  32. package/dist/schemas/index.js.map +1 -1
  33. package/dist/schemas/message.d.ts +1 -0
  34. package/dist/schemas/message.js +2 -0
  35. package/dist/schemas/message.js.map +1 -1
  36. package/dist/schemas/needs-attention.d.ts +0 -150
  37. package/dist/schemas/needs-attention.js +1 -33
  38. package/dist/schemas/needs-attention.js.map +1 -1
  39. package/dist/schemas/network.d.ts +319 -12
  40. package/dist/schemas/network.js +84 -15
  41. package/dist/schemas/network.js.map +1 -1
  42. package/dist/schemas/scopes.d.ts +56 -0
  43. package/dist/schemas/scopes.js +35 -0
  44. package/dist/schemas/scopes.js.map +1 -0
  45. package/dist/schemas/ship.d.ts +2 -0
  46. package/dist/schemas/ship.js +7 -0
  47. package/dist/schemas/ship.js.map +1 -1
  48. package/dist/schemas/statement.d.ts +182 -0
  49. package/dist/schemas/statement.js +114 -0
  50. package/dist/schemas/statement.js.map +1 -0
  51. package/package.json +1 -1
@@ -52,6 +52,7 @@ export declare const receivedDeliverySchema: z.ZodObject<{
52
52
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
53
53
  sentAt: z.ZodISODateTime;
54
54
  attempts: z.ZodInt;
55
+ isForced: z.ZodBoolean;
55
56
  }, z.core.$strip>;
56
57
  export type ReceivedDelivery = z.infer<typeof receivedDeliverySchema>;
57
58
  /** Output of `ship.receive`: the deliveries claimed, none when the wait ended without one. */
@@ -75,9 +76,18 @@ export declare const receiveOutputSchema: z.ZodObject<{
75
76
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
76
77
  sentAt: z.ZodISODateTime;
77
78
  attempts: z.ZodInt;
79
+ isForced: z.ZodBoolean;
78
80
  }, z.core.$strip>>;
79
81
  }, z.core.$strip>;
80
82
  export type ReceiveOutput = z.infer<typeof receiveOutputSchema>;
83
+ /**
84
+ * Input of `ship.receiveReply`: the message whose reply to receive. Its
85
+ * output is `receiveOutputSchema`, with one delivery at most.
86
+ */
87
+ export declare const receiveReplyInputSchema: z.ZodObject<{
88
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
89
+ }, z.core.$strip>;
90
+ export type ReceiveReplyInput = z.infer<typeof receiveReplyInputSchema>;
81
91
  /**
82
92
  * One delivery a push receive takes for the crew's computer side (decision
83
93
  * 0040): received, not yet handed to the agent and with no attempt counted,
@@ -101,6 +111,7 @@ export declare const pushReceivedDeliverySchema: z.ZodObject<{
101
111
  model: z.ZodNullable<z.ZodString>;
102
112
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
103
113
  sentAt: z.ZodISODateTime;
114
+ isForced: z.ZodBoolean;
104
115
  attempts: z.ZodInt;
105
116
  state: z.ZodEnum<{
106
117
  received: "received";
@@ -109,6 +120,22 @@ export declare const pushReceivedDeliverySchema: z.ZodObject<{
109
120
  handOverNumber: z.ZodNullable<z.ZodInt>;
110
121
  }, z.core.$strip>;
111
122
  export type PushReceivedDelivery = z.infer<typeof pushReceivedDeliverySchema>;
123
+ /**
124
+ * Input of `ship.pushReceive`: at most how many deliveries to take, 1 to 10,
125
+ * one without it, and what wakes the ship, kept from the lease's first push
126
+ * receive (interop 5.1).
127
+ */
128
+ export declare const pushReceiveInputSchema: z.ZodOptional<z.ZodObject<{
129
+ max: z.ZodOptional<z.ZodInt>;
130
+ waker: z.ZodOptional<z.ZodEnum<{
131
+ trierarch: "trierarch";
132
+ pluginWatcher: "pluginWatcher";
133
+ personApp: "personApp";
134
+ gateway: "gateway";
135
+ adapter: "adapter";
136
+ }>>;
137
+ }, z.core.$strip>>;
138
+ export type PushReceiveInput = z.infer<typeof pushReceiveInputSchema>;
112
139
  /** Output of `ship.pushReceive`: the deliveries taken, none when the wait ended without one. */
113
140
  export declare const pushReceiveOutputSchema: z.ZodObject<{
114
141
  deliveries: z.ZodArray<z.ZodObject<{
@@ -129,6 +156,7 @@ export declare const pushReceiveOutputSchema: z.ZodObject<{
129
156
  model: z.ZodNullable<z.ZodString>;
130
157
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
131
158
  sentAt: z.ZodISODateTime;
159
+ isForced: z.ZodBoolean;
132
160
  attempts: z.ZodInt;
133
161
  state: z.ZodEnum<{
134
162
  received: "received";
@@ -142,12 +170,14 @@ export type PushReceiveOutput = z.infer<typeof pushReceiveOutputSchema>;
142
170
  * Input of `ship.handed`: the delivery the computer side handed to the agent,
143
171
  * and the number of that hand-over, counting from 1 under the crew's lease.
144
172
  * Once more: it hands a confirmed message once more, after the turn that took
145
- * it died (decision 0040).
173
+ * it died (decision 0040). The channel it handed it through, kept with
174
+ * DeliveryHanded (interop 5.1).
146
175
  */
147
176
  export declare const handedInputSchema: z.ZodObject<{
148
177
  deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
149
178
  handOverNumber: z.ZodInt;
150
179
  isOnceMore: z.ZodOptional<z.ZodBoolean>;
180
+ channel: z.ZodOptional<z.ZodString>;
151
181
  }, z.core.$strip>;
152
182
  export type HandedInput = z.infer<typeof handedInputSchema>;
153
183
  /** Output of `ship.handed`: where the delivery stands now. Undeliverable: that was the fifth attempt, and nothing is handed. */
@@ -171,8 +201,9 @@ export type HandledOutput = z.infer<typeof handledOutputSchema>;
171
201
  export declare const NOT_HANDLED_REASON_MAX_LENGTH = 200;
172
202
  /**
173
203
  * Input of `ship.notHandled`: the delivery handed once more whose turn died
174
- * too, and why the crew's computer side judged so (#847), which Needs
175
- * attention shows with the entry.
204
+ * too, or handed and not confirmed and unsafe to hand again, and why the
205
+ * crew's computer side judged so (#847), which Needs attention shows with the
206
+ * entry. The use case requires the reason for one not confirmed.
176
207
  */
177
208
  export declare const notHandledInputSchema: z.ZodObject<{
178
209
  deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
@@ -200,8 +231,52 @@ export declare const inboxInputSchema: z.ZodOptional<z.ZodObject<{
200
231
  waitSeconds: z.ZodOptional<z.ZodInt>;
201
232
  }, z.core.$strip>>;
202
233
  export type InboxInput = z.infer<typeof inboxInputSchema>;
203
- /** Output of `ship.inbox`: how many deliveries the crew's next receive would hand it. */
234
+ /**
235
+ * Output of `ship.inbox`: how many deliveries the crew's next receive would
236
+ * hand it, and how many of those are forced and not handed over yet: the ones
237
+ * a computer side hands over at once, busy turn or not (decision 0040).
238
+ */
204
239
  export declare const inboxOutputSchema: z.ZodObject<{
205
240
  waiting: z.ZodInt;
241
+ forced: z.ZodInt;
206
242
  }, z.core.$strip>;
207
243
  export type InboxOutput = z.infer<typeof inboxOutputSchema>;
244
+ /** Input of `ship.sentMessage`: a message the caller sent. */
245
+ export declare const sentMessageInputSchema: z.ZodObject<{
246
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
247
+ }, z.core.$strip>;
248
+ export type SentMessageInput = z.infer<typeof sentMessageInputSchema>;
249
+ /**
250
+ * Output of `ship.sentMessage`: where the delivery of a message its sender
251
+ * sent stands, and since when, with its recipient by name or type. No payload.
252
+ */
253
+ export declare const sentMessageOutputSchema: z.ZodObject<{
254
+ messageId: z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>;
255
+ sentAt: z.ZodISODateTime;
256
+ recipient: z.ZodDiscriminatedUnion<[z.ZodObject<{
257
+ kind: z.ZodLiteral<"ship">;
258
+ ship: z.ZodObject<{
259
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
260
+ name: z.ZodString;
261
+ }, z.core.$strip>;
262
+ }, z.core.$strip>, z.ZodObject<{
263
+ kind: z.ZodLiteral<"type">;
264
+ type: z.ZodString;
265
+ }, z.core.$strip>], "kind">;
266
+ delivery: z.ZodObject<{
267
+ deliveryId: z.ZodType<`dlv_${string}`, unknown, z.core.$ZodTypeInternals<`dlv_${string}`, unknown>>;
268
+ state: z.ZodEnum<{
269
+ pending: "pending";
270
+ received: "received";
271
+ handed: "handed";
272
+ acknowledged: "acknowledged";
273
+ handled: "handled";
274
+ notHandled: "notHandled";
275
+ undeliverable: "undeliverable";
276
+ dismissed: "dismissed";
277
+ abandoned: "abandoned";
278
+ }>;
279
+ since: z.ZodISODateTime;
280
+ }, z.core.$strip>;
281
+ }, z.core.$strip>;
282
+ export type SentMessageOutput = z.infer<typeof sentMessageOutputSchema>;
@@ -1,5 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { deliveryStateSchema } from '../fleet/index.js';
2
3
  import { idSchema } from '../ids/index.js';
4
+ import { leaseWakerSchema, messageRecipientSchema } from './history.js';
3
5
  import { isOneLine } from './report.js';
4
6
  /**
5
7
  * Inputs and outputs of receiving and acknowledging deliveries (`ship.receive`
@@ -49,11 +51,18 @@ export const receivedDeliverySchema = z.object({
49
51
  sentAt: z.iso.datetime(),
50
52
  /** How many times the delivery has been claimed, this receive included. */
51
53
  attempts: z.int().positive(),
54
+ /** Whether its message was sent forced, to act on now (decision 0040). */
55
+ isForced: z.boolean(),
52
56
  });
53
57
  /** Output of `ship.receive`: the deliveries claimed, none when the wait ended without one. */
54
58
  export const receiveOutputSchema = z.object({
55
59
  deliveries: z.array(receivedDeliverySchema).max(RECEIVE_MAX_UPPER_BOUND),
56
60
  });
61
+ /**
62
+ * Input of `ship.receiveReply`: the message whose reply to receive. Its
63
+ * output is `receiveOutputSchema`, with one delivery at most.
64
+ */
65
+ export const receiveReplyInputSchema = z.object({ messageId: idSchema('message') });
57
66
  /**
58
67
  * One delivery a push receive takes for the crew's computer side (decision
59
68
  * 0040): received, not yet handed to the agent and with no attempt counted,
@@ -66,6 +75,16 @@ export const pushReceivedDeliverySchema = receivedDeliverySchema.extend({
66
75
  /** The last hand-over number the crew reported with handed; null while received, or when a plain receive handed it. */
67
76
  handOverNumber: z.int().positive().nullable(),
68
77
  });
78
+ /**
79
+ * Input of `ship.pushReceive`: at most how many deliveries to take, 1 to 10,
80
+ * one without it, and what wakes the ship, kept from the lease's first push
81
+ * receive (interop 5.1).
82
+ */
83
+ export const pushReceiveInputSchema = z
84
+ .object({ max: z.int().min(1).max(RECEIVE_MAX_UPPER_BOUND).optional(), waker: leaseWakerSchema.optional() })
85
+ .optional();
86
+ /** The channel of a hand-over: 1 to 32 of a-z, 0-9, `/`, `.` and `-`, such as `tmux` or `tools/call`. */
87
+ const CHANNEL = /^[a-z0-9/.-]{1,32}$/;
69
88
  /** Output of `ship.pushReceive`: the deliveries taken, none when the wait ended without one. */
70
89
  export const pushReceiveOutputSchema = z.object({
71
90
  deliveries: z.array(pushReceivedDeliverySchema).max(RECEIVE_MAX_UPPER_BOUND),
@@ -74,12 +93,14 @@ export const pushReceiveOutputSchema = z.object({
74
93
  * Input of `ship.handed`: the delivery the computer side handed to the agent,
75
94
  * and the number of that hand-over, counting from 1 under the crew's lease.
76
95
  * Once more: it hands a confirmed message once more, after the turn that took
77
- * it died (decision 0040).
96
+ * it died (decision 0040). The channel it handed it through, kept with
97
+ * DeliveryHanded (interop 5.1).
78
98
  */
79
99
  export const handedInputSchema = z.object({
80
100
  deliveryId: idSchema('delivery'),
81
101
  handOverNumber: z.int().positive(),
82
102
  isOnceMore: z.boolean().optional(),
103
+ channel: z.string().regex(CHANNEL, 'A channel is 1 to 32 of a-z, 0-9, /, . and -').optional(),
83
104
  });
84
105
  /** Output of `ship.handed`: where the delivery stands now. Undeliverable: that was the fifth attempt, and nothing is handed. */
85
106
  export const handedOutputSchema = z.object({ state: z.enum(['handed', 'acknowledged', 'undeliverable']) });
@@ -92,8 +113,9 @@ export const NOT_HANDLED_REASON_MAX_LENGTH = 200;
92
113
  const REASON_MESSAGE = `A reason is one line of at most ${String(NOT_HANDLED_REASON_MAX_LENGTH)} characters`;
93
114
  /**
94
115
  * Input of `ship.notHandled`: the delivery handed once more whose turn died
95
- * too, and why the crew's computer side judged so (#847), which Needs
96
- * attention shows with the entry.
116
+ * too, or handed and not confirmed and unsafe to hand again, and why the
117
+ * crew's computer side judged so (#847), which Needs attention shows with the
118
+ * entry. The use case requires the reason for one not confirmed.
97
119
  */
98
120
  export const notHandledInputSchema = z.object({
99
121
  deliveryId: idSchema('delivery'),
@@ -114,6 +136,22 @@ export const INBOX_WAIT_MAX_SECONDS = 25;
114
136
  export const inboxInputSchema = z
115
137
  .object({ waitSeconds: z.int().min(0).max(INBOX_WAIT_MAX_SECONDS).optional() })
116
138
  .optional();
117
- /** Output of `ship.inbox`: how many deliveries the crew's next receive would hand it. */
118
- export const inboxOutputSchema = z.object({ waiting: z.int().min(0) });
139
+ /**
140
+ * Output of `ship.inbox`: how many deliveries the crew's next receive would
141
+ * hand it, and how many of those are forced and not handed over yet: the ones
142
+ * a computer side hands over at once, busy turn or not (decision 0040).
143
+ */
144
+ export const inboxOutputSchema = z.object({ waiting: z.int().min(0), forced: z.int().min(0) });
145
+ /** Input of `ship.sentMessage`: a message the caller sent. */
146
+ export const sentMessageInputSchema = z.object({ messageId: idSchema('message') });
147
+ /**
148
+ * Output of `ship.sentMessage`: where the delivery of a message its sender
149
+ * sent stands, and since when, with its recipient by name or type. No payload.
150
+ */
151
+ export const sentMessageOutputSchema = z.object({
152
+ messageId: idSchema('message'),
153
+ sentAt: z.iso.datetime(),
154
+ recipient: messageRecipientSchema,
155
+ delivery: z.object({ deliveryId: idSchema('delivery'), state: deliveryStateSchema, since: z.iso.datetime() }),
156
+ });
119
157
  //# sourceMappingURL=delivery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delivery.js","sourceRoot":"","sources":["../../src/schemas/delivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;GAKG;AAEH,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,gGAAgG;AAChG,MAAM,CAA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C,CAAC"}
@@ -9,24 +9,22 @@ export declare const shipHandleSchema: z.ZodString;
9
9
  export declare const SHIP_NOTE_MAX_LENGTH = 500;
10
10
  /**
11
11
  * Input of `fleet.commission`. The note is free text for the operator;
12
- * whitespace around it is dropped. `fleetScopes` adds fleet:read,
13
- * fleet:manage, crew:assign and/or crew:run to the scopes every agent ship has; none
14
- * when left out.
12
+ * whitespace around it is dropped. `scopes` adds scopes, core or a
13
+ * plugin's, to the scopes every ship has; none when left out.
15
14
  * `idempotencyKey` is the caller's own key, as for a send: a retry with the
16
15
  * same key and the same request commissions no second ship.
17
16
  */
18
17
  export declare const commissionShipInputSchema: z.ZodObject<{
19
18
  name: z.ZodString;
20
19
  type: z.ZodString;
21
- fleetScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
22
- "fleet:read": "fleet:read";
23
- "fleet:manage": "fleet:manage";
24
- "crew:assign": "crew:assign";
25
- "crew:run": "crew:run";
26
- "labels:define": "labels:define";
27
- "labels:assign": "labels:assign";
28
- "fleet:network": "fleet:network";
29
- }>>>;
20
+ kind: z.ZodOptional<z.ZodEnum<{
21
+ agent: "agent";
22
+ person: "person";
23
+ app: "app";
24
+ }>>;
25
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
26
+ ownerOf: z.ZodOptional<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
27
+ owner: z.ZodOptional<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
30
28
  note: z.ZodOptional<z.ZodString>;
31
29
  idempotencyKey: z.ZodString;
32
30
  }, z.core.$strip>;
@@ -95,6 +93,19 @@ export declare const renameShipInputSchema: z.ZodObject<{
95
93
  }, z.core.$strip>;
96
94
  /** Output of `fleet.rename`: nothing; the OK is the answer. */
97
95
  export declare const renameShipOutputSchema: z.ZodObject<{}, z.core.$strict>;
96
+ /** Input of `fleet.connectPlugin`: the ship argo connects as a plugin, which then reads every ship (decision 0034). argo's only. */
97
+ export declare const connectPluginInputSchema: z.ZodObject<{
98
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
99
+ }, z.core.$strip>;
100
+ /** Output of `fleet.connectPlugin`: nothing; the OK is the answer. */
101
+ export declare const connectPluginOutputSchema: z.ZodObject<{}, z.core.$strict>;
102
+ /** Input of `fleet.setOwner`: the ship and its new owner, an active person's ship or argo (decision 0045). argo's only. */
103
+ export declare const setOwnerInputSchema: z.ZodObject<{
104
+ shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
105
+ ownerShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
106
+ }, z.core.$strip>;
107
+ /** Output of `fleet.setOwner`: nothing; the OK is the answer. */
108
+ export declare const setOwnerOutputSchema: z.ZodObject<{}, z.core.$strict>;
98
109
  /** Input of `fleet.retire`: the ship to end for good. Never argo. */
99
110
  export declare const retireShipInputSchema: z.ZodObject<{
100
111
  shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
@@ -140,6 +151,8 @@ export declare const listedShipSchema: z.ZodObject<{
140
151
  operator: "operator";
141
152
  agent: "agent";
142
153
  viewer: "viewer";
154
+ person: "person";
155
+ app: "app";
143
156
  }>;
144
157
  status: z.ZodEnum<{
145
158
  awaitingCrew: "awaitingCrew";
@@ -175,17 +188,7 @@ export declare const listedShipSchema: z.ZodObject<{
175
188
  id: z.ZodString;
176
189
  statedAt: z.ZodISODateTime;
177
190
  }, z.core.$strip>>;
178
- scopes: z.ZodArray<z.ZodEnum<{
179
- "messages:send": "messages:send";
180
- "messages:receive": "messages:receive";
181
- "fleet:read": "fleet:read";
182
- "fleet:manage": "fleet:manage";
183
- "crew:assign": "crew:assign";
184
- "crew:run": "crew:run";
185
- "labels:define": "labels:define";
186
- "labels:assign": "labels:assign";
187
- "fleet:network": "fleet:network";
188
- }>>;
191
+ scopes: z.ZodArray<z.ZodString>;
189
192
  report: z.ZodNullable<z.ZodObject<{
190
193
  state: z.ZodEnum<{
191
194
  working: "working";
@@ -237,8 +240,22 @@ export declare const listedShipSchema: z.ZodObject<{
237
240
  retiredAt: z.ZodNullable<z.ZodISODateTime>;
238
241
  }, z.core.$strip>;
239
242
  export type ListedShip = z.infer<typeof listedShipSchema>;
240
- /** Output of `fleet.list`: every ship in the caller's fleet, `argo` included. */
241
- export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
243
+ /** A ship outside the caller's read reach (decision 0034): its name, type and status only. */
244
+ export declare const shipOutsideReadReachSchema: z.ZodObject<{
245
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
246
+ name: z.ZodString;
247
+ type: z.ZodString;
248
+ status: z.ZodEnum<{
249
+ awaitingCrew: "awaitingCrew";
250
+ crewed: "crewed";
251
+ retired: "retired";
252
+ }>;
253
+ isInReadReach: z.ZodLiteral<false>;
254
+ }, z.core.$strip>;
255
+ export type ShipOutsideReadReach = z.infer<typeof shipOutsideReadReachSchema>;
256
+ export { isInReadReach } from '../rules/read-reach.js';
257
+ /** Output of `fleet.list`: every ship in the caller's fleet, `argo` included, those outside its read reach by name, type and status only. */
258
+ export declare const fleetListOutputSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
242
259
  id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
243
260
  name: z.ZodString;
244
261
  type: z.ZodString;
@@ -246,6 +263,8 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
246
263
  operator: "operator";
247
264
  agent: "agent";
248
265
  viewer: "viewer";
266
+ person: "person";
267
+ app: "app";
249
268
  }>;
250
269
  status: z.ZodEnum<{
251
270
  awaitingCrew: "awaitingCrew";
@@ -281,17 +300,7 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
281
300
  id: z.ZodString;
282
301
  statedAt: z.ZodISODateTime;
283
302
  }, z.core.$strip>>;
284
- scopes: z.ZodArray<z.ZodEnum<{
285
- "messages:send": "messages:send";
286
- "messages:receive": "messages:receive";
287
- "fleet:read": "fleet:read";
288
- "fleet:manage": "fleet:manage";
289
- "crew:assign": "crew:assign";
290
- "crew:run": "crew:run";
291
- "labels:define": "labels:define";
292
- "labels:assign": "labels:assign";
293
- "fleet:network": "fleet:network";
294
- }>>;
303
+ scopes: z.ZodArray<z.ZodString>;
295
304
  report: z.ZodNullable<z.ZodObject<{
296
305
  state: z.ZodEnum<{
297
306
  working: "working";
@@ -341,7 +350,17 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
341
350
  }, z.core.$strip>>;
342
351
  awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
343
352
  retiredAt: z.ZodNullable<z.ZodISODateTime>;
344
- }, z.core.$strip>>;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
355
+ name: z.ZodString;
356
+ type: z.ZodString;
357
+ status: z.ZodEnum<{
358
+ awaitingCrew: "awaitingCrew";
359
+ crewed: "crewed";
360
+ retired: "retired";
361
+ }>;
362
+ isInReadReach: z.ZodLiteral<false>;
363
+ }, z.core.$strip>]>>;
345
364
  /**
346
365
  * Input of the `fleet.events` subscription: the number of the last event the
347
366
  * browser applied. tRPC sends it back as `lastEventId` when it reconnects;
@@ -363,6 +382,8 @@ export declare const liveFleetEventSchema: z.ZodObject<{
363
382
  type: z.ZodEnum<{
364
383
  FleetInitialised: "FleetInitialised";
365
384
  ShipCommissioned: "ShipCommissioned";
385
+ OwnerSet: "OwnerSet";
386
+ OwnerChanged: "OwnerChanged";
366
387
  ShipClaimed: "ShipClaimed";
367
388
  LeaseRevoked: "LeaseRevoked";
368
389
  CredentialRevoked: "CredentialRevoked";
@@ -383,6 +404,7 @@ export declare const liveFleetEventSchema: z.ZodObject<{
383
404
  DeliveryDismissed: "DeliveryDismissed";
384
405
  ShipRenamed: "ShipRenamed";
385
406
  ShipReported: "ShipReported";
407
+ StatementSet: "StatementSet";
386
408
  TurnReported: "TurnReported";
387
409
  SignInTicketIssued: "SignInTicketIssued";
388
410
  FleetLimitsChanged: "FleetLimitsChanged";
@@ -406,6 +428,11 @@ export declare const liveFleetEventSchema: z.ZodObject<{
406
428
  NetworkRulesDeclared: "NetworkRulesDeclared";
407
429
  NetworkPluginRegistered: "NetworkPluginRegistered";
408
430
  NetworkPluginUnregistered: "NetworkPluginUnregistered";
431
+ BuiltInRuleChanged: "BuiltInRuleChanged";
432
+ ScopesDeclared: "ScopesDeclared";
433
+ ScopesChanged: "ScopesChanged";
434
+ PluginConnected: "PluginConnected";
435
+ PluginDisconnected: "PluginDisconnected";
409
436
  }>;
410
437
  occurredAt: z.ZodISODateTime;
411
438
  actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
@@ -426,6 +453,8 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
426
453
  type: z.ZodEnum<{
427
454
  FleetInitialised: "FleetInitialised";
428
455
  ShipCommissioned: "ShipCommissioned";
456
+ OwnerSet: "OwnerSet";
457
+ OwnerChanged: "OwnerChanged";
429
458
  ShipClaimed: "ShipClaimed";
430
459
  LeaseRevoked: "LeaseRevoked";
431
460
  CredentialRevoked: "CredentialRevoked";
@@ -446,6 +475,7 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
446
475
  DeliveryDismissed: "DeliveryDismissed";
447
476
  ShipRenamed: "ShipRenamed";
448
477
  ShipReported: "ShipReported";
478
+ StatementSet: "StatementSet";
449
479
  TurnReported: "TurnReported";
450
480
  SignInTicketIssued: "SignInTicketIssued";
451
481
  FleetLimitsChanged: "FleetLimitsChanged";
@@ -469,6 +499,11 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
469
499
  NetworkRulesDeclared: "NetworkRulesDeclared";
470
500
  NetworkPluginRegistered: "NetworkPluginRegistered";
471
501
  NetworkPluginUnregistered: "NetworkPluginUnregistered";
502
+ BuiltInRuleChanged: "BuiltInRuleChanged";
503
+ ScopesDeclared: "ScopesDeclared";
504
+ ScopesChanged: "ScopesChanged";
505
+ PluginConnected: "PluginConnected";
506
+ PluginDisconnected: "PluginDisconnected";
472
507
  }>;
473
508
  occurredAt: z.ZodISODateTime;
474
509
  actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { eventTypeSchema, fleetScopeSchema, locationKindSchema, scopeSchema, shipKindSchema, shipStatusSchema } from '../fleet/index.js';
2
+ import { commissionedShipKindSchema, eventTypeSchema, locationKindSchema, scopeNameSchema, shipKindSchema, shipStatusSchema } from '../fleet/index.js';
3
3
  import { idSchema } from '../ids/index.js';
4
4
  import { SHIP_HANDLE_MAX_LENGTH, SHIP_HANDLE_MESSAGE, SHIP_HANDLE_PATTERN } from '../rules/ship-handle.js';
5
5
  import { idempotencyKeySchema } from './idempotency-key.js';
@@ -19,16 +19,21 @@ export const shipHandleSchema = z
19
19
  export const SHIP_NOTE_MAX_LENGTH = 500;
20
20
  /**
21
21
  * Input of `fleet.commission`. The note is free text for the operator;
22
- * whitespace around it is dropped. `fleetScopes` adds fleet:read,
23
- * fleet:manage, crew:assign and/or crew:run to the scopes every agent ship has; none
24
- * when left out.
22
+ * whitespace around it is dropped. `scopes` adds scopes, core or a
23
+ * plugin's, to the scopes every ship has; none when left out.
25
24
  * `idempotencyKey` is the caller's own key, as for a send: a retry with the
26
25
  * same key and the same request commissions no second ship.
27
26
  */
28
27
  export const commissionShipInputSchema = z.object({
29
28
  name: shipHandleSchema,
30
29
  type: shipHandleSchema,
31
- fleetScopes: z.array(fleetScopeSchema).optional(),
30
+ /** What the ship is; an agent when left out (decision 0044). */
31
+ kind: commissionedShipKindSchema.optional(),
32
+ scopes: z.array(scopeNameSchema).optional(),
33
+ /** The ship that asked a plugin's ship for this one, whose owner it gets; naming one needs fleet:on-behalf (decision 0045). */
34
+ ownerOf: idSchema('ship').optional(),
35
+ /** The owner argo picked for an app ship the gateway commissions, a person's ship or argo; naming one needs fleet:on-behalf (decision 0045). */
36
+ owner: idSchema('ship').optional(),
32
37
  note: z
33
38
  .string()
34
39
  .trim()
@@ -78,6 +83,14 @@ export const releaseShipOutputSchema = z.strictObject({});
78
83
  export const renameShipInputSchema = z.object({ shipId: idSchema('ship'), name: shipHandleSchema });
79
84
  /** Output of `fleet.rename`: nothing; the OK is the answer. */
80
85
  export const renameShipOutputSchema = z.strictObject({});
86
+ /** Input of `fleet.connectPlugin`: the ship argo connects as a plugin, which then reads every ship (decision 0034). argo's only. */
87
+ export const connectPluginInputSchema = z.object({ shipId: idSchema('ship') });
88
+ /** Output of `fleet.connectPlugin`: nothing; the OK is the answer. */
89
+ export const connectPluginOutputSchema = z.strictObject({});
90
+ /** Input of `fleet.setOwner`: the ship and its new owner, an active person's ship or argo (decision 0045). argo's only. */
91
+ export const setOwnerInputSchema = z.object({ shipId: idSchema('ship'), ownerShipId: idSchema('ship') });
92
+ /** Output of `fleet.setOwner`: nothing; the OK is the answer. */
93
+ export const setOwnerOutputSchema = z.strictObject({});
81
94
  /** Input of `fleet.retire`: the ship to end for good. Never argo. */
82
95
  export const retireShipInputSchema = z.object({ shipId: idSchema('ship') });
83
96
  /** Output of `fleet.retire`: how many of its direct deliveries it abandoned. */
@@ -145,8 +158,8 @@ export const listedShipSchema = z.object({
145
158
  harness: z.string().nullable(),
146
159
  /** The last model the ship's sessions stated on a send, and when (ISO 8601 in UTC); null before any, and for argo. */
147
160
  model: z.object({ id: z.string(), statedAt: z.iso.datetime() }).nullable(),
148
- /** What the ship may do, checked on every call: every agent ship sends and receives, argo has all. */
149
- scopes: z.array(scopeSchema),
161
+ /** What the ship may do, checked on every call: every agent ship sends and receives, argo has every core scope; a plugin's scopes beside them (decision 0046). */
162
+ scopes: z.array(scopeNameSchema),
150
163
  /**
151
164
  * The crew's last report (ISO 8601 in UTC): its state, its note, when it
152
165
  * last reported and the version of its details, never the details
@@ -162,8 +175,17 @@ export const listedShipSchema = z.object({
162
175
  /** When the operator retired the ship (ISO 8601 in UTC); null while it is active. */
163
176
  retiredAt: z.iso.datetime().nullable(),
164
177
  });
165
- /** Output of `fleet.list`: every ship in the caller's fleet, `argo` included. */
166
- export const fleetListOutputSchema = z.array(listedShipSchema);
178
+ /** A ship outside the caller's read reach (decision 0034): its name, type and status only. */
179
+ export const shipOutsideReadReachSchema = z.object({
180
+ id: idSchema('ship'),
181
+ name: z.string(),
182
+ type: z.string(),
183
+ status: shipStatusSchema,
184
+ isInReadReach: z.literal(false),
185
+ });
186
+ export { isInReadReach } from '../rules/read-reach.js';
187
+ /** Output of `fleet.list`: every ship in the caller's fleet, `argo` included, those outside its read reach by name, type and status only. */
188
+ export const fleetListOutputSchema = z.array(z.union([listedShipSchema, shipOutsideReadReachSchema]));
167
189
  /** Up to 15 digits: every number below 2^53, so it stays an exact JavaScript number. */
168
190
  const STREAM_POSITION_PATTERN = /^\d{1,15}$/;
169
191
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../src/schemas/fleet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,WAAW,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACzI,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC3G,OAAO,EAAE,oBAAoB,EAAE,MAA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AC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;CACjH,CAAC,CAAC"}
@@ -24,6 +24,8 @@ export declare const followFleetOutputSchema: z.ZodObject<{
24
24
  type: z.ZodEnum<{
25
25
  FleetInitialised: "FleetInitialised";
26
26
  ShipCommissioned: "ShipCommissioned";
27
+ OwnerSet: "OwnerSet";
28
+ OwnerChanged: "OwnerChanged";
27
29
  ShipClaimed: "ShipClaimed";
28
30
  LeaseRevoked: "LeaseRevoked";
29
31
  CredentialRevoked: "CredentialRevoked";
@@ -44,6 +46,7 @@ export declare const followFleetOutputSchema: z.ZodObject<{
44
46
  DeliveryDismissed: "DeliveryDismissed";
45
47
  ShipRenamed: "ShipRenamed";
46
48
  ShipReported: "ShipReported";
49
+ StatementSet: "StatementSet";
47
50
  TurnReported: "TurnReported";
48
51
  SignInTicketIssued: "SignInTicketIssued";
49
52
  FleetLimitsChanged: "FleetLimitsChanged";
@@ -67,6 +70,11 @@ export declare const followFleetOutputSchema: z.ZodObject<{
67
70
  NetworkRulesDeclared: "NetworkRulesDeclared";
68
71
  NetworkPluginRegistered: "NetworkPluginRegistered";
69
72
  NetworkPluginUnregistered: "NetworkPluginUnregistered";
73
+ BuiltInRuleChanged: "BuiltInRuleChanged";
74
+ ScopesDeclared: "ScopesDeclared";
75
+ ScopesChanged: "ScopesChanged";
76
+ PluginConnected: "PluginConnected";
77
+ PluginDisconnected: "PluginDisconnected";
70
78
  }>;
71
79
  occurredAt: z.ZodISODateTime;
72
80
  actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;