chore: import upstream snapshot with attribution
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped

This commit is contained in:
wehub-resource-sync
2026-07-13 12:29:30 +08:00
commit e7738de6d2
1723 changed files with 216139 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
use reader
use validate
pub fn main(world: World) -> Void raises {
let fs: Fs = std.fs.host()
check seed(fs)
var storage: [126]u8 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
var arena: FixedBufAlloc = std.mem.fixedBufAlloc(storage)
let maybe_body: Maybe<owned<ByteBuf>> = std.fs.readAll(arena, fs, ".zero/readall-cli.txt", 128)
if !maybe_body.has {
return
}
let body: owned<ByteBuf> = maybe_body.value
let bytes: MutSpan<u8> = std.mem.bufBytes(&body)
let len: usize = check validate_config(bytes)
if len == 16 {
check world.out.write("readall cli ok\n")
}
}
+10
View File
@@ -0,0 +1,10 @@
fn seed(fs: Fs) -> Void raises [WriteFailed] {
let created: Maybe<owned<File>> = std.fs.create(fs, ".zero/readall-cli.txt")
if created.has {
var file: owned<File> = created.value
if std.fs.writeAll(&mut file, std.mem.span("name=zero-agent\n")) {
return
}
}
raise WriteFailed
}
+7
View File
@@ -0,0 +1,7 @@
fn validate_config(body: Span<u8>) -> usize raises [EmptyInput] {
let len: usize = std.mem.len(body)
if len == 0 {
raise EmptyInput
}
return len
}
Binary file not shown.
+7
View File
@@ -0,0 +1,7 @@
[package]
name = "readall-cli"
version = "0.1.0"
[targets.cli]
kind = "exe"
main = "src/main.0"