@wix/cli 1.1.72 → 1.1.74

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 (128) hide show
  1. package/build/{DevCommand-5SGSYRVV.js → DevCommand-GVSKRXS5.js} +14 -13
  2. package/build/{DevCommand-5SGSYRVV.js.map → DevCommand-GVSKRXS5.js.map} +1 -1
  3. package/build/{DevCommand-KV7LS2G3.js → DevCommand-VAGCMC3U.js} +15 -14
  4. package/build/{DevCommand-KV7LS2G3.js.map → DevCommand-VAGCMC3U.js.map} +1 -1
  5. package/build/{InstallCommand-7UJAWHRQ.js → InstallCommand-5MQIBFBL.js} +13 -12
  6. package/build/{InstallCommand-7UJAWHRQ.js.map → InstallCommand-5MQIBFBL.js.map} +1 -1
  7. package/build/{LoginCommand-MOCKRK5T.js → LoginCommand-W4U3DVIR.js} +10 -9
  8. package/build/{LoginCommand-MOCKRK5T.js.map → LoginCommand-W4U3DVIR.js.map} +1 -1
  9. package/build/{LogoutCommand-7XEBZVR5.js → LogoutCommand-3K3ZIYOU.js} +8 -7
  10. package/build/{LogoutCommand-7XEBZVR5.js.map → LogoutCommand-3K3ZIYOU.js.map} +1 -1
  11. package/build/PreviewCommand-ANA5Z3MW.js +179 -0
  12. package/build/PreviewCommand-ANA5Z3MW.js.map +1 -0
  13. package/build/{PreviewCommand-767M35FK.js → PreviewCommand-NKC7KYL6.js} +20 -17
  14. package/build/PreviewCommand-NKC7KYL6.js.map +1 -0
  15. package/build/{PublishCommand-YOCH4N4C.js → PublishCommand-CZPHZISV.js} +18 -15
  16. package/build/{PublishCommand-YOCH4N4C.js.map → PublishCommand-CZPHZISV.js.map} +1 -1
  17. package/build/{UninstallCommand-QU3FB54O.js → UninstallCommand-6EXXSJ2T.js} +13 -12
  18. package/build/{UninstallCommand-QU3FB54O.js.map → UninstallCommand-6EXXSJ2T.js.map} +1 -1
  19. package/build/{WhoamiCommand-W3KYZCLQ.js → WhoamiCommand-HKOFLBTT.js} +5 -4
  20. package/build/{WhoamiCommand-W3KYZCLQ.js.map → WhoamiCommand-HKOFLBTT.js.map} +1 -1
  21. package/build/{chunk-HA5QZSIC.js → chunk-2ZHLGYRS.js} +9 -9
  22. package/build/{chunk-EJO5WRC2.js → chunk-5R4V3KU4.js} +2 -2
  23. package/build/{chunk-U66SAJ6H.js → chunk-67M5PWNU.js} +2 -2
  24. package/build/{chunk-DK7B62H5.js → chunk-BIABL47I.js} +3 -3
  25. package/build/{chunk-NYV3AL2A.js → chunk-C2IFONC3.js} +3 -3
  26. package/build/{chunk-XP2YHRIC.js → chunk-CIEBMSKA.js} +1493 -534
  27. package/build/chunk-CIEBMSKA.js.map +1 -0
  28. package/build/chunk-ETFPUCHJ.js +48 -0
  29. package/build/chunk-ETFPUCHJ.js.map +1 -0
  30. package/build/{chunk-QCFSXYK7.js → chunk-EW7MBB2Y.js} +2 -2
  31. package/build/{chunk-MXPPSPSE.js → chunk-F6YVVDBI.js} +4 -4
  32. package/build/chunk-FKASFLTW.js +202 -0
  33. package/build/chunk-FKASFLTW.js.map +1 -0
  34. package/build/chunk-GJA3CCOU.js +23 -0
  35. package/build/chunk-GJA3CCOU.js.map +1 -0
  36. package/build/{chunk-BZHTHESR.js → chunk-HCJQQACZ.js} +3 -20
  37. package/build/chunk-HCJQQACZ.js.map +1 -0
  38. package/build/{chunk-JMICKQ4L.js → chunk-HQI4RWIV.js} +2 -2
  39. package/build/{chunk-B2GZBO6N.js → chunk-IWF7TGCL.js} +2 -2
  40. package/build/{chunk-FLESSZ7K.js → chunk-J52GOW74.js} +11 -6
  41. package/build/chunk-J52GOW74.js.map +1 -0
  42. package/build/{chunk-WN3D6AOY.js → chunk-KUAMU72Z.js} +2 -2
  43. package/build/{chunk-W423UTD3.js → chunk-LXW2RB2I.js} +302 -1
  44. package/build/chunk-LXW2RB2I.js.map +1 -0
  45. package/build/chunk-MIQZ3GCS.js +170 -0
  46. package/build/chunk-MIQZ3GCS.js.map +1 -0
  47. package/build/{chunk-IYTRLTO5.js → chunk-MMXT2FIP.js} +2 -2
  48. package/build/{chunk-HO45MN5W.js → chunk-ODYEJHVS.js} +4 -4
  49. package/build/{chunk-HO45MN5W.js.map → chunk-ODYEJHVS.js.map} +1 -1
  50. package/build/{chunk-JV4Z24YW.js → chunk-PWJKLQOW.js} +28 -207
  51. package/build/chunk-PWJKLQOW.js.map +1 -0
  52. package/build/{chunk-WPFEAMY6.js → chunk-QOEQJQBF.js} +3 -3
  53. package/build/{chunk-SC7ALIWN.js → chunk-R7NPZQEJ.js} +15 -15
  54. package/build/chunk-R7NPZQEJ.js.map +1 -0
  55. package/build/{chunk-WJEIELZZ.js → chunk-RDGRAVZS.js} +24 -4
  56. package/build/chunk-RDGRAVZS.js.map +1 -0
  57. package/build/{run-command-JTMBJFNO.js → chunk-SM4Z46WM.js} +4 -11
  58. package/build/{run-command-JTMBJFNO.js.map → chunk-SM4Z46WM.js.map} +1 -1
  59. package/build/{chunk-3WNB53UP.js → chunk-SPLYGGVU.js} +2 -41
  60. package/build/chunk-SPLYGGVU.js.map +1 -0
  61. package/build/{chunk-GXHXHE4T.js → chunk-YEB7C5JP.js} +3 -3
  62. package/build/{chunk-YKAGNJY6.js → chunk-YFNFTDZT.js} +39 -8
  63. package/build/chunk-YFNFTDZT.js.map +1 -0
  64. package/build/{chunk-M2UM7UOC.js → chunk-YZH5SGYL.js} +4 -4
  65. package/build/{chunk-M2UM7UOC.js.map → chunk-YZH5SGYL.js.map} +1 -1
  66. package/build/{dev-IYIRKVZS.js → dev-HEX7ZENY.js} +32 -28
  67. package/build/{dev-IYIRKVZS.js.map → dev-HEX7ZENY.js.map} +1 -1
  68. package/build/{devtools-YPSDP32D.js → devtools-JB2HYTEA.js} +101 -100
  69. package/build/devtools-JB2HYTEA.js.map +1 -0
  70. package/build/index.js +21 -20
  71. package/build/index.js.map +1 -1
  72. package/build/{install-K6QB66H5.js → install-GAPNVOEL.js} +16 -14
  73. package/build/{install-K6QB66H5.js.map → install-GAPNVOEL.js.map} +1 -1
  74. package/build/{chunk-4T2ZRNF7.js → publish-H5LVDV5T.js} +310 -125
  75. package/build/publish-H5LVDV5T.js.map +1 -0
  76. package/build/render-command-BHONB352.js +62 -0
  77. package/build/render-command-BHONB352.js.map +1 -0
  78. package/build/{render-command-WVDH3UP5.js → render-command-NHF4NH22.js} +10 -9
  79. package/build/{render-command-WVDH3UP5.js.map → render-command-NHF4NH22.js.map} +1 -1
  80. package/build/{render-command-U4JBQ5VU.js → render-command-TA7SSDDK.js} +10 -9
  81. package/build/{render-command-U4JBQ5VU.js.map → render-command-TA7SSDDK.js.map} +1 -1
  82. package/build/{render-command-BNEVGFB3.js → render-command-X4JGYGDQ.js} +9 -8
  83. package/build/{render-command-BNEVGFB3.js.map → render-command-X4JGYGDQ.js.map} +1 -1
  84. package/build/run-command-IBRPX7P2.js +20 -0
  85. package/build/{src-47F5YAXV.js → src-2ACRXM6P.js} +7 -6
  86. package/build/{src-47F5YAXV.js.map → src-2ACRXM6P.js.map} +1 -1
  87. package/build/{src-HYVRUANU.js → src-4YNE4AHQ.js} +15 -14
  88. package/build/{src-HYVRUANU.js.map → src-4YNE4AHQ.js.map} +1 -1
  89. package/build/{src-GZEU2SLH.js → src-KHRPRAN2.js} +23 -19
  90. package/build/src-KHRPRAN2.js.map +1 -0
  91. package/build/{src-KQAMIMTX.js → src-ZJBGAL5R.js} +6 -6
  92. package/build/{sync-types-HTC3Y77F.js → sync-types-M7RS6ZZJ.js} +10 -10
  93. package/build/sync-types-M7RS6ZZJ.js.map +1 -0
  94. package/build/{uninstall-YCWGZ5F2.js → uninstall-RPIU3BOK.js} +16 -14
  95. package/build/{uninstall-YCWGZ5F2.js.map → uninstall-RPIU3BOK.js.map} +1 -1
  96. package/package.json +2 -2
  97. package/build/PreviewCommand-767M35FK.js.map +0 -1
  98. package/build/chunk-3WNB53UP.js.map +0 -1
  99. package/build/chunk-4T2ZRNF7.js.map +0 -1
  100. package/build/chunk-BZHTHESR.js.map +0 -1
  101. package/build/chunk-FLESSZ7K.js.map +0 -1
  102. package/build/chunk-JV4Z24YW.js.map +0 -1
  103. package/build/chunk-SC7ALIWN.js.map +0 -1
  104. package/build/chunk-W423UTD3.js.map +0 -1
  105. package/build/chunk-WJEIELZZ.js.map +0 -1
  106. package/build/chunk-XP2YHRIC.js.map +0 -1
  107. package/build/chunk-YKAGNJY6.js.map +0 -1
  108. package/build/devtools-YPSDP32D.js.map +0 -1
  109. package/build/preview-RVQWLNGC.js +0 -130
  110. package/build/preview-RVQWLNGC.js.map +0 -1
  111. package/build/publish-T4HAYBKH.js +0 -349
  112. package/build/publish-T4HAYBKH.js.map +0 -1
  113. package/build/src-GZEU2SLH.js.map +0 -1
  114. /package/build/{chunk-HA5QZSIC.js.map → chunk-2ZHLGYRS.js.map} +0 -0
  115. /package/build/{chunk-EJO5WRC2.js.map → chunk-5R4V3KU4.js.map} +0 -0
  116. /package/build/{chunk-U66SAJ6H.js.map → chunk-67M5PWNU.js.map} +0 -0
  117. /package/build/{chunk-DK7B62H5.js.map → chunk-BIABL47I.js.map} +0 -0
  118. /package/build/{chunk-NYV3AL2A.js.map → chunk-C2IFONC3.js.map} +0 -0
  119. /package/build/{chunk-QCFSXYK7.js.map → chunk-EW7MBB2Y.js.map} +0 -0
  120. /package/build/{chunk-MXPPSPSE.js.map → chunk-F6YVVDBI.js.map} +0 -0
  121. /package/build/{chunk-JMICKQ4L.js.map → chunk-HQI4RWIV.js.map} +0 -0
  122. /package/build/{chunk-B2GZBO6N.js.map → chunk-IWF7TGCL.js.map} +0 -0
  123. /package/build/{chunk-WN3D6AOY.js.map → chunk-KUAMU72Z.js.map} +0 -0
  124. /package/build/{chunk-IYTRLTO5.js.map → chunk-MMXT2FIP.js.map} +0 -0
  125. /package/build/{chunk-WPFEAMY6.js.map → chunk-QOEQJQBF.js.map} +0 -0
  126. /package/build/{chunk-GXHXHE4T.js.map → chunk-YEB7C5JP.js.map} +0 -0
  127. /package/build/{src-KQAMIMTX.js.map → run-command-IBRPX7P2.js.map} +0 -0
  128. /package/build/{sync-types-HTC3Y77F.js.map → src-ZJBGAL5R.js.map} +0 -0
