@cimplify/cli 0.12.2 → 0.13.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.
Files changed (52) hide show
  1. package/dist/{add-5ODVFWVR.mjs → add-F7GKDXAD.mjs} +4 -3
  2. package/dist/agent-UTARR75F.mjs +25 -0
  3. package/dist/{assets-4D7VXRUE.mjs → assets-Y4JE6MSG.mjs} +4 -3
  4. package/dist/{auth-step-up-NOSM4PUR.mjs → auth-step-up-EHL5PM2L.mjs} +5 -4
  5. package/dist/{cancel-PPNH6K67.mjs → cancel-QSZE2XC2.mjs} +4 -3
  6. package/dist/{chunk-7P2OGMZ4.mjs → chunk-2VK4UABO.mjs} +5 -5
  7. package/dist/{chunk-ITAFAORS.mjs → chunk-4YIFBYBV.mjs} +2 -1
  8. package/dist/{chunk-DBZ3UOQ2.mjs → chunk-5U5OXOPN.mjs} +1 -1
  9. package/dist/{chunk-PVHB2MHV.mjs → chunk-AMREB4KE.mjs} +2 -2
  10. package/dist/{chunk-F4S5KETY.mjs → chunk-JPXK5BLA.mjs} +1 -1
  11. package/dist/{chunk-K5464A3L.mjs → chunk-OVHZV57L.mjs} +1 -1
  12. package/dist/{chunk-UBAI443T.mjs → chunk-QA36VSLX.mjs} +1 -1
  13. package/dist/{chunk-6C2QY3ZP.mjs → chunk-RR4NOZGY.mjs} +5 -4
  14. package/dist/{chunk-W3WLADJP.mjs → chunk-SVJPU4K7.mjs} +8 -8
  15. package/dist/{chunk-GLXONXS3.mjs → chunk-UP7N53C4.mjs} +1 -1
  16. package/dist/{chunk-VTR5R5NQ.mjs → chunk-VJJDGHZC.mjs} +2 -1
  17. package/dist/{chunk-E2T2SBP5.mjs → chunk-YPC4VU65.mjs} +1 -73
  18. package/dist/chunk-ZPVN6UXL.mjs +74 -0
  19. package/dist/{dev-5MB2BJ6L.mjs → chunk-ZX5ZEOEU.mjs} +78 -216
  20. package/dist/{deploy-H7245HMP.mjs → deploy-UTAYLZOM.mjs} +8 -7
  21. package/dist/dev-WSX75ELC.mjs +169 -0
  22. package/dist/dispatcher.mjs +30 -28
  23. package/dist/{doctor-6Z6YR37N.mjs → doctor-QFCEYEEZ.mjs} +8 -7
  24. package/dist/{domains-H3K2WW55.mjs → domains-OS3DXSDN.mjs} +5 -4
  25. package/dist/{env-3HY7HFVT.mjs → env-UVO4OIEO.mjs} +6 -5
  26. package/dist/{explain-2FLJFJP3.mjs → explain-BZPONVN3.mjs} +3 -2
  27. package/dist/{inspect-CGYX4DDF.mjs → inspect-ULWQHT7J.mjs} +3 -2
  28. package/dist/introspect-HGX4I3XQ.mjs +9 -0
  29. package/dist/{link-O4WAUWWE.mjs → link-VQN2WPZO.mjs} +4 -3
  30. package/dist/{list-27TS2L47.mjs → list-DZTPWNU3.mjs} +3 -2
  31. package/dist/{login-SCWIIEGR.mjs → login-UZ5Y7GIO.mjs} +5 -4
  32. package/dist/{logout-3RLBZ33M.mjs → logout-XYWZR6QJ.mjs} +3 -2
  33. package/dist/{logs-2ECJQ3MU.mjs → logs-YNXDXAF7.mjs} +4 -3
  34. package/dist/{mock-TSUKCLWU.mjs → mock-HFVAAYK2.mjs} +2 -1
  35. package/dist/{projects-2BITX2YE.mjs → projects-RJ44DJKZ.mjs} +4 -3
  36. package/dist/repo-OK6CVG3G.mjs +9 -0
  37. package/dist/{rollback-4YLTZRXP.mjs → rollback-Z2PRL7FS.mjs} +5 -4
  38. package/dist/{status-IA7PJ4TV.mjs → status-RR3GGTVU.mjs} +4 -3
  39. package/dist/{unlink-RFK74SFP.mjs → unlink-JBVZYOA3.mjs} +3 -2
  40. package/dist/{update-VIDP5OKO.mjs → update-2FSGAVDH.mjs} +4 -3
  41. package/dist/{whoami-6GFMOY2M.mjs → whoami-5G32NNEP.mjs} +4 -3
  42. package/package.json +3 -3
  43. package/templates/storefront-auto/package.json +1 -1
  44. package/templates/storefront-bakery/package.json +1 -1
  45. package/templates/storefront-fashion/package.json +1 -1
  46. package/templates/storefront-grocery/package.json +1 -1
  47. package/templates/storefront-pharmacy/package.json +1 -1
  48. package/templates/storefront-restaurant/package.json +1 -1
  49. package/templates/storefront-retail/package.json +1 -1
  50. package/templates/storefront-services/package.json +1 -1
  51. package/dist/introspect-YBDCOO3I.mjs +0 -8
  52. package/dist/repo-WSUAHXWO.mjs +0 -8
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { REGISTRY_INDEX, REGISTRY } from './chunk-W3WLADJP.mjs';
3
- import { promptYesNo } from './chunk-ITAFAORS.mjs';
2
+ import { REGISTRY_INDEX, REGISTRY } from './chunk-SVJPU4K7.mjs';
3
+ import { promptYesNo } from './chunk-4YIFBYBV.mjs';
4
4
  import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
