scream-code 0.4.4 → 0.4.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.
- package/dist/main.mjs +19 -1
- package/package.json +23 -23
package/dist/main.mjs
CHANGED
|
@@ -135648,7 +135648,18 @@ function runLoadingAnimation(theme = "dark") {
|
|
|
135648
135648
|
}
|
|
135649
135649
|
process$1.on("SIGINT", interrupt);
|
|
135650
135650
|
process$1.on("SIGTERM", interrupt);
|
|
135651
|
-
|
|
135651
|
+
try {
|
|
135652
|
+
stdin.setRawMode(true);
|
|
135653
|
+
} catch {
|
|
135654
|
+
process$1.off("SIGINT", interrupt);
|
|
135655
|
+
process$1.off("SIGTERM", interrupt);
|
|
135656
|
+
stdout.write("\x1B[?25h");
|
|
135657
|
+
stdout.write("\x1B[?1049l");
|
|
135658
|
+
for (const line of LOGO) stdout.write(`${fg(...LOGO_RGB)}${line}${RESET}\n`);
|
|
135659
|
+
stdout.write(`${BOLD}${fg(...accent)}正在唤醒核心...${RESET}\n`);
|
|
135660
|
+
resolve();
|
|
135661
|
+
return;
|
|
135662
|
+
}
|
|
135652
135663
|
stdin.on("data", onData);
|
|
135653
135664
|
render();
|
|
135654
135665
|
const timer = setInterval(tick, SHEEN_INTERVAL_MS);
|
|
@@ -136588,6 +136599,13 @@ async function handleMigrateCommand() {
|
|
|
136588
136599
|
process.exit(0);
|
|
136589
136600
|
}
|
|
136590
136601
|
function main() {
|
|
136602
|
+
const swallowEpipe = (stream) => {
|
|
136603
|
+
stream.on("error", (error) => {
|
|
136604
|
+
if (error.code === "EPIPE") process.exit(0);
|
|
136605
|
+
});
|
|
136606
|
+
};
|
|
136607
|
+
swallowEpipe(process.stdout);
|
|
136608
|
+
swallowEpipe(process.stderr);
|
|
136591
136609
|
initProcessName();
|
|
136592
136610
|
installCrashHandlers();
|
|
136593
136611
|
const version = getVersion();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scream-code",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"description": "The Starting Point for Next-Gen Agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ScreamCli",
|
|
@@ -42,20 +42,6 @@
|
|
|
42
42
|
"access": "public",
|
|
43
43
|
"provenance": false
|
|
44
44
|
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"build": "tsdown",
|
|
47
|
-
"dev": "node scripts/dev.mjs",
|
|
48
|
-
"dev:cli-only": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
|
|
49
|
-
"dev:prod": "node dist/main.mjs",
|
|
50
|
-
"clean": "rm -rf dist",
|
|
51
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
52
|
-
"test": "pnpm -w run build:packages && vitest run",
|
|
53
|
-
"e2e": "pnpm -w run build:packages && SCREAM_E2E=1 vitest run test/e2e",
|
|
54
|
-
"e2e:real": "pnpm -w run build:packages && SCREAM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
|
|
55
|
-
"preinstall": "node -e \"console.log('\\n📦 正在安装 scream-code,请稍候...\\n')\"",
|
|
56
|
-
"postinstall": "node scripts/postinstall.mjs",
|
|
57
|
-
"smoke": "node dist/main.mjs --version"
|
|
58
|
-
},
|
|
59
45
|
"dependencies": {
|
|
60
46
|
"@earendil-works/pi-tui": "^0.78.1",
|
|
61
47
|
"@mariozechner/clipboard": "^0.3.2",
|
|
@@ -68,16 +54,30 @@
|
|
|
68
54
|
},
|
|
69
55
|
"devDependencies": {
|
|
70
56
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
71
|
-
"@scream-cli/agent-core": "workspace:^",
|
|
72
|
-
"@scream-cli/config": "workspace:^",
|
|
73
|
-
"@scream-cli/migration-legacy": "workspace:^",
|
|
74
|
-
"@scream-cli/scream-code-sdk": "workspace:^",
|
|
75
|
-
"@scream-cli/scream-telemetry": "workspace:^",
|
|
76
|
-
"@scream-code/memory": "workspace:*",
|
|
77
57
|
"@types/semver": "^7.7.0",
|
|
78
|
-
"tsx": "^4.21.0"
|
|
58
|
+
"tsx": "^4.21.0",
|
|
59
|
+
"@scream-cli/agent-core": "^0.3.10",
|
|
60
|
+
"@scream-cli/migration-legacy": "^0.3.10",
|
|
61
|
+
"@scream-cli/config": "^0.3.10",
|
|
62
|
+
"@scream-cli/scream-code-sdk": "^0.3.10",
|
|
63
|
+
"@scream-cli/scream-telemetry": "^0.3.10",
|
|
64
|
+
"@scream-code/memory": "0.3.10"
|
|
79
65
|
},
|
|
80
66
|
"engines": {
|
|
81
67
|
"node": ">=22.19.0"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsdown",
|
|
71
|
+
"dev": "node scripts/dev.mjs",
|
|
72
|
+
"dev:cli-only": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
|
|
73
|
+
"dev:prod": "node dist/main.mjs",
|
|
74
|
+
"clean": "rm -rf dist",
|
|
75
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
76
|
+
"test": "pnpm -w run build:packages && vitest run",
|
|
77
|
+
"e2e": "pnpm -w run build:packages && SCREAM_E2E=1 vitest run test/e2e",
|
|
78
|
+
"e2e:real": "pnpm -w run build:packages && SCREAM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
|
|
79
|
+
"preinstall": "node -e \"console.log('\\n📦 正在安装 scream-code,请稍候...\\n')\"",
|
|
80
|
+
"postinstall": "node scripts/postinstall.mjs",
|
|
81
|
+
"smoke": "node dist/main.mjs --version"
|
|
82
82
|
}
|
|
83
|
-
}
|
|
83
|
+
}
|