@cdoing/opentuicli 0.1.21 → 0.1.26
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/README.md +22 -13
- package/dist/cdoing-tui-darwin-arm64/bin/cdoing-tui +0 -0
- package/package.json +12 -9
- package/dist/index.js +0 -64
- package/dist/index.js.map +0 -7
- package/esbuild.config.cjs +0 -45
- package/src/app.tsx +0 -787
- package/src/components/dialog-command.tsx +0 -207
- package/src/components/dialog-help.tsx +0 -151
- package/src/components/dialog-model.tsx +0 -142
- package/src/components/dialog-status.tsx +0 -84
- package/src/components/dialog-theme.tsx +0 -318
- package/src/components/input-area.tsx +0 -380
- package/src/components/loading-spinner.tsx +0 -28
- package/src/components/message-list.tsx +0 -546
- package/src/components/permission-prompt.tsx +0 -72
- package/src/components/session-browser.tsx +0 -231
- package/src/components/session-footer.tsx +0 -30
- package/src/components/session-header.tsx +0 -39
- package/src/components/setup-wizard.tsx +0 -542
- package/src/components/sidebar.tsx +0 -183
- package/src/components/status-bar.tsx +0 -76
- package/src/components/toast.tsx +0 -139
- package/src/context/sdk.tsx +0 -40
- package/src/context/theme.tsx +0 -640
- package/src/index.ts +0 -50
- package/src/lib/autocomplete.ts +0 -262
- package/src/lib/context-providers.ts +0 -98
- package/src/lib/history.ts +0 -164
- package/src/lib/terminal-title.ts +0 -15
- package/src/routes/home.tsx +0 -148
- package/src/routes/session.tsx +0 -1309
- package/src/store/settings.ts +0 -107
- package/tsconfig.json +0 -23
package/esbuild.config.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const esbuild = require("esbuild");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
const isWatch = process.argv.includes("--watch");
|
|
5
|
-
|
|
6
|
-
const build = {
|
|
7
|
-
entryPoints: [path.resolve(__dirname, "src/index.ts")],
|
|
8
|
-
bundle: true,
|
|
9
|
-
outfile: path.resolve(__dirname, "dist/index.js"),
|
|
10
|
-
banner: { js: "#!/usr/bin/env node" },
|
|
11
|
-
format: "esm",
|
|
12
|
-
platform: "node",
|
|
13
|
-
target: "esnext",
|
|
14
|
-
sourcemap: true,
|
|
15
|
-
minify: !isWatch,
|
|
16
|
-
jsx: "automatic",
|
|
17
|
-
jsxImportSource: "@opentui/react",
|
|
18
|
-
// @opentui packages are Bun-only — keep them external, resolved at runtime by Bun
|
|
19
|
-
external: [
|
|
20
|
-
"@cdoing/core",
|
|
21
|
-
"@cdoing/ai",
|
|
22
|
-
"@opentui/core",
|
|
23
|
-
"@opentui/react",
|
|
24
|
-
"react",
|
|
25
|
-
"react/jsx-runtime",
|
|
26
|
-
"commander",
|
|
27
|
-
"chalk",
|
|
28
|
-
],
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
async function main() {
|
|
32
|
-
if (isWatch) {
|
|
33
|
-
const ctx = await esbuild.context(build);
|
|
34
|
-
await ctx.watch();
|
|
35
|
-
console.log("Watching for changes...");
|
|
36
|
-
} else {
|
|
37
|
-
await esbuild.build(build);
|
|
38
|
-
console.log("Build complete.");
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
main().catch((err) => {
|
|
43
|
-
console.error(err);
|
|
44
|
-
process.exit(1);
|
|
45
|
-
});
|