feat(plugin): unify KiloCode/OpenCode plugin exports and routing#337
Closed
mikij wants to merge 1 commit intomksglu:nextfrom
Closed
feat(plugin): unify KiloCode/OpenCode plugin exports and routing#337mikij wants to merge 1 commit intomksglu:nextfrom
mikij wants to merge 1 commit intomksglu:nextfrom
Conversation
- Rename factory to `createContextModePlugin` and add default `{ server }` export for KiloCode
- Update routing call to pass platform string instead of hardcoded "opencode"
- Add compatibility named export `ContextModePlugin` for OpenCode consumers
- Adjust tests to verify both default and named exports
BREAKING CHANGE: Plugin consumers using default export must switch from `ContextModePlugin(ctx)` to `{ server }` shape; named export remains for backward compat.
Owner
|
Hi @mikij! Thanks! Why we need that? |
Contributor
Author
|
Honestly I asked model to investigate what is wrong with plugin as it does not work for me as I can notice. It found this and now I am trying to figure out if that will help. I managed to work with your example prompt but still in daily use I don't see prompts go through context-mode for me. It could be that KiloCode made. some changes in plugin architecture that is little different than OpenCodes but not sure. If you have any other suggestion to try instead I am open to try. |
Contributor
Author
Owner
|
Thanks @mikij — resolved the bundle conflicts and merged to We'd appreciate it if you could test the KiloCode/OpenCode plugin routing once we cut the next release. We'll tag you when it's out. |
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.

createContextModePluginand add default{ server }export for KiloCodeContextModePluginfor OpenCode consumersBREAKING CHANGE: Plugin consumers using default export must switch from
ContextModePlugin(ctx)to{ server }shape; named export remains for backward compat.What / Why / How
Could not get any saving on context
Affected platforms
Test plan
added test for "default export has KiloCode PluginModule shape { server }" and renamed old one
Checklist
npm testpassesnpm run typecheckpassesnextbranch (unless hotfix)Cross-platform notes
Our CI runs on Ubuntu, macOS, and Windows.
path.join()/path.resolve(), never hardcode/separatorsreadFileSync(0)breaks on Windowsos.tmpdir(), never hardcode/tmp