@superspec/cli 1.1.0 → 1.1.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superspec/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Spec-driven development for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {
@@ -5,11 +5,21 @@ category: SuperSpec
5
5
  description: Archive completed change
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **Input Parsing Rules**
9
+
10
+ From user input, extract: **change name** or **all flag**.
11
+
12
+ | Extract | Rule | Example |
13
+ |---------|------|---------|
14
+ | Change name | Remaining text after removing flags; if empty, use current active change | `/ss-archive addUserAuth` → name=`addUserAuth` |
15
+ | Archive all | `--all`/`all` → add `--all` | `/ss-archive --all`; `/ss-archive all` |
16
+
8
17
  **Guardrails**
9
18
  - Only archive when all tasks are COMPLETE
10
19
  - Ensure tests pass before archiving
11
20
 
12
21
  **Steps**
13
- 1. Verify all tasks in tasks.md are marked COMPLETE
14
- 2. Run `superspec archive <name>` or `superspec archive --all`
22
+ 1. Parse user input extract change name or `--all` flag
23
+ 2. Verify all tasks in tasks.md are marked COMPLETE
24
+ 3. Run `superspec archive <name>` or `superspec archive --all`
15
25
  <!-- SUPERSPEC:END -->
@@ -27,11 +27,12 @@ The text the user typed after `/ss-create` **is** the feature description. Do no
27
27
 
28
28
  **Input Parsing Rules**
29
29
 
30
- From user input, extract three things: **feature name**, **intent type**, **developer**, **lang**.
30
+ From user input, extract: **mode flags**, **feature name**, **intent type**, **developer**, **lang**.
31
31
 
32
32
  | Extract | Rule | Example |
33
33
  |---------|------|---------|
34
- | Feature name | Convert to camelCase. Chinesetranslate to English first | "add user auth"`addUserAuth`; "添加用户认证" `addUserAuth` |
34
+ | Mode flags | Detect `-b`/`--boost`/`boost` boost mode; `-c`/`--creative`/`creative` creative mode; `--no-branch` skip branch; flags can be combined | `/ss-create -b add auth`boost; `/ss-create -b -c refactor login` → boost+creative |
35
+ | Feature name | Remove flags from input, convert remainder to camelCase. Chinese → translate to English first | "add user auth" → `addUserAuth`; "添加用户认证" → `addUserAuth` |
35
36
  | Intent type | Semantic inference from input | add/new/implement → `feature`; fix/bug/hotfix → `hotfix`; refactor/optimize → `refactor`; docs → `docs`; test → `test`; build/deps → `chore`; default → `feature` |
36
37
  | Developer | "@username" or "Developer: xxx" → extract (remove "@"). Fallback: git user name | "添加todolist @jay" → user=`jay` |
37
38
  | Lang | CJK chars → `zh`; explicit "zh"/"中文" → `zh`; "en"/"English" → `en`; fallback: config `lang` | "添加todolist" → `zh` |
@@ -5,8 +5,17 @@ category: SuperSpec
5
5
  description: Add spec dependency
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **Input Parsing Rules**
9
+
10
+ From user input, extract: **change name**, **dependency target**.
11
+
12
+ | Extract | Rule | Example |
13
+ |---------|------|---------|
14
+ | Change name | First argument or text before `--on` | `/ss-link addAuth --on addDB` → name=`addAuth` |
15
+ | Dependency target | `--on <other>`/`depends on <other>`/`→ <other>` → extract target name | `/ss-link addAuth --on addDB`; `/ss-link addAuth depends on addDB` |
16
+
8
17
  **Steps**
9
- 1. Run `superspec deps add <name> --on <other>`
10
- 2. This updates the frontmatter: `depends_on: [other]`
18
+ 1. Parse user input extract change name and dependency target
19
+ 2. Run `superspec deps add <name> --on <other>`
11
20
  3. Verify: `superspec deps list <name>`
12
21
  <!-- SUPERSPEC:END -->
@@ -5,8 +5,17 @@ category: SuperSpec
5
5
  description: Full-text search across changes
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **Input Parsing Rules**
9
+
10
+ From user input, extract: **search query**, **optional flags**.
11
+
12
+ | Extract | Rule | Example |
13
+ |---------|------|---------|
14
+ | Search query | Remaining text after removing flags | `/ss-search user auth` → query=`user auth` |
15
+ | Include archived | `--archived`/`archived`/`include archived`/`all` → add `--archived` | `/ss-search auth --archived`; `/ss-search auth archived` |
16
+ | Filter type | `--artifact <type>`/`type:<type>` → add `--artifact <type>`; type: `proposal`/`spec`/`tasks`/`clarify`/`checklist` | `/ss-search auth --artifact spec`; `/ss-search auth type:proposal` |
17
+
8
18
  **Steps**
9
- 1. Run `superspec search <query>`
10
- 2. Use `--archived` to include archived changes
11
- 3. Use `--artifact <type>` to filter by artifact type
19
+ 1. Parse user input → extract search query and flags
20
+ 2. Run `superspec search "<query>" [--archived] [--artifact <type>]`
12
21
  <!-- SUPERSPEC:END -->
@@ -5,11 +5,21 @@ category: SuperSpec
5
5
  description: Cross-reference consistency check (boost mode)
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **Input Parsing Rules**
9
+
10
+ From user input, extract: **change name**, **optional flags**.
11
+
12
+ | Extract | Rule | Example |
13
+ |---------|------|---------|
14
+ | Change name | Remaining text after removing flags; if empty, use current active change | `/ss-validate addUserAuth` → name=`addUserAuth` |
15
+ | Check deps | `--check-deps`/`check deps`/`dependencies` → add `--check-deps` | `/ss-validate --check-deps`; `/ss-validate check deps` |
16
+
8
17
  **Guardrails**
9
18
  - Validate US↔FR↔AC↔tasks consistency
10
19
  - Only applicable in boost mode
11
20
 
12
21
  **Steps**
13
- 1. Run `superspec validate [name]`
14
- 2. Fix any consistency errors reported
22
+ 1. Parse user input → extract change name and flags
23
+ 2. Run `superspec validate [name] [--check-deps]`
24
+ 3. Fix any consistency errors reported
15
25
  <!-- SUPERSPEC:END -->
@@ -5,11 +5,21 @@ category: SuperSpec
5
5
  description: 归档已完成的变更
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **输入解析规则**
9
+
10
+ 从用户输入中提取:**变更名称**或**全部标志**。
11
+
12
+ | 提取项 | 规则 | 示例 |
13
+ |--------|------|------|
14
+ | 变更名称 | 移除标志后的剩余文本;为空时使用当前活跃变更 | `/ss-archive addUserAuth` → name=`addUserAuth` |
15
+ | 归档全部 | `--all`/`全部`/`所有` → 添加 `--all` | `/ss-archive --all`; `/ss-archive 全部` |
16
+
8
17
  **Guardrails**
9
18
  - 只有所有任务都 COMPLETE 后才能归档
10
19
  - 归档前确保测试通过
11
20
 
12
21
  **Steps**
13
- 1. 确认 tasks.md 中所有任务都标记为 COMPLETE
14
- 2. 运行 `superspec archive <name>` 或 `superspec archive --all`
22
+ 1. 解析用户输入 提取变更名称或 `--all` 标志
23
+ 2. 确认 tasks.md 中所有任务都标记为 COMPLETE
24
+ 3. 运行 `superspec archive <name>` 或 `superspec archive --all`
15
25
  <!-- SUPERSPEC:END -->
@@ -27,11 +27,12 @@ $ARGUMENTS
27
27
 
28
28
  **输入解析规则**
29
29
 
30
- 从用户输入中提取四项:**功能名称**、**意图类型**、**开发者**、**语言**。
30
+ 从用户输入中提取:**模式标志**、**功能名称**、**意图类型**、**开发者**、**语言**。
31
31
 
32
32
  | 提取项 | 规则 | 示例 |
33
33
  |--------|------|------|
34
- | 功能名称 | 转为 camelCase。中文先翻译为英文 | "add user auth"`addUserAuth`; "添加用户认证"`addUserAuth` |
34
+ | 模式标志 | 识别 `-b`/`--boost`/`boost`/`增强`增强模式; `-c`/`--creative`/`creative`/`创造` → 创造模式; `--no-branch`/`不建分支` → 跳过分支; 可组合使用 | `/ss-create -b 添加认证`boost; `/ss-create -b -c 重构登录` boost+creative |
35
+ | 功能名称 | 移除标志后剩余文本,转为 camelCase。中文 → 先翻译为英文 | "add user auth" → `addUserAuth`; "添加用户认证" → `addUserAuth` |
35
36
  | 意图类型 | 语义推断 | add/new/implement/新增/添加 → `feature`; fix/bug/hotfix/修复 → `hotfix`; refactor/optimize/重构 → `refactor`; docs → `docs`; test → `test`; build/deps → `chore`; 默认 → `feature` |
36
37
  | 开发者 | "@username" 或 "Developer: xxx" → 提取(移除"@")。回退: git 用户名 | "添加todolist @jay" → user=`jay` |
37
38
  | 语言 | CJK 字符 → `zh`; 显式 "zh"/"中文" → `zh`; "en"/"English" → `en`; 回退: 配置 `lang` | "添加todolist" → `zh` |
@@ -5,8 +5,17 @@ category: SuperSpec
5
5
  description: 添加 spec 依赖
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **输入解析规则**
9
+
10
+ 从用户输入中提取:**变更名称**、**依赖目标**。
11
+
12
+ | 提取项 | 规则 | 示例 |
13
+ |--------|------|------|
14
+ | 变更名称 | 第一个参数或 `--on` 之前的文本 | `/ss-link addAuth --on addDB` → name=`addAuth` |
15
+ | 依赖目标 | `--on <other>`/`依赖 <other>`/`→ <other>` → 提取目标名 | `/ss-link addAuth --on addDB`; `/ss-link addAuth 依赖 addDB` |
16
+
8
17
  **Steps**
9
- 1. 运行 `superspec deps add <name> --on <other>`
10
- 2. 这会更新 frontmatter: `depends_on: [other]`
18
+ 1. 解析用户输入 提取变更名称和依赖目标
19
+ 2. 运行 `superspec deps add <name> --on <other>`
11
20
  3. 验证: `superspec deps list <name>`
12
21
  <!-- SUPERSPEC:END -->
@@ -5,8 +5,17 @@ category: SuperSpec
5
5
  description: 全文搜索变更
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **输入解析规则**
9
+
10
+ 从用户输入中提取:**搜索关键词**、**可选标志**。
11
+
12
+ | 提取项 | 规则 | 示例 |
13
+ |--------|------|------|
14
+ | 搜索关键词 | 移除标志后的剩余文本 | `/ss-search 用户认证` → query=`用户认证` |
15
+ | 包含归档 | `--archived`/`归档`/`包含归档`/`all` → 添加 `--archived` | `/ss-search 认证 --archived`; `/ss-search 认证 归档` |
16
+ | 过滤类型 | `--artifact <type>`/`类型:<type>` → 添加 `--artifact <type>`; type: `proposal`/`spec`/`tasks`/`clarify`/`checklist` | `/ss-search 认证 --artifact spec`; `/ss-search 认证 类型:proposal` |
17
+
8
18
  **Steps**
9
- 1. 运行 `superspec search <query>`
10
- 2. 使用 `--archived` 包含已归档的变更
11
- 3. 使用 `--artifact <type>` 按 artifact 类型过滤
19
+ 1. 解析用户输入 提取搜索关键词和标志
20
+ 2. 运行 `superspec search "<query>" [--archived] [--artifact <type>]`
12
21
  <!-- SUPERSPEC:END -->
@@ -5,11 +5,21 @@ category: SuperSpec
5
5
  description: 交叉引用一致性检查(boost 模式)
6
6
  ---
7
7
  <!-- SUPERSPEC:START -->
8
+ **输入解析规则**
9
+
10
+ 从用户输入中提取:**变更名称**、**可选标志**。
11
+
12
+ | 提取项 | 规则 | 示例 |
13
+ |--------|------|------|
14
+ | 变更名称 | 移除标志后的剩余文本;为空时使用当前活跃变更 | `/ss-validate addUserAuth` → name=`addUserAuth` |
15
+ | 检查依赖 | `--check-deps`/`检查依赖`/`依赖检查` → 添加 `--check-deps` | `/ss-validate --check-deps`; `/ss-validate 检查依赖` |
16
+
8
17
  **Guardrails**
9
18
  - 验证 US↔FR↔AC↔tasks 一致性
10
19
  - 仅在 boost 模式下适用
11
20
 
12
21
  **Steps**
13
- 1. 运行 `superspec validate [name]`
14
- 2. 修复报告的任何一致性错误
22
+ 1. 解析用户输入 提取变更名称和标志
23
+ 2. 运行 `superspec validate [name] [--check-deps]`
24
+ 3. 修复报告的任何一致性错误
15
25
  <!-- SUPERSPEC:END -->