@@ -0,0 +1,170 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+ import {
4
+ loadProjectGridAppContent
5
+ } from "./chunk-YEB7C5JP.js";
6
+ import {
7
+ deployAppResponseSchema,
8
+ getDeploymentResponseSchema
9
+ } from "./chunk-QKXNIB4D.js";
10
+ import {
11
+ httpRequest
12
+ } from "./chunk-ETFPUCHJ.js";
13
+ import {
14
+ getDeployment
15
+ } from "./chunk-HQI4RWIV.js";
16
+ import {
17
+ DeploymentPipelinesStatus
18
+ } from "./chunk-6XRFJZTQ.js";
19
+ import {
20
+ execa
21
+ } from "./chunk-E2POOOG2.js";
22
+ import {
23
+ AppType,
24
+ DeploymentOperation,
25
+ RcLabel,
26
+ deployApp
27
+ } from "./chunk-MMXT2FIP.js";
28
+ import {
29
+ pWaitFor
30
+ } from "./chunk-YFNFTDZT.js";
31
+ import {
32
+ CliError,
33
+ CliErrorCode,
34
+ require_lib
35
+ } from "./chunk-YFRORUA4.js";
36
+ import {
37
+ __toESM,
38
+ init_esm_shims
39
+ } from "./chunk-PYIAC2GK.js";
40
+
41
+ // ../cli-site-old/src/git/index.ts
42
+ init_esm_shims();
43
+ var BASE_REMOTE_REF = "refs/remotes/";
44
+ var ORIGIN = "origin/";
45
+ var getDefaultBranch = async (writeCrashReport) => {
46
+ try {
47
+ const { stdout } = await execa("git", [
48
+ "symbolic-ref",
49
+ `${BASE_REMOTE_REF}${ORIGIN}HEAD`
50
+ ]);
51
+ const fullName = stdout.replace(BASE_REMOTE_REF, "");
52
+ return fullName;
53
+ } catch (error) {
54
+ writeCrashReport(error);
55
+ return null;
56
+ }
57
+ };
58
+
59
+ // ../cli-site-old/src/gridapp/deployApp.ts
60
+ init_esm_shims();
61
+ var import_variant = __toESM(require_lib(), 1);
62
+ var DeploymentSource = (0, import_variant.variant)({
63
+ local: {},
64
+ remote: (0, import_variant.fields)()
65
+ });
66
+ async function getDeploymentSourceData(model, source) {
67
+ return (0, import_variant.match)(source, {
68
+ local: async () => ({
69
+ deploymentData: {
70
+ revision: model.revision,
71
+ content: await loadProjectGridAppContent(model.projectFolder)
72
+ }
73
+ }),
74
+ remote: () => ({})
75
+ });
76
+ }
77
+ async function deployGridApp(opts) {
78
+ const deploymentSourceData = await getDeploymentSourceData(
79
+ opts.model,
80
+ opts.source
81
+ );
82
+ try {
83
+ const { data } = await httpRequest(
84
+ {
85
+ type: "code",
86
+ authState: opts.authState
87
+ },
88
+ deployApp({
89
+ deploymentOperation: opts.operation,
90
+ appType: AppType.VELO_ISOLATED,
91
+ ...deploymentSourceData,
92
+ ...opts.operation === DeploymentOperation.RC && {
93
+ rcDeploymentParams: {
94
+ rcLabel: RcLabel.WIX_CLI
95
+ }
96
+ }
97
+ }),
98
+ { retries: 3, maxTimeout: 3 * 1e3 }
99
+ );
100
+ const result = deployAppResponseSchema.safeParse(data);
101
+ if (!result.success) {
102
+ throw new CliError({
103
+ code: CliErrorCode.InvalidDeployAppResponse(),
104
+ info: { data },
105
+ cause: result.error
106
+ });
107
+ }
108
+ return result.data.deploymentInfo;
109
+ } catch (e) {
110
+ throw new CliError({
111
+ code: CliErrorCode.FailedToDeploySite(),
112
+ cause: e
113
+ });
114
+ }
115
+ }
116
+ async function getDeploymentStatus({
117
+ deploymentId,
118
+ authState
119
+ }) {
120
+ const deploymentStatus = await pWaitFor(
121
+ async () => {
122
+ try {
123
+ const { data } = await httpRequest(
124
+ {
125
+ type: "editor",
126
+ authState
127
+ },
128
+ getDeployment({
129
+ deploymentId
130
+ }),
131
+ { retries: 2 }
132
+ );
133
+ const result = getDeploymentResponseSchema.safeParse(data);
134
+ if (!result.success) {
135
+ throw new CliError({
136
+ code: CliErrorCode.InvalidGetDeploymentResponse(),
137
+ info: { data },
138
+ cause: result.error
139
+ });
140
+ }
141
+ const status = result.data.deployment.deploymentPipelinesStatus;
142
+ if (status === DeploymentPipelinesStatus.IN_PROGRESS) {
143
+ return false;
144
+ }
145
+ return pWaitFor.resolveWith(status);
146
+ } catch (err) {
147
+ throw new CliError({
148
+ code: CliErrorCode.FailedToGetDeploymentStatus(),
149
+ cause: err
150
+ });
151
+ }
152
+ },
153
+ {
154
+ // Poll each 2 seconds
155
+ interval: 2 * 1e3,
156
+ // Fail if 2 minutes passed
157
+ timeout: 2 * 60 * 1e3
158
+ }
159
+ );
160
+ return deploymentStatus;
161
+ }
162
+
163
+ export {
164
+ getDefaultBranch,
165
+ DeploymentSource,
166
+ getDeploymentSourceData,
167
+ deployGridApp,
168
+ getDeploymentStatus
169
+ };
170
+ //# sourceMappingURL=chunk-MIQZ3GCS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../cli-site-old/src/git/index.ts","../../cli-site-old/src/gridapp/deployApp.ts"],"sourcesContent":["import { execa } from 'execa';\n\nconst BASE_REMOTE_REF = 'refs/remotes/';\nconst ORIGIN = 'origin/';\n\nexport const getDefaultBranch = async (\n writeCrashReport: (error: unknown) => void\n) => {\n try {\n const { stdout } = await execa('git', [\n 'symbolic-ref',\n `${BASE_REMOTE_REF}${ORIGIN}HEAD`,\n ]);\n\n const fullName = stdout.replace(BASE_REMOTE_REF, '');\n return fullName;\n } catch (error) {\n // This command can fail due to several user-related reasons, but all usages are recoverable\n writeCrashReport(error);\n return null;\n }\n};\n","import { deployApp } from '@wix/ambassador-velo-apps-v1-app/http';\nimport {\n AppType,\n DeploymentOperation,\n RcLabel,\n} from '@wix/ambassador-velo-apps-v1-app/types';\nimport type { AuthState } from '@wix/cli-auth';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport { getDeployment } from '@wix/ambassador-document-management-editor-deployments-v1-deployment/http';\nimport { DeploymentPipelinesStatus } from '@wix/ambassador-document-management-editor-deployments-v1-deployment/types';\nimport type { VariantOf, TypesOf } from 'variant';\nimport { fields, match, variant } from 'variant';\nimport pWaitFor from 'p-wait-for';\nimport type { ProjectModel } from '../model.js';\nimport { httpRequest } from '../http-request.js';\nimport { loadProjectGridAppContent } from './loadProjectGridAppContent.js';\nimport {\n deployAppResponseSchema,\n getDeploymentResponseSchema,\n} from '../schemas.js';\n\nexport const DeploymentSource = variant({\n local: {},\n remote: fields<{\n branch?: string;\n }>(),\n});\nexport type DeploymentSource = VariantOf<typeof DeploymentSource>;\nexport type DeploymentSourceTypes = TypesOf<typeof DeploymentSource>;\n\nexport async function getDeploymentSourceData(\n model: ProjectModel,\n source: DeploymentSource\n) {\n return match(source, {\n local: async () => ({\n deploymentData: {\n revision: model.revision,\n content: await loadProjectGridAppContent(model.projectFolder),\n },\n }),\n remote: () => ({}),\n });\n}\n\nexport async function deployGridApp(opts: {\n model: ProjectModel;\n operation: DeploymentOperation;\n source: DeploymentSource;\n authState: AuthState;\n}) {\n const deploymentSourceData = await getDeploymentSourceData(\n opts.model,\n opts.source\n );\n\n try {\n const { data } = await httpRequest(\n {\n type: 'code',\n authState: opts.authState,\n },\n deployApp({\n deploymentOperation: opts.operation,\n appType: AppType.VELO_ISOLATED,\n ...deploymentSourceData,\n ...(opts.operation === DeploymentOperation.RC && {\n rcDeploymentParams: {\n rcLabel: RcLabel.WIX_CLI,\n },\n }),\n }),\n { retries: 3, maxTimeout: 3 * 1000 }\n );\n\n const result = deployAppResponseSchema.safeParse(data);\n\n if (!result.success) {\n throw new CliError({\n code: CliErrorCode.InvalidDeployAppResponse(),\n info: { data },\n cause: result.error,\n });\n }\n\n return result.data.deploymentInfo;\n } catch (e) {\n throw new CliError({\n code: CliErrorCode.FailedToDeploySite(),\n cause: e,\n });\n }\n}\n\nexport async function getDeploymentStatus({\n deploymentId,\n authState,\n}: {\n deploymentId: string;\n authState: AuthState;\n}) {\n const deploymentStatus = await pWaitFor(\n async () => {\n try {\n const { data } = await httpRequest(\n {\n type: 'editor',\n authState,\n },\n getDeployment({\n deploymentId,\n }),\n { retries: 2 }\n );\n\n const result = getDeploymentResponseSchema.safeParse(data);\n\n if (!result.success) {\n throw new CliError({\n code: CliErrorCode.InvalidGetDeploymentResponse(),\n info: { data },\n cause: result.error,\n });\n }\n\n const status = result.data.deployment.deploymentPipelinesStatus;\n\n // Continue polling\n if (status === DeploymentPipelinesStatus.IN_PROGRESS) {\n return false;\n }\n\n return pWaitFor.resolveWith(status);\n } catch (err) {\n throw new CliError({\n code: CliErrorCode.FailedToGetDeploymentStatus(),\n cause: err,\n });\n }\n },\n {\n // Poll each 2 seconds\n interval: 2 * 1000,\n // Fail if 2 minutes passed\n timeout: 2 * 60 * 1000,\n }\n );\n\n return deploymentStatus;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAEA,IAAM,kBAAkB;AACxB,IAAM,SAAS;AAER,IAAM,mBAAmB,OAC9B,qBACG;AACH,MAAI;AACF,UAAM,EAAE,OAAO,IAAI,MAAM,MAAM,OAAO;AAAA,MACpC;AAAA,MACA,GAAG,eAAe,GAAG,MAAM;AAAA,IAC7B,CAAC;AAED,UAAM,WAAW,OAAO,QAAQ,iBAAiB,EAAE;AACnD,WAAO;AAAA,EACT,SAAS,OAAO;AAEd,qBAAiB,KAAK;AACtB,WAAO;AAAA,EACT;AACF;;;ACrBA;AAWA,qBAAuC;AAUhC,IAAM,uBAAmB,wBAAQ;AAAA,EACtC,OAAO,CAAC;AAAA,EACR,YAAQ,uBAEL;AACL,CAAC;AAID,eAAsB,wBACpB,OACA,QACA;AACA,aAAO,sBAAM,QAAQ;AAAA,IACnB,OAAO,aAAa;AAAA,MAClB,gBAAgB;AAAA,QACd,UAAU,MAAM;AAAA,QAChB,SAAS,MAAM,0BAA0B,MAAM,aAAa;AAAA,MAC9D;AAAA,IACF;AAAA,IACA,QAAQ,OAAO,CAAC;AAAA,EAClB,CAAC;AACH;AAEA,eAAsB,cAAc,MAKjC;AACD,QAAM,uBAAuB,MAAM;AAAA,IACjC,KAAK;AAAA,IACL,KAAK;AAAA,EACP;AAEA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H;AAEA,cAAM,SAAS,OAAO,KAAK,WAAW;AAGtC,YAAI,WAAW,0BAA0B,aAAa;AACpD,iBAAO;AAAA,QACT;AAEA,eAAO,SAAS,YAAY,MAAM;AAAA,MACpC,SAAS,KAAK;AACZ,cAAM,IAAI,SAAS;AAAA,UACjB,MAAM,aAAa,4BAA4B;AAAA,UAC/C,OAAO;AAAA,QACT,CAAC;AAAA,MACH;AAAA,IACF;AAAA,IACA;AAAA;AAAA,MAEE,UAAU,IAAI;AAAA;AAAA,MAEd,SAAS,IAAI,KAAK;AAAA,IACpB;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -3,7 +3,7 @@ const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  resolveUrl,
5
5
  serializer
