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