@cortexkit/opencode-antigravity-auth 3.0.5 → 3.0.7
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 +13757 -12857
- package/dist/cli.js.map +4 -4
- package/dist/cli.meta.json +1362 -1056
- package/dist/index.js +16038 -16162
- package/dist/index.js.map +4 -4
- package/dist/index.meta.json +1447 -1375
- package/dist/server.js +11254 -10921
- 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 +44 -4
- package/dist/src/common-auth-embedded/claustrum/consumer.js +134 -2
- package/dist/src/common-auth-embedded/claustrum/custody.d.ts +33 -1
- package/dist/src/common-auth-embedded/claustrum/custody.js +17 -0
- 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 +3 -2
- 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.d.ts +8 -2
- package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +26 -12
- package/dist/src/common-auth-embedded/pi-slot/lock.js +7 -3
- 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 +40 -3
- package/dist/src/common-auth-embedded/quota/format.js +196 -43
- 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-error.d.ts +32 -0
- package/dist/src/common-auth-embedded/setup/command-error.js +79 -0
- package/dist/src/common-auth-embedded/setup/command-runner.js +143 -0
- package/dist/src/common-auth-embedded/setup/command.d.ts +3 -0
- package/dist/src/common-auth-embedded/setup/command.js +271 -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 +82 -0
- package/dist/src/common-auth-embedded/setup/index.d.ts +6 -0
- package/dist/src/common-auth-embedded/setup/index.js +5 -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 +136 -0
- package/dist/src/common-auth-embedded/setup/types.d.ts +150 -0
- package/dist/src/common-auth-embedded/source-output.json +265 -101
- package/dist/src/common-auth-embedded/store/pool.d.ts +1 -1
- package/dist/src/common-auth-embedded/store/pool.js +0 -1
- package/dist/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
- package/dist/src/common-auth-embedded/store/refresh-lock.js +0 -1
- 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 +218 -55
- 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 +54 -52
- 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 +2 -44
- 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 +124 -43
- package/dist/src/plugin/ga-location-services.js.map +1 -1
- package/dist/src/plugin/gemini-dump.d.ts.map +1 -1
- package/dist/src/plugin/gemini-dump.js +2 -5
- package/dist/src/plugin/gemini-dump.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 +18 -7
- package/dist/src/plugin/index.js.map +1 -1
- package/dist/src/plugin/logging-utils.d.ts.map +1 -1
- package/dist/src/plugin/logging-utils.js +2 -5
- package/dist/src/plugin/logging-utils.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 +6 -5
- package/dist/src/plugin/request.d.ts.map +1 -1
- package/dist/src/plugin/request.js +95 -180
- 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 +27 -26
- package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/src/plugin/shared/request-services.js +244 -245
- 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 +16 -4
- package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
- package/dist/src/plugin/shared/vault-request-credentials.js +44 -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 +14 -1
- package/dist/src/plugin/vault-custody.d.ts.map +1 -1
- package/dist/src/plugin/vault-custody.js +203 -44
- 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 +5 -1
- package/dist/src/sidebar-projection.d.ts.map +1 -1
- package/dist/src/sidebar-projection.js +6 -2
- package/dist/src/sidebar-projection.js.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/quota-layout.d.ts +94 -0
- package/dist/src/tui/quota-layout.d.ts.map +1 -0
- package/dist/src/tui/quota-layout.js +139 -0
- package/dist/src/tui/quota-layout.js.map +1 -0
- package/dist/src/tui/route-layout.d.ts +8 -0
- package/dist/src/tui/route-layout.d.ts.map +1 -0
- package/dist/src/tui/route-layout.js +36 -0
- package/dist/src/tui/route-layout.js.map +1 -0
- package/dist/src/tui.d.ts.map +1 -1
- package/dist/src/tui.js +120 -127
- package/dist/src/tui.js.map +1 -1
- package/dist/tui-build-map.json +66 -37
- package/dist/tui-ga-build-map.json +66 -37
- 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 +142 -0
- package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +207 -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/fs/refresh-file-lock.d.ts +8 -2
- 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 +40 -3
- 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-error.d.ts +32 -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 +6 -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 +150 -0
- package/dist/types/src/common-auth-embedded/store/pool.d.ts +1 -1
- package/dist/types/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
- 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/gemini-dump.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/logging-utils.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 +6 -5
- 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 +27 -26
- package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +16 -4
- 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 +14 -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 +44 -4
- package/src/common-auth-embedded/claustrum/consumer.js +134 -2
- package/src/common-auth-embedded/claustrum/custody.d.ts +33 -1
- package/src/common-auth-embedded/claustrum/custody.js +17 -0
- 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 +3 -2
- 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.d.ts +8 -2
- package/src/common-auth-embedded/fs/refresh-file-lock.js +26 -12
- package/src/common-auth-embedded/pi-slot/lock.js +7 -3
- 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 +40 -3
- package/src/common-auth-embedded/quota/format.js +196 -43
- 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-error.d.ts +32 -0
- package/src/common-auth-embedded/setup/command-error.js +79 -0
- package/src/common-auth-embedded/setup/command-runner.js +143 -0
- package/src/common-auth-embedded/setup/command.d.ts +3 -0
- package/src/common-auth-embedded/setup/command.js +271 -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 +82 -0
- package/src/common-auth-embedded/setup/index.d.ts +6 -0
- package/src/common-auth-embedded/setup/index.js +5 -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 +136 -0
- package/src/common-auth-embedded/setup/types.d.ts +150 -0
- package/src/common-auth-embedded/source-output.json +265 -101
- package/src/common-auth-embedded/store/pool.d.ts +1 -1
- package/src/common-auth-embedded/store/pool.js +0 -1
- package/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
- package/src/common-auth-embedded/store/refresh-lock.js +0 -1
- 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 +196 -43
- 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/quota-layout.js +378 -0
- package/src/tui-compiled/tui/route-layout.js +30 -0
- package/src/tui-compiled/tui.js +271 -371
- package/src/tui-ga-compiled/host-ga.js +93 -90
- package/src/tui-ga-compiled/shared/1ff34afa7c42d196-projection.js +3 -1
- package/src/tui-ga-compiled/shared/6ca47cd4ec33fe72-route-layout.js +30 -0
- package/src/tui-ga-compiled/shared/77138df80c7ae006-map.js +36 -1
- package/src/tui-ga-compiled/shared/8ae1927e5910ea81-sidebar-projection.js +2 -2
- package/src/tui-ga-compiled/shared/98cc0c186c46c42d-quota-presentation.js +42 -9
- package/src/tui-ga-compiled/shared/aef2402f8fc342f0-format.js +196 -43
- 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/dd4c9e1a907f8ef0-quota-layout.js +378 -0
- package/src/tui-ga-compiled/shared/ecc214300932dfb6-merge.js +21 -5
- package/src/tui-ga-raw/host-ga.tsx +102 -92
- package/src/tui-ga-raw/shared/1ff34afa7c42d196-projection.js +3 -1
- package/src/tui-ga-raw/shared/6ca47cd4ec33fe72-route-layout.js +30 -0
- package/src/tui-ga-raw/shared/77138df80c7ae006-map.js +36 -1
- package/src/tui-ga-raw/shared/8ae1927e5910ea81-sidebar-projection.js +2 -2
- package/src/tui-ga-raw/shared/98cc0c186c46c42d-quota-presentation.js +42 -9
- package/src/tui-ga-raw/shared/aef2402f8fc342f0-format.js +196 -43
- 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/dd4c9e1a907f8ef0-quota-layout.tsx +391 -0
- 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 +196 -43
- 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/quota-layout.tsx +391 -0
- package/src/tui-raw/tui/route-layout.js +30 -0
- package/src/tui-raw/tui.tsx +218 -272
- package/src/tui.tsx +218 -272
- 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/src/tui-compiled/tui.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { createTextNode as _$createTextNode } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
1
|
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
|
+
import { createTextNode as _$createTextNode } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
3
|
+
import { use as _$use } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
3
4
|
import { createComponent as _$createComponent } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
4
5
|
import { effect as _$effect } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
5
6
|
import { insertNode as _$insertNode } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
@@ -21,16 +22,20 @@ import { createElement as _$createElement } from "opentui:runtime-module:%40open
|
|
|
21
22
|
* score, and per-session routing decisions), so the fleet components are
|
|
22
23
|
* adapted rather than copied verbatim:
|
|
23
24
|
*
|
|
24
|
-
* -
|
|
25
|
-
*
|
|
26
|
-
*
|
|
25
|
+
* - The quota rows come from `tui/quota-layout.tsx`, shared with the
|
|
26
|
+
* OpenCode 2 sidebar: each window reads `remainingPercent + resetAt` from
|
|
27
|
+
* the Antigravity `SidebarQuotaEntry` shape, is colored via `quotaTone`
|
|
28
|
+
* (remaining threshold) instead of `usageTone` (used threshold), and is
|
|
29
|
+
* one line sized from the measured sidebar width.
|
|
27
30
|
* - `AccountBlock` derives its status word (`active` / `idle` /
|
|
28
|
-
* `cooling` / `off`
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* `cooling` / `off`) from the Antigravity account state; the shared block
|
|
32
|
+
* shows the reading age once per account and groups windows under
|
|
33
|
+
* `Gemini` and `Other models` headers. The routing health score is not
|
|
34
|
+
* shown.
|
|
35
|
+
* - `Routing` shows the mounted session's most recent `activeRouting`
|
|
36
|
+
* entry, or `No request yet` before the session's first request, since
|
|
37
|
+
* Antigravity does not maintain a per-session sidebar state alongside the
|
|
38
|
+
* slot-rendered tree.
|
|
34
39
|
*
|
|
35
40
|
* Hard rules for this file:
|
|
36
41
|
*
|
|
@@ -48,11 +53,13 @@ import { dirname, join } from "node:path";
|
|
|
48
53
|
import { fileURLToPath } from "node:url";
|
|
49
54
|
import { createSlot } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
50
55
|
import { createSignal, For, onCleanup, onMount, Show } from "opentui:runtime-module:solid-js";
|
|
51
|
-
import {
|
|
56
|
+
import { NO_QUOTA_READING } from "./quota-presentation.js";
|
|
52
57
|
import { getRpcDir } from "./rpc/rpc-dir.js";
|
|
53
58
|
import { readSidebarState } from "./sidebar-state.js";
|
|
54
59
|
import { createTuiFileLogger } from "./tui/file-logger.js";
|
|
55
60
|
import { createV1MenuTransport, dispatchV1Notification } from "./tui/host-v1.js";
|
|
61
|
+
import { ASSUMED_CONTENT_WIDTH, accountWindows, fitLabel, QuotaAccountBlock, quotaTone, RESET_SINCE_READING, showsFigure } from "./tui/quota-layout.js";
|
|
62
|
+
import { routeLineFits } from "./tui/route-layout.js";
|
|
56
63
|
import { computeEffectiveOrder, DEFAULT_PREFS, DEFAULT_SLOT_ORDER, PLUGIN_KEY, queueTuiPreferenceUpdate, readTuiPreferencesFile, resolveAntigravityAuthPrefs, watchTuiPreferences } from "./tui-preferences.js";
|
|
57
64
|
const ID = 'cortexkit.antigravity-auth';
|
|
58
65
|
const POLL_INTERVAL_MS = 2000;
|
|
@@ -98,16 +105,12 @@ const dispatchedNotificationIds = new Set();
|
|
|
98
105
|
let rpcInFlight = false;
|
|
99
106
|
const GLOBAL_NOTIFICATION_CURSOR = '__global__';
|
|
100
107
|
const MAX_NOTIFICATION_CURSORS = 256;
|
|
101
|
-
const QUOTA_LABELS = {
|
|
102
|
-
gemini: 'Gm',
|
|
103
|
-
'non-gemini': 'NG'
|
|
104
|
-
};
|
|
105
|
-
const QUOTA_ORDER = ['gemini', 'non-gemini'];
|
|
106
|
-
const WINDOW_GUTTER = {
|
|
107
|
-
weekly: '7d',
|
|
108
|
-
'5h': '5h'
|
|
109
|
-
};
|
|
110
108
|
|
|
109
|
+
// The collapsed row has room for one word before the window name.
|
|
110
|
+
const COLLAPSED_GROUP_NAMES = {
|
|
111
|
+
gemini: 'Gemini',
|
|
112
|
+
'non-gemini': 'Other'
|
|
113
|
+
};
|
|
111
114
|
// --- Theme tokens ----------------------------------------------------------
|
|
112
115
|
//
|
|
113
116
|
// The sidebar pulls its colors from the live host theme (`api.theme.current`
|
|
@@ -195,22 +198,16 @@ function toneColor(theme, tone) {
|
|
|
195
198
|
return theme.text;
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
text: appearance.barFilledChar.repeat(usedCells),
|
|
209
|
-
tone
|
|
210
|
-
}, {
|
|
211
|
-
text: appearance.barEmptyChar.repeat(width - usedCells),
|
|
212
|
-
tone
|
|
213
|
-
}].filter(segment => segment.text.length > 0);
|
|
201
|
+
|
|
202
|
+
// The shared quota layout reads its colors through this palette. Muted text
|
|
203
|
+
// and the account label read `textMuted` and `text` straight from the theme,
|
|
204
|
+
// without the `toneColor` fallback chain.
|
|
205
|
+
function themePalette(theme) {
|
|
206
|
+
return {
|
|
207
|
+
text: () => theme().text,
|
|
208
|
+
muted: () => theme().textMuted,
|
|
209
|
+
tone: tone => toneColor(theme(), tone)
|
|
210
|
+
};
|
|
214
211
|
}
|
|
215
212
|
const EMPTY_STATE = {
|
|
216
213
|
version: 2,
|
|
@@ -314,12 +311,6 @@ function getSidebarController() {
|
|
|
314
311
|
|
|
315
312
|
// --- Shared helpers (fleet shape, antigravity data) ------------------------
|
|
316
313
|
|
|
317
|
-
function clamp(value, min, max) {
|
|
318
|
-
if (value < min) return min;
|
|
319
|
-
if (value > max) return max;
|
|
320
|
-
return value;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
314
|
// Render a "reset in Nm/Nh/NdNh" string from an epoch-ms reset time.
|
|
324
315
|
// Empty string when no resetAt is cached. The fleet's `formatResetIn`
|
|
325
316
|
// reads ISO strings; Antigravity persists resetAt as a numeric epoch, so
|
|
@@ -398,11 +389,9 @@ function StatRow(props) {
|
|
|
398
389
|
})();
|
|
399
390
|
}
|
|
400
391
|
|
|
401
|
-
// Fleet CollapsedRow: muted label left, caller-supplied value right.
|
|
402
|
-
//
|
|
403
|
-
//
|
|
404
|
-
// single primary-quota line, but Antigravity's multi-quota model fits a
|
|
405
|
-
// per-account row better when the sidebar is collapsed).
|
|
392
|
+
// Fleet CollapsedRow: muted label left, caller-supplied value right. The
|
|
393
|
+
// collapsed view renders one for the active account. The caller sizes both
|
|
394
|
+
// sides to the measured width, so neither side may wrap.
|
|
406
395
|
function CollapsedRow(props) {
|
|
407
396
|
return (() => {
|
|
408
397
|
var _el$8 = _$createElement("box"),
|
|
@@ -411,6 +400,8 @@ function CollapsedRow(props) {
|
|
|
411
400
|
_$setProp(_el$8, "width", '100%');
|
|
412
401
|
_$setProp(_el$8, "flexDirection", 'row');
|
|
413
402
|
_$setProp(_el$8, "justifyContent", 'space-between');
|
|
403
|
+
_$setProp(_el$9, "flexShrink", 0);
|
|
404
|
+
_$setProp(_el$9, "wrapMode", 'none');
|
|
414
405
|
_$insert(_el$9, () => props.label);
|
|
415
406
|
_$insert(_el$8, () => props.children, null);
|
|
416
407
|
_$effect(_$p => _$setProp(_el$9, "fg", props.theme().textMuted, _$p));
|
|
@@ -418,225 +409,84 @@ function CollapsedRow(props) {
|
|
|
418
409
|
})();
|
|
419
410
|
}
|
|
420
411
|
|
|
421
|
-
//
|
|
422
|
-
//
|
|
423
|
-
|
|
424
|
-
const parts = () => quotaReadingParts(props.label, props.entry, props.now());
|
|
425
|
-
const remaining = () => parts().remaining;
|
|
426
|
-
const reset = () => parts().detail;
|
|
427
|
-
return _$createComponent(Show, {
|
|
428
|
-
get when() {
|
|
429
|
-
return remaining() != null;
|
|
430
|
-
},
|
|
431
|
-
get fallback() {
|
|
432
|
-
return (() => {
|
|
433
|
-
var _el$14 = _$createElement("box"),
|
|
434
|
-
_el$15 = _$createElement("text"),
|
|
435
|
-
_el$16 = _$createElement("text");
|
|
436
|
-
_$insertNode(_el$14, _el$15);
|
|
437
|
-
_$insertNode(_el$14, _el$16);
|
|
438
|
-
_$setProp(_el$14, "width", '100%');
|
|
439
|
-
_$setProp(_el$14, "flexDirection", 'row');
|
|
440
|
-
_$setProp(_el$14, "justifyContent", 'space-between');
|
|
441
|
-
_$insert(_el$15, () => props.label.padEnd(5));
|
|
442
|
-
_$insert(_el$16, () => parts().figure);
|
|
443
|
-
_$effect(_p$ => {
|
|
444
|
-
var _v$6 = props.theme().textMuted,
|
|
445
|
-
_v$7 = props.theme().textMuted;
|
|
446
|
-
_v$6 !== _p$.e && (_p$.e = _$setProp(_el$15, "fg", _v$6, _p$.e));
|
|
447
|
-
_v$7 !== _p$.t && (_p$.t = _$setProp(_el$16, "fg", _v$7, _p$.t));
|
|
448
|
-
return _p$;
|
|
449
|
-
}, {
|
|
450
|
-
e: undefined,
|
|
451
|
-
t: undefined
|
|
452
|
-
});
|
|
453
|
-
return _el$14;
|
|
454
|
-
})();
|
|
455
|
-
},
|
|
456
|
-
get children() {
|
|
457
|
-
var _el$0 = _$createElement("box"),
|
|
458
|
-
_el$1 = _$createElement("box"),
|
|
459
|
-
_el$10 = _$createElement("text"),
|
|
460
|
-
_el$11 = _$createElement("box"),
|
|
461
|
-
_el$12 = _$createElement("text");
|
|
462
|
-
_$insertNode(_el$0, _el$1);
|
|
463
|
-
_$setProp(_el$0, "width", '100%');
|
|
464
|
-
_$setProp(_el$0, "flexDirection", 'row');
|
|
465
|
-
_$setProp(_el$0, "justifyContent", 'space-between');
|
|
466
|
-
_$insertNode(_el$1, _el$10);
|
|
467
|
-
_$insertNode(_el$1, _el$11);
|
|
468
|
-
_$insertNode(_el$1, _el$12);
|
|
469
|
-
_$setProp(_el$1, "flexDirection", 'row');
|
|
470
|
-
_$setProp(_el$10, "width", 5);
|
|
471
|
-
_$setProp(_el$10, "flexShrink", 0);
|
|
472
|
-
_$insert(_el$10, () => props.label);
|
|
473
|
-
_$setProp(_el$11, "flexShrink", 0);
|
|
474
|
-
_$setProp(_el$11, "flexDirection", 'row');
|
|
475
|
-
_$insert(_el$11, _$createComponent(For, {
|
|
476
|
-
get each() {
|
|
477
|
-
return quotaBarSegments(remaining() ?? 0, props.appearance);
|
|
478
|
-
},
|
|
479
|
-
children: segment => (() => {
|
|
480
|
-
var _el$17 = _$createElement("text");
|
|
481
|
-
_$insert(_el$17, () => segment.text);
|
|
482
|
-
_$effect(_$p => _$setProp(_el$17, "fg", toneColor(props.theme(), segment.tone), _$p));
|
|
483
|
-
return _el$17;
|
|
484
|
-
})()
|
|
485
|
-
}));
|
|
486
|
-
_$insert(_el$12, () => ` ${parts().figure}`);
|
|
487
|
-
_$insert(_el$0, _$createComponent(Show, {
|
|
488
|
-
get when() {
|
|
489
|
-
return reset();
|
|
490
|
-
},
|
|
491
|
-
get children() {
|
|
492
|
-
var _el$13 = _$createElement("text");
|
|
493
|
-
_$insert(_el$13, reset);
|
|
494
|
-
_$effect(_$p => _$setProp(_el$13, "fg", props.theme().textMuted, _$p));
|
|
495
|
-
return _el$13;
|
|
496
|
-
}
|
|
497
|
-
}), null);
|
|
498
|
-
_$effect(_p$ => {
|
|
499
|
-
var _v$3 = props.theme().textMuted,
|
|
500
|
-
_v$4 = props.appearance.barWidth,
|
|
501
|
-
_v$5 = toneColor(props.theme(), quotaTone(100 - (remaining() ?? 0), props.appearance));
|
|
502
|
-
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$10, "fg", _v$3, _p$.e));
|
|
503
|
-
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$11, "width", _v$4, _p$.t));
|
|
504
|
-
_v$5 !== _p$.a && (_p$.a = _$setProp(_el$12, "fg", _v$5, _p$.a));
|
|
505
|
-
return _p$;
|
|
506
|
-
}, {
|
|
507
|
-
e: undefined,
|
|
508
|
-
t: undefined,
|
|
509
|
-
a: undefined
|
|
510
|
-
});
|
|
511
|
-
return _el$0;
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
// Fleet AccountBlock, adapted to Antigravity's per-account data. Header
|
|
517
|
-
// row is account label (left) + status word (right). The body renders one
|
|
518
|
-
// QuotaRow per present quota group in the fleet's stable order, then a
|
|
519
|
-
// muted secondary line with the account's health score and, when
|
|
520
|
-
// relevant, a cooldown countdown. Status word priorities (first match
|
|
521
|
-
// wins):
|
|
412
|
+
// One account in the Quota section: the shared quota block, with the status
|
|
413
|
+
// word computed from the sidebar file's account state. Status word priorities
|
|
414
|
+
// (first match wins):
|
|
522
415
|
// - `off` when the account is disabled
|
|
523
|
-
// - `cooling
|
|
416
|
+
// - `cooling <wait>` when cooldownUntil is still in the future
|
|
524
417
|
// - `active` when current === true
|
|
525
418
|
// - `idle` for the fallback (current === false) case
|
|
526
419
|
function AccountBlock(props) {
|
|
527
420
|
const active = () => props.active ?? props.account.current;
|
|
421
|
+
const cooldownMs = () => {
|
|
422
|
+
const cd = props.account.cooldownUntil;
|
|
423
|
+
if (typeof cd !== 'number') return 0;
|
|
424
|
+
return Math.max(0, cd - props.now());
|
|
425
|
+
};
|
|
528
426
|
const statusWord = () => {
|
|
529
427
|
if (!props.account.enabled) return 'off';
|
|
530
|
-
|
|
531
|
-
if (typeof cd === 'number' && cd > props.now()) return 'cooling';
|
|
428
|
+
if (cooldownMs() > 0) return `cooling ${formatWait(cooldownMs())}`;
|
|
532
429
|
return active() ? 'active' : 'idle';
|
|
533
430
|
};
|
|
534
431
|
const statusTone = () => {
|
|
535
432
|
if (!props.account.enabled) return 'muted';
|
|
536
|
-
|
|
537
|
-
if (typeof cd === 'number' && cd > props.now()) return 'warn';
|
|
433
|
+
if (cooldownMs() > 0) return 'warn';
|
|
538
434
|
return active() ? 'ok' : 'muted';
|
|
539
435
|
};
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
436
|
+
return _$createComponent(QuotaAccountBlock, {
|
|
437
|
+
get palette() {
|
|
438
|
+
return themePalette(props.theme);
|
|
439
|
+
},
|
|
440
|
+
get appearance() {
|
|
441
|
+
return props.appearance;
|
|
442
|
+
},
|
|
443
|
+
get account() {
|
|
444
|
+
return props.account;
|
|
445
|
+
},
|
|
446
|
+
get status() {
|
|
447
|
+
return statusWord();
|
|
448
|
+
},
|
|
449
|
+
get statusTone() {
|
|
450
|
+
return statusTone();
|
|
451
|
+
},
|
|
452
|
+
get now() {
|
|
453
|
+
return props.now;
|
|
454
|
+
},
|
|
455
|
+
get width() {
|
|
456
|
+
return props.width;
|
|
457
|
+
},
|
|
458
|
+
get marginTop() {
|
|
459
|
+
return props.marginTop;
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
// The collapsed row's figure: the lowest current window across both groups.
|
|
464
|
+
// A window that reset since its reading is not current and never binds.
|
|
465
|
+
function collapsedQuota(account, now) {
|
|
466
|
+
if (account.quota.gemini == null && account.quota['non-gemini'] == null) return {
|
|
467
|
+
prefix: '',
|
|
468
|
+
text: '—',
|
|
469
|
+
remaining: null
|
|
544
470
|
};
|
|
545
|
-
const
|
|
546
|
-
|
|
547
|
-
|
|
471
|
+
const windows = accountWindows(account, now);
|
|
472
|
+
let lowest;
|
|
473
|
+
for (const window of windows) {
|
|
474
|
+
if (!showsFigure(window)) continue;
|
|
475
|
+
if (lowest === undefined || (window.text.remaining ?? 100) < (lowest.text.remaining ?? 100)) lowest = window;
|
|
476
|
+
}
|
|
477
|
+
if (lowest) {
|
|
478
|
+
const name = lowest.text.name;
|
|
479
|
+
return {
|
|
480
|
+
prefix: `${COLLAPSED_GROUP_NAMES[lowest.key]}${name ? ` ${name}` : ''} `,
|
|
481
|
+
text: lowest.text.figure,
|
|
482
|
+
remaining: lowest.text.remaining
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
return {
|
|
486
|
+
prefix: '',
|
|
487
|
+
text: windows.some(window => window.text.resetSinceReading) ? RESET_SINCE_READING : NO_QUOTA_READING,
|
|
488
|
+
remaining: null
|
|
548
489
|
};
|
|
549
|
-
return (() => {
|
|
550
|
-
var _el$18 = _$createElement("box"),
|
|
551
|
-
_el$19 = _$createElement("box"),
|
|
552
|
-
_el$20 = _$createElement("text"),
|
|
553
|
-
_el$21 = _$createElement("b"),
|
|
554
|
-
_el$22 = _$createElement("text"),
|
|
555
|
-
_el$23 = _$createElement("b"),
|
|
556
|
-
_el$24 = _$createElement("box"),
|
|
557
|
-
_el$25 = _$createElement("text");
|
|
558
|
-
_$insertNode(_el$18, _el$19);
|
|
559
|
-
_$insertNode(_el$18, _el$24);
|
|
560
|
-
_$setProp(_el$18, "width", '100%');
|
|
561
|
-
_$setProp(_el$18, "flexDirection", 'column');
|
|
562
|
-
_$insertNode(_el$19, _el$20);
|
|
563
|
-
_$insertNode(_el$19, _el$22);
|
|
564
|
-
_$setProp(_el$19, "width", '100%');
|
|
565
|
-
_$setProp(_el$19, "flexDirection", 'row');
|
|
566
|
-
_$setProp(_el$19, "justifyContent", 'space-between');
|
|
567
|
-
_$insertNode(_el$20, _el$21);
|
|
568
|
-
_$insert(_el$21, () => props.account.label);
|
|
569
|
-
_$insertNode(_el$22, _el$23);
|
|
570
|
-
_$insert(_el$23, statusWord);
|
|
571
|
-
_$insert(_el$18, _$createComponent(For, {
|
|
572
|
-
each: QUOTA_ORDER,
|
|
573
|
-
children: key => {
|
|
574
|
-
const poolEntry = props.account.quota[key];
|
|
575
|
-
const windows = poolEntry?.windows;
|
|
576
|
-
// Legacy: no windows array — render a single row with the pool label.
|
|
577
|
-
const hasWindows = windows && windows.length > 0;
|
|
578
|
-
if (!hasWindows) {
|
|
579
|
-
return _$createComponent(QuotaRow, {
|
|
580
|
-
get theme() {
|
|
581
|
-
return props.theme;
|
|
582
|
-
},
|
|
583
|
-
get appearance() {
|
|
584
|
-
return props.appearance;
|
|
585
|
-
},
|
|
586
|
-
get label() {
|
|
587
|
-
return QUOTA_LABELS[key];
|
|
588
|
-
},
|
|
589
|
-
entry: poolEntry,
|
|
590
|
-
get now() {
|
|
591
|
-
return props.now;
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
return _$memo(() => windows.map(w => _$createComponent(QuotaRow, {
|
|
596
|
-
get theme() {
|
|
597
|
-
return props.theme;
|
|
598
|
-
},
|
|
599
|
-
get appearance() {
|
|
600
|
-
return props.appearance;
|
|
601
|
-
},
|
|
602
|
-
get label() {
|
|
603
|
-
return `${QUOTA_LABELS[key]} ${WINDOW_GUTTER[w.window] ?? w.window}`;
|
|
604
|
-
},
|
|
605
|
-
get entry() {
|
|
606
|
-
return {
|
|
607
|
-
remainingPercent: w.remainingPercent,
|
|
608
|
-
resetAt: w.resetAt,
|
|
609
|
-
checkedAt: w.checkedAt
|
|
610
|
-
};
|
|
611
|
-
},
|
|
612
|
-
get now() {
|
|
613
|
-
return props.now;
|
|
614
|
-
}
|
|
615
|
-
})));
|
|
616
|
-
}
|
|
617
|
-
}), _el$24);
|
|
618
|
-
_$insertNode(_el$24, _el$25);
|
|
619
|
-
_$setProp(_el$24, "width", '100%');
|
|
620
|
-
_$setProp(_el$24, "flexDirection", 'row');
|
|
621
|
-
_$insert(_el$25, () => ` ${healthText()}`);
|
|
622
|
-
_$effect(_p$ => {
|
|
623
|
-
var _v$8 = props.marginTop ?? 0,
|
|
624
|
-
_v$9 = props.theme().text,
|
|
625
|
-
_v$0 = toneColor(props.theme(), statusTone()),
|
|
626
|
-
_v$1 = props.theme().textMuted;
|
|
627
|
-
_v$8 !== _p$.e && (_p$.e = _$setProp(_el$18, "marginTop", _v$8, _p$.e));
|
|
628
|
-
_v$9 !== _p$.t && (_p$.t = _$setProp(_el$20, "fg", _v$9, _p$.t));
|
|
629
|
-
_v$0 !== _p$.a && (_p$.a = _$setProp(_el$22, "fg", _v$0, _p$.a));
|
|
630
|
-
_v$1 !== _p$.o && (_p$.o = _$setProp(_el$25, "fg", _v$1, _p$.o));
|
|
631
|
-
return _p$;
|
|
632
|
-
}, {
|
|
633
|
-
e: undefined,
|
|
634
|
-
t: undefined,
|
|
635
|
-
a: undefined,
|
|
636
|
-
o: undefined
|
|
637
|
-
});
|
|
638
|
-
return _el$18;
|
|
639
|
-
})();
|
|
640
490
|
}
|
|
641
491
|
function formatWait(ms) {
|
|
642
492
|
const seconds = Math.ceil(ms / 1000);
|
|
@@ -714,6 +564,24 @@ export function SidebarPanel(props) {
|
|
|
714
564
|
};
|
|
715
565
|
};
|
|
716
566
|
|
|
567
|
+
// The route on one `Route <value>` line when it fits, else one line per
|
|
568
|
+
// part with the strategy last.
|
|
569
|
+
const routeValue = route => `${route.strategy ? `${route.strategy} · ` : ''}${route.family}: ${route.style}`;
|
|
570
|
+
const routeLines = route => [`${route.family}: ${route.style}`, route.strategy ?? ''].filter(line => line !== '');
|
|
571
|
+
|
|
572
|
+
// The width available to content: the header row spans the panel inside
|
|
573
|
+
// its border and padding. Layout reports it during a render pass, so the
|
|
574
|
+
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
575
|
+
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH);
|
|
576
|
+
let headerRow;
|
|
577
|
+
const measureContentWidth = () => {
|
|
578
|
+
const width = headerRow?.width;
|
|
579
|
+
if (typeof width !== 'number' || width <= 0) return;
|
|
580
|
+
queueMicrotask(() => {
|
|
581
|
+
if (width !== contentWidth()) setContentWidth(width);
|
|
582
|
+
});
|
|
583
|
+
};
|
|
584
|
+
|
|
717
585
|
// Header badge: ▼/▶ {label}. The fleet shows the version string on the
|
|
718
586
|
// right when no degraded state is present; the antigravity adapter keeps
|
|
719
587
|
// that right-alignment and surfaces `degraded` as a "LIMITED" badge
|
|
@@ -723,36 +591,40 @@ export function SidebarPanel(props) {
|
|
|
723
591
|
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`;
|
|
724
592
|
};
|
|
725
593
|
return (() => {
|
|
726
|
-
var _el$
|
|
727
|
-
_el$
|
|
728
|
-
_el$
|
|
729
|
-
_el$
|
|
730
|
-
_el$
|
|
731
|
-
_$insertNode(_el$
|
|
732
|
-
_$setProp(_el$
|
|
733
|
-
_$setProp(_el$
|
|
734
|
-
_$setProp(_el$
|
|
735
|
-
_$setProp(_el$
|
|
736
|
-
_$setProp(_el$
|
|
737
|
-
_$setProp(_el$
|
|
738
|
-
_$setProp(_el$
|
|
739
|
-
_$insertNode(_el$
|
|
740
|
-
_$
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
_$setProp(_el$
|
|
744
|
-
_$setProp(_el$
|
|
594
|
+
var _el$0 = _$createElement("box"),
|
|
595
|
+
_el$1 = _$createElement("box"),
|
|
596
|
+
_el$10 = _$createElement("box"),
|
|
597
|
+
_el$11 = _$createElement("text"),
|
|
598
|
+
_el$12 = _$createElement("b");
|
|
599
|
+
_$insertNode(_el$0, _el$1);
|
|
600
|
+
_$setProp(_el$0, "width", '100%');
|
|
601
|
+
_$setProp(_el$0, "flexDirection", 'column');
|
|
602
|
+
_$setProp(_el$0, "border", SINGLE_BORDER);
|
|
603
|
+
_$setProp(_el$0, "paddingTop", 1);
|
|
604
|
+
_$setProp(_el$0, "paddingBottom", 1);
|
|
605
|
+
_$setProp(_el$0, "paddingLeft", 1);
|
|
606
|
+
_$setProp(_el$0, "paddingRight", 1);
|
|
607
|
+
_$insertNode(_el$1, _el$10);
|
|
608
|
+
_$use(element => {
|
|
609
|
+
headerRow = element;
|
|
610
|
+
}, _el$1);
|
|
611
|
+
_$setProp(_el$1, "onSizeChange", measureContentWidth);
|
|
612
|
+
_$setProp(_el$1, "width", '100%');
|
|
613
|
+
_$setProp(_el$1, "flexDirection", 'row');
|
|
614
|
+
_$setProp(_el$1, "justifyContent", 'space-between');
|
|
615
|
+
_$setProp(_el$1, "alignItems", 'center');
|
|
616
|
+
_$setProp(_el$1, "onMouseDown", () => {
|
|
745
617
|
// Mirror the fleet guard: only toggle when there is data to expand
|
|
746
618
|
// into. Without this a click on the empty-awaiting header would just
|
|
747
619
|
// toggle the affordance for nothing.
|
|
748
620
|
if (hasData()) controller.toggleCollapsed();
|
|
749
621
|
});
|
|
750
|
-
_$insertNode(_el$
|
|
751
|
-
_$setProp(_el$
|
|
752
|
-
_$setProp(_el$
|
|
753
|
-
_$insertNode(_el$
|
|
754
|
-
_$insert(_el$
|
|
755
|
-
_$insert(_el$
|
|
622
|
+
_$insertNode(_el$10, _el$11);
|
|
623
|
+
_$setProp(_el$10, "paddingLeft", 1);
|
|
624
|
+
_$setProp(_el$10, "paddingRight", 1);
|
|
625
|
+
_$insertNode(_el$11, _el$12);
|
|
626
|
+
_$insert(_el$12, headerLabel);
|
|
627
|
+
_$insert(_el$1, _$createComponent(Show, {
|
|
756
628
|
get when() {
|
|
757
629
|
return degraded();
|
|
758
630
|
},
|
|
@@ -762,59 +634,42 @@ export function SidebarPanel(props) {
|
|
|
762
634
|
return prefs().header.showVersion && PLUGIN_VERSION !== '';
|
|
763
635
|
},
|
|
764
636
|
get children() {
|
|
765
|
-
var _el$
|
|
766
|
-
_$insert(_el$
|
|
767
|
-
_$effect(_$p => _$setProp(_el$
|
|
768
|
-
return _el$
|
|
637
|
+
var _el$17 = _$createElement("text");
|
|
638
|
+
_$insert(_el$17, `v${PLUGIN_VERSION}`);
|
|
639
|
+
_$effect(_$p => _$setProp(_el$17, "fg", theme().textMuted, _$p));
|
|
640
|
+
return _el$17;
|
|
769
641
|
}
|
|
770
642
|
});
|
|
771
643
|
},
|
|
772
644
|
get children() {
|
|
773
|
-
var _el$
|
|
774
|
-
_el$
|
|
775
|
-
_el$
|
|
776
|
-
_$insertNode(_el$
|
|
777
|
-
_$setProp(_el$
|
|
778
|
-
_$setProp(_el$
|
|
779
|
-
_$insertNode(_el$
|
|
780
|
-
_$insertNode(_el$
|
|
645
|
+
var _el$13 = _$createElement("box"),
|
|
646
|
+
_el$14 = _$createElement("text"),
|
|
647
|
+
_el$15 = _$createElement("b");
|
|
648
|
+
_$insertNode(_el$13, _el$14);
|
|
649
|
+
_$setProp(_el$13, "paddingLeft", 1);
|
|
650
|
+
_$setProp(_el$13, "paddingRight", 1);
|
|
651
|
+
_$insertNode(_el$14, _el$15);
|
|
652
|
+
_$insertNode(_el$15, _$createTextNode(`LIMITED`));
|
|
781
653
|
_$effect(_p$ => {
|
|
782
|
-
var _v$
|
|
783
|
-
_v$
|
|
784
|
-
_v$
|
|
785
|
-
_v$
|
|
654
|
+
var _v$3 = theme().warning,
|
|
655
|
+
_v$4 = theme().background;
|
|
656
|
+
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$13, "backgroundColor", _v$3, _p$.e));
|
|
657
|
+
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$14, "fg", _v$4, _p$.t));
|
|
786
658
|
return _p$;
|
|
787
659
|
}, {
|
|
788
660
|
e: undefined,
|
|
789
661
|
t: undefined
|
|
790
662
|
});
|
|
791
|
-
return _el$
|
|
663
|
+
return _el$13;
|
|
792
664
|
}
|
|
793
665
|
}), null);
|
|
794
|
-
_$insert(_el$
|
|
666
|
+
_$insert(_el$0, _$createComponent(Show, {
|
|
795
667
|
get when() {
|
|
796
668
|
return _$memo(() => !!collapsed())() && hasData();
|
|
797
669
|
},
|
|
798
670
|
get children() {
|
|
799
671
|
return (() => {
|
|
800
672
|
const account = () => visibleAccounts().find(entry => entry.current) ?? visibleAccounts()[0];
|
|
801
|
-
const remaining = () => {
|
|
802
|
-
const q = account()?.quota;
|
|
803
|
-
// The lowest remaining percentage among dated readings determines the warning tone.
|
|
804
|
-
const gemini = quotaReadingParts('Gm', q?.gemini, now()).remaining;
|
|
805
|
-
const nonGemini = quotaReadingParts('NG', q?.['non-gemini'], now()).remaining;
|
|
806
|
-
if (gemini === null && nonGemini === null) return null;
|
|
807
|
-
return Math.min(gemini ?? 100, nonGemini ?? 100);
|
|
808
|
-
};
|
|
809
|
-
const poolText = key => {
|
|
810
|
-
const entry = account()?.quota[key];
|
|
811
|
-
if (!entry) return `${QUOTA_LABELS[key]}: ${formatQuotaReading(QUOTA_LABELS[key], undefined, now())}`;
|
|
812
|
-
// Show binding window when available, else just pool label.
|
|
813
|
-
const bindingWindow = entry.windows?.reduce((best, w) => best === null || w.remainingPercent < best.remainingPercent ? w : best, null);
|
|
814
|
-
const gutter = bindingWindow ? ` ${WINDOW_GUTTER[bindingWindow.window] ?? bindingWindow.window}` : '';
|
|
815
|
-
const text = formatQuotaReading(`${QUOTA_LABELS[key]}${gutter}`, bindingWindow ?? entry, now());
|
|
816
|
-
return bindingWindow ? `${QUOTA_LABELS[key]} ${text}` : text;
|
|
817
|
-
};
|
|
818
673
|
const unavailable = () => {
|
|
819
674
|
const selected = account();
|
|
820
675
|
return selected != null && (!selected.enabled || selected.cooldownUntil != null && selected.cooldownUntil > now());
|
|
@@ -823,43 +678,63 @@ export function SidebarPanel(props) {
|
|
|
823
678
|
get when() {
|
|
824
679
|
return account();
|
|
825
680
|
},
|
|
826
|
-
children: selected =>
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
681
|
+
children: selected => {
|
|
682
|
+
const quota = () => collapsedQuota(selected(), now());
|
|
683
|
+
const tone = () => {
|
|
684
|
+
const remaining = quota().remaining;
|
|
685
|
+
return remaining == null ? 'muted' : quotaTone(100 - remaining, prefs().appearance);
|
|
686
|
+
};
|
|
687
|
+
// Label, one space, the figure and the two-cell dot. The
|
|
688
|
+
// group prefix goes first when narrow; then the label is cut.
|
|
689
|
+
const figure = () => {
|
|
690
|
+
const {
|
|
691
|
+
prefix,
|
|
692
|
+
text
|
|
693
|
+
} = quota();
|
|
694
|
+
const full = `${prefix}${text}`;
|
|
695
|
+
return selected().label.length + 1 + full.length + 2 <= contentWidth() ? full : text;
|
|
696
|
+
};
|
|
697
|
+
const label = () => fitLabel(selected().label, contentWidth() - 1 - figure().length - 2);
|
|
698
|
+
return _$createComponent(CollapsedRow, {
|
|
699
|
+
theme: theme,
|
|
700
|
+
get label() {
|
|
701
|
+
return label();
|
|
702
|
+
},
|
|
703
|
+
get children() {
|
|
704
|
+
var _el$18 = _$createElement("box"),
|
|
705
|
+
_el$19 = _$createElement("text"),
|
|
706
|
+
_el$20 = _$createElement("b"),
|
|
707
|
+
_el$21 = _$createElement("text");
|
|
708
|
+
_$insertNode(_el$18, _el$19);
|
|
709
|
+
_$insertNode(_el$18, _el$21);
|
|
710
|
+
_$setProp(_el$18, "flexDirection", 'row');
|
|
711
|
+
_$setProp(_el$18, "flexShrink", 0);
|
|
712
|
+
_$insertNode(_el$19, _el$20);
|
|
713
|
+
_$setProp(_el$19, "flexShrink", 0);
|
|
714
|
+
_$setProp(_el$19, "wrapMode", 'none');
|
|
715
|
+
_$insert(_el$20, figure);
|
|
716
|
+
_$setProp(_el$21, "flexShrink", 0);
|
|
717
|
+
_$setProp(_el$21, "wrapMode", 'none');
|
|
718
|
+
_$insert(_el$21, () => unavailable() ? ' ⊘' : ' ●');
|
|
719
|
+
_$effect(_p$ => {
|
|
720
|
+
var _v$8 = toneColor(theme(), tone()),
|
|
721
|
+
_v$9 = toneColor(theme(), unavailable() ? 'err' : tone());
|
|
722
|
+
_v$8 !== _p$.e && (_p$.e = _$setProp(_el$19, "fg", _v$8, _p$.e));
|
|
723
|
+
_v$9 !== _p$.t && (_p$.t = _$setProp(_el$21, "fg", _v$9, _p$.t));
|
|
724
|
+
return _p$;
|
|
725
|
+
}, {
|
|
726
|
+
e: undefined,
|
|
727
|
+
t: undefined
|
|
728
|
+
});
|
|
729
|
+
return _el$18;
|
|
730
|
+
}
|
|
731
|
+
});
|
|
732
|
+
}
|
|
858
733
|
});
|
|
859
734
|
})();
|
|
860
735
|
}
|
|
861
736
|
}), null);
|
|
862
|
-
_$insert(_el$
|
|
737
|
+
_$insert(_el$0, _$createComponent(Show, {
|
|
863
738
|
get when() {
|
|
864
739
|
return !collapsed() || !hasData();
|
|
865
740
|
},
|
|
@@ -870,14 +745,14 @@ export function SidebarPanel(props) {
|
|
|
870
745
|
},
|
|
871
746
|
get fallback() {
|
|
872
747
|
return (() => {
|
|
873
|
-
var _el$
|
|
874
|
-
_el$
|
|
875
|
-
_$insertNode(_el$
|
|
876
|
-
_$setProp(_el$
|
|
877
|
-
_$setProp(_el$
|
|
878
|
-
_$insertNode(_el$
|
|
879
|
-
_$effect(_$p => _$setProp(_el$
|
|
880
|
-
return _el$
|
|
748
|
+
var _el$22 = _$createElement("box"),
|
|
749
|
+
_el$23 = _$createElement("text");
|
|
750
|
+
_$insertNode(_el$22, _el$23);
|
|
751
|
+
_$setProp(_el$22, "marginTop", 1);
|
|
752
|
+
_$setProp(_el$22, "width", '100%');
|
|
753
|
+
_$insertNode(_el$23, _$createTextNode(`Waiting for quota…`));
|
|
754
|
+
_$effect(_$p => _$setProp(_el$23, "fg", theme().textMuted, _$p));
|
|
755
|
+
return _el$22;
|
|
881
756
|
})();
|
|
882
757
|
},
|
|
883
758
|
get children() {
|
|
@@ -900,6 +775,7 @@ export function SidebarPanel(props) {
|
|
|
900
775
|
},
|
|
901
776
|
account: account,
|
|
902
777
|
now: now,
|
|
778
|
+
width: contentWidth,
|
|
903
779
|
get marginTop() {
|
|
904
780
|
return index() === 0 ? 0 : 1;
|
|
905
781
|
}
|
|
@@ -919,20 +795,44 @@ export function SidebarPanel(props) {
|
|
|
919
795
|
return currentRoute();
|
|
920
796
|
},
|
|
921
797
|
get fallback() {
|
|
922
|
-
return
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
798
|
+
return (() => {
|
|
799
|
+
var _el$25 = _$createElement("text");
|
|
800
|
+
_$insertNode(_el$25, _$createTextNode(`No request yet`));
|
|
801
|
+
_$setProp(_el$25, "wrapMode", 'none');
|
|
802
|
+
_$effect(_$p => _$setProp(_el$25, "fg", theme().textMuted, _$p));
|
|
803
|
+
return _el$25;
|
|
804
|
+
})();
|
|
928
805
|
},
|
|
929
|
-
children: route => _$createComponent(
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
get value() {
|
|
933
|
-
return `${route().strategy ? `${route().strategy} · ` : ''}${route().family}: ${route().style}`;
|
|
806
|
+
children: route => _$createComponent(Show, {
|
|
807
|
+
get when() {
|
|
808
|
+
return routeLineFits('Route', routeValue(route()), contentWidth());
|
|
934
809
|
},
|
|
935
|
-
|
|
810
|
+
get fallback() {
|
|
811
|
+
return _$createComponent(For, {
|
|
812
|
+
get each() {
|
|
813
|
+
return routeLines(route());
|
|
814
|
+
},
|
|
815
|
+
children: line => (() => {
|
|
816
|
+
var _el$27 = _$createElement("text"),
|
|
817
|
+
_el$28 = _$createElement("b");
|
|
818
|
+
_$insertNode(_el$27, _el$28);
|
|
819
|
+
_$setProp(_el$27, "wrapMode", 'none');
|
|
820
|
+
_$insert(_el$28, line);
|
|
821
|
+
_$effect(_$p => _$setProp(_el$27, "fg", toneColor(theme(), 'accent'), _$p));
|
|
822
|
+
return _el$27;
|
|
823
|
+
})()
|
|
824
|
+
});
|
|
825
|
+
},
|
|
826
|
+
get children() {
|
|
827
|
+
return _$createComponent(StatRow, {
|
|
828
|
+
theme: theme,
|
|
829
|
+
label: "Route",
|
|
830
|
+
get value() {
|
|
831
|
+
return routeValue(route());
|
|
832
|
+
},
|
|
833
|
+
tone: "accent"
|
|
834
|
+
});
|
|
835
|
+
}
|
|
936
836
|
})
|
|
937
837
|
})];
|
|
938
838
|
}
|
|
@@ -980,19 +880,19 @@ export function SidebarPanel(props) {
|
|
|
980
880
|
}
|
|
981
881
|
}), null);
|
|
982
882
|
_$effect(_p$ => {
|
|
983
|
-
var _v$
|
|
984
|
-
_v$
|
|
985
|
-
_v$
|
|
986
|
-
_v$
|
|
987
|
-
_v$
|
|
988
|
-
_v$
|
|
883
|
+
var _v$5 = theme().borderActive,
|
|
884
|
+
_v$6 = theme().accent,
|
|
885
|
+
_v$7 = theme().background;
|
|
886
|
+
_v$5 !== _p$.e && (_p$.e = _$setProp(_el$0, "borderColor", _v$5, _p$.e));
|
|
887
|
+
_v$6 !== _p$.t && (_p$.t = _$setProp(_el$10, "backgroundColor", _v$6, _p$.t));
|
|
888
|
+
_v$7 !== _p$.a && (_p$.a = _$setProp(_el$11, "fg", _v$7, _p$.a));
|
|
989
889
|
return _p$;
|
|
990
890
|
}, {
|
|
991
891
|
e: undefined,
|
|
992
892
|
t: undefined,
|
|
993
893
|
a: undefined
|
|
994
894
|
});
|
|
995
|
-
return _el$
|
|
895
|
+
return _el$0;
|
|
996
896
|
})();
|
|
997
897
|
}
|
|
998
898
|
|