Skip to content

Adopt @galaxyproject/galaxy-ops for the invocation read (proof of the shared agent core)#202

Draft
dannon wants to merge 1 commit into
galaxyproject:mainfrom
dannon:galaxy-ops-adoption-pr
Draft

Adopt @galaxyproject/galaxy-ops for the invocation read (proof of the shared agent core)#202
dannon wants to merge 1 commit into
galaxyproject:mainfrom
dannon:galaxy-ops-adoption-pr

Conversation

@dannon

@dannon dannon commented Jun 6, 2026

Copy link
Copy Markdown
Member

Proof that the shared agent-operations core (galaxy-ops, galaxyproject/galaxy-mcp#61) actually removes duplication in Loom rather than adding a layer.

Swaps Loom's hand-rolled invocation read for the getInvocations op from @galaxyproject/galaxy-ops:

  • deletes the hand-rolled fetch in extensions/loom/galaxy-api.ts plus three hand-typed invocation interfaces that re-declared shapes already in Galaxy's OpenAPI schema
  • job.state comparisons go from unchecked string to compiler-verified JobState
  • behavior preserved (covered by tests/invocation-check.test.ts)

Not mergeable as-is: it pulls galaxy-ops from a local tarball (file:.../galaxy-ops.tgz) because the package isn't published yet, so it stays a draft until galaxy-ops has a real home + npm publish (the open question on #61). The point now is to show the deletion is real and the types line up.

…typed Galaxy invocation interfaces

Replaces the hand-rolled galaxyGet<GalaxyInvocationResponse>() call in checkInvocations
with getInvocationDetails from @galaxyproject/galaxy-ops, and deletes the three hand-typed
interfaces (GalaxyInvocationResponse, GalaxyInvocationStep, GalaxyInvocationStepJob) that
are now covered by the upstream schema types. Test mock updated to vi.mock the ops package
instead of spying on the internal galaxyGet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant