feat(PR-01): single Rust package, Tool Protocol v1 bundle and PublicCoreClient
- src/lib.rs module layout + thin main.rs dispatcher; CLI owns browse/export/verify - core_client: MARQDO_BIN only, explicit argv (no shell), 0700 scratch dirs, wall-clock timeout killing the whole process group, version/protocol negotiation - project/source_map: canonical path boundary, SafeRelativePath, exact UTF-8 byte <-> line/column <-> UTF-16 mapping, SHA-256 of exact bytes - stable view.* error codes with 0/1/2 exit classes; BindDenied for non-loopback - verify use case: Analysis v2 schema/profile/root_id/source_digest binding, no execution - tool.json + tools/package.sh + tools/install-smoke.sh; frozen-CLI install smoke PASS - contract tests with a real fake-core executable + architectural coupling gates - COMPATIBILITY/CHANGELOG/STATUS updated
This commit is contained in:
1 parent
ef546f2ca6
commit
8ba20a5c67
23 files changed
+3692
-8
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
//! Thin binary entry point: parse arguments, dispatch through the library,
|
||||
//! print one stable diagnostic and exit with the View-owned exit code.
|
||||
|
||||
use clap::Parser;
|
||||
|
||||
fn main() {
|
||||
let cli = marqdo_view::Cli::parse();
|
||||
match marqdo_view::run(cli) {
|
||||
Ok(code) => std::process::exit(code),
|
||||
Err(err) => {
|
||||
eprintln!("{err}");
|
||||
std::process::exit(err.exit_code());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user