feat: decouple framework from OpenCode — fully headless mode#16
Merged
feat: decouple framework from OpenCode — fully headless mode#16
Conversation
Complete resolution to ensure OpenCode, Hermes, and OpenClaw work in fully decoupled environments. The framework now resolves all config, state, and data paths via config-paths.ts with priority chain: STRRAY_CONFIG_DIR > .strray/ > .opencode/strray/ > built-in defaults Source file fixes (15 files): - CRITICAL: agent-config-validator.ts readdir guard, integration.ts opencode spawn try/catch - config-loader, features-config, token-manager, consent-manager, context-loader, state-manager, advanced-profiler: replaced hardcoded .opencode/ defaults with config-paths.ts resolvers - CLI: validate, status, analytics-status, antigravity-status, skill-install: use getConfigDir() instead of hardcoded .opencode/ - MCP: boot-orchestrator uses resolveLogDir/resolveStateDir - server.ts: refactoring log path via resolveConfigPath - inference-improvement-processor: reports/inference dirs via getConfigDir Package changes: - .strray/ seed directory with framework defaults (codex, config, features, routing-mappings, agents template, integrations, workflow) - package.json: added .strray/ to files, removed .opencode/state/, .opencode/init.sh, .opencode/package.json (consumer clutter) - Removed strray-ai self-dependency (circular dep bug) - prepare-consumer.cjs: syncs .strray/ from .opencode/strray/ on publish Test fixes (6 files): - Updated path assertions for config-paths resolver output - Mocked config-paths module where needed - All 2399 tests passing
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
Complete resolution ensuring OpenCode, Hermes, and OpenClaw work in fully decoupled environments. The framework now resolves all config, state, and data paths via config-paths.ts with the priority chain:
STRRAY_CONFIG_DIR > .strray/ > .opencode/strray/ > built-in defaults
What changed
35 files changed, 1475 insertions, 92 deletions
Source fixes (15 files)
Package changes
Test fixes (6 files)
Environments supported