Documentation
¶
Index ¶
Constants ¶
View Source
const EnvPrefix = "MYCOMPUTER_"
Variables ¶
This section is empty.
Functions ¶
func DefaultSearchPaths ¶
func DefaultSearchPaths() []string
Types ¶
type Effective ¶
type Effective struct {
Options
ScreenshotDir string
BrowserBin string
BrowserEndpoint string
LoadedConfig string
ConfigFiles []string
Sources map[string]string
// RespectUser is the resolved value after applying precedence:
// flag > env MYCOMPUTER_RESPECT_USER > config > default (true).
// Surfaced in doctor.session.respect_user. Behavioral wiring lands
// in task-6 — this is declaration.
RespectUser bool
// AllowClose is the resolved value after applying precedence:
// flag > env MYCOMPUTER_ALLOW_CLOSE > config > default (false).
// Surfaced in doctor.session.allow_close.
AllowClose bool
// LogicalCoords is the resolved value after applying precedence:
// flag > env MYCOMPUTER_LOGICAL_COORDS > config > default (false).
// Experimental opt-in HiDPI translation layer. See
// Options.LogicalCoords for behavior.
LogicalCoords bool
// DryRun is the resolved value after applying precedence:
// flag > env MYCOMPUTER_DRY_RUN > config > default (false).
DryRun bool
// AuditScreenshots is the resolved value after applying
// precedence: flag > env MYCOMPUTER_AUDIT_SCREENSHOTS > config >
// default (false).
AuditScreenshots bool
// AuditFullPayloads is the resolved value after applying
// precedence: flag > env MYCOMPUTER_AUDIT_FULL_PAYLOADS > config
// > default (false). When true the audit writer persists a
// per-batch payload manifest with clipboard content scrubbed.
AuditFullPayloads bool
}
func (Effective) Report ¶
func (eff Effective) Report() contract.ConfigReport
type File ¶
type File struct {
MaxChars *int `yaml:"max_chars"`
ScreenshotDir string `yaml:"screenshot_dir"`
BrowserBin string `yaml:"browser_bin"`
BrowserEndpoint string `yaml:"browser_endpoint"`
RespectUser *bool `yaml:"respect_user"`
AllowClose *bool `yaml:"allow_close"`
LogicalCoords *bool `yaml:"logical_coords"`
DryRun *bool `yaml:"dry_run"`
AuditScreenshots *bool `yaml:"audit_screenshots"`
AuditFullPayloads *bool `yaml:"audit_full_payloads"`
}
type Options ¶
type Options struct {
JSON bool
Minimal bool
MaxChars int
NoColor bool
Config string
Quiet bool
Verbose bool
// RespectUser holds the resolved --respect-user value when the
// flag is set explicitly. RespectUserSet distinguishes "explicit
// false" from "unset" so default-true behavior works correctly.
// Behavioral wiring lands in task-6.
RespectUser bool
RespectUserSet bool
// AllowClose holds the resolved --allow-close value. Defaults
// false. When true, window_close actions are permitted for this
// process. Surfaces as doctor.session.allow_close.
AllowClose bool
AllowCloseSet bool
// LogicalCoords toggles the experimental opt-in HiDPI translation
// layer. When set, screenshot dimensions are divided by the
// primary monitor's scale before encoding and input coordinates
// from clients are multiplied by that same scale before XTest.
// Off by default — production agents should keep MyComputer in
// physical-pixel mode.
LogicalCoords bool
LogicalCoordsSet bool
// DryRun, when set, propagates into pipeline.ActionBatch.DryRun
// so every action is validated/resolved but mutating ops are
// skipped. Off by default.
DryRun bool
DryRunSet bool
// AuditScreenshots, when set, causes the audit writer to record
// screenshot paths before/after each mutating action. Expensive;
// off by default.
AuditScreenshots bool
AuditScreenshotsSet bool
// AuditFullPayloads, when set, enables the opt-in per-batch
// payload manifest under <audit_dir>/payloads/<batch_id>.json.
// Clipboard content is STILL redacted in payload files — the
// opt-in only un-redacts non-clipboard inputs so `mycomputer
// audit replay <id>` can reconstruct the full action batch.
AuditFullPayloads bool
AuditFullPayloadsSet bool
}
Click to show internal directories.
Click to hide internal directories.