@camox/cli 0.35.0 → 0.36.1
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createORPCClient } from "@orpc/client";
|
|
3
3
|
import { RPCLink } from "@orpc/client/fetch";
|
|
4
4
|
//#region src/lib/api.ts
|
|
5
|
-
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.
|
|
5
|
+
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.dev";
|
|
6
6
|
function authHeaders(token) {
|
|
7
7
|
return {
|
|
8
8
|
Authorization: `Bearer ${token}`,
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as getProjectBySlug, i as createProject, n as checkSlugAvailability, o as listOrganizations, r as createOrganization, s as setActiveOrganization, t as callTool } from "./api-
|
|
2
|
+
import { a as getProjectBySlug, i as createProject, n as checkSlugAvailability, o as listOrganizations, r as createOrganization, s as setActiveOrganization, t as callTool } from "./api-COfB7AKI.mjs";
|
|
3
3
|
import { object, or } from "@optique/core/constructs";
|
|
4
4
|
import { message } from "@optique/core/message";
|
|
5
5
|
import { defineProgram } from "@optique/core/program";
|
|
@@ -18,8 +18,8 @@ import { ZodError, z } from "zod";
|
|
|
18
18
|
import { fileURLToPath } from "node:url";
|
|
19
19
|
import slugify from "slugify";
|
|
20
20
|
//#region src/lib/auth.ts
|
|
21
|
-
const CAMOX_URL = process.env.CAMOX_URL || "https://app.camox.
|
|
22
|
-
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.
|
|
21
|
+
const CAMOX_URL = process.env.CAMOX_URL || "https://app.camox.dev";
|
|
22
|
+
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.dev";
|
|
23
23
|
const AUTH_TIMEOUT_MS = 300 * 1e3;
|
|
24
24
|
const AUTH_DIR = path.join(os.homedir(), ".camox");
|
|
25
25
|
const AUTH_FILE = path.join(AUTH_DIR, "auth.json");
|
|
@@ -173,7 +173,7 @@ async function authenticateUser() {
|
|
|
173
173
|
async function getOrAuthenticate() {
|
|
174
174
|
const stored = readAuthToken();
|
|
175
175
|
if (stored) {
|
|
176
|
-
const { verifySession } = await import("./api-
|
|
176
|
+
const { verifySession } = await import("./api-LuNKejJE.mjs");
|
|
177
177
|
if (await verifySession(stored.token)) {
|
|
178
178
|
p.log.info(`Authenticated as ${stored.name}`);
|
|
179
179
|
return stored;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camox/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"camox": "./dist/index.mjs"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/node": "^24.12.4",
|
|
28
28
|
"@typescript/native-preview": "7.0.0-dev.20260412.1",
|
|
29
29
|
"vite-plus": "^0.1.21",
|
|
30
|
-
"@camox/api-contract": "0.
|
|
30
|
+
"@camox/api-contract": "0.36.1"
|
|
31
31
|
},
|
|
32
32
|
"nx": {
|
|
33
33
|
"tags": [
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Required — retrieve from https://camox.
|
|
1
|
+
# Required — retrieve from https://app.camox.dev
|
|
2
2
|
CAMOX_SYNC_SECRET=
|
package/dist/api-DYSlqn5b.mjs
DELETED