@arhen/pi-core-subagent 1.1.2 → 1.1.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/package.json +1 -1
- package/src/index.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arhen/pi-core-subagent",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "pi extension: fast in-process subagents with single/parallel/chain, background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
|
|
6
6
|
"license": "MIT",
|
package/src/index.ts
CHANGED
|
@@ -1117,7 +1117,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
1117
1117
|
"Use allowIntercom:true only when a child may need to ask you something; keep children autonomous otherwise.",
|
|
1118
1118
|
],
|
|
1119
1119
|
parameters: SubagentParams,
|
|
1120
|
-
executionMode: "
|
|
1120
|
+
executionMode: "parallel", // sibling subagent calls run concurrently, not serialized
|
|
1121
1121
|
async execute(_toolCallId, params, signal, onUpdate, ctx) {
|
|
1122
1122
|
const typed = params as unknown as SubagentParamsShape;
|
|
1123
1123
|
if (typed.background) {
|
|
@@ -1140,7 +1140,6 @@ export default function (pi: ExtensionAPI) {
|
|
|
1140
1140
|
if (args.model) parts.push(args.model);
|
|
1141
1141
|
if (args.thinking) parts.push(args.thinking);
|
|
1142
1142
|
if (args.write) parts.push("write");
|
|
1143
|
-
else if (writeCount === 0) parts.push("read-only");
|
|
1144
1143
|
if (writeCount > 0) parts.push(`${writeCount} write`);
|
|
1145
1144
|
if (args.concurrency) parts.push(`c${args.concurrency}`);
|
|
1146
1145
|
if (args.maxRuntimeMs) parts.push(`${Math.round(args.maxRuntimeMs / 60000)}m`);
|