Files
zeekayandHanzo Dev c24e700a18 feat(desktop): complete 100% Tauri v2 migration, native SnapShot/SSH/updater/CLI/preview, standalone bundles & CI
Finishes migrating Hanzo Dev off Electron to native Rust Tauri v2:
- Native Rust SnapShot capture (snapshot.rs), direct SSH port-forward supervisor (ssh.rs), GitHub release updater, ~/.local/bin/hanzo-dev-app CLI installer, global shortcuts (CmdOrCtrl+Shift+I/J/2), macOS Dock Reopen restore, and Tauri preview iframe host.
- Self-contained .app/.dmg/.AppImage/.exe/.msi resource staging via apps/desktop/scripts/stage-tauri-resources.mjs + tauri.conf.json.
- Migrates all GitHub Actions CI & release workflows (.github/workflows/*) to Rust + Tauri v2 and purges all @electron/* dependencies and legacy Electron packaging scripts.
- Cleans unused web/mobile deps so knip passes with zero issues across all 43 workspaces.

Co-authored-by: Hanzo Dev <[email protected]>
2026-11-19 11:37:00 -08:00

161 lines
6.6 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.
"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/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",
"@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"] },
},
},
}