tycono 0.3.22-beta.2 → 0.3.22

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": "tycono",
3
- "version": "0.3.22-beta.2",
3
+ "version": "0.3.22",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -554,6 +554,12 @@ Do NOT dispatch anyone. Do NOT create new files. Just answer concisely.`;
554
554
  /* ─── Internal: Spawn / Restart ────────────── */
555
555
 
556
556
  private spawnSupervisor(state: SupervisorState): void {
557
+ // Use latest pending directive as the active task (not the wave's initial directive)
558
+ const undelivered = state.pendingDirectives.filter(d => !d.delivered);
559
+ if (undelivered.length > 0) {
560
+ state.directive = undelivered[undelivered.length - 1].text;
561
+ }
562
+
557
563
  const orgTree = buildOrgTree(COMPANY_ROOT, state.preset);
558
564
  let cLevelRoles = getSubordinates(orgTree, 'ceo');
559
565