propelix-cli 0.0.1-dev1 → 0.0.1-dev2

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.
Files changed (2) hide show
  1. package/dist/index.cjs +4 -4
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -13267,7 +13267,7 @@ var import_fs = __toESM(require("fs"));
13267
13267
  var import_path = __toESM(require("path"));
13268
13268
  var import_os = __toESM(require("os"));
13269
13269
  var CONFIG_FILE_NAME = ".propelix.json";
13270
- var DEFAULT_BASE_URL = "https://app.promptitude.ai";
13270
+ var DEFAULT_BASE_URL = "https://propelix.ai";
13271
13271
  function findConfigFile() {
13272
13272
  const candidates = [
13273
13273
  import_path.default.join(process.cwd(), CONFIG_FILE_NAME),
@@ -13387,7 +13387,7 @@ async function loginViaBrowser(opts) {
13387
13387
  clearTimeout(timeoutHandle);
13388
13388
  server.close();
13389
13389
  spinner.succeed("Authenticated successfully!");
13390
- const filePath = saveConfig({ token, baseUrl: config.baseUrl !== "https://app.promptitude.ai" ? config.baseUrl : void 0 });
13390
+ const filePath = saveConfig({ token, baseUrl: config.baseUrl !== DEFAULT_BASE_URL ? config.baseUrl : void 0 });
13391
13391
  console.log(import_chalk2.default.green("Token saved to"), filePath);
13392
13392
  } catch (error) {
13393
13393
  clearTimeout(timeoutHandle);
@@ -17095,10 +17095,10 @@ var ME_QUERY = `
17095
17095
 
17096
17096
  // src/index.ts
17097
17097
  var program2 = new Command();
17098
- program2.name("propelix").description("Propelix CLI").version("0.0.1-dev1").option("--base-url <url>", "API base URL (default: https://app.promptitude.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--json", "Output as JSON");
17098
+ program2.name("propelix").description("Propelix CLI").version("0.0.1-dev2").option("--base-url <url>", "API base URL (default: https://app.promptitude.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--json", "Output as JSON");
17099
17099
  registerAuthCommand(program2);
17100
17100
  program2.command("version").description("Print version number").action(() => {
17101
- console.log("0.0.1-dev1");
17101
+ console.log("0.0.1-dev2");
17102
17102
  });
17103
17103
  program2.command("whoami").description("Show the currently authenticated user").action(async () => {
17104
17104
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propelix-cli",
3
- "version": "0.0.1-dev1",
3
+ "version": "0.0.1-dev2",
4
4
  "description": "CLI for Propelix",
5
5
  "engines": { "node": ">=18" },
6
6
  "license": "UNLICENSED",