sinapse-ai 1.2.0 → 1.2.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.
- package/.sinapse-ai/install-manifest.yaml +1 -1
- package/bin/cli.js +12 -0
- package/bin/commands/help.js +1 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -183,6 +183,18 @@ function runRouter() {
|
|
|
183
183
|
case 'help':
|
|
184
184
|
case '--help':
|
|
185
185
|
case '-h': cmdHelp(); break;
|
|
186
|
+
case 'version':
|
|
187
|
+
case '--version':
|
|
188
|
+
case '-v': {
|
|
189
|
+
// Story GA-1.2.1 — canonical --version flag. Reads from package.json
|
|
190
|
+
// so the value tracks releases automatically, and prints just the
|
|
191
|
+
// semver (no banner, no decoration) so scripts can capture it cleanly:
|
|
192
|
+
// $ npx sinapse-ai --version
|
|
193
|
+
// 1.2.0
|
|
194
|
+
const pkgVersion = require('../package.json').version;
|
|
195
|
+
process.stdout.write(`${pkgVersion}\n`);
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
186
198
|
default: {
|
|
187
199
|
// Story GA-1.3 — fuzzy match suggestion. If the typed command is within
|
|
188
200
|
// 2 edits of a known command, hint at the closest match (e.g. `insta` →
|
package/bin/commands/help.js
CHANGED
|
@@ -24,6 +24,7 @@ function cmdHelp() {
|
|
|
24
24
|
logger.always(` ${CYAN}npx sinapse-ai doctor${NC} Roda health checks (--fix --dry-run --json --deep)`);
|
|
25
25
|
logger.always(` ${CYAN}npx sinapse-ai list${NC} Lista todos squads e agents`);
|
|
26
26
|
logger.always(` ${CYAN}npx sinapse-ai help${NC} Mostra esta ajuda`);
|
|
27
|
+
logger.always(` ${CYAN}npx sinapse-ai --version${NC} Mostra versão instalada (semver puro)`);
|
|
27
28
|
logger.always('');
|
|
28
29
|
logger.always(`${BOLD}Após instalar:${NC}\n`);
|
|
29
30
|
logger.always(` ${CYAN}sinapse${NC} Inicia Claude Code com todos os agents`);
|