Documentation
¶
Overview ¶
Package djinn holds what must sit at the root of the module: the built interface, embedded at compile time.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Icon []byte
Icon is the icon of the application, for the window, the dock and the tray.
var Icon256 []byte
Icon256 is the icon at 256 px, for the window on Linux: GTK 3 silently drops a window icon that does not fit one X11 request, 512 px or more (gdk_x11_window_set_icon_list). Made by `go run ./tools/icons gen`.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
djinn
command
Command djinn is the single entry point of Djinn: the native window, the local server and the command line that agents use to drive a mission.
|
Command djinn is the single entry point of Djinn: the native window, the local server and the command line that agents use to drive a mission. |
|
Package gen holds what `go tool task gen` generates from the protos in api/.
|
Package gen holds what `go tool task gen` generates from the protos in api/. |
|
go/backup/v1/backupv1connect
Package backup.v1 is the backup of Djinn's data folder: one archive, taken while Djinn runs.
|
Package backup.v1 is the backup of Djinn's data folder: one archive, taken while Djinn runs. |
|
go/demo/v1/demov1connect
Package demo.v1 is a minimal service that proves a server stream reaches the interface, in the window and in the browser alike.
|
Package demo.v1 is a minimal service that proves a server stream reaches the interface, in the window and in the browser alike. |
|
go/machine/v1/machinev1connect
Package machine.v1 is what Djinn knows of the machine it runs on, and the gates: shared resources it grants one holder at a time.
|
Package machine.v1 is what Djinn knows of the machine it runs on, and the gates: shared resources it grants one holder at a time. |
|
go/plan/v1/planv1connect
The plan of work: the projects Djinn knows, the wishes it works to grant across them, their tasks, and the questions agents ask along the way.
|
The plan of work: the projects Djinn knows, the wishes it works to grant across them, their tasks, and the questions agents ask along the way. |
|
go/terminal/v1/terminalv1connect
Package terminal.v1 runs programs on pseudo-terminals for the window: a shell, or the lead agent, in a real terminal the user types into.
|
Package terminal.v1 runs programs on pseudo-terminals for the window: a shell, or the lead agent, in a real terminal the user types into. |
|
go/ui/v1/uiv1connect
The interface reserved to the native window.
|
The interface reserved to the native window. |
|
internal
|
|
|
backup
Package backup writes Djinn's data folder into one archive, and puts it back.
|
Package backup writes Djinn's data folder into one archive, and puts it back. |
|
cli
Package cli turns the public methods of the protos into commands, by convention and at runtime: the command is the service then the method, the arguments are the fields of the request, and the help is the proto comments.
|
Package cli turns the public methods of the protos into commands, by convention and at runtime: the command is the service then the method, the arguments are the fields of the request, and the help is the proto comments. |
|
demo
Package demo implements demo.v1.DemoService, which only proves that a server stream reaches the interface.
|
Package demo implements demo.v1.DemoService, which only proves that a server stream reaches the interface. |
|
dispatch
Package dispatch decides which planned task starts now: the scheduler's rules, in plain Go, apart from the store and the workers.
|
Package dispatch decides which planned task starts now: the scheduler's rules, in plain Go, apart from the store and the workers. |
|
dispatch/bench
Package bench is the dispatch bench (T07): dispatch situations written as data, each with the decision expected by hand, and what a contender decides for each.
|
Package bench is the dispatch bench (T07): dispatch situations written as data, each with the decision expected by hand, and what a contender decides for each. |
|
docsite
Package docsite is Djinn's documentation site, docs/site, with its Command line tab filled in from the command tree of this very djinn (cli.Reference): what `go tool task docs` writes into bin/docs, and what djinn up serves at /docs/.
|
Package docsite is Djinn's documentation site, docs/site, with its Command line tab filled in from the command tree of this very djinn (cli.Reference): what `go tool task docs` writes into bin/docs, and what djinn up serves at /docs/. |
|
fsx
Package fsx holds the file system helpers several packages share: for now, a rename that Windows does not refuse for a moment.
|
Package fsx holds the file system helpers several packages share: for now, a rename that Windows does not refuse for a moment. |
|
gate
Package gate grants the gates: shared resources (code generation, the local stack, an end-to-end run, a paid model run) that one holder uses at a time, granted only while the machine is not under pressure and has the memory the command peaked at, the first wish of the rank first.
|
Package gate grants the gates: shared resources (code generation, the local stack, an end-to-end run, a paid model run) that one holder uses at a time, granted only while the machine is not under pressure and has the memory the command peaked at, the first wish of the rank first. |
|
harness
Package harness runs workers: one agent process per task, in the task's own worktree, followed and recorded in the store as it goes.
|
Package harness runs workers: one agent process per task, in the task's own worktree, followed and recorded in the store as it goes. |
|
link
Package link reads Djinn's links, djinn://tilasm/<id> and djinn://wish/<id>, which open the app on what they name from anywhere: a browser, a chat, a terminal, a Markdown file.
|
Package link reads Djinn's links, djinn://tilasm/<id> and djinn://wish/<id>, which open the app on what they name from anywhere: a browser, a chat, a terminal, a Markdown file. |
|
machine
Package machine discovers what the machine has (cores, memory, disk, GPUs) and how loaded it is (load, pressure), and turns it into the number of workers Djinn runs at once, whether a new worker or a gate may start now, and whether a local model can run.
|
Package machine discovers what the machine has (cores, memory, disk, GPUs) and how loaded it is (load, pressure), and turns it into the number of workers Djinn runs at once, whether a new worker or a gate may start now, and whether a local model can run. |
|
plan
Package plan implements the services of plan.v1 on the store: projects, wishes and questions.
|
Package plan implements the services of plan.v1 on the store: projects, wishes and questions. |
|
render
Package render writes the page of a wish: one HTML file standing alone, made by Djinn from its store, never by a model.
|
Package render writes the page of a wish: one HTML file standing alone, made by Djinn from its store, never by a model. |
|
server
Package server builds the single HTTP handler that both the native window and the browser mode serve: the Connect services, and the interface for every other path.
|
Package server builds the single HTTP handler that both the native window and the browser mode serve: the Connect services, and the interface for every other path. |
|
store
Package store keeps the entities of Djinn in one SQLite database, by protobuf reflection: one table per message, its id as primary key, the fields it is searched by as columns, and the whole message as a binary payload.
|
Package store keeps the entities of Djinn in one SQLite database, by protobuf reflection: one table per message, its id as primary key, the fields it is searched by as columns, and the whole message as a binary payload. |
|
swapexe
Package swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs.
|
Package swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs. |
|
terminal
Package terminal runs programs on pseudo-terminals for the window: a shell, or the lead agent, that the user types into as in any terminal.
|
Package terminal runs programs on pseudo-terminals for the window: a shell, or the lead agent, that the user types into as in any terminal. |
|
testx
Package testx holds what the tests of several packages share: for now, the mark of a test that checks portable logic, which the Windows job skips (CONTRIBUTING.md).
|
Package testx holds what the tests of several packages share: for now, the mark of a test that checks portable logic, which the Windows job skips (CONTRIBUTING.md). |
|
testx/bigwish
Package bigwish makes a wish of real size, to measure Djinn on: its azimas and tasks, the events of their workers, its questions and decisions, its blocks and its journal, as a wish export (WishService.Import reads it).
|
Package bigwish makes a wish of real size, to measure Djinn on: its azimas and tasks, the events of their workers, its questions and decisions, its blocks and its journal, as a wish export (WishService.Import reads it). |
|
ui
Package ui implements UiService, the API the window calls.
|
Package ui implements UiService, the API the window calls. |
|
Package locales holds the texts Djinn shows to people, one JSON catalog per language, shared by the Go server and the interface (src/i18n.ts).
|
Package locales holds the texts Djinn shows to people, one JSON catalog per language, shared by the Go server and the interface (src/i18n.ts). |
|
tools
|
|
|
benchdispatch
command
Command benchdispatch is the dispatch bench (T07, plan/8e8d3d76-orchestrator.md): it runs the plain Go scheduler on every case of internal/dispatch/bench/cases.json and prints a Markdown table of its decisions, the expected ones, and the time per pass.
|
Command benchdispatch is the dispatch bench (T07, plan/8e8d3d76-orchestrator.md): it runs the plain Go scheduler on every case of internal/dispatch/bench/cases.json and prints a Markdown table of its decisions, the expected ones, and the time per pass. |
|
benchworkers
command
Command benchworkers compares five ways Djinn starts a worker on the same small task, with a real model: cold (claude -p as Djinn runs it), --bare, a fork of a session, a warm worker, and a cold worker behind a stable brief.
|
Command benchworkers compares five ways Djinn starts a worker on the same small task, with a real model: cold (claude -p as Djinn runs it), --bare, a fork of a session, a warm worker, and a cold worker behind a stable brief. |
|
bigwish
command
Command bigwish writes a wish of real size (internal/testx/bigwish) to a file, as djinn wish export writes one: djinn wish import reads it into any djinn, the e2e's first (e2e/bigwish.ts).
|
Command bigwish writes a wish of real size (internal/testx/bigwish) to a file, as djinn wish export writes one: djinn wish import reads it into any djinn, the e2e's first (e2e/bigwish.ts). |
|
copydir
command
Command copydir copies a directory tree.
|
Command copydir copies a directory tree. |
|
devloop
command
Command devloop is `go tool task dev`: Djinn while you edit it.
|
Command devloop is `go tool task dev`: Djinn while you edit it. |
|
docsite
command
Command docsite builds the documentation site into a folder that opens offline: docs/site, its Command line tab filled in from the command tree djinn is built from.
|
Command docsite builds the documentation site into a folder that opens offline: docs/site, its Command line tab filled in from the command tree djinn is built from. |
|
icons
command
Command icons makes Djinn's icon for each system from one drawing, build/icon.png: the logo of the window, which the window, the dock and the tray already show (assets.go).
|
Command icons makes Djinn's icon for each system from one drawing, build/icon.png: the logo of the window, which the window, the dock and the tray already show (assets.go). |
|
macapp
command
Command macapp lays out Djinn.app, the macOS application bundle, around a djinn binary built for macOS, and zips it.
|
Command macapp lays out Djinn.app, the macOS application bundle, around a djinn binary built for macOS, and zips it. |
|
releasepack
command
Command releasepack packs release archives and their checksums.
|
Command releasepack packs release archives and their checksums. |
|
slowtests
command
Command slowtests reads `go test -json` on its input, prints what go test prints without -json (the output of the tests that fail, the build errors, a line per package), and fails when a test fails or when a top-level test took longer than -max: tests stay fast, and a slow one is caught the day it slows down.
|
Command slowtests reads `go test -json` on its input, prints what go test prints without -json (the output of the tests that fail, the build errors, a line per package), and fails when a test fails or when a top-level test took longer than -max: tests stay fast, and a slow one is caught the day it slows down. |
|
swapexe
command
Command swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs: it is how `task install` updates the Djinn in use.
|
Command swapexe puts a freshly built executable in place of an installed one, in one rename, without disturbing a copy that runs: it is how `task install` updates the Djinn in use. |
|
windowcheck
command
Command windowcheck tells whether a Connect server stream reaches the native window of Djinn message by message, on the path the window really uses on this system: the Wails internal asset server (wails://) on macOS and Linux, the loopback HTTP server with its token on Windows; and whether a unary call with an empty response still succeeds there.
|
Command windowcheck tells whether a Connect server stream reaches the native window of Djinn message by message, on the path the window really uses on this system: the Wails internal asset server (wails://) on macOS and Linux, the loopback HTTP server with its token on Windows; and whether a unary call with an empty response still succeeds there. |