@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"package": "@cortexkit/common-auth",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.0",
|
|
5
5
|
"artifactStatus": "published",
|
|
6
6
|
"publicRoots": {
|
|
7
7
|
"./rpc": {
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"import": "./dist/opencode2/index.js"
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.
|
|
65
|
-
"tarballSha256": "
|
|
66
|
-
"sri": "sha512-
|
|
64
|
+
"input": "tools/common-auth-build/inputs/cortexkit-common-auth-0.31.0.tgz",
|
|
65
|
+
"tarballSha256": "7fd3ca6766e40af0f79edc65f282f251f3d57bd614254a5df11921635cd1d548",
|
|
66
|
+
"sri": "sha512-An0i6ywuMISocrZKZvYkVhExhg0/v0uUR7PU3QpDqko0+mTq4GA9zCJY2q74TK6fwF0w2Xw0mqxTNIUW8+4Apw==",
|
|
67
67
|
"canonicalFiles": 195,
|
|
68
|
-
"canonicalBytes":
|
|
68
|
+
"canonicalBytes": 1242900,
|
|
69
69
|
"generator": {
|
|
70
70
|
"path": "packages/opencode/scripts/embed-common-auth.ts",
|
|
71
71
|
"version": 3,
|
|
72
|
-
"sha256": "
|
|
72
|
+
"sha256": "87413753f873de0e5cad4701d142da0ffcfd4969cb52712cf99a19af689eb2a5"
|
|
73
73
|
},
|
|
74
74
|
"files": [
|
|
75
75
|
{
|
|
@@ -251,33 +251,33 @@
|
|
|
251
251
|
{
|
|
252
252
|
"source": "package/dist/claustrum/consumer.d.ts",
|
|
253
253
|
"output": "claustrum/consumer.d.ts",
|
|
254
|
-
"bytes":
|
|
255
|
-
"sourceSha256": "
|
|
256
|
-
"outputSha256": "
|
|
254
|
+
"bytes": 13934,
|
|
255
|
+
"sourceSha256": "97e5fb096153912483b45f75831e4652db19457d94ad76ba8363b1fd232e6fd7",
|
|
256
|
+
"outputSha256": "97e5fb096153912483b45f75831e4652db19457d94ad76ba8363b1fd232e6fd7",
|
|
257
257
|
"transform": "verbatim"
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
260
|
"source": "package/dist/claustrum/consumer.js",
|
|
261
261
|
"output": "claustrum/consumer.js",
|
|
262
|
-
"bytes":
|
|
263
|
-
"sourceSha256": "
|
|
264
|
-
"outputSha256": "
|
|
262
|
+
"bytes": 39439,
|
|
263
|
+
"sourceSha256": "3b4cf06be8732f3183ac97721dfffb8fc489d4be1044260742a72a9995324391",
|
|
264
|
+
"outputSha256": "3b4cf06be8732f3183ac97721dfffb8fc489d4be1044260742a72a9995324391",
|
|
265
265
|
"transform": "verbatim"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"source": "package/dist/claustrum/custody.d.ts",
|
|
269
269
|
"output": "claustrum/custody.d.ts",
|
|
270
|
-
"bytes":
|
|
271
|
-
"sourceSha256": "
|
|
272
|
-
"outputSha256": "
|
|
270
|
+
"bytes": 16390,
|
|
271
|
+
"sourceSha256": "3bbbfc2d700cf6c25356339c64d3bef5cee5e00336d141de18bb7522c8a5ceaa",
|
|
272
|
+
"outputSha256": "3bbbfc2d700cf6c25356339c64d3bef5cee5e00336d141de18bb7522c8a5ceaa",
|
|
273
273
|
"transform": "verbatim"
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"source": "package/dist/claustrum/custody.js",
|
|
277
277
|
"output": "claustrum/custody.js",
|
|
278
|
-
"bytes":
|
|
279
|
-
"sourceSha256": "
|
|
280
|
-
"outputSha256": "
|
|
278
|
+
"bytes": 30624,
|
|
279
|
+
"sourceSha256": "23c666b3d65b26b8f9aac6926c535f67d0ba7db4de1cf3591e95306aa0f8c5dd",
|
|
280
|
+
"outputSha256": "23c666b3d65b26b8f9aac6926c535f67d0ba7db4de1cf3591e95306aa0f8c5dd",
|
|
281
281
|
"transform": "verbatim"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
@@ -331,17 +331,17 @@
|
|
|
331
331
|
{
|
|
332
332
|
"source": "package/dist/claustrum/hub.d.ts",
|
|
333
333
|
"output": "claustrum/hub.d.ts",
|
|
334
|
-
"bytes":
|
|
335
|
-
"sourceSha256": "
|
|
336
|
-
"outputSha256": "
|
|
334
|
+
"bytes": 9346,
|
|
335
|
+
"sourceSha256": "4c2cbd91b3cc9691ee765f766b7c80d27cf28b38494a0a53ce9410c184e7ca1d",
|
|
336
|
+
"outputSha256": "4c2cbd91b3cc9691ee765f766b7c80d27cf28b38494a0a53ce9410c184e7ca1d",
|
|
337
337
|
"transform": "verbatim"
|
|
338
338
|
},
|
|
339
339
|
{
|
|
340
340
|
"source": "package/dist/claustrum/hub.js",
|
|
341
341
|
"output": "claustrum/hub.js",
|
|
342
|
-
"bytes":
|
|
343
|
-
"sourceSha256": "
|
|
344
|
-
"outputSha256": "
|
|
342
|
+
"bytes": 45237,
|
|
343
|
+
"sourceSha256": "48f0889818545735a6e6315bfa2517a84544abb9237ec9f698581ba6628c1ae5",
|
|
344
|
+
"outputSha256": "48f0889818545735a6e6315bfa2517a84544abb9237ec9f698581ba6628c1ae5",
|
|
345
345
|
"transform": "verbatim"
|
|
346
346
|
},
|
|
347
347
|
{
|
|
@@ -419,9 +419,9 @@
|
|
|
419
419
|
{
|
|
420
420
|
"source": "package/dist/claustrum/roster.js",
|
|
421
421
|
"output": "claustrum/roster.js",
|
|
422
|
-
"bytes":
|
|
423
|
-
"sourceSha256": "
|
|
424
|
-
"outputSha256": "
|
|
422
|
+
"bytes": 39340,
|
|
423
|
+
"sourceSha256": "6919aa948f9022f76ce2b7aac83733bd7a11a8c21b8511191cf7fbf6bc1a2b30",
|
|
424
|
+
"outputSha256": "6919aa948f9022f76ce2b7aac83733bd7a11a8c21b8511191cf7fbf6bc1a2b30",
|
|
425
425
|
"transform": "verbatim"
|
|
426
426
|
},
|
|
427
427
|
{
|
|
@@ -619,17 +619,17 @@
|
|
|
619
619
|
{
|
|
620
620
|
"source": "package/dist/fs/refresh-file-lock.d.ts",
|
|
621
621
|
"output": "fs/refresh-file-lock.d.ts",
|
|
622
|
-
"bytes":
|
|
623
|
-
"sourceSha256": "
|
|
624
|
-
"outputSha256": "
|
|
622
|
+
"bytes": 3052,
|
|
623
|
+
"sourceSha256": "31c23ba9135ddc57ea0196ad56280bd12eab2c9524d33bd43d78112da27214d2",
|
|
624
|
+
"outputSha256": "31c23ba9135ddc57ea0196ad56280bd12eab2c9524d33bd43d78112da27214d2",
|
|
625
625
|
"transform": "verbatim"
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
628
|
"source": "package/dist/fs/refresh-file-lock.js",
|
|
629
629
|
"output": "fs/refresh-file-lock.js",
|
|
630
|
-
"bytes":
|
|
631
|
-
"sourceSha256": "
|
|
632
|
-
"outputSha256": "
|
|
630
|
+
"bytes": 37832,
|
|
631
|
+
"sourceSha256": "07b261b409c5c6cc9b35cb732df44486d372413ce6ae078be4b211b9b5a5c1c7",
|
|
632
|
+
"outputSha256": "07b261b409c5c6cc9b35cb732df44486d372413ce6ae078be4b211b9b5a5c1c7",
|
|
633
633
|
"transform": "verbatim"
|
|
634
634
|
},
|
|
635
635
|
{
|
|
@@ -643,9 +643,9 @@
|
|
|
643
643
|
{
|
|
644
644
|
"source": "package/dist/fs/with-lock.js",
|
|
645
645
|
"output": "fs/with-lock.js",
|
|
646
|
-
"bytes":
|
|
647
|
-
"sourceSha256": "
|
|
648
|
-
"outputSha256": "
|
|
646
|
+
"bytes": 1803,
|
|
647
|
+
"sourceSha256": "f31ff1935e18563e465ab235202de3932255d3b1fc72b5d0baf6d3502931fc8e",
|
|
648
|
+
"outputSha256": "f31ff1935e18563e465ab235202de3932255d3b1fc72b5d0baf6d3502931fc8e",
|
|
649
649
|
"transform": "verbatim"
|
|
650
650
|
},
|
|
651
651
|
{
|
|
@@ -731,9 +731,9 @@
|
|
|
731
731
|
{
|
|
732
732
|
"source": "package/dist/opencode2/index.d.ts",
|
|
733
733
|
"output": "opencode2/index.d.ts",
|
|
734
|
-
"bytes":
|
|
735
|
-
"sourceSha256": "
|
|
736
|
-
"outputSha256": "
|
|
734
|
+
"bytes": 1251,
|
|
735
|
+
"sourceSha256": "048d288a7c16c4cc8ae49414159ba2d25f2ba3237014778ad2151689e13ddd2a",
|
|
736
|
+
"outputSha256": "048d288a7c16c4cc8ae49414159ba2d25f2ba3237014778ad2151689e13ddd2a",
|
|
737
737
|
"transform": "verbatim"
|
|
738
738
|
},
|
|
739
739
|
{
|
|
@@ -747,17 +747,17 @@
|
|
|
747
747
|
{
|
|
748
748
|
"source": "package/dist/opencode2/install.d.ts",
|
|
749
749
|
"output": "opencode2/install.d.ts",
|
|
750
|
-
"bytes":
|
|
751
|
-
"sourceSha256": "
|
|
752
|
-
"outputSha256": "
|
|
750
|
+
"bytes": 3919,
|
|
751
|
+
"sourceSha256": "e6c201f36b9c021a38c395a09739ccc232cc1f6414189251097685d753099f50",
|
|
752
|
+
"outputSha256": "e6c201f36b9c021a38c395a09739ccc232cc1f6414189251097685d753099f50",
|
|
753
753
|
"transform": "verbatim"
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
756
|
"source": "package/dist/opencode2/install.js",
|
|
757
757
|
"output": "opencode2/install.js",
|
|
758
|
-
"bytes":
|
|
759
|
-
"sourceSha256": "
|
|
760
|
-
"outputSha256": "
|
|
758
|
+
"bytes": 53838,
|
|
759
|
+
"sourceSha256": "1ef58be234b760e6f8c5bb3b4eae892b3f9c2046ed07f4ac38f5bc20dbea330e",
|
|
760
|
+
"outputSha256": "1ef58be234b760e6f8c5bb3b4eae892b3f9c2046ed07f4ac38f5bc20dbea330e",
|
|
761
761
|
"transform": "verbatim"
|
|
762
762
|
},
|
|
763
763
|
{
|
|
@@ -795,9 +795,9 @@
|
|
|
795
795
|
{
|
|
796
796
|
"source": "package/dist/opencode2/types.d.ts",
|
|
797
797
|
"output": "opencode2/types.d.ts",
|
|
798
|
-
"bytes":
|
|
799
|
-
"sourceSha256": "
|
|
800
|
-
"outputSha256": "
|
|
798
|
+
"bytes": 26581,
|
|
799
|
+
"sourceSha256": "f1c778b5a56d5511313a1a0702035d9a2d42fa76fa6a44f5785598af2669ef04",
|
|
800
|
+
"outputSha256": "f1c778b5a56d5511313a1a0702035d9a2d42fa76fa6a44f5785598af2669ef04",
|
|
801
801
|
"transform": "verbatim"
|
|
802
802
|
},
|
|
803
803
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
1
|
import { createTextNode as _$createTextNode } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
|
+
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
3
3
|
import { use as _$use } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
4
4
|
import { createComponent as _$createComponent } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
5
5
|
import { effect as _$effect } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
@@ -11,9 +11,9 @@ import { createElement as _$createElement } from "opentui:runtime-module:%40open
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The Antigravity sidebar frame, shared by the OpenCode 1 sidebar (`tui.tsx`)
|
|
14
|
-
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the
|
|
15
|
-
* panel, the clickable `▼`/`▶` header badge with the plugin version
|
|
16
|
-
*
|
|
14
|
+
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the padded
|
|
15
|
+
* panel, the clickable `▼`/`▶` header badge with the optional plugin version
|
|
16
|
+
* at the right, one line per account when collapsed, and the
|
|
17
17
|
* `Quota`, `Routing` and `Health` sections when expanded.
|
|
18
18
|
*
|
|
19
19
|
* Each renderer reads its own data source (the sidebar file, or the
|
|
@@ -353,10 +353,6 @@ function CollapsedAccount(props) {
|
|
|
353
353
|
|
|
354
354
|
// --- Frame -----------------------------------------------------------------
|
|
355
355
|
|
|
356
|
-
// The opentui border prop is not typed in the plugin TUI surface.
|
|
357
|
-
const SINGLE_BORDER = {
|
|
358
|
-
type: 'single'
|
|
359
|
-
};
|
|
360
356
|
export function SidebarFrame(props) {
|
|
361
357
|
const theme = props.theme;
|
|
362
358
|
const prefs = props.settings;
|
|
@@ -384,7 +380,7 @@ export function SidebarFrame(props) {
|
|
|
384
380
|
const routeLines = route => [`${route.family}: ${route.style}`, route.strategy ?? ''].filter(line => line !== '');
|
|
385
381
|
|
|
386
382
|
// The width available to content: the header row spans the panel inside
|
|
387
|
-
// its
|
|
383
|
+
// its padding. Layout reports it during a render pass, so the
|
|
388
384
|
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
389
385
|
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH);
|
|
390
386
|
let headerRow;
|
|
@@ -396,8 +392,7 @@ export function SidebarFrame(props) {
|
|
|
396
392
|
});
|
|
397
393
|
};
|
|
398
394
|
|
|
399
|
-
// Header badge: ▼/▶ {label}, with the version at the right
|
|
400
|
-
// degraded and a `LIMITED` badge in its place when something is.
|
|
395
|
+
// Header badge: ▼/▶ {label}, with the optional version at the right.
|
|
401
396
|
const headerLabel = () => {
|
|
402
397
|
const name = prefs().header.label;
|
|
403
398
|
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`;
|
|
@@ -411,7 +406,6 @@ export function SidebarFrame(props) {
|
|
|
411
406
|
_$insertNode(_el$12, _el$13);
|
|
412
407
|
_$setProp(_el$12, "width", '100%');
|
|
413
408
|
_$setProp(_el$12, "flexDirection", 'column');
|
|
414
|
-
_$setProp(_el$12, "border", SINGLE_BORDER);
|
|
415
409
|
_$setProp(_el$12, "paddingTop", 1);
|
|
416
410
|
_$setProp(_el$12, "paddingBottom", 1);
|
|
417
411
|
_$setProp(_el$12, "paddingLeft", 1);
|
|
@@ -438,40 +432,12 @@ export function SidebarFrame(props) {
|
|
|
438
432
|
_$insert(_el$16, headerLabel);
|
|
439
433
|
_$insert(_el$13, _$createComponent(Show, {
|
|
440
434
|
get when() {
|
|
441
|
-
return
|
|
442
|
-
},
|
|
443
|
-
get fallback() {
|
|
444
|
-
return _$createComponent(Show, {
|
|
445
|
-
get when() {
|
|
446
|
-
return _$memo(() => !!prefs().header.showVersion)() && props.version !== '';
|
|
447
|
-
},
|
|
448
|
-
get children() {
|
|
449
|
-
var _el$21 = _$createElement("text");
|
|
450
|
-
_$insert(_el$21, () => `v${props.version}`);
|
|
451
|
-
_$effect(_$p => _$setProp(_el$21, "fg", theme().textMuted, _$p));
|
|
452
|
-
return _el$21;
|
|
453
|
-
}
|
|
454
|
-
});
|
|
435
|
+
return _$memo(() => !!prefs().header.showVersion)() && props.version !== '';
|
|
455
436
|
},
|
|
456
437
|
get children() {
|
|
457
|
-
var _el$17 = _$createElement("
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
_$insertNode(_el$17, _el$18);
|
|
461
|
-
_$setProp(_el$17, "paddingLeft", 1);
|
|
462
|
-
_$setProp(_el$17, "paddingRight", 1);
|
|
463
|
-
_$insertNode(_el$18, _el$19);
|
|
464
|
-
_$insertNode(_el$19, _$createTextNode(`LIMITED`));
|
|
465
|
-
_$effect(_p$ => {
|
|
466
|
-
var _v$3 = theme().warning,
|
|
467
|
-
_v$4 = theme().background;
|
|
468
|
-
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$17, "backgroundColor", _v$3, _p$.e));
|
|
469
|
-
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$18, "fg", _v$4, _p$.t));
|
|
470
|
-
return _p$;
|
|
471
|
-
}, {
|
|
472
|
-
e: undefined,
|
|
473
|
-
t: undefined
|
|
474
|
-
});
|
|
438
|
+
var _el$17 = _$createElement("text");
|
|
439
|
+
_$insert(_el$17, () => `v${props.version}`);
|
|
440
|
+
_$effect(_$p => _$setProp(_el$17, "fg", theme().textMuted, _$p));
|
|
475
441
|
return _el$17;
|
|
476
442
|
}
|
|
477
443
|
}), null);
|
|
@@ -505,14 +471,14 @@ export function SidebarFrame(props) {
|
|
|
505
471
|
},
|
|
506
472
|
get fallback() {
|
|
507
473
|
return (() => {
|
|
508
|
-
var _el$
|
|
509
|
-
_el$
|
|
510
|
-
_$insertNode(_el$
|
|
511
|
-
_$setProp(_el$
|
|
512
|
-
_$setProp(_el$
|
|
513
|
-
_$insertNode(_el$
|
|
514
|
-
_$effect(_$p => _$setProp(_el$
|
|
515
|
-
return _el$
|
|
474
|
+
var _el$18 = _$createElement("box"),
|
|
475
|
+
_el$19 = _$createElement("text");
|
|
476
|
+
_$insertNode(_el$18, _el$19);
|
|
477
|
+
_$setProp(_el$18, "marginTop", 1);
|
|
478
|
+
_$setProp(_el$18, "width", '100%');
|
|
479
|
+
_$insertNode(_el$19, _$createTextNode(`Waiting for quota…`));
|
|
480
|
+
_$effect(_$p => _$setProp(_el$19, "fg", theme().textMuted, _$p));
|
|
481
|
+
return _el$18;
|
|
516
482
|
})();
|
|
517
483
|
},
|
|
518
484
|
get children() {
|
|
@@ -556,11 +522,11 @@ export function SidebarFrame(props) {
|
|
|
556
522
|
},
|
|
557
523
|
get fallback() {
|
|
558
524
|
return (() => {
|
|
559
|
-
var _el$
|
|
560
|
-
_$insertNode(_el$
|
|
561
|
-
_$setProp(_el$
|
|
562
|
-
_$effect(_$p => _$setProp(_el$
|
|
563
|
-
return _el$
|
|
525
|
+
var _el$21 = _$createElement("text");
|
|
526
|
+
_$insertNode(_el$21, _$createTextNode(`No request yet`));
|
|
527
|
+
_$setProp(_el$21, "wrapMode", 'none');
|
|
528
|
+
_$effect(_$p => _$setProp(_el$21, "fg", theme().textMuted, _$p));
|
|
529
|
+
return _el$21;
|
|
564
530
|
})();
|
|
565
531
|
},
|
|
566
532
|
children: route => _$createComponent(Show, {
|
|
@@ -573,13 +539,13 @@ export function SidebarFrame(props) {
|
|
|
573
539
|
return routeLines(route());
|
|
574
540
|
},
|
|
575
541
|
children: line => (() => {
|
|
576
|
-
var _el$
|
|
577
|
-
_el$
|
|
578
|
-
_$insertNode(_el$
|
|
579
|
-
_$setProp(_el$
|
|
580
|
-
_$insert(_el$
|
|
581
|
-
_$effect(_$p => _$setProp(_el$
|
|
582
|
-
return _el$
|
|
542
|
+
var _el$23 = _$createElement("text"),
|
|
543
|
+
_el$24 = _$createElement("b");
|
|
544
|
+
_$insertNode(_el$23, _el$24);
|
|
545
|
+
_$setProp(_el$23, "wrapMode", 'none');
|
|
546
|
+
_$insert(_el$24, line);
|
|
547
|
+
_$effect(_$p => _$setProp(_el$23, "fg", toneColor(theme(), 'accent'), _$p));
|
|
548
|
+
return _el$23;
|
|
583
549
|
})()
|
|
584
550
|
});
|
|
585
551
|
},
|
|
@@ -640,17 +606,14 @@ export function SidebarFrame(props) {
|
|
|
640
606
|
}
|
|
641
607
|
}), null);
|
|
642
608
|
_$effect(_p$ => {
|
|
643
|
-
var _v$
|
|
644
|
-
_v$
|
|
645
|
-
|
|
646
|
-
_v$
|
|
647
|
-
_v$6 !== _p$.t && (_p$.t = _$setProp(_el$14, "backgroundColor", _v$6, _p$.t));
|
|
648
|
-
_v$7 !== _p$.a && (_p$.a = _$setProp(_el$15, "fg", _v$7, _p$.a));
|
|
609
|
+
var _v$3 = theme().accent,
|
|
610
|
+
_v$4 = theme().background;
|
|
611
|
+
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$14, "backgroundColor", _v$3, _p$.e));
|
|
612
|
+
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$15, "fg", _v$4, _p$.t));
|
|
649
613
|
return _p$;
|
|
650
614
|
}, {
|
|
651
615
|
e: undefined,
|
|
652
|
-
t: undefined
|
|
653
|
-
a: undefined
|
|
616
|
+
t: undefined
|
|
654
617
|
});
|
|
655
618
|
return _el$12;
|
|
656
619
|
})();
|
package/src/tui-compiled/tui.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createComponent as _$createComponent } from "opentui:runtime-module:%40
|
|
|
5
5
|
* Read-only OpenTUI sidebar for the Antigravity plugin.
|
|
6
6
|
*
|
|
7
7
|
* Mirrors the fleet sibling layout (see `anthropic-auth-live` /
|
|
8
|
-
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
8
|
+
* `openai-auth-live` `packages/opencode/src/tui.tsx`): a single
|
|
9
9
|
* column with a labelled header badge, a Quota section that lists one
|
|
10
10
|
* `AccountBlock` per visible account, a Routing section that surfaces the
|
|
11
11
|
* most recent session route, and a Health section that only appears when
|
|
@@ -1042,7 +1042,6 @@ export function sidebarThemeFromHost(theme) {
|
|
|
1042
1042
|
textMuted: theme?.text?.muted ?? text,
|
|
1043
1043
|
accent,
|
|
1044
1044
|
background: theme?.background?.base ?? theme?.background?.raised?.base,
|
|
1045
|
-
borderActive: theme?.border?.base ?? accent,
|
|
1046
1045
|
success: feedback?.success?.base ?? feedback?.success?.muted,
|
|
1047
1046
|
warning: feedback?.warning?.base ?? feedback?.warning?.muted,
|
|
1048
1047
|
error: feedback?.error?.base ?? feedback?.error?.muted
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
1
|
import { createTextNode as _$createTextNode } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
2
|
+
import { memo as _$memo } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
3
3
|
import { use as _$use } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
4
4
|
import { createComponent as _$createComponent } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
5
5
|
import { effect as _$effect } from "opentui:runtime-module:%40opentui%2Fsolid";
|
|
@@ -11,9 +11,9 @@ import { createElement as _$createElement } from "opentui:runtime-module:%40open
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The Antigravity sidebar frame, shared by the OpenCode 1 sidebar (`tui.tsx`)
|
|
14
|
-
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the
|
|
15
|
-
* panel, the clickable `▼`/`▶` header badge with the plugin version
|
|
16
|
-
*
|
|
14
|
+
* and the OpenCode 2 sidebar (`ga/tui/host-ga.tsx`): the padded
|
|
15
|
+
* panel, the clickable `▼`/`▶` header badge with the optional plugin version
|
|
16
|
+
* at the right, one line per account when collapsed, and the
|
|
17
17
|
* `Quota`, `Routing` and `Health` sections when expanded.
|
|
18
18
|
*
|
|
19
19
|
* Each renderer reads its own data source (the sidebar file, or the
|
|
@@ -353,10 +353,6 @@ function CollapsedAccount(props) {
|
|
|
353
353
|
|
|
354
354
|
// --- Frame -----------------------------------------------------------------
|
|
355
355
|
|
|
356
|
-
// The opentui border prop is not typed in the plugin TUI surface.
|
|
357
|
-
const SINGLE_BORDER = {
|
|
358
|
-
type: 'single'
|
|
359
|
-
};
|
|
360
356
|
export function SidebarFrame(props) {
|
|
361
357
|
const theme = props.theme;
|
|
362
358
|
const prefs = props.settings;
|
|
@@ -384,7 +380,7 @@ export function SidebarFrame(props) {
|
|
|
384
380
|
const routeLines = route => [`${route.family}: ${route.style}`, route.strategy ?? ''].filter(line => line !== '');
|
|
385
381
|
|
|
386
382
|
// The width available to content: the header row spans the panel inside
|
|
387
|
-
// its
|
|
383
|
+
// its padding. Layout reports it during a render pass, so the
|
|
388
384
|
// signal is updated afterwards rather than rebuilding rows mid-pass.
|
|
389
385
|
const [contentWidth, setContentWidth] = createSignal(ASSUMED_CONTENT_WIDTH);
|
|
390
386
|
let headerRow;
|
|
@@ -396,8 +392,7 @@ export function SidebarFrame(props) {
|
|
|
396
392
|
});
|
|
397
393
|
};
|
|
398
394
|
|
|
399
|
-
// Header badge: ▼/▶ {label}, with the version at the right
|
|
400
|
-
// degraded and a `LIMITED` badge in its place when something is.
|
|
395
|
+
// Header badge: ▼/▶ {label}, with the optional version at the right.
|
|
401
396
|
const headerLabel = () => {
|
|
402
397
|
const name = prefs().header.label;
|
|
403
398
|
return !hasData() ? name : collapsed() ? `\u25b6 ${name}` : `\u25bc ${name}`;
|
|
@@ -411,7 +406,6 @@ export function SidebarFrame(props) {
|
|
|
411
406
|
_$insertNode(_el$12, _el$13);
|
|
412
407
|
_$setProp(_el$12, "width", '100%');
|
|
413
408
|
_$setProp(_el$12, "flexDirection", 'column');
|
|
414
|
-
_$setProp(_el$12, "border", SINGLE_BORDER);
|
|
415
409
|
_$setProp(_el$12, "paddingTop", 1);
|
|
416
410
|
_$setProp(_el$12, "paddingBottom", 1);
|
|
417
411
|
_$setProp(_el$12, "paddingLeft", 1);
|
|
@@ -438,40 +432,12 @@ export function SidebarFrame(props) {
|
|
|
438
432
|
_$insert(_el$16, headerLabel);
|
|
439
433
|
_$insert(_el$13, _$createComponent(Show, {
|
|
440
434
|
get when() {
|
|
441
|
-
return
|
|
442
|
-
},
|
|
443
|
-
get fallback() {
|
|
444
|
-
return _$createComponent(Show, {
|
|
445
|
-
get when() {
|
|
446
|
-
return _$memo(() => !!prefs().header.showVersion)() && props.version !== '';
|
|
447
|
-
},
|
|
448
|
-
get children() {
|
|
449
|
-
var _el$21 = _$createElement("text");
|
|
450
|
-
_$insert(_el$21, () => `v${props.version}`);
|
|
451
|
-
_$effect(_$p => _$setProp(_el$21, "fg", theme().textMuted, _$p));
|
|
452
|
-
return _el$21;
|
|
453
|
-
}
|
|
454
|
-
});
|
|
435
|
+
return _$memo(() => !!prefs().header.showVersion)() && props.version !== '';
|
|
455
436
|
},
|
|
456
437
|
get children() {
|
|
457
|
-
var _el$17 = _$createElement("
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
_$insertNode(_el$17, _el$18);
|
|
461
|
-
_$setProp(_el$17, "paddingLeft", 1);
|
|
462
|
-
_$setProp(_el$17, "paddingRight", 1);
|
|
463
|
-
_$insertNode(_el$18, _el$19);
|
|
464
|
-
_$insertNode(_el$19, _$createTextNode(`LIMITED`));
|
|
465
|
-
_$effect(_p$ => {
|
|
466
|
-
var _v$3 = theme().warning,
|
|
467
|
-
_v$4 = theme().background;
|
|
468
|
-
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$17, "backgroundColor", _v$3, _p$.e));
|
|
469
|
-
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$18, "fg", _v$4, _p$.t));
|
|
470
|
-
return _p$;
|
|
471
|
-
}, {
|
|
472
|
-
e: undefined,
|
|
473
|
-
t: undefined
|
|
474
|
-
});
|
|
438
|
+
var _el$17 = _$createElement("text");
|
|
439
|
+
_$insert(_el$17, () => `v${props.version}`);
|
|
440
|
+
_$effect(_$p => _$setProp(_el$17, "fg", theme().textMuted, _$p));
|
|
475
441
|
return _el$17;
|
|
476
442
|
}
|
|
477
443
|
}), null);
|
|
@@ -505,14 +471,14 @@ export function SidebarFrame(props) {
|
|
|
505
471
|
},
|
|
506
472
|
get fallback() {
|
|
507
473
|
return (() => {
|
|
508
|
-
var _el$
|
|
509
|
-
_el$
|
|
510
|
-
_$insertNode(_el$
|
|
511
|
-
_$setProp(_el$
|
|
512
|
-
_$setProp(_el$
|
|
513
|
-
_$insertNode(_el$
|
|
514
|
-
_$effect(_$p => _$setProp(_el$
|
|
515
|
-
return _el$
|
|
474
|
+
var _el$18 = _$createElement("box"),
|
|
475
|
+
_el$19 = _$createElement("text");
|
|
476
|
+
_$insertNode(_el$18, _el$19);
|
|
477
|
+
_$setProp(_el$18, "marginTop", 1);
|
|
478
|
+
_$setProp(_el$18, "width", '100%');
|
|
479
|
+
_$insertNode(_el$19, _$createTextNode(`Waiting for quota…`));
|
|
480
|
+
_$effect(_$p => _$setProp(_el$19, "fg", theme().textMuted, _$p));
|
|
481
|
+
return _el$18;
|
|
516
482
|
})();
|
|
517
483
|
},
|
|
518
484
|
get children() {
|
|
@@ -556,11 +522,11 @@ export function SidebarFrame(props) {
|
|
|
556
522
|
},
|
|
557
523
|
get fallback() {
|
|
558
524
|
return (() => {
|
|
559
|
-
var _el$
|
|
560
|
-
_$insertNode(_el$
|
|
561
|
-
_$setProp(_el$
|
|
562
|
-
_$effect(_$p => _$setProp(_el$
|
|
563
|
-
return _el$
|
|
525
|
+
var _el$21 = _$createElement("text");
|
|
526
|
+
_$insertNode(_el$21, _$createTextNode(`No request yet`));
|
|
527
|
+
_$setProp(_el$21, "wrapMode", 'none');
|
|
528
|
+
_$effect(_$p => _$setProp(_el$21, "fg", theme().textMuted, _$p));
|
|
529
|
+
return _el$21;
|
|
564
530
|
})();
|
|
565
531
|
},
|
|
566
532
|
children: route => _$createComponent(Show, {
|
|
@@ -573,13 +539,13 @@ export function SidebarFrame(props) {
|
|
|
573
539
|
return routeLines(route());
|
|
574
540
|
},
|
|
575
541
|
children: line => (() => {
|
|
576
|
-
var _el$
|
|
577
|
-
_el$
|
|
578
|
-
_$insertNode(_el$
|
|
579
|
-
_$setProp(_el$
|
|
580
|
-
_$insert(_el$
|
|
581
|
-
_$effect(_$p => _$setProp(_el$
|
|
582
|
-
return _el$
|
|
542
|
+
var _el$23 = _$createElement("text"),
|
|
543
|
+
_el$24 = _$createElement("b");
|
|
544
|
+
_$insertNode(_el$23, _el$24);
|
|
545
|
+
_$setProp(_el$23, "wrapMode", 'none');
|
|
546
|
+
_$insert(_el$24, line);
|
|
547
|
+
_$effect(_$p => _$setProp(_el$23, "fg", toneColor(theme(), 'accent'), _$p));
|
|
548
|
+
return _el$23;
|
|
583
549
|
})()
|
|
584
550
|
});
|
|
585
551
|
},
|
|
@@ -640,17 +606,14 @@ export function SidebarFrame(props) {
|
|
|
640
606
|
}
|
|
641
607
|
}), null);
|
|
642
608
|
_$effect(_p$ => {
|
|
643
|
-
var _v$
|
|
644
|
-
_v$
|
|
645
|
-
|
|
646
|
-
_v$
|
|
647
|
-
_v$6 !== _p$.t && (_p$.t = _$setProp(_el$14, "backgroundColor", _v$6, _p$.t));
|
|
648
|
-
_v$7 !== _p$.a && (_p$.a = _$setProp(_el$15, "fg", _v$7, _p$.a));
|
|
609
|
+
var _v$3 = theme().accent,
|
|
610
|
+
_v$4 = theme().background;
|
|
611
|
+
_v$3 !== _p$.e && (_p$.e = _$setProp(_el$14, "backgroundColor", _v$3, _p$.e));
|
|
612
|
+
_v$4 !== _p$.t && (_p$.t = _$setProp(_el$15, "fg", _v$4, _p$.t));
|
|
649
613
|
return _p$;
|
|
650
614
|
}, {
|
|
651
615
|
e: undefined,
|
|
652
|
-
t: undefined
|
|
653
|
-
a: undefined
|
|
616
|
+
t: undefined
|
|
654
617
|
});
|
|
655
618
|
return _el$12;
|
|
656
619
|
})();
|
|
@@ -1542,7 +1542,6 @@ export function sidebarThemeFromHost(theme: GaTheme | undefined): FrameTheme {
|
|
|
1542
1542
|
textMuted: theme?.text?.muted ?? text,
|
|
1543
1543
|
accent,
|
|
1544
1544
|
background: theme?.background?.base ?? theme?.background?.raised?.base,
|
|
1545
|
-
borderActive: theme?.border?.base ?? accent,
|
|
1546
1545
|
success: feedback?.success?.base ?? feedback?.success?.muted,
|
|
1547
1546
|
warning: feedback?.warning?.base ?? feedback?.warning?.muted,
|
|
1548
1547
|
error: feedback?.error?.base ?? feedback?.error?.muted,
|