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