@crewx/cli 0.8.7-rc.13 → 0.8.7-rc.15

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.
@@ -351,26 +351,6 @@ async function handleInit(opts) {
351
351
  catch (e) {
352
352
  throw new Error(`YAML_CREATE_FAILED: ${e.message}`);
353
353
  }
354
- for (const dir of ['.crewx/logs', '.claude/commands', 'docs/goal', 'docs/daily', 'docs/wi']) {
355
- try {
356
- (0, fs_1.mkdirSync)((0, path_1.join)(target, dir), { recursive: true });
357
- }
358
- catch (e) {
359
- errors.push(`MKDIR_FAILED:${dir}:${e.message}`);
360
- }
361
- }
362
- const docTemplates = [
363
- { dir: 'docs/goal', file: 'GOAL-TEMPLATE.md', content: GOAL_TEMPLATE },
364
- { dir: 'docs/daily', file: 'DAILY-TEMPLATE.md', content: DAILY_TEMPLATE },
365
- { dir: 'docs/wi', file: 'WI-TEMPLATE.md', content: WI_TEMPLATE },
366
- ];
367
- for (const t of docTemplates) {
368
- const fullPath = (0, path_1.join)(target, t.dir, t.file);
369
- if (!(0, fs_1.existsSync)(fullPath)) {
370
- (0, fs_1.writeFileSync)(fullPath, t.content, 'utf-8');
371
- console.log(`✅ ${t.dir}/ created (${t.file})`);
372
- }
373
- }
374
354
  if (!skipHook) {
375
355
  try {
376
356
  await (0, install_1.handleHookInstall)({ projectRoot: target, yes: true });
@@ -381,6 +361,28 @@ async function handleInit(opts) {
381
361
  }
382
362
  }
383
363
  }
364
+ // Always create docs dirs and templates, regardless of whether yaml was skipped
365
+ for (const dir of ['.crewx/logs', '.claude/commands', 'docs/goal', 'docs/daily', 'docs/wi']) {
366
+ try {
367
+ (0, fs_1.mkdirSync)((0, path_1.join)(target, dir), { recursive: true });
368
+ }
369
+ catch (e) {
370
+ errors.push(`MKDIR_FAILED:${dir}:${e.message}`);
371
+ }
372
+ }
373
+ const docTemplates = [
374
+ { dir: 'docs/goal', file: 'GOAL-TEMPLATE.md', content: GOAL_TEMPLATE },
375
+ { dir: 'docs/daily', file: 'DAILY-TEMPLATE.md', content: DAILY_TEMPLATE },
376
+ { dir: 'docs/wi', file: 'WI-TEMPLATE.md', content: WI_TEMPLATE },
377
+ ];
378
+ for (const t of docTemplates) {
379
+ const fullPath = (0, path_1.join)(target, t.dir, t.file);
380
+ if (force || !(0, fs_1.existsSync)(fullPath)) {
381
+ const action = (0, fs_1.existsSync)(fullPath) ? 'updated' : 'created';
382
+ (0, fs_1.writeFileSync)(fullPath, t.content, 'utf-8');
383
+ console.log(`✅ ${t.dir}/ ${action} (${t.file})`);
384
+ }
385
+ }
384
386
  // Always register workspace in ~/.crewx/crewx.db (best-effort, idempotent)
385
387
  let workspaceId;
386
388
  let slug;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/cli",
3
- "version": "0.8.7-rc.13",
3
+ "version": "0.8.7-rc.15",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -23,16 +23,16 @@
23
23
  "dependencies": {
24
24
  "@crewx/adapter-slack": "0.1.4",
25
25
  "better-sqlite3": "*",
26
- "@crewx/sdk": "0.8.7-rc.13",
27
- "@crewx/memory": "0.1.12",
26
+ "@crewx/sdk": "0.8.7-rc.15",
27
+ "@crewx/memory": "0.1.13",
28
+ "@crewx/doc": "0.1.8",
28
29
  "@crewx/search": "0.1.9",
29
- "@crewx/cron": "0.1.8",
30
30
  "@crewx/wbs": "0.1.9",
31
31
  "@crewx/workflow": "0.3.18",
32
- "@crewx/doc": "0.1.8",
32
+ "@crewx/cron": "0.1.8",
33
33
  "@crewx/shared": "0.0.5",
34
- "@crewx/wi": "0.1.0",
35
- "@crewx/skill": "0.1.10"
34
+ "@crewx/wi": "0.1.1",
35
+ "@crewx/skill": "0.1.11"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/better-sqlite3": "*",