@ghl-ai/aw 0.1.42-beta.28 → 0.1.42-beta.29
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 -6
- package/package.json +1 -1
package/commands/init.mjs
CHANGED
|
@@ -325,6 +325,7 @@ export async function initCommand(args) {
|
|
|
325
325
|
syncRulesTargets(cwd);
|
|
326
326
|
}
|
|
327
327
|
removeLegacyRegistryRules();
|
|
328
|
+
if (!silent) fmt.logStep('Rules synced');
|
|
328
329
|
|
|
329
330
|
// Ensure project worktree sparse checkout matches the global clone.
|
|
330
331
|
// Covers the case where a namespace was added from HOME (or another project)
|
|
@@ -340,15 +341,13 @@ export async function initCommand(args) {
|
|
|
340
341
|
|
|
341
342
|
await installAwEcc(cwd, { silent });
|
|
342
343
|
|
|
343
|
-
const setupSpinner = silent ? null : fmt.spinner();
|
|
344
|
-
if (setupSpinner) setupSpinner.start('Configuring hooks and IDE integration...');
|
|
345
344
|
ensureAwRuntimeHook(HOME);
|
|
346
345
|
syncHomeAndProjectInstructions(cwd, freshCfg?.namespace || team);
|
|
347
346
|
await setupMcp(HOME, freshCfg?.namespace || team, { silent });
|
|
348
347
|
applyStoredStartupPreferences(HOME);
|
|
349
348
|
const removedLegacyStartupFiles = cwd !== HOME ? removeWorkspaceHookDefaults(cwd) : [];
|
|
350
349
|
installGlobalHooks();
|
|
351
|
-
if (
|
|
350
|
+
if (!silent) fmt.logStep('Hooks and IDE integration configured');
|
|
352
351
|
|
|
353
352
|
// Remove old local .git/hooks/post-checkout that pre-dates core.hooksPath (creates stale .aw_registry symlink)
|
|
354
353
|
if (cwd !== HOME) {
|
|
@@ -479,6 +478,7 @@ export async function initCommand(args) {
|
|
|
479
478
|
syncRulesTargets(HOME);
|
|
480
479
|
if (cwd !== HOME) syncRulesTargets(cwd);
|
|
481
480
|
removeLegacyRegistryRules();
|
|
481
|
+
if (!silent) fmt.logStep('Rules synced');
|
|
482
482
|
|
|
483
483
|
// Step 3: Setup tasks, MCP, hooks
|
|
484
484
|
// Prune stale hooks from prior version before installing new ones
|
|
@@ -487,8 +487,6 @@ export async function initCommand(args) {
|
|
|
487
487
|
|
|
488
488
|
await installAwEcc(cwd, { silent });
|
|
489
489
|
|
|
490
|
-
const setupSpinnerFresh = silent ? null : fmt.spinner();
|
|
491
|
-
if (setupSpinnerFresh) setupSpinnerFresh.start('Configuring hooks and IDE integration...');
|
|
492
490
|
ensureAwRuntimeHook(HOME);
|
|
493
491
|
|
|
494
492
|
// Parallel batch B: post-ECC setup (instructions and MCP are independent)
|
|
@@ -501,7 +499,7 @@ export async function initCommand(args) {
|
|
|
501
499
|
const removedLegacyStartupFiles = cwd !== HOME ? removeWorkspaceHookDefaults(cwd) : [];
|
|
502
500
|
const hooksInstalled = installGlobalHooks();
|
|
503
501
|
installIdeTasks();
|
|
504
|
-
if (
|
|
502
|
+
if (!silent) fmt.logStep('Hooks and IDE integration configured');
|
|
505
503
|
|
|
506
504
|
// Remove old local .git/hooks/post-checkout that pre-dates core.hooksPath
|
|
507
505
|
if (cwd !== HOME) {
|