@lebtiga/sonic-agent 1.0.2 → 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 +4 -0
- package/package.json +1 -1
package/bin/sonic.js
CHANGED
|
@@ -127,8 +127,12 @@ 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) {
|
package/package.json
CHANGED