tycono 0.1.94-beta.8 → 0.1.94
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 +3 -2
- package/src/api/src/create-server.ts +2 -1
- package/src/api/src/services/supervisor-heartbeat.ts +6 -0
- package/src/web/dist/assets/{index-B-t5Z6IP.js → index-C9U34tT1.js} +52 -52
- package/src/web/dist/assets/index-DuB5baFp.js +1 -0
- package/src/web/dist/assets/preview-app-QWV7zpb0.js +1 -0
- package/src/web/dist/index.html +1 -1
- package/src/web/dist/tyconoforge.js +1 -0
- package/src/web/dist/assets/index-QEh7u0yu.js +0 -1
- package/src/web/dist/assets/preview-app-CscJIJRm.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tycono",
|
|
3
|
-
"version": "0.1.94
|
|
3
|
+
"version": "0.1.94",
|
|
4
4
|
"description": "Build an AI company. Watch them work.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dev:web": "npm run dev --prefix src/web",
|
|
24
24
|
"build": "npm run build:web && npm run build:forge",
|
|
25
25
|
"build:web": "npm run build --prefix src/web",
|
|
26
|
-
"build:forge": "
|
|
26
|
+
"build:forge": "cp node_modules/tyconoforge/dist/tyconoforge.js src/web/dist/tyconoforge.js",
|
|
27
27
|
"typecheck": "npm run typecheck:api && npm run typecheck:web",
|
|
28
28
|
"typecheck:api": "cd src/api && npx tsc --noEmit",
|
|
29
29
|
"typecheck:web": "cd src/web && npx tsc --noEmit",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"gray-matter": "^4.0.3",
|
|
39
39
|
"marked": "^15.0.6",
|
|
40
40
|
"tsx": "^4.19.3",
|
|
41
|
+
"tyconoforge": "^0.1.0-beta.0",
|
|
41
42
|
"yaml": "^2.7.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
@@ -128,7 +128,8 @@ export function createHttpServer(): http.Server {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
// SSE 엔드포인트: Express 우회하여 raw HTTP로 처리
|
|
131
|
-
|
|
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
|
|