Repository navigation
Tags
Tags
feat(mcp): serve upstream ext-apps App documents as written; mark MCP… …-UI legacy (#3614) * feat(mcp): serve upstream ext-apps App documents as written; mark MCP-UI legacy A document written against the `App` class from @modelcontextprotocol/ext-apps performs its own ui/initialize handshake, so injecting ag2ui gave the host two. MCPApp now serves a body that loads the package (an import, import() or script src naming it) or carries the "ui/initialize" string literal (an inlined bundle, or ag2ui placed by hand) without the runtime. Unquoted prose mentioning either still gets ag2ui; a skipped body that calls ag2ui logs a warning. The runtime's ui/initialize appInfo.name is now a human name: the title (resolved per request), else an explicit name, else the URI path. Docs: an ag2ui <-> App table and a CDN example with its csp= in mcp_apps.mdx; mcp_ui.mdx is retitled "MCP-UI (legacy embedded resources)" and points to MCP Apps. No deprecation warning yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(mcp): recognise the ext-apps SDK only in running scripts; send appInfo title Address review on #3614: - look for the SDK import, src and "ui/initialize" only in <script> elements the browser runs, so prose, comments, <template>/<noscript> and data scripts still get ag2ui - recognise template-literal import() of the SDK - warn when window.ag2ui is referenced but not defined - send appInfo.name (explicit name or URI path) and appInfo.title (the document title), per MCP Implementation - docs: the upstream App example is a full card.html served by Path, with its tools and server * fix(mcp): read running scripts to decide runtime injection Replace the regex scan over the whole body with a reader of the scripts the browser would run (ag2/mcp/_document_scripts.py): HTML via html.parser with a stack of inert ancestors, script code via a small tokenizer that drops comments and tells strings from code. A commented-out import, a script between nested templates, and scripts inside <style>, <title> or an attribute no longer suppress ag2ui. A document that performs its own handshake but calls ag2ui without defining it now gets ag2ui, with a warning about the second handshake. An explicit name equal to the URI is kept in appInfo. Recorded in ADR 0037. * fix(mcp): read comments, conditions and template literals before deciding injection --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
docs: fix TaskEvent filter, stale depth row and ScopeError note (#3582) * docs: explain scoped variables and subagent event routing * docs: use OpenAI Responses in delegation examples * docs: register delegation example callbacks with observer decorators * docs: fix TaskEvent filter, stale depth row and ScopeError note --------- Co-authored-by: Lancetnik <nikita@pastukhov-dev.ru>
feat(openai): deprecate Chat Completions default ahead of 1.4.0 (#3517) * feat(openai): deprecate Chat Completions default ahead of 1.4.0 * refactor(openai): name explicit config OpenAICompletionsConfig * refactor(openai): share OpenAIConfig deprecation message --------- Co-authored-by: Semen Frolov <vvlrff@gmail.com> Co-authored-by: Semen Frolov <148821259+vvlrff@users.noreply.github.com>
fix(tools): preserve tools and middleware when merging toolkits (#3387) * fix(tools): avoid repeated toolkit middleware when merging * test(tools): make toolkit merge regressions readable Replace branching merge tests with five focused scenarios and literal call traces. Keep retained middleware, incoming hook order, source independence, later decorator additions, and same-name replacement separate. Remove two override checks that could not distinguish implementations. Use distinct bodies and hooks for the replacement case. Validation: - 251 scoped tests passed on Python 3.13.9. - Each of five targeted broken implementations fails exactly one toolkit test. - Ruff 0.16.9 check/format, codespell, and license checks passed. - No new mypy test diagnostics; removing old tests also removes two existing ones. * fix(tools): preserve member tools when combining toolkits Toolkit composition now creates a separate member collection retaining the original tools and their middleware. It does not attach the left toolkit's hooks to incoming tools or inherit them for later decorator additions. Keep right-hand replacement by name. Update the focused tests, toolkit guide, and ADR 0024 to record the aggregation contract. Validation: - 251 scoped tests passed on Python 3.13.9, including 22 toolkit tests. - Six isolated broken variants each failed exactly one toolkit test. - Ruff 0.16.9 check/format, codespell, and license checks passed. - Core toolkit mypy passed; no new test type diagnostics. --------- Co-authored-by: Semen Frolov <148821259+vvlrff@users.noreply.github.com> Co-authored-by: Lancetnik <nikita@pastukhov-dev.ru>
chore(deps): bump pyjwt from 2.13.0 to 2.14.0 (#3319) Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.13.0 to 2.14.0. - [Release notes](https://github.com/jpadilla/pyjwt/releases) - [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst) - [Commits](jpadilla/pyjwt@2.13.0...2.14.0) --- updated-dependencies: - dependency-name: pyjwt dependency-version: 2.14.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat(context): announce enqueued messages with MessageEnqueued (#3292) `ConversationContext.enqueue` now publishes a transient `MessageEnqueued` event from a background task after appending to the stream's inbox. The inbox was passive: `Agent` drains it before each model call, but a consumer with no model calls of its own (a live session between two responses) had no way to learn that a message arrived. `enqueue` stays synchronous. From a sync tool running in an anyio worker thread the announcement is scheduled back on the event loop. `Stream.enqueue` remains a low-level append that announces nothing. Also records the live-session input design (ADR 0019) and the Live glossary that the following LiveAgent PRs build on. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
PreviousNext