6
- } from "./chunk-YKAGNJY6.js";
6
+ } from "./chunk-YFNFTDZT.js";
7
7
  import {
8
8
  init_esm_shims
9
9
  } from "./chunk-PYIAC2GK.js";
@@ -168,4 +168,4 @@ export {
168
168
  createApp,
169
169
  deployApp
170
170
  };
171
- //# sourceMappingURL=chunk-IYTRLTO5.js.map
171
+ //# sourceMappingURL=chunk-MMXT2FIP.js.map
@@ -3,10 +3,10 @@ const require = _createRequire(import.meta.url);
3
3
  import {
4
4
  createBiLogger,
5
5
  reportCommandStartEvent
6
- } from "./chunk-WPFEAMY6.js";
6
+ } from "./chunk-QOEQJQBF.js";
7
7
  import {
8
8
  wixCliCliError
9
- } from "./chunk-WN3D6AOY.js";
9
+ } from "./chunk-KUAMU72Z.js";
10
10
  import {
11
11
  isCliSystemError
12
12
  } from "./chunk-YFRORUA4.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PYIAC2GK.js";
16
16
 
17
17
  // package.json
18
- var version = "1.1.72";
18
+ var version = "1.1.74";
19
19
  var package_default = {
20
20
  name: "@wix/cli",
21
21
  description: "CLI tool for building Wix sites and applications",
@@ -148,4 +148,4 @@ export {
148
148
  createBiLogger2 as createBiLogger,
149
149
  reportCommandStartEvent2 as reportCommandStartEvent
150
150
  };
151
- //# sourceMappingURL=chunk-HO45MN5W.js.map
151
+ //# sourceMappingURL=chunk-ODYEJHVS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../package.json","../src/bi.ts"],"sourcesContent":["{\n \"name\": \"@wix/cli\",\n \"description\": \"CLI tool for building Wix sites and applications\",\n \"version\": \"1.1.72\",\n \"bin\": {\n \"wix\": \"bin/wix.cjs\"\n },\n \"dependencies\": {\n \"node-gyp\": \"^8.4.1\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^13.0.0\",\n \"@types/columnify\": \"^1.5.4\",\n \"@types/react\": \"^18.3.3\",\n \"@types/semver\": \"^7.5.8\",\n \"@wix/bi-logger-wix-cli\": \"^1.44.0\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site\": \"workspace:*\",\n \"@wix/cli-site-live\": \"workspace:*\",\n \"@wix/cli-site-old\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/cli-user-config\": \"workspace:*\",\n \"@wix/cli-version-manager\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"chalk\": \"^5.4.1\",\n \"columnify\": \"^1.6.0\",\n \"commander\": \"^13.0.0\",\n \"react\": \"^18.3.1\",\n \"semver\": \"^7.6.3\",\n \"variant\": \"^3.0.0-dev.27\",\n \"zod\": \"^3.24.1\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"files\": [\n \"bin\",\n \"build\"\n ],\n \"keywords\": [\n \"wix\",\n \"wix-cli\"\n ],\n \"optionalDependencies\": {\n \"fsevents\": \"^2.3.2\"\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"985kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup\",\n \"build:watch\": \"run -T build:watch --filter='@wix/cli'\",\n \"test\": \"yarn workspace @wix/cli-core-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-core-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\"\n ]\n }\n }\n}\n","import { randomUUID } from 'node:crypto';\nimport type { Command } from '@commander-js/extra-typings';\nimport type { ErrorReporter } from '@wix/cli-error-reporting';\nimport type { BiLogger } from '@wix/cli-telemetry';\nimport { wixCliCliError } from '@wix/bi-logger-wix-cli/v2';\nimport { isCliSystemError } from '@wix/cli-error';\nimport {\n createBiLogger as createCliBiLogger,\n reportCommandStartEvent as originalReportCommandStartEvent,\n} from '@wix/cli-telemetry';\nimport { version } from '../package.json';\n\nexport { addUserFields } from '@wix/cli-telemetry';\n\nexport const createBiLogger = async (\n errorReporter: ErrorReporter,\n userId?: string\n) => {\n const biLogger = await createCliBiLogger(\n {\n cliSessionId: randomUUID(),\n },\n userId\n );\n\n errorReporter.on('errorReported', (error) => {\n void biLogger.report(\n wixCliCliError({\n errorMessage: error.message,\n errorName: error.name,\n errorType: isCliSystemError(error) ? 'SystemError' : 'UserError',\n })\n );\n });\n\n return {\n biLogger,\n };\n};\n\nexport const reportCommandStartEvent = (\n biLogger: BiLogger,\n command: Command<unknown[]>\n) => {\n return originalReportCommandStartEvent({\n biLogger,\n cliVersion: version,\n command,\n flow: null,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAGE,cAAW;AAHb;AAAA,EACE,MAAQ;AAAA,EACR,aAAe;AAAA,EACf;AAAA,EACA,KAAO;AAAA,IACL,KAAO;AAAA,EACT;AAAA,EACA,cAAgB;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,iBAAmB;AAAA,IACjB,+BAA+B;AAAA,IAC/B,oBAAoB;AAAA,IACpB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,0BAA0B;AAAA,IAC1B,iBAAiB;AAAA,IACjB,6BAA6B;AAAA,IAC7B,6BAA6B;AAAA,IAC7B,sBAAsB;AAAA,IACtB,kBAAkB;AAAA,IAClB,4BAA4B;AAAA,IAC5B,eAAe;AAAA,IACf,iBAAiB;AAAA,IACjB,mBAAmB;AAAA,IACnB,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,qBAAqB;AAAA,IACrB,sBAAsB;AAAA,IACtB,4BAA4B;AAAA,IAC5B,2BAA2B;AAAA,IAC3B,mBAAmB;AAAA,IACnB,wBAAwB;AAAA,IACxB,4BAA4B;AAAA,IAC5B,qBAAqB;AAAA,IACrB,OAAS;AAAA,IACT,WAAa;AAAA,IACb,WAAa;AAAA,IACb,OAAS;AAAA,IACT,QAAU;AAAA,IACV,SAAW;AAAA,IACX,KAAO;AAAA,EACT;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,EACF;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,EACF;AAAA,EACA,sBAAwB;AAAA,IACtB,UAAY;AAAA,EACd;AAAA,EACA,QAAU;AAAA,IACR,YAAc;AAAA,MACZ,OAAS;AAAA,QACP;AAAA,UACE,MAAQ;AAAA,UACR,SAAW;AAAA,QACb;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA,eAAiB;AAAA,IACf,UAAY;AAAA,IACZ,QAAU;AAAA,IACV,qBAAuB;AAAA,IACvB,UAAY;AAAA,EACd;AAAA,EACA,SAAW;AAAA,IACT,OAAS;AAAA,IACT,eAAe;AAAA,IACf,MAAQ;AAAA,IACR,cAAc;AAAA,IACd,WAAa;AAAA,EACf;AAAA,EACA,MAAQ;AAAA,EACR,KAAO;AAAA,IACL,UAAY;AAAA,MACV,SAAW;AAAA,MACX,YAAc;AAAA,IAChB;AAAA,IACA,aAAe;AAAA,MACb,WAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC5FA;AAAA,SAAS,kBAAkB;AAcpB,IAAMA,kBAAiB,OAC5B,eACA,WACG;AACH,QAAM,WAAW,MAAM;AAAA,IACrB;AAAA,MACE,cAAc,WAAW;AAAA,IAC3B;AAAA,IACA;AAAA,EACF;AAEA,gBAAc,GAAG,iBAAiB,CAAC,UAAU;AAC3C,SAAK,SAAS;AAAA,MACZ,eAAe;AAAA,QACb,cAAc,MAAM;AAAA,QACpB,WAAW,MAAM;AAAA,QACjB,WAAW,iBAAiB,KAAK,IAAI,gBAAgB;AAAA,MACvD,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAEO,IAAMC,2BAA0B,CACrC,UACA,YACG;AACH,SAAO,wBAAgC;AAAA,IACrC;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AACH;","names":["createBiLogger","reportCommandStartEvent"]}
1
+ {"version":3,"sources":["../package.json","../src/bi.ts"],"sourcesContent":["{\n \"name\": \"@wix/cli\",\n \"description\": \"CLI tool for building Wix sites and applications\",\n \"version\": \"1.1.74\",\n \"bin\": {\n \"wix\": \"bin/wix.cjs\"\n },\n \"dependencies\": {\n \"node-gyp\": \"^8.4.1\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^13.0.0\",\n \"@types/columnify\": \"^1.5.4\",\n \"@types/react\": \"^18.3.3\",\n \"@types/semver\": \"^7.5.8\",\n \"@wix/bi-logger-wix-cli\": \"^1.44.0\",\n \"@wix/cli-auth\": \"workspace:*\",\n \"@wix/cli-command-contract\": \"workspace:*\",\n \"@wix/cli-core-definitions\": \"workspace:*\",\n \"@wix/cli-debug-log\": \"workspace:*\",\n \"@wix/cli-error\": \"workspace:*\",\n \"@wix/cli-error-reporting\": \"workspace:*\",\n \"@wix/cli-fs\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site\": \"workspace:*\",\n \"@wix/cli-site-live\": \"workspace:*\",\n \"@wix/cli-site-old\": \"workspace:*\",\n \"@wix/cli-telemetry\": \"workspace:*\",\n \"@wix/cli-telemetry-react\": \"workspace:*\",\n \"@wix/cli-test-overrides\": \"workspace:*\",\n \"@wix/cli-ui-kit\": \"workspace:*\",\n \"@wix/cli-user-config\": \"workspace:*\",\n \"@wix/cli-version-manager\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"chalk\": \"^5.4.1\",\n \"columnify\": \"^1.6.0\",\n \"commander\": \"^13.0.0\",\n \"react\": \"^18.3.1\",\n \"semver\": \"^7.6.3\",\n \"variant\": \"^3.0.0-dev.27\",\n \"zod\": \"^3.24.1\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"files\": [\n \"bin\",\n \"build\"\n ],\n \"keywords\": [\n \"wix\",\n \"wix-cli\"\n ],\n \"optionalDependencies\": {\n \"fsevents\": \"^2.3.2\"\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"985kb\"\n }\n ]\n }\n },\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org/\",\n \"access\": \"public\",\n \"versionBumpStrategy\": \"manual\",\n \"logLevel\": \"verbose\"\n },\n \"scripts\": {\n \"build\": \"run -T tsup\",\n \"build:watch\": \"run -T build:watch --filter='@wix/cli'\",\n \"test\": \"yarn workspace @wix/cli-core-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-core-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\"\n ]\n }\n }\n}\n","import { randomUUID } from 'node:crypto';\nimport type { Command } from '@commander-js/extra-typings';\nimport type { ErrorReporter } from '@wix/cli-error-reporting';\nimport type { BiLogger } from '@wix/cli-telemetry';\nimport { wixCliCliError } from '@wix/bi-logger-wix-cli/v2';\nimport { isCliSystemError } from '@wix/cli-error';\nimport {\n createBiLogger as createCliBiLogger,\n reportCommandStartEvent as originalReportCommandStartEvent,\n} from '@wix/cli-telemetry';\nimport { version } from '../package.json';\n\nexport { addUserFields } from '@wix/cli-telemetry';\n\nexport const createBiLogger = async (\n errorReporter: ErrorReporter,\n userId?: string\n) => {\n const biLogger = await createCliBiLogger(\n {\n cliSessionId: randomUUID(),\n },\n userId\n );\n\n errorReporter.on('errorReported', (error) => {\n void biLogger.report(\n wixCliCliError({\n errorMessage: error.message,\n errorName: error.name,\n errorType: isCliSystemError(error) ? 'SystemError' : 'UserError',\n })\n );\n });\n\n return {\n biLogger,\n };\n};\n\nexport const reportCommandStartEvent = (\n biLogger: BiLogger,\n command: Command<unknown[]>\n) => {\n return originalReportCommandStartEvent({\n biLogger,\n cliVersion: version,\n command,\n flow: null,\n });\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAGE,cAAW;AAHb;AAAA,EACE,MAAQ;AAAA,EACR,aAAe;AAAA,EACf;AAAA,EACA,KAAO;AAAA,IACL,KAAO;AAAA,EACT;AAAA,EACA,cAAgB;AAAA,IACd,YAAY;AAAA,EACd;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A,IACL,UAAY;AAAA,MACV,SAAW;AAAA,MACX,YAAc;AAAA,IAChB;AAAA,IACA,aAAe;AAAA,MACb,WAAa;AAAA,QACX;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;;;AC5FA;AAAA,SAAS,kBAAkB;AAcpB,IAAMA,kBAAiB,OAC5B,eACA,WACG;AACH,QAAM,WAAW,MAAM;AAAA,IACrB;AAAA,MACE,cAAc,WAAW;AAAA,IAC3B;AAAA,IACA;AAAA,EACF;AAEA,gBAAc,GAAG,iBAAiB,CAAC,UAAU;AAC3C,SAAK,SAAS;AAAA,MACZ,eAAe;AAAA,QACb,cAAc,MAAM;AAAA,QACpB,WAAW,MAAM;AAAA,QACjB,WAAW,iBAAiB,KAAK,IAAI,gBAAgB;AAAA,MACvD,CAAC;AAAA,IACH;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL;AAAA,EACF;AACF;AAEO,IAAMC,2BAA0B,CACrC,UACA,YACG;AACH,SAAO,wBAAgC;AAAA,IACrC;AAAA,IACA,YAAY;AAAA,IACZ;AAAA,IACA,MAAM;AAAA,EACR,CAAC;AACH;","names":["createBiLogger","reportCommandStartEvent"]}
@@ -1,14 +1,9 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
3
  import {
4
- getDeployment,
5
- getDeploymentPipelineDescription,
6
- publishDeployment
7
- } from "./chunk-JMICKQ4L.js";
8
- import {
9
- DeploymentPipelinesStatus,
10
- TaskStatus
11
- } from "./chunk-6XRFJZTQ.js";
4
+ DeploymentStatus,
5
+ useDocumentManagementClient
6
+ } from "./chunk-FKASFLTW.js";
12
7
  import {
13
8
  createSiteFsManager
14
9
  } from "./chunk-UAXZQSSC.js";
@@ -18,199 +13,31 @@ import {
18
13
  import {
19
14
  useHttpClient,
20
15
  useVeloClient
21
- } from "./chunk-SC7ALIWN.js";
16
+ } from "./chunk-R7NPZQEJ.js";
22
17
  import {
23
18
  GridAppLayout
24
19
  } from "./chunk-6LI4WGAW.js";
25
20
  import {
26
21
  useProjectModel
27
- } from "./chunk-QCFSXYK7.js";
28
- import {
29
- pRetry,
30
- pWaitFor
31
- } from "./chunk-YKAGNJY6.js";
22
+ } from "./chunk-EW7MBB2Y.js";
32
23
  import {
33
24
  require_react
34
- } from "./chunk-XP2YHRIC.js";
25
+ } from "./chunk-LXW2RB2I.js";
35
26
  import {
36
- getTestOverrides,
37
- z
27
+ getTestOverrides
38
28
  } from "./chunk-GNB7T7J7.js";
