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