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