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