@telsoncc/opencode-commandcode 1.2.33 → 1.2.34
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/CHANGELOG.md +6 -222
- package/dist/_version.txt +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +19 -0
- package/dist/manifest.json +28 -0
- package/dist/models.json +3334 -0
- package/dist/plugin-opencode2.d.ts +30 -0
- package/dist/plugin-opencode2.js +127 -0
- package/dist/plugin.d.ts +27 -0
- package/dist/plugin.js +192 -0
- package/dist/src/auth.d.ts +5 -0
- package/dist/src/auth.js +38 -0
- package/dist/src/catalog-break.d.ts +12 -0
- package/dist/src/catalog-break.js +33 -0
- package/dist/src/catalog-release-notes.d.ts +30 -0
- package/dist/src/catalog-release-notes.js +106 -0
- package/dist/src/catalog.d.ts +160 -0
- package/dist/src/catalog.js +786 -0
- package/dist/src/convert.d.ts +71 -0
- package/dist/src/convert.js +154 -0
- package/dist/src/costs-docs.d.ts +13 -0
- package/dist/src/costs-docs.js +170 -0
- package/dist/src/costs-models-dev.d.ts +68 -0
- package/dist/src/costs-models-dev.js +303 -0
- package/dist/src/cut-changelog.d.ts +1 -0
- package/dist/src/cut-changelog.js +43 -0
- package/dist/src/manifest.d.ts +72 -0
- package/dist/src/manifest.js +111 -0
- package/dist/src/model.d.ts +18 -0
- package/dist/src/model.js +138 -0
- package/dist/src/opencode2.d.ts +179 -0
- package/dist/src/opencode2.js +386 -0
- package/dist/src/pack-contract.d.ts +25 -0
- package/dist/src/pack-contract.js +42 -0
- package/dist/src/publish-policy.d.ts +18 -0
- package/dist/src/publish-policy.js +16 -0
- package/dist/src/startup.d.ts +18 -0
- package/dist/src/startup.js +31 -0
- package/dist/src/stream.d.ts +2 -0
- package/dist/src/stream.js +203 -0
- package/manifest.json +1 -1
- package/package.json +12 -7
- package/plugin.ts +14 -3
- package/src/cut-changelog.ts +6 -1
- package/src/opencode2.ts +14 -3
- package/src/pack-contract.ts +51 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,229 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [1.2.31] - 2026-10-29
|
|
15
|
-
|
|
16
|
-
## [1.2.30] - 2026-10-28
|
|
17
|
-
|
|
18
|
-
## [1.2.29] - 2026-10-23
|
|
19
|
-
|
|
20
|
-
## [1.2.28] - 2026-10-23
|
|
21
|
-
|
|
22
|
-
## [1.2.27] - 2026-10-23
|
|
23
|
-
|
|
24
|
-
## [1.2.26] - 2026-10-21
|
|
25
|
-
|
|
26
|
-
## [1.2.25] - 2026-10-20
|
|
27
|
-
|
|
28
|
-
## [1.2.24] - 2026-10-16
|
|
29
|
-
|
|
30
|
-
## [1.2.23] - 2026-10-16
|
|
31
|
-
|
|
32
|
-
## [1.2.22] - 2026-10-16
|
|
33
|
-
|
|
34
|
-
## [1.2.21] - 2026-10-15
|
|
35
|
-
|
|
36
|
-
## [1.2.20] - 2026-10-15
|
|
37
|
-
|
|
38
|
-
## [1.2.19] - 2026-10-14
|
|
39
|
-
|
|
40
|
-
## [1.2.18] - 2026-10-13
|
|
41
|
-
|
|
42
|
-
## [1.2.17] - 2026-10-13
|
|
43
|
-
|
|
44
|
-
## [1.2.16] - 2026-10-08
|
|
45
|
-
|
|
46
|
-
## [1.2.15] - 2026-10-07
|
|
47
|
-
|
|
48
|
-
## [1.2.14] - 2026-10-07
|
|
49
|
-
|
|
50
|
-
## [1.2.13] - 2026-10-06
|
|
51
|
-
|
|
52
|
-
## [1.2.12] - 2026-10-05
|
|
53
|
-
|
|
54
|
-
## [1.2.11] - 2026-10-03
|
|
55
|
-
|
|
56
|
-
## [1.2.10] - 2026-10-02
|
|
57
|
-
|
|
58
|
-
## [1.2.9] - 2026-10-01
|
|
59
|
-
|
|
60
|
-
## [1.2.8] - 2026-10-01
|
|
61
|
-
|
|
62
|
-
## [1.2.7] - 2026-09-30
|
|
63
|
-
|
|
64
|
-
## [1.2.5] - 2026-09-29
|
|
65
|
-
|
|
66
|
-
## [1.2.4] - 2026-09-29
|
|
67
|
-
|
|
68
|
-
## [1.2.3] - 2026-09-28
|
|
69
|
-
|
|
70
|
-
## [1.2.2] - 2026-09-26
|
|
71
|
-
|
|
72
|
-
## [1.2.1] - 2026-09-25
|
|
73
|
-
|
|
74
|
-
## [1.1.0] - 2026-09-25
|
|
75
|
-
|
|
76
|
-
## [1.0.6] - 2026-09-24
|
|
77
|
-
|
|
78
|
-
## [1.0.5] - 2026-09-24
|
|
79
|
-
|
|
80
|
-
## [1.0.4] - 2026-09-23
|
|
81
|
-
|
|
82
|
-
## [1.0.3] - 2026-09-22
|
|
83
|
-
|
|
84
|
-
## [1.0.2] - 2026-09-22
|
|
85
|
-
|
|
86
|
-
## [1.0.1] - 2026-09-21
|
|
87
|
-
|
|
88
|
-
## [1.0.0] - 2026-09-21
|
|
89
|
-
|
|
90
|
-
## [0.7.73] - 2026-09-21
|
|
91
|
-
|
|
92
|
-
## [0.7.72] - 2026-09-20
|
|
93
|
-
|
|
94
|
-
## [0.7.71] - 2026-09-19
|
|
95
|
-
|
|
96
|
-
## [0.7.70] - 2026-09-19
|
|
97
|
-
|
|
98
|
-
## [0.7.69] - 2026-09-18
|
|
99
|
-
|
|
100
|
-
## [0.7.68] - 2026-09-18
|
|
101
|
-
|
|
102
|
-
## [0.7.67] - 2026-09-18
|
|
103
|
-
|
|
104
|
-
## [0.7.66] - 2026-09-17
|
|
105
|
-
|
|
106
|
-
## [0.7.65] - 2026-09-16
|
|
107
|
-
|
|
108
|
-
## [0.7.64] - 2026-09-16
|
|
109
|
-
|
|
110
|
-
## [0.7.63] - 2026-09-14
|
|
111
|
-
|
|
112
|
-
## [0.7.62] - 2026-09-12
|
|
113
|
-
|
|
114
|
-
## [0.7.61] - 2026-09-10
|
|
115
|
-
|
|
116
|
-
## [0.7.60] - 2026-09-09
|
|
117
|
-
|
|
118
|
-
## [0.7.59] - 2026-09-09
|
|
8
|
+
Catalog-only releases after `0.7.1` (the automated `fix(catalog): sync
|
|
9
|
+
command-code@X.Y.Z` patch bumps) are documented in their GitHub release notes
|
|
10
|
+
instead of here: they only refresh `models.json` and carry no hand-written
|
|
11
|
+
entry. See the [releases page](https://github.com/telsoncc/opencode-commandcode/releases)
|
|
12
|
+
for the full history.
|
|
119
13
|
|
|
120
|
-
## [
|
|
121
|
-
|
|
122
|
-
## [0.7.57] - 2026-09-08
|
|
123
|
-
|
|
124
|
-
## [0.7.56] - 2026-09-08
|
|
125
|
-
|
|
126
|
-
## [0.7.55] - 2026-09-06
|
|
127
|
-
|
|
128
|
-
## [0.7.54] - 2026-09-05
|
|
129
|
-
|
|
130
|
-
## [0.7.53] - 2026-09-05
|
|
131
|
-
|
|
132
|
-
## [0.7.52] - 2026-09-04
|
|
133
|
-
|
|
134
|
-
## [0.7.51] - 2026-09-04
|
|
135
|
-
|
|
136
|
-
## [0.7.50] - 2026-09-03
|
|
137
|
-
|
|
138
|
-
## [0.7.49] - 2026-09-03
|
|
139
|
-
|
|
140
|
-
## [0.7.48] - 2026-09-02
|
|
141
|
-
|
|
142
|
-
## [0.7.47] - 2026-09-02
|
|
143
|
-
|
|
144
|
-
## [0.7.46] - 2026-09-02
|
|
145
|
-
|
|
146
|
-
## [0.7.45] - 2026-09-02
|
|
147
|
-
|
|
148
|
-
## [0.7.44] - 2026-09-02
|
|
149
|
-
|
|
150
|
-
## [0.7.43] - 2026-09-02
|
|
151
|
-
|
|
152
|
-
## [0.7.42] - 2026-09-02
|
|
153
|
-
|
|
154
|
-
## [0.7.41] - 2026-09-02
|
|
155
|
-
|
|
156
|
-
## [0.7.40] - 2026-09-02
|
|
157
|
-
|
|
158
|
-
## [0.7.39] - 2026-09-02
|
|
159
|
-
|
|
160
|
-
## [0.7.38] - 2026-09-02
|
|
161
|
-
|
|
162
|
-
## [0.7.37] - 2026-09-02
|
|
163
|
-
|
|
164
|
-
## [0.7.36] - 2026-09-02
|
|
165
|
-
|
|
166
|
-
## [0.7.35] - 2026-09-02
|
|
167
|
-
|
|
168
|
-
## [0.7.34] - 2026-09-02
|
|
169
|
-
|
|
170
|
-
## [0.7.33] - 2026-09-02
|
|
171
|
-
|
|
172
|
-
## [0.7.32] - 2026-09-02
|
|
173
|
-
|
|
174
|
-
## [0.7.31] - 2026-09-02
|
|
175
|
-
|
|
176
|
-
## [0.7.30] - 2026-09-02
|
|
177
|
-
|
|
178
|
-
## [0.7.29] - 2026-09-02
|
|
179
|
-
|
|
180
|
-
## [0.7.28] - 2026-09-02
|
|
181
|
-
|
|
182
|
-
## [0.7.27] - 2026-09-02
|
|
183
|
-
|
|
184
|
-
## [0.7.26] - 2026-09-02
|
|
185
|
-
|
|
186
|
-
## [0.7.25] - 2026-09-02
|
|
187
|
-
|
|
188
|
-
## [0.7.24] - 2026-09-02
|
|
189
|
-
|
|
190
|
-
## [0.7.23] - 2026-09-02
|
|
191
|
-
|
|
192
|
-
## [0.7.21] - 2026-09-02
|
|
193
|
-
|
|
194
|
-
## [0.7.20] - 2026-09-02
|
|
195
|
-
|
|
196
|
-
## [0.7.19] - 2026-09-02
|
|
197
|
-
|
|
198
|
-
## [0.7.18] - 2026-09-02
|
|
199
|
-
|
|
200
|
-
## [0.7.17] - 2026-09-02
|
|
201
|
-
|
|
202
|
-
## [0.7.16] - 2026-09-02
|
|
203
|
-
|
|
204
|
-
## [0.7.15] - 2026-09-02
|
|
205
|
-
|
|
206
|
-
## [0.7.14] - 2026-09-02
|
|
207
|
-
|
|
208
|
-
## [0.7.13] - 2026-09-02
|
|
209
|
-
|
|
210
|
-
## [0.7.12] - 2026-09-02
|
|
211
|
-
|
|
212
|
-
## [0.7.11] - 2026-09-02
|
|
213
|
-
|
|
214
|
-
## [0.7.10] - 2026-09-02
|
|
215
|
-
|
|
216
|
-
## [0.7.9] - 2026-09-02
|
|
217
|
-
|
|
218
|
-
## [0.7.8] - 2026-09-02
|
|
219
|
-
|
|
220
|
-
## [0.7.7] - 2026-09-02
|
|
221
|
-
|
|
222
|
-
## [0.7.6] - 2026-09-02
|
|
223
|
-
|
|
224
|
-
## [0.7.5] - 2026-09-02
|
|
225
|
-
|
|
226
|
-
## [0.7.4] - 2026-09-01
|
|
227
|
-
|
|
228
|
-
## [0.7.3] - 2026-09-01
|
|
229
|
-
|
|
230
|
-
## [0.7.2] - 2026-08-31
|
|
14
|
+
## [Unreleased]
|
|
231
15
|
|
|
232
16
|
## [0.7.1] - 2026-08-29
|
|
233
17
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.88.5
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommandCodeLanguageModel } from "./src/model.js";
|
|
2
|
+
export interface CommandCodeProviderOptions {
|
|
3
|
+
name?: string;
|
|
4
|
+
apiKey?: string;
|
|
5
|
+
baseURL?: string;
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
authPaths?: string[];
|
|
8
|
+
}
|
|
9
|
+
export declare function createCommandCode(options?: CommandCodeProviderOptions): {
|
|
10
|
+
languageModel(modelId: string): CommandCodeLanguageModel;
|
|
11
|
+
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { resolveApiKey } from "./src/auth.js";
|
|
2
|
+
import { CommandCodeLanguageModel } from "./src/model.js";
|
|
3
|
+
export function createCommandCode(options = {}) {
|
|
4
|
+
const apiKey = resolveApiKey({ apiKey: options.apiKey, authPaths: options.authPaths });
|
|
5
|
+
if (!apiKey) {
|
|
6
|
+
throw new Error("Command Code API key not found. Set COMMANDCODE_API_KEY env var, create ~/.commandcode/auth.json, or pass apiKey option.");
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
languageModel(modelId) {
|
|
10
|
+
return new CommandCodeLanguageModel(modelId, {
|
|
11
|
+
apiKey,
|
|
12
|
+
baseURL: typeof options.baseURL === "string" ? options.baseURL : undefined,
|
|
13
|
+
headers: typeof options.headers === "object" && options.headers !== null
|
|
14
|
+
? options.headers
|
|
15
|
+
: undefined,
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"generatedAt": "2026-11-09T18:34:31.627Z",
|
|
4
|
+
"pluginVersion": "1.2.34",
|
|
5
|
+
"commandCodeVersion": "1.88.5",
|
|
6
|
+
"commandCodeTarball": "https://registry.npmjs.org/command-code/-/command-code-1.88.5.tgz",
|
|
7
|
+
"modelCount": 95,
|
|
8
|
+
"reasoningModelCount": 84,
|
|
9
|
+
"extraction": {
|
|
10
|
+
"modelCatalog": "ok",
|
|
11
|
+
"costCatalog": "docs",
|
|
12
|
+
"costCatalogError": null
|
|
13
|
+
},
|
|
14
|
+
"costSources": {
|
|
15
|
+
"cli": 0,
|
|
16
|
+
"officialDocs": 95,
|
|
17
|
+
"thirdParty": 0,
|
|
18
|
+
"free": 0,
|
|
19
|
+
"fallback": 0,
|
|
20
|
+
"unmatched": 0
|
|
21
|
+
},
|
|
22
|
+
"review": {
|
|
23
|
+
"thirdParty": [],
|
|
24
|
+
"free": [],
|
|
25
|
+
"unmatched": []
|
|
26
|
+
},
|
|
27
|
+
"status": "healthy"
|
|
28
|
+
}
|