loom-agent 1.2.21 → 1.2.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loom-agent",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/toshalkumbhar8979-design/loomcode.git"
package/src/core/cli.js CHANGED
@@ -37,7 +37,7 @@ class LoomCLI {
37
37
 
38
38
  async start() {
39
39
  console.log(LOOM_BASE);
40
- console.log(`\n Loom Code v1.2.21 — AI Coding Agent for the terminal`);
40
+ console.log(`\n Loom Code v1.2.22 — AI Coding Agent for the terminal`);
41
41
  console.log(` Press Ctrl+C or ESC to interrupt | /help for commands\n`);
42
42
 
43
43
  process.stdin.on('keypress', (str, key) => {
@@ -54,12 +54,12 @@ if (process.platform === "win32") {
54
54
  const modeBuf = new Uint32Array(1);
55
55
  const modePtr = Bun.ptr(modeBuf);
56
56
 
57
- if (outH && !outH.isNull() && k32.symbols.GetConsoleMode(outH, modePtr)) {
57
+ if (outH && outH !== -1 && k32.symbols.GetConsoleMode(outH, modePtr)) {
58
58
  const cur = modeBuf[0];
59
59
  const next = cur | ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT | ENABLE_VIRTUAL_TERMINAL_PROCESSING;
60
60
  if (next !== cur) k32.symbols.SetConsoleMode(outH, next);
61
61
  }
62
- if (inH && !inH.isNull() && k32.symbols.GetConsoleMode(inH, modePtr)) {
62
+ if (inH && inH !== -1 && k32.symbols.GetConsoleMode(inH, modePtr)) {
63
63
  const cur = modeBuf[0];
64
64
  const next = (cur | ENABLE_PROCESSED_INPUT | ENABLE_MOUSE_INPUT | ENABLE_WINDOW_INPUT | ENABLE_VIRTUAL_TERMINAL_INPUT)
65
65
  & ~(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT | ENABLE_QUICK_EDIT_MODE);