@jini-ai/agent-runtime 0.7.1 → 0.7.3-next.1
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/CHANGELOG.md +3 -3
- package/README.md +1 -0
- package/dist/acp-model-probe.d.ts +2 -3
- package/dist/acp-model-probe.js +1 -1
- package/dist/agent-protocol/acp/account-failure.d.ts +3 -1
- package/dist/agent-protocol/acp/account-failure.js +1 -1
- package/dist/agent-protocol/acp/constants.d.ts +3 -1
- package/dist/agent-protocol/acp/constants.js +2 -0
- package/dist/agent-protocol/acp/index.d.ts +2 -1
- package/dist/agent-protocol/acp/index.js +2 -1
- package/dist/agent-protocol/acp/json.d.ts +26 -7
- package/dist/agent-protocol/acp/json.js +11 -11
- package/dist/agent-protocol/acp/models.d.ts +26 -6
- package/dist/agent-protocol/acp/models.js +157 -129
- package/dist/agent-protocol/acp/rpc.d.ts +37 -9
- package/dist/agent-protocol/acp/rpc.js +19 -16
- package/dist/agent-protocol/acp/session-params.d.ts +4 -1
- package/dist/agent-protocol/acp/session-params.js +1 -1
- package/dist/agent-protocol/acp/session-permission.d.ts +13 -0
- package/dist/agent-protocol/acp/session-permission.js +110 -0
- package/dist/agent-protocol/acp/session-results.d.ts +61 -0
- package/dist/agent-protocol/acp/session-results.js +226 -0
- package/dist/agent-protocol/acp/session-run.d.ts +92 -0
- package/dist/agent-protocol/acp/session-run.js +555 -0
- package/dist/agent-protocol/acp/session-state.d.ts +9 -0
- package/dist/agent-protocol/acp/session-state.js +29 -0
- package/dist/agent-protocol/acp/session-text-updates.d.ts +56 -0
- package/dist/agent-protocol/acp/session-text-updates.js +119 -0
- package/dist/agent-protocol/acp/session-tool-updates.d.ts +21 -0
- package/dist/agent-protocol/acp/session-tool-updates.js +90 -0
- package/dist/agent-protocol/acp/session-types.d.ts +166 -0
- package/dist/agent-protocol/acp/session-types.js +4 -0
- package/dist/agent-protocol/acp/session.d.ts +4 -280
- package/dist/agent-protocol/acp/session.js +65 -998
- package/dist/agent-protocol/acp/text-suppression.d.ts +5 -1
- package/dist/agent-protocol/acp/text-suppression.js +1 -1
- package/dist/agent-protocol/acp/updates.d.ts +43 -12
- package/dist/agent-protocol/acp/updates.js +34 -34
- package/dist/agent-protocol/core/json-line-stream.d.ts +133 -36
- package/dist/agent-protocol/core/json-line-stream.js +62 -62
- package/dist/agent-protocol/pi-rpc/events.d.ts +14 -4
- package/dist/agent-protocol/pi-rpc/events.js +14 -14
- package/dist/agent-protocol/pi-rpc/internal.d.ts +9 -3
- package/dist/agent-protocol/pi-rpc/internal.js +3 -3
- package/dist/agent-protocol/pi-rpc/models.d.ts +3 -17
- package/dist/agent-protocol/pi-rpc/models.js +1 -45
- package/dist/agent-protocol/pi-rpc/session.d.ts +36 -12
- package/dist/agent-protocol/pi-rpc/session.js +134 -122
- package/dist/amr-model-cache.d.ts +1 -1
- package/dist/anthropic-live-models.d.ts +8 -3
- package/dist/anthropic-live-models.js +0 -0
- package/dist/auth-common.d.ts +2 -0
- package/dist/auth-common.js +2 -0
- package/dist/auth.d.ts +7 -34
- package/dist/auth.js +25 -139
- package/dist/capabilities.d.ts +1 -1
- package/dist/claude-code-models.d.ts +13 -5
- package/dist/claude-code-models.js +12 -10
- package/dist/claude-filesystem-policy.d.ts +1 -1
- package/dist/claude-stream-frames.d.ts +125 -0
- package/dist/claude-stream-frames.js +327 -0
- package/dist/claude-stream-handler.d.ts +19 -0
- package/dist/claude-stream-handler.js +480 -0
- package/dist/claude-stream.d.ts +3 -72
- package/dist/claude-stream.js +2 -801
- package/dist/core/model-discovery-shared.d.ts +14 -8
- package/dist/core/model-discovery-shared.js +6 -9
- package/dist/core/omit-keys.d.ts +4 -1
- package/dist/core/omit-keys.js +1 -1
- package/dist/defs/aider/executable.d.ts +2 -0
- package/dist/defs/aider/executable.js +2 -0
- package/dist/defs/aider/model-discovery.d.ts +3 -0
- package/dist/defs/aider/model-discovery.js +6 -0
- package/dist/defs/aider.d.ts +10 -10
- package/dist/defs/amp/index.d.ts +35 -0
- package/dist/defs/amp/index.js +75 -0
- package/dist/defs/amp.d.ts +1 -34
- package/dist/defs/amp.js +1 -74
- package/dist/defs/amr/executable-resolution.d.ts +7 -0
- package/dist/defs/amr/executable-resolution.js +50 -0
- package/dist/defs/amr/executable.d.ts +2 -0
- package/dist/defs/amr/executable.js +2 -0
- package/dist/defs/amr/index.d.ts +69 -0
- package/dist/defs/amr/index.js +279 -0
- package/dist/defs/amr/model-discovery.d.ts +3 -0
- package/dist/defs/amr/model-discovery.js +4 -0
- package/dist/defs/amr.d.ts +1 -68
- package/dist/defs/amr.js +1 -291
- package/dist/defs/antigravity/auth.d.ts +14 -0
- package/dist/defs/antigravity/auth.js +47 -0
- package/dist/defs/antigravity/index.d.ts +9 -9
- package/dist/defs/antigravity/index.js +3 -3
- package/dist/defs/antigravity/model-discovery.d.ts +3 -0
- package/dist/defs/antigravity/model-discovery.js +5 -0
- package/dist/defs/auggie/executable.d.ts +2 -0
- package/dist/defs/auggie/executable.js +2 -0
- package/dist/defs/auggie.d.ts +13 -13
- package/dist/defs/auggie.js +2 -9
- package/dist/defs/claude/auth.d.ts +15 -0
- package/dist/defs/claude/auth.js +47 -0
- package/dist/defs/claude/executable.d.ts +2 -0
- package/dist/defs/claude/executable.js +2 -0
- package/dist/defs/claude/model-discovery.d.ts +3 -0
- package/dist/defs/claude/model-discovery.js +20 -0
- package/dist/defs/claude-compatible-args.d.ts +10 -6
- package/dist/defs/claude-compatible-args.js +5 -5
- package/dist/defs/claude.d.ts +11 -11
- package/dist/defs/claude.js +5 -4
- package/dist/defs/cline/executable.d.ts +2 -0
- package/dist/defs/cline/executable.js +2 -0
- package/dist/defs/cline.d.ts +13 -13
- package/dist/defs/cline.js +2 -9
- package/dist/defs/codebuddy/executable.d.ts +2 -0
- package/dist/defs/codebuddy/executable.js +2 -0
- package/dist/defs/codebuddy/index.d.ts +48 -0
- package/dist/defs/codebuddy/index.js +121 -0
- package/dist/defs/codebuddy/model-discovery.d.ts +3 -0
- package/dist/defs/codebuddy/model-discovery.js +5 -0
- package/dist/defs/codebuddy.d.ts +1 -47
- package/dist/defs/codebuddy.js +1 -120
- package/dist/defs/codex/auth.d.ts +4 -0
- package/dist/defs/codex/auth.js +2 -0
- package/dist/defs/codex/event-stream.d.ts +10 -0
- package/dist/defs/codex/event-stream.js +353 -0
- package/dist/defs/codex/executable-resolution.d.ts +7 -0
- package/dist/defs/codex/executable-resolution.js +37 -0
- package/dist/defs/codex/executable.d.ts +2 -0
- package/dist/defs/codex/executable.js +2 -0
- package/dist/defs/codex/launch.d.ts +3 -0
- package/dist/defs/codex/launch.js +155 -0
- package/dist/defs/codex/model-discovery.d.ts +3 -0
- package/dist/defs/codex/model-discovery.js +11 -0
- package/dist/defs/codex/options.d.ts +11 -0
- package/dist/defs/codex/options.js +5 -0
- package/dist/defs/codex.d.ts +18 -11
- package/dist/defs/codex.js +32 -29
- package/dist/defs/crush/executable.d.ts +2 -0
- package/dist/defs/crush/executable.js +2 -0
- package/dist/defs/crush/model-discovery.d.ts +3 -0
- package/dist/defs/crush/model-discovery.js +6 -0
- package/dist/defs/crush.d.ts +10 -10
- package/dist/defs/cursor-agent/auth.d.ts +13 -0
- package/dist/defs/cursor-agent/auth.js +22 -0
- package/dist/defs/cursor-agent/event-stream.d.ts +8 -0
- package/dist/defs/cursor-agent/event-stream.js +104 -0
- package/dist/defs/cursor-agent/executable.d.ts +2 -0
- package/dist/defs/cursor-agent/executable.js +2 -0
- package/dist/defs/cursor-agent/model-discovery.d.ts +3 -0
- package/dist/defs/cursor-agent/model-discovery.js +5 -0
- package/dist/defs/cursor-agent.d.ts +11 -13
- package/dist/defs/cursor-agent.js +1 -1
- package/dist/defs/deepseek/auth.d.ts +13 -0
- package/dist/defs/deepseek/auth.js +18 -0
- package/dist/defs/deepseek/executable.d.ts +2 -0
- package/dist/defs/deepseek/executable.js +2 -0
- package/dist/defs/deepseek/model-discovery.d.ts +3 -0
- package/dist/defs/deepseek/model-discovery.js +5 -0
- package/dist/defs/deepseek.d.ts +10 -10
- package/dist/defs/devin/executable.d.ts +2 -0
- package/dist/defs/devin/executable.js +2 -0
- package/dist/defs/devin.d.ts +15 -15
- package/dist/defs/devin.js +3 -10
- package/dist/defs/droid/executable.d.ts +2 -0
- package/dist/defs/droid/executable.js +2 -0
- package/dist/defs/droid/model-discovery.d.ts +3 -0
- package/dist/defs/droid/model-discovery.js +5 -0
- package/dist/defs/droid.d.ts +10 -10
- package/dist/defs/gemini/event-stream.d.ts +14 -0
- package/dist/defs/gemini/event-stream.js +193 -0
- package/dist/defs/goose/executable.d.ts +2 -0
- package/dist/defs/goose/executable.js +2 -0
- package/dist/defs/goose.d.ts +13 -13
- package/dist/defs/goose.js +2 -9
- package/dist/defs/grok-build/model-discovery.d.ts +3 -0
- package/dist/defs/grok-build/model-discovery.js +5 -0
- package/dist/defs/grok-build.d.ts +10 -10
- package/dist/defs/hermes/executable.d.ts +2 -0
- package/dist/defs/hermes/executable.js +2 -0
- package/dist/defs/hermes/index.d.ts +34 -0
- package/dist/defs/hermes/index.js +57 -0
- package/dist/defs/hermes.d.ts +1 -33
- package/dist/defs/hermes.js +1 -56
- package/dist/defs/index.d.ts +1 -0
- package/dist/defs/index.js +1 -0
- package/dist/defs/kilo/executable.d.ts +2 -0
- package/dist/defs/kilo/executable.js +2 -0
- package/dist/defs/kilo.d.ts +13 -13
- package/dist/defs/kilo.js +2 -9
- package/dist/defs/kimi/event-stream.d.ts +3 -0
- package/dist/defs/kimi/event-stream.js +46 -0
- package/dist/defs/kimi/executable.d.ts +2 -0
- package/dist/defs/kimi/executable.js +2 -0
- package/dist/defs/kimi.d.ts +13 -13
- package/dist/defs/kimi.js +2 -9
- package/dist/defs/kiro/executable.d.ts +2 -0
- package/dist/defs/kiro/executable.js +2 -0
- package/dist/defs/kiro.d.ts +13 -13
- package/dist/defs/kiro.js +2 -9
- package/dist/defs/mimo/executable.d.ts +2 -0
- package/dist/defs/mimo/executable.js +2 -0
- package/dist/defs/mimo/model-discovery.d.ts +3 -0
- package/dist/defs/mimo/model-discovery.js +7 -0
- package/dist/defs/mimo.d.ts +10 -10
- package/dist/defs/opencode/event-stream.d.ts +8 -0
- package/dist/defs/opencode/event-stream.js +108 -0
- package/dist/defs/opencode/executable.d.ts +2 -0
- package/dist/defs/opencode/executable.js +2 -0
- package/dist/defs/opencode/model-discovery.d.ts +4 -0
- package/dist/defs/opencode/model-discovery.js +14 -0
- package/dist/defs/opencode-acp.d.ts +42 -0
- package/dist/defs/opencode-acp.js +23 -0
- package/dist/defs/opencode.d.ts +9 -9
- package/dist/defs/pi/executable.d.ts +2 -0
- package/dist/defs/pi/executable.js +2 -0
- package/dist/defs/pi/model-discovery.d.ts +4 -0
- package/dist/defs/pi/model-discovery.js +16 -0
- package/dist/defs/pi/options.d.ts +11 -0
- package/dist/defs/pi/options.js +5 -0
- package/dist/defs/pi.d.ts +10 -10
- package/dist/defs/qoder/executable.d.ts +2 -0
- package/dist/defs/qoder/executable.js +2 -0
- package/dist/defs/qoder/model-discovery.d.ts +3 -0
- package/dist/defs/qoder/model-discovery.js +7 -0
- package/dist/defs/qoder.d.ts +9 -9
- package/dist/defs/qwen/executable.d.ts +2 -0
- package/dist/defs/qwen/executable.js +2 -0
- package/dist/defs/qwen/model-discovery.d.ts +3 -0
- package/dist/defs/qwen/model-discovery.js +7 -0
- package/dist/defs/qwen.d.ts +10 -10
- package/dist/defs/reasonix/auth.d.ts +13 -0
- package/dist/defs/reasonix/auth.js +18 -0
- package/dist/defs/reasonix/executable.d.ts +2 -0
- package/dist/defs/reasonix/executable.js +2 -0
- package/dist/defs/reasonix.d.ts +13 -13
- package/dist/defs/reasonix.js +2 -9
- package/dist/defs/shared.d.ts +10 -2
- package/dist/defs/shared.js +5 -1
- package/dist/defs/trae-cli/executable.d.ts +2 -0
- package/dist/defs/trae-cli/executable.js +2 -0
- package/dist/defs/trae-cli.d.ts +15 -15
- package/dist/defs/trae-cli.js +2 -9
- package/dist/defs/vibe/executable.d.ts +2 -0
- package/dist/defs/vibe/executable.js +2 -0
- package/dist/defs/vibe.d.ts +13 -13
- package/dist/defs/vibe.js +2 -9
- package/dist/detection.d.ts +4 -3
- package/dist/detection.js +22 -22
- package/dist/diagnostics.d.ts +4 -4
- package/dist/diagnostics.js +2 -2
- package/dist/env.js +2 -1
- package/dist/executable-helpers.d.ts +21 -0
- package/dist/executable-helpers.js +2 -0
- package/dist/executables.d.ts +2 -2
- package/dist/executables.js +68 -114
- package/dist/index.d.ts +6 -2
- package/dist/index.js +5 -1
- package/dist/invocation.d.ts +22 -6
- package/dist/invocation.js +19 -17
- package/dist/json-event-stream-shared.d.ts +81 -0
- package/dist/json-event-stream-shared.js +147 -0
- package/dist/json-event-stream.d.ts +2 -4
- package/dist/json-event-stream.js +15 -940
- package/dist/launch.d.ts +1 -9
- package/dist/launch.js +6 -155
- package/dist/log-file.d.ts +2 -8
- package/dist/log-file.js +1 -1
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +1 -1
- package/dist/mmd-routes.d.ts +7 -7
- package/dist/mmd-routes.js +19 -27
- package/dist/model-discovery-adapters.d.ts +47 -11
- package/dist/model-discovery-adapters.js +47 -41
- package/dist/model-discovery-config-types.d.ts +44 -0
- package/dist/model-discovery-config-types.js +20 -0
- package/dist/model-discovery-config.d.ts +19 -11
- package/dist/model-discovery-config.js +64 -87
- package/dist/model-discovery-native.d.ts +2 -1
- package/dist/model-discovery-native.js +3 -3
- package/dist/model-discovery-sdk.d.ts +6 -2
- package/dist/model-discovery-sdk.js +2 -2
- package/dist/model-discovery-types.d.ts +1 -138
- package/dist/model-discovery-yaml.d.ts +3 -1
- package/dist/model-discovery-yaml.js +1 -1
- package/dist/model-discovery.d.ts +15 -5
- package/dist/model-discovery.js +119 -105
- package/dist/model-loading-state.d.ts +1 -1
- package/dist/model-loading-state.js +1 -1
- package/dist/model-registry.d.ts +5 -5
- package/dist/model-registry.js +7 -6
- package/dist/models.d.ts +4 -3
- package/dist/models.js +2 -2
- package/dist/native-permissions.d.ts +47 -0
- package/dist/native-permissions.js +80 -0
- package/dist/native-runtime.d.ts +11 -8
- package/dist/native-runtime.js +8 -4
- package/dist/native-tool-policy.d.ts +1 -40
- package/dist/opencode-log.d.ts +3 -3
- package/dist/opencode-log.js +5 -3
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +1 -1
- package/dist/pi-models.d.ts +12 -2
- package/dist/pi-models.js +11 -1
- package/dist/prompt-augmenter.d.ts +1 -37
- package/dist/prompt-augmenter.js +0 -6
- package/dist/prompt-budget.d.ts +3 -3
- package/dist/prompt-budget.js +2 -2
- package/dist/prompt-file.d.ts +2 -6
- package/dist/prompt-file.js +1 -1
- package/dist/providers/aihubmix.d.ts +8 -8
- package/dist/providers/aihubmix.js +8 -8
- package/dist/providers/anthropic-messages.d.ts +22 -23
- package/dist/providers/anthropic-messages.js +26 -53
- package/dist/providers/azure-chat.d.ts +7 -6
- package/dist/providers/azure-chat.js +9 -6
- package/dist/providers/connection-guard.d.ts +3 -9
- package/dist/providers/connection-guard.js +6 -14
- package/dist/providers/connection-test.d.ts +1 -2
- package/dist/providers/connection-test.js +51 -51
- package/dist/providers/credentials.d.ts +59 -0
- package/dist/providers/credentials.js +80 -0
- package/dist/providers/elevenlabs.d.ts +2 -6
- package/dist/providers/elevenlabs.js +2 -31
- package/dist/providers/google-messages.d.ts +11 -10
- package/dist/providers/google-messages.js +16 -35
- package/dist/providers/google-schema.d.ts +1 -1
- package/dist/providers/google-schema.js +1 -1
- package/dist/providers/google.d.ts +6 -6
- package/dist/providers/google.js +6 -6
- package/dist/providers/index.d.ts +5 -2
- package/dist/providers/index.js +5 -2
- package/dist/providers/model-catalog.d.ts +4 -9
- package/dist/providers/model-catalog.js +3 -11
- package/dist/providers/oauth-callback-server.js +93 -87
- package/dist/providers/oauth-provider.d.ts +1 -1
- package/dist/providers/oauth-provider.js +1 -1
- package/dist/providers/oauth-tokens.d.ts +5 -5
- package/dist/providers/oauth-tokens.js +8 -9
- package/dist/providers/ollama-chat.d.ts +13 -12
- package/dist/providers/ollama-chat.js +15 -24
- package/dist/providers/openai-chat-request.d.ts +34 -0
- package/dist/providers/openai-chat-request.js +152 -0
- package/dist/providers/openai-chat-stream.d.ts +48 -0
- package/dist/providers/openai-chat-stream.js +89 -0
- package/dist/providers/openai-chat-tool-results.d.ts +81 -0
- package/dist/providers/openai-chat-tool-results.js +124 -0
- package/dist/providers/openai-chat-types.d.ts +180 -0
- package/dist/providers/openai-chat-types.js +3 -0
- package/dist/providers/openai-chat.d.ts +5 -405
- package/dist/providers/openai-chat.js +9 -388
- package/dist/providers/pkce.d.ts +1 -1
- package/dist/providers/pkce.js +1 -1
- package/dist/providers/provider-url.d.ts +6 -0
- package/dist/providers/provider-url.js +9 -0
- package/dist/providers/response-text.d.ts +4 -0
- package/dist/providers/response-text.js +16 -0
- package/dist/providers/sse-decode.d.ts +4 -0
- package/dist/providers/sse-decode.js +11 -0
- package/dist/providers/token-params.d.ts +5 -5
- package/dist/providers/token-params.js +5 -5
- package/dist/providers/tool-loop-verdict.d.ts +1 -1
- package/dist/providers/tool-loop-verdict.js +1 -1
- package/dist/providers/tool-turn-types.d.ts +2 -1
- package/dist/providers/tool-turn.js +30 -50
- package/dist/providers/turn-end-guard.d.ts +4 -1
- package/dist/providers/turn-end-guard.js +1 -1
- package/dist/qoder-stream.d.ts +1 -1
- package/dist/qoder-stream.js +1 -1
- package/dist/registry.d.ts +5 -5
- package/dist/registry.js +4 -4
- package/dist/role-marker-guard.d.ts +13 -1
- package/dist/role-marker-guard.js +15 -1
- package/dist/runtime-def-binding.d.ts +15 -0
- package/dist/runtime-def-binding.js +19 -0
- package/dist/runtime-port-bindings.d.ts +181 -0
- package/dist/runtime-port-bindings.js +95 -0
- package/dist/runtime-state.d.ts +2 -11
- package/dist/runtime-state.js +0 -13
- package/dist/types.d.ts +1 -454
- package/package.json +27 -15
- package/dist/ai-trace/capture.d.ts +0 -17
- package/dist/ai-trace/capture.js +0 -43
- package/dist/ai-trace/classify.d.ts +0 -12
- package/dist/ai-trace/classify.js +0 -16
- package/dist/ai-trace/index.d.ts +0 -13
- package/dist/ai-trace/index.js +0 -6
- package/dist/ai-trace/recorder.d.ts +0 -64
- package/dist/ai-trace/recorder.js +0 -258
- package/dist/ai-trace/sinks.d.ts +0 -51
- package/dist/ai-trace/sinks.js +0 -153
- package/dist/ai-trace/types.d.ts +0 -123
- package/dist/ai-trace/types.js +0 -17
- package/dist/ai-trace/usage.d.ts +0 -13
- package/dist/ai-trace/usage.js +0 -45
- package/dist/model-contracts.d.ts +0 -29
- package/dist/model-contracts.js +0 -2
- package/dist/providers/types.d.ts +0 -36
- package/dist/providers/types.js +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -211,11 +211,11 @@
|
|
|
211
211
|
|
|
212
212
|
## 0.4.10 — 2026-10-13
|
|
213
213
|
|
|
214
|
-
- ACP `session/request_permission` no longer fails the run. Without an injected `onPermissionRequest`, the session answers by the new `AttachAcpSessionOptions.permissionMode`: `bypass` selects `allow_once`; otherwise `reject_once`, falling back to `reject_always` or `cancelled`. It never picks an "always" approval. A handler that throws, rejects, or selects an unoffered option cancels the request. Each request emits one `status` event (`label: 'acp_permission'`) with only the tool kind and decision. `choosePermissionOutcome(options, { permissionMode })` follows the same policy.
|
|
214
|
+
- ACP `session/request_permission` no longer fails the run. Without an injected `onPermissionRequest`, the session answers by the new `AttachAcpSessionOptions.permissionMode`: `bypass` selects `allow_once`; otherwise `reject_once`, falling back to `reject_always` or `cancelled`. It never picks an "always" approval. A handler that throws, rejects, or selects an unoffered option cancels the request. Each request emits one `status` event (`label: 'acp_permission'`) with only the tool kind and decision. `choosePermissionOutcome({ options }, { permissionMode })` follows the same policy.
|
|
215
215
|
|
|
216
216
|
## 0.4.9 — 2026-10-13
|
|
217
217
|
|
|
218
|
-
- `@jini-ai/oauth` is a regular dependency, no longer an optional peer: the root imports it statically, so a consumer without its own copy (
|
|
218
|
+
- `@jini-ai/oauth` is a regular dependency, no longer an optional peer: the root imports it statically, so a consumer without its own copy (the first host's desktop 0.1.15) crashed at load with ERR_MODULE_NOT_FOUND.
|
|
219
219
|
|
|
220
220
|
## 0.4.8 — 2026-10-13
|
|
221
221
|
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
|
|
240
240
|
## 0.4.2 — 2026-10-08
|
|
241
241
|
|
|
242
|
-
-
|
|
242
|
+
- Host clean-up release: code the first host moved into Jini, plus the Jini clean-up (see the commit log).
|
|
243
243
|
|
|
244
244
|
## 0.4.1 — 2026-10-06
|
|
245
245
|
|
package/README.md
CHANGED
|
@@ -45,6 +45,7 @@ exclude explicitly assigned `undefined`. Model parsers accept `{ stdout }`.
|
|
|
45
45
|
| `@jini-ai/agent-runtime/providers/tool-turn` | Node | Provider-neutral tool turns, replaceable adapters, Gemini schema helpers |
|
|
46
46
|
| `@jini-ai/agent-runtime/model-catalog/cache` | Universal | Instance-owned discovery cache and model union |
|
|
47
47
|
| `@jini-ai/agent-runtime/providers/sse-decode` | Universal | Inbound SSE frame decoder over an async iterable |
|
|
48
|
+
| `@jini-ai/agent-runtime/providers/credentials` | Universal | Bring-your-own-key credential resolution: request-supplied first, then a host-stored row through an injected `readStored` |
|
|
48
49
|
|
|
49
50
|
Browser consumers import the universal subpaths directly. The package root and
|
|
50
51
|
provider adapters load Node modules. Provider PKCE adapters delegate protocol
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* and null restores native transport. noopAcpModelProbe is an explicit opt-out that returns no
|
|
6
6
|
* live models, allowing detection to fall back to the def's static catalog.
|
|
7
7
|
*/
|
|
8
|
-
import type { AcpModelProbe, AcpModelProbeRequest, RuntimeModelOption } from '
|
|
9
|
-
export type { AcpModelProbeRequest, AcpModelProbe } from './types.js';
|
|
8
|
+
import type { AcpModelProbe, AcpModelProbeRequest, RuntimeModelOption } from '@jini-ai/core/contracts/agents';
|
|
10
9
|
export declare const noopAcpModelProbe: AcpModelProbe;
|
|
11
10
|
/** Native adapter selected once by each host composition; independent of the compatibility setter. */
|
|
12
11
|
export declare const nativeAcpModelProbe: AcpModelProbe;
|
|
@@ -14,7 +13,7 @@ export declare const nativeAcpModelProbe: AcpModelProbe;
|
|
|
14
13
|
* Pass `null` to restore the native transport for the legacy wrapper. */
|
|
15
14
|
export declare function setAcpModelProbe({ probe }: {
|
|
16
15
|
probe: AcpModelProbe | null;
|
|
17
|
-
}): void;
|
|
16
|
+
}, _optional?: Record<string, never>): void;
|
|
18
17
|
/** Delegate to an explicit host probe, or the currently installed compatibility probe. */
|
|
19
18
|
export declare function detectAcpModels(requiredArgs: Pick<AcpModelProbeRequest, "bin" | "args">, optionalArgs?: Omit<AcpModelProbeRequest, "bin" | "args"> & {
|
|
20
19
|
probe?: AcpModelProbe;
|
package/dist/acp-model-probe.js
CHANGED
|
@@ -12,7 +12,7 @@ export const nativeAcpModelProbe = {
|
|
|
12
12
|
let activeAcpModelProbe = nativeAcpModelProbe;
|
|
13
13
|
/** Compatibility setter for unbound definitions. Owned hosts keep their selected transport.
|
|
14
14
|
* Pass `null` to restore the native transport for the legacy wrapper. */
|
|
15
|
-
export function setAcpModelProbe({ probe }) {
|
|
15
|
+
export function setAcpModelProbe({ probe }, _optional = {}) {
|
|
16
16
|
activeAcpModelProbe = probe ?? nativeAcpModelProbe;
|
|
17
17
|
}
|
|
18
18
|
/** Delegate to an explicit host probe, or the currently installed compatibility probe. */
|
|
@@ -48,7 +48,9 @@ export declare const noopAccountFailureClassifier: AccountFailureClassifier;
|
|
|
48
48
|
* @param failure - The classification result to describe.
|
|
49
49
|
* @returns A details object carrying `action` and, when present, `actionUrl`.
|
|
50
50
|
*/
|
|
51
|
-
export declare function accountFailureDetails(failure
|
|
51
|
+
export declare function accountFailureDetails({ failure }: {
|
|
52
|
+
failure: AccountFailure;
|
|
53
|
+
}, _optional?: Record<string, never>): {
|
|
52
54
|
kind: 'account_failure';
|
|
53
55
|
action: string;
|
|
54
56
|
actionUrl?: string;
|
|
@@ -27,7 +27,7 @@ export const noopAccountFailureClassifier = {
|
|
|
27
27
|
* @param failure - The classification result to describe.
|
|
28
28
|
* @returns A details object carrying `action` and, when present, `actionUrl`.
|
|
29
29
|
*/
|
|
30
|
-
export function accountFailureDetails(failure) {
|
|
30
|
+
export function accountFailureDetails({ failure }, _optional = {}) {
|
|
31
31
|
return {
|
|
32
32
|
kind: 'account_failure',
|
|
33
33
|
action: failure.action,
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** ACP JSON-RPC protocol version sent in every `initialize` handshake. */
|
|
7
7
|
export declare const ACP_PROTOCOL_VERSION = 1;
|
|
8
|
+
/** ACP's auth_required error code */
|
|
9
|
+
export declare const ACP_AUTH_REQUIRED_ERROR_CODE = -32000;
|
|
8
10
|
/** Default timeout in milliseconds for short-lived ACP operations such as model detection. */
|
|
9
11
|
export declare const DEFAULT_TIMEOUT_MS = 15000;
|
|
10
12
|
/** Absolute upper ceiling for any ACP-derived timeout value (24 hours). */
|
|
@@ -22,5 +24,5 @@ export declare const ACP_RAW_EVENT_SHAPE_DIAGNOSTIC_LIMIT = 8;
|
|
|
22
24
|
/** Maximum number of bytes retained from stderr to detect AMR retry/failure signals; older bytes are discarded to bound memory use. */
|
|
23
25
|
export declare const AMR_STDERR_RETRY_TAIL_LIMIT = 16000;
|
|
24
26
|
/** Normalised token IDs that identify a model-selection config option in an ACP `session/new` response's `configOptions` array. */
|
|
25
|
-
export declare const MODEL_CONFIG_OPTION_IDS:
|
|
27
|
+
export declare const MODEL_CONFIG_OPTION_IDS: ReadonlySet<string>;
|
|
26
28
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** ACP JSON-RPC protocol version sent in every `initialize` handshake. */
|
|
7
7
|
export const ACP_PROTOCOL_VERSION = 1;
|
|
8
|
+
/** ACP's auth_required error code */
|
|
9
|
+
export const ACP_AUTH_REQUIRED_ERROR_CODE = -32000;
|
|
8
10
|
/** Default timeout in milliseconds for short-lived ACP operations such as model detection. */
|
|
9
11
|
export const DEFAULT_TIMEOUT_MS = 15_000;
|
|
10
12
|
/** Absolute upper ceiling for any ACP-derived timeout value (24 hours). */
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { type AcpMcpServerInput, buildAcpSessionNewParams } from './session-params.js';
|
|
11
11
|
export { type ModelOption, normalizeModels, detectAcpModels } from './models.js';
|
|
12
|
-
export { attachAcpSession
|
|
12
|
+
export { attachAcpSession } from './session.js';
|
|
13
|
+
export { type AcpPermissionDecision, type AcpPermissionHandler, type AcpPermissionOption, type AcpPermissionRequest, type AcpSessionController, type AttachAcpSessionOptions } from './session-types.js';
|
|
13
14
|
export { type AccountFailure, type AccountFailureClassifier, noopAccountFailureClassifier, } from './account-failure.js';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export { buildAcpSessionNewParams } from './session-params.js';
|
|
11
11
|
export { normalizeModels, detectAcpModels } from './models.js';
|
|
12
|
-
export { attachAcpSession
|
|
12
|
+
export { attachAcpSession } from './session.js';
|
|
13
|
+
export {} from './session-types.js';
|
|
13
14
|
export { noopAccountFailureClassifier, } from './account-failure.js';
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -16,7 +16,9 @@ export declare const DEFAULT_ACP_TIMEOUT_ENV_VAR = "AGENT_RUNTIME_ACP_TIMEOUT_MS
|
|
|
16
16
|
*
|
|
17
17
|
* @param err - Any caught value (typically an `Error` but may be anything).
|
|
18
18
|
*/
|
|
19
|
-
export declare function errorMessage(err
|
|
19
|
+
export declare function errorMessage({ err }: {
|
|
20
|
+
err: unknown;
|
|
21
|
+
}, _optional?: Record<string, never>): string;
|
|
20
22
|
/**
|
|
21
23
|
* Resolves the effective ACP timeout from an environment variable, falling
|
|
22
24
|
* back to `fallbackMs` when the variable is absent, blank, or non-finite. Clamps the
|
|
@@ -30,7 +32,12 @@ export declare function errorMessage(err: unknown): string;
|
|
|
30
32
|
* without this package hardcoding any one product's naming convention.
|
|
31
33
|
* @returns The resolved timeout in milliseconds.
|
|
32
34
|
*/
|
|
33
|
-
export declare function resolveAcpTimeoutMs(env
|
|
35
|
+
export declare function resolveAcpTimeoutMs({ env, fallbackMs }: {
|
|
36
|
+
env: NodeJS.ProcessEnv;
|
|
37
|
+
fallbackMs: number;
|
|
38
|
+
}, { envVarName }?: {
|
|
39
|
+
envVarName?: string | undefined;
|
|
40
|
+
}): number;
|
|
34
41
|
/**
|
|
35
42
|
* Coerces an unknown value to a `UnknownRecord` if it is a non-null, non-array
|
|
36
43
|
* plain object, or returns `null` otherwise. The primary guard used throughout
|
|
@@ -39,7 +46,9 @@ export declare function resolveAcpTimeoutMs(env: NodeJS.ProcessEnv, fallbackMs:
|
|
|
39
46
|
* @param value - Any value from a JSON parse result.
|
|
40
47
|
* @returns The value cast as `UnknownRecord`, or `null` when the cast is unsafe.
|
|
41
48
|
*/
|
|
42
|
-
export declare function asObject(value
|
|
49
|
+
export declare function asObject({ value }: {
|
|
50
|
+
value: unknown;
|
|
51
|
+
}, _optional?: Record<string, never>): UnknownRecord | null;
|
|
43
52
|
/**
|
|
44
53
|
* Returns a short diagnostic string describing the JSON kind of `value`:
|
|
45
54
|
* `'array'`, `'null'`, or the result of `typeof`. Used to build
|
|
@@ -47,7 +56,9 @@ export declare function asObject(value: unknown): UnknownRecord | null;
|
|
|
47
56
|
*
|
|
48
57
|
* @param value - Any value from a parsed ACP update object.
|
|
49
58
|
*/
|
|
50
|
-
export declare function acpValueKind(value
|
|
59
|
+
export declare function acpValueKind({ value }: {
|
|
60
|
+
value: unknown;
|
|
61
|
+
}, _optional?: Record<string, never>): string;
|
|
51
62
|
/**
|
|
52
63
|
* Returns a sorted array of own string keys from `value` if it is a
|
|
53
64
|
* `UnknownRecord`, or an empty array otherwise. Used to snapshot object
|
|
@@ -55,7 +66,9 @@ export declare function acpValueKind(value: unknown): string;
|
|
|
55
66
|
*
|
|
56
67
|
* @param value - Any value from a parsed ACP update object.
|
|
57
68
|
*/
|
|
58
|
-
export declare function objectKeys(value
|
|
69
|
+
export declare function objectKeys({ value }: {
|
|
70
|
+
value: unknown;
|
|
71
|
+
}, _optional?: Record<string, never>): string[];
|
|
59
72
|
/**
|
|
60
73
|
* Recursively traverses an ACP update value up to 4 levels deep and returns
|
|
61
74
|
* the first non-empty string found, checking common text-bearing keys in order:
|
|
@@ -68,7 +81,11 @@ export declare function objectKeys(value: unknown): string[];
|
|
|
68
81
|
* @param depth - Current recursion depth (max 4); callers omit this.
|
|
69
82
|
* @returns The first non-empty string found, or `null` when none is present.
|
|
70
83
|
*/
|
|
71
|
-
export declare function extractAcpTextValue(value
|
|
84
|
+
export declare function extractAcpTextValue({ value }: {
|
|
85
|
+
value: unknown;
|
|
86
|
+
}, { depth }?: {
|
|
87
|
+
depth?: number | undefined;
|
|
88
|
+
}): string | null;
|
|
72
89
|
/**
|
|
73
90
|
* Extracts the first non-empty text string from the top-level properties of a
|
|
74
91
|
* parsed ACP session update object. Checks the same key list as
|
|
@@ -78,5 +95,7 @@ export declare function extractAcpTextValue(value: unknown, depth?: number): str
|
|
|
78
95
|
* @param update - A parsed ACP `session/update` params object.
|
|
79
96
|
* @returns The first non-empty text string, or `null` when none is present.
|
|
80
97
|
*/
|
|
81
|
-
export declare function extractAcpUpdateText(update
|
|
98
|
+
export declare function extractAcpUpdateText({ update }: {
|
|
99
|
+
update: UnknownRecord;
|
|
100
|
+
}, _optional?: Record<string, never>): string | null;
|
|
82
101
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -10,7 +10,7 @@ export const DEFAULT_ACP_TIMEOUT_ENV_VAR = 'AGENT_RUNTIME_ACP_TIMEOUT_MS';
|
|
|
10
10
|
*
|
|
11
11
|
* @param err - Any caught value (typically an `Error` but may be anything).
|
|
12
12
|
*/
|
|
13
|
-
export function errorMessage(err) {
|
|
13
|
+
export function errorMessage({ err }, _optional = {}) {
|
|
14
14
|
return err instanceof Error ? err.message : String(err);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -26,7 +26,7 @@ export function errorMessage(err) {
|
|
|
26
26
|
* without this package hardcoding any one product's naming convention.
|
|
27
27
|
* @returns The resolved timeout in milliseconds.
|
|
28
28
|
*/
|
|
29
|
-
export function resolveAcpTimeoutMs(env, fallbackMs, envVarName = DEFAULT_ACP_TIMEOUT_ENV_VAR) {
|
|
29
|
+
export function resolveAcpTimeoutMs({ env, fallbackMs }, { envVarName = DEFAULT_ACP_TIMEOUT_ENV_VAR } = {}) {
|
|
30
30
|
const value = env[envVarName];
|
|
31
31
|
if (!value?.trim())
|
|
32
32
|
return fallbackMs;
|
|
@@ -43,7 +43,7 @@ export function resolveAcpTimeoutMs(env, fallbackMs, envVarName = DEFAULT_ACP_TI
|
|
|
43
43
|
* @param value - Any value from a JSON parse result.
|
|
44
44
|
* @returns The value cast as `UnknownRecord`, or `null` when the cast is unsafe.
|
|
45
45
|
*/
|
|
46
|
-
export function asObject(value) {
|
|
46
|
+
export function asObject({ value }, _optional = {}) {
|
|
47
47
|
return value && typeof value === 'object' && !Array.isArray(value) ? value : null;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
@@ -53,7 +53,7 @@ export function asObject(value) {
|
|
|
53
53
|
*
|
|
54
54
|
* @param value - Any value from a parsed ACP update object.
|
|
55
55
|
*/
|
|
56
|
-
export function acpValueKind(value) {
|
|
56
|
+
export function acpValueKind({ value }, _optional = {}) {
|
|
57
57
|
if (Array.isArray(value))
|
|
58
58
|
return 'array';
|
|
59
59
|
if (value === null)
|
|
@@ -67,8 +67,8 @@ export function acpValueKind(value) {
|
|
|
67
67
|
*
|
|
68
68
|
* @param value - Any value from a parsed ACP update object.
|
|
69
69
|
*/
|
|
70
|
-
export function objectKeys(value) {
|
|
71
|
-
const obj = asObject(value);
|
|
70
|
+
export function objectKeys({ value }, _optional = {}) {
|
|
71
|
+
const obj = asObject({ value });
|
|
72
72
|
return obj ? Object.keys(obj).sort() : [];
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
@@ -83,14 +83,14 @@ export function objectKeys(value) {
|
|
|
83
83
|
* @param depth - Current recursion depth (max 4); callers omit this.
|
|
84
84
|
* @returns The first non-empty string found, or `null` when none is present.
|
|
85
85
|
*/
|
|
86
|
-
export function extractAcpTextValue(value, depth = 0) {
|
|
86
|
+
export function extractAcpTextValue({ value }, { depth = 0 } = {}) {
|
|
87
87
|
if (depth > 4)
|
|
88
88
|
return null;
|
|
89
89
|
if (typeof value === 'string')
|
|
90
90
|
return value.length > 0 ? value : null;
|
|
91
91
|
if (Array.isArray(value))
|
|
92
92
|
return joinAcpArrayText({ items: value, depth });
|
|
93
|
-
const obj = asObject(value);
|
|
93
|
+
const obj = asObject({ value });
|
|
94
94
|
if (!obj)
|
|
95
95
|
return null;
|
|
96
96
|
return firstAcpKeyText({ obj, keys: NESTED_TEXT_KEYS, depth: depth + 1 });
|
|
@@ -126,7 +126,7 @@ const UPDATE_TEXT_KEYS = [
|
|
|
126
126
|
* or `null` when the joined text is empty. */
|
|
127
127
|
function joinAcpArrayText({ items, depth }) {
|
|
128
128
|
const text = items
|
|
129
|
-
.map((item) => extractAcpTextValue(item, depth + 1))
|
|
129
|
+
.map((item) => extractAcpTextValue({ value: item }, { depth: depth + 1 }))
|
|
130
130
|
.filter((part) => typeof part === 'string' && part.length > 0)
|
|
131
131
|
.join('');
|
|
132
132
|
return text.length > 0 ? text : null;
|
|
@@ -135,7 +135,7 @@ function joinAcpArrayText({ items, depth }) {
|
|
|
135
135
|
* each value at `depth`. */
|
|
136
136
|
function firstAcpKeyText({ obj, keys, depth, }) {
|
|
137
137
|
for (const key of keys) {
|
|
138
|
-
const text = extractAcpTextValue(obj[key], depth);
|
|
138
|
+
const text = extractAcpTextValue({ value: obj[key] }, { depth });
|
|
139
139
|
if (text)
|
|
140
140
|
return text;
|
|
141
141
|
}
|
|
@@ -150,7 +150,7 @@ function firstAcpKeyText({ obj, keys, depth, }) {
|
|
|
150
150
|
* @param update - A parsed ACP `session/update` params object.
|
|
151
151
|
* @returns The first non-empty text string, or `null` when none is present.
|
|
152
152
|
*/
|
|
153
|
-
export function extractAcpUpdateText(update) {
|
|
153
|
+
export function extractAcpUpdateText({ update }, _optional = {}) {
|
|
154
154
|
return firstAcpKeyText({ obj: update, keys: UPDATE_TEXT_KEYS, depth: 0 });
|
|
155
155
|
}
|
|
156
156
|
//# sourceMappingURL=json.js.map
|
|
@@ -41,7 +41,9 @@ export interface DetectAcpModelsOptions {
|
|
|
41
41
|
* @param value - A raw field value from an ACP config option object.
|
|
42
42
|
* @returns A normalised token string, or `''` when `value` is not a string.
|
|
43
43
|
*/
|
|
44
|
-
export declare function normalizeConfigOptionToken(value
|
|
44
|
+
export declare function normalizeConfigOptionToken({ value }: {
|
|
45
|
+
value: unknown;
|
|
46
|
+
}, _optional?: Record<string, never>): string;
|
|
45
47
|
/**
|
|
46
48
|
* Returns `true` when the given `option` object from `configOptions` represents
|
|
47
49
|
* a model-selection config option, using a cascade of category, id, and name
|
|
@@ -50,7 +52,10 @@ export declare function normalizeConfigOptionToken(value: unknown): string;
|
|
|
50
52
|
* @param option - A single item from the `configOptions` array.
|
|
51
53
|
* @param configId - The trimmed `id` field of that item.
|
|
52
54
|
*/
|
|
53
|
-
export declare function isModelConfigOption(option
|
|
55
|
+
export declare function isModelConfigOption({ option, configId }: {
|
|
56
|
+
option: UnknownRecord;
|
|
57
|
+
configId: string;
|
|
58
|
+
}, _optional?: Record<string, never>): boolean;
|
|
54
59
|
/**
|
|
55
60
|
* Scans the `configOptions` array from an ACP `session/new` result and returns
|
|
56
61
|
* the first entry that passes `isModelConfigOption`. Returns `null` when no
|
|
@@ -59,7 +64,15 @@ export declare function isModelConfigOption(option: UnknownRecord, configId: str
|
|
|
59
64
|
* @param configOptions - The raw `result.configOptions` value from a session response.
|
|
60
65
|
* @returns A parsed `AcpModelConfigOption` or `null` when absent.
|
|
61
66
|
*/
|
|
62
|
-
export declare function findModelConfigOption(configOptions
|
|
67
|
+
export declare function findModelConfigOption({ configOptions }: {
|
|
68
|
+
configOptions: unknown;
|
|
69
|
+
}, _optional?: Record<string, never>): AcpModelConfigOption | null;
|
|
70
|
+
export declare function findEffortConfigOption({ configOptions }: {
|
|
71
|
+
configOptions: unknown;
|
|
72
|
+
}, _optional?: Record<string, never>): {
|
|
73
|
+
configId: string;
|
|
74
|
+
values: string[];
|
|
75
|
+
} | null;
|
|
63
76
|
/**
|
|
64
77
|
* Extracts and normalises the available models list from an ACP
|
|
65
78
|
* `configOptions` array (preferred) into a `ModelOption[]`. Prepends
|
|
@@ -70,7 +83,10 @@ export declare function findModelConfigOption(configOptions: unknown): AcpModelC
|
|
|
70
83
|
* @param defaultModelOption - The fallback option to prepend to the list.
|
|
71
84
|
* @returns `{ currentModelId, models }` or `null` when no config option is found.
|
|
72
85
|
*/
|
|
73
|
-
export declare function normalizeModelConfigOptions(configOptions
|
|
86
|
+
export declare function normalizeModelConfigOptions({ configOptions, defaultModelOption }: {
|
|
87
|
+
configOptions: unknown;
|
|
88
|
+
defaultModelOption: ModelOption;
|
|
89
|
+
}, _optional?: Record<string, never>): {
|
|
74
90
|
currentModelId: string | null;
|
|
75
91
|
models: ModelOption[];
|
|
76
92
|
} | null;
|
|
@@ -98,7 +114,9 @@ export declare function normalizeModels({ models, defaultModelOption }: {
|
|
|
98
114
|
*
|
|
99
115
|
* @param code - The `error.code` value from a JSON-RPC error response.
|
|
100
116
|
*/
|
|
101
|
-
export declare function modelSelectionErrorIsRecoverable(code
|
|
117
|
+
export declare function modelSelectionErrorIsRecoverable({ code }: {
|
|
118
|
+
code: unknown;
|
|
119
|
+
}, _optional?: Record<string, never>): boolean;
|
|
102
120
|
/**
|
|
103
121
|
* Reads the currently active model id from a `session/new` (or
|
|
104
122
|
* `session/set_model`) result object, checking `configOptions` first and
|
|
@@ -106,7 +124,9 @@ export declare function modelSelectionErrorIsRecoverable(code: unknown): boolean
|
|
|
106
124
|
*
|
|
107
125
|
* @param result - The parsed `result` object from a session handshake response.
|
|
108
126
|
*/
|
|
109
|
-
export declare function currentModelFromSessionResult(result
|
|
127
|
+
export declare function currentModelFromSessionResult({ result }: {
|
|
128
|
+
result: UnknownRecord;
|
|
129
|
+
}, _optional?: Record<string, never>): string | null;
|
|
110
130
|
/**
|
|
111
131
|
* Probes a running ACP binary by spawning it, performing the
|
|
112
132
|
* `initialize` → `session/new` handshake, and reading the model list from the
|