agent-mp 0.1.0 → 0.2.0

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.
@@ -1 +1,29 @@
1
- export declare function runRepl(): Promise<void>;
1
+ import * as readline from 'readline';
2
+ import { CliInfo } from '../types.js';
3
+ import { Session } from '../utils/sessions.js';
4
+ /**
5
+ * Shared coordinator setup: detect CLIs, pick coordinator, check auth.
6
+ * Returns { coordinatorCmd, activeCli, installed, rl } or null if setup failed.
7
+ */
8
+ export declare function initCoordinator(): Promise<{
9
+ coordinatorCmd: string;
10
+ activeCli: {
11
+ name: string;
12
+ info: CliInfo;
13
+ path: string;
14
+ };
15
+ installed: Array<{
16
+ name: string;
17
+ info: CliInfo;
18
+ path: string;
19
+ }>;
20
+ rl: readline.Interface;
21
+ } | null>;
22
+ /** REPL mode — interactive loop */
23
+ export declare function runRepl(resumeSession?: Session): Promise<void>;
24
+ /**
25
+ * Direct role execution — agent-mp MISMO actúa como rol.
26
+ * NO spawnea CLIs externos. Usa la conexión OAuth de qwen directamente.
27
+ * Prompt estricto: cada rol solo hace lo que debe, sin extras.
28
+ */
29
+ export declare function runRole(role: string, arg: string): Promise<void>;