@intentius/chant 0.94.0 → 0.95.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/server.d.ts +10 -4
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +2 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/op/builders.d.ts +14 -3
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/index.d.ts +6 -3
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/operator.d.ts +90 -0
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/steward-beside.d.ts +84 -0
- package/dist/op/steward-beside.d.ts.map +1 -0
- package/dist/op/steward.d.ts +87 -2
- package/dist/op/steward.d.ts.map +1 -1
- package/dist/workspace/box-services.d.ts +31 -0
- package/dist/workspace/box-services.d.ts.map +1 -0
- package/dist/workspace/compose-graph.d.ts +11 -0
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +5 -1
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/declaration.d.ts +37 -0
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.schema.json +57 -1
- package/dist/workspace/graph-cache.d.ts +168 -0
- package/dist/workspace/graph-cache.d.ts.map +1 -0
- package/dist/workspace/graph-cli.d.ts +11 -5
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/kind-readers.d.ts +39 -0
- package/dist/workspace/kind-readers.d.ts.map +1 -0
- package/dist/workspace/kinds.d.ts +29 -0
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/member-commands.d.ts +15 -1
- package/dist/workspace/member-commands.d.ts.map +1 -1
- package/dist/workspace/member-run.d.ts +2 -0
- package/dist/workspace/member-run.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +3 -1
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/records-cli.d.ts +10 -1
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-write.d.ts +4 -2
- package/dist/workspace/records-write.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +8 -3
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/status-stewards.d.ts +23 -7
- package/dist/workspace/status-stewards.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +12 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/work-evidence.d.ts +1 -1
- package/dist/workspace/work-evidence.d.ts.map +1 -1
- package/dist/workspace/workspace-kinds.schema.json +26 -0
- package/package.json +1 -1
- package/src/cli/commands/carve-bridge.test.ts +7 -3
- package/src/cli/handlers/operator-steward-signal.e2e.test.ts +97 -0
- package/src/cli/handlers/operator.ts +53 -11
- package/src/cli/handlers/run.test.ts +71 -0
- package/src/cli/handlers/run.ts +65 -7
- package/src/cli/main.ts +17 -6
- package/src/cli/mcp/server.test.ts +14 -0
- package/src/cli/mcp/server.ts +10 -4
- package/src/cli/mcp/workspace-tools.ts +1 -1
- package/src/cli/registry.ts +2 -0
- package/src/cli/static-config-read.test.ts +8 -2
- package/src/meta/source-is-text.test.ts +21 -3
- package/src/okf.test.ts +6 -1
- package/src/op/builders.ts +14 -3
- package/src/op/index.ts +8 -2
- package/src/op/operator.ts +264 -16
- package/src/op/steward-beside.test.ts +267 -0
- package/src/op/steward-beside.ts +219 -0
- package/src/op/steward-points.test.ts +61 -1
- package/src/op/steward.ts +135 -3
- package/src/workspace/box-services.test.ts +129 -0
- package/src/workspace/box-services.ts +51 -0
- package/src/workspace/checks/boxes.test.ts +1 -0
- package/src/workspace/compose-graph.test.ts +1 -0
- package/src/workspace/compose-graph.ts +11 -0
- package/src/workspace/composites.test.ts +1 -1
- package/src/workspace/composites.ts +12 -5
- package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +4 -2
- package/src/workspace/declaration.schema.json +57 -1
- package/src/workspace/declaration.ts +104 -0
- package/src/workspace/graph-cache.test.ts +343 -0
- package/src/workspace/graph-cache.ts +409 -0
- package/src/workspace/graph-cli.ts +93 -26
- package/src/workspace/graph-contract.test.ts +129 -6
- package/src/workspace/graph.schema.json +21 -1
- package/src/workspace/kind-readers.e2e.test.ts +68 -0
- package/src/workspace/kind-readers.test.ts +134 -0
- package/src/workspace/kind-readers.ts +111 -0
- package/src/workspace/kinds.test.ts +49 -0
- package/src/workspace/kinds.ts +59 -2
- package/src/workspace/member-commands.test.ts +15 -0
- package/src/workspace/member-commands.ts +47 -7
- package/src/workspace/member-run.ts +10 -2
- package/src/workspace/reason-codes.ts +3 -1
- package/src/workspace/records-amend.schema.json +1 -0
- package/src/workspace/records-cli.ts +20 -12
- package/src/workspace/records-contract.test.ts +2 -1
- package/src/workspace/records-new.schema.json +1 -0
- package/src/workspace/records-quorum.test.ts +10 -3
- package/src/workspace/records-sessions-write.test.ts +2 -1
- package/src/workspace/records-write.test.ts +101 -1
- package/src/workspace/records-write.ts +50 -6
- package/src/workspace/records.ts +22 -5
- package/src/workspace/status-contract.test.ts +31 -1
- package/src/workspace/status-stewards.ts +39 -6
- package/src/workspace/status.schema.json +49 -4
- package/src/workspace/status.ts +22 -0
- package/src/workspace/trust/record-seal.test.ts +26 -2
- package/src/workspace/work-evidence.schema.json +1 -0
- package/src/workspace/workspace-kinds.schema.json +26 -0
package/dist/op/steward.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steward.d.ts","sourceRoot":"","sources":["../../src/op/steward.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"steward.d.ts","sourceRoot":"","sources":["../../src/op/steward.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEnG;AAED,yFAAyF;AACzF,wBAAgB,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,QAAQ,EAAE,CAGtE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAYxF;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,GAAE,MAA4B,GAAG,WAAW,CAE1G;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,WAAW,EAAE,kBAAkB,CAAA;CAAE,CAAC,EAC1D,IAAI,EAAE,MAAM,GACX,kBAAkB,GAAG,MAAM,CAU7B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The services a box declares, read for the process that runs in the box
|
|
3
|
+
* (#2880).
|
|
4
|
+
*
|
|
5
|
+
* A box member's block in the declaration lists the services the box runs
|
|
6
|
+
* under its supervisor (`BoxService` in `declaration.ts`). The fly lexicon's
|
|
7
|
+
* `spriteServicesObserve`, `spriteServiceRestart` and `spriteApplyServices`
|
|
8
|
+
* take `box: true` to read that list instead of one passed to them: the list
|
|
9
|
+
* of the member whose directory holds the working directory. They import
|
|
10
|
+
* this module when they run, so it stays small: it finds the workspace root,
|
|
11
|
+
* reads the declaration from the working tree and picks the member.
|
|
12
|
+
*/
|
|
13
|
+
import { type BoxService } from "./declaration.js";
|
|
14
|
+
export type { BoxService } from "./declaration.js";
|
|
15
|
+
/** The box block's services, and whose they are. */
|
|
16
|
+
export interface DeclaredBoxServices {
|
|
17
|
+
/** The workspace root, absolute. */
|
|
18
|
+
root: string;
|
|
19
|
+
/** The member whose directory holds the working directory. */
|
|
20
|
+
member: string;
|
|
21
|
+
/** In file order. */
|
|
22
|
+
services: BoxService[];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The services of the box block of the member whose directory holds `cwd`.
|
|
26
|
+
* Throws a {@link WorkspaceReadError} when there is no workspace or its
|
|
27
|
+
* declaration can't be read, and an Error when no member holds `cwd` or the
|
|
28
|
+
* member has no box block. A block with no `services` gives an empty list.
|
|
29
|
+
*/
|
|
30
|
+
export declare function readBoxServices(cwd?: string): DeclaredBoxServices;
|
|
31
|
+
//# sourceMappingURL=box-services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box-services.d.ts","sourceRoot":"","sources":["../../src/workspace/box-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAgD,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG9F,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAE,MAAsB,GAAG,mBAAmB,CAahF"}
|
|
@@ -55,6 +55,17 @@ export interface ComposedMember {
|
|
|
55
55
|
chant: string | null;
|
|
56
56
|
/** The IR version the member printed; `null` when it printed none and was upgraded as version 1. */
|
|
57
57
|
irVersion: number | null;
|
|
58
|
+
/** Whether the member was read with `--live` (#2875): its graph is the account as it stands, not its source. */
|
|
59
|
+
live: boolean;
|
|
60
|
+
/** For a live read, when the member's read finished, as an ISO time. */
|
|
61
|
+
readAt?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the per-member cache answered this read (#2876). Set on composed
|
|
64
|
+
* members by `chant workspace graph`.
|
|
65
|
+
*/
|
|
66
|
+
cached?: boolean;
|
|
67
|
+
/** The member's stamp (#2876): what the cache keys the read on, or null when none could be taken. */
|
|
68
|
+
stamp?: string | null;
|
|
58
69
|
/** Whole-read facts the member's IR carried (`meta`, `pipeline`), kept apart from the composed sections. */
|
|
59
70
|
meta?: Record<string, unknown>;
|
|
60
71
|
pipeline?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-graph.d.ts","sourceRoot":"","sources":["../../src/workspace/compose-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAoB,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpI,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,gJAeM,CAAC;AAC3C,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3E,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,c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;IAC5B,uEAAuE;IACvE,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,qGAAqG;AACrG,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,CAwB/G;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,cAAc,CAAC;IACvB,8CAA8C;IAC9C,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;AAwBD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACzC,MAAM,EAAE,YAAY,EAAE,EACtB,KAAK,CAAC,EAAE;IAAE,WAAW,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,YAAY,CAAA;CAAE,GACzD,cAAc,CA8DhB"}
|
|
@@ -49,7 +49,11 @@ import { type ComponentRuntime, type PluginLoader, type RuntimeReason } from "./
|
|
|
49
49
|
export declare const COMPOSITES_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/composites/v1/composites.schema.json";
|
|
50
50
|
/** The read-contract version the document follows. */
|
|
51
51
|
export declare const COMPOSITES_CONTRACT_VERSION = 1;
|
|
52
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Why the composites couldn't be read at all: the declaration's codes, as for
|
|
54
|
+
* the graph. The composites never read live, so the graph's own
|
|
55
|
+
* `live-at-revision` (#2875) can't reach them.
|
|
56
|
+
*/
|
|
53
57
|
export declare const COMPOSITES_ERROR_CODES: readonly ["declaration-missing", "declaration-ambiguous", "declaration-unparseable", "declaration-invalid", "placement-invalid", "reader-too-old", "root-chant-required", "not-a-git-repository", "revision-unknown"];
|
|
54
58
|
/** Why the list is empty, or why no instance has a component. Closed: part of the read contract. */
|
|
55
59
|
export declare const COMPOSITES_REASON_CODES: readonly ["composites-no-chant-member", "composites-none-declared", "composites-no-component"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composites.d.ts","sourceRoot":"","sources":["../../src/workspace/composites.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAkB,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEpF,OAAO,
|
|
1
|
+
{"version":3,"file":"composites.d.ts","sourceRoot":"","sources":["../../src/workspace/composites.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAkB,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEpF,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAwC,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAElH,OAAO,EAA+F,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AACvO,OAAO,EAA2D,KAAK,gBAAgB,EAAuB,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAExK,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,sFAAsF,CAAC;AAE/H,sDAAsD;AACtD,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,uNAAwB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,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAA;CAAE,CAAC,CAAC;AAEtG,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,kBAAkB,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB;AA8BD,6EAA6E;AAC7E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG,oBAAoB,EAAE,CAqB/F;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,oBAAoB,EAAE,CA8BtJ;AAQD,mHAAmH;AACnH,wBAAsB,mBAAmB,CACvC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,YAAY,CAAC;IAAC,sBAAsB,CAAC,EAAE,uBAAuB,CAAA;CAAE,GAC1I,OAAO,CAAC,gBAAgB,CAAC,CA6D3B;AAED,yGAAyG;AACzG,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe9F"}
|
|
@@ -161,9 +161,35 @@ export interface BoxDeclaration {
|
|
|
161
161
|
* proposed with no choice until the person who answers it decides it.
|
|
162
162
|
*/
|
|
163
163
|
intent: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The services the box runs under its supervisor (sprite-env on a sprite),
|
|
166
|
+
* in file order, or empty when the block declares none (#2880). The fly
|
|
167
|
+
* lexicon's `spriteServicesObserve`, `spriteServiceRestart` and
|
|
168
|
+
* `spriteApplyServices` read them with `box: true`.
|
|
169
|
+
*/
|
|
170
|
+
services: BoxService[];
|
|
164
171
|
/** The block's JSON Pointer in the file, for messages. */
|
|
165
172
|
pointer: string;
|
|
166
173
|
}
|
|
174
|
+
/** A service a box runs under its supervisor (#2880). */
|
|
175
|
+
export interface BoxService {
|
|
176
|
+
/** Unique in the box. */
|
|
177
|
+
name: string;
|
|
178
|
+
/** The command the supervisor runs, as written: `${VAR}` references are left for the applying process to expand. */
|
|
179
|
+
cmd: string;
|
|
180
|
+
/** Names of services in the same block that start first. Empty when none. */
|
|
181
|
+
needs: string[];
|
|
182
|
+
/** The port the supervisor routes the sprite's URL to, or null. At most one service of a box sets it. */
|
|
183
|
+
httpPort: number | null;
|
|
184
|
+
/** How long the service must stay up after a create or start, such as `3s` (`sprite-env services create --duration`), or null for the supervisor's default. */
|
|
185
|
+
duration: string | null;
|
|
186
|
+
/** A URL that answers 200 while the service works, or null when the supervisor's state decides. */
|
|
187
|
+
health: string | null;
|
|
188
|
+
/** True: an apply creates it only when named, and an observer skips it while the supervisor has no such service. */
|
|
189
|
+
optional: boolean;
|
|
190
|
+
/** The entry's JSON Pointer in the file, for messages. */
|
|
191
|
+
pointer: string;
|
|
192
|
+
}
|
|
167
193
|
/** What a box declares about its isolation (#2727): its identity on a host, and the names of what it needs kept apart. */
|
|
168
194
|
export interface BoxIsolationDeclaration {
|
|
169
195
|
host: string;
|
|
@@ -290,6 +316,17 @@ export declare function pinnedChant(obj: Record<string, unknown>): {
|
|
|
290
316
|
* trailing commas.
|
|
291
317
|
*/
|
|
292
318
|
export declare function parseDeclaration(text: string, file: string, reader?: string, options?: ReadOptions): Declaration;
|
|
319
|
+
/**
|
|
320
|
+
* The rules the schema can't say about a box's services (#2880), as a
|
|
321
|
+
* message and the pointer to show, or null when they hold: each name is
|
|
322
|
+
* given once, every `needs` names a service of the same block, the `needs`
|
|
323
|
+
* form no cycle, and at most one service sets `httpPort`. The fly lexicon
|
|
324
|
+
* checks a list it is handed inline with the same rules.
|
|
325
|
+
*/
|
|
326
|
+
export declare function boxServicesProblem(member: string, services: readonly BoxService[]): {
|
|
327
|
+
message: string;
|
|
328
|
+
pointer: string;
|
|
329
|
+
} | null;
|
|
293
330
|
/**
|
|
294
331
|
* Every record kind the declaration names (#2680), in the order readers use
|
|
295
332
|
* them: the workspace's own first, then each member's, members in file order
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../src/workspace/declaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAC;AAC3D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEtD,eAAO,MAAM,qBAAqB,QAAa,CAAC;AAChD,eAAO,MAAM,iBAAiB,4DAA6D,CAAC;AAC5F,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,gFAAgF;AAChF,eAAO,MAAM,cAAc,qCAAsC,CAAC;AAClE,eAAO,MAAM,YAAY,QAA8B,CAAC;AAIxD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uNAmBQ,CAAC;AAC3C,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,WAAW,aAAc,SAAQ,YAAY;IACjD,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IAEzC,QAAQ,CAAC,IAAI,EAAE,kBAAkB;IAEjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa;gBAFxB,IAAI,EAAE,kBAAkB,EACjC,OAAO,EAAE,MAAM,EACN,QAAQ,CAAC,EAAE,aAAa,YAAA;IAMnC,yDAAyD;IACzD,QAAQ,IAAI,MAAM;CAInB;AAID,4DAA4D;AAC5D,MAAM,WAAW,WAAW;IAC1B,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+DAA+D;AAC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WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,EAAE,CA8B5F;AAID;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAWlH"}
|
|
@@ -402,13 +402,20 @@
|
|
|
402
402
|
},
|
|
403
403
|
"box": {
|
|
404
404
|
"type": "object",
|
|
405
|
-
"description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). A member that builds the fountain lexicon's Box declares the callback token fountain gives its persistent sandbox as the capability fountain-callback, brokered by fountain, with scope owner, or chant workspace check fails (WSP125, #2780). Its intent names the decision record that says what the box is for (#2850): chant workspace status --json reports the record's state and answer, and chant workspace check fails when no decision record has the id (WSP126) and warns when the record constrains no member or path of this workspace (WSP127, #2857). Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
405
|
+
"description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). A member that builds the fountain lexicon's Box declares the callback token fountain gives its persistent sandbox as the capability fountain-callback, brokered by fountain, with scope owner, or chant workspace check fails (WSP125, #2780). Its intent names the decision record that says what the box is for (#2850): chant workspace status --json reports the record's state and answer, and chant workspace check fails when no decision record has the id (WSP126) and warns when the record constrains no member or path of this workspace (WSP127, #2857). Its services list what the box runs under its supervisor (#2880), which the fly lexicon observes, restarts and applies through sprite-env, and which chant workspace status --json prints. Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
|
|
406
406
|
"properties": {
|
|
407
407
|
"intent": {
|
|
408
408
|
"type": "string",
|
|
409
409
|
"minLength": 1,
|
|
410
410
|
"description": "The id of the decision record that says what the box is for (#2850), a record of a declared kind named decision. A new box starts as a question: the record is proposed with a null choice until the person who answers it decides it. The record constrains a member or path of this workspace, with member:<a member's name> or a path: entry at, above or inside a member's directory. It need not be this member: the intent can constrain the app the box runs when that app is another member (#2857). When it constrains this member, chant workspace graph --intent shows it for the box's files. Added by chant 0.94.0, so a declaration that uses it sets minReader to 0.94.0 or newer."
|
|
411
411
|
},
|
|
412
|
+
"services": {
|
|
413
|
+
"type": "array",
|
|
414
|
+
"description": "The services the box runs under its supervisor, sprite-env on a sprite (#2880). Each name is given once, every needs entry names a service of this list, the needs form no cycle, and at most one service sets httpPort; a declaration that breaks one of these can't be read (declaration-invalid). The fly lexicon's spriteServicesObserve and spriteServiceRestart read the list with box: true, and spriteApplyServices with box: true creates and replaces the services through sprite-env. None when omitted. Added by chant 0.95.0, so a declaration that uses it sets minReader to 0.95.0 or newer.",
|
|
415
|
+
"items": {
|
|
416
|
+
"$ref": "#/$defs/boxService"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
412
419
|
"capabilities": {
|
|
413
420
|
"type": "array",
|
|
414
421
|
"description": "Each capability the box reaches outside itself, named once. None when omitted.",
|
|
@@ -481,6 +488,55 @@
|
|
|
481
488
|
},
|
|
482
489
|
"additionalProperties": false
|
|
483
490
|
},
|
|
491
|
+
"boxService": {
|
|
492
|
+
"type": "object",
|
|
493
|
+
"description": "A service a box runs under its supervisor (#2880).",
|
|
494
|
+
"required": [
|
|
495
|
+
"name",
|
|
496
|
+
"cmd"
|
|
497
|
+
],
|
|
498
|
+
"properties": {
|
|
499
|
+
"name": {
|
|
500
|
+
"$ref": "#/$defs/kindName",
|
|
501
|
+
"description": "The service's name in the supervisor. Unique within the box."
|
|
502
|
+
},
|
|
503
|
+
"cmd": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"minLength": 1,
|
|
506
|
+
"description": "The command the supervisor runs (sprite-env services create --cmd). ${HOME} and other ${VAR} references are expanded from the environment of the process that applies the list, so the declaration holds no machine path."
|
|
507
|
+
},
|
|
508
|
+
"needs": {
|
|
509
|
+
"type": "array",
|
|
510
|
+
"uniqueItems": true,
|
|
511
|
+
"description": "Names of services of the same box that start before this one (sprite-env services create --needs).",
|
|
512
|
+
"items": {
|
|
513
|
+
"$ref": "#/$defs/kindName"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"httpPort": {
|
|
517
|
+
"$ref": "#/$defs/port",
|
|
518
|
+
"description": "The port the supervisor routes the sprite's URL to (sprite-env services create --http-port). At most one service of a box sets it."
|
|
519
|
+
},
|
|
520
|
+
"duration": {
|
|
521
|
+
"type": "string",
|
|
522
|
+
"pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|m)$",
|
|
523
|
+
"description": "How long the service must stay up after it is created or started, such as 3s (sprite-env services create --duration)."
|
|
524
|
+
},
|
|
525
|
+
"health": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"pattern": "^https?://",
|
|
528
|
+
"description": "A URL that answers 200 while the service works. spriteServicesObserve probes it, and spriteServiceRestart waits for it after a restart. Without it, the supervisor's state decides."
|
|
529
|
+
},
|
|
530
|
+
"optional": {
|
|
531
|
+
"type": "boolean",
|
|
532
|
+
"description": "True for a service something else creates by name, such as a site a release Op makes: spriteApplyServices creates it only when its only names it, and spriteServicesObserve skips it while the supervisor has no such service."
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
"patternProperties": {
|
|
536
|
+
"^x-": true
|
|
537
|
+
},
|
|
538
|
+
"additionalProperties": false
|
|
539
|
+
},
|
|
484
540
|
"capability": {
|
|
485
541
|
"type": "object",
|
|
486
542
|
"description": "A capability a box needs and does not hold the credential for, such as inference, fountain or a third-party API (#2726).",
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The per-member cache behind `chant workspace graph` (#2876, ws-059).
|
|
3
|
+
*
|
|
4
|
+
* ws-018 made chant the composer for declared workspaces, and a viewer
|
|
5
|
+
* rereads the composed graph on every refresh. Without a cache every read
|
|
6
|
+
* starts every member's chant again, so this module keeps each member's
|
|
7
|
+
* source read on disk and serves it while nothing the read depends on has
|
|
8
|
+
* changed.
|
|
9
|
+
*
|
|
10
|
+
* An entry is served only when every part of its key still matches:
|
|
11
|
+
*
|
|
12
|
+
* 1. The read is a source read. A member command line holding `--live`,
|
|
13
|
+
* `--overlay` or `--traffic` observes an account, which changes with
|
|
14
|
+
* nothing on disk to notice, so it is never cached or even stamped.
|
|
15
|
+
* 2. The member's stamp ({@link memberStamp}) is unchanged. It covers the
|
|
16
|
+
* member's files and the install state its toolchain resolves through.
|
|
17
|
+
* With `--at` the tree is the commit's, which never changes, so the commit
|
|
18
|
+
* id stands in for the files.
|
|
19
|
+
* 3. The toolchain is unchanged: the real path of its `bin/chant` and its
|
|
20
|
+
* package version, plus its source files when it is a checkout rather
|
|
21
|
+
* than an install.
|
|
22
|
+
* 4. The member's command line and the ambient environment are unchanged,
|
|
23
|
+
* since `--env`, build parameters and `buildParams` env mappings all
|
|
24
|
+
* reach the answer. A few variables a shell changes on its own are left
|
|
25
|
+
* out ({@link VOLATILE_ENV}); any other difference is a miss.
|
|
26
|
+
*
|
|
27
|
+
* A stamp that can't be taken caches nothing. So does a stamp that moved
|
|
28
|
+
* between the start and the end of the read, a member whose read failed, and
|
|
29
|
+
* a working-tree read whose newest file is younger than
|
|
30
|
+
* {@link FRESH_WINDOW_MS}: some file systems keep mtimes to the second, so an
|
|
31
|
+
* edit in the same tick as the read could otherwise hide behind an equal
|
|
32
|
+
* stamp.
|
|
33
|
+
*
|
|
34
|
+
* Entries live outside the workspace, in the user's cache directory
|
|
35
|
+
* ({@link graphCacheDir}), because a read never changes the workspace it
|
|
36
|
+
* reads (the conformance kit checks exactly that, #2679). One JSON file per
|
|
37
|
+
* key, written to a temporary name and renamed into place so concurrent
|
|
38
|
+
* readers never see half an entry. Each workspace holds at most
|
|
39
|
+
* {@link MAX_ENTRIES} entries and {@link MAX_BYTES} bytes; the least recently
|
|
40
|
+
* used go first.
|
|
41
|
+
*
|
|
42
|
+
* The key never looks at how a member is read, only at what the read takes
|
|
43
|
+
* in, so a member read through a generated reader project caches by its own
|
|
44
|
+
* directory's stamp like any other.
|
|
45
|
+
*/
|
|
46
|
+
import type { ParsedArgs } from "../cli/registry.js";
|
|
47
|
+
import { type MemberPlan, type RunUnit, type Toolchain, type UnitResult } from "./member-commands.js";
|
|
48
|
+
/** The version of the entry format. An entry of any other version is a miss. */
|
|
49
|
+
export declare const CACHE_FORMAT = 1;
|
|
50
|
+
/** Overrides where chant keeps caches: `$CHANT_CACHE_DIR`, else `$XDG_CACHE_HOME/chant`, else `~/.cache/chant`. */
|
|
51
|
+
export declare const CACHE_DIR_ENV = "CHANT_CACHE_DIR";
|
|
52
|
+
export declare const MAX_ENTRIES = 512;
|
|
53
|
+
export declare const MAX_BYTES: number;
|
|
54
|
+
/** A working-tree read whose newest file is younger than this is not stored. */
|
|
55
|
+
export declare const FRESH_WINDOW_MS = 2000;
|
|
56
|
+
/** Member flags that make a read observe an account. Such a read is never cached. */
|
|
57
|
+
export declare const LIVE_FLAGS: readonly ["--live", "--overlay", "--traffic"];
|
|
58
|
+
/** Environment variables a shell or terminal changes on its own, left out of the key. */
|
|
59
|
+
export declare const VOLATILE_ENV: readonly (string | RegExp)[];
|
|
60
|
+
/** Whether a member command line is a source read, and so may be cached. */
|
|
61
|
+
export declare function isCacheableArgv(argv: readonly string[]): boolean;
|
|
62
|
+
export interface Stamp {
|
|
63
|
+
/** `sha256:<hex>`. */
|
|
64
|
+
value: string;
|
|
65
|
+
/** The newest mtime among the files stamped, in ms; 0 for a revision stamp. */
|
|
66
|
+
newest: number;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A member's stamp: its files and the install state around it. `abs` is the
|
|
70
|
+
* member's directory on disk, `exclude` the directories inside it that are
|
|
71
|
+
* other members' (set for member `.`). With `at`, the commit id stands in for
|
|
72
|
+
* the files, since a commit's tree never changes. Returns `undefined` when the
|
|
73
|
+
* stamp can't be taken, and then nothing is cached.
|
|
74
|
+
*/
|
|
75
|
+
export declare function memberStamp(abs: string, exclude?: readonly string[], at?: {
|
|
76
|
+
commit: string;
|
|
77
|
+
dir: string;
|
|
78
|
+
}): Stamp | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* What distinguishes one chant from another for the key: the real path of its
|
|
81
|
+
* `bin/chant`, the version its package declares, and, for a chant that isn't
|
|
82
|
+
* installed under a `node_modules` directory (a source checkout), the stamp
|
|
83
|
+
* of its package's `src`, since a checkout changes without a version bump.
|
|
84
|
+
*/
|
|
85
|
+
export declare function toolchainStamp(toolchain: Toolchain): string;
|
|
86
|
+
/** What a kind's reader adds to the key: its graph block, and the installed version of the package supplying it. */
|
|
87
|
+
export declare function readerStamp(reader: {
|
|
88
|
+
lexicon: string;
|
|
89
|
+
config: unknown;
|
|
90
|
+
packageDir: string;
|
|
91
|
+
}): string;
|
|
92
|
+
/** The ambient environment, less {@link VOLATILE_ENV}, as one digest. */
|
|
93
|
+
export declare function environmentStamp(env?: NodeJS.ProcessEnv): string;
|
|
94
|
+
export interface KeyParts {
|
|
95
|
+
member: string;
|
|
96
|
+
dir: string;
|
|
97
|
+
stamp: string;
|
|
98
|
+
toolchain: string;
|
|
99
|
+
argv: readonly string[];
|
|
100
|
+
env: string;
|
|
101
|
+
}
|
|
102
|
+
export declare function cacheKey(parts: KeyParts): string;
|
|
103
|
+
/** One stored read. */
|
|
104
|
+
export interface CacheEntry {
|
|
105
|
+
format: number;
|
|
106
|
+
key: string;
|
|
107
|
+
member: string;
|
|
108
|
+
stamp: string;
|
|
109
|
+
/** The chant version the read reported, or null. */
|
|
110
|
+
chant: string | null;
|
|
111
|
+
/** The member's `chant graph --format ir` output. */
|
|
112
|
+
stdout: string;
|
|
113
|
+
}
|
|
114
|
+
export interface GraphCache {
|
|
115
|
+
dir: string;
|
|
116
|
+
get(key: string): CacheEntry | undefined;
|
|
117
|
+
put(entry: CacheEntry): void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The directory holding the cache of the workspace rooted at `root`:
|
|
121
|
+
* `<cache dir>/workspace-graph/<first 16 hex digits of sha256(real path of root)>`,
|
|
122
|
+
* where the cache dir is `$CHANT_CACHE_DIR`, else `$XDG_CACHE_HOME/chant`,
|
|
123
|
+
* else `~/.cache/chant`.
|
|
124
|
+
*/
|
|
125
|
+
export declare function graphCacheDir(root: string, env?: NodeJS.ProcessEnv): string;
|
|
126
|
+
/**
|
|
127
|
+
* The cache for the workspace rooted at `root` (absolute, on disk). Nothing is
|
|
128
|
+
* created until the first `put`. Every failure to read or write is a miss or
|
|
129
|
+
* a skipped store, never an error: the cache can only make a read faster.
|
|
130
|
+
*/
|
|
131
|
+
export declare function openGraphCache(root: string, env?: NodeJS.ProcessEnv): GraphCache;
|
|
132
|
+
/** A member read the cache answered, or one it will store once it has run. */
|
|
133
|
+
interface Pending {
|
|
134
|
+
key: string;
|
|
135
|
+
stamp: Stamp;
|
|
136
|
+
abs: string;
|
|
137
|
+
exclude: string[];
|
|
138
|
+
at?: {
|
|
139
|
+
commit: string;
|
|
140
|
+
dir: string;
|
|
141
|
+
};
|
|
142
|
+
member: string;
|
|
143
|
+
}
|
|
144
|
+
export interface CacheSplit {
|
|
145
|
+
/** The members the cache answered, as results a run would have produced. */
|
|
146
|
+
hits: UnitResult[];
|
|
147
|
+
/** Each member's stamp, by unit id: served or about to be read. */
|
|
148
|
+
stamps: Map<string, string>;
|
|
149
|
+
pending: Map<string, Pending>;
|
|
150
|
+
/** When the lookup started; a file younger than this less {@link FRESH_WINDOW_MS} keeps a read out of the cache. */
|
|
151
|
+
started: number;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Look every member of a `graph` plan up in the cache. `at` is the commit
|
|
155
|
+
* being read, or null for the working tree. Members with a cacheable command
|
|
156
|
+
* line whose stamp can be taken end up in `hits` or in `pending`.
|
|
157
|
+
*/
|
|
158
|
+
export declare function splitCached(plan: MemberPlan, args: ParsedArgs, cache: GraphCache, at: string | null, argvFor?: (unit: RunUnit) => string[]): CacheSplit;
|
|
159
|
+
/** The plan without the units in `ids`; a toolchain left with no units is dropped. */
|
|
160
|
+
export declare function withoutUnits(plan: MemberPlan, ids: ReadonlySet<string>): MemberPlan;
|
|
161
|
+
/**
|
|
162
|
+
* Store the reads that may be cached: the member exited 0, printed an IR, and
|
|
163
|
+
* its stamp is the same after the read as before it. A working-tree read of a
|
|
164
|
+
* file younger than the window is not stored.
|
|
165
|
+
*/
|
|
166
|
+
export declare function storeReads(split: CacheSplit, results: readonly UnitResult[], cache: GraphCache): void;
|
|
167
|
+
export {};
|
|
168
|
+
//# sourceMappingURL=graph-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph-cache.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/G,gFAAgF;AAChF,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B,mHAAmH;AACnH,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAE/C,eAAO,MAAM,WAAW,MAAM,CAAC;AAC/B,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC,qFAAqF;AACrF,eAAO,MAAM,UAAU,+CAAgD,CAAC;AAExE,yFAAyF;AACzF,eAAO,MAAM,YAAY,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAiBpD,CAAC;AAgBF,4EAA4E;AAC5E,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAEhE;AAMD,MAAM,WAAW,KAAK;IACpB,sBAAsB;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;CAChB;AAgDD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,SAAS,MAAM,EAAO,EAAE,EAAE,CAAC,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAA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WorkspaceGraph } from "./compose-graph.js";
|
|
28
|
-
import { type ErrorLocation
|
|
28
|
+
import { type ErrorLocation } from "./declaration.js";
|
|
29
29
|
import { type MemberPlan, type Toolchain, type UnitResult } from "./member-commands.js";
|
|
30
30
|
import { type LocatedWorkspace } from "./which-chant.js";
|
|
31
31
|
/** The version of the `graph` document this chant writes. */
|
|
32
32
|
export declare const GRAPH_CONTRACT_VERSION = 1;
|
|
33
33
|
/** `$id` of the JSON Schema for the document, shipped beside this file. */
|
|
34
34
|
export declare const GRAPH_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/graph/v1/graph.schema.json";
|
|
35
|
-
/**
|
|
36
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Why the graph couldn't be read at all: the declaration's codes, `--at`'s
|
|
37
|
+
* included, and `live-at-revision` for `--live` with `--at` (#2875).
|
|
38
|
+
*/
|
|
39
|
+
export declare const GRAPH_ERROR_CODES: readonly ["declaration-missing", "declaration-ambiguous", "declaration-unparseable", "declaration-invalid", "placement-invalid", "reader-too-old", "root-chant-required", "not-a-git-repository", "revision-unknown", "live-at-revision"];
|
|
40
|
+
export type GraphErrorCode = (typeof GRAPH_ERROR_CODES)[number];
|
|
37
41
|
interface Head {
|
|
38
42
|
$schema: string;
|
|
39
43
|
contract: number;
|
|
@@ -43,7 +47,7 @@ export type GraphDocument = (Head & {
|
|
|
43
47
|
at: string | null;
|
|
44
48
|
} & WorkspaceGraph) | (Head & {
|
|
45
49
|
error: {
|
|
46
|
-
code:
|
|
50
|
+
code: GraphErrorCode;
|
|
47
51
|
message: string;
|
|
48
52
|
location: ErrorLocation | null;
|
|
49
53
|
};
|
|
@@ -54,7 +58,7 @@ export interface GraphQuery {
|
|
|
54
58
|
at?: string;
|
|
55
59
|
/** Only these members. */
|
|
56
60
|
members?: string[];
|
|
57
|
-
/** The flags each member's `chant graph` gets (`--env`). */
|
|
61
|
+
/** The flags each member's `chant graph` gets (`--env`, and `--live`, `--overlay` and `--traffic`, #2875). */
|
|
58
62
|
args?: Partial<ParsedArgs>;
|
|
59
63
|
/** The chant for members with none of their own; the running chant by default. */
|
|
60
64
|
reader?: Toolchain;
|
|
@@ -83,6 +87,8 @@ export interface GraphQuery {
|
|
|
83
87
|
dir: string;
|
|
84
88
|
kind: string;
|
|
85
89
|
}[]) => Promise<void>;
|
|
90
|
+
/** Read every member, leaving the per-member cache unread and unwritten (`--no-cache`, #2876). */
|
|
91
|
+
noCache?: boolean;
|
|
86
92
|
}
|
|
87
93
|
export interface GraphResult {
|
|
88
94
|
doc: GraphDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"graph-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAA+E,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEnI,OAAO,EAA6E,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAgF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAMnK,OAAO,EAAoC,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAExF,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,4EAA4E,CAAC;AAEhH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,2OAA0D,CAAC;AACzF,MAAM,M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,WAAW,WAAW;IAC1B,GAAG,EAAE,aAAa,CAAC;IACnB,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,sEAAsE;AACtE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,MAAM,EAAE,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAmCtF;AAgDD,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAKvD;AAED,qGAAqG;AACrG,wBAAsB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAmE5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsE5E"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reader projects for members of a package's kind (#2874).
|
|
3
|
+
*
|
|
4
|
+
* `chant workspace graph` runs `chant graph` in each member. A `terraform` or
|
|
5
|
+
* `choudoufu` member is a directory of `.tf` files with no chant config, so
|
|
6
|
+
* there is nothing for it to run. The kind's `graph` block in the package's
|
|
7
|
+
* kinds file says how to read one instead: a lexicon and that lexicon's
|
|
8
|
+
* config namespace. For each such member chant writes a reader project of its
|
|
9
|
+
* own, outside the workspace, and the member runs there:
|
|
10
|
+
*
|
|
11
|
+
* - `chant.config.json` declares the lexicon, and puts the kind's config under
|
|
12
|
+
* the lexicon's key with `{member}`, `{dir}` and `{workspace}` substituted
|
|
13
|
+
* (`substituteGraphConfig`). The terraform lexicon's config names one root
|
|
14
|
+
* after the member, at the member's directory, with `moduleRoot` at the
|
|
15
|
+
* workspace root, so a member that calls `../modules/x` keeps its modules.
|
|
16
|
+
* - `node_modules` links to the `node_modules` directory holding the lexicon
|
|
17
|
+
* package, found from the workspace root as the kind's pin was. The lexicon
|
|
18
|
+
* chant loads is then the one the declaration pins.
|
|
19
|
+
*
|
|
20
|
+
* Nothing is written under the workspace, and the projects are removed when
|
|
21
|
+
* the read ends. A lexicon that can't be found where its pin says fails the
|
|
22
|
+
* member with `command-failed` and says what to install; the other members
|
|
23
|
+
* still run.
|
|
24
|
+
*/
|
|
25
|
+
import type { MemberPlan, SkippedEntry } from "./member-commands.js";
|
|
26
|
+
export interface PreparedReaders {
|
|
27
|
+
/** Members whose reader project couldn't be written, with the reason. They fail the run. */
|
|
28
|
+
failed: SkippedEntry[];
|
|
29
|
+
/** Remove every reader project. Safe to call more than once. */
|
|
30
|
+
cleanup(): void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Write a reader project for every unit of `plan` that has a `reader`, and
|
|
34
|
+
* point the unit's `abs` at it. Units that can't get one leave the plan and
|
|
35
|
+
* are returned in `failed`. `root` is the directory the plan was made from,
|
|
36
|
+
* the exported tree for `--at`.
|
|
37
|
+
*/
|
|
38
|
+
export declare function prepareKindReaders(plan: MemberPlan, root: string): PreparedReaders;
|
|
39
|
+
//# sourceMappingURL=kind-readers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kind-readers.d.ts","sourceRoot":"","sources":["../../src/workspace/kind-readers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAW,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE3E,MAAM,WAAW,eAAe;IAC9B,4FAA4F;IAC5F,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,gEAAgE;IAChE,OAAO,IAAI,IAAI,CAAC;CACjB;AAmCD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,eAAe,CAiClF"}
|
|
@@ -69,6 +69,15 @@ export type KindOutputs =
|
|
|
69
69
|
from: "declared";
|
|
70
70
|
names: string[];
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* How `chant workspace graph` reads a member of a package's kind (#2874): a
|
|
74
|
+
* lexicon, by name, and that lexicon's config namespace for a reader project
|
|
75
|
+
* chant writes itself. See {@link substituteGraphConfig} for the placeholders.
|
|
76
|
+
*/
|
|
77
|
+
export interface KindGraph {
|
|
78
|
+
lexicon: string;
|
|
79
|
+
config: Record<string, unknown>;
|
|
80
|
+
}
|
|
72
81
|
export interface MemberKind {
|
|
73
82
|
name: string;
|
|
74
83
|
/** One line for listings and error messages. */
|
|
@@ -86,6 +95,10 @@ export interface MemberKind {
|
|
|
86
95
|
outputs: KindOutputs;
|
|
87
96
|
/** Where the kind comes from: `builtin`, or the package that supplies it. */
|
|
88
97
|
source: string;
|
|
98
|
+
/** The supplying package's directory, absolute; unset for a built-in kind. */
|
|
99
|
+
packageDir?: string;
|
|
100
|
+
/** How `workspace graph` reads a member of this kind (#2874); unset, the member is `kind-not-run`. */
|
|
101
|
+
graph?: KindGraph;
|
|
89
102
|
}
|
|
90
103
|
export interface KindRegistry {
|
|
91
104
|
get(name: string): MemberKind | undefined;
|
|
@@ -152,6 +165,22 @@ export declare function kindsExportTarget(pkg: Record<string, unknown>): string
|
|
|
152
165
|
};
|
|
153
166
|
/** Read the kinds a package directory publishes. Reads files only; imports nothing. */
|
|
154
167
|
export declare function readPackageKinds(packageDir: string, source?: string): PackageKinds;
|
|
168
|
+
/** The package a lexicon name resolves to. */
|
|
169
|
+
export declare function lexiconPackageName(lexicon: string): string;
|
|
170
|
+
/** Where each placeholder in a kind's graph config points (#2874). */
|
|
171
|
+
export interface GraphPlaceholders {
|
|
172
|
+
/** The member's name. */
|
|
173
|
+
member: string;
|
|
174
|
+
/** The member's directory, absolute. */
|
|
175
|
+
dir: string;
|
|
176
|
+
/** The workspace root, absolute. */
|
|
177
|
+
workspace: string;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* A kind's graph config with `{member}`, `{dir}` and `{workspace}` replaced
|
|
181
|
+
* in every string key and value. Other braces are left as they are.
|
|
182
|
+
*/
|
|
183
|
+
export declare function substituteGraphConfig(config: Record<string, unknown>, at: GraphPlaceholders): Record<string, unknown>;
|
|
155
184
|
/**
|
|
156
185
|
* The directory of an installed package `name`, found the way Node finds a
|
|
157
186
|
* bare import: `node_modules/<name>` in `fromDir` and each directory above it.
|