scream-code 0.3.6 → 0.3.7

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.7",
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
  ],
@@ -66,6 +68,8 @@
66
68
  "zod": "^4.3.6"
67
69
  },
68
70
  "devDependencies": {
71
+ "@modelcontextprotocol/sdk": "^1.29.0",
72
+ "@scream-cli/agent-core": "workspace:^",
69
73
  "@scream-cli/config": "workspace:^",
70
74
  "@scream-cli/migration-legacy": "workspace:^",
71
75
  "@scream-cli/scream-code-sdk": "workspace:^",
@@ -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();