-
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
Move capabilities into own package PLZ #80
Comments
we can for sure, do we need to do it now though ? i would like to avoid having everyone using capabilities directly we should have an abstraction like the Agent or something else so we can make changes in the caps and backend without bringing the world |
I think it makes sense to have a package with basically protocols, that is capabilities and some markdowns explaining the interaction. Those could be the pulled in by the agent / client library that our tools and libraries can depend upon. Those also could be pulled in by various service implementations. Current setup makes iteration on the protocol somewhat coupled with iteration on the implementation and I would like to be able to decouple them a bit more |
I'll do this next week. Accidentally created a duplicate. Copying this description from that: Acceptance Criteria:
Ideas
|
definitely split into separate modules, not sure separate packages are worth it, probably just going to only increase overhead right now |
@hugomrdias I'm assuming it's a good idea to release this to npm. I think that means I should add to this conditional to also run the release job for |
After merge
After release:
|
…web3-storage/capabilities (#218) Motivation: * #80 To do: * [x] initial package split * [x] remove capabilities dir from packages/access-client and fix imports in access-client * [x] fix imports from other packages that were importing from access-client/capabilities * [x] consider splitting to `capabilities/{service}/types` not `capabilities/types` * decided not to unless requested (makes exports map even more complicated, can do later) * [x] GH actions should run tests on packages/capabilities * [x] .github/workflows/release.yml does npm/docs jobs if paths_released contains packages/capabilities Co-authored-by: Irakli Gozalishvili <[email protected]>
Motivation: * #80 (comment) * trying to get release-please-action to generate a release PR for packages/capabilities * I would have expected it in this action, but there was [an error](https://github.com/web3-storage/w3protocol/actions/runs/3587365143/jobs/6037622712#step:2:44) ``` Expected 5 releases, only found 4 ⚠ Missing 1 paths: packages/capabilities ⚠ No version for path packages/capabilities ``` Theory: * maybe these errors are because I hadn't added this package to the manifest?
|
https://web3-storage.github.io/w3protocol/modules/_web3_storage_capabilities.html The docs can be updated via the 'manual' github action on this repo for package=docs. (example) For some reason the 'release' pipeline seems to skip docs job, even when it doesn't skip npm job which has the same
|
…web3-storage/capabilities (#218) Motivation: * #80 To do: * [x] initial package split * [x] remove capabilities dir from packages/access-client and fix imports in access-client * [x] fix imports from other packages that were importing from access-client/capabilities * [x] consider splitting to `capabilities/{service}/types` not `capabilities/types` * decided not to unless requested (makes exports map even more complicated, can do later) * [x] GH actions should run tests on packages/capabilities * [x] .github/workflows/release.yml does npm/docs jobs if paths_released contains packages/capabilities Co-authored-by: Irakli Gozalishvili <[email protected]>
Motivation: * #80 (comment) * trying to get release-please-action to generate a release PR for packages/capabilities * I would have expected it in this action, but there was [an error](https://github.com/web3-storage/w3protocol/actions/runs/3587365143/jobs/6037622712#step:2:44) ``` Expected 5 releases, only found 4 ⚠ Missing 1 paths: packages/capabilities ⚠ No version for path packages/capabilities ``` Theory: * maybe these errors are because I hadn't added this package to the manifest?
Hey @hugomrdias I would really like to decouple iterations on protocol from iterations on access SDK etc.. can we please just move all the capability definitions into own package e.g.
@web3-storage/protocol
or@web3-storage/capabilities
and pull those in from wherever we need.The text was updated successfully, but these errors were encountered: