@paths.design/caws-cli 3.2.3 → 3.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"cursor-hooks.d.ts","sourceRoot":"","sources":["../../src/scaffold/cursor-hooks.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,gDAHW,MAAM,WACN,MAAM,EAAE,iBAmIlB"}
1
+ {"version":3,"file":"cursor-hooks.d.ts","sourceRoot":"","sources":["../../src/scaffold/cursor-hooks.js"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,gDAHW,MAAM,WACN,MAAM,EAAE,iBAsIlB"}
@@ -26,9 +26,12 @@ async function scaffoldCursorHooks(projectDir, levels = ['safety', 'quality', 's
26
26
  await fs.ensureDir(cursorHooksDir);
27
27
  await fs.ensureDir(path.join(cursorDir, 'logs'));
28
28
 
29
- // Determine template directory
29
+ // Determine template directory - prefer bundled templates
30
30
  const setup = detectCAWSSetup(projectDir);
31
- const templateDir = setup.templateDir || path.resolve(__dirname, '../templates');
31
+ const bundledTemplateDir = path.join(__dirname, '../../templates');
32
+ const templateDir = fs.existsSync(bundledTemplateDir)
33
+ ? bundledTemplateDir
34
+ : setup.templateDir || path.resolve(__dirname, '../templates');
32
35
 
33
36
  const cursorTemplateDir = path.join(templateDir, '.cursor');
34
37
  const cursorHooksTemplateDir = path.join(cursorTemplateDir, 'hooks');
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scaffold/index.js"],"names":[],"mappings":"AAkKA;;;GAGG;AACH,6DAyTC;AA5cD;;;;GAIG;AACH,mDAHW,MAAM;;;GA8HhB;AAMD;;;GAGG;AACH,yDAGC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scaffold/index.js"],"names":[],"mappings":"AAkKA;;;GAGG;AACH,6DA6TC;AAhdD;;;;GAIG;AACH,mDAHW,MAAM;;;GA8HhB;AAMD;;;GAGG;AACH,yDAGC"}
@@ -193,9 +193,13 @@ async function scaffoldProject(options) {
193
193
  } else if (!setup.templateDir) {
194
194
  // Try to find template directory using absolute paths that work in CI
195
195
  const possiblePaths = [
196
+ // 1. Bundled templates in CLI package (for global installs) - CHECK THIS FIRST!
197
+ path.join(__dirname, '../../templates'),
198
+ // 2. CI paths
196
199
  '/home/runner/work/coding-agent-working-standard/coding-agent-working-standard/packages/caws-template',
197
200
  '/workspace/packages/caws-template',
198
201
  '/caws/packages/caws-template',
202
+ // 3. Monorepo relative paths
199
203
  path.resolve(process.cwd(), '../../../packages/caws-template'),
200
204
  path.resolve(process.cwd(), '../../packages/caws-template'),
201
205
  path.resolve(process.cwd(), '../packages/caws-template'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paths.design/caws-cli",
3
- "version": "3.2.3",
3
+ "version": "3.2.4",
4
4
  "description": "CAWS CLI - Coding Agent Workflow System command line tools",
5
5
  "main": "dist/index.js",
6
6
  "bin": {