propelix-cli 0.3.0-dev1 → 0.3.0
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.cjs +5 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19562,6 +19562,9 @@ function handleError(error) {
|
|
|
19562
19562
|
console.error(import_chalk.default.red("API Error:"), messages);
|
|
19563
19563
|
} else {
|
|
19564
19564
|
console.error(import_chalk.default.red("Error:"), error.message);
|
|
19565
|
+
if (error.cause) {
|
|
19566
|
+
console.error(import_chalk.default.dim("Cause:"), error.cause instanceof Error ? error.cause.message : String(error.cause));
|
|
19567
|
+
}
|
|
19565
19568
|
}
|
|
19566
19569
|
} else {
|
|
19567
19570
|
console.error(import_chalk.default.red("Error:"), String(error));
|
|
@@ -21355,7 +21358,7 @@ function setupProxy(proxyUrl) {
|
|
|
21355
21358
|
|
|
21356
21359
|
// src/index.ts
|
|
21357
21360
|
var program2 = new Command();
|
|
21358
|
-
program2.name("propelix").description("Propelix CLI").version("0.3.0
|
|
21361
|
+
program2.name("propelix").description("Propelix CLI").version("0.3.0").option("--base-url <url>", "API base URL (default: https://propelix.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--project-id <id>", "Project ID (overrides stored config)").option("--insecure", "Disable TLS certificate verification (for local dev)").option("--proxy <url>", "HTTP(S) proxy URL (overrides HTTPS_PROXY / HTTP_PROXY env vars)").option("--json", "Output as JSON (deprecated, use --format json)").option("--format <fmt>", "Output format: json (default) | table");
|
|
21359
21362
|
program2.hook("preAction", () => {
|
|
21360
21363
|
const globalOpts = program2.opts();
|
|
21361
21364
|
if (globalOpts.insecure) {
|
|
@@ -21377,7 +21380,7 @@ registerImageCommand(program2);
|
|
|
21377
21380
|
registerChatCommand(program2);
|
|
21378
21381
|
registerTestCommand(program2);
|
|
21379
21382
|
program2.command("version").description("Print version number").action(() => {
|
|
21380
|
-
console.log("0.3.0
|
|
21383
|
+
console.log("0.3.0");
|
|
21381
21384
|
});
|
|
21382
21385
|
program2.command("whoami").description("Show the currently authenticated user").action(async () => {
|
|
21383
21386
|
try {
|