@intentius/chant 0.86.0 → 0.88.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/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +5 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/cli/version.d.ts +8 -0
- package/dist/cli/version.d.ts.map +1 -0
- package/dist/workspace/__fixtures__/sessions.d.ts +9 -0
- package/dist/workspace/__fixtures__/sessions.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +13 -0
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/environments.d.ts +80 -0
- package/dist/workspace/environments.d.ts.map +1 -0
- package/dist/workspace/intent.d.ts +6 -1
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +20 -4
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/records-cli.d.ts +12 -2
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-close.d.ts +41 -0
- package/dist/workspace/records-close.d.ts.map +1 -0
- package/dist/workspace/records-since.d.ts +40 -1
- package/dist/workspace/records-since.d.ts.map +1 -1
- package/dist/workspace/records-write.d.ts +117 -12
- package/dist/workspace/records-write.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +84 -14
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/runtimes.d.ts +6 -0
- package/dist/workspace/runtimes.d.ts.map +1 -1
- package/dist/workspace/session-kinds.d.ts +28 -0
- package/dist/workspace/session-kinds.d.ts.map +1 -0
- package/dist/workspace/status.d.ts +2 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/trust/seal.d.ts +127 -0
- package/dist/workspace/trust/seal.d.ts.map +1 -0
- package/dist/workspace/trust/ssh-commit.d.ts +7 -0
- package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
- package/dist/workspace/work.d.ts +3 -3
- package/package.json +1 -1
- package/src/cli/handlers/misc.ts +1 -9
- package/src/cli/main.ts +29 -10
- package/src/cli/mcp/server.test.ts +14 -1
- package/src/cli/mcp/server.ts +3 -1
- package/src/cli/registry.ts +5 -0
- package/src/cli/version.ts +15 -0
- package/src/workspace/__fixtures__/sessions.ts +41 -0
- package/src/workspace/composites.schema.json +68 -3
- package/src/workspace/composites.test.ts +119 -5
- package/src/workspace/composites.ts +26 -7
- package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +23 -0
- package/src/workspace/environments.ts +165 -0
- package/src/workspace/intent-gaps.test.ts +217 -0
- package/src/workspace/intent.schema.json +23 -1
- package/src/workspace/intent.test.ts +2 -0
- package/src/workspace/intent.ts +35 -3
- package/src/workspace/read-contract.test.ts +3 -0
- package/src/workspace/reason-codes.test.ts +9 -3
- package/src/workspace/reason-codes.ts +24 -4
- package/src/workspace/record-assets.test.ts +4 -3
- package/src/workspace/records-amend.schema.json +30 -1
- package/src/workspace/records-cli.ts +113 -14
- package/src/workspace/records-close.schema.json +192 -0
- package/src/workspace/records-close.ts +129 -0
- package/src/workspace/records-contract.test.ts +4 -3
- package/src/workspace/records-new.schema.json +25 -0
- package/src/workspace/records-review.schema.json +81 -3
- package/src/workspace/records-sessions-write.test.ts +274 -0
- package/src/workspace/records-since.schema.json +27 -2
- package/src/workspace/records-since.ts +120 -6
- package/src/workspace/records-write-contract.test.ts +5 -1
- package/src/workspace/records-write.test.ts +4 -2
- package/src/workspace/records-write.ts +336 -43
- package/src/workspace/records.schema.json +37 -3
- package/src/workspace/records.ts +145 -25
- package/src/workspace/runtimes.ts +12 -3
- package/src/workspace/session-kinds.ts +79 -0
- package/src/workspace/status.ts +1 -1
- package/src/workspace/trust/record-seal.test.ts +315 -0
- package/src/workspace/trust/seal.test.ts +222 -0
- package/src/workspace/trust/seal.ts +289 -0
- package/src/workspace/trust/ssh-commit.ts +2 -2
- package/src/workspace/work.test.ts +3 -1
- package/src/workspace/work.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/misc.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/misc.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA8ClD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqGnE;AAED,wBAAsB,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuClE;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CtE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsIpE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAKpE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBpE"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAkG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAkG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA8cpD;AA6mBD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EA8HvC,CAAC;AAiKF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/server.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAmE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/server.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAmE,MAAM,SAAS,CAAC;AAOxH;;;;;;;;GAQG;AACH,eAAO,MAAM,2BAA2B,uCAAwC,CAAC;AAGjF;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK9E;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,eAAe,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CASxI;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGxE;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAO1E;AAED;;GAEG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,KAAK,CAA0C;IACvD,OAAO,CAAC,YAAY,CAAuC;IAC3D,OAAO,CAAC,eAAe,CAA8F;IACrH,OAAO,CAAC,OAAO,CAAkB;gBAErB,OAAO,CAAC,EAAE,aAAa,EAAE;IAiCrC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAgB/B;;OAEG;IACH,OAAO,CAAC,YAAY;IAQpB;;;;;;;OAOG;IACG,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,WAAW,CAAC;IAClF,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAwBrE;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAU7B;;OAEG;YACW,QAAQ;IAiCtB;;OAEG;YACW,eAAe;IAyC7B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAsC7B;AAED;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAYpD"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -296,6 +296,11 @@ export interface ParsedArgs {
|
|
|
296
296
|
verdict?: string;
|
|
297
297
|
/** `chant workspace records review <id> --by <principal>` (#2670): the reviewer, as the caller names them. */
|
|
298
298
|
by?: string;
|
|
299
|
+
/**
|
|
300
|
+
* `chant workspace records review <id> --sign [<key file>]` (#2687): the key that seals the verdict, or true for git's user.signingkey.
|
|
301
|
+
* On `records new` and `records amend`, the key that seals the record's author (#2688).
|
|
302
|
+
*/
|
|
303
|
+
sign?: string | true;
|
|
299
304
|
/** `chant workspace records review <id> --session <id>` (#2670): the review session the verdict was given in. */
|
|
300
305
|
session?: string;
|
|
301
306
|
/** `chant workspace records new <kind> --prefix <prefix>` (#2670): the id prefix to allocate under. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;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AAO,CAAC;CACnB;AAWD,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,eAAe,GAAG,IAAI,CAiB/F"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The installed chant's version, read from `@intentius/chant`'s own
|
|
3
|
+
* package.json, or "0.0.0" when it can't be read. The path is the same from
|
|
4
|
+
* `src/cli/` and `dist/cli/`, so it holds whether chant runs from source or
|
|
5
|
+
* from its build.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CHANT_VERSION: string;
|
|
8
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/cli/version.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MAMxB,CAAC"}
|
|
@@ -20,4 +20,13 @@ export declare function sessionText(s: {
|
|
|
20
20
|
}): string;
|
|
21
21
|
/** Rewrite ref-001 with the given review entries, each naming `session`. */
|
|
22
22
|
export declare function reviewed(root: string, reviewers: string[], session: string, state?: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Declare the fixture's two kinds in a chant.workspace.json (#2693): the
|
|
25
|
+
* decisions at the root and the session kind in the design member, as the
|
|
26
|
+
* reference workspace declares them, so review --session, close and
|
|
27
|
+
* --since <session id> find the session kind.
|
|
28
|
+
*/
|
|
29
|
+
export declare function declareSessions(root: string): void;
|
|
30
|
+
/** The fields of a new open session, as a UI sends them to records new. */
|
|
31
|
+
export declare function newSessionFields(over?: Record<string, unknown>): string;
|
|
23
32
|
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/workspace/__fixtures__/sessions.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH,eAAO,MAAM,aAAa,qCAAqC,CAAC;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EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,SAAY,GAAG,IAAI,CASpG;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAelD;AAED,2EAA2E;AAC3E,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,MAAM,CAe3E"}
|
|
@@ -32,12 +32,18 @@
|
|
|
32
32
|
* Each component also lists the runtimes it can deploy on (#2674,
|
|
33
33
|
* `runtimes.ts`): `local`, and each lexicon its member configures that hosts
|
|
34
34
|
* `chant run --components`, with the command line for each.
|
|
35
|
+
*
|
|
36
|
+
* And each component lists the environments it may deploy to (#2695,
|
|
37
|
+
* `environments.ts`): `local`, the environments its member's config declares,
|
|
38
|
+
* and those with a release in the member's ledger on `chant/lifecycle`, with
|
|
39
|
+
* the command line for each.
|
|
35
40
|
*/
|
|
36
41
|
import type { CommandContext } from "../cli/registry.js";
|
|
37
42
|
import { type JoinLabel } from "../join-key.js";
|
|
38
43
|
import type { MemberReason, WorkspaceGraph } from "./compose-graph.js";
|
|
39
44
|
import { type GraphQuery } from "./graph-cli.js";
|
|
40
45
|
import { type ErrorLocation, type WorkspaceErrorCode } from "./declaration.js";
|
|
46
|
+
import { type ComponentEnvironment, type EnvironmentReason, type LedgerEnvironmentReader } from "./environments.js";
|
|
41
47
|
import { type ComponentRuntime, type PluginLoader, type RuntimeReason } from "./runtimes.js";
|
|
42
48
|
/** `$id` of the JSON Schema for the document, shipped beside this file. */
|
|
43
49
|
export declare const COMPOSITES_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/composites/v1/composites.schema.json";
|
|
@@ -50,6 +56,8 @@ export declare const COMPOSITES_REASON_CODES: readonly ["composites-no-chant-mem
|
|
|
50
56
|
export type CompositesReasonCode = (typeof COMPOSITES_REASON_CODES)[number];
|
|
51
57
|
/** Why a member's runtimes are only `local`, or leave out a lexicon its config lists (#2674). Closed. */
|
|
52
58
|
export declare const COMPOSITES_RUNTIME_REASON_CODES: readonly ["runtimes-config-unreadable", "runtimes-lexicon-unreadable"];
|
|
59
|
+
/** Why a member's environments are only `local`, or leave out one its ledger has (#2695). Closed. */
|
|
60
|
+
export declare const COMPOSITES_ENVIRONMENT_REASON_CODES: readonly ["runtimes-config-unreadable", "environments-none-declared", "environments-ledger-undeclared", "environments-ledger-unreadable"];
|
|
53
61
|
export interface CompositesMember {
|
|
54
62
|
name: string;
|
|
55
63
|
dir: string;
|
|
@@ -60,6 +68,8 @@ export interface CompositesMember {
|
|
|
60
68
|
chant: string | null;
|
|
61
69
|
/** Why its components' runtimes leave something out: its config, or a lexicon, couldn't be read. Empty for a member not of kind chant. */
|
|
62
70
|
runtimeReasons: RuntimeReason[];
|
|
71
|
+
/** Why its components' environments are only `local`, or leave one out. Empty for a member not of kind chant. */
|
|
72
|
+
environmentReasons: EnvironmentReason[];
|
|
63
73
|
}
|
|
64
74
|
export interface ComponentEntry {
|
|
65
75
|
/** `<member>/<name>`. */
|
|
@@ -74,6 +84,8 @@ export interface ComponentEntry {
|
|
|
74
84
|
file: string | null;
|
|
75
85
|
/** The runtimes it can deploy on: `local` first, then each hosting lexicon its member configures. */
|
|
76
86
|
runtimes: ComponentRuntime[];
|
|
87
|
+
/** The environments it may deploy to: `local` first, then the config's, then the ledger's. */
|
|
88
|
+
environments: ComponentEnvironment[];
|
|
77
89
|
}
|
|
78
90
|
export interface ComponentMatch {
|
|
79
91
|
/** The {@link ComponentEntry} id. */
|
|
@@ -145,6 +157,7 @@ export declare function joinComponents(instances: CompositeInstanceRow[], compon
|
|
|
145
157
|
/** Read the workspace's composites and components, and build the document. Never throws a `WorkspaceReadError`. */
|
|
146
158
|
export declare function workspaceComposites(query: Omit<GraphQuery, "kind" | "components" | "inTree"> & {
|
|
147
159
|
loadPlugin?: PluginLoader;
|
|
160
|
+
readLedgerEnvironments?: LedgerEnvironmentReader;
|
|
148
161
|
}): Promise<CompositesResult>;
|
|
149
162
|
/** `chant workspace graph --composites`: print the document as JSON, always, like the composed graph. */
|
|
150
163
|
export declare function runWorkspaceComposites(ctx: CommandContext, cwd: string): Promise<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composites.d.ts","sourceRoot":"","sources":["../../src/workspace/composites.ts"],"names":[],"mappings":"AAAA
|
|
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,EAAqC,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAGjF,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE3F,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,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,uNAAoB,CAAC;AAExD,oGAAoG;AACpG,eAAO,MAAM,uBAAuB,gGAOM,CAAC;AAC3C,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,yGAAyG;AACzG,eAAO,MAAM,+BAA+B,wEAAuB,CAA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AkB,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,CA0D3B;AAED,yGAAyG;AACzG,wBAAsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe9F"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The environments a member's components may deploy to, for `chant workspace
|
|
3
|
+
* graph --composites` (#2695), so a reader such as hud can offer staging or
|
|
4
|
+
* prod beside the default without guessing a name.
|
|
5
|
+
*
|
|
6
|
+
* Each environment comes from one of three places, and says which:
|
|
7
|
+
*
|
|
8
|
+
* - `config`: a name the member's `chant.config.ts` declares in
|
|
9
|
+
* `environments`. A pattern such as `pr-*` names no environment by itself
|
|
10
|
+
* and is not listed, but it legalizes the ledger's `pr-42`.
|
|
11
|
+
* - `ledger`: an environment with a release ledger for the member on
|
|
12
|
+
* `chant/lifecycle` (`_members/<member>/<env>/releases.jsonl`, or the flat
|
|
13
|
+
* `<env>/releases.jsonl`, read the way `workspace status` reads it).
|
|
14
|
+
* - `builtin`: `local`, which `chant run --components` uses without `--env`
|
|
15
|
+
* (`../cli/handlers/run.ts`), when neither the config nor the ledger names
|
|
16
|
+
* it.
|
|
17
|
+
*
|
|
18
|
+
* The component contract declares no environments, so every component of a
|
|
19
|
+
* member lists the member's environments.
|
|
20
|
+
*
|
|
21
|
+
* `chant run --env` refuses a name the config's `environments` doesn't cover
|
|
22
|
+
* whenever it declares any (`unknownEnvError` in `../env.ts`), so a ledger
|
|
23
|
+
* environment the config no longer covers is left out, with a reason. The
|
|
24
|
+
* default is `local`: `chant.config.ts` has no default environment, and
|
|
25
|
+
* `chant run` without `--env` deploys to `local` even when the config's
|
|
26
|
+
* `environments` leaves it out.
|
|
27
|
+
*
|
|
28
|
+
* The config is the one `runtimes.ts` loads, in the working tree or the tree
|
|
29
|
+
* `--at` exported. The ledger is always the local `chant/lifecycle` branch,
|
|
30
|
+
* as for `workspace status`, and is never fetched.
|
|
31
|
+
*/
|
|
32
|
+
import { type MemberRuntimes } from "./runtimes.js";
|
|
33
|
+
/** The environment `chant run --components` deploys to without `--env`. */
|
|
34
|
+
export declare const LOCAL_ENVIRONMENT = "local";
|
|
35
|
+
/** Why a member's environments are only `local`, or leave out one the ledger has. Closed: part of the read contract. */
|
|
36
|
+
export declare const ENVIRONMENT_REASON_CODES: readonly ["runtimes-config-unreadable", "environments-none-declared", "environments-ledger-undeclared", "environments-ledger-unreadable"];
|
|
37
|
+
export type EnvironmentReasonCode = (typeof ENVIRONMENT_REASON_CODES)[number];
|
|
38
|
+
export interface EnvironmentReason {
|
|
39
|
+
code: EnvironmentReasonCode;
|
|
40
|
+
message: string;
|
|
41
|
+
}
|
|
42
|
+
/** One environment a component may deploy to. */
|
|
43
|
+
export interface ComponentEnvironment {
|
|
44
|
+
/** What `--env` takes. */
|
|
45
|
+
name: string;
|
|
46
|
+
/** True for the environment `chant run --components` deploys to without `--env`. */
|
|
47
|
+
default: boolean;
|
|
48
|
+
/** Where the name came from; the first of config, ledger and builtin that names it. */
|
|
49
|
+
source: "config" | "ledger" | "builtin";
|
|
50
|
+
/** The command that deploys the component there on the default runtime, run in the member's directory. */
|
|
51
|
+
command: string;
|
|
52
|
+
}
|
|
53
|
+
/** The environments a member's ledger has, or why they couldn't be listed. */
|
|
54
|
+
export interface LedgerEnvironments {
|
|
55
|
+
envs: string[];
|
|
56
|
+
reason: EnvironmentReason | null;
|
|
57
|
+
}
|
|
58
|
+
/** Lists one member's ledger environments; git unless a test swaps it. */
|
|
59
|
+
export type LedgerEnvironmentReader = (member: {
|
|
60
|
+
name: string;
|
|
61
|
+
dir: string;
|
|
62
|
+
}, cwd: string) => LedgerEnvironments;
|
|
63
|
+
/** What one member's config and ledger say about environments. */
|
|
64
|
+
export interface MemberEnvironments {
|
|
65
|
+
/** Each environment in list order, without the per-component command. */
|
|
66
|
+
environments: Omit<ComponentEnvironment, "command">[];
|
|
67
|
+
reasons: EnvironmentReason[];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The environments with a release ledger for `member` on the local
|
|
71
|
+
* `chant/lifecycle` branch: the directories under `_members/<member>/` when it
|
|
72
|
+
* exists (the root member never has one), else the flat layout's top-level
|
|
73
|
+
* directories, that hold a `releases.jsonl`.
|
|
74
|
+
*/
|
|
75
|
+
export declare const readLedgerEnvironments: LedgerEnvironmentReader;
|
|
76
|
+
/** Join a member's config and ledger into its environment list, `local` first, then config order, then the ledger's. */
|
|
77
|
+
export declare function memberEnvironments(runtimes: MemberRuntimes | undefined, ledger: LedgerEnvironments | undefined): MemberEnvironments;
|
|
78
|
+
/** The environments one component may deploy to, each with its command line on the member's default runtime. */
|
|
79
|
+
export declare function componentEnvironments(component: string, member: MemberEnvironments | undefined, runtime?: string): ComponentEnvironment[];
|
|
80
|
+
//# sourceMappingURL=environments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environments.d.ts","sourceRoot":"","sources":["../../src/workspace/environments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAKH,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAGhE,2EAA2E;AA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,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,SAAS,EAAE,OAAO,SAAgB,GAAG,oBAAoB,EAAE,CAIhJ"}
|
|
@@ -42,7 +42,7 @@ export declare const INTENT_CONTRACT_VERSION = 1;
|
|
|
42
42
|
/** `$id` of the JSON Schema for the document, shipped beside this file. */
|
|
43
43
|
export declare const INTENT_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/intent/v1/intent.schema.json";
|
|
44
44
|
/** The finding codes. Closed: a reader may switch on them. */
|
|
45
|
-
export declare const INTENT_FINDING_CODES: readonly ["intent-commit-undecided", "intent-commit-bare", "intent-pin-drifted", "intent-pin-missing", "intent-artifact-unpinned", "intent-decision-superseded-live", "intent-decision-provisional", "intent-constraint-coarse", "intent-constraint-lost", "intent-evidence-unpinned", "intent-trailer-unverified", "intent-region-unconstrained", "intent-decision-unimplemented", "intent-work-blocked", "intent-work-open-decided-code"];
|
|
45
|
+
export declare const INTENT_FINDING_CODES: readonly ["intent-commit-undecided", "intent-commit-bare", "intent-pin-drifted", "intent-pin-missing", "intent-pin-stale", "intent-artifact-unpinned", "intent-decision-superseded-live", "intent-decision-provisional", "intent-decision-contested", "intent-constraint-coarse", "intent-constraint-lost", "intent-evidence-unpinned", "intent-trailer-unverified", "intent-region-unconstrained", "intent-decision-unimplemented", "intent-work-blocked", "intent-work-open-decided-code"];
|
|
46
46
|
export type IntentFindingCode = (typeof INTENT_FINDING_CODES)[number];
|
|
47
47
|
/** Why part of the walk could not be read. The read still succeeds. */
|
|
48
48
|
export declare const INTENT_REASON_CODES: readonly ["intent-history-shallow", "intent-plugin-failed"];
|
|
@@ -205,6 +205,11 @@ export interface FindingNode {
|
|
|
205
205
|
plugin?: string;
|
|
206
206
|
/** For a plugin's finding: the refs as the plugin gave them. The ones that name a node in the graph are in concerns. */
|
|
207
207
|
refs?: string[];
|
|
208
|
+
/** For intent-decision-contested (#2686): how many open concerns the decision has, and whose, as its quorum reports them. */
|
|
209
|
+
openConcerns?: {
|
|
210
|
+
count: number;
|
|
211
|
+
principals: string[];
|
|
212
|
+
};
|
|
208
213
|
/** With a work kind read (#2683): whether a work item addresses the finding. */
|
|
209
214
|
addressed?: boolean;
|
|
210
215
|
/** With a work kind read: the work items addressing the finding, each with its state. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../src/workspace/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgB,KAAK,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAyC,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,QAAQ,CAAC;AAEpG,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,8EAA8E,CAAC;AAInH,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../src/workspace/intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAUH,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgB,KAAK,UAAU,EAAmB,MAAM,gBAAgB,CAAC;AAEhF,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGzE,OAAO,EAAyC,KAAK,QAAQ,EAAE,KAAK,eAAe,EAAE,MAA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F;IAC5F,GAAG,EAAE,MAAM,CAAC;IACZ,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACtJ;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,cAAc,CAAC;IACpB,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;CACjB;AAoID,qDAAqD;AACrD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAOtG;AA6ID,6HAA6H;AAC7H,wBAAsB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAU3E"}
|
|
@@ -66,12 +66,17 @@ export declare const REASONS: {
|
|
|
66
66
|
readonly "work-implements-undecided": "A work record implements a decision whose state is not approved, such as proposed.";
|
|
67
67
|
readonly "work-done-unpinned": "A work record is done and its evidence list is empty: nothing shows the work was done.";
|
|
68
68
|
readonly "work-closed-without-date": "A work record is done or dropped and has no closing date.";
|
|
69
|
-
readonly "work-done-gap-open": "A work record is done, and the finding it came from still fires on its region.
|
|
69
|
+
readonly "work-done-gap-open": "A work record is done, and the finding it came from still fires on its region. graph --intent raises it, and records does by walking that region.";
|
|
70
70
|
readonly "review-decider": "The verdict is the decider's own, and the quorum counts verdicts besides the decider's.";
|
|
71
71
|
readonly "review-agent": "The reviewer holds the agent role in the trust policy at base.";
|
|
72
72
|
readonly "review-duplicate": "A later verdict by the same principal replaces this one. Names are compared after NFKC, trimming and lower-casing.";
|
|
73
73
|
readonly "review-older-digest": "The verdict names a digest other than the record's text now: the record changed after the verdict.";
|
|
74
|
-
readonly "review-unattested": "An attestation policy is active at base, and the verdict carries no seal.";
|
|
74
|
+
readonly "review-unattested": "An attestation policy is active at base, and the verdict carries no seal that verifies for its reviewer.";
|
|
75
|
+
readonly "seal-missing": "The verdict, or the record, carries no seal.";
|
|
76
|
+
readonly "seal-signer-unlisted": "The reviewer, or the record's author, has no key in the signers file at base, so the seal can't count.";
|
|
77
|
+
readonly "seal-signature-invalid": "The seal is malformed, names a signer other than the reviewer or author, or its signature does not verify over the verdict or record.";
|
|
78
|
+
readonly "seal-unverifiable": "Nothing here can say whose seal it is: there is no signers file at base, or ssh-keygen is not installed.";
|
|
79
|
+
readonly "record-unattested": "A signers file is active at base, and the record names an author whose seal does not verify: it has none, the author has no key in the file, or the signature fails.";
|
|
75
80
|
readonly "kind-unreadable": "The record kind file is missing or could not be imported.";
|
|
76
81
|
readonly "kind-invalid": "The record kind file exports no recordKind, or its shape is wrong.";
|
|
77
82
|
readonly "schema-unreadable": "The schema file the record kind names is missing or is not JSON.";
|
|
@@ -89,7 +94,13 @@ export declare const REASONS: {
|
|
|
89
94
|
readonly "amend-supersede-instead": "The record is approved, and the amendment changes a field the approval rule does not let change in place; a new record supersedes it instead.";
|
|
90
95
|
readonly "review-unsupported": "The kind's schema has no reviews field, so its records take no review.";
|
|
91
96
|
readonly "review-note-required": "A dissent was given with no note: a dissent needs a reason.";
|
|
92
|
-
readonly "
|
|
97
|
+
readonly "review-sign-failed": "--sign was given and no seal could be made: the key can't be read or used, git names no ssh signing key, or ssh-keygen is not installed.";
|
|
98
|
+
readonly "record-sign-failed": "--sign was given and no author seal could be made: the record names no author, the key can't be read or used, git names no ssh signing key, or ssh-keygen is not installed.";
|
|
99
|
+
readonly "session-unknown": "--session names no session of a session kind whose subjects are the record's kind.";
|
|
100
|
+
readonly "session-not-open": "--session names a session in a closed state, which takes no more verdicts.";
|
|
101
|
+
readonly "since-rev-unknown": "--since names no commit, or a session with no opening revision and no commit that added it.";
|
|
102
|
+
readonly "since-session-unknown": "--since has the shape of a session id and names no commit, and no session the kind or the declaration reads has that id.";
|
|
103
|
+
readonly "since-session-open": "--since names a session that is still open, so the comparison runs to the working tree.";
|
|
93
104
|
readonly "intent-region-invalid": "The region's path, or its line range, does not exist in the tree read.";
|
|
94
105
|
readonly "intent-history-shallow": "The repository is a shallow clone, so the region's history stops at the clone's boundary.";
|
|
95
106
|
readonly "intent-plugin-failed": "A kind file's commitJoins, which joins commits to units, contracts and evidence, failed for a commit.";
|
|
@@ -97,9 +108,11 @@ export declare const REASONS: {
|
|
|
97
108
|
readonly "intent-commit-bare": "A commit names no unit, no pull request and no decision covering the region at its time.";
|
|
98
109
|
readonly "intent-pin-drifted": "A decision's pinned artifact no longer hashes to the pin.";
|
|
99
110
|
readonly "intent-pin-missing": "A decision's pinned artifact does not exist in the tree read.";
|
|
111
|
+
readonly "intent-pin-stale": "A current decision pins an artifact at the hash a record it supersedes pinned, and the artifact has not changed since: the decision moved on and the artifact did not.";
|
|
100
112
|
readonly "intent-artifact-unpinned": "An artifact decisions in the graph pinned, which no current decision pins.";
|
|
101
113
|
readonly "intent-decision-superseded-live": "Every decision constraining the region is superseded.";
|
|
102
114
|
readonly "intent-decision-provisional": "The current decisions constraining the region are all in states their kind does not close, such as decided.";
|
|
115
|
+
readonly "intent-decision-contested": "A current decision constraining the region has an open concern: a dissent neither addressed nor withdrawn.";
|
|
103
116
|
readonly "intent-constraint-coarse": "The region is constrained only through its member, not by path.";
|
|
104
117
|
readonly "intent-constraint-lost": "A decision's path constraint names a path that does not exist in the tree read.";
|
|
105
118
|
readonly "intent-evidence-unpinned": "A decision's evidence has no hash: a URL, or a path with no sha256.";
|
|
@@ -111,8 +124,11 @@ export declare const REASONS: {
|
|
|
111
124
|
readonly "composites-no-chant-member": "No member of kind chant was read, so nothing declares a composite instance or a component.";
|
|
112
125
|
readonly "composites-none-declared": "The members read declare no composite instance.";
|
|
113
126
|
readonly "composites-no-component": "The members read declare no component, so no composite instance has one.";
|
|
114
|
-
readonly "runtimes-config-unreadable": "The member's chant.config.ts could not be read, so only the built-in local runtime is listed.";
|
|
127
|
+
readonly "runtimes-config-unreadable": "The member's chant.config.ts could not be read, so only the built-in local runtime is listed, and no environment from the config.";
|
|
115
128
|
readonly "runtimes-lexicon-unreadable": "A lexicon the member's config lists could not be loaded, so it is not listed as a runtime.";
|
|
129
|
+
readonly "environments-none-declared": "The member's chant.config.ts declares no environments, so only local and the environments in its ledger are listed.";
|
|
130
|
+
readonly "environments-ledger-undeclared": "The member's ledger has releases in an environment its config's environments don't cover, so chant run --env would refuse it and it is not listed.";
|
|
131
|
+
readonly "environments-ledger-unreadable": "The chant/lifecycle branch exists and the member's ledger environments could not be listed.";
|
|
116
132
|
readonly "lock-invalid": "The lineage lock can't be read.";
|
|
117
133
|
readonly "manual-step-open": "A scope in the lineage lock has an open manual step.";
|
|
118
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reason-codes.d.ts","sourceRoot":"","sources":["../../src/workspace/reason-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,uHAAuH;AACvH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,qFAAqF;AACrF,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"reason-codes.d.ts","sourceRoot":"","sources":["../../src/workspace/reason-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,uHAAuH;AACvH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,qFAAqF;AACrF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqIV,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC;AAE9C,mDAAmD;AACnD,eAAO,MAAM,YAAY,EAA2B,UAAU,EAAE,CAAC;AAEjE,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,MAAM,IAAI,MAAM,EAAE,CAAC;AAEtD,eAAO,MAAM,WAAW,QAAkD,CAAC;AAE3E,2HAA2H;AAC3H,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAI/E"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import type { CommandContext } from "../cli/registry.js";
|
|
20
20
|
import { type RecordKindDeclaration } from "./declaration.js";
|
|
21
|
-
import { type LoadedRecordKind, type Quorum, type ReadErrorCode, type ReadRecordsResult, type RecordEntry, type RecordFormat } from "./records.js";
|
|
21
|
+
import { type LoadedRecordKind, type Quorum, type ReadErrorCode, type ReadRecordsResult, type RecordEntry, type RecordFormat, type VerdictAttestation } from "./records.js";
|
|
22
22
|
import { type WorkspaceTree } from "./tree.js";
|
|
23
23
|
import type { DecisionWork } from "./work.js";
|
|
24
24
|
import { type ProvenanceLevel } from "./trust/attestor.js";
|
|
@@ -37,14 +37,24 @@ export interface RecordsQuery {
|
|
|
37
37
|
base?: string;
|
|
38
38
|
/** Where `kind` is resolved from and the repository is found. */
|
|
39
39
|
cwd: string;
|
|
40
|
+
/**
|
|
41
|
+
* For a work kind: walk the region of each done item's `source` and raise
|
|
42
|
+
* `work-done-gap-open` when its finding still fires (#2686). On unless
|
|
43
|
+
* false; the intent graph passes false, since it raises the warning itself.
|
|
44
|
+
*/
|
|
45
|
+
workGaps?: boolean;
|
|
40
46
|
}
|
|
41
47
|
/**
|
|
42
48
|
* A record as the output carries it: the entry plus its provenance (#2547),
|
|
43
|
-
* and
|
|
49
|
+
* and, when the kind has a reviews list, its quorum (#2671) and what its
|
|
50
|
+
* author seal establishes (#2688).
|
|
44
51
|
*/
|
|
45
52
|
export type RecordView = RecordEntry & {
|
|
46
53
|
provenance: RecordProvenance;
|
|
47
54
|
quorum?: Quorum | null;
|
|
55
|
+
/** true when the record's seal verifies for its author against the signers at base; false when it fails, or is missing under an active policy; null when nothing here can say (#2688). */
|
|
56
|
+
attested?: boolean | null;
|
|
57
|
+
attestation?: VerdictAttestation;
|
|
48
58
|
};
|
|
49
59
|
/** The role in the trust policy whose holders' verdicts the quorum does not count (#2671). */
|
|
50
60
|
export declare const AGENT_ROLE = "agent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/records-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,OAAO,EAA4D,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGrH,OAAO,
|
|
1
|
+
{"version":3,"file":"records-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/records-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,OAAO,EAA4D,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGrH,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,iBA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AC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAUvG;AAED,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiE9E;AAuFD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM9C;AAED,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,eAAe,GAAG,UAAU,EAAE,CAE5F;AAkCD,yCAAyC;AACzC,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAS9E"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant workspace records close <session id>` (#2693): close a review
|
|
3
|
+
* session in one write. It sets the session's state to its kind's closed
|
|
4
|
+
* state, the time it closed and the commit it closed at (the fields the
|
|
5
|
+
* kind's `session` block names in `closedOn` and `closedRev`), and then the
|
|
6
|
+
* seal by chant's rule ({@link sessionSeal}), so a UI never computes a seal.
|
|
7
|
+
*
|
|
8
|
+
* Like `new`, `amend` and `review`, it reads the records again with the file
|
|
9
|
+
* in place and writes only when the session comes back valid: a verdict
|
|
10
|
+
* naming a record the subjects lack is refused with
|
|
11
|
+
* `session-verdict-unknown-record`. A session already closed is
|
|
12
|
+
* `record-closed`. It writes one file or none and never commits.
|
|
13
|
+
*/
|
|
14
|
+
import { type WriteFailure, type WriteResult } from "./records-write.js";
|
|
15
|
+
export declare const RECORDS_CLOSE_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/records-close/v1/records-close.schema.json";
|
|
16
|
+
/** Why `records close` wrote nothing. Closed. */
|
|
17
|
+
export declare const CLOSE_ERROR_CODES: readonly ["kind-unreadable", "kind-invalid", "schema-unreadable", "schema-id-mismatch", "schema-invalid", "location-missing", "write-usage-invalid", "record-not-found", "record-closed", "record-unparseable", "record-schema-invalid", "record-id-duplicate", "record-supersedes-unknown", "record-supersedes-conflict", "session-seal-mismatch", "session-verdict-unknown-record"];
|
|
18
|
+
export type CloseErrorCode = (typeof CLOSE_ERROR_CODES)[number];
|
|
19
|
+
export type CloseDocument = (WriteResult & {
|
|
20
|
+
/** The top-level fields the close set, in the order written. */
|
|
21
|
+
changed: string[];
|
|
22
|
+
/** The seal field and the digest written in it. */
|
|
23
|
+
seal: {
|
|
24
|
+
field: string;
|
|
25
|
+
digest: string;
|
|
26
|
+
};
|
|
27
|
+
/** The commit HEAD named at the close, or null outside git or before the first commit. */
|
|
28
|
+
closedRev: string | null;
|
|
29
|
+
}) | WriteFailure<CloseErrorCode>;
|
|
30
|
+
export interface CloseRecordOptions {
|
|
31
|
+
/** The session kind file, resolved against `cwd`. */
|
|
32
|
+
kind: string;
|
|
33
|
+
id: string;
|
|
34
|
+
dryRun?: boolean;
|
|
35
|
+
cwd: string;
|
|
36
|
+
/** The close time. Defaults to now. */
|
|
37
|
+
now?: Date;
|
|
38
|
+
}
|
|
39
|
+
/** `records close`: close one open session and seal it. */
|
|
40
|
+
export declare function closeRecord(opts: CloseRecordOptions): Promise<CloseDocument>;
|
|
41
|
+
//# sourceMappingURL=records-close.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records-close.d.ts","sourceRoot":"","sources":["../../src/workspace/records-close.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAaL,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAGzB,eAAO,MAAM,uBAAuB,4FAA4F,CAAC;AAEjI,iDAAiD;AACjD,eAAO,MAAM,iBAAiB,uXAMY,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,aAAa,GACrB,CAAC,WAAW,GAAG;IACb,gEAAgE;IAChE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,mDAAmD;IACnD,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,0FAA0F;IAC1F,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC,GACF,YAAY,CAAC,cAAc,CAAC,CAAC;AAEjC,MAAM,WAAW,kBAAkB;IACjC,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,uCAAuC;IACvC,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ;AAOD,2DAA2D;AAC3D,wBAAsB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC,CAqDlF"}
|
|
@@ -9,13 +9,50 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Records are matched by id. A record whose id could not be read is left
|
|
11
11
|
* out of the comparison, since nothing says which record it was before.
|
|
12
|
+
*
|
|
13
|
+
* `--since <session id>` (#2693) compares the commit a review session
|
|
14
|
+
* opened at with the commit that carries its close. The first is the
|
|
15
|
+
* record's opening revision (the kind's `session.openedRev` field). The
|
|
16
|
+
* record's closing revision (`session.closedRev`) is HEAD when `records
|
|
17
|
+
* close` wrote the close, before the caller committed it, so the close and
|
|
18
|
+
* the verdicts committed with it are in the first commit after it that
|
|
19
|
+
* changed the session file. A session written before chant wrote these
|
|
20
|
+
* fields falls back to its file's history: the commit that added it and the
|
|
21
|
+
* last commit that changed it. An open session, or one whose close is not
|
|
22
|
+
* committed yet, is compared with the working tree, and an open one says so
|
|
23
|
+
* with `since-session-open`.
|
|
12
24
|
*/
|
|
13
25
|
import { type RecordEntry, type RecordKind } from "./records.js";
|
|
14
26
|
/** `$id` of the JSON Schema for `records --since --json`, shipped beside this file. */
|
|
15
27
|
export declare const RECORDS_SINCE_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/records-since/v1/records-since.schema.json";
|
|
16
28
|
/** Why a `--since` read failed: any records read error, or a `--since` that names no commit. Closed. */
|
|
17
|
-
export declare const RECORDS_SINCE_ERROR_CODES: readonly ["kind-unreadable", "kind-invalid", "schema-unreadable", "schema-id-mismatch", "schema-invalid", "location-missing", "not-a-git-repository", "revision-unknown", "since-rev-unknown"];
|
|
29
|
+
export declare const RECORDS_SINCE_ERROR_CODES: readonly ["kind-unreadable", "kind-invalid", "schema-unreadable", "schema-id-mismatch", "schema-invalid", "location-missing", "not-a-git-repository", "revision-unknown", "since-rev-unknown", "since-session-unknown"];
|
|
18
30
|
export type RecordsSinceErrorCode = (typeof RECORDS_SINCE_ERROR_CODES)[number];
|
|
31
|
+
/** Why a session's comparison is not the one between its open and close commits (#2693). Closed. */
|
|
32
|
+
export declare const RECORDS_SINCE_REASON_CODES: readonly ["since-session-open"];
|
|
33
|
+
/**
|
|
34
|
+
* The session `--since` named (#2693), and where the two revisions came
|
|
35
|
+
* from: the record's own fields, or git's history of its file for a session
|
|
36
|
+
* written before chant wrote them.
|
|
37
|
+
*/
|
|
38
|
+
export interface SinceSession {
|
|
39
|
+
id: string;
|
|
40
|
+
/** The session file, from the repository root, with / separators. */
|
|
41
|
+
path: string;
|
|
42
|
+
state: string | null;
|
|
43
|
+
/** Where `since` came from: the session's opening revision field, or the last commit that added its file. */
|
|
44
|
+
sinceFrom: "opened-rev" | "history";
|
|
45
|
+
/**
|
|
46
|
+
* Where `at` came from: the first commit after the closing revision that
|
|
47
|
+
* changed the session file (the commit carrying the close), the last
|
|
48
|
+
* commit that changed the file, --at, or the working tree.
|
|
49
|
+
*/
|
|
50
|
+
atFrom: "close-commit" | "history" | "at" | "working-tree";
|
|
51
|
+
reasons: {
|
|
52
|
+
code: (typeof RECORDS_SINCE_REASON_CODES)[number];
|
|
53
|
+
message: string;
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
19
56
|
/** The kinds of change, in the order the output lists them. */
|
|
20
57
|
export declare const SINCE_CHANGE_KINDS: readonly ["new", "removed", "state", "verdict", "supersession", "pin"];
|
|
21
58
|
export type SinceChangeKind = (typeof SINCE_CHANGE_KINDS)[number];
|
|
@@ -63,6 +100,8 @@ export type RecordsSinceDocument = {
|
|
|
63
100
|
};
|
|
64
101
|
since: string;
|
|
65
102
|
at: string | null;
|
|
103
|
+
/** With `--since <session id>` only. */
|
|
104
|
+
session?: SinceSession;
|
|
66
105
|
changes: SinceChange[];
|
|
67
106
|
summary: Record<SinceChangeKind, number>;
|
|
68
107
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"records-since.d.ts","sourceRoot":"","sources":["../../src/workspace/records-since.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"records-since.d.ts","sourceRoot":"","sources":["../../src/workspace/records-since.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAMH,OAAO,EAAgF,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAK5I,uFAAuF;AACvF,eAAO,MAAM,8BAA8B,4FAA4F,CAAC;AAExI,wGAAwG;AACxG,eAAO,MAAM,yBAAyB,yNAMI,CAAC;AAC3C,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,oGAAoG;AACpG,eAAO,MAAM,0BAA0B,iCAGG,CAAC;AAE3C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6GAA6G;IAC7G,SAAS,EAAE,YAAY,GAAG,SAAS,CAA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