opencode-deepseek-peak 0.2.0 → 0.2.3

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.
@@ -1,6 +1,6 @@
1
1
  import type { Plugin } from "@opencode/plugin/tui"
2
2
  import { createT, LANG_META, type LangCode } from "../i18n.js"
3
- import type { TuiSettings } from "../types.js"
3
+ import type { TimezoneMode, TuiSettings } from "../types.js"
4
4
 
5
5
  const nextTick = () => new Promise<void>((resolve) => setTimeout(resolve, 0))
6
6
 
@@ -45,6 +45,10 @@ export function openSettingsMenu(
45
45
  title: `${t("settings.lang")}: ${LANG_META.find((meta) => meta.code === lang())?.label ?? lang()}`,
46
46
  value: "lang",
47
47
  },
48
+ {
49
+ title: `${t("settings.timezone")}: ${settings.timezone === "utc" ? t("timezone.utc") : t("timezone.local")}`,
50
+ value: "timezone",
51
+ },
48
52
  ],
49
53
  })
50
54
  if (choice === undefined) return
@@ -102,6 +106,20 @@ export function openSettingsMenu(
102
106
  draft.lang = picked
103
107
  })
104
108
  }
109
+ } else if (choice === "timezone") {
110
+ const picked = await context.ui.dialog.select<TimezoneMode>({
111
+ title: t("settings.timezone"),
112
+ options: [
113
+ { title: t("timezone.local"), value: "local" },
114
+ { title: t("timezone.utc"), value: "utc" },
115
+ ],
116
+ current: settings.timezone === "utc" ? "utc" : "local",
117
+ })
118
+ if (picked !== undefined) {
119
+ await update((draft) => {
120
+ draft.timezone = picked
121
+ })
122
+ }
105
123
  }
106
124
 
107
125
  await nextTick()