@camox/cli 0.48.0 → 0.51.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.
|
@@ -32,7 +32,7 @@ const NOT_PUBLISHED_CODES = {
|
|
|
32
32
|
};
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/lib/api.ts
|
|
35
|
-
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.
|
|
35
|
+
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.ai";
|
|
36
36
|
installLocalhostDns(new URL(CAMOX_API_URL).hostname);
|
|
37
37
|
function authHeaders(token) {
|
|
38
38
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as NOT_PUBLISHED_CODES, i as getProject, l as NO_DEVELOPMENT_DRAFT_ERROR, n as developmentDraftHeaders, o as DEVELOPMENT_DRAFT, r as getDevelopmentDraft, s as DRAFT_ENDED_ERROR_CODE, t as callTool } from "./api-
|
|
2
|
+
import { c as NOT_PUBLISHED_CODES, i as getProject, l as NO_DEVELOPMENT_DRAFT_ERROR, n as developmentDraftHeaders, o as DEVELOPMENT_DRAFT, r as getDevelopmentDraft, s as DRAFT_ENDED_ERROR_CODE, t as callTool } from "./api-BmElZEx0.mjs";
|
|
3
3
|
import { t as installLocalhostDns } from "./local-dns-DQIT1ucr.mjs";
|
|
4
4
|
import { a as removeAuthTokenForUrl, i as readAuthTokenForUrl, n as isLoopbackUrl, o as verifyOneTimeToken, r as normalizeUrl, s as writeAuthTokenForUrl, t as createPreviewSignInUrl } from "./auth-core-xLeorUUV.mjs";
|
|
5
5
|
import { object, or } from "@optique/core/constructs";
|
|
@@ -19,8 +19,8 @@ import { tmpdir } from "node:os";
|
|
|
19
19
|
import path, { basename, extname, join } from "node:path";
|
|
20
20
|
import { ZodError, z } from "zod";
|
|
21
21
|
//#region src/lib/auth.ts
|
|
22
|
-
const CAMOX_URL = process.env.CAMOX_URL || "https://app.camox.
|
|
23
|
-
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.
|
|
22
|
+
const CAMOX_URL = process.env.CAMOX_URL || "https://app.camox.ai";
|
|
23
|
+
const CAMOX_API_URL = process.env.CAMOX_API_URL || "https://api.camox.ai";
|
|
24
24
|
const AUTH_TIMEOUT_MS = 3e5;
|
|
25
25
|
function readAuthToken() {
|
|
26
26
|
return readAuthTokenForUrl(CAMOX_URL);
|
|
@@ -118,7 +118,7 @@ async function authenticateUser() {
|
|
|
118
118
|
async function getOrAuthenticate() {
|
|
119
119
|
const stored = readAuthToken();
|
|
120
120
|
if (stored) {
|
|
121
|
-
const { verifySession } = await import("./api-
|
|
121
|
+
const { verifySession } = await import("./api-fK9mFA_F.mjs");
|
|
122
122
|
if (await verifySession(stored.token)) {
|
|
123
123
|
p.log.info(`Authenticated as ${stored.name}`);
|
|
124
124
|
return stored;
|
|
@@ -954,7 +954,7 @@ async function handler$10(args) {
|
|
|
954
954
|
//#region src/commands/init.ts
|
|
955
955
|
const parser$9 = command("init", object({ command: constant("init") }));
|
|
956
956
|
const handler$9 = init;
|
|
957
|
-
const DASHBOARD_URL = process.env.CAMOX_URL || "https://app.camox.
|
|
957
|
+
const DASHBOARD_URL = process.env.CAMOX_URL || "https://app.camox.ai";
|
|
958
958
|
/**
|
|
959
959
|
* Projects are created from the dashboard, which hosts them, so `camox init` (and
|
|
960
960
|
* `npm create camox`, which runs it) only says where to go. It exits non-zero, since it created
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camox/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bin": {
|
|
6
6
|
"camox": "./dist/index.mjs"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^24.12.4",
|
|
30
30
|
"vite-plus": "1.3.0",
|
|
31
|
-
"@camox/api-contract": "0.
|
|
31
|
+
"@camox/api-contract": "0.51.0"
|
|
32
32
|
},
|
|
33
33
|
"nx": {
|
|
34
34
|
"tags": [
|
package/dist/api-DeE66CPa.mjs
DELETED