arcane-cli 0.33.4 → 0.33.5

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.
@@ -21,14 +21,19 @@ Determine the correct semver bump and apply it.
21
21
 
22
22
  ## Step 1 — Check whether a bump is needed
23
23
 
24
- Run the version check gate:
24
+ Run the version check gate in **staged mode** (LH-06a) — this spell runs before the commit that
25
+ will actually contain the change, so the default `merge-base..HEAD` diff can't see it yet; staged
26
+ mode unions that diff with `git diff --cached --name-only` so today's not-yet-committed work is
27
+ checked too, not just history:
25
28
 
26
29
  ```
27
- npm run check:version-bump
30
+ npm run check:version-bump -- --staged
28
31
  ```
29
32
 
30
33
  - If it **passes** → no bump needed. Stop here and report "No version bump required."
31
34
  - If it **fails** → proceed to Step 2.
35
+ - If the changed content isn't staged yet (working-tree edits only), use `-- --working-tree`
36
+ instead, which additionally unions plain `git diff --name-only`.
32
37
 
33
38
  ## Step 2 — Determine semver type
34
39
 
@@ -42,6 +42,10 @@ Workflow:
42
42
  - If coverage passes, record the coverage summary for use in the commit body or PR description.
43
43
  - **Never commit code that fails CI locally.** The pipeline is not the first gate — this step is.
44
44
 
45
+ - **Distributable-change halt** (LH-06a; only when this repo has its own `scripts/check-version-bump.ts` — Arcane's own repo, or one that adopted the same convention; skip gracefully otherwise, this is not a general-purpose check every consumer repo can run):
46
+ - Run `npm run check:version-bump -- --staged` before committing. This is the staged-diff mode, not the default CI mode — it can see today's not-yet-committed change, which the default `merge-base..HEAD` diff cannot.
47
+ - **HALT if it fails.** Distributable content (`src/assets/`, `registry.ts`, `profiles.ts`) changed without a version bump. Run `spell-bump` first, then return here.
48
+
45
49
  - **Format before committing** _(stack-aware; runs alongside the test gate above)_:
46
50
  - Detect the configured formatter from the project's own config — do not assume one. Look for the toolchain's standard markers, for example:
47
51
  - JS/TS: `.prettierrc*` / `prettier` in `package.json` → `npx prettier --write .`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcane-cli",
3
- "version": "0.33.4",
3
+ "version": "0.33.5",
4
4
  "description": "Arcane framework CLI — scaffold and manage governance files in consuming repositories",
5
5
  "keywords": [
6
6
  "arcane",