@sns-myagent/cli 0.3.1 → 0.3.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.
- package/package.json +4 -3
- package/src/cli/index.ts +10 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@sns-myagent/cli",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.2",
|
|
5
5
|
"description": "SNS-MyAgent — Pi Agent size, full features. BYOK coding agent CLI.",
|
|
6
6
|
"homepage": "https://github.com/Reihantt6/sns-myagent",
|
|
7
7
|
"author": "Reihantt6",
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"main": "./src/index.ts",
|
|
29
29
|
"types": "./dist/types/index.d.ts",
|
|
30
30
|
"bin": {
|
|
31
|
-
"snscoder": "bin/snscoder.js"
|
|
31
|
+
"snscoder": "bin/snscoder.js",
|
|
32
|
+
"snsagent": "bin/snscoder.js"
|
|
32
33
|
},
|
|
33
34
|
"scripts": {
|
|
34
35
|
"fetch-binary": "node scripts/fetch-binary.mjs",
|
|
35
36
|
"postinstall": "node scripts/fetch-binary.mjs && node scripts/apply-pi-natives-patch.js",
|
|
36
|
-
"build": "bun build --compile --define process.env.PI_COMPILED='\"true\"' --define process.env.PKG_VERSION='\"0.3.
|
|
37
|
+
"build": "bun build --compile --define process.env.PI_COMPILED='\"true\"' --define process.env.PKG_VERSION='\"0.3.1\"' --no-compile-autoload-bunfig --no-compile-autoload-dotenv --no-compile-autoload-tsconfig --no-compile-autoload-package-json --keep-names --outfile bin/snscoder-linux-x64 ./src/cli/entry.ts && cp bin/snscoder-linux-x64 bin/snscoder",
|
|
37
38
|
"check": "biome check . && bun run check:types",
|
|
38
39
|
"check:types": "tsgo -p tsconfig.json --noEmit",
|
|
39
40
|
"lint": "biome lint .",
|
package/src/cli/index.ts
CHANGED
|
@@ -333,13 +333,17 @@ function setByPath(obj: Record<string, unknown>, path: string, value: unknown):
|
|
|
333
333
|
|
|
334
334
|
// ---------- router ----------
|
|
335
335
|
|
|
336
|
-
const HELP = `Usage: snscoder
|
|
336
|
+
const HELP = `Usage: snscoder [command] [options]
|
|
337
|
+
|
|
338
|
+
If no command is given, starts the full agent interactive mode.
|
|
337
339
|
|
|
338
340
|
Commands:
|
|
341
|
+
(none) start full agent interactive mode (default)
|
|
342
|
+
agent alias for default
|
|
339
343
|
version print package version
|
|
340
344
|
init create .sns-myagent/config.json (defaults)
|
|
341
345
|
chat [--stub] start interactive chat (stub for Phase 2B)
|
|
342
|
-
launch
|
|
346
|
+
launch alias for default
|
|
343
347
|
config show print current config
|
|
344
348
|
config get <key> read a dot-path value (e.g. model.provider)
|
|
345
349
|
config set <key> <value> update a dot-path value
|
|
@@ -352,6 +356,10 @@ export async function runCliAsync(argv: string[]): Promise<number> {
|
|
|
352
356
|
const [cmd, ...rest] = argv;
|
|
353
357
|
switch (cmd) {
|
|
354
358
|
case undefined:
|
|
359
|
+
case "agent":
|
|
360
|
+
case "launch":
|
|
361
|
+
// No-arg `snscoder` (or explicit `agent`/`launch`) → start full agent mode.
|
|
362
|
+
return cmdLaunch(rest);
|
|
355
363
|
case "help":
|
|
356
364
|
case "--help":
|
|
357
365
|
case "-h":
|