@yemi33/squad 0.1.18 → 0.1.20

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.
Files changed (2) hide show
  1. package/engine.js +9 -1
  2. package/package.json +1 -1
package/engine.js CHANGED
@@ -2601,9 +2601,17 @@ function checkTimeouts(config) {
2601
2601
  completed_at: ts()
2602
2602
  });
2603
2603
 
2604
- // Run post-completion hooks
2604
+ // Run post-completion hooks (same as proc.on('close') path)
2605
2605
  if (isSuccess) {
2606
2606
  const config = getConfig();
2607
+ // Chain plan → plan-to-prd
2608
+ if (item.type === 'plan' && item.meta?.item?.chain === 'plan-to-prd') {
2609
+ chainPlanToPrd(item, item.meta, config);
2610
+ }
2611
+ // Check shared-branch plan completion
2612
+ if (item.meta?.item?.branchStrategy === 'shared-branch') {
2613
+ checkPlanCompletion(item.meta, config);
2614
+ }
2607
2615
  syncPrsFromOutput(liveLog, item.agent, item.meta, config);
2608
2616
  checkForLearnings(item.agent, config.agents?.[item.agent], item.task);
2609
2617
  updateAgentHistory(item.agent, item, isSuccess ? 'success' : 'error');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/squad",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.squad/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "squad": "bin/squad.js"