scream-code 0.6.7 → 0.6.9

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 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-NYV7g66W.mjs")).main();
9
+ (await import("./app-BRE6Pm0i.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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scream-code",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "A terminal-native AI agent for builders",
5
5
  "license": "MIT",
6
6
  "author": "ScreamCli",
@@ -39,7 +39,22 @@
39
39
  ]
40
40
  },
41
41
  "publishConfig": {
42
- "access": "public"
42
+ "access": "public",
43
+ "provenance": true
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"
43
58
  },
44
59
  "dependencies": {
45
60
  "@earendil-works/pi-tui": "^0.78.1",
@@ -47,35 +62,22 @@
47
62
  "chalk": "^5.4.1",
48
63
  "cli-highlight": "^2.1.11",
49
64
  "commander": "^13.1.0",
65
+ "diff": "^9.0.0",
50
66
  "semver": "^7.7.4",
51
67
  "smol-toml": "^1.6.1",
52
68
  "zod": "^4.3.6"
53
69
  },
54
70
  "devDependencies": {
55
71
  "@modelcontextprotocol/sdk": "^1.29.0",
72
+ "@scream-code/agent-core": "workspace:^",
73
+ "@scream-code/config": "workspace:^",
74
+ "@scream-code/memory": "workspace:*",
75
+ "@scream-code/migration-legacy": "workspace:^",
76
+ "@scream-code/scream-code-sdk": "workspace:^",
56
77
  "@types/semver": "^7.7.0",
57
- "tsx": "^4.21.0",
58
- "@scream-cli/config": "^0.6.7",
59
- "@scream-cli/scream-code-sdk": "^0.6.7",
60
- "@scream-cli/agent-core": "^0.6.7",
61
- "@scream-cli/migration-legacy": "^0.6.7",
62
- "@scream-code/memory": "0.6.7"
78
+ "tsx": "^4.21.0"
63
79
  },
64
80
  "engines": {
65
81
  "node": ">=22.19.0"
66
- },
67
- "scripts": {
68
- "build": "tsdown",
69
- "dev": "node scripts/dev.mjs",
70
- "dev:cli-only": "tsx --import ../../build/register-raw-text-loader.mjs ./src/main.ts",
71
- "dev:prod": "node dist/main.mjs",
72
- "clean": "rm -rf dist",
73
- "typecheck": "tsc -p tsconfig.json --noEmit",
74
- "test": "pnpm -w run build:packages && vitest run",
75
- "e2e": "pnpm -w run build:packages && SCREAM_E2E=1 vitest run test/e2e",
76
- "e2e:real": "pnpm -w run build:packages && SCREAM_E2E_REAL=1 vitest run test/e2e/real-llm-smoke.e2e.test.ts",
77
- "preinstall": "node -e \"console.log('\\n📦 正在安装 scream-code,请稍候...\\n')\"",
78
- "postinstall": "node scripts/postinstall.mjs",
79
- "smoke": "node dist/main.mjs --version"
80
82
  }
81
- }
83
+ }
@@ -112,7 +112,7 @@ export function pmGlobalInstallCommand(pm, pkg) {
112
112
  * location global` persistently). npm intentionally does NOT
113
113
  * also set `npm_config_global` in this case, so without this
114
114
  * branch the migration silently no-ops for `npm install
115
- * --location=global @scream-cli/scream-code` — verified on npm
115
+ * --location=global scream-code` — verified on npm
116
116
  * 11.13.0.
117
117
  * - {@link isYarnClassicGlobalAdd} — yarn classic does NOT set
118
118
  * `npm_config_global` for `yarn global add`. The only reliable
@@ -246,7 +246,7 @@ async function isExecutableFile(filePath) {
246
246
  // - pnpm POSIX shims (literal `/bin/sh` scripts, not symlinks; pnpm
247
247
  // does not symlink into the package root the way npm/yarn classic
248
248
  // do on POSIX)
249
- const PACKAGE_NAME_MARKERS = ['@scream-cli/scream-code', '@scream-cli\\scream-code'];
249
+ const PACKAGE_NAME_MARKERS = ['scream-code'];
250
250
 
251
251
  async function shimReferencesOwnPackage(shimPath) {
252
252
  try {
@@ -181,7 +181,7 @@ function warningHeading(text) {
181
181
  * fs errors). Listed last so the user can see what to retry.
182
182
  */
183
183
  export function logMigrationDone(outcomes, pm) {
184
- const reinstallCmd = pmGlobalInstallCommand(pm, '@scream-cli/scream-code');
184
+ const reinstallCmd = pmGlobalInstallCommand(pm, 'scream-code');
185
185
  const {
186
186
  renames,
187
187
  consolidates,
@@ -322,7 +322,7 @@ export function logMigrationDone(outcomes, pm) {
322
322
  */
323
323
  export function logMigrationBlocked(blocked, actionable, pm) {
324
324
  const isWindows = process.platform === 'win32';
325
- const reinstallCmd = pmGlobalInstallCommand(pm, '@scream-cli/scream-code');
325
+ const reinstallCmd = pmGlobalInstallCommand(pm, 'scream-code');
326
326
 
327
327
  const lines = [
328
328
  warningHeading('Can\'t switch to the new scream yet'),
@@ -384,7 +384,7 @@ export function logMigrationBlocked(blocked, actionable, pm) {
384
384
  * user can decide.
385
385
  */
386
386
  export function logForeignScreamInTheWay(foreignPath, pm) {
387
- const reinstallCmd = pmGlobalInstallCommand(pm, '@scream-cli/scream-code');
387
+ const reinstallCmd = pmGlobalInstallCommand(pm, 'scream-code');
388
388
  emit(
389
389
  renderBox([
390
390
  warningHeading('Can\'t switch to the new scream yet'),
@@ -426,7 +426,7 @@ export function logForeignScreamInTheWay(foreignPath, pm) {
426
426
  export function logNewCliNotOnPath(detection, pm) {
427
427
  const isWindows = process.platform === 'win32';
428
428
  const binCmd = pmGlobalBinCommand(pm);
429
- const reinstallCmd = pmGlobalInstallCommand(pm, '@scream-cli/scream-code');
429
+ const reinstallCmd = pmGlobalInstallCommand(pm, 'scream-code');
430
430
 
431
431
  const newPathHint = isWindows
432
432
  ? `$env:Path = "$(${binCmd});$env:Path"`
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Postinstall hook for @scream-cli/scream-code.
3
+ * Postinstall hook for scream-code.
4
4
  *
5
5
  * Goal: when this package is installed globally, ensure typing `scream`
6
6
  * invokes the new TypeScript CLI. The npm `package.json` bin field
@@ -43,7 +43,7 @@
43
43
  *
44
44
  * ## Workflow
45
45
  *
46
- * What runs when a user types `npm install -g @scream-cli/scream-code`
46
+ * What runs when a user types `npm install -g scream-code`
47
47
  * (or the yarn / pnpm equivalent):
48
48
  *
49
49
  * 1. The manager extracts the package and runs lifecycle scripts.