@opencode/ui 0.0.0-dev-20528 → 0.0.0-dev-20530

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/i18n/en.d.ts CHANGED
@@ -225,6 +225,7 @@ declare const source: {
225
225
  "ui.message.duration.seconds": string;
226
226
  "ui.message.duration.minutesSeconds": string;
227
227
  "ui.message.interrupted": string;
228
+ "ui.message.modelVariant": string;
228
229
  "ui.sessionTimeline.notice.model": string;
229
230
  "ui.sessionTimeline.notice.modelSwitched": string;
230
231
  "ui.sessionTimeline.notice.agentChanged": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "0.0.0-dev-20528",
3
+ "version": "0.0.0-dev-20530",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/i18n/en.ts CHANGED
@@ -248,6 +248,7 @@ const source = {
248
248
  "ui.message.duration.seconds": "{{count}}s",
249
249
  "ui.message.duration.minutesSeconds": "{{minutes}}m {{seconds}}s",
250
250
  "ui.message.interrupted": "Interrupted",
251
+ "ui.message.modelVariant": "{{model}} ({{variant}})",
251
252
  "ui.sessionTimeline.notice.model": "Model",
252
253
  "ui.sessionTimeline.notice.modelSwitched": "Switched to {{model}}",
253
254
  "ui.sessionTimeline.notice.agentChanged": "Agent changed",
@@ -275,10 +276,15 @@ const source = {
275
276
  } satisfies Record<string, string>
276
277
 
277
278
  export type Key = keyof typeof source
279
+
278
280
  export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other"
281
+
279
282
  export type PluralKey = {
280
283
  [Entry in Key]: Entry extends `${infer Base}.other` ? (`${Base}.one` extends Key ? Base : never) : never
281
284
  }[Key]
285
+
282
286
  export type PluralLookupKey = `${PluralKey}.${PluralCategory}`
287
+
283
288
  export type LocaleKey = Key | PluralLookupKey
289
+
284
290
  export const dict: typeof source & Record<string, string> = source