@lebtiga/sonic-agent 1.0.1 → 1.0.3
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/sonic.js +7 -5
- package/package.json +1 -1
package/bin/sonic.js
CHANGED
|
@@ -127,16 +127,18 @@ async function cmdStart() {
|
|
|
127
127
|
// instead of staring at an empty Claude Code prompt.
|
|
128
128
|
const hasPassthrough = passthrough.length > 0;
|
|
129
129
|
const skipWelcome = process.env.SONIC_SKIP_WELCOME === '1';
|
|
130
|
+
const skipPermissions = process.env.SONIC_SKIP_PERMISSIONS === '1';
|
|
130
131
|
|
|
131
132
|
const claudeArgs = ['--plugin-dir', sonicAgent];
|
|
133
|
+
if (skipPermissions) {
|
|
134
|
+
claudeArgs.push('--dangerously-skip-permissions');
|
|
135
|
+
}
|
|
132
136
|
if (hasPassthrough) {
|
|
133
137
|
claudeArgs.push(...passthrough);
|
|
134
138
|
} else if (!skipWelcome) {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
'ask me what client or project I want to build for today.'
|
|
139
|
-
);
|
|
139
|
+
// Auto-invoke the namespaced help slash command on launch.
|
|
140
|
+
// Claude Code recognizes the leading slash as a command, not a prompt.
|
|
141
|
+
claudeArgs.push('/sonic-agent:sonic-help');
|
|
140
142
|
}
|
|
141
143
|
|
|
142
144
|
const child = spawn(
|
package/package.json
CHANGED