@cortexkit/opencode-antigravity-auth 3.0.13 → 3.0.15
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/dist/cli.js +1865 -571
- package/dist/cli.js.map +4 -4
- package/dist/cli.meta.json +294 -55
- package/dist/index.js +2377 -784
- package/dist/index.js.map +4 -4
- package/dist/index.meta.json +332 -78
- package/dist/server.js +3977 -2327
- package/dist/server.js.map +4 -4
- package/dist/server.meta.json +1 -1
- package/dist/src/__fixtures__/runtime-layout-process.d.ts +2 -0
- package/dist/src/__fixtures__/runtime-layout-process.d.ts.map +1 -0
- package/dist/src/__fixtures__/runtime-layout-process.js +88 -0
- package/dist/src/__fixtures__/runtime-layout-process.js.map +1 -0
- package/dist/src/cli.d.ts +17 -6
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +26 -9
- package/dist/src/cli.js.map +1 -1
- package/dist/src/common-auth-embedded/claustrum/enrollment.d.ts +9 -0
- package/dist/src/common-auth-embedded/claustrum/enrollment.js +15 -8
- package/dist/src/common-auth-embedded/claustrum/hub.js +86 -42
- package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +16 -3
- package/dist/src/common-auth-embedded/setup/command.js +4 -49
- package/dist/src/common-auth-embedded/setup/flags.d.ts +50 -0
- package/dist/src/common-auth-embedded/setup/flags.js +123 -0
- package/dist/src/common-auth-embedded/setup/index.d.ts +1 -0
- package/dist/src/common-auth-embedded/setup/index.js +1 -0
- package/dist/src/common-auth-embedded/setup/types.d.ts +7 -1
- package/dist/src/common-auth-embedded/source-output.json +47 -31
- package/dist/src/ga/server/auth.d.ts.map +1 -1
- package/dist/src/ga/server/auth.js +7 -2
- package/dist/src/ga/server/auth.js.map +1 -1
- package/dist/src/ga/server/index.d.ts.map +1 -1
- package/dist/src/ga/server/index.js +18 -4
- package/dist/src/ga/server/index.js.map +1 -1
- package/dist/src/ga/tui/host-ga.d.ts +55 -2
- package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
- package/dist/src/ga/tui/host-ga.js +73 -43
- package/dist/src/ga/tui/host-ga.js.map +1 -1
- package/dist/src/plugin/__fixtures__/controlled-timeouts.d.ts +7 -0
- package/dist/src/plugin/__fixtures__/controlled-timeouts.d.ts.map +1 -0
- package/dist/src/plugin/__fixtures__/controlled-timeouts.js +41 -0
- package/dist/src/plugin/__fixtures__/controlled-timeouts.js.map +1 -0
- package/dist/src/plugin/__fixtures__/release-model-ids.d.ts +2 -0
- package/dist/src/plugin/__fixtures__/release-model-ids.d.ts.map +1 -0
- package/dist/src/plugin/__fixtures__/release-model-ids.js +11 -0
- package/dist/src/plugin/__fixtures__/release-model-ids.js.map +1 -0
- package/dist/src/plugin/__fixtures__/verified-store.d.ts +3 -0
- package/dist/src/plugin/__fixtures__/verified-store.d.ts.map +1 -0
- package/dist/src/plugin/__fixtures__/verified-store.js +50 -0
- package/dist/src/plugin/__fixtures__/verified-store.js.map +1 -0
- package/dist/src/plugin/auth-loader.d.ts +7 -1
- package/dist/src/plugin/auth-loader.d.ts.map +1 -1
- package/dist/src/plugin/auth-loader.js +4 -4
- package/dist/src/plugin/auth-loader.js.map +1 -1
- package/dist/src/plugin/cache/signature-cache.d.ts +7 -1
- package/dist/src/plugin/cache/signature-cache.d.ts.map +1 -1
- package/dist/src/plugin/cache/signature-cache.js +10 -13
- package/dist/src/plugin/cache/signature-cache.js.map +1 -1
- package/dist/src/plugin/config/loader.d.ts +2 -1
- package/dist/src/plugin/config/loader.d.ts.map +1 -1
- package/dist/src/plugin/config/loader.js +4 -2
- package/dist/src/plugin/config/loader.js.map +1 -1
- package/dist/src/plugin/config/schema.js +1 -1
- package/dist/src/plugin/debug.d.ts.map +1 -1
- package/dist/src/plugin/debug.js +18 -19
- package/dist/src/plugin/debug.js.map +1 -1
- package/dist/src/plugin/errors.js +1 -1
- package/dist/src/plugin/errors.js.map +1 -1
- package/dist/src/plugin/ga-location-services.d.ts +1 -1
- package/dist/src/plugin/ga-location-services.d.ts.map +1 -1
- package/dist/src/plugin/ga-location-services.js +99 -32
- package/dist/src/plugin/ga-location-services.js.map +1 -1
- package/dist/src/plugin/ga-shared-vault-custody.d.ts +19 -5
- package/dist/src/plugin/ga-shared-vault-custody.d.ts.map +1 -1
- package/dist/src/plugin/ga-shared-vault-custody.js +12 -4
- package/dist/src/plugin/ga-shared-vault-custody.js.map +1 -1
- package/dist/src/plugin/index.d.ts.map +1 -1
- package/dist/src/plugin/index.js +31 -9
- package/dist/src/plugin/index.js.map +1 -1
- package/dist/src/plugin/shared/source-sidebar.d.ts +6 -0
- package/dist/src/plugin/shared/source-sidebar.d.ts.map +1 -1
- package/dist/src/plugin/shared/source-sidebar.js +1 -1
- package/dist/src/plugin/shared/source-sidebar.js.map +1 -1
- package/dist/src/plugin/shared/vault-request-credentials.d.ts +33 -13
- package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
- package/dist/src/plugin/shared/vault-request-credentials.js +97 -44
- package/dist/src/plugin/shared/vault-request-credentials.js.map +1 -1
- package/dist/src/plugin/storage.d.ts +5 -2
- package/dist/src/plugin/storage.d.ts.map +1 -1
- package/dist/src/plugin/storage.js +5 -4
- package/dist/src/plugin/storage.js.map +1 -1
- package/dist/src/plugin/vault-custody.d.ts +29 -8
- package/dist/src/plugin/vault-custody.d.ts.map +1 -1
- package/dist/src/plugin/vault-custody.js +61 -10
- package/dist/src/plugin/vault-custody.js.map +1 -1
- package/dist/src/process-heartbeat.d.ts +22 -2
- package/dist/src/process-heartbeat.d.ts.map +1 -1
- package/dist/src/process-heartbeat.js +47 -10
- package/dist/src/process-heartbeat.js.map +1 -1
- package/dist/src/rpc/rpc-server.d.ts +8 -0
- package/dist/src/rpc/rpc-server.d.ts.map +1 -1
- package/dist/src/rpc/rpc-server.js +26 -1
- package/dist/src/rpc/rpc-server.js.map +1 -1
- package/dist/src/runtime-layout.d.ts +100 -0
- package/dist/src/runtime-layout.d.ts.map +1 -0
- package/dist/src/runtime-layout.js +1242 -0
- package/dist/src/runtime-layout.js.map +1 -0
- package/dist/src/runtime-paths.d.ts +132 -0
- package/dist/src/runtime-paths.d.ts.map +1 -0
- package/dist/src/runtime-paths.js +214 -0
- package/dist/src/runtime-paths.js.map +1 -0
- package/dist/src/setup.d.ts.map +1 -1
- package/dist/src/setup.js +30 -7
- package/dist/src/setup.js.map +1 -1
- package/dist/src/tui/quota-layout.d.ts +1 -1
- package/dist/src/tui/quota-layout.js +1 -1
- package/dist/src/tui/sidebar-frame.d.ts +109 -0
- package/dist/src/tui/sidebar-frame.d.ts.map +1 -0
- package/dist/src/tui/sidebar-frame.js +244 -0
- package/dist/src/tui/sidebar-frame.js.map +1 -0
- package/dist/src/tui.d.ts.map +1 -1
- package/dist/src/tui.js +11 -251
- package/dist/src/tui.js.map +1 -1
- package/dist/src/vault-folder.d.ts +38 -0
- package/dist/src/vault-folder.d.ts.map +1 -0
- package/dist/src/vault-folder.js +91 -0
- package/dist/src/vault-folder.js.map +1 -0
- package/dist/src/version-fence.d.ts +54 -0
- package/dist/src/version-fence.d.ts.map +1 -0
- package/dist/src/version-fence.js +254 -0
- package/dist/src/version-fence.js.map +1 -0
- package/dist/tui-build-map.json +121 -93
- package/dist/tui-ga-build-map.json +23 -9
- package/dist/types/src/cli.d.ts +17 -6
- package/dist/types/src/cli.d.ts.map +1 -1
- package/dist/types/src/common-auth-embedded/claustrum/enrollment.d.ts +9 -0
- package/dist/types/src/common-auth-embedded/setup/flags.d.ts +50 -0
- package/dist/types/src/common-auth-embedded/setup/index.d.ts +1 -0
- package/dist/types/src/common-auth-embedded/setup/types.d.ts +7 -1
- package/dist/types/src/ga/server/auth.d.ts.map +1 -1
- package/dist/types/src/ga/server/index.d.ts.map +1 -1
- package/dist/types/src/plugin/auth-loader.d.ts +7 -1
- package/dist/types/src/plugin/auth-loader.d.ts.map +1 -1
- package/dist/types/src/plugin/cache/signature-cache.d.ts +7 -1
- package/dist/types/src/plugin/cache/signature-cache.d.ts.map +1 -1
- package/dist/types/src/plugin/config/loader.d.ts +2 -1
- package/dist/types/src/plugin/config/loader.d.ts.map +1 -1
- package/dist/types/src/plugin/debug.d.ts.map +1 -1
- package/dist/types/src/plugin/ga-location-services.d.ts +1 -1
- package/dist/types/src/plugin/ga-location-services.d.ts.map +1 -1
- package/dist/types/src/plugin/ga-shared-vault-custody.d.ts +19 -5
- package/dist/types/src/plugin/ga-shared-vault-custody.d.ts.map +1 -1
- package/dist/types/src/plugin/index.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/source-sidebar.d.ts +6 -0
- package/dist/types/src/plugin/shared/source-sidebar.d.ts.map +1 -1
- package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +33 -13
- package/dist/types/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
- package/dist/types/src/plugin/storage.d.ts +5 -2
- package/dist/types/src/plugin/storage.d.ts.map +1 -1
- package/dist/types/src/plugin/vault-custody.d.ts +29 -8
- package/dist/types/src/plugin/vault-custody.d.ts.map +1 -1
- package/dist/types/src/process-heartbeat.d.ts +22 -2
- package/dist/types/src/process-heartbeat.d.ts.map +1 -1
- package/dist/types/src/rpc/rpc-server.d.ts +8 -0
- package/dist/types/src/rpc/rpc-server.d.ts.map +1 -1
- package/dist/types/src/runtime-layout.d.ts +100 -0
- package/dist/types/src/runtime-layout.d.ts.map +1 -0
- package/dist/types/src/runtime-paths.d.ts +132 -0
- package/dist/types/src/runtime-paths.d.ts.map +1 -0
- package/dist/types/src/setup.d.ts.map +1 -1
- package/dist/types/src/vault-folder.d.ts +38 -0
- package/dist/types/src/vault-folder.d.ts.map +1 -0
- package/dist/types/src/version-fence.d.ts +54 -0
- package/dist/types/src/version-fence.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/common-auth-embedded/claustrum/enrollment.d.ts +9 -0
- package/src/common-auth-embedded/claustrum/enrollment.js +15 -8
- package/src/common-auth-embedded/claustrum/hub.js +86 -42
- package/src/common-auth-embedded/fs/refresh-file-lock.js +16 -3
- package/src/common-auth-embedded/setup/command.js +4 -49
- package/src/common-auth-embedded/setup/flags.d.ts +50 -0
- package/src/common-auth-embedded/setup/flags.js +123 -0
- package/src/common-auth-embedded/setup/index.d.ts +1 -0
- package/src/common-auth-embedded/setup/index.js +1 -0
- package/src/common-auth-embedded/setup/types.d.ts +7 -1
- package/src/common-auth-embedded/source-output.json +47 -31
- package/src/tui/entry.mjs +19 -1
- package/src/tui-compiled/sidebar-projection.js +119 -0
- package/src/tui-compiled/tui/quota-layout.js +1 -1
- package/src/tui-compiled/tui/sidebar-frame.js +657 -0
- package/src/tui-compiled/tui.js +25 -606
- package/src/tui-ga-compiled/host-ga.js +116 -124
- package/src/tui-ga-compiled/shared/ced204104a639c9c-sidebar-frame.js +657 -0
- package/src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js +1 -1
- package/src/tui-ga-raw/host-ga.tsx +157 -95
- package/src/tui-ga-raw/shared/ced204104a639c9c-sidebar-frame.tsx +603 -0
- package/src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx +1 -1
- package/src/tui-raw/sidebar-projection.js +119 -0
- package/src/tui-raw/tui/quota-layout.tsx +1 -1
- package/src/tui-raw/tui/sidebar-frame.tsx +603 -0
- package/src/tui-raw/tui.tsx +25 -523
- package/src/tui.tsx +25 -523
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/** @jsxImportSource @opentui/solid */
|
|
2
|
+
/**
|
|
3
|
+
* The Antigravity sidebar frame, shared by the OpenCode 1 sidebar (`tui.tsx`)
|
|
4
|
+
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the bordered, padded
|
|
5
|
+
* panel, the clickable `▼`/`▶` header badge with the plugin version (or a
|
|
6
|
+
* `LIMITED` badge) at the right, one line per account when collapsed, and the
|
|
7
|
+
* `Quota`, `Routing` and `Health` sections when expanded.
|
|
8
|
+
*
|
|
9
|
+
* Each renderer reads its own data source (the sidebar file, or the
|
|
10
|
+
* location's `state` answer), maps its own host theme onto `FrameTheme` and
|
|
11
|
+
* owns its own collapse state; everything drawn is decided here, so a change
|
|
12
|
+
* of shape is made once for both hosts.
|
|
13
|
+
*
|
|
14
|
+
* This module stays inside both TUI import graphs: besides Solid and
|
|
15
|
+
* OpenTUI it imports only the pure quota and sidebar-projection helpers and
|
|
16
|
+
* the shared layouts. No sidebar file, preferences file, RPC, account
|
|
17
|
+
* store, OAuth, token or host SDK module, no Node built-in, and nothing
|
|
18
|
+
* that writes to the terminal.
|
|
19
|
+
*/
|
|
20
|
+
import type { RGBA } from '@opentui/core';
|
|
21
|
+
import { type JSX } from 'solid-js';
|
|
22
|
+
import { type ProjectedQuota } from '../common-auth-embedded/quota/index.js';
|
|
23
|
+
import { type QuotaAppearance, type QuotaLayoutAccount, type QuotaPalette, type QuotaTone } from './quota-layout.js';
|
|
24
|
+
type Tone = QuotaTone;
|
|
25
|
+
/** A theme color; `undefined` leaves the host's default color in place. */
|
|
26
|
+
export type FrameColor = string | RGBA | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The theme tokens the frame draws with, named after OpenCode 1's flat theme.
|
|
29
|
+
* OpenCode 1 passes its live theme as is; OpenCode 2 maps its semantic tokens
|
|
30
|
+
* onto these names. A token may be missing: every use falls back to a
|
|
31
|
+
* sibling token or to the host's default color, never to a fixed color.
|
|
32
|
+
*/
|
|
33
|
+
export interface FrameTheme {
|
|
34
|
+
readonly text: FrameColor;
|
|
35
|
+
readonly textMuted: FrameColor;
|
|
36
|
+
readonly accent: FrameColor;
|
|
37
|
+
readonly background: FrameColor;
|
|
38
|
+
readonly borderActive: FrameColor;
|
|
39
|
+
readonly success: FrameColor;
|
|
40
|
+
readonly warning: FrameColor;
|
|
41
|
+
readonly error: FrameColor;
|
|
42
|
+
}
|
|
43
|
+
export declare function toneColor(theme: FrameTheme, tone: Tone): FrameColor;
|
|
44
|
+
export declare function themePalette(theme: () => FrameTheme): QuotaPalette;
|
|
45
|
+
/** The account fields the frame reads: the quota layout's plus the state. */
|
|
46
|
+
export interface FrameAccount extends QuotaLayoutAccount {
|
|
47
|
+
readonly enabled: boolean;
|
|
48
|
+
readonly current: boolean;
|
|
49
|
+
readonly cooldownUntil?: number;
|
|
50
|
+
}
|
|
51
|
+
/** The route of the session the sidebar belongs to. */
|
|
52
|
+
export interface FrameRoute {
|
|
53
|
+
readonly strategy?: string;
|
|
54
|
+
readonly family: string;
|
|
55
|
+
readonly style: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The settings the frame reads. OpenCode 1 passes its preferences; OpenCode 2
|
|
59
|
+
* has no preferences file and passes the same defaults.
|
|
60
|
+
*/
|
|
61
|
+
export interface FrameSettings {
|
|
62
|
+
readonly header: {
|
|
63
|
+
readonly label: string;
|
|
64
|
+
readonly showVersion: boolean;
|
|
65
|
+
};
|
|
66
|
+
readonly sections: {
|
|
67
|
+
readonly quota: boolean;
|
|
68
|
+
readonly fallbackAccounts: boolean;
|
|
69
|
+
readonly routing: boolean;
|
|
70
|
+
readonly health: boolean;
|
|
71
|
+
};
|
|
72
|
+
readonly appearance: QuotaAppearance;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The OpenCode 1 preference defaults for the frame, for a renderer that has
|
|
76
|
+
* no preferences file. A test keeps it equal to the matching part of
|
|
77
|
+
* `DEFAULT_PREFS`.
|
|
78
|
+
*/
|
|
79
|
+
export declare const DEFAULT_FRAME_SETTINGS: FrameSettings;
|
|
80
|
+
export declare function SectionHeader(props: {
|
|
81
|
+
theme: () => FrameTheme;
|
|
82
|
+
title: string;
|
|
83
|
+
}): JSX.Element;
|
|
84
|
+
export declare function StatRow(props: {
|
|
85
|
+
theme: () => FrameTheme;
|
|
86
|
+
label: string;
|
|
87
|
+
value: string;
|
|
88
|
+
tone?: Tone;
|
|
89
|
+
}): JSX.Element;
|
|
90
|
+
export declare function sidebarQuotaProjection(account: QuotaLayoutAccount, now: number): ProjectedQuota | undefined;
|
|
91
|
+
export interface SidebarFrameProps {
|
|
92
|
+
readonly theme: () => FrameTheme;
|
|
93
|
+
readonly settings: () => FrameSettings;
|
|
94
|
+
/** The plugin version shown at the right of the header; empty hides it. */
|
|
95
|
+
readonly version: string;
|
|
96
|
+
readonly collapsed: () => boolean;
|
|
97
|
+
/** Called on a header click while there is data to collapse or expand. */
|
|
98
|
+
readonly onToggleCollapsed: () => void;
|
|
99
|
+
readonly accounts: () => readonly FrameAccount[];
|
|
100
|
+
/** The route of this sidebar's session, or `null` when it has none yet. */
|
|
101
|
+
readonly route: () => FrameRoute | null;
|
|
102
|
+
/** Epoch ms until which quota checks are paused, when they are. */
|
|
103
|
+
readonly quotaBackoffUntil: () => number | undefined;
|
|
104
|
+
readonly lastError: () => string | null | undefined;
|
|
105
|
+
readonly now: () => number;
|
|
106
|
+
}
|
|
107
|
+
export declare function SidebarFrame(props: SidebarFrameProps): JSX.Element;
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=sidebar-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-frame.d.ts","sourceRoot":"","sources":["../../../src/tui/sidebar-frame.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAiC,KAAK,GAAG,EAAQ,MAAM,UAAU,CAAA;AAExE,OAAO,EAIL,KAAK,cAAc,EACpB,MAAM,wCAAwC,CAAA;AAE/C,OAAO,EAQL,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,gBAAgB,CAAA;AAGvB,KAAK,IAAI,GAAG,SAAS,CAAA;AAIrB,2EAA2E;AAC3E,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;AAElD;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IAC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C,KAAK,EAAE,iBAAiB,GAAG,GAAG,CAAC,OAAO,CAkNlE"}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/solid/jsx-runtime";
|
|
2
|
+
import { createMemo, createSignal, For, Show } from 'solid-js';
|
|
3
|
+
import { formatQuota, isQuotaStale, } from '../common-auth-embedded/quota/index.js';
|
|
4
|
+
import { formatResetIn, formatWait } from '../sidebar-projection';
|
|
5
|
+
import { ASSUMED_CONTENT_WIDTH, accountWindows, DEFAULT_QUOTA_APPEARANCE, fitLabel, GROUP_NAMES, QUOTA_ORDER, QuotaAccountBlock, quotaTone, } from './quota-layout';
|
|
6
|
+
import { routeLineFits } from './route-layout';
|
|
7
|
+
// Every tone falls through to a sibling token, so a sparse custom theme still
|
|
8
|
+
// renders readably.
|
|
9
|
+
export function toneColor(theme, tone) {
|
|
10
|
+
switch (tone) {
|
|
11
|
+
case 'ok':
|
|
12
|
+
return theme.success ?? theme.accent;
|
|
13
|
+
case 'warn':
|
|
14
|
+
return theme.warning ?? theme.accent;
|
|
15
|
+
case 'err':
|
|
16
|
+
return theme.error ?? theme.accent;
|
|
17
|
+
case 'muted':
|
|
18
|
+
return theme.textMuted ?? theme.text;
|
|
19
|
+
case 'accent':
|
|
20
|
+
return theme.accent ?? theme.text;
|
|
21
|
+
default:
|
|
22
|
+
return theme.text;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
// The shared quota layout reads its colors through this palette. Muted text
|
|
26
|
+
// and the account label read `textMuted` and `text` straight from the theme,
|
|
27
|
+
// without the `toneColor` fallback chain.
|
|
28
|
+
export function themePalette(theme) {
|
|
29
|
+
return {
|
|
30
|
+
text: () => theme().text,
|
|
31
|
+
muted: () => theme().textMuted,
|
|
32
|
+
tone: (tone) => toneColor(theme(), tone),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The OpenCode 1 preference defaults for the frame, for a renderer that has
|
|
37
|
+
* no preferences file. A test keeps it equal to the matching part of
|
|
38
|
+
* `DEFAULT_PREFS`.
|
|
39
|
+
*/
|
|
40
|
+
export const DEFAULT_FRAME_SETTINGS = {
|
|
41
|
+
header: { label: 'ANTIGRAVITY', showVersion: true },
|
|
42
|
+
sections: {
|
|
43
|
+
quota: true,
|
|
44
|
+
fallbackAccounts: true,
|
|
45
|
+
routing: true,
|
|
46
|
+
health: true,
|
|
47
|
+
},
|
|
48
|
+
appearance: DEFAULT_QUOTA_APPEARANCE,
|
|
49
|
+
};
|
|
50
|
+
// --- Rows ------------------------------------------------------------------
|
|
51
|
+
// Section header: bold title, themed text color, top margin for vertical
|
|
52
|
+
// breathing room between sections.
|
|
53
|
+
export function SectionHeader(props) {
|
|
54
|
+
return (_jsx("box", { width: '100%', marginTop: 1, children: _jsx("text", { fg: toneColor(props.theme(), 'text'), children: _jsx("b", { children: props.title }) }) }));
|
|
55
|
+
}
|
|
56
|
+
// Muted label left, value (optionally tone-tinted, bold) right, for the
|
|
57
|
+
// routing and health rows.
|
|
58
|
+
export function StatRow(props) {
|
|
59
|
+
return (_jsxs("box", { width: '100%', flexDirection: 'row', justifyContent: 'space-between', children: [_jsx("text", { fg: props.theme().textMuted, children: props.label }), _jsx("text", { fg: toneColor(props.theme(), props.tone ?? 'text'), children: _jsx("b", { children: props.value }) })] }));
|
|
60
|
+
}
|
|
61
|
+
// Muted label left, caller-supplied value right. The collapsed view renders
|
|
62
|
+
// one row for every visible account. The caller sizes both sides to the
|
|
63
|
+
// measured width, so neither side may wrap.
|
|
64
|
+
function CollapsedRow(props) {
|
|
65
|
+
return (_jsxs("box", { width: '100%', flexDirection: 'row', justifyContent: 'space-between', children: [_jsx("text", { flexShrink: 0, wrapMode: 'none', fg: props.theme().textMuted, children: props.label }), props.children] }));
|
|
66
|
+
}
|
|
67
|
+
// One account in the Quota section: the shared quota block, with the status
|
|
68
|
+
// word computed from the account state. Status word priorities (first match
|
|
69
|
+
// wins):
|
|
70
|
+
// - `off` when the account is disabled
|
|
71
|
+
// - `cooling <wait>` when cooldownUntil is still in the future
|
|
72
|
+
// - `active` when current === true
|
|
73
|
+
// - `idle` for the fallback (current === false) case
|
|
74
|
+
function AccountBlock(props) {
|
|
75
|
+
const cooldownMs = () => {
|
|
76
|
+
const cd = props.account.cooldownUntil;
|
|
77
|
+
if (typeof cd !== 'number')
|
|
78
|
+
return 0;
|
|
79
|
+
return Math.max(0, cd - props.now());
|
|
80
|
+
};
|
|
81
|
+
const statusWord = () => {
|
|
82
|
+
if (!props.account.enabled)
|
|
83
|
+
return 'off';
|
|
84
|
+
if (cooldownMs() > 0)
|
|
85
|
+
return `cooling ${formatWait(cooldownMs())}`;
|
|
86
|
+
return props.account.current ? 'active' : 'idle';
|
|
87
|
+
};
|
|
88
|
+
const statusTone = () => {
|
|
89
|
+
if (!props.account.enabled)
|
|
90
|
+
return 'muted';
|
|
91
|
+
if (cooldownMs() > 0)
|
|
92
|
+
return 'warn';
|
|
93
|
+
return props.account.current ? 'ok' : 'muted';
|
|
94
|
+
};
|
|
95
|
+
return (_jsx(QuotaAccountBlock, { palette: themePalette(props.theme), appearance: props.appearance, account: props.account, status: statusWord(), statusTone: statusTone(), now: props.now, width: props.width, marginTop: props.marginTop }));
|
|
96
|
+
}
|
|
97
|
+
// Stored quota values are percentages and epoch-millisecond reset times.
|
|
98
|
+
// Adapt them to the shared projection so common-auth, not the renderer,
|
|
99
|
+
// decides how the narrow line reads.
|
|
100
|
+
export function sidebarQuotaProjection(account, now) {
|
|
101
|
+
const limits = [];
|
|
102
|
+
for (const { key, reading } of accountWindows(account, now)) {
|
|
103
|
+
const { checkedAt, remainingPercent, resetAt, window } = reading;
|
|
104
|
+
if (typeof checkedAt !== 'number' ||
|
|
105
|
+
!Number.isFinite(checkedAt) ||
|
|
106
|
+
checkedAt < 0 ||
|
|
107
|
+
!Number.isFinite(remainingPercent))
|
|
108
|
+
continue;
|
|
109
|
+
const resetsAt = typeof resetAt === 'number' &&
|
|
110
|
+
Number.isFinite(resetAt) &&
|
|
111
|
+
Math.abs(resetAt) <= 8.64e15
|
|
112
|
+
? new Date(resetAt).toISOString()
|
|
113
|
+
: undefined;
|
|
114
|
+
limits.push({
|
|
115
|
+
scope: key,
|
|
116
|
+
label: GROUP_NAMES[key],
|
|
117
|
+
kind: 'reading',
|
|
118
|
+
checkedAt,
|
|
119
|
+
remainingPercent: Math.max(0, Math.min(100, remainingPercent)),
|
|
120
|
+
...(window
|
|
121
|
+
? { windowMinutes: window === 'weekly' ? 7 * 24 * 60 : 5 * 60 }
|
|
122
|
+
: {}),
|
|
123
|
+
...(resetsAt ? { resetsAt } : {}),
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
if (limits.length === 0)
|
|
127
|
+
return undefined;
|
|
128
|
+
return {
|
|
129
|
+
scope: 'all',
|
|
130
|
+
limits,
|
|
131
|
+
checkedAt: Math.min(...limits.map((limit) => limit.checkedAt)),
|
|
132
|
+
groups: QUOTA_ORDER.map((scope) => ({
|
|
133
|
+
scope,
|
|
134
|
+
label: GROUP_NAMES[scope],
|
|
135
|
+
})),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
// One account on one measured, non-wrapping line: the label, the shared
|
|
139
|
+
// narrow quota text and a status dot (`⊘` while the account is off or
|
|
140
|
+
// cooling). The quota text is shown whole or not at all; the label is cut
|
|
141
|
+
// with `…` to make room.
|
|
142
|
+
function CollapsedAccount(props) {
|
|
143
|
+
const account = props.account;
|
|
144
|
+
const now = props.now;
|
|
145
|
+
const theme = props.theme;
|
|
146
|
+
const unavailable = () => !account.enabled ||
|
|
147
|
+
(account.cooldownUntil != null && account.cooldownUntil > now());
|
|
148
|
+
const line = createMemo(() => {
|
|
149
|
+
const currentTime = now();
|
|
150
|
+
const projection = sidebarQuotaProjection(account, currentTime);
|
|
151
|
+
const text = formatQuota(projection, {
|
|
152
|
+
now: currentTime,
|
|
153
|
+
form: 'narrow',
|
|
154
|
+
});
|
|
155
|
+
const remaining = projection?.limits.length
|
|
156
|
+
? Math.min(...projection.limits.map((limit) => limit.remainingPercent ?? 100))
|
|
157
|
+
: undefined;
|
|
158
|
+
const tone = remaining === undefined
|
|
159
|
+
? 'muted'
|
|
160
|
+
: quotaTone(100 - remaining, props.appearance());
|
|
161
|
+
const stale = isQuotaStale(projection, { now: currentTime });
|
|
162
|
+
const dot = unavailable() ? ' ⊘' : ' ●';
|
|
163
|
+
const width = props.width();
|
|
164
|
+
// Keep a complete shared line or omit it; a partial quota can make an
|
|
165
|
+
// account look as if it has less remaining.
|
|
166
|
+
const showQuota = text.length <= width;
|
|
167
|
+
const showDot = dot.length <= width && (!showQuota || text.length + dot.length <= width);
|
|
168
|
+
const rightWidth = (showQuota ? text.length : 0) + (showDot ? dot.length : 0);
|
|
169
|
+
const labelWidth = Math.max(0, width - rightWidth - 1);
|
|
170
|
+
return {
|
|
171
|
+
dot,
|
|
172
|
+
label: fitLabel(account.label, labelWidth),
|
|
173
|
+
showDot,
|
|
174
|
+
showQuota,
|
|
175
|
+
stale,
|
|
176
|
+
text,
|
|
177
|
+
tone,
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
const quotaColor = () => line().stale ? theme().textMuted : toneColor(theme(), line().tone);
|
|
181
|
+
const dotColor = () => line().stale
|
|
182
|
+
? theme().textMuted
|
|
183
|
+
: toneColor(theme(), unavailable() ? 'err' : line().tone);
|
|
184
|
+
return (_jsx(CollapsedRow, { theme: theme, label: line().label, children: _jsxs("box", { flexDirection: 'row', flexShrink: 0, children: [_jsx(Show, { when: line().showQuota, children: _jsx("text", { flexShrink: 0, wrapMode: 'none', fg: quotaColor(), children: _jsx("b", { children: line().text }) }) }), _jsx(Show, { when: line().showDot, children: _jsx("text", { flexShrink: 0, wrapMode: 'none', fg: dotColor(), children: line().dot }) })] }) }));
|
|
185
|
+
}
|
|
186
|
+
// --- Frame -----------------------------------------------------------------
|
|
187
|
+
// The opentui border prop is not typed in the plugin TUI surface.
|
|
188
|
+
const SINGLE_BORDER = { type: 'single' };
|
|
189
|
+
export function SidebarFrame(props) {
|
|
190
|
+
const theme = props.theme;
|
|
191
|
+
const prefs = props.settings;
|
|
192
|
+
const collapsed = props.collapsed;
|
|
193
|
+
const now = props.now;
|
|
194
|
+
const hasData = () => props.accounts().length > 0;
|
|
195
|
+
const backoffActive = () => {
|
|
196
|
+
const until = props.quotaBackoffUntil();
|
|
197
|
+
return typeof until === 'number' && until > now();
|
|
198
|
+
};
|
|
199
|
+
const lastError = () => props.lastError();
|
|
200
|
+
const degraded = () => backoffActive() || !!lastError();
|
|
201
|
+
// Honors sections.fallbackAccounts. Both the expanded (AccountBlock list)
|
|
202
|
+
// and the collapsed (CollapsedAccount list) paths use the same filter so
|
|
203
|
+
// the user sees the same account set in either mode.
|
|
204
|
+
const visibleAccounts = () => {
|
|
205
|
+
const showFallback = prefs().sections.fallbackAccounts;
|
|
206
|
+
if (showFallback)
|
|
207
|
+
return props.accounts();
|
|
208
|
+
return props.accounts().filter((account) => account.current);
|
|
209
|
+
};
|
|
210
|
+
// The route on one `Route <value>` line when it fits, else one line per
|
|
211
|
+
// part with the strategy last.
|
|
212
|
+
const routeValue = (route) => `${route.strategy ? `${route.strategy} · ` : ''}${route.family}: ${route.style}`;
|
|
213
|
+
const routeLines = (route) => [`${route.family}: ${route.style}`, route.strategy ?? ''].filter((line) => line !== '');
|
|
214
|
+
// The width available to content: the header row spans the panel inside
|
|
215
|
+
// its border and padding. Layout reports it during a render pass, so the
|
|
216
|
+
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
217
|
+
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH);
|
|
218
|
+
let headerRow;
|
|
219
|
+
const measureContentWidth = () => {
|
|
220
|
+
const width = headerRow?.width;
|
|
221
|
+
if (typeof width !== 'number' || width <= 0)
|
|
222
|
+
return;
|
|
223
|
+
queueMicrotask(() => {
|
|
224
|
+
if (width !== contentWidth())
|
|
225
|
+
setContentWidth(width);
|
|
226
|
+
});
|
|
227
|
+
};
|
|
228
|
+
// Header badge: ▼/▶ {label}, with the version at the right when nothing is
|
|
229
|
+
// degraded and a `LIMITED` badge in its place when something is.
|
|
230
|
+
const headerLabel = () => {
|
|
231
|
+
const name = prefs().header.label;
|
|
232
|
+
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`;
|
|
233
|
+
};
|
|
234
|
+
return (_jsxs("box", { width: '100%', flexDirection: 'column', border: SINGLE_BORDER, borderColor: theme().borderActive, paddingTop: 1, paddingBottom: 1, paddingLeft: 1, paddingRight: 1, children: [_jsxs("box", { ref: (element) => {
|
|
235
|
+
headerRow = element;
|
|
236
|
+
}, onSizeChange: measureContentWidth, width: '100%', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', onMouseDown: () => {
|
|
237
|
+
// Only toggle when there is data to expand into. Without this a
|
|
238
|
+
// click on the empty-awaiting header would just toggle the
|
|
239
|
+
// affordance for nothing.
|
|
240
|
+
if (hasData())
|
|
241
|
+
props.onToggleCollapsed();
|
|
242
|
+
}, children: [_jsx("box", { paddingLeft: 1, paddingRight: 1, backgroundColor: theme().accent, children: _jsx("text", { fg: theme().background, children: _jsx("b", { children: headerLabel() }) }) }), _jsx(Show, { when: degraded(), fallback: _jsx(Show, { when: prefs().header.showVersion && props.version !== '', children: _jsx("text", { fg: theme().textMuted, children: `v${props.version}` }) }), children: _jsx("box", { paddingLeft: 1, paddingRight: 1, backgroundColor: theme().warning, children: _jsx("text", { fg: theme().background, children: _jsx("b", { children: 'LIMITED' }) }) }) })] }), _jsx(Show, { when: collapsed() && hasData(), children: _jsx(For, { each: visibleAccounts(), children: (account) => (_jsx(CollapsedAccount, { theme: theme, appearance: () => prefs().appearance, account: account, now: now, width: contentWidth })) }) }), _jsx(Show, { when: !collapsed() || !hasData(), children: _jsxs(Show, { when: hasData(), fallback: _jsx("box", { marginTop: 1, width: '100%', children: _jsx("text", { fg: theme().textMuted, children: 'Waiting for quota\u2026' }) }), children: [_jsxs(Show, { when: prefs().sections.quota, children: [_jsx(SectionHeader, { theme: theme, title: 'Quota' }), _jsx(For, { each: visibleAccounts(), children: (account, index) => (_jsx(AccountBlock, { theme: theme, appearance: prefs().appearance, account: account, now: now, width: contentWidth, marginTop: index() === 0 ? 0 : 1 })) })] }), _jsxs(Show, { when: prefs().sections.routing, children: [_jsx(SectionHeader, { theme: theme, title: 'Routing' }), _jsx(Show, { when: props.route(), fallback: _jsx("text", { wrapMode: 'none', fg: theme().textMuted, children: 'No request yet' }), children: (route) => (_jsx(Show, { when: routeLineFits('Route', routeValue(route()), contentWidth()), fallback: _jsx(For, { each: routeLines(route()), children: (line) => (_jsx("text", { wrapMode: 'none', fg: toneColor(theme(), 'accent'), children: _jsx("b", { children: line }) })) }), children: _jsx(StatRow, { theme: theme, label: 'Route', value: routeValue(route()), tone: 'accent' }) })) })] }), _jsxs(Show, { when: degraded() && prefs().sections.health, children: [_jsx(SectionHeader, { theme: theme, title: 'Health' }), _jsx(Show, { when: backoffActive(), children: _jsx(StatRow, { theme: theme, label: 'Quota API', value: `backoff ${formatResetIn(props.quotaBackoffUntil(), now())}`, tone: 'warn' }) }), _jsx(Show, { when: lastError(), children: _jsx(StatRow, { theme: theme, label: 'Last error', value: lastError() ?? '', tone: 'err' }) })] })] }) })] }));
|
|
243
|
+
}
|
|
244
|
+
//# sourceMappingURL=sidebar-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-frame.js","sourceRoot":"","sources":["../../../src/tui/sidebar-frame.tsx"],"names":[],"mappings":";AAsBA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,EAAY,IAAI,EAAE,MAAM,UAAU,CAAA;AAExE,OAAO,EACL,WAAW,EACX,YAAY,GAGb,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EACL,qBAAqB,EACrB,cAAc,EACd,wBAAwB,EACxB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file":"tui.d.ts","sourceRoot":"","sources":["../../src/tui.tsx"],"names":[],"mappings":"AAAA,sCAAsC;
|
|
1
|
+
{"version":3,"file":"tui.d.ts","sourceRoot":"","sources":["../../src/tui.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AA8CtC,OAAO,KAAK,EAEV,eAAe,EACf,eAAe,EAChB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAgB,KAAK,GAAG,EAAsB,MAAM,UAAU,CAAA;AAIrE,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAGL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAA;AAEtB,OAAO,EACL,KAAK,uBAAuB,EAS7B,MAAM,mBAAmB,CAAA;AA8D1B,KAAK,KAAK,GAAG,eAAe,CAAA;AA0D5B,MAAM,WAAW,iBAAiB;IAChC,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAClB;8EAC0E;IAC1E,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;wEAEoE;IACpE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;IACnB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,uBAAuB,CAAA;IACpC,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,eAAe,EAAE,MAAM,IAAI,CAAA;CAC5B;AA2DD,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,uBAAuB,GACpC,iBAAiB,CA8CnB;AAuBD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAA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