@zhushanwen/pi-subagent-workflow 8.8.0 → 8.8.1
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/package.json +8 -8
- package/src/host/pi-host.ts +5 -4
- package/src/index.ts +145 -464
- package/src/injectors/__tests__/engine-awareness.test.ts +4 -2
- package/src/injectors/__tests__/engine-section-stability.test.ts +42 -29
- package/src/injectors/engine-awareness.ts +80 -4
- package/src/injectors/resource-list-injector.ts +209 -0
- package/src/injectors/subagent-list-injector.ts +30 -143
- package/src/injectors/workflow-list-injector.ts +23 -150
- package/src/interface/__tests__/detectors.test.ts +1 -1
- package/src/interface/__tests__/subagent-tool-path-guard.test.ts +42 -26
- package/src/interface/__tests__/subagent-tool-prompt.test.ts +10 -2
- package/src/interface/__tests__/tool-workflow-throw-paths.test.ts +1 -1
- package/src/interface/bg-notify-render.ts +4 -4
- package/src/interface/commands.ts +115 -75
- package/src/interface/format.ts +339 -241
- package/src/interface/helpers.ts +2 -2
- package/src/interface/list-component.ts +163 -116
- package/src/interface/list-shared.ts +2 -2
- package/src/interface/list-view.ts +129 -72
- package/src/interface/subagent-actions.ts +5 -5
- package/src/interface/subagent-tool-schema.ts +6 -5
- package/src/interface/subagent-tool.ts +4 -3
- package/src/interface/subagents.ts +8 -7
- package/src/interface/tool-render.ts +2 -2
- package/src/interface/tool-workflow-script.ts +15 -14
- package/src/interface/tool-workflow.ts +14 -11
- package/src/interface/tui-kit.ts +305 -0
- package/src/interface/views/WorkflowsView.ts +267 -196
- package/src/interface/views/__tests__/WorkflowsView-signature.test.ts +3 -3
- package/src/interface/views/__tests__/detail-content-session-file.test.ts +7 -4
- package/src/interface/views/detail-content.ts +16 -14
- package/src/interface/views/view-constants.ts +19 -0
- package/src/jsonl-run-store.ts +11 -7
- package/src/interface/views/format.ts +0 -281
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhushanwen/pi-subagent-workflow",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"description": "Unified subagent execution and multi-agent workflow orchestration for Pi — spawned-process agent runtime with sync/background modes, stateful workflow management with persistence, state machine, and execution tracing.",
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@xyz-agent/
|
|
57
|
-
"@
|
|
58
|
-
"@zhushanwen/pi-
|
|
59
|
-
"@
|
|
60
|
-
"@zhushanwen/subagent-core": "0.
|
|
56
|
+
"@xyz-agent/extension-protocol": "0.8.1",
|
|
57
|
+
"@xyz-agent/session-delivery": "0.3.1",
|
|
58
|
+
"@zhushanwen/pi-ext-guards": "0.2.1",
|
|
59
|
+
"@zhushanwen/pi-extension-logger": "0.4.1",
|
|
60
|
+
"@zhushanwen/subagent-core": "0.5.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@earendil-works/pi-ai": "^0.84.4",
|
|
64
64
|
"@earendil-works/pi-coding-agent": "^0.84.4",
|
|
65
65
|
"@earendil-works/pi-tui": "^0.84.4",
|
|
66
66
|
"typebox": "*",
|
|
67
|
-
"@zhushanwen/pi-
|
|
68
|
-
"@zhushanwen/pi-
|
|
67
|
+
"@zhushanwen/pi-pending-notifications": "0.5.3",
|
|
68
|
+
"@zhushanwen/pi-structured-output": "5.1.3"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@earendil-works/pi-coding-agent": {
|
package/src/host/pi-host.ts
CHANGED
|
@@ -35,9 +35,10 @@ import { getLogger } from "@zhushanwen/pi-extension-logger";
|
|
|
35
35
|
import { countActiveFromEntries } from "@zhushanwen/pi-pending-notifications";
|
|
36
36
|
import { createDelivery } from "@xyz-agent/session-delivery";
|
|
37
37
|
|
|
38
|
-
import type { DiscoveryRoot, HostServices } from "@zhushanwen/subagent-core
|
|
39
|
-
import type { LogLevel } from "@zhushanwen/subagent-core
|
|
40
|
-
import type { NotifyDomainPorts } from "@zhushanwen/subagent-core
|
|
38
|
+
import type { DiscoveryRoot, HostServices } from "@zhushanwen/subagent-core";
|
|
39
|
+
import type { LogLevel } from "@zhushanwen/subagent-core";
|
|
40
|
+
import type { NotifyDomainPorts } from "@zhushanwen/subagent-core";
|
|
41
|
+
import { toErrorMessage } from "@zhushanwen/pi-ext-guards";
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
44
|
* core 包(@zhushanwen/subagent-core)agents/ 资产进 pi 发现面的注入根(C5⑥,
|
|
@@ -71,7 +72,7 @@ function corePackageNpmRoot(): string | undefined {
|
|
|
71
72
|
// module-level mock 可能返回 undefined,模块级持有会在 import 期踩 undefined)
|
|
72
73
|
getLogger("pi-host").warn(
|
|
73
74
|
"[pi-host] core 包 agents/ 注入根解析失败——10 内置角色可能不可发现",
|
|
74
|
-
{ reason:
|
|
75
|
+
{ reason: toErrorMessage(err) },
|
|
75
76
|
);
|
|
76
77
|
return undefined;
|
|
77
78
|
}
|