
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@nsea/pilot
Advanced tools
🚀 可扩展的前端项目开发体验增强平台
Pilot 是一个参考 Astro astro add 设计理念的命令行工具,为前端项目提供模块化的开发体验增强。通过智能检测项目技术栈和架构,自动安装相应依赖,生成最佳实践配置,让开发者快速获得高质量的开发环境。
npm install -g pilot
# 或
npx pilot@latest
# 完整测试配置(推荐,自动检测项目类型)
pilot add testing
# 分步配置
pilot add testing --rules # 仅添加 AI 测试规则
pilot add testing --config # 仅添加 Vitest 配置
pilot add testing --deps # 仅安装测试依赖
# 预览模式(查看将要生成的配置)
pilot add testing --dry-run
# 跳过依赖安装(仅生成配置文件)
pilot add testing --no-install
# 覆盖自动检测(仅在检测失败时使用)
pilot add testing --stack vue3 --arch pnpm
pnpm-workspace.yaml 检测和配置package.json 的 workspaces 字段检测和配置src/
├── cli/ # CLI 入口和命令解析
├── core/ # 核心功能模块
│ ├── detection/ # 项目检测逻辑
│ └── module-manager.ts # 模块管理器
├── modules/ # 功能模块
│ └── testing/ # 测试模块
│ ├── installer.ts # 模块安装器
│ ├── config-generator.ts # 配置生成器
│ └── templates/ # 配置模板
├── types/ # TypeScript 类型定义
└── utils.ts # 工具函数
# 克隆项目
git clone https://github.com/your-org/pilot
cd pilot
# 安装依赖
pnpm install
# 开发模式
pnpm dev
# 构建
pnpm build
# 测试
pnpm test
添加测试配置到 React 项目:
cd my-react-app
pilot add testing
输出示例:
🚀 Pilot
前端项目开发体验增强平台
版本: 0.1.0
✅ 检测完成: react + single
📦 开始配置测试环境...
✅ 生成 AI 测试规则文件
✅ 生成 Vitest 配置文件
✅ 安装测试依赖
🎉 测试环境配置完成!
📝 后续步骤:
1. 运行 npm test 执行测试
2. 查看 .cursorrules 了解 AI 测试规则
3. 在 src 目录创建 *.test.ts 文件开始编写测试
我们欢迎所有形式的贡献!请查看 贡献指南 了解详细信息。
MIT License - 详见 LICENSE 文件
⭐ 如果这个项目对你有帮助,请给我们一个 Star!
FAQs
🚀 可扩展的前端项目开发体验增强平台 - 智能检测项目技术栈,自动配置开发环境
The npm package @nsea/pilot receives a total of 1 weekly downloads. As such, @nsea/pilot popularity was classified as not popular.
We found that @nsea/pilot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.