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