pi-thread-engine 0.4.2 → 0.4.3

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/PLAN.md CHANGED
@@ -1,43 +1,28 @@
1
- # pi-threads Thread Engineering for Pi
2
-
3
- ## Vision
4
- All 7 thread types as first-class pi commands, plus Stories (goal auto-decomposed phases).
5
- Wraps pi-subagents where it excels. Builds natively what nobody else has.
6
-
7
- ## Architecture
8
-
9
- Two backends:
10
- 1. **Subagent** — P/C/B threads delegate to pi-subagents (inherits agents, TUI, artifacts, chains)
11
- 2. **Native** — F/Z/L threads spawn `pi -p` directly (for multi-model fusion + verify gates)
12
-
13
- Stories orchestrate across both backends auto-picking the right thread type per phase.
14
-
15
- ## What's Unique (not in pi-subagents or pi-messenger)
16
-
17
- | Feature | Why it's new |
18
- |---------|-------------|
19
- | F-Thread (fusion) | Multi-model competition on same prompt |
20
- | Z-Thread (zero-touch) | Autonomous + verify command gate |
21
- | Stories | Goal auto-decomposed thread phases |
22
- | Unified dashboard | One /threads view for all agent work |
23
- | Fusion review | Side-by-side comparison of multi-model results |
24
-
25
- ## Files
26
-
27
- ```
28
- extensions/index.ts — Extension entry (commands, tools, dashboard, stories)
29
- src/core/types.ts — Thread, Task, Story, Phase types
30
- src/core/registry.ts — State machine + event bus + story tracking
31
- src/core/executor.ts — Dual backend: subagent delegation + native pi -p
32
- ```
33
-
34
- ## Status
35
- - [x] Phase 1: Core types, registry, executor
36
- - [x] Phase 2: All 7 thread commands
37
- - [x] Phase 3: Stories (/story, /stories)
38
- - [x] Phase 4: Subagent integration for P/C/B threads
39
- - [x] Phase 5: Fusion with multi-model support
40
- - [x] Phase 6: Zero-touch with verify gate
41
- - [x] Phase 7: Dashboard as TUI custom component (Ctrl+Shift+T)
42
- - [x] Phase 8: Session persistence (appendEntry + restore)
43
- - [ ] Phase 9: npm publish
1
+ # Plan: Fix pi-thread-engine Extension Loading
2
+
3
+ ## Scope
4
+ The pi-thread-engine extension was not properly loading in pi. Commands like `/threads`, `/pthread`, etc. were not recognized. After investigation and fixes, the extension now loads correctly in TUI mode.
5
+
6
+ ## What was done
7
+ 1. **Removed `StringEnum` import from `@mariozechner/pi-ai`** — `StringEnum` was removed from pi-ai >= 0.66. Defined locally using `Type.Unsafe` from `@sinclair/typebox`.
8
+ 2. **Updated peerDependencies from `^0.56.0` to `>=0.73.0`** — matches current pi version (0.74.0).
9
+ 3. **Cleaned pi manifest** — removed non-standard `commands` and `tools` fields from `pi` key in package.json.
10
+ 4. **Published v0.4.2** — clean package with working extension.
11
+
12
+ ## Files Changed
13
+ - `extensions/index.ts`replaced `StringEnum` import with local function
14
+ - `package.json` — updated peerDeps, cleaned manifest
15
+ - `src/core/executor.ts` namespace update (reverted to `@mariozechner`)
16
+ - `src/core/registry.ts` — namespace update (reverted to `@mariozechner`)
17
+
18
+ ## Test Strategy
19
+ 1. Run pi in interactive TUI mode
20
+ 2. Type `/threads` should show autocomplete suggestion `[u:npm:pi-thread-engine]`
21
+ 3. Type `/threads status` should show current thread status via notification
22
+
23
+ ## Next Steps (separate task)
24
+ - Add pi.dev listing
25
+ - Wire up live progress updates to dashboard
26
+ - Add token/cost counters
27
+ - Add pinning and export features
28
+ - Consider moving from peerDependencies to dependencies for reliable resolution