Directories
¶
| Path | Synopsis |
|---|---|
|
Package app is the main of a generated Surface binary: it starts Substrate (config, logging, health, the HTTP host, the database), hands the core what Substrate opened, and serves.
|
Package app is the main of a generated Surface binary: it starts Substrate (config, logging, health, the HTTP host, the database), hands the core what Substrate opened, and serves. |
|
apps
|
|
|
desk
command
Command desk is a Surface app: the Surface core plus the modules surface.yaml lists.
|
Command desk is a Surface app: the Surface core plus the modules surface.yaml lists. |
|
desk/webui
Package webui embeds the app's built page (dist/).
|
Package webui embeds the app's built page (dist/). |
|
studio
command
Command studio is a Surface app: the Surface core plus the modules surface.yaml lists.
|
Command studio is a Surface app: the Surface core plus the modules surface.yaml lists. |
|
studio/webui
Package webui embeds the app's built page (dist/).
|
Package webui embeds the app's built page (dist/). |
|
cmd
|
|
|
surface
command
Command surface generates and builds Surface apps.
|
Command surface generates and builds Surface apps. |
|
Package core assembles a Surface app: the kernel (desk, commands, settings, marks, events), the selected modules and the embedded agent, behind one HTTP handler.
|
Package core assembles a Surface app: the kernel (desk, commands, settings, marks, events), the selected modules and the embedded agent, behind one HTTP handler. |
|
internal/ade
Package ade lets the agent show the owner things on the desk: point at a window or at a part of one (an anchor its view declared), spotlight it, draw an arrow between two, and walk the owner through a short guide.
|
Package ade lets the agent show the owner things on the desk: point at a window or at a part of one (an anchor its view declared), spotlight it, draw an arrow between two, and walk the owner through a short guide. |
|
internal/agent
Package agent is the embedded agent of a Surface app: one agent the owner talks to in the agent panel, with every tool in the app, whose context changes with what is in front.
|
Package agent is the embedded agent of a Surface app: one agent the owner talks to in the agent panel, with every tool in the app, whose context changes with what is in front. |
|
internal/api
Package api is the core's HTTP surface: what the page draws from and what an outside client (a CLI, a script, another agent) drives the app through.
|
Package api is the core's HTTP surface: what the page draws from and what an outside client (a CLI, a script, another agent) drives the app through. |
|
internal/cards
Package cards keeps the cards: what the app shows the user outside a window (a notice, a question, a request to approve, progress) and what they answered.
|
Package cards keeps the cards: what the app shows the user outside a window (a notice, a question, a request to approve, progress) and what they answered. |
|
internal/config
Package config is the app's live settings: declared by the core and by modules, kept in the app's database, and read at the moment of use.
|
Package config is the app's live settings: declared by the core and by modules, kept in the app's database, and read at the moment of use. |
|
internal/desk
Package desk is the window manager: which windows are open, which is in front, how they are laid out, and the layouts the user saved.
|
Package desk is the window manager: which windows are open, which is in front, how they are laid out, and the layouts the user saved. |
|
internal/events
Package events is the app's event bus: in-process publish and subscribe by topic prefix.
|
Package events is the app's event bus: in-process publish and subscribe by topic prefix. |
|
internal/genui
Package genui is Surface's host for generated UI: the reviewed GenUI contract and gateway from Substrate, given this app's storage, policy and effects.
|
Package genui is Surface's host for generated UI: the reviewed GenUI contract and gateway from Substrate, given this app's storage, policy and effects. |
|
internal/kernel
Package kernel is what the core's own services (the agent, slots, the router) are given: the app's shared state, already assembled.
|
Package kernel is what the core's own services (the agent, slots, the router) are given: the app's shared state, already assembled. |
|
internal/marks
Package marks keeps the collaboration marks: notes pinned to a part of something, by the owner or the agent, with replies, until resolved.
|
Package marks keeps the collaboration marks: notes pinned to a part of something, by the owner or the agent, with replies, until resolved. |
|
internal/reflex
Package reflex holds the agent's reflexes: standing rules that watch the conversation and the app, and act when their trigger fires.
|
Package reflex holds the agent's reflexes: standing rules that watch the conversation and the app, and act when their trigger fires. |
|
internal/router
Package router stands in front of the agent.
|
Package router stands in front of the agent. |
|
internal/slots
Package slots decides what the embedded agent has in mind for a turn.
|
Package slots decides what the embedded agent has in mind for a turn. |
|
internal/storage
Package storage opens SQLite databases and moves their schema forward.
|
Package storage opens SQLite databases and moves their schema forward. |
|
Package module is the contract between the Surface core and a module.
|
Package module is the contract between the Surface core and a module. |
|
moduletest
Package moduletest runs one Surface module in a test, without the core: a Host with an in-memory desk, live settings, an event bus and marks, and a temporary SQLite store with the module's migrations applied.
|
Package moduletest runs one Surface module in a test, without the core: a Host with an in-memory desk, live settings, an event bus and marks, and a temporary SQLite store with the module's migrations applied. |
|
modules
|
|
|
browser
Package browser is the Browser module: web pages in windows, for the owner and the agent.
|
Package browser is the Browser module: web pages in windows, for the owner and the agent. |
|
builder
Package builder is the Interaction Builder: the owner describes a flow ("triage my inbox", "write an article") and the agent sets the app up for it.
|
Package builder is the Interaction Builder: the owner describes a flow ("triage my inbox", "write an article") and the agent sets the app up for it. |
|
drafts
Package drafts is the Drafts module: documents (prose, code, plans) the owner and the agent work on together.
|
Package drafts is the Drafts module: documents (prose, code, plans) the owner and the agent work on together. |
|
files
Package files is the Files module: a file browser over a small set of named places (root directories on this machine), for the owner and for the agent.
|
Package files is the Files module: a file browser over a small set of named places (root directories on this machine), for the owner and for the agent. |
|
notes
Package notes is the Notes module: Markdown files in a folder, written by the owner and the agent, linked with [[wiki links]] and marked up with the core's marks.
|
Package notes is the Notes module: Markdown files in a folder, written by the owner and the agent, linked with [[wiki links]] and marked up with the core's marks. |
|
scratch
Package scratch is the Scratch module: quick notes, to-dos, ideas and follow-ups as small items, kept in the module's own store.
|
Package scratch is the Scratch module: quick notes, to-dos, ideas and follow-ups as small items, kept in the module's own store. |
Click to show internal directories.
Click to hide internal directories.