trickle-cli 0.1.222 → 0.1.224
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/commands/run.js +2 -2
- package/package.json +1 -1
- package/src/commands/run.ts +2 -2
package/dist/commands/run.js
CHANGED
|
@@ -161,7 +161,7 @@ function detectSingleFile(command) {
|
|
|
161
161
|
// ── Auto-detect runtime from file extension ──
|
|
162
162
|
function autoDetectCommand(input) {
|
|
163
163
|
// If it already starts with a known runtime, return as-is
|
|
164
|
-
if (/^(node|ts-node|tsx|nodemon|bun|deno|python3?|
|
|
164
|
+
if (/^((?:[\w./~-]+\/)?(node|ts-node|tsx|nodemon|bun|deno|python3?(?:\.\d+)?|vitest|jest|mocha|npx|bunx|pytest|uvicorn|gunicorn|flask|django-admin))\b/.test(input)) {
|
|
165
165
|
return input;
|
|
166
166
|
}
|
|
167
167
|
// Check if the first token is a file path
|
|
@@ -1208,7 +1208,7 @@ function injectObservation(command, backendUrl, opts) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
return { instrumentedCommand: command, env };
|
|
1210
1210
|
}
|
|
1211
|
-
const pyMatch = command.match(/^(python3
|
|
1211
|
+
const pyMatch = command.match(/^((?:[\w./~-]+\/)?python3?(?:\.\d+)?)\s/);
|
|
1212
1212
|
if (pyMatch) {
|
|
1213
1213
|
const python = pyMatch[1];
|
|
1214
1214
|
const rest = command.slice(pyMatch[0].length);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trickle-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.224",
|
|
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/commands/run.ts
CHANGED
|
@@ -153,7 +153,7 @@ function detectSingleFile(command: string): string | null {
|
|
|
153
153
|
|
|
154
154
|
function autoDetectCommand(input: string): string {
|
|
155
155
|
// If it already starts with a known runtime, return as-is
|
|
156
|
-
if (/^(node|ts-node|tsx|nodemon|bun|deno|python3?|
|
|
156
|
+
if (/^((?:[\w./~-]+\/)?(node|ts-node|tsx|nodemon|bun|deno|python3?(?:\.\d+)?|vitest|jest|mocha|npx|bunx|pytest|uvicorn|gunicorn|flask|django-admin))\b/.test(input)) {
|
|
157
157
|
return input;
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -1328,7 +1328,7 @@ function injectObservation(
|
|
|
1328
1328
|
return { instrumentedCommand: command, env };
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
|
-
const pyMatch = command.match(/^(python3
|
|
1331
|
+
const pyMatch = command.match(/^((?:[\w./~-]+\/)?python3?(?:\.\d+)?)\s/);
|
|
1332
1332
|
if (pyMatch) {
|
|
1333
1333
|
const python = pyMatch[1];
|
|
1334
1334
|
const rest = command.slice(pyMatch[0].length);
|