@aeolus-fleet/common 0.26.0 → 0.27.0

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 (48) hide show
  1. package/dist/fleet/index.d.ts +67 -9
  2. package/dist/fleet/index.js +87 -7
  3. package/dist/fleet/index.js.map +1 -1
  4. package/dist/fleet/no-terminal-questions.d.ts +1 -1
  5. package/dist/fleet/no-terminal-questions.js +1 -1
  6. package/dist/fleet/no-terminal-questions.js.map +1 -1
  7. package/dist/rules/index.d.ts +1 -0
  8. package/dist/rules/index.js +1 -0
  9. package/dist/rules/index.js.map +1 -1
  10. package/dist/rules/read-reach.d.ts +4 -0
  11. package/dist/rules/read-reach.js +5 -0
  12. package/dist/rules/read-reach.js.map +1 -0
  13. package/dist/schemas/console.d.ts +6 -0
  14. package/dist/schemas/crew-request.d.ts +2 -0
  15. package/dist/schemas/crew-request.js +3 -0
  16. package/dist/schemas/crew-request.js.map +1 -1
  17. package/dist/schemas/delivery.d.ts +10 -1
  18. package/dist/schemas/delivery.js +8 -2
  19. package/dist/schemas/delivery.js.map +1 -1
  20. package/dist/schemas/fleet.d.ts +61 -37
  21. package/dist/schemas/fleet.js +25 -9
  22. package/dist/schemas/fleet.js.map +1 -1
  23. package/dist/schemas/follow.d.ts +6 -0
  24. package/dist/schemas/history.d.ts +137 -11
  25. package/dist/schemas/history.js +5 -1
  26. package/dist/schemas/history.js.map +1 -1
  27. package/dist/schemas/index.d.ts +2 -0
  28. package/dist/schemas/index.js +2 -0
  29. package/dist/schemas/index.js.map +1 -1
  30. package/dist/schemas/message.d.ts +1 -0
  31. package/dist/schemas/message.js +2 -0
  32. package/dist/schemas/message.js.map +1 -1
  33. package/dist/schemas/needs-attention.d.ts +0 -150
  34. package/dist/schemas/needs-attention.js +1 -33
  35. package/dist/schemas/needs-attention.js.map +1 -1
  36. package/dist/schemas/network.d.ts +302 -12
  37. package/dist/schemas/network.js +77 -15
  38. package/dist/schemas/network.js.map +1 -1
  39. package/dist/schemas/scopes.d.ts +56 -0
  40. package/dist/schemas/scopes.js +35 -0
  41. package/dist/schemas/scopes.js.map +1 -0
  42. package/dist/schemas/ship.d.ts +2 -0
  43. package/dist/schemas/ship.js +7 -0
  44. package/dist/schemas/ship.js.map +1 -1
  45. package/dist/schemas/statement.d.ts +126 -0
  46. package/dist/schemas/statement.js +88 -0
  47. package/dist/schemas/statement.js.map +1 -0
  48. package/package.json +1 -1
@@ -4,48 +4,100 @@ import { z } from 'zod';
4
4
  * scopes, ship kinds, ship statuses, lease locations, selector kinds, delivery
5
5
  * states and event types. Core and console use the same words.
6
6
  */
