-
Notifications
You must be signed in to change notification settings - Fork 208
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
export withOrchestration #9808
export withOrchestration #9808
Conversation
I'd like to review this by looking at a cloudflare preview. Any idea why it's not here? It was there on at least one recent PR: #9798 (comment) |
Good idea. Clicking into Cloudflare Pages job I see:
|
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.
/** @interface */
Nice finding!
Tangential to these changes, but interfaces/_agoric_orchestration.Orchestrator is virtually unreadable with the KnownChains generic
I noted that as a task in... |
bleah. the preview suffers from... |
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.
this all looks like forward progress
in particular, https://ta-export-withorchestration.agoric-sdk.pages.dev/interfaces/_agoric_orchestration.CosmosInterchainService looks better.
some parts might not be working as well as expected, though
const getPower = (powers, name) => { | ||
powers.has(name) || Fail`need powers.${b(name)} for this method`; | ||
return /** @type {OrchestrationPowers[K]} */ (powers.get(name)); | ||
return /** @type {CosmosInterchainPowers[K]} */ (powers.get(name)); |
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.
this getPower
thing still isn't gone? darn.
@@ -43,6 +43,7 @@ import { makeZoeTools } from './zoe-tools.js'; | |||
* @param {Baggage} baggage | |||
* @param {OrchestrationPowers} remotePowers | |||
* @param {Marshaller} marshaller | |||
* @internal |
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.
doesn't seem to have the desired effect. I still see it:
https://ta-export-withorchestration.agoric-sdk.pages.dev/modules/_agoric_orchestration
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.
Good catch. It needs the excludeInternal option, but even with that it's appearing.
I'll wait for #9727 and try again. I don't want to create merge conflicts for that one and maybe it fixes the bug.
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.
I tried merging and that didn't fix it. Now I suspect a bug in typedoc
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, I've tried without luck to get @internal
to do anything
Delivered better in #10050 |
refs: #9757
refs: #9765
Description
I noticed that
withOrchestration
isn't exported from the package. This exports it. It also exports theOrchestrationTools
that the docs for that type require. I tried to not exportprovideOrchestration
because it's more of an implementation detail, but JSDoc type expressions make it hard to exportOrchestrationTools
without also exportingprovideOrchestration
. I also considered getting rid of it but tests need to be able to set up OrchestrationTools without spinning up a contract. So I markedprovideOrchestration
as@internal
so it doesn't show up in docs.This also proposes a solution to,
using the @interface tag to get the dynamic aspects to expand.
Before
After
If that is agreeable I can convert the others in this PR or follow up.
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
provideOrchestration
not in Markdown docs build for docs sitewithOrchestration
signature is clear and conciseUpgrade Considerations