trickle-cli 0.1.219 → 0.1.221
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 +16 -21
- package/package.json +1 -1
- package/src/index.ts +12 -21
package/dist/index.js
CHANGED
|
@@ -83,10 +83,23 @@ const next_1 = require("./commands/next");
|
|
|
83
83
|
const python_1 = require("./commands/python");
|
|
84
84
|
const hints_1 = require("./commands/hints");
|
|
85
85
|
const program = new commander_1.Command();
|
|
86
|
+
// Only these commands show in --help. All others still work but are hidden.
|
|
87
|
+
const VISIBLE_COMMANDS = new Set(["run", "hints", "vars", "init", "help"]);
|
|
86
88
|
program
|
|
87
89
|
.name("trickle")
|
|
88
|
-
.description("
|
|
89
|
-
.version(
|
|
90
|
+
.description("Runtime type annotations for Python — see tensor shapes, variable types, and crash-time values as you code")
|
|
91
|
+
.version((() => { try {
|
|
92
|
+
return require("../package.json").version;
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return "0.0.0";
|
|
96
|
+
} })())
|
|
97
|
+
.configureHelp({
|
|
98
|
+
visibleCommands: (cmd) => {
|
|
99
|
+
return cmd.commands.filter(c => VISIBLE_COMMANDS.has(c.name()));
|
|
100
|
+
},
|
|
101
|
+
})
|
|
102
|
+
.addHelpText("after", "\nAll other commands are available but hidden from this list. Run `trickle <command> --help` for any command.");
|
|
90
103
|
// trickle init
|
|
91
104
|
program
|
|
92
105
|
.command("init")
|
|
@@ -1044,23 +1057,5 @@ if (firstArg &&
|
|
|
1044
1057
|
// Inject "run" before the file argument
|
|
1045
1058
|
process.argv.splice(2, 0, "run");
|
|
1046
1059
|
}
|
|
1047
|
-
//
|
|
1048
|
-
program.addHelpText('before', `
|
|
1049
|
-
${chalk_1.default.bold('Quick Start')}
|
|
1050
|
-
trickle init Set up trickle in your project
|
|
1051
|
-
trickle run <command> Run with observability (zero code changes)
|
|
1052
|
-
trickle test [command] Run tests with structured results
|
|
1053
|
-
|
|
1054
|
-
${chalk_1.default.bold('Analyze')}
|
|
1055
|
-
trickle summary Full overview: errors, queries, root causes
|
|
1056
|
-
trickle explain <file> Understand a file: functions, call graph, data flow
|
|
1057
|
-
trickle flamegraph Performance hotspots visualization
|
|
1058
|
-
trickle doctor Health check with recommended actions
|
|
1059
|
-
|
|
1060
|
-
${chalk_1.default.bold('Fix & Verify')}
|
|
1061
|
-
trickle verify --baseline Save metrics before fixing
|
|
1062
|
-
trickle verify Compare after fixing
|
|
1063
|
-
|
|
1064
|
-
${chalk_1.default.bold('All Commands')}
|
|
1065
|
-
`);
|
|
1060
|
+
// Help text removed — visibleCommands filter handles it
|
|
1066
1061
|
program.parse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trickle-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.221",
|
|
4
4
|
"description": "Zero-code runtime observability for JS/Python + AI agent debugging. Traces LangChain, CrewAI, OpenAI, Anthropic, Gemini. Eval, security, compliance, cost tracking. Free, local-first.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"observability",
|
package/src/index.ts
CHANGED
|
@@ -48,10 +48,19 @@ import { hintsCommand } from "./commands/hints";
|
|
|
48
48
|
|
|
49
49
|
const program = new Command();
|
|
50
50
|
|
|
51
|
+
// Only these commands show in --help. All others still work but are hidden.
|
|
52
|
+
const VISIBLE_COMMANDS = new Set(["run", "hints", "vars", "init", "help"]);
|
|
53
|
+
|
|
51
54
|
program
|
|
52
55
|
.name("trickle")
|
|
53
|
-
.description("
|
|
54
|
-
.version("0.
|
|
56
|
+
.description("Runtime type annotations for Python — see tensor shapes, variable types, and crash-time values as you code")
|
|
57
|
+
.version((() => { try { return require("../package.json").version; } catch { return "0.0.0"; } })())
|
|
58
|
+
.configureHelp({
|
|
59
|
+
visibleCommands: (cmd: Command) => {
|
|
60
|
+
return cmd.commands.filter(c => VISIBLE_COMMANDS.has(c.name()));
|
|
61
|
+
},
|
|
62
|
+
})
|
|
63
|
+
.addHelpText("after", "\nAll other commands are available but hidden from this list. Run `trickle <command> --help` for any command.");
|
|
55
64
|
|
|
56
65
|
// trickle init
|
|
57
66
|
program
|
|
@@ -1090,24 +1099,6 @@ if (
|
|
|
1090
1099
|
process.argv.splice(2, 0, "run");
|
|
1091
1100
|
}
|
|
1092
1101
|
|
|
1093
|
-
//
|
|
1094
|
-
program.addHelpText('before', `
|
|
1095
|
-
${chalk.bold('Quick Start')}
|
|
1096
|
-
trickle init Set up trickle in your project
|
|
1097
|
-
trickle run <command> Run with observability (zero code changes)
|
|
1098
|
-
trickle test [command] Run tests with structured results
|
|
1099
|
-
|
|
1100
|
-
${chalk.bold('Analyze')}
|
|
1101
|
-
trickle summary Full overview: errors, queries, root causes
|
|
1102
|
-
trickle explain <file> Understand a file: functions, call graph, data flow
|
|
1103
|
-
trickle flamegraph Performance hotspots visualization
|
|
1104
|
-
trickle doctor Health check with recommended actions
|
|
1105
|
-
|
|
1106
|
-
${chalk.bold('Fix & Verify')}
|
|
1107
|
-
trickle verify --baseline Save metrics before fixing
|
|
1108
|
-
trickle verify Compare after fixing
|
|
1109
|
-
|
|
1110
|
-
${chalk.bold('All Commands')}
|
|
1111
|
-
`);
|
|
1102
|
+
// Help text removed — visibleCommands filter handles it
|
|
1112
1103
|
|
|
1113
1104
|
program.parse();
|