@leing2021/super-pi 0.32.0 → 0.33.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Super Pi
2
2
 
3
- ![Super Pi Workflow](docs/assets/super-pi.webp)
3
+ ![Super Pi Workflow](public/super-pi.webp)
4
4
 
5
5
  [中文](README_CN.md) | [English](README.md)
6
6
 
@@ -190,7 +190,7 @@ Commit everything to git — these files are the project's traceable memory.
190
190
  | Tools | 12 CE + 10 Pi built-in |
191
191
  | Rules | 78 |
192
192
  | TypeScript lines | ~4,100 |
193
- | Tests | 219 (882 assertions) |
193
+ | Tests | 219 (890 assertions) |
194
194
 
195
195
  Rules in `rules/` cover 12 common topics + language-specific sets (TypeScript, Rust, Go, Python, Java, Kotlin, C++, C#, Dart, Swift, Perl, PHP). Project-level overrides take priority; projects can also add new languages via a project-level `rules/language-detection.md` marker map (append + same-marker wins).
196
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leing2021/super-pi",
3
- "version": "0.32.0",
3
+ "version": "0.33.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Pi-native Compound Engineering package for iterative development workflows",
@@ -22,7 +22,7 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
22
22
  - Extract keywords → `grep -rl "tags:.*keyword" docs/solutions/ ~/.pi/agent/docs/solutions/`
23
23
  - Read **frontmatter** only (first 15 lines) of matches → score by severity + tag relevance
24
24
  - Fully read top 3 candidates
25
- 5. Write plan to `docs/plans/`
25
+ 5. Write plan to `docs/plans/` with the `> Status: draft` header (closed vocabulary: draft → ready → executing → done → deprecated); flip to `ready` when the plan is finalized
26
26
  6. If plan exists, use **`plan_diff`** to compare and patch incrementally
27
27
  7. End by recommending `03-work`
28
28
 
@@ -1,5 +1,11 @@
1
1
  # Plan
2
2
 
3
+ > Status: draft
4
+
5
+ <!-- Status 词表(封闭集,全小写):draft → ready → executing → done → deprecated
6
+ 02-plan 创建=draft;定稿=ready;03-work 执行中=executing;
7
+ 04-review 通过+归档=done(移入 docs/plans/archive/);人裁决作废=deprecated -->
8
+
3
9
  ## Problem summary
4
10
 
5
11
  Summarize the problem and the relevant requirements.
@@ -15,7 +21,7 @@ Define what is in and out of scope.
15
21
  ## Architecture decisions
16
22
 
17
23
  List any decisions that meet the ADR threshold (see `references/adr-template.md`).
18
- Link to `docs/adr/XXXX-slug.md` if created. If none qualify, state "No ADR-worthy decisions."
24
+ Link to `docs/adr/XXXX-slug.md` if created. If none qualify, keep this heading and state "No ADR-worthy decisions."
19
25
 
20
26
  ## Implementation units
21
27
 
@@ -16,7 +16,7 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
16
16
  3. **Distinguish input:** plan path vs bare prompt
17
17
  4. Derive tasks from plan **implementation units**
18
18
  5. **Execution mode:** **inline mode** — all plan units execute inline in the current session. No built-in subagent tools.
19
- 6. Use **`session_checkpoint`** to track progress and enable resume
19
+ 6. Use **`session_checkpoint`** to track progress and enable resume; before executing a plan, flip its Status header to `executing`
20
20
  7. Use **`task_splitter`** to analyze dependencies before execution
21
21
  8. If in **worktree** (via `07-worktree`), execute inside it
22
22
  9. End by recommending `04-review`
@@ -51,6 +51,7 @@ Code review is **technical evaluation**, not social performance:
51
51
  3. **Evaluate** — is it sound for THIS codebase?
52
52
  4. **Act** — fix confirmed issues, push back on incorrect ones
53
53
  5. **Test** — verify each fix individually, no regressions
54
+ 6. **Close** — when findings are resolved and tests green, flip the reviewed plan's Status header to `done` and move it to `docs/plans/archive/` (skip if no plan artifact)
54
55
 
55
56
  ## Workflow
56
57
 
@@ -44,8 +44,9 @@ See [shared pipeline instructions](../references/pipeline-config.md) for model r
44
44
  - **Project-specific** → `{project-root}/docs/solutions/` (only relevant to current project)
45
45
  - **Cross-project (global)** → `~/.pi/agent/docs/solutions/` (applicable to any project)
46
46
  - Default to **global** when uncertain.
47
- - **Out-of-scope branch:** if the request was rejected or already implemented, write to `docs/out-of-scope/` (template: `assets/out-of-scope-template.md`, convention: `../../docs/out-of-scope/README.md`) instead of `docs/solutions/`.
47
+ - **Out-of-scope branch:** if the request was rejected or already implemented, write to `docs/out-of-scope/` (template: `assets/out-of-scope-template.md`, convention: `assets/out-of-scope-convention.md`) instead of `docs/solutions/`.
48
48
  - Make the result useful to future `02-plan` and `04-review` runs via the search strategy in `references/solution-search-strategy.md`.
49
+ - If this phase's plan still sits in `docs/plans/` with work complete (path skipped 04-review), flip its Status header to `done` and move it to `docs/plans/archive/` — same Close semantics as 04-review step 6.
49
50
 
50
51
  ## Workflow
51
52
 
@@ -0,0 +1,27 @@
1
+ # Out-of-Scope Knowledge Base
2
+
3
+ Records requests that were **rejected** or **already implemented**, so they don't get re-proposed. Distinct from `docs/solutions/` (which records solved problems) — this KB records what NOT to do again.
4
+
5
+ ## Why
6
+
7
+ Without this KB, the same rejected request returns every few sessions. `01-brainstorm` and `02-plan` search here before proposing work, preventing duplicate effort.
8
+
9
+ ## When to write here (05-learn)
10
+
11
+ `05-learn` writes an entry when a request turns out to be:
12
+
13
+ - **Rejected** — the work was considered and ruled out (wrong direction, not worth it, conflicts with an ADR).
14
+ - **Already implemented** — the requested behaviour already exists in the codebase. Point to where it lives; this is NOT a rejection, just "already done".
15
+
16
+ Do NOT write here for: solved problems (those go to `docs/solutions/`), or ephemeral "not right now" deferrals.
17
+
18
+ ## Format
19
+
20
+ One markdown file per entry: `docs/out-of-scope/<YYYY-MM-DD>-<slug>.md`
21
+
22
+ Use the template at `skills/05-learn/assets/out-of-scope-template.md`.
23
+
24
+ ## Consumption rules
25
+
26
+ - **01-brainstorm** — before fleshing out a new idea, grep `docs/out-of-scope/` for matching trigger phrases. If found, surface it: "This was recorded as out-of-scope on <date>: <reason>. Still want to proceed?"
27
+ - **02-plan** — before planning a unit, check whether the feature was previously rejected. A rejected item can be re-opened, but the original reasoning must be acknowledged first.