@dialecte/cli 0.8.2 → 0.9.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.
@@ -6,6 +6,7 @@
6
6
  "required": ["schema"],
7
7
  "$defs": {
8
8
  "editor": { "type": "string" },
9
+ "host": { "type": "string", "$comment": "a known host vendor name, checked by the cli" },
9
10
  "load": {
10
11
  "type": "object",
11
12
  "properties": { "budget": { "type": "integer", "minimum": 1 } },
@@ -16,6 +17,7 @@
16
17
  "type": "object",
17
18
  "properties": {
18
19
  "editor": { "$ref": "#/$defs/editor" },
20
+ "host": { "$ref": "#/$defs/host" },
19
21
  "load": { "$ref": "#/$defs/load" },
20
22
  "personProcesses": { "$ref": "#/$defs/words" },
21
23
  "forbiddenWords": { "$ref": "#/$defs/words" },
@@ -27,6 +29,7 @@
27
29
  "properties": {
28
30
  "schema": { "const": 1 },
29
31
  "editor": { "$ref": "#/$defs/editor" },
32
+ "host": { "$ref": "#/$defs/host" },
30
33
  "load": { "$ref": "#/$defs/load" },
31
34
  "personProcesses": { "$ref": "#/$defs/words" },
32
35
  "forbiddenWords": { "$ref": "#/$defs/words" },
@@ -17,9 +17,31 @@
17
17
  },
18
18
  "noForbiddenWordsList": { "type": "string" },
19
19
  "queryInLoopNotRun": { "type": "string" },
20
+ "releasedChangelogNotJudged": { "type": "string" },
20
21
  "dialecteChanges": { "type": "array", "items": { "$ref": "#/$defs/dialecteChange" } },
21
22
  "notJudged": { "type": "integer", "minimum": 1 },
22
- "baseLine": { "type": "string" }
23
+ "baseLine": { "type": "string" },
24
+ "qualityLine": { "type": "string" },
25
+ "quality": {
26
+ "type": "object",
27
+ "required": ["base", "examined", "duplicates", "sharedExports", "publicApi", "docs"],
28
+ "properties": {
29
+ "base": {
30
+ "type": "object",
31
+ "required": ["commit", "source"],
32
+ "properties": {
33
+ "commit": { "type": "string" },
34
+ "source": { "enum": ["lot", "base-branch", "flag"] }
35
+ }
36
+ },
37
+ "examined": { "type": "array", "items": { "type": "string" } },
38
+ "duplicates": { "type": "array", "items": { "type": "object" } },
39
+ "sharedExports": { "type": "array", "items": { "type": "object" } },
40
+ "publicApi": { "type": "object", "required": ["kind"] },
41
+ "docs": { "type": "array", "items": { "type": "object" } },
42
+ "aliasesChanged": { "type": "boolean" }
43
+ }
44
+ }
23
45
  },
24
46
  "$defs": {
25
47
  "finding": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialecte/cli",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Dialecte CLI",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,7 +39,9 @@
39
39
  "prepublishOnly": "node src/release-check.ts && npm run build",
40
40
  "prepare": "husky",
41
41
  "doc:generate": "node src/lib/command-map/command-reference-main.ts",
42
- "doc:check": "node src/lib/command-map/command-reference-main.ts --check"
42
+ "doc:check": "node src/lib/command-map/command-reference-main.ts --check",
43
+ "host:refresh": "node src/lib/host/refresh-host-contract-main.ts",
44
+ "host:drift": "node src/lib/host/refresh-host-contract-main.ts --drift"
43
45
  },
44
46
  "dependencies": {
45
47
  "jsonc-parser": "3.3.1",
@@ -138,6 +140,7 @@
138
140
  "risk": {
139
141
  "high": [
140
142
  "src/lib/store/**",
143
+ "src/lib/host/**",
141
144
  "src/lib/events/**",
142
145
  "src/lib/cleanup/**",
143
146
  "src/lib/review-rounds/**",
@@ -147,6 +150,8 @@
147
150
  "src/lib/worktree/prune-worktrees.ts",
148
151
  "src/lib/handover/commit-lots.ts",
149
152
  "src/lib/handover/run-handover-folder.ts",
153
+ "src/lib/handover/archived-declarations.ts",
154
+ "src/lib/worktree/lot-files.ts",
150
155
  "src/lib/handover/close-handovers.ts",
151
156
  "src/lib/handover/abandon-handover.ts",
152
157
  "src/lib/handover/handover-store.ts",
@@ -12,6 +12,9 @@ jobs:
12
12
  steps:
13
13
  - name: Checkout
14
14
  uses: actions/checkout@v6
15
+ # the merge commit and its parents: the released changelog check reads the base the change goes onto
16
+ with:
17
+ fetch-depth: 2
15
18
 
16
19
  - name: Setup Node.js
17
20
  uses: actions/setup-node@v6
@@ -30,6 +33,34 @@ jobs:
30
33
  - name: Check the package (its check script)
31
34
  run: npm run check
32
35
 
36
+ # a released CHANGELOG section stays as released: judged against the commit the change goes onto - the queue's
37
+ # base (fetched), else the pull request merge ref's first parent; a dispatched run has no change to judge
38
+ - name: Fetch the base the change goes onto
39
+ if: github.event_name == 'merge_group'
40
+ env:
41
+ BASE: ${{ github.event.merge_group.base_sha }}
42
+ run: git fetch --depth=1 origin "$BASE"
43
+
44
+ - name: Released changelog sections stay as released
45
+ if: github.event_name != 'workflow_dispatch'
46
+ env:
47
+ BASE: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || 'HEAD^1' }}
48
+ run: __dialecte_cli__ changelog check --base "$BASE"
49
+
50
+ # the code rules the commit hook runs, here where --no-verify cannot skip them: over the change, against the same
51
+ # base
52
+ - name: Code rules over the change
53
+ if: github.event_name != 'workflow_dispatch'
54
+ env:
55
+ BASE: ${{ github.event_name == 'merge_group' && github.event.merge_group.base_sha || 'HEAD^1' }}
56
+ run: __dialecte_cli__ rules --base "$BASE"
57
+ #{{if skillsCheck}}
58
+
59
+ # the package's skill pages in step with its code (its skills:check script), where --no-verify cannot skip it
60
+ - name: Skill pages in step with the package (its skills:check script)
61
+ run: npm run skills:check
62
+ #{{end}}
63
+
33
64
  # the CI files in step with the template of the cli this package runs (dialecte ci sync writes them)
34
65
  - name: CI files in step with the cli template
35
66
  run: __dialecte_cli__ ci check