Skip to content

Initial cross-module actions - #227

Open
robknight wants to merge 4 commits into
mainfrom
cross-module-actions
Open

Initial cross-module actions#227
robknight wants to merge 4 commits into
mainfrom
cross-module-actions

Conversation

@robknight

@robknight robknight commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Closes #113

Cross-module actions. Pexe plugins can now declare dependencies on other pexe plugins.

A dependency declaration has two parts: a module hash, and an alias. The alias is the name which is used locally to refer to the dependency - it is a purely local alias which is used in the Rhai script to refer to the dependency's classes/actions by name, and in the generated Podlang. Aliases must be locally unique (a plugin cannot use the same alias for two different imports) but does not need to be globally unique (two different plugins might use the same alias to refer to different dependencies, including different "versions" of the "same" plugin).

In the future we might want to introduce a package registry, which would give us globally unique names, and semantic version numbers for plugins. However, a content-based approach works for now.

@robknight
robknight marked this pull request as ready for review August 24, 2026 12:29
@robknight
robknight requested a review from dhvanipa August 24, 2026 12:29
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.

ability to refer an action from one pexe in another

1 participant