5
- import { CliError, CLI_ERROR_CODE, info, bold, dim, success, result, yellow } from './chunk-E2T2SBP5.mjs';
5
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
6
+ import { info, bold, dim, success, result, yellow } from './chunk-ZPVN6UXL.mjs';
6
7
  import { mkdirSync, existsSync, writeFileSync } from 'fs';
7
8
  import { resolve, join, dirname } from 'path';
8
9
 
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ import { startTunnelRuntime } from './chunk-ZX5ZEOEU.mjs';
3
+ import { info } from './chunk-ZPVN6UXL.mjs';
4
+
5
+ // src/commands/agent.ts
6
+ var FLAG_CHECK = "--check";
7
+ async function run(argv) {
8
+ if (argv.includes(FLAG_CHECK)) {
9
+ info("ok");
10
+ return;
11
+ }
12
+ const cwd = process.cwd();
13
+ info("cimplify agent: supervising the preview tunnel");
14
+ const stop = startTunnelRuntime(cwd);
15
+ await new Promise((resolve) => {
16
+ const shutdown = () => {
17
+ stop();
18
+ resolve();
19
+ };
20
+ process.once("SIGINT", shutdown);
21
+ process.once("SIGTERM", shutdown);
22
+ });
23
+ }
24
+
25
+ export { run as default };
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
3
- import { ApiClient } from './chunk-F4S5KETY.mjs';
4
- import { readAuth } from './chunk-UBAI443T.mjs';
5
- import { CliError, CLI_ERROR_CODE, step, yellow, dim, success, info, result, bold, green } from './chunk-E2T2SBP5.mjs';
3
+ import { ApiClient } from './chunk-JPXK5BLA.mjs';
4
+ import { readAuth } from './chunk-QA36VSLX.mjs';
5
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
6
+ import { step, yellow, dim, success, info, result, bold, green } from './chunk-ZPVN6UXL.mjs';
6
7
  import { createHash } from 'crypto';
7
8
  import { promises } from 'fs';
8
9
  import path from 'path';
@@ -1,9 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { startLoopbackServer, generateState, openBrowser } from './chunk-GLXONXS3.mjs';
2
+ import { startLoopbackServer, generateState, openBrowser } from './chunk-UP7N53C4.mjs';
3
3
  import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
4
- import { resolveBaseUrl } from './chunk-F4S5KETY.mjs';
5
- import { readAuth, writeStepUp } from './chunk-UBAI443T.mjs';
6
- import { isJsonMode, CliError, CLI_ERROR_CODE, step, info, dim, success, result } from './chunk-E2T2SBP5.mjs';
4
+ import { resolveBaseUrl } from './chunk-JPXK5BLA.mjs';
5
+ import { readAuth, writeStepUp } from './chunk-QA36VSLX.mjs';
6
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
7
+ import { isJsonMode, step, info, dim, success, result } from './chunk-ZPVN6UXL.mjs';
7
8
 
8
9
  // src/commands/auth-step-up.ts
