@aeolus-fleet/common 0.18.0 → 0.19.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 +5 -8
- package/dist/fleet/index.js +5 -6
- package/dist/fleet/index.js.map +1 -1
- package/dist/schemas/console.d.ts +0 -1
- package/dist/schemas/fleet.d.ts +1 -4
- package/dist/schemas/fleet.js +1 -1
- package/dist/schemas/history.d.ts +0 -1
- package/dist/trierarch/configuration.js +1 -1
- package/dist/trierarch/configuration.js.map +1 -1
- package/dist/trierarch/crew-settings.d.ts +36 -0
- package/dist/trierarch/crew-settings.js +36 -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 +32 -0
- package/dist/trierarch/report-details.js +30 -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,29 +5,26 @@ 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"];
|
|
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";
|
|
17
16
|
}>;
|
|
18
17
|
export type Scope = z.infer<typeof scopeSchema>;
|
|
19
18
|
/**
|
|
20
19
|
* The scopes commissioning may add to an agent ship, beside sending and
|
|
21
|
-
* receiving, which every agent ship has (ADR 0002). `
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* whose requests are assigned to its ship (decision 0029).
|
|
20
|
+
* receiving, which every agent ship has (ADR 0002). `crew:assign` writes crew
|
|
21
|
+
* request assignments; `crew:run` crews the ships whose requests are assigned
|
|
22
|
+
* to its ship (decision 0029).
|
|
25
23
|
*/
|
|
26
|
-
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "
|
|
24
|
+
export declare const FLEET_SCOPES: readonly ["fleet:read", "fleet:manage", "crew:assign", "crew:run"];
|
|
27
25
|
export declare const fleetScopeSchema: z.ZodEnum<{
|
|
28
26
|
"fleet:read": "fleet:read";
|
|
29
27
|
"fleet:manage": "fleet:manage";
|
|
30
|
-
"fleet:crew": "fleet:crew";
|
|
31
28
|
"crew:assign": "crew:assign";
|
|
32
29
|
"crew:run": "crew:run";
|
|
33
30
|
}>;
|
package/dist/fleet/index.js
CHANGED
|
@@ -5,16 +5,15 @@ 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'];
|
|
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
|
-
* whose requests are assigned to its ship (decision 0029).
|
|
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).
|
|
16
15
|
*/
|
|
17
|
-
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', '
|
|
16
|
+
export const FLEET_SCOPES = ['fleet:read', 'fleet:manage', 'crew:assign', 'crew:run'];
|
|
18
17
|
export const fleetScopeSchema = z.enum(FLEET_SCOPES);
|
|
19
18
|
/** `argo` is the one ship of kind `operator` in a fleet; every other ship is an `agent`. */
|
|
20
19
|
export const SHIP_KINDS = ['operator', 'agent', 'viewer'];
|
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,EA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AG,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;AAG3D,gFAAgF;AAChF,MAAM,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;CACd,CAAC;AACX,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;AAGnD,cAAc,cAAc,CAAC"}
|
|
@@ -58,7 +58,6 @@ 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";
|
|
64
63
|
}>>;
|
package/dist/schemas/fleet.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const SHIP_NOTE_MAX_LENGTH = 500;
|
|
|
15
15
|
/**
|
|
16
16
|
* Input of `fleet.commission`. The note is free text for the operator;
|
|
17
17
|
* whitespace around it is dropped. `fleetScopes` adds fleet:read,
|
|
18
|
-
* fleet:manage and/or
|
|
18
|
+
* fleet:manage, crew:assign and/or crew:run to the scopes every agent ship has; none
|
|
19
19
|
* when left out.
|
|
20
20
|
* `idempotencyKey` is the caller's own key, as for a send: a retry with the
|
|
21
21
|
* same key and the same request commissions no second ship.
|
|
@@ -26,7 +26,6 @@ export declare const commissionShipInputSchema: z.ZodObject<{
|
|
|
26
26
|
fleetScopes: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
27
27
|
"fleet:read": "fleet:read";
|
|
28
28
|
"fleet:manage": "fleet:manage";
|
|
29
|
-
"fleet:crew": "fleet:crew";
|
|
30
29
|
"crew:assign": "crew:assign";
|
|
31
30
|
"crew:run": "crew:run";
|
|
32
31
|
}>>>;
|
|
@@ -183,7 +182,6 @@ export declare const listedShipSchema: z.ZodObject<{
|
|
|
183
182
|
"messages:receive": "messages:receive";
|
|
184
183
|
"fleet:read": "fleet:read";
|
|
185
184
|
"fleet:manage": "fleet:manage";
|
|
186
|
-
"fleet:crew": "fleet:crew";
|
|
187
185
|
"crew:assign": "crew:assign";
|
|
188
186
|
"crew:run": "crew:run";
|
|
189
187
|
}>>;
|
|
@@ -270,7 +268,6 @@ export declare const fleetListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
270
268
|
"messages:receive": "messages:receive";
|
|
271
269
|
"fleet:read": "fleet:read";
|
|
272
270
|
"fleet:manage": "fleet:manage";
|
|
273
|
-
"fleet:crew": "fleet:crew";
|
|
274
271
|
"crew:assign": "crew:assign";
|
|
275
272
|
"crew:run": "crew:run";
|
|
276
273
|
}>>;
|
package/dist/schemas/fleet.js
CHANGED
|
@@ -24,7 +24,7 @@ export const SHIP_NOTE_MAX_LENGTH = 500;
|
|
|
24
24
|
/**
|
|
25
25
|
* Input of `fleet.commission`. The note is free text for the operator;
|
|
26
26
|
* whitespace around it is dropped. `fleetScopes` adds fleet:read,
|
|
27
|
-
* fleet:manage and/or
|
|
27
|
+
* fleet:manage, crew:assign and/or crew:run to the scopes every agent ship has; none
|
|
28
28
|
* when left out.
|
|
29
29
|
* `idempotencyKey` is the caller's own key, as for a send: a retry with the
|
|
30
30
|
* same key and the same request commissions no second ship.
|
|
@@ -74,7 +74,6 @@ export declare const shipDetailOutputSchema: z.ZodObject<{
|
|
|
74
74
|
"messages:receive": "messages:receive";
|
|
75
75
|
"fleet:read": "fleet:read";
|
|
76
76
|
"fleet:manage": "fleet:manage";
|
|
77
|
-
"fleet:crew": "fleet:crew";
|
|
78
77
|
"crew:assign": "crew:assign";
|
|
79
78
|
"crew:run": "crew:run";
|
|
80
79
|
}>>;
|
|
@@ -8,7 +8,7 @@ import { trierarchNameSchema } from './names.js';
|
|
|
8
8
|
* The trierarch adds no flag by itself.
|
|
9
9
|
*/
|
|
10
10
|
const placeSchema = z.strictObject({ path: z.string().min(1) });
|
|
11
|
-
/** An option a
|
|
11
|
+
/** An option a crew request's settings may set: its values by name, each with the flags it adds, and the value used when the settings set none. */
|
|
12
12
|
const optionSchema = z
|
|
13
13
|
.strictObject({ values: z.record(trierarchNameSchema, z.array(z.string())), default: trierarchNameSchema.optional() })
|
|
14
14
|
.refine((option) => option.default === undefined || option.default in option.values, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/trierarch/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAEhE,
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../src/trierarch/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;GAKG;AAEH,MAAM,WAAW,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,C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AAO,EAAE,CAAC,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE,0BAA0B,CAAC;CAC/D,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** The longest first prompt, in UTF-8 bytes: 8 KB, given on the first start only. */
|
|
3
|
+
export declare const FIRST_PROMPT_MAX_BYTES = 8192;
|
|
4
|
+
/** A new git worktree of a configured repository, or a configured folder used as it is: named, never a path. */
|
|
5
|
+
export declare const trierarchWorkspaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6
|
+
kind: z.ZodLiteral<"worktree">;
|
|
7
|
+
repository: z.ZodString;
|
|
8
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"folder">;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
}, z.core.$strict>], "kind">;
|
|
13
|
+
export type TrierarchWorkspace = z.infer<typeof trierarchWorkspaceSchema>;
|
|
14
|
+
/**
|
|
15
|
+
* A crew request's settings as a trierarch reads them (decision 0027): the
|
|
16
|
+
* fixed core of harness, workspace, an optional squadron, an optional first
|
|
17
|
+
* prompt and options. The server stores them without meaning; the trierarch
|
|
18
|
+
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
19
|
+
* command-line flag: a workspace names a repository or folder, options pick
|
|
20
|
+
* named settings, and a first prompt never starts with `-`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const crewSettingsSchema: z.ZodObject<{
|
|
23
|
+
harness: z.ZodString;
|
|
24
|
+
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
|
+
kind: z.ZodLiteral<"worktree">;
|
|
26
|
+
repository: z.ZodString;
|
|
27
|
+
ref: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"folder">;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
}, z.core.$strict>], "kind">;
|
|
32
|
+
squadron: z.ZodOptional<z.ZodString>;
|
|
33
|
+
firstPrompt: z.ZodOptional<z.ZodString>;
|
|
34
|
+
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export type CrewSettings = z.infer<typeof crewSettingsSchema>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { shipHandleSchema } from '../schemas/fleet.js';
|
|
3
|
+
import { harnessSchema } from '../schemas/ship.js';
|
|
4
|
+
import { trierarchNameSchema } from './names.js';
|
|
5
|
+
const utf8 = new TextEncoder();
|
|
6
|
+
/** The longest first prompt, in UTF-8 bytes: 8 KB, given on the first start only. */
|
|
7
|
+
export const FIRST_PROMPT_MAX_BYTES = 8192;
|
|
8
|
+
/** A new git worktree of a configured repository, or a configured folder used as it is: named, never a path. */
|
|
9
|
+
export const trierarchWorkspaceSchema = z.discriminatedUnion('kind', [
|
|
10
|
+
z.strictObject({ kind: z.literal('worktree'), repository: trierarchNameSchema, ref: z.string().min(1).optional() }),
|
|
11
|
+
z.strictObject({ kind: z.literal('folder'), name: trierarchNameSchema }),
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* A crew request's settings as a trierarch reads them (decision 0027): the
|
|
15
|
+
* fixed core of harness, workspace, an optional squadron, an optional first
|
|
16
|
+
* prompt and options. The server stores them without meaning; the trierarch
|
|
17
|
+
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
18
|
+
* command-line flag: a workspace names a repository or folder, options pick
|
|
19
|
+
* named settings, and a first prompt never starts with `-`.
|
|
20
|
+
*/
|
|
21
|
+
export const crewSettingsSchema = z.strictObject({
|
|
22
|
+
harness: harnessSchema,
|
|
23
|
+
workspace: trierarchWorkspaceSchema,
|
|
24
|
+
/** The squadron the ship is a member of, so it checks in at its flagship as a crew line's squadron id does. */
|
|
25
|
+
squadron: shipHandleSchema.optional(),
|
|
26
|
+
firstPrompt: z
|
|
27
|
+
.string()
|
|
28
|
+
.min(1)
|
|
29
|
+
.refine((prompt) => utf8.encode(prompt).byteLength <= FIRST_PROMPT_MAX_BYTES, `A first prompt is at most ${String(FIRST_PROMPT_MAX_BYTES)} bytes`)
|
|
30
|
+
// A harness would read it as a flag the operator never configured (decision 0027).
|
|
31
|
+
.refine((prompt) => !prompt.startsWith('-'), 'A first prompt may not start with -, which reads as a flag')
|
|
32
|
+
.optional(),
|
|
33
|
+
/** Named settings, checked against the JSON Schema the trierarch reports for the harness. */
|
|
34
|
+
options: z.record(z.string(), z.json()),
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=crew-settings.js.map
|
|
@@ -0,0 +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;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/C,OAAO,EAAE,aAAa;IACtB,SAAS,EAAE,wBAAwB;IACnC,+GAA+G;IAC/G,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACrC,WAAW,EAAE,CAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,IAAI,sBAAsB,EAAE,6BAA6B,MAAM,CAAC,sBAAsB,CAAC,QAAQ,CAAC;QAClJ,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;CACxC,CAAC,CAAC"}
|
package/dist/trierarch/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/trierarch/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/trierarch/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The details of a trierarch's report (docs/trierarch.md, "What a trierarch
|
|
4
|
+
* reports"; decision 0028): what its machine can do, read from its local
|
|
5
|
+
* configuration and what runs. The trierarch plugin places crew requests
|
|
6
|
+
* from them. No entry per ship: each crew request carries its own status.
|
|
7
|
+
* Every object refuses unknown fields.
|
|
8
|
+
*/
|
|
9
|
+
export declare const trierarchReportDetailsSchema: z.ZodObject<{
|
|
10
|
+
harnesses: z.ZodArray<z.ZodObject<{
|
|
11
|
+
harness: z.ZodString;
|
|
12
|
+
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
13
|
+
flags: z.ZodArray<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
workspaces: z.ZodObject<{
|
|
16
|
+
repositories: z.ZodArray<z.ZodString>;
|
|
17
|
+
folders: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strict>;
|
|
19
|
+
caps: z.ZodObject<{
|
|
20
|
+
ships: z.ZodInt;
|
|
21
|
+
running: z.ZodInt;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
kept: z.ZodArray<z.ZodObject<{
|
|
24
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
}, z.core.$strict>>;
|
|
27
|
+
orphans: z.ZodArray<z.ZodObject<{
|
|
28
|
+
path: z.ZodString;
|
|
29
|
+
}, z.core.$strict>>;
|
|
30
|
+
version: z.ZodString;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type TrierarchReportDetails = z.infer<typeof trierarchReportDetailsSchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { idSchema } from '../ids/index.js';
|
|
3
|
+
import { harnessSchema } from '../schemas/ship.js';
|
|
4
|
+
import { trierarchNameSchema } from './names.js';
|
|
5
|
+
/**
|
|
6
|
+
* The details of a trierarch's report (docs/trierarch.md, "What a trierarch
|
|
7
|
+
* reports"; decision 0028): what its machine can do, read from its local
|
|
8
|
+
* configuration and what runs. The trierarch plugin places crew requests
|
|
9
|
+
* from them. No entry per ship: each crew request carries its own status.
|
|
10
|
+
* Every object refuses unknown fields.
|
|
11
|
+
*/
|
|
12
|
+
export const trierarchReportDetailsSchema = z.strictObject({
|
|
13
|
+
harnesses: z.array(z.strictObject({
|
|
14
|
+
harness: harnessSchema,
|
|
15
|
+
/** The JSON Schema a crew request's options for this harness are checked against. */
|
|
16
|
+
options: z.record(z.string(), z.json()),
|
|
17
|
+
/** The flags every launch of this harness gets, as the configuration makes them. */
|
|
18
|
+
flags: z.array(z.string()),
|
|
19
|
+
})),
|
|
20
|
+
workspaces: z.strictObject({ repositories: z.array(trierarchNameSchema), folders: z.array(trierarchNameSchema) }),
|
|
21
|
+
/** How many ships the machine crews at most, and how many sessions run at once. */
|
|
22
|
+
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'), path: z.string().min(1) })),
|
|
25
|
+
/** Worktrees under the trierarch's root with no assigned request: reported, never deleted. */
|
|
26
|
+
orphans: z.array(z.strictObject({ path: z.string().min(1) })),
|
|
27
|
+
/** The trierarch's own version. */
|
|
28
|
+
version: z.string().min(1),
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=report-details.js.map
|
|
@@ -0,0 +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,CAA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C,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeolus-fleet/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Aeolus shared schemas, prefixed ids and types.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsc --project tsconfig.build.json",
|
|
27
|
-
"typecheck": "tsc --project tsconfig.json"
|
|
27
|
+
"typecheck": "tsc --project tsconfig.json",
|
|
28
|
+
"prepack": "cp ../../LICENSE LICENSE",
|
|
29
|
+
"postpack": "rm LICENSE"
|
|
28
30
|
},
|
|
29
31
|
"dependencies": {
|
|
30
32
|
"zod": "^4.6.5"
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The trierarch protocol (docs/trierarch.md, decision 0027): fleet messages
|
|
4
|
-
* to and from a trierarch's ship. Aeolus reads none of them. The core is
|
|
5
|
-
* fixed for every dispatcher; each harness's options are open, described by
|
|
6
|
-
* the JSON Schema describe answers with. Every message refuses unknown
|
|
7
|
-
* fields, so a dispatcher never ignores what a requester meant.
|
|
8
|
-
*/
|
|
9
|
-
/** A message's content type, by convention: `application/vnd.aeolus.trierarch.<name>+json`. */
|
|
10
|
-
export declare function trierarchContentType(name: string): string;
|
|
11
|
-
/** The longest first prompt, in UTF-8 bytes: 8 KB, given on the first start only. */
|
|
12
|
-
export declare const FIRST_PROMPT_MAX_BYTES = 8192;
|
|
13
|
-
/** Where an entry stands in the trierarch's loop; running covers idle and busy. */
|
|
14
|
-
export declare const TRIERARCH_ENTRY_STATES: readonly ["wanted", "crewing", "running", "restarting", "crashed", "releasing"];
|
|
15
|
-
export declare const trierarchEntryStateSchema: z.ZodEnum<{
|
|
16
|
-
crewing: "crewing";
|
|
17
|
-
running: "running";
|
|
18
|
-
restarting: "restarting";
|
|
19
|
-
crashed: "crashed";
|
|
20
|
-
releasing: "releasing";
|
|
21
|
-
wanted: "wanted";
|
|
22
|
-
}>;
|
|
23
|
-
export type TrierarchEntryState = z.infer<typeof trierarchEntryStateSchema>;
|
|
24
|
-
/** A new git worktree of a configured repository, or a configured folder used as it is: named, never a path. */
|
|
25
|
-
export declare const trierarchWorkspaceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
|
-
kind: z.ZodLiteral<"worktree">;
|
|
27
|
-
repository: z.ZodString;
|
|
28
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
30
|
-
kind: z.ZodLiteral<"folder">;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
}, z.core.$strict>], "kind">;
|
|
33
|
-
export type TrierarchWorkspace = z.infer<typeof trierarchWorkspaceSchema>;
|
|
34
|
-
export declare const describeCommandSchema: z.ZodObject<{}, z.core.$strict>;
|
|
35
|
-
/** A flag a harness adapter adds itself, as mechanism, never the operator's: on every launch or on a restart only. */
|
|
36
|
-
export declare const trierarchAdapterFlagSchema: z.ZodObject<{
|
|
37
|
-
flag: z.ZodString;
|
|
38
|
-
when: z.ZodEnum<{
|
|
39
|
-
always: "always";
|
|
40
|
-
restart: "restart";
|
|
41
|
-
}>;
|
|
42
|
-
}, z.core.$strict>;
|
|
43
|
-
export type TrierarchAdapterFlag = z.infer<typeof trierarchAdapterFlagSchema>;
|
|
44
|
-
export declare const describedAnswerSchema: z.ZodObject<{
|
|
45
|
-
harnesses: z.ZodArray<z.ZodObject<{
|
|
46
|
-
harness: z.ZodString;
|
|
47
|
-
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
48
|
-
flags: z.ZodArray<z.ZodString>;
|
|
49
|
-
adapterFlags: z.ZodArray<z.ZodObject<{
|
|
50
|
-
flag: z.ZodString;
|
|
51
|
-
when: z.ZodEnum<{
|
|
52
|
-
always: "always";
|
|
53
|
-
restart: "restart";
|
|
54
|
-
}>;
|
|
55
|
-
}, z.core.$strict>>;
|
|
56
|
-
}, z.core.$strict>>;
|
|
57
|
-
workspaces: z.ZodObject<{
|
|
58
|
-
repositories: z.ZodArray<z.ZodString>;
|
|
59
|
-
folders: z.ZodArray<z.ZodString>;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
caps: z.ZodObject<{
|
|
62
|
-
ships: z.ZodInt;
|
|
63
|
-
running: z.ZodInt;
|
|
64
|
-
}, z.core.$strict>;
|
|
65
|
-
kept: z.ZodArray<z.ZodObject<{
|
|
66
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
67
|
-
path: z.ZodString;
|
|
68
|
-
}, z.core.$strict>>;
|
|
69
|
-
version: z.ZodString;
|
|
70
|
-
}, z.core.$strict>;
|
|
71
|
-
export declare const wantCommandSchema: z.ZodObject<{
|
|
72
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
73
|
-
harness: z.ZodString;
|
|
74
|
-
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
75
|
-
kind: z.ZodLiteral<"worktree">;
|
|
76
|
-
repository: z.ZodString;
|
|
77
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
78
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
79
|
-
kind: z.ZodLiteral<"folder">;
|
|
80
|
-
name: z.ZodString;
|
|
81
|
-
}, z.core.$strict>], "kind">;
|
|
82
|
-
squadron: z.ZodOptional<z.ZodString>;
|
|
83
|
-
firstPrompt: z.ZodOptional<z.ZodString>;
|
|
84
|
-
options: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
85
|
-
}, z.core.$strict>;
|
|
86
|
-
export type WantCommand = z.infer<typeof wantCommandSchema>;
|
|
87
|
-
export declare const wantedAnswerSchema: z.ZodObject<{
|
|
88
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
89
|
-
}, z.core.$strict>;
|
|
90
|
-
export declare const refusedAnswerSchema: z.ZodObject<{
|
|
91
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
92
|
-
field: z.ZodOptional<z.ZodString>;
|
|
93
|
-
reason: z.ZodString;
|
|
94
|
-
}, z.core.$strict>;
|
|
95
|
-
export declare const releaseCommandSchema: z.ZodObject<{
|
|
96
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
97
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
export declare const releasedAnswerSchema: z.ZodObject<{
|
|
100
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
101
|
-
workspace: z.ZodEnum<{
|
|
102
|
-
kept: "kept";
|
|
103
|
-
removed: "removed";
|
|
104
|
-
}>;
|
|
105
|
-
path: z.ZodOptional<z.ZodString>;
|
|
106
|
-
}, z.core.$strict>;
|
|
107
|
-
export declare const listCommandSchema: z.ZodObject<{}, z.core.$strict>;
|
|
108
|
-
export declare const listedAnswerSchema: z.ZodObject<{
|
|
109
|
-
ships: z.ZodArray<z.ZodObject<{
|
|
110
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
111
|
-
harness: z.ZodString;
|
|
112
|
-
state: z.ZodEnum<{
|
|
113
|
-
crewing: "crewing";
|
|
114
|
-
running: "running";
|
|
115
|
-
restarting: "restarting";
|
|
116
|
-
crashed: "crashed";
|
|
117
|
-
releasing: "releasing";
|
|
118
|
-
wanted: "wanted";
|
|
119
|
-
}>;
|
|
120
|
-
since: z.ZodISODateTime;
|
|
121
|
-
restarts: z.ZodInt;
|
|
122
|
-
}, z.core.$strict>>;
|
|
123
|
-
kept: z.ZodArray<z.ZodObject<{
|
|
124
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
125
|
-
path: z.ZodString;
|
|
126
|
-
}, z.core.$strict>>;
|
|
127
|
-
orphans: z.ZodArray<z.ZodObject<{
|
|
128
|
-
path: z.ZodString;
|
|
129
|
-
}, z.core.$strict>>;
|
|
130
|
-
}, z.core.$strict>;
|
|
131
|
-
export declare const runningNoticeSchema: z.ZodObject<{
|
|
132
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
133
|
-
}, z.core.$strict>;
|
|
134
|
-
export declare const crashedNoticeSchema: z.ZodObject<{
|
|
135
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
136
|
-
exits: z.ZodInt;
|
|
137
|
-
}, z.core.$strict>;
|
|
138
|
-
export declare const leaseEndedNoticeSchema: z.ZodObject<{
|
|
139
|
-
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
140
|
-
}, z.core.$strict>;
|
|
141
|
-
/** The commands, by name: what a requester sends a trierarch. */
|
|
142
|
-
export declare const trierarchCommandSchemas: Readonly<Record<string, z.ZodType>>;
|
|
143
|
-
/** The answers, by name, each in reply to its command. */
|
|
144
|
-
export declare const trierarchAnswerSchemas: Readonly<Record<string, z.ZodType>>;
|
|
145
|
-
/** The notices, by name, unasked, to the ship that sent the want. */
|
|
146
|
-
export declare const trierarchNoticeSchemas: Readonly<Record<string, z.ZodType>>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { idSchema } from '../ids/index.js';
|
|
3
|
-
import { shipHandleSchema } from '../schemas/fleet.js';
|
|
4
|
-
import { harnessSchema } from '../schemas/ship.js';
|
|
5
|
-
import { trierarchNameSchema } from './names.js';
|
|
6
|
-
/**
|
|
7
|
-
* The trierarch protocol (docs/trierarch.md, decision 0027): fleet messages
|
|
8
|
-
* to and from a trierarch's ship. Aeolus reads none of them. The core is
|
|
9
|
-
* fixed for every dispatcher; each harness's options are open, described by
|
|
10
|
-
* the JSON Schema describe answers with. Every message refuses unknown
|
|
11
|
-
* fields, so a dispatcher never ignores what a requester meant.
|
|
12
|
-
*/
|
|
13
|
-
/** A message's content type, by convention: `application/vnd.aeolus.trierarch.<name>+json`. */
|
|
14
|
-
export function trierarchContentType(name) {
|
|
15
|
-
return `application/vnd.aeolus.trierarch.${name}+json`;
|
|
16
|
-
}
|
|
17
|
-
/** The longest first prompt, in UTF-8 bytes: 8 KB, given on the first start only. */
|
|
18
|
-
export const FIRST_PROMPT_MAX_BYTES = 8192;
|
|
19
|
-
const utf8 = new TextEncoder();
|
|
20
|
-
/** Where an entry stands in the trierarch's loop; running covers idle and busy. */
|
|
21
|
-
export const TRIERARCH_ENTRY_STATES = ['wanted', 'crewing', 'running', 'restarting', 'crashed', 'releasing'];
|
|
22
|
-
export const trierarchEntryStateSchema = z.enum(TRIERARCH_ENTRY_STATES);
|
|
23
|
-
const shipIdSchema = idSchema('ship');
|
|
24
|
-
/** A new git worktree of a configured repository, or a configured folder used as it is: named, never a path. */
|
|
25
|
-
export const trierarchWorkspaceSchema = z.discriminatedUnion('kind', [
|
|
26
|
-
z.strictObject({ kind: z.literal('worktree'), repository: trierarchNameSchema, ref: z.string().min(1).optional() }),
|
|
27
|
-
z.strictObject({ kind: z.literal('folder'), name: trierarchNameSchema }),
|
|
28
|
-
]);
|
|
29
|
-
/** A worktree the trierarch kept because it had changes, until a human or a release with force clears it. */
|
|
30
|
-
const keptWorktreeSchema = z.strictObject({ shipId: shipIdSchema, path: z.string().min(1) });
|
|
31
|
-
export const describeCommandSchema = z.strictObject({});
|
|
32
|
-
/** A flag a harness adapter adds itself, as mechanism, never the operator's: on every launch or on a restart only. */
|
|
33
|
-
export const trierarchAdapterFlagSchema = z.strictObject({ flag: z.string().min(1), when: z.enum(['always', 'restart']) });
|
|
34
|
-
export const describedAnswerSchema = z.strictObject({
|
|
35
|
-
harnesses: z.array(z.strictObject({
|
|
36
|
-
harness: harnessSchema,
|
|
37
|
-
/** The JSON Schema a want's options are checked against. */
|
|
38
|
-
options: z.record(z.string(), z.json()),
|
|
39
|
-
/** The flags every launch of this harness gets, as the configuration makes them. */
|
|
40
|
-
flags: z.array(z.string()),
|
|
41
|
-
/** The flags the harness's adapter adds itself, beside the configured ones. */
|
|
42
|
-
adapterFlags: z.array(trierarchAdapterFlagSchema),
|
|
43
|
-
})),
|
|
44
|
-
workspaces: z.strictObject({ repositories: z.array(trierarchNameSchema), folders: z.array(trierarchNameSchema) }),
|
|
45
|
-
caps: z.strictObject({ ships: z.int().positive(), running: z.int().positive() }),
|
|
46
|
-
kept: z.array(keptWorktreeSchema),
|
|
47
|
-
version: z.string().min(1),
|
|
48
|
-
});
|
|
49
|
-
export const wantCommandSchema = z.strictObject({
|
|
50
|
-
shipId: shipIdSchema,
|
|
51
|
-
harness: harnessSchema,
|
|
52
|
-
workspace: trierarchWorkspaceSchema,
|
|
53
|
-
/** The squadron the ship is a member of, so it checks in at its flagship as a crew line's squadron id does. */
|
|
54
|
-
squadron: shipHandleSchema.optional(),
|
|
55
|
-
firstPrompt: z
|
|
56
|
-
.string()
|
|
57
|
-
.min(1)
|
|
58
|
-
.refine((prompt) => utf8.encode(prompt).byteLength <= FIRST_PROMPT_MAX_BYTES, `A first prompt is at most ${String(FIRST_PROMPT_MAX_BYTES)} bytes`)
|
|
59
|
-
// A harness would read it as a flag the operator never configured (decision 0027).
|
|
60
|
-
.refine((prompt) => !prompt.startsWith('-'), 'A first prompt may not start with -, which reads as a flag')
|
|
61
|
-
.optional(),
|
|
62
|
-
/** Named settings from what describe offers; checked against its JSON Schema by the trierarch. */
|
|
63
|
-
options: z.record(z.string(), z.json()),
|
|
64
|
-
});
|
|
65
|
-
export const wantedAnswerSchema = z.strictObject({ shipId: shipIdSchema });
|
|
66
|
-
export const refusedAnswerSchema = z.strictObject({
|
|
67
|
-
shipId: shipIdSchema,
|
|
68
|
-
/** The field that was refused, such as `options.model`, when one was. */
|
|
69
|
-
field: z.string().min(1).optional(),
|
|
70
|
-
reason: z.string().min(1),
|
|
71
|
-
});
|
|
72
|
-
export const releaseCommandSchema = z.strictObject({ shipId: shipIdSchema, force: z.boolean().optional() });
|
|
73
|
-
export const releasedAnswerSchema = z.strictObject({
|
|
74
|
-
shipId: shipIdSchema,
|
|
75
|
-
workspace: z.enum(['removed', 'kept']),
|
|
76
|
-
path: z.string().min(1).optional(),
|
|
77
|
-
});
|
|
78
|
-
export const listCommandSchema = z.strictObject({});
|
|
79
|
-
export const listedAnswerSchema = z.strictObject({
|
|
80
|
-
ships: z.array(z.strictObject({
|
|
81
|
-
shipId: shipIdSchema,
|
|
82
|
-
harness: harnessSchema,
|
|
83
|
-
state: trierarchEntryStateSchema,
|
|
84
|
-
since: z.iso.datetime(),
|
|
85
|
-
restarts: z.int().nonnegative(),
|
|
86
|
-
})),
|
|
87
|
-
kept: z.array(keptWorktreeSchema),
|
|
88
|
-
/** Worktrees under the trierarch's root with no entry: reported, never deleted. */
|
|
89
|
-
orphans: z.array(z.strictObject({ path: z.string().min(1) })),
|
|
90
|
-
});
|
|
91
|
-
export const runningNoticeSchema = z.strictObject({ shipId: shipIdSchema });
|
|
92
|
-
export const crashedNoticeSchema = z.strictObject({ shipId: shipIdSchema, exits: z.int().positive() });
|
|
93
|
-
export const leaseEndedNoticeSchema = z.strictObject({ shipId: shipIdSchema });
|
|
94
|
-
/** The commands, by name: what a requester sends a trierarch. */
|
|
95
|
-
export const trierarchCommandSchemas = {
|
|
96
|
-
describe: describeCommandSchema,
|
|
97
|
-
want: wantCommandSchema,
|
|
98
|
-
release: releaseCommandSchema,
|
|
99
|
-
list: listCommandSchema,
|
|
100
|
-
};
|
|
101
|
-
/** The answers, by name, each in reply to its command. */
|
|
102
|
-
export const trierarchAnswerSchemas = {
|
|
103
|
-
described: describedAnswerSchema,
|
|
104
|
-
wanted: wantedAnswerSchema,
|
|
105
|
-
refused: refusedAnswerSchema,
|
|
106
|
-
released: releasedAnswerSchema,
|
|
107
|
-
listed: listedAnswerSchema,
|
|
108
|
-
};
|
|
109
|
-
/** The notices, by name, unasked, to the ship that sent the want. */
|
|
110
|
-
export const trierarchNoticeSchemas = {
|
|
111
|
-
running: runningNoticeSchema,
|
|
112
|
-
crashed: crashedNoticeSchema,
|
|
113
|
-
leaseEnded: leaseEndedNoticeSchema,
|
|
114
|
-
};
|
|
115
|
-
//# sourceMappingURL=protocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../src/trierarch/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD;;;;;;GAMG;AAEH,+FAA+F;AAC/F,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,OAAO,oCAAoC,IAAI,OAAO,CAAC;AACzD,CAAC;AAED,qFAAqF;AACrF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;AAE/B,mFAAmF;AACnF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,CAA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