@wix/cli-app 1.1.1 → 1.1.3
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/build/CreateVersionCommand-PIV2LH7B.js +4 -0
- package/build/CreateVersionCommand-PIV2LH7B.js.map +1 -0
- package/build/DevCommand-UIDNUWIP.js +4 -0
- package/build/DevCommand-UIDNUWIP.js.map +1 -0
- package/build/PreviewCommand-UKHGM3U7.js +4 -0
- package/build/ServeCommand-JX2AYHNK.js +4 -0
- package/build/{ServeCommand-PBWWH7JV.js.map → ServeCommand-JX2AYHNK.js.map} +1 -1
- package/build/SiteIdProvider-UIS4BKVC.js +4 -0
- package/build/{build-2RGFEOAH.js → build-X5PQLJYY.js} +2 -2
- package/build/{chunk-6G7R73WW.js → chunk-44TZXTHO.js} +2 -2
- package/build/{chunk-JZEMYLWD.js → chunk-7PCCZH2Q.js} +2 -2
- package/build/{chunk-JDGDMH7E.js → chunk-7PDV5QDK.js} +2 -2
- package/build/chunk-7T43YDHD.js +4 -0
- package/build/chunk-7T43YDHD.js.map +1 -0
- package/build/chunk-7XQUV5HO.js +4 -0
- package/build/chunk-7XQUV5HO.js.map +1 -0
- package/build/{chunk-IJ6QC2OQ.js → chunk-BJOLH7YC.js} +2 -2
- package/build/{chunk-BNCDZAQC.js → chunk-BQW2QNTV.js} +2 -2
- package/build/chunk-BXSRILE5.js +4 -0
- package/build/chunk-BXSRILE5.js.map +1 -0
- package/build/{chunk-RGPGMVHK.js → chunk-EICHKHNE.js} +3 -3
- package/build/chunk-EICHKHNE.js.map +1 -0
- package/build/{chunk-ZVAVQTPJ.js → chunk-GAEEULSA.js} +2 -2
- package/build/chunk-GXCVI5BG.js +75 -0
- package/build/chunk-GXCVI5BG.js.map +1 -0
- package/build/{chunk-DUZ55BRL.js → chunk-HMJ5TWEC.js} +85 -56
- package/build/{chunk-DUZ55BRL.js.map → chunk-HMJ5TWEC.js.map} +1 -1
- package/build/chunk-NQPO4DHF.js +106 -0
- package/build/chunk-NQPO4DHF.js.map +1 -0
- package/build/chunk-SGABAIB5.js +4 -0
- package/build/chunk-SGABAIB5.js.map +1 -0
- package/build/chunk-UFOJJCTK.js +4 -0
- package/build/{chunk-LHKDRLTT.js.map → chunk-UFOJJCTK.js.map} +1 -1
- package/build/{chunk-L4IT3FJC.js → chunk-UO6ED7UB.js} +2 -2
- package/build/chunk-XD45SKTN.js +23 -0
- package/build/{chunk-FJCAYHQL.js.map → chunk-XD45SKTN.js.map} +1 -1
- package/build/index.js +1 -1
- package/build/preview-5ELYGXV7.js +4 -0
- package/build/preview-5ELYGXV7.js.map +1 -0
- package/build/render-command-VECNS26S.js +4 -0
- package/build/{render-command-3GYMO4L2.js.map → render-command-VECNS26S.js.map} +1 -1
- package/package.json +6 -4
- package/build/CreateVersionCommand-M57PLQFO.js +0 -4
- package/build/CreateVersionCommand-M57PLQFO.js.map +0 -1
- package/build/DevCommand-HBIIRNKJ.js +0 -4
- package/build/DevCommand-HBIIRNKJ.js.map +0 -1
- package/build/PreviewCommand-ISSV3BOT.js +0 -4
- package/build/ServeCommand-PBWWH7JV.js +0 -4
- package/build/SiteIdProvider-OORASSSR.js +0 -4
- package/build/chunk-52CFCSNQ.js +0 -65
- package/build/chunk-52CFCSNQ.js.map +0 -1
- package/build/chunk-5CJ7KYIU.js +0 -4
- package/build/chunk-5CJ7KYIU.js.map +0 -1
- package/build/chunk-FGP4AKBM.js +0 -4
- package/build/chunk-FGP4AKBM.js.map +0 -1
- package/build/chunk-FJCAYHQL.js +0 -23
- package/build/chunk-JI4J5GCL.js +0 -4
- package/build/chunk-JI4J5GCL.js.map +0 -1
- package/build/chunk-LHKDRLTT.js +0 -4
- package/build/chunk-RGPGMVHK.js.map +0 -1
- package/build/chunk-U6YFRFIX.js +0 -106
- package/build/chunk-U6YFRFIX.js.map +0 -1
- package/build/chunk-XVSH4K7G.js +0 -4
- package/build/chunk-XVSH4K7G.js.map +0 -1
- package/build/preview-3532IXSY.js +0 -4
- package/build/preview-3532IXSY.js.map +0 -1
- package/build/render-command-3GYMO4L2.js +0 -4
- /package/build/{PreviewCommand-ISSV3BOT.js.map → PreviewCommand-UKHGM3U7.js.map} +0 -0
- /package/build/{SiteIdProvider-OORASSSR.js.map → SiteIdProvider-UIS4BKVC.js.map} +0 -0
- /package/build/{build-2RGFEOAH.js.map → build-X5PQLJYY.js.map} +0 -0
- /package/build/{chunk-6G7R73WW.js.map → chunk-44TZXTHO.js.map} +0 -0
- /package/build/{chunk-JZEMYLWD.js.map → chunk-7PCCZH2Q.js.map} +0 -0
- /package/build/{chunk-JDGDMH7E.js.map → chunk-7PDV5QDK.js.map} +0 -0
- /package/build/{chunk-IJ6QC2OQ.js.map → chunk-BJOLH7YC.js.map} +0 -0
- /package/build/{chunk-BNCDZAQC.js.map → chunk-BQW2QNTV.js.map} +0 -0
- /package/build/{chunk-ZVAVQTPJ.js.map → chunk-GAEEULSA.js.map} +0 -0
- /package/build/{chunk-L4IT3FJC.js.map → chunk-UO6ED7UB.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
var
|
|
3
|
+
var i="1.1.3";var a={"create_version_command_def.option.version_type":"The type of version you would like to create","create_version_command_def.option.approve_preview":"Approve preview automatically","create_version_command_def.option.base_url":"The base url for when static files have been uploaded to an external cdn","dev_command_def.option.https":"Start local dev server on https","app_preview_command_def.option.site":"The site id to use for Application Preview urls, defaults to the current selected development site","app_preview_command_def.option.base_url":"The base url for when static files have been uploaded to an external cdn","app_preview_command_def.option.no_input":"Disable command interactivity","general.loading":"Loading...","general.no_site_id_configured":"You don't have a Development Site currently configured","general.site_id_not_found":`Your currently configured Development Site was not found ({id})
|
|
4
4
|
This may happen because the site was deleted or your access has been revoked.
|
|
5
5
|
|
|
6
|
-
Please select another Development Site to continue`,"general.dashboard_page_text":"<0>Click here</0> to open your application in the Wix Dashboard","general.dashboard_page_click_here":"Click here","general.close_screen":"Press <0/> to close","general.write_dev_log_failure.message":"Can not write logs to <0>{path}</0>","general.write_dev_log_failure.hint":"Make sure the file has proper permissions and is accessible","preview_command.creating_preview":"Creating a preview...","preview_command.creating_preview_success":"Preview created successfully!","preview_command.uploading_files":"Uploading your application files...","preview_command.uploading_files_success":"Uploaded successfully!","dev_command.dev_environment.loading":"Starting dev environment...","dev_command.dev_environment.started":"Local development environment ready.","dev_command.dev_environment.url":"Application served on <0/>","dev_command.dev_environment.https_url.open_info":"Press <0/> to open & approve dev server","dev_command.dev_environment.https_url.failed_to_open":"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.","dev_command.dev_site.current":"Current Development Site: {name}","dev_command.dev_site.change":"Press <0/> to change your current Development Site","dev_command.site_selector.error":"Failed to change Development Site!","dev_command.dashboard_pages.open_page_error":"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:","dev_command.dashboard_pages_screen.select_label":"Select a dashboard page to open","dev_command.dashboard_pages_viewer.title":"Press a number key to open a dashboard page:","dev_command.dashboard_pages_viewer.show_more":"View more...","dev_command.dev_env_logs.title":"Dev Environment Logs: <0>(full logs at {path})</0>","dev_command.dev_env_logs.empty":"No logs to show","dev_command.config_change":"Loading App Manifest changes...","dev_command.config_update":"App Manifest updated. Refresh existing browser tabs to view the latest changes.","dev_command.config_didnt_update":"No App Manifest update occurred","serve_command.starting_serve_environment":"Starting serve environment...","serve_command.starting_serve_environment_success":"Serve environment started! <0/>","create_version_command.creating_version":"Creating a version...","create_version_command.creating_version_success":"Successfully created v{version}","create_version_command.
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
Please select another Development Site to continue`,"general.dashboard_page_text":"<0>Click here</0> to open your application in the Wix Dashboard","general.dashboard_page_click_here":"Click here","general.close_screen":"Press <0/> to close","general.write_dev_log_failure.message":"Can not write logs to <0>{path}</0>","general.write_dev_log_failure.hint":"Make sure the file has proper permissions and is accessible","preview_command.creating_preview":"Creating a preview...","preview_command.creating_preview_success":"Preview created successfully!","preview_command.uploading_files":"Uploading your application files...","preview_command.uploading_files_success":"Uploaded successfully!","dev_command.dev_environment.loading":"Starting dev environment...","dev_command.dev_environment.started":"Local development environment ready.","dev_command.dev_environment.url":"Application served on <0/>","dev_command.dev_environment.https_url.open_info":"Press <0/> to open & approve dev server","dev_command.dev_environment.https_url.failed_to_open":"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.","dev_command.dev_site.current":"Current Development Site: {name}","dev_command.dev_site.change":"Press <0/> to change your current Development Site","dev_command.site_selector.error":"Failed to change Development Site!","dev_command.dashboard_pages.open_page_error":"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:","dev_command.dashboard_pages_screen.select_label":"Select a dashboard page to open","dev_command.dashboard_pages_viewer.title":"Press a number key to open a dashboard page:","dev_command.dashboard_pages_viewer.show_more":"View more...","dev_command.dev_env_logs.title":"Dev Environment Logs: <0>(full logs at {path})</0>","dev_command.dev_env_logs.empty":"No logs to show","dev_command.config_change":"Loading App Manifest changes...","dev_command.config_update":"App Manifest updated. Refresh existing browser tabs to view the latest changes.","dev_command.config_didnt_update":"No App Manifest update occurred","serve_command.starting_serve_environment":"Starting serve environment...","serve_command.starting_serve_environment_success":"Serve environment started! <0/>","create_version_command.creating_version":"Creating a version...","create_version_command.creating_version_success":"Successfully created v{version}","create_version_command.current_version":"Your current version is: v{version}","create_version_command.confirm_version_creation":"Continue with creating the new version?","create_version_command.confirm_version_creation_aborted":"Version creation aborted","create_version_command.version_type_question":"What type of version would you like to create?","create_version_command.version_type_question_minor":"Minor (v{version})","create_version_command.version_type_question_major":"Major (v{version})","create_version_command.check_preview_before_version_release":"Before creating a new version, let's create a preview of your app","create_version_command.checking_validation_status":"Checking if this version can be submitted\u2026","create_version_command.version_validation_ok":"This version can be submitted for review in the <0>Dev Center<0/>","create_version_command.version_validation_has_failures":"This version has blockers preventing it from being submitted for review. Please fix them and submit your app in the <0>Dev Center<0/>"};export{i as a,a as b};
|
|
7
|
+
//# sourceMappingURL=chunk-EICHKHNE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../package.json","../src/messages.json"],"sourcesContent":["{\n \"name\": \"@wix/cli-app\",\n \"description\": \"CLI tool for Wix apps\",\n \"version\": \"1.1.3\",\n \"author\": \"Amit Dahan\",\n \"dependencies\": {\n \"vite\": \"5.0.2\"\n },\n \"devDependencies\": {\n \"@commander-js/extra-typings\": \"^11.1.0\",\n \"@types/lodash\": \"^4.14.200\",\n \"@types/mustache\": \"^4.2.5\",\n \"@wix/ambassador-ctp-app-cloud-deployer-service-v1-app-cloud-deployer\": \"^1.0.17\",\n \"@wix/ambassador-ctp-gradual-rollout-v1-app-config\": \"^1.0.64\",\n \"@wix/ambassador-devcenter-components-v1-component\": \"^1.0.361\",\n \"@wix/arm-client\": \"workspace:*\",\n \"@wix/bi-logger-wix-cli\": \"^1.31.0\",\n \"@wix/cli-app-definitions\": \"workspace:*\",\n \"@wix/cli-app-manifest\": \"workspace:*\",\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-http-client\": \"workspace:*\",\n \"@wix/cli-http-client-react\": \"workspace:*\",\n \"@wix/cli-i18n\": \"workspace:*\",\n \"@wix/cli-logger\": \"workspace:*\",\n \"@wix/cli-site-selector\": \"workspace:*\",\n \"@wix/cli-ssl\": \"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/dev-center-client\": \"workspace:*\",\n \"@wix/site-list-client\": \"workspace:*\",\n \"@wix/tsup-configs\": \"workspace:*\",\n \"@wix/user-browser\": \"workspace:*\",\n \"chalk\": \"^5.3.0\",\n \"chokidar\": \"^3.5.3\",\n \"commander\": \"^11.1.0\",\n \"fast-equals\": \"^5.0.1\",\n \"form-data\": \"^4.0.0\",\n \"globby\": \"^13.2.2\",\n \"mustache\": \"^4.2.0\",\n \"p-retry\": \"^5.1.2\",\n \"p-wait-for\": \"^5.0.2\",\n \"prompts\": \"^2.4.2\",\n \"semver\": \"^7.5.4\",\n \"tempy\": \"^3.1.0\",\n \"typed-emitter\": \"^2.1.0\",\n \"variant\": \"^3.0.0-dev.26\",\n \"vite-plugin-externals\": \"^0.6.2\",\n \"zod\": \"^3.22.4\"\n },\n \"engines\": {\n \"node\": \">= 18.16\"\n },\n \"exports\": {\n \".\": \"./build/index.js\",\n \"./client\": {\n \"types\": \"./client.d.ts\"\n },\n \"./internal/component-hmr-wrapper\": \"./internal/component-hmr-wrapper.tsx\",\n \"./tsconfig.app.json\": \"./tsconfig.app.json\",\n \"./package.json\": \"./package.json\"\n },\n \"files\": [\n \"build\",\n \"tsconfig.app.json\",\n \"client.d.ts\",\n \"internal\"\n ],\n \"peerDependencies\": {\n \"react\": \"^16.14 || ^17 || ^18\",\n \"react-dom\": \"^16.14 || ^17 || ^18\"\n },\n \"peerDependenciesMeta\": {\n \"react-dom\": {\n \"optional\": true\n }\n },\n \"perfer\": {\n \"bundleSize\": {\n \"files\": [\n {\n \"glob\": \"./build/index.js\",\n \"maxSize\": \"460kb\"\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 build --watch\",\n \"lint\": \"run -T lint-package\",\n \"test\": \"yarn workspace @wix/cli-app-spec run test\",\n \"test:watch\": \"yarn workspace @wix/cli-app-spec run test:watch\",\n \"typecheck\": \"run -T tsc --noEmit\"\n },\n \"sideEffects\": false,\n \"type\": \"module\",\n \"wix\": {\n \"artifact\": {\n \"groupId\": \"com.wixpress.npm\",\n \"artifactId\": \"wix-cli-app\"\n },\n \"validations\": {\n \"postBuild\": [\n \"typecheck\",\n \"lint\"\n ]\n }\n }\n}\n","{\n \"create_version_command_def.option.version_type\": \"The type of version you would like to create\",\n \"create_version_command_def.option.approve_preview\": \"Approve preview automatically\",\n \"create_version_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"dev_command_def.option.https\": \"Start local dev server on https\",\n \"app_preview_command_def.option.site\": \"The site id to use for Application Preview urls, defaults to the current selected development site\",\n \"app_preview_command_def.option.base_url\": \"The base url for when static files have been uploaded to an external cdn\",\n \"app_preview_command_def.option.no_input\": \"Disable command interactivity\",\n \"general.loading\": \"Loading...\",\n \"general.no_site_id_configured\": \"You don't have a Development Site currently configured\",\n \"general.site_id_not_found\": \"Your currently configured Development Site was not found ({id})\\nThis may happen because the site was deleted or your access has been revoked.\\n\\nPlease select another Development Site to continue\",\n \"general.dashboard_page_text\": \"<0>Click here</0> to open your application in the Wix Dashboard\",\n \"general.dashboard_page_click_here\": \"Click here\",\n \"general.close_screen\": \"Press <0/> to close\",\n \"general.write_dev_log_failure.message\": \"Can not write logs to <0>{path}</0>\",\n \"general.write_dev_log_failure.hint\": \"Make sure the file has proper permissions and is accessible\",\n \"preview_command.creating_preview\": \"Creating a preview...\",\n \"preview_command.creating_preview_success\": \"Preview created successfully!\",\n \"preview_command.uploading_files\": \"Uploading your application files...\",\n \"preview_command.uploading_files_success\": \"Uploaded successfully!\",\n \"dev_command.dev_environment.loading\": \"Starting dev environment...\",\n \"dev_command.dev_environment.started\": \"Local development environment ready.\",\n \"dev_command.dev_environment.url\": \"Application served on <0/>\",\n \"dev_command.dev_environment.https_url.open_info\": \"Press <0/> to open & approve dev server\",\n \"dev_command.dev_environment.https_url.failed_to_open\": \"Unable to open <0/> for approving selfsigned certificate. Please manually access the link.\",\n \"dev_command.dev_site.current\": \"Current Development Site: {name}\",\n \"dev_command.dev_site.change\": \"Press <0/> to change your current Development Site\",\n \"dev_command.site_selector.error\": \"Failed to change Development Site!\",\n \"dev_command.dashboard_pages.open_page_error\": \"Failed to open the browser for <0>{title}</0>, use the following URL to open it in your browser:\",\n \"dev_command.dashboard_pages_screen.select_label\": \"Select a dashboard page to open\",\n \"dev_command.dashboard_pages_viewer.title\": \"Press a number key to open a dashboard page:\",\n \"dev_command.dashboard_pages_viewer.show_more\": \"View more...\",\n \"dev_command.dev_env_logs.title\": \"Dev Environment Logs: <0>(full logs at {path})</0>\",\n \"dev_command.dev_env_logs.empty\": \"No logs to show\",\n \"dev_command.config_change\": \"Loading App Manifest changes...\",\n \"dev_command.config_update\": \"App Manifest updated. Refresh existing browser tabs to view the latest changes.\",\n \"dev_command.config_didnt_update\": \"No App Manifest update occurred\",\n \"serve_command.starting_serve_environment\": \"Starting serve environment...\",\n \"serve_command.starting_serve_environment_success\": \"Serve environment started! <0/>\",\n \"create_version_command.creating_version\": \"Creating a version...\",\n \"create_version_command.creating_version_success\": \"Successfully created v{version}\",\n \"create_version_command.current_version\": \"Your current version is: v{version}\",\n \"create_version_command.confirm_version_creation\": \"Continue with creating the new version?\",\n \"create_version_command.confirm_version_creation_aborted\": \"Version creation aborted\",\n \"create_version_command.version_type_question\": \"What type of version would you like to create?\",\n \"create_version_command.version_type_question_minor\": \"Minor (v{version})\",\n \"create_version_command.version_type_question_major\": \"Major (v{version})\",\n \"create_version_command.check_preview_before_version_release\": \"Before creating a new version, let's create a preview of your app\",\n \"create_version_command.checking_validation_status\": \"Checking if this version can be submitted…\",\n \"create_version_command.version_validation_ok\": \"This version can be submitted for review in the <0>Dev Center<0/>\",\n \"create_version_command.version_validation_has_failures\": \"This version has blockers preventing it from being submitted for review. Please fix them and submit your app in the <0>Dev Center<0/>\"\n}\n"],"mappings":";;AAGE,IAAAA,EAAW,QCHb,IAAAC,EAAA,CACE,iDAAkD,+CAClD,oDAAqD,gCACrD,6CAA8C,2EAC9C,+BAAgC,kCAChC,sCAAuC,qGACvC,0CAA2C,2EAC3C,0CAA2C,gCAC3C,kBAAmB,aACnB,gCAAiC,yDACjC,4BAA6B;AAAA;AAAA;AAAA,oDAC7B,8BAA+B,kEAC/B,oCAAqC,aACrC,uBAAwB,sBACxB,wCAAyC,sCACzC,qCAAsC,8DACtC,mCAAoC,wBACpC,2CAA4C,gCAC5C,kCAAmC,sCACnC,0CAA2C,yBAC3C,sCAAuC,8BACvC,sCAAuC,uCACvC,kCAAmC,6BACnC,kDAAmD,0CACnD,uDAAwD,6FACxD,+BAAgC,mCAChC,8BAA+B,qDAC/B,kCAAmC,qCACnC,8CAA+C,mGAC/C,kDAAmD,kCACnD,2CAA4C,+CAC5C,+CAAgD,eAChD,iCAAkC,qDAClC,iCAAkC,kBAClC,4BAA6B,kCAC7B,4BAA6B,kFAC7B,kCAAmC,kCACnC,2CAA4C,gCAC5C,mDAAoD,kCACpD,0CAA2C,wBAC3C,kDAAmD,kCACnD,yCAA0C,sCAC1C,kDAAmD,0CACnD,0DAA2D,2BAC3D,+CAAgD,iDAChD,qDAAsD,qBACtD,qDAAsD,qBACtD,8DAA+D,oEAC/D,oDAAqD,kDACrD,+CAAgD,oEAChD,yDAA0D,uIAC5D","names":["version","messages_default"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire as _createRequire } from 'node:module';
|
|
2
2
|
const require = _createRequire(import.meta.url);
|
|
3
|
-
import{h as v}from"./chunk-
|
|
3
|
+
import{h as v}from"./chunk-GXCVI5BG.js";import{a as $,c as E,e as he,h as m}from"./chunk-HFDLXX7R.js";var H=E(D=>{"use strict";m();var V=class extends Error{constructor(e,t,i){super(i),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=t,this.exitCode=e,this.nestedError=void 0}},k=class extends V{constructor(e){super(1,"commander.invalidArgument",e),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};D.CommanderError=V;D.InvalidArgumentError=k});var S=E(P=>{"use strict";m();var{InvalidArgumentError:ue}=H(),N=class{constructor(e,t){switch(this.description=t||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,e[0]){case"<":this.required=!0,this._name=e.slice(1,-1);break;case"[":this.required=!1,this._name=e.slice(1,-1);break;default:this.required=!0,this._name=e;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(e,t){return t===this.defaultValue||!Array.isArray(t)?[e]:t.concat(e)}default(e,t){return this.defaultValue=e,this.defaultValueDescription=t,this}argParser(e){return this.parseArg=e,this}choices(e){return this.argChoices=e.slice(),this.parseArg=(t,i)=>{if(!this.argChoices.includes(t))throw new ue(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(t,i):t},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function ce(l){let e=l.name()+(l.variadic===!0?"...":"");return l.required?"<"+e+">":"["+e+"]"}P.Argument=N;P.humanReadableArgName=ce});var q=E(B=>{"use strict";m();var{humanReadableArgName:pe}=S(),I=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(e){let t=e.commands.filter(i=>!i._hidden);if(e._hasImplicitHelpCommand()){let[,i,n]=e._helpCommandnameAndArgs.match(/([^ ]+) *(.*)/),s=e.createCommand(i).helpOption(!1);s.description(e._helpCommandDescription),n&&s.arguments(n),t.push(s)}return this.sortSubcommands&&t.sort((i,n)=>i.name().localeCompare(n.name())),t}compareOptions(e,t){let i=n=>n.short?n.short.replace(/^-/,""):n.long.replace(/^--/,"");return i(e).localeCompare(i(t))}visibleOptions(e){let t=e.options.filter(s=>!s.hidden),i=e._hasHelpOption&&e._helpShortFlag&&!e._findOption(e._helpShortFlag),n=e._hasHelpOption&&!e._findOption(e._helpLongFlag);if(i||n){let s;i?n?s=e.createOption(e._helpFlags,e._helpDescription):s=e.createOption(e._helpShortFlag,e._helpDescription):s=e.createOption(e._helpLongFlag,e._helpDescription),t.push(s)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleGlobalOptions(e){if(!this.showGlobalOptions)return[];let t=[];for(let i=e.parent;i;i=i.parent){let n=i.options.filter(s=>!s.hidden);t.push(...n)}return this.sortOptions&&t.sort(this.compareOptions),t}visibleArguments(e){return e._argsDescription&&e.registeredArguments.forEach(t=>{t.description=t.description||e._argsDescription[t.name()]||""}),e.registeredArguments.find(t=>t.description)?e.registeredArguments:[]}subcommandTerm(e){let t=e.registeredArguments.map(i=>pe(i)).join(" ");return e._name+(e._aliases[0]?"|"+e._aliases[0]:"")+(e.options.length?" [options]":"")+(t?" "+t:"")}optionTerm(e){return e.flags}argumentTerm(e){return e.name()}longestSubcommandTermLength(e,t){return t.visibleCommands(e).reduce((i,n)=>Math.max(i,t.subcommandTerm(n).length),0)}longestOptionTermLength(e,t){return t.visibleOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestGlobalOptionTermLength(e,t){return t.visibleGlobalOptions(e).reduce((i,n)=>Math.max(i,t.optionTerm(n).length),0)}longestArgumentTermLength(e,t){return t.visibleArguments(e).reduce((i,n)=>Math.max(i,t.argumentTerm(n).length),0)}commandUsage(e){let t=e._name;e._aliases[0]&&(t=t+"|"+e._aliases[0]);let i="";for(let n=e.parent;n;n=n.parent)i=n.name()+" "+i;return i+t+" "+e.usage()}commandDescription(e){return e.description()}subcommandDescription(e){return e.summary()||e.description()}optionDescription(e){let t=[];return e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&(e.required||e.optional||e.isBoolean()&&typeof e.defaultValue=="boolean")&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),e.presetArg!==void 0&&e.optional&&t.push(`preset: ${JSON.stringify(e.presetArg)}`),e.envVar!==void 0&&t.push(`env: ${e.envVar}`),t.length>0?`${e.description} (${t.join(", ")})`:e.description}argumentDescription(e){let t=[];if(e.argChoices&&t.push(`choices: ${e.argChoices.map(i=>JSON.stringify(i)).join(", ")}`),e.defaultValue!==void 0&&t.push(`default: ${e.defaultValueDescription||JSON.stringify(e.defaultValue)}`),t.length>0){let i=`(${t.join(", ")})`;return e.description?`${e.description} ${i}`:i}return e.description}formatHelp(e,t){let i=t.padWidth(e,t),n=t.helpWidth||80,s=2,r=2;function a(d,w){if(w){let F=`${d.padEnd(i+r)}${w}`;return t.wrap(F,n-s,i+r)}return d}function o(d){return d.join(`
|
|
4
4
|
`).replace(/^/gm," ".repeat(s))}let h=[`Usage: ${t.commandUsage(e)}`,""],u=t.commandDescription(e);u.length>0&&(h=h.concat([t.wrap(u,n,0),""]));let c=t.visibleArguments(e).map(d=>a(t.argumentTerm(d),t.argumentDescription(d)));c.length>0&&(h=h.concat(["Arguments:",o(c),""]));let f=t.visibleOptions(e).map(d=>a(t.optionTerm(d),t.optionDescription(d)));if(f.length>0&&(h=h.concat(["Options:",o(f),""])),this.showGlobalOptions){let d=t.visibleGlobalOptions(e).map(w=>a(t.optionTerm(w),t.optionDescription(w)));d.length>0&&(h=h.concat(["Global Options:",o(d),""]))}let x=t.visibleCommands(e).map(d=>a(t.subcommandTerm(d),t.subcommandDescription(d)));return x.length>0&&(h=h.concat(["Commands:",o(x),""])),h.join(`
|
|
5
5
|
`)}padWidth(e,t){return Math.max(t.longestOptionTermLength(e,t),t.longestGlobalOptionTermLength(e,t),t.longestSubcommandTermLength(e,t),t.longestArgumentTermLength(e,t))}wrap(e,t,i,n=40){let s=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",r=new RegExp(`[\\n][${s}]+`);if(e.match(r))return e;let a=t-i;if(a<n)return e;let o=e.slice(0,i),h=e.slice(i).replace(`\r
|
|
6
6
|
`,`
|
|
@@ -21,4 +21,4 @@ Expecting one of '${i.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
|
|
|
21
21
|
`),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(i=>Ae(i));return[].concat(this.options.length||this._hasHelpOption?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=b.basename(e,b.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp();return t.helpWidth===void 0&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){e=e||{};let t={error:!!e.error},i;return t.error?i=n=>this._outputConfiguration.writeErr(n):i=n=>this._outputConfiguration.writeOut(n),t.write=e.write||i,t.command=this,t}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let i=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(s=>s.emit("beforeAllHelp",i)),this.emit("beforeHelp",i);let n=this.helpInformation(i);if(t&&(n=t(n),typeof n!="string"&&!Buffer.isBuffer(n)))throw new Error("outputHelp callback must return a string or a Buffer");i.write(n),this._helpLongFlag&&this.emit(this._helpLongFlag),this.emit("afterHelp",i),this._getCommandAndAncestors().forEach(s=>s.emit("afterAllHelp",i))}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let i=be(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e);let t=p.exitCode||0;t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let i=["beforeAll","before","after","afterAll"];if(!i.includes(e))throw new Error(`Unexpected value for position to addHelpText.
|
|
22
22
|
Expecting one of '${i.join("', '")}'`);let n=`${e}Help`;return this.on(n,s=>{let r;typeof t=="function"?r=t({error:s.error,command:s.command}):r=t,r&&s.write(`${r}
|
|
23
23
|
`)}),this}};function X(l,e){l._hasHelpOption&&e.find(i=>i===l._helpLongFlag||i===l._helpShortFlag)&&(l.outputHelp(),l._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Z(l){return l.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",n="9229",s;return(s=e.match(/^(--inspect(-brk)?)$/))!==null?t=s[1]:(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=s[1],/^\d+$/.test(s[3])?n=s[3]:i=s[3]):(s=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=s[1],i=s[3],n=s[4]),t&&n!=="0"?`${t}=${i}:${parseInt(n)+1}`:e})}ee.Command=G});var re=E((_,se)=>{"use strict";m();var{Argument:Ee}=S(),{Command:ie}=te(),{CommanderError:xe,InvalidArgumentError:ne}=H(),{Help:$e}=q(),{Option:ve}=M();_=se.exports=new ie;_.program=_;_.Command=ie;_.Option=ve;_.Argument=Ee;_.Help=$e;_.CommanderError=xe;_.InvalidArgumentError=ne;_.InvalidOptionArgumentError=ne});var ae=E((g,oe)=>{"use strict";m();var O=re();g=oe.exports={};g.program=new O.Command;g.Argument=O.Argument;g.Command=O.Command;g.CommanderError=O.CommanderError;g.Help=O.Help;g.InvalidArgumentError=O.InvalidArgumentError;g.InvalidOptionArgumentError=O.InvalidArgumentError;g.Option=O.Option;g.createCommand=l=>new O.Command(l);g.createOption=(l,e)=>new O.Option(l,e);g.createArgument=(l,e)=>new O.Argument(l,e)});m();m();m();var le=he(ae(),1),{program:Ue,createCommand:Ge,createArgument:Re,createOption:Be,CommanderError:Je,InvalidArgumentError:R,InvalidOptionArgumentError:Ke,Command:ze,Argument:Ye,Option:Qe,Help:Xe}=le.default;function He(l){let e=v.union([v.string().uuid(),v.literal("current")]).transform(t=>t==="current"?void 0:t).safeParse(l);if(e.success)return e.data;throw new R('Value must be a valid GUID or "current"')}function Ve(l){let e=v.string().url().safeParse(l);if(e.success)return e.data;throw new R("Value must be a valid URL")}export{Ge as a,R as b,Qe as c,He as d,Ve as e};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-GAEEULSA.js.map
|