@lebtiga/sonic-agent 1.0.0 → 1.0.2

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.
Files changed (2) hide show
  1. package/bin/sonic.js +16 -1
  2. package/package.json +1 -1
package/bin/sonic.js CHANGED
@@ -122,9 +122,24 @@ async function cmdStart() {
122
122
  // Pass any extra args after `sonic` straight through to claude.
123
123
  const passthrough = process.argv.slice(2).filter((a) => a !== 'start');
124
124
 
125
+ // If the user just typed `sonic` with no prompt or flags, kick off the
126
+ // session with a quick-start request so they see what Sonic can do
127
+ // instead of staring at an empty Claude Code prompt.
128
+ const hasPassthrough = passthrough.length > 0;
129
+ const skipWelcome = process.env.SONIC_SKIP_WELCOME === '1';
130
+
131
+ const claudeArgs = ['--plugin-dir', sonicAgent];
132
+ if (hasPassthrough) {
133
+ claudeArgs.push(...passthrough);
134
+ } else if (!skipWelcome) {
135
+ // Auto-invoke the namespaced help slash command on launch.
136
+ // Claude Code recognizes the leading slash as a command, not a prompt.
137
+ claudeArgs.push('/sonic-agent:sonic-help');
138
+ }
139
+
125
140
  const child = spawn(
126
141
  claudeBin,
127
- ['--plugin-dir', sonicAgent, ...passthrough],
142
+ claudeArgs,
128
143
  {
129
144
  stdio: 'inherit',
130
145
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lebtiga/sonic-agent",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Sonic — a specialized AI agent for building WordPress authority websites at scale. Founders cohort license required.",
5
5
  "keywords": [
6
6
  "wordpress",