scream-code 0.3.6 → 0.3.8

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/icon.ico ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scream-code",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "The Starting Point for Next-Gen Agents",
5
5
  "license": "MIT",
6
6
  "author": "ScreamCli",
@@ -23,10 +23,12 @@
23
23
  "tui"
24
24
  ],
25
25
  "bin": {
26
- "scream": "dist/main.mjs"
26
+ "scream": "dist/main.mjs",
27
+ "scream-desktop-mcp": "dist/mcp-servers/desktop-server.mjs"
27
28
  },
28
29
  "files": [
29
30
  "dist",
31
+ "icon.ico",
30
32
  "scripts/postinstall.mjs",
31
33
  "scripts/postinstall"
32
34
  ],
@@ -41,22 +43,8 @@
41
43
  "access": "public",
42
44
  "provenance": true
43
45
  },
44
- "scripts": {
45
- "build": "tsdown",
46
- "dev": "node scripts/dev.mjs",
47
- "dev:cli-only": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
48
- "dev:prod": "node dist/main.mjs",
49
- "clean": "rm -rf dist",
50
- "typecheck": "tsc -p tsconfig.json --noEmit",
51
- "test": "pnpm -w run build:packages && vitest run",
52
- "e2e": "pnpm -w run build:packages && SCREAM_E2E=1 vitest run test/e2e",
53
- "e2e:real": "pnpm -w run build:packages && SCREAM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
54
- "preinstall": "node -e \"console.log('\\n📦 正在安装 scream-code,请稍候...\\n')\"",
55
- "postinstall": "node scripts/postinstall.mjs",
56
- "smoke": "node dist/main.mjs --version"
57
- },
58
46
  "dependencies": {
59
- "@earendil-works/pi-tui": "^0.74.0",
47
+ "@earendil-works/pi-tui": "^0.78.1",
60
48
  "@mariozechner/clipboard": "^0.3.2",
61
49
  "chalk": "^5.4.1",
62
50
  "cli-highlight": "^2.1.11",
@@ -66,15 +54,31 @@
66
54
  "zod": "^4.3.6"
67
55
  },
68
56
  "devDependencies": {
69
- "@scream-cli/config": "workspace:^",
70
- "@scream-cli/migration-legacy": "workspace:^",
71
- "@scream-cli/scream-code-sdk": "workspace:^",
72
- "@scream-cli/scream-telemetry": "workspace:^",
73
- "@scream-code/memory": "workspace:*",
57
+ "@modelcontextprotocol/sdk": "^1.29.0",
74
58
  "@types/semver": "^7.7.0",
75
- "tsx": "^4.21.0"
59
+ "tsx": "^4.21.0",
60
+ "@scream-cli/agent-core": "^0.5.0",
61
+ "@scream-cli/config": "^0.1.0",
62
+ "@scream-cli/migration-legacy": "^0.1.5",
63
+ "@scream-cli/scream-telemetry": "^0.1.1",
64
+ "@scream-cli/scream-code-sdk": "^0.4.0",
65
+ "@scream-code/memory": "0.1.0"
76
66
  },
77
67
  "engines": {
78
68
  "node": ">=22.19.0"
69
+ },
70
+ "scripts": {
71
+ "build": "tsdown",
72
+ "dev": "node scripts/dev.mjs",
73
+ "dev:cli-only": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
74
+ "dev:prod": "node dist/main.mjs",
75
+ "clean": "rm -rf dist",
76
+ "typecheck": "tsc -p tsconfig.json --noEmit",
77
+ "test": "pnpm -w run build:packages && vitest run",
78
+ "e2e": "pnpm -w run build:packages && SCREAM_E2E=1 vitest run test/e2e",
79
+ "e2e:real": "pnpm -w run build:packages && SCREAM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
80
+ "preinstall": "node -e \"console.log('\\n📦 正在安装 scream-code,请稍候...\\n')\"",
81
+ "postinstall": "node scripts/postinstall.mjs",
82
+ "smoke": "node dist/main.mjs --version"
79
83
  }
80
- }
84
+ }
@@ -6,10 +6,14 @@
6
6
  */
7
7
 
8
8
  import { execFileSync } from 'node:child_process';
9
+ import { resolve } from 'node:path';
10
+ import { existsSync } from 'node:fs';
9
11
 
10
12
  export function createDesktopShortcut() {
11
13
  if (process.platform !== 'win32') return;
12
14
 
15
+ const iconPath = resolve(import.meta.dirname, '../../icon.ico');
16
+
13
17
  try {
14
18
  execFileSync(
15
19
  'powershell.exe',
@@ -17,7 +21,10 @@ export function createDesktopShortcut() {
17
21
  '-NoProfile',
18
22
  '-ExecutionPolicy', 'Bypass',
19
23
  '-Command',
20
- shortcutPowerShellScript,
24
+ shortcutPowerShellScript.replace(
25
+ '__ICON_LOCATION__',
26
+ existsSync(iconPath) ? iconPath : '',
27
+ ),
21
28
  ],
22
29
  { stdio: 'ignore', timeout: 10_000 },
23
30
  );
@@ -57,5 +64,11 @@ else {
57
64
 
58
65
  $Shortcut.WorkingDirectory = $env:USERPROFILE
59
66
  $Shortcut.Description = 'Scream Code - AI 命令行助手'
67
+
68
+ $IconPath = '__ICON_LOCATION__'
69
+ if ($IconPath -and (Test-Path $IconPath)) {
70
+ $Shortcut.IconLocation = $IconPath
71
+ }
72
+
60
73
  $Shortcut.Save()
61
74
  `.trim();