@pi-unipi/subagents 2.18.0 → 2.19.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/agents/reviewer.md +1 -0
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/pi-args.ts +6 -0
package/agents/reviewer.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/subagents",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"description": "Subagents for UniPi — parallel execution, file locking, workflow integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"test": "npx tsx --test src/__tests__/*.test.ts"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@pi-unipi/core": "2.
|
|
12
|
+
"@pi-unipi/core": "2.19.0",
|
|
13
13
|
"@earendil-works/pi-agent-core": "^0.84.0",
|
|
14
14
|
"acorn": "8.18.0"
|
|
15
15
|
},
|
package/src/index.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
matchesDetachInput,
|
|
38
38
|
} from "./foreground-detach.js";
|
|
39
39
|
import { coerceThinkingLevel } from "./agent-runner.js";
|
|
40
|
+
import { childExtensionsArg } from "./pi-args.js";
|
|
40
41
|
|
|
41
42
|
/** Get info registry from global */
|
|
42
43
|
function getInfoRegistry() {
|
|
@@ -300,6 +301,7 @@ export default function (pi: ExtensionAPI) {
|
|
|
300
301
|
model: launch.model,
|
|
301
302
|
thinking: launch.thinking,
|
|
302
303
|
tools: agent.builtinToolNames,
|
|
304
|
+
extensions: childExtensionsArg(agent.extensions),
|
|
303
305
|
timeoutMs: launch.timeoutMs,
|
|
304
306
|
parentSessionId: asyncSessionId,
|
|
305
307
|
config,
|
package/src/pi-args.ts
CHANGED
|
@@ -24,6 +24,12 @@ const TASK_ARG_LIMIT = 8000;
|
|
|
24
24
|
|
|
25
25
|
export type SubagentTaskDelivery = "auto" | "file";
|
|
26
26
|
|
|
27
|
+
export function childExtensionsArg(extensions: true | string[] | false): string[] | undefined {
|
|
28
|
+
if (extensions === false) return [];
|
|
29
|
+
if (extensions === true) return undefined;
|
|
30
|
+
return [...extensions];
|
|
31
|
+
}
|
|
32
|
+
|
|
27
33
|
export function resolveSubagentTaskDelivery(
|
|
28
34
|
env: NodeJS.ProcessEnv = process.env,
|
|
29
35
|
): SubagentTaskDelivery {
|