Repository navigation
Expand file tree
/
Copy pathknip.jsonc
More file actions
165 lines (165 loc) · 7.1 KB
/
Copy pathknip.jsonc
File metadata and controls
165 lines (165 loc) · 7.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"$schema": "https://unpkg.com/knip@6/schema.json",
// Exported types are part of our contracts even before they have consumers.
"rules": { "types": "off", "nsTypes": "off" },
// Effect schemas are values that serve as types, so the types rule above covers them too.
"preprocessor": "./scripts/knip-schemas.ts",
// These executables are supplied by the OS or installed separately from npm.
"ignoreBinaries": ["eas", "file", "mkfifo", "pkill", "pkg-config", "plutil", "sips"],
"workspaces": {
".": {
// Keep vendored reference repositories outside the root project.
"project": ["*.{js,mjs,cjs,ts,mts,cts}", ".github/**/*.cjs"],
"entry": [
// CodeRabbit loads its configuration by filename.
".coderabbit.config.ts",
],
"vite": { "entry": [".github/**/*.test.cjs"] },
"vitest": { "entry": [".github/**/*.test.cjs"] },
},
"scripts": {
// Knip loads its preprocessor from this config; native verification and
// worktree setup (from onicode.json) run directly. electron-builder loads the macOS
// signer and the Linux afterPack hook by path, mobile-e2e.ts runs agent-device's CLI
// by path, and mobile-behavior.ts spawns its runner by path.
"entry": [
// These fixture scripts are injected into a browser page by path.
"fixtures/*/*.js",
"knip-schemas.ts",
"linux-after-pack.ts",
"mobile-behavior/run.ts",
"mobile-native-client.ts",
// e2e loads its config and the scenarios by path, and starts the app script.
"e2e.config.ts",
"prove-scenario.ts",
"scenarios/*.ts",
"setup-worktree.ts",
"sign-macos.ts",
"prepare-server-compile-cache.cjs",
],
"ignoreDependencies": ["agent-device"],
// The `onicode` npm package's files: copied into the package, never imported.
// knip-schemas.test.ts writes a throwaway project to .knip-test-*, which a
// knip run beside it in check:changed must not report.
"ignore": ["npm-launcher/**", ".knip-test-*/**"],
},
"apps/server": {
// Vite+ pack entries and the launcher used by installed background services.
"entry": [
"src/bin.ts!",
"src/claude-history-worker.ts!",
"scripts/cli.ts",
"scripts/fetch-expo-schema.ts",
"scripts/probe-claude-fork-local-rollback-replay.ts",
"scripts/update-test-shard-weights.ts",
"scripts/verify-background-live.ts",
"src/provider/testFixtures/*.mjs",
// graphqlgen reads its config.
"graphql.config.ts",
],
// The generated operations export every selection's class.
"ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
// Keep the transitive Effect runtime pinned for standalone npm installs.
// The Vite+ web build prerequisite.
// Native and disk-loaded provider packages stay external to the bundle; the
// CLI archive and desktop sidecar stage them from this manifest.
"ignoreDependencies": [
"@effect/platform-node-shared",
"@onicode/web",
"@napi-rs/keyring",
"ffi-rs",
"transcribe-cpp",
],
},
"apps/desktop": {
// Electron loads these bundles by filename rather than importing them.
"entry": [
"gnome-extension/extension.js!",
"src/electron/WindowsForegroundFocusWorker.ts!",
"src/snapShot/GlobalShiftShortcutWorker.ts!",
"src/snapShot/RegionSnapShotWorker.ts!",
"src/snapShot/SnapShotAccessibilityWorker.ts!",
"src/boot.ts!",
"src/compileCache.ts!",
"src/serverCompileCache.ts!",
"src/main.ts!",
"src/preload.ts!",
"src/preview-pick-preload.ts!",
"src/preview-pip-preload.ts!",
"src/mac-permission-preload.ts!",
"src/preview/Annotation.css!",
],
// The injected runtime resolves Playwright by string; release tooling runs
// electron-builder from this workspace, outside its package scripts.
"ignoreDependencies": ["playwright-core", "electron-builder"],
},
"apps/web": {
// Worktree setup (scripts/setup-worktree.ts) runs this directly, and evidence
// fixtures run under node.
"entry": ["scripts/warm-dep-cache.ts", "test/fixtures/**/*.mjs"],
// UI component modules are copied and adapted as cohesive sets. Keep their
// named subcomponents even before they have callers; the file audit still
// reports an entire component module when nothing imports it.
"ignoreIssues": { "src/components/ui/*.tsx": ["exports", "nsExports", "duplicates"] },
},
"apps/mobile": {
// Expo loads plugins and the fingerprint config by string; Metro embeds the browser entry in the native WebView.
"entry": [
"index.ts!",
"fingerprint.config.js",
"plugins/*.cjs",
"scripts/generate-device-stream.mts",
// The device suite: the e2e CLI loads its config, tests, and the stack script by path.
"e2e.config.ts",
"e2e/*.e2e.ts",
"e2e/stack.ts",
"src/features/devices/device-stream.browser.ts!",
"src/features/browser/preview-stream.browser.ts!",
"src/features/remote-desktop/remote-desktop.browser.ts!",
],
// Fonts are configured as asset paths; Expo autolinks the native packages.
"ignoreDependencies": [
"@expo-google-fonts/dm-sans",
"@onicode/mobile-review-diff-native",
"@onicode/mobile-terminal-native",
],
},
"apps/mobile/modules/oni-highlights": {
// Nitrogen discovers HybridObject specifications by filename.
"entry": ["src/*.nitro.ts!"],
},
"apps/mobile/modules/oni-source-text": {
// React Native codegen discovers component specifications by filename.
"entry": ["src/*NativeComponent.ts!"],
},
"infra/push-gateway": {
// The cf CLI loads its configuration by filename, and that names the Worker's entrypoint.
"entry": ["cloudflare.config.ts", "src/index.ts"],
},
"packages/*": {
// These workspace packages are private to this monorepo.
"includeEntryExports": true,
},
"packages/effect-acp": {
"includeEntryExports": true,
"entry": ["test/fixtures/*.ts"],
// Generated upstream protocol definitions are retained as a complete set.
"ignoreIssues": { "src/_generated/**": ["exports", "types"] },
},
"packages/effect-codex-app-server": {
"includeEntryExports": true,
"entry": ["test/fixtures/*.ts"],
"ignoreIssues": { "src/_generated/**": ["exports", "types"] },
},
"packages/issue-tracker-linear": {
// graphqlgen reads its config; the generated operations export every selection's class.
"entry": ["graphql.config.ts"],
"ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
},
"packages/source-control-github": {
// graphqlgen reads its config; the generated operations export every selection's class.
"entry": ["graphql.config.ts", "scripts/measure-pr-preview.ts"],
"ignoreIssues": { "**/*.graphql.ts": ["exports", "types", "namespaceMembers"] },
},
},
}