@aeolus-fleet/common 0.18.0 → 0.20.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.
- package/LICENSE +201 -0
- package/dist/fleet/index.d.ts +21 -9
- package/dist/fleet/index.js +16 -6
- 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 -1
- 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 +41 -4
- package/dist/schemas/fleet.js +4 -1
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +9 -0
- package/dist/schemas/history.d.ts +28 -1
- 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/configuration.js +1 -1
- package/dist/trierarch/configuration.js.map +1 -1
- package/dist/trierarch/crew-settings.d.ts +42 -0
- package/dist/trierarch/crew-settings.js +49 -0
- package/dist/trierarch/crew-settings.js.map +1 -0
- package/dist/trierarch/index.d.ts +2 -1
- package/dist/trierarch/index.js +2 -1
- package/dist/trierarch/index.js.map +1 -1
- package/dist/trierarch/report-details.d.ts +42 -0
- package/dist/trierarch/report-details.js +52 -0
- package/dist/trierarch/report-details.js.map +1 -0
- package/package.json +4 -2
- package/dist/trierarch/protocol.d.ts +0 -146
- package/dist/trierarch/protocol.js +0 -115
- package/dist/trierarch/protocol.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/dist/fleet/index.d.ts
CHANGED
|
@@ -5,31 +5,34 @@ 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", "
|
|
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";
|
|
12
12
|
"fleet:read": "fleet:read";
|
|
13
13
|
"fleet:manage": "fleet:manage";
|
|
14
|
-
"fleet:crew": "fleet:crew";
|
|
15
14
|
"crew:assign": "crew:assign";
|
|
16
15
|
"crew:run": "crew:run";
|
|
16
|
+
"labels:define": "labels:define";
|
|
17
|
+
"labels:assign": "labels:assign";
|
|
17
18
|
}>;
|
|
18
19
|
export type Scope = z.infer<typeof scopeSchema>;
|
|
19
20
|
/**
|
|
20
21
|
* The scopes commissioning may add to an agent ship, beside sending and
|
|
21
|
-
* receiving, which every agent ship has (ADR 0002). `
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
|
|
23
|
+
* request assignments; `crew:run` crews the ships whose requests are assigned
|
|
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).
|
|
25
27
|
*/
|
|
26
|
-
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "
|
|
28
|
+
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "crew:assign", "crew:run", "labels:define", "labels:assign"];
|
|
27
29
|
export declare const fleetScopeSchema: z.ZodEnum<{
|
|
28
30
|
"fleet:read": "fleet:read";
|
|
29
31
|
"fleet:manage": "fleet:manage";
|
|
30
|
-
"fleet:crew": "fleet:crew";
|
|
31
32
|
"crew:assign": "crew:assign";
|
|
32
33
|
"crew:run": "crew:run";
|
|
34
|
+
"labels:define": "labels:define";
|
|
35
|
+
"labels:assign": "labels:assign";
|
|
33
36
|
}>;
|
|
34
37
|
export type FleetScope = z.infer<typeof fleetScopeSchema>;
|
|
35
38
|
/** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
|
|
@@ -83,7 +86,7 @@ export declare const deliveryStateSchema: z.ZodEnum<{
|
|
|
83
86
|
}>;
|
|
84
87
|
export type DeliveryState = z.infer<typeof deliveryStateSchema>;
|
|
85
88
|
/** The event types written so far. Each later slice adds the ones it writes. */
|
|
86
|
-
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"];
|
|
87
90
|
export declare const eventTypeSchema: z.ZodEnum<{
|
|
88
91
|
FleetInitialised: "FleetInitialised";
|
|
89
92
|
ShipCommissioned: "ShipCommissioned";
|
|
@@ -110,6 +113,15 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
110
113
|
CrewAssigned: "CrewAssigned";
|
|
111
114
|
CrewStatusChanged: "CrewStatusChanged";
|
|
112
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";
|
|
113
125
|
}>;
|
|
114
126
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
115
127
|
export * from './mcp-url.js';
|
package/dist/fleet/index.js
CHANGED
|
@@ -5,16 +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', '
|
|
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
|
-
* receiving, which every agent ship has (ADR 0002). `
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
|
|
13
|
+
* request assignments; `crew:run` crews the ships whose requests are assigned
|
|
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).
|
|
16
17
|
*/
|
|
17
|
-
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', '
|
|
18
|
+
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', 'crew:assign', 'crew:run', 'labels:define', 'labels:assign'];
|
|
18
19
|
export const fleetScopeSchema = z.enum(FLEET_SCOPES);
|
|
19
20
|
/** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
|
|
20
21
|
export const SHIP_KINDS = ['operator', 'agent', 'viewer'];
|
|
@@ -65,6 +66,15 @@ export const EVENT_TYPES = [
|
|
|
65
66
|
'CrewAssigned',
|
|
66
67
|
'CrewStatusChanged',
|
|
67
68
|
'CrewRequestExplained',
|
|
69
|
+
'LabelDefined',
|
|
70
|
+
'LabelValuesChanged',
|
|
71
|
+
'LabelRetired',
|
|
72
|
+
'LabelAssigned',
|
|
73
|
+
'LabelUnassigned',
|
|
74
|
+
'LabelDeleted',
|
|
75
|
+
'WorktreeClearRequested',
|
|
76
|
+
'WorktreeCleared',
|
|
77
|
+
'WorktreeClearRemoved',
|
|
68
78
|
];
|
|
69
79
|
export const eventTypeSchema = z.enum(EVENT_TYPES);
|
|
70
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,
|
|
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,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAG1C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;AACjI,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AAGrD,4FAA4F;AAC5F,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAU,CAAC;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAGjD,kFAAkF;AAClF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAC9E,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,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 +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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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,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,sHAAsH;AACtH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,mBAAmB;CAChC,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAE5D,iGAAiG;AACjG,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAE,UAAU,CAAU,CAAC;AAC/D,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAGzD,+HAA+H;AAC/H,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,mBAAmB;IAC/B,OAAO,EAAE,kBAAkB;CAC5B,CAAC,CAAC;AAEH,+EAA+E;AAC/E,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC9C,CAAC,CAAC,MAAM,CAAC;IACP,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IACxB,UAAU,EAAE,mBAAmB;IAC/B,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC;IAC7B,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC9B,CAAC,CACH,CAAC"}
|
|
@@ -58,9 +58,10 @@ export declare const consoleSessionOutputSchema: z.ZodObject<{
|
|
|
58
58
|
"messages:receive": "messages:receive";
|
|
59
59
|
"fleet:read": "fleet:read";
|
|
60
60
|
"fleet:manage": "fleet:manage";
|
|
61
|
-
"fleet:crew": "fleet:crew";
|
|
62
61
|
"crew:assign": "crew:assign";
|
|
63
62
|
"crew:run": "crew:run";
|
|
63
|
+
"labels:define": "labels:define";
|
|
64
|
+
"labels:assign": "labels:assign";
|
|
64
65
|
}>>;
|
|
65
66
|
}, z.core.$strip>;
|
|
66
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,SA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