Files
dev/knip.jsonc
zeekayandHanzo Dev 84a6666629 fix(web): Enso rows show the chosen effort; knip and typecheck follow main
The selected Enso row draws its ring at the active effort and the rail
ring sits clear of the selection bar. The dev wasm plugin allows Node
builtins like its sibling scripts, knip learns the embed entries, and
dead files and an unused dependency go.


Co-authored-by: Hanzo Dev <[email protected]>
2026-11-21 02:50:40 -08:00

170 lines
6.8 KiB
JSON

{
"$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" },
// 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",
".github/scripts/thread-transfer-report.cjs",
".github/scripts/pr-limits.cjs",
],
"vite": { "entry": [".github/**/*.test.cjs"] },
"vitest": { "entry": [".github/**/*.test.cjs"] },
},
"scripts": {
// Knip loads its preprocessor through a CLI option; worktree setup (from hanzo.json),
// mobile-e2e.ts, and mobile-behavior.ts spawn runners by path.
"entry": [
// These fixture scripts are injected into a browser page by path.
"fixtures/*/*.js",
"knip-schemas.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",
],
"ignoreDependencies": ["esbuild"],
// The `hanzo` 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",
"@hanzodev/web",
"@napi-rs/keyring",
"ffi-rs",
"transcribe-cpp",
],
},
"apps/desktop": {
// Tauri launcher and resource staging scripts run via package.json and tauri.conf.json.
"entry": [
"scripts/start-tauri.mjs",
"scripts/dev-tauri.mjs",
"scripts/stage-tauri-resources.mjs",
"scripts/wait-for-resources.mjs",
],
"ignoreDependencies": ["@tauri-apps/cli"],
},
"apps/web": {
// Worktree setup (scripts/setup-worktree.ts) runs this directly, and evidence
// fixtures run under node.
// `@hanzo/dev-core` is built from the embed config (build:embed, publish-dev-core).
"entry": [
"scripts/warm-dep-cache.ts",
"test/fixtures/**/*.mjs",
"vite.embed.config.ts",
"src/embed/index.ts",
"src/embed/keymap.ts",
],
// 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/marketing": {
// `astro check` runs from the typecheck task in vite.config.ts, which knip does not read.
"ignoreDependencies": ["@astrojs/check"],
},
"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",
"src/features/devices/device-stream.browser.ts!",
"src/features/browser/preview-stream.browser.ts!",
],
// Fonts are configured as asset paths; Expo autolinks the native packages.
"ignoreDependencies": [
"@expo-google-fonts/dm-sans",
// app.config.ts names its font files by path.
"@hanzo/font",
"@hanzodev/mobile-review-diff-native",
"@hanzodev/mobile-terminal-native",
],
},
"apps/mobile/modules/hanzo-highlights": {
// Nitrogen discovers HybridObject specifications by filename.
"entry": ["src/*.nitro.ts!"],
},
"apps/mobile/modules/hanzo-source-text": {
// React Native codegen discovers component specifications by filename.
"entry": ["src/*NativeComponent.ts!"],
},
"infra/task-cache": {
"ignore": ["vendor/**"],
// The bootstrap and Vite+ hook are loaded by shell/package configuration.
"entry": [
"alchemy.run.ts!",
"scripts/install.ts",
"scripts/install-ci.ts",
"src/runHook.ts",
"src/flush.ts",
"src/nativeRunHook.js",
"src/preload.mjs",
],
},
"infra/relay": {
// Alchemy loads src/worker.ts as the Worker entry and reads its default export.
"entry": ["alchemy.run.ts!", "src/persistence/schema.ts!", "src/worker.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"] },
},
},
}