loom-agent 1.2.19 → 1.2.20

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.19",
3
+ "version": "1.2.20",
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.0.0 — AI Coding Agent for the terminal`);
40
+ console.log(`\n Loom Code v1.2.20 — 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) => {
@@ -21,11 +21,10 @@ if (process.platform === "win32") {
21
21
  } catch {}
22
22
  }
23
23
 
24
- // Windows VT-mode re-enable OPT-IN via LOOM_FORCE_VT=1.
25
- // Off by default: OpenTUI manages its own console modes, and forcing flags
26
- // underneath it can desync its input parsing. Only enable when debugging
27
- // console-mode issues on a specific terminal.
28
- if (process.platform === "win32" && process.env.LOOM_FORCE_VT === "1") {
24
+ // OpenTUI writes VT escape sequences and expects key events instead of cooked
25
+ // console lines. Configure both handles before the renderer starts so this
26
+ // also works when the CLI is launched through npm's Windows shim.
27
+ if (process.platform === "win32") {
29
28
  try {
30
29
  const { dlopen } = require("bun:ffi");
31
30
  const k32 = dlopen("kernel32.dll", {