Files
qqq-cli/scripts/binary-with-tui.ts
james.maesandClaude Fable 5.1 1bc4ddd0be release: qqq 1.0.0 (#11)
qqq 1.0.0: the command-line client and the full-screen terminal UI (qqq ui) for QQQ applications over the UI API (/qqq/v1), with @qrun-io/qqq-cli 1.0.0, @qrun-io/qqq-core 1.0.0, @qrun-io/qqq-ui-api-client 1.8.0 and @qrun-io/qqq-ui-api-conformance 1.6.0 going final together. Squash of the release/1.0.0 branch at 79ba68e (the branch is kept with the full signed history; the tags v1.8.0 and cli-v1.0.0 point at that commit, which is what the released binaries were built from). See CHANGELOG.md [1.0.0] and docs/release-notes/1.0.0.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-01 12:49:06 -06:00

19 lines
711 B
TypeScript

/*
* Copyright 2026 QRun.IO, Inc.
* Licensed under the Apache License, Version 2.0 (see LICENSE).
*/
/**
* Entry point of a qqq binary that carries the terminal UI (scripts/build-binaries.mjs --with-tui).
* Only Bun builds it: the CLI stays a Node program, and `qqq ui` hands over to the bundled TUI in the
* same process instead of spawning `bun run packages/tui/src/main.tsx` from a checkout.
*/
globalThis.__qqqRunTui = async (args: string[]) => {
process.argv = [process.argv[0]!, 'qqq-ui', ...args]
await import('../packages/tui/src/main.tsx')
}
// the built CLI, the same module the TUI imports as @qrun-io/qqq-cli/program, so it is bundled once
await import('../packages/cli/dist/main.js')