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.
- package/README.md +9 -1
- package/dist/index.js +17 -14
- package/dist/index.js.map +2 -2
- package/dist/tui-v1.js +377 -269
- package/dist/tui-v1.js.map +3 -3
- package/dist/tui.js +47756 -22
- package/dist/tui.js.map +4 -4
- package/package.json +1 -1
- package/src/core/display.ts +64 -4
- package/src/i18n.ts +42 -7
- package/src/index.ts +23 -16
- package/src/panel/PeakPanel.tsx +6 -1
- package/src/schedule.ts +39 -0
- package/src/tui.tsx +27 -5
- package/src/types.ts +2 -0
- package/src/v1/tui.tsx +27 -9
- package/src/v2/commands.ts +9 -2
- package/src/v2/settings-menu.ts +19 -1
package/src/v2/settings-menu.ts
CHANGED
|
@@ -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()
|