Skip to content

fix: complete plugin-sdk migration to /core subpath#16

Merged
protoss70 merged 1 commit intoapify:mainfrom
jarbaspsantosbr:fix/complete-plugin-sdk-migration
May 7, 2026
Merged

fix: complete plugin-sdk migration to /core subpath#16
protoss70 merged 1 commit intoapify:mainfrom
jarbaspsantosbr:fix/complete-plugin-sdk-migration

Conversation

@jarbaspsantosbr
Copy link
Copy Markdown
Contributor

Summary

PR #15 partially fixed the plugin-sdk import migration but missed the remaining type imports from openclaw/plugin-sdk. This PR completes the migration by updating all type imports to use openclaw/plugin-sdk/core.

Changes

  • src/index.ts: OpenClawPluginApi type import → openclaw/plugin-sdk/core
  • src/cli.ts: OpenClawPluginApi type import → openclaw/plugin-sdk/core
  • src/tools/apify-scraper-tool.ts: AnyAgentTool type import → openclaw/plugin-sdk/core

Context

The runtime function imports (jsonResult, readStringParam, stringEnum) were already fixed in PR #15. However, the type imports (AnyAgentTool, OpenClawPluginApi) still referenced the deprecated openclaw/plugin-sdk path, which no longer exports these symbols in recent OpenClaw versions.

Fixes #10

PR apify#15 partially fixed the plugin-sdk import migration but missed the
remaining type imports from openclaw/plugin-sdk. This completes the
migration by updating all type imports to use openclaw/plugin-sdk/core.

Fixes apify#10
Copy link
Copy Markdown
Collaborator

@protoss70 protoss70 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Looks good to me

@protoss70 protoss70 merged commit fa2941d into apify:main May 7, 2026
2 checks passed
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.

OpenClaw 2026.3.24 => Plugin @apify/apify-openclaw-plugin fails to load: stringEnum is not a function

4 participants