kimiflare 0.48.0 → 0.48.1
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 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12697,10 +12697,7 @@ var init_builtins = __esm({
|
|
|
12697
12697
|
{ name: "plan", description: "Switch to plan mode", source: "builtin" },
|
|
12698
12698
|
{ name: "auto", description: "Switch to auto mode", source: "builtin" },
|
|
12699
12699
|
{ name: "edit", description: "Switch to edit mode", source: "builtin" },
|
|
12700
|
-
{ name: "thinking", argHint: "low|medium|high", description: "Set reasoning effort", source: "builtin" },
|
|
12701
|
-
{ name: "effort", argHint: "low|medium|high", description: "Alias for /thinking", source: "builtin" },
|
|
12702
12700
|
{ name: "reasoning", description: "Toggle reasoning visibility", source: "builtin" },
|
|
12703
|
-
{ name: "agent", argHint: "[on|off|status]", description: "Multi-agent mode controls", source: "builtin" },
|
|
12704
12701
|
{ name: "memory", argHint: "[on|off|clear|search ...]", description: "Manage memory", source: "builtin" },
|
|
12705
12702
|
{ name: "cost", argHint: "[on|off]", description: "Show cost report or toggle attribution", source: "builtin" },
|
|
12706
12703
|
{ name: "gateway", argHint: "[status|off|<id>|cache-ttl|skip-cache|...]", description: "Manage AI Gateway", source: "builtin" },
|
|
@@ -17568,39 +17565,6 @@ ${wcagWarnings.join("\n")}` }
|
|
|
17568
17565
|
setEvents((e) => [...e, { kind: "info", key: mkKey(), text: `gateway enabled: ${rest[0]}` }]);
|
|
17569
17566
|
return true;
|
|
17570
17567
|
}
|
|
17571
|
-
if (c === "/thinking" || c === "/effort") {
|
|
17572
|
-
if (!arg) {
|
|
17573
|
-
setEvents((e) => [
|
|
17574
|
-
...e,
|
|
17575
|
-
{
|
|
17576
|
-
kind: "info",
|
|
17577
|
-
key: mkKey(),
|
|
17578
|
-
text: `current: ${effort} \xB7 ${EFFORT_DESCRIPTIONS[effort]}
|
|
17579
|
-
use: /thinking low | medium | high`
|
|
17580
|
-
}
|
|
17581
|
-
]);
|
|
17582
|
-
return true;
|
|
17583
|
-
}
|
|
17584
|
-
if (arg === "low" || arg === "medium" || arg === "high") {
|
|
17585
|
-
setEffort(arg);
|
|
17586
|
-
if (cfg) void saveConfig({ ...cfg, reasoningEffort: arg }).catch(() => {
|
|
17587
|
-
});
|
|
17588
|
-
setEvents((e) => [
|
|
17589
|
-
...e,
|
|
17590
|
-
{
|
|
17591
|
-
kind: "info",
|
|
17592
|
-
key: mkKey(),
|
|
17593
|
-
text: `thinking: ${arg} \xB7 ${EFFORT_DESCRIPTIONS[arg]}`
|
|
17594
|
-
}
|
|
17595
|
-
]);
|
|
17596
|
-
return true;
|
|
17597
|
-
}
|
|
17598
|
-
setEvents((e) => [
|
|
17599
|
-
...e,
|
|
17600
|
-
{ kind: "info", key: mkKey(), text: "usage: /thinking low | medium | high" }
|
|
17601
|
-
]);
|
|
17602
|
-
return true;
|
|
17603
|
-
}
|
|
17604
17568
|
if (c === "/mode") {
|
|
17605
17569
|
if (!arg) {
|
|
17606
17570
|
setEvents((e) => [
|
|
@@ -18238,7 +18202,6 @@ ${lines.join("\n")}` }]);
|
|
|
18238
18202
|
const lines = [
|
|
18239
18203
|
"commands:",
|
|
18240
18204
|
" /mode edit|plan|auto switch agent mode",
|
|
18241
|
-
" /thinking low|medium|high set reasoning effort",
|
|
18242
18205
|
" /skills list|add|edit|... manage skills",
|
|
18243
18206
|
" /memory on|off|clear manage memory",
|
|
18244
18207
|
" /cost show cost report",
|
|
@@ -18256,7 +18219,7 @@ ${lines.join("\n")}` }]);
|
|
|
18256
18219
|
}
|
|
18257
18220
|
return false;
|
|
18258
18221
|
},
|
|
18259
|
-
[cfg, exit, usage,
|
|
18222
|
+
[cfg, exit, usage, theme, mode, openResumePicker, runCompact, runInit, initMcp, setCfg, setShowRemoteDashboard, setSelectedRemoteSession]
|
|
18260
18223
|
);
|
|
18261
18224
|
const handleCommandSave = useCallback2(
|
|
18262
18225
|
async (opts2) => {
|
|
@@ -19071,7 +19034,7 @@ ${lines.join("\n")}` }]);
|
|
|
19071
19034
|
}
|
|
19072
19035
|
const hasConversation = events.some((e) => e.kind === "user" || e.kind === "assistant");
|
|
19073
19036
|
return /* @__PURE__ */ jsx24(ThemeProvider, { theme, children: /* @__PURE__ */ jsxs22(Box22, { flexDirection: "column", children: [
|
|
19074
|
-
!hasConversation ? /* @__PURE__ */ jsx24(Welcome, {}) : /* @__PURE__ */ jsx24(ChatView, { events, showReasoning, verbose, intentTier: intentTier ?? void 0 }),
|
|
19037
|
+
!hasConversation && events.length === 0 ? /* @__PURE__ */ jsx24(Welcome, {}) : /* @__PURE__ */ jsx24(ChatView, { events, showReasoning, verbose, intentTier: intentTier ?? void 0 }),
|
|
19075
19038
|
perm ? /* @__PURE__ */ jsx24(
|
|
19076
19039
|
PermissionModal,
|
|
19077
19040
|
{
|
|
@@ -19222,7 +19185,7 @@ async function renderApp(cfg, updateResult, lspScope = "global", lspProjectPath
|
|
|
19222
19185
|
);
|
|
19223
19186
|
await instance.waitUntilExit();
|
|
19224
19187
|
}
|
|
19225
|
-
var MAX_GITIGNORE_SIZE, FEEDBACK_WORKER_URL, CONTEXT_LIMIT, AUTO_COMPACT_SUGGEST_PCT, MAX_EVENTS, nextAssistantId, nextKey, mkKey, MAX_IMAGES_PER_MESSAGE
|
|
19188
|
+
var MAX_GITIGNORE_SIZE, FEEDBACK_WORKER_URL, CONTEXT_LIMIT, AUTO_COMPACT_SUGGEST_PCT, MAX_EVENTS, nextAssistantId, nextKey, mkKey, MAX_IMAGES_PER_MESSAGE;
|
|
19226
19189
|
var init_app = __esm({
|
|
19227
19190
|
"src/app.tsx"() {
|
|
19228
19191
|
"use strict";
|
|
@@ -19294,11 +19257,6 @@ var init_app = __esm({
|
|
|
19294
19257
|
nextKey = 1;
|
|
19295
19258
|
mkKey = () => `evt_${nextKey++}`;
|
|
19296
19259
|
MAX_IMAGES_PER_MESSAGE = 10;
|
|
19297
|
-
EFFORT_DESCRIPTIONS = {
|
|
19298
|
-
low: "low \u2014 fastest; lightest reasoning. Best for simple Q&A, small edits, quick coordination.",
|
|
19299
|
-
medium: "medium \u2014 balanced (default). Solid quality on most edits, fast on trivial prompts.",
|
|
19300
|
-
high: "high \u2014 deepest reasoning; slowest. Best for complex debugging, architecture, multi-file refactors."
|
|
19301
|
-
};
|
|
19302
19260
|
}
|
|
19303
19261
|
});
|
|
19304
19262
|
|