@aeolus-fleet/common 0.30.1 → 0.32.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/dist/fleet/index.d.ts +51 -9
- package/dist/fleet/index.js +48 -6
- package/dist/fleet/index.js.map +1 -1
- package/dist/ids/index.d.ts +6 -0
- package/dist/ids/index.js +4 -0
- package/dist/ids/index.js.map +1 -1
- package/dist/rules/duration.d.ts +2 -0
- package/dist/rules/duration.js +22 -0
- package/dist/rules/duration.js.map +1 -0
- package/dist/rules/index.d.ts +1 -0
- package/dist/rules/index.js +1 -0
- package/dist/rules/index.js.map +1 -1
- package/dist/schemas/apps-list.d.ts +4 -4
- package/dist/schemas/console.d.ts +3 -24
- package/dist/schemas/console.js +4 -3
- package/dist/schemas/console.js.map +1 -1
- package/dist/schemas/delivery.d.ts +34 -5
- package/dist/schemas/delivery.js +21 -7
- package/dist/schemas/delivery.js.map +1 -1
- package/dist/schemas/fleet.d.ts +64 -2
- package/dist/schemas/fleet.js +9 -2
- package/dist/schemas/fleet.js.map +1 -1
- package/dist/schemas/follow.d.ts +25 -0
- package/dist/schemas/history.d.ts +184 -2
- package/dist/schemas/history.js +26 -2
- package/dist/schemas/history.js.map +1 -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/installation.d.ts +118 -4
- package/dist/schemas/installation.js +34 -5
- package/dist/schemas/installation.js.map +1 -1
- package/dist/schemas/label.d.ts +4 -4
- package/dist/schemas/meeting.d.ts +263 -0
- package/dist/schemas/meeting.js +129 -0
- package/dist/schemas/meeting.js.map +1 -0
- package/dist/schemas/message.d.ts +44 -1
- package/dist/schemas/message.js +35 -4
- package/dist/schemas/message.js.map +1 -1
- package/dist/schemas/needs-attention.d.ts +20 -0
- package/dist/schemas/network.d.ts +17 -3
- package/dist/schemas/network.js +4 -3
- package/dist/schemas/network.js.map +1 -1
- package/dist/schemas/schedule.d.ts +372 -0
- package/dist/schemas/schedule.js +132 -0
- package/dist/schemas/schedule.js.map +1 -0
- package/dist/schemas/scopes.d.ts +29 -3
- package/dist/schemas/scopes.js +17 -3
- package/dist/schemas/scopes.js.map +1 -1
- package/dist/schemas/ship.js +1 -1
- package/dist/schemas/statement.d.ts +5 -0
- package/dist/schemas/statement.js +3 -1
- package/dist/schemas/statement.js.map +1 -1
- package/dist/trierarch/report-details.d.ts +48 -0
- package/dist/trierarch/report-details.js +52 -0
- package/dist/trierarch/report-details.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { idSchema } from '../ids/index.js';
|
|
3
|
+
import { durationMs } from '../rules/duration.js';
|
|
4
|
+
import { idempotencyKeySchema } from './idempotency-key.js';
|
|
5
|
+
import { labelValueTextSchema } from './history.js';
|
|
6
|
+
import { contentTypeSchema, modelSchema, payloadSchema, scheduleSelectorSchema } from './message.js';
|
|
7
|
+
import { pageInputOf, pageOutputOf } from './page.js';
|
|
8
|
+
/**
|
|
9
|
+
* Inputs and outputs of scheduled messages (decision 0062): making a schedule
|
|
10
|
+
* (`ship.schedule`), listing a ship's schedules (`ship.schedules`,
|
|
11
|
+
* `fleet.schedules`), pausing one (`ship.pauseSchedule`,
|
|
12
|
+
* `fleet.pauseSchedule`), resuming one (`ship.resumeSchedule`) and cancelling
|
|
13
|
+
* one (`ship.cancelSchedule`, `fleet.cancelSchedule`).
|
|
14
|
+
*/
|
|
15
|
+
export { durationMs } from '../rules/duration.js';
|
|
16
|
+
/** ISO 8601 in UTC. */
|
|
17
|
+
const isoTime = z.iso.datetime();
|
|
18
|
+
/** The prefix of the idempotency key of every message a schedule sends: no live send may use it. */
|
|
19
|
+
export const SCHEDULE_IDEMPOTENCY_KEY_PREFIX = 'schedule:';
|
|
20
|
+
/** A schedule's state: it sends while active, and an ended or cancelled one never sends again. */
|
|
21
|
+
export const SCHEDULE_STATES = ['active', 'paused', 'ended', 'cancelled'];
|
|
22
|
+
export const scheduleStateSchema = z.enum(SCHEDULE_STATES);
|
|
23
|
+
/** What a refused send time does, the creator's choice (S7): record it and go on, try again within the retry window, or pause. */
|
|
24
|
+
export const REFUSAL_STRATEGIES = ['skip', 'retry', 'pause'];
|
|
25
|
+
export const refusalStrategySchema = z.enum(REFUSAL_STRATEGIES);
|
|
26
|
+
/** What a send time the pass reaches later than its grace does, the creator's choice (S6): send every missed one, the latest only, or none. */
|
|
27
|
+
export const MISSED_STRATEGIES = ['each', 'once', 'skip'];
|
|
28
|
+
export const missedStrategySchema = z.enum(MISSED_STRATEGIES);
|
|
29
|
+
/** An ISO 8601 duration of a fixed length, such as PT30M or P1D. */
|
|
30
|
+
export const durationSchema = z.string().refine((text) => durationMs(text) !== undefined, 'A duration is ISO 8601 of weeks, or days, hours, minutes and seconds, such as PT30M or P1D');
|
|
31
|
+
/** An instant with its offset. */
|
|
32
|
+
const instant = z.iso.datetime({ offset: true });
|
|
33
|
+
/** A repeat's bounds (S1): its first send time at or after start, its last at or before end, and at most count sends. */
|
|
34
|
+
const repeatBounds = { start: instant.optional(), end: instant.optional(), count: z.number().int().optional() };
|
|
35
|
+
/**
|
|
36
|
+
* When a schedule sends (S1): once, at an instant with its offset; every an
|
|
37
|
+
* ISO 8601 duration of a fixed length; or at the wall times of a cron of five
|
|
38
|
+
* fields in an IANA time zone, UTC unless given. A repeat takes an optional
|
|
39
|
+
* start, end and count, either of the last two ending it.
|
|
40
|
+
*/
|
|
41
|
+
export const scheduleTimingSchema = z.discriminatedUnion('kind', [
|
|
42
|
+
z.strictObject({ kind: z.literal('once'), at: instant }),
|
|
43
|
+
z.strictObject({ kind: z.literal('every'), every: z.string(), ...repeatBounds }),
|
|
44
|
+
z.strictObject({ kind: z.literal('cron'), cron: z.string(), timeZone: z.string().optional(), ...repeatBounds }),
|
|
45
|
+
]);
|
|
46
|
+
/**
|
|
47
|
+
* Input of `ship.schedule` (messages:send, and messages:force when forced): a
|
|
48
|
+
* whole send input, stored as given, the model the ship states, the timing,
|
|
49
|
+
* what a refused send time does and the ship's idempotency key.
|
|
50
|
+
*/
|
|
51
|
+
export const scheduleInputSchema = z.object({
|
|
52
|
+
selector: scheduleSelectorSchema,
|
|
53
|
+
payload: payloadSchema,
|
|
54
|
+
/** Without it, the payload is text/plain. */
|
|
55
|
+
contentType: contentTypeSchema.optional(),
|
|
56
|
+
model: modelSchema.optional(),
|
|
57
|
+
idempotencyKey: idempotencyKeySchema,
|
|
58
|
+
inReplyTo: idSchema('message').optional(),
|
|
59
|
+
isForced: z.boolean().optional(),
|
|
60
|
+
timing: scheduleTimingSchema,
|
|
61
|
+
/** skip unless given. */
|
|
62
|
+
onRefused: refusalStrategySchema.optional(),
|
|
63
|
+
/** How long after its send time a refused send is tried again under retry; PT1H unless given. */
|
|
64
|
+
retryWindow: durationSchema.optional(),
|
|
65
|
+
/** each unless given. */
|
|
66
|
+
onMissed: missedStrategySchema.optional(),
|
|
67
|
+
/** How late a pass may reach a send time before it is missed; PT5M unless given. */
|
|
68
|
+
grace: durationSchema.optional(),
|
|
69
|
+
});
|
|
70
|
+
/** Output of `ship.schedule`: the schedule's id, the original one when the key was used before. */
|
|
71
|
+
export const scheduleOutputSchema = z.object({ scheduleId: idSchema('schedule') });
|
|
72
|
+
/** A send time's outcome: the message it stored, the code it was refused with, or missed. */
|
|
73
|
+
export const scheduleOutcomeSchema = z.discriminatedUnion('kind', [
|
|
74
|
+
z.object({ kind: z.literal('sent'), messageId: idSchema('message'), sendTime: isoTime, at: isoTime }),
|
|
75
|
+
z.object({ kind: z.literal('refused'), code: z.string(), sendTime: isoTime, at: isoTime }),
|
|
76
|
+
z.object({ kind: z.literal('missed'), sendTime: isoTime, at: isoTime }),
|
|
77
|
+
]);
|
|
78
|
+
const storedRepeatBounds = { start: isoTime.nullable(), end: isoTime.nullable(), count: z.number().int().nullable() };
|
|
79
|
+
/** A schedule's timing as stored, its defaults filled in. */
|
|
80
|
+
export const scheduleTimingItemSchema = z.discriminatedUnion('kind', [
|
|
81
|
+
z.object({ kind: z.literal('once'), at: isoTime }),
|
|
82
|
+
z.object({ kind: z.literal('every'), every: z.string(), ...storedRepeatBounds }),
|
|
83
|
+
z.object({ kind: z.literal('cron'), cron: z.string(), timeZone: z.string(), ...storedRepeatBounds }),
|
|
84
|
+
]);
|
|
85
|
+
/**
|
|
86
|
+
* What a schedule sends to, as a list shows it: as the creator gave it, a
|
|
87
|
+
* label selection with each value by its texts for a caller holding
|
|
88
|
+
* fleet:read (decision 0065, R10).
|
|
89
|
+
*/
|
|
90
|
+
const scheduleItemSelectorSchema = z.union([
|
|
91
|
+
z.object({ kind: z.literal('ship'), shipId: idSchema('ship') }),
|
|
92
|
+
z.object({ kind: z.literal('ship'), name: z.string() }),
|
|
93
|
+
z.object({ kind: z.literal('type'), type: z.string() }),
|
|
94
|
+
z.object({ kind: z.literal('label'), valueIds: z.array(idSchema('labelValue')), values: z.array(labelValueTextSchema).optional() }),
|
|
95
|
+
]);
|
|
96
|
+
/** One schedule as a list shows it: its send input but the payload, its timing and strategies, its state, next send time and last outcome. */
|
|
97
|
+
export const scheduleItemSchema = z.object({
|
|
98
|
+
scheduleId: idSchema('schedule'),
|
|
99
|
+
shipId: idSchema('ship'),
|
|
100
|
+
state: scheduleStateSchema,
|
|
101
|
+
selector: scheduleItemSelectorSchema,
|
|
102
|
+
contentType: z.string(),
|
|
103
|
+
inReplyTo: idSchema('message').nullable(),
|
|
104
|
+
isForced: z.boolean(),
|
|
105
|
+
timing: scheduleTimingItemSchema,
|
|
106
|
+
onRefused: refusalStrategySchema,
|
|
107
|
+
retryWindow: z.string(),
|
|
108
|
+
onMissed: missedStrategySchema,
|
|
109
|
+
grace: z.string(),
|
|
110
|
+
/** None once it ended or was cancelled. */
|
|
111
|
+
nextSendTime: isoTime.nullable(),
|
|
112
|
+
lastOutcome: scheduleOutcomeSchema.nullable(),
|
|
113
|
+
createdAt: isoTime,
|
|
114
|
+
endedAt: isoTime.nullable(),
|
|
115
|
+
cancelledAt: isoTime.nullable(),
|
|
116
|
+
});
|
|
117
|
+
/** Input of `ship.schedules`: a page, newest first; active and paused ones unless `states` names others. */
|
|
118
|
+
export const schedulesInputSchema = pageInputOf(idSchema('schedule')).extend({ states: z.array(scheduleStateSchema).min(1).optional() });
|
|
119
|
+
/** Input of `fleet.schedules` (fleet:manage): the ship whose schedules to list, as `ship.schedules` lists them. */
|
|
120
|
+
export const fleetSchedulesInputSchema = schedulesInputSchema.extend({ shipId: idSchema('ship') });
|
|
121
|
+
export const schedulesOutputSchema = pageOutputOf(scheduleItemSchema, idSchema('schedule'));
|
|
122
|
+
/** Input of `ship.pauseSchedule` and `fleet.pauseSchedule`. */
|
|
123
|
+
export const pauseScheduleInputSchema = z.object({ scheduleId: idSchema('schedule') });
|
|
124
|
+
export const pauseScheduleOutputSchema = z.object({ scheduleId: idSchema('schedule'), state: z.literal('paused') });
|
|
125
|
+
/** Input of `ship.resumeSchedule`. */
|
|
126
|
+
export const resumeScheduleInputSchema = z.object({ scheduleId: idSchema('schedule') });
|
|
127
|
+
/** Active again, or ended when no send time is left after now. */
|
|
128
|
+
export const resumeScheduleOutputSchema = z.object({ scheduleId: idSchema('schedule'), state: z.enum(['active', 'ended']) });
|
|
129
|
+
/** Input of `ship.cancelSchedule` and `fleet.cancelSchedule`. */
|
|
130
|
+
export const cancelScheduleInputSchema = z.object({ scheduleId: idSchema('schedule') });
|
|
131
|
+
export const cancelScheduleOutputSchema = z.object({ scheduleId: idSchema('schedule'), state: z.literal('cancelled') });
|
|
132
|
+
//# sourceMappingURL=schedule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule.js","sourceRoot":"","sources":["../../src/schemas/schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MA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AAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/schemas/scopes.d.ts
CHANGED
|
@@ -25,12 +25,18 @@ export declare const declareScopesOutputSchema: z.ZodObject<{
|
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
/**
|
|
28
|
-
* Output of `fleet.scopes` (fleet:read): every namespace of the fleet,
|
|
29
|
-
* core ones first, declared by no ship, then
|
|
30
|
-
*
|
|
28
|
+
* Output of `fleet.scopes` (fleet:read): every namespace of the fleet,
|
|
29
|
+
* saying whose it is: the core ones first, declared by no ship, then the
|
|
30
|
+
* plugins' and the fleet's own by namespace, a plugin's with its declarer by
|
|
31
|
+
* id and name (decision 0046).
|
|
31
32
|
*/
|
|
32
33
|
export declare const scopesOutputSchema: z.ZodArray<z.ZodObject<{
|
|
33
34
|
namespace: z.ZodString;
|
|
35
|
+
kind: z.ZodEnum<{
|
|
36
|
+
core: "core";
|
|
37
|
+
fleet: "fleet";
|
|
38
|
+
plugin: "plugin";
|
|
39
|
+
}>;
|
|
34
40
|
declaredBy: z.ZodNullable<z.ZodObject<{
|
|
35
41
|
id: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
36
42
|
name: z.ZodString;
|
|
@@ -54,3 +60,23 @@ export declare const grantScopesInputSchema: z.ZodObject<{
|
|
|
54
60
|
export declare const grantScopesOutputSchema: z.ZodObject<{
|
|
55
61
|
scopes: z.ZodArray<z.ZodString>;
|
|
56
62
|
}, z.core.$strip>;
|
|
63
|
+
/**
|
|
64
|
+
* Input of `fleet.defineScope` and `fleet.describeScope` (scopes:define):
|
|
65
|
+
* one of the fleet's own scopes and its one-line description (design
|
|
66
|
+
* gateway-scopes, 4.1). Core checks each rule and names its refusal.
|
|
67
|
+
*/
|
|
68
|
+
export declare const defineScopeInputSchema: z.ZodObject<{
|
|
69
|
+
scope: z.ZodString;
|
|
70
|
+
description: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
/** Output of `fleet.defineScope` and `fleet.describeScope`: the scope as the fleet has it now. */
|
|
73
|
+
export declare const definedScopeOutputSchema: z.ZodObject<{
|
|
74
|
+
scope: z.ZodString;
|
|
75
|
+
description: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** Input of `fleet.removeScope` (scopes:define): one of the fleet's own scopes. */
|
|
78
|
+
export declare const removeScopeInputSchema: z.ZodObject<{
|
|
79
|
+
scope: z.ZodString;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
/** Output of `fleet.removeScope`: nothing, once the scope is gone. */
|
|
82
|
+
export declare const removeScopeOutputSchema: z.ZodObject<{}, z.core.$strip>;
|
package/dist/schemas/scopes.js
CHANGED
|
@@ -15,12 +15,14 @@ export const declareScopesInputSchema = z.object({
|
|
|
15
15
|
/** Output of `fleet.declareScopes`: the namespace as declared. */
|
|
16
16
|
export const declareScopesOutputSchema = z.object({ namespace: z.string(), scopes: z.array(declaredScopeSchema) });
|
|
17
17
|
/**
|
|
18
|
-
* Output of `fleet.scopes` (fleet:read): every namespace of the fleet,
|
|
19
|
-
* core ones first, declared by no ship, then
|
|
20
|
-
*
|
|
18
|
+
* Output of `fleet.scopes` (fleet:read): every namespace of the fleet,
|
|
19
|
+
* saying whose it is: the core ones first, declared by no ship, then the
|
|
20
|
+
* plugins' and the fleet's own by namespace, a plugin's with its declarer by
|
|
21
|
+
* id and name (decision 0046).
|
|
21
22
|
*/
|
|
22
23
|
export const scopesOutputSchema = z.array(z.object({
|
|
23
24
|
namespace: z.string(),
|
|
25
|
+
kind: z.enum(['core', 'plugin', 'fleet']),
|
|
24
26
|
declaredBy: z.object({ id: idSchema('ship'), name: z.string() }).nullable(),
|
|
25
27
|
scopes: z.array(declaredScopeSchema),
|
|
26
28
|
}));
|
|
@@ -32,4 +34,16 @@ export const scopesOutputSchema = z.array(z.object({
|
|
|
32
34
|
export const grantScopesInputSchema = z.object({ shipId: idSchema('ship'), grant: z.array(z.string()), revoke: z.array(z.string()) });
|
|
33
35
|
/** Output of `fleet.grantScopes`: every scope the ship holds now. */
|
|
34
36
|
export const grantScopesOutputSchema = z.object({ scopes: z.array(scopeNameSchema) });
|
|
37
|
+
/**
|
|
38
|
+
* Input of `fleet.defineScope` and `fleet.describeScope` (scopes:define):
|
|
39
|
+
* one of the fleet's own scopes and its one-line description (design
|
|
40
|
+
* gateway-scopes, 4.1). Core checks each rule and names its refusal.
|
|
41
|
+
*/
|
|
42
|
+
export const defineScopeInputSchema = z.object({ scope: z.string(), description: z.string() });
|
|
43
|
+
/** Output of `fleet.defineScope` and `fleet.describeScope`: the scope as the fleet has it now. */
|
|
44
|
+
export const definedScopeOutputSchema = declaredScopeSchema;
|
|
45
|
+
/** Input of `fleet.removeScope` (scopes:define): one of the fleet's own scopes. */
|
|
46
|
+
export const removeScopeInputSchema = z.object({ scope: z.string() });
|
|
47
|
+
/** Output of `fleet.removeScope`: nothing, once the scope is gone. */
|
|
48
|
+
export const removeScopeOutputSchema = z.object({});
|
|
35
49
|
//# sourceMappingURL=scopes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../src/schemas/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,uEAAuE;AACvE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEjG;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,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AAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEtE,sEAAsE;AACtE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/schemas/ship.js
CHANGED
|
@@ -64,7 +64,7 @@ export const whoamiOutputSchema = z.object({
|
|
|
64
64
|
type: z.string(),
|
|
65
65
|
/**
|
|
66
66
|
* Its owner's id and name, both null for argo and the viewer (decision
|
|
67
|
-
* 0045). Keys of their own: the
|
|
67
|
+
* 0045). Keys of their own: the Aeolus Fleet plugin's scripts read name, shipId
|
|
68
68
|
* and type as the last such key in the answer.
|
|
69
69
|
*/
|
|
70
70
|
ownerShipId: idSchema('ship').nullable(),
|
|
@@ -29,6 +29,7 @@ export declare const capabilitySchema: z.ZodObject<{
|
|
|
29
29
|
waitMs: z.ZodOptional<z.ZodInt>;
|
|
30
30
|
deadlineMs: z.ZodOptional<z.ZodInt>;
|
|
31
31
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
33
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
33
34
|
title: z.ZodOptional<z.ZodString>;
|
|
34
35
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -54,6 +55,7 @@ export declare const statementSchema: z.ZodObject<{
|
|
|
54
55
|
waitMs: z.ZodOptional<z.ZodInt>;
|
|
55
56
|
deadlineMs: z.ZodOptional<z.ZodInt>;
|
|
56
57
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
57
59
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
58
60
|
title: z.ZodOptional<z.ZodString>;
|
|
59
61
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -78,6 +80,7 @@ export declare const setStatementInputSchema: z.ZodObject<{
|
|
|
78
80
|
waitMs: z.ZodOptional<z.ZodInt>;
|
|
79
81
|
deadlineMs: z.ZodOptional<z.ZodInt>;
|
|
80
82
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
84
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
82
85
|
title: z.ZodOptional<z.ZodString>;
|
|
83
86
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -111,6 +114,7 @@ export declare const discoveredStatementSchema: z.ZodNullable<z.ZodDiscriminated
|
|
|
111
114
|
waitMs: z.ZodOptional<z.ZodInt>;
|
|
112
115
|
deadlineMs: z.ZodOptional<z.ZodInt>;
|
|
113
116
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
118
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
115
119
|
title: z.ZodOptional<z.ZodString>;
|
|
116
120
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -162,6 +166,7 @@ export declare const discoverOutputSchema: z.ZodObject<{
|
|
|
162
166
|
waitMs: z.ZodOptional<z.ZodInt>;
|
|
163
167
|
deadlineMs: z.ZodOptional<z.ZodInt>;
|
|
164
168
|
repeatable: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
165
170
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
166
171
|
title: z.ZodOptional<z.ZodString>;
|
|
167
172
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { shipKindSchema, shipStatusSchema } from '../fleet/index.js';
|
|
2
|
+
import { scopeNameSchema, shipKindSchema, shipStatusSchema } from '../fleet/index.js';
|
|
3
3
|
import { idSchema } from '../ids/index.js';
|
|
4
4
|
import { contentTypeSchema } from './message.js';
|
|
5
5
|
import { discoveredVerifiedFactSchema } from './verified-fact.js';
|
|
@@ -57,6 +57,8 @@ export const capabilitySchema = z.strictObject({
|
|
|
57
57
|
deadlineMs: z.int().min(1).max(CAPABILITY_DEADLINE_MAX_MS).optional(),
|
|
58
58
|
/** Whether a call that died before it was confirmed may be handed again; none is not (interop 5.2). */
|
|
59
59
|
repeatable: z.boolean().optional(),
|
|
60
|
+
/** The scopes a ship needs to call it, all of them; none needs nothing beyond reaching the ship (decision 0064). */
|
|
61
|
+
scopes: z.array(scopeNameSchema).optional(),
|
|
60
62
|
/** MCP's tool annotations, as the outside server gave them. */
|
|
61
63
|
annotations: toolAnnotationsSchema.optional(),
|
|
62
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statement.js","sourceRoot":"","sources":["../../src/schemas/statement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"statement.js","sourceRoot":"","sources":["../../src/schemas/statement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAElE;;;;;;;;;GASG;AAEH,2GAA2G;AAC3G,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,GAAG,IAAI,CAAC;AAE7C,gDAAgD;AAChD,MAAM,CAAC,MAAM,4BAA4B,GAAG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I,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC;CAC5D,CAAC;KACD,QAAQ,EAAE,CAAC;AAId;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CACZ,CAAC,CAAC,MAAM,CAAC;QACP,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC;QACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,gBAAgB;QACxB,SAAS,EAAE,yBAAyB;QACpC,+FAA+F;QAC/F,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,4BAA4B,CAAC;KAChD,CAAC,CACH;IACD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;CAC1E,CAAC,CAAC"}
|
|
@@ -5,6 +5,8 @@ export declare const MACHINE_OS: readonly ["macos", "linux", "windows"];
|
|
|
5
5
|
export declare const MACHINE_ARCH: readonly ["arm64", "amd64"];
|
|
6
6
|
/** Where a trierarch runs its sessions: on the host or each in a container of its own (decision 0039). */
|
|
7
7
|
export declare const SESSION_RUNTIMES: readonly ["host", "container"];
|
|
8
|
+
/** The longest reason a harness is not offered: one line for the console. */
|
|
9
|
+
export declare const NOT_OFFERED_REASON_MAX_LENGTH = 280;
|
|
8
10
|
export declare const trierarchReportDetailsSchema: z.ZodObject<{
|
|
9
11
|
harnesses: z.ZodArray<z.ZodObject<{
|
|
10
12
|
harness: z.ZodString;
|
|
@@ -45,6 +47,52 @@ export declare const trierarchReportDetailsSchema: z.ZodObject<{
|
|
|
45
47
|
host: "host";
|
|
46
48
|
container: "container";
|
|
47
49
|
}>>;
|
|
50
|
+
notOffered: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
harness: z.ZodString;
|
|
52
|
+
reason: z.ZodString;
|
|
53
|
+
}, z.core.$strict>>>;
|
|
54
|
+
load: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
memory: z.ZodObject<{
|
|
56
|
+
totalBytes: z.ZodInt;
|
|
57
|
+
availableBytes: z.ZodInt;
|
|
58
|
+
}, z.core.$strict>;
|
|
59
|
+
swap: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
totalBytes: z.ZodInt;
|
|
61
|
+
usedBytes: z.ZodInt;
|
|
62
|
+
}, z.core.$strict>>;
|
|
63
|
+
cpu: z.ZodObject<{
|
|
64
|
+
cores: z.ZodInt;
|
|
65
|
+
loadAverage: z.ZodNumber;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
disk: z.ZodObject<{
|
|
68
|
+
totalBytes: z.ZodInt;
|
|
69
|
+
freeBytes: z.ZodInt;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
subscriptions: z.ZodArray<z.ZodObject<{
|
|
74
|
+
harness: z.ZodString;
|
|
75
|
+
readAt: z.ZodISODateTime;
|
|
76
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
77
|
+
windowMinutes: z.ZodInt;
|
|
78
|
+
usedPercent: z.ZodNumber;
|
|
79
|
+
resetsAt: z.ZodISODateTime;
|
|
80
|
+
}, z.core.$strict>>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
ships: z.ZodArray<z.ZodObject<{
|
|
83
|
+
shipId: z.ZodType<`shp_${string}`, unknown, z.core.$ZodTypeInternals<`shp_${string}`, unknown>>;
|
|
84
|
+
models: z.ZodArray<z.ZodObject<{
|
|
85
|
+
model: z.ZodString;
|
|
86
|
+
tokens: z.ZodObject<{
|
|
87
|
+
input: z.ZodInt;
|
|
88
|
+
output: z.ZodInt;
|
|
89
|
+
cacheRead: z.ZodInt;
|
|
90
|
+
cacheWrite: z.ZodInt;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
estimatedCostUsd: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
}, z.core.$strict>>;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
48
96
|
version: z.ZodString;
|
|
49
97
|
}, z.core.$strict>;
|
|
50
98
|
export type TrierarchReportDetails = z.infer<typeof trierarchReportDetailsSchema>;
|
|
@@ -21,6 +21,47 @@ const worktreeFolderNameSchema = z
|
|
|
21
21
|
.min(1)
|
|
22
22
|
.max(TRIERARCH_NAME_MAX_LENGTH)
|
|
23
23
|
.refine((name) => !/[/\\]/.test(name) && name !== '.' && name !== '..', 'A folder name is one name, never a path');
|
|
24
|
+
const byteCountSchema = z.int().nonnegative();
|
|
25
|
+
const tokenCountSchema = z.int().nonnegative();
|
|
26
|
+
/** A share of a whole, from 0 to 100. */
|
|
27
|
+
const percentSchema = z.number().min(0).max(100);
|
|
28
|
+
/**
|
|
29
|
+
* The machine's load as the trierarch last read it (#400): memory, swap, CPU
|
|
30
|
+
* and the disk its worktree root is on, machine totals only.
|
|
31
|
+
*/
|
|
32
|
+
const machineLoadSchema = z.strictObject({
|
|
33
|
+
memory: z.strictObject({ totalBytes: byteCountSchema, availableBytes: byteCountSchema }),
|
|
34
|
+
/** None where the platform does not say it. */
|
|
35
|
+
swap: z.strictObject({ totalBytes: byteCountSchema, usedBytes: byteCountSchema }).optional(),
|
|
36
|
+
/** The 1-minute load average, over this many cores. */
|
|
37
|
+
cpu: z.strictObject({ cores: z.int().positive(), loadAverage: z.number().nonnegative() }),
|
|
38
|
+
/** The filesystem the trierarch's worktree root is on. */
|
|
39
|
+
disk: z.strictObject({ totalBytes: byteCountSchema, freeBytes: byteCountSchema }),
|
|
40
|
+
});
|
|
41
|
+
/**
|
|
42
|
+
* What the trierarch reads of its harnesses' usage (#353): how much of each
|
|
43
|
+
* harness's subscription is used, per window, and the tokens each ship it
|
|
44
|
+
* crews used per model, with their cost estimated from its price table (null
|
|
45
|
+
* for a model the table does not price).
|
|
46
|
+
*/
|
|
47
|
+
const harnessUsageSchema = z.strictObject({
|
|
48
|
+
subscriptions: z.array(z.strictObject({
|
|
49
|
+
harness: harnessSchema,
|
|
50
|
+
/** When the trierarch read it (ISO 8601 in UTC). */
|
|
51
|
+
readAt: z.iso.datetime(),
|
|
52
|
+
windows: z.array(z.strictObject({ windowMinutes: z.int().positive(), usedPercent: percentSchema, resetsAt: z.iso.datetime() })),
|
|
53
|
+
})),
|
|
54
|
+
ships: z.array(z.strictObject({
|
|
55
|
+
shipId: idSchema('ship'),
|
|
56
|
+
models: z.array(z.strictObject({
|
|
57
|
+
model: z.string().min(1),
|
|
58
|
+
tokens: z.strictObject({ input: tokenCountSchema, output: tokenCountSchema, cacheRead: tokenCountSchema, cacheWrite: tokenCountSchema }),
|
|
59
|
+
estimatedCostUsd: z.number().nonnegative().nullable(),
|
|
60
|
+
})),
|
|
61
|
+
})),
|
|
62
|
+
});
|
|
63
|
+
/** The longest reason a harness is not offered: one line for the console. */
|
|
64
|
+
export const NOT_OFFERED_REASON_MAX_LENGTH = 280;
|
|
24
65
|
export const trierarchReportDetailsSchema = z.strictObject({
|
|
25
66
|
harnesses: z.array(z.strictObject({
|
|
26
67
|
harness: harnessSchema,
|
|
@@ -58,6 +99,17 @@ export const trierarchReportDetailsSchema = z.strictObject({
|
|
|
58
99
|
* None from a trierarch before 0.25.0, which ran them on the host.
|
|
59
100
|
*/
|
|
60
101
|
runtime: z.enum(SESSION_RUNTIMES).optional(),
|
|
102
|
+
/**
|
|
103
|
+
* The configured harnesses the trierarch cannot serve now, each with why,
|
|
104
|
+
* such as its Aeolus Fleet plugin missing (#1212): left out of `harnesses` and
|
|
105
|
+
* `workspaces`, offered again once the cause is gone. None from a trierarch
|
|
106
|
+
* before 0.31.0, or with every harness offered.
|
|
107
|
+
*/
|
|
108
|
+
notOffered: z.array(z.strictObject({ harness: harnessSchema, reason: z.string().min(1).max(NOT_OFFERED_REASON_MAX_LENGTH) })).optional(),
|
|
109
|
+
/** None from a trierarch before 0.31.0. */
|
|
110
|
+
load: machineLoadSchema.optional(),
|
|
111
|
+
/** None from a trierarch before 0.31.0. */
|
|
112
|
+
usage: harnessUsageSchema.optional(),
|
|
61
113
|
/** The trierarch's own version. */
|
|
62
114
|
version: z.string().min(1),
|
|
63
115
|
});
|
|
@@ -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,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,CAAC,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,OAAO,CAAU,CAAC;AAExD,0GAA0G;AAC1G,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,WAAW,CAAU,CAAC;AAE/D;;;;;;GAMG;AACH,qGAAqG;AACrG,MAAM,wBAAwB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,yBAAyB,CAAC;KAC9B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI,EAAE,yCAAy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