mirror of
https://github.com/samuelncui/acp.git
synced 2026-11-08 04:21:16 +00:00
Reshape the public API around one push engine and restore theaf05f05csurface as a compatibility shell over it. - NewStream takes caller-owned items (Source/Targets), reports every accepted item through one results callback, and Wait returns the run's terminal error. Run, BatchSource and the item callbacks are gone. - The engine owns the result path: WithResultBuffer is the depth of the result queue, WithResultBatch is how many results one delivery carries, and WithResultFlushInterval is how long a successful result may wait. A result that carries any error is delivered immediately as its own batch. - Restore theaf05f05cAPI byte-compatibly in the same package: New, Copyer, Wait/WaitErr, AccurateJob, WildcardJob, the report events and the JSON report round-trip through encoding/json alone. - One descriptor serves a whole item; the stored hash is read through the descriptor that reads the content and the computed hash is published through it before it closes. - Make every handoff escapable by a hard stop: the read buffer, a chunk send, an event send and the result buffer. - Fix the recorded sweep findings: report indent and round-trip, cmd/acp exit status, acp-rewrite final paths, mmap EOF/close/slice, disk-usage reservations, ErrTargetIO identity, the fatal-panic safety net, option validation, and the FreeBSD/Windows build paths. - Cover the contract with semantic tests, add Makefile check/race/vet/cross targets, and document the withdrawn v0.1.0/v0.2.0 migration in README.
22 lines
606 B
AMPL
22 lines
606 B
AMPL
module github.com/samuelncui/acp
|
|
|
|
go 1.26.8
|
|
|
|
require (
|
|
github.com/deckarep/golang-set/v2 v2.3.1
|
|
github.com/klauspost/cpuid/v2 v2.2.5
|
|
github.com/minio/sha256-simd v1.0.1
|
|
github.com/moby/sys/mountinfo v0.6.2
|
|
github.com/samuelncui/godf v0.0.0-20231004032257-e436410ad5a0
|
|
github.com/schollz/progressbar/v3 v3.13.1
|
|
github.com/sirupsen/logrus v1.9.3
|
|
golang.org/x/sys v0.12.0
|
|
)
|
|
|
|
require (
|
|
github.com/mattn/go-runewidth v0.0.15 // indirect
|
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
|
github.com/rivo/uniseg v0.4.4 // indirect
|
|
golang.org/x/term v0.12.0 // indirect
|
|
)
|