39
29
  import {
40
30
  CliError,
41
- CliErrorCode,
42
- require_lib
31
+ CliErrorCode
43
32
  } from "./chunk-YFRORUA4.js";
44
33
  import {
45
34
  __toESM,
46
35
  init_esm_shims
47
36
  } from "./chunk-PYIAC2GK.js";
48
37
 
49
- // ../document-management-client/src/document-management-client.ts
50
- init_esm_shims();
51
- var import_variant = __toESM(require_lib(), 1);
52
-
53
- // ../document-management-client/src/schemas.ts
54
- init_esm_shims();
55
- var getDeploymentSchema = z.object({
56
- deployment: z.object({
57
- deploymentPipelinesStatus: z.enum([
58
- DeploymentPipelinesStatus.IN_PROGRESS,
59
- DeploymentPipelinesStatus.SUCCESS,
60
- DeploymentPipelinesStatus.ERROR
61
- ])
62
- })
63
- });
64
- var taskDescriptionSchema = z.object({
65
- taskName: z.string(),
66
- status: z.string().transform(
67
- (value) => value === TaskStatus.SUCCESS ? TaskStatus.SUCCESS : TaskStatus.ERROR
68
- ),
69
- description: z.string().nullish().transform((value, ctx) => {
70
- try {
71
- return value ? JSON.parse(value) : {};
72
- } catch {
73
- ctx.addIssue({
74
- code: z.ZodIssueCode.custom,
75
- message: "Invalid JSON"
76
- });
77
- }
78
- return value;
79
- }).pipe(z.record(z.string(), z.string()))
80
- });
81
- var getDeploymentPipelineDescriptionSchema = z.object({
82
- pipelinesDescription: z.array(
83
- z.object({
84
- deploymentPipelineId: z.string(),
85
- tasksDescriptions: z.array(taskDescriptionSchema)
86
- })
87
- )
88
- });
89
-
90
- // ../document-management-client/src/document-management-client.ts
91
- var { minRetryTimeout, pollInterval } = getTestOverrides();
92
- var VELO_PIPELINE_ID = "5c696513-2584-4f19-ae0f-a559dd649482";
93
- var DeploymentStatus = (0, import_variant.variant)({
94
- Success: {},
95
- Error: (0, import_variant.fields)()
96
- });
97
- var DocumentManagementClient = class {
98
- constructor(httpClient) {
99
- this.httpClient = httpClient;
100
- this.retryOptions = {
101
- retries: 1,
102
- minTimeout: minRetryTimeout,
103
- maxTimeout: 3 * 1e3
104
- };
105
- }
106
- retryOptions;
107
- getDeploymentDetails = async (deploymentId) => {
108
- const deploymentStatus = await this.getDeploymentStatus(deploymentId);
109
- if (deploymentStatus === DeploymentPipelinesStatus.ERROR) {
110
- const tasksDescriptions = await this.getDeploymentTasksDescriptions(deploymentId);
111
- return DeploymentStatus.Error({
112
- deploymentError: new CliError({
113
- code: CliErrorCode.DeploymentPipelineFailed({ tasksDescriptions }),
114
- cause: null
115
- })
116
- });
117
- }
118
- return DeploymentStatus.Success();
119
- };
120
- getDeploymentStatus = async (deploymentId) => {
121
- try {
122
- return await pWaitFor(
123
- async () => {
124
- const { data } = await pRetry(
125
- () => this.httpClient.request(getDeployment({ deploymentId })),
126
- this.retryOptions
127
- );
128
- const result = getDeploymentSchema.safeParse(data);
129
- if (!result.success) {
130
- throw new CliError({
131
- code: CliErrorCode.InvalidGetDeploymentResponse(),
132
- cause: result.error,
133
- info: { data }
134
- });
135
- }
136
- const { deploymentPipelinesStatus: status } = result.data.deployment;
137
- if (status === DeploymentPipelinesStatus.IN_PROGRESS) {
138
- return false;
139
- }
140
- return pWaitFor.resolveWith(status);
141
- },
142
- {
143
- // Poll each 2 seconds
144
- interval: pollInterval ?? 2 * 1e3,
145
- // Fail if 2 minutes passed
146
- timeout: 2 * 60 * 1e3
147
- }
148
- );
149
- } catch (error) {
150
- throw new CliError({
151
- code: CliErrorCode.FailedToGetDeploymentStatus(),
152
- cause: error
153
- });
154
- }
155
- };
156
- getDeploymentTasksDescriptions = async (deploymentId) => {
157
- try {
158
- const { data } = await pRetry(
159
- () => this.httpClient.request(
160
- getDeploymentPipelineDescription({
161
- deploymentId,
162
- deploymentPipelinesIds: [VELO_PIPELINE_ID]
163
- })
164
- ),
165
- this.retryOptions
166
- );
167
- const result = getDeploymentPipelineDescriptionSchema.safeParse(data);
168
- if (!result.success) {
169
- throw new CliError({
170
- code: CliErrorCode.InvalidGetDeploymentPipelineDescriptionResponse(),
171
- cause: result.error,
172
- info: { data }
173
- });
174
- }
175
- const veloPipeline = result.data.pipelinesDescription.find(
176
- (item) => item.deploymentPipelineId === VELO_PIPELINE_ID
177
- );
178
- return veloPipeline?.tasksDescriptions ?? [];
179
- } catch (e) {
180
- throw new CliError({
181
- code: CliErrorCode.FailedToGetDeploymentPipelineDescription(),
182
- cause: e
183
- });
184
- }
185
- };
186
- publishDeployment = async (deploymentId) => {
187
- try {
188
- await this.httpClient.request(
189
- publishDeployment({ deploymentId, skipPipelineCheck: true })
190
- );
191
- } catch (error) {
192
- throw new CliError({
193
- code: CliErrorCode.FailedToPublishDeployment(),
194
- cause: error
195
- });
196
- }
197
- };
198
- };
199
-
200
- // ../document-management-client/src/useDocumentManagementClient.ts
201
- init_esm_shims();
202
- var import_react = __toESM(require_react(), 1);
203
- function useDocumentManagementClient() {
204
- const httpClient = useHttpClient({ type: "editor" });
205
- return (0, import_react.useMemo)(() => new DocumentManagementClient(httpClient), [httpClient]);
206
- }
207
-
208
- // ../document-management-client/src/index.ts
209
- init_esm_shims();
210
-
211
38
  // ../cli-site/src/components/PreviewCommand/useCreatePreview.ts
