@pi-unipi/subagents 0.1.7 → 0.1.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/subagents",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Subagents for UniPi — parallel execution, file locking, workflow integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @pi-unipi/subagents — Extension entry
3
3
  *
4
- * Tools: Agent, get_result
4
+ * Tools: spawn_helper, get_helper_result
5
5
  * ESC propagation: all children abort on parent ESC
6
6
  */
7
7
 
@@ -236,8 +236,8 @@ export default function (pi: ExtensionAPI) {
236
236
 
237
237
  pi.registerTool(
238
238
  defineTool({
239
- name: "Agent",
240
- label: "Agent",
239
+ name: "spawn_helper",
240
+ label: "Spawn Helper",
241
241
  description: `Launch a sub-agent for parallel work.
242
242
 
243
243
  Available agent types: ${builtinTypes}
@@ -263,7 +263,7 @@ Guidelines:
263
263
  }),
264
264
  run_in_background: Type.Optional(
265
265
  Type.Boolean({
266
- description: "Run in background. Returns agent ID immediately.",
266
+ description: "Run in background. Returns helper ID immediately.",
267
267
  }),
268
268
  ),
269
269
  max_turns: Type.Optional(
@@ -392,16 +392,16 @@ Guidelines:
392
392
  }),
393
393
  );
394
394
 
395
- // ---- get_result tool ----
395
+ // ---- get_helper_result tool ----
396
396
 
397
397
  pi.registerTool(
398
398
  defineTool({
399
- name: "get_result",
400
- label: "Get Agent Result",
399
+ name: "get_helper_result",
400
+ label: "Get Helper Result",
401
401
  description: "Check status and retrieve results from a background agent.",
402
402
  parameters: Type.Object({
403
403
  agent_id: Type.String({
404
- description: "The agent ID to check.",
404
+ description: "The helper ID to check.",
405
405
  }),
406
406
  wait: Type.Optional(
407
407
  Type.Boolean({
@@ -412,7 +412,7 @@ Guidelines:
412
412
  execute: async (_toolCallId, params) => {
413
413
  const record = manager.getRecord(params.agent_id as string);
414
414
  if (!record) {
415
- return textResult(`Agent not found: "${params.agent_id}". It may have been cleaned up.`);
415
+ return textResult(`Helper not found: "${params.agent_id}". It may have been cleaned up.`);
416
416
  }
417
417
 
418
418
  if (params.wait && record.status === "running" && record.promise) {
@@ -3,7 +3,7 @@ name: explore
3
3
  description: "Fast parallel codebase exploration"
4
4
  ---
5
5
 
6
- # Explore Agent
6
+ # Explore Helper
7
7
 
8
8
  Read-only agent for fast parallel codebase exploration.
9
9
 
@@ -24,7 +24,7 @@ Read-only agent for fast parallel codebase exploration.
24
24
  Spawn multiple explore agents to read different parts of the codebase in parallel.
25
25
 
26
26
  ```
27
- Agent({
27
+ spawn_helper({
28
28
  type: "explore",
29
29
  prompt: "Find all files related to authentication",
30
30
  description: "Find auth files"
@@ -3,7 +3,7 @@ name: work
3
3
  description: "Parallel file writes with transparent locking"
4
4
  ---
5
5
 
6
- # Work Agent
6
+ # Work Helper
7
7
 
8
8
  Read-write agent for parallel file modifications.
9
9
 
@@ -32,7 +32,7 @@ When writing a file, the lock is acquired automatically. If another agent holds
32
32
  Spawn work agents to modify different files in parallel.
33
33
 
34
34
  ```
35
- Agent({
35
+ spawn_helper({
36
36
  type: "work",
37
37
  prompt: "Refactor src/auth.ts to use async/await",
38
38
  description: "Refactor auth module"