triflux 3.3.0-dev.1 → 3.3.0-dev.3
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/bin/triflux.mjs +169 -39
- package/hooks/hooks.json +5 -0
- package/hub/pipe.mjs +23 -0
- package/hub/router.mjs +322 -1
- package/hub/schema.sql +40 -7
- package/hub/server.mjs +95 -0
- package/hub/store.mjs +259 -1
- package/hub/team/native.mjs +200 -190
- package/hub/team/psmux.mjs +555 -115
- package/hub/tools.mjs +101 -26
- package/hub/workers/delegator-mcp.mjs +900 -0
- package/hub/workers/factory.mjs +3 -0
- package/hub/workers/interface.mjs +2 -2
- package/hud/hud-qos-status.mjs +1735 -1790
- package/package.json +1 -1
- package/scripts/__tests__/keyword-detector.test.mjs +3 -3
- package/scripts/__tests__/smoke.test.mjs +34 -0
- package/scripts/hub-ensure.mjs +21 -3
- package/scripts/setup.mjs +15 -10
package/hub/workers/factory.mjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { GeminiWorker } from './gemini-worker.mjs';
|
|
4
4
|
import { ClaudeWorker } from './claude-worker.mjs';
|
|
5
5
|
import { CodexMcpWorker } from './codex-mcp.mjs';
|
|
6
|
+
import { DelegatorMcpWorker } from './delegator-mcp.mjs';
|
|
6
7
|
|
|
7
8
|
export function createWorker(type, opts = {}) {
|
|
8
9
|
switch (type) {
|
|
@@ -12,6 +13,8 @@ export function createWorker(type, opts = {}) {
|
|
|
12
13
|
return new ClaudeWorker(opts);
|
|
13
14
|
case 'codex':
|
|
14
15
|
return new CodexMcpWorker(opts);
|
|
16
|
+
case 'delegator':
|
|
17
|
+
return new DelegatorMcpWorker(opts);
|
|
15
18
|
default:
|
|
16
19
|
throw new Error(`Unknown worker type: ${type}`);
|
|
17
20
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* @property {() => Promise<void>} start
|
|
36
36
|
* @property {() => Promise<void>} stop
|
|
37
37
|
* @property {() => boolean} isReady
|
|
38
|
-
* @property {string} type - 'codex' | 'gemini' | 'claude'
|
|
38
|
+
* @property {string} type - 'codex' | 'gemini' | 'claude' | 'delegator'
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
|
-
export const WORKER_TYPES = Object.freeze(['codex', 'gemini', 'claude']);
|
|
41
|
+
export const WORKER_TYPES = Object.freeze(['codex', 'gemini', 'claude', 'delegator']);
|