@jeffreyjyz/opencode-command-code 0.3.0 → 0.3.2
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/catalog.d.ts +4 -1
- package/dist/index.js +153 -95
- package/dist/sidebar/rows.d.ts +2 -0
- package/dist/sidebar/windows.d.ts +6 -0
- package/dist/startupLog.d.ts +18 -0
- package/dist/tui.js +1075 -4
- package/dist/v2.d.ts +8 -2
- package/package.json +1 -1
package/dist/v2.d.ts
CHANGED
|
@@ -21,9 +21,15 @@ export declare const TOOL_DESCRIPTION = "Fetch live Command Code plan/usage: pla
|
|
|
21
21
|
* only the open lane needs the reasoning round-trip field. */
|
|
22
22
|
export declare function toV2Model(m: CmdModel, lane: Lane): unknown;
|
|
23
23
|
/** Instant static seed from gating.json's known model ids, split by wire lane.
|
|
24
|
-
*
|
|
25
|
-
* fallback shown when the live fetch fails. */
|
|
24
|
+
* Shows in /model immediately; the live fetch merges over it later. */
|
|
26
25
|
export declare function staticSeedModels(): Record<Lane["id"], unknown[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Union by model id: the snapshot keeps every id it had, so a gated or partial
|
|
28
|
+
* live response can never make a model vanish from the picker, while live
|
|
29
|
+
* entries win field-by-field so context, rates, variants and modalities stay
|
|
30
|
+
* fresh. Snapshot order is preserved; live-only models append in live order.
|
|
31
|
+
*/
|
|
32
|
+
export declare function mergeModels(snapshot: readonly unknown[], live: readonly unknown[]): unknown[];
|
|
27
33
|
/** The slice of the plugin context the credential resolver needs. */
|
|
28
34
|
type CredentialContext = {
|
|
29
35
|
integration: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffreyjyz/opencode-command-code",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Command Code provider + usage dashboard for opencode: two providers (Anthropic wire for Claude, OpenAI wire for everything else) against api.commandcode.ai, live model list, plan gating, /cmd-usage. Requires the cmduse CLI for usage rendering.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|