Skip to content

fix: set version in one place#73

Merged
johnstcn merged 9 commits intomainfrom
cj/fix-version
Sep 3, 2025
Merged

fix: set version in one place#73
johnstcn merged 9 commits intomainfrom
cj/fix-version

Conversation

@johnstcn
Copy link
Member

@johnstcn johnstcn commented Sep 2, 2025

Fixes #22
Fixes #72

Running make gen will now update the version in all places.
Also adds a check for unstaged changes after running make gen.
See https://github.com/coder/agentapi/actions/runs/17414682883/job/49440192792 for an example.

@johnstcn johnstcn self-assigned this Sep 2, 2025
@johnstcn johnstcn changed the title fix: add check for version fix: set version in one place Sep 2, 2025
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. Thanks for doing this.

@johnstcn johnstcn merged commit 7aa0cc8 into main Sep 3, 2025
2 checks passed
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 23, 2026
Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat(e2e): add asciinema recording parser for testing

- Add asciinema package to parse asciinema v2 recordings
- Convert recordings to echo agent scripts
- Enable using real agent interactions for e2e testing
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat(e2e): add asciinema recording parser for testing

- Add asciinema package to parse asciinema v2 recordings
- Convert recordings to echo agent scripts
- Enable using real agent interactions for e2e testing

* fix: screenDiff wrong content for AgentTypeOpencode

Fixes #174 - screenDiff returns wrong content for AgentTypeOpencode

The bug was using slice index instead of original array index when
finding first non-matching line after header.
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination support for messages endpoint

#187 - Add offset/limit query params to /messages endpoint
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: auto-skip status check for AskUserQuestion prompts

#171 - Support for AskUserQuestion input

The AskUserQuestion tool renders an interactive TUI menu that never
stabilizes (cursor keeps blinking), causing timeouts when trying to
send a response.

This fix auto-detects AskUserQuestion prompts by checking for the
'Enter to select' indicator and skips the screen stability check.
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* fix: use fs.WalkDir instead of afero.Walk for embed.FS

#178 - Fix afero.Walk error with embedded files

The afero.Walk function can fail with embedded FS due to path separator
issues on different platforms. This change uses fs.WalkDir which is the
standard Go way to walk directories and works better with embed.FS.

Also adds better error handling for files that can't be read or accessed.
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* test: add initial prompt tests and fix whitespace handling

#114 - Add tests for initial prompt feature

- Add TestConversation_InitialPrompt_MultiLine
- Add TestConversation_InitialPrompt_WhitespaceOnly
- Fix: treat whitespace-only prompts as empty
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add slash command support

#117 - Support For Slash Commands

- Add MessageTypeCommand for sending slash commands
- Slash commands are sent directly to agent with newline appended
- Example: POST /message with type: "command", content: "/help"
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /info endpoint for agent info

#60 - Improve agent detection

- Add GET /info endpoint returning agent type, version, and features
- Helps clients detect agent type and capabilities
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* test: add tests for first line preservation

#126 - First line of response being trimmed

- Add TestFormatAgentMessage_PreservesFirstLine
- Add TestTrimEmptyLines_PreservesContent
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add API key generation endpoint placeholder
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add test coverage placeholder
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /health endpoint for load balancer probes

Add GET /health endpoint for Kubernetes/Docker health checks
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /config endpoint

Add GET /config endpoint returning agent type and port
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /version endpoint
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /messages/count endpoint
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add /ready endpoint for Kubernetes readiness probe
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add rate limiting endpoint
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add logging endpoint
KooshaPari referenced this pull request in KooshaPari/agentapi-plusplus Feb 24, 2026
* feat: add agent lifecycle endpoints

Add new HTTP endpoints for agent management:
- POST /agent/start - Start a new agent session
- GET /agent/{id}/status - Get session status
- POST /agent/{id}/stop - Stop a session
- GET /agent/{id}/logs - Stream logs (SSE)
- POST /model/run - One-shot model command
- GET /models - List available models

Migrate from gin to chi for HTTP routing.
Add AgentHandler with session management.

Related: #72 #73 #74 #75 #76

* feat: add pagination to GET /messages endpoint

Add support for:
- ?after=<id> - return messages after this ID
- ?limit=<n> - limit number of messages returned

This allows clients to poll for new messages without fetching
the entire conversation history each time.

Fixes #187

* feat: add DELETE /messages to clear conversation history
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.

Versioning incorrect release for darwin arm binary

2 participants