@cimplify/cli 0.2.2 → 0.2.4
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-YJDP63WM.mjs → add-5JU6S6MB.mjs} +1 -1
- package/dist/{chunk-WLLH5HFI.mjs → chunk-2Y4JWLPE.mjs} +2 -2
- package/dist/{chunk-O36TGF2L.mjs → chunk-7RQTL7FM.mjs} +1 -1
- package/dist/{chunk-2BO4H6VP.mjs → chunk-JOUXICGV.mjs} +1 -1
- package/dist/{chunk-VE74N3YS.mjs → chunk-MXYUAJEW.mjs} +3 -1
- package/dist/{chunk-4ZVTPMUZ.mjs → chunk-NC3GKHDD.mjs} +2 -2
- package/dist/{chunk-SN6E73KY.mjs → chunk-RHAO6VWV.mjs} +138 -6
- package/dist/{deploy-N3GTTUI5.mjs → deploy-M37L5P6H.mjs} +4 -4
- package/dist/{dev-ABPRBTPU.mjs → dev-AQP6TMYK.mjs} +2 -2
- package/dist/dispatcher.mjs +37 -22
- package/dist/{domains-7Y23SAEM.mjs → domains-2ZQ7AG27.mjs} +2 -2
- package/dist/{env-H6M4G4V6.mjs → env-FDBPGU3W.mjs} +2 -2
- package/dist/{link-QPWA5Q6Z.mjs → link-P4K2HRXY.mjs} +1 -1
- package/dist/{list-DS4C3JRB.mjs → list-FDJZCW22.mjs} +1 -1
- package/dist/{login-JFDAQ7T5.mjs → login-RSKGT6GU.mjs} +1 -1
- package/dist/{logs-EABEQBEV.mjs → logs-E2AGTDCF.mjs} +2 -2
- package/dist/{projects-L7JEO3KO.mjs → projects-IHDG76PK.mjs} +2 -2
- package/dist/{repo-54HUIBFC.mjs → repo-XMMLZHLC.mjs} +3 -3
- package/dist/{rollback-YTKRECZ5.mjs → rollback-36O4NOEL.mjs} +3 -3
- package/dist/{status-IFJIYWRQ.mjs → status-6AT4HF63.mjs} +2 -2
- package/dist/{update-UH2HKLOK.mjs → update-4FJNHZYC.mjs} +1 -1
- package/dist/{whoami-INHDUHWA.mjs → whoami-DIJZYZIN.mjs} +1 -1
- package/package.json +1 -1
- package/templates/storefront-bakery/.env.example +6 -0
- package/templates/storefront-bakery/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-bakery/package.json +1 -1
- package/templates/storefront-fashion/.env.example +6 -0
- package/templates/storefront-fashion/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-fashion/package.json +1 -1
- package/templates/storefront-grocery/.env.example +6 -0
- package/templates/storefront-grocery/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-grocery/package.json +1 -1
- package/templates/storefront-restaurant/.env.example +6 -0
- package/templates/storefront-restaurant/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-restaurant/package.json +1 -1
- package/templates/storefront-retail/.env.example +6 -0
- package/templates/storefront-retail/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-retail/package.json +1 -1
- package/templates/storefront-services/.env.example +6 -0
- package/templates/storefront-services/app/.well-known/ucp/route.ts +66 -0
- package/templates/storefront-services/package.json +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-RHAO6VWV.mjs';
|
|
3
3
|
import { promptYesNo } from './chunk-L6474RPL.mjs';
|
|
4
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';
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
3
|
+
import { TOKEN_PURPOSE, REPO_PROVIDER, REPO_PROVIDER_VALUES } from './chunk-MXYUAJEW.mjs';
|
|
4
4
|
import { parseArgs, flagString, flagBool } from './chunk-4SBJVRGM.mjs';
|
|
5
|
-
import { ApiClient } from './chunk-
|
|
5
|
+
import { ApiClient } from './chunk-NC3GKHDD.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';
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { TERMINAL_DEPLOYMENT_STATUSES, DEPLOYMENT_STATUS } from './chunk-
|
|
2
|
+
import { TERMINAL_DEPLOYMENT_STATUSES, DEPLOYMENT_STATUS } from './chunk-MXYUAJEW.mjs';
|
|
3
3
|
import { dim, CliError, CLI_ERROR_CODE, failure, success, isJsonMode } from './chunk-NZ4RG62Z.mjs';
|
|
4
4
|
|
|
5
5
|
// src/progress.ts
|
|
@@ -13,9 +13,11 @@ var DEPLOY_TRIGGER = {
|
|
|
13
13
|
SCHEDULE: "schedule"
|
|
14
14
|
};
|
|
15
15
|
var DEPLOYMENT_STATUS = {
|
|
16
|
+
PENDING: "pending",
|
|
16
17
|
QUEUED: "queued",
|
|
17
|
-
|
|
18
|
+
DEPLOYING: "deploying",
|
|
18
19
|
ACTIVE: "active",
|
|
20
|
+
INACTIVE: "inactive",
|
|
19
21
|
FAILED: "failed",
|
|
20
22
|
CANCELLED: "cancelled",
|
|
21
23
|
SUPERSEDED: "superseded"
|
|
@@ -125,7 +125,7 @@ async function parseResponse(response) {
|
|
|
125
125
|
function mapStatusToCode(status) {
|
|
126
126
|
if (status === STATUS_UNAUTHORIZED) return CLI_ERROR_CODE.AUTH_FAILED;
|
|
127
127
|
if (status === STATUS_FORBIDDEN) return CLI_ERROR_CODE.AUTH_FAILED;
|
|
128
|
-
if (status === STATUS_NOT_FOUND) return CLI_ERROR_CODE.
|
|
128
|
+
if (status === STATUS_NOT_FOUND) return CLI_ERROR_CODE.NOT_FOUND;
|
|
129
129
|
if (status === STATUS_CONFLICT) return CLI_ERROR_CODE.ALREADY_LINKED;
|
|
130
130
|
if (status >= STATUS_SERVER_ERROR_MIN) return CLI_ERROR_CODE.SERVER_ERROR;
|
|
131
131
|
if (status >= STATUS_BAD_REQUEST_MIN) return CLI_ERROR_CODE.INVALID_INPUT;
|
|
@@ -143,7 +143,7 @@ function extractErrorMessage(body, status) {
|
|
|
143
143
|
}
|
|
144
144
|
function toNetworkError(err) {
|
|
145
145
|
if (err instanceof DOMException && err.name === "AbortError") {
|
|
146
|
-
return new CliError(CLI_ERROR_CODE.
|
|
146
|
+
return new CliError(CLI_ERROR_CODE.TIMEOUT, "Request timed out.");
|
|
147
147
|
}
|
|
148
148
|
const message = err instanceof Error ? err.message : String(err);
|
|
149
149
|
return new CliError(CLI_ERROR_CODE.NETWORK_ERROR, `Network error: ${message}`);
|