Skip to content

Commit 0656118

Browse files
byapparovclaude
andcommitted
chore: remove dead pty, ide, upgrade and opentui leftovers (#151)
Delete subsystems left over from the interactive origin that nothing imports any more: - src/pty (bun-pty), src/ide, src/cli/upgrade.ts, and their tests - parsers-config.ts (opentui TUI highlighter config) - the AICTRL_DISABLE_AUTOUPDATE and AICTRL_DISABLE_DEFAULT_PLUGINS flags (no-ops; the BUILTIN plugin list was empty). External callers that still set them are simply ignored. - the never-published installation.updated / update-available bus events and the pty identifier prefix - build.ts: the @opentui/solid Solid plugin, the cross-platform `bun install @opentui/core` step and the `rm -rf bin/tui` cleanup - the bunfig preload of @opentui/solid and the Solid JSX / @tui tsconfig settings - deps @opentui/core, @opentui/solid, solid-js, @solid-primitives/*, bun-pty, @babel/core and @types/babel__core, plus the root catalog entries and the @babel/core override that only served @opentui/solid The strict config schema keeps accepting `autoupdate`, now documented as having no effect. The `upgrade` and `uninstall` commands are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cd736e2 commit 0656118

30 files changed

Lines changed: 6 additions & 1503 deletions

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
# the published package only needs:
118118
# - platform binary packages (regenerated below from dist/ to match
119119
# the release version — otherwise stale pins ship the wrong binary)
120-
# - genuine runtime optionals like @parcel/watcher and bun-pty that
120+
# - genuine runtime optionals like @parcel/watcher that
121121
# must be resolved at install time against the host platform
122122
node -e "
123123
const fs = require('fs');

‎CONTRIBUTING.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ Replace `<platform>` with your platform (e.g., `darwin-arm64`, `linux-x64`).
8181

8282
- Core pieces:
8383
- `packages/aictrl`: Aictrl core business logic & server.
84-
- `packages/aictrl/src/cli/cmd/tui/`: The TUI code, written in SolidJS with [opentui](https://github.com/sst/opentui)
8584
- `packages/app`: The shared web UI components, written in SolidJS
8685
- `packages/desktop`: The native desktop app, built with Tauri (wraps `packages/app`)
8786
- `packages/plugin`: Source for `@aictrl/plugin` — first-party plugin-author SDK (types + `tool()` factory). Workspace-only, marked `"private": true`, not published to npm; types are embedded in the compiled CLI binary at runtime.

‎bun.lock‎

Lines changed: 0 additions & 536 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"packages/*"
1919
],
2020
"catalog": {
21-
"@babel/core": "7.29.7",
2221
"hono": "4.10.7",
2322
"hono-openapi": "1.1.2",
2423
"@hono/zod-validator": "0.4.2",
@@ -33,7 +32,6 @@
3332
"@cloudflare/workers-types": "4.20251008.0",
3433
"@openauthjs/openauth": "0.0.0-20250322224806",
3534
"@pierre/diffs": "1.1.0-beta.18",
36-
"@solid-primitives/storage": "4.3.3",
3735
"@tailwindcss/vite": "4.1.11",
3836
"diff": "8.0.2",
3937
"dompurify": "3.3.1",
@@ -57,7 +55,6 @@
5755
"@solidjs/meta": "0.29.4",
5856
"@solidjs/router": "0.15.4",
5957
"@solidjs/start": "https://pkg.pr.new/@solidjs/start@dfb2020",
60-
"solid-js": "1.9.10",
6158
"vite-plugin-solid": "2.11.10"
6259
}
6360
},
@@ -95,7 +92,6 @@
9592
"web-tree-sitter"
9693
],
9794
"overrides": {
98-
"@babel/core": "catalog:",
9995
"@types/bun": "catalog:",
10096
"@types/node": "catalog:"
10197
},

‎packages/cli/bunfig.toml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
preload = ["@opentui/solid/preload"]
2-
31
[test]
42
preload = ["./test/preload.ts"]
53
# timeout is not actually parsed from bunfig.toml (see src/bunfig.zig in oven-sh/bun)

‎packages/cli/package.json‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"@ai-sdk/vercel": "1.0.33",
5353
"@ai-sdk/xai": "2.0.51",
5454
"@aws-sdk/credential-providers": "3.993.0",
55-
"@babel/core": "catalog:",
5655
"@gitlab/gitlab-ai-provider": "3.6.0",
5756
"@openrouter/ai-sdk-provider": "1.5.4",
5857
"@aictrl/script": "workspace:*",
@@ -67,7 +66,6 @@
6766
"@parcel/watcher-win32-x64": "2.5.1",
6867
"@standard-schema/spec": "1.0.0",
6968
"@tsconfig/bun": "catalog:",
70-
"@types/babel__core": "7.20.5",
7169
"@types/bun": "catalog:",
7270
"@types/mime-types": "3.0.1",
7371
"@types/turndown": "5.0.5",
@@ -89,10 +87,6 @@
8987
"@clack/prompts": "1.0.0-alpha.1",
9088
"@gitlab/opencode-gitlab-auth": "1.3.3",
9189
"@modelcontextprotocol/sdk": "1.32.1",
92-
"@opentui/core": "0.1.81",
93-
"@opentui/solid": "0.1.81",
94-
"@solid-primitives/event-bus": "1.1.2",
95-
"@solid-primitives/scheduled": "1.5.2",
9690
"@standard-schema/spec": "1.0.0",
9791
"@zip.js/zip.js": "2.7.62",
9892
"ai": "catalog:",
@@ -110,7 +104,6 @@
110104
"open": "10.1.2",
111105
"proper-lockfile": "4.1.2",
112106
"remeda": "catalog:",
113-
"solid-js": "catalog:",
114107
"strip-ansi": "7.1.2",
115108
"tree-sitter-bash": "0.25.0",
116109
"turndown": "7.2.0",
@@ -122,8 +115,7 @@
122115
"zod-to-json-schema": "3.24.5"
123116
},
124117
"optionalDependencies": {
125-
"@parcel/watcher": "2.5.1",
126-
"bun-pty": "0.4.8"
118+
"@parcel/watcher": "2.5.1"
127119
},
128120
"peerDependencies": {
129121
"@ai-sdk/amazon-bedrock": ">=3",

‎packages/cli/parsers-config.ts‎

Lines changed: 0 additions & 254 deletions
This file was deleted.

‎packages/cli/script/build.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { $ } from "bun"
44
import fs from "fs"
55
import path from "path"
66
import { fileURLToPath } from "url"
7-
import solidPlugin from "../node_modules/@opentui/solid/scripts/solid-plugin"
87

98
const __filename = fileURLToPath(import.meta.url)
109
const __dirname = path.dirname(__filename)
@@ -156,7 +155,6 @@ await $`rm -rf dist`
156155

157156
const binaries: Record<string, string> = {}
158157
if (!skipInstall && !liteFlag) {
159-
await $`bun install --os="*" --cpu="*" @opentui/core@${pkg.dependencies["@opentui/core"]}`
160158
await $`bun install --os="*" --cpu="*" @parcel/watcher@${(pkg as any).optionalDependencies["@parcel/watcher"]}`
161159
}
162160
for (const item of targets) {
@@ -177,7 +175,6 @@ for (const item of targets) {
177175
await Bun.build({
178176
conditions: ["browser"],
179177
tsconfig: "./tsconfig.json",
180-
plugins: liteFlag ? [] : [solidPlugin],
181178
sourcemap: "external",
182179
compile: {
183180
autoloadBunfig: false,
@@ -199,7 +196,6 @@ for (const item of targets) {
199196
},
200197
})
201198

202-
await $`rm -rf ./dist/${name}/bin/tui`
203199
await Bun.file(`dist/${name}/package.json`).write(
204200
JSON.stringify(
205201
{

0 commit comments

Comments
 (0)