scream-code 0.9.4 → 0.9.6
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.
|
@@ -5,7 +5,7 @@ const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
6
|
import { a as __toESM, i as __require, r as __exportAll, t as __commonJSMin } from "./chunk-apG1qJts.mjs";
|
|
7
7
|
import "./suppress-sqlite-warning-C2VB0doZ.mjs";
|
|
8
|
-
import { C as join$1, D as resolve$1, E as relative$1, S as isAbsolute$1, T as parse$7, a as isSupportedFile, b as basename$1, i as ingestFile, r as ingestDirectory, t as multiSearch, w as normalize, x as dirname$2, y as KnowledgeStore } from "./src-
|
|
8
|
+
import { C as join$1, D as resolve$1, E as relative$1, S as isAbsolute$1, T as parse$7, a as isSupportedFile, b as basename$1, i as ingestFile, r as ingestDirectory, t as multiSearch, w as normalize, x as dirname$2, y as KnowledgeStore } from "./src-1LHYB0xM.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { createHash, randomBytes, randomInt, randomUUID } from "node:crypto";
|
|
11
11
|
import Jn, { access, appendFile, chmod, copyFile, cp, lstat, mkdir, mkdtemp, open, readFile, readdir, realpath, rename, rm, rmdir, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -58333,7 +58333,7 @@ var KnowledgeLookupTool = class {
|
|
|
58333
58333
|
const llm = { generate: async (systemPrompt, userPrompt) => {
|
|
58334
58334
|
return this.agent.generateText(systemPrompt, userPrompt);
|
|
58335
58335
|
} };
|
|
58336
|
-
const { multiSearchWithTrace } = await import("./src-
|
|
58336
|
+
const { multiSearchWithTrace } = await import("./src-DA9VZFf3.mjs");
|
|
58337
58337
|
const { results, trace } = await multiSearchWithTrace(store, llm, query, { topK });
|
|
58338
58338
|
if (results.length === 0) return {
|
|
58339
58339
|
isError: false,
|
|
@@ -121296,7 +121296,7 @@ const dictionaries = {
|
|
|
121296
121296
|
"knowledge.embedding_relations": "嵌入关系...",
|
|
121297
121297
|
"knowledge.error": "错误: {msg}",
|
|
121298
121298
|
"knowledge.ingest": "摄入文件/文件夹",
|
|
121299
|
-
"knowledge.ingest_desc": "
|
|
121299
|
+
"knowledge.ingest_desc": "输入 markdown/txt 文件或文件夹路径【摄入后首次抽取事件关联需要调用llm,文件过大建议更换性价比模型】",
|
|
121300
121300
|
"knowledge.ingesting": "开始摄入...",
|
|
121301
121301
|
"knowledge.ingest_done": "摄入完成",
|
|
121302
121302
|
"knowledge.ingest_fail": "摄入失败",
|
|
@@ -122371,7 +122371,7 @@ const dictionaries = {
|
|
|
122371
122371
|
"knowledge.embedding_relations": "Embedding relations...",
|
|
122372
122372
|
"knowledge.error": "Error: {msg}",
|
|
122373
122373
|
"knowledge.ingest": "Ingest files",
|
|
122374
|
-
"knowledge.ingest_desc": "Enter a markdown/txt file or folder path
|
|
122374
|
+
"knowledge.ingest_desc": "Enter a markdown/txt file or folder path [Ingestion calls LLM for event extraction; for large files, consider a cost-effective model]",
|
|
122375
122375
|
"knowledge.ingesting": "Starting ingest...",
|
|
122376
122376
|
"knowledge.ingest_done": "Ingest complete",
|
|
122377
122377
|
"knowledge.ingest_fail": "Ingest failed",
|
|
@@ -124703,7 +124703,7 @@ function optionalBuildString(value) {
|
|
|
124703
124703
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
124704
124704
|
}
|
|
124705
124705
|
const SCREAM_BUILD_INFO = {
|
|
124706
|
-
version: optionalBuildString("0.9.
|
|
124706
|
+
version: optionalBuildString("0.9.6"),
|
|
124707
124707
|
channel: optionalBuildString(""),
|
|
124708
124708
|
commit: optionalBuildString(""),
|
|
124709
124709
|
buildTarget: optionalBuildString("darwin-arm64")
|
|
@@ -145229,7 +145229,7 @@ function createRenderBatcher(doRender) {
|
|
|
145229
145229
|
batchDepth--;
|
|
145230
145230
|
if (batchDepth === 0 && batchNeedsRender) {
|
|
145231
145231
|
batchNeedsRender = false;
|
|
145232
|
-
scheduleRender(
|
|
145232
|
+
scheduleRender(pendingForce);
|
|
145233
145233
|
}
|
|
145234
145234
|
}
|
|
145235
145235
|
}
|
|
@@ -149194,7 +149194,9 @@ var ScreamTUI = class {
|
|
|
149194
149194
|
}
|
|
149195
149195
|
clearTranscriptAndRedraw() {
|
|
149196
149196
|
this.sessionEventHandler.stopAllMcpServerStatusSpinners();
|
|
149197
|
+
this.state.terminal.write("\x1B[3J");
|
|
149197
149198
|
this.transcriptController.clearAndRedraw();
|
|
149199
|
+
this.state.ui.requestRender(true);
|
|
149198
149200
|
}
|
|
149199
149201
|
showStatus(message, color) {
|
|
149200
149202
|
this.transcriptController.showStatus(message, color);
|
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-dyIrf9Iq.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);
|
|
@@ -1390,7 +1390,7 @@ async function embedOrNulls(engine, texts, skipEmbedding) {
|
|
|
1390
1390
|
return vectors;
|
|
1391
1391
|
}
|
|
1392
1392
|
/** LLM concurrency for extraction — kept low to avoid rate-limit bursts. */
|
|
1393
|
-
const LLM_CONCURRENCY =
|
|
1393
|
+
const LLM_CONCURRENCY = 20;
|
|
1394
1394
|
const SUPPORTED_EXTENSIONS = new Set([
|
|
1395
1395
|
".md",
|
|
1396
1396
|
".markdown",
|
|
@@ -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-1LHYB0xM.mjs";
|
|
7
7
|
export { multiSearchWithTrace };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scream-code",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "A terminal-native AI agent for builders",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ScreamCli",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"smoke": "node dist/main.mjs --version"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@earendil-works/pi-tui": "^0.80.
|
|
60
|
+
"@earendil-works/pi-tui": "^0.80.6",
|
|
61
61
|
"@mariozechner/clipboard": "^0.3.2",
|
|
62
62
|
"chalk": "^5.4.1",
|
|
63
63
|
"cli-highlight": "^2.1.11",
|