Skip to main content

Crate origin_platform

Crate origin_platform 

Source
Expand description

Platform contracts (ADR-0001).

Re-exports§

pub use process::ProcessAllowlist;
pub use process::ProcessOutput;
pub use process::ProcessRunner;
pub use shortcut::GlobalShortcutService;
pub use shortcut::NoopGlobalShortcutService;
pub use shortcut::Shortcut;
pub use tray::NoopTrayService;
pub use tray::TrayBadge;
pub use tray::TrayMenuItem;
pub use tray::TrayService;
pub use watcher::WatchHandle;
pub use watcher::WorkspaceChange;
pub use watcher::WorkspaceWatcher;
pub use workspace::DirEntry;
pub use workspace::RelPath;
pub use workspace::WorkspaceFs;
pub use workspace::WorkspaceRoot;
pub use memory_process::MemoryProcessRunner;
pub use memory_watcher::MemoryWorkspaceWatcher;
pub use memory_workspace::MemoryWorkspaceFs;

Modules§

memory_process
Memory double for ProcessRunner — records calls and returns configured outputs.
memory_watcher
Memory double for WorkspaceWatcher — pushes synthetic changes for tests.
memory_workspace
Memory double for WorkspaceFs — test-only in-memory filesystem.
paths
Where an application keeps its data.
process
Process execution contract (B1 of the Gitbit platform requirements).
shortcut
Global shortcut contract (B5).
tray
System-tray contract (G10).
watcher
Workspace watcher contract (B4 of the Gitbit platform requirements).
workspace
Workspace filesystem contract (B2 of the Gitbit platform requirements).

Structs§

ConfirmationRequest
What is being asked.
DenyingConfirmationService
Fails closed: every request is denied.
NoopNotificationService
Drops every notification. Used for headless runs and CLI builds.
Notification
NotificationAction
One action offered on a notification (B6).

Enums§

ConfirmationDecision
What the human answered.
Urgency

Traits§

ConfirmationService
Ask a human before proceeding.
NotificationService
Native user notifications.
Opener
Opens a URL in the user’s browser.