@cortexkit/opencode-antigravity-auth 3.0.18 → 3.0.20
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 +3 -1
- package/dist/cli.js +202 -118
- package/dist/cli.js.map +3 -3
- package/dist/cli.meta.json +18 -18
- package/dist/index.js +263 -179
- package/dist/index.js.map +3 -3
- package/dist/index.meta.json +25 -25
- package/dist/server.js +276 -192
- package/dist/server.js.map +3 -3
- package/dist/server.meta.json +1 -1
- package/dist/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
- package/dist/src/common-auth-embedded/claustrum/consumer.js +25 -0
- package/dist/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
- package/dist/src/common-auth-embedded/claustrum/custody.js +20 -6
- package/dist/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
- package/dist/src/common-auth-embedded/claustrum/hub.js +55 -5
- package/dist/src/common-auth-embedded/claustrum/roster.js +1 -1
- package/dist/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
- package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +3 -1
- package/dist/src/common-auth-embedded/fs/with-lock.js +1 -1
- package/dist/src/common-auth-embedded/opencode2/index.d.ts +1 -1
- package/dist/src/common-auth-embedded/opencode2/install.d.ts +4 -3
- package/dist/src/common-auth-embedded/opencode2/install.js +144 -17
- package/dist/src/common-auth-embedded/opencode2/types.d.ts +52 -1
- package/dist/src/common-auth-embedded/source-output.json +48 -48
- package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
- package/dist/src/ga/tui/host-ga.js +0 -1
- package/dist/src/ga/tui/host-ga.js.map +1 -1
- package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
- package/dist/src/plugin/config/schema.js +4 -4
- package/dist/src/plugin/config/schema.js.map +1 -1
- package/dist/src/plugin/config/writer.d.ts +4 -5
- package/dist/src/plugin/config/writer.d.ts.map +1 -1
- package/dist/src/plugin/config/writer.js +4 -5
- package/dist/src/plugin/config/writer.js.map +1 -1
- package/dist/src/plugin/errors.js +1 -1
- package/dist/src/plugin/request-helpers.js +2 -2
- package/dist/src/plugin/request-helpers.js.map +1 -1
- package/dist/src/server.d.ts +4 -4
- package/dist/src/server.js +4 -4
- package/dist/src/tui/sidebar-frame.d.ts +3 -4
- package/dist/src/tui/sidebar-frame.d.ts.map +1 -1
- package/dist/src/tui/sidebar-frame.js +4 -8
- package/dist/src/tui/sidebar-frame.js.map +1 -1
- package/dist/src/tui.js +1 -1
- package/dist/tui-build-map.json +9 -9
- package/dist/tui-ga-build-map.json +9 -9
- package/dist/types/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
- package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
- package/dist/types/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
- package/dist/types/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
- package/dist/types/src/common-auth-embedded/opencode2/index.d.ts +1 -1
- package/dist/types/src/common-auth-embedded/opencode2/install.d.ts +4 -3
- package/dist/types/src/common-auth-embedded/opencode2/types.d.ts +52 -1
- package/dist/types/src/plugin/config/writer.d.ts +4 -5
- package/dist/types/src/plugin/config/writer.d.ts.map +1 -1
- package/dist/types/src/server.d.ts +4 -4
- package/package.json +3 -3
- package/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
- package/src/common-auth-embedded/claustrum/consumer.js +25 -0
- package/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
- package/src/common-auth-embedded/claustrum/custody.js +20 -6
- package/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
- package/src/common-auth-embedded/claustrum/hub.js +55 -5
- package/src/common-auth-embedded/claustrum/roster.js +1 -1
- package/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
- package/src/common-auth-embedded/fs/refresh-file-lock.js +3 -1
- package/src/common-auth-embedded/fs/with-lock.js +1 -1
- package/src/common-auth-embedded/opencode2/index.d.ts +1 -1
- package/src/common-auth-embedded/opencode2/install.d.ts +4 -3
- package/src/common-auth-embedded/opencode2/install.js +144 -17
- package/src/common-auth-embedded/opencode2/types.d.ts +52 -1
- package/src/common-auth-embedded/source-output.json +48 -48
- package/src/tui-compiled/tui/sidebar-frame.js +35 -72
- package/src/tui-compiled/tui.js +1 -1
- package/src/tui-ga-compiled/host-ga.js +0 -1
- package/src/tui-ga-compiled/shared/ced204104a639c9c-sidebar-frame.js +35 -72
- package/src/tui-ga-raw/host-ga.tsx +0 -1
- package/src/tui-ga-raw/shared/ced204104a639c9c-sidebar-frame.tsx +7 -29
- package/src/tui-raw/tui/sidebar-frame.tsx +7 -29
- package/src/tui-raw/tui.tsx +1 -1
- package/src/tui.tsx +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The Antigravity sidebar frame, shared by the OpenCode 1 sidebar (`tui.tsx`)
|
|
5
|
-
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the
|
|
6
|
-
* panel, the clickable `▼`/`▶` header badge with the plugin version
|
|
7
|
-
*
|
|
5
|
+
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the padded
|
|
6
|
+
* panel, the clickable `▼`/`▶` header badge with the optional plugin version
|
|
7
|
+
* at the right, one line per account when collapsed, and the
|
|
8
8
|
* `Quota`, `Routing` and `Health` sections when expanded.
|
|
9
9
|
*
|
|
10
10
|
* Each renderer reads its own data source (the sidebar file, or the
|
|
@@ -63,7 +63,6 @@ export interface FrameTheme {
|
|
|
63
63
|
readonly textMuted: FrameColor
|
|
64
64
|
readonly accent: FrameColor
|
|
65
65
|
readonly background: FrameColor
|
|
66
|
-
readonly borderActive: FrameColor
|
|
67
66
|
readonly success: FrameColor
|
|
68
67
|
readonly warning: FrameColor
|
|
69
68
|
readonly error: FrameColor
|
|
@@ -370,9 +369,6 @@ function CollapsedAccount(props: {
|
|
|
370
369
|
|
|
371
370
|
// --- Frame -----------------------------------------------------------------
|
|
372
371
|
|
|
373
|
-
// The opentui border prop is not typed in the plugin TUI surface.
|
|
374
|
-
const SINGLE_BORDER = { type: 'single' } as any
|
|
375
|
-
|
|
376
372
|
export interface SidebarFrameProps {
|
|
377
373
|
readonly theme: () => FrameTheme
|
|
378
374
|
readonly settings: () => FrameSettings
|
|
@@ -422,7 +418,7 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
422
418
|
)
|
|
423
419
|
|
|
424
420
|
// The width available to content: the header row spans the panel inside
|
|
425
|
-
// its
|
|
421
|
+
// its padding. Layout reports it during a render pass, so the
|
|
426
422
|
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
427
423
|
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH)
|
|
428
424
|
let headerRow: { width: number } | undefined
|
|
@@ -434,8 +430,7 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
434
430
|
})
|
|
435
431
|
}
|
|
436
432
|
|
|
437
|
-
// Header badge: ▼/▶ {label}, with the version at the right
|
|
438
|
-
// degraded and a `LIMITED` badge in its place when something is.
|
|
433
|
+
// Header badge: ▼/▶ {label}, with the optional version at the right.
|
|
439
434
|
const headerLabel = () => {
|
|
440
435
|
const name = prefs().header.label
|
|
441
436
|
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`
|
|
@@ -445,8 +440,6 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
445
440
|
<box
|
|
446
441
|
width='100%'
|
|
447
442
|
flexDirection='column'
|
|
448
|
-
border={SINGLE_BORDER}
|
|
449
|
-
borderColor={theme().borderActive}
|
|
450
443
|
paddingTop={1}
|
|
451
444
|
paddingBottom={1}
|
|
452
445
|
paddingLeft={1}
|
|
@@ -474,23 +467,8 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
474
467
|
<b>{headerLabel()}</b>
|
|
475
468
|
</text>
|
|
476
469
|
</box>
|
|
477
|
-
<Show
|
|
478
|
-
|
|
479
|
-
fallback={
|
|
480
|
-
<Show when={prefs().header.showVersion && props.version !== ''}>
|
|
481
|
-
<text fg={theme().textMuted}>{`v${props.version}`}</text>
|
|
482
|
-
</Show>
|
|
483
|
-
}
|
|
484
|
-
>
|
|
485
|
-
<box
|
|
486
|
-
paddingLeft={1}
|
|
487
|
-
paddingRight={1}
|
|
488
|
-
backgroundColor={theme().warning}
|
|
489
|
-
>
|
|
490
|
-
<text fg={theme().background}>
|
|
491
|
-
<b>{'LIMITED'}</b>
|
|
492
|
-
</text>
|
|
493
|
-
</box>
|
|
470
|
+
<Show when={prefs().header.showVersion && props.version !== ''}>
|
|
471
|
+
<text fg={theme().textMuted}>{`v${props.version}`}</text>
|
|
494
472
|
</Show>
|
|
495
473
|
</box>
|
|
496
474
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The Antigravity sidebar frame, shared by the OpenCode 1 sidebar (`tui.tsx`)
|
|
5
|
-
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the
|
|
6
|
-
* panel, the clickable `▼`/`▶` header badge with the plugin version
|
|
7
|
-
*
|
|
5
|
+
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the padded
|
|
6
|
+
* panel, the clickable `▼`/`▶` header badge with the optional plugin version
|
|
7
|
+
* at the right, one line per account when collapsed, and the
|
|
8
8
|
* `Quota`, `Routing` and `Health` sections when expanded.
|
|
9
9
|
*
|
|
10
10
|
* Each renderer reads its own data source (the sidebar file, or the
|
|
@@ -63,7 +63,6 @@ export interface FrameTheme {
|
|
|
63
63
|
readonly textMuted: FrameColor
|
|
64
64
|
readonly accent: FrameColor
|
|
65
65
|
readonly background: FrameColor
|
|
66
|
-
readonly borderActive: FrameColor
|
|
67
66
|
readonly success: FrameColor
|
|
68
67
|
readonly warning: FrameColor
|
|
69
68
|
readonly error: FrameColor
|
|
@@ -370,9 +369,6 @@ function CollapsedAccount(props: {
|
|
|
370
369
|
|
|
371
370
|
// --- Frame -----------------------------------------------------------------
|
|
372
371
|
|
|
373
|
-
// The opentui border prop is not typed in the plugin TUI surface.
|
|
374
|
-
const SINGLE_BORDER = { type: 'single' } as any
|
|
375
|
-
|
|
376
372
|
export interface SidebarFrameProps {
|
|
377
373
|
readonly theme: () => FrameTheme
|
|
378
374
|
readonly settings: () => FrameSettings
|
|
@@ -422,7 +418,7 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
422
418
|
)
|
|
423
419
|
|
|
424
420
|
// The width available to content: the header row spans the panel inside
|
|
425
|
-
// its
|
|
421
|
+
// its padding. Layout reports it during a render pass, so the
|
|
426
422
|
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
427
423
|
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH)
|
|
428
424
|
let headerRow: { width: number } | undefined
|
|
@@ -434,8 +430,7 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
434
430
|
})
|
|
435
431
|
}
|
|
436
432
|
|
|
437
|
-
// Header badge: ▼/▶ {label}, with the version at the right
|
|
438
|
-
// degraded and a `LIMITED` badge in its place when something is.
|
|
433
|
+
// Header badge: ▼/▶ {label}, with the optional version at the right.
|
|
439
434
|
const headerLabel = () => {
|
|
440
435
|
const name = prefs().header.label
|
|
441
436
|
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`
|
|
@@ -445,8 +440,6 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
445
440
|
<box
|
|
446
441
|
width='100%'
|
|
447
442
|
flexDirection='column'
|
|
448
|
-
border={SINGLE_BORDER}
|
|
449
|
-
borderColor={theme().borderActive}
|
|
450
443
|
paddingTop={1}
|
|
451
444
|
paddingBottom={1}
|
|
452
445
|
paddingLeft={1}
|
|
@@ -474,23 +467,8 @@ export function SidebarFrame(props: SidebarFrameProps): JSX.Element {
|
|
|
474
467
|
<b>{headerLabel()}</b>
|
|
475
468
|
</text>
|
|
476
469
|
</box>
|
|
477
|
-
<Show
|
|
478
|
-
|
|
479
|
-
fallback={
|
|
480
|
-
<Show when={prefs().header.showVersion && props.version !== ''}>
|
|
481
|
-
<text fg={theme().textMuted}>{`v${props.version}`}</text>
|
|
482
|
-
</Show>
|
|
483
|
-
}
|
|
484
|
-
>
|
|
485
|
-
<box
|
|
486
|
-
paddingLeft={1}
|
|
487
|
-
paddingRight={1}
|
|
488
|
-
backgroundColor={theme().warning}
|
|
489
|
-
>
|
|
490
|
-
<text fg={theme().background}>
|
|
491
|
-
<b>{'LIMITED'}</b>
|
|
492
|
-
</text>
|
|
493
|
-
</box>
|
|
470
|
+
<Show when={prefs().header.showVersion && props.version !== ''}>
|
|
471
|
+
<text fg={theme().textMuted}>{`v${props.version}`}</text>
|
|
494
472
|
</Show>
|
|
495
473
|
</box>
|
|
496
474
|
|
package/src/tui-raw/tui.tsx
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Read-only OpenTUI sidebar for the Antigravity plugin.
|
|
5
5
|
*
|
|
6
6
|
* Mirrors the fleet sibling layout (see `anthropic-auth-live` /
|
|
7
|
-
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
7
|
+
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
8
8
|
* column with a labelled header badge, a Quota section that lists one
|
|
9
9
|
* `AccountBlock` per visible account, a Routing section that surfaces the
|
|
10
10
|
* most recent session route, and a Health section that only appears when
|
package/src/tui.tsx
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Read-only OpenTUI sidebar for the Antigravity plugin.
|
|
5
5
|
*
|
|
6
6
|
* Mirrors the fleet sibling layout (see `anthropic-auth-live` /
|
|
7
|
-
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
7
|
+
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
8
8
|
* column with a labelled header badge, a Quota section that lists one
|
|
9
9
|
* `AccountBlock` per visible account, a Routing section that surfaces the
|
|
10
10
|
* most recent session route, and a Health section that only appears when
|