212
39
  init_esm_shims();
213
- var import_react3 = __toESM(require_react(), 1);
40
+ var import_react2 = __toESM(require_react(), 1);
214
41
 
215
42
  // ../../node_modules/@wix/anyide-document-deployment/dist/src/index.js
216
43
  init_esm_shims();
@@ -291,7 +118,7 @@ var getTaskStatus = async (httpClient, taskId) => {
291
118
 
292
119
  // ../../node_modules/@wix/anyide-document-deployment/dist/src/status.js
293
120
  var subscribeToUpdateSiteTaskStatus = (httpClient, updateSiteTaskId, options = {}) => {
294
- const { onStatusChange, pollInterval: pollInterval3 = 1e3, timeout = 1e3 * 60 * 5 } = options;
121
+ const { onStatusChange, pollInterval: pollInterval2 = 1e3, timeout = 1e3 * 60 * 5 } = options;
295
122
  return new Promise((resolve, reject) => {
296
123
  const cleanup = () => {
297
124
  clearInterval(intervalId);
@@ -317,7 +144,7 @@ var subscribeToUpdateSiteTaskStatus = (httpClient, updateSiteTaskId, options = {
317
144
  cleanup();
318
145
  reject(error);
319
146
  }
320
- }, pollInterval3);
147
+ }, pollInterval2);
321
148
  });
