@marinoscar/platform-cli 0.0.0-stage → 0.1.0-next.11
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/CHANGELOG.md +157 -0
- package/LICENSE +21 -0
- package/README.md +182 -2
- package/dist/android/build.d.ts +30 -0
- package/dist/android/build.d.ts.map +1 -0
- package/dist/android/build.js +126 -0
- package/dist/android/build.js.map +1 -0
- package/dist/android/command.d.ts +21 -0
- package/dist/android/command.d.ts.map +1 -0
- package/dist/android/command.js +355 -0
- package/dist/android/command.js.map +1 -0
- package/dist/android/deploy-step.d.ts +85 -0
- package/dist/android/deploy-step.d.ts.map +1 -0
- package/dist/android/deploy-step.js +268 -0
- package/dist/android/deploy-step.js.map +1 -0
- package/dist/android/doctor.d.ts +47 -0
- package/dist/android/doctor.d.ts.map +1 -0
- package/dist/android/doctor.js +219 -0
- package/dist/android/doctor.js.map +1 -0
- package/dist/android/exec.d.ts +42 -0
- package/dist/android/exec.d.ts.map +1 -0
- package/dist/android/exec.js +103 -0
- package/dist/android/exec.js.map +1 -0
- package/dist/android/fix-plan.d.ts +44 -0
- package/dist/android/fix-plan.d.ts.map +1 -0
- package/dist/android/fix-plan.js +86 -0
- package/dist/android/fix-plan.js.map +1 -0
- package/dist/android/git-freshness.d.ts +34 -0
- package/dist/android/git-freshness.d.ts.map +1 -0
- package/dist/android/git-freshness.js +120 -0
- package/dist/android/git-freshness.js.map +1 -0
- package/dist/android/gradle.d.ts +32 -0
- package/dist/android/gradle.d.ts.map +1 -0
- package/dist/android/gradle.js +55 -0
- package/dist/android/gradle.js.map +1 -0
- package/dist/android/identity.d.ts +27 -0
- package/dist/android/identity.d.ts.map +1 -0
- package/dist/android/identity.js +60 -0
- package/dist/android/identity.js.map +1 -0
- package/dist/android/index.d.ts +7 -0
- package/dist/android/index.d.ts.map +1 -0
- package/dist/android/index.js +8 -0
- package/dist/android/index.js.map +1 -0
- package/dist/android/installer.d.ts +28 -0
- package/dist/android/installer.d.ts.map +1 -0
- package/dist/android/installer.js +96 -0
- package/dist/android/installer.js.map +1 -0
- package/dist/android/java.d.ts +26 -0
- package/dist/android/java.d.ts.map +1 -0
- package/dist/android/java.js +65 -0
- package/dist/android/java.js.map +1 -0
- package/dist/android/keystore.d.ts +54 -0
- package/dist/android/keystore.d.ts.map +1 -0
- package/dist/android/keystore.js +159 -0
- package/dist/android/keystore.js.map +1 -0
- package/dist/android/metadata.d.ts +39 -0
- package/dist/android/metadata.d.ts.map +1 -0
- package/dist/android/metadata.js +61 -0
- package/dist/android/metadata.js.map +1 -0
- package/dist/android/operations.d.ts +42 -0
- package/dist/android/operations.d.ts.map +1 -0
- package/dist/android/operations.js +59 -0
- package/dist/android/operations.js.map +1 -0
- package/dist/android/paths.d.ts +29 -0
- package/dist/android/paths.d.ts.map +1 -0
- package/dist/android/paths.js +97 -0
- package/dist/android/paths.js.map +1 -0
- package/dist/android/publish.d.ts +37 -0
- package/dist/android/publish.d.ts.map +1 -0
- package/dist/android/publish.js +119 -0
- package/dist/android/publish.js.map +1 -0
- package/dist/android/registrations.d.ts +92 -0
- package/dist/android/registrations.d.ts.map +1 -0
- package/dist/android/registrations.js +112 -0
- package/dist/android/registrations.js.map +1 -0
- package/dist/android/release-status.d.ts +73 -0
- package/dist/android/release-status.d.ts.map +1 -0
- package/dist/android/release-status.js +161 -0
- package/dist/android/release-status.js.map +1 -0
- package/dist/android/release.d.ts +33 -0
- package/dist/android/release.d.ts.map +1 -0
- package/dist/android/release.js +59 -0
- package/dist/android/release.js.map +1 -0
- package/dist/android/screen-layout.d.ts +26 -0
- package/dist/android/screen-layout.d.ts.map +1 -0
- package/dist/android/screen-layout.js +24 -0
- package/dist/android/screen-layout.js.map +1 -0
- package/dist/android/screen-model.d.ts +56 -0
- package/dist/android/screen-model.d.ts.map +1 -0
- package/dist/android/screen-model.js +207 -0
- package/dist/android/screen-model.js.map +1 -0
- package/dist/android/screen.d.ts +8 -0
- package/dist/android/screen.d.ts.map +1 -0
- package/dist/android/screen.js +395 -0
- package/dist/android/screen.js.map +1 -0
- package/dist/android/sdk.d.ts +48 -0
- package/dist/android/sdk.d.ts.map +1 -0
- package/dist/android/sdk.js +82 -0
- package/dist/android/sdk.js.map +1 -0
- package/dist/android/server-url.d.ts +19 -0
- package/dist/android/server-url.d.ts.map +1 -0
- package/dist/android/server-url.js +36 -0
- package/dist/android/server-url.js.map +1 -0
- package/dist/android/upload-progress.d.ts +3 -0
- package/dist/android/upload-progress.d.ts.map +1 -0
- package/dist/android/upload-progress.js +47 -0
- package/dist/android/upload-progress.js.map +1 -0
- package/dist/android/version.d.ts +47 -0
- package/dist/android/version.d.ts.map +1 -0
- package/dist/android/version.js +136 -0
- package/dist/android/version.js.map +1 -0
- package/dist/api-client/index.d.ts +3 -0
- package/dist/api-client/index.d.ts.map +1 -0
- package/dist/api-client/index.js +5 -0
- package/dist/api-client/index.js.map +1 -0
- package/dist/commands/index.d.ts +52 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +63 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/core/cli-registry.d.ts +41 -0
- package/dist/core/cli-registry.d.ts.map +1 -0
- package/dist/core/cli-registry.js +49 -0
- package/dist/core/cli-registry.js.map +1 -0
- package/dist/core/command-registry.d.ts +60 -0
- package/dist/core/command-registry.d.ts.map +1 -0
- package/dist/core/command-registry.js +114 -0
- package/dist/core/command-registry.js.map +1 -0
- package/dist/core/env-annotation-registry.d.ts +58 -0
- package/dist/core/env-annotation-registry.d.ts.map +1 -0
- package/dist/core/env-annotation-registry.js +80 -0
- package/dist/core/env-annotation-registry.js.map +1 -0
- package/dist/core/env-generator-registry.d.ts +59 -0
- package/dist/core/env-generator-registry.d.ts.map +1 -0
- package/dist/core/env-generator-registry.js +102 -0
- package/dist/core/env-generator-registry.js.map +1 -0
- package/dist/core/env-group-registry.d.ts +65 -0
- package/dist/core/env-group-registry.d.ts.map +1 -0
- package/dist/core/env-group-registry.js +77 -0
- package/dist/core/env-group-registry.js.map +1 -0
- package/dist/core/env-spec-registry.d.ts +133 -0
- package/dist/core/env-spec-registry.d.ts.map +1 -0
- package/dist/core/env-spec-registry.js +103 -0
- package/dist/core/env-spec-registry.js.map +1 -0
- package/dist/core/env-values.d.ts +76 -0
- package/dist/core/env-values.d.ts.map +1 -0
- package/dist/core/env-values.js +125 -0
- package/dist/core/env-values.js.map +1 -0
- package/dist/core/index.d.ts +14 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +10 -0
- package/dist/core/index.js.map +1 -0
- package/dist/deploy/index.d.ts +3 -0
- package/dist/deploy/index.d.ts.map +1 -0
- package/dist/deploy/index.js +5 -0
- package/dist/deploy/index.js.map +1 -0
- package/dist/engine/api-client.d.ts +211 -0
- package/dist/engine/api-client.d.ts.map +1 -0
- package/dist/engine/api-client.js +350 -0
- package/dist/engine/api-client.js.map +1 -0
- package/dist/engine/browser.d.ts +18 -0
- package/dist/engine/browser.d.ts.map +1 -0
- package/dist/engine/browser.js +115 -0
- package/dist/engine/browser.js.map +1 -0
- package/dist/engine/builtin-registrations.d.ts +20 -0
- package/dist/engine/builtin-registrations.d.ts.map +1 -0
- package/dist/engine/builtin-registrations.js +86 -0
- package/dist/engine/builtin-registrations.js.map +1 -0
- package/dist/engine/commands/api.d.ts +88 -0
- package/dist/engine/commands/api.d.ts.map +1 -0
- package/dist/engine/commands/api.js +398 -0
- package/dist/engine/commands/api.js.map +1 -0
- package/dist/engine/commands/config.d.ts +5 -0
- package/dist/engine/commands/config.d.ts.map +1 -0
- package/dist/engine/commands/config.js +83 -0
- package/dist/engine/commands/config.js.map +1 -0
- package/dist/engine/commands/deploy.d.ts +243 -0
- package/dist/engine/commands/deploy.d.ts.map +1 -0
- package/dist/engine/commands/deploy.js +1166 -0
- package/dist/engine/commands/deploy.js.map +1 -0
- package/dist/engine/commands/init.d.ts +18 -0
- package/dist/engine/commands/init.d.ts.map +1 -0
- package/dist/engine/commands/init.js +50 -0
- package/dist/engine/commands/init.js.map +1 -0
- package/dist/engine/commands/login.d.ts +4 -0
- package/dist/engine/commands/login.d.ts.map +1 -0
- package/dist/engine/commands/login.js +205 -0
- package/dist/engine/commands/login.js.map +1 -0
- package/dist/engine/commands/node.d.ts +21 -0
- package/dist/engine/commands/node.d.ts.map +1 -0
- package/dist/engine/commands/node.js +436 -0
- package/dist/engine/commands/node.js.map +1 -0
- package/dist/engine/config.d.ts +246 -0
- package/dist/engine/config.d.ts.map +1 -0
- package/dist/engine/config.js +414 -0
- package/dist/engine/config.js.map +1 -0
- package/dist/engine/conformance.d.ts +187 -0
- package/dist/engine/conformance.d.ts.map +1 -0
- package/dist/engine/conformance.js +227 -0
- package/dist/engine/conformance.js.map +1 -0
- package/dist/engine/create-cli.d.ts +94 -0
- package/dist/engine/create-cli.d.ts.map +1 -0
- package/dist/engine/create-cli.js +60 -0
- package/dist/engine/create-cli.js.map +1 -0
- package/dist/engine/deploy/about.d.ts +12 -0
- package/dist/engine/deploy/about.d.ts.map +1 -0
- package/dist/engine/deploy/about.js +110 -0
- package/dist/engine/deploy/about.js.map +1 -0
- package/dist/engine/deploy/adopt.d.ts +21 -0
- package/dist/engine/deploy/adopt.d.ts.map +1 -0
- package/dist/engine/deploy/adopt.js +78 -0
- package/dist/engine/deploy/adopt.js.map +1 -0
- package/dist/engine/deploy/answers-file.d.ts +7 -0
- package/dist/engine/deploy/answers-file.d.ts.map +1 -0
- package/dist/engine/deploy/answers-file.js +49 -0
- package/dist/engine/deploy/answers-file.js.map +1 -0
- package/dist/engine/deploy/app-role.d.ts +278 -0
- package/dist/engine/deploy/app-role.d.ts.map +1 -0
- package/dist/engine/deploy/app-role.js +826 -0
- package/dist/engine/deploy/app-role.js.map +1 -0
- package/dist/engine/deploy/app-version.d.ts +47 -0
- package/dist/engine/deploy/app-version.d.ts.map +1 -0
- package/dist/engine/deploy/app-version.js +232 -0
- package/dist/engine/deploy/app-version.js.map +1 -0
- package/dist/engine/deploy/checks/database.d.ts +83 -0
- package/dist/engine/deploy/checks/database.d.ts.map +1 -0
- package/dist/engine/deploy/checks/database.js +455 -0
- package/dist/engine/deploy/checks/database.js.map +1 -0
- package/dist/engine/deploy/checks/dns.d.ts +3 -0
- package/dist/engine/deploy/checks/dns.d.ts.map +1 -0
- package/dist/engine/deploy/checks/dns.js +85 -0
- package/dist/engine/deploy/checks/dns.js.map +1 -0
- package/dist/engine/deploy/checks/host.d.ts +19 -0
- package/dist/engine/deploy/checks/host.d.ts.map +1 -0
- package/dist/engine/deploy/checks/host.js +543 -0
- package/dist/engine/deploy/checks/host.js.map +1 -0
- package/dist/engine/deploy/checks/index.d.ts +33 -0
- package/dist/engine/deploy/checks/index.d.ts.map +1 -0
- package/dist/engine/deploy/checks/index.js +67 -0
- package/dist/engine/deploy/checks/index.js.map +1 -0
- package/dist/engine/deploy/checks/registry.d.ts +110 -0
- package/dist/engine/deploy/checks/registry.d.ts.map +1 -0
- package/dist/engine/deploy/checks/registry.js +104 -0
- package/dist/engine/deploy/checks/registry.js.map +1 -0
- package/dist/engine/deploy/checks/source.d.ts +45 -0
- package/dist/engine/deploy/checks/source.d.ts.map +1 -0
- package/dist/engine/deploy/checks/source.js +175 -0
- package/dist/engine/deploy/checks/source.js.map +1 -0
- package/dist/engine/deploy/checks/tls.d.ts +87 -0
- package/dist/engine/deploy/checks/tls.d.ts.map +1 -0
- package/dist/engine/deploy/checks/tls.js +552 -0
- package/dist/engine/deploy/checks/tls.js.map +1 -0
- package/dist/engine/deploy/checks/types.d.ts +186 -0
- package/dist/engine/deploy/checks/types.d.ts.map +1 -0
- package/dist/engine/deploy/checks/types.js +199 -0
- package/dist/engine/deploy/checks/types.js.map +1 -0
- package/dist/engine/deploy/compose-files.d.ts +29 -0
- package/dist/engine/deploy/compose-files.d.ts.map +1 -0
- package/dist/engine/deploy/compose-files.js +118 -0
- package/dist/engine/deploy/compose-files.js.map +1 -0
- package/dist/engine/deploy/compose-hints.d.ts +11 -0
- package/dist/engine/deploy/compose-hints.d.ts.map +1 -0
- package/dist/engine/deploy/compose-hints.js +70 -0
- package/dist/engine/deploy/compose-hints.js.map +1 -0
- package/dist/engine/deploy/consent.d.ts +29 -0
- package/dist/engine/deploy/consent.d.ts.map +1 -0
- package/dist/engine/deploy/consent.js +35 -0
- package/dist/engine/deploy/consent.js.map +1 -0
- package/dist/engine/deploy/database-drop.d.ts +22 -0
- package/dist/engine/deploy/database-drop.d.ts.map +1 -0
- package/dist/engine/deploy/database-drop.js +135 -0
- package/dist/engine/deploy/database-drop.js.map +1 -0
- package/dist/engine/deploy/database.d.ts +116 -0
- package/dist/engine/deploy/database.d.ts.map +1 -0
- package/dist/engine/deploy/database.js +252 -0
- package/dist/engine/deploy/database.js.map +1 -0
- package/dist/engine/deploy/deploy-info.d.ts +48 -0
- package/dist/engine/deploy/deploy-info.d.ts.map +1 -0
- package/dist/engine/deploy/deploy-info.js +163 -0
- package/dist/engine/deploy/deploy-info.js.map +1 -0
- package/dist/engine/deploy/deployment-evidence.d.ts +38 -0
- package/dist/engine/deploy/deployment-evidence.d.ts.map +1 -0
- package/dist/engine/deploy/deployment-evidence.js +92 -0
- package/dist/engine/deploy/deployment-evidence.js.map +1 -0
- package/dist/engine/deploy/edge-config.d.ts +103 -0
- package/dist/engine/deploy/edge-config.d.ts.map +1 -0
- package/dist/engine/deploy/edge-config.js +170 -0
- package/dist/engine/deploy/edge-config.js.map +1 -0
- package/dist/engine/deploy/env-absence.d.ts +61 -0
- package/dist/engine/deploy/env-absence.d.ts.map +1 -0
- package/dist/engine/deploy/env-absence.js +33 -0
- package/dist/engine/deploy/env-absence.js.map +1 -0
- package/dist/engine/deploy/env-file.d.ts +14 -0
- package/dist/engine/deploy/env-file.d.ts.map +1 -0
- package/dist/engine/deploy/env-file.js +58 -0
- package/dist/engine/deploy/env-file.js.map +1 -0
- package/dist/engine/deploy/env-fragments.d.ts +29 -0
- package/dist/engine/deploy/env-fragments.d.ts.map +1 -0
- package/dist/engine/deploy/env-fragments.js +73 -0
- package/dist/engine/deploy/env-fragments.js.map +1 -0
- package/dist/engine/deploy/env-metadata.d.ts +73 -0
- package/dist/engine/deploy/env-metadata.d.ts.map +1 -0
- package/dist/engine/deploy/env-metadata.js +227 -0
- package/dist/engine/deploy/env-metadata.js.map +1 -0
- package/dist/engine/deploy/env-spec.d.ts +75 -0
- package/dist/engine/deploy/env-spec.d.ts.map +1 -0
- package/dist/engine/deploy/env-spec.js +239 -0
- package/dist/engine/deploy/env-spec.js.map +1 -0
- package/dist/engine/deploy/env-wizard.d.ts +56 -0
- package/dist/engine/deploy/env-wizard.d.ts.map +1 -0
- package/dist/engine/deploy/env-wizard.js +235 -0
- package/dist/engine/deploy/env-wizard.js.map +1 -0
- package/dist/engine/deploy/executor.d.ts +81 -0
- package/dist/engine/deploy/executor.d.ts.map +1 -0
- package/dist/engine/deploy/executor.js +247 -0
- package/dist/engine/deploy/executor.js.map +1 -0
- package/dist/engine/deploy/health.d.ts +153 -0
- package/dist/engine/deploy/health.d.ts.map +1 -0
- package/dist/engine/deploy/health.js +335 -0
- package/dist/engine/deploy/health.js.map +1 -0
- package/dist/engine/deploy/hooks.d.ts +66 -0
- package/dist/engine/deploy/hooks.d.ts.map +1 -0
- package/dist/engine/deploy/hooks.js +19 -0
- package/dist/engine/deploy/hooks.js.map +1 -0
- package/dist/engine/deploy/host-facts.d.ts +23 -0
- package/dist/engine/deploy/host-facts.d.ts.map +1 -0
- package/dist/engine/deploy/host-facts.js +67 -0
- package/dist/engine/deploy/host-facts.js.map +1 -0
- package/dist/engine/deploy/install.d.ts +233 -0
- package/dist/engine/deploy/install.d.ts.map +1 -0
- package/dist/engine/deploy/install.js +1318 -0
- package/dist/engine/deploy/install.js.map +1 -0
- package/dist/engine/deploy/inventory.d.ts +30 -0
- package/dist/engine/deploy/inventory.d.ts.map +1 -0
- package/dist/engine/deploy/inventory.js +122 -0
- package/dist/engine/deploy/inventory.js.map +1 -0
- package/dist/engine/deploy/journal.d.ts +77 -0
- package/dist/engine/deploy/journal.d.ts.map +1 -0
- package/dist/engine/deploy/journal.js +221 -0
- package/dist/engine/deploy/journal.js.map +1 -0
- package/dist/engine/deploy/layout.d.ts +77 -0
- package/dist/engine/deploy/layout.d.ts.map +1 -0
- package/dist/engine/deploy/layout.js +191 -0
- package/dist/engine/deploy/layout.js.map +1 -0
- package/dist/engine/deploy/oauth-check.d.ts +58 -0
- package/dist/engine/deploy/oauth-check.d.ts.map +1 -0
- package/dist/engine/deploy/oauth-check.js +213 -0
- package/dist/engine/deploy/oauth-check.js.map +1 -0
- package/dist/engine/deploy/proxy-bootstrap.d.ts +149 -0
- package/dist/engine/deploy/proxy-bootstrap.d.ts.map +1 -0
- package/dist/engine/deploy/proxy-bootstrap.js +416 -0
- package/dist/engine/deploy/proxy-bootstrap.js.map +1 -0
- package/dist/engine/deploy/proxy-streams.d.ts +110 -0
- package/dist/engine/deploy/proxy-streams.d.ts.map +1 -0
- package/dist/engine/deploy/proxy-streams.js +208 -0
- package/dist/engine/deploy/proxy-streams.js.map +1 -0
- package/dist/engine/deploy/proxy.d.ts +375 -0
- package/dist/engine/deploy/proxy.d.ts.map +1 -0
- package/dist/engine/deploy/proxy.js +758 -0
- package/dist/engine/deploy/proxy.js.map +1 -0
- package/dist/engine/deploy/renewal.d.ts +54 -0
- package/dist/engine/deploy/renewal.d.ts.map +1 -0
- package/dist/engine/deploy/renewal.js +169 -0
- package/dist/engine/deploy/renewal.js.map +1 -0
- package/dist/engine/deploy/repo.d.ts +119 -0
- package/dist/engine/deploy/repo.d.ts.map +1 -0
- package/dist/engine/deploy/repo.js +277 -0
- package/dist/engine/deploy/repo.js.map +1 -0
- package/dist/engine/deploy/run-record.d.ts +28 -0
- package/dist/engine/deploy/run-record.d.ts.map +1 -0
- package/dist/engine/deploy/run-record.js +44 -0
- package/dist/engine/deploy/run-record.js.map +1 -0
- package/dist/engine/deploy/state.d.ts +289 -0
- package/dist/engine/deploy/state.d.ts.map +1 -0
- package/dist/engine/deploy/state.js +163 -0
- package/dist/engine/deploy/state.js.map +1 -0
- package/dist/engine/deploy/steps/app-step-context.d.ts +24 -0
- package/dist/engine/deploy/steps/app-step-context.d.ts.map +1 -0
- package/dist/engine/deploy/steps/app-step-context.js +45 -0
- package/dist/engine/deploy/steps/app-step-context.js.map +1 -0
- package/dist/engine/deploy/steps/pipeline.d.ts +46 -0
- package/dist/engine/deploy/steps/pipeline.d.ts.map +1 -0
- package/dist/engine/deploy/steps/pipeline.js +73 -0
- package/dist/engine/deploy/steps/pipeline.js.map +1 -0
- package/dist/engine/deploy/steps/plan.d.ts +28 -0
- package/dist/engine/deploy/steps/plan.d.ts.map +1 -0
- package/dist/engine/deploy/steps/plan.js +32 -0
- package/dist/engine/deploy/steps/plan.js.map +1 -0
- package/dist/engine/deploy/steps/registry.d.ts +182 -0
- package/dist/engine/deploy/steps/registry.d.ts.map +1 -0
- package/dist/engine/deploy/steps/registry.js +212 -0
- package/dist/engine/deploy/steps/registry.js.map +1 -0
- package/dist/engine/deploy/steps/step-values.d.ts +28 -0
- package/dist/engine/deploy/steps/step-values.d.ts.map +1 -0
- package/dist/engine/deploy/steps/step-values.js +33 -0
- package/dist/engine/deploy/steps/step-values.js.map +1 -0
- package/dist/engine/deploy/testing/fake-postgres.d.ts +88 -0
- package/dist/engine/deploy/testing/fake-postgres.d.ts.map +1 -0
- package/dist/engine/deploy/testing/fake-postgres.js +236 -0
- package/dist/engine/deploy/testing/fake-postgres.js.map +1 -0
- package/dist/engine/deploy/testing/fake-vps.d.ts +147 -0
- package/dist/engine/deploy/testing/fake-vps.d.ts.map +1 -0
- package/dist/engine/deploy/testing/fake-vps.js +365 -0
- package/dist/engine/deploy/testing/fake-vps.js.map +1 -0
- package/dist/engine/deploy/uninstall.d.ts +87 -0
- package/dist/engine/deploy/uninstall.d.ts.map +1 -0
- package/dist/engine/deploy/uninstall.js +321 -0
- package/dist/engine/deploy/uninstall.js.map +1 -0
- package/dist/engine/deploy/update.d.ts +112 -0
- package/dist/engine/deploy/update.d.ts.map +1 -0
- package/dist/engine/deploy/update.js +1280 -0
- package/dist/engine/deploy/update.js.map +1 -0
- package/dist/engine/deploy/version-step.d.ts +65 -0
- package/dist/engine/deploy/version-step.d.ts.map +1 -0
- package/dist/engine/deploy/version-step.js +176 -0
- package/dist/engine/deploy/version-step.js.map +1 -0
- package/dist/engine/device-auth.d.ts +240 -0
- package/dist/engine/device-auth.d.ts.map +1 -0
- package/dist/engine/device-auth.js +442 -0
- package/dist/engine/device-auth.js.map +1 -0
- package/dist/engine/device-login.d.ts +126 -0
- package/dist/engine/device-login.d.ts.map +1 -0
- package/dist/engine/device-login.js +164 -0
- package/dist/engine/device-login.js.map +1 -0
- package/dist/engine/errors.d.ts +314 -0
- package/dist/engine/errors.d.ts.map +1 -0
- package/dist/engine/errors.js +561 -0
- package/dist/engine/errors.js.map +1 -0
- package/dist/engine/identity.d.ts +169 -0
- package/dist/engine/identity.d.ts.map +1 -0
- package/dist/engine/identity.js +227 -0
- package/dist/engine/identity.js.map +1 -0
- package/dist/engine/index.d.ts +104 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +126 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/init/local-profile.d.ts +93 -0
- package/dist/engine/init/local-profile.d.ts.map +1 -0
- package/dist/engine/init/local-profile.js +295 -0
- package/dist/engine/init/local-profile.js.map +1 -0
- package/dist/engine/init/run-init.d.ts +41 -0
- package/dist/engine/init/run-init.d.ts.map +1 -0
- package/dist/engine/init/run-init.js +297 -0
- package/dist/engine/init/run-init.js.map +1 -0
- package/dist/engine/node/capabilities.d.ts +238 -0
- package/dist/engine/node/capabilities.d.ts.map +1 -0
- package/dist/engine/node/capabilities.js +316 -0
- package/dist/engine/node/capabilities.js.map +1 -0
- package/dist/engine/node/daemon.d.ts +63 -0
- package/dist/engine/node/daemon.d.ts.map +1 -0
- package/dist/engine/node/daemon.js +227 -0
- package/dist/engine/node/daemon.js.map +1 -0
- package/dist/engine/node/doctor.d.ts +58 -0
- package/dist/engine/node/doctor.d.ts.map +1 -0
- package/dist/engine/node/doctor.js +394 -0
- package/dist/engine/node/doctor.js.map +1 -0
- package/dist/engine/node/enrollment.d.ts +98 -0
- package/dist/engine/node/enrollment.d.ts.map +1 -0
- package/dist/engine/node/enrollment.js +189 -0
- package/dist/engine/node/enrollment.js.map +1 -0
- package/dist/engine/node/env-flags.d.ts +5 -0
- package/dist/engine/node/env-flags.d.ts.map +1 -0
- package/dist/engine/node/env-flags.js +22 -0
- package/dist/engine/node/env-flags.js.map +1 -0
- package/dist/engine/node/executors/credential-hygiene.d.ts +63 -0
- package/dist/engine/node/executors/credential-hygiene.d.ts.map +1 -0
- package/dist/engine/node/executors/credential-hygiene.js +189 -0
- package/dist/engine/node/executors/credential-hygiene.js.map +1 -0
- package/dist/engine/node/executors/db-backup-run.d.ts +73 -0
- package/dist/engine/node/executors/db-backup-run.d.ts.map +1 -0
- package/dist/engine/node/executors/db-backup-run.js +362 -0
- package/dist/engine/node/executors/db-backup-run.js.map +1 -0
- package/dist/engine/node/executors/example-checksum.d.ts +30 -0
- package/dist/engine/node/executors/example-checksum.d.ts.map +1 -0
- package/dist/engine/node/executors/example-checksum.js +56 -0
- package/dist/engine/node/executors/example-checksum.js.map +1 -0
- package/dist/engine/node/executors/index.d.ts +168 -0
- package/dist/engine/node/executors/index.d.ts.map +1 -0
- package/dist/engine/node/executors/index.js +44 -0
- package/dist/engine/node/executors/index.js.map +1 -0
- package/dist/engine/node/executors/registry.d.ts +38 -0
- package/dist/engine/node/executors/registry.d.ts.map +1 -0
- package/dist/engine/node/executors/registry.js +92 -0
- package/dist/engine/node/executors/registry.js.map +1 -0
- package/dist/engine/node/heap-snapshot.d.ts +37 -0
- package/dist/engine/node/heap-snapshot.d.ts.map +1 -0
- package/dist/engine/node/heap-snapshot.js +160 -0
- package/dist/engine/node/heap-snapshot.js.map +1 -0
- package/dist/engine/node/install-deps.d.ts +73 -0
- package/dist/engine/node/install-deps.d.ts.map +1 -0
- package/dist/engine/node/install-deps.js +150 -0
- package/dist/engine/node/install-deps.js.map +1 -0
- package/dist/engine/node/ipc-protocol.d.ts +67 -0
- package/dist/engine/node/ipc-protocol.d.ts.map +1 -0
- package/dist/engine/node/ipc-protocol.js +83 -0
- package/dist/engine/node/ipc-protocol.js.map +1 -0
- package/dist/engine/node/lifecycle.d.ts +103 -0
- package/dist/engine/node/lifecycle.d.ts.map +1 -0
- package/dist/engine/node/lifecycle.js +259 -0
- package/dist/engine/node/lifecycle.js.map +1 -0
- package/dist/engine/node/logger.d.ts +82 -0
- package/dist/engine/node/logger.d.ts.map +1 -0
- package/dist/engine/node/logger.js +241 -0
- package/dist/engine/node/logger.js.map +1 -0
- package/dist/engine/node/memory-watchdog.d.ts +78 -0
- package/dist/engine/node/memory-watchdog.d.ts.map +1 -0
- package/dist/engine/node/memory-watchdog.js +224 -0
- package/dist/engine/node/memory-watchdog.js.map +1 -0
- package/dist/engine/node/node-api.d.ts +391 -0
- package/dist/engine/node/node-api.d.ts.map +1 -0
- package/dist/engine/node/node-api.js +123 -0
- package/dist/engine/node/node-api.js.map +1 -0
- package/dist/engine/node/node-config.d.ts +128 -0
- package/dist/engine/node/node-config.d.ts.map +1 -0
- package/dist/engine/node/node-config.js +237 -0
- package/dist/engine/node/node-config.js.map +1 -0
- package/dist/engine/node/node-dashboard-source.d.ts +56 -0
- package/dist/engine/node/node-dashboard-source.d.ts.map +1 -0
- package/dist/engine/node/node-dashboard-source.js +213 -0
- package/dist/engine/node/node-dashboard-source.js.map +1 -0
- package/dist/engine/node/node-engine.d.ts +229 -0
- package/dist/engine/node/node-engine.d.ts.map +1 -0
- package/dist/engine/node/node-engine.js +723 -0
- package/dist/engine/node/node-engine.js.map +1 -0
- package/dist/engine/node/node-errors.d.ts +54 -0
- package/dist/engine/node/node-errors.d.ts.map +1 -0
- package/dist/engine/node/node-errors.js +71 -0
- package/dist/engine/node/node-errors.js.map +1 -0
- package/dist/engine/node/node-events.d.ts +132 -0
- package/dist/engine/node/node-events.d.ts.map +1 -0
- package/dist/engine/node/node-events.js +2 -0
- package/dist/engine/node/node-events.js.map +1 -0
- package/dist/engine/node/node-vitals.d.ts +123 -0
- package/dist/engine/node/node-vitals.d.ts.map +1 -0
- package/dist/engine/node/node-vitals.js +266 -0
- package/dist/engine/node/node-vitals.js.map +1 -0
- package/dist/engine/node/paths.d.ts +39 -0
- package/dist/engine/node/paths.d.ts.map +1 -0
- package/dist/engine/node/paths.js +60 -0
- package/dist/engine/node/paths.js.map +1 -0
- package/dist/engine/node/pg-dump.d.ts +126 -0
- package/dist/engine/node/pg-dump.d.ts.map +1 -0
- package/dist/engine/node/pg-dump.js +223 -0
- package/dist/engine/node/pg-dump.js.map +1 -0
- package/dist/engine/node/pidfile.d.ts +38 -0
- package/dist/engine/node/pidfile.d.ts.map +1 -0
- package/dist/engine/node/pidfile.js +156 -0
- package/dist/engine/node/pidfile.js.map +1 -0
- package/dist/engine/node/runtime-tuning.d.ts +65 -0
- package/dist/engine/node/runtime-tuning.d.ts.map +1 -0
- package/dist/engine/node/runtime-tuning.js +198 -0
- package/dist/engine/node/runtime-tuning.js.map +1 -0
- package/dist/engine/node/service.d.ts +39 -0
- package/dist/engine/node/service.d.ts.map +1 -0
- package/dist/engine/node/service.js +211 -0
- package/dist/engine/node/service.js.map +1 -0
- package/dist/engine/node/start.d.ts +62 -0
- package/dist/engine/node/start.d.ts.map +1 -0
- package/dist/engine/node/start.js +245 -0
- package/dist/engine/node/start.js.map +1 -0
- package/dist/engine/node/worker-env-table.d.ts +15 -0
- package/dist/engine/node/worker-env-table.d.ts.map +1 -0
- package/dist/engine/node/worker-env-table.js +97 -0
- package/dist/engine/node/worker-env-table.js.map +1 -0
- package/dist/engine/node/worker-env.d.ts +50 -0
- package/dist/engine/node/worker-env.d.ts.map +1 -0
- package/dist/engine/node/worker-env.js +101 -0
- package/dist/engine/node/worker-env.js.map +1 -0
- package/dist/engine/output.d.ts +97 -0
- package/dist/engine/output.d.ts.map +1 -0
- package/dist/engine/output.js +274 -0
- package/dist/engine/output.js.map +1 -0
- package/dist/engine/package-info.d.ts +7 -0
- package/dist/engine/package-info.d.ts.map +1 -0
- package/dist/engine/package-info.js +38 -0
- package/dist/engine/package-info.js.map +1 -0
- package/dist/engine/program.d.ts +50 -0
- package/dist/engine/program.d.ts.map +1 -0
- package/dist/engine/program.js +197 -0
- package/dist/engine/program.js.map +1 -0
- package/dist/engine/prompt.d.ts +69 -0
- package/dist/engine/prompt.d.ts.map +1 -0
- package/dist/engine/prompt.js +205 -0
- package/dist/engine/prompt.js.map +1 -0
- package/dist/engine/registries.d.ts +5 -0
- package/dist/engine/registries.d.ts.map +1 -0
- package/dist/engine/registries.js +52 -0
- package/dist/engine/registries.js.map +1 -0
- package/dist/engine/request-body.d.ts +31 -0
- package/dist/engine/request-body.d.ts.map +1 -0
- package/dist/engine/request-body.js +156 -0
- package/dist/engine/request-body.js.map +1 -0
- package/dist/engine/test-support.d.ts +50 -0
- package/dist/engine/test-support.d.ts.map +1 -0
- package/dist/engine/test-support.js +86 -0
- package/dist/engine/test-support.js.map +1 -0
- package/dist/engine/tui/app.d.ts +3 -0
- package/dist/engine/tui/app.d.ts.map +1 -0
- package/dist/engine/tui/app.js +100 -0
- package/dist/engine/tui/app.js.map +1 -0
- package/dist/engine/tui/builtin-screens.d.ts +6 -0
- package/dist/engine/tui/builtin-screens.d.ts.map +1 -0
- package/dist/engine/tui/builtin-screens.js +54 -0
- package/dist/engine/tui/builtin-screens.js.map +1 -0
- package/dist/engine/tui/index.d.ts +23 -0
- package/dist/engine/tui/index.d.ts.map +1 -0
- package/dist/engine/tui/index.js +71 -0
- package/dist/engine/tui/index.js.map +1 -0
- package/dist/engine/tui/layout.d.ts +132 -0
- package/dist/engine/tui/layout.d.ts.map +1 -0
- package/dist/engine/tui/layout.js +200 -0
- package/dist/engine/tui/layout.js.map +1 -0
- package/dist/engine/tui/routes.d.ts +5 -0
- package/dist/engine/tui/routes.d.ts.map +1 -0
- package/dist/engine/tui/routes.js +16 -0
- package/dist/engine/tui/routes.js.map +1 -0
- package/dist/engine/tui/screen-registry.d.ts +100 -0
- package/dist/engine/tui/screen-registry.d.ts.map +1 -0
- package/dist/engine/tui/screen-registry.js +96 -0
- package/dist/engine/tui/screen-registry.js.map +1 -0
- package/dist/engine/tui/screen-sections.d.ts +9 -0
- package/dist/engine/tui/screen-sections.d.ts.map +1 -0
- package/dist/engine/tui/screen-sections.js +45 -0
- package/dist/engine/tui/screen-sections.js.map +1 -0
- package/dist/engine/tui/screens/deploy/advanced-model.d.ts +69 -0
- package/dist/engine/tui/screens/deploy/advanced-model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/advanced-model.js +228 -0
- package/dist/engine/tui/screens/deploy/advanced-model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/doctor-model.d.ts +37 -0
- package/dist/engine/tui/screens/deploy/doctor-model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/doctor-model.js +89 -0
- package/dist/engine/tui/screens/deploy/doctor-model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/doctor.d.ts +8 -0
- package/dist/engine/tui/screens/deploy/doctor.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/doctor.js +155 -0
- package/dist/engine/tui/screens/deploy/doctor.js.map +1 -0
- package/dist/engine/tui/screens/deploy/fields.d.ts +123 -0
- package/dist/engine/tui/screens/deploy/fields.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/fields.js +202 -0
- package/dist/engine/tui/screens/deploy/fields.js.map +1 -0
- package/dist/engine/tui/screens/deploy/flags-model.d.ts +67 -0
- package/dist/engine/tui/screens/deploy/flags-model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/flags-model.js +302 -0
- package/dist/engine/tui/screens/deploy/flags-model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/index.d.ts +6 -0
- package/dist/engine/tui/screens/deploy/index.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/index.js +83 -0
- package/dist/engine/tui/screens/deploy/index.js.map +1 -0
- package/dist/engine/tui/screens/deploy/install-model.d.ts +159 -0
- package/dist/engine/tui/screens/deploy/install-model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/install-model.js +319 -0
- package/dist/engine/tui/screens/deploy/install-model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/install.d.ts +8 -0
- package/dist/engine/tui/screens/deploy/install.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/install.js +361 -0
- package/dist/engine/tui/screens/deploy/install.js.map +1 -0
- package/dist/engine/tui/screens/deploy/model.d.ts +49 -0
- package/dist/engine/tui/screens/deploy/model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/model.js +59 -0
- package/dist/engine/tui/screens/deploy/model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/run-model.d.ts +58 -0
- package/dist/engine/tui/screens/deploy/run-model.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/run-model.js +117 -0
- package/dist/engine/tui/screens/deploy/run-model.js.map +1 -0
- package/dist/engine/tui/screens/deploy/run.d.ts +75 -0
- package/dist/engine/tui/screens/deploy/run.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/run.js +201 -0
- package/dist/engine/tui/screens/deploy/run.js.map +1 -0
- package/dist/engine/tui/screens/deploy/status.d.ts +17 -0
- package/dist/engine/tui/screens/deploy/status.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/status.js +107 -0
- package/dist/engine/tui/screens/deploy/status.js.map +1 -0
- package/dist/engine/tui/screens/deploy/update.d.ts +41 -0
- package/dist/engine/tui/screens/deploy/update.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy/update.js +175 -0
- package/dist/engine/tui/screens/deploy/update.js.map +1 -0
- package/dist/engine/tui/screens/deploy.d.ts +12 -0
- package/dist/engine/tui/screens/deploy.d.ts.map +1 -0
- package/dist/engine/tui/screens/deploy.js +23 -0
- package/dist/engine/tui/screens/deploy.js.map +1 -0
- package/dist/engine/tui/screens/invoke.d.ts +6 -0
- package/dist/engine/tui/screens/invoke.d.ts.map +1 -0
- package/dist/engine/tui/screens/invoke.js +193 -0
- package/dist/engine/tui/screens/invoke.js.map +1 -0
- package/dist/engine/tui/screens/login.d.ts +6 -0
- package/dist/engine/tui/screens/login.d.ts.map +1 -0
- package/dist/engine/tui/screens/login.js +255 -0
- package/dist/engine/tui/screens/login.js.map +1 -0
- package/dist/engine/tui/screens/logout.d.ts +6 -0
- package/dist/engine/tui/screens/logout.d.ts.map +1 -0
- package/dist/engine/tui/screens/logout.js +142 -0
- package/dist/engine/tui/screens/logout.js.map +1 -0
- package/dist/engine/tui/screens/menu.d.ts +22 -0
- package/dist/engine/tui/screens/menu.d.ts.map +1 -0
- package/dist/engine/tui/screens/menu.js +84 -0
- package/dist/engine/tui/screens/menu.js.map +1 -0
- package/dist/engine/tui/screens/node.d.ts +6 -0
- package/dist/engine/tui/screens/node.d.ts.map +1 -0
- package/dist/engine/tui/screens/node.js +228 -0
- package/dist/engine/tui/screens/node.js.map +1 -0
- package/dist/engine/tui/screens/status.d.ts +6 -0
- package/dist/engine/tui/screens/status.d.ts.map +1 -0
- package/dist/engine/tui/screens/status.js +134 -0
- package/dist/engine/tui/screens/status.js.map +1 -0
- package/dist/engine/tui/scroll-box.d.ts +27 -0
- package/dist/engine/tui/scroll-box.d.ts.map +1 -0
- package/dist/engine/tui/scroll-box.js +52 -0
- package/dist/engine/tui/scroll-box.js.map +1 -0
- package/dist/engine/tui/section-registry.d.ts +65 -0
- package/dist/engine/tui/section-registry.d.ts.map +1 -0
- package/dist/engine/tui/section-registry.js +90 -0
- package/dist/engine/tui/section-registry.js.map +1 -0
- package/dist/engine/tui/terminal.d.ts +31 -0
- package/dist/engine/tui/terminal.d.ts.map +1 -0
- package/dist/engine/tui/terminal.js +142 -0
- package/dist/engine/tui/terminal.js.map +1 -0
- package/dist/engine/tui/tty.d.ts +49 -0
- package/dist/engine/tui/tty.d.ts.map +1 -0
- package/dist/engine/tui/tty.js +139 -0
- package/dist/engine/tui/tty.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +5 -0
- package/dist/node/index.js.map +1 -0
- package/dist/telemetry/env-fragment.d.ts +47 -0
- package/dist/telemetry/env-fragment.d.ts.map +1 -0
- package/dist/telemetry/env-fragment.js +73 -0
- package/dist/telemetry/env-fragment.js.map +1 -0
- package/dist/telemetry/index.d.ts +7 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +7 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/node-span-relay.d.ts +107 -0
- package/dist/telemetry/node-span-relay.d.ts.map +1 -0
- package/dist/telemetry/node-span-relay.js +314 -0
- package/dist/telemetry/node-span-relay.js.map +1 -0
- package/dist/telemetry/node-span.d.ts +92 -0
- package/dist/telemetry/node-span.d.ts.map +1 -0
- package/dist/telemetry/node-span.js +28 -0
- package/dist/telemetry/node-span.js.map +1 -0
- package/dist/testing/index.d.ts +3 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/tui/index.d.ts +3 -0
- package/dist/tui/index.d.ts.map +1 -0
- package/dist/tui/index.js +5 -0
- package/dist/tui/index.js.map +1 -0
- package/package.json +102 -4
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { redactedValues } from './deploy/steps/step-values.js';
|
|
2
|
+
import { replaceCliIdentityForTests } from './identity.js';
|
|
3
|
+
import { resetCliRegistriesForTests } from './registries.js';
|
|
4
|
+
// =============================================================================
|
|
5
|
+
// Test helpers published through `@marinoscar/platform-cli/testing` (#715)
|
|
6
|
+
// =============================================================================
|
|
7
|
+
//
|
|
8
|
+
// The CLI's identity is set once per process and its registries freeze when
|
|
9
|
+
// `createCli` returns, which is right for a real process and wrong for a test
|
|
10
|
+
// file that builds several CLIs. These helpers are the one sanctioned way
|
|
11
|
+
// around both, and they live behind `/testing` so production code cannot
|
|
12
|
+
// reach them through the root entry point.
|
|
13
|
+
// =============================================================================
|
|
14
|
+
/**
|
|
15
|
+
* An identity for tests: the reference app's executable name `appctl`, with a neutral product name.
|
|
16
|
+
*
|
|
17
|
+
* @stability experimental
|
|
18
|
+
*/
|
|
19
|
+
export const TEST_CLI_IDENTITY = Object.freeze({
|
|
20
|
+
name: 'appctl',
|
|
21
|
+
displayName: 'Example App CLI',
|
|
22
|
+
productName: 'Example App',
|
|
23
|
+
repoSlug: 'example/example-app',
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Replaces the process's CLI identity for a test, bypassing set-once.
|
|
27
|
+
*
|
|
28
|
+
* @param identity - The identity to use, or `undefined` for "none set".
|
|
29
|
+
* @param version - The app version `cliVersion()` reports. Defaults to the
|
|
30
|
+
* current one, else `0.0.0-test`.
|
|
31
|
+
* @returns A function that restores the previous identity.
|
|
32
|
+
* @stability experimental
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const restore = useTestCliIdentity({ name: 'acmectl', displayName: 'Acme CLI', repoSlug: 'acme/acme' });
|
|
36
|
+
* afterEach(restore);
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export function useTestCliIdentity(identity, version) {
|
|
40
|
+
return replaceCliIdentityForTests(identity, version);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Forgets everything `createCli` set up: the identity and every registry
|
|
44
|
+
* (commands, env-spec fragments, TUI screens, deploy steps, node executors),
|
|
45
|
+
* so the next `createCli` starts from a fresh process's state.
|
|
46
|
+
*
|
|
47
|
+
* @stability experimental
|
|
48
|
+
*/
|
|
49
|
+
export function resetCliForTests() {
|
|
50
|
+
resetCliRegistriesForTests();
|
|
51
|
+
replaceCliIdentityForTests(undefined);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A {@link DeployStepContext} for testing an app deploy step without a
|
|
55
|
+
* pipeline: a deployment under `/opt/infra/apps/app`, no commit, commands that
|
|
56
|
+
* succeed with no output, `log`/`progress` that record nothing, and `env` /
|
|
57
|
+
* `answers` built from the given variables with the secret rules of the real
|
|
58
|
+
* context (a secret key is present but never readable).
|
|
59
|
+
*
|
|
60
|
+
* @param overrides - Fields to replace.
|
|
61
|
+
* @param values - Variables for `env` (and `answers`, unless it is overridden).
|
|
62
|
+
* @returns A complete context.
|
|
63
|
+
* @stability experimental
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const context = testDeployStepContext({ commitSha: 'abc123' }, { COACH_URL: 'https://coach.example' });
|
|
67
|
+
* await step.run(context);
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export function testDeployStepContext(overrides = {}, values = {}) {
|
|
71
|
+
const map = new Map(Object.entries(values));
|
|
72
|
+
return {
|
|
73
|
+
pipeline: 'install',
|
|
74
|
+
deployRoot: '/opt/infra/apps/app',
|
|
75
|
+
checkoutPath: '/opt/infra/apps/app/repo',
|
|
76
|
+
commitSha: undefined,
|
|
77
|
+
hooks: undefined,
|
|
78
|
+
env: redactedValues(() => map),
|
|
79
|
+
answers: redactedValues(() => map),
|
|
80
|
+
log: () => undefined,
|
|
81
|
+
progress: () => undefined,
|
|
82
|
+
exec: async () => ({ exitCode: 0, stdout: '', stderr: '' }),
|
|
83
|
+
...overrides,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=test-support.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-support.js","sourceRoot":"","sources":["../../src/engine/test-support.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAoB,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAE7D,gFAAgF;AAChF,4EAA4E;AAC5E,gFAAgF;AAChF,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,0EAA0E;AAC1E,yEAAyE;AACzE,2CAA2C;AAC3C,gFAAgF;AAEhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA0B,MAAM,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,qBAAqB;CAChC,CAAC,CAAC;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAiC,EAAE,OAAgB;IACpF,OAAO,0BAA0B,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB;IAC9B,0BAA0B,EAAE,CAAC;IAC7B,0BAA0B,CAAC,SAAS,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,qBAAqB,CACnC,YAAwC,EAAE,EAC1C,SAA2C,EAAE;IAE7C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,OAAO;QACL,QAAQ,EAAE,SAAS;QACnB,UAAU,EAAE,qBAAqB;QACjC,YAAY,EAAE,0BAA0B;QACxC,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QAC9B,OAAO,EAAE,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;QAClC,GAAG,EAAE,GAAG,EAAE,CAAC,SAAS;QACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;QACzB,IAAI,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;QAC3D,GAAG,SAAS;KACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA0ClG,wBAAgB,GAAG,IAAI,SAAS,CA0D/B"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text, useApp, useInput } from 'ink';
|
|
3
|
+
import { lazy, Suspense, useCallback, useState } from 'react';
|
|
4
|
+
import { allTuiScreens } from './builtin-screens.js';
|
|
5
|
+
import { useTerminalSize } from './layout.js';
|
|
6
|
+
import { MENU_ROUTE } from './routes.js';
|
|
7
|
+
import { MenuScreen } from './screens/menu.js';
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// The app root (issue #145, epic #110)
|
|
10
|
+
// =============================================================================
|
|
11
|
+
//
|
|
12
|
+
// Routing and nothing else. Each screen is mounted only while it is the current
|
|
13
|
+
// route, which is not merely a rendering detail — it is what keeps the keyboard
|
|
14
|
+
// unambiguous. Every screen registers its own `useInput`, and ink delivers each
|
|
15
|
+
// keystroke to EVERY mounted handler; screens kept alive off-screen would go on
|
|
16
|
+
// consuming keys, so `n` on the invoke screen would also fire the menu's
|
|
17
|
+
// shortcut. Conditional mounting means exactly one handler exists per key.
|
|
18
|
+
//
|
|
19
|
+
// It also means leaving a screen unmounts it, which is what fires the effect
|
|
20
|
+
// cleanups that abort in-flight requests and poll loops. That is the difference
|
|
21
|
+
// between pressing Esc during a login and the process quietly continuing to
|
|
22
|
+
// poll for the remaining fourteen minutes.
|
|
23
|
+
//
|
|
24
|
+
// THERE IS NO ROUTE HISTORY. Every screen returns to the menu and nowhere else,
|
|
25
|
+
// so "back" has one meaning everywhere and Esc never lands somewhere a user has
|
|
26
|
+
// to work out.
|
|
27
|
+
// =============================================================================
|
|
28
|
+
/**
|
|
29
|
+
* Below this many columns, ink cannot lay anything out usefully.
|
|
30
|
+
*
|
|
31
|
+
* Ten is not a design decision, it is yoga's floor: a flex container narrower
|
|
32
|
+
* than its own content collapses, and every `<Box>` in the tree starts
|
|
33
|
+
* competing for columns that do not exist. Rather than render a smear, the app
|
|
34
|
+
* says so in one line and waits — a RESIZE re-renders this component, so
|
|
35
|
+
* widening the terminal brings the UI back with no keypress and no restart.
|
|
36
|
+
* #145 asks for degrade, not crash; this is the last rung of the ladder that
|
|
37
|
+
* starts in `Frame`.
|
|
38
|
+
*/
|
|
39
|
+
const UNRENDERABLE_COLUMNS = 10;
|
|
40
|
+
export function App() {
|
|
41
|
+
const [route, setRoute] = useState(MENU_ROUTE);
|
|
42
|
+
const { columns } = useTerminalSize();
|
|
43
|
+
const { exit } = useApp();
|
|
44
|
+
const toMenu = useCallback(() => {
|
|
45
|
+
setRoute(MENU_ROUTE);
|
|
46
|
+
}, []);
|
|
47
|
+
// `useApp().exit()` is the ONLY way out, and it is the same path Ctrl-C
|
|
48
|
+
// takes. It performs a real React unmount — every screen's effect cleanup
|
|
49
|
+
// runs, aborting an in-flight poll loop or request — and then resolves the
|
|
50
|
+
// promise `startTui` is awaiting, which is what lets the process end with a
|
|
51
|
+
// restored terminal instead of a cleared frame over a live event loop.
|
|
52
|
+
// Anything else (an `onExit` callback the host wires to `unmount()`, a
|
|
53
|
+
// `process.exit`) either skips the cleanups or truncates ink's final write.
|
|
54
|
+
const quit = useCallback(() => {
|
|
55
|
+
exit();
|
|
56
|
+
}, [exit]);
|
|
57
|
+
// Ctrl-C is handled by ink itself (`exitOnCtrlC`, on by default): in raw mode
|
|
58
|
+
// the terminal does NOT generate SIGINT, so the ^C arrives as a byte and ink
|
|
59
|
+
// unmounts on it, running every screen's cleanup on the way out. It is not
|
|
60
|
+
// intercepted here — a handler that swallowed it would make the app
|
|
61
|
+
// unkillable from the keyboard, which is the worst thing a full-screen
|
|
62
|
+
// program can be.
|
|
63
|
+
useInput(() => {
|
|
64
|
+
/* Present so the app holds stdin in raw mode even on a screen with no
|
|
65
|
+
bindings of its own; without a mounted handler ink would release it and
|
|
66
|
+
the first keypress after a screen transition could be echoed to the
|
|
67
|
+
shell instead. */
|
|
68
|
+
});
|
|
69
|
+
if (columns < UNRENDERABLE_COLUMNS) {
|
|
70
|
+
return _jsx(Text, { children: "Terminal too narrow \u2014 widen it." });
|
|
71
|
+
}
|
|
72
|
+
if (route === MENU_ROUTE)
|
|
73
|
+
return _jsx(MenuScreen, { onSelect: setRoute, onQuit: quit });
|
|
74
|
+
// The built-in screens and every app screen (`registerTuiScreen`, #715).
|
|
75
|
+
const registration = allTuiScreens().find((screen) => screen.route === route);
|
|
76
|
+
const Screen = registration === undefined ? undefined : screenComponent(registration);
|
|
77
|
+
if (Screen !== undefined) {
|
|
78
|
+
return (_jsx(Suspense, { fallback: _jsx(Text, { dimColor: true, children: "Loading\u2026" }), children: _jsx(Screen, { onDone: toMenu }) }));
|
|
79
|
+
}
|
|
80
|
+
// Unreachable while the menu lists only registered routes, and present so
|
|
81
|
+
// that a route without a screen is a blank frame with an explanation rather
|
|
82
|
+
// than an app that renders nothing and looks hung.
|
|
83
|
+
return (_jsx(Box, { children: _jsx(Text, { color: "red", children: "Unknown screen. Press ctrl-c to exit." }) }));
|
|
84
|
+
}
|
|
85
|
+
/** One lazy component per `load` screen, so reopening it does not reload it. */
|
|
86
|
+
const lazyScreens = new Map();
|
|
87
|
+
function screenComponent(screen) {
|
|
88
|
+
if (screen.component !== undefined)
|
|
89
|
+
return screen.component;
|
|
90
|
+
const load = screen.load;
|
|
91
|
+
if (load === undefined)
|
|
92
|
+
return undefined;
|
|
93
|
+
let component = lazyScreens.get(screen.route);
|
|
94
|
+
if (component === undefined) {
|
|
95
|
+
component = lazy(async () => ({ default: await load() }));
|
|
96
|
+
lazyScreens.set(screen.route, component);
|
|
97
|
+
}
|
|
98
|
+
return component;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../../../src/engine/tui/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAsC,MAAM,OAAO,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,gFAAgF;AAChF,wCAAwC;AACxC,gFAAgF;AAChF,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,gFAAgF;AAChF,yEAAyE;AACzE,2EAA2E;AAC3E,EAAE;AACF,6EAA6E;AAC7E,gFAAgF;AAChF,4EAA4E;AAC5E,2CAA2C;AAC3C,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF;;;;;;;;;;GAUG;AACH,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,MAAM,UAAU,GAAG;IACjB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAQ,UAAU,CAAC,CAAC;IACtD,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,EAAE,CAAC;IACtC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC;IAE1B,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE;QAC9B,QAAQ,CAAC,UAAU,CAAC,CAAC;IACvB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,wEAAwE;IACxE,0EAA0E;IAC1E,2EAA2E;IAC3E,4EAA4E;IAC5E,uEAAuE;IACvE,uEAAuE;IACvE,4EAA4E;IAC5E,MAAM,IAAI,GAAG,WAAW,CAAC,GAAG,EAAE;QAC5B,IAAI,EAAE,CAAC;IACT,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;IAEX,8EAA8E;IAC9E,6EAA6E;IAC7E,2EAA2E;IAC3E,oEAAoE;IACpE,uEAAuE;IACvE,kBAAkB;IAClB,QAAQ,CAAC,GAAG,EAAE;QACZ;;;4BAGoB;IACtB,CAAC,CAAC,CAAC;IAEH,IAAI,OAAO,GAAG,oBAAoB,EAAE,CAAC;QACnC,OAAO,KAAC,IAAI,uDAAuC,CAAC;IACtD,CAAC;IAED,IAAI,KAAK,KAAK,UAAU;QAAE,OAAO,KAAC,UAAU,IAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAI,CAAC;IAElF,yEAAyE;IACzE,MAAM,YAAY,GAAG,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;IAC9E,MAAM,MAAM,GAAG,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IACtF,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,CACL,KAAC,QAAQ,IAAC,QAAQ,EAAE,KAAC,IAAI,IAAC,QAAQ,oCAAgB,YAChD,KAAC,MAAM,IAAC,MAAM,EAAE,MAAM,GAAI,GACjB,CACZ,CAAC;IACJ,CAAC;IAED,0EAA0E;IAC1E,4EAA4E;IAC5E,mDAAmD;IACnD,OAAO,CACL,KAAC,GAAG,cACF,KAAC,IAAI,IAAC,KAAK,EAAC,KAAK,sDAA6C,GAC1D,CACP,CAAC;AACJ,CAAC;AAED,gFAAgF;AAChF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyC,CAAC;AAErE,SAAS,eAAe,CAAC,MAA6B;IACpD,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC,SAAS,CAAC;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IACzB,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACzC,IAAI,SAAS,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,SAAS,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1D,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IAC3C,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TuiScreenRegistration } from './screen-registry.js';
|
|
2
|
+
/** The platform's screens, with their components, in menu order. */
|
|
3
|
+
export declare function builtinTuiScreens(): TuiScreenRegistration[];
|
|
4
|
+
/** Every screen the menu lists: the built-ins, then the app's, sorted by order then route id. */
|
|
5
|
+
export declare function allTuiScreens(): TuiScreenRegistration[];
|
|
6
|
+
//# sourceMappingURL=builtin-screens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-screens.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/builtin-screens.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA0CjI,oEAAoE;AACpE,wBAAgB,iBAAiB,IAAI,qBAAqB,EAAE,CAS3D;AAED,iGAAiG;AACjG,wBAAgB,aAAa,IAAI,qBAAqB,EAAE,CAEvD"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BUILTIN_TUI_SCREENS, listRegisteredTuiScreens, sortTuiScreens } from './screen-registry.js';
|
|
2
|
+
import { DeployScreen } from './screens/deploy.js';
|
|
3
|
+
import { InvokeScreen } from './screens/invoke.js';
|
|
4
|
+
import { LoginScreen } from './screens/login.js';
|
|
5
|
+
import { LogoutScreen } from './screens/logout.js';
|
|
6
|
+
import { NodeScreen } from './screens/node.js';
|
|
7
|
+
import { StatusScreen } from './screens/status.js';
|
|
8
|
+
// =============================================================================
|
|
9
|
+
// The platform's own TUI screens (issue #145; registered since PP-8.9 #715)
|
|
10
|
+
// =============================================================================
|
|
11
|
+
//
|
|
12
|
+
// Only the ink app imports this module, so the components (and ink with them)
|
|
13
|
+
// load only once the TTY gate has said yes. The ids and orders come from
|
|
14
|
+
// `BUILTIN_TUI_SCREENS`, the list `registerTuiScreen` checks duplicates
|
|
15
|
+
// against.
|
|
16
|
+
// =============================================================================
|
|
17
|
+
const COMPONENTS = {
|
|
18
|
+
login: LoginScreen,
|
|
19
|
+
invoke: InvokeScreen,
|
|
20
|
+
status: StatusScreen,
|
|
21
|
+
node: NodeScreen,
|
|
22
|
+
deploy: DeployScreen,
|
|
23
|
+
logout: LogoutScreen,
|
|
24
|
+
};
|
|
25
|
+
const LABELS = {
|
|
26
|
+
login: ({ loggedIn }) => (loggedIn ? 'Login (replace the stored token)' : 'Login'),
|
|
27
|
+
// Not removed when logged out: a greyed "(not logged in)" answers why on
|
|
28
|
+
// the spot, and the screen itself produces the real, specific error.
|
|
29
|
+
invoke: ({ loggedIn }) => (loggedIn ? 'Call an endpoint' : 'Call an endpoint (not logged in)'),
|
|
30
|
+
status: 'Status',
|
|
31
|
+
// Not gated on being logged in either: Enroll is exactly what an
|
|
32
|
+
// unconfigured machine needs, and hiding the entry would hide the fix.
|
|
33
|
+
node: 'Worker node (this machine)',
|
|
34
|
+
// Not gated on being logged in: deploying acts on THIS SERVER, not on the
|
|
35
|
+
// API, so a stored token is irrelevant to it.
|
|
36
|
+
deploy: 'Deploy (this server)',
|
|
37
|
+
logout: ({ loggedIn }) => (loggedIn ? 'Logout' : 'Logout (nothing stored)'),
|
|
38
|
+
};
|
|
39
|
+
/** The platform's screens, with their components, in menu order. */
|
|
40
|
+
export function builtinTuiScreens() {
|
|
41
|
+
return BUILTIN_TUI_SCREENS.map(({ route, order }) => {
|
|
42
|
+
const component = COMPONENTS[route];
|
|
43
|
+
const label = LABELS[route];
|
|
44
|
+
if (component === undefined || label === undefined) {
|
|
45
|
+
throw new Error(`The built-in TUI screen "${route}" has no component or label.`);
|
|
46
|
+
}
|
|
47
|
+
return { route, order, label, component };
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/** Every screen the menu lists: the built-ins, then the app's, sorted by order then route id. */
|
|
51
|
+
export function allTuiScreens() {
|
|
52
|
+
return sortTuiScreens([...builtinTuiScreens(), ...listRegisteredTuiScreens()]);
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=builtin-screens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtin-screens.js","sourceRoot":"","sources":["../../../src/engine/tui/builtin-screens.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,cAAc,EAA8B,MAAM,sBAAsB,CAAC;AACjI,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,gFAAgF;AAChF,6EAA6E;AAC7E,gFAAgF;AAChF,EAAE;AACF,8EAA8E;AAC9E,yEAAyE;AACzE,wEAAwE;AACxE,WAAW;AACX,gFAAgF;AAEhF,MAAM,UAAU,GAAuD;IACrE,KAAK,EAAE,WAAW;IAClB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;IACpB,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,YAAY;CACrB,CAAC;AAEF,MAAM,MAAM,GAAmD;IAC7D,KAAK,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC,OAAO,CAAC;IACnF,yEAAyE;IACzE,qEAAqE;IACrE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,mCAAmC,CAAC;IAC/F,MAAM,EAAE,QAAQ;IAChB,iEAAiE;IACjE,uEAAuE;IACvE,IAAI,EAAE,6BAA6B;IACnC,0EAA0E;IAC1E,8CAA8C;IAC9C,MAAM,EAAE,uBAAuB;IAC/B,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,0BAA0B,CAAC;CAC7E,CAAC;AAEF,oEAAoE;AACpE,MAAM,UAAU,iBAAiB;IAC/B,OAAO,mBAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACpC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,SAAS,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACnD,MAAM,IAAI,KAAK,CAAC,4BAA4B,KAAK,8BAA8B,CAAC,CAAC;QACnF,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,aAAa;IAC3B,OAAO,cAAc,CAAC,CAAC,GAAG,iBAAiB,EAAE,EAAE,GAAG,wBAAwB,EAAE,CAAC,CAAC,CAAC;AACjF,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface StartTuiOptions {
|
|
2
|
+
stdout?: NodeJS.WriteStream | undefined;
|
|
3
|
+
stdin?: NodeJS.ReadStream | undefined;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Mount the app and resolve with the process exit code once it unmounts.
|
|
7
|
+
*
|
|
8
|
+
* RESOLVES WITH A CODE RATHER THAN CALLING `process.exit`, matching every other
|
|
9
|
+
* entry point in this package (see the header of cli.ts): `process.exit`
|
|
10
|
+
* terminates without draining pending writes, and the final frame ink writes on
|
|
11
|
+
* teardown would be truncated. Returning the code lets the event loop empty on
|
|
12
|
+
* its own, which is also what flushes the cursor-restore sequence.
|
|
13
|
+
*
|
|
14
|
+
* A NORMAL EXIT IS 0 EVEN AFTER A FAILED LOGIN OR A 403. That is deliberate and
|
|
15
|
+
* it is the opposite of the rule for subcommands: an exit code exists so a
|
|
16
|
+
* SCRIPT can branch, and nothing scripts this — it only runs with no arguments
|
|
17
|
+
* on a terminal, with a human who has already read the error on screen. The
|
|
18
|
+
* non-zero codes here are for failures of the UI itself.
|
|
19
|
+
*/
|
|
20
|
+
export declare function startTui(options?: StartTuiOptions): Promise<number>;
|
|
21
|
+
export { evaluateTuiGate, noTuiEnvVar } from './tty.js';
|
|
22
|
+
export type { TtyContext, TuiGateDecision, TuiRefusal } from './tty.js';
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/index.tsx"],"names":[],"mappings":"AAsBA,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,SAAS,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;CACvC;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDzE;AAED,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { render } from 'ink';
|
|
3
|
+
import { EXIT, exitCodeFor, formatError } from '../errors.js';
|
|
4
|
+
import { App } from './app.js';
|
|
5
|
+
import { installTerminalRestore, restoreTerminal } from './terminal.js';
|
|
6
|
+
/**
|
|
7
|
+
* Mount the app and resolve with the process exit code once it unmounts.
|
|
8
|
+
*
|
|
9
|
+
* RESOLVES WITH A CODE RATHER THAN CALLING `process.exit`, matching every other
|
|
10
|
+
* entry point in this package (see the header of cli.ts): `process.exit`
|
|
11
|
+
* terminates without draining pending writes, and the final frame ink writes on
|
|
12
|
+
* teardown would be truncated. Returning the code lets the event loop empty on
|
|
13
|
+
* its own, which is also what flushes the cursor-restore sequence.
|
|
14
|
+
*
|
|
15
|
+
* A NORMAL EXIT IS 0 EVEN AFTER A FAILED LOGIN OR A 403. That is deliberate and
|
|
16
|
+
* it is the opposite of the rule for subcommands: an exit code exists so a
|
|
17
|
+
* SCRIPT can branch, and nothing scripts this — it only runs with no arguments
|
|
18
|
+
* on a terminal, with a human who has already read the error on screen. The
|
|
19
|
+
* non-zero codes here are for failures of the UI itself.
|
|
20
|
+
*/
|
|
21
|
+
export async function startTui(options) {
|
|
22
|
+
const stdout = options?.stdout ?? process.stdout;
|
|
23
|
+
const stdin = options?.stdin ?? process.stdin;
|
|
24
|
+
// Installed BEFORE the first frame, removed in the `finally`. Between those
|
|
25
|
+
// two points the process may die in ways ink cannot see — a SIGTERM from
|
|
26
|
+
// another terminal, a SIGHUP when the window closes, a throw in our own async
|
|
27
|
+
// code — and each of those would otherwise leave the cursor hidden and stdin
|
|
28
|
+
// in raw mode for the shell the user returns to. See terminal.ts.
|
|
29
|
+
const uninstallRestore = installTerminalRestore({ stdout, stdin });
|
|
30
|
+
try {
|
|
31
|
+
const instance = render(_jsx(App, {}), {
|
|
32
|
+
stdout,
|
|
33
|
+
stdin,
|
|
34
|
+
// ON, and this is the Ctrl-C requirement from #145. With it, ink reads the
|
|
35
|
+
// ^C byte itself (in raw mode the terminal does not generate SIGINT, so
|
|
36
|
+
// nothing else would) and performs a real React unmount: every screen's
|
|
37
|
+
// effect cleanups run, which is what aborts an in-flight device-login poll
|
|
38
|
+
// loop. Without that, Ctrl-C would clear the UI and leave the process
|
|
39
|
+
// alive on a pending `setTimeout` — a shell prompt that never returns.
|
|
40
|
+
exitOnCtrlC: true,
|
|
41
|
+
// ink's default. Named explicitly because it is load-bearing here: a
|
|
42
|
+
// stray `console.log` from anywhere in the dependency tree would otherwise
|
|
43
|
+
// be written straight into the middle of a frame ink is managing,
|
|
44
|
+
// corrupting the layout until the next full redraw.
|
|
45
|
+
patchConsole: true,
|
|
46
|
+
});
|
|
47
|
+
await instance.waitUntilExit();
|
|
48
|
+
return EXIT.OK;
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
// `waitUntilExit()` rejects when the app is torn down with an error — a
|
|
52
|
+
// throw during render, or `exit(error)`. The UI is gone by this point, so
|
|
53
|
+
// the message has to go to stderr the way every other failure in this CLI
|
|
54
|
+
// does, and it must be written AFTER the restore below so it is not printed
|
|
55
|
+
// into a frame that is still being cleared.
|
|
56
|
+
restoreTerminal({ stdout, stdin });
|
|
57
|
+
process.stderr.write(`${formatError(error)}\n`);
|
|
58
|
+
return exitCodeFor(error);
|
|
59
|
+
}
|
|
60
|
+
finally {
|
|
61
|
+
// Belt and braces on the clean path too: ink restores the terminal on
|
|
62
|
+
// unmount, and doing it again is a no-op by design (`restoreTerminal` is
|
|
63
|
+
// idempotent). The listener removal is NOT optional — leaving a SIGINT
|
|
64
|
+
// handler installed would keep suppressing node's default disposition for
|
|
65
|
+
// the rest of the process's life.
|
|
66
|
+
restoreTerminal({ stdout, stdin });
|
|
67
|
+
uninstallRestore();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export { evaluateTuiGate, noTuiEnvVar } from './tty.js';
|
|
71
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/engine/tui/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAuBxE;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,OAAyB;IACtD,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC;IACjD,MAAM,KAAK,GAAG,OAAO,EAAE,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC;IAE9C,4EAA4E;IAC5E,yEAAyE;IACzE,8EAA8E;IAC9E,6EAA6E;IAC7E,kEAAkE;IAClE,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEnE,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAC,GAAG,KAAG,EAAE;YAC/B,MAAM;YACN,KAAK;YACL,2EAA2E;YAC3E,wEAAwE;YACxE,wEAAwE;YACxE,2EAA2E;YAC3E,sEAAsE;YACtE,uEAAuE;YACvE,WAAW,EAAE,IAAI;YACjB,qEAAqE;YACrE,2EAA2E;YAC3E,kEAAkE;YAClE,oDAAoD;YACpD,YAAY,EAAE,IAAI;SACnB,CAAC,CAAC;QAEH,MAAM,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC,EAAE,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,wEAAwE;QACxE,0EAA0E;QAC1E,0EAA0E;QAC1E,4EAA4E;QAC5E,4CAA4C;QAC5C,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QACnC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAChD,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;YAAS,CAAC;QACT,sEAAsE;QACtE,yEAAyE;QACzE,uEAAuE;QACvE,0EAA0E;QAC1E,kCAAkC;QAClC,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;QACnC,gBAAgB,EAAE,CAAC;IACrB,CAAC;AACH,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Below this many columns the chrome is dropped.
|
|
4
|
+
*
|
|
5
|
+
* FIFTY-SIX because that is roughly what the widest fixed content needs — the
|
|
6
|
+
* device-flow instruction panel, a `GET /api/users → 200 OK (41ms)` status
|
|
7
|
+
* line — plus a two-column border and two of padding on each side. Narrower
|
|
8
|
+
* than that and the border characters start consuming the content they are
|
|
9
|
+
* meant to frame, which is worse than no border: yoga wraps mid-word inside a
|
|
10
|
+
* box it cannot shrink, and the result is a smear of broken box-drawing
|
|
11
|
+
* characters rather than a smaller version of the UI.
|
|
12
|
+
*
|
|
13
|
+
* The number is a THRESHOLD, not a minimum viable width: below it the UI keeps
|
|
14
|
+
* working, it just stops drawing decoration. #145 asks for degrade, not
|
|
15
|
+
* refusal — a user in a tmux split or an 80-column window halved is a normal
|
|
16
|
+
* case, and a TUI that says "your terminal is too small" to someone who can
|
|
17
|
+
* plainly see text on it is a TUI they stop using.
|
|
18
|
+
*/
|
|
19
|
+
export declare const NARROW_COLUMNS = 56;
|
|
20
|
+
/**
|
|
21
|
+
* Below this, drop even the header and the padding.
|
|
22
|
+
*
|
|
23
|
+
* Thirty is about the width of a phone-sized SSH session. There is no useful
|
|
24
|
+
* layout left at this size, only content, so that is all that is drawn.
|
|
25
|
+
*/
|
|
26
|
+
export declare const TINY_COLUMNS = 30;
|
|
27
|
+
export interface TerminalSize {
|
|
28
|
+
columns: number;
|
|
29
|
+
rows: number;
|
|
30
|
+
/** `columns < NARROW_COLUMNS`. Drop borders and side padding. */
|
|
31
|
+
narrow: boolean;
|
|
32
|
+
/** `columns < TINY_COLUMNS`. Drop the header too; content only. */
|
|
33
|
+
tiny: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The current terminal size, updated on resize.
|
|
37
|
+
*
|
|
38
|
+
* ink re-renders on its own when the terminal is resized, but it does NOT
|
|
39
|
+
* publish the new size as state — a component that read `stdout.columns` during
|
|
40
|
+
* render would get the fresh value only because a re-render happened to be
|
|
41
|
+
* scheduled, which is a coincidence rather than a subscription. Owning the
|
|
42
|
+
* listener here makes the resize an explicit state change, which is what #145
|
|
43
|
+
* asks for: the layout must actually respond, not merely survive.
|
|
44
|
+
*
|
|
45
|
+
* The listener is removed on unmount. `process.stdout` is a long-lived emitter
|
|
46
|
+
* shared with the whole runtime, so a leaked listener here outlives the UI and
|
|
47
|
+
* fires against unmounted components for the rest of the process's life.
|
|
48
|
+
*/
|
|
49
|
+
export declare function useTerminalSize(): TerminalSize;
|
|
50
|
+
/**
|
|
51
|
+
* A guard against writing state after unmount.
|
|
52
|
+
*
|
|
53
|
+
* EVERY SCREEN IN THIS TUI NEEDS IT, because every screen does network work
|
|
54
|
+
* that outlives a keypress. The device-flow login polls for up to fifteen
|
|
55
|
+
* minutes; a user who presses Esc, or Ctrl-C, is unmounted immediately while
|
|
56
|
+
* the in-flight request keeps running and its `.then` still holds a setter for
|
|
57
|
+
* a component that no longer exists. React 18+ no longer warns about this, so
|
|
58
|
+
* the symptom is not a console message but a leak, and — once ink has torn the
|
|
59
|
+
* renderer down — a possible throw from inside a reconciler that has already
|
|
60
|
+
* stopped. `ee2078c fix(web): stop hooks writing state after unmount` is the
|
|
61
|
+
* same bug in apps/web.
|
|
62
|
+
*
|
|
63
|
+
* Returns a getter rather than the ref itself so a caller cannot accidentally
|
|
64
|
+
* capture `ref.current`'s value at closure-creation time, which would always be
|
|
65
|
+
* `true` and defeat the whole thing.
|
|
66
|
+
*/
|
|
67
|
+
export declare function useIsMounted(): () => boolean;
|
|
68
|
+
export interface FrameProps {
|
|
69
|
+
/** Screen name, shown in the header. */
|
|
70
|
+
title: string;
|
|
71
|
+
/** Key hints for the bottom line, e.g. `['↑↓ move', 'enter select']`. */
|
|
72
|
+
hints?: string[];
|
|
73
|
+
children: ReactNode;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* The window every screen sits in: a header, the content, and a hint line.
|
|
77
|
+
*
|
|
78
|
+
* THE DEGRADE IS THE INTERESTING PART. Three tiers, chosen by width:
|
|
79
|
+
*
|
|
80
|
+
* full (\>= NARROW_COLUMNS) bordered box, padding, header, hints
|
|
81
|
+
* narrow (\>= TINY_COLUMNS) no border, no side padding, header, hints
|
|
82
|
+
* tiny (\< TINY_COLUMNS) content only
|
|
83
|
+
*
|
|
84
|
+
* A bordered `Box` is NOT given an explicit width at any tier. Setting
|
|
85
|
+
* `width={columns}` looks right and is a bug: ink measures the terminal itself,
|
|
86
|
+
* and a box asked for exactly the full width has nowhere to put its own border,
|
|
87
|
+
* so the right-hand edge wraps onto the next line and every frame ends with a
|
|
88
|
+
* row of orphaned box characters. Letting the box size itself and constraining
|
|
89
|
+
* only the CONTENT is what keeps the frame intact at every width.
|
|
90
|
+
*/
|
|
91
|
+
export declare function Frame({ title, hints, children }: FrameProps): ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* The bottom line of every screen.
|
|
94
|
+
*
|
|
95
|
+
* Always present, and always including the key that gets OUT. A full-screen app
|
|
96
|
+
* that has captured the keyboard and does not say how to leave is the reason
|
|
97
|
+
* people are wary of them; Esc and Ctrl-C are both listed on every screen for
|
|
98
|
+
* exactly that reason, even where it looks redundant.
|
|
99
|
+
*
|
|
100
|
+
* Separators are dropped when narrow: at that width the hints wrap, and a
|
|
101
|
+
* wrapped line beginning with a lone dot reads as corruption.
|
|
102
|
+
*/
|
|
103
|
+
export declare function KeyHints({ hints }: {
|
|
104
|
+
hints: string[];
|
|
105
|
+
}): ReactNode;
|
|
106
|
+
/**
|
|
107
|
+
* A labelled row: a fixed-width label and a value.
|
|
108
|
+
*
|
|
109
|
+
* The label column is padded rather than laid out with a `<Box width>` because
|
|
110
|
+
* ink measures a Box in cells and these labels are ASCII — padding is exact,
|
|
111
|
+
* one flex node cheaper per row, and immune to the width-collapse described in
|
|
112
|
+
* `Frame`.
|
|
113
|
+
*/
|
|
114
|
+
export declare function Field({ label, value, color, dim, }: {
|
|
115
|
+
label: string;
|
|
116
|
+
value: string;
|
|
117
|
+
color?: string | undefined;
|
|
118
|
+
dim?: boolean | undefined;
|
|
119
|
+
}): ReactNode;
|
|
120
|
+
/**
|
|
121
|
+
* An error, rendered the same way everywhere.
|
|
122
|
+
*
|
|
123
|
+
* `hint` is separate from `message` so the remedy is visually distinct from the
|
|
124
|
+
* diagnosis. The messages this CLI produces already carry their own remedy
|
|
125
|
+
* (see errors.ts), so `hint` is for the extra sentence a SCREEN can add and the
|
|
126
|
+
* error itself cannot — "press r to try again".
|
|
127
|
+
*/
|
|
128
|
+
export declare function ErrorNotice({ message, hint, }: {
|
|
129
|
+
message: string;
|
|
130
|
+
hint?: string | undefined;
|
|
131
|
+
}): ReactNode;
|
|
132
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/engine/tui/layout.tsx"],"names":[],"mappings":"AACA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAepE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAe/B,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,MAAM,EAAE,OAAO,CAAC;IAChB,mEAAmE;IACnE,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAqC9C;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,IAAI,MAAM,OAAO,CAe5C;AAMD,MAAM,WAAW,UAAU;IACzB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,SAAS,CA+BvE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,SAAS,CAgBlE;AAED;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAAK,EACL,KAAK,EACL,GAAG,GACJ,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC3B,GAAG,SAAS,CAYZ;AAID;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,IAAI,GACL,EAAE;IACD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,GAAG,SAAS,CASZ"}
|