agileflow 4.0.0-alpha.7 → 4.0.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "4.0.0-alpha.7",
3
+ "version": "4.0.0-alpha.8",
4
4
  "description": "AI-driven agile development toolkit for Claude Code — skills-first architecture with opt-in plugins (v4)",
5
5
  "keywords": [
6
6
  "agile",
@@ -145,7 +145,7 @@ function initialBabysitMode(current) {
145
145
  ) {
146
146
  return currentMode;
147
147
  }
148
- return "light";
148
+ return "full";
149
149
  }
150
150
 
151
151
  /**
@@ -101,6 +101,24 @@ async function pickPlugins(currentConfig) {
101
101
  })
102
102
  .map((p) => p.id);
103
103
 
104
+ const enableAll = await prompts.confirm({
105
+ message: questionMessage(
106
+ "Enable all skill packs?",
107
+ "Turn on every optional plugin at once.",
108
+ ),
109
+ initialValue: false,
110
+ });
111
+
112
+ if (prompts.isCancel(enableAll)) {
113
+ prompts.cancel("Setup cancelled. No changes made.");
114
+ process.exit(1);
115
+ }
116
+
117
+ if (enableAll) {
118
+ const allIds = new Set(optional.map((p) => p.id));
119
+ return buildPluginsMap(all, allIds, currentConfig.plugins || {});
120
+ }
121
+
104
122
  const picked = await prompts.multiselect({
105
123
  message: questionMessage("Choose optional skill packs:"),
106
124
  options: optional.map((p) => ({
@@ -3,9 +3,10 @@
3
3
  *
4
4
  * When the target IDE is `claude-code`, the installer registers our 6
5
5
  * hook entry points in `.claude/settings.json` so Claude Code actually
6
- * invokes them at runtime. We use the unified `npx --no-install
7
- * agileflow hook <event> [--matcher <m>]` command so the path resolves
8
- * regardless of how the package is installed.
6
+ * invokes them at runtime. We use `npx agileflow hook <event>` so npx
7
+ * resolves the project-local binary from node_modules first. --no-install is
8
+ * intentionally omitted: it skips local node_modules and falls back to the
9
+ * npm cache, which can pick up a stale older version.
9
10
  *
10
11
  * The writer is **non-destructive**: it merges with any existing
11
12
  * settings.json. Only AgileFlow-owned hook entries (identified by the
@@ -30,32 +31,32 @@ const MANAGED_HOOKS = [
30
31
  {
31
32
  event: "SessionStart",
32
33
  matcher: null,
33
- command: "npx --no-install agileflow hook SessionStart",
34
+ command: "npx agileflow hook SessionStart",
34
35
  },
35
36
  {
36
37
  event: "PreToolUse",
37
38
  matcher: "Bash",
38
- command: "npx --no-install agileflow hook PreToolUse --matcher Bash",
39
+ command: "npx agileflow hook PreToolUse --matcher Bash",
39
40
  },
40
41
  {
41
42
  event: "PreToolUse",
42
43
  matcher: "Edit",
43
- command: "npx --no-install agileflow hook PreToolUse --matcher Edit",
44
+ command: "npx agileflow hook PreToolUse --matcher Edit",
44
45
  },
45
46
  {
46
47
  event: "PreToolUse",
47
48
  matcher: "Write",
48
- command: "npx --no-install agileflow hook PreToolUse --matcher Write",
49
+ command: "npx agileflow hook PreToolUse --matcher Write",
49
50
  },
50
51
  {
51
52
  event: "PostCompact",
52
53
  matcher: null,
53
- command: "npx --no-install agileflow hook PostCompact",
54
+ command: "npx agileflow hook PostCompact",
54
55
  },
55
56
  {
56
57
  event: "Stop",
57
58
  matcher: null,
58
- command: "npx --no-install agileflow hook Stop",
59
+ command: "npx agileflow hook Stop",
59
60
  },
60
61
  ];
61
62
 
@@ -27,31 +27,31 @@ const MANAGED_HOOKS = [
27
27
  {
28
28
  event: "SessionStart",
29
29
  matcher: null,
30
- command: "npx --no-install agileflow hook SessionStart",
30
+ command: "npx agileflow hook SessionStart",
31
31
  statusMessage: "Loading AgileFlow session context",
32
32
  },
33
33
  {
34
34
  event: "PreToolUse",
35
35
  matcher: "Bash",
36
- command: "npx --no-install agileflow hook PreToolUse --matcher Bash",
36
+ command: "npx agileflow hook PreToolUse --matcher Bash",
37
37
  statusMessage: "Checking Bash command",
38
38
  },
39
39
  {
40
40
  event: "PreToolUse",
41
41
  matcher: "Edit",
42
- command: "npx --no-install agileflow hook PreToolUse --matcher Edit",
42
+ command: "npx agileflow hook PreToolUse --matcher Edit",
43
43
  statusMessage: "Checking Edit command",
44
44
  },
45
45
  {
46
46
  event: "PreToolUse",
47
47
  matcher: "Write",
48
- command: "npx --no-install agileflow hook PreToolUse --matcher Write",
48
+ command: "npx agileflow hook PreToolUse --matcher Write",
49
49
  statusMessage: "Checking Write command",
50
50
  },
51
51
  {
52
52
  event: "Stop",
53
53
  matcher: null,
54
- command: "npx --no-install agileflow hook Stop",
54
+ command: "npx agileflow hook Stop",
55
55
  statusMessage: "Saving AgileFlow state",
56
56
  },
57
57
  ];