scream-code 0.10.2 → 0.10.4
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 +2 -2
- package/dist/{app-VZDNiLvJ.mjs → app-ya4nXFqp.mjs} +951 -390
- package/dist/base64-js-DzVmk6Nb.mjs +95 -0
- package/dist/{chunk-apG1qJts.mjs → chunk-D90kvbyJ.mjs} +2 -1
- package/dist/{dist-0bMQWc-B.mjs → dist-AcjRoBBn.mjs} +1 -1
- package/dist/{from-CKE2n10i.mjs → from-BMeHuTTE.mjs} +1 -1
- package/dist/main.mjs +1 -1
- package/dist/markit-DG5XsAGz.mjs +56336 -0
- package/dist/{multipart-parser-BxHsVgPe.mjs → multipart-parser-_uHCprmc.mjs} +2 -2
- package/dist/{src-oeUnRY3N.mjs → src-BH9W5k24.mjs} +39 -4
- package/dist/{src-Dae4j3bv.mjs → src-BMbOMRuY.mjs} +3 -3
- package/dist/{src-B2kaYK-M.mjs → src-DCp4eCi5.mjs} +1 -1
- package/dist/{text-input-dialog-Cj7OClhs.mjs → text-input-dialog-2lpwWzfy.mjs} +2 -0
- package/dist/{text-input-dialog-C8_8qYYi.mjs → text-input-dialog-Btk_sczQ.mjs} +1 -1
- package/package.json +3 -2
|
@@ -3,8 +3,8 @@ 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 __esmMin } from "./chunk-
|
|
7
|
-
import { a as File, i as init_esm_min, n as FormData, t as init_from } from "./from-
|
|
6
|
+
import { n as __esmMin } from "./chunk-D90kvbyJ.mjs";
|
|
7
|
+
import { a as File, i as init_esm_min, n as FormData, t as init_from } from "./from-BMeHuTTE.mjs";
|
|
8
8
|
//#region ../../node_modules/.pnpm/node-fetch@3.3.2/node_modules/node-fetch/src/utils/multipart-parser.js
|
|
9
9
|
function _fileName(headerValue) {
|
|
10
10
|
const m = headerValue.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
@@ -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,8 +3,8 @@ 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 __esmMin } from "./chunk-
|
|
7
|
-
import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-
|
|
6
|
+
import { n as __esmMin } from "./chunk-D90kvbyJ.mjs";
|
|
7
|
+
import { c as init_fetch_blob, i as init_esm_min, n as FormData, r as formDataToBlob, s as Blob, t as init_from } from "./from-BMeHuTTE.mjs";
|
|
8
8
|
import Ds, { PassThrough, pipeline } from "node:stream";
|
|
9
9
|
import http from "node:http";
|
|
10
10
|
import { format } from "node:url";
|
|
@@ -214,7 +214,7 @@ var init_body = __esmMin((() => {
|
|
|
214
214
|
for (const [name, value] of parameters) formData.append(name, value);
|
|
215
215
|
return formData;
|
|
216
216
|
}
|
|
217
|
-
const { toFormData } = await import("./multipart-parser-
|
|
217
|
+
const { toFormData } = await import("./multipart-parser-_uHCprmc.mjs");
|
|
218
218
|
return toFormData(this.body, ct);
|
|
219
219
|
}
|
|
220
220
|
/**
|
|
@@ -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": "拒绝",
|
|
@@ -1150,6 +1151,7 @@ const dictionaries = {
|
|
|
1150
1151
|
"status.composing": "Writing",
|
|
1151
1152
|
"status.tool": "Running",
|
|
1152
1153
|
"status.waiting": "Waiting",
|
|
1154
|
+
"status.reconnecting": "Reconnecting",
|
|
1153
1155
|
"approval.allow_once": "Allow Once",
|
|
1154
1156
|
"approval.allow_session": "Allow Session",
|
|
1155
1157
|
"approval.deny": "Deny",
|
|
@@ -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-2lpwWzfy.mjs";
|
|
7
7
|
export { TextInputDialogComponent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scream-code",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"description": "A terminal-native AI agent for builders",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ScreamCli",
|
|
@@ -57,13 +57,14 @@
|
|
|
57
57
|
"smoke": "node dist/main.mjs --version"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@liutod-scream/pi-tui": "^0.80.
|
|
60
|
+
"@liutod-scream/pi-tui": "^0.80.19",
|
|
61
61
|
"@mariozechner/clipboard": "^0.3.2",
|
|
62
62
|
"chalk": "^5.4.1",
|
|
63
63
|
"cli-highlight": "^2.1.11",
|
|
64
64
|
"commander": "^13.1.0",
|
|
65
65
|
"diff": "^9.0.0",
|
|
66
66
|
"fastembed": "^2.1.0",
|
|
67
|
+
"mupdf": "^1.28.0",
|
|
67
68
|
"semver": "^7.7.4",
|
|
68
69
|
"smol-toml": "^1.6.1",
|
|
69
70
|
"zod": "^4.3.6"
|