refactor(cli,host): split command entry points and provider/effects modules

This commit is contained in:
Marqdo Agent committed 2026-11-21 08:54:29 +08:00
1 parent 791819a725
commit 550e66b1e2
10 files changed
+708 -671

No files matched your search

+6 -6
View File
@@ -241,12 +241,12 @@ This is still a **local VM lane**, not a self-hosted GitHub Actions security URL
now sorts `.mq.md` by the same relative path key as the CLI. Source/test baseline
`0d40de7`; later docs-only commits keep code/test bytes identical. Evidence:
[`docs-and-test-migration`](evidence/2026-11-21-docs-and-test-migration.md).
- Module-boundary refactor (review RFC-CM P1): CLI sandbox/capability policy
moved to `crates/cli/src/commands/sandbox.rs`; host resource open dispatch to
`crates/marqdo-host/src/host/resource_ops.rs`; explicitly granted process
execution to `crates/marqdo-host/src/process.rs`. `commands.rs` still owns
run/check/inspect and `host.rs` still owns provider registration; this is a
partial, behavior-preserving split.
- Module-boundary refactor (review RFC-CM P1): CLI split into
`commands/{sandbox,run,check,inspect}.rs`; host split into
`host/{resource_ops,providers,effects}.rs` plus `process.rs`. `commands.rs`
still owns init/fmt/lock/sync/package/tool and `host.rs` still owns the
`Host::invoke` dispatch and capability checks; this is a behavior-preserving
split, not a new crate or backend.
- Minimal structure observation/construction (RFC-CM CM-A04, ADR-0023):
value-semantics `list.append/concat`, `map.keys/has/get/set/remove`,
Unicode scalar `text.codepoints`/`text.from_codepoint`, and non-negative