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 "src/provider/testFixtures/*.mjs",
57 // graphqlgen reads its config.
58 "graphql.config.ts",
59 ],
60 // The generated operations export every selection's class.
61 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
62 // Keep the transitive Effect runtime pinned for standalone npm installs.
63 // The Vite+ web build prerequisite.
64 // Native and disk-loaded provider packages stay external to the bundle; the
65 // CLI archive and desktop sidecar stage them from this manifest.
66 "ignoreDependencies": [
67 "@effect/platform-node-shared",
68 "@t3tools/web",
69 "@napi-rs/keyring",
70 "ffi-rs",
71 ],
72 },
73 "apps/desktop": {
74 // Electron loads these bundles by filename rather than importing them.
75 "entry": [
76 "gnome-extension/extension.js!",
77 "src/electron/WindowsForegroundFocusWorker.ts!",
78 "src/snapShot/GlobalShiftShortcutWorker.ts!",
79 "src/snapShot/RegionSnapShotWorker.ts!",
80 "src/snapShot/SnapShotAccessibilityWorker.ts!",
81 "src/boot.ts!",
82 "src/compileCache.ts!",
83 "src/serverCompileCache.ts!",
84 "src/main.ts!",
85 "src/preload.ts!",
86 "src/preview-pick-preload.ts!",
87 "src/preview-pip-preload.ts!",
88 "src/mac-permission-preload.ts!",
89 "src/preview/Annotation.css!",
90 ],
91 // The injected runtime resolves Playwright by string; release tooling runs
92 // electron-builder from this workspace, outside its package scripts.
93 "ignoreDependencies": ["playwright-core", "electron-builder"],
94 },
95 "apps/web": {
96 // Worktree setup (scripts/setup-worktree.ts) runs this directly, and evidence
97 // fixtures run under node.
98 "entry": ["scripts/warm-dep-cache.ts", "test/fixtures/**/*.mjs"],
99 // UI component modules are copied and adapted as cohesive sets. Keep their
100 // named subcomponents even before they have callers; the file audit still
101 // reports an entire component module when nothing imports it.
102 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
103 },
104 "apps/marketing": {
105 // `astro check` runs from the typecheck task in vite.config.ts, which knip does not read.
106 "ignoreDependencies": ["@astrojs/check"],
107 },
108 "apps/mobile": {
109 // Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
110 "entry": [
111 "index.ts!",
112 "fingerprint.config.js",
113 "plugins/*.cjs",
114 "scripts/generate-device-stream.mts",
115 "src/features/devices/device-stream.browser.ts!",
116 "src/features/browser/preview-stream.browser.ts!",
117 ],
118 // Fonts are configured as asset paths; Expo autolinks the native packages.
119 "ignoreDependencies": [
120 "@expo-google-fonts/dm-sans",
121 "@t3tools/mobile-highlights-native",
122 "@t3tools/mobile-review-diff-native",
123 "@t3tools/mobile-terminal-native",
124 ],
125 },
126 "apps/mobile/modules/t3-source-text": {
127 // React Native codegen discovers component specifications by filename.
128 "entry": ["src/*NativeComponent.ts!"],
129 },
130 "infra/task-cache": {
131 "ignore": ["vendor/**"],
132 // The bootstrap and Vite+ hook are loaded by shell/package configuration.
133 "entry": [
134 "alchemy.run.ts!",
135 "scripts/install.ts",
136 "scripts/install-ci.ts",
137 "src/runHook.ts",
138 "src/flush.ts",
139 "src/nativeRunHook.js",
140 "src/preload.mjs",
141 ],
142 },
143 "infra/relay": {
144 // Alchemy loads src/worker.ts as the Worker entry and reads its default export.
145 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!", "src/worker.ts!"],
146 },
147 "packages/*": {
148 // These workspace packages are private to this monorepo.
149 "includeEntryExports": true,
150 },
151 "packages/effect-acp": {
152 "includeEntryExports": true,
153 "entry": ["test/fixtures/*.ts"],
154 // Generated upstream protocol definitions are retained as a complete set.
155 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
156 },
157 "packages/effect-codex-app-server": {
158 "includeEntryExports": true,
159 "entry": ["test/fixtures/*.ts"],
160 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
161 },
162 "packages/source-control-github": {
163 // graphqlgen reads its config; the generated operations export every selection's class.
164 "entry": ["graphql.config.ts", "scripts/measure-pr-preview.ts"],
165 "ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
166 },
167 },
168}