@openhands/typescript-client
Advanced tools
@@ -5,3 +5,3 @@ { | ||
| "display_name": "Claude Code", | ||
| "default_command": ["npx", "-y", "@agentclientprotocol/claude-agent-acp"], | ||
| "default_command": ["npx", "-y", "@agentclientprotocol/claude-agent-acp@0.30.0"], | ||
| "api_key_env_var": "ANTHROPIC_API_KEY", | ||
@@ -12,17 +12,34 @@ "base_url_env_var": "ANTHROPIC_BASE_URL", | ||
| "supports_set_session_model": false, | ||
| "supports_runtime_model_switch": true, | ||
| "session_meta_key": "claudeCode", | ||
| "available_models": [ | ||
| { "id": "claude-opus-4-7", "label": "Claude Opus 4.7" }, | ||
| { "id": "claude-opus-4-6", "label": "Claude Opus 4.6" }, | ||
| { "id": "opus[1m]", "label": "Claude Opus (1M)" }, | ||
| { "id": "claude-opus-4-5", "label": "Claude Opus 4.5" }, | ||
| { "id": "claude-opus-4-1-20250805", "label": "Claude Opus 4.1" }, | ||
| { "id": "claude-sonnet-4-6", "label": "Claude Sonnet 4.6" }, | ||
| { "id": "sonnet[1m]", "label": "Claude Sonnet (1M)" }, | ||
| { "id": "claude-sonnet-4-5", "label": "Claude Sonnet 4.5" }, | ||
| { "id": "claude-haiku-4-5", "label": "Claude Haiku 4.5" }, | ||
| { "id": "opusplan", "label": "Opus (plan) + Sonnet (execute)" } | ||
| { | ||
| "id": "claude-fable-5", | ||
| "label": "Claude Fable 5" | ||
| }, | ||
| { | ||
| "id": "claude-opus-4-8", | ||
| "label": "Claude Opus 4.8" | ||
| }, | ||
| { | ||
| "id": "opus[1m]", | ||
| "label": "Claude Opus (1M)" | ||
| }, | ||
| { | ||
| "id": "claude-sonnet-4-6", | ||
| "label": "Claude Sonnet 4.6" | ||
| }, | ||
| { | ||
| "id": "claude-haiku-4-5", | ||
| "label": "Claude Haiku 4.5" | ||
| }, | ||
| { | ||
| "id": "opusplan", | ||
| "label": "Opus (plan) + Sonnet (execute)" | ||
| } | ||
| ], | ||
| "default_model": "claude-opus-4-7" | ||
| "default_model": "claude-opus-4-8", | ||
| "supports_runtime_model_switch": true, | ||
| "file_secrets": [], | ||
| "binary_name": "claude-agent-acp", | ||
| "data_dir_env_var": "CLAUDE_CONFIG_DIR" | ||
| }, | ||
@@ -32,3 +49,3 @@ "codex": { | ||
| "display_name": "Codex", | ||
| "default_command": ["npx", "-y", "@zed-industries/codex-acp"], | ||
| "default_command": ["npx", "-y", "@zed-industries/codex-acp@0.15.0"], | ||
| "api_key_env_var": "OPENAI_API_KEY", | ||
@@ -39,27 +56,51 @@ "base_url_env_var": "OPENAI_BASE_URL", | ||
| "supports_set_session_model": true, | ||
| "supports_runtime_model_switch": true, | ||
| "session_meta_key": null, | ||
| "available_models": [ | ||
| { "id": "gpt-5.5/low", "label": "GPT-5.5 (low)" }, | ||
| { "id": "gpt-5.5/medium", "label": "GPT-5.5 (medium)" }, | ||
| { "id": "gpt-5.5/high", "label": "GPT-5.5 (high)" }, | ||
| { "id": "gpt-5.5/xhigh", "label": "GPT-5.5 (xhigh)" }, | ||
| { "id": "gpt-5.4/low", "label": "GPT-5.4 (low)" }, | ||
| { "id": "gpt-5.4/medium", "label": "GPT-5.4 (medium)" }, | ||
| { "id": "gpt-5.4/high", "label": "GPT-5.4 (high)" }, | ||
| { "id": "gpt-5.4/xhigh", "label": "GPT-5.4 (xhigh)" }, | ||
| { "id": "gpt-5.4-mini/low", "label": "GPT-5.4 Mini (low)" }, | ||
| { "id": "gpt-5.4-mini/medium", "label": "GPT-5.4 Mini (medium)" }, | ||
| { "id": "gpt-5.4-mini/high", "label": "GPT-5.4 Mini (high)" }, | ||
| { "id": "gpt-5.4-mini/xhigh", "label": "GPT-5.4 Mini (xhigh)" }, | ||
| { "id": "gpt-5.3-codex/low", "label": "GPT-5.3 Codex (low)" }, | ||
| { "id": "gpt-5.3-codex/medium", "label": "GPT-5.3 Codex (medium)" }, | ||
| { "id": "gpt-5.3-codex/high", "label": "GPT-5.3 Codex (high)" }, | ||
| { "id": "gpt-5.3-codex/xhigh", "label": "GPT-5.3 Codex (xhigh)" }, | ||
| { "id": "gpt-5.2/low", "label": "GPT-5.2 (low)" }, | ||
| { "id": "gpt-5.2/medium", "label": "GPT-5.2 (medium)" }, | ||
| { "id": "gpt-5.2/high", "label": "GPT-5.2 (high)" }, | ||
| { "id": "gpt-5.2/xhigh", "label": "GPT-5.2 (xhigh)" } | ||
| { | ||
| "id": "gpt-5.5/low", | ||
| "label": "GPT-5.5 (low)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.5/medium", | ||
| "label": "GPT-5.5 (medium)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.5/high", | ||
| "label": "GPT-5.5 (high)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.5/xhigh", | ||
| "label": "GPT-5.5 (xhigh)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.4-mini/low", | ||
| "label": "GPT-5.4 Mini (low)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.4-mini/medium", | ||
| "label": "GPT-5.4 Mini (medium)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.4-mini/high", | ||
| "label": "GPT-5.4 Mini (high)" | ||
| }, | ||
| { | ||
| "id": "gpt-5.4-mini/xhigh", | ||
| "label": "GPT-5.4 Mini (xhigh)" | ||
| } | ||
| ], | ||
| "default_model": "gpt-5.5/medium" | ||
| "default_model": "gpt-5.5/medium", | ||
| "supports_runtime_model_switch": true, | ||
| "file_secrets": [ | ||
| { | ||
| "secret_name": "CODEX_AUTH_JSON", | ||
| "filename": "auth.json", | ||
| "env_var": "CODEX_HOME", | ||
| "subdir": "codex", | ||
| "env_points_to": "dir", | ||
| "warn_if_unset": [] | ||
| } | ||
| ], | ||
| "binary_name": "codex-acp", | ||
| "data_dir_env_var": "CODEX_HOME" | ||
| }, | ||
@@ -69,3 +110,3 @@ "gemini-cli": { | ||
| "display_name": "Gemini CLI", | ||
| "default_command": ["npx", "-y", "@google/gemini-cli", "--acp"], | ||
| "default_command": ["npx", "-y", "@google/gemini-cli@0.38.0", "--acp"], | ||
| "api_key_env_var": "GEMINI_API_KEY", | ||
@@ -76,19 +117,52 @@ "base_url_env_var": "GEMINI_BASE_URL", | ||
| "supports_set_session_model": true, | ||
| "supports_runtime_model_switch": true, | ||
| "session_meta_key": null, | ||
| "available_models": [ | ||
| { "id": "auto-gemini-3", "label": "Auto (Gemini 3)" }, | ||
| { "id": "auto-gemini-2.5", "label": "Auto (Gemini 2.5)" }, | ||
| { "id": "gemini-3.1-pro-preview", "label": "Gemini 3.1 Pro (preview)" }, | ||
| { "id": "gemini-3-flash-preview", "label": "Gemini 3 Flash (preview)" }, | ||
| { | ||
| "id": "auto-gemini-3", | ||
| "label": "Auto (Gemini 3)" | ||
| }, | ||
| { | ||
| "id": "auto-gemini-2.5", | ||
| "label": "Auto (Gemini 2.5)" | ||
| }, | ||
| { | ||
| "id": "gemini-3.1-pro-preview", | ||
| "label": "Gemini 3.1 Pro (preview)" | ||
| }, | ||
| { | ||
| "id": "gemini-3-flash-preview", | ||
| "label": "Gemini 3 Flash (preview)" | ||
| }, | ||
| { | ||
| "id": "gemini-3.1-flash-lite-preview", | ||
| "label": "Gemini 3.1 Flash Lite (preview)" | ||
| }, | ||
| { "id": "gemini-2.5-pro", "label": "Gemini 2.5 Pro" }, | ||
| { "id": "gemini-2.5-flash", "label": "Gemini 2.5 Flash" }, | ||
| { "id": "gemini-2.5-flash-lite", "label": "Gemini 2.5 Flash Lite" } | ||
| { | ||
| "id": "gemini-2.5-pro", | ||
| "label": "Gemini 2.5 Pro" | ||
| }, | ||
| { | ||
| "id": "gemini-2.5-flash", | ||
| "label": "Gemini 2.5 Flash" | ||
| }, | ||
| { | ||
| "id": "gemini-2.5-flash-lite", | ||
| "label": "Gemini 2.5 Flash Lite" | ||
| } | ||
| ], | ||
| "default_model": "auto-gemini-2.5" | ||
| "default_model": "auto-gemini-2.5", | ||
| "supports_runtime_model_switch": true, | ||
| "file_secrets": [ | ||
| { | ||
| "secret_name": "GOOGLE_APPLICATION_CREDENTIALS_JSON", | ||
| "filename": "gcloud-credentials.json", | ||
| "env_var": "GOOGLE_APPLICATION_CREDENTIALS", | ||
| "subdir": "gemini-cli", | ||
| "env_points_to": "file", | ||
| "warn_if_unset": ["GOOGLE_CLOUD_PROJECT", "GOOGLE_CLOUD_LOCATION"] | ||
| } | ||
| ], | ||
| "binary_name": "gemini", | ||
| "data_dir_env_var": "HOME" | ||
| } | ||
| } |
+28
-0
@@ -32,2 +32,21 @@ /** | ||
| /** | ||
| * Declarative spec for one file-content credential a provider can consume | ||
| * (e.g. Codex `auth.json`). Mirrors | ||
| * `openhands.sdk.settings.acp_providers.ACPFileSecretSpec` field-for-field. | ||
| */ | ||
| export interface ACPFileSecretSpec { | ||
| /** Reserved secret name whose value is the file's content. */ | ||
| readonly secret_name: string; | ||
| /** Filename the secret is materialised as. */ | ||
| readonly filename: string; | ||
| /** Env var pointed at the materialised file (or its directory). */ | ||
| readonly env_var: string; | ||
| /** Per-provider subdirectory the file lives in. */ | ||
| readonly subdir: string; | ||
| /** Whether `env_var` points at the file itself or its directory. */ | ||
| readonly env_points_to: 'file' | 'dir'; | ||
| /** Companion env vars the server warns about when missing. */ | ||
| readonly warn_if_unset: readonly string[]; | ||
| } | ||
| /** | ||
| * Immutable metadata record for one built-in ACP provider. Mirrors | ||
@@ -71,2 +90,11 @@ * `openhands.sdk.settings.acp_providers.ACPProviderInfo` field-for-field. | ||
| readonly default_model: string | null; | ||
| /** File-content credentials the agent server can materialise on disk. */ | ||
| readonly file_secrets: readonly ACPFileSecretSpec[]; | ||
| /** | ||
| * Bare executable name of the provider's pinned CLI, or `null`. The agent | ||
| * server prefers this binary over the `npx` fallback when it is on PATH. | ||
| */ | ||
| readonly binary_name: string | null; | ||
| /** Env var that relocates the provider's data/config directory, or `null`. */ | ||
| readonly data_dir_env_var: string | null; | ||
| } | ||
@@ -73,0 +101,0 @@ export declare const ACP_PROVIDERS: Readonly<Record<ACPProviderKey, ACPProviderInfo>>; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"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AAc,CAAC,GAA8B;IAC3D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAQ,aAA6D,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AACrF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,aAAa;IACb,UAAU;IACV,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,oBAAoB;IACpB,YAAY;CACb,CAAC"} | ||
| {"version":3,"file":"acp.js","sourceRoot":"","sources":["../../src/models/acp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,aAAa,MAAM,sBAAsB,CAAC;AA4FjD,MAAM,CAAC,MAAM,aAAa,GACxB,aAAkE,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,GAA8B;IAC3D,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAQ,aAA6D,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC;AACrF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,aAAa;IACb,UAAU;IACV,SAAS;IACT,WAAW;IACX,kBAAkB;IAClB,oBAAoB;IACpB,YAAY;CACb,CAAC"} |
+1
-1
| { | ||
| "name": "@openhands/typescript-client", | ||
| "version": "1.24.3", | ||
| "version": "1.25.0", | ||
| "description": "TypeScript client for OpenHands Agent Server", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
666432
0.32%10417
0.99%13
8.33%