Discover Packages
github.com/hadron-memory/hadron-cli
internal
guardedpush
package
Version:
v0.28.0
Opens a new window with list of versions in this module.
Published: Oct 22, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Marker correlates fresh screen evidence with this one attempt, not its send receipt.
Run performs at most one clear and one submission, under an own-attempt lock.
Observe must freshly validate authoritative metadata and return a stable terminal/session identity.
Clear and Submit must be single calls without transport retry. Frames are private in-memory data.
type Frame struct {
Identity, Family, Draft, Screen string
State State
Empty bool
}
type Options struct{ Wait, DraftWait, Stable, Confirm, Poll time .Duration }
Validate bounds both fake-clock work and real calls. No CLI override weakens stability.
const (
Sent Outcome = "sent"
SentWithDraft Outcome = "sent-with-draft"
HeldBusy Outcome = "held-busy"
HeldUnknown Outcome = "held-unknown"
Unconfirmed Outcome = "unconfirmed"
)
type Request struct {
Sender, Message, Attempt string
Seq int
}
type Result struct {
Outcome Outcome `json:"outcome"`
Phase string `json:"phase"`
Reason string `json:"reason"`
DraftIncluded bool `json:"draftIncluded"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.