crushdataai 1.2.10 → 1.2.11

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 (2) hide show
  1. package/dist/commands.js +8 -2
  2. package/package.json +1 -1
package/dist/commands.js CHANGED
@@ -42,26 +42,32 @@ const AI_TYPES = ['claude', 'cursor', 'windsurf', 'antigravity', 'copilot', 'kir
42
42
  const AI_PATHS = {
43
43
  claude: {
44
44
  dir: '.claude/skills/data-analyst',
45
+ sourceDir: '.claude/skills/data-analyst',
45
46
  files: ['SKILL.md']
46
47
  },
47
48
  cursor: {
48
49
  dir: '.cursor/commands',
50
+ sourceDir: '.cursor/commands',
49
51
  files: ['data-analyst.md']
50
52
  },
51
53
  windsurf: {
52
54
  dir: '.windsurf/workflows',
55
+ sourceDir: '.windsurf/workflows',
53
56
  files: ['data-analyst.md']
54
57
  },
55
58
  antigravity: {
56
59
  dir: '.agent/workflows',
60
+ sourceDir: '.agent/workflows',
57
61
  files: ['data-analyst.md']
58
62
  },
59
63
  copilot: {
60
64
  dir: '.github/prompts',
65
+ sourceDir: '.github/prompts',
61
66
  files: ['data-analyst.prompt.md']
62
67
  },
63
68
  kiro: {
64
69
  dir: '.kiro/steering',
70
+ sourceDir: '.kiro/steering',
65
71
  files: ['data-analyst.md']
66
72
  }
67
73
  };
@@ -71,7 +77,7 @@ function getAssetsDir() {
71
77
  return path.join(__dirname, '..', 'assets');
72
78
  }
73
79
  function copySharedFiles(targetDir, force) {
74
- const sharedSource = path.join(getAssetsDir(), 'shared');
80
+ const sharedSource = path.join(getAssetsDir(), '.shared', 'data-analyst');
75
81
  const sharedTarget = path.join(targetDir, SHARED_DIR);
76
82
  if (fs.existsSync(sharedTarget) && !force) {
77
83
  console.log(` ⏭️ ${SHARED_DIR} already exists (use --force to overwrite)`);
@@ -82,7 +88,7 @@ function copySharedFiles(targetDir, force) {
82
88
  }
83
89
  function copyAIFiles(aiType, targetDir, force) {
84
90
  const config = AI_PATHS[aiType];
85
- const sourceDir = path.join(getAssetsDir(), aiType);
91
+ const sourceDir = path.join(getAssetsDir(), config.sourceDir);
86
92
  const targetPath = path.join(targetDir, config.dir);
87
93
  // Ensure directory exists
88
94
  fs.ensureDirSync(targetPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crushdataai",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "CLI to install CrushData AI data analyst skill for AI coding assistants",
5
5
  "main": "dist/index.js",
6
6
  "bin": {