@intentius/chant 0.81.0 → 0.83.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/main.d.ts.map +1 -1
- package/dist/content-digest.d.ts +2 -0
- package/dist/content-digest.d.ts.map +1 -1
- package/dist/workspace/checks/records.d.ts +33 -0
- package/dist/workspace/checks/records.d.ts.map +1 -0
- package/dist/workspace/checks.d.ts +8 -0
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/compose-graph.d.ts +22 -6
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/graph-cli.d.ts +11 -4
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/lineage-check.d.ts +5 -2
- package/dist/workspace/lineage-check.d.ts.map +1 -1
- package/dist/workspace/lineage-cli.d.ts +5 -1
- package/dist/workspace/lineage-cli.d.ts.map +1 -1
- package/dist/workspace/lineage-init.d.ts +47 -4
- package/dist/workspace/lineage-init.d.ts.map +1 -1
- package/dist/workspace/lineage-lock.d.ts +23 -2
- package/dist/workspace/lineage-lock.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade-cli.d.ts +1 -1
- package/dist/workspace/lineage-upgrade.d.ts +8 -2
- package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +4 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/record-assets.d.ts +108 -0
- package/dist/workspace/record-assets.d.ts.map +1 -0
- package/dist/workspace/records-cli.d.ts +32 -1
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +41 -0
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/template-pins.d.ts +33 -0
- package/dist/workspace/template-pins.d.ts.map +1 -0
- package/dist/workspace/tree.d.ts +5 -0
- package/dist/workspace/tree.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/cli/handlers/init.ts +7 -3
- package/src/cli/main.ts +16 -8
- package/src/content-digest.ts +5 -0
- package/src/workspace/behold-kinds.test.ts +10 -14
- package/src/workspace/checks/records.ts +83 -0
- package/src/workspace/checks.test.ts +2 -0
- package/src/workspace/checks.ts +13 -3
- package/src/workspace/compose-graph.test.ts +2 -1
- package/src/workspace/compose-graph.ts +23 -6
- package/src/workspace/graph-cli.ts +32 -6
- package/src/workspace/graph-contract.test.ts +2 -1
- package/src/workspace/graph.schema.json +131 -2
- package/src/workspace/lineage-check.ts +22 -5
- package/src/workspace/lineage-cli.ts +21 -1
- package/src/workspace/lineage-init-dir.test.ts +243 -0
- package/src/workspace/lineage-init.ts +223 -24
- package/src/workspace/lineage-lock.ts +18 -3
- package/src/workspace/lineage-upgrade-cli.ts +2 -2
- package/src/workspace/lineage-upgrade.test.ts +29 -0
- package/src/workspace/lineage-upgrade.ts +130 -13
- package/src/workspace/member-commands.ts +1 -1
- package/src/workspace/reason-codes.test.ts +2 -1
- package/src/workspace/reason-codes.ts +5 -0
- package/src/workspace/record-assets.test.ts +319 -0
- package/src/workspace/record-assets.ts +207 -0
- package/src/workspace/records-cli.ts +117 -14
- package/src/workspace/records.schema.json +33 -1
- package/src/workspace/records.test.ts +50 -0
- package/src/workspace/records.ts +115 -5
- package/src/workspace/template-pins.test.ts +69 -0
- package/src/workspace/template-pins.ts +117 -0
- package/src/workspace/tree.ts +12 -0
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;AAiG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA2apD;
|
|
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;AAiG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CA2apD;AA+jBD;;;;;;;;;;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"}
|
package/dist/content-digest.d.ts
CHANGED
|
@@ -14,4 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
/** `sha256:<64 hex>` over the UTF-8 bytes of `input`. */
|
|
16
16
|
export declare function contentDigest(input: string): string;
|
|
17
|
+
/** Lowercase hex SHA-256 of `bytes`, with no prefix: the form a decision's evidence pin holds (#2549). */
|
|
18
|
+
export declare function sha256Hex(bytes: Uint8Array): string;
|
|
17
19
|
//# sourceMappingURL=content-digest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-digest.d.ts","sourceRoot":"","sources":["../src/content-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD"}
|
|
1
|
+
{"version":3,"file":"content-digest.d.ts","sourceRoot":"","sources":["../src/content-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,yDAAyD;AACzD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,0GAA0G;AAC1G,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEnD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The record checks, WSP111 to WSP114 (#2549; #2524 D4, D18).
|
|
3
|
+
*
|
|
4
|
+
* With `--kind <kind file>`, `chant workspace check` reads the records the
|
|
5
|
+
* kind locates, in the tree it checks, and reports the files they pin by hash
|
|
6
|
+
* that have changed or gone since. A decision stays valid when its evidence
|
|
7
|
+
* drifts, so drift is a warning: it asks for the decision to be looked at
|
|
8
|
+
* again, and the declaration's `checks` can raise it to an error.
|
|
9
|
+
*
|
|
10
|
+
* | Id | Finds |
|
|
11
|
+
* |---|---|
|
|
12
|
+
* | WSP111 | a pinned file whose bytes no longer hash to the pinned sha256 |
|
|
13
|
+
* | WSP112 | a pinned file that does not exist |
|
|
14
|
+
* | WSP113 | a pinned file that a superseding record pins at the old hash: the artifact did not follow the decision |
|
|
15
|
+
* | WSP114 | the records of `--kind` can't be read (fixed) |
|
|
16
|
+
*/
|
|
17
|
+
import type { WorkspaceCheck } from "../checks.js";
|
|
18
|
+
import type { ReadErrorCode, RecordEntry } from "../records.js";
|
|
19
|
+
/** The records `check --kind` read, or why they could not be read. */
|
|
20
|
+
export type RecordFacts = {
|
|
21
|
+
kind: string;
|
|
22
|
+
records: readonly (RecordEntry & {
|
|
23
|
+
file: string;
|
|
24
|
+
})[];
|
|
25
|
+
} | {
|
|
26
|
+
kind: string;
|
|
27
|
+
error: {
|
|
28
|
+
code: ReadErrorCode;
|
|
29
|
+
message: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const RECORD_CHECKS: readonly WorkspaceCheck[];
|
|
33
|
+
//# sourceMappingURL=records.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../src/workspace/checks/records.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAuB,MAAM,WAAW,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,sEAAsE;AACtE,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC,WAAW,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;CAAE,GACtE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAgBtE,eAAO,MAAM,aAAa,EAAE,SAAS,cAAc,EA2ClD,CAAC"}
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
* | WSP081 to WSP083 | recorded pipelines |
|
|
27
27
|
* | WSP091 to WSP097 | member links (#2539) |
|
|
28
28
|
* | WSP101 to WSP106 | generated files |
|
|
29
|
+
* | WSP111 to WSP114 | records read with `--kind` (#2549) |
|
|
29
30
|
*/
|
|
30
31
|
import type { LintDiagnostic, LintRule, Severity } from "../lint/rule.js";
|
|
31
32
|
import type { PostSynthDiagnostic } from "../lint/post-synth.js";
|
|
@@ -37,6 +38,7 @@ import type { LinkTableRow } from "./links.js";
|
|
|
37
38
|
import { type GeneratedFileFacts } from "./checks/generated.js";
|
|
38
39
|
import { type MemberLedgerFacts } from "./checks/ledgers.js";
|
|
39
40
|
import { type MemberPipelineFacts } from "./checks/pipelines.js";
|
|
41
|
+
import { type RecordFacts } from "./checks/records.js";
|
|
40
42
|
/**
|
|
41
43
|
* What the checks beyond the declaration read, gathered from the checkout
|
|
42
44
|
* before any check runs. A field left out was not gathered, and the checks
|
|
@@ -49,6 +51,8 @@ export interface WorkspaceFacts {
|
|
|
49
51
|
pipelines?: readonly MemberPipelineFacts[];
|
|
50
52
|
/** Each declared or implicit generated file, with what its generator produced. */
|
|
51
53
|
generated?: readonly GeneratedFileFacts[];
|
|
54
|
+
/** The records of the kind named with `--kind`, with their pins checked (#2549). */
|
|
55
|
+
records?: RecordFacts;
|
|
52
56
|
}
|
|
53
57
|
/** What every declaration check reads. */
|
|
54
58
|
export interface WorkspaceCheckContext {
|
|
@@ -69,6 +73,8 @@ export interface WorkspaceCheckContext {
|
|
|
69
73
|
export interface WorkspaceDiagnostic extends PostSynthDiagnostic {
|
|
70
74
|
/** A JSON Pointer into the declaration. */
|
|
71
75
|
pointer: string;
|
|
76
|
+
/** An absolute path, for a finding about a file other than the declaration, such as a record (#2549). It is reported at its first line. */
|
|
77
|
+
file?: string;
|
|
72
78
|
}
|
|
73
79
|
export interface WorkspaceCheck {
|
|
74
80
|
/** `WSP` and three digits. Public once shipped. */
|
|
@@ -137,6 +143,8 @@ export interface DeclarationCheckOptions {
|
|
|
137
143
|
* gathered: they describe the working tree, not the revision.
|
|
138
144
|
*/
|
|
139
145
|
tree?: WorkspaceTree;
|
|
146
|
+
/** The records read with `--kind`, in the same tree (#2549). Given with or without `tree`. */
|
|
147
|
+
records?: RecordFacts;
|
|
140
148
|
}
|
|
141
149
|
/**
|
|
142
150
|
* Gather {@link WorkspaceFacts} for the declaration in `root`. Member
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src/workspace/checks.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src/workspace/checks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAsD,KAAK,WAAW,EAAkC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACzJ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAA4C,KAAK,eA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AAE,OAAO,CAAC;IACjB,sHAAsH;IACtH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CASrJ;AAUD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAiB,EAC5C,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,sBAAsB,CAAC,CA+CjC"}
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
* - `links` holds the member links (#2524 D6, #2539): the declared links and
|
|
17
17
|
* the joins inferred from members' `imports` and `exports` with the core
|
|
18
18
|
* `joinKey()`, labelled `exact` or `folded` (`./links.ts`). A declared link
|
|
19
|
-
* suppresses the inferred edge it covers. `records`
|
|
20
|
-
*
|
|
19
|
+
* suppresses the inferred edge it covers. `records` holds the records
|
|
20
|
+
* read through a record kind (`--kind`, #2549), and their `asset` and
|
|
21
|
+
* `constrains` links follow the member links in `links`.
|
|
21
22
|
*
|
|
22
23
|
* A member's IR with no `version` field comes from a chant older than #2529.
|
|
23
24
|
* It is version 1, and it is upgraded in place by stamping that version. An IR
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
import type { Declaration } from "./declaration.js";
|
|
31
32
|
import type { KindRegistry } from "./kinds.js";
|
|
32
33
|
import { type LinkTableRow } from "./links.js";
|
|
34
|
+
import type { RecordLinkRow } from "./record-assets.js";
|
|
33
35
|
import { type GraphIR, type IRExport, type IRGroups, type IRImport, type IREdge, type IRNode } from "../graph-ir.js";
|
|
34
36
|
/** The version of the composed document `chant workspace graph` writes. */
|
|
35
37
|
export declare const WORKSPACE_GRAPH_VERSION = 1;
|
|
@@ -82,10 +84,24 @@ export interface WorkspaceGraph {
|
|
|
82
84
|
member: string;
|
|
83
85
|
})[];
|
|
84
86
|
derivedAttrs?: Record<string, string[]>;
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
/**
|
|
88
|
+
* Member links (#2524 D6, #2539), declared and inferred, then the links of
|
|
89
|
+
* the records read with `--kind` (#2549). Empty when no declaration is given.
|
|
90
|
+
*/
|
|
91
|
+
links: (LinkTableRow | RecordLinkRow)[];
|
|
92
|
+
/** The records read with `--kind` (#2524 D4, #2549). Empty without it. */
|
|
93
|
+
records: GraphRecord[];
|
|
94
|
+
}
|
|
95
|
+
/** A record in the composed graph: enough to name it from a link row. */
|
|
96
|
+
export interface GraphRecord {
|
|
97
|
+
/** The record kind's name, such as `decision`. */
|
|
98
|
+
kind: string;
|
|
99
|
+
id: string | null;
|
|
100
|
+
/** From the repository root. */
|
|
101
|
+
path: string;
|
|
102
|
+
state: string | null;
|
|
103
|
+
valid: boolean;
|
|
104
|
+
supersededBy: string | null;
|
|
89
105
|
}
|
|
90
106
|
/** Read one member's `chant graph --format ir` output, upgrading an unversioned (v1) IR in place. */
|
|
91
107
|
export declare function readMemberIr(text: string): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-graph.d.ts","sourceRoot":"","sources":["../../src/workspace/compose-graph.ts"],"names":[],"mappings":"AAAA
|
|
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,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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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `chant workspace graph [dir] [--at <rev>] [--member <name>] [
|
|
3
|
-
* [--env <env>] [--dry-run]` (#2537, #2536): every `chant`
|
|
4
|
-
* through the member's own toolchain and composed into one
|
|
5
|
-
* (`compose-graph.ts`).
|
|
2
|
+
* `chant workspace graph [dir] [--at <rev>] [--member <name>] [--kind <kind file>]
|
|
3
|
+
* [-o <file>] [--env <env>] [--dry-run]` (#2537, #2536): every `chant`
|
|
4
|
+
* member's IR, read through the member's own toolchain and composed into one
|
|
5
|
+
* document (`compose-graph.ts`). With `--kind`, the records of that kind and
|
|
6
|
+
* their asset and constrains links join it (#2549, `record-assets.ts`).
|
|
6
7
|
*
|
|
7
8
|
* The document is part of the read contract, described by `graph.schema.json`
|
|
8
9
|
* beside this file. It is printed for a failure too, with the error's reason
|
|
@@ -54,6 +55,12 @@ export interface GraphQuery {
|
|
|
54
55
|
reader?: Toolchain;
|
|
55
56
|
/** Called with each member's stderr, so the command can pass it on. */
|
|
56
57
|
onStderr?: (text: string) => void;
|
|
58
|
+
/**
|
|
59
|
+
* A record kind file, absolute or relative to `cwd` (#2549). Its records
|
|
60
|
+
* fill `records`, and their asset pins and `constrains` entries become
|
|
61
|
+
* rows of `links`.
|
|
62
|
+
*/
|
|
63
|
+
kind?: string;
|
|
57
64
|
}
|
|
58
65
|
export interface GraphResult {
|
|
59
66
|
doc: GraphDocument;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cli.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"graph-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/graph-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAA0D,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC9G,OAAO,EAA6E,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACvJ,OAAO,EAAgF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAmB,MAAM,mBAAmB,CAAC;AAKnK,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,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,uNAAwB,CAAC;AAIvD,UAAU,IAAI;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,aAAa,GACrB,CAAC,IAAI,GAAG;IAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,cAAc,CAAC,GAC/C,CAAC,IAAI,GAAG;IAAE,KAAK,EAAE;QAAE,IAAI,EAAE,kBAAkB,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,aAAa,GAAG,IAAI,CAAA;KAAE,CAAA;CAAE,CAAC,CAAC;AAEtG,MAAM,WAAW,UAAU;IACzB,mDAAmD;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0BAA0B;IAC1B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3B,kFAAkF;IAClF,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,aAAa,CAAC;IACnB,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAmCtF;AAkCD,wGAAwG;AACxG,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,CAIvD;AAED,qGAAqG;AACrG,wBAAsB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,CAwC5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsC5E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `chant workspace check [--at <rev>] [--json] [--format stylish|json|sarif] [--generated]`:
|
|
2
|
+
* `chant workspace check [--at <rev>] [--json] [--format stylish|json|sarif] [--generated] [--kind <kind file>]`:
|
|
3
3
|
* the lineage checks (#2550, D9), and the declaration checks (#2535, D16)
|
|
4
4
|
* when a declaration sits between the current directory and the git root.
|
|
5
5
|
*
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
* check. The declaration checks report `WSP` findings through lint's
|
|
11
11
|
* reporters (`./checks.ts`), and cover member ledgers (#2538), recorded
|
|
12
12
|
* pipelines (#2542) and generated files (#2541) as well as the declaration
|
|
13
|
-
* itself (#2641). `--generated` runs each declared generator too.
|
|
13
|
+
* itself (#2641). `--generated` runs each declared generator too. `--kind`
|
|
14
|
+
* reads a record kind's records and reports the files they pin by hash that
|
|
15
|
+
* have changed since (#2549).
|
|
14
16
|
*
|
|
15
17
|
* `chant workspace upgrade` runs the same checks in its staging worktree
|
|
16
18
|
* before it reaches its gate.
|
|
@@ -79,6 +81,7 @@ export type CheckDocument = (CheckReport & {
|
|
|
79
81
|
*/
|
|
80
82
|
export declare function runChecks(cwd: string, at?: string, options?: {
|
|
81
83
|
runGenerators?: boolean;
|
|
84
|
+
kind?: string;
|
|
82
85
|
}): Promise<CheckDocument>;
|
|
83
86
|
export declare function runWorkspaceCheck(ctx: CommandContext): Promise<number>;
|
|
84
87
|
//# sourceMappingURL=lineage-check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-check.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-check.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lineage-check.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAMvD,yCAAyC;AACzC,eAAO,MAAM,WAAW,+CAAgF,CAAC;AACzG,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,oEAAoE;IACpE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MA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,MAAM,EAAE,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,OAAO,CAAC,aAAa,CAAC,CA0D1I;AAcD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6D5E"}
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
* project (#2525 rule 4).
|
|
10
10
|
*/
|
|
11
11
|
import type { CommandContext } from "../cli/registry.js";
|
|
12
|
-
import { type ManualStep } from "./lineage-lock.js";
|
|
12
|
+
import { type LineageSource, type ManualStep } from "./lineage-lock.js";
|
|
13
13
|
export interface LineageScopeView {
|
|
14
14
|
scope: string;
|
|
15
15
|
kind: "template" | "vendor";
|
|
16
16
|
name?: string;
|
|
17
17
|
template: string;
|
|
18
|
+
/** Where the files came from, as the lock records it: its `type` and the repository, directory, lexicon or URL. */
|
|
19
|
+
source: LineageSource;
|
|
18
20
|
ref?: string;
|
|
19
21
|
address: Record<string, unknown> | null;
|
|
20
22
|
files: number;
|
|
@@ -22,6 +24,8 @@ export interface LineageScopeView {
|
|
|
22
24
|
missing: string[];
|
|
23
25
|
manualSteps: ManualStep[];
|
|
24
26
|
}
|
|
27
|
+
/** One line naming a scope's source kind and where it points (#2647). */
|
|
28
|
+
export declare function describeSource(source: LineageSource): string;
|
|
25
29
|
/** The lock as `--json` prints it: one view per scope, with its state in the tree. */
|
|
26
30
|
export declare function lineageView(root: string): {
|
|
27
31
|
lock: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAA6E,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"lineage-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAA6E,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAIhJ,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,mHAAmH;IACnH,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAa5D;AAED,sFAAsF;AACtF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,gBAAgB,EAAE,CAAA;CAAE,GAAG,IAAI,CAoB7F;AAED,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoC9E"}
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
* with one lineage, scope `"."`, so a project made from a template can be
|
|
5
5
|
* upgraded later without first running adopt-lineage.
|
|
6
6
|
*
|
|
7
|
-
* `--from
|
|
8
|
-
* catalogue (`test/egress-catalogue.ts`). The commit and the tree
|
|
9
|
-
* chosen directory become the content address.
|
|
7
|
+
* `--from <repo>@<ref>` fetches with `git`: the one network step, listed in
|
|
8
|
+
* the egress catalogue (`test/egress-catalogue.ts`). The commit and the tree
|
|
9
|
+
* of the chosen directory become the content address.
|
|
10
|
+
*
|
|
11
|
+
* `--from <dir>[#<member>]` copies a template directory already on disk
|
|
12
|
+
* (#2647), for a host that carries the template as plain files with no
|
|
13
|
+
* `.git` and no way to reach its repository. It reaches no network, and the
|
|
14
|
+
* digest of the copied files is the whole content address.
|
|
10
15
|
*
|
|
11
16
|
* Plain `chant init` without `--template` writes no lock. That keeps the
|
|
12
17
|
* output of an existing command unchanged (#2525 rule 2), and this module
|
|
@@ -59,7 +64,40 @@ export declare function readTemplateTree(scratch: string, commit: string, member
|
|
|
59
64
|
* never copied: it describes the template's lineage, not the new project's.
|
|
60
65
|
*/
|
|
61
66
|
export declare function fetchTemplate(spec: TemplateSpec): FetchedTemplate;
|
|
67
|
+
export interface DirTemplateSpec {
|
|
68
|
+
kind: "dir";
|
|
69
|
+
/** The directory as written, without `#<member>`. */
|
|
70
|
+
path: string;
|
|
71
|
+
/** The directory, absolute. */
|
|
72
|
+
abs: string;
|
|
73
|
+
/** The directory inside it to instantiate (`#<member>`). */
|
|
74
|
+
member?: string;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Parse `<path>[#<member>]` when `<path>` is an existing directory, or return
|
|
78
|
+
* null for the git form. A spec without `@` that names no directory is
|
|
79
|
+
* refused here, since it cannot be a `<repo>@<ref>` either. A directory whose
|
|
80
|
+
* name happens to parse as `<repo>@<ref>` is a directory: what is on disk wins.
|
|
81
|
+
*/
|
|
82
|
+
export declare function parseDirSpec(spec: string, cwd?: string): DirTemplateSpec | null;
|
|
83
|
+
/** The template's directory as `#<member>` names it, relative to its root, for messages. */
|
|
84
|
+
export declare function dirLabel(path: string, member?: string): string;
|
|
85
|
+
/**
|
|
86
|
+
* Read the files of a template directory on disk, the way
|
|
87
|
+
* {@link readTemplateTree} reads a commit: symbolic links, submodules and the
|
|
88
|
+
* template's own lineage lock are skipped with the reason, and so is
|
|
89
|
+
* `node_modules`. Inside a git checkout the files are the ones git would
|
|
90
|
+
* commit, tracked or untracked but not ignored. Elsewhere, or when git is not
|
|
91
|
+
* installed, every file is copied. The executable bit is the owner's.
|
|
92
|
+
*/
|
|
93
|
+
export declare function readTemplateDir(abs: string, member: string | undefined, label: string): Omit<FetchedTemplate, "commit" | "tree">;
|
|
94
|
+
/**
|
|
95
|
+
* How a directory source is recorded: an absolute path as given, a relative
|
|
96
|
+
* one re-expressed from the project, so it resolves from the lock's directory.
|
|
97
|
+
*/
|
|
98
|
+
export declare function recordedDirPath(given: string, abs: string, projectDir: string): string;
|
|
62
99
|
export interface InitFromOptions {
|
|
100
|
+
/** `<repo>@<ref>[#<member>]`, or `<dir>[#<member>]` for a directory on disk (#2647). */
|
|
63
101
|
from: string;
|
|
64
102
|
/** Target directory (defaults to cwd). */
|
|
65
103
|
path?: string;
|
|
@@ -72,12 +110,17 @@ export interface InitFromResult {
|
|
|
72
110
|
createdFiles: string[];
|
|
73
111
|
warnings: string[];
|
|
74
112
|
error?: string;
|
|
113
|
+
/** The git form's spec. */
|
|
75
114
|
spec?: TemplateSpec;
|
|
115
|
+
/** The directory form's spec (#2647). */
|
|
116
|
+
dir?: DirTemplateSpec;
|
|
76
117
|
commit?: string;
|
|
118
|
+
/** The lineage's `template` id. */
|
|
119
|
+
template?: string;
|
|
77
120
|
/** The parameter values used, recorded in the lock. */
|
|
78
121
|
parameters?: Record<string, string>;
|
|
79
122
|
}
|
|
80
|
-
/** `chant init --from <repo>@<ref>[#<member>] [path]`. */
|
|
123
|
+
/** `chant init --from <repo>@<ref>[#<member>] [path]`, or `--from <dir>[#<member>]`. */
|
|
81
124
|
export declare function initFromCommand(options: InitFromOptions): Promise<InitFromResult>;
|
|
82
125
|
export interface TemplateLockInput {
|
|
83
126
|
targetDir: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-init.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-init.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lineage-init.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-init.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAwBH,MAAM,WAAW,YAAY;IAC3B,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6GAA6G;IAC7G,EAAE,EAAE,MAAM,CAAC;CACZ;AAgBD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,GAAE,MAAsB,GAAG,YAAY,CAgCzF;AAID,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC1D,mDAAmD;IACnD,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAED,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAQvD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,KAAK,EAAE,MAAM,GACZ;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAAC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA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AC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,yCAAyC;IACzC,GAAG,CAAC,EAAE,eAAe,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,wFAAwF;AACxF,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CA8GvF;AAgCD,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA0BzE"}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* The lock records where a project's files came from. It holds one lineage per
|
|
5
5
|
* scope, keyed by the scope's directory relative to the lock's root:
|
|
6
6
|
*
|
|
7
|
-
* - a project made by `chant init --from <repo>@<ref
|
|
8
|
-
* `chant init --template <name>` has one
|
|
7
|
+
* - a project made by `chant init --from <repo>@<ref>`,
|
|
8
|
+
* `chant init --from <dir>` or `chant init --template <name>` has one
|
|
9
|
+
* scope, `"."`;
|
|
9
10
|
* - each `chant vendor` target is a scope of kind `vendor` (copied, no
|
|
10
11
|
* parameters), which replaces its entry in `vendor.json` (ws-038).
|
|
11
12
|
*
|
|
@@ -44,6 +45,10 @@ declare const SourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
45
|
repo: z.ZodString;
|
|
45
46
|
url: z.ZodString;
|
|
46
47
|
path: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"dir">;
|
|
50
|
+
path: z.ZodString;
|
|
51
|
+
member: z.ZodOptional<z.ZodString>;
|
|
47
52
|
}, z.core.$strict>, z.ZodObject<{
|
|
48
53
|
type: z.ZodLiteral<"lexicon">;
|
|
49
54
|
lexicon: z.ZodString;
|
|
@@ -90,6 +95,10 @@ declare const LineageSchema: z.ZodObject<{
|
|
|
90
95
|
repo: z.ZodString;
|
|
91
96
|
url: z.ZodString;
|
|
92
97
|
path: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
99
|
+
type: z.ZodLiteral<"dir">;
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
member: z.ZodOptional<z.ZodString>;
|
|
93
102
|
}, z.core.$strict>, z.ZodObject<{
|
|
94
103
|
type: z.ZodLiteral<"lexicon">;
|
|
95
104
|
lexicon: z.ZodString;
|
|
@@ -112,6 +121,10 @@ declare const LineageSchema: z.ZodObject<{
|
|
|
112
121
|
chant: z.ZodOptional<z.ZodString>;
|
|
113
122
|
}, z.core.$strict>>;
|
|
114
123
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
124
|
+
repinned: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
record: z.ZodString;
|
|
126
|
+
paths: z.ZodArray<z.ZodString>;
|
|
127
|
+
}, z.core.$strict>>>;
|
|
115
128
|
migrations: z.ZodArray<z.ZodString>;
|
|
116
129
|
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
117
130
|
class: z.ZodEnum<{
|
|
@@ -148,6 +161,10 @@ declare const LockSchema: z.ZodObject<{
|
|
|
148
161
|
repo: z.ZodString;
|
|
149
162
|
url: z.ZodString;
|
|
150
163
|
path: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
165
|
+
type: z.ZodLiteral<"dir">;
|
|
166
|
+
path: z.ZodString;
|
|
167
|
+
member: z.ZodOptional<z.ZodString>;
|
|
151
168
|
}, z.core.$strict>, z.ZodObject<{
|
|
152
169
|
type: z.ZodLiteral<"lexicon">;
|
|
153
170
|
lexicon: z.ZodString;
|
|
@@ -170,6 +187,10 @@ declare const LockSchema: z.ZodObject<{
|
|
|
170
187
|
chant: z.ZodOptional<z.ZodString>;
|
|
171
188
|
}, z.core.$strict>>;
|
|
172
189
|
parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
190
|
+
repinned: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
|
+
record: z.ZodString;
|
|
192
|
+
paths: z.ZodArray<z.ZodString>;
|
|
193
|
+
}, z.core.$strict>>>;
|
|
173
194
|
migrations: z.ZodArray<z.ZodString>;
|
|
174
195
|
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
175
196
|
class: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-lock.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-lock.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lineage-lock.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-lock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvF,yEAAyE;AACzE,eAAO,MAAM,SAAS,+BAA+B,CAAC;AAEtD,4EAA4E;AAC5E,eAAO,MAAM,YAAY,IAAI,CAAC;AAM9B;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,yCAA0C,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAYtD,iDAA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KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,GAAG,IAAI,CAoBjH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `chant workspace upgrade [<scope>] [--to <ref>] [--allow-code] [--dry-run]
|
|
2
|
+
* `chant workspace upgrade [<scope>] [--to <ref|dir>] [--allow-code] [--dry-run]
|
|
3
3
|
* [--output <file>] [--json]` (#2550).
|
|
4
4
|
*
|
|
5
5
|
* Stages the upgrade in a worktree (see ./lineage-upgrade.ts), then decides
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* 1. Fetch the target version of the template. For a git source that is one
|
|
10
10
|
* `git fetch` of the target ref, plus the commit the scope was made from.
|
|
11
11
|
* This is the command's only network step, catalogued in
|
|
12
|
-
* `test/egress-catalogue.ts`. A local repository reaches nothing
|
|
12
|
+
* `test/egress-catalogue.ts`. A local repository reaches nothing, and
|
|
13
|
+
* neither does a directory source (#2647), which reads `--to <dir>`.
|
|
13
14
|
* 2. Rebuild the merge base offline: each recorded file's content at the base
|
|
14
15
|
* commit, kept only when it has the hash the lock recorded. A file the
|
|
15
16
|
* project never edited is its own merge base. Vendor sources keep no
|
|
@@ -63,7 +64,12 @@ export interface UpgradeOptions {
|
|
|
63
64
|
root: string;
|
|
64
65
|
/** The scope to upgrade: `"."` or a vendor scope's directory. */
|
|
65
66
|
scope?: string;
|
|
66
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* The target ref (git) or label (vendor). Defaults to the ref the scope is
|
|
69
|
+
* pinned at. For a directory source, the directory holding the new version,
|
|
70
|
+
* as `<dir>[#<member>]`, resolved from the current directory; the member
|
|
71
|
+
* defaults to the recorded one.
|
|
72
|
+
*/
|
|
67
73
|
to?: string;
|
|
68
74
|
/** Run migrations whose body is code. */
|
|
69
75
|
allowCode?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineage-upgrade.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-upgrade.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"lineage-upgrade.d.ts","sourceRoot":"","sources":["../../src/workspace/lineage-upgrade.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAOH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,EAEL,SAAS,EAOT,KAAK,OAAO,EAGZ,KAAK,UAAU,EAChB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIpE,gGAAgG;AAChG,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,kEAAkE;AAClE,eAAO,MAAM,WAAW,mBAAmB,CAAC;AAE5C,qBAAa,YAAa,SAAQ,SAAS;IAChC,IAAI,SAAkB;CAChC;AAID,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,iBAAiB,CAAC;IAC3C,MAAM,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IACxC,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yDAAyD;AACzD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAEpH;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,WAarB,CAAC;AAIL,MAAM,WAAW,cAAc;IAC7B,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,yCAAyC;IACzC,SAAS,CAAC,EAAE,OA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,QAAQ,EAAE,OAAO,CAAC;IAClB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,OAAO,IAAI,IAAI,CAAC;CACjB;AAqOD,mGAAmG;AACnG,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAyDD;;;;;GAKG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CA0LlF;AAyBD,2EAA2E;AAC3E,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,CAa9D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBlG;AAED,sEAAsE;AACtE,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,EAAE,CAqB9D"}
|
|
@@ -49,6 +49,10 @@ export declare const REASONS: {
|
|
|
49
49
|
readonly "record-id-duplicate": "Another record earlier in path order has the same id.";
|
|
50
50
|
readonly "record-supersedes-unknown": "A supersedes link names an id no record has.";
|
|
51
51
|
readonly "record-supersedes-conflict": "A second closed record supersedes a record another one already superseded.";
|
|
52
|
+
readonly "asset-drift": "A file the record pins by hash has changed: its bytes no longer hash to the pinned sha256.";
|
|
53
|
+
readonly "asset-missing": "A file the record pins by hash does not exist in the tree read.";
|
|
54
|
+
readonly "asset-stale": "A file the record pins is unchanged at the hash a record it supersedes pinned: the decision changed and the artifact did not follow.";
|
|
55
|
+
readonly "record-supersedes-pending": "A supersedes link from a record whose state is weaker than the record it names, so the link has no effect yet.";
|
|
52
56
|
readonly "kind-unreadable": "The record kind file is missing or could not be imported.";
|
|
53
57
|
readonly "kind-invalid": "The record kind file exports no recordKind, or its shape is wrong.";
|
|
54
58
|
readonly "schema-unreadable": "The schema file the record kind names is missing or is not JSON.";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDV,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"}
|