propelix-cli 0.0.1-dev5 → 0.0.1-dev6

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 +3 -3
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -17094,16 +17094,16 @@ var ME_QUERY = `
17094
17094
 
17095
17095
  // src/index.ts
17096
17096
  var program2 = new Command();
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");
17097
+ program2.name("propelix").description("Propelix CLI").version("0.0.1-dev6").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");
17098
17098
  registerAuthCommand(program2);
17099
17099
  program2.command("version").description("Print version number").action(() => {
17100
- console.log("0.0.1-dev5");
17100
+ console.log("0.0.1-dev6");
17101
17101
  });
17102
17102
  program2.command("whoami").description("Show the currently authenticated user").action(async () => {
17103
17103
  try {
17104
17104
  const opts = program2.opts();
17105
17105
  const config = requireConfig(opts);
17106
- const client = createGraphQLClient(config);
17106
+ const client = createGraphQLClient({ ...config, insecure: opts.insecure });
17107
17107
  const data = await client.request(ME_QUERY);
17108
17108
  const { me } = data;
17109
17109
  const name = [me.firstName, me.lastName].filter(Boolean).join(" ") || "-";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "propelix-cli",
3
- "version": "0.0.1-dev5",
3
+ "version": "0.0.1-dev6",
4
4
  "description": "CLI for Propelix",
5
5
  "engines": {
6
6
  "node": ">=18"