This repository was archived by the owner on Jul 16, 2026. It is now read-only.
COPSPA-526: Migrate OpenCode config plugin onto lib-ts-config-sync#3
Open
MarcusSchwarz wants to merge 3 commits into
Open
COPSPA-526: Migrate OpenCode config plugin onto lib-ts-config-sync#3MarcusSchwarz wants to merge 3 commits into
MarcusSchwarz wants to merge 3 commits into
Conversation
…hase 3) - Depend on @techdivision/lib-ts-config-sync (file: link, local). - Rewrite src/config.ts as a thin wrapper: adapts the OpenCode client to the library Logger, reads plugin version, runs OpenCodeAdapter on session.created (completes the previously-missing remote sync). - Remove duplicated logic now owned by the library: src/services/* and src/types/PluginConfig.ts plus their unit/acceptance tests. - Fix logger to use the real client.app.log surface; drop unused helpers. - Remove broken docs symlink; drop non-existent skills/ from package files. - Update scaffolding acceptance test to the new lib-based structure.
… fix) - .env.example: use CONFIG_SYNC_URL / CONFIG_SYNC_BEARER_TOKEN / CONFIG_SYNC_CONFIG_KEY (+ optional CONFIG_SYNC_PLUGINS) and keep OPENCODE_USER_EMAIL (sent as the 'user' field). - Update scaffolding acceptance test to assert the new env-var names.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
COPSPA-526 – Plugin Auto-Config (OpenCode wrapper)
https://techdivision.atlassian.net/browse/COPSPA-526
Migriert das OpenCode config-Plugin auf die geteilte Bibliothek
@techdivision/lib-ts-config-sync. Das Plugin ist jetzt ein dünner Wrapper; die gesamte Sync-Logik liegt in der Lib.Änderungen
@techdivision/lib-ts-config-sync.src/config.ts= dünner Wrapper: adaptiert den OpenCode-Client-Logger und ruftOpenCodeAdapteraufsession.createdauf (vervollständigt den zuvor fehlenden Remote-Sync).src/services/*undsrc/types/PluginConfig.tssamt Tests (jetzt in der Lib).docs-Symlink entfernt..env.example+ Scaffolding-Test auf den echten Vertrag angepasst:CONFIG_SYNC_URL/CONFIG_SYNC_BEARER_TOKEN/CONFIG_SYNC_CONFIG_KEY(+ optionalCONFIG_SYNC_PLUGINS), User-Identität viaOPENCODE_USER_EMAIL.Verhalten
.opencode/opencode-project.jsongeschrieben und inprocess.env.OPENCODE_PROJECT_CONFIGbereitgestellt.config_keywird ausjira.projectabgeleitet, wenn keine Env-Variable gesetzt ist.Tests