Skip to content

T8#1796

Merged
nmaguiar merged 20 commits intomasterfrom
t8
Apr 8, 2026
Merged

T8#1796
nmaguiar merged 20 commits intomasterfrom
t8

Conversation

@nmaguiar
Copy link
Copy Markdown
Collaborator

@nmaguiar nmaguiar commented Apr 8, 2026

This pull request introduces significant improvements to the handling of string visible length calculations and enhances the MCP ($mcp) and JSON-RPC ($jsonrpc) client/server infrastructure in js/openaf.js. The changes focus on Unicode and ANSI-aware string processing, richer introspection and debugging capabilities, and more flexible, template-driven MCP initialization and tool descriptions.

The most important changes are:

Unicode/ANSI String Handling:

  • Enhanced the visibleLength function and its helpers to accurately compute the visible length of strings containing Unicode, emoji, combining marks, and ANSI escape sequences, making output display more robust and correct.

JSON-RPC Client Enhancements:

  • Added a _mcpInfo object to track the last request, response, and response headers for each JSON-RPC session, and exposed this information via a new getClientInfo() method for improved introspection and debugging. [1] [2] [3] [4] [5] [6] [7]

MCP Server/Client Improvements:

  • Implemented synthetic capability and initialization result builders (_buildSyntheticCapabilities, _buildSyntheticInitializeResult) to standardize and enrich MCP server responses, including protocol version, server info, and capabilities. [1] [2] [3] [4]
  • Added support for templated tool descriptions, tool name prefixing, and dynamic tool resolution, enabling more flexible and customizable MCP tool definitions and metadata. [1] [2]
  • Extended MCP client with a getClientInfo() method to expose initialization and last request/response information, improving transparency and debuggability.

These changes collectively improve Unicode/ANSI compatibility, introspection, and configuration flexibility in the OpenAF MCP and JSON-RPC frameworks.

dependabot bot and others added 20 commits March 16, 2026 22:56
Bumps [org.jetbrains.kotlin:kotlin-stdlib](https://github.com/JetBrains/kotlin) from 2.3.10 to 2.3.20.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/v2.3.20/ChangeLog.md)
- [Commits](JetBrains/kotlin@v2.3.10...v2.3.20)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-version: 2.3.20
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
…pt wrapper

Agent-Logs-Url: https://github.com/OpenAF/openaf/sessions/6dc098b3-008a-41a0-ae8e-0caf57201a9f

Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
…sation-methods

Add cross-provider exportConversation/importConversation to all LLM providers
Agent-Logs-Url: https://github.com/OpenAF/openaf/sessions/13d1d852-e139-4f2d-88e9-213afeae16c6

Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
…ndividual test functions

Agent-Logs-Url: https://github.com/OpenAF/openaf/sessions/4a0365fd-33fa-4995-afc9-22eb96123721

Co-authored-by: nmaguiar <11761746+nmaguiar@users.noreply.github.com>
…tinfo

Expose MCP JSON-RPC protocol metadata via $mcp.getClientInfo
…s.kotlin-kotlin-stdlib-2.3.20

chore(deps): bump org.jetbrains.kotlin:kotlin-stdlib from 2.3.10 to 2.3.20
  - Add tplDesc option to enable template substitution in tool descriptions
  - Add toolPrefix option to namespace tool names with custom prefix
  - Add description extraction from oJob YAML for MCP server info
  - Add test for Ollama streaming warmup on fresh conversation
Fix bullet and numbered list indentation when ANSI colors are applied.
Previously used raw string length which included invisible ANSI escape
sequences, causing misalignment. Now uses visibleLength() to calculate
proper visible character count for indentation spacing.
@nmaguiar nmaguiar self-assigned this Apr 8, 2026
@nmaguiar nmaguiar merged commit 6b8e240 into master Apr 8, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Backlog to Done in Continuous Enhancement Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants