Open
Conversation
add claude code support on proxy
Made-with: Cursor
feat(logging): add verbose traffic logging via CURSOR_BRIDGE_VERBOSE
fix: pass through "auto" model identifier to Cursor API
- EnvSource, EnvOptions, LoadedEnv types - loadEnvConfig() with aliases, defaults, path resolution - resolveAgentCommand() for Windows cmd.exe bypass - Supports injectable env for tests Made-with: Cursor
- loadBridgeConfig() consumes loadEnvConfig - CLI passes tailscale to loadBridgeConfig instead of mutating process.env - Config tests use injected env Made-with: Cursor
- Replace parseCliStreamLine with createStreamParser - Track accumulated text to skip final duplicate full message - Emit only deltas when text starts with accumulated - Add cli-stream-parser tests Made-with: Cursor
- process.ts uses resolveAgentCommand from env module - Spawn Node directly when CURSOR_AGENT_NODE + CURSOR_AGENT_SCRIPT set - Use cmd.exe /d /s /c with quoted args for .cmd files - Add process tests Made-with: Cursor
Made-with: Cursor
- CURSOR_AGENT_NODE, CURSOR_AGENT_SCRIPT for Windows - Agent bin alias precedence - Centralized env handling note - Tailscale and path resolution notes Made-with: Cursor
Made-with: Cursor
Release 0.3.0
- Add CURSOR_BRIDGE_MAX_MODE to LoadedEnv and BridgeConfig - Extend AgentCommand with agentScriptPath and configDir - On Windows: resolve .cmd to node+index.js when present for preflight Made-with: Cursor
Write maxMode: true to cli-config.json before spawning agent. Config resolution: CURSOR_CONFIG_DIR, agent data/config, then platform default. Made-with: Cursor
When maxMode is true and agentScriptPath is set, run preflight before spawn and pass configDir as CURSOR_CONFIG_DIR so CLI reads the same config. Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
- Add acp-client.ts: spawn agent acp, JSON-RPC over stdio (initialize, authenticate, session/new, session/prompt), handle session/update streaming and session/request_permission. - Add CURSOR_BRIDGE_USE_ACP and promptViaStdin config; wire agent-runner to use ACP when useAcp and prompt provided. - Branch chat-completions for ACP sync and stream (raw chunks to SSE). - Add stdinContent support in process.ts for promptViaStdin path. - Document CURSOR_BRIDGE_USE_ACP and PROMPT_VIA_STDIN in README. - Add process test for stdinContent.
Author
|
It works on Windows. Needs a lot more testing. |
Author
|
- Add acpCommand, acpArgs, acpEnv from resolveAgentCommand
- Pass windowsVerbatimArguments to spawn when using cmd.exe fallback
- Use child.kill('SIGKILL') on timeout (match process.ts)
- Add per-request timeout (60s) to sendRequest; reject and clear pending
- Add session/set_config_option for model when opts.model set
- Add acpArgsWithModel to inject --model into ACP args
- Skip ACP authenticate when CURSOR_API_KEY or CURSOR_BRIDGE_ACP_SKIP_AUTHENTICATE - Pass cmdArgs (with --model) to ACP streaming path so configured model is used - Add versioned layout detection (versions/YYYY.MM.DD-commit/) for Windows - Create minimal cli-config in temp workspace for chat-only mode - Add debug logging for unhandled session/update types - Pass CURSOR_API_KEY in acpEnv when set
…nt tests - Remove CURSOR_API_KEY from argv; pass only via acpEnv - Add config test for CURSOR_BRIDGE_ACP_RAW_DEBUG=1 - Add acp-client.test.ts with skipAuthenticate and fake ACP server
…DATA isolation - Move chat-only env overrides to getChatOnlyEnvOverrides() in workspace.ts - On Windows: set APPDATA and LOCALAPPDATA to workspace subdirs - On Unix: set XDG_CONFIG_HOME to workspace/.config - Create AppData/Roaming, AppData/Local on Windows temp workspace - Create .cursor/rules and .config dirs for isolated agent
When request model is 'auto', use config.defaultModel for response model field instead of echoing 'auto'. Covers CURSOR_BRIDGE_DEFAULT_MODEL set case; when unset, response remains 'auto'. - chat-completions.ts: displayModel for streaming and non-streaming - anthropic-messages.ts: same logic for message_start and final json - server.test: add tests for display model and echo-auto cases
d1f49dd to
1f0bfe0
Compare
Owner
|
@Azukay this is looking good for me! let me know when you think we are good to merge it |
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.
Summary
Create ACP (Agent Client Protocol) prompt delivery on Windows.
ACP transport (0cd9fa1)
Windows fixes (60a072d, 10dc59d)
Skip authenticate, model, versioned layout (9d57203)
Raw debug flag (5df496b)
Agent isolation (6d9b28d)
Review findings (1c97cb0)
--api-keyin process args)