trickle-cli 0.1.0 → 0.1.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/dist/index.js CHANGED
@@ -65,7 +65,7 @@ program
65
65
  });
66
66
  // trickle run <command>
67
67
  program
68
- .command("run [command]")
68
+ .command("run [command...]")
69
69
  .description("Run any command or file with universal type observation — zero code changes needed")
70
70
  .option("--module <name>", "Module name for captured functions")
71
71
  .option("--include <patterns>", "Comma-separated substrings — only observe matching modules")
@@ -73,7 +73,9 @@ program
73
73
  .option("--stubs <dir>", "Auto-generate .d.ts/.pyi type stubs in this directory after the run")
74
74
  .option("--annotate <path>", "Auto-annotate this file or directory with types after the run")
75
75
  .option("-w, --watch", "Watch source files and re-run on changes")
76
- .action(async (command, opts) => {
76
+ .allowUnknownOption()
77
+ .action(async (commandParts, opts) => {
78
+ const command = commandParts.length > 0 ? commandParts.join(" ") : undefined;
77
79
  await (0, run_1.runCommand)(command, opts);
78
80
  });
79
81
  // trickle functions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trickle-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for trickle runtime type observability",
5
5
  "bin": {
6
6
  "trickle": "dist/index.js"
package/src/index.ts CHANGED
@@ -66,7 +66,7 @@ program
66
66
 
67
67
  // trickle run <command>
68
68
  program
69
- .command("run [command]")
69
+ .command("run [command...]")
70
70
  .description("Run any command or file with universal type observation — zero code changes needed")
71
71
  .option("--module <name>", "Module name for captured functions")
72
72
  .option("--include <patterns>", "Comma-separated substrings — only observe matching modules")
@@ -74,7 +74,9 @@ program
74
74
  .option("--stubs <dir>", "Auto-generate .d.ts/.pyi type stubs in this directory after the run")
75
75
  .option("--annotate <path>", "Auto-annotate this file or directory with types after the run")
76
76
  .option("-w, --watch", "Watch source files and re-run on changes")
77
- .action(async (command: string | undefined, opts) => {
77
+ .allowUnknownOption()
78
+ .action(async (commandParts: string[], opts) => {
79
+ const command = commandParts.length > 0 ? commandParts.join(" ") : undefined;
78
80
  await runCommand(command, opts);
79
81
  });
80
82