Documentation
¶
Overview ¶
Package browsercontinuation owns local, person-originated browser decisions. Request IDs are presentation handles, never bearer capabilities. This package is used by trusted frontends and is not a model-facing tool.
Index ¶
- Variables
- func ConfirmationText(text string) bool
- func WaitingTarget(details any) (string, uint64, bool)
- type Coordinator
- func (c *Coordinator) Close()
- func (c *Coordinator) Continue(ctx context.Context, id string) error
- func (c *Coordinator) Displayed(id string)
- func (c *Coordinator) KeepPaused(id string) error
- func (c *Coordinator) Poll(ctx context.Context)
- func (c *Coordinator) ReadyFor(browser string, generation uint64) bool
- func (c *Coordinator) Refresh(ctx context.Context, id string) error
- func (c *Coordinator) Register(key, browser, epoch, origin string, h Host)
- func (c *Coordinator) Session() string
- func (c *Coordinator) Snapshot() []View
- func (c *Coordinator) TakeReady() []Ready
- type Host
- type Ready
- type View
Constants ¶
This section is empty.
Variables ¶
var ErrRevoked = errors.New("browser continuation authority was revoked")
Functions ¶
func ConfirmationText ¶
Types ¶
type Coordinator ¶
type Coordinator struct {
// contains filtered or unexported fields
}
func New ¶
func New(session string) *Coordinator
func (*Coordinator) Close ¶
func (c *Coordinator) Close()
func (*Coordinator) Continue ¶
func (c *Coordinator) Continue(ctx context.Context, id string) error
Continue is callable only from the local user input path. It sends one authenticated request, then queries a receipt rather than replaying on error.
func (*Coordinator) Displayed ¶
func (c *Coordinator) Displayed(id string)
func (*Coordinator) KeepPaused ¶
func (c *Coordinator) KeepPaused(id string) error
func (*Coordinator) Poll ¶
func (c *Coordinator) Poll(ctx context.Context)
func (*Coordinator) ReadyFor ¶
func (c *Coordinator) ReadyFor(browser string, generation uint64) bool
ReadyFor closes the race where a person resumes before the run's tool-end event is delivered. It is still exact-generation state, not a reusable grant; frontends consume their run intent atomically when starting a continuation.
func (*Coordinator) Refresh ¶
func (c *Coordinator) Refresh(ctx context.Context, id string) error
Refresh is a separate, explicit UI action, not an automatic retry. An uncertain prior request can never be replaced with a new request ID.
func (*Coordinator) Register ¶
func (c *Coordinator) Register(key, browser, epoch, origin string, h Host)
Register is called only after the embedder has authenticated and attested a managed view. A new epoch revokes any outstanding decision for its old view.
func (*Coordinator) Session ¶
func (c *Coordinator) Session() string
func (*Coordinator) Snapshot ¶
func (c *Coordinator) Snapshot() []View
func (*Coordinator) TakeReady ¶
func (c *Coordinator) TakeReady() []Ready
type Host ¶
type Host interface {
State(context.Context) (browserhost.InteractionState, error)
ContinueChecked(context.Context, browserhost.ContinueRequest) error
ContinuationOutcome(context.Context, browserhost.ContinueRequest) (string, error)
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package continuationtest supplies a credential-free protocol fixture for frontend tests.
|
Package continuationtest supplies a credential-free protocol fixture for frontend tests. |