9
10
  var FLAG_NO_BROWSER = "no-browser";
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
3
- import { ApiClient } from './chunk-F4S5KETY.mjs';
4
- import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
5
- import { CliError, CLI_ERROR_CODE, success, result } from './chunk-E2T2SBP5.mjs';
3
+ import { ApiClient } from './chunk-JPXK5BLA.mjs';
4
+ import { readAuth, readProjectLink } from './chunk-QA36VSLX.mjs';
5
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
6
+ import { success, result } from './chunk-ZPVN6UXL.mjs';
6
7
 
7
8
  // src/commands/cancel.ts
8
9
  function cancelEndpoint(businessId, projectId, deploymentId) {
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-K5464A3L.mjs';
3
- import { parseEnvFile } from './chunk-DBZ3UOQ2.mjs';
4
- import { package_default } from './chunk-PVHB2MHV.mjs';
2
+ import { gitDetectRoot, gitCurrentBranch, gitCurrentSha, gitStatusPorcelain } from './chunk-OVHZV57L.mjs';
3
+ import { parseEnvFile } from './chunk-5U5OXOPN.mjs';
4
+ import { package_default } from './chunk-AMREB4KE.mjs';
5
5
  import { parseArgs } from './chunk-C4M3DXKC.mjs';
6
- import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-UBAI443T.mjs';
7
- import { bold, dim, yellow, green, info, result, red } from './chunk-E2T2SBP5.mjs';
6
+ import { readAuthOrNull, readProjectLinkOrNull, readProjectState } from './chunk-QA36VSLX.mjs';
7
+ import { bold, dim, yellow, green, info, result, red } from './chunk-ZPVN6UXL.mjs';
8
8
  import { promises } from 'fs';
9
9
  import path from 'path';
10
10
 
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { isAutoYes, isInteractive, CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
2
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
3
+ import { isAutoYes, isInteractive } from './chunk-ZPVN6UXL.mjs';
3
4
  import readline from 'readline';
4
5
 
5
6
  async function promptLine(question) {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
2
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
3
3
 
4
4
  // src/envfile.ts
5
5
  var COMMENT_CHAR = "#";
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@cimplify/cli",
5
- version: "0.12.2",
5
+ version: "0.13.1",
6
6
  description: "Cimplify CLI \u2014 deploy, manage env vars, link projects, and scaffold storefronts",
7
7
  keywords: [
8
8
  "cimplify",
@@ -53,7 +53,7 @@ var package_default = {
53
53
  "@babel/parser": "^8.0.4",
54
54
  "@babel/traverse": "^8.0.4",
55
55
  "@babel/types": "^8.0.4",
56
- "@cimplify/sdk": "^0.99.1"
56
+ "@cimplify/sdk": "^0.99.2"
57
57
  }
58
58
  };
59
59
 
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
2
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
3
3
 
4
4
  // src/api-client.ts
5
5
  var DEFAULT_API_BASE_URL = "https://api.cimplify.io";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
2
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
3
3
  import { spawn } from 'child_process';
4
4
 
5
5
  var GIT_BINARY = "git";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { CliError, CLI_ERROR_CODE } from './chunk-E2T2SBP5.mjs';
2
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
3
3
  import { promises } from 'fs';
4
4
  import os from 'os';
5
5
  import path from 'path';
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { promptYesNo } from './chunk-ITAFAORS.mjs';
2
+ import { promptYesNo } from './chunk-4YIFBYBV.mjs';
3
3
  import { TOKEN_PURPOSE, REPO_PROVIDER, REPO_PROVIDER_VALUES } from './chunk-MXYUAJEW.mjs';
4
4
  import { parseArgs, flagString, flagBool } from './chunk-C4M3DXKC.mjs';
5
- import { ApiClient } from './chunk-F4S5KETY.mjs';
6
- import { readAuth, readProjectLink } from './chunk-UBAI443T.mjs';
7
- import { CliError, CLI_ERROR_CODE, isJsonMode, result, dim, success, info, bold } from './chunk-E2T2SBP5.mjs';
5
+ import { ApiClient } from './chunk-JPXK5BLA.mjs';
6
+ import { readAuth, readProjectLink } from './chunk-QA36VSLX.mjs';
7
+ import { CliError, CLI_ERROR_CODE } from './chunk-YPC4VU65.mjs';
8
+ import { isJsonMode, result, dim, success, info, bold } from './chunk-ZPVN6UXL.mjs';
8
9
 
9
10
  // src/commands/repo.ts
10
11
  var SUB_PROVISION = "provision";