@cimplify/cli 0.8.0 → 0.9.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.
- package/README.md +1 -1
- package/dist/{add-TCU5T7Q2.mjs → add-HCVYD33F.mjs} +1 -1
- package/dist/{assets-EHRFAWZI.mjs → assets-4D7VXRUE.mjs} +1 -1
- package/dist/{auth-step-up-RWBXYJKR.mjs → auth-step-up-NOSM4PUR.mjs} +1 -1
- package/dist/{cancel-DAO23NIX.mjs → cancel-PPNH6K67.mjs} +1 -1
- package/dist/{chunk-IV7SOUH3.mjs → chunk-6C2QY3ZP.mjs} +1 -1
- package/dist/chunk-DE4MI2UK.mjs +6455 -0
- package/dist/{chunk-CV3ZFCX6.mjs → chunk-F4S5KETY.mjs} +3 -2
- package/dist/{chunk-BQ5CWVHQ.mjs → chunk-VHXZ4SGF.mjs} +2 -2
- package/dist/{chunk-7DOC7MLJ.mjs → chunk-WNZ6N634.mjs} +1 -1
- package/dist/{deploy-M63QHHOD.mjs → deploy-H7245HMP.mjs} +2 -2
- package/dist/{dev-VE6VVDEU.mjs → dev-OLW755ID.mjs} +1 -1
- package/dist/dispatcher.mjs +25 -25
- package/dist/{doctor-TBQN7ZSR.mjs → doctor-2OIPFMDS.mjs} +31 -6
- package/dist/{domains-7QM444PU.mjs → domains-H3K2WW55.mjs} +1 -1
- package/dist/{env-VKTOPGSZ.mjs → env-3HY7HFVT.mjs} +1 -1
- package/dist/{explain-LFL4IXXK.mjs → explain-JBPAC2ZB.mjs} +1 -1
- package/dist/{introspect-SHUBKCPY.mjs → introspect-5BX4KGO4.mjs} +2 -2
- package/dist/{link-746RR2HY.mjs → link-O4WAUWWE.mjs} +1 -1
- package/dist/{list-BVSFEBG7.mjs → list-5WLNIKFF.mjs} +1 -1
- package/dist/{login-EMJ33OD4.mjs → login-SCWIIEGR.mjs} +1 -1
- package/dist/{logs-DSYUOYQJ.mjs → logs-2ECJQ3MU.mjs} +1 -1
- package/dist/{projects-QKI6CTCD.mjs → projects-2BITX2YE.mjs} +1 -1
- package/dist/{repo-3BEDOFZX.mjs → repo-WSUAHXWO.mjs} +2 -2
- package/dist/{rollback-ZR6X6IQ5.mjs → rollback-4YLTZRXP.mjs} +1 -1
- package/dist/{status-AIENVHAV.mjs → status-IA7PJ4TV.mjs} +1 -1
- package/dist/{update-THXRRDNG.mjs → update-6EVYEGKD.mjs} +1 -1
- package/dist/{whoami-LPQMPYTE.mjs → whoami-6GFMOY2M.mjs} +1 -1
- package/package.json +2 -2
- package/templates/storefront-auto/lib/brand.ts +1 -1
- package/templates/storefront-auto/next.config.ts +2 -0
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/next.config.ts +2 -0
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/lib/brand.ts +1 -1
- package/templates/storefront-fashion/next.config.ts +2 -0
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/next.config.ts +2 -0
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/lib/brand.ts +1 -1
- package/templates/storefront-pharmacy/next.config.ts +2 -0
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/next.config.ts +2 -0
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/lib/brand.ts +1 -1
- package/templates/storefront-retail/next.config.ts +2 -0
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/next.config.ts +2 -0
- package/templates/storefront-services/package.json +1 -1
- package/dist/chunk-MBLJKDCR.mjs +0 -6455
|
@@ -3,7 +3,8 @@ import { CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
|
|
|
3
3
|
|
|
4
4
|
// src/api-client.ts
|
|
5
5
|
var DEFAULT_API_BASE_URL = "https://api.cimplify.io";
|
|
6
|
-
var ENV_API_BASE_URL = "
|
|
6
|
+
var ENV_API_BASE_URL = "CIMPLIFY_CLI_API_URL";
|
|
7
|
+
var SDK_ENV_API_URL = "CIMPLIFY_API_URL";
|
|
7
8
|
var DEFAULT_TIMEOUT_MS = 3e4;
|
|
8
9
|
var HEADER_AUTHORIZATION = "Authorization";
|
|
9
10
|
var HEADER_STEP_UP = "X-Step-Up-Authorization";
|
|
@@ -195,4 +196,4 @@ function truncate(value, max = 200) {
|
|
|
195
196
|
return value.length > max ? `${value.slice(0, max)}\u2026` : value;
|
|
196
197
|
}
|
|
197
198
|
|
|
198
|
-
export { ApiClient, resolveBaseUrl };
|
|
199
|
+
export { ApiClient, DEFAULT_API_BASE_URL, ENV_API_BASE_URL, SDK_ENV_API_URL, resolveBaseUrl };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// package.json
|
|
3
3
|
var package_default = {
|
|
4
4
|
name: "@cimplify/cli",
|
|
5
|
-
version: "0.
|
|
5
|
+
version: "0.9.0",
|
|
6
6
|
description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
|
|
7
7
|
keywords: [
|
|
8
8
|
"cimplify",
|
|
@@ -47,7 +47,7 @@ var package_default = {
|
|
|
47
47
|
vitest: "^4.1.9"
|
|
48
48
|
},
|
|
49
49
|
dependencies: {
|
|
50
|
-
"@cimplify/sdk": "^0.
|
|
50
|
+
"@cimplify/sdk": "^0.95.0"
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-K5464A3L.mjs';
|
|
3
3
|
import { parseEnvFile } from './chunk-DBZ3UOQ2.mjs';
|
|
4
|
-
import { package_default } from './chunk-
|
|
4
|
+
import { package_default } from './chunk-VHXZ4SGF.mjs';
|
|
5
5
|
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
6
6
|
import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-UBAI443T.mjs';
|
|
7
7
|
import { bold, dim, yellow, green, info, result, red } from './chunk-E2T2SBP5.mjs';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { isFreestyleRemote, gitDetectRoot, gitStatusPorcelain, gitCurrentBranch, gitCurrentSha, gitGetRemoteUrl, gitPushToUrl, gitPush } from './chunk-K5464A3L.mjs';
|
|
3
3
|
import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
|
|
4
|
-
import { fetchRepoRecord, fetchCloneToken } from './chunk-
|
|
4
|
+
import { fetchRepoRecord, fetchCloneToken } from './chunk-6C2QY3ZP.mjs';
|
|
5
5
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
6
6
|
import { REPO_PROVIDER, ENV_SCOPE, DEPLOY_TRIGGER, DEPLOYMENT_STATUS, TOKEN_PURPOSE } from './chunk-MXYUAJEW.mjs';
|
|
7
7
|
import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
|
|
8
|
-
import { ApiClient } from './chunk-
|
|
8
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
9
9
|
import { readAuth, readProjectLink, writeProjectState } from './chunk-UBAI443T.mjs';
|
|
10
10
|
import { CliError, CLI_ERROR_CODE, info, dim, step, success, result, EXIT_CODE } from './chunk-E2T2SBP5.mjs';
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { parseEnvFile, formatEnvFile } from './chunk-DBZ3UOQ2.mjs';
|
|
3
3
|
import { ENV_SCOPE, PUBLIC_ENV_PREFIX } from './chunk-MXYUAJEW.mjs';
|
|
4
4
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
5
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
6
6
|
import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
|
|
7
7
|
import { info, CliError, CLI_ERROR_CODE, dim } from './chunk-E2T2SBP5.mjs';
|
|
8
8
|
import { spawn } from 'child_process';
|
package/dist/dispatcher.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
3
|
-
import { TEMPLATES } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-VHXZ4SGF.mjs';
|
|
3
|
+
import { TEMPLATES } from './chunk-DE4MI2UK.mjs';
|
|
4
4
|
|
|
5
5
|
// src/dispatcher.ts
|
|
6
6
|
var VERSION = package_default.version ?? "unknown";
|
|
@@ -100,7 +100,7 @@ Login flags:
|
|
|
100
100
|
(no flags) Open a browser to authorize this CLI (default)
|
|
101
101
|
--no-browser Print the URL instead of opening it (useful over SSH)
|
|
102
102
|
--api-key <dk_...> Skip the browser and authenticate with a key (CI / headless)
|
|
103
|
-
--base-url <url> API base URL (env:
|
|
103
|
+
--base-url <url> API base URL (env: CIMPLIFY_CLI_API_URL; default https://api.cimplify.io)
|
|
104
104
|
|
|
105
105
|
Deploy flags:
|
|
106
106
|
--prod Deploy to production (default: preview)
|
|
@@ -129,32 +129,32 @@ Local mock server (custom demo data, no fork needed):
|
|
|
129
129
|
cimplify mock --seed-module ./seed.ts Boot from a seed module (defineSeed from @cimplify/sdk/mock)
|
|
130
130
|
`;
|
|
131
131
|
var COMMANDS = {
|
|
132
|
-
login: () => import('./login-
|
|
132
|
+
login: () => import('./login-SCWIIEGR.mjs'),
|
|
133
133
|
logout: () => import('./logout-3RLBZ33M.mjs'),
|
|
134
|
-
whoami: () => import('./whoami-
|
|
135
|
-
projects: () => import('./projects-
|
|
136
|
-
link: () => import('./link-
|
|
134
|
+
whoami: () => import('./whoami-6GFMOY2M.mjs'),
|
|
135
|
+
projects: () => import('./projects-2BITX2YE.mjs'),
|
|
136
|
+
link: () => import('./link-O4WAUWWE.mjs'),
|
|
137
137
|
unlink: () => import('./unlink-RFK74SFP.mjs'),
|
|
138
|
-
deploy: () => import('./deploy-
|
|
139
|
-
cancel: () => import('./cancel-
|
|
140
|
-
rollback: () => import('./rollback-
|
|
141
|
-
env: () => import('./env-
|
|
142
|
-
domains: () => import('./domains-
|
|
143
|
-
logs: () => import('./logs-
|
|
144
|
-
status: () => import('./status-
|
|
145
|
-
dev: () => import('./dev-
|
|
138
|
+
deploy: () => import('./deploy-H7245HMP.mjs'),
|
|
139
|
+
cancel: () => import('./cancel-PPNH6K67.mjs'),
|
|
140
|
+
rollback: () => import('./rollback-4YLTZRXP.mjs'),
|
|
141
|
+
env: () => import('./env-3HY7HFVT.mjs'),
|
|
142
|
+
domains: () => import('./domains-H3K2WW55.mjs'),
|
|
143
|
+
logs: () => import('./logs-2ECJQ3MU.mjs'),
|
|
144
|
+
status: () => import('./status-IA7PJ4TV.mjs'),
|
|
145
|
+
dev: () => import('./dev-OLW755ID.mjs'),
|
|
146
146
|
mock: () => import('./mock-TSUKCLWU.mjs'),
|
|
147
|
-
introspect: () => import('./introspect-
|
|
147
|
+
introspect: () => import('./introspect-5BX4KGO4.mjs'),
|
|
148
148
|
inspect: () => import('./inspect-CGYX4DDF.mjs'),
|
|
149
|
-
doctor: () => import('./doctor-
|
|
150
|
-
explain: () => import('./explain-
|
|
151
|
-
assets: () => import('./assets-
|
|
152
|
-
repo: () => import('./repo-
|
|
153
|
-
list: () => import('./list-
|
|
154
|
-
add: () => import('./add-
|
|
155
|
-
update: () => import('./update-
|
|
156
|
-
upgrade: () => import('./update-
|
|
157
|
-
"auth-step-up": () => import('./auth-step-up-
|
|
149
|
+
doctor: () => import('./doctor-2OIPFMDS.mjs'),
|
|
150
|
+
explain: () => import('./explain-JBPAC2ZB.mjs'),
|
|
151
|
+
assets: () => import('./assets-4D7VXRUE.mjs'),
|
|
152
|
+
repo: () => import('./repo-WSUAHXWO.mjs'),
|
|
153
|
+
list: () => import('./list-5WLNIKFF.mjs'),
|
|
154
|
+
add: () => import('./add-HCVYD33F.mjs'),
|
|
155
|
+
update: () => import('./update-6EVYEGKD.mjs'),
|
|
156
|
+
upgrade: () => import('./update-6EVYEGKD.mjs'),
|
|
157
|
+
"auth-step-up": () => import('./auth-step-up-NOSM4PUR.mjs')
|
|
158
158
|
};
|
|
159
159
|
var COMMAND_PREFIXES = {
|
|
160
160
|
auth: { "step-up": "auth-step-up" }
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { gatherIntrospection } from './chunk-
|
|
2
|
+
import { gatherIntrospection } from './chunk-WNZ6N634.mjs';
|
|
3
3
|
import './chunk-K5464A3L.mjs';
|
|
4
4
|
import './chunk-DBZ3UOQ2.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-VHXZ4SGF.mjs';
|
|
6
6
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
7
|
-
import { ApiClient } from './chunk-
|
|
7
|
+
import { SDK_ENV_API_URL, DEFAULT_API_BASE_URL, ApiClient, ENV_API_BASE_URL } from './chunk-F4S5KETY.mjs';
|
|
8
8
|
import { readAuthOrNull } from './chunk-UBAI443T.mjs';
|
|
9
9
|
import { bold, dim, info, result, isCliError, CLI_ERROR_CODE, red, yellow, green } from './chunk-E2T2SBP5.mjs';
|
|
10
10
|
import { promises } from 'fs';
|
|
@@ -209,7 +209,7 @@ async function runRemoteChecks(snapshot, auth) {
|
|
|
209
209
|
authValid = fail(
|
|
210
210
|
"auth_valid",
|
|
211
211
|
`cannot reach ${auth.apiBaseUrl}`,
|
|
212
|
-
|
|
212
|
+
`check connectivity; if the URL looks wrong, re-run \`cimplify login\` (or set ${ENV_API_BASE_URL})`
|
|
213
213
|
);
|
|
214
214
|
} else {
|
|
215
215
|
const msg = err instanceof Error ? err.message : String(err);
|
|
@@ -242,6 +242,28 @@ async function runRemoteChecks(snapshot, auth) {
|
|
|
242
242
|
}
|
|
243
243
|
return { authValid, projectResolves };
|
|
244
244
|
}
|
|
245
|
+
function deriveBaseUrlChecks(env, auth) {
|
|
246
|
+
const checks = [];
|
|
247
|
+
if (env[SDK_ENV_API_URL]?.trim()) {
|
|
248
|
+
checks.push(
|
|
249
|
+
warn(
|
|
250
|
+
"env_api_url",
|
|
251
|
+
`${SDK_ENV_API_URL} is set but ignored \u2014 it configures the storefront SDK, not this CLI`,
|
|
252
|
+
`use ${ENV_API_BASE_URL} or --base-url to point the CLI at a different API`
|
|
253
|
+
)
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
if (auth && auth.apiBaseUrl !== DEFAULT_API_BASE_URL) {
|
|
257
|
+
checks.push(
|
|
258
|
+
warn(
|
|
259
|
+
"api_base_url",
|
|
260
|
+
`auth points at ${auth.apiBaseUrl} (stored at login), not ${DEFAULT_API_BASE_URL}`,
|
|
261
|
+
"if unintended, re-run `cimplify login` with no base-URL override"
|
|
262
|
+
)
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
return checks;
|
|
266
|
+
}
|
|
245
267
|
function summarize(checks) {
|
|
246
268
|
const s = { total: checks.length, ok: 0, warn: 0, fail: 0, skip: 0 };
|
|
247
269
|
for (const c of checks) s[c.level]++;
|
|
@@ -255,7 +277,10 @@ async function gatherDoctorReport(opts = {}) {
|
|
|
255
277
|
detectLockfile(cwd),
|
|
256
278
|
readAuthOrNull()
|
|
257
279
|
]);
|
|
258
|
-
const local =
|
|
280
|
+
const local = [
|
|
281
|
+
...deriveLocalChecks(snapshot, { nodeModules, lockfile }),
|
|
282
|
+
...deriveBaseUrlChecks(process.env, auth)
|
|
283
|
+
];
|
|
259
284
|
let checks;
|
|
260
285
|
if (opts.offline) {
|
|
261
286
|
checks = [
|
|
@@ -311,4 +336,4 @@ async function run(argv) {
|
|
|
311
336
|
if (report.summary.fail > 0) process.exit(1);
|
|
312
337
|
}
|
|
313
338
|
|
|
314
|
-
export { run as default, deriveLocalChecks, gatherDoctorReport, renderDoctor };
|
|
339
|
+
export { run as default, deriveBaseUrlChecks, deriveLocalChecks, gatherDoctorReport, renderDoctor };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
3
3
|
import { ENV_SCOPE, DOMAIN_TYPE } from './chunk-MXYUAJEW.mjs';
|
|
4
4
|
import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
5
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
6
6
|
import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
|
|
7
7
|
import { CliError, CLI_ERROR_CODE, result, info, dim, bold, success } from './chunk-E2T2SBP5.mjs';
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@ import { formatEnvFile, parseEnvFile, parseKeyValueArg } from './chunk-DBZ3UOQ2.
|
|
|
3
3
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
4
4
|
import { ENV_SCOPE, PUBLIC_ENV_PREFIX, SECRET_MASK } from './chunk-MXYUAJEW.mjs';
|
|
5
5
|
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
6
|
-
import { ApiClient } from './chunk-
|
|
6
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
7
7
|
import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
|
|
8
8
|
import { CliError, CLI_ERROR_CODE, info, dim, result, bold, success } from './chunk-E2T2SBP5.mjs';
|
|
9
9
|
import { promises } from 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-VHXZ4SGF.mjs';
|
|
3
3
|
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
4
4
|
import { bold, dim, info, result, CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
|
|
5
5
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-
|
|
2
|
+
export { run as default, extractMockSeed, gatherIntrospection, renderIntrospection } from './chunk-WNZ6N634.mjs';
|
|
3
3
|
import './chunk-K5464A3L.mjs';
|
|
4
4
|
import './chunk-DBZ3UOQ2.mjs';
|
|
5
|
-
import './chunk-
|
|
5
|
+
import './chunk-VHXZ4SGF.mjs';
|
|
6
6
|
import './chunk-C4M3DXKC.mjs';
|
|
7
7
|
import './chunk-UBAI443T.mjs';
|
|
8
8
|
import './chunk-E2T2SBP5.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
3
|
-
import { ApiClient } from './chunk-
|
|
3
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
4
4
|
import { readAuth, writeProjectLink } from './chunk-UBAI443T.mjs';
|
|
5
5
|
import { CliError, CLI_ERROR_CODE, success, info, dim, result } from './chunk-E2T2SBP5.mjs';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX } from './chunk-
|
|
2
|
+
import { REGISTRY_INDEX } from './chunk-DE4MI2UK.mjs';
|
|
3
3
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
4
4
|
import { CliError, CLI_ERROR_CODE, info, bold, dim, green, result } from './chunk-E2T2SBP5.mjs';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { generatePkcePair, openBrowser } from './chunk-GLXONXS3.mjs';
|
|
3
3
|
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
4
|
-
import { resolveBaseUrl, ApiClient } from './chunk-
|
|
4
|
+
import { resolveBaseUrl, ApiClient } from './chunk-F4S5KETY.mjs';
|
|
5
5
|
import { writeAuth } from './chunk-UBAI443T.mjs';
|
|
6
6
|
import { CliError, CLI_ERROR_CODE, success, result, isJsonMode, step, info, dim } from './chunk-E2T2SBP5.mjs';
|
|
7
7
|
import os from 'os';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { TERMINAL_DEPLOYMENT_STATUSES } from './chunk-MXYUAJEW.mjs';
|
|
3
3
|
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
4
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
5
5
|
import { readAuth, readProjectLink, readProjectState } from './chunk-UBAI443T.mjs';
|
|
6
6
|
import { CliError, CLI_ERROR_CODE, isJsonMode, failure, result, red } from './chunk-E2T2SBP5.mjs';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { REPO_PROVIDER } from './chunk-MXYUAJEW.mjs';
|
|
3
3
|
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
4
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
5
5
|
import { readAuth } from './chunk-UBAI443T.mjs';
|
|
6
6
|
import { CliError, CLI_ERROR_CODE, info, dim, result, bold, success } from './chunk-E2T2SBP5.mjs';
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
export { run as default, fetchCloneToken, fetchRepoRecord } from './chunk-
|
|
2
|
+
export { run as default, fetchCloneToken, fetchRepoRecord } from './chunk-6C2QY3ZP.mjs';
|
|
3
3
|
import './chunk-ITAFAORS.mjs';
|
|
4
4
|
import './chunk-MXYUAJEW.mjs';
|
|
5
5
|
import './chunk-C4M3DXKC.mjs';
|
|
6
|
-
import './chunk-
|
|
6
|
+
import './chunk-F4S5KETY.mjs';
|
|
7
7
|
import './chunk-UBAI443T.mjs';
|
|
8
8
|
import './chunk-E2T2SBP5.mjs';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { pollDeployment } from './chunk-VTR5R5NQ.mjs';
|
|
3
3
|
import { DEPLOYMENT_STATUS, DEPLOY_TRIGGER } from './chunk-MXYUAJEW.mjs';
|
|
4
4
|
import { parseArgs, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
5
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
6
6
|
import { readAuth, readProjectLink, writeProjectState } from './chunk-UBAI443T.mjs';
|
|
7
7
|
import { CliError, CLI_ERROR_CODE, step, success, info, dim, result, EXIT_CODE } from './chunk-E2T2SBP5.mjs';
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
|
|
3
3
|
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
4
|
-
import { ApiClient } from './chunk-
|
|
4
|
+
import { ApiClient } from './chunk-F4S5KETY.mjs';
|
|
5
5
|
import { readAuth, readProjectLink, readProjectState } from './chunk-UBAI443T.mjs';
|
|
6
6
|
import { bold, dim, info, result } from './chunk-E2T2SBP5.mjs';
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { package_default } from './chunk-
|
|
2
|
+
import { package_default } from './chunk-VHXZ4SGF.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
4
4
|
import { parseArgs, flagBool, flagString } from './chunk-C4M3DXKC.mjs';
|
|
5
5
|
import { success, bold, info, dim, result, failure, CliError, CLI_ERROR_CODE, step, isJsonMode } from './chunk-E2T2SBP5.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimplify/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Cimplify CLI — deploy, manage env vars, link projects, and scaffold storefronts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cimplify",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"vitest": "^4.1.9"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@cimplify/sdk": "^0.
|
|
48
|
+
"@cimplify/sdk": "^0.95.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -601,7 +601,7 @@ export const brand: Brand = {
|
|
|
601
601
|
},
|
|
602
602
|
{
|
|
603
603
|
heading: "Cookies",
|
|
604
|
-
body: "We use strictly-necessary cookies for the cart and your session
|
|
604
|
+
body: "We use strictly-necessary cookies for the cart and your session. We do not use advertising cookies.",
|
|
605
605
|
},
|
|
606
606
|
{
|
|
607
607
|
heading: "Your rights",
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -368,7 +368,7 @@ export const brand: Brand = {
|
|
|
368
368
|
},
|
|
369
369
|
{
|
|
370
370
|
heading: "Cookies",
|
|
371
|
-
body: "Strictly-necessary cookies for cart and session
|
|
371
|
+
body: "Strictly-necessary cookies for cart and session only. No advertising cookies.",
|
|
372
372
|
},
|
|
373
373
|
{
|
|
374
374
|
heading: "Your rights",
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -645,7 +645,7 @@ export const brand: Brand = {
|
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
647
|
heading: "Cookies",
|
|
648
|
-
body: "We use a small number of strictly-necessary cookies to keep your cart working and your session signed in
|
|
648
|
+
body: "We use a small number of strictly-necessary cookies to keep your cart working and your session signed in. We do not use advertising cookies.",
|
|
649
649
|
},
|
|
650
650
|
{
|
|
651
651
|
heading: "Your rights",
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -517,7 +517,7 @@ export const brand: Brand = {
|
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
heading: "Cookies",
|
|
520
|
-
body: "We use a small number of strictly-necessary cookies to keep your cart working and your session signed in
|
|
520
|
+
body: "We use a small number of strictly-necessary cookies to keep your cart working and your session signed in. We do not use advertising cookies.",
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
heading: "Your rights",
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|
|
@@ -26,6 +26,8 @@ if (STOREFRONT_URL === "http://127.0.0.1:8787") {
|
|
|
26
26
|
// the SDK's `cacheOptions`, plus `export const revalidate` per page. See
|
|
27
27
|
// https://nextjs.org/docs/app/guides/caching-without-cache-components.
|
|
28
28
|
const nextConfig: NextConfig = {
|
|
29
|
+
// A stray lockfile in a parent folder makes Next infer the wrong root.
|
|
30
|
+
outputFileTracingRoot: process.cwd(),
|
|
29
31
|
async redirects() {
|
|
30
32
|
return [
|
|
31
33
|
{ source: "/login", destination: "/account", permanent: false },
|