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
package/src/cli/cmd/tui/app.tsx
CHANGED
|
@@ -125,10 +125,12 @@ export function tui(input: {
|
|
|
125
125
|
resolve()
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
|
|
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()
|
|
195
|
+
console.log("[snow-flow] render() completed")
|
|
193
196
|
} catch (e) {
|
|
194
|
-
console.log(`[snow-flow] render()
|
|
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
|
}
|