pi-spiral 0.2.1 → 0.3.0
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/CHANGELOG.md +21 -0
- package/extensions/spiral.ts +12 -0
- package/package.json +22 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.3.0]
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Host runtime binding: the extension now hands the host Pi modules
|
|
8
|
+
(`@earendil-works/pi-coding-agent`, `@earendil-works/pi-tui`, `typebox`) to
|
|
9
|
+
`pi-agent-runner` via `bindHostRuntime`. ralplan and ralph subagents run on
|
|
10
|
+
the Pi version you have installed instead of a stale copy bundled in
|
|
11
|
+
`node_modules`.
|
|
12
|
+
- Human-wait tracking: Spiral tracks permission prompts on its own events
|
|
13
|
+
facade (`humanWaitTracker`), so subagent timers pause while you answer a
|
|
14
|
+
dialog.
|
|
15
|
+
- The Pi packages (`pi-ai`, `pi-coding-agent`, `pi-tui`, `typebox`) are now
|
|
16
|
+
optional peer dependencies.
|
|
17
|
+
- Requires `pi-agent-runner` `^0.11.0` and Pi 1.1.0 or newer.
|
|
18
|
+
|
|
19
|
+
## [0.2.2]
|
|
20
|
+
|
|
21
|
+
Previous release.
|
package/extensions/spiral.ts
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
// - delegate each role to a child agent through pi-agent-runner
|
|
6
6
|
// - expose `/ralplan` + `ralplan` tool and `/ralph` + `ralph` tool
|
|
7
7
|
|
|
8
|
+
import * as hostTui from '@earendil-works/pi-tui';
|
|
8
9
|
import { Text } from '@earendil-works/pi-tui';
|
|
10
|
+
import * as hostPi from '@earendil-works/pi-coding-agent';
|
|
11
|
+
import { Unsafe } from 'typebox';
|
|
12
|
+
import { Compile } from 'typebox/compile';
|
|
9
13
|
import {
|
|
14
|
+
bindHostRuntime,
|
|
15
|
+
humanWaitTracker,
|
|
10
16
|
mountRunsView,
|
|
11
17
|
registerAgentsCommand,
|
|
12
18
|
type ParentContext,
|
|
@@ -242,6 +248,12 @@ const makeCheckpointHandler =
|
|
|
242
248
|
};
|
|
243
249
|
|
|
244
250
|
export default function spiralExtension(pi: ExtensionAPI) {
|
|
251
|
+
// Hand the host Pi modules to the runner before any runner UI registration
|
|
252
|
+
// or delegation: the runner never imports them itself.
|
|
253
|
+
bindHostRuntime({ pi: hostPi, tui: hostTui, typebox: { Unsafe, Compile } });
|
|
254
|
+
// Each extension has its own events facade; track human waits on ours.
|
|
255
|
+
humanWaitTracker(pi.events);
|
|
256
|
+
|
|
245
257
|
pi.registerEntryRenderer<ProgressEntryData>(
|
|
246
258
|
PROGRESS_ENTRY_TYPE,
|
|
247
259
|
(entry, _options, theme) =>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-spiral",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Pi extension: ralplan (consensus planning: planner + architect + critic) and ralph (persistent execution loop), ported from oh-my-claudecode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"planning"
|
|
19
19
|
],
|
|
20
20
|
"pi": {
|
|
21
|
+
"image": "https://raw.githubusercontent.com/akholod/pi-spiral/main/assets/hero.webp",
|
|
21
22
|
"extensions": [
|
|
22
23
|
"./extensions"
|
|
23
24
|
]
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"docs/ARCHITECTURE.md",
|
|
30
31
|
"docs/adr",
|
|
31
32
|
"spiral.config.example.jsonc",
|
|
32
|
-
"README.md"
|
|
33
|
+
"README.md",
|
|
34
|
+
"CHANGELOG.md"
|
|
33
35
|
],
|
|
34
36
|
"scripts": {
|
|
35
37
|
"typecheck": "tsc --noEmit",
|
|
@@ -44,9 +46,24 @@
|
|
|
44
46
|
"@earendil-works/pi-tui": "*",
|
|
45
47
|
"typebox": "*"
|
|
46
48
|
},
|
|
49
|
+
"peerDependenciesMeta": {
|
|
50
|
+
"@earendil-works/pi-ai": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"@earendil-works/pi-coding-agent": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"@earendil-works/pi-tui": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"typebox": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
47
63
|
"devDependencies": {
|
|
48
|
-
"@earendil-works/pi-ai": "^1.
|
|
49
|
-
"@earendil-works/pi-coding-agent": "^1.
|
|
64
|
+
"@earendil-works/pi-ai": "^1.5.0",
|
|
65
|
+
"@earendil-works/pi-coding-agent": "^1.5.0",
|
|
66
|
+
"@earendil-works/pi-tui": "^1.5.0",
|
|
50
67
|
"@types/node": "^24.0.0",
|
|
51
68
|
"eslint": "^9.0.0",
|
|
52
69
|
"eslint-config-metarhia": "^9.0.0",
|
|
@@ -56,6 +73,6 @@
|
|
|
56
73
|
"typescript-eslint": "^8.71.1"
|
|
57
74
|
},
|
|
58
75
|
"dependencies": {
|
|
59
|
-
"pi-agent-runner": "^0.
|
|
76
|
+
"pi-agent-runner": "^0.11.0"
|
|
60
77
|
}
|
|
61
78
|
}
|