@lumerahq/cli 0.11.1 → 0.12.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.
@@ -3,6 +3,13 @@ import {
3
3
  } from "./chunk-NDLYGKS6.js";
4
4
 
5
5
  // src/lib/api.ts
6
+ import { readFileSync } from "fs";
7
+ import { fileURLToPath } from "url";
8
+ import { dirname, join } from "path";
9
+ var __filename = fileURLToPath(import.meta.url);
10
+ var __dirname = dirname(__filename);
11
+ var pkg = JSON.parse(readFileSync(join(__dirname, "../../package.json"), "utf-8"));
12
+ var CLI_USER_AGENT = `lumera-cli/${pkg.version}`;
6
13
  var ApiClient = class {
7
14
  baseUrl;
8
15
  token;
@@ -20,6 +27,7 @@ var ApiClient = class {
20
27
  const headers = {
21
28
  "Content-Type": "application/json",
22
29
  Authorization: `Bearer ${this.token}`,
30
+ "User-Agent": CLI_USER_AGENT,
23
31
  ...options.headers
24
32
  };
25
33
  const response = await fetch(url, {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createApiClient,
6
6
  loadEnv
7
- } from "./chunk-HIYM7EM2.js";
7
+ } from "./chunk-UGFGRGNP.js";
8
8
  import {
9
9
  getToken
10
10
  } from "./chunk-NDLYGKS6.js";
package/dist/index.js CHANGED
@@ -208,29 +208,29 @@ async function main() {
208
208
  switch (command) {
209
209
  // Resource commands
210
210
  case "plan":
211
- await import("./resources-ZRAW4EFI.js").then((m) => m.plan(args.slice(1)));
211
+ await import("./resources-4AP5AXH5.js").then((m) => m.plan(args.slice(1)));
212
212
  break;
213
213
  case "apply":
214
- await import("./resources-ZRAW4EFI.js").then((m) => m.apply(args.slice(1)));
214
+ await import("./resources-4AP5AXH5.js").then((m) => m.apply(args.slice(1)));
215
215
  break;
216
216
  case "pull":
217
- await import("./resources-ZRAW4EFI.js").then((m) => m.pull(args.slice(1)));
217
+ await import("./resources-4AP5AXH5.js").then((m) => m.pull(args.slice(1)));
218
218
  break;
219
219
  case "destroy":
220
- await import("./resources-ZRAW4EFI.js").then((m) => m.destroy(args.slice(1)));
220
+ await import("./resources-4AP5AXH5.js").then((m) => m.destroy(args.slice(1)));
221
221
  break;
222
222
  case "list":
223
- await import("./resources-ZRAW4EFI.js").then((m) => m.list(args.slice(1)));
223
+ await import("./resources-4AP5AXH5.js").then((m) => m.list(args.slice(1)));
224
224
  break;
225
225
  case "show":
226
- await import("./resources-ZRAW4EFI.js").then((m) => m.show(args.slice(1)));
226
+ await import("./resources-4AP5AXH5.js").then((m) => m.show(args.slice(1)));
227
227
  break;
228
228
  // Development
229
229
  case "dev":
230
- await import("./dev-2HVDP3NX.js").then((m) => m.dev(args.slice(1)));
230
+ await import("./dev-IFEYXWVJ.js").then((m) => m.dev(args.slice(1)));
231
231
  break;
232
232
  case "run":
233
- await import("./run-47GF5VVS.js").then((m) => m.run(args.slice(1)));
233
+ await import("./run-PBM4WOJT.js").then((m) => m.run(args.slice(1)));
234
234
  break;
235
235
  // Project
236
236
  case "init":
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  createApiClient,
6
6
  loadEnv
7
- } from "./chunk-HIYM7EM2.js";
7
+ } from "./chunk-UGFGRGNP.js";
8
8
  import {
9
9
  getToken
10
10
  } from "./chunk-NDLYGKS6.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient,
3
3
  loadEnv
4
- } from "./chunk-HIYM7EM2.js";
4
+ } from "./chunk-UGFGRGNP.js";
5
5
  import {
6
6
  getToken
7
7
  } from "./chunk-NDLYGKS6.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/cli",
3
- "version": "0.11.1",
3
+ "version": "0.12.0",
4
4
  "description": "CLI for building and deploying Lumera apps",
5
5
  "type": "module",
6
6
  "engines": {