mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-12 08:41:32 -10:00
Replace the Ink and React terminal UI with an OpenTUI + Solid implementation while preserving Zero's chat/provider flows. Add a persistent header for provider, model, mode, and usage totals; add an optional todo rail fed by update_plan with Ctrl+T and /todo toggles; add a slash-command popup for /provider, /plan, /todo, /help, and /exit. Update agent/provider plumbing to surface usage and plan updates, retry OpenAI-compatible streams without stream_options when unsupported, and lazy-load the TUI with the Solid transform for source execution. Switch the build to a non-exe Bun bundle under dist and remove the old Ink/React dependencies and components.
17 lines
316 B
TypeScript
17 lines
316 B
TypeScript
#!/usr/bin/env bun
|
|
import solidPlugin from '@opentui/solid/bun-plugin';
|
|
|
|
const result = await Bun.build({
|
|
entrypoints: ['./src/index.ts'],
|
|
target: 'bun',
|
|
plugins: [solidPlugin],
|
|
outdir: './dist',
|
|
});
|
|
|
|
if (!result.success) {
|
|
for (const log of result.logs) {
|
|
console.error(log);
|
|
}
|
|
process.exit(1);
|
|
}
|