needware-cli 1.7.13 → 1.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,8 @@ export function getSystemPrompt(workingDir, supabase, mode) {
8
8
  // 如果是 plan 模式,附加 plan-mode skill 内容
9
9
  if (mode === 'plan') {
10
10
  try {
11
- // 获取 skills/plan-mode/SKILL.md 的路径
12
- const skillPath = path.join(process.cwd(), 'skills', 'plan-mode', 'SKILL.md');
11
+ // 从当前运行目录的 .claude/skills/plan-mode/SKILL.md 路径查找
12
+ const skillPath = path.join(workingDir, '.claude', 'skills', 'plan-mode', 'SKILL.md');
13
13
  if (fs.existsSync(skillPath)) {
14
14
  const planModeSkill = fs.readFileSync(skillPath, 'utf-8');
15
15
  basePrompt += `\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n`;
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/commands/system-prompt.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAS7B,MAAM,UAAU,eAAe,CAC7B,UAAkB,EAClB,QAAyB,EACzB,IAAa;IAEb,IAAI,UAAU,GAAG,kBAAkB,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IAE1D,oCAAoC;IACpC,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;QACpB,IAAI,CAAC;YACH,mCAAmC;YACnC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;YAE9E,IAAI,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;gBAC7B,MAAM,aAAa,GAAG,EAAE,CAAC,YAAY,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAuYvE,CAAC,IAAI,EAAE,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "needware-cli",
3
- "version": "1.7.13",
3
+ "version": "1.7.16",
4
4
  "description": "一个功能强大的 Node.js 命令行工具",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,73 +1,74 @@
1
1
  ---
2
2
  name: plan
3
- description: plan mode 使用此指导 - plan mode 尽量多提供产品输出,只有在问具体技术时提供技术方案,技术方案由实施时决定。只有plan mode 使用此skill
3
+ description: Currently in plan mode, plan mode uses this guidance - plan mode provides as much product output as possible, only provides technical solutions when asking about specific technology, technical solutions are decided during implementation. Only plan mode uses this skill
4
4
  ---
5
5
 
6
- # Plan 模式 - 智能任务规划与执行
6
+ # Plan Mode - Intelligent Task Planning and Execution
7
7
 
8
- ## 概述
8
+ ## Overview
9
9
 
10
- Plan 模式是一个以**产品输出为导向**的智能任务规划系统,将复杂任务分解为清晰的产品功能步骤。
10
+ Plan Mode is a **product-output-oriented** intelligent task planning system that breaks down complex tasks into clear product feature steps.
11
11
 
12
- **核心原则:**
13
- - 📦 **产品输出优先**: 规划重点描述产品功能、用户价值和业务目标
14
- - 🎯 **按需技术方案**: 只有在用户明确询问具体技术实现时,才提供技术方案细节
15
- - 🔧 **实施决定方案**: 技术选型和实现方案在实际执行阶段根据项目环境决定
16
- - 📊 **价值可见交付**: 每一步都以可见的产品功能产出为导向
12
+ **Core Principles:**
13
+ - 📦 **Product Output First**: Planning focuses on describing product features, user value, and business goals
14
+ - 🎯 **On-Demand Technical Solutions**: Only provide technical solution details when users explicitly ask about specific technical implementations
15
+ - 🔧 **Implementation Decides Solutions**: Technology selection and implementation solutions are decided during the actual execution phase based on project environment
16
+ - 📊 **Value-Visible Delivery**: Every step is oriented towards visible product feature output
17
17
 
18
- **工作方式:**
19
- - 🎯 **智能分解**: 将产品需求分解为用户可理解的功能模块
20
- - 📋 **产品计划**: 执行前展示产品功能计划(做什么、为什么、价值是什么)
21
- - 🚀 **进度可见**: 实时显示每个功能的完成状态
22
- - 🔧 **灵活实现**: 实施时根据实际情况选择最佳技术方案
23
- - 📊 **产品报告**: 执行后生成产品交付报告(而非技术实现报告)
18
+ **Working Method:**
19
+ - 🎯 **Intelligent Decomposition**: Break down product requirements into user-understandable functional modules
20
+ - 📋 **Product Planning**: Display product feature plan before execution (what to do, why, what's the value)
21
+ - 🚀 **Visible Progress**: Display real-time completion status of each feature
22
+ - 🔧 **Flexible Implementation**: Choose the best technical solution based on actual situation during implementation
23
+ - 📊 **Product Report**: Generate product delivery report after execution (not technical implementation report)
24
24
 
25
- **重要区分:**
26
- - ✅ **默认输出**: 产品功能描述("实现用户登录功能""添加商品列表展示"
27
- - ❌ **避免默认**: 技术实现细节("使用 Supabase Auth""创建 ProductList 组件"
28
- - ✅ **特殊情况**: 当用户明确问"怎么实现""用什么技术"时,才详细说明技术方案
25
+ **Important Distinctions:**
26
+ - ✅ **Default Output**: Product feature descriptions ("Implement user login functionality", "Add product list display")
27
+ - ❌ **Avoid by Default**: Technical implementation details ("Use Supabase Auth", "Create ProductList component")
28
+ - ✅ **Special Cases**: Only explain technical solutions in detail when users explicitly ask "how to implement" or "what technology to use"
29
+ - ❌ **Avoid Output**: File structures and directory trees, unless user explicitly requests to view project structure
29
30
 
30
- **在开始时宣布:** "我将使用 Plan 模式来规划这个任务,重点关注产品功能和价值交付。"
31
+ **Announce at Start:** "I will use Plan Mode to plan this task, focusing on product features and value delivery."
31
32
 
32
- ## 使用条件
33
+ ## Usage Conditions
33
34
 
34
- **触发条件:仅在 Plan 模式下使用**
35
+ **Trigger Condition: Only Use in Plan Mode**
35
36
 
36
37
  ```
37
- 当运行在 Plan 模式下时
38
- 必须使用此 Skill 作为执行指导
38
+ When running in Plan Mode
39
+ Must use this Skill as execution guidance
39
40
 
40
- 其他情况
41
- 无需使用此 Skill
41
+ Other cases
42
+ No need to use this Skill
42
43
  ```
43
44
 
44
- ## 项目初始化结构说明
45
+ ## Project Initialization Structure Description
45
46
 
46
- **项目为 React + Vite + TypeScript + shadcn/ui 标准结构,components/ui 下组件无需识别,直接使用。**
47
+ **Project is a standard React + Vite + TypeScript + shadcn/ui structure, components under components/ui do not need to be inspected, use directly.**
47
48
 
48
- ### 项目结构
49
+ ### Project Structure
49
50
 
50
51
  ```
51
52
  app/
52
- ├── components.json # shadcn/ui 配置
53
- ├── eslint.config.js # ESLint 配置
54
- ├── index.html # HTML 入口
55
- ├── package.json # 依赖管理
56
- ├── pnpm-lock.yaml # pnpm 锁文件 (使用 pnpm)
57
- ├── postcss.config.js # PostCSS 配置
58
- ├── tailwind.config.ts # Tailwind CSS 配置
59
- ├── tsconfig.app.json # TypeScript 应用配置
60
- ├── tsconfig.json # TypeScript 基础配置
61
- ├── tsconfig.node.json # TypeScript Node 配置
62
- ├── vite.config.ts # Vite 配置
53
+ ├── components.json # shadcn/ui configuration
54
+ ├── eslint.config.js # ESLint configuration
55
+ ├── index.html # HTML entry
56
+ ├── package.json # Dependency management
57
+ ├── pnpm-lock.yaml # pnpm lock file (use pnpm)
58
+ ├── postcss.config.js # PostCSS configuration
59
+ ├── tailwind.config.ts # Tailwind CSS configuration
60
+ ├── tsconfig.app.json # TypeScript app configuration
61
+ ├── tsconfig.json # TypeScript base configuration
62
+ ├── tsconfig.node.json # TypeScript Node configuration
63
+ ├── vite.config.ts # Vite configuration
63
64
  └── src/
64
- ├── App.css # 应用样式
65
- ├── App.tsx # 根组件
66
- ├── index.css # 全局样式
67
- ├── main.tsx # React 入口
68
- ├── vite-env.d.ts # Vite 类型定义
65
+ ├── App.css # App styles
66
+ ├── App.tsx # Root component
67
+ ├── index.css # Global styles
68
+ ├── main.tsx # React entry
69
+ ├── vite-env.d.ts # Vite type definitions
69
70
  ├── components/
70
- │ └── ui/ # shadcn/ui 组件库 ✨ (50+ 组件)
71
+ │ └── ui/ # shadcn/ui component library ✨ (50+ components)
71
72
  │ ├── accordion.tsx
72
73
  │ ├── alert-dialog.tsx
73
74
  │ ├── alert.tsx
@@ -106,7 +107,7 @@ app/
106
107
  │ ├── sidebar.tsx
107
108
  │ ├── skeleton.tsx
108
109
  │ ├── slider.tsx
109
- │ ├── sonner.tsx # Toast 通知
110
+ │ ├── sonner.tsx # Toast notifications
110
111
  │ ├── switch.tsx
111
112
  │ ├── table.tsx
112
113
  │ ├── tabs.tsx
@@ -117,89 +118,89 @@ app/
117
118
  │ ├── toggle.tsx
118
119
  │ ├── tooltip.tsx
119
120
  │ └── use-toast.ts
120
- ├── hooks/ # 自定义 Hooks
121
+ ├── hooks/ # Custom Hooks
121
122
  │ ├── use-mobile.tsx
122
123
  │ └── use-toast.ts
123
- ├── lib/ # 工具库
124
- │ └── utils.ts # 工具函数 (包含 cn() 函数)
125
- └── pages/ # 页面目录
126
- ├── Index.tsx # 首页
127
- └── NotFound.tsx # 404 页面
124
+ ├── lib/ # Utility library
125
+ │ └── utils.ts # Utility functions (includes cn() function)
126
+ └── pages/ # Pages directory
127
+ ├── Index.tsx # Home page
128
+ └── NotFound.tsx # 404 page
128
129
  ```
129
130
 
130
- **项目配置说明:**
131
- - ✅ React 18 + TypeScript + Vite 已完整配置
132
- - ✅ Tailwind CSS 样式框架可直接使用
133
- - ✅ shadcn/ui 组件库已完整安装(50+ 组件)
134
- - ✅ pnpm 为包管理器(必须使用 `pnpm add`)
135
- - ✅ 基础页面结构在 `src/pages/` 目录
136
- - ⚠️ 后端服务未集成(如需数据库、AI、邮件功能,使用对应的 skill)
131
+ **Project Configuration Notes:**
132
+ - ✅ React 18 + TypeScript + Vite fully configured
133
+ - ✅ Tailwind CSS style framework ready to use
134
+ - ✅ shadcn/ui component library fully installed (50+ components)
135
+ - ✅ pnpm is the package manager (must use `pnpm add`)
136
+ - ✅ Basic page structure in `src/pages/` directory
137
+ - ⚠️ Backend services not integrated (if database, AI, or email features needed, use corresponding skills)
137
138
 
138
- **⚠️ 重要:`components/ui/` 下的 shadcn/ui 组件无需读取源码,直接导入使用即可!**
139
+ **⚠️ Important: shadcn/ui components under `components/ui/` do not need source code reading, import and use directly!**
139
140
 
140
141
  ```typescript
141
- // 直接使用,无需读取源码
142
+ // Use directly, no need to read source code
142
143
  import { Button } from '@/components/ui/button';
143
144
  import { Card } from '@/components/ui/card';
144
145
  import { Dialog } from '@/components/ui/dialog';
145
- // ... 其他 50+ 组件
146
+ // ... Other 50+ components
146
147
  ```
147
148
 
148
149
 
149
- ### 后端集成检查
150
+ ### Backend Integration Check
150
151
 
151
- #### Supabase 集成
152
+ #### Supabase Integration
152
153
 
153
- **如需集成 Supabase,使用 `supabase-integration` skill:**
154
+ **If Supabase integration is needed, use the `supabase-integration` skill:**
154
155
 
155
156
  ```
156
- 如果项目需要数据库、认证或存储功能:
157
- 1. 使用 supabase-integration skill 进行集成
158
- 2. Skill 会自动创建必要的配置和文件
159
- 3. 集成完成后会包含以下内容:
160
- - src/lib/supabase.ts 客户端配置
161
- - .env 环境变量配置
162
- - supabase/ 目录(migrationsfunctions
157
+ If the project needs database, authentication, or storage features:
158
+ 1. Use supabase-integration skill for integration
159
+ 2. Skill will automatically create necessary configurations and files
160
+ 3. After integration completion, it will include:
161
+ - src/lib/supabase.ts client configuration
162
+ - .env environment variable configuration
163
+ - supabase/ directory (migrations, functions)
163
164
  ```
164
165
 
165
- #### AI 功能集成
166
+ #### AI Feature Integration
166
167
 
167
- **如需 AI 功能(图像识别、智能分析等),使用 `ai-integration` skill:**
168
+ **If AI features are needed (image recognition, intelligent analysis, etc.), use the `ai-integration` skill:**
168
169
 
169
170
  ```
170
- 如果项目需要 AI 能力:
171
- 1. 使用 ai-integration skill 进行集成
172
- 2. Skill 会创建 AI 服务函数和前端调用代码
171
+ If the project needs AI capabilities:
172
+ 1. Use ai-integration skill for integration
173
+ 2. Skill will create AI service functions and frontend calling code
173
174
  ```
174
175
 
175
- #### 邮件发送功能
176
+ #### Email Sending Feature
176
177
 
177
- **如需发送邮件功能,使用 `resend-integration` skill:**
178
+ **If email sending feature is needed, use the `resend-integration` skill:**
178
179
 
179
180
  ```
180
- 如果项目需要发送邮件(欢迎邮件、通知邮件等):
181
- 1. 使用 resend-integration skill 进行集成
182
- 2. Skill 会创建邮件发送 Edge Function
183
- 3. 配置 Resend API Key 环境变量
181
+ If the project needs to send emails (welcome emails, notification emails, etc.):
182
+ 1. Use resend-integration skill for integration
183
+ 2. Skill will create email sending Edge Function
184
+ 3. Configure Resend API Key environment variable
184
185
  ```
185
186
 
186
- ### 包管理器
187
+ ### Package Manager
187
188
 
188
- **项目使用 pnpm:**
189
- - ✅ 安装依赖: `pnpm add [package]`
190
- - ✅ 安装开发依赖: `pnpm add -D [package]`
191
- - ❌ 不要使用 npm yarn
189
+ **Project uses pnpm:**
190
+ - ✅ Install dependencies: `pnpm add [package]`
191
+ - ✅ Install dev dependencies: `pnpm add -D [package]`
192
+ - ❌ Do not use npm or yarn
192
193
 
193
- ### 路由方案
194
+ ### Routing Solution
194
195
 
195
- **如需路由功能,可安装 React Router:**
196
+ **If routing feature is needed, install React Router:**
196
197
  ```bash
197
198
  pnpm add react-router-dom
198
199
  ```
199
200
 
200
201
 
201
- **重要提醒:**
202
- ⚠️ 此项目使用 pnpm,所有依赖安装必须使用 `pnpm add`,不要使用 npm yarn
203
- ⚠️ 无需读取 `components/ui/` 目录下的组件源码,shadcn/ui 组件可直接导入使用!
202
+ **Important Reminders:**
203
+ ⚠️ This project uses pnpm, all dependency installations must use `pnpm add`, do not use npm or yarn!
204
+ ⚠️ No need to read source code of components under `components/ui/` directory, shadcn/ui components can be imported and used directly!
204
205
  ```
205
206