@a5c-ai/agent-mux-cli 5.0.1-staging.04a3db697 → 5.0.1-staging.04ca6ab00d21

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.
Files changed (62) hide show
  1. package/dist/bootstrap.d.ts +1 -1
  2. package/dist/commands/adapters.d.ts +2 -6
  3. package/dist/commands/adapters.d.ts.map +1 -1
  4. package/dist/commands/adapters.js +2 -129
  5. package/dist/commands/adapters.js.map +1 -1
  6. package/dist/commands/agent.d.ts +1 -1
  7. package/dist/commands/auth.d.ts +2 -6
  8. package/dist/commands/auth.d.ts.map +1 -1
  9. package/dist/commands/auth.js +2 -134
  10. package/dist/commands/auth.js.map +1 -1
  11. package/dist/commands/config.d.ts +2 -6
  12. package/dist/commands/config.d.ts.map +1 -1
  13. package/dist/commands/config.js +2 -218
  14. package/dist/commands/config.js.map +1 -1
  15. package/dist/commands/detect-host.d.ts +2 -5
  16. package/dist/commands/detect-host.d.ts.map +1 -1
  17. package/dist/commands/detect-host.js +2 -30
  18. package/dist/commands/detect-host.js.map +1 -1
  19. package/dist/commands/doctor.d.ts +1 -1
  20. package/dist/commands/gateway/index.d.ts +1 -1
  21. package/dist/commands/hooks.d.ts +1 -1
  22. package/dist/commands/hooks.js +1 -1
  23. package/dist/commands/install-helpers.d.ts +3 -22
  24. package/dist/commands/install-helpers.d.ts.map +1 -1
  25. package/dist/commands/install-helpers.js +2 -55
  26. package/dist/commands/install-helpers.js.map +1 -1
  27. package/dist/commands/install.d.ts +2 -22
  28. package/dist/commands/install.d.ts.map +1 -1
  29. package/dist/commands/install.js +2 -445
  30. package/dist/commands/install.js.map +1 -1
  31. package/dist/commands/launch-bridge-hooks.d.ts +5 -56
  32. package/dist/commands/launch-bridge-hooks.d.ts.map +1 -1
  33. package/dist/commands/launch-bridge-hooks.js +4 -224
  34. package/dist/commands/launch-bridge-hooks.js.map +1 -1
  35. package/dist/commands/launch-completion-engine.d.ts +4 -4
  36. package/dist/commands/launch-completion-engine.d.ts.map +1 -1
  37. package/dist/commands/launch-completion-engine.js +4 -4
  38. package/dist/commands/launch-completion-engine.js.map +1 -1
  39. package/dist/commands/launch.d.ts +5 -54
  40. package/dist/commands/launch.d.ts.map +1 -1
  41. package/dist/commands/launch.js +4 -910
  42. package/dist/commands/launch.js.map +1 -1
  43. package/dist/commands/mcp.d.ts +1 -1
  44. package/dist/commands/models.d.ts +1 -1
  45. package/dist/commands/models.js +1 -1
  46. package/dist/commands/plugin.d.ts +1 -1
  47. package/dist/commands/profiles.d.ts +1 -1
  48. package/dist/commands/profiles.js +1 -1
  49. package/dist/commands/remote.d.ts +1 -1
  50. package/dist/commands/remote.js +1 -1
  51. package/dist/commands/run.d.ts +1 -1
  52. package/dist/commands/run.js +1 -1
  53. package/dist/commands/sessions.d.ts +1 -1
  54. package/dist/commands/sessions.js +1 -1
  55. package/dist/commands/skill.d.ts +1 -1
  56. package/dist/commands/tui.d.ts +1 -1
  57. package/dist/commands/workspaces.d.ts +1 -1
  58. package/dist/commands/workspaces.js +1 -1
  59. package/dist/exit-codes.d.ts +1 -1
  60. package/dist/index.d.ts +1 -1
  61. package/dist/index.js +2 -2
  62. package/package.json +16 -6
@@ -1,59 +1,8 @@
1
1
  /**
2
- * Bridge hook emulation for non-interactive mode.
2
+ * Bridge hook emulation thin wrapper.
3
3
  *
4
- * When --bridge-hooks is set, emulates lifecycle hooks (session-start, stop
5
- * with block-continue, session-end) that the underlying CLI harness may not
6
- * support natively. The emulator shells out to the babysitter CLI to trigger
7
- * hook handling and run-status queries.
4
+ * The implementation now lives in @a5c-ai/agent-launch-mux.
5
+ * This module re-exports everything for backward compatibility.
8
6
  */
