triflux 3.3.0-dev.1 → 3.3.0-dev.5

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.
@@ -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']);