@aeolus-fleet/common 0.19.0 → 0.20.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.
- package/dist/fleet/index.d.ts +19 -4
- package/dist/fleet/index.js +14 -3
- package/dist/fleet/index.js.map +1 -1
- package/dist/ids/index.d.ts +4 -0
- package/dist/ids/index.js +2 -0
- package/dist/ids/index.js.map +1 -1
- package/dist/schemas/clear-request.d.ts +46 -0
- package/dist/schemas/clear-request.js +42 -0
- package/dist/schemas/clear-request.js.map +1 -0
- package/dist/schemas/console.d.ts +2 -0
- package/dist/schemas/crew-request.d.ts +6 -0
- package/dist/schemas/crew-request.js +12 -1
- package/dist/schemas/crew-request.js.map +1 -1
- package/dist/schemas/fleet.d.ts +40 -0
- package/dist/schemas/fleet.js +3 -0
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +9 -0
- package/dist/schemas/history.d.ts +28 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/label.d.ts +110 -0
- package/dist/schemas/label.js +58 -0
- package/dist/schemas/label.js.map +1 -0
- package/dist/trierarch/crew-settings.d.ts +10 -3
- package/dist/trierarch/crew-settings.js +17 -3
- package/dist/trierarch/crew-settings.js.map +1 -1
- package/dist/trierarch/report-details.d.ts +19 -9
- package/dist/trierarch/report-details.js +26 -4
- package/dist/trierarch/report-details.js.map +1 -1
- package/package.json +1 -1
package/dist/fleet/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
* states and event types. Core and console use the same words.
|
|
6
6
|
*/
|
|
7
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"];
|
|
8
|
+
export declare const SCOPES: readonly ["messages:send", "messages:receive", "fleet:read", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign"];
|
|
9
9
|
export declare const scopeSchema: z.ZodEnum<{
|
|
10
10
|
"messages:send": "messages:send";
|
|
11
11
|
"messages:receive": "messages:receive";
|
|
@@ -13,20 +13,26 @@ export declare const scopeSchema: z.ZodEnum<{
|
|
|
13
13
|
"fleet:manage": "fleet:manage";
|
|
14
14
|
"crew:assign": "crew:assign";
|
|
15
15
|
"crew:run": "crew:run";
|
|
16
|
+
"labels:define": "labels:define";
|
|
17
|
+
"labels:assign": "labels:assign";
|
|
16
18
|
}>;
|
|
17
19
|
export type Scope = z.infer<typeof scopeSchema>;
|
|
18
20
|
/**
|
|
19
21
|
* The scopes commissioning may add to an agent ship, beside sending and
|
|
20
22
|
* receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
|
|
21
23
|
* request assignments; `crew:run` crews the ships whose requests are assigned
|
|
22
|
-
* to its ship (decision 0029).
|
|
24
|
+
* to its ship (decision 0029). `labels:define` defines labels and changes
|
|
25
|
+
* their values; `labels:assign` assigns and unassigns the labels its ship owns
|
|
26
|
+
* (decision 0031).
|
|
23
27
|
*/
|
|
24
|
-
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "crew:assign", "crew:run"];
|
|
28
|
+
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign"];
|
|
25
29
|
export declare const fleetScopeSchema: z.ZodEnum<{
|
|
26
30
|
"fleet:read": "fleet:read";
|
|
27
31
|
"fleet:manage": "fleet:manage";
|
|
28
32
|
"crew:assign": "crew:assign";
|
|
29
33
|
"crew:run": "crew:run";
|
|
34
|
+
"labels:define": "labels:define";
|
|
35
|
+
"labels:assign": "labels:assign";
|
|
30
36
|
}>;
|
|
31
37
|
export type FleetScope = z.infer<typeof fleetScopeSchema>;
|
|
32
38
|
/** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
|
|
@@ -80,7 +86,7 @@ export declare const deliveryStateSchema: z.ZodEnum<{
|
|
|
80
86
|
}>;
|
|
81
87
|
export type DeliveryState = z.infer<typeof deliveryStateSchema>;
|
|
82
88
|
/** The event types written so far. Each later slice adds the ones it writes. */
|
|
83
|
-
export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "DeliveryClaimed", "DeliveryAcknowledged", "DeliveryUndeliverable", "DeliveryReturned", "ShipRetired", "DeliveryAbandoned", "DeliveryDismissed", "ShipRenamed", "ShipReported", "SignInTicketIssued", "FleetLimitsChanged", "ViewerSessionStarted", "CrewRequested", "CrewRequestRemoved", "CrewAssigned", "CrewStatusChanged", "CrewRequestExplained"];
|
|
89
|
+
export declare const EVENT_TYPES: readonly ["FleetInitialised", "ShipCommissioned", "ShipClaimed", "LeaseRevoked", "CredentialRevoked", "StartingPromptIssued", "OperatorPasswordReset", "MessageAccepted", "DeliveryClaimed", "DeliveryAcknowledged", "DeliveryUndeliverable", "DeliveryReturned", "ShipRetired", "DeliveryAbandoned", "DeliveryDismissed", "ShipRenamed", "ShipReported", "SignInTicketIssued", "FleetLimitsChanged", "ViewerSessionStarted", "CrewRequested", "CrewRequestRemoved", "CrewAssigned", "CrewStatusChanged", "CrewRequestExplained", "LabelDefined", "LabelValuesChanged", "LabelRetired", "LabelAssigned", "LabelUnassigned", "LabelDeleted", "WorktreeClearRequested", "WorktreeCleared", "WorktreeClearRemoved"];
|
|
84
90
|
export declare const eventTypeSchema: z.ZodEnum<{
|
|
85
91
|
FleetInitialised: "FleetInitialised";
|
|
86
92
|
ShipCommissioned: "ShipCommissioned";
|
|
@@ -107,6 +113,15 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
107
113
|
CrewAssigned: "CrewAssigned";
|
|
108
114
|
CrewStatusChanged: "CrewStatusChanged";
|
|
109
115
|
CrewRequestExplained: "CrewRequestExplained";
|
|
116
|
+
LabelDefined: "LabelDefined";
|
|
117
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
118
|
+
LabelRetired: "LabelRetired";
|
|
119
|
+
LabelAssigned: "LabelAssigned";
|
|
120
|
+
LabelUnassigned: "LabelUnassigned";
|
|
121
|
+
LabelDeleted: "LabelDeleted";
|
|
122
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
123
|
+
WorktreeCleared: "WorktreeCleared";
|
|
124
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
110
125
|
}>;
|
|
111
126
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
112
127
|
export * from './mcp-url.js';
|
package/dist/fleet/index.js
CHANGED
|
@@ -5,15 +5,17 @@ import { z } from 'zod';
|
|
|
5
5
|
* states and event types. Core and console use the same words.
|
|
6
6
|
*/
|
|
7
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'];
|
|
8
|
+
export const SCOPES = ['messages:send', 'messages:receive', 'fleet:read', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign'];
|
|
9
9
|
export const scopeSchema = z.enum(SCOPES);
|
|
10
10
|
/**
|
|
11
11
|
* The scopes commissioning may add to an agent ship, beside sending and
|
|
12
12
|
* receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
|
|
13
13
|
* request assignments; `crew:run` crews the ships whose requests are assigned
|
|
14
|
-
* to its ship (decision 0029).
|
|
14
|
+
* to its ship (decision 0029). `labels:define` defines labels and changes
|
|
15
|
+
* their values; `labels:assign` assigns and unassigns the labels its ship owns
|
|
16
|
+
* (decision 0031).
|
|
15
17
|
*/
|
|
16
|
-
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', 'crew:assign', 'crew:run'];
|
|
18
|
+
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign'];
|
|
17
19
|
export const fleetScopeSchema = z.enum(FLEET_SCOPES);
|
|
18
20
|
/** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
|
|
19
21
|
export const SHIP_KINDS = ['operator', 'agent', 'viewer'];
|
|
@@ -64,6 +66,15 @@ export const EVENT_TYPES = [
|
|
|
64
66
|
'CrewAssigned',
|
|
65
67
|
'CrewStatusChanged',
|
|
66
68
|
'CrewRequestExplained',
|
|
69
|
+
'LabelDefined',
|
|
70
|
+
'LabelValuesChanged',
|
|
71
|
+
'LabelRetired',
|
|
72
|
+
'LabelAssigned',
|
|
73
|
+
'LabelUnassigned',
|
|
74
|
+
'LabelDeleted',
|
|
75
|
+
'WorktreeClearRequested',
|
|
76
|
+
'WorktreeCleared',
|
|
77
|
+
'WorktreeClearRemoved',
|
|
67
78
|
];
|
|
68
79
|
export const eventTypeSchema = z.enum(EVENT_TYPES);
|
|
69
80
|
export * from './mcp-url.js';
|
package/dist/fleet/index.js.map
CHANGED
|
@@ -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,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,gGAAgG;AAChG,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,eAAe,EAAE,kBAAkB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AAChK,MAAM,CAAC,MAAM,WAAW,GAAG,C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M,CAAC,MAAM,WAAW,GAAG;IACzB,kBAAkB;IAClB,kBAAkB;IAClB,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,uBAAuB;IACvB,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,uBAAuB;IACvB,kBAAkB;IAClB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,aAAa;IACb,cAAc;IACd,oBAAoB;IACpB,oBAAoB;IACpB,sBAAsB;IACtB,eAAe;IACf,oBAAoB;IACpB,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,cAAc;IACd,oBAAoB;IACpB,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,wBAAwB;IACxB,iBAAiB;IACjB,sBAAsB;CACd,CAAC;AACX,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAGnD,cAAc,cAAc,CAAC"}
|
package/dist/ids/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export declare const ID_PREFIXES: {
|
|
|
19
19
|
readonly credential: "crd";
|
|
20
20
|
readonly operator: "opr";
|
|
21
21
|
readonly consoleSession: "ses";
|
|
22
|
+
readonly label: "lbl";
|
|
23
|
+
readonly labelValue: "lbv";
|
|
22
24
|
};
|
|
23
25
|
export type IdKind = keyof typeof ID_PREFIXES;
|
|
24
26
|
/** Every kind of id, in the order of ID_PREFIXES. */
|
|
@@ -34,6 +36,8 @@ export type LeaseId = Id<'lease'>;
|
|
|
34
36
|
export type CredentialId = Id<'credential'>;
|
|
35
37
|
export type OperatorId = Id<'operator'>;
|
|
36
38
|
export type ConsoleSessionId = Id<'consoleSession'>;
|
|
39
|
+
export type LabelId = Id<'label'>;
|
|
40
|
+
export type LabelValueId = Id<'labelValue'>;
|
|
37
41
|
export interface IdGeneratorOptions {
|
|
38
42
|
/** Milliseconds since the Unix epoch. Defaults to `Date.now`. */
|
|
39
43
|
now?: () => number;
|
package/dist/ids/index.js
CHANGED
package/dist/ids/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ids/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ids/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,KAAK,EAAE,KAAK;IACZ,UAAU,EAAE,KAAK;CACT,CAAC;AAIX,SAAS,QAAQ,CAAC,KAAa;IAC7B,OAAO,KAAK,IAAI,WAAW,CAAC;AAC9B,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAsB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAgBrF,6DAA6D;AAC7D,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AACpD,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,YAAY,GAAG,EAAE,C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IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QAC3C,CAAC;QACD,MAAM,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;GAIG;AACH,SAAS,SAAS,CAAC,KAAiB;IAClC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;QACxC,MAAM,IAAI,UAAU,CAAC,kDAAkD,CAAC,CAAC;IAC3E,CAAC;IACD,KAAK,IAAI,KAAK,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QAC1D,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;YACf,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;YACxB,OAAO;QACT,CAAC;QACD,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAS,MAAM,CAAC,KAAa;IAC3B,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,UAAU,CAAC,uBAAuB,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Inputs and outputs of the clear request procedures (decision 0032): a
|
|
4
|
+
* declared request that a trierarch clear a worktree it kept. The worktree is
|
|
5
|
+
* named by the ship it belonged to and its repository, never a path: the
|
|
6
|
+
* trierarch maps the name to its path on its machine.
|
|
7
|
+
*/
|
|
8
|
+
/** The most pending clear requests one trierarch may hold (decision 0032). */
|
|
9
|
+
export declare const CLEAR_REQUESTS_PER_TRIERARCH_MAX = 100;
|
|
10
|
+
/** Input of `fleet.clearWorktree` (fleet:manage): the trierarch, and the kept worktree by its ship and repository. */
|
|
11
|
+
export declare const clearWorktreeInputSchema: z.ZodObject<{
|
|
12
|
+
trierarchShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
13
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
14
|
+
repository: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
/** Output of `fleet.clearWorktree`: nothing; the OK is the answer. */
|
|
17
|
+
export declare const clearWorktreeOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
18
|
+
/** How a trierarch's clearing came out: it removed the worktree, or it kept no such worktree. */
|
|
19
|
+
export declare const CLEAR_OUTCOMES: readonly ["removed", "not-kept"];
|
|
20
|
+
export declare const clearOutcomeSchema: z.ZodEnum<{
|
|
21
|
+
removed: "removed";
|
|
22
|
+
"not-kept": "not-kept";
|
|
23
|
+
}>;
|
|
24
|
+
export type ClearOutcome = z.infer<typeof clearOutcomeSchema>;
|
|
25
|
+
/** Input of `fleet.confirmWorktreeCleared` (crew:run): the worktree of a request to the caller's ship, and how it came out. */
|
|
26
|
+
export declare const confirmWorktreeClearedInputSchema: z.ZodObject<{
|
|
27
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
28
|
+
repository: z.ZodString;
|
|
29
|
+
outcome: z.ZodEnum<{
|
|
30
|
+
removed: "removed";
|
|
31
|
+
"not-kept": "not-kept";
|
|
32
|
+
}>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
/** Output of `fleet.confirmWorktreeCleared`: nothing; the OK is the answer. */
|
|
35
|
+
export declare const confirmWorktreeClearedOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
36
|
+
/**
|
|
37
|
+
* Output of `fleet.clearRequests`: the pending clear requests (ISO 8601 in
|
|
38
|
+
* UTC), every trierarch's to fleet:read, the caller's own to crew:run.
|
|
39
|
+
*/
|
|
40
|
+
export declare const clearRequestsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
41
|
+
trierarchShipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
42
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
43
|
+
repository: z.ZodString;
|
|
44
|
+
requestedBy: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
45
|
+
requestedAt: z.ZodISODateTime;
|
|
46
|
+
}, z.core.$strip>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { idSchema } from '../ids/index.js';
|
|
3
|
+
import { trierarchNameSchema } from '../trierarch/names.js';
|
|
4
|
+
/**
|
|
5
|
+
* Inputs and outputs of the clear request procedures (decision 0032): a
|
|
6
|
+
* declared request that a trierarch clear a worktree it kept. The worktree is
|
|
7
|
+
* named by the ship it belonged to and its repository, never a path: the
|
|
8
|
+
* trierarch maps the name to its path on its machine.
|
|
9
|
+
*/
|
|
10
|
+
/** The most pending clear requests one trierarch may hold (decision 0032). */
|
|
11
|
+
export const CLEAR_REQUESTS_PER_TRIERARCH_MAX = 100;
|
|
12
|
+
/** Input of `fleet.clearWorktree` (fleet:manage): the trierarch, and the kept worktree by its ship and repository. */
|
|
13
|
+
export const clearWorktreeInputSchema = z.object({
|
|
14
|
+
trierarchShipId: idSchema('ship'),
|
|
15
|
+
shipId: idSchema('ship'),
|
|
16
|
+
repository: trierarchNameSchema,
|
|
17
|
+
});
|
|
18
|
+
/** Output of `fleet.clearWorktree`: nothing; the OK is the answer. */
|
|
19
|
+
export const clearWorktreeOutputSchema = z.strictObject({});
|
|
20
|
+
/** How a trierarch's clearing came out: it removed the worktree, or it kept no such worktree. */
|
|
21
|
+
export const CLEAR_OUTCOMES = ['removed', 'not-kept'];
|
|
22
|
+
export const clearOutcomeSchema = z.enum(CLEAR_OUTCOMES);
|
|
23
|
+
/** Input of `fleet.confirmWorktreeCleared` (crew:run): the worktree of a request to the caller's ship, and how it came out. */
|
|
24
|
+
export const confirmWorktreeClearedInputSchema = z.object({
|
|
25
|
+
shipId: idSchema('ship'),
|
|
26
|
+
repository: trierarchNameSchema,
|
|
27
|
+
outcome: clearOutcomeSchema,
|
|
28
|
+
});
|
|
29
|
+
/** Output of `fleet.confirmWorktreeCleared`: nothing; the OK is the answer. */
|
|
30
|
+
export const confirmWorktreeClearedOutputSchema = z.strictObject({});
|
|
31
|
+
/**
|
|
32
|
+
* Output of `fleet.clearRequests`: the pending clear requests (ISO 8601 in
|
|
33
|
+
* UTC), every trierarch's to fleet:read, the caller's own to crew:run.
|
|
34
|
+
*/
|
|
35
|
+
export const clearRequestsOutputSchema = z.array(z.object({
|
|
36
|
+
trierarchShipId: idSchema('ship'),
|
|
37
|
+
shipId: idSchema('ship'),
|
|
38
|
+
repository: trierarchNameSchema,
|
|
39
|
+
requestedBy: idSchema('ship'),
|
|
40
|
+
requestedAt: z.iso.datetime(),
|
|
41
|
+
}));
|
|
42
|
+
//# sourceMappingURL=clear-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear-request.js","sourceRoot":"","sources":["../../src/schemas/clear-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;;;GAKG;AAEH,8EAA8E;AAC9E,MAAM,CAAC,MA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|
61
61
|
"crew:assign": "crew:assign";
|
|
62
62
|
"crew:run": "crew:run";
|
|
63
|
+
"labels:define": "labels:define";
|
|
64
|
+
"labels:assign": "labels:assign";
|
|
63
65
|
}>>;
|
|
64
66
|
}, z.core.$strip>;
|
|
65
67
|
export type ConsoleSessionOutput = z.infer<typeof consoleSessionOutputSchema>;
|
|
@@ -74,6 +74,8 @@ export declare const listedCrewRequestSchema: z.ZodObject<{
|
|
|
74
74
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
75
75
|
name: z.ZodString;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
|
+
attempt: z.ZodInt;
|
|
78
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
77
79
|
}, z.core.$strip>;
|
|
78
80
|
/** A ship's crew request whole, for its page: as the fleet list shows it, with its settings. */
|
|
79
81
|
export declare const crewRequestSchema: z.ZodObject<{
|
|
@@ -95,6 +97,8 @@ export declare const crewRequestSchema: z.ZodObject<{
|
|
|
95
97
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
96
98
|
name: z.ZodString;
|
|
97
99
|
}, z.core.$strip>>;
|
|
100
|
+
attempt: z.ZodInt;
|
|
101
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
98
102
|
settings: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
99
103
|
}, z.core.$strip>;
|
|
100
104
|
/** Input of `fleet.assignCrew` (crew:assign): the ship whose request to assign, and the trierarch ship that crews it. */
|
|
@@ -114,6 +118,8 @@ export declare const reportCrewStatusInputSchema: z.ZodObject<{
|
|
|
114
118
|
crashed: "crashed";
|
|
115
119
|
releasing: "releasing";
|
|
116
120
|
}>;
|
|
121
|
+
attempt: z.ZodOptional<z.ZodInt>;
|
|
122
|
+
startedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
117
123
|
}, z.core.$strip>;
|
|
118
124
|
/** Output of `fleet.reportCrewStatus`: nothing; the OK is the answer. */
|
|
119
125
|
export declare const reportCrewStatusOutputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
@@ -58,6 +58,10 @@ export const listedCrewRequestSchema = z.object({
|
|
|
58
58
|
reason: z.string().nullable(),
|
|
59
59
|
/** The ship that got the starting prompt the ship's crew claimed with: argo for a hand crew, or its trierarch; null while not crewed. */
|
|
60
60
|
crewedBy: z.object({ id: idSchema('ship'), name: z.string() }).nullable(),
|
|
61
|
+
/** How many times its trierarch restarted the session within its restart window, with the status: 0 on its first start. */
|
|
62
|
+
attempt: z.int().min(0),
|
|
63
|
+
/** When the session its trierarch runs now started, with the status; null while none runs. */
|
|
64
|
+
startedAt: z.iso.datetime().nullable(),
|
|
61
65
|
});
|
|
62
66
|
/** A ship's crew request whole, for its page: as the fleet list shows it, with its settings. */
|
|
63
67
|
export const crewRequestSchema = listedCrewRequestSchema.extend({ settings: crewRequestSettingsSchema });
|
|
@@ -66,7 +70,14 @@ export const assignCrewInputSchema = z.object({ shipId: idSchema('ship'), triera
|
|
|
66
70
|
/** Output of `fleet.assignCrew`: nothing; the OK is the answer. */
|
|
67
71
|
export const assignCrewOutputSchema = z.strictObject({});
|
|
68
72
|
/** Input of `fleet.reportCrewStatus` (crew:run): the ship and how its crew stands. */
|
|
69
|
-
export const reportCrewStatusInputSchema = z.object({
|
|
73
|
+
export const reportCrewStatusInputSchema = z.object({
|
|
74
|
+
shipId: idSchema('ship'),
|
|
75
|
+
status: crewStatusSchema,
|
|
76
|
+
/** How many times the trierarch restarted the session within its restart window: 0 on its first start (#332). Left out, 0. */
|
|
77
|
+
attempt: z.int().min(0).optional(),
|
|
78
|
+
/** When the session it runs now started (ISO 8601 in UTC); null while none runs. Left out, null. */
|
|
79
|
+
startedAt: z.iso.datetime().nullable().optional(),
|
|
80
|
+
});
|
|
70
81
|
/** Output of `fleet.reportCrewStatus`: nothing; the OK is the answer. */
|
|
71
82
|
export const reportCrewStatusOutputSchema = z.strictObject({});
|
|
72
83
|
/** Input of `fleet.confirmCrewRelease` (crew:run): the ship of the releasing request. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crew-request.js","sourceRoot":"","sources":["../../src/schemas/crew-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C;;;;GAIG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzD,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;AAE/B,uFAAuF;AACvF,MAAM,UAAU,wBAAwB,CAAC,QAA6B;IACpE,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC;AAC1D,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAIxE;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,CAAU,CAAC;AACnG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAGtD,iGAAiG;AACjG,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAC;AAElD,MAAM,cAAc,GAAG,mCAAmC,MAAM,CAAC,8BAA8B,CAAC,aAAa,CAAC;AAE9G,sGAAsG;AACtG,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,QAAQ,EAAE,yBAAyB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WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACpC,CAAC,CACH,CAAC;AAEF;;;GAGG;AACH,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"}
|
package/dist/schemas/fleet.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export declare const commissionShipInputSchema: z.ZodObject<{
|
|
|
28
28
|
"fleet:manage": "fleet:manage";
|
|
29
29
|
"crew:assign": "crew:assign";
|
|
30
30
|
"crew:run": "crew:run";
|
|
31
|
+
"labels:define": "labels:define";
|
|
32
|
+
"labels:assign": "labels:assign";
|
|
31
33
|
}>>>;
|
|
32
34
|
note: z.ZodOptional<z.ZodString>;
|
|
33
35
|
idempotencyKey: z.ZodString;
|
|
@@ -184,6 +186,8 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
184
186
|
"fleet:manage": "fleet:manage";
|
|
185
187
|
"crew:assign": "crew:assign";
|
|
186
188
|
"crew:run": "crew:run";
|
|
189
|
+
"labels:define": "labels:define";
|
|
190
|
+
"labels:assign": "labels:assign";
|
|
187
191
|
}>>;
|
|
188
192
|
report: z.ZodNullable<z.ZodObject<{
|
|
189
193
|
state: z.ZodEnum<{
|
|
@@ -214,6 +218,14 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
214
218
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
215
219
|
name: z.ZodString;
|
|
216
220
|
}, z.core.$strip>>;
|
|
221
|
+
attempt: z.ZodInt;
|
|
222
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
223
|
+
}, z.core.$strip>>;
|
|
224
|
+
labels: z.ZodArray<z.ZodObject<{
|
|
225
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
226
|
+
key: z.ZodString;
|
|
227
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
228
|
+
value: z.ZodString;
|
|
217
229
|
}, z.core.$strip>>;
|
|
218
230
|
awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
|
|
219
231
|
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -270,6 +282,8 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
270
282
|
"fleet:manage": "fleet:manage";
|
|
271
283
|
"crew:assign": "crew:assign";
|
|
272
284
|
"crew:run": "crew:run";
|
|
285
|
+
"labels:define": "labels:define";
|
|
286
|
+
"labels:assign": "labels:assign";
|
|
273
287
|
}>>;
|
|
274
288
|
report: z.ZodNullable<z.ZodObject<{
|
|
275
289
|
state: z.ZodEnum<{
|
|
@@ -300,6 +314,14 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
300
314
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
301
315
|
name: z.ZodString;
|
|
302
316
|
}, z.core.$strip>>;
|
|
317
|
+
attempt: z.ZodInt;
|
|
318
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
319
|
+
}, z.core.$strip>>;
|
|
320
|
+
labels: z.ZodArray<z.ZodObject<{
|
|
321
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
322
|
+
key: z.ZodString;
|
|
323
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
324
|
+
value: z.ZodString;
|
|
303
325
|
}, z.core.$strip>>;
|
|
304
326
|
awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
|
|
305
327
|
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
@@ -348,6 +370,15 @@ export declare const liveFleetEventSchema: z.ZodObject<{
|
|
|
348
370
|
CrewAssigned: "CrewAssigned";
|
|
349
371
|
CrewStatusChanged: "CrewStatusChanged";
|
|
350
372
|
CrewRequestExplained: "CrewRequestExplained";
|
|
373
|
+
LabelDefined: "LabelDefined";
|
|
374
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
375
|
+
LabelRetired: "LabelRetired";
|
|
376
|
+
LabelAssigned: "LabelAssigned";
|
|
377
|
+
LabelUnassigned: "LabelUnassigned";
|
|
378
|
+
LabelDeleted: "LabelDeleted";
|
|
379
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
380
|
+
WorktreeCleared: "WorktreeCleared";
|
|
381
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
351
382
|
}>;
|
|
352
383
|
occurredAt: z.ZodISODateTime;
|
|
353
384
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
|
@@ -391,6 +422,15 @@ export declare const fleetStreamItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
391
422
|
CrewAssigned: "CrewAssigned";
|
|
392
423
|
CrewStatusChanged: "CrewStatusChanged";
|
|
393
424
|
CrewRequestExplained: "CrewRequestExplained";
|
|
425
|
+
LabelDefined: "LabelDefined";
|
|
426
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
427
|
+
LabelRetired: "LabelRetired";
|
|
428
|
+
LabelAssigned: "LabelAssigned";
|
|
429
|
+
LabelUnassigned: "LabelUnassigned";
|
|
430
|
+
LabelDeleted: "LabelDeleted";
|
|
431
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
432
|
+
WorktreeCleared: "WorktreeCleared";
|
|
433
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
394
434
|
}>;
|
|
395
435
|
occurredAt: z.ZodISODateTime;
|
|
396
436
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
package/dist/schemas/fleet.js
CHANGED
|
@@ -3,6 +3,7 @@ import { eventTypeSchema, fleetScopeSchema, locationKindSchema, scopeSchema, shi
|
|
|
3
3
|
import { idSchema } from '../ids/index.js';
|
|
4
4
|
import { idempotencyKeySchema } from './idempotency-key.js';
|
|
5
5
|
import { listedCrewRequestSchema } from './crew-request.js';
|
|
6
|
+
import { carriedLabelSchema } from './label.js';
|
|
6
7
|
import { listedReportSchema } from './report.js';
|
|
7
8
|
/**
|
|
8
9
|
* Inputs and outputs of the fleet procedures: commission a ship, get its
|
|
@@ -159,6 +160,8 @@ export const listedShipSchema = z.object({
|
|
|
159
160
|
report: listedReportSchema.nullable(),
|
|
160
161
|
/** The ship's crew request (decision 0029); null when it holds none. */
|
|
161
162
|
crewRequest: listedCrewRequestSchema.nullable(),
|
|
163
|
+
/** The label values the ship carries, with their labels, by key then value (decision 0031). */
|
|
164
|
+
labels: z.array(carriedLabelSchema),
|
|
162
165
|
/** Since when the ship awaits crew (ISO 8601 in UTC): its commission, or the end of its last session. Null unless it awaits crew. */
|
|
163
166
|
awaitingCrewSince: z.iso.datetime().nullable(),
|
|
164
167
|
/** When the operator retired the ship (ISO 8601 in UTC); null while it is active. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fleet.js","sourceRoot":"","sources":["../../src/schemas/fleet.ts"],"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,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5E,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC;CACjH,CAAC,CAAC"}
|
package/dist/schemas/follow.d.ts
CHANGED
|
@@ -47,6 +47,15 @@ export declare const followFleetOutputSchema: z.ZodObject<{
|
|
|
47
47
|
CrewAssigned: "CrewAssigned";
|
|
48
48
|
CrewStatusChanged: "CrewStatusChanged";
|
|
49
49
|
CrewRequestExplained: "CrewRequestExplained";
|
|
50
|
+
LabelDefined: "LabelDefined";
|
|
51
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
52
|
+
LabelRetired: "LabelRetired";
|
|
53
|
+
LabelAssigned: "LabelAssigned";
|
|
54
|
+
LabelUnassigned: "LabelUnassigned";
|
|
55
|
+
LabelDeleted: "LabelDeleted";
|
|
56
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
57
|
+
WorktreeCleared: "WorktreeCleared";
|
|
58
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
50
59
|
}>;
|
|
51
60
|
occurredAt: z.ZodISODateTime;
|
|
52
61
|
actorShipId: z.ZodNullable<z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>>;
|
|
@@ -76,7 +76,15 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
76
76
|
"fleet:manage": "fleet:manage";
|
|
77
77
|
"crew:assign": "crew:assign";
|
|
78
78
|
"crew:run": "crew:run";
|
|
79
|
+
"labels:define": "labels:define";
|
|
80
|
+
"labels:assign": "labels:assign";
|
|
79
81
|
}>>;
|
|
82
|
+
labels: z.ZodArray<z.ZodObject<{
|
|
83
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
84
|
+
key: z.ZodString;
|
|
85
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>;
|
|
80
88
|
awaitingCrewSince: z.ZodNullable<z.ZodISODateTime>;
|
|
81
89
|
retiredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
82
90
|
report: z.ZodNullable<z.ZodObject<{
|
|
@@ -109,6 +117,8 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
109
117
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
110
118
|
name: z.ZodString;
|
|
111
119
|
}, z.core.$strip>>;
|
|
120
|
+
attempt: z.ZodInt;
|
|
121
|
+
startedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
112
122
|
settings: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
113
123
|
}, z.core.$strip>>;
|
|
114
124
|
commissionedAt: z.ZodISODateTime;
|
|
@@ -147,6 +157,15 @@ export declare const timelineEntrySchema: z.ZodObject<{
|
|
|
147
157
|
CrewAssigned: "CrewAssigned";
|
|
148
158
|
CrewStatusChanged: "CrewStatusChanged";
|
|
149
159
|
CrewRequestExplained: "CrewRequestExplained";
|
|
160
|
+
LabelDefined: "LabelDefined";
|
|
161
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
162
|
+
LabelRetired: "LabelRetired";
|
|
163
|
+
LabelAssigned: "LabelAssigned";
|
|
164
|
+
LabelUnassigned: "LabelUnassigned";
|
|
165
|
+
LabelDeleted: "LabelDeleted";
|
|
166
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
167
|
+
WorktreeCleared: "WorktreeCleared";
|
|
168
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
150
169
|
}>;
|
|
151
170
|
occurredAt: z.ZodISODateTime;
|
|
152
171
|
actor: z.ZodNullable<z.ZodObject<{
|
|
@@ -209,6 +228,15 @@ export declare const shipTimelineOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
209
228
|
CrewAssigned: "CrewAssigned";
|
|
210
229
|
CrewStatusChanged: "CrewStatusChanged";
|
|
211
230
|
CrewRequestExplained: "CrewRequestExplained";
|
|
231
|
+
LabelDefined: "LabelDefined";
|
|
232
|
+
LabelValuesChanged: "LabelValuesChanged";
|
|
233
|
+
LabelRetired: "LabelRetired";
|
|
234
|
+
LabelAssigned: "LabelAssigned";
|
|
235
|
+
LabelUnassigned: "LabelUnassigned";
|
|
236
|
+
LabelDeleted: "LabelDeleted";
|
|
237
|
+
WorktreeClearRequested: "WorktreeClearRequested";
|
|
238
|
+
WorktreeCleared: "WorktreeCleared";
|
|
239
|
+
WorktreeClearRemoved: "WorktreeClearRemoved";
|
|
212
240
|
}>;
|
|
213
241
|
occurredAt: z.ZodISODateTime;
|
|
214
242
|
actor: z.ZodNullable<z.ZodObject<{
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './clear-request.js';
|
|
1
2
|
export * from './console.js';
|
|
2
3
|
export * from './crew-request.js';
|
|
3
4
|
export * from './delivery.js';
|
|
@@ -7,6 +8,7 @@ export * from './guide.js';
|
|
|
7
8
|
export * from './history.js';
|
|
8
9
|
export * from './idempotency-key.js';
|
|
9
10
|
export * from './installation.js';
|
|
11
|
+
export * from './label.js';
|
|
10
12
|
export * from './message.js';
|
|
11
13
|
export * from './needs-attention.js';
|
|
12
14
|
export * from './notice.js';
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './clear-request.js';
|
|
1
2
|
export * from './console.js';
|
|
2
3
|
export * from './crew-request.js';
|
|
3
4
|
export * from './delivery.js';
|
|
@@ -7,6 +8,7 @@ export * from './guide.js';
|
|
|
7
8
|
export * from './history.js';
|
|
8
9
|
export * from './idempotency-key.js';
|
|
9
10
|
export * from './installation.js';
|
|
11
|
+
export * from './label.js';
|
|
10
12
|
export * from './message.js';
|
|
11
13
|
export * from './needs-attention.js';
|
|
12
14
|
export * from './notice.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Labels (decision 0031): an owned vocabulary for selecting ships. A label is
|
|
4
|
+
* a key with a defined set of values, the label and each value with its own
|
|
5
|
+
* id; a ship holds a set of value ids. Ids are for machines, key and value
|
|
6
|
+
* texts for people. The limits below are the decision's; every refusal names
|
|
7
|
+
* it.
|
|
8
|
+
*/
|
|
9
|
+
/** The most characters a label's key or one of its values may have. */
|
|
10
|
+
export declare const LABEL_HANDLE_MAX_LENGTH = 63;
|
|
11
|
+
/** A label's key or value: lowercase letters, digits and hyphens, at least one. */
|
|
12
|
+
export declare const LABEL_HANDLE_PATTERN: RegExp;
|
|
13
|
+
/** The most values one label may define. */
|
|
14
|
+
export declare const LABEL_VALUES_MAX = 50;
|
|
15
|
+
/** The most label values one ship may carry. */
|
|
16
|
+
export declare const SHIP_LABELS_MAX = 20;
|
|
17
|
+
/** One value of a label: its id and its text. */
|
|
18
|
+
export declare const labelValueSchema: z.ZodObject<{
|
|
19
|
+
id: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
20
|
+
value: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
/** One value a ship carries, with its label: ids and texts. */
|
|
23
|
+
export declare const carriedLabelSchema: z.ZodObject<{
|
|
24
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
25
|
+
key: z.ZodString;
|
|
26
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
27
|
+
value: z.ZodString;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
/** Input of `fleet.list`: none, or the value ids a listed ship must carry: exact matches, combined with AND. */
|
|
30
|
+
export declare const fleetListInputSchema: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
valueIds: z.ZodOptional<z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
/** Input of `fleet.defineLabel` (labels:define): the key, unique in the fleet, and its values. */
|
|
34
|
+
export declare const defineLabelInputSchema: z.ZodObject<{
|
|
35
|
+
key: z.ZodString;
|
|
36
|
+
values: z.ZodArray<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/** Output of `fleet.defineLabel`: the label's id and each value with its id. */
|
|
39
|
+
export declare const defineLabelOutputSchema: z.ZodObject<{
|
|
40
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
41
|
+
values: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
43
|
+
value: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/** Input of `fleet.changeLabelValues` (labels:define, owner only): the label by its id and every value it has from now on. */
|
|
47
|
+
export declare const changeLabelValuesInputSchema: z.ZodObject<{
|
|
48
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
49
|
+
values: z.ZodArray<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
/** Output of `fleet.changeLabelValues`: each value with its id, a kept value with the id it had. */
|
|
52
|
+
export declare const changeLabelValuesOutputSchema: z.ZodObject<{
|
|
53
|
+
values: z.ZodArray<z.ZodObject<{
|
|
54
|
+
id: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
55
|
+
value: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
/** Input of `fleet.deleteLabel` (labels:define, owner only): the label by its id. */
|
|
59
|
+
export declare const deleteLabelInputSchema: z.ZodObject<{
|
|
60
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
/** Input of `fleet.findLabelValue` (fleet:read): a key and a value as people write them. */
|
|
63
|
+
export declare const findLabelValueInputSchema: z.ZodObject<{
|
|
64
|
+
key: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
/** Output of `fleet.findLabelValue`: the label's id and the value's id. */
|
|
68
|
+
export declare const findLabelValueOutputSchema: z.ZodObject<{
|
|
69
|
+
labelId: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
70
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
/** Input of `fleet.assignLabel` (labels:assign, owner only): the ship and the value it carries from now on, by their ids. */
|
|
73
|
+
export declare const assignLabelInputSchema: z.ZodObject<{
|
|
74
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
75
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** Input of `fleet.unassignLabel` (labels:assign, owner only): the ship and the value it no longer carries, by their ids. */
|
|
78
|
+
export declare const unassignLabelInputSchema: z.ZodObject<{
|
|
79
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
80
|
+
valueId: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
/** Output of the label assignments: nothing, the OK is the answer. */
|
|
83
|
+
export declare const labelWriteOutputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
84
|
+
/** One label of the fleet: its id, its key, its values with their ids and its owner by id and name. */
|
|
85
|
+
export declare const listedLabelSchema: z.ZodObject<{
|
|
86
|
+
id: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
87
|
+
key: z.ZodString;
|
|
88
|
+
values: z.ZodArray<z.ZodObject<{
|
|
89
|
+
id: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
90
|
+
value: z.ZodString;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
owner: z.ZodObject<{
|
|
93
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type ListedLabel = z.infer<typeof listedLabelSchema>;
|
|
98
|
+
/** Output of `fleet.labels` (fleet:read): the fleet's labels by key. */
|
|
99
|
+
export declare const labelsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodType<`lbl_${string}`, unknown, z.core.$ZodTypeInternals<`lbl_${string}`, unknown>>;
|
|
101
|
+
key: z.ZodString;
|
|
102
|
+
values: z.ZodArray<z.ZodObject<{
|
|
103
|
+
id: z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>;
|
|
104
|
+
value: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
owner: z.ZodObject<{
|
|
107
|
+
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
108
|
+
name: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { idSchema } from '../ids/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Labels (decision 0031): an owned vocabulary for selecting ships. A label is
|
|
5
|
+
* a key with a defined set of values, the label and each value with its own
|
|
6
|
+
* id; a ship holds a set of value ids. Ids are for machines, key and value
|
|
7
|
+
* texts for people. The limits below are the decision's; every refusal names
|
|
8
|
+
* it.
|
|
9
|
+
*/
|
|
10
|
+
/** The most characters a label's key or one of its values may have. */
|
|
11
|
+
export const LABEL_HANDLE_MAX_LENGTH = 63;
|
|
12
|
+
/** A label's key or value: lowercase letters, digits and hyphens, at least one. */
|
|
13
|
+
export const LABEL_HANDLE_PATTERN = /^[a-z0-9-]+$/;
|
|
14
|
+
/** The most values one label may define. */
|
|
15
|
+
export const LABEL_VALUES_MAX = 50;
|
|
16
|
+
/** The most label values one ship may carry. */
|
|
17
|
+
export const SHIP_LABELS_MAX = 20;
|
|
18
|
+
/**
|
|
19
|
+
* A key or a value as a call carries it: plain text. The server checks the
|
|
20
|
+
* limits above, so every refusal names their decision.
|
|
21
|
+
*/
|
|
22
|
+
const labelTextSchema = z.string();
|
|
23
|
+
/** One value of a label: its id and its text. */
|
|
24
|
+
export const labelValueSchema = z.object({ id: idSchema('labelValue'), value: z.string() });
|
|
25
|
+
/** One value a ship carries, with its label: ids and texts. */
|
|
26
|
+
export const carriedLabelSchema = z.object({ labelId: idSchema('label'), key: z.string(), valueId: idSchema('labelValue'), value: z.string() });
|
|
27
|
+
/** Input of `fleet.list`: none, or the value ids a listed ship must carry: exact matches, combined with AND. */
|
|
28
|
+
export const fleetListInputSchema = z.object({ valueIds: z.array(idSchema('labelValue')).optional() }).optional();
|
|
29
|
+
/** Input of `fleet.defineLabel` (labels:define): the key, unique in the fleet, and its values. */
|
|
30
|
+
export const defineLabelInputSchema = z.object({ key: labelTextSchema, values: z.array(labelTextSchema) });
|
|
31
|
+
/** Output of `fleet.defineLabel`: the label's id and each value with its id. */
|
|
32
|
+
export const defineLabelOutputSchema = z.object({ labelId: idSchema('label'), values: z.array(labelValueSchema) });
|
|
33
|
+
/** Input of `fleet.changeLabelValues` (labels:define, owner only): the label by its id and every value it has from now on. */
|
|
34
|
+
export const changeLabelValuesInputSchema = z.object({ labelId: idSchema('label'), values: z.array(labelTextSchema) });
|
|
35
|
+
/** Output of `fleet.changeLabelValues`: each value with its id, a kept value with the id it had. */
|
|
36
|
+
export const changeLabelValuesOutputSchema = z.object({ values: z.array(labelValueSchema) });
|
|
37
|
+
/** Input of `fleet.deleteLabel` (labels:define, owner only): the label by its id. */
|
|
38
|
+
export const deleteLabelInputSchema = z.object({ labelId: idSchema('label') });
|
|
39
|
+
/** Input of `fleet.findLabelValue` (fleet:read): a key and a value as people write them. */
|
|
40
|
+
export const findLabelValueInputSchema = z.object({ key: labelTextSchema, value: labelTextSchema });
|
|
41
|
+
/** Output of `fleet.findLabelValue`: the label's id and the value's id. */
|
|
42
|
+
export const findLabelValueOutputSchema = z.object({ labelId: idSchema('label'), valueId: idSchema('labelValue') });
|
|
43
|
+
/** Input of `fleet.assignLabel` (labels:assign, owner only): the ship and the value it carries from now on, by their ids. */
|
|
44
|
+
export const assignLabelInputSchema = z.object({ shipId: idSchema('ship'), valueId: idSchema('labelValue') });
|
|
45
|
+
/** Input of `fleet.unassignLabel` (labels:assign, owner only): the ship and the value it no longer carries, by their ids. */
|
|
46
|
+
export const unassignLabelInputSchema = assignLabelInputSchema;
|
|
47
|
+
/** Output of the label assignments: nothing, the OK is the answer. */
|
|
48
|
+
export const labelWriteOutputSchema = z.object({});
|
|
49
|
+
/** One label of the fleet: its id, its key, its values with their ids and its owner by id and name. */
|
|
50
|
+
export const listedLabelSchema = z.object({
|
|
51
|
+
id: idSchema('label'),
|
|
52
|
+
key: z.string(),
|
|
53
|
+
values: z.array(labelValueSchema),
|
|
54
|
+
owner: z.object({ id: idSchema('ship'), name: z.string() }),
|
|
55
|
+
});
|
|
56
|
+
/** Output of `fleet.labels` (fleet:read): the fleet's labels by key. */
|
|
57
|
+
export const labelsOutputSchema = z.array(listedLabelSchema);
|
|
58
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/schemas/label.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C;;;;;;GAMG;AAEH,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAEnD,4CAA4C;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAEnC,gDAAgD;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAElC;;;GAGG;AACH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEnC,iDAAiD;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAE5F,+DAA+D;AAC/D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC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ew request's settings as a trierarch reads them (decision 0027): the
|
|
16
|
-
* fixed core of harness, workspace, an optional squadron, an
|
|
17
|
-
* prompt and options.
|
|
16
|
+
* fixed core of an optional harness, workspace, an optional squadron, an
|
|
17
|
+
* optional first prompt and options. Without a harness, the trierarch it
|
|
18
|
+
* goes to crews it with its default: the first in its configuration. The server stores them without meaning; the trierarch
|
|
18
19
|
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
19
20
|
* command-line flag: a workspace names a repository or folder, options pick
|
|
20
21
|
* named settings, and a first prompt never starts with `-`.
|
|
21
22
|
*/
|
|
22
23
|
export declare const crewSettingsSchema: z.ZodObject<{
|
|
23
|
-
harness: z.ZodString
|
|
24
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
24
25
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
26
|
kind: z.ZodLiteral<"worktree">;
|
|
26
27
|
repository: z.ZodString;
|
|
@@ -32,5 +33,11 @@ export declare const crewSettingsSchema: z.ZodObject<{
|
|
|
32
33
|
squadron: z.ZodOptional<z.ZodString>;
|
|
33
34
|
firstPrompt: z.ZodOptional<z.ZodString>;
|
|
34
35
|
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
36
|
+
machineLabels: z.ZodOptional<z.ZodArray<z.ZodType<`lbv_${string}`, unknown, z.core.$ZodTypeInternals<`lbv_${string}`, unknown>>>>;
|
|
35
37
|
}, z.core.$strict>;
|
|
38
|
+
/**
|
|
39
|
+
* The reason the trierarch plugin writes on a request no machine carries
|
|
40
|
+
* every machine label of; it waits, and the console words it in full.
|
|
41
|
+
*/
|
|
42
|
+
export declare const NO_MACHINE_MATCHES_REASON = "no machine matches its labels";
|
|
36
43
|
export type CrewSettings = z.infer<typeof crewSettingsSchema>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { idSchema } from '../ids/index.js';
|
|
2
3
|
import { shipHandleSchema } from '../schemas/fleet.js';
|
|
4
|
+
import { SHIP_LABELS_MAX } from '../schemas/label.js';
|
|
3
5
|
import { harnessSchema } from '../schemas/ship.js';
|
|
4
6
|
import { trierarchNameSchema } from './names.js';
|
|
5
7
|
const utf8 = new TextEncoder();
|
|
@@ -12,14 +14,15 @@ export const trierarchWorkspaceSchema = z.discriminatedUnion('kind', [
|
|
|
12
14
|
]);
|
|
13
15
|
/**
|
|
14
16
|
* A crew request's settings as a trierarch reads them (decision 0027): the
|
|
15
|
-
* fixed core of harness, workspace, an optional squadron, an
|
|
16
|
-
* prompt and options.
|
|
17
|
+
* fixed core of an optional harness, workspace, an optional squadron, an
|
|
18
|
+
* optional first prompt and options. Without a harness, the trierarch it
|
|
19
|
+
* goes to crews it with its default: the first in its configuration. The server stores them without meaning; the trierarch
|
|
17
20
|
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
18
21
|
* command-line flag: a workspace names a repository or folder, options pick
|
|
19
22
|
* named settings, and a first prompt never starts with `-`.
|
|
20
23
|
*/
|
|
21
24
|
export const crewSettingsSchema = z.strictObject({
|
|
22
|
-
harness: harnessSchema,
|
|
25
|
+
harness: harnessSchema.optional(),
|
|
23
26
|
workspace: trierarchWorkspaceSchema,
|
|
24
27
|
/** The squadron the ship is a member of, so it checks in at its flagship as a crew line's squadron id does. */
|
|
25
28
|
squadron: shipHandleSchema.optional(),
|
|
@@ -32,5 +35,16 @@ export const crewSettingsSchema = z.strictObject({
|
|
|
32
35
|
.optional(),
|
|
33
36
|
/** Named settings, checked against the JSON Schema the trierarch reports for the harness. */
|
|
34
37
|
options: z.record(z.string(), z.json()),
|
|
38
|
+
/**
|
|
39
|
+
* The label values a machine carries every one of for the request to go to
|
|
40
|
+
* it (#102; docs/trierarch.md, "Machine labels"): exact matches, AND. A
|
|
41
|
+
* machine carries at most 20, so no more can match. None: any machine.
|
|
42
|
+
*/
|
|
43
|
+
machineLabels: z.array(idSchema('labelValue')).max(SHIP_LABELS_MAX).optional(),
|
|
35
44
|
});
|
|
45
|
+
/**
|
|
46
|
+
* The reason the trierarch plugin writes on a request no machine carries
|
|
47
|
+
* every machine label of; it waits, and the console words it in full.
|
|
48
|
+
*/
|
|
49
|
+
export const NO_MACHINE_MATCHES_REASON = 'no machine matches its labels';
|
|
36
50
|
//# sourceMappingURL=crew-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crew-settings.js","sourceRoot":"","sources":["../../src/trierarch/crew-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;AAE/B,qFAAqF;AACrF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,gHAAgH;AAChH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACnE,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,UAAU,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC;IACnH,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;CACzE,CAAC,CAAC;AAGH
|
|
1
|
+
{"version":3,"file":"crew-settings.js","sourceRoot":"","sources":["../../src/trierarch/crew-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iB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AClJ,mFAAmF;SAClF,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,4DAA4D,CAAC;SACzG,QAAQ,EAAE;IACb,6FAA6F;IAC7F,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACvC;;;;OAIG;IACH,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;CAC/E,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,+BAA+B,CAAC"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* from them. No entry per ship: each crew request carries its own status.
|
|
7
|
-
* Every object refuses unknown fields.
|
|
8
|
-
*/
|
|
2
|
+
/** The operating systems a trierarch names its machine by, for the trierarch plugin's os label (#102); any other is left out. */
|
|
3
|
+
export declare const MACHINE_OS: readonly ["macos", "linux", "windows"];
|
|
4
|
+
/** The architectures a trierarch names its machine by, for the trierarch plugin's arch label (#102); any other is left out. */
|
|
5
|
+
export declare const MACHINE_ARCH: readonly ["arm64", "amd64"];
|
|
9
6
|
export declare const trierarchReportDetailsSchema: z.ZodObject<{
|
|
10
7
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
11
8
|
harness: z.ZodString;
|
|
12
9
|
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
13
10
|
flags: z.ZodArray<z.ZodString>;
|
|
11
|
+
riskyFlags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
14
12
|
}, z.core.$strict>>;
|
|
15
13
|
workspaces: z.ZodObject<{
|
|
16
14
|
repositories: z.ZodArray<z.ZodString>;
|
|
@@ -22,10 +20,22 @@ export declare const trierarchReportDetailsSchema: z.ZodObject<{
|
|
|
22
20
|
}, z.core.$strict>;
|
|
23
21
|
kept: z.ZodArray<z.ZodObject<{
|
|
24
22
|
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
25
|
-
|
|
23
|
+
repository: z.ZodString;
|
|
26
24
|
}, z.core.$strict>>;
|
|
27
25
|
orphans: z.ZodArray<z.ZodObject<{
|
|
28
|
-
|
|
26
|
+
repository: z.ZodString;
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
machine: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
os: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
macos: "macos";
|
|
32
|
+
linux: "linux";
|
|
33
|
+
windows: "windows";
|
|
34
|
+
}>>;
|
|
35
|
+
arch: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
arm64: "arm64";
|
|
37
|
+
amd64: "amd64";
|
|
38
|
+
}>>;
|
|
29
39
|
}, z.core.$strict>>;
|
|
30
40
|
version: z.ZodString;
|
|
31
41
|
}, z.core.$strict>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { idSchema } from '../ids/index.js';
|
|
3
3
|
import { harnessSchema } from '../schemas/ship.js';
|
|
4
|
-
import { trierarchNameSchema } from './names.js';
|
|
4
|
+
import { TRIERARCH_NAME_MAX_LENGTH, trierarchNameSchema } from './names.js';
|
|
5
|
+
/** The operating systems a trierarch names its machine by, for the trierarch plugin's os label (#102); any other is left out. */
|
|
6
|
+
export const MACHINE_OS = ['macos', 'linux', 'windows'];
|
|
7
|
+
/** The architectures a trierarch names its machine by, for the trierarch plugin's arch label (#102); any other is left out. */
|
|
8
|
+
export const MACHINE_ARCH = ['arm64', 'amd64'];
|
|
5
9
|
/**
|
|
6
10
|
* The details of a trierarch's report (docs/trierarch.md, "What a trierarch
|
|
7
11
|
* reports"; decision 0028): what its machine can do, read from its local
|
|
@@ -9,6 +13,12 @@ import { trierarchNameSchema } from './names.js';
|
|
|
9
13
|
* from them. No entry per ship: each crew request carries its own status.
|
|
10
14
|
* Every object refuses unknown fields.
|
|
11
15
|
*/
|
|
16
|
+
/** A folder's name under the trierarch's worktree root, as it is on disk: one name, never a path. */
|
|
17
|
+
const worktreeFolderNameSchema = z
|
|
18
|
+
.string()
|
|
19
|
+
.min(1)
|
|
20
|
+
.max(TRIERARCH_NAME_MAX_LENGTH)
|
|
21
|
+
.refine((name) => !/[/\\]/.test(name) && name !== '.' && name !== '..', 'A folder name is one name, never a path');
|
|
12
22
|
export const trierarchReportDetailsSchema = z.strictObject({
|
|
13
23
|
harnesses: z.array(z.strictObject({
|
|
14
24
|
harness: harnessSchema,
|
|
@@ -16,14 +26,26 @@ export const trierarchReportDetailsSchema = z.strictObject({
|
|
|
16
26
|
options: z.record(z.string(), z.json()),
|
|
17
27
|
/** The flags every launch of this harness gets, as the configuration makes them. */
|
|
18
28
|
flags: z.array(z.string()),
|
|
29
|
+
/**
|
|
30
|
+
* Which of those flags are risky, as the trierarch's adapter for the
|
|
31
|
+
* harness knows them, so a reader needs no harness knowledge (#326).
|
|
32
|
+
* None from a trierarch before 0.20.0, which marked none.
|
|
33
|
+
*/
|
|
34
|
+
riskyFlags: z.array(z.string()).optional(),
|
|
19
35
|
})),
|
|
20
36
|
workspaces: z.strictObject({ repositories: z.array(trierarchNameSchema), folders: z.array(trierarchNameSchema) }),
|
|
21
37
|
/** How many ships the machine crews at most, and how many sessions run at once. */
|
|
22
38
|
caps: z.strictObject({ ships: z.int().positive(), running: z.int().positive() }),
|
|
23
|
-
/** Worktrees kept because they had changes. */
|
|
24
|
-
kept: z.array(z.strictObject({ shipId: idSchema('ship'),
|
|
39
|
+
/** Worktrees kept because they had changes, by the ship they belonged to and their repository: paths stay on the machine (decision 0032). */
|
|
40
|
+
kept: z.array(z.strictObject({ shipId: idSchema('ship'), repository: trierarchNameSchema })),
|
|
25
41
|
/** Worktrees under the trierarch's root with no assigned request: reported, never deleted. */
|
|
26
|
-
orphans: z.array(z.strictObject({
|
|
42
|
+
orphans: z.array(z.strictObject({ repository: worktreeFolderNameSchema, name: worktreeFolderNameSchema })),
|
|
43
|
+
/**
|
|
44
|
+
* The machine it runs on, for the trierarch plugin to label its ship by
|
|
45
|
+
* (docs/trierarch.md, "Machine labels"): an os or arch outside the known
|
|
46
|
+
* ones is left out. None from a trierarch before 0.20.0.
|
|
47
|
+
*/
|
|
48
|
+
machine: z.strictObject({ os: z.enum(MACHINE_OS).optional(), arch: z.enum(MACHINE_ARCH).optional() }).optional(),
|
|
27
49
|
/** The trierarch's own version. */
|
|
28
50
|
version: z.string().min(1),
|
|
29
51
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-details.js","sourceRoot":"","sources":["../../src/trierarch/report-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"report-details.js","sourceRoot":"","sources":["../../src/trierarch/report-details.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE5E,iIAAiI;AACjI,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,CAAU,CAAC;AAEjE,+HAA+H;AAC/H,MAAM,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