@wix/cli-app 1.1.16 → 1.1.18

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 (77) hide show
  1. package/build/CreateVersionCommand-CHX2UWME.js +4 -0
  2. package/build/CreateVersionCommand-CHX2UWME.js.map +1 -0
  3. package/build/{DevCommand-F4JNOQD3.js → DevCommand-TKHJTH22.js} +2 -2
  4. package/build/{GenerateCommand-UOXXMOFE.js → GenerateCommand-PIRMS3PT.js} +23 -23
  5. package/build/GenerateCommand-PIRMS3PT.js.map +1 -0
  6. package/build/PreviewCommand-2DQ252RA.js +4 -0
  7. package/build/{ServeCommand-SCDZSOGW.js → ServeCommand-XTHWLUDT.js} +2 -2
  8. package/build/{build-QKFFY6BT.js → build-QLE4H4H2.js} +2 -2
  9. package/build/{chunk-PBVA37S6.js → chunk-3L5LQKB7.js} +2 -2
  10. package/build/{chunk-KDEP6ACN.js → chunk-5XZSJPLU.js} +2 -2
  11. package/build/chunk-6OPLPT2G.js +87 -0
  12. package/build/chunk-6OPLPT2G.js.map +1 -0
  13. package/build/chunk-6R3ZFQVO.js +27 -0
  14. package/build/chunk-6R3ZFQVO.js.map +1 -0
  15. package/build/chunk-7JJKVPKL.js +6 -0
  16. package/build/chunk-7JJKVPKL.js.map +1 -0
  17. package/build/{chunk-J7GQKX36.js → chunk-BGSKNKJF.js} +2 -2
  18. package/build/{chunk-6VY5XPWN.js → chunk-BKNV2B7T.js} +2 -2
  19. package/build/{chunk-YYYCYGWT.js → chunk-HLCGKBPK.js} +2 -2
  20. package/build/{chunk-YYYCYGWT.js.map → chunk-HLCGKBPK.js.map} +1 -1
  21. package/build/{chunk-NCLWI32Y.js → chunk-O4DV7EH5.js} +2 -2
  22. package/build/{chunk-JRUKA4BX.js → chunk-PE3RXVKE.js} +2 -2
  23. package/build/{chunk-OQ2EIA5Y.js → chunk-PYBYLDJB.js} +2 -2
  24. package/build/{chunk-ZHOPW26J.js → chunk-QBIV5U5A.js} +2 -2
  25. package/build/{chunk-N6MHPAL7.js → chunk-RCDIKBVN.js} +2 -2
  26. package/build/{chunk-VPVMEECP.js → chunk-RDIPEKL2.js} +2 -2
  27. package/build/{chunk-C6CRDQAM.js → chunk-SIP7BHV7.js} +2 -2
  28. package/build/chunk-TBT2V5T7.js +4 -0
  29. package/build/{chunk-F3L55KWK.js.map → chunk-TBT2V5T7.js.map} +1 -1
  30. package/build/{chunk-RZD2Z3NM.js → chunk-UQ7NP6NA.js} +2 -2
  31. package/build/chunk-XHPVJXDY.js +73 -0
  32. package/build/{chunk-HFEDL4QC.js.map → chunk-XHPVJXDY.js.map} +1 -1
  33. package/build/{chunk-KOTYDSCW.js → chunk-XYNUUMC2.js} +2 -2
  34. package/build/devtools-WFBFD7GB.js +10 -0
  35. package/build/devtools-WFBFD7GB.js.map +1 -0
  36. package/build/esm-QEHFRL6L.js +365 -0
  37. package/build/esm-QEHFRL6L.js.map +1 -0
  38. package/build/index.js +2 -2
  39. package/build/{preview-WCMD3SX5.js → preview-LQ6YX5QD.js} +2 -2
  40. package/build/{render-command-S4HOHZ67.js → render-command-PDPDZKND.js} +2 -2
  41. package/package.json +8 -8
  42. package/templates/dashboard-modal/modal.tsx.ejs +17 -9
  43. package/build/CreateVersionCommand-EKTXL4HX.js +0 -4
  44. package/build/CreateVersionCommand-EKTXL4HX.js.map +0 -1
  45. package/build/GenerateCommand-UOXXMOFE.js.map +0 -1
  46. package/build/PreviewCommand-5SJI24RE.js +0 -4
  47. package/build/chunk-62RRZRN6.js +0 -6
  48. package/build/chunk-62RRZRN6.js.map +0 -1
  49. package/build/chunk-F3L55KWK.js +0 -4
  50. package/build/chunk-HFEDL4QC.js +0 -73
  51. package/build/chunk-TXD4M2YS.js +0 -27
  52. package/build/chunk-TXD4M2YS.js.map +0 -1
  53. package/build/chunk-V4D26EXO.js +0 -87
  54. package/build/chunk-V4D26EXO.js.map +0 -1
  55. package/build/devtools-SH22YG5Z.js +0 -10
  56. package/build/devtools-SH22YG5Z.js.map +0 -1
  57. package/build/esm-GVPPSDDL.js +0 -352
  58. package/build/esm-GVPPSDDL.js.map +0 -1
  59. /package/build/{DevCommand-F4JNOQD3.js.map → DevCommand-TKHJTH22.js.map} +0 -0
  60. /package/build/{PreviewCommand-5SJI24RE.js.map → PreviewCommand-2DQ252RA.js.map} +0 -0
  61. /package/build/{ServeCommand-SCDZSOGW.js.map → ServeCommand-XTHWLUDT.js.map} +0 -0
  62. /package/build/{build-QKFFY6BT.js.map → build-QLE4H4H2.js.map} +0 -0
  63. /package/build/{chunk-PBVA37S6.js.map → chunk-3L5LQKB7.js.map} +0 -0
  64. /package/build/{chunk-KDEP6ACN.js.map → chunk-5XZSJPLU.js.map} +0 -0
  65. /package/build/{chunk-J7GQKX36.js.map → chunk-BGSKNKJF.js.map} +0 -0
  66. /package/build/{chunk-6VY5XPWN.js.map → chunk-BKNV2B7T.js.map} +0 -0
  67. /package/build/{chunk-NCLWI32Y.js.map → chunk-O4DV7EH5.js.map} +0 -0
  68. /package/build/{chunk-JRUKA4BX.js.map → chunk-PE3RXVKE.js.map} +0 -0
  69. /package/build/{chunk-OQ2EIA5Y.js.map → chunk-PYBYLDJB.js.map} +0 -0
  70. /package/build/{chunk-ZHOPW26J.js.map → chunk-QBIV5U5A.js.map} +0 -0
  71. /package/build/{chunk-N6MHPAL7.js.map → chunk-RCDIKBVN.js.map} +0 -0
  72. /package/build/{chunk-VPVMEECP.js.map → chunk-RDIPEKL2.js.map} +0 -0
  73. /package/build/{chunk-C6CRDQAM.js.map → chunk-SIP7BHV7.js.map} +0 -0
  74. /package/build/{chunk-RZD2Z3NM.js.map → chunk-UQ7NP6NA.js.map} +0 -0
  75. /package/build/{chunk-KOTYDSCW.js.map → chunk-XYNUUMC2.js.map} +0 -0
  76. /package/build/{preview-WCMD3SX5.js.map → preview-LQ6YX5QD.js.map} +0 -0
  77. /package/build/{render-command-S4HOHZ67.js.map → render-command-PDPDZKND.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ import { createRequire as _createRequire } from 'node:module';
2
+ const require = _createRequire(import.meta.url);
3
+ import{a as m}from"./chunk-XYNUUMC2.js";import"./chunk-3L5LQKB7.js";import"./chunk-UQ7NP6NA.js";import"./chunk-TBT2V5T7.js";import"./chunk-PYBYLDJB.js";import"./chunk-RDIPEKL2.js";import"./chunk-QBIV5U5A.js";import"./chunk-PE3RXVKE.js";import"./chunk-BKNV2B7T.js";import"./chunk-6R3ZFQVO.js";import"./chunk-6OPLPT2G.js";import"./chunk-O4DV7EH5.js";import"./chunk-XHPVJXDY.js";import"./chunk-7JJKVPKL.js";import{h as e}from"./chunk-HFDLXX7R.js";e();export{m as PreviewCommand};
4
+ //# sourceMappingURL=PreviewCommand-2DQ252RA.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as T,b as B}from"./chunk-N6MHPAL7.js";import{a as j,b as U}from"./chunk-PBVA37S6.js";import{b as A}from"./chunk-RZD2Z3NM.js";import"./chunk-F3L55KWK.js";import"./chunk-OQ2EIA5Y.js";import{b as I}from"./chunk-ZHOPW26J.js";import{i as F,j as h,k as M}from"./chunk-JRUKA4BX.js";import"./chunk-6VY5XPWN.js";import"./chunk-TXD4M2YS.js";import{A as s,B as y,d as t,g as S,h as x,i as g,k as P,s as w,t as E,w as C}from"./chunk-V4D26EXO.js";import{b as _}from"./chunk-NCLWI32Y.js";import{qa as v}from"./chunk-HFEDL4QC.js";import{a as q}from"./chunk-62RRZRN6.js";import{e as W,h as r}from"./chunk-HFDLXX7R.js";r();r();import l from"react";r();var k=W(q(),1);import c,{createContext as Q,useContext as X}from"react";r();import{preview as z}from"vite";import{useCallback as G,useEffect as H,useRef as J}from"react";function b(){let o=J(),{model:n}=v();return H(()=>()=>{o.current?.httpServer.close()},[]),G(async()=>{let i=await z(await B(n,{type:"build"}));return o.current=i,T(i)},[n])}var K=Q(null),d=({children:o})=>{let{model:n}=v(),{t:i}=y(),V=F(),D=b(),{status:L}=C(async()=>{await U(n.projectFolder);let m=await D(),a=await I(n.projectFolder),O=_(a,m);return{armTag:await V.createAppRelease(O,n.config.projectId),serverUrl:m}},[]);return(0,k.match)(L,{Error:()=>null,Loading:()=>c.createElement(E,{text:i("serve_command.starting_serve_environment")}),Success:({result:{armTag:m,serverUrl:a}})=>c.createElement(K.Provider,{value:{serverUrl:a}},c.createElement(h,{armTag:m},o))})};function f(){let o=X(K);if(o===null)throw new Error("useServeEnvironment() cannot be used without an <ServeEnvironmentProvider>");return o}r();import e from"react";function N(){let{site:o}=M(),{serverUrl:n}=f();return e.createElement(t,{flexDirection:"column"},e.createElement(t,{gap:1},e.createElement(S,{skin:"success"},e.createElement(P,null)),e.createElement(s,{i18nKey:"serve_command.starting_serve_environment_success",components:[e.createElement(w,{url:n})]})),e.createElement(t,{gap:1},e.createElement(x,null),e.createElement(s,{i18nKey:"serve_command.production_build"})),e.createElement(t,{gap:1,paddingTop:1,paddingBottom:1},e.createElement(g,null),e.createElement(s,{i18nKey:"general.dev_site.current",values:{name:o.displayName}})),e.createElement(t,{paddingBottom:1,flexDirection:"column"},e.createElement(j,null)))}var Y=()=>l.createElement(A,null,l.createElement(d,null,l.createElement(N,null)));export{Y as ServeCommand,d as ServeEnvironmentProvider,f as useServeEnvironment};
4
- //# sourceMappingURL=ServeCommand-SCDZSOGW.js.map
3
+ import{a as T,b as B}from"./chunk-RCDIKBVN.js";import{a as j,b as U}from"./chunk-3L5LQKB7.js";import{b as A}from"./chunk-UQ7NP6NA.js";import"./chunk-TBT2V5T7.js";import"./chunk-PYBYLDJB.js";import{b as I}from"./chunk-QBIV5U5A.js";import{i as F,j as h,k as M}from"./chunk-PE3RXVKE.js";import"./chunk-BKNV2B7T.js";import"./chunk-6R3ZFQVO.js";import{A as s,B as y,d as t,g as S,h as x,i as g,k as P,s as w,t as E,w as C}from"./chunk-6OPLPT2G.js";import{b as _}from"./chunk-O4DV7EH5.js";import{pa as v}from"./chunk-XHPVJXDY.js";import{a as q}from"./chunk-7JJKVPKL.js";import{e as W,h as r}from"./chunk-HFDLXX7R.js";r();r();import l from"react";r();var k=W(q(),1);import c,{createContext as Q,useContext as X}from"react";r();import{preview as z}from"vite";import{useCallback as G,useEffect as H,useRef as J}from"react";function b(){let o=J(),{model:n}=v();return H(()=>()=>{o.current?.httpServer.close()},[]),G(async()=>{let i=await z(await B(n,{type:"build"}));return o.current=i,T(i)},[n])}var K=Q(null),d=({children:o})=>{let{model:n}=v(),{t:i}=y(),V=F(),D=b(),{status:L}=C(async()=>{await U(n.projectFolder);let m=await D(),a=await I(n.projectFolder),O=_(a,m);return{armTag:await V.createAppRelease(O,n.config.projectId),serverUrl:m}},[]);return(0,k.match)(L,{Error:()=>null,Loading:()=>c.createElement(E,{text:i("serve_command.starting_serve_environment")}),Success:({result:{armTag:m,serverUrl:a}})=>c.createElement(K.Provider,{value:{serverUrl:a}},c.createElement(h,{armTag:m},o))})};function f(){let o=X(K);if(o===null)throw new Error("useServeEnvironment() cannot be used without an <ServeEnvironmentProvider>");return o}r();import e from"react";function N(){let{site:o}=M(),{serverUrl:n}=f();return e.createElement(t,{flexDirection:"column"},e.createElement(t,{gap:1},e.createElement(S,{skin:"success"},e.createElement(P,null)),e.createElement(s,{i18nKey:"serve_command.starting_serve_environment_success",components:[e.createElement(w,{url:n})]})),e.createElement(t,{gap:1},e.createElement(x,null),e.createElement(s,{i18nKey:"serve_command.production_build"})),e.createElement(t,{gap:1,paddingTop:1,paddingBottom:1},e.createElement(g,null),e.createElement(s,{i18nKey:"general.dev_site.current",values:{name:o.displayName}})),e.createElement(t,{paddingBottom:1,flexDirection:"column"},e.createElement(j,null)))}var Y=()=>l.createElement(A,null,l.createElement(d,null,l.createElement(N,null)));export{Y as ServeCommand,d as ServeEnvironmentProvider,f as useServeEnvironment};
4
+ //# sourceMappingURL=ServeCommand-XTHWLUDT.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{a as m,b as c,c as a}from"./chunk-J7GQKX36.js";import{b as n}from"./chunk-N6MHPAL7.js";import{a as p}from"./chunk-ZHOPW26J.js";import"./chunk-NCLWI32Y.js";import{oa as i}from"./chunk-HFEDL4QC.js";import{c as t,d as e}from"./chunk-62RRZRN6.js";import{h as r}from"./chunk-HFDLXX7R.js";r();import{cwd as f}from"node:process";import{build as s}from"vite";async function S(){let o=await i(f());if(o.components.length===0)throw new t({code:e.NoExtensionsFound()});m(o.components);let d=await s(await n(o,{type:"build"})).catch(()=>{throw new t({code:e.FailedToBuildApp()})}),l=await c({appId:o.config.appId,components:o.components,sentryDSN:o.config.sentryDSN,componentSourceBuilder:a({model:o,buildOutput:d})});await p({projectFolder:o.projectFolder,manifest:l})}export{S as build};
4
- //# sourceMappingURL=build-QKFFY6BT.js.map
3
+ import{a as m,b as c,c as a}from"./chunk-BGSKNKJF.js";import{b as n}from"./chunk-RCDIKBVN.js";import{a as p}from"./chunk-QBIV5U5A.js";import"./chunk-O4DV7EH5.js";import{na as i}from"./chunk-XHPVJXDY.js";import{c as t,d as e}from"./chunk-7JJKVPKL.js";import{h as r}from"./chunk-HFDLXX7R.js";r();import{cwd as f}from"node:process";import{build as s}from"vite";async function S(){let o=await i(f());if(o.components.length===0)throw new t({code:e.NoExtensionsFound()});m(o.components);let d=await s(await n(o,{type:"build"})).catch(()=>{throw new t({code:e.FailedToBuildApp()})}),l=await c({appId:o.config.appId,components:o.components,sentryDSN:o.config.sentryDSN,componentSourceBuilder:a({model:o,buildOutput:d})});await p({projectFolder:o.projectFolder,manifest:l})}export{S as build};
4
+ //# sourceMappingURL=build-QLE4H4H2.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{b as y}from"./chunk-F3L55KWK.js";import{l as C,m as L,n as d}from"./chunk-JRUKA4BX.js";import{A as p,B,d as i,g as h,j as f,s as b}from"./chunk-V4D26EXO.js";import{G as w,J as E,L as t,g as m}from"./chunk-HFEDL4QC.js";import{c as g,d as P}from"./chunk-62RRZRN6.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function S(o){let e=w(o),n=E(o);if(!await m(e)||!await m(n))throw new g({code:P.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:n=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},n&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(b,{url:o},e)))),j=()=>{let{t:o}=B(),{isPlatformExists:e,hasSinglePlatform:n,dashboardExtensions:u}=y(),l=C(),x=v=>L({envConfig:l,platformType:v});return r.createElement(r.Fragment,null,n(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:d({envConfig:l,extension:u[0]}),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(l.site.viewUrl?r.createElement(a,{url:x(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(h,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:x(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:d({envConfig:l,extension:u[0]}),label:o("general.platform.dashboard")}))))};export{j as a,S as b};
4
- //# sourceMappingURL=chunk-PBVA37S6.js.map
3
+ import{b as y}from"./chunk-TBT2V5T7.js";import{l as C,m as L,n as d}from"./chunk-PE3RXVKE.js";import{A as p,B,d as i,g as h,j as f,s as b}from"./chunk-6OPLPT2G.js";import{F as w,I as E,K as t,f as m}from"./chunk-XHPVJXDY.js";import{c as g,d as P}from"./chunk-7JJKVPKL.js";import{h as s}from"./chunk-HFDLXX7R.js";s();async function S(o){let e=w(o),n=E(o);if(!await m(e)||!await m(n))throw new g({code:P.BuiltProjectNeeded()})}s();import r from"react";var a=({url:o,label:e,withPointer:n=!0})=>r.createElement(i,null,r.createElement(i,{marginRight:1},n&&r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(b,{url:o},e)))),j=()=>{let{t:o}=B(),{isPlatformExists:e,hasSinglePlatform:n,dashboardExtensions:u}=y(),l=C(),x=v=>L({envConfig:l,platformType:v});return r.createElement(r.Fragment,null,n(t.Dashboard())?r.createElement(i,{flexDirection:"row"},r.createElement(p,{i18nKey:"general.open_preview.title_single"}),r.createElement(a,{withPointer:!1,url:d({envConfig:l,extension:u[0]}),label:o("general.platform.dashboard")})):r.createElement(i,{flexDirection:"column"},r.createElement(p,{i18nKey:"general.open_preview.title_multiple"}),r.createElement(i,{paddingLeft:2,flexDirection:"column"},e(t.Site())&&(l.site.viewUrl?r.createElement(a,{url:x(t.Site()),label:o("general.platform.site")}):r.createElement(i,{marginRight:1},r.createElement(f,null),r.createElement(i,{marginLeft:1},r.createElement(h,{skin:"secondary",underline:!0},o("general.platform.unpublished_site"))))),e(t.Editor())&&r.createElement(a,{url:x(t.Editor()),label:o("general.platform.editor")}),e(t.Dashboard())&&r.createElement(a,{url:d({envConfig:l,extension:u[0]}),label:o("general.platform.dashboard")}))))};export{j as a,S as b};
4
+ //# sourceMappingURL=chunk-3L5LQKB7.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{m as c,n as s}from"./chunk-TXD4M2YS.js";import{c as E}from"./chunk-V4D26EXO.js";import{e as p,f as l}from"./chunk-62RRZRN6.js";import{e as C,h as i}from"./chunk-HFDLXX7R.js";i();import{randomUUID as S}from"node:crypto";function _(r,e){r.updateDefaults(v(e))}function v(r){return r?{_client_id:r,_uuid:r,logged_user_id:r,logged_account_id:r,target_account_id:r}:{_client_id:S()}}i();import{uptime as V}from"node:process";i();var f=C(E(),1);import U from"node:os";import{platform as k,version as L}from"node:process";function d({cliVersion:r,flow:e}){return{...e?{flow:e}:{},cliVersion:r,isCI:f.default,nodeVersion:L,osName:N(),osVersion:U.release()}}function N(){switch(k){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var u=()=>Math.round(V()*1e3);function B({biLogger:r,command:e,flow:w,cliVersion:x,projectId:g,extensions:t}){let n={command:e.name(),arguments:e.args.join(",")??"",flags:Object.keys(e.opts()).join(",")};return r.report(c({...d({cliVersion:x,flow:w}),...n,...g?{projectId:g}:{},isValid:!0})),{succeed(){r.report(s({...n,...t?{extensions:JSON.stringify(t)}:{},duration:u(),isSuccess:!0,isValid:!0}))},failed(o){let y=p(o)?{errorType:l(o)?"SystemError":"UserError",errorName:o.name,errorMessage:o.message}:o instanceof Error?{errorType:"UnknownError",errorName:o.name,errorMessage:o.message}:{errorType:"UnknownError",errorMessage:JSON.stringify(o)};r.report(s({...n,...y,...t?{extensions:JSON.stringify(t)}:{},duration:u(),isSuccess:!1,isValid:!0}))}}}i();export{_ as a,B as b};
4
- //# sourceMappingURL=chunk-KDEP6ACN.js.map
3
+ import{m as c,n as s}from"./chunk-6R3ZFQVO.js";import{c as E}from"./chunk-6OPLPT2G.js";import{e as p,f as l}from"./chunk-7JJKVPKL.js";import{e as C,h as i}from"./chunk-HFDLXX7R.js";i();import{randomUUID as S}from"node:crypto";function _(r,e){r.updateDefaults(v(e))}function v(r){return r?{_client_id:r,_uuid:r,logged_user_id:r,logged_account_id:r,target_account_id:r}:{_client_id:S()}}i();import{uptime as V}from"node:process";i();var f=C(E(),1);import U from"node:os";import{platform as k,version as L}from"node:process";function d({cliVersion:r,flow:e}){return{...e?{flow:e}:{},cliVersion:r,isCI:f.default,nodeVersion:L,osName:N(),osVersion:U.release()}}function N(){switch(k){case"darwin":return"mac";case"win32":return"windows";default:return"linux"}}var u=()=>Math.round(V()*1e3);function B({biLogger:r,command:e,flow:w,cliVersion:x,projectId:g,extensions:t}){let n={command:e.name(),arguments:e.args.join(",")??"",flags:Object.keys(e.opts()).join(",")};return r.report(c({...d({cliVersion:x,flow:w}),...n,...g?{projectId:g}:{},isValid:!0})),{succeed(){r.report(s({...n,...t?{extensions:JSON.stringify(t)}:{},duration:u(),isSuccess:!0,isValid:!0}))},failed(o){let y=p(o)?{errorType:l(o)?"SystemError":"UserError",errorName:o.name,errorMessage:o.message}:o instanceof Error?{errorType:"UnknownError",errorName:o.name,errorMessage:o.message}:{errorType:"UnknownError",errorMessage:JSON.stringify(o)};r.report(s({...n,...y,...t?{extensions:JSON.stringify(t)}:{},duration:u(),isSuccess:!1,isValid:!0}))}}}i();export{_ as a,B as b};
4
+ //# sourceMappingURL=chunk-5XZSJPLU.js.map