Skip to content

feat: Losen dependency between @unikraft/cloud and plugins - #11

Merged
nderjung merged 1 commit into
prod-stagingfrom
aabedraba/better-dependency
Sep 17, 2026
Merged

nderjung merged 1 commit into
prod-stagingfrom
aabedraba/better-dependency

Conversation

@aabedraba

@aabedraba aabedraba commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Continues the work of:
unikraft-cloud/js-sdk#34
https://github.com/unikraft-cloud/plugins/pull/29

Replaces dependency with @unikraft/cloud with interfaces to the transport layer in the SDK.

Signed-off-by: aabedraba abdallah@unikraft.com

Signed-off-by: aabedraba <abdallah@unikraft.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃數 Needs a closer look

The broad generated-client and build/dependency changes warrant final human review.

Pull request overview

This PR decouples generated plugin clients from @unikraft/cloud through a standalone transport contract.

Changes:

  • Adds Transport, RequestArgs, and CallOptions interfaces.
  • Routes generated clients through injected transports.
  • Removes SDK dependency and related build configuration.
  • Updates documentation and publishing checks.
File summaries
File Summary
js/tools/tsplugingen/templates/transport.ts.tmpl Defines the transport contract.
js/tools/tsplugingen/templates/resources.tmpl Uses injected transports for requests.
js/tools/tsplugingen/templates/README.md.tmpl Documents transport-based usage.
js/tools/tsplugingen/templates/package.json.tmpl Removes the SDK peer dependency.
js/tools/tsplugingen/templates/index.ts.tmpl Injects and validates transports.
js/tools/tsplugingen/static/tsconfig.json Adds DOM typings for AbortSignal.
js/tools/tsplugingen/sdk-range.sh Removes SDK range derivation.
js/tools/tsplugingen/README.md Updates architecture and build documentation.
js/tools/tsplugingen/publish-check.sh Updates source-change messaging.
js/tools/tsplugingen/Makefile Removes SDK installation and configuration coupling.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 0
  • Review effort level: Lite

馃挕 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nderjung nderjung left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Reviewed-by: Alexander Jung alex@unikraft.com
Approved-by: Alexander Jung alex@unikraft.com

@nderjung
nderjung merged commit 9ed1975 into prod-staging Sep 17, 2026
8 checks passed
@nderjung
nderjung deleted the aabedraba/better-dependency branch September 17, 2026 06:38
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.

3 participants