scream-code 0.10.3 → 0.10.5
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 +1 -13
- package/dist/{app-DkhRwgvY.mjs → app-Ccetzb44.mjs} +415 -176
- package/dist/main.mjs +1 -1
- package/dist/{src-oeUnRY3N.mjs → src-BH9W5k24.mjs} +39 -4
- package/dist/{src-B2kaYK-M.mjs → src-DCp4eCi5.mjs} +1 -1
- package/dist/{text-input-dialog-Cj7OClhs.mjs → text-input-dialog-pClOx34t.mjs} +2 -16
- package/dist/{text-input-dialog-C8_8qYYi.mjs → text-input-dialog-zZlNFEk3.mjs} +1 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
|
|
|
6
6
|
import "./suppress-sqlite-warning-C2VB0doZ.mjs";
|
|
7
7
|
//#region src/main.ts
|
|
8
8
|
try {
|
|
9
|
-
(await import("./app-
|
|
9
|
+
(await import("./app-Ccetzb44.mjs")).main();
|
|
10
10
|
} catch (error) {
|
|
11
11
|
process.stderr.write(`${error instanceof Error ? error.stack ?? error.message : String(error)}\n`);
|
|
12
12
|
process.exit(1);
|
|
@@ -1845,9 +1845,21 @@ async function multiSearchWithTrace(store, llm, query, options = {}) {
|
|
|
1845
1845
|
}), (matches) => ({ count: matches.length }));
|
|
1846
1846
|
for (const { event } of titleMatches) seedEventIds.add(event.id);
|
|
1847
1847
|
if (seedEventIds.size === 0) {
|
|
1848
|
-
|
|
1848
|
+
const results = await chunkVectorFallback(store, queryVec, topK);
|
|
1849
|
+
if (results.length > 0) {
|
|
1850
|
+
fallbackReason = "no seed events; used direct chunk vector search";
|
|
1851
|
+
return {
|
|
1852
|
+
results,
|
|
1853
|
+
trace: {
|
|
1854
|
+
steps,
|
|
1855
|
+
rerankedEventTitles,
|
|
1856
|
+
fallbackReason
|
|
1857
|
+
}
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
fallbackReason = "no seed events and direct chunk vector search returned no results; used FTS5 keyword fallback";
|
|
1849
1861
|
return {
|
|
1850
|
-
results: await
|
|
1862
|
+
results: await ftsFallback(store, query, topK),
|
|
1851
1863
|
trace: {
|
|
1852
1864
|
steps,
|
|
1853
1865
|
rerankedEventTitles,
|
|
@@ -1907,9 +1919,21 @@ async function multiSearchWithTrace(store, llm, query, options = {}) {
|
|
|
1907
1919
|
topScore: result.topCandidates[0]?.score ?? 0
|
|
1908
1920
|
}));
|
|
1909
1921
|
if (candidates.length === 0) {
|
|
1910
|
-
|
|
1922
|
+
const results = await chunkVectorFallback(store, queryVec, topK);
|
|
1923
|
+
if (results.length > 0) {
|
|
1924
|
+
fallbackReason = "no graph-reachable events with content; used chunk vector fallback";
|
|
1925
|
+
return {
|
|
1926
|
+
results,
|
|
1927
|
+
trace: {
|
|
1928
|
+
steps,
|
|
1929
|
+
rerankedEventTitles,
|
|
1930
|
+
fallbackReason
|
|
1931
|
+
}
|
|
1932
|
+
};
|
|
1933
|
+
}
|
|
1934
|
+
fallbackReason = "no graph-reachable events with content and chunk vector search returned no results; used FTS5 keyword fallback";
|
|
1911
1935
|
return {
|
|
1912
|
-
results: await
|
|
1936
|
+
results: await ftsFallback(store, query, topK),
|
|
1913
1937
|
trace: {
|
|
1914
1938
|
steps,
|
|
1915
1939
|
rerankedEventTitles,
|
|
@@ -1985,6 +2009,17 @@ async function multiSearchWithTrace(store, llm, query, options = {}) {
|
|
|
1985
2009
|
if (result !== void 0) results.push(result);
|
|
1986
2010
|
}
|
|
1987
2011
|
}
|
|
2012
|
+
if (results.length === 0) {
|
|
2013
|
+
fallbackReason = "vector retrieval returned no results; used FTS5 keyword fallback";
|
|
2014
|
+
return {
|
|
2015
|
+
results: await ftsFallback(store, query, topK),
|
|
2016
|
+
trace: {
|
|
2017
|
+
steps,
|
|
2018
|
+
rerankedEventTitles,
|
|
2019
|
+
fallbackReason
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
1988
2023
|
return {
|
|
1989
2024
|
results,
|
|
1990
2025
|
trace: {
|
|
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
|
3
3
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { n as multiSearchWithTrace } from "./src-
|
|
6
|
+
import { n as multiSearchWithTrace } from "./src-BH9W5k24.mjs";
|
|
7
7
|
export { multiSearchWithTrace };
|
|
@@ -126,6 +126,7 @@ const dictionaries = {
|
|
|
126
126
|
"status.composing": "输出中",
|
|
127
127
|
"status.tool": "执行中",
|
|
128
128
|
"status.waiting": "等待响应",
|
|
129
|
+
"status.reconnecting": "重连",
|
|
129
130
|
"approval.allow_once": "批准一次",
|
|
130
131
|
"approval.allow_session": "批准(当前会话)",
|
|
131
132
|
"approval.deny": "拒绝",
|
|
@@ -199,13 +200,6 @@ const dictionaries = {
|
|
|
199
200
|
"footer.context_short": "上下文:{pct}",
|
|
200
201
|
"footer.tasks_running": "{count}个任务 运行中",
|
|
201
202
|
"footer.agents_running": "{count}个代理 运行中",
|
|
202
|
-
"lifecycle.memory_countdown": "15 分钟未操作,即将整理会话记忆",
|
|
203
|
-
"lifecycle.memory_cancel_hint": "按 Ctrl+W 取消({seconds} 秒后自动开始)",
|
|
204
|
-
"lifecycle.memory_cancelled": "已取消记忆提取",
|
|
205
|
-
"lifecycle.memory_processing": "正在整理会话记忆...",
|
|
206
|
-
"lifecycle.memory_done": "已沉淀 {count} 条记忆至备忘录",
|
|
207
|
-
"lifecycle.memory_none": "本次无需沉淀新记忆",
|
|
208
|
-
"lifecycle.memory_failed": "记忆整理失败,稍后再试",
|
|
209
203
|
"input.replay_blocked": "会话历史正在回放时无法发送输入。",
|
|
210
204
|
"input.send_failed": "发送失败:{message}",
|
|
211
205
|
"input.guide_failed": "引导失败:{message}",
|
|
@@ -1028,7 +1022,6 @@ const dictionaries = {
|
|
|
1028
1022
|
"constant.ctrl_d_hint": "再次按 Ctrl+D 退出",
|
|
1029
1023
|
"constant.ctrl_c_hint": "再次按 Ctrl+C 退出",
|
|
1030
1024
|
"tui.resume_warning": "警告:{warning}",
|
|
1031
|
-
"tui.organizing_memory": "正在整理会话记忆...",
|
|
1032
1025
|
"tui.skill_failed": "Skill \"{skill}\" 执行失败:{message}",
|
|
1033
1026
|
"tui.replay_no_new_session": "历史回放期间无法启动新会话。",
|
|
1034
1027
|
"adapter.task_label": "任务 {taskId}",
|
|
@@ -1150,6 +1143,7 @@ const dictionaries = {
|
|
|
1150
1143
|
"status.composing": "Writing",
|
|
1151
1144
|
"status.tool": "Running",
|
|
1152
1145
|
"status.waiting": "Waiting",
|
|
1146
|
+
"status.reconnecting": "Reconnecting",
|
|
1153
1147
|
"approval.allow_once": "Allow Once",
|
|
1154
1148
|
"approval.allow_session": "Allow Session",
|
|
1155
1149
|
"approval.deny": "Deny",
|
|
@@ -1223,13 +1217,6 @@ const dictionaries = {
|
|
|
1223
1217
|
"footer.context_short": "Context: {pct}",
|
|
1224
1218
|
"footer.tasks_running": "{count} tasks running",
|
|
1225
1219
|
"footer.agents_running": "{count} agents running",
|
|
1226
|
-
"lifecycle.memory_countdown": "No activity for 15 min, about to extract session memories",
|
|
1227
|
-
"lifecycle.memory_cancel_hint": "Press Ctrl+W to cancel (auto-starts in {seconds}s)",
|
|
1228
|
-
"lifecycle.memory_cancelled": "Memory extraction cancelled",
|
|
1229
|
-
"lifecycle.memory_processing": "Extracting session memories...",
|
|
1230
|
-
"lifecycle.memory_done": "Extracted {count} memories to notebook",
|
|
1231
|
-
"lifecycle.memory_none": "No new memories to extract",
|
|
1232
|
-
"lifecycle.memory_failed": "Memory extraction failed, try again later",
|
|
1233
1220
|
"input.replay_blocked": "Cannot send input while session history is replaying.",
|
|
1234
1221
|
"input.send_failed": "Send failed: {message}",
|
|
1235
1222
|
"input.guide_failed": "Guide failed: {message}",
|
|
@@ -2052,7 +2039,6 @@ const dictionaries = {
|
|
|
2052
2039
|
"constant.ctrl_d_hint": "Press Ctrl+D again to exit",
|
|
2053
2040
|
"constant.ctrl_c_hint": "Press Ctrl+C again to exit",
|
|
2054
2041
|
"tui.resume_warning": "Warning: {warning}",
|
|
2055
|
-
"tui.organizing_memory": "Organizing session memory...",
|
|
2056
2042
|
"tui.skill_failed": "Skill \"{skill}\" failed: {message}",
|
|
2057
2043
|
"tui.replay_no_new_session": "Cannot start a new session during history replay.",
|
|
2058
2044
|
"adapter.task_label": "Task {taskId}",
|
|
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
|
3
3
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { t as TextInputDialogComponent } from "./text-input-dialog-
|
|
6
|
+
import { t as TextInputDialogComponent } from "./text-input-dialog-pClOx34t.mjs";
|
|
7
7
|
export { TextInputDialogComponent };
|