pi-thread-engine 0.4.1 → 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 +28 -43
- package/extensions/index.ts +699 -666
- package/package.json +4 -20
- package/src/dashboard.ts +393 -393
package/PLAN.md
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
1
|
-
# pi-
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|