Add unified agent sync providers for credentials and preferences#42
Merged
Add unified agent sync providers for credentials and preferences#42
Conversation
Comment on lines
+55
to
+59
| await docker.execInContainer(containerName, ['chmod', '-R', '644', dir.dest], { | ||
| user: 'workspace', | ||
| }); | ||
| await docker.execInContainer(containerName, ['chmod', '755', dir.dest], { | ||
| user: 'workspace', |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
2441f66 to
1f6513a
Compare
1f6513a to
b120282
Compare
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
AgentSyncProviderinterface for syncing agent credentials and preferences to workspacessrc/agents/that combines sync and session providers for each coding agentWorkspaceManagerwith the new abstractionFileCopierfor testability without DockerArchitecture
What Each Agent Now Syncs
~/.claude/.credentials.jsonsettings.json,CLAUDE.md,~/.claude/agents/(skills), MCP servers from~/.claude.jsonopencode.jsonwithzen_tokenopencode.json~/.codex/auth.json~/.codex/config.tomlKey Design Decisions
FileCopierinterface allows unit testing without Dockersrc/agents/index.tsis the single entry point for all agent capabilitiesChanges
src/agents/- Agent sync providers and central registrytest/integration/agent-sync.test.ts- Integration testsrc/workspace/manager.ts- Replaced 3 methods withsyncAllAgents()callsrc/agent/file-watcher.ts- UsesgetCredentialFilePaths()from agents moduletest/helpers/agent.ts- Fixedagentsconfig passthroughTesting