feat(ext): extension selection + lock v4, inspect --extensions (RFC-EXT-0001 PR-04)
- marqdo.yaml.extensions accepts only ./path or @alias/path, resolves to a regular file inside its owning package, never grants - lock_version 4 records plugin/kernel/provider manifest+artifact identity; v3 requires explicit 'marqdo lock' migration; sync/check/run compare identity - check stays static; run re-verifies artifact bytes; pure/strict refuse - inspect --extensions reports declared/locked identity, plugin descriptors and stdlib aliases with authorization 'not_granted' - black-box extension_selection suite (13) + package-layer tests; specs/ADR-0056 - workspace gate: fmt/clippy clean, 599 passed across 67 targets
This commit is contained in:
1 parent
1f6fd644a0
commit
89555382e0
19 files changed
+2240
-63
No files matched your search
@@ -8,6 +8,7 @@ mod analysis;
|
||||
mod args;
|
||||
mod commands;
|
||||
mod extension_descriptors;
|
||||
mod extension_selection;
|
||||
mod loader;
|
||||
mod output;
|
||||
mod project_prepare;
|
||||
@@ -261,6 +262,12 @@ struct InspectArgs {
|
||||
/// Print sandbox/platform capability report.
|
||||
#[arg(long)]
|
||||
platform: bool,
|
||||
/// Print declared/loaded extension identities (never grants).
|
||||
#[arg(long)]
|
||||
extensions: bool,
|
||||
/// Explicitly selected plugin manifest for extension inspection (repeatable).
|
||||
#[arg(long = "plugin", value_name = "PATH")]
|
||||
plugin: Vec<PathBuf>,
|
||||
/// Machine readable JSON output.
|
||||
#[arg(long)]
|
||||
json: bool,
|
||||
@@ -421,8 +428,9 @@ fn dispatch() -> i32 {
|
||||
ir: args.ir,
|
||||
refs: args.refs,
|
||||
platform: args.platform,
|
||||
extensions: args.extensions,
|
||||
};
|
||||
commands::inspect(args.file.as_deref(), &flags, args.json)
|
||||
commands::inspect(args.file.as_deref(), &flags, args.json, &args.plugin)
|
||||
}
|
||||
Command::Run(args) => commands::execute(
|
||||
args.file.as_deref(),
|
||||
|
||||
Reference in new issue
Block a user