@pwrdrvr/agent-acp 0.16.1 → 0.17.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
- import { Client, McpServer } from '@agentclientprotocol/sdk';
1
+ import { Client } from '@agentclientprotocol/sdk';
2
2
  import { Logger, AgentBackend, NormalizedThreadEvent, Unsubscribe, AgentBackendToolCallHandler, AgentBackendApprovalHandler, AgentStartThreadOptions, AgentBackendStartThreadResult, AgentStartTurnOptions, NormalizedTokenUsage, NormalizedToolCall } from '@pwrdrvr/agent-core';
3
3
  import { JsonRpcId } from '@pwrdrvr/agent-transport';
4
+ import { a as AcpAgentStrategy, A as AcpAgentQuirks } from './strategy-types-C7yw6yQL.js';
5
+ export { b as AcpDiscoveryProbe, c as AcpSpawnSpec, L as LocalAcpAgentProbe, d as LocalAcpProbeOptions, e as LocalAcpProbeResult, f as buildAcpBackendId, g as defaultQuirks } from './strategy-types-C7yw6yQL.js';
6
+ import { AcpMcpServerConfig } from './mcp-server-config.js';
7
+ export { AcpHttpMcpServerConfig, AcpMcpKeyValue, AcpMcpKeyValueCollection, AcpMcpServerWireConfig, AcpSseMcpServerConfig, AcpStdioMcpServerConfig, normalizeAcpMcpServerConfig, normalizeAcpMcpServerConfigs } from './mcp-server-config.js';
8
+ export { BUILT_IN_ACP_STRATEGIES, buildStrategyTable, geminiStrategy, grokStrategy, kimiStrategy, qwenStrategy, strategyByBackendId, strategyById } from './strategies.js';
9
+ export { ACP_REGISTRY_URL, AcpAgentAllowlist, AcpAgentAllowlistRule, AcpAgentInstanceSource, AcpAllowlistDecision, AcpBinaryPlatformDistribution, AcpDistributionKind, AcpDistributionPolicy, AcpPackageDistribution, AcpPathExecutableLister, AcpRegistryAgent, AcpRegistryAgentWithPolicy, AcpRegistryAuthDescriptor, AcpRegistryAuthMethod, AcpRegistryDistribution, AcpRegistryFetch, AcpRegistryService, AcpRegistryServiceOptions, AcpRegistrySnapshot, AcpVerificationStatus, BANNED_ACP_REGISTRY_IDS, DEFAULT_ACP_AGENT_ALLOWLIST, DEFAULT_ACP_PROBE_TIMEOUT_MS, DiscoveredAcpAgent, DiscoveredAcpAgentGroup, DiscoveredAcpAgentInstance, LocalAcpDiscoveryOptions, RejectedAcpAgentInstance, defaultAcpAgentAllowlist, discoverLocalAcpAgentInstances, discoverLocalAcpAgents, evaluateAcpDistributionPolicy, isBannedAcpRegistryId, normalizeRegistry, wellKnownAgentBinDirs } from './discovery.js';
4
10
 
