Files
NetMesh/.gitignore
zhaolei 3c72efcb7f
Some checks failed
build-packages / resolve bundled mosh-client (push) Has been cancelled
build-packages / resolve bundled et-client (push) Has been cancelled
build-packages / build-macos (push) Has been cancelled
build-packages / build-windows (push) Has been cancelled
build-packages / build-linux-x64 (push) Has been cancelled
build-packages / build-linux-arm64 (push) Has been cancelled
build-packages / release (push) Has been cancelled
build-packages / update Nix release metadata (push) Has been cancelled
build-packages / bump homebrew tap (push) Has been cancelled
test / lint-and-test (push) Has been cancelled
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
build-et-binaries / build-linux-x64 (push) Has been cancelled
build-et-binaries / build-linux-arm64 (push) Has been cancelled
build-et-binaries / build-macos-universal (push) Has been cancelled
build-et-binaries / build-windows-x64 (push) Has been cancelled
build-et-binaries / release (push) Has been cancelled
[Init] Initial commit - NetMesh terminal manager
2026-09-13 18:24:01 +08:00

176 lines
3.5 KiB
Plaintext

# =============================================================================
# Allowlist .gitignore (https://github.com/binaricat/Netcatty/issues/2534)
#
# Layer 1 - default-deny at the repository root
# Layer 2 - re-include only paths that belong in git
# Layer 3 - classical denylist for generated / local / secret artifacts
#
# Goal: a mistaken `git add .` (or an agent doing the same) cannot pick up
# random root files, agent state dirs, env files, or build outputs.
# =============================================================================
# --- Layer 1: ignore everything at the repository root by default ---
/*
# --- Layer 2: allowlist root files ---
!.gitattributes
!.gitignore
!.npmrc
!AGENTS.md
!App.tsx
!CHANGELOG.md
!CLAUDE.md
!CODE_OF_CONDUCT.md
!CODE_SIGNING_POLICY.md
!CONTRIBUTING.md
!ET_INTEGRATION_CHECKLIST.md
!LICENSE
!PRIVACY.md
!README.ja-JP.md
!README.md
!README.zh-CN.md
!README.zh-TW.md
!electron-builder.config.cjs
!eslint.config.js
!flake.lock
!flake.nix
!global.d.ts
!index.css
!index.html
!index.tsx
!metadata.json
!package-lock.json
!package.json
!tsconfig.json
!types.ts
!vite.config.ts
# --- Layer 2: allowlist root directories ---
# Un-ignore the directory entry, then everything under it. Git does not
# traverse ignored directories, so both steps are required.
!.github/
!.github/**
!.vscode/
!.vscode/**
!application/
!application/**
!build/
!build/**
!components/
!components/**
!docs/
!docs/**
!domain/
!domain/**
!electron/
!electron/**
!examples/
!examples/**
!infrastructure/
!infrastructure/**
!lib/
!lib/**
!nix/
!nix/**
!packages/
!packages/**
!patches/
!patches/**
!public/
!public/**
!resources/
!resources/**
!scripts/
!scripts/**
!skills/
!skills/**
!types/
!types/**
# --- Layer 3: classical denylist (applies inside allowlisted trees) ---
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# Dependencies and build outputs
node_modules
dist
dist-ssr
*.local
.env*
.DS_Store
.eslintcache
*.tsbuildinfo
coverage
.vite
*.asar
# Root / packaging outputs (also blocked by Layer 1; kept for nested paths)
/build/*
!/build/icons
!/build/installer.nsh
/electron/native/**/build
/electron/bridges/windowsHelloHelper/build/
/release
/out
/public/monaco
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
# Claude Code / Codex / other local agent state
# (Root agent dirs are also blocked by Layer 1; nested copies stay denied.)
.claude/
.codex/
.omo/
.qoder
.workbuddy
.codebuddy
.serena/
.superpowers/
.worktrees/
# AI / Superpowers generated docs (local only)
/docs/superpowers/
# Dev-only electron-updater test config (not for production)
/dev-app-update.yml
# Test suite (local only, not committed)
/tests/
/vitest.config.ts
# Windows VS Build environment scripts (local dev only)
Directory.Build.props
Directory.Build.targets
build_with_vs.bat
build_with_vs2022.bat
# Bundled MoshCatty mosh-client binaries fetched at pack time by
# scripts/fetch-mosh-binaries.cjs. resources/mosh/README.md is committed;
# pure single-binary artifacts from binaricat/MoshCatty are never committed.
/resources/mosh/*/mosh-client
/resources/mosh/*/mosh-client.exe
# Bundled EternalTerminal `et` client binaries fetched at pack time by
# scripts/fetch-et-binaries.cjs. resources/et/README.md is committed; the
# actual binaries (and any DLL bundle for dynamically-linked Windows builds)
# are pulled from the dedicated et binary repository, never committed.
/resources/et/*/et
/resources/et/*/et.exe
/resources/et/*/et-*-dlls/
/resources/et/*/*.dll