kimiflare 0.90.0 → 0.90.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 +42 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27010,6 +27010,8 @@ function useSessionManager(deps) {
|
|
|
27010
27010
|
const [resumeSessions, setResumeSessions] = useState27(null);
|
|
27011
27011
|
const [checkpointSession, setCheckpointSession] = useState27(null);
|
|
27012
27012
|
const [checkpointList, setCheckpointList] = useState27([]);
|
|
27013
|
+
const [resuming, setResuming] = useState27(false);
|
|
27014
|
+
const [resumingMessage, setResumingMessage] = useState27("Pulling context\u2026");
|
|
27013
27015
|
const depsRef = useRef5(deps);
|
|
27014
27016
|
depsRef.current = deps;
|
|
27015
27017
|
const ensureSessionId = useCallback8(() => {
|
|
@@ -27167,11 +27169,23 @@ ${summary}`
|
|
|
27167
27169
|
...es,
|
|
27168
27170
|
{ kind: "error", key: depsRef.current.mkKey(), text: `failed to load checkpoints: ${e.message}` }
|
|
27169
27171
|
]);
|
|
27170
|
-
|
|
27172
|
+
setResuming(true);
|
|
27173
|
+
setResumingMessage("Pulling context\u2026");
|
|
27174
|
+
try {
|
|
27175
|
+
await doResumeSession(picked.filePath);
|
|
27176
|
+
} finally {
|
|
27177
|
+
setResuming(false);
|
|
27178
|
+
}
|
|
27171
27179
|
}
|
|
27172
27180
|
return;
|
|
27173
27181
|
}
|
|
27174
|
-
|
|
27182
|
+
setResuming(true);
|
|
27183
|
+
setResumingMessage("Pulling context\u2026");
|
|
27184
|
+
try {
|
|
27185
|
+
await doResumeSession(picked.filePath);
|
|
27186
|
+
} finally {
|
|
27187
|
+
setResuming(false);
|
|
27188
|
+
}
|
|
27175
27189
|
},
|
|
27176
27190
|
[doResumeSession]
|
|
27177
27191
|
);
|
|
@@ -27186,11 +27200,17 @@ ${summary}`
|
|
|
27186
27200
|
}
|
|
27187
27201
|
return;
|
|
27188
27202
|
}
|
|
27189
|
-
|
|
27190
|
-
|
|
27191
|
-
|
|
27203
|
+
setResuming(true);
|
|
27204
|
+
setResumingMessage("Pulling context\u2026");
|
|
27205
|
+
try {
|
|
27206
|
+
if (checkpointId === "__start__") {
|
|
27207
|
+
await doResumeSession(session.filePath);
|
|
27208
|
+
return;
|
|
27209
|
+
}
|
|
27210
|
+
await doResumeSession(session.filePath, checkpointId);
|
|
27211
|
+
} finally {
|
|
27212
|
+
setResuming(false);
|
|
27192
27213
|
}
|
|
27193
|
-
await doResumeSession(session.filePath, checkpointId);
|
|
27194
27214
|
},
|
|
27195
27215
|
[checkpointSession, doResumeSession]
|
|
27196
27216
|
);
|
|
@@ -27214,6 +27234,8 @@ ${summary}`
|
|
|
27214
27234
|
checkpointList,
|
|
27215
27235
|
setCheckpointList,
|
|
27216
27236
|
hasPickerOpen: resumeSessions !== null || checkpointSession !== null,
|
|
27237
|
+
resuming,
|
|
27238
|
+
resumingMessage,
|
|
27217
27239
|
ensureSessionId,
|
|
27218
27240
|
saveSessionSafe,
|
|
27219
27241
|
openResumePicker,
|
|
@@ -30882,6 +30904,7 @@ __export(app_exports, {
|
|
|
30882
30904
|
});
|
|
30883
30905
|
import React25, { useState as useState29, useRef as useRef7, useEffect as useEffect11, useCallback as useCallback10, useMemo as useMemo6 } from "react";
|
|
30884
30906
|
import { Box as Box43, Text as Text43, useApp, useInput as useInput21, useWindowSize as useWindowSize2, render } from "ink";
|
|
30907
|
+
import Spinner6 from "ink-spinner";
|
|
30885
30908
|
import { existsSync as existsSync8 } from "fs";
|
|
30886
30909
|
import { join as join37 } from "path";
|
|
30887
30910
|
import { jsx as jsx44, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
@@ -31173,6 +31196,8 @@ ${wcagWarnings.join("\n")}` }
|
|
|
31173
31196
|
checkpointSession,
|
|
31174
31197
|
setCheckpointSession,
|
|
31175
31198
|
checkpointList,
|
|
31199
|
+
resuming,
|
|
31200
|
+
resumingMessage,
|
|
31176
31201
|
ensureSessionId,
|
|
31177
31202
|
saveSessionSafe,
|
|
31178
31203
|
openResumePicker,
|
|
@@ -31194,7 +31219,7 @@ ${wcagWarnings.join("\n")}` }
|
|
|
31194
31219
|
}));
|
|
31195
31220
|
return [...BUILTIN_COMMANDS, ...customs];
|
|
31196
31221
|
}, [customCommandsVersion]);
|
|
31197
|
-
const modalActive = commandWizard !== null || commandPicker !== null || commandToDelete !== null || showCommandList || showLspWizard || resumeSessions !== null || checkpointSession !== null || perm !== null || limitModal !== null || loopModal !== null || showInboxModal || showHelpMenu || showModePicker || showMemoryPicker || showGatewayPicker || showSkillsPicker || showShellPicker;
|
|
31222
|
+
const modalActive = commandWizard !== null || commandPicker !== null || commandToDelete !== null || showCommandList || showLspWizard || resumeSessions !== null || checkpointSession !== null || resuming || perm !== null || limitModal !== null || loopModal !== null || showInboxModal || showHelpMenu || showModePicker || showMemoryPicker || showGatewayPicker || showSkillsPicker || showShellPicker;
|
|
31198
31223
|
const loadFilePickerItems = useCallback10(async () => {
|
|
31199
31224
|
const cwd = process.cwd();
|
|
31200
31225
|
const entries = await glob("**/*", {
|
|
@@ -32917,6 +32942,16 @@ ${conflicts.join("\n")}` }
|
|
|
32917
32942
|
if (resumeSessions !== null) {
|
|
32918
32943
|
return /* @__PURE__ */ jsx44(ThemeProvider, { theme, children: /* @__PURE__ */ jsx44(Box43, { flexDirection: "column", children: /* @__PURE__ */ jsx44(ResumePicker, { sessions: resumeSessions, onPick: handleResumePick }) }) });
|
|
32919
32944
|
}
|
|
32945
|
+
if (resuming) {
|
|
32946
|
+
return /* @__PURE__ */ jsx44(ThemeProvider, { theme, children: /* @__PURE__ */ jsxs42(Box43, { flexDirection: "column", padding: 1, children: [
|
|
32947
|
+
/* @__PURE__ */ jsxs42(Text43, { color: theme.accent, bold: true, children: [
|
|
32948
|
+
/* @__PURE__ */ jsx44(Spinner6, { type: "dots" }),
|
|
32949
|
+
" ",
|
|
32950
|
+
resumingMessage
|
|
32951
|
+
] }),
|
|
32952
|
+
/* @__PURE__ */ jsx44(Text43, { color: theme.info.color, children: "Hang tight \u2014 summarizing the session so you can pick up where you left off." })
|
|
32953
|
+
] }) });
|
|
32954
|
+
}
|
|
32920
32955
|
if (hasFullscreenModal) {
|
|
32921
32956
|
return /* @__PURE__ */ jsx44(
|
|
32922
32957
|
ModalHost,
|