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