scream-code 0.13.6 → 0.13.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.
|
@@ -4,7 +4,7 @@ import { dirname as __cjsShimDirname } from 'node:path';
|
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
6
|
import "./suppress-sqlite-warning-C2VB0doZ.mjs";
|
|
7
|
-
import { $ as toTerminalHyperlink, $t as parseStreamingArgs, A as highlightLines, An as CLI_UI_MODE, At as ENABLE_TERMINAL_THEME_REPORTING, B as AssistantMessageComponent, Bn as flushDiagnosticLogs, Bt as isBusy, C as UserMessageComponent, Cn as saveTuiConfig, Ct as contrastTextHex, D as ToolCallComponent, Dn as getLogDir, Dt as DISABLE_TERMINAL_FOCUS_REPORTING, E as toggleEmptySessionHint, En as getInputHistoryFile, Et as parseOsc11BackgroundTheme, F as getSharedSpeedTracker, Fn as saveCatalogCache, Ft as QUERY_TERMINAL_THEME, G as resetBreathingClock, Gn as ErrorCodes, H as WelcomeComponent, Hn as resolveGlobalLogPath, Ht as FooterComponent, I as SkillActivationComponent, In as ScreamHarness, It as TERMINAL_FOCUS_IN, Jt as STATUS_BULLET, K as clearGoalState, Kn as SCREAM_ERROR_INFO, L as ReadGroupComponent, Lt as TERMINAL_FOCUS_OUT, M as CachedContainer, Mn as PRODUCT_NAME, Mt as OSC11_RESPONSE, N as ThinkingComponent, Nn as DEFAULT_CATALOG_URL, Nt as OSC11_RESPONSE_PREFIX, O as renderDiffLines, On as detectInstallSource, Ot as DISABLE_TERMINAL_THEME_REPORTING, P as estimateTokens, Pn as fetchCatalog, Pt as OSC11_RESPONSE_PREFIX_NO_ESC, Qt as isTodoItemShape, R as parseReadGroupOutput, Rn as resolveScreamHome, Rt as TERMINAL_THEME_DARK, Sn as loadTuiConfig, St as createThemeStyles, T as isTurnElapsedEnabled, Tn as getDataDir, Tt as detectTerminalTheme, U as BREATHE_CYCLE_MS, Un as isScreamError, V as AgentGroupComponent, Vn as log, Vt as isStreaming, W as getBreathingFrame, Wn as isOrphanedToolCallError, Xt as argsRecord, Yt as appendStreamingArgsPreview, Zt as formatErrorMessage, _ as readUpdateCache, _n as setExperimentalFlags, an as EXIT_CONFIRM_WINDOW_MS, at as handleFusionPlanCommand, bn as TuiConfigParseError, bt as createEditorTheme, c as isPlanExpandable, cn as TIP_ROTATION_INTERVAL_MS, dn as getLlmNotSetMessage, en as serializeToolResultOutput, et as changeThinkingLevel, fn as getNoActiveSessionMessage, g as refreshUpdateCache, gn as isExperimentalFlagEnabled, gt as clearInfoPanelState, h as selectUpdateTarget, hn as sortSlashCommands, ht as supportsBalance, i as buildRoleAdditionalText, in as EMPTY_SESSION_HINT_URL, j as langFromPath, jn as CLI_USER_AGENT_PRODUCT, jt as OSC11_QUERY, k as renderDiffLinesClustered, kn as CLI_COMMAND_NAME, kt as ENABLE_TERMINAL_FOCUS_REPORTING, l as MoonLoader, ln as getCtrlCHint, mn as BUILTIN_SLASH_COMMANDS, mt as refreshProviderBalance, n as clearEvalPanelState, nn as truncateErrorMessage, o as disposeChildren, on as MAIN_AGENT_ID, pn as buildSkillSlashCommands, q as refineGoal, qt as printableChar, r as openUrl, rn as CHARS_PER_TOKEN, s as hasDispose, sn as SESSION_TIPS, st as handlePlanCommand, t as dispatchInput, tn as stringValue, tt as getModelCycleLevel, u as formatMemoryMemoForInjection, un as getCtrlDHint, v as appendJsonlLine, vn as PIXEL_PULSE_FRAMES, w as isEmptySessionHintDismissed, wn as detectShellEnvironment, wt as getColorPalette, x as getDaemonInstructions, xn as TuiLikePreferencesSchema, xt as createMarkdownTheme, y as readJsonlFile, yn as PULSE_WAVE_FRAMES, yt as resolveThemeSync, z as BackgroundAgentStatusComponent, zn as MemoryMemoStore, zt as TERMINAL_THEME_LIGHT } from "./dispatch-
|
|
7
|
+
import { $ as toTerminalHyperlink, $t as parseStreamingArgs, A as highlightLines, An as CLI_UI_MODE, At as ENABLE_TERMINAL_THEME_REPORTING, B as AssistantMessageComponent, Bn as flushDiagnosticLogs, Bt as isBusy, C as UserMessageComponent, Cn as saveTuiConfig, Ct as contrastTextHex, D as ToolCallComponent, Dn as getLogDir, Dt as DISABLE_TERMINAL_FOCUS_REPORTING, E as toggleEmptySessionHint, En as getInputHistoryFile, Et as parseOsc11BackgroundTheme, F as getSharedSpeedTracker, Fn as saveCatalogCache, Ft as QUERY_TERMINAL_THEME, G as resetBreathingClock, Gn as ErrorCodes, H as WelcomeComponent, Hn as resolveGlobalLogPath, Ht as FooterComponent, I as SkillActivationComponent, In as ScreamHarness, It as TERMINAL_FOCUS_IN, Jt as STATUS_BULLET, K as clearGoalState, Kn as SCREAM_ERROR_INFO, L as ReadGroupComponent, Lt as TERMINAL_FOCUS_OUT, M as CachedContainer, Mn as PRODUCT_NAME, Mt as OSC11_RESPONSE, N as ThinkingComponent, Nn as DEFAULT_CATALOG_URL, Nt as OSC11_RESPONSE_PREFIX, O as renderDiffLines, On as detectInstallSource, Ot as DISABLE_TERMINAL_THEME_REPORTING, P as estimateTokens, Pn as fetchCatalog, Pt as OSC11_RESPONSE_PREFIX_NO_ESC, Qt as isTodoItemShape, R as parseReadGroupOutput, Rn as resolveScreamHome, Rt as TERMINAL_THEME_DARK, Sn as loadTuiConfig, St as createThemeStyles, T as isTurnElapsedEnabled, Tn as getDataDir, Tt as detectTerminalTheme, U as BREATHE_CYCLE_MS, Un as isScreamError, V as AgentGroupComponent, Vn as log, Vt as isStreaming, W as getBreathingFrame, Wn as isOrphanedToolCallError, Xt as argsRecord, Yt as appendStreamingArgsPreview, Zt as formatErrorMessage, _ as readUpdateCache, _n as setExperimentalFlags, an as EXIT_CONFIRM_WINDOW_MS, at as handleFusionPlanCommand, bn as TuiConfigParseError, bt as createEditorTheme, c as isPlanExpandable, cn as TIP_ROTATION_INTERVAL_MS, dn as getLlmNotSetMessage, en as serializeToolResultOutput, et as changeThinkingLevel, fn as getNoActiveSessionMessage, g as refreshUpdateCache, gn as isExperimentalFlagEnabled, gt as clearInfoPanelState, h as selectUpdateTarget, hn as sortSlashCommands, ht as supportsBalance, i as buildRoleAdditionalText, in as EMPTY_SESSION_HINT_URL, j as langFromPath, jn as CLI_USER_AGENT_PRODUCT, jt as OSC11_QUERY, k as renderDiffLinesClustered, kn as CLI_COMMAND_NAME, kt as ENABLE_TERMINAL_FOCUS_REPORTING, l as MoonLoader, ln as getCtrlCHint, mn as BUILTIN_SLASH_COMMANDS, mt as refreshProviderBalance, n as clearEvalPanelState, nn as truncateErrorMessage, o as disposeChildren, on as MAIN_AGENT_ID, pn as buildSkillSlashCommands, q as refineGoal, qt as printableChar, r as openUrl, rn as CHARS_PER_TOKEN, s as hasDispose, sn as SESSION_TIPS, st as handlePlanCommand, t as dispatchInput, tn as stringValue, tt as getModelCycleLevel, u as formatMemoryMemoForInjection, un as getCtrlDHint, v as appendJsonlLine, vn as PIXEL_PULSE_FRAMES, w as isEmptySessionHintDismissed, wn as detectShellEnvironment, wt as getColorPalette, x as getDaemonInstructions, xn as TuiLikePreferencesSchema, xt as createMarkdownTheme, y as readJsonlFile, yn as PULSE_WAVE_FRAMES, yt as resolveThemeSync, z as BackgroundAgentStatusComponent, zn as MemoryMemoStore, zt as TERMINAL_THEME_LIGHT } from "./dispatch-B6d7chu6.mjs";
|
|
8
8
|
import { a as setLocale, o as t } from "./text-input-dialog-DstXBOl9.mjs";
|
|
9
9
|
import { createRequire } from "node:module";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
@@ -30,7 +30,7 @@ function optionalBuildString(value) {
|
|
|
30
30
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
31
31
|
}
|
|
32
32
|
const SCREAM_BUILD_INFO = {
|
|
33
|
-
version: optionalBuildString("0.13.
|
|
33
|
+
version: optionalBuildString("0.13.7"),
|
|
34
34
|
channel: optionalBuildString(""),
|
|
35
35
|
commit: optionalBuildString(""),
|
|
36
36
|
buildTarget: optionalBuildString("darwin-arm64")
|
|
@@ -12192,7 +12192,7 @@ var ScreamTUI = class {
|
|
|
12192
12192
|
const card = new OnboardingCardComponent({
|
|
12193
12193
|
colors: this.state.theme.colors,
|
|
12194
12194
|
onConfigure: () => {
|
|
12195
|
-
import("./dispatch-
|
|
12195
|
+
import("./dispatch-BPrqxTsP.mjs").then(({ handleConnectCommand }) => handleConnectCommand(this, "")).finally(() => {
|
|
12196
12196
|
this.restoreEditor();
|
|
12197
12197
|
});
|
|
12198
12198
|
},
|
|
@@ -133929,6 +133929,42 @@ function confirmCcConnectUninstall(host, summary) {
|
|
|
133929
133929
|
});
|
|
133930
133930
|
}
|
|
133931
133931
|
//#endregion
|
|
133932
|
+
//#region src/cli/update/prefix.ts
|
|
133933
|
+
/**
|
|
133934
|
+
* The npm global prefix the running Scream Code was installed into, derived
|
|
133935
|
+
* from the entry script path. Example:
|
|
133936
|
+
*
|
|
133937
|
+
* /Users/tod/.npm-global/lib/node_modules/scream-code/dist/main.mjs
|
|
133938
|
+
* → prefix /Users/tod/.npm-global
|
|
133939
|
+
*
|
|
133940
|
+
* `npm install -g` without `--prefix` uses the user's configured npm prefix,
|
|
133941
|
+
* which may point at a root-owned directory (e.g. /usr/local) and fail with
|
|
133942
|
+
* EACCES even though Scream Code itself lives in a user-writable prefix.
|
|
133943
|
+
* Returns undefined when the layout is unrecognized — the install then falls
|
|
133944
|
+
* back to the default prefix behavior.
|
|
133945
|
+
*/
|
|
133946
|
+
function globalPrefixForScream() {
|
|
133947
|
+
const entry = process.argv[1];
|
|
133948
|
+
if (!entry) return void 0;
|
|
133949
|
+
const parts = entry.split(path.sep);
|
|
133950
|
+
const idx = parts.lastIndexOf("node_modules");
|
|
133951
|
+
if (idx < 2 || parts[idx - 1] !== "lib") return void 0;
|
|
133952
|
+
return parts.slice(0, idx - 1).join(path.sep);
|
|
133953
|
+
}
|
|
133954
|
+
/**
|
|
133955
|
+
* Build the `npm install -g scream-code@latest` argument list, adding
|
|
133956
|
+
* `--prefix` when the running Scream Code's global directory can be resolved.
|
|
133957
|
+
*/
|
|
133958
|
+
function installLatestArgs() {
|
|
133959
|
+
const prefix = globalPrefixForScream();
|
|
133960
|
+
return [
|
|
133961
|
+
"install",
|
|
133962
|
+
"-g",
|
|
133963
|
+
"scream-code@latest",
|
|
133964
|
+
...prefix !== void 0 ? ["--prefix", prefix] : []
|
|
133965
|
+
];
|
|
133966
|
+
}
|
|
133967
|
+
//#endregion
|
|
133932
133968
|
//#region src/utils/persistence.ts
|
|
133933
133969
|
/**
|
|
133934
133970
|
* Small persistence helpers for CLI-owned data files.
|
|
@@ -134191,11 +134227,7 @@ async function handleUpdateCommand(host) {
|
|
|
134191
134227
|
}
|
|
134192
134228
|
host.showStatus(t("update.updating", { version: target.version }));
|
|
134193
134229
|
host.showStatus(t("update.npm_install"));
|
|
134194
|
-
const result = await runInstallStep(npmExecutable(),
|
|
134195
|
-
"install",
|
|
134196
|
-
"-g",
|
|
134197
|
-
"scream-code@latest"
|
|
134198
|
-
], void 0, t("update.install_label"));
|
|
134230
|
+
const result = await runInstallStep(npmExecutable(), installLatestArgs(), void 0, t("update.install_label"));
|
|
134199
134231
|
if (!result.ok) {
|
|
134200
134232
|
host.showError(`❌ ${result.message}`);
|
|
134201
134233
|
return;
|
|
@@ -3,5 +3,5 @@ import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
|
|
|
3
3
|
import { dirname as __cjsShimDirname } from 'node:path';
|
|
4
4
|
const __filename = __cjsShimFileURLToPath(import.meta.url);
|
|
5
5
|
const __dirname = __cjsShimDirname(__filename);
|
|
6
|
-
import { Gt as handleConnectCommand } from "./dispatch-
|
|
6
|
+
import { Gt as handleConnectCommand } from "./dispatch-B6d7chu6.mjs";
|
|
7
7
|
export { handleConnectCommand };
|
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-BEHboK6l.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);
|