7
- /** A permission of a ship, stored on the server with the ship and checked before every call. */
8
- export declare const SCOPES: readonly ["messages:send", "messages:receive", "fleet:read", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign", "fleet:network"];
7
+ /**
8
+ * A core scope: a permission of a ship, stored on the server with the ship
9
+ * and checked by core before every call. `messages:force` sends a forced
10
+ * message, one that comes first (decision 0040); `fleet:on-behalf` reads on
11
+ * behalf of a named ship (decision 0034); `scopes:declare` takes up a
12
+ * plugin namespace and `scopes:grant` grants and revokes on a live ship
13
+ * (decision 0046).
14
+ */
15
+ export declare const SCOPES: readonly ["messages:send", "messages:receive", "messages:force", "messages:resend", "fleet:read", "fleet:commission", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign", "fleet:network", "fleet:on-behalf", "scopes:declare", "scopes:grant"];
9
16
  export declare const scopeSchema: z.ZodEnum<{
10
17
  "messages:send": "messages:send";
11
18
  "messages:receive": "messages:receive";
19
+ "messages:force": "messages:force";
20
+ "messages:resend": "messages:resend";
12
21
  "fleet:read": "fleet:read";
22
+ "fleet:commission": "fleet:commission";
13
23
  "fleet:manage": "fleet:manage";
14
24
  "crew:assign": "crew:assign";
15
25
  "crew:run": "crew:run";
16
26
  "labels:define": "labels:define";
17
27
  "labels:assign": "labels:assign";
18
28
  "fleet:network": "fleet:network";
29
+ "fleet:on-behalf": "fleet:on-behalf";
30
+ "scopes:declare": "scopes:declare";
31
+ "scopes:grant": "scopes:grant";
19
32
  }>;
20
33
  export type Scope = z.infer<typeof scopeSchema>;
34
+ /** What each core scope allows, on one line (decision 0046). */
35
+ export declare const CORE_SCOPE_DESCRIPTIONS: Readonly<Record<Scope, string>>;
36
+ /** The namespaces core reserves and enforces; every other one is a plugin's (decision 0046). */
37
+ export declare const CORE_NAMESPACES: readonly ["messages", "fleet", "crew", "labels", "scopes"];
38
+ export declare const SCOPE_NAMESPACE_PATTERN: RegExp;
39
+ export declare const SCOPE_NAME_PATTERN: RegExp;
40
+ /** The most scopes a plugin declares in its namespace (decision 0046). */
41
+ export declare const NAMESPACE_SCOPES_MAX = 20;
42
+ /** The longest one-line description of a declared scope. */
43
+ export declare const SCOPE_DESCRIPTION_MAX_LENGTH = 200;
44
+ /** Whether the namespace is one core reserves. */
45
+ export declare function isCoreNamespace(namespace: string): boolean;
46
+ /**
47
+ * Any scope a ship may hold (decision 0046): `<namespace>:<action>`, a core
48
+ * scope when its namespace is a core one, else a plugin's.
49
+ */
50
+ export declare const scopeNameSchema: z.ZodString;
51
+ export type ScopeName = z.infer<typeof scopeNameSchema>;
21
52
  /**
22
53
  * The scopes commissioning may add to an agent ship, beside sending and
23
- * receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
54
+ * receiving, which every agent ship has (ADR 0002). `messages:resend`
55
+ * resends or dismisses a stuck delivery; `fleet:commission` commissions
56
+ * agent ships; `fleet:manage` manages the ships in its manage reach (decision
57
+ * 0046). `crew:assign` writes crew
24
58
  * request assignments; `crew:run` crews the ships whose requests are assigned
25
59
  * to its ship (decision 0029). `labels:define` defines labels and changes
26
60
  * their values; `labels:assign` assigns and unassigns the labels its ship owns
27
61
  * (decision 0031). `fleet:network` sets the fleet's network rules (decision
28
- * 0034).
62
+ * 0034). `fleet:on-behalf` reads on behalf of a named ship (decision 0034).
29
63
  */
30
- export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign", "fleet:network"];
64
+ export declare const FLEET_SCOPES: readonly ["messages:resend", "fleet:read", "fleet:commission", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign", "fleet:network", "fleet:on-behalf"];
31
65
  export declare const fleetScopeSchema: z.ZodEnum<{
66
+ "messages:resend": "messages:resend";
32
67
  "fleet:read": "fleet:read";
68
+ "fleet:commission": "fleet:commission";
33
69
  "fleet:manage": "fleet:manage";
34
70
  "crew:assign": "crew:assign";
35
71
  "crew:run": "crew:run";
36
72
  "labels:define": "labels:define";
37
73
  "labels:assign": "labels:assign";
38
74
  "fleet:network": "fleet:network";
75
+ "fleet:on-behalf": "fleet:on-behalf";
39
76
  }>;
40
77
  export type FleetScope = z.infer<typeof fleetScopeSchema>;
41
- /** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
42
- export declare const SHIP_KINDS: readonly ["operator", "agent", "viewer"];
78
+ /**
79
+ * What a ship is (decision 0044): `argo` is the one `operator`, the console's
80
+ * door is the `viewer`, an `agent` is a session, a `person` a human's ship
81
+ * crewed by their own app or a chat, and an `app` an application or an
82
+ * outside party, crewed by its adapter.
83
+ */
84
+ export declare const SHIP_KINDS: readonly ["operator", "agent", "viewer", "person", "app"];
43
85
  export declare const shipKindSchema: z.ZodEnum<{
44
86
  operator: "operator";
45
87
  agent: "agent";
46
88
  viewer: "viewer";
89
+ person: "person";
90
+ app: "app";
47
91
  }>;
48
92
  export type ShipKind = z.infer<typeof shipKindSchema>;
93
+ /** The kinds a commission makes; argo and the viewer ship come with the fleet. */
94
+ export declare const COMMISSIONED_SHIP_KINDS: readonly ["agent", "person", "app"];
95
+ export declare const commissionedShipKindSchema: z.ZodEnum<{
96
+ agent: "agent";
97
+ person: "person";
98
+ app: "app";
99
+ }>;
100
+ export type CommissionedShipKind = z.infer<typeof commissionedShipKindSchema>;
49
101
  /** Where the session crewing a ship runs. `OTHER` carries a short description. */
50
102
  export declare const LOCATION_KINDS: readonly ["DEVICE", "CLOUD", "SERVER", "OTHER"];
51
103
  export declare const locationKindSchema: z.ZodEnum<{
@@ -69,8 +121,8 @@ export type ShipStatus = z.infer<typeof shipStatusSchema>;
69
121
  /** Who a message is for: one ship (by id or by name) or any ship of a type. Group and fleet come later. */
70
122
  export declare const SELECTOR_KINDS: readonly ["ship", "type"];
71
123
  export declare const selectorKindSchema: z.ZodEnum<{
72
- ship: "ship";
73
124
  type: "type";
125
+ ship: "ship";
74
126
  }>;
75
127
  export type SelectorKind = z.infer<typeof selectorKindSchema>;
76
128
  /**
@@ -96,10 +148,12 @@ export declare const deliveryStateSchema: z.ZodEnum<{
96
148
  }>;
97
149
  export type DeliveryState = z.infer<typeof deliveryStateSchema>;
98
150
  /** The event types written so far. Each later slice adds the ones it writes. */
99
- export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "LeasePushed", "DeliveryReceived", "DeliveryHanded", "DeliveryAcknowledged", "DeliveryHandled", "DeliveryNotHandled", "DeliveryOverdue", "DeliveryUndeliverable", "DeliveryReturned", "ShipRetired", "DeliveryAbandoned", "DeliveryDismissed", "ShipRenamed", "ShipReported", "TurnReported", "SignInTicketIssued", "FleetLimitsChanged", "ViewerSessionStarted", "CrewRequested", "CrewRequestRemoved", "CrewAssigned", "CrewStatusChanged", "CrewRequestExplained", "CrewRequestGivenBack", "LabelDefined", "LabelValuesChanged", "LabelRetired", "LabelAssigned", "LabelUnassigned", "LabelDeleted", "WorktreeClearRequested", "WorktreeCleared", "WorktreeClearRemoved", "NetworkRulesSet", "NetworkRulesDeclared", "NetworkPluginRegistered", "NetworkPluginUnregistered"];
151
+ export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "OwnerSet", "OwnerChanged", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "LeasePushed", "DeliveryReceived", "DeliveryHanded", "DeliveryAcknowledged", "DeliveryHandled", "DeliveryNotHandled", "DeliveryOverdue", "DeliveryUndeliverable", "DeliveryReturned", "ShipRetired", "DeliveryAbandoned", "DeliveryDismissed", "ShipRenamed", "ShipReported", "StatementSet", "TurnReported", "SignInTicketIssued", "FleetLimitsChanged", "ViewerSessionStarted", "CrewRequested", "CrewRequestRemoved", "CrewAssigned", "CrewStatusChanged", "CrewRequestExplained", "CrewRequestGivenBack", "LabelDefined", "LabelValuesChanged", "LabelRetired", "LabelAssigned", "LabelUnassigned", "LabelDeleted", "WorktreeClearRequested", "WorktreeCleared", "WorktreeClearRemoved", "NetworkRulesSet", "NetworkRulesDeclared", "NetworkPluginRegistered", "NetworkPluginUnregistered", "BuiltInRuleChanged", "ScopesDeclared", "ScopesChanged"];
100
152
  export declare const eventTypeSchema: z.ZodEnum<{
101
153
  FleetInitialised: "FleetInitialised";
102
154
  ShipCommissioned: "ShipCommissioned";
155
+ OwnerSet: "OwnerSet";
156
+ OwnerChanged: "OwnerChanged";
103
157
  ShipClaimed: "ShipClaimed";
104
158
  LeaseRevoked: "LeaseRevoked";
105
159
  CredentialRevoked: "CredentialRevoked";
@@ -120,6 +174,7 @@ export declare const eventTypeSchema: z.ZodEnum<{
120
174
  DeliveryDismissed: "DeliveryDismissed";
121
175
  ShipRenamed: "ShipRenamed";
122
176
  ShipReported: "ShipReported";
177
+ StatementSet: "StatementSet";
123
178
  TurnReported: "TurnReported";
124
179
  SignInTicketIssued: "SignInTicketIssued";
125
180
  FleetLimitsChanged: "FleetLimitsChanged";
@@ -143,6 +198,9 @@ export declare const eventTypeSchema: z.ZodEnum<{
143
198
  NetworkRulesDeclared: "NetworkRulesDeclared";
144
199
  NetworkPluginRegistered: "NetworkPluginRegistered";
145
200
  NetworkPluginUnregistered: "NetworkPluginUnregistered";
201
+ BuiltInRuleChanged: "BuiltInRuleChanged";
202
+ ScopesDeclared: "ScopesDeclared";
203
+ ScopesChanged: "ScopesChanged";
146
204
  }>;
147
205
  export type EventType = z.infer<typeof eventTypeSchema>;
148
206
  export * from './argo-message.js';
@@ -4,23 +4,97 @@ import { z } from 'zod';
4
4
  * scopes, ship kinds, ship statuses, lease locations, selector kinds, delivery
5
5
  * states and event types. Core and console use the same words.
6
6
  */
7
- /** A permission of a ship, stored on the server with the ship and checked before every call. */
8
- export const SCOPES = ['messages:send', 'messages:receive', 'fleet:read', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign', 'fleet:network'];
7
+ /**
8
+ * A core scope: a permission of a ship, stored on the server with the ship
9
+ * and checked by core before every call. `messages:force` sends a forced
10
+ * message, one that comes first (decision 0040); `fleet:on-behalf` reads on
11
+ * behalf of a named ship (decision 0034); `scopes:declare` takes up a
12
+ * plugin namespace and `scopes:grant` grants and revokes on a live ship
13
+ * (decision 0046).
14
+ */
15
+ export const SCOPES = [
16
+ 'messages:send',
17
+ 'messages:receive',
18
+ 'messages:force',
19
+ 'messages:resend',
20
+ 'fleet:read',
21
+ 'fleet:commission',
22
+ 'fleet:manage',
23
+ 'crew:assign',
24
+ 'crew:run',
25
+ 'labels:define',
26
+ 'labels:assign',
27
+ 'fleet:network',
28
+ 'fleet:on-behalf',
29
+ 'scopes:declare',
30
+ 'scopes:grant',
31
+ ];
9
32
  export const scopeSchema = z.enum(SCOPES);
33
+ /** What each core scope allows, on one line (decision 0046). */
34
+ export const CORE_SCOPE_DESCRIPTIONS = {
35
+ 'messages:send': 'Send, answer and ask other ships',
36
+ 'messages:receive': 'Receive and confirm the deliveries to its own ship',
37
+ 'messages:force': 'Send a forced message, which comes first',
38
+ 'messages:resend': 'Resend or dismiss a stuck delivery of a message its ship reads',
39
+ 'fleet:read': 'Read ships, timelines, messages, labels, events and fleet-wide views',
40
+ 'fleet:commission': 'Commission agent ships, granting only what its ship may grant',
41
+ 'fleet:manage': 'Rename, release, recrew and retire the ships it manages; starting prompts, pings, crew requests and worktree clears',
42
+ 'crew:assign': 'Assign crew requests to trierarchs and explain why none fits',
43
+ 'crew:run': 'Crew the ships whose crew requests are assigned to its ship',
44
+ 'labels:define': 'Define labels, change their values and declare network rules on them',
45
+ 'labels:assign': 'Assign and unassign the values of labels its ship owns',
46
+ 'fleet:network': "The networking plugin's calls: the fleet's network rules",
47
+ 'fleet:on-behalf': "Read on behalf of a named ship, with that ship's read reach",
48
+ 'scopes:declare': 'Take up one plugin namespace and declare its scopes',
49
+ 'scopes:grant': 'Grant and revoke scopes on a live ship, within what its ship may grant',
50
+ };
51
+ /** The namespaces core reserves and enforces; every other one is a plugin's (decision 0046). */
52
+ export const CORE_NAMESPACES = ['messages', 'fleet', 'crew', 'labels', 'scopes'];
53
+ /** A namespace or an action: lowercase letters, digits and hyphens, starting with a letter, 1 to 32 characters (decision 0046). */
54
+ const SCOPE_PART = '[a-z][a-z0-9-]{0,31}';
55
+ export const SCOPE_NAMESPACE_PATTERN = new RegExp(`^${SCOPE_PART}$`);
56
+ export const SCOPE_NAME_PATTERN = new RegExp(`^${SCOPE_PART}:${SCOPE_PART}$`);
57
+ /** The most scopes a plugin declares in its namespace (decision 0046). */
58
+ export const NAMESPACE_SCOPES_MAX = 20;
59
+ /** The longest one-line description of a declared scope. */
60
+ export const SCOPE_DESCRIPTION_MAX_LENGTH = 200;
61
+ /** Whether the namespace is one core reserves. */
62
+ export function isCoreNamespace(namespace) {
63
+ return CORE_NAMESPACES.some((core) => core === namespace);
64
+ }
65
+ /**
66
+ * Any scope a ship may hold (decision 0046): `<namespace>:<action>`, a core
67
+ * scope when its namespace is a core one, else a plugin's.
68
+ */
69
+ export const scopeNameSchema = z
70
+ .string()
71
+ .regex(SCOPE_NAME_PATTERN, 'A scope is <namespace>:<action>')
72
+ .refine((scope) => !isCoreNamespace(scope.slice(0, scope.indexOf(':'))) || scopeSchema.safeParse(scope).success, 'No such core scope');
10
73
  /**
11
74
  * The scopes commissioning may add to an agent ship, beside sending and
12
- * receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
75
+ * receiving, which every agent ship has (ADR 0002). `messages:resend`
76
+ * resends or dismisses a stuck delivery; `fleet:commission` commissions
77
+ * agent ships; `fleet:manage` manages the ships in its manage reach (decision
78
+ * 0046). `crew:assign` writes crew
13
79
  * request assignments; `crew:run` crews the ships whose requests are assigned
14
80
  * to its ship (decision 0029). `labels:define` defines labels and changes
15
81
  * their values; `labels:assign` assigns and unassigns the labels its ship owns
16
82
  * (decision 0031). `fleet:network` sets the fleet's network rules (decision
17
- * 0034).
83
+ * 0034). `fleet:on-behalf` reads on behalf of a named ship (decision 0034).
18
84
  */
19
- export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign', 'fleet:network'];
85
+ export const FLEET_SCOPES = ['messages:resend', 'fleet:read', 'fleet:commission', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign', 'fleet:network', 'fleet:on-behalf'];
20
86
  export const fleetScopeSchema = z.enum(FLEET_SCOPES);
21
- /** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
22
- export const SHIP_KINDS = ['operator', 'agent', 'viewer'];
87
+ /**
88
+ * What a ship is (decision 0044): `argo` is the one `operator`, the console's
89
+ * door is the `viewer`, an `agent` is a session, a `person` a human's ship
90
+ * crewed by their own app or a chat, and an `app` an application or an
91
+ * outside party, crewed by its adapter.
92
+ */
93
+ export const SHIP_KINDS = ['operator', 'agent', 'viewer', 'person', 'app'];
23
94
  export const shipKindSchema = z.enum(SHIP_KINDS);
95
+ /** The kinds a commission makes; argo and the viewer ship come with the fleet. */
96
+ export const COMMISSIONED_SHIP_KINDS = ['agent', 'person', 'app'];
97
+ export const commissionedShipKindSchema = z.enum(COMMISSIONED_SHIP_KINDS);
24
98
  /** Where the session crewing a ship runs. `OTHER` carries a short description. */
25
99
  export const LOCATION_KINDS = ['DEVICE', 'CLOUD', 'SERVER', 'OTHER'];
26
100
  export const locationKindSchema = z.enum(LOCATION_KINDS);
@@ -58,6 +132,8 @@ export const deliveryStateSchema = z.enum(DELIVERY_STATES);
58
132
  export const EVENT_TYPES = [
59
133
  'FleetInitialised',
60
134
  'ShipCommissioned',
135
+ 'OwnerSet',
136
+ 'OwnerChanged',
61
137
  'ShipClaimed',
62
138
  'LeaseRevoked',
63
139
  'CredentialRevoked',
@@ -78,6 +154,7 @@ export const EVENT_TYPES = [
78
154
  'DeliveryDismissed',
79
155
  'ShipRenamed',
80
156
  'ShipReported',
157
+ 'StatementSet',
81
158
  'TurnReported',
82
159
  'SignInTicketIssued',
83
160
  'FleetLimitsChanged',
@@ -101,6 +178,9 @@ export const EVENT_TYPES = [
101
178
  'NetworkRulesDeclared',
102
179
  'NetworkPluginRegistered',
103
180
  'NetworkPluginUnregistered',
181
+ 'BuiltInRuleChanged',
182
+ 'ScopesDeclared',
183
+ 'ScopesChanged',
104
184
  ];
105
185
  export const eventTypeSchema = z.enum(EVENT_TYPES);
106
186
  export * from './argo-message.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fleet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH,gGAAgG;AAChG,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AACjL,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAG1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAClJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAGrD,4FAA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AuB;IACvB,kBAAkB;IAClB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,aAAa;IACb,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,sBAAsB;IACtB,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,wBAAwB;IACxB,iBAAiB;IACjB,sBAAsB;IACtB,iBAAiB;IACjB,sBAAsB;IACtB,yBAAyB;IACzB,2BAA2B;CACnB,CAAC;AACX,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAGnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fleet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,eAAe;IACf,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,YAAY;IACZ,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,UAAU;IACV,eAAe;IACf,eAAe;IACf,eAAe;IACf,iBAAiB;IACjB,gBAAgB;IAChB,cAAc;CACN,CAAC;AACX,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAG1C,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAoC;IACtE,eAAe,EAAE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AAW,CAAC,CAAC;AAGnD,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC"}
@@ -4,4 +4,4 @@
4
4
  * trierarch adds it to its first and every wake prompt, and the aeolus
5
5
  * plugin's crew skills say the same.
6
6
  */
7
- export declare const NO_TERMINAL_QUESTIONS = "No human reads this terminal. Never ask here; ask over the fleet. A question only the operator can answer goes to argo.";
7
+ export declare const NO_TERMINAL_QUESTIONS = "No human reads this terminal. Never ask here; ask over the fleet. A question only a human can answer goes to your ship's owner (argo when argo owns your ship).";
@@ -4,5 +4,5 @@
4
4
  * trierarch adds it to its first and every wake prompt, and the aeolus
5
5
  * plugin's crew skills say the same.
6
6
  */
7
- export const NO_TERMINAL_QUESTIONS = 'No human reads this terminal. Never ask here; ask over the fleet. A question only the operator can answer goes to argo.';
7
+ export const NO_TERMINAL_QUESTIONS = "No human reads this terminal. Never ask here; ask over the fleet. A question only a human can answer goes to your ship's owner (argo when argo owns your ship).";
8
8
  //# sourceMappingURL=no-terminal-questions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"no-terminal-questions.js","sourceRoot":"","sources":["../../src/fleet/no-terminal-questions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,yHAAyH,CAAC"}
1
+ {"version":3,"file":"no-terminal-questions.js","sourceRoot":"","sources":["../../src/fleet/no-terminal-questions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,iKAAiK,CAAC"}
@@ -7,5 +7,6 @@
7
7
  export * from './label-handle.js';
8
8
  export * from './payload.js';
9
9
  export * from './plain-http.js';
10
+ export * from './read-reach.js';
10
11
  export * from './ship-handle.js';
11
12
  export * from './sign-in.js';
@@ -7,6 +7,7 @@
7
7
  export * from './label-handle.js';
8
8
  export * from './payload.js';
9
9
  export * from './plain-http.js';
10
+ export * from './read-reach.js';
10
11
  export * from './ship-handle.js';
11
12
  export * from './sign-in.js';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Whether the caller reads the ship whole, rather than its name, type and status only (decision 0034). */
2
+ export declare function isInReadReach<Ship extends object>(ship: Ship): ship is Exclude<Ship, {
3
+ isInReadReach: false;
4
+ }>;
@@ -0,0 +1,5 @@
1
+ /** Whether the caller reads the ship whole, rather than its name, type and status only (decision 0034). */
2
+ export function isInReadReach(ship) {
3
+ return !('isInReadReach' in ship);
4
+ }
5
+ //# sourceMappingURL=read-reach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read-reach.js","sourceRoot":"","sources":["../../src/rules/read-reach.ts"],"names":[],"mappings":"AAAA,2GAA2G;AAC3G,MAAM,UAAU,aAAa,CAAsB,IAAU;IAC3D,OAAO,CAAC,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC;AACpC,CAAC"}
@@ -50,13 +50,19 @@ export declare const consoleSessionOutputSchema: z.ZodObject<{
50
50
  scopes: z.ZodArray<z.ZodEnum<{
51
51
  "messages:send": "messages:send";
52
52
  "messages:receive": "messages:receive";
53
+ "messages:force": "messages:force";
54
+ "messages:resend": "messages:resend";
53
55
  "fleet:read": "fleet:read";
56
+ "fleet:commission": "fleet:commission";
54
57
  "fleet:manage": "fleet:manage";
55
58
  "crew:assign": "crew:assign";
56
59
  "crew:run": "crew:run";
57
60
  "labels:define": "labels:define";
58
61
  "labels:assign": "labels:assign";
59
62
  "fleet:network": "fleet:network";
63
+ "fleet:on-behalf": "fleet:on-behalf";
64
+ "scopes:declare": "scopes:declare";
65
+ "scopes:grant": "scopes:grant";
60
66
  }>>;
61
67
  }, z.core.$strip>;
62
68
  export type ConsoleSessionOutput = z.infer<typeof consoleSessionOutputSchema>;
@@ -165,6 +165,8 @@ export declare const assignedCrewRequestsOutputSchema: z.ZodArray<z.ZodObject<{
165
165
  releasing: "releasing";
166
166
  }>>;
167
167
  isFinal: z.ZodBoolean;
168
+ ownerShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
169
+ ownerName: z.ZodNullable<z.ZodString>;
168
170
  }, z.core.$strip>>;
169
171
  /**
170
172
  * Input of `fleet.explainCrewRequest` (crew:assign): why no trierarch can
@@ -99,6 +99,9 @@ export const assignedCrewRequestsOutputSchema = z.array(z.object({
99
99
  status: crewStatusSchema.nullable(),
100
100
  /** Whether its crew is final (decision 0029): kept whatever status follows, cleared on every new settings version. */
101
101
  isFinal: z.boolean(),
102
+ /** Its ship's owner as it is now, by id and name, where the trierarch sends its trouble (decision 0045); both null for a ship with none. */
103
+ ownerShipId: idSchema('ship').nullable(),
104
+ ownerName: z.string().nullable(),
102
105
  }));
103
106
  /**
104
107
  * Input of `fleet.explainCrewRequest` (crew:assign): why no trierarch can
@@ -1 +1 @@
1
- {"version":3,"file":"crew-request.js","sourceRoot":"","sources":["../../src/schemas/crew-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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H,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,8BAA8B,EAAE,cAAc,CAAC;SACnD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;SAC1D,QAAQ,EAAE;CACd,CAAC,CAAC;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAEjE;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC;SACtB,GAAG,CAAC,8BAA8B,EAAE,cAAc,CAAC;SACnD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;CAC9D,CAAC,CAAC;AAEH,4EAA4E;AAC5E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC"}
@@ -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,6 +76,7 @@ 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>;
@@ -101,6 +103,7 @@ export declare const pushReceivedDeliverySchema: z.ZodObject<{
101
103
  model: z.ZodNullable<z.ZodString>;
102
104
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
103
105
  sentAt: z.ZodISODateTime;
106
+ isForced: z.ZodBoolean;
104
107
  attempts: z.ZodInt;
105
108
  state: z.ZodEnum<{
106
109
  received: "received";
@@ -129,6 +132,7 @@ export declare const pushReceiveOutputSchema: z.ZodObject<{
129
132
  model: z.ZodNullable<z.ZodString>;
130
133
  inReplyTo: z.ZodNullable<z.ZodType<`msg_${string}`, unknown, z.core.$ZodTypeInternals<`msg_${string}`, unknown>>>;
131
134
  sentAt: z.ZodISODateTime;
135
+ isForced: z.ZodBoolean;
132
136
  attempts: z.ZodInt;
133
137
  state: z.ZodEnum<{
134
138
  received: "received";
@@ -200,8 +204,13 @@ export declare const inboxInputSchema: z.ZodOptional<z.ZodObject<{
200
204
  waitSeconds: z.ZodOptional<z.ZodInt>;
201
205
  }, z.core.$strip>>;
202
206
  export type InboxInput = z.infer<typeof inboxInputSchema>;
203
- /** Output of `ship.inbox`: how many deliveries the crew's next receive would hand it. */
207
+ /**
208
+ * Output of `ship.inbox`: how many deliveries the crew's next receive would
209
+ * hand it, and how many of those are forced and not handed over yet: the ones
210
+ * a computer side hands over at once, busy turn or not (decision 0040).
211
+ */
204
212
  export declare const inboxOutputSchema: z.ZodObject<{
205
213
  waiting: z.ZodInt;
214
+ forced: z.ZodInt;
206
215
  }, z.core.$strip>;
207
216
  export type InboxOutput = z.infer<typeof inboxOutputSchema>;
@@ -49,6 +49,8 @@ export const receivedDeliverySchema = z.object({
49
49
  sentAt: z.iso.datetime(),
50
50
  /** How many times the delivery has been claimed, this receive included. */
51
51
  attempts: z.int().positive(),
52
+ /** Whether its message was sent forced, to act on now (decision 0040). */
53
+ isForced: z.boolean(),
52
54
  });
53
55
  /** Output of `ship.receive`: the deliveries claimed, none when the wait ended without one. */
54
56
  export const receiveOutputSchema = z.object({
@@ -114,6 +116,10 @@ export const INBOX_WAIT_MAX_SECONDS = 25;
114
116
  export const inboxInputSchema = z
115
117
  .object({ waitSeconds: z.int().min(0).max(INBOX_WAIT_MAX_SECONDS).optional() })
116
118
  .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) });
119
+ /**
120
+ * Output of `ship.inbox`: how many deliveries the crew's next receive would
121
+ * hand it, and how many of those are forced and not handed over yet: the ones
122
+ * a computer side hands over at once, busy turn or not (decision 0040).
123
+ */
124
+ export const inboxOutputSchema = z.object({ waiting: z.int().min(0), forced: z.int().min(0) });
119
125
  //# 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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