@intentius/chant 0.85.0 → 0.87.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/cli/registry.d.ts +13 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +13 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/workspace/__fixtures__/sessions.d.ts +23 -0
- package/dist/workspace/__fixtures__/sessions.d.ts.map +1 -0
- package/dist/workspace/checks/records.d.ts +1 -0
- package/dist/workspace/checks/records.d.ts.map +1 -1
- package/dist/workspace/checks.d.ts +4 -0
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +14 -1
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/conformance/index.d.ts +211 -0
- package/dist/workspace/conformance/index.d.ts.map +1 -0
- package/dist/workspace/conformance/vitest.d.ts +11 -0
- package/dist/workspace/conformance/vitest.d.ts.map +1 -0
- package/dist/workspace/declaration.d.ts +28 -0
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.schema.json +40 -0
- package/dist/workspace/declared-kinds.d.ts +43 -0
- package/dist/workspace/declared-kinds.d.ts.map +1 -0
- package/dist/workspace/graph-cli.d.ts +11 -0
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/intent-cli.d.ts +2 -1
- package/dist/workspace/intent-cli.d.ts.map +1 -1
- package/dist/workspace/intent-joins.d.ts +45 -8
- package/dist/workspace/intent-joins.d.ts.map +1 -1
- package/dist/workspace/intent.d.ts +71 -7
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/ls.d.ts +31 -1
- package/dist/workspace/ls.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +47 -4
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/record-sessions.d.ts +51 -0
- package/dist/workspace/record-sessions.d.ts.map +1 -0
- package/dist/workspace/record-source.d.ts +2 -0
- package/dist/workspace/record-source.d.ts.map +1 -1
- package/dist/workspace/records-cli.d.ts +71 -4
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-since.d.ts +90 -0
- package/dist/workspace/records-since.d.ts.map +1 -0
- package/dist/workspace/records-write.d.ts +171 -0
- package/dist/workspace/records-write.d.ts.map +1 -0
- package/dist/workspace/records.d.ts +244 -15
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/runtimes.d.ts +60 -0
- package/dist/workspace/runtimes.d.ts.map +1 -0
- package/dist/workspace/status-gates.d.ts +90 -0
- package/dist/workspace/status-gates.d.ts.map +1 -0
- package/dist/workspace/status.d.ts +17 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/trust/seal.d.ts +85 -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 +56 -0
- package/dist/workspace/work.d.ts.map +1 -0
- package/package.json +19 -1
- package/src/cli/main.ts +55 -3
- package/src/cli/registry.ts +13 -1
- package/src/lifecycle/gate-ledger.ts +14 -0
- package/src/workspace/__fixtures__/sessions.ts +66 -0
- package/src/workspace/checks/records.ts +19 -0
- package/src/workspace/checks.test.ts +2 -0
- package/src/workspace/checks.ts +7 -1
- package/src/workspace/composites.schema.json +65 -3
- package/src/workspace/composites.test.ts +95 -5
- package/src/workspace/composites.ts +28 -7
- package/src/workspace/conformance/__fixture__/app/package.json +7 -0
- package/src/workspace/conformance/__fixture__/app/src/server.mjs +29 -0
- package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +32 -0
- package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +376 -0
- package/src/workspace/conformance/__fixture__/decisions/fix-001-how-the-app-is-deployed.md +40 -0
- package/src/workspace/conformance/__fixture__/delivery/chant.config.ts +7 -0
- package/src/workspace/conformance/__fixture__/delivery/lexicon/index.ts +26 -0
- package/src/workspace/conformance/__fixture__/delivery/package.json +7 -0
- package/src/workspace/conformance/__fixture__/delivery/src/app.component.ts +14 -0
- package/src/workspace/conformance/__fixture__/delivery/src/app.ts +4 -0
- package/src/workspace/conformance/conformance.test.ts +149 -0
- package/src/workspace/conformance/index.mjs +31 -0
- package/src/workspace/conformance/index.ts +453 -0
- package/src/workspace/conformance/vitest.ts +62 -0
- package/src/workspace/declaration.schema.json +40 -0
- package/src/workspace/declaration.ts +62 -0
- package/src/workspace/declared-kinds.test.ts +321 -0
- package/src/workspace/declared-kinds.ts +76 -0
- package/src/workspace/graph-cli.ts +8 -0
- package/src/workspace/intent-cli.ts +29 -6
- package/src/workspace/intent-gaps.test.ts +217 -0
- package/src/workspace/intent-joins.test.ts +60 -0
- package/src/workspace/intent-joins.ts +71 -19
- package/src/workspace/intent.schema.json +304 -7
- package/src/workspace/intent.test.ts +99 -0
- package/src/workspace/intent.ts +365 -46
- package/src/workspace/ls.schema.json +34 -0
- package/src/workspace/ls.ts +69 -4
- package/src/workspace/read-contract.test.ts +30 -9
- package/src/workspace/reason-codes.test.ts +16 -4
- package/src/workspace/reason-codes.ts +55 -4
- package/src/workspace/record-assets.test.ts +3 -1
- package/src/workspace/record-sessions.ts +105 -0
- package/src/workspace/record-source.ts +14 -5
- package/src/workspace/records-amend.schema.json +167 -0
- package/src/workspace/records-cli.ts +308 -19
- package/src/workspace/records-contract.test.ts +57 -2
- package/src/workspace/records-formats.test.ts +640 -0
- package/src/workspace/records-new.schema.json +158 -0
- package/src/workspace/records-quorum.test.ts +196 -0
- package/src/workspace/records-review.schema.json +227 -0
- package/src/workspace/records-sessions.test.ts +108 -0
- package/src/workspace/records-since.schema.json +193 -0
- package/src/workspace/records-since.test.ts +174 -0
- package/src/workspace/records-since.ts +259 -0
- package/src/workspace/records-write-contract.test.ts +125 -0
- package/src/workspace/records-write.test.ts +373 -0
- package/src/workspace/records-write.ts +765 -0
- package/src/workspace/records.schema.json +202 -9
- package/src/workspace/records.ts +700 -41
- package/src/workspace/runtimes.ts +107 -0
- package/src/workspace/status-contract.test.ts +163 -0
- package/src/workspace/status-gates.ts +215 -0
- package/src/workspace/status.schema.json +69 -3
- package/src/workspace/status.ts +35 -2
- package/src/workspace/trust/seal.test.ts +232 -0
- package/src/workspace/trust/seal.ts +195 -0
- package/src/workspace/trust/ssh-commit.ts +2 -2
- package/src/workspace/work.test.ts +390 -0
- package/src/workspace/work.ts +163 -0
|
@@ -44,6 +44,18 @@
|
|
|
44
44
|
"$ref": "#/$defs/pin"
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
+
"quorum": {
|
|
48
|
+
"type": "integer",
|
|
49
|
+
"minimum": 0,
|
|
50
|
+
"description": "How many agree verdicts besides the decider's a record needs, for every record kind with a reviews list (#2671). chant workspace records reports each record's quorum against it. Two when absent. Added in schema 1 by chant 0.86.0, so a declaration that sets it sets minReader to 0.86.0 or newer. A per-kind quorum comes later (#2650 C14)."
|
|
51
|
+
},
|
|
52
|
+
"records": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"description": "The workspace's own record kinds, each a kind file relative to the workspace root (#2680): the kinds whose records belong to no one member, such as a decisions directory at the root. A member names its own in its records. chant workspace ls lists them, and chant workspace records and graph --intent read every declared kind when --kind is not given. Added in schema 1 by chant 0.86.0, so a declaration that uses it sets minReader to 0.86.0 or newer.",
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/recordKind"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
47
59
|
"checks": {
|
|
48
60
|
"type": "object",
|
|
49
61
|
"description": "Severity for the declaration checks that allow it, keyed by WSP id (#2535, ws-028): error, warning, info or off. chant workspace check refuses an id it does not know, and one whose severity is fixed.",
|
|
@@ -250,6 +262,13 @@
|
|
|
250
262
|
"$ref": "#/$defs/link"
|
|
251
263
|
}
|
|
252
264
|
},
|
|
265
|
+
"records": {
|
|
266
|
+
"type": "array",
|
|
267
|
+
"description": "The record kinds this member holds, each a kind file relative to the member's directory (#2680). chant workspace ls lists them, and chant workspace records and graph --intent read every declared kind when --kind is not given. Added in schema 1 by chant 0.86.0, so a declaration that uses it sets minReader to 0.86.0 or newer.",
|
|
268
|
+
"items": {
|
|
269
|
+
"$ref": "#/$defs/recordKind"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
253
272
|
"upstream": {
|
|
254
273
|
"type": "string",
|
|
255
274
|
"minLength": 1,
|
|
@@ -335,6 +354,27 @@
|
|
|
335
354
|
"description": "A file or directory path with / separators: no leading /, no . or .. segments and no trailing /.",
|
|
336
355
|
"pattern": "^(?!\\.\\.?(/|$))[^/\\\\]+(/(?!\\.\\.?(/|$))[^/\\\\]+)*$"
|
|
337
356
|
},
|
|
357
|
+
"recordKind": {
|
|
358
|
+
"type": "object",
|
|
359
|
+
"description": "A record kind the workspace declares (#2680): a kind file that exports recordKind. chant workspace check fails (WSP115) when the file is missing or does not load as a record kind.",
|
|
360
|
+
"required": [
|
|
361
|
+
"kind"
|
|
362
|
+
],
|
|
363
|
+
"properties": {
|
|
364
|
+
"kind": {
|
|
365
|
+
"$ref": "#/$defs/path",
|
|
366
|
+
"description": "The kind file, relative to the member's directory, or to the workspace root for the workspace's own records. A path is listed once across the declaration."
|
|
367
|
+
},
|
|
368
|
+
"name": {
|
|
369
|
+
"$ref": "#/$defs/kindName",
|
|
370
|
+
"description": "The name readers show for the kind. Without it, the kind file's own recordKind.name. Unique across the declaration."
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"patternProperties": {
|
|
374
|
+
"^x-": true
|
|
375
|
+
},
|
|
376
|
+
"additionalProperties": false
|
|
377
|
+
},
|
|
338
378
|
"generatedFile": {
|
|
339
379
|
"type": "object",
|
|
340
380
|
"description": "One generated file of a member (#2524 D14, #2541).",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The record kinds a declaration names, loaded (#2680).
|
|
3
|
+
*
|
|
4
|
+
* `chant.workspace.json` may name the workspace's record kinds, in the
|
|
5
|
+
* top-level `records` and in each member's `records`, so a reader never has to
|
|
6
|
+
* guess which kind files exist. `chant workspace ls` lists them, `check` fails
|
|
7
|
+
* on one that doesn't load (WSP115), and `records` and `graph --intent` read
|
|
8
|
+
* every one of them when `--kind` is not given.
|
|
9
|
+
*
|
|
10
|
+
* A kind file is looked for in the tree read, which is the revision under
|
|
11
|
+
* `--at`, and loaded from the working tree, as `records --kind` loads one.
|
|
12
|
+
* Loading imports the file, so it runs only where a command already runs a
|
|
13
|
+
* kind file.
|
|
14
|
+
*/
|
|
15
|
+
import { type Declaration, type RecordKindDeclaration } from "./declaration.js";
|
|
16
|
+
import type { WorkspaceTree } from "./tree.js";
|
|
17
|
+
/** Why a declared kind can't be loaded: the codes `loadRecordKind` fails with. Closed, like every list of codes. */
|
|
18
|
+
export declare const DECLARED_KIND_REASON_CODES: readonly ["kind-unreadable", "kind-invalid", "schema-unreadable", "schema-id-mismatch"];
|
|
19
|
+
export type DeclaredKindReasonCode = (typeof DECLARED_KIND_REASON_CODES)[number];
|
|
20
|
+
export interface DeclaredKind {
|
|
21
|
+
declared: RecordKindDeclaration;
|
|
22
|
+
/** The kind file on disk, absolute. */
|
|
23
|
+
file: string;
|
|
24
|
+
/** The kind file's `recordKind.name`, or null when it wasn't loaded. */
|
|
25
|
+
kind: string | null;
|
|
26
|
+
/** Why it can't be loaded, or null. */
|
|
27
|
+
reason: {
|
|
28
|
+
code: DeclaredKindReasonCode;
|
|
29
|
+
message: string;
|
|
30
|
+
} | null;
|
|
31
|
+
}
|
|
32
|
+
/** The kind file of `declared` on disk, under the workspace root `rootOnDisk`. */
|
|
33
|
+
export declare function declaredKindFile(declared: RecordKindDeclaration, rootOnDisk: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Every kind the declaration names, in {@link declaredRecordKinds} order, each
|
|
36
|
+
* with its name or the reason it can't be loaded. A kind file missing from
|
|
37
|
+
* `tree` is `kind-unreadable` without a load. With `load: false`, nothing is
|
|
38
|
+
* imported and only that is checked.
|
|
39
|
+
*/
|
|
40
|
+
export declare function loadDeclaredKinds(declaration: Declaration, tree: WorkspaceTree, rootOnDisk: string, options?: {
|
|
41
|
+
load?: boolean;
|
|
42
|
+
}): Promise<DeclaredKind[]>;
|
|
43
|
+
//# sourceMappingURL=declared-kinds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declared-kinds.d.ts","sourceRoot":"","sources":["../../src/workspace/declared-kinds.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAElG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,oHAAoH;AACpH,eAAO,MAAM,0BAA0B,yFAA0H,CAAC;AAClK,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,qBAAqB,CAAC;IAChC,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,uCAAuC;IACvC,MAAM,EAAE;QAAE,IAAI,EAAE,sBAAsB,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAClE;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAE5F;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAO,GAC/B,OAAO,CAAC,YAAY,EAAE,CAAC,CAyBzB"}
|
|
@@ -72,6 +72,17 @@ export interface GraphQuery {
|
|
|
72
72
|
* in {@link GraphResult.components}. The document is unchanged.
|
|
73
73
|
*/
|
|
74
74
|
components?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Called once the members have run, with the directory they were read from
|
|
77
|
+
* (the exported tree for `--at`, before it is removed) and the declared
|
|
78
|
+
* members the read covers. `--composites` reads each member's runtimes
|
|
79
|
+
* here (#2674).
|
|
80
|
+
*/
|
|
81
|
+
inTree?: (root: string, members: readonly {
|
|
82
|
+
name: string;
|
|
83
|
+
dir: string;
|
|
84
|
+
kind: string;
|
|
85
|
+
}[]) => Promise<void>;
|
|
75
86
|
}
|
|
76
87
|
export interface GraphResult {
|
|
77
88
|
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,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,EAAE,KAAK,UAAU,EAAE,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;AAKvD,UAAU,IAAI;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MA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AAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3G;AAED,MAAM,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;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,CA8C5E;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkD5E"}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* section B: the region, its decisions, their artifacts, the commits, and the
|
|
6
6
|
* findings. Under each decision come the commits made inside its window, and
|
|
7
7
|
* when any of them is not the decision's own work, the question #2650 B puts
|
|
8
|
-
* to the person about it (#2656).
|
|
8
|
+
* to the person about it (#2656). Without `--kind`, the walk reads every
|
|
9
|
+
* record kind the declaration names (#2680).
|
|
9
10
|
*/
|
|
10
11
|
import type { CommandContext } from "../cli/registry.js";
|
|
11
12
|
import { type IntentDocument } from "./intent.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-cli.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"intent-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAsE,KAAK,cAAc,EAAmD,MAAM,UAAU,CAAC;AAIpK,KAAK,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAY1D,gIAAgI;AAChI,eAAO,MAAM,kBAAkB,0FAA0F,CAAC;AAgE1H,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CA2BhD;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgB1F"}
|
|
@@ -9,11 +9,16 @@
|
|
|
9
9
|
*
|
|
10
10
|
* - A function `commitJoins(commit, context)` that returns the unit, contract
|
|
11
11
|
* and evidence for one commit, or nothing. It is given the commit's sha,
|
|
12
|
-
* subject, body, author, date and trailers, and a `read`
|
|
13
|
-
*
|
|
12
|
+
* subject, body, author, date and trailers, and a context whose `read(path)`
|
|
13
|
+
* returns a file and whose `list(dir)` lists a directory, both in the tree
|
|
14
|
+
* read (#2663). With `list` a plugin can find the record that names a
|
|
15
|
+
* commit, such as a unit record whose `result.commit` is the commit's sha,
|
|
16
|
+
* so the commit needs no trailer at all.
|
|
14
17
|
* - Data, which core interprets with no plugin code: the trailer keys that
|
|
15
18
|
* name a unit, a contract or evidence, the record paths to read for each
|
|
16
|
-
* (`units/{id}.json`), and the trailer keys that claim authorship.
|
|
19
|
+
* (`units/{id}.json`), and the trailer keys that claim authorship. Every
|
|
20
|
+
* value of the evidence trailer is read; a unit or contract trailer gives
|
|
21
|
+
* its first value, since a commit has one unit and one contract.
|
|
17
22
|
*
|
|
18
23
|
* Either way core never parses a plugin's own trailer or record format: it
|
|
19
24
|
* reads the trailers git reports and hands them over, and a key means
|
|
@@ -27,6 +32,14 @@
|
|
|
27
32
|
* about, which the graph carries as finding nodes. That is how a plugin says
|
|
28
33
|
* what it knows and core does not, such as a contract whose criteria changed
|
|
29
34
|
* in a commit that names no decision.
|
|
35
|
+
*
|
|
36
|
+
* `<name>` is the kind's name by default: its record kind's name, or the
|
|
37
|
+
* file's name without `.kind.mjs`. A kind file may name its findings itself
|
|
38
|
+
* with a sibling export, `commitJoinsName` (#2663), so joins that live beside
|
|
39
|
+
* a record kind called `decision` can still report `plugin:chud:<code>`. It is
|
|
40
|
+
* a sibling export rather than a property because the data form is a closed
|
|
41
|
+
* object whose keys are all joins, and a function's `name` property is
|
|
42
|
+
* already its own name.
|
|
30
43
|
*/
|
|
31
44
|
import { z } from "zod";
|
|
32
45
|
/** A commit as the hook sees it. */
|
|
@@ -46,6 +59,18 @@ export interface IntentCommit {
|
|
|
46
59
|
export interface CommitJoinContext {
|
|
47
60
|
/** The text of a file from the workspace root, in the tree read; undefined when it is not a file there. */
|
|
48
61
|
read(path: string): string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* The entries directly inside directory `dir`, in the same tree as `read`
|
|
64
|
+
* (#2663): paths from the workspace root, sorted, a directory's with a
|
|
65
|
+
* trailing `/`. `""` or `"."` is the workspace root. Undefined when `dir` is
|
|
66
|
+
* not a directory there.
|
|
67
|
+
*
|
|
68
|
+
* The tree is the one the graph reads, the commit `--at` names or the
|
|
69
|
+
* working tree, and not each joined commit's own tree: a record that names
|
|
70
|
+
* a commit's sha was written after that commit, so it is only in a later
|
|
71
|
+
* tree.
|
|
72
|
+
*/
|
|
73
|
+
list(dir: string): string[] | undefined;
|
|
49
74
|
/** The full commit id read with `--at`, or null for the working tree. */
|
|
50
75
|
at: string | null;
|
|
51
76
|
}
|
|
@@ -60,7 +85,7 @@ export interface JoinedEntity {
|
|
|
60
85
|
}
|
|
61
86
|
/** A finding a plugin contributes for one commit (#2656). */
|
|
62
87
|
export interface PluginFinding {
|
|
63
|
-
/** `plugin:<name>:<code>`, where `<name>` is the kind's name. */
|
|
88
|
+
/** `plugin:<name>:<code>`, where `<name>` is the kind file's `commitJoinsName`, or else the kind's name. */
|
|
64
89
|
code: string;
|
|
65
90
|
message: string;
|
|
66
91
|
/** What the finding is about: node ids, commit shas, record ids, unit, contract or evidence ids, or paths. */
|
|
@@ -95,16 +120,27 @@ export declare const commitJoinsDataSchema: z.ZodObject<{
|
|
|
95
120
|
authorship: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
121
|
}, z.core.$strict>;
|
|
97
122
|
export type CommitJoinsData = z.infer<typeof commitJoinsDataSchema>;
|
|
98
|
-
/**
|
|
99
|
-
export
|
|
123
|
+
/**
|
|
124
|
+
* A kind file's `commitJoins` export, checked: a function, or data. `name` is
|
|
125
|
+
* its `commitJoinsName` export, when it has one: the namespace of its findings.
|
|
126
|
+
*/
|
|
127
|
+
export type CommitJoins = ({
|
|
100
128
|
form: "function";
|
|
101
129
|
join: CommitJoinsFunction;
|
|
102
130
|
} | {
|
|
103
131
|
form: "data";
|
|
104
132
|
data: CommitJoinsData;
|
|
133
|
+
}) & {
|
|
134
|
+
name?: string;
|
|
105
135
|
};
|
|
106
|
-
/**
|
|
136
|
+
/**
|
|
137
|
+
* Read a kind module's `commitJoins` export and its `commitJoinsName`.
|
|
138
|
+
* Undefined when it has no `commitJoins`; a string when either is malformed,
|
|
139
|
+
* or when it names findings it has no joins for.
|
|
140
|
+
*/
|
|
107
141
|
export declare function readCommitJoins(mod: Record<string, unknown>): CommitJoins | string | undefined;
|
|
142
|
+
/** Every value of trailer `key`, trimmed, without empty ones or repeats, compared without case as git does. */
|
|
143
|
+
export declare function trailerValues(trailers: Record<string, string[]>, key: string): string[];
|
|
108
144
|
/** The first value of trailer `key`, compared without case as git does. */
|
|
109
145
|
export declare function trailerValue(trailers: Record<string, string[]>, key: string): string | undefined;
|
|
110
146
|
/** Whether the commit carries trailer `key`. */
|
|
@@ -115,7 +151,8 @@ export declare function joinByData(data: CommitJoinsData, commit: IntentCommit,
|
|
|
115
151
|
export declare function entityDecisions(entity: JoinedEntity | undefined): string[];
|
|
116
152
|
/**
|
|
117
153
|
* Run a kind's joins for one commit, checking what a function returns.
|
|
118
|
-
* `name` is the
|
|
154
|
+
* `name` is the namespace its findings' codes must use: the kind file's
|
|
155
|
+
* `commitJoinsName`, or else the kind's name.
|
|
119
156
|
*/
|
|
120
157
|
export declare function runCommitJoins(joins: CommitJoins, commit: IntentCommit, context: CommitJoinContext, name: string): Promise<CommitJoin>;
|
|
121
158
|
//# sourceMappingURL=intent-joins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent-joins.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-joins.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"intent-joins.d.ts","sourceRoot":"","sources":["../../src/workspace/intent-joins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oCAAoC;AACpC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,iBAAiB;IAChC,2GAA2G;IAC3G,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;IACvC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GA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AAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAK1I;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAU9F;AAED,+GAA+G;AAC/G,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAWvF;AAED,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhG;AAED,gDAAgD;AAChD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAGnF;AAiBD,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAc9G;AAED,oHAAoH;AACpH,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,SAAS,GAAG,MAAM,EAAE,CAG1E;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAqC5I"}
|
|
@@ -26,20 +26,23 @@
|
|
|
26
26
|
* inside a decision's window is not taken as that decision's work: unless
|
|
27
27
|
* the decision's own unit made it, it is `decided-by-window`, shown for the
|
|
28
28
|
* person to judge (#2656). A plugin's `commitJoins` may add findings of its
|
|
29
|
-
* own, in its own code namespace.
|
|
29
|
+
* own, in its own code namespace. Without `kinds`, the walk reads every
|
|
30
|
+
* record kind the declaration names (#2680), and each one's `commitJoins`
|
|
31
|
+
* runs for every commit in that order. chant emits the
|
|
30
32
|
* graph and hud renders it (#2524 D8, D15). Git is read through a local
|
|
31
33
|
* `git` subprocess only: no fetch, no network.
|
|
32
34
|
*/
|
|
33
35
|
import { type LinkTableRow } from "./links.js";
|
|
34
36
|
import { type RecordView } from "./records-cli.js";
|
|
35
|
-
import type
|
|
37
|
+
import { type PluginCode } from "./reason-codes.js";
|
|
36
38
|
import { type ProvenanceLevel } from "./trust/attestor.js";
|
|
39
|
+
import { type WorkLink, type WorkWarningCode } from "./work.js";
|
|
37
40
|
/** The version of the `intent` document this chant writes. */
|
|
38
41
|
export declare const INTENT_CONTRACT_VERSION = 1;
|
|
39
42
|
/** `$id` of the JSON Schema for the document, shipped beside this file. */
|
|
40
43
|
export declare const INTENT_OUTPUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/intent/v1/intent.schema.json";
|
|
41
44
|
/** The finding codes. Closed: a reader may switch on them. */
|
|
42
|
-
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"];
|
|
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"];
|
|
43
46
|
export type IntentFindingCode = (typeof INTENT_FINDING_CODES)[number];
|
|
44
47
|
/** Why part of the walk could not be read. The read still succeeds. */
|
|
45
48
|
export declare const INTENT_REASON_CODES: readonly ["intent-history-shallow", "intent-plugin-failed"];
|
|
@@ -202,8 +205,65 @@ export interface FindingNode {
|
|
|
202
205
|
plugin?: string;
|
|
203
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. */
|
|
204
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
|
+
};
|
|
213
|
+
/** With a work kind read (#2683): whether a work item addresses the finding. */
|
|
214
|
+
addressed?: boolean;
|
|
215
|
+
/** With a work kind read: the work items addressing the finding, each with its state. */
|
|
216
|
+
addressedBy?: WorkLink[];
|
|
217
|
+
}
|
|
218
|
+
/** Where a work item says it came from: the gap the intent graph reported (#2683). */
|
|
219
|
+
export interface WorkGapSource {
|
|
220
|
+
finding: string;
|
|
221
|
+
region: string;
|
|
222
|
+
decision?: string;
|
|
223
|
+
artifact?: string;
|
|
224
|
+
}
|
|
225
|
+
export interface WorkNode {
|
|
226
|
+
id: string;
|
|
227
|
+
kind: "work";
|
|
228
|
+
recordKind: string;
|
|
229
|
+
record: string;
|
|
230
|
+
/** The record file, from the repository root. */
|
|
231
|
+
path: string;
|
|
232
|
+
title: string | null;
|
|
233
|
+
state: string | null;
|
|
234
|
+
/** Whether the kind counts the state as closed, such as done or dropped. */
|
|
235
|
+
closed: boolean;
|
|
236
|
+
valid: boolean;
|
|
237
|
+
reasons: RecordView["reasons"];
|
|
238
|
+
provenance: {
|
|
239
|
+
level: ProvenanceLevel;
|
|
240
|
+
commit: string | null;
|
|
241
|
+
reason: string;
|
|
242
|
+
};
|
|
243
|
+
owner: string | null;
|
|
244
|
+
/** As records reports it: open, and every need done. */
|
|
245
|
+
ready: boolean;
|
|
246
|
+
/** Each need that is not done, with its state. */
|
|
247
|
+
blockedBy: WorkLink[];
|
|
248
|
+
/** Each decision the item implements, with its state. */
|
|
249
|
+
implements: WorkLink[];
|
|
250
|
+
/** The ids the item's needs list names. */
|
|
251
|
+
needs: string[];
|
|
252
|
+
/** The gap the item came from, when its source names one. */
|
|
253
|
+
source: WorkGapSource | null;
|
|
254
|
+
supersededBy: string | null;
|
|
255
|
+
/** The constrains entries that cover the region, with their granularity. Empty for an item in the graph only through a link. */
|
|
256
|
+
constrains: {
|
|
257
|
+
entry: string;
|
|
258
|
+
granularity: Granularity;
|
|
259
|
+
}[];
|
|
260
|
+
/** The item's work warnings, as records reports them, and work-done-gap-open. */
|
|
261
|
+
warnings: {
|
|
262
|
+
code: WorkWarningCode;
|
|
263
|
+
message: string;
|
|
264
|
+
}[];
|
|
205
265
|
}
|
|
206
|
-
export type IntentNode = RegionNode | FileNode | MemberNode | CommitNode | JoinedNode | EvidenceEntryNode | DecisionNode | ArtifactNode | LinkNode | FindingNode;
|
|
266
|
+
export type IntentNode = RegionNode | FileNode | MemberNode | CommitNode | JoinedNode | EvidenceEntryNode | DecisionNode | WorkNode | ArtifactNode | LinkNode | FindingNode;
|
|
207
267
|
export type Granularity = "path" | "member" | "contract" | "issue";
|
|
208
268
|
export type IntentEdge = {
|
|
209
269
|
kind: "constrains";
|
|
@@ -226,9 +286,9 @@ export type IntentEdge = {
|
|
|
226
286
|
kind: "within";
|
|
227
287
|
from: string;
|
|
228
288
|
to: string;
|
|
229
|
-
state: "decided" | "decided-by-window";
|
|
289
|
+
state: "decided" | "decided-by-window" | "worked";
|
|
230
290
|
} | {
|
|
231
|
-
kind: "produced-by" | "serves" | "cites-evidence" | "supersedes" | "links";
|
|
291
|
+
kind: "produced-by" | "serves" | "cites-evidence" | "supersedes" | "links" | "implements" | "needs" | "addressed-by";
|
|
232
292
|
from: string;
|
|
233
293
|
to: string;
|
|
234
294
|
};
|
|
@@ -280,7 +340,11 @@ export interface IntentQuery {
|
|
|
280
340
|
/** `path`, `path:line` or `path:start-end`, or a graph node id `<member>/<id>`. */
|
|
281
341
|
region: string;
|
|
282
342
|
at?: string;
|
|
283
|
-
/**
|
|
343
|
+
/**
|
|
344
|
+
* Kind files: record kinds, plugins with `commitJoins`, or both. Relative to
|
|
345
|
+
* `cwd`. Left out, every record kind the declaration names, in its order
|
|
346
|
+
* (#2680); an empty list reads none.
|
|
347
|
+
*/
|
|
284
348
|
kinds?: string[];
|
|
285
349
|
/**
|
|
286
350
|
* Resolve a graph node id to its source location, for a region given as a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intent.d.ts","sourceRoot":"","sources":["../../src/workspace/intent.ts"],"names":[],"mappings":"AAAA
|
|
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,8dAmCS,CAAC;AAC3C,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,6DAKU,CAAC;AAC3C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,sHAAsH;AACtH,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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"}
|
package/dist/workspace/ls.d.ts
CHANGED
|
@@ -8,11 +8,17 @@
|
|
|
8
8
|
*
|
|
9
9
|
* The `--json` output is part of the read contract, versioned like
|
|
10
10
|
* `workspace records` and described by `ls.schema.json` beside this file.
|
|
11
|
+
*
|
|
12
|
+
* The record kinds the declaration names are listed too, the workspace's own
|
|
13
|
+
* and each member's, with each kind file's own name when it loads (#2680).
|
|
14
|
+
* Loading one imports it, so {@link listWorkspace} lists them unloaded and
|
|
15
|
+
* {@link listWorkspaceWithKinds}, which the command runs, loads them.
|
|
11
16
|
*/
|
|
12
17
|
import type { CommandContext } from "../cli/registry.js";
|
|
13
18
|
import { type Declaration, type ErrorLocation, type Member, type WorkspaceErrorCode } from "./declaration.js";
|
|
14
19
|
import { type KindRegistry } from "./kinds.js";
|
|
15
20
|
import type { WorkspaceTree } from "./tree.js";
|
|
21
|
+
import type { DeclaredKindReasonCode } from "./declared-kinds.js";
|
|
16
22
|
/** The version of the `ls` output this chant writes. */
|
|
17
23
|
export declare const LS_CONTRACT_VERSION = 1;
|
|
18
24
|
/** `$id` of the JSON Schema for the `--json` output, shipped beside this file. */
|
|
@@ -26,6 +32,20 @@ export type MemberReasonCode = (typeof MEMBER_REASON_CODES)[number];
|
|
|
26
32
|
/** Why a group lists nothing. */
|
|
27
33
|
export declare const GROUP_REASON_CODES: readonly ["no-matches"];
|
|
28
34
|
export type GroupReasonCode = (typeof GROUP_REASON_CODES)[number];
|
|
35
|
+
/** A record kind the declaration names (#2680). */
|
|
36
|
+
export interface LsRecordKind {
|
|
37
|
+
/** The name the declaration gives it, else the kind file's own, else null when the file wasn't loaded. */
|
|
38
|
+
name: string | null;
|
|
39
|
+
/** The kind file from the workspace root. */
|
|
40
|
+
path: string;
|
|
41
|
+
/** The kind file's `recordKind.name`, or null when it wasn't loaded. */
|
|
42
|
+
kind: string | null;
|
|
43
|
+
/** Why the kind file can't be loaded, or null. */
|
|
44
|
+
reason: {
|
|
45
|
+
code: DeclaredKindReasonCode;
|
|
46
|
+
message: string;
|
|
47
|
+
} | null;
|
|
48
|
+
}
|
|
29
49
|
export interface LsMember {
|
|
30
50
|
name: string;
|
|
31
51
|
dir: string;
|
|
@@ -41,6 +61,8 @@ export interface LsMember {
|
|
|
41
61
|
code: MemberReasonCode;
|
|
42
62
|
message: string;
|
|
43
63
|
} | null;
|
|
64
|
+
/** The record kinds the member declares, in file order (#2680). */
|
|
65
|
+
records: LsRecordKind[];
|
|
44
66
|
}
|
|
45
67
|
export interface LsGroup {
|
|
46
68
|
name: string;
|
|
@@ -66,6 +88,8 @@ export type LsDocument = {
|
|
|
66
88
|
schema: number;
|
|
67
89
|
minReader: string | null;
|
|
68
90
|
pins: Declaration["pins"];
|
|
91
|
+
/** The workspace's own record kinds, from the top-level `records` (#2680). */
|
|
92
|
+
records: LsRecordKind[];
|
|
69
93
|
};
|
|
70
94
|
members: LsMember[];
|
|
71
95
|
groups: LsGroup[];
|
|
@@ -93,7 +117,13 @@ export interface LsQuery {
|
|
|
93
117
|
}
|
|
94
118
|
/** A member's reason code, or null when its kind can read it. */
|
|
95
119
|
export declare function memberReason(member: Member, tree: WorkspaceTree, kinds: KindRegistry): LsMember["reason"];
|
|
96
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* Find the workspace, read it and build the document `--json` prints, with
|
|
122
|
+
* the declared record kinds unloaded: `kind` null and no reason. Never throws
|
|
123
|
+
* a {@link WorkspaceReadError}.
|
|
124
|
+
*/
|
|
97
125
|
export declare function listWorkspace(query: LsQuery): LsDocument;
|
|
126
|
+
/** {@link listWorkspace}, with each declared record kind loaded for its name, or the reason it can't be (#2680). */
|
|
127
|
+
export declare function listWorkspaceWithKinds(query: LsQuery): Promise<LsDocument>;
|
|
98
128
|
export declare function runWorkspaceLs(ctx: CommandContext): Promise<number>;
|
|
99
129
|
//# sourceMappingURL=ls.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../src/workspace/ls.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ls.d.ts","sourceRoot":"","sources":["../../src/workspace/ls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,kBAAkB,EACxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,wDAAwD;AACxD,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,kFAAkF;AAClF,eAAO,MAAM,mBAAmB,sEAAsE,CAAC;AAIvG;;;GAGG;AACH,eAAO,MAAM,mBAAmB,+DAOU,CAAC;AAC3C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,iCAAiC;AACjC,eAAO,MAAM,kBAAkB,yBAGW,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,CA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