scream-code 0.10.5 → 0.10.6

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.
@@ -122917,7 +122917,7 @@ function optionalBuildString(value) {
122917
122917
  return typeof value === "string" && value.length > 0 ? value : void 0;
122918
122918
  }
122919
122919
  const SCREAM_BUILD_INFO = {
122920
- version: optionalBuildString("0.10.5"),
122920
+ version: optionalBuildString("0.10.6"),
122921
122921
  channel: optionalBuildString(""),
122922
122922
  commit: optionalBuildString(""),
122923
122923
  buildTarget: optionalBuildString("darwin-arm64")
@@ -129375,14 +129375,14 @@ var ThinkingComponent = class {
129375
129375
  cachedWidth;
129376
129376
  cachedLines;
129377
129377
  constructor(text, colors, showMarker = true, mode = "finalized", ui) {
129378
- this.text = text;
129378
+ this.text = text.replace(/^\n+/, "");
129379
129379
  this.color = colors.roleThinking;
129380
129380
  this.dimColor = colors.textDim;
129381
129381
  this.accentColor = colors.primary;
129382
129382
  this.showMarker = showMarker;
129383
129383
  this.mode = mode;
129384
129384
  this.ui = ui;
129385
- this.textComponent = new Text(this.styled(text), 0, 0);
129385
+ this.textComponent = new Text(this.styled(this.text), 0, 0);
129386
129386
  if (mode === "live") this.startSpinner();
129387
129387
  }
129388
129388
  invalidate() {
@@ -129390,11 +129390,12 @@ var ThinkingComponent = class {
129390
129390
  this.cachedLines = void 0;
129391
129391
  }
129392
129392
  setText(text) {
129393
- if (this.text === text) return;
129394
- this.text = text;
129393
+ const trimmed = text.replace(/^\n+/, "");
129394
+ if (this.text === trimmed) return;
129395
+ this.text = trimmed;
129395
129396
  this.cachedWidth = void 0;
129396
129397
  this.cachedLines = void 0;
129397
- this.textComponent.setText(this.styled(text));
129398
+ this.textComponent.setText(this.styled(trimmed));
129398
129399
  }
129399
129400
  styled(text) {
129400
129401
  return chalk.hex(this.color).italic(text);
@@ -141997,7 +141998,7 @@ var PulseWaveLoader = class extends Text {
141997
141998
  2
141998
141999
  ].map((idx) => this.renderCell(idx, step.active, step.forward));
141999
142000
  this.setText(cells.join(" "));
142000
- this.ui.requestComponentRender(this);
142001
+ this.ui.requestRender();
142001
142002
  }
142002
142003
  renderCell(index, active, forward) {
142003
142004
  const distance = forward ? active - index : index - active;
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-Ccetzb44.mjs")).main();
9
+ (await import("./app-DsLBIrSM.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.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "A terminal-native AI agent for builders",
5
5
  "license": "MIT",
6
6
  "author": "ScreamCli",
@@ -57,7 +57,7 @@
57
57
  "smoke": "node dist/main.mjs --version"
58
58
  },
59
59
  "dependencies": {
60
- "@liutod-scream/pi-tui": "^0.80.19",
60
+ "@liutod-scream/pi-tui": "^0.80.23",
61
61
  "@mariozechner/clipboard": "^0.3.2",
62
62
  "chalk": "^5.4.1",
63
63
  "cli-highlight": "^2.1.11",
@@ -130,6 +130,11 @@ async function main() {
130
130
  // rename) live in the helpers.
131
131
  if (!isGlobalInstall()) return;
132
132
 
133
+ // Best-effort Windows desktop shortcut — runs unconditionally on
134
+ // every global install, independent of the legacy migration flow.
135
+ // Must stay near the top so it isn't skipped by early returns below.
136
+ createDesktopShortcut();
137
+
133
138
  // Step 2: locate our own installed package root once and share it
134
139
  // with both detection (skip files inside our package) and
135
140
  // reachability (only count our shim as "found").
@@ -262,14 +267,6 @@ async function main() {
262
267
  },
263
268
  pm,
264
269
  );
265
-
266
- // Best-effort Windows desktop shortcut; must stay inside main() so it
267
- // is covered by the top-level catch and never fails the install.
268
- try {
269
- createDesktopShortcut();
270
- } catch {
271
- // Never fail the install over a shortcut.
272
- }
273
270
  }
274
271
 
275
272
  main().catch((err) => {