Skip to content

Resolve plugin arguments from the owning repository - #126

Open
mike-north wants to merge 35 commits into
mainfrom
fix/plugin-argument-resolution
Open

mike-north wants to merge 35 commits into
mainfrom
fix/plugin-argument-resolution

Conversation

@mike-north

@mike-north mike-north commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Plugin arguments

The CLI and core exports keep their existing behavior for build, validate, lint,
scaffold, add-target, and check-support when the original operation succeeds or
reports an error other than a missing bare plugin name. This covers exit status, stdout,
stderr, error messages, return values, file bytes, directory changes, and config
evaluation order. Scaffold always uses its existing name handling.

When the original lookup reports a missing bare plugin name, find the nearest layout
at or above the invocation directory in its Git checkout. A layout is marked by
aipm.repo.ts, aipm.workspace.ts, or a plugins/ directory. Check only the path formed
by joining the layout's configured pluginsRoot (default plugins/) with the name as
given. The entry must be a directory recognized by marketplace discovery. Symlinks
in its parent path are allowed. Run the operation as if the selected absolute path
had been supplied from the invocation directory. If there is no matching directory,
keep the original missing-plugin error.
Each Git checkout query has a five-second deadline. An unanswered query is treated as
no checkout.

This behavior is defined with debugging and tracing disabled and with declarative
configs that do not read command-line arguments, environment variables, the clock,
or filesystem contents outside their imports. The lookup may evaluate
aipm.repo.ts an extra time to find pluginsRoot.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 08:11

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
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.

2 participants