refactor(cli,host): finish command, dispatch and package module split
This commit is contained in:
1 parent
8a0c068856
commit
7859c26213
9 files changed
+546
-504
No files matched your search
@@ -13,15 +13,19 @@ RFC item: P1 module boundaries
|
||||
| `crates/cli/src/commands/run.rs` | `execute` run-session assembly and `read_stdin` |
|
||||
| `crates/cli/src/commands/check.rs` | `check` command |
|
||||
| `crates/cli/src/commands/inspect.rs` | `inspect` command and `InspectFlags` |
|
||||
| `crates/cli/src/commands/init.rs` | `init` command |
|
||||
| `crates/cli/src/commands/package.rs` | `lock`/`sync`/`add`/`remove` and atomic writes |
|
||||
| `crates/cli/src/commands/tool.rs` | `fmt` and `plugin-inspect` commands |
|
||||
| `crates/marqdo-host/src/host/resource_ops.rs` | `open_resource_stream` stdio/file/tcp/provider dispatch; child module of `host` |
|
||||
| `crates/marqdo-host/src/host/providers.rs` | trusted in-process/worker/C-ABI/package provider registration |
|
||||
| `crates/marqdo-host/src/host/effects.rs` | `next_seq` and `record_resource_effect` trace helpers |
|
||||
| `crates/marqdo-host/src/host/dispatch.rs` | `Host::invoke` argument/effect wrapper and `StdHost::dispatch` match |
|
||||
| `crates/marqdo-host/src/process.rs` | explicitly granted `process.run` execution, timeout and output caps |
|
||||
|
||||
This is a **behavior-preserving** refactor: no public CLI flag, host trait
|
||||
method, builtin, spec or stdlib API changed. No new crate was added.
|
||||
`commands.rs` still owns init/fmt/lock/sync/package/tool and `host.rs` still
|
||||
owns `Host::invoke` dispatch and capability checks.
|
||||
`commands.rs` keeps shared project/runtime helpers and `parse_named_args`;
|
||||
`host.rs` keeps the `Host` trait methods and capability checks.
|
||||
|
||||
## Commands
|
||||
|
||||
@@ -36,7 +40,7 @@ python3 tools/pack-stdlib.py PASS
|
||||
|
||||
## Not covered
|
||||
|
||||
`commands.rs` still contains init/fmt/lock/sync/package/tool command bodies
|
||||
and `host.rs` still contains `Host::invoke` dispatch, capability checks and
|
||||
register entry points. A complete split needs a later behavior-preserving
|
||||
change; it is not claimed here.
|
||||
`commands.rs` still contains shared project/runtime helpers and
|
||||
`parse_named_args`; `host.rs` still contains the `Host` trait methods,
|
||||
capability checks and struct definitions. That is intentional module surface,
|
||||
not a second backend.
|
||||
Reference in new issue
Block a user