@cortexkit/opencode-antigravity-auth 3.0.5 → 3.0.6
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 +38 -352
- package/dist/cli.js +9199 -8799
- package/dist/cli.js.map +4 -4
- package/dist/cli.meta.json +1286 -1064
- package/dist/index.js +13641 -14559
- package/dist/index.js.map +4 -4
- package/dist/index.meta.json +1333 -1342
- package/dist/server.js +10618 -11080
- package/dist/server.js.map +4 -4
- package/dist/server.meta.json +1 -1
- package/dist/src/auth-method-labels.d.ts +3 -0
- package/dist/src/auth-method-labels.d.ts.map +1 -0
- package/dist/src/auth-method-labels.js +5 -0
- package/dist/src/auth-method-labels.js.map +1 -0
- package/dist/src/cli.d.ts +3 -1
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +98 -12
- package/dist/src/cli.js.map +1 -1
- package/dist/src/common-auth-embedded/claustrum/consumer.d.ts +33 -3
- package/dist/src/common-auth-embedded/claustrum/consumer.js +96 -1
- package/dist/src/common-auth-embedded/claustrum/custody.d.ts +4 -1
- package/dist/src/common-auth-embedded/claustrum/enrollment.d.ts +6 -1
- package/dist/src/common-auth-embedded/claustrum/enrollment.js +6 -1
- package/dist/src/common-auth-embedded/claustrum/index.d.ts +2 -1
- package/dist/src/common-auth-embedded/claustrum/index.js +5 -3
- package/dist/src/common-auth-embedded/claustrum/insula.d.ts +69 -0
- package/dist/src/common-auth-embedded/claustrum/insula.js +152 -0
- package/dist/src/common-auth-embedded/claustrum/roster.d.ts +13 -0
- package/dist/src/common-auth-embedded/claustrum/roster.js +33 -3
- package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +20 -11
- package/dist/src/common-auth-embedded/quota/codec.d.ts +2 -0
- package/dist/src/common-auth-embedded/quota/codec.js +2 -1
- package/dist/src/common-auth-embedded/quota/format.d.ts +26 -0
- package/dist/src/common-auth-embedded/quota/format.js +78 -42
- package/dist/src/common-auth-embedded/quota/index.d.ts +4 -4
- package/dist/src/common-auth-embedded/quota/index.js +2 -2
- package/dist/src/common-auth-embedded/quota/map.d.ts +11 -0
- package/dist/src/common-auth-embedded/quota/map.js +36 -1
- package/dist/src/common-auth-embedded/quota/merge.d.ts +3 -1
- package/dist/src/common-auth-embedded/quota/merge.js +21 -5
- package/dist/src/common-auth-embedded/quota/projection.d.ts +2 -1
- package/dist/src/common-auth-embedded/quota/projection.js +3 -1
- package/dist/src/common-auth-embedded/setup/command-runner.js +49 -0
- package/dist/src/common-auth-embedded/setup/command.d.ts +3 -0
- package/dist/src/common-auth-embedded/setup/command.js +215 -0
- package/dist/src/common-auth-embedded/setup/config-write.js +60 -0
- package/dist/src/common-auth-embedded/setup/detect.d.ts +6 -0
- package/dist/src/common-auth-embedded/setup/detect.js +224 -0
- package/dist/src/common-auth-embedded/setup/enroll.js +70 -0
- package/dist/src/common-auth-embedded/setup/index.d.ts +5 -0
- package/dist/src/common-auth-embedded/setup/index.js +4 -0
- package/dist/src/common-auth-embedded/setup/paths.js +33 -0
- package/dist/src/common-auth-embedded/setup/process-fence.d.ts +43 -0
- package/dist/src/common-auth-embedded/setup/process-fence.js +270 -0
- package/dist/src/common-auth-embedded/setup/prompts.js +26 -0
- package/dist/src/common-auth-embedded/setup/register.d.ts +11 -0
- package/dist/src/common-auth-embedded/setup/register.js +130 -0
- package/dist/src/common-auth-embedded/setup/types.d.ts +136 -0
- package/dist/src/common-auth-embedded/source-output.json +228 -80
- package/dist/src/common-auth-embedded/store/schema.d.ts +2 -0
- package/dist/src/common-auth-embedded/store/schema.js +3 -2
- package/dist/src/ga/rpc/protocol.d.ts +4 -7
- package/dist/src/ga/rpc/protocol.d.ts.map +1 -1
- package/dist/src/ga/rpc/protocol.js +5 -13
- package/dist/src/ga/rpc/protocol.js.map +1 -1
- package/dist/src/ga/server/auth.d.ts +8 -3
- package/dist/src/ga/server/auth.d.ts.map +1 -1
- package/dist/src/ga/server/auth.js +25 -9
- package/dist/src/ga/server/auth.js.map +1 -1
- package/dist/src/ga/server/index.d.ts +39 -12
- package/dist/src/ga/server/index.d.ts.map +1 -1
- package/dist/src/ga/server/index.js +214 -53
- package/dist/src/ga/server/index.js.map +1 -1
- package/dist/src/ga/server/pool-login.d.ts +22 -0
- package/dist/src/ga/server/pool-login.d.ts.map +1 -0
- package/dist/src/ga/server/pool-login.js +150 -0
- package/dist/src/ga/server/pool-login.js.map +1 -0
- package/dist/src/ga/tui/host-ga.d.ts +2 -5
- package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
- package/dist/src/ga/tui/host-ga.js +17 -49
- package/dist/src/ga/tui/host-ga.js.map +1 -1
- package/dist/src/plugin/accounts.d.ts +1 -1
- package/dist/src/plugin/accounts.d.ts.map +1 -1
- package/dist/src/plugin/accounts.js +1 -0
- package/dist/src/plugin/accounts.js.map +1 -1
- package/dist/src/plugin/background-vault-quota-refresh.d.ts +2 -0
- package/dist/src/plugin/background-vault-quota-refresh.d.ts.map +1 -1
- package/dist/src/plugin/background-vault-quota-refresh.js +125 -10
- package/dist/src/plugin/background-vault-quota-refresh.js.map +1 -1
- package/dist/src/plugin/command-apply.d.ts +2 -2
- package/dist/src/plugin/command-apply.d.ts.map +1 -1
- package/dist/src/plugin/command-apply.js +3 -10
- package/dist/src/plugin/command-apply.js.map +1 -1
- package/dist/src/plugin/commands.d.ts +1 -0
- package/dist/src/plugin/commands.d.ts.map +1 -1
- package/dist/src/plugin/commands.js +2 -2
- package/dist/src/plugin/commands.js.map +1 -1
- package/dist/src/plugin/config/operator-settings-schema.d.ts +0 -4
- package/dist/src/plugin/config/operator-settings-schema.d.ts.map +1 -1
- package/dist/src/plugin/config/operator-settings-schema.js +0 -5
- package/dist/src/plugin/config/operator-settings-schema.js.map +1 -1
- package/dist/src/plugin/config/schema.d.ts +0 -7
- package/dist/src/plugin/config/schema.d.ts.map +1 -1
- package/dist/src/plugin/config/schema.js +0 -43
- package/dist/src/plugin/config/schema.js.map +1 -1
- package/dist/src/plugin/config/writer.d.ts +1 -1
- package/dist/src/plugin/config/writer.js +1 -1
- package/dist/src/plugin/fetch/retry-state.d.ts +19 -3
- package/dist/src/plugin/fetch/retry-state.d.ts.map +1 -1
- package/dist/src/plugin/fetch/retry-state.js +0 -6
- package/dist/src/plugin/fetch/retry-state.js.map +1 -1
- package/dist/src/plugin/fetch-interceptor.d.ts.map +1 -1
- package/dist/src/plugin/fetch-interceptor.js +0 -3
- package/dist/src/plugin/fetch-interceptor.js.map +1 -1
- package/dist/src/plugin/fetch-routing.d.ts +0 -16
- package/dist/src/plugin/fetch-routing.d.ts.map +1 -1
- package/dist/src/plugin/fetch-routing.js +0 -49
- package/dist/src/plugin/fetch-routing.js.map +1 -1
- package/dist/src/plugin/ga-location-services.d.ts +14 -9
- package/dist/src/plugin/ga-location-services.d.ts.map +1 -1
- package/dist/src/plugin/ga-location-services.js +120 -40
- package/dist/src/plugin/ga-location-services.js.map +1 -1
- package/dist/src/plugin/google-origin.d.ts +7 -0
- package/dist/src/plugin/google-origin.d.ts.map +1 -0
- package/dist/src/plugin/google-origin.js +14 -0
- package/dist/src/plugin/google-origin.js.map +1 -0
- package/dist/src/plugin/index.d.ts.map +1 -1
- package/dist/src/plugin/index.js +15 -4
- package/dist/src/plugin/index.js.map +1 -1
- package/dist/src/plugin/oauth-methods.d.ts.map +1 -1
- package/dist/src/plugin/oauth-methods.js +0 -33
- package/dist/src/plugin/oauth-methods.js.map +1 -1
- package/dist/src/plugin/operator-settings.d.ts +1 -1
- package/dist/src/plugin/operator-settings.d.ts.map +1 -1
- package/dist/src/plugin/operator-settings.js +1 -8
- package/dist/src/plugin/operator-settings.js.map +1 -1
- package/dist/src/plugin/quota.d.ts +11 -7
- package/dist/src/plugin/quota.d.ts.map +1 -1
- package/dist/src/plugin/quota.js +128 -102
- package/dist/src/plugin/quota.js.map +1 -1
- package/dist/src/plugin/request.d.ts +5 -3
- package/dist/src/plugin/request.d.ts.map +1 -1
- package/dist/src/plugin/request.js +87 -168
- package/dist/src/plugin/request.js.map +1 -1
- package/dist/src/plugin/server.d.ts.map +1 -1
- package/dist/src/plugin/server.js +60 -53
- package/dist/src/plugin/server.js.map +1 -1
- package/dist/src/plugin/shared/advisory-repository.d.ts +20 -0
- package/dist/src/plugin/shared/advisory-repository.d.ts.map +1 -0
- package/dist/src/plugin/shared/advisory-repository.js +91 -0
- package/dist/src/plugin/shared/advisory-repository.js.map +1 -0
- package/dist/src/plugin/shared/request-services.d.ts +19 -25
- package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/src/plugin/shared/request-services.js +105 -188
- package/dist/src/plugin/shared/request-services.js.map +1 -1
- package/dist/src/plugin/shared/runtime.js +4 -2
- package/dist/src/plugin/shared/runtime.js.map +1 -1
- package/dist/src/plugin/shared/vault-request-credentials.d.ts +4 -1
- package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
- package/dist/src/plugin/shared/vault-request-credentials.js +41 -7
- package/dist/src/plugin/shared/vault-request-credentials.js.map +1 -1
- package/dist/src/plugin/storage.d.ts +2 -2
- package/dist/src/plugin/storage.d.ts.map +1 -1
- package/dist/src/plugin/storage.js.map +1 -1
- package/dist/src/plugin/vault-custody.d.ts.map +1 -1
- package/dist/src/plugin/vault-custody.js +147 -35
- package/dist/src/plugin/vault-custody.js.map +1 -1
- package/dist/src/plugin/vault-quota-outcome.d.ts +19 -0
- package/dist/src/plugin/vault-quota-outcome.d.ts.map +1 -0
- package/dist/src/plugin/vault-quota-outcome.js +47 -0
- package/dist/src/plugin/vault-quota-outcome.js.map +1 -0
- package/dist/src/quota-presentation.d.ts +29 -1
- package/dist/src/quota-presentation.d.ts.map +1 -1
- package/dist/src/quota-presentation.js +52 -17
- package/dist/src/quota-presentation.js.map +1 -1
- package/dist/src/setup.d.ts +15 -0
- package/dist/src/setup.d.ts.map +1 -0
- package/dist/src/setup.js +320 -0
- package/dist/src/setup.js.map +1 -0
- package/dist/src/sidebar-projection.d.ts +1 -1
- package/dist/src/sidebar-projection.d.ts.map +1 -1
- package/dist/src/sidebar-state.d.ts +1 -1
- package/dist/src/sidebar-state.d.ts.map +1 -1
- package/dist/src/sidebar-state.js +19 -1
- package/dist/src/sidebar-state.js.map +1 -1
- package/dist/src/tui.d.ts.map +1 -1
- package/dist/src/tui.js +205 -110
- package/dist/src/tui.js.map +1 -1
- package/dist/tui-build-map.json +37 -37
- package/dist/tui-ga-build-map.json +33 -33
- package/dist/types/src/auth-method-labels.d.ts +3 -0
- package/dist/types/src/auth-method-labels.d.ts.map +1 -0
- package/dist/types/src/cli.d.ts +3 -1
- package/dist/types/src/cli.d.ts.map +1 -1
- package/dist/types/src/common-auth-embedded/auth-menu/terminal.d.ts +43 -0
- package/dist/types/src/common-auth-embedded/claustrum/consumer.d.ts +132 -0
- package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +178 -0
- package/dist/types/src/common-auth-embedded/claustrum/enrollment.d.ts +164 -0
- package/dist/types/src/common-auth-embedded/claustrum/errors.d.ts +16 -0
- package/dist/types/src/common-auth-embedded/claustrum/host-slot.d.ts +39 -0
- package/dist/types/src/common-auth-embedded/claustrum/index.d.ts +19 -0
- package/dist/types/src/common-auth-embedded/claustrum/insula.d.ts +69 -0
- package/dist/types/src/common-auth-embedded/claustrum/interlock.d.ts +27 -0
- package/dist/types/src/common-auth-embedded/claustrum/roster.d.ts +221 -0
- package/dist/types/src/common-auth-embedded/opencode2/errors.d.ts +25 -0
- package/dist/types/src/common-auth-embedded/opencode2/index.d.ts +8 -0
- package/dist/types/src/common-auth-embedded/opencode2/install.d.ts +55 -0
- package/dist/types/src/common-auth-embedded/opencode2/integration.d.ts +112 -0
- package/dist/types/src/common-auth-embedded/opencode2/sse.d.ts +12 -0
- package/dist/types/src/common-auth-embedded/opencode2/types.d.ts +413 -0
- package/dist/types/src/common-auth-embedded/quota/codec.d.ts +2 -0
- package/dist/types/src/common-auth-embedded/quota/format.d.ts +26 -0
- package/dist/types/src/common-auth-embedded/quota/index.d.ts +4 -4
- package/dist/types/src/common-auth-embedded/quota/map.d.ts +11 -0
- package/dist/types/src/common-auth-embedded/quota/merge.d.ts +3 -1
- package/dist/types/src/common-auth-embedded/quota/projection.d.ts +2 -1
- package/dist/types/src/common-auth-embedded/routing/admission.d.ts +93 -0
- package/dist/types/src/common-auth-embedded/routing/index.d.ts +8 -0
- package/dist/types/src/common-auth-embedded/routing/ordered.d.ts +47 -0
- package/dist/types/src/common-auth-embedded/routing/pins.d.ts +22 -0
- package/dist/types/src/common-auth-embedded/routing/sticky.d.ts +158 -0
- package/dist/types/src/common-auth-embedded/setup/command.d.ts +3 -0
- package/dist/types/src/common-auth-embedded/setup/detect.d.ts +6 -0
- package/dist/types/src/common-auth-embedded/setup/index.d.ts +5 -0
- package/dist/types/src/common-auth-embedded/setup/process-fence.d.ts +43 -0
- package/dist/types/src/common-auth-embedded/setup/register.d.ts +11 -0
- package/dist/types/src/common-auth-embedded/setup/types.d.ts +136 -0
- package/dist/types/src/common-auth-embedded/store/schema.d.ts +2 -0
- package/dist/types/src/ga/rpc/protocol.d.ts +4 -7
- package/dist/types/src/ga/rpc/protocol.d.ts.map +1 -1
- package/dist/types/src/ga/server/auth.d.ts +8 -3
- package/dist/types/src/ga/server/auth.d.ts.map +1 -1
- package/dist/types/src/ga/server/index.d.ts +39 -12
- package/dist/types/src/ga/server/index.d.ts.map +1 -1
- package/dist/types/src/ga/server/pool-login.d.ts +22 -0
- package/dist/types/src/ga/server/pool-login.d.ts.map +1 -0
- package/dist/types/src/plugin/accounts.d.ts +1 -1
- package/dist/types/src/plugin/accounts.d.ts.map +1 -1
- package/dist/types/src/plugin/background-vault-quota-refresh.d.ts +2 -0
- package/dist/types/src/plugin/background-vault-quota-refresh.d.ts.map +1 -1
- package/dist/types/src/plugin/command-apply.d.ts +2 -2
- package/dist/types/src/plugin/command-apply.d.ts.map +1 -1
- package/dist/types/src/plugin/commands.d.ts +1 -0
- package/dist/types/src/plugin/commands.d.ts.map +1 -1
- package/dist/types/src/plugin/config/operator-settings-schema.d.ts +0 -4
- package/dist/types/src/plugin/config/operator-settings-schema.d.ts.map +1 -1
- package/dist/types/src/plugin/config/schema.d.ts +0 -7
- package/dist/types/src/plugin/config/schema.d.ts.map +1 -1
- package/dist/types/src/plugin/config/writer.d.ts +1 -1
- package/dist/types/src/plugin/fetch/retry-state.d.ts +19 -3
- package/dist/types/src/plugin/fetch/retry-state.d.ts.map +1 -1
- package/dist/types/src/plugin/fetch-interceptor.d.ts.map +1 -1
- package/dist/types/src/plugin/fetch-routing.d.ts +0 -16
- package/dist/types/src/plugin/fetch-routing.d.ts.map +1 -1
- package/dist/types/src/plugin/ga-location-services.d.ts +14 -9
- package/dist/types/src/plugin/ga-location-services.d.ts.map +1 -1
- package/dist/types/src/plugin/google-origin.d.ts +7 -0
- package/dist/types/src/plugin/google-origin.d.ts.map +1 -0
- package/dist/types/src/plugin/index.d.ts.map +1 -1
- package/dist/types/src/plugin/oauth-methods.d.ts.map +1 -1
- package/dist/types/src/plugin/operator-settings.d.ts +1 -1
- package/dist/types/src/plugin/operator-settings.d.ts.map +1 -1
- package/dist/types/src/plugin/quota.d.ts +11 -7
- package/dist/types/src/plugin/quota.d.ts.map +1 -1
- package/dist/types/src/plugin/request.d.ts +5 -3
- package/dist/types/src/plugin/request.d.ts.map +1 -1
- package/dist/types/src/plugin/server.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/advisory-repository.d.ts +20 -0
- package/dist/types/src/plugin/shared/advisory-repository.d.ts.map +1 -0
- package/dist/types/src/plugin/shared/request-services.d.ts +19 -25
- package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +4 -1
- package/dist/types/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
- package/dist/types/src/plugin/storage.d.ts +2 -2
- package/dist/types/src/plugin/storage.d.ts.map +1 -1
- package/dist/types/src/plugin/vault-custody.d.ts.map +1 -1
- package/dist/types/src/plugin/vault-quota-outcome.d.ts +19 -0
- package/dist/types/src/plugin/vault-quota-outcome.d.ts.map +1 -0
- package/dist/types/src/setup.d.ts +15 -0
- package/dist/types/src/setup.d.ts.map +1 -0
- package/dist/types/src/sidebar-state.d.ts +1 -1
- package/dist/types/src/sidebar-state.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/common-auth-embedded/claustrum/consumer.d.ts +33 -3
- package/src/common-auth-embedded/claustrum/consumer.js +96 -1
- package/src/common-auth-embedded/claustrum/custody.d.ts +4 -1
- package/src/common-auth-embedded/claustrum/enrollment.d.ts +6 -1
- package/src/common-auth-embedded/claustrum/enrollment.js +6 -1
- package/src/common-auth-embedded/claustrum/index.d.ts +2 -1
- package/src/common-auth-embedded/claustrum/index.js +5 -3
- package/src/common-auth-embedded/claustrum/insula.d.ts +69 -0
- package/src/common-auth-embedded/claustrum/insula.js +152 -0
- package/src/common-auth-embedded/claustrum/roster.d.ts +13 -0
- package/src/common-auth-embedded/claustrum/roster.js +33 -3
- package/src/common-auth-embedded/fs/refresh-file-lock.js +20 -11
- package/src/common-auth-embedded/quota/codec.d.ts +2 -0
- package/src/common-auth-embedded/quota/codec.js +2 -1
- package/src/common-auth-embedded/quota/format.d.ts +26 -0
- package/src/common-auth-embedded/quota/format.js +78 -42
- package/src/common-auth-embedded/quota/index.d.ts +4 -4
- package/src/common-auth-embedded/quota/index.js +2 -2
- package/src/common-auth-embedded/quota/map.d.ts +11 -0
- package/src/common-auth-embedded/quota/map.js +36 -1
- package/src/common-auth-embedded/quota/merge.d.ts +3 -1
- package/src/common-auth-embedded/quota/merge.js +21 -5
- package/src/common-auth-embedded/quota/projection.d.ts +2 -1
- package/src/common-auth-embedded/quota/projection.js +3 -1
- package/src/common-auth-embedded/setup/command-runner.js +49 -0
- package/src/common-auth-embedded/setup/command.d.ts +3 -0
- package/src/common-auth-embedded/setup/command.js +215 -0
- package/src/common-auth-embedded/setup/config-write.js +60 -0
- package/src/common-auth-embedded/setup/detect.d.ts +6 -0
- package/src/common-auth-embedded/setup/detect.js +224 -0
- package/src/common-auth-embedded/setup/enroll.js +70 -0
- package/src/common-auth-embedded/setup/index.d.ts +5 -0
- package/src/common-auth-embedded/setup/index.js +4 -0
- package/src/common-auth-embedded/setup/paths.js +33 -0
- package/src/common-auth-embedded/setup/process-fence.d.ts +43 -0
- package/src/common-auth-embedded/setup/process-fence.js +270 -0
- package/src/common-auth-embedded/setup/prompts.js +26 -0
- package/src/common-auth-embedded/setup/register.d.ts +11 -0
- package/src/common-auth-embedded/setup/register.js +130 -0
- package/src/common-auth-embedded/setup/types.d.ts +136 -0
- package/src/common-auth-embedded/source-output.json +228 -80
- package/src/common-auth-embedded/store/schema.d.ts +2 -0
- package/src/common-auth-embedded/store/schema.js +3 -2
- package/src/sidebar-state.ts +19 -2
- package/src/tui-compiled/common-auth-embedded/quota/codec.js +2 -1
- package/src/tui-compiled/common-auth-embedded/quota/format.js +78 -42
- package/src/tui-compiled/common-auth-embedded/quota/index.js +2 -2
- package/src/tui-compiled/common-auth-embedded/quota/map.js +36 -1
- package/src/tui-compiled/common-auth-embedded/quota/merge.js +21 -5
- package/src/tui-compiled/common-auth-embedded/quota/projection.js +3 -1
- package/src/tui-compiled/quota-presentation.js +42 -9
- package/src/tui-compiled/sidebar-state.js +15 -1
- package/src/tui-compiled/tui.js +516 -334
- package/src/tui-ga-compiled/host-ga.js +11 -38
- package/src/tui-ga-compiled/shared/1ff34afa7c42d196-projection.js +3 -1
- package/src/tui-ga-compiled/shared/77138df80c7ae006-map.js +36 -1
- package/src/tui-ga-compiled/shared/98cc0c186c46c42d-quota-presentation.js +42 -9
- package/src/tui-ga-compiled/shared/aef2402f8fc342f0-format.js +78 -42
- package/src/tui-ga-compiled/shared/bf17cbee28e58197-index.js +2 -2
- package/src/tui-ga-compiled/shared/ca21dc417b36dc5d-codec.js +2 -1
- package/src/tui-ga-compiled/shared/ecc214300932dfb6-merge.js +21 -5
- package/src/tui-ga-raw/host-ga.tsx +31 -62
- package/src/tui-ga-raw/shared/1ff34afa7c42d196-projection.js +3 -1
- package/src/tui-ga-raw/shared/77138df80c7ae006-map.js +36 -1
- package/src/tui-ga-raw/shared/98cc0c186c46c42d-quota-presentation.js +42 -9
- package/src/tui-ga-raw/shared/aef2402f8fc342f0-format.js +78 -42
- package/src/tui-ga-raw/shared/bf17cbee28e58197-index.js +2 -2
- package/src/tui-ga-raw/shared/ca21dc417b36dc5d-codec.js +2 -1
- package/src/tui-ga-raw/shared/ecc214300932dfb6-merge.js +21 -5
- package/src/tui-raw/common-auth-embedded/quota/codec.js +2 -1
- package/src/tui-raw/common-auth-embedded/quota/format.js +78 -42
- package/src/tui-raw/common-auth-embedded/quota/index.js +2 -2
- package/src/tui-raw/common-auth-embedded/quota/map.js +36 -1
- package/src/tui-raw/common-auth-embedded/quota/merge.js +21 -5
- package/src/tui-raw/common-auth-embedded/quota/projection.js +3 -1
- package/src/tui-raw/quota-presentation.js +42 -9
- package/src/tui-raw/sidebar-state.js +15 -1
- package/src/tui-raw/tui.tsx +423 -218
- package/src/tui.tsx +423 -218
- package/dist/src/tui/vault-setup.d.ts +0 -98
- package/dist/src/tui/vault-setup.d.ts.map +0 -1
- package/dist/src/tui/vault-setup.js +0 -198
- package/dist/src/tui/vault-setup.js.map +0 -1
- package/dist/types/src/plugin/transform/model-resolver.d.ts +0 -2
- package/dist/types/src/plugin/transform/model-resolver.d.ts.map +0 -1
- package/dist/types/src/quota-presentation.d.ts +0 -18
- package/dist/types/src/quota-presentation.d.ts.map +0 -1
package/dist/tui-build-map.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"compiler": "@cortexkit/common-auth/tui-build@0.
|
|
3
|
+
"compiler": "@cortexkit/common-auth/tui-build@0.17.2",
|
|
4
4
|
"bun": "1.4.2",
|
|
5
5
|
"raw": {
|
|
6
6
|
"selector": "selector.js",
|
|
@@ -18,50 +18,50 @@
|
|
|
18
18
|
{
|
|
19
19
|
"source": "src/common-auth-embedded/quota/map.js",
|
|
20
20
|
"output": "src/tui-raw/common-auth-embedded/quota/map.js",
|
|
21
|
-
"bytes":
|
|
22
|
-
"sha256": "
|
|
21
|
+
"bytes": 5669,
|
|
22
|
+
"sha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
23
23
|
"transform": "public-raw"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"source": "src/common-auth-embedded/quota/merge.js",
|
|
27
27
|
"output": "src/tui-raw/common-auth-embedded/quota/merge.js",
|
|
28
|
-
"bytes":
|
|
29
|
-
"sha256": "
|
|
28
|
+
"bytes": 7439,
|
|
29
|
+
"sha256": "300c79cee97328c075d0edc399b3fdf67f72614ade64b43b63c1c67ac0768868",
|
|
30
30
|
"transform": "public-raw"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"source": "src/common-auth-embedded/quota/codec.js",
|
|
34
34
|
"output": "src/tui-raw/common-auth-embedded/quota/codec.js",
|
|
35
|
-
"bytes":
|
|
36
|
-
"sha256": "
|
|
35
|
+
"bytes": 491,
|
|
36
|
+
"sha256": "7e5d808de31ef377a0ca9de513999f09cabcb28fac008032f0bdfc32ff8ae13c",
|
|
37
37
|
"transform": "public-raw"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"source": "src/common-auth-embedded/quota/format.js",
|
|
41
41
|
"output": "src/tui-raw/common-auth-embedded/quota/format.js",
|
|
42
|
-
"bytes":
|
|
43
|
-
"sha256": "
|
|
42
|
+
"bytes": 7317,
|
|
43
|
+
"sha256": "be82fbb583247da651565e89d5f42baded960f8cc468acbf8a7492e0e930804b",
|
|
44
44
|
"transform": "public-raw"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"source": "src/common-auth-embedded/quota/projection.js",
|
|
48
48
|
"output": "src/tui-raw/common-auth-embedded/quota/projection.js",
|
|
49
|
-
"bytes":
|
|
50
|
-
"sha256": "
|
|
49
|
+
"bytes": 5640,
|
|
50
|
+
"sha256": "00d71decab6096eb291046a77b1845ba258cb90d5b54f1fc31942a943aa8147d",
|
|
51
51
|
"transform": "public-raw"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"source": "src/common-auth-embedded/quota/index.js",
|
|
55
55
|
"output": "src/tui-raw/common-auth-embedded/quota/index.js",
|
|
56
|
-
"bytes":
|
|
57
|
-
"sha256": "
|
|
56
|
+
"bytes": 497,
|
|
57
|
+
"sha256": "aa011324f0429617564cf26b4ba67c31390fc8f7a3547784ca4860059af7422b",
|
|
58
58
|
"transform": "public-raw"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"source": "src/quota-presentation.ts",
|
|
62
62
|
"output": "src/tui-raw/quota-presentation.js",
|
|
63
|
-
"bytes":
|
|
64
|
-
"sha256": "
|
|
63
|
+
"bytes": 2428,
|
|
64
|
+
"sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
|
|
65
65
|
"transform": "public-raw"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
{
|
|
75
75
|
"source": "src/sidebar-state.ts",
|
|
76
76
|
"output": "src/tui-raw/sidebar-state.js",
|
|
77
|
-
"bytes":
|
|
78
|
-
"sha256": "
|
|
77
|
+
"bytes": 16741,
|
|
78
|
+
"sha256": "5c56611518def17861fc7c7c1fb67f705bda32e6be5ef4932d1481db12378359",
|
|
79
79
|
"transform": "public-raw"
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -186,8 +186,8 @@
|
|
|
186
186
|
{
|
|
187
187
|
"source": "src/tui.tsx",
|
|
188
188
|
"output": "src/tui-raw/tui.tsx",
|
|
189
|
-
"bytes":
|
|
190
|
-
"sha256": "
|
|
189
|
+
"bytes": 44392,
|
|
190
|
+
"sha256": "6ce49b90c9c5953aa8bffd7780fb9442981795ac37abd223096d4f0140a1bd78",
|
|
191
191
|
"transform": "public-raw"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
@@ -212,50 +212,50 @@
|
|
|
212
212
|
{
|
|
213
213
|
"source": "src/common-auth-embedded/quota/map.js",
|
|
214
214
|
"output": "src/tui-compiled/common-auth-embedded/quota/map.js",
|
|
215
|
-
"bytes":
|
|
216
|
-
"sha256": "
|
|
215
|
+
"bytes": 5669,
|
|
216
|
+
"sha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
217
217
|
"transform": "public-solid-runtime"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
"source": "src/common-auth-embedded/quota/merge.js",
|
|
221
221
|
"output": "src/tui-compiled/common-auth-embedded/quota/merge.js",
|
|
222
|
-
"bytes":
|
|
223
|
-
"sha256": "
|
|
222
|
+
"bytes": 7439,
|
|
223
|
+
"sha256": "300c79cee97328c075d0edc399b3fdf67f72614ade64b43b63c1c67ac0768868",
|
|
224
224
|
"transform": "public-solid-runtime"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
"source": "src/common-auth-embedded/quota/codec.js",
|
|
228
228
|
"output": "src/tui-compiled/common-auth-embedded/quota/codec.js",
|
|
229
|
-
"bytes":
|
|
230
|
-
"sha256": "
|
|
229
|
+
"bytes": 491,
|
|
230
|
+
"sha256": "7e5d808de31ef377a0ca9de513999f09cabcb28fac008032f0bdfc32ff8ae13c",
|
|
231
231
|
"transform": "public-solid-runtime"
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
"source": "src/common-auth-embedded/quota/format.js",
|
|
235
235
|
"output": "src/tui-compiled/common-auth-embedded/quota/format.js",
|
|
236
|
-
"bytes":
|
|
237
|
-
"sha256": "
|
|
236
|
+
"bytes": 7317,
|
|
237
|
+
"sha256": "be82fbb583247da651565e89d5f42baded960f8cc468acbf8a7492e0e930804b",
|
|
238
238
|
"transform": "public-solid-runtime"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
"source": "src/common-auth-embedded/quota/projection.js",
|
|
242
242
|
"output": "src/tui-compiled/common-auth-embedded/quota/projection.js",
|
|
243
|
-
"bytes":
|
|
244
|
-
"sha256": "
|
|
243
|
+
"bytes": 5640,
|
|
244
|
+
"sha256": "00d71decab6096eb291046a77b1845ba258cb90d5b54f1fc31942a943aa8147d",
|
|
245
245
|
"transform": "public-solid-runtime"
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"source": "src/common-auth-embedded/quota/index.js",
|
|
249
249
|
"output": "src/tui-compiled/common-auth-embedded/quota/index.js",
|
|
250
|
-
"bytes":
|
|
251
|
-
"sha256": "
|
|
250
|
+
"bytes": 497,
|
|
251
|
+
"sha256": "aa011324f0429617564cf26b4ba67c31390fc8f7a3547784ca4860059af7422b",
|
|
252
252
|
"transform": "public-solid-runtime"
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"source": "src/quota-presentation.ts",
|
|
256
256
|
"output": "src/tui-compiled/quota-presentation.js",
|
|
257
|
-
"bytes":
|
|
258
|
-
"sha256": "
|
|
257
|
+
"bytes": 2428,
|
|
258
|
+
"sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
|
|
259
259
|
"transform": "public-solid-runtime"
|
|
260
260
|
},
|
|
261
261
|
{
|
|
@@ -268,8 +268,8 @@
|
|
|
268
268
|
{
|
|
269
269
|
"source": "src/sidebar-state.ts",
|
|
270
270
|
"output": "src/tui-compiled/sidebar-state.js",
|
|
271
|
-
"bytes":
|
|
272
|
-
"sha256": "
|
|
271
|
+
"bytes": 16741,
|
|
272
|
+
"sha256": "5c56611518def17861fc7c7c1fb67f705bda32e6be5ef4932d1481db12378359",
|
|
273
273
|
"transform": "public-solid-runtime"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
@@ -380,8 +380,8 @@
|
|
|
380
380
|
{
|
|
381
381
|
"source": "src/tui.tsx",
|
|
382
382
|
"output": "src/tui-compiled/tui.js",
|
|
383
|
-
"bytes":
|
|
384
|
-
"sha256": "
|
|
383
|
+
"bytes": 49988,
|
|
384
|
+
"sha256": "180134f3cbda65fd065075872eb93f6403b28fed88df70a4c3f3ea71fc74877b",
|
|
385
385
|
"transform": "public-solid-runtime"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"compiler": "@cortexkit/common-auth/tui-build@0.
|
|
3
|
+
"compiler": "@cortexkit/common-auth/tui-build@0.17.2",
|
|
4
4
|
"bun": "1.4.2",
|
|
5
5
|
"raw": {
|
|
6
6
|
"selector": "selector.js",
|
|
@@ -11,50 +11,50 @@
|
|
|
11
11
|
{
|
|
12
12
|
"source": "src/common-auth-embedded/quota/map.js",
|
|
13
13
|
"output": "src/tui-ga-raw/shared/77138df80c7ae006-map.js",
|
|
14
|
-
"bytes":
|
|
15
|
-
"sha256": "
|
|
14
|
+
"bytes": 5669,
|
|
15
|
+
"sha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
16
16
|
"transform": "public-raw"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"source": "src/common-auth-embedded/quota/merge.js",
|
|
20
20
|
"output": "src/tui-ga-raw/shared/ecc214300932dfb6-merge.js",
|
|
21
|
-
"bytes":
|
|
22
|
-
"sha256": "
|
|
21
|
+
"bytes": 7456,
|
|
22
|
+
"sha256": "b8a301cb82e3957a80bb3f5169497fad38e584ddbe4b5e0812df3263dd736a30",
|
|
23
23
|
"transform": "public-raw"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"source": "src/common-auth-embedded/quota/codec.js",
|
|
27
27
|
"output": "src/tui-ga-raw/shared/ca21dc417b36dc5d-codec.js",
|
|
28
|
-
"bytes":
|
|
29
|
-
"sha256": "
|
|
28
|
+
"bytes": 525,
|
|
29
|
+
"sha256": "74531bd8985168a13f77ffe7693faae3e8cad87a42fb684b60fa01bb9c4dbd30",
|
|
30
30
|
"transform": "public-raw"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"source": "src/common-auth-embedded/quota/format.js",
|
|
34
34
|
"output": "src/tui-ga-raw/shared/aef2402f8fc342f0-format.js",
|
|
35
|
-
"bytes":
|
|
36
|
-
"sha256": "
|
|
35
|
+
"bytes": 7334,
|
|
36
|
+
"sha256": "390b5d8474db7cfc8f6f61b6c2e8aea1d8dd19e02a1dc66e93956378db2bce9c",
|
|
37
37
|
"transform": "public-raw"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"source": "src/common-auth-embedded/quota/projection.js",
|
|
41
41
|
"output": "src/tui-ga-raw/shared/1ff34afa7c42d196-projection.js",
|
|
42
|
-
"bytes":
|
|
43
|
-
"sha256": "
|
|
42
|
+
"bytes": 5657,
|
|
43
|
+
"sha256": "5256f704683c441a24fdb5a507600d82c41f6dab90037854efdfd5845f61d23d",
|
|
44
44
|
"transform": "public-raw"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"source": "src/common-auth-embedded/quota/index.js",
|
|
48
48
|
"output": "src/tui-ga-raw/shared/bf17cbee28e58197-index.js",
|
|
49
|
-
"bytes":
|
|
50
|
-
"sha256": "
|
|
49
|
+
"bytes": 582,
|
|
50
|
+
"sha256": "8e7bc90dbe700d9117588b07dc2ebc3badfe4191c701e34e57d42537096bf2b2",
|
|
51
51
|
"transform": "public-raw"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"source": "src/quota-presentation.ts",
|
|
55
55
|
"output": "src/tui-ga-raw/shared/98cc0c186c46c42d-quota-presentation.js",
|
|
56
|
-
"bytes":
|
|
57
|
-
"sha256": "
|
|
56
|
+
"bytes": 2418,
|
|
57
|
+
"sha256": "7cca1d2f7993bb2829a8f73c5a92c63607cf7e94777d188b087bcd057dfe90cc",
|
|
58
58
|
"transform": "public-raw"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
{
|
|
82
82
|
"source": "src/ga/tui/host-ga.tsx",
|
|
83
83
|
"output": "src/tui-ga-raw/host-ga.tsx",
|
|
84
|
-
"bytes":
|
|
85
|
-
"sha256": "
|
|
84
|
+
"bytes": 55361,
|
|
85
|
+
"sha256": "d633350ddeb7d3ac2c39df0c5e7c8c916022c56185f8f12cff17fd5d12a9e720",
|
|
86
86
|
"transform": "public-raw"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
@@ -101,50 +101,50 @@
|
|
|
101
101
|
{
|
|
102
102
|
"source": "src/common-auth-embedded/quota/map.js",
|
|
103
103
|
"output": "src/tui-ga-compiled/shared/77138df80c7ae006-map.js",
|
|
104
|
-
"bytes":
|
|
105
|
-
"sha256": "
|
|
104
|
+
"bytes": 5669,
|
|
105
|
+
"sha256": "95339af4c80684b4e462f5ba32affeaa5f8b5885db599dc5e8ac1ffd1890d729",
|
|
106
106
|
"transform": "public-solid-runtime"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
"source": "src/common-auth-embedded/quota/merge.js",
|
|
110
110
|
"output": "src/tui-ga-compiled/shared/ecc214300932dfb6-merge.js",
|
|
111
|
-
"bytes":
|
|
112
|
-
"sha256": "
|
|
111
|
+
"bytes": 7456,
|
|
112
|
+
"sha256": "b8a301cb82e3957a80bb3f5169497fad38e584ddbe4b5e0812df3263dd736a30",
|
|
113
113
|
"transform": "public-solid-runtime"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"source": "src/common-auth-embedded/quota/codec.js",
|
|
117
117
|
"output": "src/tui-ga-compiled/shared/ca21dc417b36dc5d-codec.js",
|
|
118
|
-
"bytes":
|
|
119
|
-
"sha256": "
|
|
118
|
+
"bytes": 525,
|
|
119
|
+
"sha256": "74531bd8985168a13f77ffe7693faae3e8cad87a42fb684b60fa01bb9c4dbd30",
|
|
120
120
|
"transform": "public-solid-runtime"
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"source": "src/common-auth-embedded/quota/format.js",
|
|
124
124
|
"output": "src/tui-ga-compiled/shared/aef2402f8fc342f0-format.js",
|
|
125
|
-
"bytes":
|
|
126
|
-
"sha256": "
|
|
125
|
+
"bytes": 7334,
|
|
126
|
+
"sha256": "390b5d8474db7cfc8f6f61b6c2e8aea1d8dd19e02a1dc66e93956378db2bce9c",
|
|
127
127
|
"transform": "public-solid-runtime"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"source": "src/common-auth-embedded/quota/projection.js",
|
|
131
131
|
"output": "src/tui-ga-compiled/shared/1ff34afa7c42d196-projection.js",
|
|
132
|
-
"bytes":
|
|
133
|
-
"sha256": "
|
|
132
|
+
"bytes": 5657,
|
|
133
|
+
"sha256": "5256f704683c441a24fdb5a507600d82c41f6dab90037854efdfd5845f61d23d",
|
|
134
134
|
"transform": "public-solid-runtime"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"source": "src/common-auth-embedded/quota/index.js",
|
|
138
138
|
"output": "src/tui-ga-compiled/shared/bf17cbee28e58197-index.js",
|
|
139
|
-
"bytes":
|
|
140
|
-
"sha256": "
|
|
139
|
+
"bytes": 582,
|
|
140
|
+
"sha256": "8e7bc90dbe700d9117588b07dc2ebc3badfe4191c701e34e57d42537096bf2b2",
|
|
141
141
|
"transform": "public-solid-runtime"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"source": "src/quota-presentation.ts",
|
|
145
145
|
"output": "src/tui-ga-compiled/shared/98cc0c186c46c42d-quota-presentation.js",
|
|
146
|
-
"bytes":
|
|
147
|
-
"sha256": "
|
|
146
|
+
"bytes": 2418,
|
|
147
|
+
"sha256": "7cca1d2f7993bb2829a8f73c5a92c63607cf7e94777d188b087bcd057dfe90cc",
|
|
148
148
|
"transform": "public-solid-runtime"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
@@ -171,8 +171,8 @@
|
|
|
171
171
|
{
|
|
172
172
|
"source": "src/ga/tui/host-ga.tsx",
|
|
173
173
|
"output": "src/tui-ga-compiled/host-ga.js",
|
|
174
|
-
"bytes":
|
|
175
|
-
"sha256": "
|
|
174
|
+
"bytes": 46935,
|
|
175
|
+
"sha256": "3d9e4dda9b48e6849266369e284987017850a86acfd1ddb07c0b0a243a7700c4",
|
|
176
176
|
"transform": "public-solid-runtime"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-method-labels.d.ts","sourceRoot":"","sources":["../../../src/auth-method-labels.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,4CACK,CAAA;AAC3C,eAAO,MAAM,0BAA0B,mCAAmC,CAAA"}
|
package/dist/types/src/cli.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type AccountMetadataV3, type AccountMigrationOutcome, type AccountQuotaResult, type AccountRow, type AccountStorageV4 } from '@cortexkit/antigravity-auth-core';
|
|
2
|
+
import type { SetupCallbackContext, SetupHost, SetupIO } from './common-auth-embedded/setup/index.js';
|
|
2
3
|
import { type AntigravityTokenExchangeSuccess, type OAuthLoginRequest, performOAuthLogin } from './plugin/oauth-login.js';
|
|
3
4
|
interface WritableOutput {
|
|
4
5
|
write(value: string): unknown;
|
|
@@ -9,13 +10,14 @@ export interface CliDependencies {
|
|
|
9
10
|
prompt(message: string): Promise<string>;
|
|
10
11
|
openBrowser(url: string): Promise<void>;
|
|
11
12
|
isHeadless?(): boolean;
|
|
12
|
-
performLogin(request: OAuthLoginRequest, openBrowser: (url: string) => Promise<void
|
|
13
|
+
performLogin(request: OAuthLoginRequest, openBrowser: (url: string) => Promise<void>, host?: SetupHost, context?: SetupCallbackContext): Promise<AntigravityTokenExchangeSuccess>;
|
|
13
14
|
loadAccounts(): Promise<AccountStorageV4 | null>;
|
|
14
15
|
getQuota(accounts: AccountMetadataV3[], options: {
|
|
15
16
|
refresh: boolean;
|
|
16
17
|
}): Promise<AccountQuotaResult[]>;
|
|
17
18
|
/** Offline operations on the account store; see `AccountStoreOperations`. */
|
|
18
19
|
accountStore: AccountStoreOperations;
|
|
20
|
+
setupIO?: SetupIO;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* The offline account-store operations, each bound to the canonical
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/cli.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EACf,KAAK,gBAAgB,EAQtB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,KAAK,EACV,oBAAoB,EACpB,SAAS,EACT,OAAO,EACR,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,iBAAiB,EACtB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAiB7B,UAAU,cAAc;IACtB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAC9B;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,EAAE,cAAc,CAAA;IACtB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACxC,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACvC,UAAU,CAAC,IAAI,OAAO,CAAA;IACtB,YAAY,CACV,OAAO,EAAE,iBAAiB,EAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EAC3C,IAAI,CAAC,EAAE,SAAS,EAChB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAAA;IAC3C,YAAY,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAA;IAChD,QAAQ,CACN,QAAQ,EAAE,iBAAiB,EAAE,EAC7B,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAC5B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAA;IAChC,6EAA6E;IAC7E,YAAY,EAAE,sBAAsB,CAAA;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,UAAU,IAAI,MAAM,CAAA;IACpB,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAC7D,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAC9D,UAAU,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAA;IAChE,+DAA+D;IAC/D,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;CACnD;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAiN3C,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CAsHjB;AAcD,wBAAgB,4BAA4B,IAAI,eAAe,CAiE9D;AAmED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,iBAAiB,CAoC/D;AAqDD;;;;;GAKG;AACH,wBAAgB,mCAAmC,IAAI,sBAAsB,CAuB5E;AAsBD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The terminal the menu draws on and reads keys from. The process's own
|
|
3
|
+
* stdin and stdout satisfy it; tests pass a scripted stand-in, so the full
|
|
4
|
+
* key-in, frame-out path runs without a real TTY.
|
|
5
|
+
*/
|
|
6
|
+
export interface MenuTerminal {
|
|
7
|
+
input: MenuInput;
|
|
8
|
+
output: MenuOutput;
|
|
9
|
+
/**
|
|
10
|
+
* Where SIGINT and SIGTERM are heard while a selector holds raw mode, so a
|
|
11
|
+
* kill restores the terminal. Defaults to nothing: raw mode turns Ctrl-C
|
|
12
|
+
* into a key the selector already handles.
|
|
13
|
+
*/
|
|
14
|
+
signals?: MenuSignals;
|
|
15
|
+
}
|
|
16
|
+
export interface MenuInput {
|
|
17
|
+
/** True only on an interactive terminal; anything else gets a plain list. */
|
|
18
|
+
readonly isTTY?: boolean;
|
|
19
|
+
readonly isRaw?: boolean;
|
|
20
|
+
setRawMode(mode: boolean): unknown;
|
|
21
|
+
resume(): unknown;
|
|
22
|
+
pause(): unknown;
|
|
23
|
+
on(event: 'data', listener: (data: Buffer | string) => void): unknown;
|
|
24
|
+
removeListener(event: 'data', listener: (data: Buffer | string) => void): unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface MenuOutput {
|
|
27
|
+
write(text: string): unknown;
|
|
28
|
+
readonly columns?: number;
|
|
29
|
+
readonly rows?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface MenuSignals {
|
|
32
|
+
once(signal: 'SIGINT' | 'SIGTERM', listener: () => void): unknown;
|
|
33
|
+
removeListener(signal: 'SIGINT' | 'SIGTERM', listener: () => void): unknown;
|
|
34
|
+
}
|
|
35
|
+
/** The current process's terminal, with its signals. */
|
|
36
|
+
export declare function processTerminal(): MenuTerminal;
|
|
37
|
+
/**
|
|
38
|
+
* Whether keys can be read one at a time. Only the input is checked, as the
|
|
39
|
+
* plugins' menus always did: output piped to a file still gets the menu.
|
|
40
|
+
*/
|
|
41
|
+
export declare function isInteractive(terminal: MenuTerminal): boolean;
|
|
42
|
+
/** Writes one line of plain output below the menu. */
|
|
43
|
+
export declare function printLine(terminal: MenuTerminal, line?: string): void;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { ClaustrumReporterSource } from '@cortexkit/claustrum-client';
|
|
2
|
+
import type { QuotaObservation } from '../quota/index.js';
|
|
3
|
+
import type { RoutingRow } from '../routing/index.js';
|
|
4
|
+
import { type ClaustrumFamily, type ClaustrumScopedAttempt, type ClaustrumScopedClient, type IdentityParser } from './custody.js';
|
|
5
|
+
import { type ClaustrumLogger } from './errors.js';
|
|
6
|
+
import { type InsulaQuotaOptions } from './insula.js';
|
|
7
|
+
import { type AccountMapper, type QuotaReceipt, type VaultRosterFile } from './roster.js';
|
|
8
|
+
export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
|
|
9
|
+
/**
|
|
10
|
+
* The roster file: one row per vault account (route id, credential id,
|
|
11
|
+
* account identity, state, quota), plus the accounts the user declined. It
|
|
12
|
+
* never holds a token.
|
|
13
|
+
*/
|
|
14
|
+
rosterPath: string;
|
|
15
|
+
/** This host's enrollment token, written by setup. */
|
|
16
|
+
tokenPath: string;
|
|
17
|
+
family: ClaustrumFamily;
|
|
18
|
+
connect: () => Promise<ClaustrumScopedClient>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the plugin currently takes its accounts from the vault (custody
|
|
21
|
+
* mode) rather than from local logins. Checked before every discovery,
|
|
22
|
+
* commit and dispatch; false closes the vault connection and refuses sends.
|
|
23
|
+
*/
|
|
24
|
+
isCustodyActive?: () => boolean | Promise<boolean>;
|
|
25
|
+
/** Ids of the plugin's local pool rows; no vault route id may equal one. */
|
|
26
|
+
reservedRouteIds?: () => Iterable<string>;
|
|
27
|
+
routePrefix?: string;
|
|
28
|
+
mapAccount?: AccountMapper;
|
|
29
|
+
parseIdentity?: IdentityParser;
|
|
30
|
+
/**
|
|
31
|
+
* Issue a receipt only when the vault's served reply itself names the
|
|
32
|
+
* credential id and the roster's account identity (see
|
|
33
|
+
* `ClaustrumScopedCustody`). Set it for providers whose tokens do not reveal
|
|
34
|
+
* their account; leave it unset to accept a reply that asserts no identity.
|
|
35
|
+
*/
|
|
36
|
+
requireAssertion?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Fired once per change of the vault's view cursor, including the first
|
|
39
|
+
* roster. A poll that sees the same view does not fire, and neither does a
|
|
40
|
+
* routine token refresh, which never moves the view.
|
|
41
|
+
*/
|
|
42
|
+
onRoster?: (roster: VaultRosterFile) => void;
|
|
43
|
+
onError?: (error: unknown) => void;
|
|
44
|
+
pollIntervalMs?: number;
|
|
45
|
+
setTimeoutImpl?: typeof setTimeout;
|
|
46
|
+
clearTimeoutImpl?: typeof clearTimeout;
|
|
47
|
+
now?: () => number;
|
|
48
|
+
logger?: ClaustrumLogger;
|
|
49
|
+
/** Optional background quota source. In-band readings still use recordQuota. */
|
|
50
|
+
insula?: InsulaQuotaOptions<Q>;
|
|
51
|
+
}
|
|
52
|
+
export interface SendOptions {
|
|
53
|
+
/**
|
|
54
|
+
* What kind of request this is (for example `model`, `quota`, `profile`),
|
|
55
|
+
* recorded in the 401 retry log line so a retry can be traced to its caller.
|
|
56
|
+
*/
|
|
57
|
+
site: string;
|
|
58
|
+
signal?: AbortSignal;
|
|
59
|
+
reporterSource?: ClaustrumReporterSource;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* One plugin host's view of its vault accounts. It turns vault credentials
|
|
63
|
+
* into rows for `/routing`, authorizes each physical send with the vault, and
|
|
64
|
+
* reports a 401 against the exact record version that send used. Metadata
|
|
65
|
+
* (the connection and discovery) is shared and coalesced; credential reads
|
|
66
|
+
* never are. It never enrolls: a missing token is an error here, and setup
|
|
67
|
+
* is where enrollment happens.
|
|
68
|
+
*/
|
|
69
|
+
export declare class ClaustrumConsumer<Q = QuotaObservation> {
|
|
70
|
+
#private;
|
|
71
|
+
constructor(options: ClaustrumConsumerOptions<Q>);
|
|
72
|
+
/** The last committed roster this instance saw, without any I/O. */
|
|
73
|
+
snapshot(): VaultRosterFile | undefined;
|
|
74
|
+
/** Rows for `/routing`, from the last committed roster. */
|
|
75
|
+
routingRows(): RoutingRow[];
|
|
76
|
+
refresh(): Promise<VaultRosterFile | undefined>;
|
|
77
|
+
start(): void;
|
|
78
|
+
/**
|
|
79
|
+
* Fetch on a background tick, at most once per minute across projects with
|
|
80
|
+
* the same daemon and enrollment token path. Admission must use the cache
|
|
81
|
+
* instead, so an optional quota daemon never delays a provider request.
|
|
82
|
+
*/
|
|
83
|
+
refreshInsulaQuota(): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Cache-only, for unknown-quota admission with a served receipt. Undefined
|
|
86
|
+
* means poll the provider normally. Only get_scoped's asserted account_id
|
|
87
|
+
* joins insula; parsed identities and display metadata cannot substitute.
|
|
88
|
+
* Background polling should use cachedInsulaQuotaForRoute instead.
|
|
89
|
+
*/
|
|
90
|
+
cachedInsulaQuota(receipt: Pick<ClaustrumScopedAttempt, 'assertedAccountIdentity'>): Promise<Q | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* Background cache lookup without fetching a credential. Re-read the roster
|
|
93
|
+
* so a peer's account replacement invalidates the old route immediately.
|
|
94
|
+
* A route without a known provider account cannot join an insula entry.
|
|
95
|
+
*/
|
|
96
|
+
cachedInsulaQuotaForRoute(routeId: string): Promise<Q | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* Authorize one physical send on a vault route. The roster file is re-read
|
|
99
|
+
* first, so a decline committed by another process applies before the next
|
|
100
|
+
* poll, and a route whose credential or account changed is refused.
|
|
101
|
+
*/
|
|
102
|
+
authorize(routeId: string, signal?: AbortSignal): Promise<ClaustrumScopedAttempt>;
|
|
103
|
+
reportFailure(attempt: ClaustrumScopedAttempt, status: number, source: ClaustrumReporterSource): Promise<void>;
|
|
104
|
+
/**
|
|
105
|
+
* Send on a vault route. `dispatch` builds and sends the request with the
|
|
106
|
+
* receipt's token and may be called twice, so it must be able to rebuild
|
|
107
|
+
* its body. A 401 is retried once, and only when the vault now serves a new
|
|
108
|
+
* record version of the same credential and account; the final 401 is
|
|
109
|
+
* reported against the version that send actually used. Each call to
|
|
110
|
+
* `dispatch` gets its own receipt.
|
|
111
|
+
*/
|
|
112
|
+
send(routeId: string, dispatch: (attempt: ClaustrumScopedAttempt, signal?: AbortSignal) => Promise<Response>, options: SendOptions): Promise<Response>;
|
|
113
|
+
/** Decline a vault account: it stays listed and never routes until accepted. */
|
|
114
|
+
decline(routeId: string): Promise<void>;
|
|
115
|
+
accept(routeId: string): Promise<void>;
|
|
116
|
+
/**
|
|
117
|
+
* Store a quota or profile observation for a vault route. The receipt the
|
|
118
|
+
* reading was taken with is required: the observation lands only while the
|
|
119
|
+
* route still holds the credential and account that receipt was served for
|
|
120
|
+
* (see `recordVaultQuota`), so a reading for a replaced account is dropped.
|
|
121
|
+
*/
|
|
122
|
+
recordQuota(routeId: string, observation: QuotaObservation, attempt: QuotaReceipt): Promise<boolean>;
|
|
123
|
+
/**
|
|
124
|
+
* Store a background observation that belongs to an account rather than to
|
|
125
|
+
* a served credential (an insula reading from `cachedInsulaQuotaForRoute`).
|
|
126
|
+
* It lands only while the route is still bound to that known account, so no
|
|
127
|
+
* credential fetch is needed and a replaced account's reading is dropped.
|
|
128
|
+
* The in-memory roster is reloaded from the file, without a vault call.
|
|
129
|
+
*/
|
|
130
|
+
recordAccountQuota(routeId: string, accountIdentity: string, observation: QuotaObservation): Promise<boolean>;
|
|
131
|
+
close(): void;
|
|
132
|
+
}
|