@uniformdev/cli 20.50.2-alpha.149 → 20.50.2-alpha.167
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.
- package/dist/{chunk-7P2U2VCH.mjs → chunk-6GYRC5EF.mjs} +34 -31
- package/dist/defaultConfig.mjs +1 -1
- package/dist/index.mjs +401 -345
- package/package.json +29 -30
|
@@ -5,9 +5,9 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
9
|
-
import { fileURLToPath } from "url";
|
|
8
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.58.9_@types+node@26.0.0__jiti@2.7.0_postcss@8.5.1_7017c7d2ba4cec51f3116591eb787c26/node_modules/tsup/assets/esm_shims.js
|
|
10
9
|
import path from "path";
|
|
10
|
+
import { fileURLToPath } from "url";
|
|
11
11
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
12
12
|
var getDirname = () => path.dirname(getFilename());
|
|
13
13
|
var __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -22,7 +22,7 @@ import { fetch as undiciFetch, ProxyAgent } from "undici";
|
|
|
22
22
|
// package.json
|
|
23
23
|
var package_default = {
|
|
24
24
|
name: "@uniformdev/cli",
|
|
25
|
-
version: "20.
|
|
25
|
+
version: "20.71.0",
|
|
26
26
|
description: "Uniform command line interface tool",
|
|
27
27
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
28
28
|
main: "./cli.js",
|
|
@@ -47,7 +47,7 @@ var package_default = {
|
|
|
47
47
|
format: 'prettier --write "src/**/*.{js,ts,tsx}"'
|
|
48
48
|
},
|
|
49
49
|
dependencies: {
|
|
50
|
-
"@inquirer/prompts": "^
|
|
50
|
+
"@inquirer/prompts": "^8.5.2",
|
|
51
51
|
"@thi.ng/mime": "^2.2.23",
|
|
52
52
|
"@uniformdev/assets": "workspace:*",
|
|
53
53
|
"@uniformdev/automations-sdk": "workspace:*",
|
|
@@ -59,38 +59,37 @@ var package_default = {
|
|
|
59
59
|
"@uniformdev/richtext": "workspace:*",
|
|
60
60
|
"call-bind": "^1.0.2",
|
|
61
61
|
colorette: "2.0.20",
|
|
62
|
-
cosmiconfig: "9.0.
|
|
62
|
+
cosmiconfig: "9.0.2",
|
|
63
63
|
"cosmiconfig-typescript-loader": "5.0.0",
|
|
64
|
-
diff: "^
|
|
65
|
-
dotenv: "^
|
|
66
|
-
esbuild: "0.
|
|
64
|
+
diff: "^9.0.0",
|
|
65
|
+
dotenv: "^17.4.2",
|
|
66
|
+
esbuild: "0.28.1",
|
|
67
67
|
execa: "5.1.1",
|
|
68
|
-
"file-type": "^
|
|
68
|
+
"file-type": "^22.0.1",
|
|
69
69
|
"fs-jetpack": "5.1.0",
|
|
70
70
|
"image-size": "2.0.2",
|
|
71
|
-
"isomorphic-git": "1.
|
|
72
|
-
"js-yaml": "^4.
|
|
71
|
+
"isomorphic-git": "1.38.5",
|
|
72
|
+
"js-yaml": "^4.2.0",
|
|
73
73
|
jsonwebtoken: "9.0.3",
|
|
74
74
|
mitt: "^3.0.1",
|
|
75
75
|
"normalize-newline": "^4.1.0",
|
|
76
|
-
open: "
|
|
77
|
-
ora: "
|
|
76
|
+
open: "11.0.0",
|
|
77
|
+
ora: "9.4.0",
|
|
78
78
|
"p-queue": "7.3.4",
|
|
79
|
-
"posthog-node": "5.
|
|
79
|
+
"posthog-node": "5.38.2",
|
|
80
80
|
"registry-auth-token": "^5.0.0",
|
|
81
81
|
"registry-url": "^6.0.0",
|
|
82
|
-
slugify: "1.6.
|
|
83
|
-
svix: "^1.
|
|
84
|
-
undici: "^7.
|
|
85
|
-
yargs: "^
|
|
86
|
-
zod: "4.3
|
|
82
|
+
slugify: "1.6.9",
|
|
83
|
+
svix: "^1.96.0",
|
|
84
|
+
undici: "^7.28.0",
|
|
85
|
+
yargs: "^18.0.0",
|
|
86
|
+
zod: "4.4.3"
|
|
87
87
|
},
|
|
88
88
|
devDependencies: {
|
|
89
|
-
"@types/diff": "^8.0.0",
|
|
90
89
|
"@types/js-yaml": "4.0.9",
|
|
91
|
-
"@types/jsonwebtoken": "9.0.
|
|
92
|
-
"@types/node": "
|
|
93
|
-
"@types/yargs": "17.0.
|
|
90
|
+
"@types/jsonwebtoken": "9.0.10",
|
|
91
|
+
"@types/node": "26.0.0",
|
|
92
|
+
"@types/yargs": "17.0.35"
|
|
94
93
|
},
|
|
95
94
|
bin: {
|
|
96
95
|
uniform: "./cli.js"
|
|
@@ -167,11 +166,11 @@ function maskApiKey(apiKey) {
|
|
|
167
166
|
const prefix = separatorIndex > 0 ? apiKey.slice(0, separatorIndex) : apiKey.slice(0, 3);
|
|
168
167
|
return `${prefix}...${apiKey.slice(-4)}`;
|
|
169
168
|
}
|
|
170
|
-
function withApiOptions(yargs) {
|
|
169
|
+
function withApiOptions(yargs, { includeEdgeApiHost = false } = {}) {
|
|
171
170
|
const resolvedApiKey = process.env.UNIFORM_CLI_API_KEY ?? // deprecated
|
|
172
171
|
process.env.CANVAS_CLI_API_KEY ?? // deprecated
|
|
173
172
|
process.env.UPM_CLI_API_KEY ?? process.env.UNIFORM_API_KEY;
|
|
174
|
-
|
|
173
|
+
let result = yargs.option("apiKey", {
|
|
175
174
|
describe: "Uniform API key. Defaults to UNIFORM_CLI_API_KEY or UNIFORM_API_KEY env. Supports dotenv.",
|
|
176
175
|
default: resolvedApiKey,
|
|
177
176
|
// Mask the resolved key in --help output so the secret is never printed verbatim.
|
|
@@ -183,12 +182,16 @@ function withApiOptions(yargs) {
|
|
|
183
182
|
default: process.env.UNIFORM_CLI_BASE_URL || "https://uniform.app",
|
|
184
183
|
demandOption: true,
|
|
185
184
|
type: "string"
|
|
186
|
-
})
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
});
|
|
186
|
+
if (includeEdgeApiHost) {
|
|
187
|
+
result = result.option("edgeApiHost", {
|
|
188
|
+
describe: "Uniform edge host. Defaults to UNIFORM_CLI_BASE_EDGE_URL env var or https://uniform.global. Supports dotenv.",
|
|
189
|
+
default: process.env.UNIFORM_CLI_BASE_EDGE_URL || "https://uniform.global",
|
|
190
|
+
demandOption: true,
|
|
191
|
+
type: "string"
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return result.option("proxy", {
|
|
192
195
|
describe: "HTTPS proxy to use for Uniform API calls. Defaults to HTTPS_PROXY, https_proxy, ALL_PROXY, or all_proxy env vars (in that order). Supports dotenv.",
|
|
193
196
|
default: process.env.HTTPS_PROXY || process.env.https_proxy || process.env.ALL_PROXY || process.env.all_proxy,
|
|
194
197
|
type: "string"
|
package/dist/defaultConfig.mjs
CHANGED