Open History to see the last commit
1{
2 "$schema": "https://unpkg.com/knip@6/schema.json",
3 // Exported types are part of our contracts even before they have consumers.
4 "rules": { "types": "off", "nsTypes": "off" },
5 // These executables are supplied by the OS or installed separately from npm.
6 "ignoreBinaries": ["eas", "file", "mkfifo", "pkill", "pkg-config", "plutil", "sips"],
7 "workspaces": {
8 ".": {
9 // Keep vendored reference repositories outside the root project.
10 "project": ["*.{js,mjs,cjs,ts,mts,cts}", ".github/**/*.cjs"],
11 "entry": [
12 // CodeRabbit loads its configuration by filename.
13 ".coderabbit.config.ts",
14 ".github/scripts/thread-transfer-report.cjs",
15 ".github/scripts/pr-limits.cjs",
16 ],
17 "vite": { "entry": [".github/**/*.test.cjs"] },
18 "vitest": { "entry": [".github/**/*.test.cjs"] },
19 },
20 "scripts": {
21 // Knip loads its preprocessor through a CLI option; native verification and
22 // worktree setup (from t3.json) run directly. release-desktop.yml bundles the
23 // Windows verify script with esbuild through a path knip does not trace,
24 // electron-builder loads the macOS signer and the Linux afterPack hook by path, and mobile-e2e.ts runs
25 // agent-device's CLI by path, and mobile-behavior.ts spawns its runner by path.
26 // release-desktop.yml runs the desktop launch check through xvfb-run, which knip
27 // does not trace.
28 "entry": [
29 // These fixture scripts are injected into a browser page by path.
30 "fixtures/*/*.js",
31 "knip-schemas.ts",
32 "linux-after-pack.ts",
33 "mobile-behavior/run.ts",
34 "mobile-native-client.ts",
35 // e2e loads its config and the scenarios by path, and starts the app script.
36 "e2e.config.ts",
37 "prove-scenario.ts",
38 "scenarios/*.ts",
39 "setup-worktree.ts",
40 "sign-macos.ts",
41 "prepare-server-compile-cache.cjs",
42 "smoke-desktop-app.ts",
43 "verify-windows-desktop-artifact.ts",
44 ],
45 "ignoreDependencies": ["esbuild"],
46 // The `t3` npm package's files: copied into the package, never imported.
47 // knip-schemas.test.ts writes a throwaway project to .knip-test-*, which a
48 // knip run beside it in check:changed must not report.
49 "ignore": ["npm-launcher/**", ".knip-test-*/**"],
50 },
51 "apps/server": {
52 // Vite+ pack entries and the launcher used by installed background services.
53 "entry": [
54 "src/bin.ts!",
55 "src/claude-history-worker.ts!",
56 "scripts/cli.ts",
57 "scripts/fetch-expo-schema.ts",
58 "scripts/probe-claude-fork-local-rollback-replay.ts",
59 "scripts/update-test-shard-weights.ts",
60 "scripts/verify-background-live.ts",
61 "src/provider/testFixtures/*.mjs",
62 // graphqlgen reads its config.
63 "graphql.config.ts",
64 ],
65 // The generated operations export every selection's class.
66 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
67 // Keep the transitive Effect runtime pinned for standalone npm installs.
68 // The Vite+ web build prerequisite.
69 // Native and disk-loaded provider packages stay external to the bundle; the
70 // CLI archive and desktop sidecar stage them from this manifest.
71 // @ubjs/node: direct only so staged release installs carry its asar patch.
72 "ignoreDependencies": [
73 "@effect/platform-node-shared",
74 "@t3tools/web",
75 "@napi-rs/keyring",
76 "ffi-rs",
77 "transcribe-cpp",
78 "@ubjs/node",
79 ],
80 },
81 "apps/desktop": {
82 // Electron loads these bundles by filename rather than importing them.
83 "entry": [
84 "gnome-extension/extension.js!",
85 "src/electron/WindowsForegroundFocusWorker.ts!",
86 "src/snapShot/GlobalShiftShortcutWorker.ts!",
87 "src/snapShot/RegionSnapShotWorker.ts!",
88 "src/snapShot/SnapShotAccessibilityWorker.ts!",
89 "src/boot.ts!",
90 "src/compileCache.ts!",
91 "src/serverCompileCache.ts!",
92 "src/main.ts!",
93 "src/preload.ts!",
94 "src/preview-pick-preload.ts!",
95 "src/preview-pip-preload.ts!",
96 "src/mac-permission-preload.ts!",
97 "src/preview/Annotation.css!",
98 ],
99 // The injected runtime resolves Playwright by string; release tooling runs
100 // electron-builder from this workspace, outside its package scripts.
101 // @ubjs/node: direct only so staged release installs carry its asar patch.
102 "ignoreDependencies": ["playwright-core", "electron-builder", "@ubjs/node"],
103 },
104 "apps/web": {
105 // Worktree setup (scripts/setup-worktree.ts) runs this directly, and evidence
106 // fixtures run under node.
107 "entry": ["scripts/warm-dep-cache.ts", "test/fixtures/**/*.mjs"],
108 // UI component modules are copied and adapted as cohesive sets. Keep their
109 // named subcomponents even before they have callers; the file audit still
110 // reports an entire component module when nothing imports it.
111 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
112 },
113 "apps/marketing": {
114 // `astro check` runs from the typecheck task in vite.config.ts, which knip does not read.
115 "ignoreDependencies": ["@astrojs/check"],
116 },
117 "apps/mobile": {
118 // Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
119 "entry": [
120 "index.ts!",
121 "fingerprint.config.js",
122 "plugins/*.cjs",
123 "scripts/generate-device-stream.mts",
124 "src/features/devices/device-stream.browser.ts!",
125 "src/features/browser/preview-stream.browser.ts!",
126 ],
127 // Fonts are configured as asset paths; Expo autolinks the native packages.
128 "ignoreDependencies": [
129 "@expo-google-fonts/dm-sans",
130 "@t3tools/mobile-review-diff-native",
131 "@t3tools/mobile-terminal-native",
132 ],
133 },
134 "apps/mobile/modules/t3-highlights": {
135 // Nitrogen discovers HybridObject specifications by filename.
136 "entry": ["src/*.nitro.ts!"],
137 },
138 "apps/mobile/modules/t3-source-text": {
139 // React Native codegen discovers component specifications by filename.
140 "entry": ["src/*NativeComponent.ts!"],
141 },
142 "infra/task-cache": {
143 "ignore": ["vendor/**"],
144 // The bootstrap and Vite+ hook are loaded by shell/package configuration.
145 "entry": [
146 "alchemy.run.ts!",
147 "scripts/install.ts",
148 "scripts/install-ci.ts",
149 "src/runHook.ts",
150 "src/flush.ts",
151 "src/nativeRunHook.js",
152 "src/preload.mjs",
153 ],
154 },
155 "infra/relay": {
156 // Alchemy loads src/worker.ts as the Worker entry and reads its default export.
157 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!", "src/worker.ts!"],
158 },
159 "packages/*": {
160 // These workspace packages are private to this monorepo.
161 "includeEntryExports": true,
162 },
163 "packages/effect-acp": {
164 "includeEntryExports": true,
165 "entry": ["test/fixtures/*.ts"],
166 // Generated upstream protocol definitions are retained as a complete set.
167 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
168 },
169 "packages/effect-codex-app-server": {
170 "includeEntryExports": true,
171 "entry": ["test/fixtures/*.ts"],
172 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
173 },
174 "packages/issue-tracker-linear": {
175 // graphqlgen reads its config; the generated operations export every selection's class.
176 "entry": ["graphql.config.ts"],
177 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
178 },
179 "packages/source-control-github": {
180 // graphqlgen reads its config; the generated operations export every selection's class.
181 "entry": ["graphql.config.ts", "scripts/measure-pr-preview.ts"],
182 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
183 },
184 },
185}