@cortexkit/opencode-anthropic-auth 1.15.0 → 1.16.0
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 +14 -6
- package/dist/cli.js +6 -6
- package/dist/fable-fallback.d.ts +2 -0
- package/dist/{index-bxs26mw4.js → index-0z4mmpxy.js} +1 -1
- package/dist/{index-qejbx8c9.js → index-5xsc5gwa.js} +1 -1
- package/dist/{index-qsaph2g4.js → index-dbczmr1v.js} +1 -1
- package/dist/{index-6gdd6e4s.js → index-epg96jpt.js} +1 -1
- package/dist/index-sgwz35qx.js +422 -0
- package/dist/{index-jkbar3k3.js → index-z9dywmf2.js} +1 -1
- package/dist/index.js +11 -20
- package/dist/{logger-vxnb5hjr.js → logger-ta3qm0a2.js} +1 -1
- package/dist/prompt-context.d.ts +5 -2
- package/dist/rpc/port-file.js +1 -1
- package/dist/rpc/rpc-client.js +1 -1
- package/dist/rpc/rpc-dir.js +1 -1
- package/dist/sidebar-state.js +1 -1
- package/dist/tui-preferences.js +1 -1
- package/package.json +13 -10
- package/src/tui/command-dialogs.tsx +13 -2
- package/src/tui/entry.mjs +37 -0
- package/src/tui-compiled/rpc/port-file.ts +70 -0
- package/src/tui-compiled/rpc/protocol.ts +34 -0
- package/src/tui-compiled/rpc/rpc-client.ts +62 -0
- package/src/tui-compiled/rpc/rpc-dir.ts +19 -0
- package/src/tui-compiled/sidebar-state.ts +410 -0
- package/src/tui-compiled/tui/command-dialogs.tsx +623 -0
- package/src/tui-compiled/tui-preferences.ts +370 -0
- package/src/tui-compiled/tui.tsx +1102 -0
- package/src/tui.tsx +16 -13
- package/dist/index-z03wayzs.js +0 -417
package/src/tui.tsx
CHANGED
|
@@ -50,21 +50,24 @@ let rpcPollStarted = false
|
|
|
50
50
|
|
|
51
51
|
const ID = 'cortexkit.anthropic-auth'
|
|
52
52
|
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
56
|
-
// rootDir). tui.tsx ships as source (package.json exports["./tui"] →
|
|
57
|
-
// "./src/tui.tsx") and is never compiled into a deeper dist tree, so `..` from
|
|
58
|
-
// src/ is always the package root. Empty string on any failure → header shows
|
|
59
|
-
// the badge with no version.
|
|
53
|
+
// Read package metadata from either the raw src/ entry or its generated
|
|
54
|
+
// src/tui-compiled/ counterpart. Avoid a JSON import because package.json sits
|
|
55
|
+
// outside the declaration build's rootDir.
|
|
60
56
|
const PLUGIN_VERSION: string = (() => {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
const here = dirname(fileURLToPath(import.meta.url))
|
|
58
|
+
for (const packageFile of [
|
|
59
|
+
join(here, '..', 'package.json'),
|
|
60
|
+
join(here, '..', '..', 'package.json'),
|
|
61
|
+
]) {
|
|
62
|
+
try {
|
|
63
|
+
const raw = readFileSync(packageFile, 'utf8')
|
|
64
|
+
const version = (JSON.parse(raw) as { version?: string }).version
|
|
65
|
+
if (version) return version
|
|
66
|
+
} catch {
|
|
67
|
+
// Try the path for the other TUI entry layout.
|
|
68
|
+
}
|
|
67
69
|
}
|
|
70
|
+
return ''
|
|
68
71
|
})()
|
|
69
72
|
|
|
70
73
|
// biome-ignore lint/suspicious/noExplicitAny: opentui border prop not typed in plugin tui surface
|