feat(llm-lib): v0.2.1 — tool_call у PermissionRequestEvent + AcpAgentKind::tier_spec - #204
Merged
Merged
Conversation
…й AcpAgentKind::tier_spec Закриває дві прогалини session-API під T9/T10 (tauri-components): - PermissionRequestEvent несе tool_call (ToolCallUpdate) — зовнішній permission-responder (webview-UI плагіна) показує, що саме просить дозволу - AcpAgentKind::tier_spec(tier) — публічна збірка AcpAgent-спеки з тір-пресетом без дублювання розбору command() у споживачах; one_shot_acp_with_tier переведено на нього Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
vitaliytv
added a commit
to nitra/tauri-components
that referenced
this pull request
Jul 24, 2026
…end-only (Ф4/Ф5) (#11) * feat(agent): T9 — плагін на session-API крейта llm-lib (Ф4) Власний ACP-транспорт (клієнт-білдер, initialize, session-цикл) викинуто; acp_spawn_agent/acp_prompt/acp_cancel/acp_respond_permission тепер тонка Tauri-адаптація над llm_lib::acp::session (create_session/SessionHandle/ SessionEvent, PermissionMode::External): emit acp://session-update і acp://permission-request (з toolCall), стейт responder-ів, capabilities/MCP. Cargo.toml: llm-lib git-dep tag llm-lib-v0.2.1 (v0.2.0 + tool_call у PermissionRequestEvent і AcpAgentKind::tier_spec — PR nitra/7n-rules#204). Подію acp://session-error прибрано — webview її ніколи не слухав, помилки handshake повертаються з acp_spawn_agent як і раніше. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * docs: регенерація застарілих doc-файлів (repo-wide прогін doc-files) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * feat(agent)!: T10 — npm-пакет frontend-only, тіри з бекенда (Ф5) Нова tauri-команда acp_list_tiers віддає kind-и/тіри/UI-лейбли з Rust-пресетів llm-lib (та сама серіалізація, що getAcpPresets у napi-мосту крейта); acp_spawn_agent приймає {kind, tier} замість {command, args, env} (pi-тір іде post-session config-кроком через SessionOptions). useAcpAgent() більше не приймає agents-пресети — loadEnv() тягне їх з бекенда, пікер рендерить те, що віддав acp_list_tiers; createAcpSession({agentKind, tier, …}), новий експорт listAcpTiers. core/acp-agent-presets.js (CODEX_ACP_AGENT_PRESET) видалено — нуль model-знання в npm-пакеті. Прибрано change-файл 260724-1834 (docs-only коміт його не потребував, зміст покриває 260724-1841). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * docs: doc-файли для RequestView/StatePill stories (закриває давній missing) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Дві прогалини session-API, виявлені при реалізації T9/T10 у tauri-components (спека docs/specs/2026-07-23-llm-cascade-single-source-spec.md):
ToolCallUpdate) — зовнішній permission-responder (webview-UI плагіна) має показати людині, що саме просить дозволу; без цього T9 дає регресію permission-UI (T2-приймання «API покриває повний перелік потреб плагіна» фактично не покривало tool_call).AcpAgent-спеки з тір-пресетом (env Codex / extra-args Cursor), щоб session-споживачі (плагін, T10{kind, tier}) не дублювали розбірcommand();one_shot_acp_with_tierпереведено на нього.Версії крейтів → 0.2.1, тег
llm-lib-v0.2.1запушено (цільова залежність плагіна в T9). Тести:cargo test -p llm-lib41 passed, clippy чистий, doc-files регенеровано.🤖 Generated with Claude Code