Skip to main content

Module development

Module development 

Source
Expand description

Files, editors, processes, language services, and project execution. Terminal-native project development runtime.

This module owns the local development contracts used by the CLI, MCP, TUI, and embedded harness. Browser authority remains in the existing browser runtime: project state can coordinate a live application without duplicating browser control logic.

Glass Dev directly owns the concrete project, editor, PTY, language-server, graph, replay, Neovim, experiment, and agent contracts. There is no browser feature bridge or disabled compatibility implementation.

Project paths are resolved beneath one canonical root; reads, output tails, event logs, and retained buffers have hard bounds. Writes are atomic and actor-attributed. Runtime claims such as live-update provenance remain pending until explicit source/runtime evidence or browser revision evidence supports them. A project session never implies browser mutation authority.

Re-exports§

pub use agent::AgentAuthorityContext;
pub use agent::AgentContextPacket;
pub use agent::AgentToolGateway;
pub use agent::BrowserAgentContext;
pub use agent::HarnessEvent;
pub use agent::HarnessRequest;
pub use agent::LocalHarness;
pub use agent::PiHarness;
pub use agent::PiHarnessOptions;
pub use agent::ToolAuthorization;
pub use agent::ToolCall;
pub use agent::ToolDescriptor;
pub use agent::ToolRegistry;
pub use agent::resolve_context;
pub use agent::resolve_context_with_browser;
pub use cockpit::AttentionItem;
pub use cockpit::AttentionState;
pub use cockpit::LocalCockpit;
pub use cockpit::ReconnectCapsule;
pub use cockpit::ReconnectCapsuleStore;
pub use cockpit::ResidentDevelopmentSessions;
pub use cockpit::VerificationCard;
pub use cockpit::VerificationCheck;
pub use cockpit::attention_inbox;
pub use collaboration::CollaborationBus;
pub use collaboration::CollaborationEvent;
pub use collaboration::EditAccess;
pub use collaboration::EditClaim;
pub use debug::SemanticBreakpoint;
pub use debug::SemanticBreakpointHit;
pub use debug::SemanticEntityState;
pub use debug::SemanticSnapshot;
pub use debug::evaluate_breakpoints;
pub use diff::ProjectDiff;
pub use diff::build_diff;
pub use editor::EditorCheckpoint;
pub use editor::EditorComment;
pub use editor::EditorCommentState;
pub use editor::EditorProposal;
pub use editor::EditorProposalState;
pub use editor::FoldRegion;
pub use editor::SyntaxKind;
pub use editor::SyntaxSpan;
pub use editor::TextPosition;
pub use editor::TextSelection;
pub use editor::fold_regions;
pub use editor::matching_bracket;
pub use editor::syntax_spans;
pub use events::Actor;
pub use events::ActorAuthority;
pub use events::ActorConnection;
pub use events::ActorKind;
pub use events::DevelopmentEvent;
pub use events::DevelopmentEventKind;
pub use events::DevelopmentEventPage;
pub use events::Timeline;
pub use experiment::ExperimentComparison;
pub use experiment::ExperimentEvidence;
pub use experiment::ExperimentManager;
pub use experiment::ExperimentWorkspace;
pub use graph::DevelopmentGraph;
pub use graph::LinkEvidence;
pub use graph::LinkProvenance;
pub use graph::SourceLocation;
pub use language::DiagnosticPosition;
pub use language::LanguageDiagnostic;
pub use language::LanguageDocument;
pub use language::LanguageResponse;
pub use language::LspClient;
pub use neovim::NeovimCapability;
pub use neovim::probe_neovim;
pub use neovim::start_neovim;
pub use process::ProcessHealth;
pub use process::ProcessManager;
pub use process::ProcessSnapshot;
pub use process::ProcessState;
pub use project::CommandConfig;
pub use project::EditorBuffer;
pub use project::FileEntry;
pub use project::FileKind;
pub use project::GlassProjectConfig;
pub use project::ProjectDetection;
pub use project::ProjectTreeResult;
pub use project::ProjectWorkspace;
pub use project::detect_project;
pub use remote_view::RemoteFrame;
pub use remote_view::RemoteInput;
pub use remote_view::RemoteView;
pub use replay::DevelopmentRevision;
pub use replay::ReplayWindow;
pub use replay::replay;
pub use search::SearchHit;
pub use search::SearchKind;
pub use search::fuzzy_score;
pub use search::rank;

Modules§

agent
Resident agent and harness tool contracts.
cockpit
Development cockpit and attention projections.
collaboration
Collaboration bus and edit claims.
debug
Semantic debugging and breakpoint evaluation.
diff
Project diff construction and summaries.
editor
Low-level bounded editor helpers; the TUI renderer is private and separate.
events
Durable actor-attributed development events.
experiment
Experiment workspace and evidence support.
graph
Source/runtime development graph contracts.
language
Language documents, diagnostics, and LSP clients.
neovim
Neovim capability probing and startup.
process
Bounded process management and snapshots.
project
Project files, commands, configuration, and detection.
remote_view
Remote-view state and input/frame types. Loopback-only, token-scoped browser view transport for SSH forwarding.
replay
Revision identifiers and bounded replay.
search
Search hit types and ranking helpers.

Enums§

DevelopmentError
Errors produced while resolving, reading, or executing development work.

Constants§

DEVELOPMENT_COCKPIT_SCHEMA_VERSION
Version of serialized cockpit snapshots.
DEVELOPMENT_EVENT_SCHEMA_VERSION
Version of serialized development timeline events.
DEVELOPMENT_SCHEMA_VERSION
Version identifier for the top-level development payload schema.
MAX_BUFFER_BYTES
Maximum bytes retained in an editor or process buffer.
MAX_FILE_BYTES
Maximum bytes read from one project file.
MAX_FILE_ENTRIES
Maximum entries returned by bounded project-tree scans.
MAX_PROCESS_OUTPUT_BYTES
Maximum retained process output bytes.
MAX_TIMELINE_EVENTS
Maximum retained timeline events.

Type Aliases§

DevelopmentResult
Result type returned by development services and bounded helpers.