@ghl-ai/aw 0.1.42-beta.30 → 0.1.42-beta.31
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/commands/init.mjs +4 -3
- package/package.json +1 -1
package/commands/init.mjs
CHANGED
|
@@ -374,11 +374,13 @@ export async function initCommand(args) {
|
|
|
374
374
|
|
|
375
375
|
// Wire ~/.claude/.cursor/.codex to the project's registry when in a project,
|
|
376
376
|
// so edits to project/.aw/.aw_registry/ are instantly visible in global IDE dirs.
|
|
377
|
+
if (!silent) fmt.logStep('Wiring IDE symlinks...');
|
|
377
378
|
const projectRegistryDir = cwd !== HOME ? join(cwd, '.aw', REGISTRY_DIR) : null;
|
|
378
379
|
const awDirForLinks = (projectRegistryDir && existsSync(projectRegistryDir)) ? projectRegistryDir : null;
|
|
379
380
|
const symlinks = linkWorkspace(HOME, awDirForLinks, { silent: true });
|
|
380
381
|
const commands = generateCommands(HOME, { silent: true });
|
|
381
382
|
if (cwd !== HOME) installLocalCommitHook(cwd);
|
|
383
|
+
if (!silent) fmt.logStep(`IDE wired — ${chalk.bold(symlinks)} symlinks · ${chalk.bold(commands)} commands`);
|
|
382
384
|
|
|
383
385
|
// Write hook manifest after all hook installation is complete
|
|
384
386
|
try { writeHookManifest({ eccVersion: AW_ECC_TAG, awVersion: VERSION }); } catch { /* best effort */ }
|
|
@@ -525,8 +527,7 @@ export async function initCommand(args) {
|
|
|
525
527
|
|
|
526
528
|
// Step 5: Wire ~/.claude/.cursor/.codex to the project's registry when in a project,
|
|
527
529
|
// so edits to project/.aw/.aw_registry/ are instantly visible in global IDE dirs.
|
|
528
|
-
|
|
529
|
-
ideSpinner.start('Wiring IDE symlinks...');
|
|
530
|
+
if (!silent) fmt.logStep('Wiring IDE symlinks...');
|
|
530
531
|
const projectRegistryDir = cwd !== HOME ? join(cwd, '.aw', REGISTRY_DIR) : null;
|
|
531
532
|
const awDirForLinks = (projectRegistryDir && existsSync(projectRegistryDir)) ? projectRegistryDir : null;
|
|
532
533
|
// Parallel batch C: symlinks + commands are independent
|
|
@@ -535,7 +536,7 @@ export async function initCommand(args) {
|
|
|
535
536
|
linkWorkspace(HOME, awDirForLinks, { silent: true }),
|
|
536
537
|
generateCommands(HOME, { silent: true }),
|
|
537
538
|
];
|
|
538
|
-
|
|
539
|
+
if (!silent) fmt.logStep(`IDE wired — ${chalk.bold(symlinks)} symlinks · ${chalk.bold(commands)} commands`);
|
|
539
540
|
|
|
540
541
|
// Write hook manifest after all hook installation is complete
|
|
541
542
|
try { writeHookManifest({ eccVersion: AW_ECC_TAG, awVersion: VERSION }); } catch { /* best effort */ }
|