scream-code 0.6.8 → 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/{app-w3Sui-3y.mjs → app-BRE6Pm0i.mjs} +1243 -265
- package/dist/main.mjs +1 -1
- package/package.json +6 -5
- package/scripts/postinstall/reach.mjs +2 -2
- package/scripts/postinstall/ui.mjs +4 -4
- package/scripts/postinstall.mjs +2 -2
- package/dist/assets/tokenizers.darwin-universal-BJ7w7c9- 2.node +0 -0
- package/dist/chunk-apG1qJts 2.mjs +0 -41
- package/dist/dist-0bMQWc-B 2.mjs +0 -1258
- package/dist/esm-Du2MwXei 2.mjs +0 -8590
- package/dist/from-CKE2n10i 2.mjs +0 -3849
- package/dist/main 2.mjs +0 -15
- package/dist/main.d 2.mts +0 -2
- package/dist/multipart-parser-BxHsVgPe 2.mjs +0 -299
- package/dist/src-BMbLXrAA 3.mjs +0 -1182
- package/dist/suppress-sqlite-warning-C2VB0doZ 2.mjs +0 -52
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-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.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"description": "A terminal-native AI agent for builders",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ScreamCli",
|
|
@@ -62,17 +62,18 @@
|
|
|
62
62
|
"chalk": "^5.4.1",
|
|
63
63
|
"cli-highlight": "^2.1.11",
|
|
64
64
|
"commander": "^13.1.0",
|
|
65
|
+
"diff": "^9.0.0",
|
|
65
66
|
"semver": "^7.7.4",
|
|
66
67
|
"smol-toml": "^1.6.1",
|
|
67
68
|
"zod": "^4.3.6"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
71
|
-
"@scream-
|
|
72
|
-
"@scream-
|
|
73
|
-
"@scream-cli/migration-legacy": "workspace:^",
|
|
74
|
-
"@scream-cli/scream-code-sdk": "workspace:^",
|
|
72
|
+
"@scream-code/agent-core": "workspace:^",
|
|
73
|
+
"@scream-code/config": "workspace:^",
|
|
75
74
|
"@scream-code/memory": "workspace:*",
|
|
75
|
+
"@scream-code/migration-legacy": "workspace:^",
|
|
76
|
+
"@scream-code/scream-code-sdk": "workspace:^",
|
|
76
77
|
"@types/semver": "^7.7.0",
|
|
77
78
|
"tsx": "^4.21.0"
|
|
78
79
|
},
|
|
@@ -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
|
|
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 = ['
|
|
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, '
|
|
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, '
|
|
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, '
|
|
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, '
|
|
429
|
+
const reinstallCmd = pmGlobalInstallCommand(pm, 'scream-code');
|
|
430
430
|
|
|
431
431
|
const newPathHint = isWindows
|
|
432
432
|
? `$env:Path = "$(${binCmd});$env:Path"`
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* Postinstall hook for
|
|
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
|
|
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.
|
|
Binary file
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
|
-
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
|
-
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { createRequire } from "node:module";
|
|
7
|
-
//#region \0rolldown/runtime.js
|
|
8
|
-
var __create = Object.create;
|
|
9
|
-
var __defProp = Object.defineProperty;
|
|
10
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
11
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
13
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
15
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
16
|
-
var __exportAll = (all, no_symbols) => {
|
|
17
|
-
let target = {};
|
|
18
|
-
for (var name in all) __defProp(target, name, {
|
|
19
|
-
get: all[name],
|
|
20
|
-
enumerable: true
|
|
21
|
-
});
|
|
22
|
-
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
|
-
return target;
|
|
24
|
-
};
|
|
25
|
-
var __copyProps = (to, from, except, desc) => {
|
|
26
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
27
|
-
key = keys[i];
|
|
28
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
29
|
-
get: ((k) => from[k]).bind(null, key),
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
36
|
-
value: mod,
|
|
37
|
-
enumerable: true
|
|
38
|
-
}) : target, mod));
|
|
39
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
40
|
-
//#endregion
|
|
41
|
-
export { __toESM as a, __require as i, __esmMin as n, __exportAll as r, __commonJSMin as t };
|