kimiflare 0.8.1 → 0.8.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/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1902,7 +1902,7 @@ var init_resume_picker = __esm({
|
|
|
1902
1902
|
import { Box as Box8, Text as Text8 } from "ink";
|
|
1903
1903
|
import SelectInput3 from "ink-select-input";
|
|
1904
1904
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1905
|
-
function ThemePicker({ themes, current, onPick }) {
|
|
1905
|
+
function ThemePicker({ themes, current, onPick, onPreview }) {
|
|
1906
1906
|
const items = themes.map((t) => ({
|
|
1907
1907
|
label: t.label,
|
|
1908
1908
|
value: t.name,
|
|
@@ -1919,7 +1919,7 @@ function ThemePicker({ themes, current, onPick }) {
|
|
|
1919
1919
|
onHighlight: (item) => {
|
|
1920
1920
|
if (item.value !== "__cancel__") {
|
|
1921
1921
|
const highlighted = themes.find((t) => t.name === item.value);
|
|
1922
|
-
if (highlighted)
|
|
1922
|
+
if (highlighted) onPreview?.(highlighted);
|
|
1923
1923
|
}
|
|
1924
1924
|
},
|
|
1925
1925
|
onSelect: (item) => {
|
|
@@ -4143,7 +4143,7 @@ use: /thinking low | medium | high`
|
|
|
4143
4143
|
return /* @__PURE__ */ jsx13(Box12, { flexDirection: "column", children: /* @__PURE__ */ jsx13(ResumePicker, { sessions: resumeSessions, onPick: handleResumePick, theme }) });
|
|
4144
4144
|
}
|
|
4145
4145
|
if (showThemePicker) {
|
|
4146
|
-
return /* @__PURE__ */ jsx13(Box12, { flexDirection: "column", children: /* @__PURE__ */ jsx13(ThemePicker, { themes: themeList(), current: theme, onPick: handleThemePick }) });
|
|
4146
|
+
return /* @__PURE__ */ jsx13(Box12, { flexDirection: "column", children: /* @__PURE__ */ jsx13(ThemePicker, { themes: themeList(), current: theme, onPick: handleThemePick, onPreview: (t) => setTheme(t) }) });
|
|
4147
4147
|
}
|
|
4148
4148
|
const hasConversation = events.some((e) => e.kind === "user" || e.kind === "assistant");
|
|
4149
4149
|
return /* @__PURE__ */ jsxs12(Box12, { flexDirection: "column", children: [
|