tycono 0.1.94-beta.8 → 0.1.94-beta.9

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.1.94-beta.8",
3
+ "version": "0.1.94-beta.9",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -128,7 +128,8 @@ export function createHttpServer(): http.Server {
128
128
  }
129
129
 
130
130
  // SSE 엔드포인트: Express 우회하여 raw HTTP로 처리
131
- if ((url.startsWith('/api/exec/') || url.startsWith('/api/jobs') || url === '/api/waves/save' || url === '/api/setup/import-knowledge') && method === 'POST') {
131
+ // BUG-008: /api/waves/:waveId/directive and /api/waves/:waveId/question POST 포함
132
+ if ((url.startsWith('/api/exec/') || url.startsWith('/api/jobs') || url.startsWith('/api/waves/') || url === '/api/waves/save' || url === '/api/setup/import-knowledge') && method === 'POST') {
132
133
  setExecCors(req, res);
133
134
  if (url === '/api/setup/import-knowledge') {
134
135
  handleImportKnowledge(req, res);
@@ -384,6 +384,12 @@ Re-dispatch pattern:
384
384
  } else if (event.type === 'msg:error') {
385
385
  exec.stream.unsubscribe(subscriber);
386
386
  this.onSupervisorCrash(state, String(event.data.message ?? 'unknown error'));
387
+ } else if (event.type === 'msg:awaiting_input') {
388
+ // BUG-016: turn:limit causes awaiting_input — treat as done-guard
389
+ // If all children are done → complete wave. Otherwise restart supervisor.
390
+ exec.stream.unsubscribe(subscriber);
391
+ console.log(`[Supervisor] awaiting_input (turn limit) for wave ${state.waveId}. Running done-guard.`);
392
+ this.onSupervisorDone(state);
387
393
  }
388
394
  };
389
395