@elsium-ai/cli 0.2.0 → 0.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/dist/cli.js +3 -6
- package/dist/commands/trace.d.ts.map +1 -1
- package/package.json +7 -3
package/dist/cli.js
CHANGED
|
@@ -2160,8 +2160,7 @@ function listTraces(tracesPath) {
|
|
|
2160
2160
|
function showTrace(tracesPath, traceId) {
|
|
2161
2161
|
const traceFile = join5(tracesPath, `${traceId}.json`);
|
|
2162
2162
|
if (!existsSync6(traceFile)) {
|
|
2163
|
-
|
|
2164
|
-
process.exit(1);
|
|
2163
|
+
throw new Error(`Trace not found: ${traceId}`);
|
|
2165
2164
|
}
|
|
2166
2165
|
try {
|
|
2167
2166
|
const spans = JSON.parse(readFileSync4(traceFile, "utf-8"));
|
|
@@ -2175,8 +2174,7 @@ function showTrace(tracesPath, traceId) {
|
|
|
2175
2174
|
}
|
|
2176
2175
|
console.log();
|
|
2177
2176
|
} catch (err2) {
|
|
2178
|
-
|
|
2179
|
-
process.exit(1);
|
|
2177
|
+
throw err2 instanceof Error ? err2 : new Error(String(err2));
|
|
2180
2178
|
}
|
|
2181
2179
|
}
|
|
2182
2180
|
async function traceCommand(args) {
|
|
@@ -2187,8 +2185,7 @@ async function traceCommand(args) {
|
|
|
2187
2185
|
return;
|
|
2188
2186
|
}
|
|
2189
2187
|
if (!/^[a-zA-Z0-9_-]+$/.test(traceId)) {
|
|
2190
|
-
|
|
2191
|
-
process.exit(1);
|
|
2188
|
+
throw new Error("Invalid trace ID format");
|
|
2192
2189
|
}
|
|
2193
2190
|
showTrace(tracesPath, traceId);
|
|
2194
2191
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/commands/trace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/commands/trace.ts"],"names":[],"mappings":"AA6GA,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,iBAchD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elsium-ai/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "CLI tool for ElsiumAI projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Eric Utrera <ebutrera9103@gmail.com>",
|
|
@@ -24,10 +24,14 @@
|
|
|
24
24
|
"dev": "bun --watch src/cli.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@elsium-ai/core": "
|
|
28
|
-
"@elsium-ai/observe": "
|
|
27
|
+
"@elsium-ai/core": "^0.2.1",
|
|
28
|
+
"@elsium-ai/observe": "^0.2.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.7.0"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"registry": "https://registry.npmjs.org",
|
|
35
|
+
"access": "public"
|
|
32
36
|
}
|
|
33
37
|
}
|