ai-nexus 1.3.4 → 1.3.5
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/bin/ai-rules.cjs +10 -10
- package/package.json +1 -1
package/bin/ai-rules.cjs
CHANGED
|
@@ -17,15 +17,15 @@ program
|
|
|
17
17
|
.description('Initialize rules in current project (.claude/, .codex/)')
|
|
18
18
|
.option('--rules <url>', 'Git repository URL for rules (e.g., github.com/org/my-rules)')
|
|
19
19
|
.option('--copy', 'Copy files instead of symlink')
|
|
20
|
-
.option('-
|
|
20
|
+
.option('-q, --quick', 'Quick mode (skip interactive wizard)')
|
|
21
21
|
.option('-y, --yes', 'Skip prompts and use defaults')
|
|
22
22
|
.action(async (options) => {
|
|
23
|
-
if (options.
|
|
24
|
-
const { initInteractive } = await import('../dist/commands/init-interactive.js');
|
|
25
|
-
await initInteractive();
|
|
26
|
-
} else {
|
|
23
|
+
if (options.quick || options.yes) {
|
|
27
24
|
const { init } = await import('../dist/commands/init.js');
|
|
28
25
|
await init({ scope: 'project', ...options });
|
|
26
|
+
} else {
|
|
27
|
+
const { initInteractive } = await import('../dist/commands/init-interactive.js');
|
|
28
|
+
await initInteractive();
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -34,14 +34,14 @@ program
|
|
|
34
34
|
.description('Install rules globally (~/.claude/, ~/.codex/)')
|
|
35
35
|
.option('--rules <url>', 'Git repository URL for rules')
|
|
36
36
|
.option('--copy', 'Copy files instead of symlink')
|
|
37
|
-
.option('-
|
|
37
|
+
.option('-q, --quick', 'Quick mode (skip interactive wizard)')
|
|
38
38
|
.action(async (options) => {
|
|
39
|
-
if (options.
|
|
40
|
-
const { initInteractive } = await import('../dist/commands/init-interactive.js');
|
|
41
|
-
await initInteractive();
|
|
42
|
-
} else {
|
|
39
|
+
if (options.quick) {
|
|
43
40
|
const { init } = await import('../dist/commands/init.js');
|
|
44
41
|
await init({ scope: 'global', ...options });
|
|
42
|
+
} else {
|
|
43
|
+
const { initInteractive } = await import('../dist/commands/init-interactive.js');
|
|
44
|
+
await initInteractive();
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|