Implement shell completions for CLI (Workstream N-Completions)

Add `reviq completions bash/zsh` command with dynamic shell completions:

- Create bash-complete.ts entry point using stricli's proposeCompletions API
- Add completions command with bash and zsh support (fish planned)
- Extract app export to separate app.ts for shared imports
- Add @stricli/auto-complete dependency and __reviq_bash_complete bin entry

Also fix lint/type errors in api-server tests and helpers.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
RevIQ
2026-01-09 17:11:10 +08:00
parent 2655c57b9e
commit c4b0509023
9 changed files with 151 additions and 13 deletions

9
apps/cli/src/app.ts Normal file
View File

@@ -0,0 +1,9 @@
import { buildApplication } from "@stricli/core";
import { rootRouteMap } from "./routes/_command.js";
export const app = buildApplication(rootRouteMap, {
name: "reviq",
versionInfo: {
currentVersion: "0.0.0",
},
});