Skip to content

feat(cursor): export CursorModelListItem - #120

Merged
xxchan merged 1 commit into
mainfrom
agent/cindy/export-cursor-model-list-item
Oct 13, 2026
Merged

xxchan merged 1 commit into
mainfrom
agent/cindy/export-cursor-model-list-item

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

projectCursorModels is public, but its parameter type was not exported, so a host had to reach it through CursorSdk. Exports it as CursorModelListItem. 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


View in Stamp

Cindy opened this pull request through Stamp

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
xxchan force-pushed the agent/cindy/export-cursor-model-list-item branch from fe980d3 to b4c18e5 Compare October 13, 2026 08:26
@xxchan
xxchan merged commit 233935c into main Oct 13, 2026
17 checks passed
@xxchan
xxchan deleted the agent/cindy/export-cursor-model-list-item branch October 13, 2026 08:30
@xxchan xxchan mentioned this pull request Oct 13, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant