Repository navigation
feat(cursor): export CursorModelListItem - #120
Merged
Merged
Conversation
xxchan
added a commit
that referenced
this pull request
Oct 4, 2026
Updates OAR’s Pi SDK and provider dependencies from 1.0.0 to 1.0.2 and prepares both packages for 0.20.1. OAR’s public API and adapters are unchanged. The runtime inventory now resolves Cursor’s SDK from the host that imports it, matching the 0.20.0 integration contract. The dated report records all seven stable versions, Claude 2.1.289 validation, and the continuing Antigravity authentication gap. It preserves previous evidence instead of repeating unchanged live calls. PR #120 remains outside this release, per the maintainer’s direction. Validation: - `pnpm run check`: typecheck/lint, 598 unit tests passed (31 skipped), mock behavior 19/19 clean. - `pnpm run build` passed. - Claude 2.1.289: live basic/tool/resume 3/3; simulated behavior 19/19 clean; vendor 12 passed. - Pi 1.0.2: 11/11 applicable live cases; simulated behavior 19/19 clean; vendor 8 passed. - Separate-process Pi 1.0.0 → 1.0.2 resume retained native id, saved model and earlier transcript. - Updated inventory executed successfully against all seven official stable sources. Hosted CI pending. Co-authored-by: Otter <[email protected]>
…ctCursorModels projectCursorModels is public but its parameter type was not, so a host had to reach it through CursorSdk. Found in the #117 review. Co-Authored-By: Claude Opus 5.5 <[email protected]>
xxchan
force-pushed
the
agent/cindy/export-cursor-model-list-item
branch
from
October 13, 2026 08:26
fe980d3 to
b4c18e5
Compare
Merged
xxchan
added a commit
that referenced
this pull request
Oct 13, 2026
Release OAR and CLI 0.60.0. This PR changes only the two package version fields. **Added: `serveMcpTools`, tools the host implements** (#341, #376) - `serveMcpTools({ name, tools })` serves tools the host implements itself from a streamable HTTP MCP server inside the host process. Each tool has a name, description, input schema and handler. The server listens on `127.0.0.1` behind a random bearer token. - It returns `{ server, close() }`. `server` is a ready `SessionOptions.mcpServers` entry; pass it to any session. - One implementation reaches every runtime that takes an http MCP entry with `headers`: claude, codex, pi, grok, kimi and opencode. cursor and pi-durable refuse `mcpServers`, and antigravity refuses an entry with `headers`. - A handler returns text, or MCP content with `isError`. A thrown error becomes an `isError` result. Its `signal` aborts when the runtime cancels the call, drops the request, or the server closes. - Each `initialize` opens its own MCP session, so one served set can back several sessions without their calls meeting. - The token is redacted from records like any `mcpServers` header. The runtime must reach the host's loopback address, which holds for every runtime OAR starts on the same machine. - No runtime gets a native host-tool channel (codex `dynamicTools`, claude's in-process SDK MCP, pi custom tools). None adds a capability MCP lacks. **Added: `CursorModelListItem`** (#120) - The parameter type of `projectCursorModels` is now exported, so a host can type it without reaching into the Cursor SDK's types. **Docs** - `docs/runtimes/claude.md`: OAR always runs claude with `--dangerously-skip-permissions` and refuses `--permission-mode`. A host that needs enforcement isolates the session in an OS sandbox or container. **Behavior changes** - None for existing options. Both additions are new exports. Validation: #376 passed all 17 checks on its final head. Its merged tree equals the tree verified locally on top of #120 (typecheck, lint, 1765 unit tests). #120 passed all 17 on its final head, and its merged tree equals its CI tree. The vendor test drives the real claude, codex and pi (in CI) and opencode, kimi and grok (locally). Each calls a tool the test process serves, against a scripted provider, and the provider receives only what the host's handler wrote. No record holds the token. A second review (subagent) found that two sessions sharing a served set could cancel each other's calls, plus protocol gaps. Both were fixed before merge, with tests. After this PR passes CI and merges, tag its exact squash commit as `v0.60.0` to trigger npm trusted publishing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: exe.dev user <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
projectCursorModelsis public, but its parameter type was not exported, so a host had to reach it throughCursorSdk. Exports it asCursorModelListItem. Found in the #117 review.This is also the first OAR PR opened through Stamp (pilot for the server-wide rollout, #all:c9e5adc5).
🤖 Generated with Claude Code