Repository navigation
Expand file tree
/
Copy pathknip.config.js
More file actions
197 lines (195 loc) · 7.65 KB
/
Copy pathknip.config.js
File metadata and controls
197 lines (195 loc) · 7.65 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// Knip reads .vibe files through VibeLang's own compiler, which gives it a module's imports and exports without bodies.
// Each exception below names something Knip cannot follow:
// ignore vibestack/examples/** standalone projects with their own install, outside the workspace
// ignore **/test/fixtures/** inputs the tools' tests read as text, never imported
// ignoreIssues server.vibe exports AGENTS is used in its own file, in a body ignoreExportsUsedInFile cannot see
// ignoreIssues screen-control.vibe exports viewNamed is used in its own file, in a body ignoreExportsUsedInFile cannot see
// ignoreIssues senders.auth.vibe exports From.* namespace members are read inside .vibe bodies that vibelang/knip strips
// ignoreIssues filesClient.ts exports loadFilesClient() namespace members are read inside .vibe bodies that vibelang/knip strips
// cli adb the system's own, run by packages/cli/src/commands/qa/device-adb.ts
// cli pactl, pw-record the system's own, run by packages/cli/src/commands/qa/voice-host-audio.ts for the host speaker and microphone
// eliza-harness openssl the system's own, run by packages/eliza-harness/src/services.ts for the local cloud's certificate
// eliza-harness entry src/qa.ts spawned as a standalone service by packages/cli/src/commands/qa/services.ts
// root @vitest/browser loaded by Vitest's browser mode, beside @vitest/browser-playwright
// root @repo/design-system read as files by vibestack/design/test/design.test.ts
// apps adb, openssl the system's own, run by apps/app/scripts/release.ts and its tests for pilot updates, readback and key custody
// apps/app findmnt the system's own, run by apps/app/scripts/release.ts for a directory's mount options
// apps/app project scripts/release.ts, scripts/pixel-archive.ts the release script and the archive check it imports, the one user of yauzl
// apps/app entry test/eliza/qa.run.tsx run by packages/cli/src/commands/qa/run.ts via vitest --config test/eliza/qa.config.ts
// apps/app ffmpeg, test/capture/run.ts the system's own, which joins the capture's videos; the capture is run by `pnpm cli capture`, and loads its flows through Vite
// apps @capacitor/android native Android Gradle/Capacitor sync dependency
// apps tesseract.js, tesseract.js-core, @tesseract.js-data/eng native/OCR runtime dependencies
// tailwindcss (ui, design-system, studio, apps) resolved by @tailwindcss/vite and the lint plugin from CSS
// entry *.schema, *.contract imported by the tests vibestack/testing/generate.ts writes under .cache/
// design-system eslint, eslint-plugin-better-tailwindcss, typescript-eslint loaded by name in vibestack/design/test/design.test.ts
// cloud wrangler run as an executable by apps/cloud/src/operator.vibe
// entry vibestack/remote/box.ts copied to a remote box and run there by vibestack/remote/client.ts
// entry vibestack/machine.ts copied into each gen/ as _machine.ts by vibestack/units.ts
// entry vibestack/{lsc,conform}-worker.ts started as worker scripts by vibestack/action.ts and vibestack/conform.ts
// root alchemy, boat, systemd-run run as executables by vibestack/doctor.ts and vibestack/remote/
import vibelang from "vibelang/knip"
const app = {
entry: ["test/**/*.test.{ts,tsx,vibe}"],
project: ["src/**/*.{ts,tsx,vibe,vibex,css}", "test/**/*.{ts,tsx,vibe,vibex}"],
ignoreDependencies: ["tailwindcss"],
ignoreBinaries: ["adb", "openssl"],
}
export default {
compilers: { vibe: vibelang, vibex: vibelang },
"ignore": [
"legacy/**",
"vibestack/examples/**",
"**/test/fixtures/**",
"prototype/**"
],
"ignoreExportsUsedInFile": true,
"ignoreIssues": {
"vibestack/studio/src/server.vibe": ["exports"],
"apps/app/src/assistant/screen-control.vibe": ["exports"],
"apps/app/src/runtime/senders.auth.vibe": ["exports"],
"apps/app/src/files/filesClient.ts": ["exports"]
},
"workspaces": {
".": {
"entry": [
"vibestack/design/cli.ts",
"vibestack/stories/cli.ts",
"vibestack/emulate/cli.ts",
"vibestack/qa/cli.ts",
"vibestack/remote-cache.ts",
"vibestack/alchemy.ts",
"vibestack/vite.ts",
"vibestack/machine.ts",
"vibestack/lsc-worker.ts",
"vibestack/conform-worker.ts",
"vibestack/remote/box.ts",
"vibestack/*/test/*.test.ts",
"vibestack/testing/test/fixture/*/src/*.{schema,contract}.{ts,vibe}"
],
"project": [
"vibestack/**/*.{ts,tsx,vibe,vibex}",
"!vibestack/studio/**"
],
"ignoreBinaries": [
"alchemy",
"boat",
"systemd-run",
"xz"
],
"ignoreDependencies": [
"@vitest/browser",
"@repo/design-system"
]
},
"packages/ui": {
"entry": [
"src/**/*.{meta,stories}.tsx",
"generated/stories/*.stories.tsx"
],
"project": [
"**/*.{ts,tsx,vibe,vibex,css}"
],
"ignoreDependencies": [
"tailwindcss"
]
},
"packages/design-system": {
"ignoreDependencies": [
"eslint",
"eslint-plugin-better-tailwindcss",
"tailwindcss",
"typescript-eslint"
]
},
"packages/cli": {
"entry": [
"src/main.ts",
"src/index.ts",
"test/**/*.test.ts"
],
"project": [
"src/**/*.ts",
"test/**/*.ts"
],
"ignoreBinaries": ["adb", "flock", "pactl", "pw-record"],
"ignoreDependencies": [
"vibestack"
]
},
"packages/eliza-harness": {
"entry": [
"src/index.ts",
"src/qa.ts",
"scripts/no-bun.ts",
"test/**/*.test.{ts,vibe}"
],
"project": [
"src/**/*.{ts,vibe,vibex}",
"scripts/**/*.ts",
"test/**/*.{ts,vibe,vibex}"
],
"ignoreBinaries": [
"openssl"
]
},
"apps/agent": {
"entry": [
"src/main.vibe",
"test/**/*.test.{ts,vibe}"
],
"project": [
"src/**/*.{ts,vibe,vibex}",
"test/**/*.{ts,vibe,vibex}"
]
},
"packages/deployment": {
"entry": [
"src/deployment.vibe",
"test/**/*.test.{ts,vibe}"
],
"project": [
"src/**/*.{ts,vibe,vibex}",
"test/**/*.{ts,vibe,vibex}"
]
},
"apps/cloud": {
"entry": [
"src/main.vibe",
"src/index.vibe",
"src/worker.vibe",
"src/edge.vibe",
"test/**/*.test.{ts,vibe}"
],
"project": [
"src/**/*.{ts,vibe,vibex}",
"test/**/*.{ts,vibe,vibex}"
],
"ignoreDependencies": [
"wrangler"
]
},
"vibestack/studio": {
"entry": [
"src/main.vibe",
"src/project.ts",
"src/doc.ts"
],
"project": [
"src/**/*.{ts,tsx,vibe,vibex,css}",
"test/**/*.{ts,tsx,vibe,vibex}",
"scripts/*.mjs"
],
"ignoreDependencies": [
"tailwindcss"
]
},
"apps/*": app,
"apps/app": {
...app,
entry: [...app.entry, "src/slack-browser.tsx", "src/slack-return.tsx", "test/eliza/qa.run.tsx", "scripts/release.ts", "test/capture/run.ts", "test/capture/flows/index.ts"],
project: [...app.project, "scripts/release.ts", "scripts/pixel-archive.ts"],
ignoreBinaries: [...app.ignoreBinaries, "findmnt", "ffmpeg"],
ignoreDependencies: [...app.ignoreDependencies, "@capacitor/android", "@tesseract.js-data/eng", "tesseract.js", "tesseract.js-core"]
}
}
}