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.
22 "entry": ["knip-schemas.ts", "mobile-native-client.ts", "setup-worktree.ts"],
23 },
24 "apps/server": {
25 // Vite+ pack entries and the launcher used by installed background services.
26 "entry": [
27 "src/bin.ts!",
28 "src/claude-history-worker.ts!",
29 "scripts/cli.ts",
30 "scripts/evaluate-thread-titles.ts",
31 "scripts/measure-pr-preview.ts",
32 "scripts/probe-claude-fork-local-rollback-replay.ts",
33 "scripts/update-test-shard-weights.ts",
34 "scripts/verify-background-live.ts",
35 "src/provider/testFixtures/*.mjs",
36 ],
37 // Keep the transitive Effect runtime pinned for standalone npm installs.
38 // The Vite+ web build prerequisite.
39 "ignoreDependencies": ["@effect/platform-node-shared", "@t3tools/web"],
40 },
41 "apps/desktop": {
42 // Electron loads these bundles by filename rather than importing them.
43 "entry": [
44 "gnome-extension/extension.js!",
45 "src/electron/WindowsForegroundFocusWorker.ts!",
46 "src/snapShot/GlobalShiftShortcutWorker.ts!",
47 "src/snapShot/RegionSnapShotWorker.ts!",
48 "src/snapShot/SnapShotAccessibilityWorker.ts!",
49 "src/boot.ts!",
50 "src/compileCache.ts!",
51 "src/main.ts!",
52 "src/preload.ts!",
53 "src/preview-pick-preload.ts!",
54 "src/preview-pip-preload.ts!",
55 "src/mac-permission-preload.ts!",
56 "src/preview/Annotation.css!",
57 ],
58 // The injected runtime resolves Playwright by string; release tooling runs
59 // electron-builder from this workspace, outside its package scripts.
60 "ignoreDependencies": ["playwright-core", "electron-builder"],
61 },
62 "apps/web": {
63 // Vitest loads this through the per-file @vitest-environment directive.
64 "ignoreDependencies": ["jsdom"],
65 // Worktree setup (scripts/setup-worktree.ts) runs this directly.
66 "entry": ["scripts/warm-dep-cache.ts"],
67 // UI component modules are copied and adapted as cohesive sets. Keep their
68 // named subcomponents even before they have callers; the file audit still
69 // reports an entire component module when nothing imports it.
70 "ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
71 },
72 "apps/mobile": {
73 // Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
74 "entry": [
75 "index.ts!",
76 "fingerprint.config.js",
77 "plugins/*.cjs",
78 "scripts/generate-device-stream.mts",
79 "src/features/devices/device-stream.browser.ts!",
80 "src/features/browser/preview-stream.browser.ts!",
81 ],
82 // Fonts are configured as asset paths; Expo autolinks the native packages.
83 "ignoreDependencies": [
84 "@expo-google-fonts/dm-sans",
85 "@t3tools/mobile-review-diff-native",
86 "@t3tools/mobile-terminal-native",
87 ],
88 },
89 "apps/mobile/modules/t3-markdown-text": {
90 // React Native codegen discovers component specifications by filename.
91 "entry": ["src/*NativeComponent.ts!"],
92 },
93 "infra/relay": {
94 "entry": ["alchemy.run.ts!", "src/persistence/schema.ts!"],
95 },
96 "packages/*": {
97 // These workspace packages are private to this monorepo.
98 "includeEntryExports": true,
99 },
100 "packages/effect-acp": {
101 "includeEntryExports": true,
102 "entry": ["test/fixtures/*.ts"],
103 // Generated upstream protocol definitions are retained as a complete set.
104 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
105 },
106 "packages/effect-codex-app-server": {
107 "includeEntryExports": true,
108 "entry": ["test/fixtures/*.ts"],
109 "ignoreIssues": { "src/_generated/**": ["exports", "types"] },
110 },
111 },
112}