@capgo/cli 8.108.1 → 8.108.2
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/README.md +1 -1
- package/dist/index.js +5 -5
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/sdk.js +1 -1
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +1 -1
- package/skills/native-builds/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -2632,7 +2632,7 @@ npx @capgo/cli@latest mcp
|
|
|
2632
2632
|
|
|
2633
2633
|
## <a id="simulator"></a> 🔹 **Simulator**
|
|
2634
2634
|
|
|
2635
|
-
Start a cloud simulator. A running simulator uses one builder slot and build minutes.
|
|
2635
|
+
Start a cloud simulator. A running simulator uses one builder slot and counts as build time. It stops by itself after 5 minutes without input.
|
|
2636
2636
|
|
|
2637
2637
|
### <a id="simulator-start"></a> 🔹 **Start**
|
|
2638
2638
|
|
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ ${Z}
|
|
|
72
72
|
`}}}}).prompt();var l0=b(()=>{dHA();dHA();bHA();THA();mg=nA(xHA(),1);pHA=N60(),C60=U6("◆","*"),JaA=U6("■","x"),YaA=U6("▲","x"),nHA=U6("◇","o"),XaA=U6("┌","T"),m$=U6("│","|"),DF=U6("└","—"),R60=U6("┐","T"),E60=U6("┘","—"),iHA=U6("●",">"),yt=U6("○"," "),HfB=U6("◻","[•]"),FfB=U6("◼","[+]"),zfB=U6("◻","[ ]"),w60=U6("▪","•"),j60=U6("─","-"),_60=U6("╮","+"),qfB=U6("├","+"),T60=U6("╯","+"),P60=U6("╰","+"),S60=U6("╭","+"),k60=U6("●","•"),b60=U6("◆","*"),v60=U6("▲","!"),x60=U6("■","x");h60=[S60,_60,P60,T60],u60=[XaA,R60,DF,E60];UfB=[`${x0("dim","↑/↓")} to navigate`,`${x0("dim","Space:")} select`,`${x0("dim","Enter:")} confirm`],x={message:(A=[],{symbol:Q=x0("gray",m$),secondarySymbol:B=x0("gray",m$),output:$=process.stdout,spacing:J=1,withGuide:Y}={})=>{let X=[],Z=Y??x5.withGuide,G=Z?B:"",K=Z?`${Q} `:"",W=Z?`${B} `:"";for(let F=0;F<J;F++)X.push(G);let H=Array.isArray(A)?A:A.split(`
|
|
73
73
|
`);if(H.length>0){let[F,...D]=H;F.length>0?X.push(`${K}${F}`):X.push(Z?Q:"");for(let U of D)U.length>0?X.push(`${W}${U}`):X.push(Z?B:"")}$.write(`${X.join(`
|
|
74
74
|
`)}
|
|
75
|
-
`)},info:(A,Q)=>{x.message(A,{...Q,symbol:x0("blue",k60)})},success:(A,Q)=>{x.message(A,{...Q,symbol:x0("green",b60)})},step:(A,Q)=>{x.message(A,{...Q,symbol:x0("green",nHA)})},warn:(A,Q)=>{x.message(A,{...Q,symbol:x0("yellow",v60)})},warning:(A,Q)=>{x.warn(A,Q)},error:(A,Q)=>{x.message(A,{...Q,symbol:x0("red",x60)})}},DfB={light:U6("─","-"),heavy:U6("━","="),block:U6("█","#")},l60=[`${x0("dim","↑/↓")} to navigate`,`${x0("dim","Enter:")} confirm`],IfB=`${x0("gray",m$)} `});var GaA=BA((LfB,d60)=>{d60.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var HC=BA((oHA)=>{var KaA=GaA(),J5=process.env;Object.defineProperty(oHA,"_vendors",{value:KaA.map(function(A){return A.constant})});oHA.name=null;oHA.isPR=null;oHA.id=null;if(J5.CI!=="false")KaA.forEach(function(A){let B=(Array.isArray(A.env)?A.env:[A.env]).every(function($){return WaA($)});if(oHA[A.constant]=B,!B)return;oHA.name=A.name,oHA.isPR=p60(A),oHA.id=A.constant});oHA.isCI=!!(J5.CI!=="false"&&(J5.BUILD_ID||J5.BUILD_NUMBER||J5.CI||J5.CI_APP_ID||J5.CI_BUILD_ID||J5.CI_BUILD_NUMBER||J5.CI_NAME||J5.CONTINUOUS_INTEGRATION||J5.RUN_ID||oHA.name||!1));function WaA(A){if(typeof A==="string")return!!J5[A];if("env"in A)return J5[A.env]&&J5[A.env].includes(A.includes);if("any"in A)return A.any.some(function(Q){return!!J5[Q]});return Object.keys(A).every(function(Q){return J5[Q]===A[Q]})}function p60(A){switch(typeof A.pr){case"string":return!!J5[A.pr];case"object":if("env"in A.pr)if("any"in A.pr)return A.pr.any.some(function(Q){return J5[A.pr.env]===Q});else return A.pr.env in J5&&J5[A.pr.env]!==A.pr.ne;else if("any"in A.pr)return A.pr.any.some(function(Q){return!!J5[Q]});else return WaA(A.pr);default:return null}}});var Y8;var ZX=b(()=>{Y8={name:"@capgo/cli",type:"module",version:"8.108.1",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",typecheck:"tsc --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:key-create-mode":"bun test/test-key-create-mode.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:offline-packers":"bun test/test-offline-packers.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:bundle-soft-delete":"bun test/test-bundle-soft-delete.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:api-perf":"bun test/test-api-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:build-custom-msg":"bun test/test-build-custom-msg.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:bundle-single-requests":"bun test test/test-bundle-single-requests.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs && bun test/test-mcp-telemetry-project.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-error-guidance":"bun test/test-mcp-error-guidance.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-project-dir":"bun test/test-mcp-project-dir.mjs && bun test/test-cwd.mjs && bun test/test-project-context.mjs","test:mcp-host-fields":"bun test/test-mcp-host-fields.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-spawn":"bun test/test-mcp-build-spawn.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list":"bun test/test-app-list.mjs","test:app-todo":"bun test/test-app-todo.mjs && bun test/test-builder-only-checklist.mjs && bun test/test-builder-only-setup.mjs && bun test/test-app-todo-lists.mjs && bun test/test-app-todo-tabs.mjs && bun test/test-app-todo-command.mjs && node test/test-app-todo-interactive.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-capgo-client":"bun test/test-create-capgo-client.mjs","test:no-supabase-sdk":"bun test/test-no-supabase-sdk.mjs","test:no-redirect-error":"bun test/test-no-redirect-error.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs && bun test ./test/test-ios-simulator-compatibility.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-command-execution":"bun test/test-init-command-execution.mjs","test:init-upload-recovery":"bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-ota-checklist":"bun test/test-init-ota-checklist.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs && bun test/test-auth-session-bad-key.mjs","test:mcp":"node test/test-mcp.mjs && node test/test-mcp-skills.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs && bun test/test-build-env.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:monitoring":"bun test test/test-monitoring.test.ts","test:suite":"bun run test:monitoring && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:recommend && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:key-create-mode && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:offline-packers && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:api-perf && bun run test:preview-qr && bun run test:build-custom-msg && bun run test:bundle-pages && bun run test:bundle-single-requests && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-error-guidance && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-project-dir && bun run test:mcp-host-fields && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-spawn && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-capgo-client && bun run test:bundle-soft-delete && bun run test:no-supabase-sdk && bun run test:no-redirect-error && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-command-execution && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:init-ota-checklist && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:support && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:retryable-capgo-api-error && bun run test:organization-set-api-host && bun run test:plan-validation && bun run test:setup-notices && bun run test:settings-parity && bun run test:init-browser-login && bun run test:android-onboarding-units && bun run test:build-credentials-units && bun run test:onboarding-generators && bun run test:mcp-onboarding","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support":"bun test/test-support.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:settings-parity":"bun test/test-settings-parity.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:retryable-capgo-api-error":"bun test/test-retryable-capgo-api-error.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:plan-validation":"bun test/test-plan-validation.mjs && bun test ./test/test-direct-offer-plan.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs","test:init-browser-login":"bun test test/init/","test:android-onboarding-units":"bun test/test-android-gradle.mjs && bun test/test-android-keystore.mjs && bun test/test-android-oauth.mjs && bun test/test-android-play.mjs && bun test/test-android-tui-sequencing.mjs","test:build-credentials-units":"bun test/test-credentials-migration.mjs && bun test/test-provisioning-map-validation.mjs && bun test/test-mobileprovision-parser.mjs","test:onboarding-generators":"bun test/test-diff-utils.mjs && bun test/test-workflow-generator.mjs","test:mcp-onboarding":"bun test ./test/build/onboarding/mcp/scoped-credential-path.test.ts && bun test/test-mcp-onboarding.mjs","test:setup-notices":"bun test ./test/test-setup-notices.mjs ./test/test-setup-progress-request.mjs ./test/test-setup-notice-background.mjs ./test/test-init-completion-notice.mjs && bun test ./test/test-builder-setup-notice.mjs","test:recommend":"bun test test/recommend-context.test.ts"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^21.0.4",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/cross-spawn":"^6.0.6","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native":"npm:typescript@7.1.0-beta","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0","cross-spawn":"^7.0.6",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});import{AsyncLocalStorage as e60}from"node:async_hooks";function Q90(){return A90.getStore()}function cg(){IaA=!0}function MaA(){return IaA}function LaA(A){OaA=A}function DaA(A){try{OaA?.(A)}catch{}}function VaA(A,Q){let B;try{B=new URL(A).pathname}catch{B=A.split("?")[0]}let $=[];for(let J of B.split("/").filter(Boolean)){if($.length>=4||!/^(?:[a-z_-]+|2fa)$/.test(J))break;$.push(J)}return`${Q} ${$.join("/")||B}`}function B90(A){let Q=A?.headers;if(!Q)return;let B=Q.get;if(typeof B==="function")return B.call(Q,"capgkey")??void 0;if(Array.isArray(Q))return Q.find(([$])=>$.toLowerCase()==="capgkey")?.[1];return Q.capgkey}function CaA(A){return async(B,$)=>{let J=($?.method??"GET").toUpperCase(),Y=typeof B==="string"?B:B instanceof URL?B.href:B.url,X=Q90(),Z=B90($),G=Date.now();try{let K=await globalThis.fetch(B,$);return DaA({url:Y,route:A,method:J,status:K.status,ok:K.ok,durationMs:Date.now()-G,source:X,apikey:Z}),K}catch(K){throw DaA({url:Y,route:A,method:J,status:0,ok:!1,durationMs:Date.now()-G,source:X,apikey:Z,error:K}),K}}}var A90,IaA=!1,OaA,NaA=5000;var lg=b(()=>{A90=new e60});var PA;var $1=b(()=>{PA=class PA extends Error{context;constructor(A,Q,B){super(A,B!==void 0?{cause:B}:void 0);this.name="CliUserError",this.context=Q}}});import{platform as $90}from"node:os";import{version as J90}from"node:process";function waA(A){EaA=A}function X90(A){for(let Q=0;Q<A.length;Q++)if(A.charCodeAt(Q)>255)return!1;return!0}function RaA(A){if(A.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function Z90(A){if(A.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(A.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function QFA(A,Q){if(Q===void 0||Q===null){if(AFA.has(A.toLowerCase()))throw new PA(RaA(A));throw new PA(`HTTP header "${A}" is missing or invalid.`)}if(typeof Q!=="string"){if(AFA.has(A.toLowerCase()))throw new PA(RaA(A));throw new PA(`HTTP header "${A}" is missing or invalid.`)}if(!X90(Q)){if(AFA.has(A.toLowerCase()))throw new PA(Z90(A));throw new PA(`HTTP header "${A}" contains invalid characters (only ASCII is allowed).`)}return Q}function G90(A=it.isCI,Q=it.name){if(!A)return;return(Q??"").replace(/[^\x20-\x7E]/g,"").trim().slice(0,64)||"ci"}function l1(A){let Q={capgo_api:Y90,"x-cli-version":Y8.version,"x-cli-command":EaA,"x-cli-node":J90,"x-cli-os":$90()},B=G90();if(B)Q["x-cli-ci"]=B;if(A)for(let[$,J]of Object.entries(A))Q[$]=QFA($,J);return Q}var it,Y90="2025-10-01",EaA="",AFA;var JY=b(()=>{ZX();$1();it=nA(HC(),1),AFA=new Set(["authorization","capgkey","x-capgo-log-token"])});function jaA(A){let Q=A;if(typeof Q.status==="number")return Q.status;let B=Q.context&&typeof Q.context==="object"?Q.context.status:void 0;return typeof B==="number"?B:void 0}function K90(A){if(!A||typeof A!=="object")return;let Q=jaA(A);if(Q!==void 0)return Q;let B=A.cause;if(B&&typeof B==="object")return jaA(B);return}function W90(A){let Q=[],B=new Set,$=A;if(typeof A==="string")return A;while($){if(typeof $==="string"){Q.push($);break}if(typeof $!=="object")break;if(B.has($))break;if(B.add($),$ instanceof Error){Q.push($.message),$=$.cause;continue}let J=$;if(typeof J.message==="string")Q.push(J.message);$=J.cause}return Q.join(" ")}function H90(A){return W90(A)}function zC(A){if(A&&typeof A==="object"&&"code"in A){let $=A.code;if(typeof $==="string"&&$.startsWith("commander."))return"commander"}let Q=K90(A);if(Q!==void 0){if(Q===401)return"unauthorized";if(Q===403)return"forbidden";if(Q===404)return"not_found";if(Q===413)return"payload_too_large";if(Q===429)return"rate_limited";if(Q>=500)return"server_error"}let B=H90(A).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(B))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(B))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(B))return"validation_error";return"unknown"}function _aA(A){if(A===401)return"unauthorized";if(A===403)return"forbidden";if(A===404)return"not_found";if(A===408||A===504)return"timeout";if(A===413)return"payload_too_large";if(A===429)return"rate_limited";if(A===400||A===422)return"validation_error";if(A>=500)return"server_error";return"unknown"}function GX(A){let Q=A.length;while(Q>0&&A[Q-1]==="/")Q-=1;return A.slice(0,Q)}import{randomUUID as PaA}from"node:crypto";import{existsSync as q90,mkdirSync as U90,readFileSync as D90,writeFileSync as I90}from"node:fs";import{homedir as JFA,platform as M90,release as O90}from"node:os";import{join as SaA}from"node:path";import{arch as L90,cwd as kaA,env as qC,version as N90}from"node:process";function P2(A){return A==="1"||A?.toLowerCase()==="true"||A?.toLowerCase()==="yes"}function w90(){if(P2(qC.CAPGO_DISABLE_TELEMETRY)||P2(qC.CAPGO_DISABLE_POSTHOG))return;return qC.CAPGO_CLI_POSTHOG_API_KEY?.trim()||qC.POSTHOG_API_KEY?.trim()||C90}function j90(A){let Q=GX(A);if(Q.endsWith("/i/v0/e"))return`${Q}/`;let B=Q.replace(/\/capture$/,"/");return new URL("i/v0/e/",B.endsWith("/")?B:`${B}/`).toString()}function _90(A){if(A instanceof Error)return{cause:A.cause,message:A.message,name:A.name||"Error",stack:A.stack};if(typeof A==="string")return{message:A,name:"Error",stack:void 0};try{return{message:JSON.stringify(A)??String(A),name:"Error",stack:void 0}}catch{return{message:String(A),name:"Error",stack:void 0}}}function T90(A){let Q=A,B=kaA(),$=JFA();if(B)Q=Q.replaceAll(B,"<cwd>");if($)Q=Q.replaceAll($,"~");return Q}function P90(A){let Q=A,B=kaA(),$=JFA();if(B)Q=Q.replaceAll(B,"<cwd>");if($)Q=Q.replaceAll($,"~");return Q.replace(/<cwd>\/[^\s"',)]+/g,"<cwd>/<path>").replace(/~\/[^\s"',)]+/g,"~/<path>").replace(/[\w.%+-]+@[\w.-]+\.[A-Z]{2,}/gi,"<email>").replace(/(https?:\/\/)([^/\s:@]+):([^/\s@]+)@/gi,"$1<redacted>@").replace(/\b[a-z][\w-]*(?:\.[\w-]+){1,}\b/gi,"<app_id>").replace(/\b[a-z]:\\[^\s"',)]+/gi,"<path>").replace(/(^|[\s"'(])\/[^\s"',)]+/g,"$1<path>").replace(/(--(?:token|api[-_]?key|key|password|secret|private[-_]?key|jwt|session|auth)(?:=|\s+))("[^"]+"|'[^']+'|\S+)/gi,"$1<redacted>").replace(/\b((?:token|api[-_]?key|password|secret|authorization)\s*[:=]\s*)[^\s,;]+/gi,"$1<redacted>")}function S90(A,Q){let B=A?.split(`
|
|
75
|
+
`)},info:(A,Q)=>{x.message(A,{...Q,symbol:x0("blue",k60)})},success:(A,Q)=>{x.message(A,{...Q,symbol:x0("green",b60)})},step:(A,Q)=>{x.message(A,{...Q,symbol:x0("green",nHA)})},warn:(A,Q)=>{x.message(A,{...Q,symbol:x0("yellow",v60)})},warning:(A,Q)=>{x.warn(A,Q)},error:(A,Q)=>{x.message(A,{...Q,symbol:x0("red",x60)})}},DfB={light:U6("─","-"),heavy:U6("━","="),block:U6("█","#")},l60=[`${x0("dim","↑/↓")} to navigate`,`${x0("dim","Enter:")} confirm`],IfB=`${x0("gray",m$)} `});var GaA=BA((LfB,d60)=>{d60.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var HC=BA((oHA)=>{var KaA=GaA(),J5=process.env;Object.defineProperty(oHA,"_vendors",{value:KaA.map(function(A){return A.constant})});oHA.name=null;oHA.isPR=null;oHA.id=null;if(J5.CI!=="false")KaA.forEach(function(A){let B=(Array.isArray(A.env)?A.env:[A.env]).every(function($){return WaA($)});if(oHA[A.constant]=B,!B)return;oHA.name=A.name,oHA.isPR=p60(A),oHA.id=A.constant});oHA.isCI=!!(J5.CI!=="false"&&(J5.BUILD_ID||J5.BUILD_NUMBER||J5.CI||J5.CI_APP_ID||J5.CI_BUILD_ID||J5.CI_BUILD_NUMBER||J5.CI_NAME||J5.CONTINUOUS_INTEGRATION||J5.RUN_ID||oHA.name||!1));function WaA(A){if(typeof A==="string")return!!J5[A];if("env"in A)return J5[A.env]&&J5[A.env].includes(A.includes);if("any"in A)return A.any.some(function(Q){return!!J5[Q]});return Object.keys(A).every(function(Q){return J5[Q]===A[Q]})}function p60(A){switch(typeof A.pr){case"string":return!!J5[A.pr];case"object":if("env"in A.pr)if("any"in A.pr)return A.pr.any.some(function(Q){return J5[A.pr.env]===Q});else return A.pr.env in J5&&J5[A.pr.env]!==A.pr.ne;else if("any"in A.pr)return A.pr.any.some(function(Q){return!!J5[Q]});else return WaA(A.pr);default:return null}}});var Y8;var ZX=b(()=>{Y8={name:"@capgo/cli",type:"module",version:"8.108.2",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",typecheck:"tsc --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:key-create-mode":"bun test/test-key-create-mode.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:offline-packers":"bun test/test-offline-packers.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:bundle-soft-delete":"bun test/test-bundle-soft-delete.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:api-perf":"bun test/test-api-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:build-custom-msg":"bun test/test-build-custom-msg.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:bundle-single-requests":"bun test test/test-bundle-single-requests.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs && bun test/test-mcp-telemetry-project.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-error-guidance":"bun test/test-mcp-error-guidance.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-project-dir":"bun test/test-mcp-project-dir.mjs && bun test/test-cwd.mjs && bun test/test-project-context.mjs","test:mcp-host-fields":"bun test/test-mcp-host-fields.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-spawn":"bun test/test-mcp-build-spawn.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list":"bun test/test-app-list.mjs","test:app-todo":"bun test/test-app-todo.mjs && bun test/test-builder-only-checklist.mjs && bun test/test-builder-only-setup.mjs && bun test/test-app-todo-lists.mjs && bun test/test-app-todo-tabs.mjs && bun test/test-app-todo-command.mjs && node test/test-app-todo-interactive.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-capgo-client":"bun test/test-create-capgo-client.mjs","test:no-supabase-sdk":"bun test/test-no-supabase-sdk.mjs","test:no-redirect-error":"bun test/test-no-redirect-error.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs && bun test ./test/test-ios-simulator-compatibility.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-command-execution":"bun test/test-init-command-execution.mjs","test:init-upload-recovery":"bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-ota-checklist":"bun test/test-init-ota-checklist.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs && bun test/test-auth-session-bad-key.mjs","test:mcp":"node test/test-mcp.mjs && node test/test-mcp-skills.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs && bun test/test-build-env.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:monitoring":"bun test test/test-monitoring.test.ts","test:suite":"bun run test:monitoring && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:recommend && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:key-create-mode && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:offline-packers && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:api-perf && bun run test:preview-qr && bun run test:build-custom-msg && bun run test:bundle-pages && bun run test:bundle-single-requests && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-error-guidance && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-project-dir && bun run test:mcp-host-fields && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-spawn && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-capgo-client && bun run test:bundle-soft-delete && bun run test:no-supabase-sdk && bun run test:no-redirect-error && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-command-execution && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:init-ota-checklist && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:support && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:retryable-capgo-api-error && bun run test:organization-set-api-host && bun run test:plan-validation && bun run test:setup-notices && bun run test:settings-parity && bun run test:init-browser-login && bun run test:android-onboarding-units && bun run test:build-credentials-units && bun run test:onboarding-generators && bun run test:mcp-onboarding","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support":"bun test/test-support.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs","test:settings-parity":"bun test/test-settings-parity.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:retryable-capgo-api-error":"bun test/test-retryable-capgo-api-error.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:plan-validation":"bun test/test-plan-validation.mjs && bun test ./test/test-direct-offer-plan.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs","test:init-browser-login":"bun test test/init/","test:android-onboarding-units":"bun test/test-android-gradle.mjs && bun test/test-android-keystore.mjs && bun test/test-android-oauth.mjs && bun test/test-android-play.mjs && bun test/test-android-tui-sequencing.mjs","test:build-credentials-units":"bun test/test-credentials-migration.mjs && bun test/test-provisioning-map-validation.mjs && bun test/test-mobileprovision-parser.mjs","test:onboarding-generators":"bun test/test-diff-utils.mjs && bun test/test-workflow-generator.mjs","test:mcp-onboarding":"bun test ./test/build/onboarding/mcp/scoped-credential-path.test.ts && bun test/test-mcp-onboarding.mjs","test:setup-notices":"bun test ./test/test-setup-notices.mjs ./test/test-setup-progress-request.mjs ./test/test-setup-notice-background.mjs ./test/test-init-completion-notice.mjs && bun test ./test/test-builder-setup-notice.mjs","test:recommend":"bun test test/recommend-context.test.ts"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^21.0.4",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/cross-spawn":"^6.0.6","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native":"npm:typescript@7.1.0-beta","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0","cross-spawn":"^7.0.6",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});import{AsyncLocalStorage as e60}from"node:async_hooks";function Q90(){return A90.getStore()}function cg(){IaA=!0}function MaA(){return IaA}function LaA(A){OaA=A}function DaA(A){try{OaA?.(A)}catch{}}function VaA(A,Q){let B;try{B=new URL(A).pathname}catch{B=A.split("?")[0]}let $=[];for(let J of B.split("/").filter(Boolean)){if($.length>=4||!/^(?:[a-z_-]+|2fa)$/.test(J))break;$.push(J)}return`${Q} ${$.join("/")||B}`}function B90(A){let Q=A?.headers;if(!Q)return;let B=Q.get;if(typeof B==="function")return B.call(Q,"capgkey")??void 0;if(Array.isArray(Q))return Q.find(([$])=>$.toLowerCase()==="capgkey")?.[1];return Q.capgkey}function CaA(A){return async(B,$)=>{let J=($?.method??"GET").toUpperCase(),Y=typeof B==="string"?B:B instanceof URL?B.href:B.url,X=Q90(),Z=B90($),G=Date.now();try{let K=await globalThis.fetch(B,$);return DaA({url:Y,route:A,method:J,status:K.status,ok:K.ok,durationMs:Date.now()-G,source:X,apikey:Z}),K}catch(K){throw DaA({url:Y,route:A,method:J,status:0,ok:!1,durationMs:Date.now()-G,source:X,apikey:Z,error:K}),K}}}var A90,IaA=!1,OaA,NaA=5000;var lg=b(()=>{A90=new e60});var PA;var $1=b(()=>{PA=class PA extends Error{context;constructor(A,Q,B){super(A,B!==void 0?{cause:B}:void 0);this.name="CliUserError",this.context=Q}}});import{platform as $90}from"node:os";import{version as J90}from"node:process";function waA(A){EaA=A}function X90(A){for(let Q=0;Q<A.length;Q++)if(A.charCodeAt(Q)>255)return!1;return!0}function RaA(A){if(A.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function Z90(A){if(A.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(A.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function QFA(A,Q){if(Q===void 0||Q===null){if(AFA.has(A.toLowerCase()))throw new PA(RaA(A));throw new PA(`HTTP header "${A}" is missing or invalid.`)}if(typeof Q!=="string"){if(AFA.has(A.toLowerCase()))throw new PA(RaA(A));throw new PA(`HTTP header "${A}" is missing or invalid.`)}if(!X90(Q)){if(AFA.has(A.toLowerCase()))throw new PA(Z90(A));throw new PA(`HTTP header "${A}" contains invalid characters (only ASCII is allowed).`)}return Q}function G90(A=it.isCI,Q=it.name){if(!A)return;return(Q??"").replace(/[^\x20-\x7E]/g,"").trim().slice(0,64)||"ci"}function l1(A){let Q={capgo_api:Y90,"x-cli-version":Y8.version,"x-cli-command":EaA,"x-cli-node":J90,"x-cli-os":$90()},B=G90();if(B)Q["x-cli-ci"]=B;if(A)for(let[$,J]of Object.entries(A))Q[$]=QFA($,J);return Q}var it,Y90="2025-10-01",EaA="",AFA;var JY=b(()=>{ZX();$1();it=nA(HC(),1),AFA=new Set(["authorization","capgkey","x-capgo-log-token"])});function jaA(A){let Q=A;if(typeof Q.status==="number")return Q.status;let B=Q.context&&typeof Q.context==="object"?Q.context.status:void 0;return typeof B==="number"?B:void 0}function K90(A){if(!A||typeof A!=="object")return;let Q=jaA(A);if(Q!==void 0)return Q;let B=A.cause;if(B&&typeof B==="object")return jaA(B);return}function W90(A){let Q=[],B=new Set,$=A;if(typeof A==="string")return A;while($){if(typeof $==="string"){Q.push($);break}if(typeof $!=="object")break;if(B.has($))break;if(B.add($),$ instanceof Error){Q.push($.message),$=$.cause;continue}let J=$;if(typeof J.message==="string")Q.push(J.message);$=J.cause}return Q.join(" ")}function H90(A){return W90(A)}function zC(A){if(A&&typeof A==="object"&&"code"in A){let $=A.code;if(typeof $==="string"&&$.startsWith("commander."))return"commander"}let Q=K90(A);if(Q!==void 0){if(Q===401)return"unauthorized";if(Q===403)return"forbidden";if(Q===404)return"not_found";if(Q===413)return"payload_too_large";if(Q===429)return"rate_limited";if(Q>=500)return"server_error"}let B=H90(A).toLowerCase();if(/econnrefused|econnreset|enotfound|eai_again|fetch failed|failed to fetch|connect timeout|und_err/.test(B))return"network_error";if(/timed out|timeout|etimedout|aborted/.test(B))return"timeout";if(/invalid|must be|required|not allowed|malformed|validation/.test(B))return"validation_error";return"unknown"}function _aA(A){if(A===401)return"unauthorized";if(A===403)return"forbidden";if(A===404)return"not_found";if(A===408||A===504)return"timeout";if(A===413)return"payload_too_large";if(A===429)return"rate_limited";if(A===400||A===422)return"validation_error";if(A>=500)return"server_error";return"unknown"}function GX(A){let Q=A.length;while(Q>0&&A[Q-1]==="/")Q-=1;return A.slice(0,Q)}import{randomUUID as PaA}from"node:crypto";import{existsSync as q90,mkdirSync as U90,readFileSync as D90,writeFileSync as I90}from"node:fs";import{homedir as JFA,platform as M90,release as O90}from"node:os";import{join as SaA}from"node:path";import{arch as L90,cwd as kaA,env as qC,version as N90}from"node:process";function P2(A){return A==="1"||A?.toLowerCase()==="true"||A?.toLowerCase()==="yes"}function w90(){if(P2(qC.CAPGO_DISABLE_TELEMETRY)||P2(qC.CAPGO_DISABLE_POSTHOG))return;return qC.CAPGO_CLI_POSTHOG_API_KEY?.trim()||qC.POSTHOG_API_KEY?.trim()||C90}function j90(A){let Q=GX(A);if(Q.endsWith("/i/v0/e"))return`${Q}/`;let B=Q.replace(/\/capture$/,"/");return new URL("i/v0/e/",B.endsWith("/")?B:`${B}/`).toString()}function _90(A){if(A instanceof Error)return{cause:A.cause,message:A.message,name:A.name||"Error",stack:A.stack};if(typeof A==="string")return{message:A,name:"Error",stack:void 0};try{return{message:JSON.stringify(A)??String(A),name:"Error",stack:void 0}}catch{return{message:String(A),name:"Error",stack:void 0}}}function T90(A){let Q=A,B=kaA(),$=JFA();if(B)Q=Q.replaceAll(B,"<cwd>");if($)Q=Q.replaceAll($,"~");return Q}function P90(A){let Q=A,B=kaA(),$=JFA();if(B)Q=Q.replaceAll(B,"<cwd>");if($)Q=Q.replaceAll($,"~");return Q.replace(/<cwd>\/[^\s"',)]+/g,"<cwd>/<path>").replace(/~\/[^\s"',)]+/g,"~/<path>").replace(/[\w.%+-]+@[\w.-]+\.[A-Z]{2,}/gi,"<email>").replace(/(https?:\/\/)([^/\s:@]+):([^/\s@]+)@/gi,"$1<redacted>@").replace(/\b[a-z][\w-]*(?:\.[\w-]+){1,}\b/gi,"<app_id>").replace(/\b[a-z]:\\[^\s"',)]+/gi,"<path>").replace(/(^|[\s"'(])\/[^\s"',)]+/g,"$1<path>").replace(/(--(?:token|api[-_]?key|key|password|secret|private[-_]?key|jwt|session|auth)(?:=|\s+))("[^"]+"|'[^']+'|\S+)/gi,"$1<redacted>").replace(/\b((?:token|api[-_]?key|password|secret|authorization)\s*[:=]\s*)[^\s,;]+/gi,"$1<redacted>")}function S90(A,Q){let B=A?.split(`
|
|
76
76
|
`).slice(1).map(($)=>{let J=$.trim(),Y=J.startsWith("at ")?J.slice(3):J,X=Q,Z=Y,G=Y.lastIndexOf(" (");if(G!==-1&&Y.endsWith(")"))X=Y.slice(0,G).trim()||Q,Z=Y.slice(G+2,-1);else{let H=Y.lastIndexOf(" "),F=H===-1?"":Y.slice(H+1);if(/:\d+:\d+$/.test(F))X=Y.slice(0,H).trim()||Q,Z=F}let K=Z.lastIndexOf(":"),W=K===-1?-1:Z.lastIndexOf(":",K-1);if(K===-1||W===-1)return{function:Q,platform:"custom",lang:"javascript"};return{function:X,filename:T90(Z.slice(0,W)),lineno:Number.parseInt(Z.slice(W+1,K),10),colno:Number.parseInt(Z.slice(K+1),10),platform:"custom",lang:"javascript"}}).filter(Boolean);return B&&B.length>0?B:[{function:Q,platform:"custom",lang:"javascript"}]}function k90(A){if(!A||typeof A!=="object"||!("code"in A))return;let{code:Q}=A;return typeof Q==="string"?Q:void 0}function v90(A){if(!A||typeof A!=="object")return;let Q=A;if(typeof Q.status==="number")return Q.status;if(typeof Q.statusCode==="number")return Q.statusCode;let B=Q.context&&typeof Q.context==="object"?Q.context.status:void 0;return typeof B==="number"?B:void 0}function x90(A){let Q=(A instanceof Error?A.message:typeof A==="string"?A:"").toLowerCase();if(b90.some((B)=>Q.includes(B)))return!0;return v90(A)===401}function dg(A){if(A instanceof PA){if(E90.has(A.message))return!0;return!1}if(x90(A))return!1;return!k90(A)?.startsWith("commander.")}function rt(A){let Q=[],B=A;while(B?.parent){let $=B.name();if($)Q.push($);B=B.parent}return Q.reverse().join(" ")||"unknown"}function f90(A=SaA(JFA(),".capgo-credentials")){if($FA)return $FA;let Q=SaA(A,"install-id"),B;try{let $=q90(Q)?D90(Q,"utf8").trim():"";if($)B=$;else B=PaA(),U90(A,{recursive:!0}),I90(Q,B,{encoding:"utf8",mode:384})}catch{B=PaA()}return $FA=B,B}async function pg(A){let Q=w90();if(!Q)return!1;let B=qC.CAPGO_CLI_POSTHOG_API_HOST?.trim()||qC.POSTHOG_API_HOST?.trim()||V90,$;try{$=j90(B)}catch{return!1}let J=_90(A.error),Y=P90(J.message),X=f90(),Z=S90(J.stack,A.functionName),G=[A.functionName,A.kind,J.name||"Error",String(A.status??1)].join(":"),K={token:Q,event:"$exception",properties:{distinct_id:X,$exception_list:[{type:J.name||"Error",value:Y,mechanism:{handled:!0,synthetic:!1},stacktrace:{type:"raw",frames:Z}}],$exception_fingerprint:G,architecture:L90,cli_version:Y8.version,error_kind:A.kind,function_name:A.functionName,is_ci:Boolean(qC.CI),node_version:N90,os_platform:M90(),os_release:O90(),runtime:"cli",status:A.status},timestamp:new Date().toISOString()};try{let W=new AbortController,H=setTimeout(()=>W.abort(),R90);try{return(await fetch($,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(K),signal:W.signal})).ok}finally{clearTimeout(H)}}catch{return!1}}var V90="https://eu.i.posthog.com/i/v0/e/",C90="phc_NXDyDajQaTQVwb25DEhIVZfxVUn4R0Y348Z7vWYHZUi",R90=1500,YFA="iOS sync validation failed. Delete your iOS folder, then rerun the add and sync commands above and retry.",E90,b90,$FA;var y_=b(()=>{ZX();$1();E90=new Set([YFA]);b90=["invalid_apikey","invalid apikey","no_key_provided","no key provided","invalid api key or insufficient permissions","does not exist, run first"]});import{existsSync as OG}from"fs";var S2=(A=".",Q="unknown")=>{let B=`${A}/bun.lockb`,$=`${A}/bun.lock`,J=`${A}/pnpm-lock.yaml`,Y=`${A}/shrinkwrap.yaml`,X=`${A}/yarn.lock`,Z=`${A}/package-lock.json`,G=`${A}/npm-shrinkwrap.json`;if(OG(B)||OG($))return"bun";if(OG(J)||OG(Y))return"pnpm";if(OG(X))return"yarn";if(OG(Z)||OG(G))return"npm";return Q},PM=(A=S2(),Q=!1)=>{switch(A){case"bun":return Q?"bun install":"install";case"pnpm":return Q?"pnpm install":"install";case"yarn":return Q?"yarn install":"install";case"npm":return Q?"npm install":"install";case"unknown":return Q?"unknown unknown":"unknown";default:return Q?"npm install":"install"}},ot=(A=".",Q="npx")=>{let B=`${A}/bun.lockb`,$=`${A}/bun.lock`,J=`${A}/pnpm-lock.yaml`,Y=`${A}/shrinkwrap.yaml`,X=`${A}/yarn.lock`,Z=`${A}/package-lock.json`,G=`${A}/npm-shrinkwrap.json`;if(OG(B)||OG($))return"bunx";if(OG(J)||OG(Y))return"pnpm exec";if(OG(X))return"yarn dlx";if(OG(Z)||OG(G))return"npx";return Q};var ig=()=>{};function at(A,Q){if(isNaN(A)||isNaN(Q))throw Error("Cannot compare against non-numbers");return A===Q?0:A<Q?-1:1}function xaA(A=[],Q=[]){if(A.length&&!Q.length)return-1;if(!A.length&&Q.length)return 1;return 0}function st(A=[],Q=[]){let B=Math.max(A.length,Q.length);for(let $=0;$<B;$++){let J=A[$],Y=Q[$];if(J===void 0&&Y===void 0)return 0;if(Y===void 0)return 1;if(J===void 0)return-1;if(typeof J==="string"&&typeof Y==="number")return 1;if(typeof J==="number"&&typeof Y==="string")return-1;if(J<Y)return-1;if(J>Y)return 1}return 0}function ZFA(A){return typeof A==="number"&&!Number.isNaN(A)&&(!Number.isFinite(A)||0<=A&&A<=Number.MAX_SAFE_INTEGER)}function LG(A){return A.split(".").filter(Boolean).map((Q)=>{if(u90.test(Q)){let B=Number(Q);if(ZFA(B))return B}return Q})}function IF(A){return A.split(".").filter(Boolean)}function et(A,Q){let B=Number(A);if(!ZFA(B))throw TypeError(Q);return B}function UU(A){return Number.isNaN(A.major)&&Number.isNaN(A.minor)&&Number.isNaN(A.patch)&&(A.prerelease===void 0||A.prerelease.length===0)&&(A.build===void 0||A.build.length===0)}var h_="0|[1-9]\\d*",g90="\\d*[a-zA-Z-][a-zA-Z0-9-]*",y90,baA,faA,vaA="[0-9A-Za-z-]+",gaA,yaA,haA,uaA="(?:<|>)?=?",h90="x|X|\\*",XFA,tt,maA,caA,GFA=256,u90;var jK=b(()=>{y90=`(?<major>${h_})\\.(?<minor>${h_})\\.(?<patch>${h_})`,baA=`(?:${h_}|${g90})`,faA=`(?:-(?<prerelease>${baA}(?:\\.${baA})*))`,gaA=`(?:\\+(?<buildmetadata>${vaA}(?:\\.${vaA})*))`,yaA=`v?${y90}${faA}?${gaA}?`,haA=new RegExp(`^${yaA}$`),XFA=`${h_}|${h90}`,tt=`[v=\\s]*(?<major>${XFA})(?:\\.(?<minor>${XFA})(?:\\.(?<patch>${XFA})${faA}?${gaA}?)?)?`,maA=new RegExp(`^(?<operator>~>?|\\^|${uaA})\\s*${tt}$`),caA=new RegExp(`^(?<operator>${uaA})\\s*(${yaA})$|^$`);u90=new RegExp(`^${h_}$`)});function XZ(A,Q){if(A===Q)return 0;return at(A.major,Q.major)||at(A.minor,Q.minor)||at(A.patch,Q.patch)||xaA(A.prerelease,Q.prerelease)||st(A.prerelease,Q.prerelease)}var hW=b(()=>{jK()});function laA(A,Q){let B=A.prerelease?.length||Q.prerelease?.length;if(A.major!==Q.major)return B?"premajor":"major";if(A.minor!==Q.minor)return B?"preminor":"minor";if(A.patch!==Q.patch)return B?"prepatch":"patch";if(st(A.prerelease,Q.prerelease)!==0)return"prerelease"}var daA=b(()=>{jK()});function KFA(A){return A.toFixed(0)}function ZZ(A){let Q=KFA(A.major),B=KFA(A.minor),$=KFA(A.patch),J=A.prerelease?.join(".")??"",Y=A.build?.join(".")??"";return[[`${Q}.${B}.${$}`,J].filter((G)=>G).join("-"),Y].filter((G)=>G).join("+")}function m90(A,Q){if(UU(Q))return!0;let B=XZ(A,Q);switch(Q.operator){case"=":case void 0:return B===0;case"!=":return B!==0;case">":return B>0;case"<":return B<0;case">=":return B>=0;case"<=":return B<=0}}function Ae(A,Q){for(let B of Q)if(!m90(A,B))return!1;if(!A.prerelease?.length)return!0;for(let B of Q){if(UU(B))continue;if(!B.prerelease?.length)continue;let{major:$,minor:J,patch:Y}=B;if(A.major===$&&A.minor===J&&A.patch===Y)return!0}return!1}var Qe=b(()=>{jK();hW()});function ng(A,Q){return Q.some((B)=>Ae(A,B))}var rg=b(()=>{Qe()});function c90(A=[]){let Q=[...A],B=Q.length;while(B>=0){let $=Q[B];if(typeof $==="number"){Q[B]=$+1;break}B-=1}if(B===-1)Q.push(0);return Q}function og(A=[],Q){let B=c90(A);if(!Q)return B;let $=LG(Q);if($.every((J)=>typeof J==="string")){if($.every((J,Y)=>J===B[Y])&&typeof B[$.length]==="number")return B;$=[...$,0]}return $}function SM(A,Q,B={}){let $=B.build!==void 0?IF(B.build):A.build??[];switch(Q){case"premajor":return{major:A.major+1,minor:0,patch:0,prerelease:og(A.prerelease,B.prerelease),build:$};case"preminor":return{major:A.major,minor:A.minor+1,patch:0,prerelease:og(A.prerelease,B.prerelease),build:$};case"prepatch":return{major:A.major,minor:A.minor,patch:A.patch+1,prerelease:og(A.prerelease,B.prerelease),build:$};case"prerelease":{let Y=(A.prerelease??[]).length===0?A.patch+1:A.patch;return{major:A.major,minor:A.minor,patch:Y,prerelease:og(A.prerelease,B.prerelease),build:$}}case"major":return{major:(A.prerelease??[]).length===0||A.minor!==0||A.patch!==0?A.major+1:A.major,minor:0,patch:0,prerelease:[],build:$};case"minor":{let Y=(A.prerelease??[]).length===0||A.patch!==0?A.minor+1:A.minor;return{major:A.major,minor:Y,patch:0,prerelease:[],build:$}}case"patch":{let Y=(A.prerelease??[]).length===0?A.patch+1:A.patch;return{major:A.major,minor:A.minor,patch:Y,prerelease:[],build:$}}case"pre":return{major:A.major,minor:A.minor,patch:A.patch,prerelease:og(A.prerelease,B.prerelease),build:$};default:throw TypeError(`Cannot increment version: invalid argument ${Q}`)}}var paA=b(()=>{jK()});var Be,u_;var ag=b(()=>{Be={major:Number.NaN,minor:Number.NaN,patch:Number.NaN,prerelease:[],build:[]},u_={operator:void 0,...Be}});var WFA=b(()=>{ag();jK()});function HFA(A,Q){return XZ(A,Q)>0}var FFA=b(()=>{hW()});var iaA=b(()=>{rg();FFA()});function NG(A,Q){return XZ(A,Q)<0}var zFA=b(()=>{hW()});var naA=b(()=>{rg();zFA()});function l90(A){let B=A.match(caA)?.groups;if(!B)return null;let{operator:$}=B;return{operator:$||void 0,...Be}}function c6(A){return!A||A.toLowerCase()==="x"||A==="*"}function d90(A){if(c6(A.major))return;if(c6(A.minor))return{operator:">=",major:+A.major,minor:0,patch:0,prerelease:[],build:[]};if(c6(A.patch))return{operator:">=",major:+A.major,minor:+A.minor,patch:0,prerelease:[],build:[]};return{operator:">=",major:+A.major,minor:+A.minor,patch:+A.patch,prerelease:A.prerelease?LG(A.prerelease):[],build:[]}}function p90(A){if(c6(A.major))return;if(c6(A.minor))return{operator:"<",major:+A.major+1,minor:0,patch:0,prerelease:[],build:[]};if(c6(A.patch))return{operator:"<",major:+A.major,minor:+A.minor+1,patch:0,prerelease:[],build:[]};if(A.prerelease)return{operator:"<=",major:+A.major,minor:+A.minor,patch:+A.patch,prerelease:LG(A.prerelease),build:[]};return{operator:"<=",major:+A.major,minor:+A.minor,patch:+A.patch,prerelease:[],build:[]}}function i90(A){let Q=A.match(new RegExp(`^${tt}`)),B=Q?.groups;if(!B)return null;let $=Q[0].length,J=A.slice($).match(/^\s+-\s+/);if(!J)return null;let Y=J[0].length,Z=A.slice($+Y).match(new RegExp(`^${tt}\\s*$`))?.groups,G=d90(B),K=p90(Z);return[G,K].filter(Boolean)}function n90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[u_];if(B)return[{operator:">=",major:J,minor:0,patch:0},{operator:"<",major:J+1,minor:0,patch:0}];if($){if(J===0)return[{operator:">=",major:J,minor:Y,patch:0},{operator:"<",major:J,minor:Y+1,patch:0}];return[{operator:">=",major:J,minor:Y,patch:0},{operator:"<",major:J+1,minor:0,patch:0}]}let Z=LG(A.prerelease??"");if(J===0){if(Y===0)return[{operator:">=",major:J,minor:Y,patch:X,prerelease:Z},{operator:"<",major:J,minor:Y,patch:X+1}];return[{operator:">=",major:J,minor:Y,patch:X,prerelease:Z},{operator:"<",major:J,minor:Y+1,patch:0}]}return[{operator:">=",major:J,minor:Y,patch:X,prerelease:Z},{operator:"<",major:J+1,minor:0,patch:0}]}function r90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[u_];if(B)return[{operator:">=",major:J,minor:0,patch:0},{operator:"<",major:J+1,minor:0,patch:0}];if($)return[{operator:">=",major:J,minor:Y,patch:0},{operator:"<",major:J,minor:Y+1,patch:0}];let Z=LG(A.prerelease??"");return[{operator:">=",major:J,minor:Y,patch:X,prerelease:Z},{operator:"<",major:J,minor:Y+1,patch:0}]}function o90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[{operator:"<",major:0,minor:0,patch:0}];if(B){if($)return[{operator:"<",major:J,minor:0,patch:0}];return[{operator:"<",major:J,minor:0,patch:0}]}if($)return[{operator:"<",major:J,minor:Y,patch:0}];let Z=LG(A.prerelease??""),G=IF(A.build??"");return[{operator:"<",major:J,minor:Y,patch:X,prerelease:Z,build:G}]}function a90(A){let Q=c6(A.minor),B=c6(A.patch),$=+A.major,J=+A.minor,Y=+A.patch;if(Q)return[{operator:"<",major:$+1,minor:0,patch:0}];if(B)return[{operator:"<",major:$,minor:J+1,patch:0}];let X=LG(A.prerelease??""),Z=IF(A.build??"");return[{operator:"<=",major:$,minor:J,patch:Y,prerelease:X,build:Z}]}function s90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[{operator:"<",major:0,minor:0,patch:0}];if(B)return[{operator:">=",major:J+1,minor:0,patch:0}];if($)return[{operator:">=",major:J,minor:Y+1,patch:0}];let Z=LG(A.prerelease??""),G=IF(A.build??"");return[{operator:">",major:J,minor:Y,patch:X,prerelease:Z,build:G}]}function t90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[u_];if(B)return[{operator:">=",major:J,minor:0,patch:0}];if($)return[{operator:">=",major:J,minor:Y,patch:0}];let Z=LG(A.prerelease??""),G=IF(A.build??"");return[{operator:">=",major:J,minor:Y,patch:X,prerelease:Z,build:G}]}function e90(A){let Q=c6(A.major),B=c6(A.minor),$=c6(A.patch),J=+A.major,Y=+A.minor,X=+A.patch;if(Q)return[u_];if(B)return[{operator:">=",major:J,minor:0,patch:0},{operator:"<",major:J+1,minor:0,patch:0}];if($)return[{operator:">=",major:J,minor:Y,patch:0},{operator:"<",major:J,minor:Y+1,patch:0}];let Z=LG(A.prerelease??""),G=IF(A.build??"");return[{operator:A.operator==="="?"=":void 0,major:J,minor:Y,patch:X,prerelease:Z,build:G}]}function AJ0(A){let Q=A.match(maA)?.groups;if(!Q)return l90(A);switch(Q.operator){case"^":return n90(Q);case"~":case"~>":return r90(Q);case"<":return o90(Q);case"<=":return a90(Q);case">":return s90(Q);case">=":return t90(Q);default:return e90(Q)}}function QJ0(A){return A.split(/\s+/).flatMap(AJ0)}function $e(A){let Q=A.replaceAll(/(?<=[<>=~^])(\s+)/g,"").split(/\s*\|\|\s*/).map((B)=>i90(B)||QJ0(B));if(Q.some((B)=>B.includes(null)))throw TypeError(`Cannot parse version range: range "${A}" is invalid`);return Q}var qFA=b(()=>{jK();ag()});function J1(A){if(typeof A!=="string")throw TypeError(`Cannot parse version as version must be a string: received ${typeof A}`);if(A.length>GFA)throw TypeError(`Cannot parse version as version length is too long: length is ${A.length}, max length is ${GFA}`);A=A.trim();let Q=A.match(haA)?.groups;if(!Q)throw TypeError(`Cannot parse version: ${A}`);let B=et(Q.major,`Cannot parse version ${A}: invalid major version`),$=et(Q.minor,`Cannot parse version ${A}: invalid minor version`),J=et(Q.patch,`Cannot parse version ${A}: invalid patch version`),Y=Q.prerelease?LG(Q.prerelease):[],X=Q.buildmetadata?IF(Q.buildmetadata):[];return{major:B,minor:$,patch:J,prerelease:Y,build:X}}var Je=b(()=>{jK();jK()});function raA(A,Q){let B=A.operator,$=Q.operator;if(B===void 0){if(UU(A))return!0;return ng(A,[[Q]])}if($===void 0){if(UU(Q))return!0;return ng(Q,[[A]])}let J=XZ(A,Q);return(B===">="||B===">")&&($===">="||$===">")||(B==="<="||B==="<")&&($==="<="||$==="<")||J===0&&((B===">="||B==="<=")&&($===">="||$==="<="))||J===-1&&(B===">="||B===">")&&($==="<="||$==="<")||J===1&&(B==="<="||B==="<")&&($===">="||$===">")}function BJ0(A){return A.every((Q)=>{return Q.some((B)=>$J0(B))})}function $J0(A){for(let Q=0;Q<A.length-1;Q++){let B=A[Q];for(let $ of A.slice(Q+1))if(!raA(B,$))return!1}return!0}function oaA(A,Q){return BJ0([A,Q])&&A.some((B)=>{return Q.some(($)=>{return B.every((J)=>{return $.every((Y)=>raA(J,Y))})})})}var aaA=b(()=>{jK();hW();rg()});var saA=b(()=>{qFA()});var taA=b(()=>{ag();ag();WFA()});function MF(A){try{return J1(A),!0}catch{return!1}}var eaA=b(()=>{Je()});var AsA=b(()=>{Je()});var QsA=b(()=>{jK()});var BsA=b(()=>{hW()});var $sA=b(()=>{hW()});var JsA=b(()=>{Qe();jK();hW()});function Ye(A,Q){return XZ(A,Q)>=0}var YsA=b(()=>{hW()});var XsA=b(()=>{Qe();jK();hW()});var ZsA=b(()=>{hW()});var VG=b(()=>{hW();daA();rg();paA();WFA();iaA();naA();qFA();Je();aaA();saA();taA();eaA();AsA();QsA();BsA();$sA();FFA();JsA();YsA();zFA();XsA();ZsA()});var UFA=BA((YhB,GsA)=>{GsA.exports={LOCHDR:30,LOCSIG:67324752,LOCVER:4,LOCFLG:6,LOCHOW:8,LOCTIM:10,LOCCRC:14,LOCSIZ:18,LOCLEN:22,LOCNAM:26,LOCEXT:28,EXTSIG:134695760,EXTHDR:16,EXTCRC:4,EXTSIZ:8,EXTLEN:12,CENHDR:46,CENSIG:33639248,CENVEM:4,CENVER:6,CENFLG:8,CENHOW:10,CENTIM:12,CENCRC:16,CENSIZ:20,CENLEN:24,CENNAM:28,CENEXT:30,CENCOM:32,CENDSK:34,CENATT:36,CENATX:38,CENOFF:42,ENDHDR:22,ENDSIG:101010256,ENDSUB:8,ENDTOT:10,ENDSIZ:12,ENDOFF:16,ENDCOM:20,END64HDR:20,END64SIG:117853008,END64START:4,END64OFF:8,END64NUMDISKS:16,ZIP64SIG:101075792,ZIP64HDR:56,ZIP64LEAD:12,ZIP64SIZE:4,ZIP64VEM:12,ZIP64VER:14,ZIP64DSK:16,ZIP64DSKDIR:20,ZIP64SUB:24,ZIP64TOT:32,ZIP64SIZB:40,ZIP64OFF:48,ZIP64EXTRA:56,STORED:0,SHRUNK:1,REDUCED1:2,REDUCED2:3,REDUCED3:4,REDUCED4:5,IMPLODED:6,DEFLATED:8,ENHANCED_DEFLATED:9,PKWARE:10,BZIP2:12,LZMA:14,IBM_TERSE:18,IBM_LZ77:19,AES_ENCRYPT:99,FLG_ENC:1,FLG_COMP1:2,FLG_COMP2:4,FLG_DESC:8,FLG_ENH:16,FLG_PATCH:32,FLG_STR:64,FLG_EFS:2048,FLG_MSK:4096,FILE:2,BUFFER:1,NONE:0,EF_ID:0,EF_SIZE:2,ID_ZIP64:1,ID_AVINFO:7,ID_PFS:8,ID_OS2:9,ID_NTFS:10,ID_OPENVMS:12,ID_UNIX:13,ID_FORK:14,ID_PATCH:15,ID_X509_PKCS7:20,ID_X509_CERTID_F:21,ID_X509_CERTID_C:22,ID_STRONGENC:23,ID_RECORD_MGT:24,ID_X509_PKCS7_RL:25,ID_IBM1:101,ID_IBM2:102,ID_POSZIP:18064,EF_ZIP64_OR_32:4294967295,EF_ZIP64_OR_16:65535,EF_ZIP64_SUNCOMP:0,EF_ZIP64_SCOMP:8,EF_ZIP64_RHO:16,EF_ZIP64_DSN:24}});var Xe=BA((WsA)=>{var KsA={INVALID_LOC:"Invalid LOC header (bad signature)",INVALID_CEN:"Invalid CEN header (bad signature)",INVALID_END:"Invalid END header (bad signature)",DESCRIPTOR_NOT_EXIST:"No descriptor present",DESCRIPTOR_UNKNOWN:"Unknown descriptor format",DESCRIPTOR_FAULTY:"Descriptor data is malformed",NO_DATA:"Nothing to decompress",BAD_CRC:"CRC32 checksum failed {0}",FILE_IN_THE_WAY:"There is a file in the way: {0}",UNKNOWN_METHOD:"Invalid/unsupported compression method",AVAIL_DATA:"inflate::Available inflate data did not terminate",INVALID_DISTANCE:"inflate::Invalid literal/length or distance code in fixed or dynamic block",TO_MANY_CODES:"inflate::Dynamic block code description: too many length or distance codes",INVALID_REPEAT_LEN:"inflate::Dynamic block code description: repeat more than specified lengths",INVALID_REPEAT_FIRST:"inflate::Dynamic block code description: repeat lengths with no first length",INCOMPLETE_CODES:"inflate::Dynamic block code description: code lengths codes incomplete",INVALID_DYN_DISTANCE:"inflate::Dynamic block code description: invalid distance code lengths",INVALID_CODES_LEN:"inflate::Dynamic block code description: invalid literal/length code lengths",INVALID_STORE_BLOCK:"inflate::Stored block length did not match one's complement",INVALID_BLOCK_TYPE:"inflate::Invalid block type (type == 3)",CANT_EXTRACT_FILE:"Could not extract the file",CANT_OVERRIDE:"Target file already exists",DISK_ENTRY_TOO_LARGE:"Number of disk entries is too large",NO_ZIP:"No zip file was loaded",NO_ENTRY:"Entry doesn't exist",DIRECTORY_CONTENT_ERROR:"A directory cannot have content",FILE_NOT_FOUND:'File not found: "{0}"',NOT_IMPLEMENTED:"Not implemented",INVALID_FILENAME:"Invalid filename",INVALID_FORMAT:"Invalid or unsupported zip format. No END header found",INVALID_PASS_PARAM:"Incompatible password parameter",WRONG_PASSWORD:"Wrong Password",COMMENT_TOO_LONG:"Comment is too long",EXTRA_FIELD_PARSE_ERROR:"Extra field parsing error"};function JJ0(A){return function(...Q){if(Q.length)A=A.replace(/\{(\d)\}/g,(B,$)=>Q[$]||"");return Error("ADM-ZIP: "+A)}}for(let A of Object.keys(KsA))WsA[A]=JJ0(KsA[A])});var UsA=BA((ZhB,qsA)=>{var YJ0=DQ("fs"),f5=DQ("path"),HsA=UFA(),XJ0=Xe(),ZJ0=typeof process==="object"&&process.platform==="win32",FsA=(A)=>typeof A==="object"&&A!==null,zsA=new Uint32Array(256).map((A,Q)=>{for(let B=0;B<8;B++)if((Q&1)!==0)Q=3988292384^Q>>>1;else Q>>>=1;return Q>>>0});function KJ(A){if(this.sep=f5.sep,this.fs=YJ0,FsA(A)){if(FsA(A.fs)&&typeof A.fs.statSync==="function")this.fs=A.fs}}qsA.exports=KJ;KJ.prototype.makeDir=function(A){let Q=this;function B($){let J=$.split(Q.sep)[0];$.split(Q.sep).forEach(function(Y){if(!Y||Y.substr(-1,1)===":")return;J+=Q.sep+Y;var X;try{X=Q.fs.statSync(J)}catch(Z){if(Z.message&&Z.message.startsWith("ENOENT"))Q.fs.mkdirSync(J);else throw Z}if(X&&X.isFile())throw XJ0.FILE_IN_THE_WAY(`"${J}"`)})}B(A)};KJ.prototype.writeFileTo=function(A,Q,B,$){let J=this;if(J.fs.existsSync(A)){if(!B)return!1;var Y=J.fs.statSync(A);if(Y.isDirectory())return!1}var X=f5.dirname(A);if(!J.fs.existsSync(X))J.makeDir(X);var Z;try{Z=J.fs.openSync(A,"w",438)}catch(G){J.fs.chmodSync(A,438),Z=J.fs.openSync(A,"w",438)}if(Z)try{J.fs.writeSync(Z,Q,0,Q.length,0)}finally{J.fs.closeSync(Z)}return J.fs.chmodSync(A,$||438),!0};KJ.prototype.writeFileToAsync=function(A,Q,B,$,J){if(typeof $==="function")J=$,$=void 0;let Y=this;Y.fs.exists(A,function(X){if(X&&!B)return J(!1);Y.fs.stat(A,function(Z,G){if(X&&G&&G.isDirectory())return J(!1);var K=f5.dirname(A);Y.fs.exists(K,function(W){if(!W)try{Y.makeDir(K)}catch(F){return J(!1)}let H=function(F){Y.fs.write(F,Q,0,Q.length,0,function(D){Y.fs.close(F,function(){if(D)return J(!1);Y.fs.chmod(A,$||438,function(){J(!0)})})})};Y.fs.open(A,"w",438,function(F,D){if(F)Y.fs.chmod(A,438,function(){Y.fs.open(A,"w",438,function(U,I){if(U||!I)return J(!1);H(I)})});else if(D)H(D);else J(!1)})})})})};KJ.prototype.findFiles=function(A){let Q=this;function B($,J,Y,X){if(typeof J==="boolean")Y=J,J=void 0;let Z=[];return Q.fs.readdirSync($).forEach(function(G){let K=f5.join($,G),W=Q.fs.statSync(K);if(!J||J.test(K))Z.push(f5.normalize(K)+(W.isDirectory()?Q.sep:""));if(W.isDirectory()&&Y){let H=Q.fs.realpathSync(K);if(!X.has(H))X.add(H),Z=Z.concat(B(K,J,Y,X))}}),Z}return B(A,void 0,!0,new Set([Q.fs.realpathSync(A)]))};KJ.prototype.findFilesAsync=function(A,Q){let B=this,$=[],J=!1,Y=function(Z){if(J)return;J=!0,Q(Z,Z?void 0:$)},X=function(Z,G,K){B.fs.readdir(Z,function(W,H){if(W)return K(W);let F=H.length;if(!F)return K();H.forEach(function(D){let U=f5.join(Z,D);B.fs.stat(U,function(I,M){if(I)return K(I);if(!M){if(!--F)K();return}if($.push(f5.normalize(U)+(M.isDirectory()?B.sep:"")),!M.isDirectory()){if(!--F)K();return}B.fs.realpath(U,function(N,V){if(N)return K(N);if(G.has(V)){if(!--F)K();return}G.add(V),X(U,G,function(O){if(O)return K(O);if(!--F)K()})})})})})};B.fs.realpath(A,function(Z,G){if(Z)return Y(Z);X(A,new Set([G]),Y)})};KJ.prototype.getAttributes=function(){};KJ.prototype.setAttributes=function(){};KJ.crc32update=function(A,Q){return zsA[(A^Q)&255]^A>>>8};KJ.crc32=function(A){if(typeof A==="string")A=Buffer.from(A,"utf8");let Q=A.length,B=-1;for(let $=0;$<Q;)B=KJ.crc32update(B,A[$++]);return~B>>>0};KJ.methodToString=function(A){switch(A){case HsA.STORED:return"STORED ("+A+")";case HsA.DEFLATED:return"DEFLATED ("+A+")";default:return"UNSUPPORTED ("+A+")"}};KJ.canonical=function(A){if(!A)return"";let Q=f5.posix.normalize("/"+A.split("\\").join("/"));return f5.join(".",Q)};KJ.zipnamefix=function(A){if(!A)return"";let Q=f5.posix.normalize("/"+A.split("\\").join("/"));return f5.posix.join(".",Q)};KJ.findLast=function(A,Q){if(!Array.isArray(A))throw TypeError("arr is not array");let B=A.length>>>0;for(let $=B-1;$>=0;$--)if(Q(A[$],$,A))return A[$];return};KJ.sanitize=function(A,Q){A=f5.resolve(f5.normalize(A));var B=Q.split("/");for(var $=0,J=B.length;$<J;$++){var Y=f5.normalize(f5.join(A,B.slice($,J).join(f5.sep)));if(Y===A||Y.startsWith(A+f5.sep))return Y}return f5.normalize(f5.join(A,f5.basename(Q)))};KJ.toBuffer=function(Q,B){if(Buffer.isBuffer(Q))return Q;else if(Q instanceof Uint8Array)return Buffer.from(Q);else return typeof Q==="string"?B(Q):Buffer.alloc(0)};KJ.readBigUInt64LE=function(A,Q){let B=A.readUInt32LE(Q);return A.readUInt32LE(Q+4)*4294967296+B};KJ.writeBigUInt64LE=function(A,Q,B){let $=Q>>>0,J=Math.floor(Q/4294967296)>>>0;A.writeUInt32LE($,B),A.writeUInt32LE(J,B+4)};KJ.fromDOS2Date=function(A){return new Date((A>>25&127)+1980,Math.max((A>>21&15)-1,0),Math.max(A>>16&31,1),A>>11&31,A>>5&63,(A&31)<<1)};KJ.fromDate2DOS=function(A){let Q=0,B=0;if(A.getFullYear()>1979)Q=(A.getFullYear()-1980&127)<<9|A.getMonth()+1<<5|A.getDate(),B=A.getHours()<<11|A.getMinutes()<<5|A.getSeconds()>>1;return Q<<16|B};KJ.isWin=ZJ0;KJ.crcTable=zsA});var IsA=BA((GhB,DsA)=>{var GJ0=DQ("path");DsA.exports=function(A,{fs:Q}){var B=A||"",$=Y(),J=null;function Y(){return{directory:!1,readonly:!1,hidden:!1,executable:!1,mtime:0,atime:0}}if(B&&Q.existsSync(B))J=Q.statSync(B),$.directory=J.isDirectory(),$.mtime=J.mtime,$.atime=J.atime,$.executable=(73&J.mode)!==0,$.readonly=(128&J.mode)===0,$.hidden=GJ0.basename(B)[0]===".";else console.warn("Invalid path: "+B);return{get directory(){return $.directory},get readOnly(){return $.readonly},get hidden(){return $.hidden},get mtime(){return $.mtime},get atime(){return $.atime},get executable(){return $.executable},decodeAttributes:function(){},encodeAttributes:function(){},toJSON:function(){return{path:B,isDirectory:$.directory,isReadOnly:$.readonly,isHidden:$.hidden,isExecutable:$.executable,mTime:$.mtime,aTime:$.atime}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var OsA=BA((KhB,MsA)=>{MsA.exports={efs:!0,encode:(A)=>Buffer.from(A,"utf8"),decode:(A)=>A.toString("utf8")}});var c_=BA((WhB,m_)=>{m_.exports=UsA();m_.exports.Constants=UFA();m_.exports.Errors=Xe();m_.exports.FileAttr=IsA();m_.exports.decoder=OsA()});var NsA=BA((HhB,LsA)=>{var kM=c_(),IB=kM.Constants;LsA.exports=function(){var A=20,Q=10,B=0,$=0,J=0,Y=0,X=0,Z=0,G=0,K=0,W=0,H=0,F=0,D=0,U=0;A|=kM.isWin?2560:768,B|=IB.FLG_EFS;let I={extraLen:0},M=(O)=>Math.max(0,O)>>>0,N=(O)=>Math.max(0,O)&65535,V=(O)=>Math.max(0,O)&255;return J=kM.fromDate2DOS(new Date),{get made(){return A},set made(O){A=O},get version(){return Q},set version(O){Q=O},get flags(){return B},set flags(O){B=O},get flags_efs(){return(B&IB.FLG_EFS)>0},set flags_efs(O){if(O)B|=IB.FLG_EFS;else B&=~IB.FLG_EFS},get flags_desc(){return(B&IB.FLG_DESC)>0},set flags_desc(O){if(O)B|=IB.FLG_DESC;else B&=~IB.FLG_DESC},get method(){return $},set method(O){switch(O){case IB.STORED:this.version=10;break;case IB.DEFLATED:default:this.version=20}$=O},get time(){return kM.fromDOS2Date(this.timeval)},set time(O){O=new Date(O),this.timeval=kM.fromDate2DOS(O)},get timeval(){return J},set timeval(O){J=M(O)},get timeHighByte(){return V(J>>>8)},get crc(){return Y},set crc(O){Y=M(O)},get compressedSize(){return X},set compressedSize(O){X=M(O)},get size(){return Z},set size(O){Z=M(O)},get fileNameLength(){return G},set fileNameLength(O){G=O},get extraLength(){return K},set extraLength(O){K=O},get extraLocalLength(){return I.extraLen},set extraLocalLength(O){I.extraLen=O},get commentLength(){return W},set commentLength(O){W=O},get diskNumStart(){return H},set diskNumStart(O){H=M(O)},get inAttr(){return F},set inAttr(O){F=M(O)},get attr(){return D},set attr(O){D=M(O)},get fileAttr(){return(D||0)>>16&4095},get offset(){return U},set offset(O){U=M(O)},get encrypted(){return(B&IB.FLG_ENC)===IB.FLG_ENC},get centralHeaderSize(){return IB.CENHDR+G+K+W},get realDataOffset(){return U+IB.LOCHDR+I.fnameLen+I.extraLen},get localHeader(){return I},loadLocalHeaderFromBinary:function(O){var C=O.slice(U,U+IB.LOCHDR);if(C.readUInt32LE(0)!==IB.LOCSIG)throw kM.Errors.INVALID_LOC();I.version=C.readUInt16LE(IB.LOCVER),I.flags=C.readUInt16LE(IB.LOCFLG),I.flags_desc=(I.flags&IB.FLG_DESC)>0,I.method=C.readUInt16LE(IB.LOCHOW),I.time=C.readUInt32LE(IB.LOCTIM),I.crc=C.readUInt32LE(IB.LOCCRC),I.compressedSize=C.readUInt32LE(IB.LOCSIZ),I.size=C.readUInt32LE(IB.LOCLEN),I.fnameLen=C.readUInt16LE(IB.LOCNAM),I.extraLen=C.readUInt16LE(IB.LOCEXT);let E=U+IB.LOCHDR+I.fnameLen,R=E+I.extraLen;return O.slice(E,R)},loadFromBinary:function(O){if(O.length!==IB.CENHDR||O.readUInt32LE(0)!==IB.CENSIG)throw kM.Errors.INVALID_CEN();A=O.readUInt16LE(IB.CENVEM),Q=O.readUInt16LE(IB.CENVER),B=O.readUInt16LE(IB.CENFLG),$=O.readUInt16LE(IB.CENHOW),J=O.readUInt32LE(IB.CENTIM),Y=O.readUInt32LE(IB.CENCRC),X=O.readUInt32LE(IB.CENSIZ),Z=O.readUInt32LE(IB.CENLEN),G=O.readUInt16LE(IB.CENNAM),K=O.readUInt16LE(IB.CENEXT),W=O.readUInt16LE(IB.CENCOM),H=O.readUInt16LE(IB.CENDSK),F=O.readUInt16LE(IB.CENATT),D=O.readUInt32LE(IB.CENATX),U=O.readUInt32LE(IB.CENOFF)},localHeaderToBinary:function(){var O=Buffer.alloc(IB.LOCHDR);return O.writeUInt32LE(IB.LOCSIG,0),O.writeUInt16LE(Q,IB.LOCVER),O.writeUInt16LE(B&~IB.FLG_DESC,IB.LOCFLG),O.writeUInt16LE($,IB.LOCHOW),O.writeUInt32LE(J,IB.LOCTIM),O.writeUInt32LE(Y,IB.LOCCRC),O.writeUInt32LE(X,IB.LOCSIZ),O.writeUInt32LE(Z,IB.LOCLEN),O.writeUInt16LE(G,IB.LOCNAM),O.writeUInt16LE(I.extraLen,IB.LOCEXT),O},centralHeaderToBinary:function(){var O=Buffer.alloc(IB.CENHDR+G+K+W);return O.writeUInt32LE(IB.CENSIG,0),O.writeUInt16LE(A,IB.CENVEM),O.writeUInt16LE(Q,IB.CENVER),O.writeUInt16LE(B&~IB.FLG_DESC,IB.CENFLG),O.writeUInt16LE($,IB.CENHOW),O.writeUInt32LE(J,IB.CENTIM),O.writeUInt32LE(Y,IB.CENCRC),O.writeUInt32LE(X,IB.CENSIZ),O.writeUInt32LE(Z,IB.CENLEN),O.writeUInt16LE(G,IB.CENNAM),O.writeUInt16LE(K,IB.CENEXT),O.writeUInt16LE(W,IB.CENCOM),O.writeUInt16LE(H,IB.CENDSK),O.writeUInt16LE(F,IB.CENATT),O.writeUInt32LE(D,IB.CENATX),O.writeUInt32LE(U,IB.CENOFF),O},toJSON:function(){let O=function(C){return C+" bytes"};return{made:A,version:Q,flags:B,method:kM.methodToString($),time:this.time,crc:"0x"+Y.toString(16).toUpperCase(),compressedSize:O(X),size:O(Z),fileNameLength:O(G),extraLength:O(K),commentLength:O(W),diskNumStart:H,inAttr:F,attr:D,offset:U,centralHeaderSize:O(IB.CENHDR+G+K+W)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var CsA=BA((FhB,VsA)=>{var uW=c_(),A1=uW.Constants;VsA.exports=function(){var A=0,Q=0,B=0,$=0,J=0;let Y=()=>A>A1.EF_ZIP64_OR_16||Q>A1.EF_ZIP64_OR_16||B>A1.EF_ZIP64_OR_32||$>A1.EF_ZIP64_OR_32;return{get diskEntries(){return A},set diskEntries(X){A=Q=X},get totalEntries(){return Q},set totalEntries(X){Q=A=X},get size(){return B},set size(X){B=X},get offset(){return $},set offset(X){$=X},get commentLength(){return J},set commentLength(X){J=X},get mainHeaderSize(){return(Y()?A1.ZIP64HDR+A1.END64HDR:0)+A1.ENDHDR+J},loadFromBinary:function(X){if((X.length!==A1.ENDHDR||X.readUInt32LE(0)!==A1.ENDSIG)&&(X.length<A1.ZIP64HDR||X.readUInt32LE(0)!==A1.ZIP64SIG))throw uW.Errors.INVALID_END();if(X.readUInt32LE(0)===A1.ENDSIG)A=X.readUInt16LE(A1.ENDSUB),Q=X.readUInt16LE(A1.ENDTOT),B=X.readUInt32LE(A1.ENDSIZ),$=X.readUInt32LE(A1.ENDOFF),J=X.readUInt16LE(A1.ENDCOM);else A=uW.readBigUInt64LE(X,A1.ZIP64SUB),Q=uW.readBigUInt64LE(X,A1.ZIP64TOT),B=uW.readBigUInt64LE(X,A1.ZIP64SIZB),$=uW.readBigUInt64LE(X,A1.ZIP64OFF),J=0},toBinary:function(){if(!Y()){var X=Buffer.alloc(A1.ENDHDR+J);return X.writeUInt32LE(A1.ENDSIG,0),X.writeUInt32LE(0,4),X.writeUInt16LE(A,A1.ENDSUB),X.writeUInt16LE(Q,A1.ENDTOT),X.writeUInt32LE(B,A1.ENDSIZ),X.writeUInt32LE($,A1.ENDOFF),X.writeUInt16LE(J,A1.ENDCOM),X.fill(" ",A1.ENDHDR),X}var X=Buffer.alloc(this.mainHeaderSize);let Z=0;X.writeUInt32LE(A1.ZIP64SIG,Z),uW.writeBigUInt64LE(X,A1.ZIP64HDR-A1.ZIP64LEAD,Z+A1.ZIP64SIZE),X.writeUInt16LE(45,Z+A1.ZIP64VEM),X.writeUInt16LE(45,Z+A1.ZIP64VER),X.writeUInt32LE(0,Z+A1.ZIP64DSK),X.writeUInt32LE(0,Z+A1.ZIP64DSKDIR),uW.writeBigUInt64LE(X,A,Z+A1.ZIP64SUB),uW.writeBigUInt64LE(X,Q,Z+A1.ZIP64TOT),uW.writeBigUInt64LE(X,B,Z+A1.ZIP64SIZB),uW.writeBigUInt64LE(X,$,Z+A1.ZIP64OFF);let G=$+B;return Z+=A1.ZIP64HDR,X.writeUInt32LE(A1.END64SIG,Z),X.writeUInt32LE(0,Z+A1.END64START),uW.writeBigUInt64LE(X,G,Z+A1.END64OFF),X.writeUInt32LE(1,Z+A1.END64NUMDISKS),Z+=A1.END64HDR,X.writeUInt32LE(A1.ENDSIG,Z),X.writeUInt32LE(0,Z+4),X.writeUInt16LE(Math.min(A,A1.EF_ZIP64_OR_16),Z+A1.ENDSUB),X.writeUInt16LE(Math.min(Q,A1.EF_ZIP64_OR_16),Z+A1.ENDTOT),X.writeUInt32LE(Math.min(B,A1.EF_ZIP64_OR_32),Z+A1.ENDSIZ),X.writeUInt32LE(Math.min($,A1.EF_ZIP64_OR_32),Z+A1.ENDOFF),X.writeUInt16LE(J,Z+A1.ENDCOM),X.fill(" ",Z+A1.ENDHDR),X},toJSON:function(){let X=function(Z,G){let K=Z.toString(16).toUpperCase();while(K.length<G)K="0"+K;return"0x"+K};return{diskEntries:A,totalEntries:Q,size:B+" bytes",offset:X($,4),commentLength:J}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var DFA=BA((KJ0)=>{KJ0.EntryHeader=NsA();KJ0.MainHeader=CsA()});var EsA=BA((qhB,RsA)=>{RsA.exports=function(A){var Q=DQ("zlib"),B={chunkSize:(parseInt(A.length/1024)+1)*1024};return{deflate:function(){return Q.deflateRawSync(A,B)},deflateAsync:function($){var J=Q.createDeflateRaw(B),Y=[],X=0;J.on("data",function(Z){Y.push(Z),X+=Z.length}),J.on("end",function(){var Z=Buffer.alloc(X),G=0;Z.fill(0);for(var K=0;K<Y.length;K++){var W=Y[K];W.copy(Z,G),G+=W.length}$&&$(Z)}),J.end(A)}}}});var jsA=BA((UhB,wsA)=>{var FJ0=+(process?.versions?.node??"").split(".")[0]||0;wsA.exports=function(A,Q){var B=DQ("zlib");let $=FJ0>=15&&Q>0?{maxOutputLength:Q}:{};return{inflate:function(){return B.inflateRawSync(A,$)},inflateAsync:function(J){var Y=B.createInflateRaw($),X=[],Z=0;Y.on("data",function(G){X.push(G),Z+=G.length}),Y.on("end",function(){var G=Buffer.alloc(Z),K=0;G.fill(0);for(var W=0;W<X.length;W++){var H=X[W];H.copy(G,K),K+=H.length}J&&J(G)}),Y.end(A)}}}});var ksA=BA((DhB,SsA)=>{var{randomFillSync:_sA}=DQ("crypto"),zJ0=Xe(),qJ0=new Uint32Array(256).map((A,Q)=>{for(let B=0;B<8;B++)if((Q&1)!==0)Q=Q>>>1^3988292384;else Q>>>=1;return Q>>>0}),PsA=(A,Q)=>Math.imul(A,Q)>>>0,TsA=(A,Q)=>{return qJ0[(A^Q)&255]^A>>>8},sg=()=>{if(typeof _sA==="function")return _sA(Buffer.alloc(12));else return sg.node()};sg.node=()=>{let A=Buffer.alloc(12),Q=A.length;for(let B=0;B<Q;B++)A[B]=Math.random()*256&255;return A};var Ze={genSalt:sg};function Ge(A){let Q=Buffer.isBuffer(A)?A:Buffer.from(A);this.keys=new Uint32Array([305419896,591751049,878082192]);for(let B=0;B<Q.length;B++)this.updateKeys(Q[B])}Ge.prototype.updateKeys=function(A){let Q=this.keys;return Q[0]=TsA(Q[0],A),Q[1]+=Q[0]&255,Q[1]=PsA(Q[1],134775813)+1,Q[2]=TsA(Q[2],Q[1]>>>24),A};Ge.prototype.next=function(){let A=(this.keys[2]|2)>>>0;return PsA(A,A^1)>>8&255};function UJ0(A){let Q=new Ge(A);return function(B){let $=Buffer.alloc(B.length),J=0;for(let Y of B)$[J++]=Q.updateKeys(Y^Q.next());return $}}function DJ0(A){let Q=new Ge(A);return function(B,$,J=0){if(!$)$=Buffer.alloc(B.length);for(let Y of B){let X=Q.next();$[J++]=Y^X,Q.updateKeys(Y)}return $}}function IJ0(A,Q,B){if(!A||!Buffer.isBuffer(A)||A.length<12)return Buffer.alloc(0);let $=UJ0(B),J=$(A.slice(0,12)),Y=(Q.flags&8)===8?Q.timeHighByte:Q.crc>>>24;if(J[11]!==Y)throw zJ0.WRONG_PASSWORD();return $(A.slice(12))}function MJ0(A){if(Buffer.isBuffer(A)&&A.length>=12)Ze.genSalt=function(){return A.slice(0,12)};else if(A==="node")Ze.genSalt=sg.node;else Ze.genSalt=sg}function OJ0(A,Q,B,$=!1){if(A==null)A=Buffer.alloc(0);if(!Buffer.isBuffer(A))A=Buffer.from(A.toString());let J=DJ0(B),Y=Ze.genSalt();if(Y[11]=Q.crc>>>24&255,$)Y[10]=Q.crc>>>16&255;let X=Buffer.alloc(A.length+12);return J(Y,X),J(A,X,12)}SsA.exports={decrypt:IJ0,encrypt:OJ0,_salter:MJ0}});var bsA=BA((LJ0)=>{LJ0.Deflater=EsA();LJ0.Inflater=jsA();LJ0.ZipCrypto=ksA()});var MFA=BA((MhB,vsA)=>{var l6=c_(),RJ0=DFA(),_K=l6.Constants,IFA=bsA();vsA.exports=function(A,Q){var B=new RJ0.EntryHeader,$=Buffer.alloc(0),J=Buffer.alloc(0),Y=!1,X=null,Z=Buffer.alloc(0),G=Buffer.alloc(0),K=!0;let W=A,H=typeof W.decoder==="object"?W.decoder:l6.decoder;K=H.hasOwnProperty("efs")?H.efs:!1;function F(){if(!Q||!(Q instanceof Uint8Array))return Buffer.alloc(0);return G=B.loadLocalHeaderFromBinary(Q),Q.slice(B.realDataOffset,B.realDataOffset+B.compressedSize)}function D(O){let C=B.flags_desc||B.localHeader.flags_desc?B.crc:B.localHeader.crc;return l6.crc32(O)===C}function U(O,C,E){if(typeof C>"u"&&typeof O==="string")E=O,O=void 0;if(Y){if(O&&C)C(Buffer.alloc(0),l6.Errors.DIRECTORY_CONTENT_ERROR());return Buffer.alloc(0)}var R=F();if(R.length===0){if(O&&C)C(R);return R}if(B.encrypted){if(typeof E!=="string"&&!Buffer.isBuffer(E))throw l6.Errors.INVALID_PASS_PARAM();R=IFA.ZipCrypto.decrypt(R,B,E)}var j;switch(B.method){case l6.Constants.STORED:if(j=Buffer.alloc(R.length),R.copy(j),!D(j)){if(O&&C)C(j,l6.Errors.BAD_CRC());throw l6.Errors.BAD_CRC()}else{if(O&&C)C(j);return j}case l6.Constants.DEFLATED:var _=new IFA.Inflater(R,B.size);if(!O){if(j=_.inflate(),!D(j))throw l6.Errors.BAD_CRC(`"${H.decode($)}"`);return j}else _.inflateAsync(function(v){if(C)if(!D(v))C(v,l6.Errors.BAD_CRC());else C(v)});break;default:if(O&&C)C(Buffer.alloc(0),l6.Errors.UNKNOWN_METHOD());throw l6.Errors.UNKNOWN_METHOD()}}function I(O,C){if((!X||!X.length)&&Buffer.isBuffer(Q)){if(O&&C)C(F());return F()}if(X.length&&!Y){var E;switch(B.method){case l6.Constants.STORED:if(B.compressedSize=B.size,E=Buffer.alloc(X.length),X.copy(E),O&&C)C(E);return E;default:case l6.Constants.DEFLATED:var R=new IFA.Deflater(X);if(!O){var j=R.deflate();return B.compressedSize=j.length,j}else R.deflateAsync(function(_){E=Buffer.alloc(_.length),B.compressedSize=_.length,_.copy(E),C&&C(E)});R=null;break}}else if(O&&C)C(Buffer.alloc(0));else return Buffer.alloc(0)}function M(O,C){return l6.readBigUInt64LE(O,C)}function N(O){try{var C=0,E,R,j;while(C+4<O.length)if(E=O.readUInt16LE(C),C+=2,R=O.readUInt16LE(C),C+=2,j=O.slice(C,C+R),C+=R,_K.ID_ZIP64===E)V(j)}catch(_){throw l6.Errors.EXTRA_FIELD_PARSE_ERROR()}}function V(O){var C,E,R,j;if(O.length>=_K.EF_ZIP64_SCOMP){if(C=M(O,_K.EF_ZIP64_SUNCOMP),B.size===_K.EF_ZIP64_OR_32)B.size=C}if(O.length>=_K.EF_ZIP64_RHO){if(E=M(O,_K.EF_ZIP64_SCOMP),B.compressedSize===_K.EF_ZIP64_OR_32)B.compressedSize=E}if(O.length>=_K.EF_ZIP64_DSN){if(R=M(O,_K.EF_ZIP64_RHO),B.offset===_K.EF_ZIP64_OR_32)B.offset=R}if(O.length>=_K.EF_ZIP64_DSN+4){if(j=O.readUInt32LE(_K.EF_ZIP64_DSN),B.diskNumStart===_K.EF_ZIP64_OR_16)B.diskNumStart=j}}return{get entryName(){return H.decode($)},get rawEntryName(){return $},set entryName(O){$=l6.toBuffer(O,H.encode);var C=$[$.length-1];Y=C===47||C===92,B.fileNameLength=$.length},get efs(){if(typeof K==="function")return K(this.entryName);else return K},get extra(){return Z},set extra(O){Z=O,B.extraLength=O.length,N(O)},get comment(){return H.decode(J)},set comment(O){if(J=l6.toBuffer(O,H.encode),B.commentLength=J.length,J.length>65535)throw l6.Errors.COMMENT_TOO_LONG()},get name(){let O=H.decode($);return Y?O.replace(/[/\\]$/,"").split("/").pop():O.split("/").pop()},get isDirectory(){return Y},getCompressedData:function(){return I(!1,null)},getCompressedDataAsync:function(O){I(!0,O)},setData:function(O){if(X=l6.toBuffer(O,l6.decoder.encode),!Y&&X.length)B.size=X.length,B.method=l6.Constants.DEFLATED,B.crc=l6.crc32(O),B.changed=!0;else B.method=l6.Constants.STORED},getData:function(O){if(B.changed)return X;else return U(!1,null,O)},getDataAsync:function(O,C){if(B.changed)O(X);else U(!0,O,C)},set attr(O){B.attr=O},get attr(){return B.attr},set header(O){B.loadFromBinary(O)},get header(){return B},packCentralHeader:function(){B.flags_efs=this.efs,B.extraLength=Z.length;var O=B.centralHeaderToBinary(),C=l6.Constants.CENHDR;return $.copy(O,C),C+=$.length,Z.copy(O,C),C+=B.extraLength,J.copy(O,C),O},packLocalHeader:function(){let O=0;B.flags_efs=this.efs,B.extraLocalLength=G.length;let C=B.localHeaderToBinary(),E=Buffer.alloc(C.length+$.length+B.extraLocalLength);return C.copy(E,O),O+=C.length,$.copy(E,O),O+=$.length,G.copy(E,O),O+=G.length,E},toJSON:function(){let O=function(C){return"<"+(C&&C.length+" bytes buffer"||"null")+">"};return{entryName:this.entryName,name:this.name,comment:this.comment,isDirectory:this.isDirectory,header:B.toJSON(),compressedData:O(Q),data:O(X)}},toString:function(){return JSON.stringify(this.toJSON(),null,"\t")}}}});var gsA=BA((OhB,fsA)=>{var xsA=MFA(),EJ0=DFA(),GZ=c_();fsA.exports=function(A,Q){var B=[],$=Object.create(null),J=Buffer.alloc(0),Y=new EJ0.MainHeader,X=!1,Z=null;let G=new Set,K=Q,{noSort:W,decoder:H}=K;if(A)U(K.readEntries);else X=!0;function F(){let M=new Set;for(let N of Object.keys($)){let V=N.split("/");if(V.pop(),!V.length)continue;for(let O=0;O<V.length;O++){let C=V.slice(0,O+1).join("/")+"/";M.add(C)}}for(let N of M)if(!(N in $)){let V=new xsA(K);V.entryName=N,V.attr=16,V.temporary=!0,B.push(V),$[V.entryName]=V,G.add(V)}}function D(){if(X=!0,$=Object.create(null),Y.diskEntries>(A.length-Y.offset)/GZ.Constants.CENHDR)throw GZ.Errors.DISK_ENTRY_TOO_LARGE();B=Array(Y.diskEntries);var M=Y.offset;for(var N=0;N<B.length;N++){var V=M,O=new xsA(K,A);if(O.header=A.slice(V,V+=GZ.Constants.CENHDR),O.entryName=A.slice(V,V+=O.header.fileNameLength),O.header.extraLength)O.extra=A.slice(V,V+=O.header.extraLength);if(O.header.commentLength)O.comment=A.slice(V,V+O.header.commentLength);M+=O.header.centralHeaderSize,B[N]=O,$[O.entryName]=O}G.clear(),F()}function U(M){var N=A.length-GZ.Constants.ENDHDR,V=Math.max(0,N-65535),O=V,C=A.length,E=-1,R=0;if(typeof K.trailingSpace==="boolean"?K.trailingSpace:!1)V=0;for(N;N>=O;N--){if(A[N]!==80)continue;if(A.readUInt32LE(N)===GZ.Constants.ENDSIG){E=N,R=N,C=N+GZ.Constants.ENDHDR,O=N-GZ.Constants.END64HDR;continue}if(A.readUInt32LE(N)===GZ.Constants.END64SIG){O=V;continue}if(A.readUInt32LE(N)===GZ.Constants.ZIP64SIG){E=N,C=N+GZ.readBigUInt64LE(A,N+GZ.Constants.ZIP64SIZE)+GZ.Constants.ZIP64LEAD;break}}if(E==-1)throw GZ.Errors.INVALID_FORMAT();if(Y.loadFromBinary(A.slice(E,C)),Y.commentLength)J=A.slice(R+GZ.Constants.ENDHDR);if(M)D()}function I(){if(B.length>1&&!W)B=B.map((M)=>({entry:M,key:M.entryName.toLowerCase()})).sort((M,N)=>M.key.localeCompare(N.key)).map((M)=>M.entry)}return{get entries(){if(!X)D();return B.filter((M)=>!G.has(M))},get comment(){return H.decode(J)},set comment(M){J=GZ.toBuffer(M,H.encode),Y.commentLength=J.length},getEntryCount:function(){if(!X)return Y.diskEntries;return B.length},forEach:function(M){this.entries.forEach(M)},getEntry:function(M){if(!X)D();return $[M]||null},setEntry:function(M){if(!X)D();B.push(M),$[M.entryName]=M,Y.totalEntries=B.length},deleteFile:function(M,N=!0){if(!X)D();let V=$[M];this.getEntryChildren(V,N).map((C)=>C.entryName).forEach(this.deleteEntry)},deleteEntry:function(M){if(!X)D();let N=$[M],V=B.indexOf(N);if(V>=0)B.splice(V,1),delete $[M],Y.totalEntries=B.length},getEntryChildren:function(M,N=!0){if(!X)D();if(typeof M==="object")if(M.isDirectory&&N){let V=[],O=M.entryName;for(let C of B)if(C.entryName.startsWith(O))V.push(C);return V}else return[M];return[]},getChildCount:function(M){if(M&&M.isDirectory){let N=this.getEntryChildren(M);return N.includes(M)?N.length-1:N.length}return 0},compressToBuffer:function(){if(!X)D();I();let M=[],N=[],V=0,O=0;Y.size=0,Y.offset=0;let C=0;for(let j of this.entries){let _=j.getCompressedData();j.header.offset=O;let v=j.packLocalHeader(),S=v.length+_.length;O+=S,M.push(v),M.push(_);let g=j.packCentralHeader();N.push(g),Y.size+=g.length,V+=S+g.length,C++}V+=Y.mainHeaderSize,Y.offset=O,Y.totalEntries=C,O=0;let E=Buffer.alloc(V);for(let j of M)j.copy(E,O),O+=j.length;for(let j of N)j.copy(E,O),O+=j.length;let R=Y.toBinary();if(J)J.copy(R,R.length-J.length);return R.copy(E,O),A=E,X=!1,E},toAsyncBuffer:function(M,N,V,O){try{if(!X)D();I();let C=[],E=[],R=0,j=0,_=0;Y.size=0,Y.offset=0;let v=function(S){if(S.length>0){let g=S.shift(),m=g.entryName+g.extra.toString();if(V)V(m);g.getCompressedDataAsync(function(a){if(O)O(m);g.header.offset=j;let e=g.packLocalHeader(),r=e.length+a.length;j+=r,C.push(e),C.push(a);let i=g.packCentralHeader();E.push(i),Y.size+=i.length,R+=r+i.length,_++,v(S)})}else{R+=Y.mainHeaderSize,Y.offset=j,Y.totalEntries=_,j=0;let g=Buffer.alloc(R);C.forEach(function(a){a.copy(g,j),j+=a.length}),E.forEach(function(a){a.copy(g,j),j+=a.length});let m=Y.toBinary();if(J)J.copy(m,m.length-J.length);m.copy(g,j),A=g,X=!1,M(g)}};v(Array.from(this.entries))}catch(C){N(C)}}}}});var Ke=BA((LhB,hsA)=>{var jJ=c_(),wJ=DQ("path"),wJ0=MFA(),jJ0=gsA(),UC=(...A)=>jJ.findLast(A,(Q)=>typeof Q==="boolean"),ysA=(...A)=>jJ.findLast(A,(Q)=>typeof Q==="string"),_J0=(...A)=>jJ.findLast(A,(Q)=>typeof Q==="function"),TJ0={noSort:!1,readEntries:!1,method:jJ.Constants.NONE,fs:null};hsA.exports=function(A,Q){let B=null,$=Object.assign(Object.create(null),TJ0);if(A&&typeof A==="object"){if(!(A instanceof Uint8Array)){if(Object.assign($,A),A=$.input?$.input:void 0,$.input)delete $.input}if(Buffer.isBuffer(A))B=A,$.method=jJ.Constants.BUFFER,A=void 0}Object.assign($,Q);let J=new jJ($),Y=(U)=>{U.filter((I)=>I.attr).sort((I,M)=>M.path.length-I.path.length).forEach((I)=>J.fs.chmodSync(I.path,I.attr))};if(typeof $.decoder!=="object"||typeof $.decoder.encode!=="function"||typeof $.decoder.decode!=="function")$.decoder=jJ.decoder;if(A&&typeof A==="string")if(J.fs.existsSync(A))$.method=jJ.Constants.FILE,$.filename=A,B=J.fs.readFileSync(A);else throw jJ.Errors.INVALID_FILENAME();let X=new jJ0(B,$),{canonical:Z,sanitize:G,zipnamefix:K}=jJ;function W(U){if(U&&X){var I;if(typeof U==="string")I=X.getEntry(wJ.posix.normalize(U));if(typeof U==="object"&&typeof U.entryName<"u"&&typeof U.header<"u")I=X.getEntry(U.entryName);if(I)return I}return null}function H(U){let{join:I,normalize:M,sep:N}=wJ.posix;return I(wJ.isAbsolute(U)?"/":".",M(N+U.split("\\").join(N)+N))}function F(U){if(U instanceof RegExp)return function(I){return function(M){return I.test(M)}}(U);else if(typeof U!=="function")return()=>!0;return U}let D=(U,I)=>{let M=I.slice(-1);return M=M===J.sep?J.sep:"",wJ.relative(U,I)+M};return{readFile:function(U,I){var M=W(U);return M&&M.getData(I)||null},childCount:function(U){let I=W(U);if(I)return X.getChildCount(I)},readFileAsync:function(U,I){var M=W(U);if(M)M.getDataAsync(I);else I(null,"getEntry failed for:"+U)},readAsText:function(U,I){var M=W(U);if(M){var N=M.getData();if(N&&N.length)return N.toString(I||"utf8")}return""},readAsTextAsync:function(U,I,M){var N=W(U);if(N)N.getDataAsync(function(V,O){if(O){I(V,O);return}if(V&&V.length)I(V.toString(M||"utf8"));else I("")});else I("")},deleteFile:function(U,I=!0){var M=W(U);if(M)X.deleteFile(M.entryName,I)},deleteEntry:function(U){var I=W(U);if(I)X.deleteEntry(I.entryName)},addZipComment:function(U){X.comment=U},getZipComment:function(){return X.comment||""},addZipEntryComment:function(U,I){var M=W(U);if(M)M.comment=I},getZipEntryComment:function(U){var I=W(U);if(I)return I.comment||"";return""},updateFile:function(U,I){var M=W(U);if(M)M.setData(I)},addLocalFile:function(U,I,M,N){if(J.fs.existsSync(U)){I=I?H(I):"";let V=wJ.win32.basename(wJ.win32.normalize(U));I+=M?M:V;let O=J.fs.statSync(U),C=O.isFile()?J.fs.readFileSync(U):Buffer.alloc(0);if(O.isDirectory())I+=J.sep;this.addFile(I,C,N,O)}else throw jJ.Errors.FILE_NOT_FOUND(U)},addLocalFileAsync:function(U,I){U=typeof U==="object"?U:{localPath:U};let M=wJ.resolve(U.localPath),{comment:N}=U,{zipPath:V,zipName:O}=U,C=this;J.fs.stat(M,function(E,R){if(E)return I(E,!1);V=V?H(V):"";let j=wJ.win32.basename(wJ.win32.normalize(M));if(V+=O?O:j,R.isFile())J.fs.readFile(M,function(_,v){if(_)return I(_,!1);return C.addFile(V,v,N,R),setImmediate(I,void 0,!0)});else if(R.isDirectory())return V+=J.sep,C.addFile(V,Buffer.alloc(0),N,R),setImmediate(I,void 0,!0)})},addLocalFolder:function(U,I,M){if(M=F(M),I=I?H(I):"",U=wJ.normalize(U),J.fs.existsSync(U)){let N=J.findFiles(U),V=this;if(N.length)for(let O of N){let C=wJ.join(I,D(U,O));if(M(C))V.addLocalFile(O,wJ.dirname(C))}}else throw jJ.Errors.FILE_NOT_FOUND(U)},addLocalFolderAsync:function(U,I,M,N){N=F(N),M=M?H(M):"",U=wJ.normalize(U);var V=this;J.fs.open(U,"r",function(O){if(O&&O.code==="ENOENT")I(void 0,jJ.Errors.FILE_NOT_FOUND(U));else if(O)I(void 0,O);else{var C=J.findFiles(U),E=-1,R=function(){if(E+=1,E<C.length){var j=C[E],_=D(U,j).split("\\").join("/");if(_=_.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,""),N(_))J.fs.stat(j,function(v,S){if(v)I(void 0,v);if(S.isFile())J.fs.readFile(j,function(g,m){if(g)I(void 0,g);else V.addFile(M+_,m,"",S),R()});else V.addFile(M+_+"/",Buffer.alloc(0),"",S),R()});else process.nextTick(()=>{R()})}else I(!0,void 0)};R()}})},addLocalFolderAsync2:function(U,I){let M=this;U=typeof U==="object"?U:{localPath:U};let N=wJ.resolve(H(U.localPath)),{zipPath:V,filter:O,namefix:C}=U;if(O instanceof RegExp)O=function(j){return function(_){return j.test(_)}}(O);else if(typeof O!=="function")O=function(){return!0};if(V=V?H(V):"",C==="latin1")C=(j)=>j.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^\x20-\x7E]/g,"");if(typeof C!=="function")C=(j)=>j;let E=(j)=>wJ.join(V,C(D(N,j))),R=(j)=>wJ.win32.basename(wJ.win32.normalize(C(j)));J.fs.open(N,"r",function(j){if(j&&j.code==="ENOENT")I(void 0,jJ.Errors.FILE_NOT_FOUND(N));else if(j)I(void 0,j);else J.findFilesAsync(N,function(_,v){if(_)return I(_);if(v=v.filter((S)=>O(E(S))),!v.length)I(void 0,!1);setImmediate(v.reverse().reduce(function(S,g){return function(m,a){if(m||a===!1)return setImmediate(S,m,!1);M.addLocalFileAsync({localPath:g,zipPath:wJ.dirname(E(g)),zipName:R(g)},S)}},I))})})},addLocalFolderPromise:function(U,I){return new Promise((M,N)=>{this.addLocalFolderAsync2(Object.assign({localPath:U},I),(V,O)=>{if(V)N(V);if(O)M(this)})})},addFile:function(U,I,M,N){U=K(U);let V=W(U),O=V!=null;if(!O)V=new wJ0($),V.entryName=U;V.comment=M||"";let C=typeof N==="object"&&N instanceof J.fs.Stats;if(C)V.header.time=N.mtime;var E=V.isDirectory?16:0;let R=V.isDirectory?16384:32768;if(C)R|=4095&N.mode;else if(typeof N==="number")R|=4095&N;else R|=V.isDirectory?493:420;if(E=(E|R<<16)>>>0,V.attr=E,V.setData(I),!O)X.setEntry(V);return V},getEntries:function(U){return X.password=U,X?X.entries:[]},getEntry:function(U){return W(U)},getEntryCount:function(){return X.getEntryCount()},forEach:function(U){return X.forEach(U)},extractEntryTo:function(U,I,M,N,V,O){N=UC(!1,N),V=UC(!1,V),M=UC(!0,M),O=ysA(V,O);var C=W(U);if(!C)throw jJ.Errors.NO_ENTRY();var E=Z(C.entryName),R=G(I,O&&!C.isDirectory?Z(O):M?E:wJ.basename(E));if(C.isDirectory){var j=X.getEntryChildren(C);return j.forEach(function(S){if(S.isDirectory)return;var g=S.getData();if(!g)throw jJ.Errors.CANT_EXTRACT_FILE();var m=Z(M?S.entryName:S.entryName.substring(C.entryName.length)),a=G(I,m);let e=V?S.header.fileAttr:void 0;J.writeFileTo(a,g,N,e)}),!0}var _=C.getData(X.password);if(!_)throw jJ.Errors.CANT_EXTRACT_FILE();if(J.fs.existsSync(R)&&!N)throw jJ.Errors.CANT_OVERRIDE();let v=V?U.header.fileAttr:void 0;return J.writeFileTo(R,_,N,v),!0},test:function(U){if(!X)return!1;for(var I of X.entries)try{if(I.isDirectory)continue;var M=I.getData(U);if(!M)return!1}catch(N){return!1}return!0},extractAllTo:function(U,I,M,N){if(M=UC(!1,M),N=ysA(M,N),I=UC(!1,I),!X)throw jJ.Errors.NO_ZIP();let V=[];X.entries.forEach(function(O){var C=G(U,Z(O.entryName));if(O.isDirectory){if(J.makeDir(C),M)V.push({path:C,attr:O.header.fileAttr});return}var E=O.getData(N);if(!E)throw jJ.Errors.CANT_EXTRACT_FILE();let R=M?O.header.fileAttr:void 0;J.writeFileTo(C,E,I,R);try{J.fs.utimesSync(C,O.header.time,O.header.time)}catch(j){}}),Y(V)},extractAllToAsync:function(U,I,M,N){if(N=_J0(I,M,N),M=UC(!1,M),I=UC(!1,I),!N)return new Promise((_,v)=>{this.extractAllToAsync(U,I,M,function(S){if(S)v(S);else _(this)})});if(!X){N(jJ.Errors.NO_ZIP());return}U=wJ.resolve(U);let V=(_)=>G(U,wJ.normalize(Z(_.entryName))),O=(_,v)=>Error(_+': "'+v+'"'),C=[],E=[];X.entries.forEach((_)=>{if(_.isDirectory)C.push(_);else E.push(_)});let R=[];for(let _ of C){let v=V(_),S=M?_.header.fileAttr:void 0;try{J.makeDir(v)}catch(g){N(O("Unable to create folder",v));continue}if(S)R.push({path:v,attr:S});try{J.fs.utimesSync(v,_.header.time,_.header.time)}catch(g){}}let j=(_)=>{if(!_)try{Y(R)}catch(v){return N(O("Unable to set folder permissions",v.path||""))}N(_)};E.reverse().reduce(function(_,v){return function(S){if(S)_(S);else{let g=wJ.normalize(Z(v.entryName)),m=G(U,g);v.getDataAsync(function(a,e){if(e)_(e);else if(!a)_(jJ.Errors.CANT_EXTRACT_FILE());else{let r=M?v.header.fileAttr:void 0;J.writeFileToAsync(m,a,I,r,function(i){if(!i)return _(O("Unable to write file",m));J.fs.utimes(m,v.header.time,v.header.time,function(){_()})})}})}}},j)()},writeZip:function(U,I){if(arguments.length===1){if(typeof U==="function")I=U,U=""}if(!U&&$.filename)U=$.filename;if(!U)return;var M=X.compressToBuffer();if(M){var N=J.writeFileTo(U,M,!0);if(typeof I==="function")I(!N?Error("failed"):null,"")}},writeZipPromise:function(U,I){let{overwrite:M,perm:N}=Object.assign({overwrite:!0},I);return new Promise((V,O)=>{if(!U&&$.filename)U=$.filename;if(!U)O("ADM-ZIP: ZIP File Name Missing");this.toBufferPromise().then((C)=>{let E=(R)=>R?V(R):O("ADM-ZIP: Wasn't able to write zip file");J.writeFileToAsync(U,C,M,N,E)},O)})},toBufferPromise:function(){return new Promise((U,I)=>{X.toAsyncBuffer(U,I)})},toBuffer:function(U,I,M,N){if(typeof U==="function")return X.toAsyncBuffer(U,I,M,N),null;return X.compressToBuffer()}}}});var lsA=BA((NhB,csA)=>{var msA={};csA.exports=msA;var usA={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(usA).forEach(function(A){var Q=usA[A],B=msA[A]=[];B.open="\x1B["+Q[0]+"m",B.close="\x1B["+Q[1]+"m"})});var psA=BA((VhB,dsA)=>{dsA.exports=function(A,Q){Q=Q||process.argv;var B=Q.indexOf("--"),$=/^-{1,2}/.test(A)?"":"--",J=Q.indexOf($+A);return J!==-1&&(B===-1?!0:J<B)}});var nsA=BA((ChB,isA)=>{var PJ0=DQ("os"),k2=psA(),KZ=process.env,l_=void 0;if(k2("no-color")||k2("no-colors")||k2("color=false"))l_=!1;else if(k2("color")||k2("colors")||k2("color=true")||k2("color=always"))l_=!0;if("FORCE_COLOR"in KZ)l_=KZ.FORCE_COLOR.length===0||parseInt(KZ.FORCE_COLOR,10)!==0;function SJ0(A){if(A===0)return!1;return{level:A,hasBasic:!0,has256:A>=2,has16m:A>=3}}function kJ0(A){if(l_===!1)return 0;if(k2("color=16m")||k2("color=full")||k2("color=truecolor"))return 3;if(k2("color=256"))return 2;if(A&&!A.isTTY&&l_!==!0)return 0;var Q=l_?1:0;if(process.platform==="win32"){var B=PJ0.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(B[0])>=10&&Number(B[2])>=10586)return Number(B[2])>=14931?3:2;return 1}if("CI"in KZ){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(function(J){return J in KZ})||KZ.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in KZ)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(KZ.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in KZ){var $=parseInt((KZ.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(KZ.TERM_PROGRAM){case"iTerm.app":return $>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(KZ.TERM))return 2;if(/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(KZ.TERM))return 1;if("COLORTERM"in KZ)return 1;if(KZ.TERM==="dumb")return Q;return Q}function OFA(A){var Q=kJ0(A);return SJ0(Q)}isA.exports={supportsColor:OFA,stdout:OFA(process.stdout),stderr:OFA(process.stderr)}});var osA=BA((RhB,rsA)=>{rsA.exports=function(Q,B){var $="";Q=Q||"Run the trap, drop the bass",Q=Q.split("");var J={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","","๏"],p:["Ƿ","Ҏ"],q:["্"],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return Q.forEach(function(Y){Y=Y.toLowerCase();var X=J[Y]||[" "],Z=Math.floor(Math.random()*X.length);if(typeof J[Y]<"u")$+=J[Y][Z];else $+=Y}),$}});var ssA=BA((EhB,asA)=>{asA.exports=function(Q,B){Q=Q||" he is here ";var $={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},J=[].concat($.up,$.down,$.mid);function Y(G){var K=Math.floor(Math.random()*G);return K}function X(G){var K=!1;return J.filter(function(W){K=W===G}),K}function Z(G,K){var W="",H,F;K=K||{},K.up=typeof K.up<"u"?K.up:!0,K.mid=typeof K.mid<"u"?K.mid:!0,K.down=typeof K.down<"u"?K.down:!0,K.size=typeof K.size<"u"?K.size:"maxi",G=G.split("");for(F in G){if(X(F))continue;switch(W=W+G[F],H={up:0,down:0,mid:0},K.size){case"mini":H.up=Y(8),H.mid=Y(2),H.down=Y(8);break;case"maxi":H.up=Y(16)+3,H.mid=Y(4)+1,H.down=Y(64)+3;break;default:H.up=Y(8)+1,H.mid=Y(6)/2,H.down=Y(8)+1;break}var D=["up","mid","down"];for(var U in D){var I=D[U];for(var M=0;M<=H[I];M++)if(K[I])W=W+$[I][Y($[I].length)]}}return W}return Z(Q,B)}});var esA=BA((whB,tsA)=>{tsA.exports=function(A){return function(Q,B,$){if(Q===" ")return Q;switch(B%3){case 0:return A.red(Q);case 1:return A.white(Q);case 2:return A.blue(Q)}}}});var QtA=BA((jhB,AtA)=>{AtA.exports=function(A){return function(Q,B,$){return B%2===0?Q:A.inverse(Q)}}});var $tA=BA((_hB,BtA)=>{BtA.exports=function(A){var Q=["red","yellow","green","blue","magenta"];return function(B,$,J){if(B===" ")return B;else return A[Q[$++%Q.length]](B)}}});var YtA=BA((ThB,JtA)=>{JtA.exports=function(A){var Q=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(B,$,J){return B===" "?B:A[Q[Math.round(Math.random()*(Q.length-2))]](B)}}});var WtA=BA((ShB,KtA)=>{var R$={};KtA.exports=R$;R$.themes={};var bJ0=DQ("util"),DC=R$.styles=lsA(),XtA=Object.defineProperties,vJ0=new RegExp(/[\r\n]+/g);R$.supportsColor=nsA().supportsColor;if(typeof R$.enabled>"u")R$.enabled=R$.supportsColor()!==!1;R$.enable=function(){R$.enabled=!0};R$.disable=function(){R$.enabled=!1};R$.stripColors=R$.strip=function(A){return(""+A).replace(/\x1B\[\d+m/g,"")};var PhB=R$.stylize=function(Q,B){if(!R$.enabled)return Q+"";var $=DC[B];if(!$&&B in R$)return R$[B](Q);return $.open+Q+$.close},xJ0=/[|\\{}()[\]^$+*?.]/g,fJ0=function(A){if(typeof A!=="string")throw TypeError("Expected a string");return A.replace(xJ0,"\\$&")};function ZtA(A){var Q=function B(){return yJ0.apply(B,arguments)};return Q._styles=A,Q.__proto__=gJ0,Q}var GtA=function(){var A={};return DC.grey=DC.gray,Object.keys(DC).forEach(function(Q){DC[Q].closeRe=new RegExp(fJ0(DC[Q].close),"g"),A[Q]={get:function(){return ZtA(this._styles.concat(Q))}}}),A}(),gJ0=XtA(function(){},GtA);function yJ0(){var A=Array.prototype.slice.call(arguments),Q=A.map(function(X){if(X!=null&&X.constructor===String)return X;else return bJ0.inspect(X)}).join(" ");if(!R$.enabled||!Q)return Q;var B=Q.indexOf(`
|
|
77
77
|
`)!=-1,$=this._styles,J=$.length;while(J--){var Y=DC[$[J]];if(Q=Y.open+Q.replace(Y.closeRe,Y.open)+Y.close,B)Q=Q.replace(vJ0,function(X){return Y.close+X+Y.open})}return Q}R$.setTheme=function(A){if(typeof A==="string"){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var Q in A)(function(B){R$[B]=function($){if(typeof A[B]==="object"){var J=$;for(var Y in A[B])J=R$[A[B][Y]](J);return J}return R$[A[B]]($)}})(Q)};function hJ0(){var A={};return Object.keys(GtA).forEach(function(Q){A[Q]={get:function(){return ZtA([Q])}}}),A}var uJ0=function(Q,B){var $=B.split("");return $=$.map(Q),$.join("")};R$.trap=osA();R$.zalgo=ssA();R$.maps={};R$.maps.america=esA()(R$);R$.maps.zebra=QtA()(R$);R$.maps.rainbow=$tA()(R$);R$.maps.random=YtA()(R$);for(LFA in R$.maps)(function(A){R$[A]=function(Q){return uJ0(R$.maps[A],Q)}})(LFA);var LFA;XtA(R$,hJ0())});var FtA=BA((khB,HtA)=>{var mJ0=WtA();HtA.exports=mJ0});var ztA=BA((cJ0)=>{cJ0.indent=function(Q){return Array(Q+1).join(" ")};cJ0.getMaxIndexLength=function(A){var Q=0;return Object.getOwnPropertyNames(A).forEach(function(B){if(A[B]===void 0)return;Q=Math.max(Q,B.length)}),Q}});var qtA=BA((vhB,pJ0)=>{pJ0.exports={author:"Rafael de Oleza <rafeca@gmail.com> (https://github.com/rafeca)",name:"prettyjson",description:"Package for formatting JSON data in a coloured YAML-style, perfect for CLI output",version:"1.2.5",homepage:"http://rafeca.com/prettyjson",keywords:["json","cli","formatting","colors"],repository:{type:"git",url:"https://github.com/rafeca/prettyjson.git"},bugs:{url:"https://github.com/rafeca/prettyjson/issues"},main:"./lib/prettyjson",files:["bin/prettyjson","lib/*.js"],license:"MIT",scripts:{test:"npm run jshint && mocha --reporter spec",testwin:"node ./node_modules/mocha/bin/mocha --reporter spec",jshint:"jshint lib/*.js test/*.js",coverage:"istanbul cover _mocha --report lcovonly -- -R spec",coveralls:"npm run coverage && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage",changelog:"git log $(git describe --tags --abbrev=0)..HEAD --pretty='* %s' --first-parent"},bin:{prettyjson:"./bin/prettyjson"},dependencies:{colors:"1.4.0",minimist:"^1.2.0"},devDependencies:{coveralls:"^2.11.15",istanbul:"^0.4.5",jshint:"^2.9.4",mocha:"^3.1.2","mocha-lcov-reporter":"^1.2.0",should:"^11.1.1"}}});var DtA=BA((oJ0)=>{var OF=FtA(),bM=ztA(),iJ0=/[^\w\s\n\r\v\t\.,]/i;oJ0.version=qtA().version;var NFA=function(A,Q){return A!==void 0||Q.renderUndefined},We=function(A,Q,B){if(typeof A==="boolean"||typeof A==="number"||typeof A==="function"||A===null||A===void 0||A instanceof Date)return!0;if(typeof A==="string"&&A.indexOf(`
|
|
78
78
|
`)===-1)return!0;if(B.inlineArrays&&!Q){if(Array.isArray(A)&&We(A[0],!0,B))return!0}return!1},nJ0=function(A,Q){if(Q.noColor)return A;if(typeof A==="string")return Q.stringColor?OF[Q.stringColor](A):A;var B=A+"";if(A===!0)return OF.green(B);if(A===!1)return OF.red(B);if(A===null||A===void 0)return OF.grey(B);if(typeof A==="number")if(A>=0)return OF[Q.positiveNumberColor](B);else return OF[Q.negativeNumberColor](B);if(typeof A==="function")return"function() {}";if(Array.isArray(A))return A.join(", ");return B},VFA=function(A,Q){if(A.multilineStringColor===null||A.noColor)return Q;else return OF[A.multilineStringColor](Q)},rJ0=function(A,Q,B){var $=A.split(`
|
|
@@ -2003,7 +2003,7 @@ ${gvB(fvB(A,Q))}`}function C10(A,Q){if(!A.isError||!Array.isArray(A.content))ret
|
|
|
2003
2003
|
`);return}if(A==="command"){let Y=pvB(J);if(Y.screenshot)rvB(Y.screenshot.name,Y.screenshot.base64);OpA.write(Y.text);return}OpA.write(k10(J.data))}function k10(A){let Q=[A?.id,A?.url].filter((B)=>Boolean(B));if(Q.length>0)return`${Q.join(`
|
|
2004
2004
|
`)}
|
|
2005
2005
|
`;return`${A?.status??"ok"}
|
|
2006
|
-
`}function b10(A,Q){if(!A)jV("app id is required");return j3A("start",A,void 0,ivB(Q))}function v10(A,Q,B){if(!A||!Q)jV("session id and app id are required");return j3A("stop",Q,A,B)}function x10(A,Q,B){if(!A||!Q)jV("session id and app id are required");return j3A("get",Q,A,B)}function f10(A,Q,B,$){if(!A||!Q||!B)jV("command, session id and app id are required");return j3A("command",B,Q,{...$,deviceCommand:A})}function _3A(A){return{content:[{type:"text",text:A instanceof Error?A.message:"Simulator request failed."}],isError:!0}}function g10(A){A.registerTool("capgo_start_simulator",{description:"Start an iOS or Android cloud simulator. It uses one builder slot and build minutes. The result includes the session id, viewer URL, and remoteConfig in the Expo device-run shape (agentDeviceRemoteSessionUrl and token, webPreviewUrl and token, previewApiUrl). Drive it with capgo_simulator_command. Pass build_job_id to install a saved iOS build.",inputSchema:j10},async({appId:Q,platform:B,name:$,build_job_id:J})=>{try{let Y=await uf("start",Q,void 0,{platform:B,name:$,buildJobId:J});return{content:[{type:"text",text:JSON.stringify(Y,null,2)}]}}catch(Y){return _3A(Y)}}),A.registerTool("capgo_get_simulator",{description:"Read one simulator session. A running session includes Expo remoteConfig so a client can connect to the agent-device endpoints.",inputSchema:_10},async({appId:Q,session_id:B})=>{try{let $=await uf("get",Q,B,{});return{content:[{type:"text",text:JSON.stringify($,null,2)}]}}catch($){return _3A($)}}),A.registerTool("capgo_stop_simulator",{description:"Stop a simulator session and record its build minutes.",inputSchema:T10},async({appId:Q,session_id:B})=>{try{let $=await uf("stop",Q,B,{});return{content:[{type:"text",text:JSON.stringify($,null,2)}]}}catch($){return _3A($)}}),A.registerTool("capgo_simulator_command",{description:"Send one command to a running simulator over the same agent-device channel an Expo simulator session exposes. Commands: devices, screenshot, snapshot, home, lock, tap, open. tap uses x and y from 0 to 1, or points above 1. open uses bundle_id. screenshot returns the JPEG.",inputSchema:P10},async({appId:Q,session_id:B,command:$,x:J,y:Y,bundle_id:X})=>{try{let Z=await uf("command",Q,B,{deviceCommand:$,x:J,y:Y,bundleId:X});return S10(Z)}catch(Z){return _3A(Z)}})}X5();X5();var LpA=f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),frontmatter:f.object({name:f.string().describe("Unique skill name."),description:f.string().describe("When this guide is useful.")}).catchall(f.unknown()).describe("Skill name, purpose and any additional guide metadata from its frontmatter."),resources:f.array(f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),digest:f.string().describe("sha256 digest of the exact file bytes."),size:f.number().int().nonnegative().describe("File size in bytes.")})).describe("Files belonging to this skill, with exact read URIs and integrity digests.")}).describe("Workflow guide metadata and file manifest; read the guide URI to load its instructions."),y10=f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),mimeType:f.string().describe("MIME type of this resource."),text:f.string().optional().describe("Exact UTF-8 file content. Reading it does not authorize the actions it describes."),blob:f.string().optional().describe("Base64 file bytes for a binary resource; decode before checking its digest.")}),h10=f.object({}),NpA=f.object({uri:f.string().min(1).describe("Skill URI from capgo_list_skills, identifying its SKILL.md."),resourceUri:f.string().min(1).optional().describe("Supporting file URI from this skill's resources manifest. Omit to read SKILL.md.")}),u10=f.object({cursor:f.string().optional()}),m10=NpA.pick({uri:!0});var Is={skills:[{uri:"skill://capgo/check-update-health/SKILL.md",frontmatter:{name:"check-update-health",description:"Check how a Capgo live update is performing on devices using Observe, statistics and device data."},resources:[{uri:"skill://capgo/check-update-health/SKILL.md",digest:"sha256:9b6fa36e695e767f847c4df2a5e5991c15ecb5de176af56748b814dfc090e606",size:1267}]},{uri:"skill://capgo/native-builds/SKILL.md",frontmatter:{name:"native-builds",description:"Use when working with Capgo Cloud native iOS and Android build requests, cloud simulators, onboarding, credential storage, credential updates, and build output upload settings."},resources:[{uri:"skill://capgo/native-builds/SKILL.md",digest:"sha256:
|
|
2006
|
+
`}function b10(A,Q){if(!A)jV("app id is required");return j3A("start",A,void 0,ivB(Q))}function v10(A,Q,B){if(!A||!Q)jV("session id and app id are required");return j3A("stop",Q,A,B)}function x10(A,Q,B){if(!A||!Q)jV("session id and app id are required");return j3A("get",Q,A,B)}function f10(A,Q,B,$){if(!A||!Q||!B)jV("command, session id and app id are required");return j3A("command",B,Q,{...$,deviceCommand:A})}function _3A(A){return{content:[{type:"text",text:A instanceof Error?A.message:"Simulator request failed."}],isError:!0}}function g10(A){A.registerTool("capgo_start_simulator",{description:"Start an iOS or Android cloud simulator. It uses one builder slot and counts as build time while it runs. It stops by itself after 5 minutes without input (taps, typing, installs, or commands) and after 40 minutes at most, so stop it when done. iOS time counts double. The result includes the session id, viewer URL, and remoteConfig in the Expo device-run shape (agentDeviceRemoteSessionUrl and token, webPreviewUrl and token, previewApiUrl). Drive it with capgo_simulator_command. Pass build_job_id to install a saved iOS build.",inputSchema:j10},async({appId:Q,platform:B,name:$,build_job_id:J})=>{try{let Y=await uf("start",Q,void 0,{platform:B,name:$,buildJobId:J});return{content:[{type:"text",text:JSON.stringify(Y,null,2)}]}}catch(Y){return _3A(Y)}}),A.registerTool("capgo_get_simulator",{description:"Read one simulator session. A running session includes Expo remoteConfig so a client can connect to the agent-device endpoints.",inputSchema:_10},async({appId:Q,session_id:B})=>{try{let $=await uf("get",Q,B,{});return{content:[{type:"text",text:JSON.stringify($,null,2)}]}}catch($){return _3A($)}}),A.registerTool("capgo_stop_simulator",{description:"Stop a simulator session and record its build minutes.",inputSchema:T10},async({appId:Q,session_id:B})=>{try{let $=await uf("stop",Q,B,{});return{content:[{type:"text",text:JSON.stringify($,null,2)}]}}catch($){return _3A($)}}),A.registerTool("capgo_simulator_command",{description:"Send one command to a running simulator over the same agent-device channel an Expo simulator session exposes. Commands: devices, screenshot, snapshot, home, lock, tap, open. tap uses x and y from 0 to 1, or points above 1. open uses bundle_id. screenshot returns the JPEG.",inputSchema:P10},async({appId:Q,session_id:B,command:$,x:J,y:Y,bundle_id:X})=>{try{let Z=await uf("command",Q,B,{deviceCommand:$,x:J,y:Y,bundleId:X});return S10(Z)}catch(Z){return _3A(Z)}})}X5();X5();var LpA=f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),frontmatter:f.object({name:f.string().describe("Unique skill name."),description:f.string().describe("When this guide is useful.")}).catchall(f.unknown()).describe("Skill name, purpose and any additional guide metadata from its frontmatter."),resources:f.array(f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),digest:f.string().describe("sha256 digest of the exact file bytes."),size:f.number().int().nonnegative().describe("File size in bytes.")})).describe("Files belonging to this skill, with exact read URIs and integrity digests.")}).describe("Workflow guide metadata and file manifest; read the guide URI to load its instructions."),y10=f.object({uri:f.string().describe("Exact skill or file URI from the catalog; pass unchanged to a read tool."),mimeType:f.string().describe("MIME type of this resource."),text:f.string().optional().describe("Exact UTF-8 file content. Reading it does not authorize the actions it describes."),blob:f.string().optional().describe("Base64 file bytes for a binary resource; decode before checking its digest.")}),h10=f.object({}),NpA=f.object({uri:f.string().min(1).describe("Skill URI from capgo_list_skills, identifying its SKILL.md."),resourceUri:f.string().min(1).optional().describe("Supporting file URI from this skill's resources manifest. Omit to read SKILL.md.")}),u10=f.object({cursor:f.string().optional()}),m10=NpA.pick({uri:!0});var Is={skills:[{uri:"skill://capgo/check-update-health/SKILL.md",frontmatter:{name:"check-update-health",description:"Check how a Capgo live update is performing on devices using Observe, statistics and device data."},resources:[{uri:"skill://capgo/check-update-health/SKILL.md",digest:"sha256:9b6fa36e695e767f847c4df2a5e5991c15ecb5de176af56748b814dfc090e606",size:1267}]},{uri:"skill://capgo/native-builds/SKILL.md",frontmatter:{name:"native-builds",description:"Use when working with Capgo Cloud native iOS and Android build requests, cloud simulators, onboarding, credential storage, credential updates, and build output upload settings."},resources:[{uri:"skill://capgo/native-builds/SKILL.md",digest:"sha256:01878c7232bc4ee54843970cadf8b310c406a603d39333d28f33e359ebf55d73",size:24509}]},{uri:"skill://capgo/observe/SKILL.md",frontmatter:{name:"observe",description:"Use when querying Capgo Observe metrics, launch timings, crashes, WebView loads, device timelines, or per-screen navigation from the CLI, SDK, or MCP."},resources:[{uri:"skill://capgo/observe/SKILL.md",digest:"sha256:7772d4cfa201168485254805e79f645f914052d6cad15f2151a496a9aa87addc",size:4224}]},{uri:"skill://capgo/organization-management/SKILL.md",frontmatter:{name:"organization-management",description:"Use when working with Capgo account lookup, organization administration, member security settings, and deprecated organisation aliases."},resources:[{uri:"skill://capgo/organization-management/SKILL.md",digest:"sha256:0a55dc357de987e395b4f38b0075d47e1154a426ae2dafe51173201db8f3297e",size:4361}]},{uri:"skill://capgo/release-management/SKILL.md",frontmatter:{name:"release-management",description:"Use when working on Capgo OTA release workflows including bundle uploads, compatibility checks, channel management, cleanup, and encryption key setup."},resources:[{uri:"skill://capgo/release-management/SKILL.md",digest:"sha256:f5fabde35e0867a7b4beb8c4acc4076f80f296de5d64e80b91c839f058542c1c",size:15177}]},{uri:"skill://capgo/ship-live-update/SKILL.md",frontmatter:{name:"ship-live-update",description:"Deploy an already uploaded Capgo bundle to a channel, directly or as a progressive rollout, and roll it back if needed."},resources:[{uri:"skill://capgo/ship-live-update/SKILL.md",digest:"sha256:76b40e30130b5d35a5f9e8fa6893b355740cc7e242589a6ec1ea2f7de56d3c4d",size:1930}]},{uri:"skill://capgo/usage/SKILL.md",frontmatter:{name:"usage",description:"Use when operating the Capgo CLI for app setup, OTA bundles, channels, organizations, encryption keys, account lookups, MCP integration, GitHub support commands, and native cloud builds."},resources:[{uri:"skill://capgo/usage/SKILL.md",digest:"sha256:43ca44df2dbeb3b246b66faf39235491bc659701d2481f345528c795ded7aeac",size:24809}]}],contents:[{uri:"skill://capgo/check-update-health/SKILL.md",mimeType:"text/markdown",text:'---\nname: check-update-health\ndescription: Check how a Capgo live update is performing on devices using Observe, statistics and device data.\n---\n\nUse this workflow when the user asks whether an update is healthy, why devices are not updating, or how many users are on a version.\n\n1. Resolve the app ID with `capgo_list_apps` if it was not given.\n2. Call `capgo_observe` with `view: "summary"` and a `days` window that fits the question (default 7). Report the findings it returns.\n3. Follow up only where the summary points:\n - Failing updates: `capgo_observe` with `view: "events"` and `action: "update_fail"`, or `view: "versions"` for one bundle.\n - Adoption: `capgo_get_bundle_usage` for the share of devices per bundle.\n - One device: `capgo_list_devices` or `capgo_get_device`, then `capgo_observe` with `view: "device"` and its `deviceId`.\n4. Compare with the live channel from `capgo_get_channel`, so the user can see whether the problem bundle is the one being served.\n5. Summarize in plain language: what is wrong, how many devices it affects, and the next step. When the next step is a rollback or pause, describe it and let the user decide; do not change channels from this workflow.\n\nThis workflow is read-only. Do not call tools that change data.\n'},{uri:"skill://capgo/native-builds/SKILL.md",mimeType:"text/markdown",text:`---
|
|
2007
2007
|
name: native-builds
|
|
2008
2008
|
description: Use when working with Capgo Cloud native iOS and Android build requests, cloud simulators, onboarding, credential storage, credential updates, and build output upload settings.
|
|
2009
2009
|
---
|
|
@@ -2346,7 +2346,7 @@ npx @capgo/cli@latest build credentials export ANDROID_KEYSTORE_FILE \\
|
|
|
2346
2346
|
|
|
2347
2347
|
## Cloud simulator
|
|
2348
2348
|
|
|
2349
|
-
A running simulator uses one native builder slot, the same limit as a native build
|
|
2349
|
+
A running simulator uses one native builder slot, the same limit as a native build, and counts as build time while it runs (iOS time counts double). It stops by itself after 5 minutes without input (taps, typing, installs, or \`simulator command\` calls) and after 40 minutes at most; the build time recorded ends when the device stopped. Stop it as soon as you are done. Each session has its own URL.
|
|
2350
2350
|
|
|
2351
2351
|
### \`simulator start [appId]\`
|
|
2352
2352
|
|
|
@@ -2390,7 +2390,7 @@ npx @capgo/cli@latest simulator get <session-id> com.example.app
|
|
|
2390
2390
|
npx @capgo/cli@latest simulator stop <session-id> com.example.app
|
|
2391
2391
|
\`\`\`
|
|
2392
2392
|
|
|
2393
|
-
Stop ends the device and records build minutes. If the device host is still running, or the minute write fails, the session stays open so the same command can be retried. A session also ends by itself after
|
|
2393
|
+
Stop ends the device and records build minutes. If the device host is still running, or the minute write fails, the session stays open so the same command can be retried. A session also ends by itself after 5 minutes without input or after 40 minutes, which releases the builder slot and records the time up to that stop. Commands sent to it after that fail with a message to start a new simulator.
|
|
2394
2394
|
|
|
2395
2395
|
## Supporting docs
|
|
2396
2396
|
|
|
@@ -3306,5 +3306,5 @@ Example usage with Claude Desktop:
|
|
|
3306
3306
|
}
|
|
3307
3307
|
}
|
|
3308
3308
|
|
|
3309
|
-
Example: npx @capgo/cli@latest mcp`).option("--capacitor-config <path>",JQ.capacitorConfig).action(async()=>{await o10(y5())});var P3A=c8.command("simulator").description("Start a cloud simulator. A running simulator uses one builder slot and build minutes.");P3A.command("start [appId]").description("Start an iOS or Android simulator and print its session URL.").action(b10).option("-p, --platform <platform>","ios or android","ios").option("-n, --name <name>","Session name").option("--build-job <buildJobId>","Saved iOS build job to install into the simulator").option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("get [sessionId] [appId]").description("Read one simulator session.").action(x10).option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("command <deviceCommand> [sessionId] [appId]").description("Send one agent-device command to a running simulator: devices, screenshot, snapshot, home, lock, tap, or open.").action(f10).option("--x <x>","Tap x. 0 to 1 is a fraction of the screen. Above 1 is a point.",(A)=>Number(A)).option("--y <y>","Tap y. 0 to 1 is a fraction of the screen. Above 1 is a point.",(A)=>Number(A)).option("--bundle-id <bundleId>","Bundle id for open").option("--json","Print the command JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("stop [sessionId] [appId]").description("Stop a simulator session and record its build minutes.").action(v10).option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);c8.exitOverride();c8.configureOutput({writeErr:(A)=>{}});TaA(J40.argv);(async()=>{try{await c8.parseAsync();let A=Date.now();if(t4("analytics before wait started"),await kG(),t4("analytics before wait finished",{duration_ms:Date.now()-A}),TpA)await DzQ(TpA,HG,A)}catch(A){if(typeof A==="object"&&A!==null&&"code"in A){let B=A;if(B.code==="commander.version"||B.code==="commander.helpDisplayed")await kG(),_pA(0);let $=dg(A)?pg({error:A,functionName:HG,kind:"unhandled_error",status:B.exitCode??1}):Promise.resolve(!1);if(B.message)if($HQ(J40.argv))await F4A(`${zEA(B.message)}
|
|
3309
|
+
Example: npx @capgo/cli@latest mcp`).option("--capacitor-config <path>",JQ.capacitorConfig).action(async()=>{await o10(y5())});var P3A=c8.command("simulator").description("Start a cloud simulator. A running simulator uses one builder slot and counts as build time. It stops by itself after 5 minutes without input.");P3A.command("start [appId]").description("Start an iOS or Android simulator and print its session URL.").action(b10).option("-p, --platform <platform>","ios or android","ios").option("-n, --name <name>","Session name").option("--build-job <buildJobId>","Saved iOS build job to install into the simulator").option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("get [sessionId] [appId]").description("Read one simulator session.").action(x10).option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("command <deviceCommand> [sessionId] [appId]").description("Send one agent-device command to a running simulator: devices, screenshot, snapshot, home, lock, tap, or open.").action(f10).option("--x <x>","Tap x. 0 to 1 is a fraction of the screen. Above 1 is a point.",(A)=>Number(A)).option("--y <y>","Tap y. 0 to 1 is a fraction of the screen. Above 1 is a point.",(A)=>Number(A)).option("--bundle-id <bundleId>","Bundle id for open").option("--json","Print the command JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);P3A.command("stop [sessionId] [appId]").description("Stop a simulator session and record its build minutes.").action(v10).option("--json","Print the session JSON").option("-a, --apikey <apikey>",JQ.apikey).option("--api-host <apiHost>",JQ.apiHost);c8.exitOverride();c8.configureOutput({writeErr:(A)=>{}});TaA(J40.argv);(async()=>{try{await c8.parseAsync();let A=Date.now();if(t4("analytics before wait started"),await kG(),t4("analytics before wait finished",{duration_ms:Date.now()-A}),TpA)await DzQ(TpA,HG,A)}catch(A){if(typeof A==="object"&&A!==null&&"code"in A){let B=A;if(B.code==="commander.version"||B.code==="commander.helpDisplayed")await kG(),_pA(0);let $=dg(A)?pg({error:A,functionName:HG,kind:"unhandled_error",status:B.exitCode??1}):Promise.resolve(!1);if(B.message)if($HQ(J40.argv))await F4A(`${zEA(B.message)}
|
|
3310
3310
|
`).catch(()=>{});else x.error(B.message);let J=B.exitCode??1;hVA(HG,{errorCategory:zC(A),exitCode:J}),await Promise.all([$,kG(),$b().catch(()=>{})]),_pA(J)}let Q=dg(A)?pg({error:A,functionName:HG,kind:"unhandled_error",status:1}):Promise.resolve(!1);if(!(A instanceof PA)&&!(A instanceof Ou))x.error(`Error: ${bA(A)}`);hVA(HG,{errorCategory:zC(A),exitCode:1}),await Promise.all([Q,kG(),$b().catch(()=>{})]),_pA(1)}})();
|