@yitom/acp-client 0.1.14 → 0.1.16

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.
@@ -37,6 +37,11 @@ export declare const APP_RESOURCE_CAPABILITIES: {
37
37
  readonly strategy: 'compatibility';
38
38
  readonly configHome: 'CURSOR_CONFIG_DIR';
39
39
  };
40
+ readonly 'antigravity-cli': {
41
+ readonly entry: null;
42
+ readonly strategy: 'compatibility';
43
+ readonly configHome: null;
44
+ };
40
45
  readonly agy: {
41
46
  readonly entry: '_meta.appResources.directory';
42
47
  readonly strategy: 'native-session';
@@ -1,4 +1,19 @@
1
1
  import type { CodexAuthPreflight } from '../../contracts';
2
2
  import type { GenericRuntimeAdapter } from '../index';
3
+ export { probeAgyQuota, resolveAntigravityAccount, resolveAntigravityLanguageServer, } from './quota';
4
+ export interface AntigravityCliPathOverrides {
5
+ platform?: NodeJS.Platform;
6
+ env?: NodeJS.ProcessEnv;
7
+ home?: string;
8
+ }
9
+ /**
10
+ * Resolve `agy acp` spawn command from PATH or standard per-user install locations.
11
+ * Returns `null` when `agy` is not installed anywhere so connect() surfaces a clear ACP_SPAWN_ERROR.
12
+ */
13
+ export declare function resolveAntigravityCliCommand(overrides?: AntigravityCliPathOverrides): {
14
+ command: string;
15
+ args: string[];
16
+ } | null;
3
17
  export declare function probeAgyAuth(): CodexAuthPreflight;
4
18
  export declare const agyAdapter: GenericRuntimeAdapter;
19
+ export declare const antigravityCliAdapter: GenericRuntimeAdapter;
@@ -10,4 +10,5 @@ export declare function resolveAntigravityLanguageServer(): {
10
10
  } | null;
11
11
  export declare function probeAgyQuota(options?: {
12
12
  sessionId?: string;
13
+ runtimeId?: string;
13
14
  }): Promise<AcpAgentQuota | null>;
@@ -1,10 +1,10 @@
1
1
  /** 从 initialize 的 agentCapabilities 解析会话恢复与 prompt 能力 */
2
2
  import type { AcpPromptCapabilities } from "../contracts";
3
- export declare function parseLoadSessionSupported(caps: Record<string, unknown>): boolean;
3
+ export declare function parseLoadSessionSupported(caps?: Record<string, unknown> | null): boolean;
4
4
  /**
5
5
  * ACP:`sessionCapabilities.resume` 可为 `true` 或非空对象(codex-acp 用 `{}`)。
6
6
  */
7
- export declare function parseResumeSessionSupported(caps: Record<string, unknown>): boolean;
7
+ export declare function parseResumeSessionSupported(caps?: Record<string, unknown> | null): boolean;
8
8
  /** ACP:HTTP 传输的 MCP server 是可选能力,Agent 未声明时不能注入 */
9
9
  export declare function parseMcpHttpSupported(caps: Record<string, unknown>): boolean;
10
10
  export declare function parsePromptCapabilities(caps: Record<string, unknown>): AcpPromptCapabilities;