snow-flow 10.0.99 → 10.0.101

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
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "10.0.99",
3
+ "version": "10.0.101",
4
4
  "name": "snow-flow",
5
5
  "description": "Snow-Flow - ServiceNow Multi-Agent Development Framework powered by AI",
6
6
  "license": "Elastic-2.0",
@@ -125,10 +125,12 @@ export function tui(input: {
125
125
  resolve()
126
126
  }
127
127
 
128
- console.log("[snow-flow] starting render...")
128
+ const isRemote = !!process.env.OPENCODE_REMOTE_TUI
129
+ console.log("[snow-flow] starting render...", isRemote ? "(remote mode)" : "(local mode)")
129
130
  try {
130
- render(
131
+ await render(
131
132
  () => {
133
+ console.log("[snow-flow] component tree evaluating...")
132
134
  return (
133
135
  <ErrorBoundary
134
136
  fallback={(error, reset) => <ErrorComponent error={error} reset={reset} onExit={onExit} mode={mode} />}
@@ -178,6 +180,7 @@ export function tui(input: {
178
180
  targetFps: 60,
179
181
  gatherStats: false,
180
182
  exitOnCtrlC: false,
183
+ ...(isRemote ? { remote: true } : {}),
181
184
  useKittyKeyboard: process.env.OPENCODE_DISABLE_KITTY_KEYBOARD ? undefined : {},
182
185
  consoleOptions: {
183
186
  keyBindings: [{ name: "y", ctrl: true, action: "copy-selection" }],
@@ -189,9 +192,10 @@ export function tui(input: {
189
192
  },
190
193
  },
191
194
  )
192
- console.log("[snow-flow] render() returned")
195
+ console.log("[snow-flow] render() completed")
193
196
  } catch (e) {
194
- console.log(`[snow-flow] render() threw: ${e instanceof Error ? e.message : e}`)
197
+ console.log(`[snow-flow] render() FAILED: ${e instanceof Error ? e.message : e}`)
198
+ if (e instanceof Error && e.stack) console.log(e.stack)
195
199
  }
196
200
  })
197
201
  }
@@ -51,6 +51,8 @@ async function spawnTui(cols: number, rows: number, env?: Record<string, string>
51
51
  TERM: "xterm-256color",
52
52
  COLORTERM: "truecolor",
53
53
  FORCE_COLOR: "3",
54
+ OPENCODE_REMOTE_TUI: "1",
55
+ OPENCODE_DISABLE_KITTY_KEYBOARD: "1",
54
56
  },
55
57
  })
56
58