Skip to content

fix: align active job API return type#24

Open
antfleet-ops wants to merge 1 commit into
Virtual-Protocol:mainfrom
antfleet-ops:fix/acp-node-active-jobs-type
Open

fix: align active job API return type#24
antfleet-ops wants to merge 1 commit into
Virtual-Protocol:mainfrom
antfleet-ops:fix/acp-node-active-jobs-type

Conversation

@antfleet-ops

Copy link
Copy Markdown

Summary

  • update AcpJobApi.getActiveJobs() to return OffChainJob[]
  • match the existing AcpApiClient.getActiveJobs() implementation and backend response shape

Fixes #19.

Verification

  • npm run build

AntFleet audit provenance

Filed from antfleet-ops after AntFleet's two-model Virtuals repo scan found the interface promised { chainId, onChainJobId }[] while the concrete SDK client returns full backend OffChainJob records.

Constraint: preserve AcpApiClient behavior and backend response shape.\nRejected: narrowing getActiveJobs to chainId/onChainJobId | implementation returns full OffChainJob records.\nConfidence: high\nScope-risk: narrow\nDirective: keep public interfaces synchronized with concrete SDK clients.\nTested: npm run build\nNot-tested: runtime backend response.
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.

Align getActiveJobs return type with AcpJobApi interface

1 participant