create-claude-cabinet 0.7.3 → 0.7.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.
package/lib/cli.js CHANGED
@@ -85,7 +85,7 @@ const MODULES = {
85
85
  mandatory: false,
86
86
  default: true,
87
87
  lean: true,
88
- templates: ['skills/onboard', 'skills/seed', 'skills/cc-upgrade', 'skills/link', 'skills/unlink', 'skills/publish', 'skills/extract'],
88
+ templates: ['skills/onboard', 'skills/seed', 'skills/cc-upgrade', 'skills/link', 'skills/unlink', 'skills/extract'],
89
89
  },
90
90
  'validate': {
91
91
  name: 'Validate',
@@ -437,11 +437,12 @@ async function run() {
437
437
  // use skeleton defaults. Phase files are created by /onboard
438
438
  // based on the project interview, not copied as generic templates.
439
439
  // Exception: cabinet members (always copied), and skills whose phase
440
- // files ARE the instructions (onboard, seed, cc-upgrade, publish,
440
+ // files ARE the instructions (onboard, seed, cc-upgrade,
441
441
  // extract) — these need their phases to function.
442
+ // Note: publish is CC-source-repo-only, not shipped to consumers.
442
443
  const alwaysCopyPhases = [
443
444
  'skills/onboard', 'skills/seed',
444
- 'skills/cc-upgrade', 'skills/publish', 'skills/extract',
445
+ 'skills/cc-upgrade', 'skills/extract',
445
446
  ];
446
447
  const isSkill = tmpl.startsWith('skills/') && !alwaysCopyPhases.some(p => tmpl.startsWith(p));
447
448
  const results = await copyTemplates(srcPath, destPath, {
package/lib/db-setup.js CHANGED
@@ -22,8 +22,9 @@ function setupDb(projectDir) {
22
22
  }
23
23
 
24
24
  // pib-db.js uses ESM imports — ensure package.json has "type": "module"
25
+ // Skip this for the CC source repo itself (its CLI uses CommonJS)
25
26
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'));
26
- if (pkg.type !== 'module') {
27
+ if (pkg.type !== 'module' && pkg.name !== 'create-claude-cabinet') {
27
28
  pkg.type = 'module';
28
29
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n');
29
30
  results.push('Set package.json type to "module"');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-cabinet",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Claude Cabinet — opinionated process scaffolding for Claude Code projects",
5
5
  "bin": {
6
6
  "create-claude-cabinet": "bin/create-claude-cabinet.js"
@@ -68,7 +68,14 @@ With user confirmation:
68
68
 
69
69
  ### 5. Post-Publish
70
70
 
71
- - Re-run the lean install (`node bin/create-claude-cabinet.js --lean`) to
72
- update the local dogfood copy with the just-published templates
71
+ - Re-run the installer to update the local dogfood copy with the
72
+ just-published templates. **Match the existing install type** check
73
+ `.ccrc.json` to see which modules are installed. If all 8 modules are
74
+ present, run a full install (`node bin/create-claude-cabinet.js --yes`).
75
+ If only lean modules, run `--lean`. Never downgrade a full install to
76
+ lean.
77
+ - After the install, verify `package.json` wasn't corrupted (the db-setup
78
+ module adds `"type": "module"` which may not be wanted — check if the
79
+ pre-install `package.json` had it and revert if not).
73
80
  - Update `system-status.md` if it exists
74
81
  - Report the published version and npm URL