@paths.design/caws-cli 8.2.0 → 8.2.3

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 (51) hide show
  1. package/dist/budget-derivation.js +10 -10
  2. package/dist/commands/archive.js +22 -22
  3. package/dist/commands/burnup.js +7 -7
  4. package/dist/commands/diagnose.js +25 -25
  5. package/dist/commands/evaluate.js +20 -20
  6. package/dist/commands/init.js +71 -72
  7. package/dist/commands/iterate.js +21 -21
  8. package/dist/commands/mode.js +11 -11
  9. package/dist/commands/plan.js +5 -5
  10. package/dist/commands/provenance.js +86 -86
  11. package/dist/commands/quality-gates.js +4 -4
  12. package/dist/commands/quality-monitor.js +17 -17
  13. package/dist/commands/session.js +312 -0
  14. package/dist/commands/specs.js +44 -44
  15. package/dist/commands/status.js +43 -43
  16. package/dist/commands/templates.js +14 -14
  17. package/dist/commands/tool.js +1 -1
  18. package/dist/commands/troubleshoot.js +11 -11
  19. package/dist/commands/tutorial.js +119 -119
  20. package/dist/commands/validate.js +6 -6
  21. package/dist/commands/waivers.js +93 -60
  22. package/dist/commands/workflow.js +17 -17
  23. package/dist/commands/worktree.js +13 -13
  24. package/dist/config/index.js +5 -5
  25. package/dist/config/modes.js +7 -7
  26. package/dist/constants/spec-types.js +5 -5
  27. package/dist/error-handler.js +4 -4
  28. package/dist/generators/jest-config-generator.js +3 -3
  29. package/dist/generators/working-spec.js +4 -4
  30. package/dist/index.js +79 -27
  31. package/dist/minimal-cli.js +9 -9
  32. package/dist/policy/PolicyManager.js +1 -1
  33. package/dist/scaffold/claude-hooks.js +7 -7
  34. package/dist/scaffold/cursor-hooks.js +8 -8
  35. package/dist/scaffold/git-hooks.js +152 -152
  36. package/dist/scaffold/index.js +48 -48
  37. package/dist/session/session-manager.js +548 -0
  38. package/dist/test-analysis.js +20 -20
  39. package/dist/utils/command-wrapper.js +8 -8
  40. package/dist/utils/detection.js +7 -7
  41. package/dist/utils/finalization.js +21 -21
  42. package/dist/utils/git-lock.js +3 -3
  43. package/dist/utils/gitignore-updater.js +1 -1
  44. package/dist/utils/project-analysis.js +7 -7
  45. package/dist/utils/quality-gates-utils.js +35 -35
  46. package/dist/utils/spec-resolver.js +8 -8
  47. package/dist/utils/typescript-detector.js +5 -5
  48. package/dist/utils/yaml-validation.js +1 -1
  49. package/dist/validation/spec-validation.js +4 -4
  50. package/dist/worktree/worktree-manager.js +11 -5
  51. package/package.json +1 -1
@@ -114,20 +114,26 @@ function createWorktree(name, options = {}) {
114
114
  // Set up sparse checkout if scope is provided
115
115
  if (scope) {
116
116
  try {
117
- execFileSync('git', ['sparse-checkout', 'init', '--cone'], {
117
+ // Parse scope patterns (comma-separated)
118
+ const patterns = scope.split(',').map((p) => p.trim());
119
+
120
+ // Detect glob characters — cone mode only accepts directory paths,
121
+ // not glob patterns like "core/reasoning/**" or "*.py".
122
+ const hasGlobs = patterns.some((p) => /[*?[\]]/.test(p));
123
+ const coneFlag = hasGlobs ? '--no-cone' : '--cone';
124
+
125
+ execFileSync('git', ['sparse-checkout', 'init', coneFlag], {
118
126
  cwd: worktreePath,
119
127
  stdio: 'pipe',
120
128
  });
121
129
 
122
- // Parse scope patterns (comma-separated)
123
- const patterns = scope.split(',').map((p) => p.trim());
124
130
  execFileSync('git', ['sparse-checkout', 'set', ...patterns], {
125
131
  cwd: worktreePath,
126
132
  stdio: 'pipe',
127
133
  });
128
134
  } catch (error) {
129
- console.warn(chalk.yellow(`⚠️ Sparse checkout setup failed: ${error.message}`));
130
- console.warn(chalk.blue('💡 Worktree created but without sparse checkout'));
135
+ console.warn(chalk.yellow(`Sparse checkout setup failed: ${error.message}`));
136
+ console.warn(chalk.blue('Worktree created but without sparse checkout'));
131
137
  }
132
138
  }
133
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paths.design/caws-cli",
3
- "version": "8.2.0",
3
+ "version": "8.2.3",
4
4
  "description": "CAWS CLI - Coding Agent Workflow System command-line tools for spec management, quality gates, and AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "bin": {