@wrongstack/cli 0.31.1 → 0.32.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/dist/index.js CHANGED
@@ -11405,6 +11405,16 @@ var MultiAgentHost = class {
11405
11405
  maxContext: payload.maxContext
11406
11406
  });
11407
11407
  });
11408
+ this.director.fleet.filter("subagent.spawned", (e) => {
11409
+ const payload = e.payload;
11410
+ this.deps.events.emit("subagent.spawned", {
11411
+ subagentId: payload.subagentId,
11412
+ taskId: payload.taskId,
11413
+ name: payload.name,
11414
+ provider: payload.provider,
11415
+ model: payload.model
11416
+ });
11417
+ });
11408
11418
  this.getCoordinator().on(
11409
11419
  "task.assigned",
11410
11420
  ({
@@ -11623,6 +11633,14 @@ var MultiAgentHost = class {
11623
11633
  id: taskId,
11624
11634
  description: task
11625
11635
  });
11636
+ this.deps.events.emit("subagent.spawned", {
11637
+ subagentId,
11638
+ taskId,
11639
+ name: subagentId,
11640
+ provider: "acp",
11641
+ model: void 0,
11642
+ description: task
11643
+ });
11626
11644
  return taskId;
11627
11645
  }
11628
11646
  /** Returns a tool slice for the subagent — full set unless restricted. */
@@ -11656,18 +11674,8 @@ var MultiAgentHost = class {
11656
11674
  model: opts?.model,
11657
11675
  tools: opts?.tools
11658
11676
  };
11659
- const transcriptPath = this.sessionFactory ? path24.join(this.sessionFactory.dir, `${subagentConfig.name}.jsonl`) : void 0;
11660
11677
  const { subagentId, taskId } = await this._spawnAndAssign(subagentConfig);
11661
11678
  this.fleetManager?.addPendingTask(taskId, subagentId, description);
11662
- this.deps.events.emit("subagent.spawned", {
11663
- subagentId,
11664
- taskId,
11665
- name: subagentConfig.name,
11666
- provider: opts?.provider,
11667
- model: opts?.model,
11668
- description,
11669
- transcriptPath
11670
- });
11671
11679
  return { subagentId, taskId };
11672
11680
  }
11673
11681
  /**