@a5c-ai/agent-mux-cli 5.0.1-staging.00fa5317c493 → 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.
- package/dist/bootstrap.d.ts +1 -2
- package/dist/commands/adapters.d.ts +2 -7
- package/dist/commands/adapters.d.ts.map +1 -1
- package/dist/commands/adapters.js +2 -129
- package/dist/commands/adapters.js.map +1 -1
- package/dist/commands/agent.d.ts +1 -2
- package/dist/commands/auth.d.ts +2 -7
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +2 -134
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/config.d.ts +2 -7
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -218
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/detect-host.d.ts +2 -6
- package/dist/commands/detect-host.d.ts.map +1 -1
- package/dist/commands/detect-host.js +2 -30
- package/dist/commands/detect-host.js.map +1 -1
- package/dist/commands/doctor.d.ts +1 -2
- package/dist/commands/gateway/index.d.ts +1 -2
- package/dist/commands/gateway/serve.d.ts +0 -1
- package/dist/commands/gateway/status.d.ts +0 -1
- package/dist/commands/gateway/tokens.d.ts +0 -1
- package/dist/commands/help.d.ts +0 -1
- package/dist/commands/hooks.d.ts +1 -2
- package/dist/commands/hooks.js +1 -1
- package/dist/commands/install-helpers.d.ts +3 -23
- package/dist/commands/install-helpers.d.ts.map +1 -1
- package/dist/commands/install-helpers.js +2 -55
- package/dist/commands/install-helpers.js.map +1 -1
- package/dist/commands/install.d.ts +2 -23
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +2 -445
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/launch-bridge-hooks.d.ts +5 -57
- package/dist/commands/launch-bridge-hooks.d.ts.map +1 -1
- package/dist/commands/launch-bridge-hooks.js +4 -224
- package/dist/commands/launch-bridge-hooks.js.map +1 -1
- package/dist/commands/launch-completion-engine.d.ts +4 -5
- package/dist/commands/launch-completion-engine.d.ts.map +1 -1
- package/dist/commands/launch-completion-engine.js +4 -4
- package/dist/commands/launch-completion-engine.js.map +1 -1
- package/dist/commands/launch.d.ts +5 -55
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +4 -1267
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/mcp.d.ts +1 -2
- package/dist/commands/models.d.ts +1 -2
- package/dist/commands/models.js +1 -1
- package/dist/commands/plugin.d.ts +1 -2
- package/dist/commands/profiles.d.ts +1 -2
- package/dist/commands/profiles.js +1 -1
- package/dist/commands/remote.d.ts +1 -2
- package/dist/commands/remote.js +1 -1
- package/dist/commands/run.d.ts +1 -2
- package/dist/commands/run.js +1 -1
- package/dist/commands/sessions.d.ts +1 -2
- package/dist/commands/sessions.js +1 -1
- package/dist/commands/skill.d.ts +1 -2
- package/dist/commands/tui.d.ts +1 -2
- package/dist/commands/workspaces.d.ts +1 -2
- package/dist/commands/workspaces.js +1 -1
- package/dist/exit-codes.d.ts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -2
- package/dist/lib/agent-capabilities.d.ts +0 -1
- package/dist/lib/agent-skill-paths.d.ts +0 -1
- package/dist/lib/agent-subagent-paths.d.ts +0 -1
- package/dist/output.d.ts +0 -1
- package/dist/parse-args.d.ts +0 -1
- package/dist/read-stdin.d.ts +0 -1
- package/package.json +16 -6
|
@@ -1,33 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* under a supported agent harness.
|
|
2
|
+
* Re-export shim — detect-host logic now lives in @a5c-ai/agent-config-mux.
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
import { ExitCode } from '../exit-codes.js';
|
|
7
|
-
import { printJsonOk, printKeyValue } from '../output.js';
|
|
8
|
-
export async function detectHostCommand(client, args) {
|
|
9
|
-
const jsonMode = flagBool(args.flags, 'json') === true;
|
|
10
|
-
const info = client.detectHost();
|
|
11
|
-
if (jsonMode) {
|
|
12
|
-
printJsonOk({
|
|
13
|
-
detected: info !== null,
|
|
14
|
-
agent: info?.agent ?? null,
|
|
15
|
-
confidence: info?.confidence ?? null,
|
|
16
|
-
source: info?.source ?? null,
|
|
17
|
-
matchedSignals: info?.matchedSignals ?? [],
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
else if (info === null) {
|
|
21
|
-
process.stdout.write('No host harness detected. This process appears to be running from a shell.\n');
|
|
22
|
-
}
|
|
23
|
-
else {
|
|
24
|
-
printKeyValue([
|
|
25
|
-
['Host agent:', info.agent],
|
|
26
|
-
['Confidence:', info.confidence],
|
|
27
|
-
['Source:', info.source],
|
|
28
|
-
['Signals:', info.matchedSignals.join(', ') || '--'],
|
|
29
|
-
]);
|
|
30
|
-
}
|
|
31
|
-
return ExitCode.SUCCESS;
|
|
32
|
-
}
|
|
4
|
+
export { detectHostCommand } from '@a5c-ai/agent-config-mux';
|
|
33
5
|
//# sourceMappingURL=detect-host.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect-host.js","sourceRoot":"","sources":["../../src/commands/detect-host.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"detect-host.js","sourceRoot":"","sources":["../../src/commands/detect-host.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AgentMuxClient } from '@a5c-ai/agent-mux
|
|
1
|
+
import type { AgentMuxClient } from '@a5c-ai/agent-comm-mux';
|
|
2
2
|
import type { ParsedArgs } from '../parse-args.js';
|
|
3
3
|
export declare function doctorCommand(client: AgentMuxClient, args: ParsedArgs): Promise<number>;
|
|
4
|
-
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { AgentMuxClient } from '@a5c-ai/agent-mux
|
|
1
|
+
import type { AgentMuxClient } from '@a5c-ai/agent-comm-mux';
|
|
2
2
|
import type { ParsedArgs } from '../../parse-args.js';
|
|
3
3
|
import type { FlagDef } from '../../parse-args.js';
|
|
4
4
|
export declare const GATEWAY_FLAGS: Record<string, FlagDef>;
|
|
5
5
|
export declare function gatewayCommand(_client: AgentMuxClient, args: ParsedArgs): Promise<number>;
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,4 +3,3 @@ import type { ParsedArgs } from '../../parse-args.js';
|
|
|
3
3
|
export declare const DEFAULT_GATEWAY_CONFIG_PATH: string;
|
|
4
4
|
export declare function loadGatewayConfig(configPath: string): Promise<Partial<GatewayConfig>>;
|
|
5
5
|
export declare function serveGatewayCommand(args: ParsedArgs): Promise<number>;
|
|
6
|
-
//# sourceMappingURL=serve.d.ts.map
|
package/dist/commands/help.d.ts
CHANGED
package/dist/commands/hooks.d.ts
CHANGED
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* set <id> [--priority N] [--enabled true|false] [--target <t>]
|
|
10
10
|
* handle <hookType> Read JSON payload on stdin, dispatch, emit unified result.
|
|
11
11
|
*/
|
|
12
|
-
import type { AgentMuxClient } from '@a5c-ai/agent-mux
|
|
12
|
+
import type { AgentMuxClient } from '@a5c-ai/agent-comm-mux';
|
|
13
13
|
import type { ParsedArgs } from '../parse-args.js';
|
|
14
14
|
import type { FlagDef } from '../parse-args.js';
|
|
15
15
|
export declare const HOOKS_FLAGS: Record<string, FlagDef>;
|
|
16
16
|
export declare function hooksCommand(_client: AgentMuxClient, args: ParsedArgs): Promise<number>;
|
|
17
|
-
//# sourceMappingURL=hooks.d.ts.map
|
package/dist/commands/hooks.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* set <id> [--priority N] [--enabled true|false] [--target <t>]
|
|
10
10
|
* handle <hookType> Read JSON payload on stdin, dispatch, emit unified result.
|
|
11
11
|
*/
|
|
12
|
-
import { HookConfigManager, HookDispatcher, builtInHooks, getHookCatalog, parseHookPayload, formatHookResult, } from '@a5c-ai/agent-mux
|
|
12
|
+
import { HookConfigManager, HookDispatcher, builtInHooks, getHookCatalog, parseHookPayload, formatHookResult, } from '@a5c-ai/agent-comm-mux';
|
|
13
13
|
import { flagBool, flagStr } from '../parse-args.js';
|
|
14
14
|
import { ExitCode } from '../exit-codes.js';
|
|
15
15
|
import { printError, printJsonError, printJsonOk, printTable, } from '../output.js';
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Split out to keep `install.ts` under the max-file-lines budget.
|
|
2
|
+
* Re-export shim — install helpers now live in @a5c-ai/agent-config-mux.
|
|
4
3
|
*/
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
stdout: string;
|
|
8
|
-
stderr: string;
|
|
9
|
-
}>;
|
|
10
|
-
/**
|
|
11
|
-
* Create a SpawnRunner. When `echo` is true, child output is mirrored to
|
|
12
|
-
* the CLI's stdout/stderr (useful for long-running install commands in
|
|
13
|
-
* human mode). When false (default for JSON/detect), child output is
|
|
14
|
-
* captured silently so it doesn't contaminate structured output.
|
|
15
|
-
*/
|
|
16
|
-
export declare function makeSpawnRunner(echo: boolean): SpawnRunner;
|
|
17
|
-
export declare const defaultSpawnRunner: SpawnRunner;
|
|
18
|
-
export declare const silentSpawnRunner: SpawnRunner;
|
|
19
|
-
/**
|
|
20
|
-
* Temporarily swallow writes to process.stdout/stderr while `fn` runs.
|
|
21
|
-
* Used to suppress per-agent JSON envelopes when `--all --json` aggregates
|
|
22
|
-
* results into a single response.
|
|
23
|
-
*/
|
|
24
|
-
export declare function runSilently<T>(fn: () => Promise<T>): Promise<T>;
|
|
25
|
-
//# sourceMappingURL=install-helpers.d.ts.map
|
|
4
|
+
export { makeSpawnRunner, defaultSpawnRunner, silentSpawnRunner, runSilently, } from '@a5c-ai/agent-config-mux';
|
|
5
|
+
export type { SpawnRunner } from '@a5c-ai/agent-config-mux';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/install-helpers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"install-helpers.d.ts","sourceRoot":"","sources":["../../src/commands/install-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,MAAM,0BAA0B,CAAC;AAElC,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,58 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Split out to keep `install.ts` under the max-file-lines budget.
|
|
2
|
+
* Re-export shim — install helpers now live in @a5c-ai/agent-config-mux.
|
|
4
3
|
*/
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Create a SpawnRunner. When `echo` is true, child output is mirrored to
|
|
8
|
-
* the CLI's stdout/stderr (useful for long-running install commands in
|
|
9
|
-
* human mode). When false (default for JSON/detect), child output is
|
|
10
|
-
* captured silently so it doesn't contaminate structured output.
|
|
11
|
-
*/
|
|
12
|
-
export function makeSpawnRunner(echo) {
|
|
13
|
-
return (command, args) => new Promise((resolve, reject) => {
|
|
14
|
-
const child = spawn(command, args, {
|
|
15
|
-
stdio: ['ignore', 'pipe', 'pipe'],
|
|
16
|
-
shell: false,
|
|
17
|
-
windowsHide: true,
|
|
18
|
-
});
|
|
19
|
-
let stdout = '';
|
|
20
|
-
let stderr = '';
|
|
21
|
-
child.stdout?.setEncoding('utf8');
|
|
22
|
-
child.stderr?.setEncoding('utf8');
|
|
23
|
-
child.stdout?.on('data', (c) => {
|
|
24
|
-
stdout += c;
|
|
25
|
-
if (echo)
|
|
26
|
-
process.stdout.write(c);
|
|
27
|
-
});
|
|
28
|
-
child.stderr?.on('data', (c) => {
|
|
29
|
-
stderr += c;
|
|
30
|
-
if (echo)
|
|
31
|
-
process.stderr.write(c);
|
|
32
|
-
});
|
|
33
|
-
child.on('error', (err) => reject(err));
|
|
34
|
-
child.on('exit', (code) => resolve({ code: code ?? 1, stdout, stderr }));
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
export const defaultSpawnRunner = makeSpawnRunner(true);
|
|
38
|
-
export const silentSpawnRunner = makeSpawnRunner(false);
|
|
39
|
-
/**
|
|
40
|
-
* Temporarily swallow writes to process.stdout/stderr while `fn` runs.
|
|
41
|
-
* Used to suppress per-agent JSON envelopes when `--all --json` aggregates
|
|
42
|
-
* results into a single response.
|
|
43
|
-
*/
|
|
44
|
-
export async function runSilently(fn) {
|
|
45
|
-
const origOut = process.stdout.write.bind(process.stdout);
|
|
46
|
-
const origErr = process.stderr.write.bind(process.stderr);
|
|
47
|
-
const noop = ((..._a) => true);
|
|
48
|
-
process.stdout.write = noop;
|
|
49
|
-
process.stderr.write = noop;
|
|
50
|
-
try {
|
|
51
|
-
return await fn();
|
|
52
|
-
}
|
|
53
|
-
finally {
|
|
54
|
-
process.stdout.write = origOut;
|
|
55
|
-
process.stderr.write = origErr;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
4
|
+
export { makeSpawnRunner, defaultSpawnRunner, silentSpawnRunner, runSilently, } from '@a5c-ai/agent-config-mux';
|
|
58
5
|
//# sourceMappingURL=install-helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install-helpers.js","sourceRoot":"","sources":["../../src/commands/install-helpers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"install-helpers.js","sourceRoot":"","sources":["../../src/commands/install-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,GACZ,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* and `amux uninstall <agent>` commands.
|
|
4
|
-
*
|
|
5
|
-
* Dispatches to the adapter's per-agent install/update/detect methods,
|
|
6
|
-
* so each harness may override behavior.
|
|
7
|
-
*
|
|
8
|
-
* @see docs/10-cli-reference.md
|
|
2
|
+
* Re-export shim — install logic now lives in @a5c-ai/agent-config-mux.
|
|
9
3
|
*/
|
|
10
|
-
|
|
11
|
-
import type { ParsedArgs, FlagDef } from '../parse-args.js';
|
|
12
|
-
import { type SpawnRunner as HelperSpawnRunner } from './install-helpers.js';
|
|
13
|
-
/** Flags recognized by the install/uninstall/update/detect commands. */
|
|
14
|
-
export declare const INSTALL_FLAGS: Record<string, FlagDef>;
|
|
15
|
-
export type SpawnRunner = HelperSpawnRunner;
|
|
16
|
-
export interface InstallCommandDeps {
|
|
17
|
-
/** Back-compat: overrides the adapter's internal Spawner for this run. */
|
|
18
|
-
spawnRunner?: SpawnRunner;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Handle `amux install [<agent>] [--all]`, `amux update [<agent>] [--all]`,
|
|
22
|
-
* `amux detect [<agent>] [--all]`, and `amux uninstall <agent>`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function installCommand(client: AgentMuxClient, args: ParsedArgs, deps?: InstallCommandDeps): Promise<number>;
|
|
25
|
-
//# sourceMappingURL=install.d.ts.map
|
|
4
|
+
export { installCommand, INSTALL_FLAGS, type SpawnRunner, type InstallCommandDeps, } from '@a5c-ai/agent-config-mux';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,cAAc,EACd,aAAa,EACb,KAAK,WAAW,EAChB,KAAK,kBAAkB,GACxB,MAAM,0BAA0B,CAAC"}
|