pi-better-subagents 0.1.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/README.md +420 -0
- package/batch.mjs +208 -0
- package/capacity.mjs +112 -0
- package/completion.mjs +165 -0
- package/completion.ts +11 -0
- package/config.json +14 -0
- package/config.ts +104 -0
- package/extensions.mjs +147 -0
- package/extensions.ts +19 -0
- package/finalization.ts +145 -0
- package/git-remotes.ts +413 -0
- package/git-workspace.ts +430 -0
- package/health-observation.ts +670 -0
- package/health-surface.mjs +276 -0
- package/health.ts +303 -0
- package/index.ts +1235 -0
- package/lifecycle.ts +333 -0
- package/list.mjs +123 -0
- package/list.ts +17 -0
- package/navigator.mjs +1188 -0
- package/navigator.ts +38 -0
- package/package.json +43 -0
- package/parse.ts +1144 -0
- package/registry.ts +236 -0
- package/sandbox.ts +164 -0
- package/spawn.ts +78 -0
- package/stop.ts +155 -0
- package/tools.ts +399 -0
- package/widget.mjs +218 -0
- package/widget.ts +28 -0
package/navigator.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript re-export of navigator.mjs pure seams (list #45, detail #46, close #47).
|
|
3
|
+
* Logic lives in navigator.mjs for ESM unit-test compatibility (mirrors widget.ts).
|
|
4
|
+
*/
|
|
5
|
+
export {
|
|
6
|
+
NAVIGATOR_STATUS_KEY,
|
|
7
|
+
CLOSE_CONFIRM_STATUS_KEY,
|
|
8
|
+
DETAIL_TICK_MS,
|
|
9
|
+
CLOSE_ARM_MS,
|
|
10
|
+
navigatorFooterHint,
|
|
11
|
+
applyNavigatorFooter,
|
|
12
|
+
closeConfirmHint,
|
|
13
|
+
applyCloseConfirmFooter,
|
|
14
|
+
createCloseArm,
|
|
15
|
+
isCloseArmed,
|
|
16
|
+
disarmClose,
|
|
17
|
+
executeNavigatorClose,
|
|
18
|
+
isNavigatorUiAvailable,
|
|
19
|
+
buildNavigatorRows,
|
|
20
|
+
buildNavigatorDetail,
|
|
21
|
+
buildDetailLines,
|
|
22
|
+
createNavigatorState,
|
|
23
|
+
clampSelection,
|
|
24
|
+
moveSelection,
|
|
25
|
+
selectById,
|
|
26
|
+
applyNavigatorRows,
|
|
27
|
+
formatNavigatorRowText,
|
|
28
|
+
buildNavigatorLines,
|
|
29
|
+
navigatorSectionLabel,
|
|
30
|
+
createNavigatorOverlayComponent,
|
|
31
|
+
createNavigatorOverlayFactory,
|
|
32
|
+
showNavigator,
|
|
33
|
+
openTrackedNavigator,
|
|
34
|
+
disposeTrackedNavigator,
|
|
35
|
+
wrapEditor,
|
|
36
|
+
NAVIGATOR_FACTORY_MARK,
|
|
37
|
+
installNavigatorEditor,
|
|
38
|
+
} from "./navigator.mjs";
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pi-better-subagents",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Claude Code-style async subagents for pi, built on detached background pi -p processes. Launching is the deliverable; the foreground never blocks.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"pi-package",
|
|
8
|
+
"pi-extension",
|
|
9
|
+
"subagents"
|
|
10
|
+
],
|
|
11
|
+
"pi": {
|
|
12
|
+
"extensions": ["./index.ts"]
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/1aboveio/pi-better-harness.git",
|
|
17
|
+
"directory": "packages/pi-better-subagents"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/1aboveio/pi-better-harness/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/1aboveio/pi-better-harness/tree/main/packages/pi-better-subagents#readme",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"typecheck": "node -e \"console.log('pi-better-subagents: typecheck skipped for legacy mixed TS/MJS package')\"",
|
|
28
|
+
"test": "node --import tsx --test tests/*.test.mjs",
|
|
29
|
+
"test:cross-session": "node --import tsx --test --test-name-pattern \"callback session isolation\" tests/extension_health_lifecycle.test.mjs",
|
|
30
|
+
"verify": "npm run typecheck && npm test"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"*.ts",
|
|
34
|
+
"*.mjs",
|
|
35
|
+
"config.json",
|
|
36
|
+
"README.md"
|
|
37
|
+
],
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@earendil-works/pi-ai": "*",
|
|
40
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
41
|
+
"@earendil-works/pi-tui": "*"
|
|
42
|
+
}
|
|
43
|
+
}
|