322
149
  };
323
150
 
@@ -331,7 +158,7 @@ var getBase = async (httpClient) => {
331
158
  // ../../node_modules/@wix/anyide-document-deployment/dist/src/index.js
332
159
  var deployDocument = async (document, options) => {
333
160
  const { branchId, revision, hashes } = await getBase(options.httpClient);
334
- const { httpClient, onStatusChange, pollInterval: pollInterval3, timeout } = options;
161
+ const { httpClient, onStatusChange, pollInterval: pollInterval2, timeout } = options;
335
162
  const documentUpdate = filterDocumentPagesByHashes(hashes, document);
336
163
  if (Object.keys(documentUpdate.pages).length === 0) {
337
164
  return {
@@ -340,25 +167,27 @@ var deployDocument = async (document, options) => {
340
167
  };
341
168
  }
342
169
  const updateSiteTaskId = await updateSite(httpClient, documentUpdate, branchId, revision);
343
- return subscribeToUpdateSiteTaskStatus(httpClient, updateSiteTaskId, { onStatusChange, pollInterval: pollInterval3, timeout });
170
+ return subscribeToUpdateSiteTaskStatus(httpClient, updateSiteTaskId, { onStatusChange, pollInterval: pollInterval2, timeout });
344
171
  };
345
172
 
346
173
  // ../cli-site/src/components/PreviewCommand/useDeploySitePreview.ts
347
174
  init_esm_shims();
348
- var import_react2 = __toESM(require_react(), 1);
175
+ var import_react = __toESM(require_react(), 1);
349
176
  function useDeploySitePreview() {
350
177
  const { model } = useProjectModel();
351
178
  const { deploySitePreview } = useVeloClient();
352
- return (0, import_react2.useCallback)(
179
+ return (0, import_react.useCallback)(
353
180
  async ({ branchId, revision, code }) => {
354
181
  const rootFiles = await loadProjectRootFiles(model.projectFolder);
355
182
  return deploySitePreview({
356
- branchId,
357
- revision: String(revision),
358
- content: {
359
- ...code,
360
- files: code.files.concat(rootFiles),
361
- layout: GridAppLayout[code.layout]
183
+ deploymentData: {
184
+ branchId,
185
+ revision: String(revision),
186
+ content: {
187
+ ...code,
188
+ files: code.files.concat(rootFiles),
189
+ layout: GridAppLayout[code.layout]
190
+ }
362
191
  }
363
192
  });
364
193
  },
@@ -367,7 +196,7 @@ function useDeploySitePreview() {
367
196
  }
368
197
 
369
198
  // ../cli-site/src/components/PreviewCommand/useCreatePreview.ts
370
- var { pollInterval: pollInterval2 } = getTestOverrides();
199
+ var { pollInterval } = getTestOverrides();
371
200
  function toSiteUrl(deploymentUrl) {
372
201
  const url = new URL(deploymentUrl);
373
202
  url.search = "";
@@ -378,7 +207,7 @@ function useCreatePreview() {
378
207
  const { model } = useProjectModel();
379
208
  const httpClient = useHttpClient({ type: "editor" });
380
209
  const deploySitePreview = useDeploySitePreview();
381
- return (0, import_react3.useCallback)(async () => {
210
+ return (0, import_react2.useCallback)(async () => {
382
211
  const siteFsManager = await createSiteFsManager(model.projectFolder);
383
212
  const [code, document] = await Promise.all([
384
213
  siteFsManager.getCode(),
@@ -386,7 +215,7 @@ function useCreatePreview() {
386
215
  ]);
387
216
  const { branchId, revision } = await deployDocument(document, {
388
217
  httpClient,
389
- pollInterval: pollInterval2
218
+ pollInterval
390
219
  }).catch((error) => {
391
220
  throw new CliError({
392
221
  code: CliErrorCode.FailedToDeployDocument(),
@@ -394,24 +223,16 @@ function useCreatePreview() {
394
223
  });
395
224
  });
396
225
  const preview = await deploySitePreview({ branchId, revision, code });
397
- let deploymentStatus = DeploymentStatus.Success();
398
- if (preview.isPublishPipelineDeployment) {
399
- deploymentStatus = await dmClient.getDeploymentDetails(
400
- preview.deploymentId
401
- );
402
- }
403
226
  return {
404
227
  deploymentId: preview.deploymentId,
405
228
  previewUrl: preview.deploymentShortUrl ?? preview.deploymentUrl,
406
229
  siteUrl: toSiteUrl(preview.deploymentUrl),
407
- deploymentStatus
230
+ deploymentStatus: preview.isPublishPipelineDeployment ? await dmClient.getDeploymentDetails(preview.deploymentId) : DeploymentStatus.Success()
408
231
  };
409
232
  }, [model.projectFolder, httpClient, deploySitePreview, dmClient]);
410
233
  }
411
234
 
412
235
  export {
413
- DeploymentStatus,
414
- useDocumentManagementClient,
415
236
  useCreatePreview
416
237
  };
417
- //# sourceMappingURL=chunk-JV4Z24YW.js.map
238
+ //# sourceMappingURL=chunk-PWJKLQOW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../cli-site/src/components/PreviewCommand/useCreatePreview.ts","../../../node_modules/@wix/anyide-document-deployment/dist/src/index.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/apis/updateSite.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/apis/urls.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/utils/filterDocumentPagesByHashes.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/utils/hashWml.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/status.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/apis/getTaskStatus.js","../../../node_modules/@wix/anyide-document-deployment/dist/src/apis/getBase.js","../../cli-site/src/components/PreviewCommand/useDeploySitePreview.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { CliError, CliErrorCode } from '@wix/cli-error';\nimport {\n DeploymentStatus,\n useDocumentManagementClient,\n} from '@wix/document-management-client';\nimport { useHttpClient } from '@wix/cli-http-client-react';\nimport { getTestOverrides } from '@wix/cli-test-overrides';\nimport { deployDocument } from '@wix/anyide-document-deployment';\nimport { useProjectModel } from '../../model.js';\nimport { createSiteFsManager } from '../../site-fs-manager.js';\nimport { useDeploySitePreview } from './useDeploySitePreview.js';\n\nconst { pollInterval } = getTestOverrides();\n\nfunction toSiteUrl(deploymentUrl: string) {\n const url = new URL(deploymentUrl);\n url.search = '';\n return url.toString();\n}\n\nexport function useCreatePreview() {\n const dmClient = useDocumentManagementClient();\n const { model } = useProjectModel();\n const httpClient = useHttpClient({ type: 'editor' });\n const deploySitePreview = useDeploySitePreview();\n\n return useCallback(async () => {\n const siteFsManager = await createSiteFsManager(model.projectFolder);\n\n const [code, document] = await Promise.all([\n siteFsManager.getCode(),\n siteFsManager.getDocument(),\n ]);\n\n const { branchId, revision } = await deployDocument(document, {\n httpClient,\n pollInterval,\n }).catch((error: unknown) => {\n throw new CliError({\n code: CliErrorCode.FailedToDeployDocument(),\n cause: error,\n });\n });\n\n const preview = await deploySitePreview({ branchId, revision, code });\n\n return {\n deploymentId: preview.deploymentId,\n previewUrl: preview.deploymentShortUrl ?? preview.deploymentUrl,\n siteUrl: toSiteUrl(preview.deploymentUrl),\n deploymentStatus: preview.isPublishPipelineDeployment\n ? await dmClient.getDeploymentDetails(preview.deploymentId)\n : DeploymentStatus.Success(),\n };\n }, [model.projectFolder, httpClient, deploySitePreview, dmClient]);\n}\n","import { updateSite } from './apis/updateSite.js';\nimport { filterDocumentPagesByHashes } from './utils/filterDocumentPagesByHashes.js';\nimport { subscribeToUpdateSiteTaskStatus } from './status.js';\nimport { getBase } from './apis/getBase.js';\nexport const deployDocument = async (document, options) => {\n const { branchId, revision, hashes } = await getBase(options.httpClient);\n const { httpClient, onStatusChange, pollInterval, timeout } = options;\n const documentUpdate = filterDocumentPagesByHashes(hashes, document);\n if (Object.keys(documentUpdate.pages).length === 0) {\n return {\n branchId,\n revision\n };\n }\n const updateSiteTaskId = await updateSite(httpClient, documentUpdate, branchId, revision);\n return subscribeToUpdateSiteTaskStatus(httpClient, updateSiteTaskId, { onStatusChange, pollInterval, timeout });\n};\n","import { promisify } from 'node:util';\nimport { brotliCompress } from 'node:zlib';\nimport { updateSiteUrl } from './urls.js';\nconst brotliCompressAsync = promisify(brotliCompress);\nconst sendUpdateSiteRequest = async (httpClient, request) => {\n const { data } = await httpClient.post(updateSiteUrl(), request);\n return data;\n};\nexport const updateSite = async (httpClient, documentUpdate, branchId, revision) => {\n const stringifiedDocumentUpdate = JSON.stringify(documentUpdate);\n const compressedWmlSite = (await brotliCompressAsync(stringifiedDocumentUpdate)).toString('base64');\n const { updateSiteTaskId } = await sendUpdateSiteRequest(httpClient, {\n compressedWmlSite,\n branchId,\n revision\n });\n return updateSiteTaskId;\n};\n","const serverlessUrl = () => 'https://editor.wix.com/_serverless/dm-anyide-site-deployment';\nexport const getBaseUrl = () => `${serverlessUrl()}/getBase`;\nexport const updateSiteUrl = () => `${serverlessUrl()}/updateSite`;\nexport const getUpdateSiteStatusUrl = (updateSiteTaskId) => `${serverlessUrl()}/getUpdateSiteStatus/${updateSiteTaskId}`;\n","import { hashWml } from './hashWml.js';\nexport const filterDocumentPagesByHashes = (hashes, document) => {\n const filteredDocument = { pages: {} };\n for (const pageId in document.pages) {\n if (hashes[pageId] === undefined) {\n filteredDocument.pages[pageId] = document.pages[pageId];\n }\n }\n for (const pageId in hashes) {\n const documentPage = document.pages[pageId];\n if (documentPage) {\n const pageHash = hashWml(documentPage.data);\n if (pageHash !== hashes[pageId]) {\n filteredDocument.pages[pageId] = documentPage;\n }\n }\n else {\n filteredDocument.pages[pageId] = null;\n }\n }\n return filteredDocument;\n};\n","import crypto from 'node:crypto';\nconst md5 = (str) => crypto.createHash('md5').update(str).digest('hex');\nconst stringifyWmlFile = ({ content }) => content;\nexport const hashWml = ({ structure, style, data, version }) => {\n const wmlString = version + stringifyWmlFile(structure) + stringifyWmlFile(data) + stringifyWmlFile(style);\n return md5(wmlString);\n};\n","import { getTaskStatus } from './apis/getTaskStatus.js';\nexport const subscribeToUpdateSiteTaskStatus = (httpClient, updateSiteTaskId, options = {}) => {\n const { onStatusChange, pollInterval = 1000, timeout = 1000 * 60 * 5 } = options;\n return new Promise((resolve, reject) => {\n const cleanup = () => {\n clearInterval(intervalId);\n clearTimeout(timeoutId);\n };\n const timeoutId = setTimeout(() => {\n cleanup();\n reject(new Error('deployDocument timeout exceeded'));\n }, timeout);\n const intervalId = setInterval(async () => {\n try {\n const taskStatus = await getTaskStatus(httpClient, updateSiteTaskId);\n onStatusChange?.(taskStatus);\n if (taskStatus.state === 'FAILED') {\n cleanup();\n reject(new Error(`Action ${taskStatus.action} failed with error: ${taskStatus.extras?.error}`));\n }\n if (taskStatus.action === 'CREATE_REVISION' && taskStatus.state === 'DONE') {\n cleanup();\n resolve(taskStatus.extras);\n }\n }\n catch (error) {\n cleanup();\n reject(error);\n }\n }, pollInterval);\n });\n};\n","import { getUpdateSiteStatusUrl } from './urls.js';\nexport const getTaskStatus = async (httpClient, taskId) => {\n const { data } = await httpClient.get(getUpdateSiteStatusUrl(taskId));\n return data;\n};\n","import { getBaseUrl } from './urls.js';\nexport const getBase = async (httpClient) => {\n const { data } = await httpClient.get(getBaseUrl());\n return data;\n};\n","import { useCallback } from 'react';\nimport { useVeloClient, GridAppLayout } from '@wix/velo-client';\nimport type { VeloCode } from '@wix/anyide-cli-file-structure';\nimport { useProjectModel } from '../../model.js';\nimport { loadProjectRootFiles } from '../../velo.js';\n\ninterface Options {\n branchId: string;\n revision: number;\n code: VeloCode;\n}\n\nexport function useDeploySitePreview() {\n const { model } = useProjectModel();\n const { deploySitePreview } = useVeloClient();\n\n return useCallback(\n async ({ branchId, revision, code }: Options) => {\n const rootFiles = await loadProjectRootFiles(model.projectFolder);\n\n return deploySitePreview({\n deploymentData: {\n branchId,\n revision: String(revision),\n content: {\n ...code,\n files: code.files.concat(rootFiles),\n layout: GridAppLayout[code.layout],\n },\n },\n });\n },\n [deploySitePreview, model.projectFolder]\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA,IAAAA,gBAA4B;;;ACA5B;;;ACAA;AAAA,SAAS,iBAAiB;AAC1B,SAAS,sBAAsB;;;ACD/B;AAAA,IAAM,gBAAgB,MAAM;AACrB,IAAM,aAAa,MAAM,GAAG,cAAc,CAAC;AAC3C,IAAM,gBAAgB,MAAM,GAAG,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AAa,cAAc,EAAE,MAAM,SAAS,CAAC;AACnD,QAAM,oBAAoB,qBAAqB;AAE/C,aAAO,2BAAY,YAAY;AAC7B,UAAM,gBAAgB,MAAM,oBAAoB,MAAM,aAAa;AAEnE,UAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,QAAQ,IAAI;AAAA,MACzC,cAAc,QAAQ;AAAA,MACtB,cAAc,YAAY;AAAA,IAC5B,CAAC;AAED,UAAM,EAAE,UAAU,SAAS,IAAI,MAAM,eAAe,UAAU;AAAA,MAC5D;AAAA,MACA;AAAA,IACF,CAAC,EAAE,MAAM,CAAC,UAAmB;AAC3B,YAAM,IAAI,SAAS;AAAA,QACjB,MAAM,aAAa,uBAAuB;AAAA,QAC1C,OAAO;AAAA,MACT,CAAC;AAAA,IACH,CAAC;AAED,UAAM,UAAU,MAAM,kBAAkB,EAAE,UAAU,UAAU,KAAK,CAAC;AAEpE,WAAO;AAAA,MACL,cAAc,QAAQ;AAAA,MACtB,YAAY,QAAQ,sBAAsB,QAAQ;AAAA,MAClD,SAAS,UAAU,QAAQ,aAAa;AAAA,MACxC,kBAAkB,QAAQ,8BACtB,MAAM,SAAS,qBAAqB,QAAQ,YAAY,IACxD,iBAAiB,QAAQ;AAAA,IAC/B;AAAA,EACF,GAAG,CAAC,MAAM,eAAe,YAAY,mBAAmB,QAAQ,CAAC;AACnE;","names":["import_react","pollInterval","pollInterval"]}
@@ -4,14 +4,14 @@ import {
4
4
  require_index_node,
5
5
  wixCliCliCommand,
6
6
  wixCliCliCommandStatus
7
- } from "./chunk-WN3D6AOY.js";
7
+ } from "./chunk-KUAMU72Z.js";
8
8
  import {
9
9
  __assign,
10
10
  __awaiter,
11
11
  __generator,
12
12
  init_tslib_es6,
13
13
  require_is_ci
14
- } from "./chunk-W423UTD3.js";
14
+ } from "./chunk-LXW2RB2I.js";
15
15
  import {
16
16
  readUserConfig
17
17
  } from "./chunk-O6TOM5CC.js";
@@ -1281,4 +1281,4 @@ export {
1281
1281
  createBiLogger,
1282
1282
  reportCommandStartEvent
1283
1283
  };
1284
- //# sourceMappingURL=chunk-WPFEAMY6.js.map
1284
+ //# sourceMappingURL=chunk-QOEQJQBF.js.map