scream-code 0.4.7 → 0.4.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.
Files changed (2) hide show
  1. package/dist/main.mjs +7 -4
  2. package/package.json +2 -2
package/dist/main.mjs CHANGED
@@ -135585,7 +135585,7 @@ function runLoadingAnimation(theme = "dark") {
135585
135585
  return Promise.resolve();
135586
135586
  }
135587
135587
  return new Promise((resolve) => {
135588
- stdout.write("\x1B[?1049h");
135588
+ if (process$1.platform !== "win32") stdout.write("\x1B[?1049h");
135589
135589
  stdout.write("\x1B[2J");
135590
135590
  stdout.write("\x1B[?25l");
135591
135591
  const accent = THEME_ACCENT[theme];
@@ -135638,9 +135638,12 @@ function runLoadingAnimation(theme = "dark") {
135638
135638
  stdin.off("data", onData);
135639
135639
  process$1.off("SIGINT", interrupt);
135640
135640
  process$1.off("SIGTERM", interrupt);
135641
- stdin.setRawMode(false);
135641
+ try {
135642
+ stdin.setRawMode(false);
135643
+ } catch {}
135642
135644
  stdout.write("\x1B[?25h");
135643
- stdout.write("\x1B[?1049l");
135645
+ if (process$1.platform !== "win32") stdout.write("\x1B[?1049l");
135646
+ else stdout.write("\x1B[2J\x1B[H");
135644
135647
  }
135645
135648
  function interrupt() {
135646
135649
  cleanup();
@@ -135654,7 +135657,7 @@ function runLoadingAnimation(theme = "dark") {
135654
135657
  process$1.off("SIGINT", interrupt);
135655
135658
  process$1.off("SIGTERM", interrupt);
135656
135659
  stdout.write("\x1B[?25h");
135657
- stdout.write("\x1B[?1049l");
135660
+ if (process$1.platform !== "win32") stdout.write("\x1B[?1049l");
135658
135661
  for (const line of LOGO) stdout.write(`${fg(...LOGO_RGB)}${line}${RESET}\n`);
135659
135662
  stdout.write(`${BOLD}${fg(...accent)}正在唤醒核心...${RESET}\n`);
135660
135663
  resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scream-code",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "description": "The Starting Point for Next-Gen Agents",
5
5
  "license": "MIT",
6
6
  "author": "ScreamCli",
@@ -58,8 +58,8 @@
58
58
  "tsx": "^4.21.0",
59
59
  "@scream-cli/agent-core": "^0.3.10",
60
60
  "@scream-cli/config": "^0.3.10",
61
- "@scream-cli/scream-code-sdk": "^0.3.10",
62
61
  "@scream-cli/migration-legacy": "^0.3.10",
62
+ "@scream-cli/scream-code-sdk": "^0.3.10",
63
63
  "@scream-cli/scream-telemetry": "^0.3.10",
64
64
  "@scream-code/memory": "0.3.10"
65
65
  },