@aeolus-fleet/common 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,14 +13,15 @@ export declare const trierarchWorkspaceSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
13
13
|
export type TrierarchWorkspace = z.infer<typeof trierarchWorkspaceSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* A crew request's settings as a trierarch reads them (decision 0027): the
|
|
16
|
-
* fixed core of harness, workspace, an optional squadron, an
|
|
17
|
-
* prompt and options.
|
|
16
|
+
* fixed core of an optional harness, workspace, an optional squadron, an
|
|
17
|
+
* optional first prompt and options. Without a harness, the trierarch it
|
|
18
|
+
* goes to crews it with its default: the first in its configuration. The server stores them without meaning; the trierarch
|
|
18
19
|
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
19
20
|
* command-line flag: a workspace names a repository or folder, options pick
|
|
20
21
|
* named settings, and a first prompt never starts with `-`.
|
|
21
22
|
*/
|
|
22
23
|
export declare const crewSettingsSchema: z.ZodObject<{
|
|
23
|
-
harness: z.ZodString
|
|
24
|
+
harness: z.ZodOptional<z.ZodString>;
|
|
24
25
|
workspace: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
26
|
kind: z.ZodLiteral<"worktree">;
|
|
26
27
|
repository: z.ZodString;
|
|
@@ -14,14 +14,15 @@ export const trierarchWorkspaceSchema = z.discriminatedUnion('kind', [
|
|
|
14
14
|
]);
|
|
15
15
|
/**
|
|
16
16
|
* A crew request's settings as a trierarch reads them (decision 0027): the
|
|
17
|
-
* fixed core of harness, workspace, an optional squadron, an
|
|
18
|
-
* prompt and options.
|
|
17
|
+
* fixed core of an optional harness, workspace, an optional squadron, an
|
|
18
|
+
* optional first prompt and options. Without a harness, the trierarch it
|
|
19
|
+
* goes to crews it with its default: the first in its configuration. The server stores them without meaning; the trierarch
|
|
19
20
|
* plugin and the trierarch parse them with this schema. Never a path or a
|
|
20
21
|
* command-line flag: a workspace names a repository or folder, options pick
|
|
21
22
|
* named settings, and a first prompt never starts with `-`.
|
|
22
23
|
*/
|
|
23
24
|
export const crewSettingsSchema = z.strictObject({
|
|
24
|
-
harness: harnessSchema,
|
|
25
|
+
harness: harnessSchema.optional(),
|
|
25
26
|
workspace: trierarchWorkspaceSchema,
|
|
26
27
|
/** The squadron the ship is a member of, so it checks in at its flagship as a crew line's squadron id does. */
|
|
27
28
|
squadron: shipHandleSchema.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crew-settings.js","sourceRoot":"","sources":["../../src/trierarch/crew-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,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,IA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