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