@cimplify/cli 0.5.3 → 0.6.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-3DANJHCI.mjs → add-5EMD74VD.mjs} +1 -1
- package/dist/cancel-HANLRA6Q.mjs +34 -0
- package/dist/{chunk-2547SIWD.mjs → chunk-DAHD6YWI.mjs} +1 -1
- package/dist/{chunk-BB7IBX6X.mjs → chunk-O6RONGAI.mjs} +1 -1
- package/dist/{chunk-ZEGSQVM5.mjs → chunk-OILDQUAD.mjs} +21 -21
- package/dist/dispatcher.mjs +12 -10
- package/dist/{doctor-TD4RZCCM.mjs → doctor-YPO2MQZF.mjs} +2 -2
- package/dist/{explain-7OSAQVJ6.mjs → explain-L5ZDNMHC.mjs} +1 -1
- package/dist/{introspect-SKQMAYFJ.mjs → introspect-PQ476BL7.mjs} +2 -2
- package/dist/{list-XLJOS2DK.mjs → list-5ORRWEYK.mjs} +1 -1
- package/dist/{update-4GX2J3IB.mjs → update-4AZUFFQ3.mjs} +1 -1
- package/package.json +1 -1
- package/templates/manifest.json +2 -2
- package/templates/storefront-auto/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-auto/.env.example +0 -5
- package/templates/storefront-auto/README.md +0 -4
- package/templates/storefront-auto/next.config.ts +6 -0
- package/templates/storefront-auto/package.json +1 -1
- package/templates/storefront-bakery/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-bakery/.env.example +0 -5
- package/templates/storefront-bakery/AGENTS.md +2 -2
- package/templates/storefront-bakery/README.md +0 -4
- package/templates/storefront-bakery/next.config.ts +6 -0
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-fashion/.env.example +0 -5
- package/templates/storefront-fashion/AGENTS.md +1 -1
- package/templates/storefront-fashion/README.md +0 -4
- package/templates/storefront-fashion/next.config.ts +6 -0
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-grocery/.env.example +0 -5
- package/templates/storefront-grocery/AGENTS.md +1 -2
- package/templates/storefront-grocery/README.md +0 -4
- package/templates/storefront-grocery/next.config.ts +6 -0
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-pharmacy/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-pharmacy/.env.example +0 -5
- package/templates/storefront-pharmacy/AGENTS.md +1 -1
- package/templates/storefront-pharmacy/README.md +0 -4
- package/templates/storefront-pharmacy/next.config.ts +6 -0
- package/templates/storefront-pharmacy/package.json +1 -1
- package/templates/storefront-restaurant/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-restaurant/.env.example +0 -5
- package/templates/storefront-restaurant/AGENTS.md +1 -2
- package/templates/storefront-restaurant/README.md +0 -4
- package/templates/storefront-restaurant/next.config.ts +6 -0
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-retail/.env.example +0 -5
- package/templates/storefront-retail/AGENTS.md +1 -1
- package/templates/storefront-retail/README.md +0 -4
- package/templates/storefront-retail/next.config.ts +6 -0
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/.claude/skills/cimplify-storefront/SKILL.md +2 -2
- package/templates/storefront-services/.env.example +0 -5
- package/templates/storefront-services/AGENTS.md +1 -2
- package/templates/storefront-services/README.md +0 -4
- package/templates/storefront-services/next.config.ts +6 -0
- package/templates/storefront-services/package.json +1 -1
- package/dist/{deploy-3IFXUWPM.mjs → deploy-7BPO5BNB.mjs} +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { REGISTRY_INDEX, REGISTRY } from './chunk-
|
|
2
|
+
import { REGISTRY_INDEX, REGISTRY } from './chunk-OILDQUAD.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-ITAFAORS.mjs';
|
|
4
4
|
import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
|
|
5
5
|
import { CliError, CLI_ERROR_CODE, info, bold, dim, success, result, yellow } from './chunk-E2T2SBP5.mjs';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { parseArgs } from './chunk-C4M3DXKC.mjs';
|
|
3
|
+
import { ApiClient } from './chunk-MAOO6ZZ5.mjs';
|
|
4
|
+
import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
|
|
5
|
+
import { CliError, CLI_ERROR_CODE, success, result } from './chunk-E2T2SBP5.mjs';
|
|
6
|
+
|
|
7
|
+
// src/commands/cancel.ts
|
|
8
|
+
function cancelEndpoint(businessId, projectId, deploymentId) {
|
|
9
|
+
return `/v1/businesses/${encodeURIComponent(businessId)}/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/transitions/cancel`;
|
|
10
|
+
}
|
|
11
|
+
async function run(argv) {
|
|
12
|
+
const args = parseArgs(argv);
|
|
13
|
+
const deploymentId = args.positional[0];
|
|
14
|
+
if (!deploymentId) {
|
|
15
|
+
throw new CliError(
|
|
16
|
+
CLI_ERROR_CODE.INVALID_INPUT,
|
|
17
|
+
"Usage: cimplify cancel <deployment-id>"
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const auth = await readAuth();
|
|
21
|
+
const link = await readProjectLink();
|
|
22
|
+
const client = ApiClient.fromAuth(auth);
|
|
23
|
+
const response = await client.post(
|
|
24
|
+
cancelEndpoint(link.businessId, link.projectId, deploymentId)
|
|
25
|
+
);
|
|
26
|
+
if (response.cancelled) {
|
|
27
|
+
success(`Cancelled deployment ${deploymentId}`);
|
|
28
|
+
} else {
|
|
29
|
+
success(`Deployment ${deploymentId} already terminal; nothing to cancel`);
|
|
30
|
+
}
|
|
31
|
+
result({ deployment_id: deploymentId, cancelled: response.cancelled });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { run as default };
|
|
@@ -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-O6RONGAI.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';
|