Skip to content

Commit 7675dba

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 4bcf6c0 commit 7675dba

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",
@@ -34,7 +33,6 @@
3433
"@cloudflare/workers-types": "4.20251008.0",
3534
"@openauthjs/openauth": "0.0.0-20250322224806",
3635
"@pierre/diffs": "1.1.0-beta.18",
37-
"@solid-primitives/storage": "4.3.3",
3836
"@tailwindcss/vite": "4.1.11",
3937
"diff": "8.0.2",
4038
"dompurify": "3.3.1",
@@ -58,7 +56,6 @@
5856
"@solidjs/meta": "0.29.4",
5957
"@solidjs/router": "0.15.4",
6058
"@solidjs/start": "https://pkg.pr.new/@solidjs/start@dfb2020",
61-
"solid-js": "1.9.10",
6259
"vite-plugin-solid": "2.11.10"
6360
}
6461
},
@@ -97,7 +94,6 @@
9794
"web-tree-sitter"
9895
],
9996
"overrides": {
100-
"@babel/core": "catalog:",
10197
"@types/bun": "catalog:",
10298
"@types/node": "catalog:"
10399
},

‎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
"@octokit/webhooks-types": "7.6.1",
5857
"@openrouter/ai-sdk-provider": "1.5.4",
@@ -68,7 +67,6 @@
6867
"@parcel/watcher-win32-x64": "2.5.1",
6968
"@standard-schema/spec": "1.0.0",
7069
"@tsconfig/bun": "catalog:",
71-
"@types/babel__core": "7.20.5",
7270
"@types/bun": "catalog:",
7371
"@types/mime-types": "3.0.1",
7472
"@types/turndown": "5.0.5",
@@ -94,10 +92,6 @@
9492
"@modelcontextprotocol/sdk": "1.32.1",
9593
"@octokit/graphql": "9.0.2",
9694
"@octokit/rest": "catalog:",
97-
"@opentui/core": "0.1.81",
98-
"@opentui/solid": "0.1.81",
99-
"@solid-primitives/event-bus": "1.1.2",
100-
"@solid-primitives/scheduled": "1.5.2",
10195
"@standard-schema/spec": "1.0.0",
10296
"@zip.js/zip.js": "2.7.62",
10397
"ai": "catalog:",
@@ -115,7 +109,6 @@
115109
"open": "10.1.2",
116110
"proper-lockfile": "4.1.2",
117111
"remeda": "catalog:",
118-
"solid-js": "catalog:",
119112
"strip-ansi": "7.1.2",
120113
"tree-sitter-bash": "0.25.0",
121114
"turndown": "7.2.0",
@@ -127,8 +120,7 @@
127120
"zod-to-json-schema": "3.24.5"
128121
},
129122
"optionalDependencies": {
130-
"@parcel/watcher": "2.5.1",
131-
"bun-pty": "0.4.8"
123+
"@parcel/watcher": "2.5.1"
132124
},
133125
"peerDependencies": {
134126
"@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)