propelix-cli 0.0.1-dev1 → 0.0.1-dev3

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 -8
  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);
@@ -17072,10 +17072,6 @@ var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
17072
17072
 
17073
17073
  // src/lib/client.ts
17074
17074
  function createGraphQLClient(config) {
17075
- const url = new URL(`${config.baseUrl}/api/graphql`);
17076
- if (url.hostname.endsWith(".orb.local") || url.hostname === "localhost" || url.hostname === "127.0.0.1") {
17077
- process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
17078
- }
17079
17075
  return new GraphQLClient(`${config.baseUrl}/api/graphql`, {
17080
17076
  headers: { Authorization: `Bearer ${config.token}` }
17081
17077
  });
@@ -17095,10 +17091,10 @@ var ME_QUERY = `
17095
17091
 
17096
17092
  // src/index.ts
17097
17093
  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");
17094
+ program2.name("propelix").description("Propelix CLI").version("0.0.1-dev3").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
17095
  registerAuthCommand(program2);
17100
17096
  program2.command("version").description("Print version number").action(() => {
17101
- console.log("0.0.1-dev1");
17097
+ console.log("0.0.1-dev3");
17102
17098
  });
17103
17099
  program2.command("whoami").description("Show the currently authenticated user").action(async () => {
17104
17100
  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-dev3",
4
4
  "description": "CLI for Propelix",
5
5
  "engines": { "node": ">=18" },
6
6
  "license": "UNLICENSED",