GeezerVison is showing github.com — chore: use bun check for local typechecks and TypeScript 7.1 in CI (#… · yusha/opencode@84578e1
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/check.yml +6-2Lines changed: 6 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | - name: Setup Bun | 26 | 26 | uses: ./.github/actions/setup-bun | 27 | 27 |
| 28 | | - - name: Run checks | 29 | | - run: bun run check | | 28 | + - name: Lint | | 29 | + run: bun run lint | | 30 | + | | 31 | + # Local `bun run check` uses `bun check`; CI keeps the official TypeScript compiler as the source of truth. | | 32 | + - name: Typecheck (TypeScript 7.1) | | 33 | + run: bun run typecheck:tsc | 30 | 34 |
| 31 | 35 | # Every GUI package file (app, desktop, gui-extensions, ui, session-ui) a pull request adds or edits must be free of | 32 | 36 | # oxlint problems, warn-level rules (anti-slop) included. Other packages are not affected. | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/deploy-changelog.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 27 | 27 |
| 28 | 28 | - name: Typecheck | 29 | 29 | working-directory: services/changelog | 30 | | - run: bun typecheck | | 30 | + run: bun run typecheck:tsc | 31 | 31 |
| 32 | 32 | - name: Test | 33 | 33 | working-directory: services/changelog | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/deploy-files.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 |
| 26 | 26 | - name: Typecheck | 27 | 27 | working-directory: services/files | 28 | | - run: bun typecheck | | 28 | + run: bun run typecheck:tsc | 29 | 29 |
| 30 | 30 | - name: Deploy | 31 | 31 | working-directory: services/files | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/deploy-update.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 24 | 24 |
| 25 | 25 | - name: Typecheck | 26 | 26 | working-directory: services/update | 27 | | - run: bun typecheck | | 27 | + run: bun run typecheck:tsc | 28 | 28 |
| 29 | 29 | - name: Deploy | 30 | 30 | working-directory: services/update | |
Collapse file Copy file name to clipboardExpand all lines: AGENTS.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -172,6 +172,8 @@ const table = sqliteTable("session", { | 172 | 172 |
| 173 | 173 | - Run `bun run check` from the repository root as the canonical full lint and type-check verification. | 174 | 174 | - During focused iteration, run `bun typecheck` from the affected package directory (for example, `packages/core`). Never run `tsc` directly. | | 175 | +- Local `typecheck` scripts use `bun check`. CI and package publishing run `typecheck:tsc`, which uses the official TypeScript compiler (`@typescript/native`). When the two disagree, `tsc` is the source of truth; reproduce with `bun run typecheck:tsc` from the package directory. | | 176 | +- `bun check` aims to match TypeScript 7.1, not the `7.0.2` that `process.versions.typescript` reports (oven-sh/bun#46536). When `bun check` and `tsc` from the pinned `@typescript/native` report different errors, file a minimal, dependency-free repro at https://github.com/oven-sh/bun/issues, with the output of both. `bun check` writes no declaration files, so declaration-emit errors such as TS5088 or TS2883 are expected to appear only in `tsc`; do not report those. | 175 | 177 |
| 176 | 178 | ## Session Core | 177 | 179 |
| |
Collapse file Copy file name to clipboardExpand all lines: bun.lock +25-23Lines changed: 25 additions & 23 deletions Collapse file Copy file name to clipboardExpand all lines: bunfig.toml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 | exact = true | 3 | 3 | # Only install newly resolved package versions published at least 3 days ago. | 4 | 4 | minimumReleaseAge = 259200 | 5 | | -minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@brendonovich/vite-plugin-opencode", "@kitlangton/solid-motion", "@opencode/sdk", "@opencode-ai/pty", "@opencode-ai/pty-darwin-arm64", "@opencode-ai/pty-darwin-x64", "@opencode-ai/pty-linux-arm64-gnu", "@opencode-ai/pty-linux-arm64-musl", "@opencode-ai/pty-linux-x64-gnu", "@opencode-ai/pty-linux-x64-musl", "@opencode-ai/pty-win32-arm64", "@opencode-ai/pty-win32-x64", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "@opentunnel/client", "@opentunnel/protocol", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/highlights", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron", "electron-builder", "electron-publish", "blume", "mermaid", "bun-types"] | | 5 | +minimumReleaseAgeExcludes = ["@ai-sdk/amazon-bedrock", "@ai-sdk/anthropic", "@brendonovich/vite-plugin-opencode", "@kitlangton/solid-motion", "@opencode/sdk", "@opencode-ai/pty", "@opencode-ai/pty-darwin-arm64", "@opencode-ai/pty-darwin-x64", "@opencode-ai/pty-linux-arm64-gnu", "@opencode-ai/pty-linux-arm64-musl", "@opencode-ai/pty-linux-x64-gnu", "@opencode-ai/pty-linux-x64-musl", "@opencode-ai/pty-win32-arm64", "@opencode-ai/pty-win32-x64", "@opentui/core", "@opentui/core-darwin-arm64", "@opentui/core-darwin-x64", "@opentui/core-linux-arm64", "@opentui/core-linux-arm64-musl", "@opentui/core-linux-x64", "@opentui/core-linux-x64-musl", "@opentui/core-win32-arm64", "@opentui/core-win32-x64", "@opentui/keymap", "@opentui/solid", "@opentunnel/client", "@opentunnel/protocol", "gitlab-ai-provider", "opencode-gitlab-auth", "@ff-labs/fff-node", "@ff-labs/fff-bun", "@ff-labs/fff-bin-darwin-arm64", "@ff-labs/fff-bin-darwin-x64", "@ff-labs/fff-bin-linux-arm64-gnu", "@ff-labs/fff-bin-linux-arm64-musl", "@ff-labs/fff-bin-linux-x64-gnu", "@ff-labs/fff-bin-linux-x64-musl", "@ff-labs/fff-bin-win32-arm64", "@ff-labs/fff-bin-win32-x64", "@pierre/diffs", "@pierre/highlights", "@pierre/theming", "app-builder-lib", "dmg-builder", "electron", "electron-builder", "electron-publish", "blume", "mermaid", "bun-types", " [email protected]"] | 6 | 6 |
| 7 | 7 | [test] | 8 | 8 | root = "./do-not-run-tests-from-root" |
Collapse file Copy file name to clipboardExpand all lines: package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 25 | 25 | "test:lint-rules": "ast-grep test -c script/ast-grep/sgconfig.yml", | 26 | 26 | "test:effect-simplification-rules": "ast-grep test -c script/ast-grep/effect-simplifications/sgconfig.yml", | 27 | 27 | "typecheck": "bun turbo typecheck --concurrency=3", | | 28 | + "typecheck:tsc": "bun turbo typecheck:tsc --concurrency=3", | 28 | 29 | "check": "bun run lint && bun run typecheck", | 29 | 30 | "typecheck:profile": "bun script/profile-typecheck.ts", | 30 | 31 | "typecheck:profile:packages": "bun script/profile-typecheck-packages.ts", | | 94 | 95 | "@playwright/test": "1.60.0", | 95 | 96 | "semver": "7.7.4", | 96 | 97 | | 97 | | - "@typescript/native": "npm:typescript@7.0.2", | | 98 | + "@typescript/native": "npm:typescript@7.1.0-beta", | 98 | 99 | "zod": "4.1.8", | 99 | 100 | "remeda": "2.26.0", | 100 | 101 | "sst": "4.13.1", | |
Collapse file Copy file name to clipboardExpand all lines: packages/ai/package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | "scripts": { | 8 | 8 | "setup:recording-env": "bun run script/setup-recording-env.ts", | 9 | 9 | "test": "bun test --timeout 30000 --only-failures", | 10 | | - "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.types.json", | | 10 | + "typecheck": "bun check --no-script && bun check --no-script -p tsconfig.types.json", | | 11 | + "typecheck:tsc": "tsc --noEmit && tsc --noEmit -p tsconfig.types.json", | 11 | 12 | "build": "tsc -p tsconfig.build.json" | 12 | 13 | }, | 13 | 14 | "files": [ | |
Collapse file Copy file name to clipboardExpand all lines: packages/app/package.json +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 12 | 12 | "./index.css": "./src/index.css" | 13 | 13 | }, | 14 | 14 | "scripts": { | 15 | | - "typecheck": "tsc -b", | | 15 | + "typecheck": "bun check --no-script -b", | | 16 | + "typecheck:tsc": "tsc -b", | 16 | 17 | "typecheck:e2e": "tsc -p e2e/tsconfig.json", | 17 | 18 | "start": "vite", | 18 | 19 | "dev": "vite", | |
|