@cimplify/cli 0.2.0 → 0.2.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.
- package/dist/{add-ZJQJZJEF.mjs → add-FP4UGVGE.mjs} +2 -2
- package/dist/{chunk-5XH72JMJ.mjs → chunk-27QJ5JQI.mjs} +2 -2
- package/dist/{chunk-TAMGCHIL.mjs → chunk-2BO4H6VP.mjs} +11 -3
- package/dist/{chunk-D7D75ONX.mjs → chunk-BXM4AWJQ.mjs} +36 -0
- package/dist/{chunk-XSWWWO6H.mjs → chunk-SN6E73KY.mjs} +11 -11
- package/dist/{chunk-MQMNWLMU.mjs → chunk-VE74N3YS.mjs} +0 -1
- package/dist/{deploy-WCZOGMED.mjs → deploy-UAPJ35KZ.mjs} +4 -4
- package/dist/{dev-4HKIXWXX.mjs → dev-OPKFS77L.mjs} +2 -2
- package/dist/dispatcher.mjs +16 -16
- package/dist/{domains-3RJ4T5IX.mjs → domains-INY76L24.mjs} +2 -2
- package/dist/{env-LBYBCBWV.mjs → env-CMNNPAA4.mjs} +2 -2
- package/dist/{link-SEJNW7JS.mjs → link-PDITLRI4.mjs} +1 -1
- package/dist/{list-D4JC2VWY.mjs → list-MUARZ6RW.mjs} +2 -2
- package/dist/{login-MRYWLQRY.mjs → login-4OB5ZIR4.mjs} +1 -1
- package/dist/{logs-LK7CMBCE.mjs → logs-VQCYRAHN.mjs} +2 -2
- package/dist/{projects-QJUGOCQZ.mjs → projects-KBFX4Q3E.mjs} +2 -2
- package/dist/{repo-MV22OHON.mjs → repo-J5LZOBZZ.mjs} +3 -3
- package/dist/{rollback-XO7RIG2A.mjs → rollback-Z74AP6PL.mjs} +3 -3
- package/dist/{status-7CMVLD54.mjs → status-BYHS4SG3.mjs} +2 -2
- package/package.json +1 -1
- package/templates/storefront-bakery/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-bakery/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-bakery/AGENTS.md +3 -3
- package/templates/storefront-bakery/CLAUDE.md +1 -1
- package/templates/storefront-bakery/README.md +7 -7
- package/templates/storefront-bakery/package.json +2 -2
- package/templates/storefront-fashion/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-fashion/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-fashion/AGENTS.md +3 -3
- package/templates/storefront-fashion/CLAUDE.md +1 -1
- package/templates/storefront-fashion/README.md +8 -8
- package/templates/storefront-fashion/package.json +2 -2
- package/templates/storefront-grocery/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-grocery/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-grocery/AGENTS.md +3 -3
- package/templates/storefront-grocery/CLAUDE.md +1 -1
- package/templates/storefront-grocery/README.md +7 -7
- package/templates/storefront-grocery/package.json +2 -2
- package/templates/storefront-restaurant/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-restaurant/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-restaurant/AGENTS.md +3 -3
- package/templates/storefront-restaurant/CLAUDE.md +1 -1
- package/templates/storefront-restaurant/README.md +7 -7
- package/templates/storefront-restaurant/package.json +2 -2
- package/templates/storefront-retail/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-retail/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-retail/AGENTS.md +3 -3
- package/templates/storefront-retail/CLAUDE.md +1 -1
- package/templates/storefront-retail/README.md +8 -8
- package/templates/storefront-retail/package.json +2 -2
- package/templates/storefront-services/.claude/skills/cimplify-storefront/SKILL.md +10 -10
- package/templates/storefront-services/.cursor/rules/cimplify-storefront.mdc +1 -1
- package/templates/storefront-services/AGENTS.md +3 -3
- package/templates/storefront-services/CLAUDE.md +1 -1
- package/templates/storefront-services/README.md +7 -7
- package/templates/storefront-services/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX, REGISTRY } from './chunk-
|
|
2
|
+
import { REGISTRY_INDEX, REGISTRY } from './chunk-SN6E73KY.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-L6474RPL.mjs';
|
|
4
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
4
|
+
import { parseArgs, flagString, flagBool } from './chunk-BXM4AWJQ.mjs';
|
|
5
5
|
import { CliError, CLI_ERROR_CODE, info, bold, dim, success, result, yellow } from './chunk-NZ4RG62Z.mjs';
|
|
6
6
|
import { mkdirSync, existsSync, writeFileSync } from 'fs';
|
|
7
7
|
import { resolve, join, dirname } from 'path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { promptYesNo } from './chunk-L6474RPL.mjs';
|
|
3
|
-
import { TOKEN_PURPOSE, REPO_PROVIDER, REPO_PROVIDER_VALUES } from './chunk-
|
|
4
|
-
import { parseArgs, flagString, flagBool } from './chunk-
|
|
3
|
+
import { TOKEN_PURPOSE, REPO_PROVIDER, REPO_PROVIDER_VALUES } from './chunk-VE74N3YS.mjs';
|
|
4
|
+
import { parseArgs, flagString, flagBool } from './chunk-BXM4AWJQ.mjs';
|
|
5
5
|
import { ApiClient } from './chunk-4ZVTPMUZ.mjs';
|
|
6
6
|
import { readAuth, readProjectLink } from './chunk-JJYWETGA.mjs';
|
|
7
7
|
import { CliError, CLI_ERROR_CODE, isJsonMode, result, dim, success, info, bold } from './chunk-NZ4RG62Z.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { TERMINAL_DEPLOYMENT_STATUSES, DEPLOYMENT_STATUS } from './chunk-
|
|
3
|
-
import { dim, failure, success } from './chunk-NZ4RG62Z.mjs';
|
|
2
|
+
import { TERMINAL_DEPLOYMENT_STATUSES, DEPLOYMENT_STATUS } from './chunk-VE74N3YS.mjs';
|
|
3
|
+
import { dim, CliError, CLI_ERROR_CODE, failure, success, isJsonMode } from './chunk-NZ4RG62Z.mjs';
|
|
4
4
|
|
|
5
5
|
// src/progress.ts
|
|
6
6
|
var POLL_INTERVAL_MS = 1e3;
|
|
@@ -18,6 +18,7 @@ function renderBar(percent) {
|
|
|
18
18
|
return `[${"#".repeat(filled)}${"-".repeat(empty)}] ${String(clamped).padStart(3)}%`;
|
|
19
19
|
}
|
|
20
20
|
function writeStatusLine(line) {
|
|
21
|
+
if (isJsonMode()) return;
|
|
21
22
|
if (process.stdout.isTTY) {
|
|
22
23
|
process.stdout.write(`\r\x1B[2K${line}`);
|
|
23
24
|
} else {
|
|
@@ -26,6 +27,7 @@ function writeStatusLine(line) {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
function endStatusLine() {
|
|
30
|
+
if (isJsonMode()) return;
|
|
29
31
|
if (process.stdout.isTTY) process.stdout.write("\n");
|
|
30
32
|
}
|
|
31
33
|
function sleep(ms) {
|
|
@@ -47,7 +49,13 @@ async function pollDeployment(client, businessId, projectId, deploymentId, optio
|
|
|
47
49
|
}
|
|
48
50
|
if (Date.now() - startedAt > maxDuration) {
|
|
49
51
|
endStatusLine();
|
|
50
|
-
throw new
|
|
52
|
+
throw new CliError(
|
|
53
|
+
CLI_ERROR_CODE.TIMEOUT,
|
|
54
|
+
"Deployment polling timed out.",
|
|
55
|
+
{
|
|
56
|
+
remediation: "Re-run with `--no-poll` to enqueue without waiting, then check `cimplify status` later."
|
|
57
|
+
}
|
|
58
|
+
);
|
|
51
59
|
}
|
|
52
60
|
await sleep(interval);
|
|
53
61
|
}
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// src/args.ts
|
|
3
|
+
var BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
4
|
+
// Global
|
|
5
|
+
"json",
|
|
6
|
+
"yes",
|
|
7
|
+
"y",
|
|
8
|
+
// Add / list
|
|
9
|
+
"force",
|
|
10
|
+
"all",
|
|
11
|
+
"no-deps",
|
|
12
|
+
"utilities",
|
|
13
|
+
"components",
|
|
14
|
+
// Deploy / rollback
|
|
15
|
+
"prod",
|
|
16
|
+
"no-push",
|
|
17
|
+
"no-poll",
|
|
18
|
+
"allow-dirty",
|
|
19
|
+
// Env
|
|
20
|
+
"show",
|
|
21
|
+
"overwrite",
|
|
22
|
+
"secret",
|
|
23
|
+
"public",
|
|
24
|
+
// Domains
|
|
25
|
+
"attached",
|
|
26
|
+
"primary",
|
|
27
|
+
// Repo / projects
|
|
28
|
+
"purge",
|
|
29
|
+
"no-repo",
|
|
30
|
+
// Dev / login / logs
|
|
31
|
+
"remote",
|
|
32
|
+
"no-browser",
|
|
33
|
+
"follow"
|
|
34
|
+
]);
|
|
3
35
|
function parseArgs(argv) {
|
|
4
36
|
const positional = [];
|
|
5
37
|
const flags = /* @__PURE__ */ new Map();
|
|
@@ -15,6 +47,10 @@ function parseArgs(argv) {
|
|
|
15
47
|
continue;
|
|
16
48
|
}
|
|
17
49
|
const name = arg.slice(2);
|
|
50
|
+
if (BOOLEAN_FLAGS.has(name)) {
|
|
51
|
+
flags.set(name, true);
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
18
54
|
const next = argv[i + 1];
|
|
19
55
|
if (next !== void 0 && !next.startsWith("--")) {
|
|
20
56
|
flags.set(name, next);
|