-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve example providers #148
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Kosta Ilinov <[email protected]>
Co-authored-by: Kosta Ilinov <[email protected]>
Co-authored-by: Kosta Ilinov <[email protected]>
Ah, will update tests… |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
1. `pnpm install` | ||
1. `pnpm -C provider/hello-world bundle --watch` to automatically recompile on changes | ||
1. Run `echo file://$(pwd)/provider/hello-world/dist/bundle.js` and use that URL in your OpenCtx instead of `"https://openctx.org/npm/@openctx/provider-hello-world"` | ||
1. Reload your OpenCtx client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we mention testing with the cli as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's a good idea, will do. It's pretty hard to develop a provider without the cli tbh
I would love to see a working example for a provider implemented as a standalone vs code extension (or similar) communicating with Cody over http. Thank you. |
Updates the Hello World provider with an example of how to do
mentions
, and adds a simple JSON API example tooFixes https://linear.app/sourcegraph/issue/CODY-2438/update-the-examples-on-openctxorg-to-show-mentions