Documentation
¶
There is no documentation for this package.
Directories
¶
| Path | Synopsis |
|---|---|
|
agent
command
|
|
|
internal
|
|
|
aiassist
Package aiassist invokes Claude Code (`claude -p`) to produce job summaries, follow-up suggestions, and remediation choices for the list TUI.
|
Package aiassist invokes Claude Code (`claude -p`) to produce job summaries, follow-up suggestions, and remediation choices for the list TUI. |
|
appdirs
Package appdirs resolves Weft's XDG base directories.
|
Package appdirs resolves Weft's XDG base directories. |
|
banner
Package banner is a small in-process pubsub for ambient system-status signals — schema drift, autopilot pause, cloud-provider health — that are useful to surface in any long-running TUI or watch loop, regardless of which one the user happens to be looking at.
|
Package banner is a small in-process pubsub for ambient system-status signals — schema drift, autopilot pause, cloud-provider health — that are useful to surface in any long-running TUI or watch loop, regardless of which one the user happens to be looking at. |
|
banner/monitor
Package monitor implements the background producers that push banners onto a banner.Bus.
|
Package monitor implements the background producers that push banners onto a banner.Bus. |
|
bidding
Package bidding implements cost-optimal cloud instance selection using a Beta-Binomial survival model.
|
Package bidding implements cost-optimal cloud instance selection using a Beta-Binomial survival model. |
|
blackboard
Package blackboard defines the R2-backed federated job coordination surface.
|
Package blackboard defines the R2-backed federated job coordination surface. |
|
campaign
Package campaign provides grouping and lifecycle management for cloud GPU campaigns.
|
Package campaign provides grouping and lifecycle management for cloud GPU campaigns. |
|
cloud
Package cloud provides provider-neutral types and interfaces for cloud GPU providers.
|
Package cloud provides provider-neutral types and interfaces for cloud GPU providers. |
|
credit
Package credit detects retroactive credit-exhaustion incidents on cloud providers by looking for mass-destroy bursts followed by a silent gap (no instance reached "running") until a recovery launch comes up.
|
Package credit detects retroactive credit-exhaustion incidents on cloud providers by looking for mass-destroy bursts followed by a silent gap (no instance reached "running") until a recovery launch comes up. |
|
dataloc
Package dataloc tracks what data assets exist on which hosts, enabling data-locality-aware job placement.
|
Package dataloc tracks what data assets exist on which hosts, enabling data-locality-aware job placement. |
|
db
Package db provides database operations for job management.
|
Package db provides database operations for job management. |
|
db/migrations
Package migrations owns weft's database schema evolution.
|
Package migrations owns weft's database schema evolution. |
|
estimate
Package estimate consolidates duration and cost estimation logic for cloud job lifecycle phases: instance startup, provisioning (sync + download), and job runtime.
|
Package estimate consolidates duration and cost estimation logic for cloud job lifecycle phases: instance startup, provisioning (sync + download), and job runtime. |
|
hooks
Package hooks runs user-defined hook scripts in response to job lifecycle events.
|
Package hooks runs user-defined hook scripts in response to job lifecycle events. |
|
hostcap
Package hostcap defines shared host-capability label handling.
|
Package hostcap defines shared host-capability label handling. |
|
inventoryqueue
Package inventoryqueue defines the R2 protocol used by inventory hosts that can reach R2 but cannot accept direct SSH connections from the controller.
|
Package inventoryqueue defines the R2 protocol used by inventory hosts that can reach R2 but cannot accept direct SSH connections from the controller. |
|
jobeta
Package jobeta estimates the remaining wall-clock duration of a running job.
|
Package jobeta estimates the remaining wall-clock duration of a running job. |
|
jobview
Package jobview contains read-only job classification helpers shared by terminal UI, narrate, and other presentation surfaces.
|
Package jobview contains read-only job classification helpers shared by terminal UI, narrate, and other presentation surfaces. |
|
llmusage
Package llmusage records every LLM API call weft makes to a billable provider, and exposes aggregations for the dashboard's Usage and Cost views.
|
Package llmusage records every LLM API call weft makes to a billable provider, and exposes aggregations for the dashboard's Usage and Cost views. |
|
logcache
Package logcache provides persistent local caching of completed job log files.
|
Package logcache provides persistent local caching of completed job log files. |
|
narrate
Package narrate streams a human-readable LLM commentary of weft job and instance activity.
|
Package narrate streams a human-readable LLM commentary of weft job and instance activity. |
|
notify
Package notify runs a user-configured local command when a job reaches a terminal status.
|
Package notify runs a user-configured local command when a job reaches a terminal status. |
|
oplog
Package oplog provides structured operation logging for forensic debugging.
|
Package oplog provides structured operation logging for forensic debugging. |
|
ops
Package ops provides unified job operation functions used by both CLI and TUI.
|
Package ops provides unified job operation functions used by both CLI and TUI. |
|
opscore
Package opscore provides shared types used across ops sub-packages.
|
Package opscore provides shared types used across ops sub-packages. |
|
opsqueue
Package opsqueue provides queue command protocol types and queue entry operations.
|
Package opsqueue provides queue command protocol types and queue entry operations. |
|
placement
Package placement scores hosts for job placement based on resource constraints, data locality, and current utilization.
|
Package placement scores hosts for job placement based on resource constraints, data locality, and current utilization. |
|
predictor
Package predictor shells out to the job-estimator Python CLI to train models and predict job duration, peak RSS, and peak GPU memory.
|
Package predictor shells out to the job-estimator Python CLI to train models and predict job duration, peak RSS, and peak GPU memory. |
|
prestage
Package prestage transfers missing input data to a target host before dispatching a job, so jobs don't fail or run slowly due to missing data.
|
Package prestage transfers missing input data to a target host before dispatching a job, so jobs don't fail or run slowly due to missing data. |
|
r2
Package r2 provides a client for Cloudflare R2 (S3-compatible) storage.
|
Package r2 provides a client for Cloudflare R2 (S3-compatible) storage. |
|
r2resolve
Package r2resolve owns the policy for finding a producer's artifact in R2: which prefix to look under (latest run vs.
|
Package r2resolve owns the policy for finding a producer's artifact in R2: which prefix to look under (latest run vs. |
|
r2upload
Package r2upload runs rclone-backed uploads to R2 with a progress-watched gate: a stall watchdog (no bytes-progress for N seconds → abort) plus a size-derived hard ceiling (baseline + bytes/floor, capped at MaxDrain).
|
Package r2upload runs rclone-backed uploads to R2 with a progress-watched gate: a stall watchdog (no bytes-progress for N seconds → abort) plus a size-derived hard ceiling (baseline + bytes/floor, capped at MaxDrain). |
|
remediation
Package remediation provides error pattern matching and auto-remediation for failed jobs.
|
Package remediation provides error pattern matching and auto-remediation for failed jobs. |
|
retry
Package retry provides a thin wrapper around cenkalti/backoff/v4 for consistent retry policies across the weft codebase.
|
Package retry provides a thin wrapper around cenkalti/backoff/v4 for consistent retry policies across the weft codebase. |
|
retrypolicy
Package retrypolicy defines the per-job relaunch backoff schedule.
|
Package retrypolicy defines the per-job relaunch backoff schedule. |
|
runpod
Package runpod wraps the runpodctl CLI for searching GPU pods, creating instances, template management, and provider diagnostics.
|
Package runpod wraps the runpodctl CLI for searching GPU pods, creating instances, template management, and provider diagnostics. |
|
sessioninbox
Package sessioninbox provides the versioned machine contract for an agent session's unprocessed terminal jobs.
|
Package sessioninbox provides the versioned machine contract for an agent session's unprocessed terminal jobs. |
|
slack
Package slack provides Slack notification configuration for weft.
|
Package slack provides Slack notification configuration for weft. |
|
status
Package status defines job attempt status values, allowed transitions between them, and validation logic.
|
Package status defines job attempt status values, allowed transitions between them, and validation logic. |
|
transferbw
Package transferbw tracks transfer bandwidth using an exponential moving average (EMA) keyed by (source_endpoint, dest_endpoint).
|
Package transferbw tracks transfer bandwidth using an exponential moving average (EMA) keyed by (source_endpoint, dest_endpoint). |
|
ui/hit
Package hit provides a screen plan for terminal UIs: the composed frame as an ordered list of physical rows (index == screen Y) with click targets attached to whole lines or to display-column spans within a line.
|
Package hit provides a screen plan for terminal UIs: the composed frame as an ordered list of physical rows (index == screen Y) with click targets attached to whole lines or to display-column spans within a line. |
|
vastai
Package vastai wraps the vastai CLI for searching GPU offers, creating instances, and managing their lifecycle.
|
Package vastai wraps the vastai CLI for searching GPU offers, creating instances, and managing their lifecycle. |
Click to show internal directories.
Click to hide internal directories.