9
- export interface BridgeHookContext {
10
- harness: string;
11
- cwd: string;
12
- env: Record<string, string>;
13
- sessionId?: string;
14
- runsDir?: string;
15
- verbose?: boolean;
16
- }
17
- export interface SessionStartResult {
18
- runId?: string;
19
- emulated: boolean;
20
- }
21
- export interface StopResult {
22
- shouldContinue: boolean;
23
- resumeId?: string;
24
- emulated: boolean;
25
- }
26
- export declare class BridgeHookEmulator {
27
- private readonly ctx;
28
- private readonly bin;
29
- private runId;
30
- constructor(ctx: BridgeHookContext);
31
- /**
32
- * Emulate the session-start lifecycle hook.
33
- *
34
- * If the harness supports session-start natively, this is a no-op.
35
- * If emulated, it invokes `babysitter hook:run --hook-type session-start`
36
- * which creates a bare run and initializes session state.
37
- */
38
- emulateSessionStart(): Promise<SessionStartResult>;
39
- /**
40
- * Emulate the stop lifecycle hook.
41
- *
42
- * If the harness supports stop natively, this is a no-op.
43
- * If emulated:
44
- * 1. Queries `babysitter run:status <runDir> --json` to check run state
45
- * 2. If run has pending effects or is not completed: shouldContinue=true
46
- * 3. If run is completed: shouldContinue=false
47
- * 4. Returns a resumeId for session resume if continuing
48
- */
49
- emulateStop(runId?: string): Promise<StopResult>;
50
- /**
51
- * Emulate the session-end lifecycle hook.
52
- *
53
- * If the harness supports session-end natively, this is a no-op.
54
- * If emulated, invokes `babysitter hook:run --hook-type session-end`.
55
- */
56
- emulateSessionEnd(): Promise<void>;
57
- /** Return the current run ID, if one was created during session-start. */
58
- getRunId(): string | undefined;
59
- }
7
+ export { BridgeHookEmulator, } from '@a5c-ai/agent-launch-mux';
8
+ export type { BridgeHookContext, SessionStartResult, StopResult, } from '@a5c-ai/agent-launch-mux';
@@ -1 +1 @@
1
- {"version":3,"file":"launch-bridge-hooks.d.ts","sourceRoot":"","sources":["../../src/commands/launch-bridge-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAsED,qBAAa,kBAAkB;IAIjB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAHhC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,KAAK,CAAqB;gBAEL,GAAG,EAAE,iBAAiB;IAInD;;;;;;OAMG;IACG,mBAAmB,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAiDxD;;;;;;;;;OASG;IACG,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAwEtD;;;;;OAKG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAuCxC,0EAA0E;IAC1E,QAAQ,IAAI,MAAM,GAAG,SAAS;CAG/B"}
1
+ {"version":3,"file":"launch-bridge-hooks.d.ts","sourceRoot":"","sources":["../../src/commands/launch-bridge-hooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,GACnB,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,GACX,MAAM,0BAA0B,CAAC"}
@@ -1,228 +1,8 @@
1
1
  /**
2
- * Bridge hook emulation for non-interactive mode.
2
+ * Bridge hook emulation thin wrapper.
3
3
  *
4
- * When --bridge-hooks is set, emulates lifecycle hooks (session-start, stop
5
- * with block-continue, session-end) that the underlying CLI harness may not
6
- * support natively. The emulator shells out to the babysitter CLI to trigger
7
- * hook handling and run-status queries.
4
+ * The implementation now lives in @a5c-ai/agent-launch-mux.
5
+ * This module re-exports everything for backward compatibility.
8
6
  */
9
- // ---------------------------------------------------------------------------
10
- // Internal helpers
11
- // ---------------------------------------------------------------------------
12
- /** Resolve the babysitter CLI binary path from env or default. */
13
- function resolveBabysitterBin(env) {
14
- return env['BABYSITTER_BIN'] || 'babysitter';
15
- }
16
- /** Run a babysitter CLI command and return stdout. Throws on non-zero exit. */
17
- async function execBabysitterCommand(bin, args, options) {
18
- const { execFileSync } = await import('node:child_process');
19
- const mergedEnv = { ...process.env, ...options.env };
20
- if (options.verbose) {
21
- console.error(`[bridge-hooks] exec: ${bin} ${args.join(' ')}`);
22
- }
23
- const result = execFileSync(bin, args, {
24
- cwd: options.cwd,
25
- env: mergedEnv,
26
- encoding: 'utf-8',
27
- timeout: 30_000,
28
- stdio: ['pipe', 'pipe', 'pipe'],
29
- });
30
- return result;
31
- }
32
- /**
33
- * Query the agent-catalog for hook support in non-interactive mode.
34
- * Returns the support level for a given hook, or undefined if the catalog
35
- * is not available.
36
- */
37
- async function getHookSupportLevel(harness, hookName) {
38
- try {
39
- const { getHookSupport } = await import('@a5c-ai/agent-catalog');
40
- const support = getHookSupport(harness, 'nonInteractive');
41
- return support?.[hookName];
42
- }
43
- catch {
44
- // agent-catalog not available
45
- return undefined;
46
- }
47
- }
48
- /**
49
- * Parse JSON output from a babysitter CLI command, returning null on failure.
50
- */
51
- function parseJsonOutput(output) {
52
- try {
53
- return JSON.parse(output.trim());
54
- }
55
- catch {
56
- return null;
57
- }
58
- }
59
- // ---------------------------------------------------------------------------
60
- // BridgeHookEmulator
61
- // ---------------------------------------------------------------------------
62
- export class BridgeHookEmulator {
63
- ctx;
64
- bin;
65
- runId;
66
- constructor(ctx) {
67
- this.ctx = ctx;
68
- this.bin = resolveBabysitterBin(ctx.env);
69
- }
70
- /**
71
- * Emulate the session-start lifecycle hook.
72
- *
73
- * If the harness supports session-start natively, this is a no-op.
74
- * If emulated, it invokes `babysitter hook:run --hook-type session-start`
75
- * which creates a bare run and initializes session state.
76
- */
77
- async emulateSessionStart() {
78
- const level = await getHookSupportLevel(this.ctx.harness, 'sessionStart');
79
- if (level === 'native') {
80
- return { emulated: false };
81
- }
82
- if (level === 'unsupported' || level === 'emulated' || level === undefined) {
83
- try {
84
- const args = [
85
- 'hook:run',
86
- '--hook-type', 'session-start',
87
- '--harness', this.ctx.harness,
88
- '--json',
89
- ];
90
- if (this.ctx.runsDir) {
91
- args.push('--runs-dir', this.ctx.runsDir);
92
- }
93
- const output = await execBabysitterCommand(this.bin, args, {
94
- cwd: this.ctx.cwd,
95
- env: this.ctx.env,
96
- verbose: this.ctx.verbose,
97
- });
98
- const result = parseJsonOutput(output);
99
- if (result?.runId) {
100
- this.runId = result.runId;
101
- }
102
- if (this.ctx.verbose) {
103
- console.error(`[bridge-hooks] session-start emulated, runId=${this.runId ?? 'none'}`);
104
- }
105
- return { runId: this.runId, emulated: true };
106
- }
107
- catch (err) {
108
- if (this.ctx.verbose) {
109
- const msg = err instanceof Error ? err.message : String(err);
110
- console.error(`[bridge-hooks] session-start emulation failed: ${msg}`);
111
- }
112
- // Non-fatal: continue without a run ID
113
- return { emulated: true };
114
- }
115
- }
116
- return { emulated: false };
117
- }
118
- /**
119
- * Emulate the stop lifecycle hook.
120
- *
121
- * If the harness supports stop natively, this is a no-op.
122
- * If emulated:
123
- * 1. Queries `babysitter run:status <runDir> --json` to check run state
124
- * 2. If run has pending effects or is not completed: shouldContinue=true
125
- * 3. If run is completed: shouldContinue=false
126
- * 4. Returns a resumeId for session resume if continuing
127
- */
128
- async emulateStop(runId) {
129
- const effectiveRunId = runId ?? this.runId;
130
- const level = await getHookSupportLevel(this.ctx.harness, 'stop');
131
- if (level === 'native') {
132
- return { shouldContinue: false, emulated: false };
133
- }
134
- if (!effectiveRunId) {
135
- if (this.ctx.verbose) {
136
- console.error('[bridge-hooks] stop: no runId available, cannot check run state');
137
- }
138
- return { shouldContinue: false, emulated: true };
139
- }
140
- if (level === 'unsupported' || level === 'emulated' || level === undefined) {
141
- try {
142
- const runDir = this.ctx.runsDir
143
- ? `${this.ctx.runsDir}/${effectiveRunId}`
144
- : effectiveRunId;
145
- const args = ['run:status', runDir, '--json'];
146
- const output = await execBabysitterCommand(this.bin, args, {
147
- cwd: this.ctx.cwd,
148
- env: this.ctx.env,
149
- verbose: this.ctx.verbose,
150
- });
151
- const status = parseJsonOutput(output);
152
- if (!status) {
153
- if (this.ctx.verbose) {
154
- console.error('[bridge-hooks] stop: failed to parse run:status output');
155
- }
156
- return { shouldContinue: false, emulated: true };
157
- }
158
- const isCompleted = status.state === 'completed';
159
- const hasPending = (status.pendingEffectsSummary?.totalPending ?? 0) > 0;
160
- const needsMore = status.needsMoreIterations === true;
161
- const shouldContinue = !isCompleted && (hasPending || needsMore);
162
- if (this.ctx.verbose) {
163
- console.error(`[bridge-hooks] stop: state=${status.state}, pending=${hasPending}, ` +
164
- `needsMore=${needsMore}, shouldContinue=${shouldContinue}`);
165
- }
166
- return {
167
- shouldContinue,
168
- resumeId: shouldContinue ? this.ctx.sessionId : undefined,
169
- emulated: true,
170
- };
171
- }
172
- catch (err) {
173
- if (this.ctx.verbose) {
174
- const msg = err instanceof Error ? err.message : String(err);
175
- console.error(`[bridge-hooks] stop emulation failed: ${msg}`);
176
- }
177
- // On error, don't continue — safer default
178
- return { shouldContinue: false, emulated: true };
179
- }
180
- }
181
- return { shouldContinue: false, emulated: false };
182
- }
183
- /**
184
- * Emulate the session-end lifecycle hook.
185
- *
186
- * If the harness supports session-end natively, this is a no-op.
187
- * If emulated, invokes `babysitter hook:run --hook-type session-end`.
188
- */
189
- async emulateSessionEnd() {
190
- const level = await getHookSupportLevel(this.ctx.harness, 'sessionEnd');
191
- if (level === 'native') {
192
- return;
193
- }
194
- if (level === 'unsupported' || level === 'emulated' || level === undefined) {
195
- try {
196
- const args = [
197
- 'hook:run',
198
- '--hook-type', 'session-end',
199
- '--harness', this.ctx.harness,
200
- '--json',
201
- ];
202
- if (this.ctx.runsDir) {
203
- args.push('--runs-dir', this.ctx.runsDir);
204
- }
205
- await execBabysitterCommand(this.bin, args, {
206
- cwd: this.ctx.cwd,
207
- env: this.ctx.env,
208
- verbose: this.ctx.verbose,
209
- });
210
- if (this.ctx.verbose) {
211
- console.error('[bridge-hooks] session-end emulated');
212
- }
213
- }
214
- catch (err) {
215
- if (this.ctx.verbose) {
216
- const msg = err instanceof Error ? err.message : String(err);
217
- console.error(`[bridge-hooks] session-end emulation failed: ${msg}`);
218
- }
219
- // Non-fatal: swallow errors on session-end
220
- }
221
- }
222
- }
223
- /** Return the current run ID, if one was created during session-start. */
224
- getRunId() {
225
- return this.runId;
226
- }
227
- }
7
+ export { BridgeHookEmulator, } from '@a5c-ai/agent-launch-mux';
228
8
  //# sourceMappingURL=launch-bridge-hooks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"launch-bridge-hooks.js","sourceRoot":"","sources":["../../src/commands/launch-bridge-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4BH,8EAA8E;AAC9E,mBAAmB;AACnB,8EAA8E;AAE9E,kEAAkE;AAClE,SAAS,oBAAoB,CAAC,GAA2B;IACvD,OAAO,GAAG,CAAC,gBAAgB,CAAC,IAAI,YAAY,CAAC;AAC/C,CAAC;AAED,+EAA+E;AAC/E,KAAK,UAAU,qBAAqB,CAClC,GAAW,EACX,IAAc,EACd,OAAwE;IAExE,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAE5D,MAAM,SAAS,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAErD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,wBAAwB,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE;QACrC,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,GAAG,EAAE,SAAS;QACd,QAAQ,EAAE,OAAO;Q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,CAAC,GAAG,CAAC,OAAO;iBAC1B,CAAC,CAAC;gBAEH,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;oBACrB,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAC;gBACvD,CAAC;YACH,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,IAAI,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;oBACrB,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;oBAC7D,OAAO,CAAC,KAAK,CAAC,gDAAgD,GAAG,EAAE,CAAC,CAAC;gBACvE,CAAC;gBACD,2CAA2C;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IAED,0EAA0E;IAC1E,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
1
+ {"version":3,"file":"launch-bridge-hooks.js","sourceRoot":"","sources":["../../src/commands/launch-bridge-hooks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,kBAAkB,GACnB,MAAM,0BAA0B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Backward-compatibility re-exports.
2
+ * Completion engine — thin wrapper.
3
3
  *
4
- * The completion engine implementations now live in @a5c-ai/transport-mux.
5
- * This module re-exports them so existing import paths continue to work.
4
+ * The implementation now lives in @a5c-ai/agent-launch-mux.
5
+ * This module re-exports everything for backward compatibility.
6
6
  */
7
- export { createOpenAICompletionEngine, createGoogleCompletionEngine } from '@a5c-ai/transport-mux';
7
+ export { createOpenAICompletionEngine, createGoogleCompletionEngine, } from '@a5c-ai/agent-launch-mux';
@@ -1 +1 @@
1
- {"version":3,"file":"launch-completion-engine.d.ts","sourceRoot":"","sources":["../../src/commands/launch-completion-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"launch-completion-engine.d.ts","sourceRoot":"","sources":["../../src/commands/launch-completion-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Backward-compatibility re-exports.
2
+ * Completion engine — thin wrapper.
3
3
  *
4
- * The completion engine implementations now live in @a5c-ai/transport-mux.
5
- * This module re-exports them so existing import paths continue to work.
4
+ * The implementation now lives in @a5c-ai/agent-launch-mux.
5
+ * This module re-exports everything for backward compatibility.
6
6
  */
7
- export { createOpenAICompletionEngine, createGoogleCompletionEngine } from '@a5c-ai/transport-mux';
7
+ export { createOpenAICompletionEngine, createGoogleCompletionEngine, } from '@a5c-ai/agent-launch-mux';
8
8
  //# sourceMappingURL=launch-completion-engine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"launch-completion-engine.js","sourceRoot":"","sources":["../../src/commands/launch-completion-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,4BAA4B,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"launch-completion-engine.js","sourceRoot":"","sources":["../../src/commands/launch-completion-engine.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC"}
@@ -1,57 +1,8 @@
1
1
  /**
2
- * `amux launch` command implementation.
2
+ * `amux launch` command — thin wrapper.
3
3
  *
4
- * Resolves a launch plan for a given harness+provider combination,
5
- * optionally starts the transport-mux runtime, then exec-forks the harness with
6
- * stdin/stdout passthrough and proper signal forwarding.
4
+ * The launch orchestration logic now lives in @a5c-ai/agent-launch-mux.
5
+ * This module re-exports everything for backward compatibility.
7
6
  */
8
- import type { AgentMuxClient } from '@a5c-ai/agent-mux-core';
9
- import type { TransportId } from '@a5c-ai/agent-mux-core';
10
- import type { ParsedArgs, FlagDef } from '../parse-args.js';
11
- /** Launch-specific flag definitions (global flags like model/json/debug are excluded). */
12
- export declare const LAUNCH_FLAGS: Record<string, FlagDef>;
13
- export interface LaunchPlanInput {
14
- harness: string;
15
- provider?: string;
16
- model?: string;
17
- transport?: string;
18
- apiKey?: string;
19
- apiBase?: string;
20
- region?: string;
21
- project?: string;
22
- resourceGroup?: string;
23
- endpointName?: string;
24
- authCommand?: string;
25
- profile?: string;
26
- proxyMode: 'always' | 'if-needed' | 'never';
27
- proxyPort?: number;
28
- adapter?: {
29
- translateProvider?(config: Record<string, unknown>): any;
30
- };
31
- providerArgs?: Record<string, unknown>;
32
- }
33
- export interface ProxyPlan {
34
- targetProvider: string;
35
- targetModel: string;
36
- exposedTransport: TransportId;
37
- port: number;
38
- apiBase?: string;
39
- apiKey?: string;
40
- project?: string;
41
- location?: string;
42
- useVertexAi?: boolean;
43
- }
44
- export interface LaunchPlan {
45
- harness: string;
46
- provider: string;
47
- transport: string;
48
- model: string;
49
- proxyNeeded: boolean;
50
- proxyReason: string;
51
- proxy?: ProxyPlan;
52
- command: string;
53
- args: string[];
54
- env: Record<string, string>;
55
- }
56
- export declare function resolveLaunchPlan(input: LaunchPlanInput): LaunchPlan;
57
- export declare function launchCommand(client: AgentMuxClient, args: ParsedArgs): Promise<number>;
7
+ export { launchCommand, resolveLaunchPlan, LAUNCH_FLAGS, } from '@a5c-ai/agent-launch-mux';
8
+ export type { LaunchPlanInput, ProxyPlan, LaunchPlan, } from '@a5c-ai/agent-launch-mux';
@@ -1 +1 @@
1
- {"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../src/commands/launch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAM7D,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,wBAAwB,CAAC;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