@cortexkit/opencode-antigravity-auth 3.0.19 → 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.
Files changed (71) hide show
  1. package/README.md +3 -1
  2. package/dist/cli.js +202 -118
  3. package/dist/cli.js.map +3 -3
  4. package/dist/cli.meta.json +18 -18
  5. package/dist/index.js +256 -172
  6. package/dist/index.js.map +3 -3
  7. package/dist/index.meta.json +18 -18
  8. package/dist/server.js +269 -185
  9. package/dist/server.js.map +3 -3
  10. package/dist/server.meta.json +1 -1
  11. package/dist/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
  12. package/dist/src/common-auth-embedded/claustrum/consumer.js +25 -0
  13. package/dist/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
  14. package/dist/src/common-auth-embedded/claustrum/custody.js +20 -6
  15. package/dist/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
  16. package/dist/src/common-auth-embedded/claustrum/hub.js +55 -5
  17. package/dist/src/common-auth-embedded/claustrum/roster.js +1 -1
  18. package/dist/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
  19. package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +3 -1
  20. package/dist/src/common-auth-embedded/fs/with-lock.js +1 -1
  21. package/dist/src/common-auth-embedded/opencode2/index.d.ts +1 -1
  22. package/dist/src/common-auth-embedded/opencode2/install.d.ts +4 -3
  23. package/dist/src/common-auth-embedded/opencode2/install.js +144 -17
  24. package/dist/src/common-auth-embedded/opencode2/types.d.ts +52 -1
  25. package/dist/src/common-auth-embedded/source-output.json +48 -48
  26. package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
  27. package/dist/src/ga/tui/host-ga.js +0 -1
  28. package/dist/src/ga/tui/host-ga.js.map +1 -1
  29. package/dist/src/plugin/__fixtures__/verified-store.js +2 -2
  30. package/dist/src/server.d.ts +4 -4
  31. package/dist/src/server.js +4 -4
  32. package/dist/src/tui/sidebar-frame.d.ts +3 -4
  33. package/dist/src/tui/sidebar-frame.d.ts.map +1 -1
  34. package/dist/src/tui/sidebar-frame.js +4 -8
  35. package/dist/src/tui/sidebar-frame.js.map +1 -1
  36. package/dist/src/tui.js +1 -1
  37. package/dist/tui-build-map.json +9 -9
  38. package/dist/tui-ga-build-map.json +9 -9
  39. package/dist/types/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
  40. package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
  41. package/dist/types/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
  42. package/dist/types/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
  43. package/dist/types/src/common-auth-embedded/opencode2/index.d.ts +1 -1
  44. package/dist/types/src/common-auth-embedded/opencode2/install.d.ts +4 -3
  45. package/dist/types/src/common-auth-embedded/opencode2/types.d.ts +52 -1
  46. package/dist/types/src/server.d.ts +4 -4
  47. package/package.json +3 -3
  48. package/src/common-auth-embedded/claustrum/consumer.d.ts +10 -0
  49. package/src/common-auth-embedded/claustrum/consumer.js +25 -0
  50. package/src/common-auth-embedded/claustrum/custody.d.ts +6 -2
  51. package/src/common-auth-embedded/claustrum/custody.js +20 -6
  52. package/src/common-auth-embedded/claustrum/hub.d.ts +3 -1
  53. package/src/common-auth-embedded/claustrum/hub.js +55 -5
  54. package/src/common-auth-embedded/claustrum/roster.js +1 -1
  55. package/src/common-auth-embedded/fs/refresh-file-lock.d.ts +2 -1
  56. package/src/common-auth-embedded/fs/refresh-file-lock.js +3 -1
  57. package/src/common-auth-embedded/fs/with-lock.js +1 -1
  58. package/src/common-auth-embedded/opencode2/index.d.ts +1 -1
  59. package/src/common-auth-embedded/opencode2/install.d.ts +4 -3
  60. package/src/common-auth-embedded/opencode2/install.js +144 -17
  61. package/src/common-auth-embedded/opencode2/types.d.ts +52 -1
  62. package/src/common-auth-embedded/source-output.json +48 -48
  63. package/src/tui-compiled/tui/sidebar-frame.js +35 -72
  64. package/src/tui-compiled/tui.js +1 -1
  65. package/src/tui-ga-compiled/host-ga.js +0 -1
  66. package/src/tui-ga-compiled/shared/ced204104a639c9c-sidebar-frame.js +35 -72
  67. package/src/tui-ga-raw/host-ga.tsx +0 -1
  68. package/src/tui-ga-raw/shared/ced204104a639c9c-sidebar-frame.tsx +7 -29
  69. package/src/tui-raw/tui/sidebar-frame.tsx +7 -29
  70. package/src/tui-raw/tui.tsx +1 -1
  71. 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 bordered, padded
6
- * panel, the clickable `▼`/`▶` header badge with the plugin version (or a
7
- * `LIMITED` badge) at the right, one line per account when collapsed, and the
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 border and padding. Layout reports it during a render pass, so the
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 when nothing is
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
- when={degraded()}
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 bordered, padded
6
- * panel, the clickable `▼`/`▶` header badge with the plugin version (or a
7
- * `LIMITED` badge) at the right, one line per account when collapsed, and the
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 border and padding. Layout reports it during a render pass, so the
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 when nothing is
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
- when={degraded()}
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
 
@@ -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 bordered
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 bordered
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