@cimplify/cli 0.2.0 → 0.2.2
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-YJDP63WM.mjs} +2 -2
- package/dist/{chunk-TAMGCHIL.mjs → chunk-2BO4H6VP.mjs} +11 -3
- package/dist/{chunk-D7D75ONX.mjs → chunk-4SBJVRGM.mjs} +38 -0
- package/dist/chunk-O36TGF2L.mjs +48 -0
- package/dist/{chunk-XSWWWO6H.mjs → chunk-SN6E73KY.mjs} +11 -11
- package/dist/{chunk-MQMNWLMU.mjs → chunk-VE74N3YS.mjs} +0 -1
- package/dist/{chunk-5XH72JMJ.mjs → chunk-WLLH5HFI.mjs} +2 -2
- package/dist/{deploy-WCZOGMED.mjs → deploy-N3GTTUI5.mjs} +4 -4
- package/dist/{dev-4HKIXWXX.mjs → dev-ABPRBTPU.mjs} +2 -2
- package/dist/dispatcher.mjs +25 -20
- package/dist/{domains-3RJ4T5IX.mjs → domains-7Y23SAEM.mjs} +2 -2
- package/dist/{env-LBYBCBWV.mjs → env-H6M4G4V6.mjs} +2 -2
- package/dist/{link-SEJNW7JS.mjs → link-QPWA5Q6Z.mjs} +1 -1
- package/dist/{list-D4JC2VWY.mjs → list-DS4C3JRB.mjs} +2 -2
- package/dist/{login-MRYWLQRY.mjs → login-JFDAQ7T5.mjs} +1 -1
- package/dist/{logs-LK7CMBCE.mjs → logs-EABEQBEV.mjs} +2 -2
- package/dist/{projects-QJUGOCQZ.mjs → projects-L7JEO3KO.mjs} +2 -2
- package/dist/{repo-MV22OHON.mjs → repo-54HUIBFC.mjs} +3 -3
- package/dist/{rollback-XO7RIG2A.mjs → rollback-YTKRECZ5.mjs} +3 -3
- package/dist/{status-7CMVLD54.mjs → status-IFJIYWRQ.mjs} +2 -2
- package/dist/update-UH2HKLOK.mjs +196 -0
- 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-4SBJVRGM.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,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,39 @@
|
|
|
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
|
+
// Update
|
|
15
|
+
"check",
|
|
16
|
+
// Deploy / rollback
|
|
17
|
+
"prod",
|
|
18
|
+
"no-push",
|
|
19
|
+
"no-poll",
|
|
20
|
+
"allow-dirty",
|
|
21
|
+
// Env
|
|
22
|
+
"show",
|
|
23
|
+
"overwrite",
|
|
24
|
+
"secret",
|
|
25
|
+
"public",
|
|
26
|
+
// Domains
|
|
27
|
+
"attached",
|
|
28
|
+
"primary",
|
|
29
|
+
// Repo / projects
|
|
30
|
+
"purge",
|
|
31
|
+
"no-repo",
|
|
32
|
+
// Dev / login / logs
|
|
33
|
+
"remote",
|
|
34
|
+
"no-browser",
|
|
35
|
+
"follow"
|
|
36
|
+
]);
|
|
3
37
|
function parseArgs(argv) {
|
|
4
38
|
const positional = [];
|
|
5
39
|
const flags = /* @__PURE__ */ new Map();
|
|
@@ -15,6 +49,10 @@ function parseArgs(argv) {
|
|
|
15
49
|
continue;
|
|
16
50
|
}
|
|
17
51
|
const name = arg.slice(2);
|
|
52
|
+
if (BOOLEAN_FLAGS.has(name)) {
|
|
53
|
+
flags.set(name, true);
|
|
54
|
+
continue;
|
|
55
|
+
}
|
|
18
56
|
const next = argv[i + 1];
|
|
19
57
|
if (next !== void 0 && !next.startsWith("--")) {
|
|
20
58
|
flags.set(name, next);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// package.json
|
|
3
|
+
var package_default = {
|
|
4
|
+
name: "@cimplify/cli",
|
|
5
|
+
version: "0.2.2",
|
|
6
|
+
description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
|
|
7
|
+
keywords: [
|
|
8
|
+
"cimplify",
|
|
9
|
+
"cli",
|
|
10
|
+
"deploy",
|
|
11
|
+
"storefront"
|
|
12
|
+
],
|
|
13
|
+
license: "MIT",
|
|
14
|
+
bin: {
|
|
15
|
+
cimplify: "dist/dispatcher.mjs"
|
|
16
|
+
},
|
|
17
|
+
files: [
|
|
18
|
+
"dist",
|
|
19
|
+
"templates"
|
|
20
|
+
],
|
|
21
|
+
scripts: {
|
|
22
|
+
"bundle-assets": "bun scripts/bundle-assets.ts",
|
|
23
|
+
prebuild: "bun run bundle-assets",
|
|
24
|
+
build: "tsup",
|
|
25
|
+
"build:binary": "bun run bundle-assets && bun scripts/build-binaries.ts",
|
|
26
|
+
"build:binary:local": "bun run bundle-assets && bun scripts/build-binaries.ts --local",
|
|
27
|
+
"sync:template-pins": "bun scripts/sync-template-pins.ts",
|
|
28
|
+
version: "bun scripts/sync-template-pins.ts && git add templates/*/package.json",
|
|
29
|
+
prepublishOnly: "bun scripts/sync-template-pins.ts && bun run build",
|
|
30
|
+
dev: "bun run bundle-assets && tsup --watch",
|
|
31
|
+
typecheck: "bun run bundle-assets && tsgo --noEmit -p tsconfig.json",
|
|
32
|
+
clean: "rm -rf dist bin src/embedded-assets.ts",
|
|
33
|
+
"lint:ox": "oxlint --fix .",
|
|
34
|
+
format: "oxfmt . --write",
|
|
35
|
+
"format:check": "oxfmt . --check",
|
|
36
|
+
test: "vitest",
|
|
37
|
+
"test:run": "vitest run"
|
|
38
|
+
},
|
|
39
|
+
devDependencies: {
|
|
40
|
+
"@types/node": "^25.6.0",
|
|
41
|
+
"@typescript/native-preview": "^7.0.0-dev.20260503.1",
|
|
42
|
+
tsup: "^8.5.1",
|
|
43
|
+
typescript: "5.9.3",
|
|
44
|
+
vitest: "^4.1.5"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export { package_default };
|