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