@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.
Files changed (129) hide show
  1. package/dist/cli/main.d.ts.map +1 -1
  2. package/dist/cli/registry.d.ts +13 -1
  3. package/dist/cli/registry.d.ts.map +1 -1
  4. package/dist/lifecycle/gate-ledger.d.ts +13 -0
  5. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  6. package/dist/workspace/__fixtures__/sessions.d.ts +23 -0
  7. package/dist/workspace/__fixtures__/sessions.d.ts.map +1 -0
  8. package/dist/workspace/checks/records.d.ts +1 -0
  9. package/dist/workspace/checks/records.d.ts.map +1 -1
  10. package/dist/workspace/checks.d.ts +4 -0
  11. package/dist/workspace/checks.d.ts.map +1 -1
  12. package/dist/workspace/composites.d.ts +14 -1
  13. package/dist/workspace/composites.d.ts.map +1 -1
  14. package/dist/workspace/conformance/index.d.ts +211 -0
  15. package/dist/workspace/conformance/index.d.ts.map +1 -0
  16. package/dist/workspace/conformance/vitest.d.ts +11 -0
  17. package/dist/workspace/conformance/vitest.d.ts.map +1 -0
  18. package/dist/workspace/declaration.d.ts +28 -0
  19. package/dist/workspace/declaration.d.ts.map +1 -1
  20. package/dist/workspace/declaration.schema.json +40 -0
  21. package/dist/workspace/declared-kinds.d.ts +43 -0
  22. package/dist/workspace/declared-kinds.d.ts.map +1 -0
  23. package/dist/workspace/graph-cli.d.ts +11 -0
  24. package/dist/workspace/graph-cli.d.ts.map +1 -1
  25. package/dist/workspace/intent-cli.d.ts +2 -1
  26. package/dist/workspace/intent-cli.d.ts.map +1 -1
  27. package/dist/workspace/intent-joins.d.ts +45 -8
  28. package/dist/workspace/intent-joins.d.ts.map +1 -1
  29. package/dist/workspace/intent.d.ts +71 -7
  30. package/dist/workspace/intent.d.ts.map +1 -1
  31. package/dist/workspace/ls.d.ts +31 -1
  32. package/dist/workspace/ls.d.ts.map +1 -1
  33. package/dist/workspace/reason-codes.d.ts +47 -4
  34. package/dist/workspace/reason-codes.d.ts.map +1 -1
  35. package/dist/workspace/record-sessions.d.ts +51 -0
  36. package/dist/workspace/record-sessions.d.ts.map +1 -0
  37. package/dist/workspace/record-source.d.ts +2 -0
  38. package/dist/workspace/record-source.d.ts.map +1 -1
  39. package/dist/workspace/records-cli.d.ts +71 -4
  40. package/dist/workspace/records-cli.d.ts.map +1 -1
  41. package/dist/workspace/records-since.d.ts +90 -0
  42. package/dist/workspace/records-since.d.ts.map +1 -0
  43. package/dist/workspace/records-write.d.ts +171 -0
  44. package/dist/workspace/records-write.d.ts.map +1 -0
  45. package/dist/workspace/records.d.ts +244 -15
  46. package/dist/workspace/records.d.ts.map +1 -1
  47. package/dist/workspace/runtimes.d.ts +60 -0
  48. package/dist/workspace/runtimes.d.ts.map +1 -0
  49. package/dist/workspace/status-gates.d.ts +90 -0
  50. package/dist/workspace/status-gates.d.ts.map +1 -0
  51. package/dist/workspace/status.d.ts +17 -0
  52. package/dist/workspace/status.d.ts.map +1 -1
  53. package/dist/workspace/trust/seal.d.ts +85 -0
  54. package/dist/workspace/trust/seal.d.ts.map +1 -0
  55. package/dist/workspace/trust/ssh-commit.d.ts +7 -0
  56. package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
  57. package/dist/workspace/work.d.ts +56 -0
  58. package/dist/workspace/work.d.ts.map +1 -0
  59. package/package.json +19 -1
  60. package/src/cli/main.ts +55 -3
  61. package/src/cli/registry.ts +13 -1
  62. package/src/lifecycle/gate-ledger.ts +14 -0
  63. package/src/workspace/__fixtures__/sessions.ts +66 -0
  64. package/src/workspace/checks/records.ts +19 -0
  65. package/src/workspace/checks.test.ts +2 -0
  66. package/src/workspace/checks.ts +7 -1
  67. package/src/workspace/composites.schema.json +65 -3
  68. package/src/workspace/composites.test.ts +95 -5
  69. package/src/workspace/composites.ts +28 -7
  70. package/src/workspace/conformance/__fixture__/app/package.json +7 -0
  71. package/src/workspace/conformance/__fixture__/app/src/server.mjs +29 -0
  72. package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +32 -0
  73. package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +376 -0
  74. package/src/workspace/conformance/__fixture__/decisions/fix-001-how-the-app-is-deployed.md +40 -0
  75. package/src/workspace/conformance/__fixture__/delivery/chant.config.ts +7 -0
  76. package/src/workspace/conformance/__fixture__/delivery/lexicon/index.ts +26 -0
  77. package/src/workspace/conformance/__fixture__/delivery/package.json +7 -0
  78. package/src/workspace/conformance/__fixture__/delivery/src/app.component.ts +14 -0
  79. package/src/workspace/conformance/__fixture__/delivery/src/app.ts +4 -0
  80. package/src/workspace/conformance/conformance.test.ts +149 -0
  81. package/src/workspace/conformance/index.mjs +31 -0
  82. package/src/workspace/conformance/index.ts +453 -0
  83. package/src/workspace/conformance/vitest.ts +62 -0
  84. package/src/workspace/declaration.schema.json +40 -0
  85. package/src/workspace/declaration.ts +62 -0
  86. package/src/workspace/declared-kinds.test.ts +321 -0
  87. package/src/workspace/declared-kinds.ts +76 -0
  88. package/src/workspace/graph-cli.ts +8 -0
  89. package/src/workspace/intent-cli.ts +29 -6
  90. package/src/workspace/intent-gaps.test.ts +217 -0
  91. package/src/workspace/intent-joins.test.ts +60 -0
  92. package/src/workspace/intent-joins.ts +71 -19
  93. package/src/workspace/intent.schema.json +304 -7
  94. package/src/workspace/intent.test.ts +99 -0
  95. package/src/workspace/intent.ts +365 -46
  96. package/src/workspace/ls.schema.json +34 -0
  97. package/src/workspace/ls.ts +69 -4
  98. package/src/workspace/read-contract.test.ts +30 -9
  99. package/src/workspace/reason-codes.test.ts +16 -4
  100. package/src/workspace/reason-codes.ts +55 -4
  101. package/src/workspace/record-assets.test.ts +3 -1
  102. package/src/workspace/record-sessions.ts +105 -0
  103. package/src/workspace/record-source.ts +14 -5
  104. package/src/workspace/records-amend.schema.json +167 -0
  105. package/src/workspace/records-cli.ts +308 -19
  106. package/src/workspace/records-contract.test.ts +57 -2
  107. package/src/workspace/records-formats.test.ts +640 -0
  108. package/src/workspace/records-new.schema.json +158 -0
  109. package/src/workspace/records-quorum.test.ts +196 -0
  110. package/src/workspace/records-review.schema.json +227 -0
  111. package/src/workspace/records-sessions.test.ts +108 -0
  112. package/src/workspace/records-since.schema.json +193 -0
  113. package/src/workspace/records-since.test.ts +174 -0
  114. package/src/workspace/records-since.ts +259 -0
  115. package/src/workspace/records-write-contract.test.ts +125 -0
  116. package/src/workspace/records-write.test.ts +373 -0
  117. package/src/workspace/records-write.ts +765 -0
  118. package/src/workspace/records.schema.json +202 -9
  119. package/src/workspace/records.ts +700 -41
  120. package/src/workspace/runtimes.ts +107 -0
  121. package/src/workspace/status-contract.test.ts +163 -0
  122. package/src/workspace/status-gates.ts +215 -0
  123. package/src/workspace/status.schema.json +69 -3
  124. package/src/workspace/status.ts +35 -2
  125. package/src/workspace/trust/seal.test.ts +232 -0
  126. package/src/workspace/trust/seal.ts +195 -0
  127. package/src/workspace/trust/ssh-commit.ts +2 -2
  128. package/src/workspace/work.test.ts +390 -0
  129. 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/work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AM,EAAE,OAAO,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,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;;;;;;;;GAQG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAsE,KAAK,cAAc,EAAoC,MAAM,UAAU,CAAC;AAIrJ,KAAK,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAY1D,gIAAgI;AAChI,eAAO,MAAM,kBAAkB,0FAA0F,CAAC;AAgD1H,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAsBhD;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe1F"}
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` function for files
13
- * at the revision read.
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
- /** A kind file's `commitJoins` export, checked: a function, or data. */
99
- export type CommitJoins = {
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
- /** Read a kind module's `commitJoins` export. Undefined when it has none; a string when it is malformed. */
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 kind's name, the namespace its findings' codes must use.
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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,yEAAyE;IACzE,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,iEAAiE;IACjE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,EA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AA;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. chant emits the
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 { PluginCode } from "./reason-codes.js";
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
- /** Kind files: record kinds, plugins with `commitJoins`, or both. Relative to `cwd`. */
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AASH,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAIzE,8DAA8D;AAC9D,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC,2EAA2E;AAC3E,eAAO,MAAM,uBAAuB,8EAA8E,CAAC;AAInH,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB,oVAyBS,CA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Y;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"}
@@ -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
- /** Find the workspace, read it and build the document `--json` prints. Never throws a {@link WorkspaceReadError}. */
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;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;A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