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