Commit Graph
62 Commits
Author SHA1 Message Date
Chris Scott d07eb7f523 feat: switch workspace plugin to remote adaptor with manager proxy
Switch the @opencode-manager/workspace-plugin adaptor from type local to
type remote so opencode TUIs running on machines without filesystem access
can use the manager's managed opencode server as their workspace backend.

Phase 1 - Plugin adaptor:
- Update target() to return type remote with manager URL and bearer auth
- Export makeAdaptor for testing
- Add tests for remote URL construction, slug encoding, and trailing slash

Phase 2 - HTTP proxy route:
- Add ALL /opencode/:slug/* catch-all proxy in workspace-plugin routes
- Reuses existing proxyRequest helper with slug-to-directory translation
- Rewrites inbound URL to /api/opencode/* shape for shared proxy logic
- Includes bearer token scope validation and project service

Phase 3 - WebSocket proxy:
- Extract verifyPluginBearerAuth as named function for reuse
- Attach second WebSocket proxy mount for /api/workspace-plugin/opencode prefix
- Both /api/opencode and /api/workspace-plugin/opencode prefixes supported

Phase 4 - Tests:
- Add 8 backend route tests covering auth, proxy forwarding, and POST body
- Add 3 plugin adaptor tests for remote target construction
2026-04-20 23:05:44 -04:00
Chris Scott 6b245893e9 feat: add proxy timeouts, SSE auth, server logging, and workspace plugin improvements
Add 30s timeout for proxy requests with streaming path exemption, 10s
WebSocket connect timeout, and differentiated 504/502 error responses.
Inject auth headers into SSE EventSource connections with throttled
failure warnings. Add server stdout/stderr log rotation. Improve
workspace plugin with file-level logging, local target type, and
proper build output.
2026-04-20 22:29:21 -04:00
CS d5342ecd91 feat: add workspace plugin for OpenCode TUI integration
- Add @opencode-manager/workspace-plugin package
- Add API tokens management with scoped access control
- Add workspace-plugin routes for project discovery
- Add bearer token authentication for external access
- Add proxy WebSocket support for remote workspaces
- Add frontend UI for API token management
- Update documentation with workspace plugin guide
2026-04-20 18:31:22 -04:00
Chris Scott 0f9caad98d Migrate memory plugin to standalone repository and remove Kasm files (#182)
Remove packages/memory from monorepo - plugin now lives at
chriswritescode-dev/opencode-memory and is installed from npm.

Update Dockerfile, docs, and workspace config to reflect the change.
Remove Dockerfile.kasm, kasm-startup.sh, and Kasm CI workflow.
2026-04-06 11:47:42 -04:00
Chris Scott 55ec3440f8 Fix SSH credential host matching and Bitbucket test detection (#174, #175) (#178) 2026-04-05 18:12:06 -04:00
Chris Scott c32feae8ef Fix session creation error handling and health endpoint status codes (#177) (#179) 2026-04-05 09:07:34 -04:00
Chris Scott 2f9c57a642 Update CHANGELOG with v0.0.18 through v0.0.27 changes 2026-03-27 16:50:44 -04:00
Chris Scott 4652ab6b99 Update documentation terminology from Ralph to Loop 2026-03-27 16:42:41 -04:00
Chris Scott 51f590163a Add stallTimeoutMs to default config.jsonc 2026-03-27 16:21:54 -04:00
Chris Scott af0a0c5c39 Fix documentation mismatches and fill gaps
- Update KV TTL from 24 hours to 7 days in memory.md
- Add AUTH_SECRET setup to Docker quickstart in installation.md
- Rename ralph to loop in docs and config.jsonc
- Add deprecation note for ralph.* prefix
- Fix test description in CONTRIBUTING.md
- Clarify skills path in skills.md
- Update setup-dev.sh to use curl install method
- Add memory-kv-delete documentation
- Add stallTimeoutMs to default config example
2026-03-27 16:20:31 -04:00
Chris Scott c87edded70 Update tests to use Loop terminology 2026-03-27 15:32:05 -04:00
Chris Scott 5f7abe3fd8 Refactor: replace Ralph terminology with Loop 2026-03-27 15:31:59 -04:00
Chris Scott 2c4a9c9257 Complete Ralph to Loop rename across entire codebase
Rename all Ralph references to Loop including types, services, hooks,
filenames, KV keys, API routes, frontend components, tests, and docs.

Key changes:
- Types: RalphState → LoopState, RalphConfig → LoopConfig
- Services: ralph.ts → loop.ts with worktree field (inverted from inPlace)
- KV keys: ralph: → loop:, ralph-session: → loop-session:
- API routes: /ralph/* → /loop/*
- Frontend: useLoopStatus, RepoLoopList, getLoopStatus, cancelLoop
- Config backward compatibility: accepts both loop and ralph (prefers loop)
- Automatic KV migration on plugin startup
- memory-plan-execute keeps inPlace parameter (different semantics)

Fixes critical bugs found in code review:
- Backend /loop/cancel route using wrong ralph: KV prefix
- Frontend error messages still referencing Ralph
- Log message consistency
2026-03-27 14:45:54 -04:00
Chris Scott 00489d9901 Update architect agent prompt to clarify memory curation and approval process 2026-03-27 13:45:59 -04:00
Chris Scott 7a5c34555d Bump memory package version to 0.0.26 2026-03-27 00:37:51 -04:00
Chris Scott 2b7c3f7991 Fix Basic Auth handling in v2 client and CLI status command 2026-03-27 00:36:04 -04:00
Chris Scott e14f4c5fa6 Document Ralph loop implementation details 2026-03-25 17:46:32 -04:00
Chris Scott d5c33fd041 Update memory README and fix normalizeConfig bug 2026-03-25 16:24:21 -04:00
Chris Scott b6bf2927a8 Revert "Give librarian agent KV store cleanup responsibilities"
This reverts commit fd634c9b72.
2026-03-25 16:11:57 -04:00
Chris Scott fd634c9b72 Give librarian agent KV store cleanup responsibilities 2026-03-25 16:09:53 -04:00
Chris Scott 7c956e9bba Update memory package KV store documentation
Add memory-kv-delete documentation and review finding retrieval logic
2026-03-25 15:49:39 -04:00
Chris Scott bcfb7223c0 Refactor Ralph session tracking with KV-backed session mapping and configurable TTL (#172)
* Fix Ralph state type safety and null handling in status commands

* Refactor Ralph to use worktree-keyed session mapping instead of sessionId lookups

* Add configurable KV TTL with 7-day default and update agent prompts

* Add --limit flag to CLI status and improve null safety for RalphState fields

* Bump memory package version to 0.0.25
2026-03-25 14:55:44 -04:00
Chris Scott 86613b1ea4 Add Ralph status dialog and session management improvements (#171) 2026-03-24 20:25:09 -04:00
Chris Scott 27352ea5cf Refactor Ralph session rotation with watchdog and stall detection (#170)
* Improve scroll-to-bottom UI and session status handling

* Enhance Ralph service with session rotation and watchdog

* Add tests for Ralph session rotation and cleanup

* Add Kasm Docker build workflow
2026-03-24 17:36:35 -04:00
Chris Scott 48670ced22 Update memory core services and bump version to 0.0.23
Enhance ralph service with partial name matching and candidate lookup.
Improve loop context handling for git branch detection.
Add formatSessionOutput and formatAuditResult helpers.
2026-03-24 11:39:43 -04:00
Chris Scott c2d502f893 Enhance CLI commands with partial matching and formatting
Add partial-match utility for fuzzy loop name lookup.
Introduce ralph-format helpers for consistent output formatting.
Improve status, cancel, and list commands with better UX.
2026-03-24 11:39:35 -04:00
Chris Scott 72a2356f2f Bump memory package version to 0.0.22 2026-03-22 14:57:32 -04:00
Chris Scott c3cba72b51 Update skills UI components for managed skills (#165)
* ralph: ralph-repo-level-skills-dialog-skillseditor-fix completed after 4 iterations

* Remove parent session notification and child session tracking from Ralph loops

Sending promptAsync to parent sessions on loop completion could resume
work in previously inactive sessions. Removed parentSessionId from
RalphState, child session tracking maps, and all related event handling.
Watchdog stall detection still works via the session status API.

* Migrate global skills to workspace path

* Add skill injection to scheduled job prompts

* Refactor schedules UI with MultiSelect and tab menu

* Update skills UI components for managed skills
2026-03-22 14:52:32 -04:00
Chris Scott b9b5d50643 Bump version to 0.9.09 2026-03-20 21:09:07 -04:00
Chris Scott 8d9a8ba36a feat: bump memory plugin to v0.0.21 with plan approval tests 2026-03-20 19:58:08 -04:00
Chris Scott 1248d0b9e0 Update memory plugin (#160) 2026-03-20 12:16:56 -04:00
Chris Scott 20fc31bb9b Bump version to 0.0.18 and add memory curation guideline to architect 2026-03-08 16:28:20 -04:00
Chris Scott 9881e5f132 Add upgrade command with version check and caching 2026-03-08 13:03:27 -04:00
Chris Scott 160597688e update README to use @latest tag in plugin configuration 2026-03-08 12:13:12 -04:00
Chris Scott 6e99207c04 Update docs for agent rename and KV changes 2026-03-08 11:59:23 -04:00
Chris Scott e50f041025 Simplify KV service lifecycle 2026-03-08 11:58:57 -04:00
Chris Scott a190d5ec4a Rename agents to lowercase conventions 2026-03-08 11:58:41 -04:00
Chris Scott f03670dacf Add project KV store for ephemeral state management 2026-03-07 22:46:24 -05:00
Chris Scott e1890d0554 memory: v0.0.15 with code-review workflow and agent updates 2026-03-07 10:41:40 -05:00
Chris Scott 6ef68774d8 Clean up and enhance memory plugin (#151)
* refactor storage to use worker-based vector operations

* update memory service and agent implementations

* update opencode plugin sdk

* update memory plugin documentation

* add tests for memory service and injection hook

* update lockfile for dependency changes

* Add memory plugin v0.0.13 with message deduplication and config UI

* Remove planning state feature from memory plugin
2026-03-06 20:24:52 -05:00
Chris Scott c15e53fb98 Add executionModel feature and refactor CLI into modular commands (#150)
* Add executionModel feature and refactor CLI into modular commands

- Add executionModel config option to memory plugin for specifying AI provider/model
- Refactor monolithic CLI into modular commands: export, import, list, stats, cleanup
- Add model selector UI with connected providers and recent models
- Add showClear prop to Combobox component
- Update documentation and bump version to 0.0.10

* Update execution model placeholder text

* Update docs with new CLI commands and ocm-mem binary usage

* Bump version to v0.9.06

* Add executionModel field to default config
2026-03-03 20:08:36 -05:00
Chris Scott 89a508e0c7 Allow question tool for Code and Architect agents 2026-02-27 15:33:03 -05:00
Chris Scott 6dc8cab06e add Code Review agent with /review command support 2026-02-27 13:25:21 -05:00
Chris Scott 2b1dc9f72b document Code Review agent in memory package README and CHANGELOG 2026-02-27 13:25:20 -05:00
Chris Scott f8ba586364 Update memory plugin documentation for v0.0.9 changes 2026-02-27 12:45:30 -05:00
Chris Scott 7ee5bd3e68 Release v0.0.9 - add messages.transform hook and planning state improvements 2026-02-27 12:45:24 -05:00
Chris Scott bedfc80870 Restrict memory-planning-update and memory-planning-search to Memory subagent only 2026-02-27 12:45:17 -05:00
Chris Scott 4cb2ed7efd Inject read-only reminder into Architect messages, use constant for agent name, defensive state re-read 2026-02-27 12:45:11 -05:00
Chris Scott d149c94eac Add memory-planning-search tool and make planning state sessionID optional 2026-02-25 17:04:24 -05:00
Chris Scott f2d38f257e update tests for project-scoped storage and new features 2026-02-25 15:42:44 -05:00