5
11
  interface AcpJsonRpcTransport {
6
12
  request(method: string, params?: Record<string, unknown>, timeoutMs?: number): Promise<unknown>;
@@ -75,87 +81,6 @@ declare class AcpConnection implements AcpJsonRpcTransport {
75
81
  onRequest(listener: (method: string, params: Record<string, unknown>, id?: JsonRpcId) => Promise<unknown> | unknown): () => void;
76
82
  }
77
83
 
78
- type LocalAcpProbeResult = {
79
- stdout?: string | Buffer;
80
- stderr?: string | Buffer;
81
- };
82
- type LocalAcpProbeOptions = {
83
- /** Budget for this probe spawn. An injected probe should honor it so a slow
84
- * CLI is reported as "did not answer in time", not as "not installed". */
85
- timeoutMs?: number | undefined;
86
- /** Fires when discovery is abandoned mid-probe. */
87
- signal?: AbortSignal | undefined;
88
- };
89
- type LocalAcpAgentProbe = (command: string, args: string[], options?: LocalAcpProbeOptions) => Promise<LocalAcpProbeResult>;
90
- /** How a strategy decides it is installed + ACP-capable on this machine. */
91
- type AcpDiscoveryProbe = {
92
- /** Args that print a version (probed first; failure = not installed). */
93
- versionArgs: string[];
94
- /** Args probed to confirm ACP support. When `helpMatches` is set the OUTPUT
95
- * must match it; when omitted, a SUCCESSFUL probe (exit 0) is itself the
96
- * signal — for args that are an ACP subcommand whose mere existence proves
97
- * capability (e.g. `kimi acp --help`). */
98
- helpArgs: string[];
99
- /** Regex the help/usage output must match for the agent to count as
100
- * ACP-capable. OMIT to rely on the help probe's EXIT CODE instead — more
101
- * robust than parsing help prose, which drifts across CLI versions. */
102
- helpMatches?: RegExp;
103
- /** Bare command name tried first. */
104
- command: string;
105
- /** Additional candidate command paths (Homebrew prefixes, `~/.<agent>/bin`, …). */
106
- fallbackCommands?: string[];
107
- };
108
- /** Launch invocation: how to spawn the CLI in ACP stdio server mode. */
109
- type AcpSpawnSpec = {
110
- /** Command to run (resolved against the discovered candidate at spawn time). */
111
- command: string;
112
- /** Args that put the CLI into ACP stdio server mode (e.g. `["--acp"]`). */
113
- args: string[];
114
- /** Extra env to set when launching (e.g. Gemini workspace-trust). */
115
- env?: Record<string, string>;
116
- /** Extra args appended only when missing (e.g. Gemini `--skip-trust`). */
117
- ensureArgs?: string[];
118
- };
119
- /**
120
- * Normalization quirks the normalizer reads. NO agent-id literal ever appears
121
- * in the normalizer — it reads these fields off the strategy it was constructed
122
- * with. A synthetic strategy with different quirk values flows through the
123
- * normalizer with zero normalizer changes (asserted in tests).
124
- */
125
- type AcpAgentQuirks = {
126
- /**
127
- * Whether agent "thought"/reasoning chunks surface as assistant messages.
128
- * Qwen sets this false (its thoughts are noisy scaffolding); others true.
129
- */
130
- surfaceThoughts: boolean;
131
- /**
132
- * Where the auto-generated thread title comes from:
133
- * • "topic-update" — a `tool_call` titled `Update topic to: "…"` (Gemini/Kimi/Qwen);
134
- * • "session-summary" — a vendor `session_summary_generated` update (Grok);
135
- * • "both" — recognize either.
136
- */
137
- titleFrom: "topic-update" | "session-summary" | "both";
138
- /** Vendor notification methods routed through the same session/update path. */
139
- vendorNotificationMethods?: string[];
140
- };
141
- type AcpAgentStrategy = {
142
- /** Strategy id, also the registry id (`gemini`, `grok`, `kimi`, `qwen`, …). */
143
- id: string;
144
- /** Neutral backend id (`acp:<id>`) used as the thread/session correlation key. */
145
- backendId: string;
146
- displayName: string;
147
- authors: string[];
148
- license?: string;
149
- repositoryUrl?: string;
150
- discoveryProbe: AcpDiscoveryProbe;
151
- spawn: AcpSpawnSpec;
152
- quirks: AcpAgentQuirks;
153
- };
154
- /** Build the neutral backend id for a registry id. */
155
- declare function buildAcpBackendId(registryId: string): string;
156
- /** Quirks for an unknown/synthetic strategy default to the common case. */
157
- declare function defaultQuirks(overrides?: Partial<AcpAgentQuirks>): AcpAgentQuirks;
158
-
159
84
  type AcpRuntimeConfigOptionValue = {
160
85
  value: string;
161
86
  label?: string;
@@ -264,43 +189,6 @@ declare function mergeAcpRuntimeState(existing: AcpSessionRuntimeState | undefin
264
189
  /** Resolve the human-facing label for a mode id from the capabilities snapshot. */
265
190
  declare function modeLabelFor(capabilities: AcpRuntimeCapabilities | undefined, modeId: string): string | undefined;
266
191
 
267
- /** ACP key/value entry used by stdio environments and HTTP headers. */
268
- type AcpMcpKeyValue = {
269
- name: string;
270
- value: string;
271
- };
272
- /** Host-friendly collection accepted wherever ACP requires key/value entries. */
273
- type AcpMcpKeyValueCollection = Readonly<Record<string, string>> | readonly AcpMcpKeyValue[];
274
- /** Backward-compatible stdio MCP configuration. ACP stdio has no `type` field. */
275
- type AcpStdioMcpServerConfig = {
276
- name: string;
277
- command: string;
278
- args?: readonly string[];
279
- env?: AcpMcpKeyValueCollection;
280
- };
281
- /** Streamable HTTP MCP configuration from the ACP v1 schema. */
282
- type AcpHttpMcpServerConfig = {
283
- name: string;
284
- type: "http";
285
- url: string;
286
- headers: AcpMcpKeyValueCollection;
287
- };
288
- /** Legacy HTTP+SSE MCP configuration from the ACP v1 schema. */
289
- type AcpSseMcpServerConfig = {
290
- name: string;
291
- type: "sse";
292
- url: string;
293
- headers: AcpMcpKeyValueCollection;
294
- };
295
- /** Public MCP input accepted by agent-acp session lifecycle methods. */
296
- type AcpMcpServerConfig = AcpStdioMcpServerConfig | AcpHttpMcpServerConfig | AcpSseMcpServerConfig;
297
- /** Exact MCP server wire union from the pinned ACP protocol library. */
298
- type AcpMcpServerWireConfig = McpServer;
299
- /** Serialize a host-friendly config into the exact ACP v1 wire representation. */
300
- declare function normalizeAcpMcpServerConfig(server: AcpMcpServerConfig): AcpMcpServerWireConfig;
301
- /** Serialize a per-session list without retaining mutable caller collections. */
302
- declare function normalizeAcpMcpServerConfigs(servers: readonly AcpMcpServerConfig[]): AcpMcpServerWireConfig[];
303
-
304
192
  type AcpPromptContentBlock = {
305
193
  type: "text";
306
194
  text: string;
@@ -733,240 +621,4 @@ declare function readFirstLocationPath(record: Record<string, unknown>): string
733
621
  /** The assistant/user text carried by a chunk update (camel/snake tolerant). */
734
622
  declare function readUpdateText(update: Record<string, unknown>): string | undefined;
735
623
 
736
- declare const geminiStrategy: AcpAgentStrategy;
737
-
738
- declare const grokStrategy: AcpAgentStrategy;
739
-
740
- declare const kimiStrategy: AcpAgentStrategy;
741
-
742
- declare const qwenStrategy: AcpAgentStrategy;
743
-
744
- declare const BUILT_IN_ACP_STRATEGIES: readonly AcpAgentStrategy[];
745
- /** Index a list of strategies by id (built-ins by default). */
746
- declare function buildStrategyTable(strategies?: readonly AcpAgentStrategy[]): Map<string, AcpAgentStrategy>;
747
- /** Look up a strategy by its registry id, falling back to the built-in table. */
748
- declare function strategyById(id: string, table?: Map<string, AcpAgentStrategy>): AcpAgentStrategy | undefined;
749
- /** Look up a strategy by its neutral backend id (`acp:<id>`). */
750
- declare function strategyByBackendId(backendId: string, strategies?: readonly AcpAgentStrategy[]): AcpAgentStrategy | undefined;
751
-
752
- /** How a discovered instance's executable path was located. */
753
- type AcpAgentInstanceSource = "override" | "path" | "fallback";
754
- /** One installed executable of an agent that passed the probe. */
755
- type DiscoveredAcpAgentInstance = {
756
- /** Resolved command/path that passed the probe. */
757
- command: string;
758
- /** Parsed CLI version, when the version probe yielded one. */
759
- version?: string;
760
- /** Where this candidate came from (user override, `PATH`, or a fallback path). */
761
- source: AcpAgentInstanceSource;
762
- };
763
- /** A detected executable that did not satisfy a strategy's discovery probe.
764
- * It is diagnostic-only: hosts must never use it to launch an ACP session. */
765
- type RejectedAcpAgentInstance = {
766
- command: string;
767
- /** Parsed from successful `--version` output when available. */
768
- version?: string;
769
- source: AcpAgentInstanceSource;
770
- /** `probe-timed-out` means the CLI did not answer within the probe budget —
771
- * UNLIKE the other reasons it is not a verdict on the CLI, and a host may
772
- * re-probe on a larger `probeTimeoutMs` instead of reporting it unusable. */
773
- reason: "version-probe-failed" | "acp-probe-failed" | "acp-help-mismatch" | "probe-timed-out";
774
- };
775
- /** Every installed instance of one agent found on this machine. */
776
- type DiscoveredAcpAgentGroup = {
777
- strategyId: string;
778
- backendId: string;
779
- name: string;
780
- /** Spawn args that put it into ACP stdio mode (same for every instance). */
781
- args: string[];
782
- /** Extra env to set at launch (same for every instance). */
783
- env: Record<string, string>;
784
- /** All instances that passed the probe, in candidate order (override → PATH → fallback). */
785
- instances: DiscoveredAcpAgentInstance[];
786
- /** Detected candidates that failed the version or ACP-capability probe. Only
787
- * populated when `includeRejectedCandidates` is enabled. */
788
- rejectedInstances?: RejectedAcpAgentInstance[];
789
- discoveredAt: number;
790
- };
791
- type DiscoveredAcpAgent = {
792
- strategyId: string;
793
- backendId: string;
794
- name: string;
795
- version?: string;
796
- /** Resolved command that passed the probe (may be a fallback path). */
797
- command: string;
798
- /** Spawn args that put it into ACP stdio mode. */
799
- args: string[];
800
- /** Extra env to set at launch. */
801
- env: Record<string, string>;
802
- discoveredAt: number;
803
- };
804
- /** Lists every executable named `command` across the dirs in `env.PATH`,
805
- * in `PATH` order (the `which -a` view). */
806
- type AcpPathExecutableLister = (command: string, env: NodeJS.ProcessEnv) => string[];
807
- type LocalAcpDiscoveryOptions = {
808
- probe?: LocalAcpAgentProbe;
809
- now?: () => number;
810
- /** Strategy table to probe (built-ins by default). */
811
- strategies?: readonly AcpAgentStrategy[];
812
- /** Per-strategy command override (tried before the strategy's own candidates). */
813
- overrides?: Record<string, string>;
814
- /** Env used both for PATH enumeration and (by the default probe) for spawns. */
815
- env?: NodeJS.ProcessEnv;
816
- /** Injectable `PATH` executable lister (real-fs scan by default). */
817
- listExecutables?: AcpPathExecutableLister;
818
- /** Include candidates known to exist but rejected by a discovery probe.
819
- * Defaults false to preserve the legacy installed-only result. */
820
- includeRejectedCandidates?: boolean;
821
- /** Budget for ONE probe spawn (the default probe only — an injected `probe`
822
- * owns its own timing). Defaults to `DEFAULT_ACP_PROBE_TIMEOUT_MS`. */
823
- probeTimeoutMs?: number;
824
- /** Abandon discovery in flight (re-triggered discovery, app quitting).
825
- * Already-probed groups are still returned. */
826
- signal?: AbortSignal;
827
- };
828
- /**
829
- * Budget for one ACP discovery probe spawn, in ms.
830
- *
831
- * Unchanged from the value this module has always used. Kept lower than
832
- * codex-discovery's version-probe budget on purpose: `discoverStrategyInstances`
833
- * walks its candidates SERIALLY, so the worst case here is (candidates x
834
- * budget) rather than a single budget. Hosts that scan machines with many
835
- * installed copies can raise it knowingly via `probeTimeoutMs`.
836
- */
837
- declare const DEFAULT_ACP_PROBE_TIMEOUT_MS = 5000;
838
- /**
839
- * Discover every installed instance of each agent (all `PATH` matches +
840
- * fallbacks + override that pass the probe), grouped per strategy. Groups with
841
- * no passing instance are omitted unless `includeRejectedCandidates` is true
842
- * and a detected candidate failed a probe.
843
- */
844
- declare function discoverLocalAcpAgentInstances(options?: LocalAcpDiscoveryOptions): Promise<DiscoveredAcpAgentGroup[]>;
845
- /**
846
- * First-match-per-agent discovery (legacy view). Returns at most one record per
847
- * agent — the first instance that passed the probe in candidate order.
848
- */
849
- declare function discoverLocalAcpAgents(options?: LocalAcpDiscoveryOptions): Promise<DiscoveredAcpAgent[]>;
850
- /** Well-known bin dirs where a CLI installed via a node/JS version manager or
851
- * a per-user package manager lives — even when it isn't on a GUI app's `PATH`.
852
- * Exported for testing; `home` defaults to the user's home dir. */
853
- declare function wellKnownAgentBinDirs(home?: string): string[];
854
-
855
- declare const ACP_REGISTRY_URL = "https://cdn.agentclientprotocol.com/registry/v1/latest/registry.json";
856
- type AcpDistributionKind = "npx" | "uvx" | "binary" | "local";
857
- type AcpRegistryDistributionEnv = Record<string, string>;
858
- type AcpPackageDistribution = {
859
- kind: "npx" | "uvx";
860
- packageName: string;
861
- args: string[];
862
- env: AcpRegistryDistributionEnv;
863
- };
864
- type AcpBinaryPlatformDistribution = {
865
- kind: "binary";
866
- platform: string;
867
- archiveUrl: string;
868
- command: string;
869
- args: string[];
870
- env: AcpRegistryDistributionEnv;
871
- checksum?: string;
872
- signatureUrl?: string;
873
- };
874
- type AcpRegistryDistribution = AcpPackageDistribution | AcpBinaryPlatformDistribution;
875
- type AcpRegistryAuthMethod = "agent-managed" | "terminal" | "unknown";
876
- type AcpRegistryAuthDescriptor = {
877
- required: boolean;
878
- methods: AcpRegistryAuthMethod[];
879
- raw?: unknown;
880
- };
881
- type AcpRegistryAgent = {
882
- id: string;
883
- backendId: string;
884
- name: string;
885
- version?: string;
886
- description?: string;
887
- authors: string[];
888
- license?: string;
889
- repositoryUrl?: string;
890
- websiteUrl?: string;
891
- iconUrl?: string;
892
- distributions: AcpRegistryDistribution[];
893
- distributionKinds: AcpDistributionKind[];
894
- auth: AcpRegistryAuthDescriptor;
895
- raw: unknown;
896
- };
897
- type AcpVerificationStatus = "verified" | "unverified-allowed" | "unverified-blocked" | "not-applicable";
898
- type AcpAllowlistDecision = {
899
- allowed: true;
900
- ruleId: string;
901
- unverifiedBinaryAllowed: boolean;
902
- } | {
903
- allowed: false;
904
- reason: string;
905
- };
906
- type AcpRegistryAgentWithPolicy = AcpRegistryAgent & {
907
- allowlist: AcpAllowlistDecision;
908
- installable: boolean;
909
- unavailableReason?: string;
910
- verificationStatus: AcpVerificationStatus;
911
- };
912
- type AcpRegistrySnapshot = {
913
- fetchedAt: number;
914
- agents: AcpRegistryAgent[];
915
- raw: unknown;
916
- };
917
-
918
- type AcpAgentAllowlistRule = {
919
- id: string;
920
- registryId: string;
921
- versions?: string[];
922
- distributionKinds?: AcpDistributionKind[];
923
- allowedPackageNames?: string[];
924
- allowedArchiveHosts?: string[];
925
- allowUnverifiedBinary?: boolean;
926
- allowGplFamilyLicense?: boolean;
927
- };
928
- declare const BANNED_ACP_REGISTRY_IDS: Set<string>;
929
- declare const DEFAULT_ACP_AGENT_ALLOWLIST: AcpAgentAllowlistRule[];
930
- declare class AcpAgentAllowlist {
931
- private readonly rules;
932
- constructor(rules: AcpAgentAllowlistRule[]);
933
- evaluate(agent: AcpRegistryAgent): AcpAllowlistDecision;
934
- evaluateDistribution(agent: AcpRegistryAgent, distribution: AcpRegistryDistribution): AcpAllowlistDecision;
935
- }
936
- declare const defaultAcpAgentAllowlist: AcpAgentAllowlist;
937
- declare function isBannedAcpRegistryId(registryId: string): boolean;
938
-
939
- type AcpRegistryFetch = (input: string, init?: {
940
- headers?: Record<string, string>;
941
- }) => Promise<{
942
- ok: boolean;
943
- status: number;
944
- statusText: string;
945
- json(): Promise<unknown>;
946
- }>;
947
- type AcpRegistryServiceOptions = {
948
- allowlist?: AcpAgentAllowlist;
949
- fetch?: AcpRegistryFetch;
950
- now?: () => number;
951
- registryUrl?: string;
952
- };
953
- type AcpDistributionPolicy = {
954
- allowlist: AcpAllowlistDecision;
955
- installable: boolean;
956
- verificationStatus: AcpVerificationStatus;
957
- unavailableReason?: string;
958
- };
959
- declare class AcpRegistryService {
960
- private readonly allowlist;
961
- private readonly fetcher;
962
- private readonly now;
963
- private readonly registryUrl;
964
- constructor(options?: AcpRegistryServiceOptions);
965
- fetchRegistry(): Promise<AcpRegistrySnapshot>;
966
- applyAllowlist(snapshot: AcpRegistrySnapshot): AcpRegistryAgentWithPolicy[];
967
- evaluateDistribution(agent: AcpRegistryAgent, distribution: AcpRegistryDistribution): AcpDistributionPolicy;
968
- }
969
- declare function evaluateAcpDistributionPolicy(distribution: AcpRegistryDistribution, allowlist: AcpAllowlistDecision): AcpDistributionPolicy;
970
- declare function normalizeRegistry(raw: unknown): AcpRegistryAgent[];
971
-
972
- export { ACP_REGISTRY_URL, ACP_REQUEST_TIMEOUT_MESSAGE_PREFIX, AcpAgentAllowlist, type AcpAgentAllowlistRule, AcpAgentClient, type AcpAgentClientFactory, type AcpAgentClientOptions, AcpAgentClientPool, type AcpAgentClientPoolOptions, type AcpAgentConnection, type AcpAgentConnectionHandle, type AcpAgentInstanceSource, type AcpAgentQuirks, type AcpAgentStrategy, type AcpAllowlistDecision, type AcpApplyContext, type AcpBinaryPlatformDistribution, AcpConnection, type AcpConnectionOptions, type AcpDiscoveryProbe, type AcpDistributionKind, type AcpDistributionPolicy, type AcpHttpMcpServerConfig, type AcpJsonRpcTransport, type AcpLoadThreadOptions, type AcpMcpKeyValue, type AcpMcpKeyValueCollection, type AcpMcpServerConfig, type AcpMcpServerWireConfig, type AcpNormalizeResult, type AcpNormalizerOptions, AcpOneShotClient, type AcpOneShotClientOptions, type AcpOneShotRequest, type AcpOneShotResponse, type AcpPackageDistribution, type AcpPathExecutableLister, type AcpPromptContentBlock, type AcpRegistryAgent, type AcpRegistryAgentWithPolicy, type AcpRegistryAuthDescriptor, type AcpRegistryAuthMethod, type AcpRegistryDistribution, type AcpRegistryFetch, AcpRegistryService, type AcpRegistryServiceOptions, type AcpRegistrySnapshot, type AcpRuntimeAgentCapabilities, type AcpRuntimeAgentInfo, type AcpRuntimeCapabilities, type AcpRuntimeCapabilitiesHandler, type AcpRuntimeCapabilitiesSource, type AcpRuntimeConfigOption, type AcpRuntimeConfigOptionValue, type AcpRuntimeMcpCapabilities, type AcpRuntimeMode, type AcpRuntimeModel, type AcpRuntimeModels, type AcpRuntimeModes, type AcpRuntimeOptionSource, AcpSessionNormalizer, type AcpSessionRuntimeState, type AcpSpawnSpec, type AcpSseMcpServerConfig, type AcpStartThreadOptions, type AcpStartTurnOptions, type AcpStdioMcpServerConfig, type AcpTitleHandler, type AcpVerificationStatus, BANNED_ACP_REGISTRY_IDS, BUILT_IN_ACP_STRATEGIES, DEFAULT_ACP_AGENT_ALLOWLIST, DEFAULT_ACP_PROBE_TIMEOUT_MS, type DiscoveredAcpAgent, type DiscoveredAcpAgentGroup, type DiscoveredAcpAgentInstance, type LocalAcpAgentProbe, type LocalAcpDiscoveryOptions, type LocalAcpProbeOptions, type LocalAcpProbeResult, type RejectedAcpAgentInstance, acpRuntimeSupportsHttpMcp, acpRuntimeSupportsSessionLoad, acpRuntimeSupportsSseMcp, acpSessionRuntimeStateFromCapabilities, acpSessionRuntimeStateFromUpdate, asRecord, buildAcpBackendId, buildStrategyTable, defaultAcpAgentAllowlist, defaultQuirks, discoverLocalAcpAgentInstances, discoverLocalAcpAgents, evaluateAcpDistributionPolicy, geminiStrategy, grokStrategy, isBannedAcpRegistryId, kimiStrategy, mergeAcpRuntimeState, modeLabelFor, modelConfigOption, modelIdFromCapabilities, modelsFromCapabilities, normalizeAcpMcpServerConfig, normalizeAcpMcpServerConfigs, normalizeAcpRuntimeCapabilities, normalizeRegistry, qwenStrategy, readAcpContentText, readBoolean, readContentText, readFirstLocationPath, readFirstString, readKind, readNonEmptyString, readNumber, readPromptText, readString, readToolCallId, readToolContentText, readToolOutput, readUpdateText, reasoningValueForThoughtLevel, strategyByBackendId, strategyById, toolCallFromUpdate, wellKnownAgentBinDirs };
624
+ export { ACP_REQUEST_TIMEOUT_MESSAGE_PREFIX, AcpAgentClient, type AcpAgentClientFactory, type AcpAgentClientOptions, AcpAgentClientPool, type AcpAgentClientPoolOptions, type AcpAgentConnection, type AcpAgentConnectionHandle, AcpAgentQuirks, AcpAgentStrategy, type AcpApplyContext, AcpConnection, type AcpConnectionOptions, type AcpJsonRpcTransport, type AcpLoadThreadOptions, AcpMcpServerConfig, type AcpNormalizeResult, type AcpNormalizerOptions, AcpOneShotClient, type AcpOneShotClientOptions, type AcpOneShotRequest, type AcpOneShotResponse, type AcpPromptContentBlock, type AcpRuntimeAgentCapabilities, type AcpRuntimeAgentInfo, type AcpRuntimeCapabilities, type AcpRuntimeCapabilitiesHandler, type AcpRuntimeCapabilitiesSource, type AcpRuntimeConfigOption, type AcpRuntimeConfigOptionValue, type AcpRuntimeMcpCapabilities, type AcpRuntimeMode, type AcpRuntimeModel, type AcpRuntimeModels, type AcpRuntimeModes, type AcpRuntimeOptionSource, AcpSessionNormalizer, type AcpSessionRuntimeState, type AcpStartThreadOptions, type AcpStartTurnOptions, type AcpTitleHandler, acpRuntimeSupportsHttpMcp, acpRuntimeSupportsSessionLoad, acpRuntimeSupportsSseMcp, acpSessionRuntimeStateFromCapabilities, acpSessionRuntimeStateFromUpdate, asRecord, mergeAcpRuntimeState, modeLabelFor, modelConfigOption, modelIdFromCapabilities, modelsFromCapabilities, normalizeAcpRuntimeCapabilities, readAcpContentText, readBoolean, readContentText, readFirstLocationPath, readFirstString, readKind, readNonEmptyString, readNumber, readPromptText, readString, readToolCallId, readToolContentText, readToolOutput, readUpdateText, reasoningValueForThoughtLevel, toolCallFromUpdate };