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