@lebtiga/sonic-agent 1.0.0 → 1.0.1

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 +18 -1
  2. package/package.json +1 -1
package/bin/sonic.js CHANGED
@@ -122,9 +122,26 @@ 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
+ claudeArgs.push(
136
+ 'I just launched Sonic. Greet me as Sonic, then run /sonic-help to ' +
137
+ 'show me the available skills and the 6-stage build flow. After that, ' +
138
+ 'ask me what client or project I want to build for today.'
139
+ );
140
+ }
141
+
125
142
  const child = spawn(
126
143
  claudeBin,
127
- ['--plugin-dir', sonicAgent, ...passthrough],
144
+ claudeArgs,
128
145
  {
129
146
  stdio: 'inherit',
130
147
  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.1",
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",