propelix-cli 0.0.1-dev4 → 0.0.1-dev5

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 +5 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -17072,6 +17072,9 @@ var parseRequestArgs = (documentOrOptions, variables, requestHeaders) => {
17072
17072
 
17073
17073
  // src/lib/client.ts
17074
17074
  function createGraphQLClient(config) {
17075
+ if (config.insecure) {
17076
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
17077
+ }
17075
17078
  return new GraphQLClient(`${config.baseUrl}/api/graphql`, {
17076
17079
  headers: { Authorization: `Bearer ${config.token}` }
17077
17080
  });
@@ -17091,10 +17094,10 @@ var ME_QUERY = `
17091
17094
 
17092
17095
  // src/index.ts
17093
17096
  var program2 = new Command();
17094
- program2.name("propelix").description("Propelix CLI").version("0.0.1-dev4").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");
17097
+ program2.name("propelix").description("Propelix CLI").version("0.0.1-dev5").option("--base-url <url>", "API base URL (default: https://propelix.ai)").option("--token <token>", "Auth token (overrides stored config)").option("--insecure", "Disable TLS certificate verification (for local dev)").option("--json", "Output as JSON");
17095
17098
  registerAuthCommand(program2);
17096
17099
  program2.command("version").description("Print version number").action(() => {
17097
- console.log("0.0.1-dev4");
17100
+ console.log("0.0.1-dev5");
17098
17101
  });
17099
17102
  program2.command("whoami").description("Show the currently authenticated user").action(async () => {
17100
17103
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propelix-cli",
3
- "version": "0.0.1-dev4",
3
+ "version": "0.0.1-dev5",
4
4
  "description": "CLI for Propelix",
5
5
  "engines": {
6
6
  "node": ">=18"