pkg/

directory
v0.135.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: Apache-2.0

Directories

Path Synopsis
Package accesspolicies discovers and decodes the DALgo access policies a DataTug user keeps on disk, runs a query through them as a secured application would, and explains what the policies did to that query.
Package accesspolicies discovers and decodes the DALgo access policies a DataTug user keeps on disk, runs a query through them as a secured application would, and explains what the policies did to that query.
Package agentaccess is the shared-token access model of a local DataTug agent (`datatug serve`, and the daemon that runs it): loopback plus a token.
Package agentaccess is the shared-token access model of a local DataTug agent (`datatug serve`, and the daemon that runs it): loopback plus a token.
Package apimonitor observes local API lifecycle and request metadata in memory.
Package apimonitor observes local API lifecycle and request metadata in memory.
device
Package device provides DataTug's shared auth.sneat.co device-login command.
Package device provides DataTug's shared auth.sneat.co device-login command.
Package bigqueryread composes the released BigQuery driver with DataTug policies.
Package bigqueryread composes the released BigQuery driver with DataTug policies.
Package chat implements DataTug Chat: an aichat agent loop produces TugQL, DataTug executes it into structured results, and session-owned RecordSets persist those results independently of the model provider's memory.
Package chat implements DataTug Chat: an aichat agent loop produces TugQL, DataTug executes it into structured results, and session-owned RecordSets persist those results independently of the model provider's memory.
narrowing
Package narrowing decides, before a chat turn reaches the AI model, which of a project's tables the model needs to see.
Package narrowing decides, before a chat turn reaches the AI model, which of a project's tables the model needs to see.
narrowing/narrowingtest
Package narrowingtest holds the fixtures the narrowing tests share: the Chinook schema (11 tables) and a fake decision engine standing in for Jev (Scorer).
Package narrowingtest holds the fixtures the narrowing tests share: the Chinook schema (11 tables) and a fake decision engine standing in for Jev (Scorer).
Package cloudapi carries the DataTug cloud API client's host failover.
Package cloudapi carries the DataTug cloud API client's host failover.
Package comparecache is a server-private SQLite convenience store for comparison rows.
Package comparecache is a server-private SQLite convenience store for comparison rows.
Package daemon owns the one local, read-only `datatug serve` process that AI-agent mods use so their cards can link to the DataTug web UI (spec/features/cli/daemon).
Package daemon owns the one local, read-only `datatug serve` process that AI-agent mods use so their cards can link to the DataTug web UI (spec/features/cli/daemon).
Package dbcompare compares the schemas and complete rows of two DALgo databases.
Package dbcompare compares the schemas and complete rows of two DALgo databases.
Package dbcopy implements the `datatug db copy` cross-engine database copy primitive.
Package dbcopy implements the `datatug db copy` cross-engine database copy primitive.
faithful
Package faithful copies a SQL database between SQLite and PostgreSQL and keeps everything the two engines can both express: tables, columns, nullability, primary keys (composite too), foreign keys (composite too, with their ON DELETE / ON UPDATE actions), unique constraints, indexes, check constraints, defaults, auto-increment columns, and every value byte for byte.
Package faithful copies a SQL database between SQLite and PostgreSQL and keeps everything the two engines can both express: tables, columns, nullability, primary keys (composite too), foreign keys (composite too, with their ON DELETE / ON UPDATE actions), unique constraints, indexes, check constraints, defaults, auto-increment columns, and every value byte for byte.
filter
Package filter — CLI mini-syntax parsers.
Package filter — CLI mini-syntax parsers.
Package detective adapts Core's shared Checks and Cases to local storage.
Package detective adapts Core's shared Checks and Cases to local storage.
Package detectiveui provides native keyboard-driven Checks and Detective workspaces.
Package detectiveui provides native keyboard-driven Checks and Detective workspaces.
Package dtentity pretty-prints entities using the canonical Core named-table codec.
Package dtentity pretty-prints entities using the canonical Core named-table codec.
Package dtroot resolves the CLI-local data directory (~/datatug), used for CLI-only state and the "clone GitHub projects under here" convention.
Package dtroot resolves the CLI-local data directory (~/datatug), used for CLI-only state and the "clone GitHub projects under here" convention.
Package executionstore composes immutable repository-backed execution receipts with server-private SQLite snapshot bytes and lifecycle state.
Package executionstore composes immutable repository-backed execution receipts with server-private SQLite snapshot bytes and lifecycle state.
Package gitpath answers whether a path lies inside a Git working tree or a bare Git repository.
Package gitpath answers whether a path lies inside a Git working tree or a bare Git repository.
Package httpsource translates a datatug project's HTTP-type QueryDefs into a dalgo2http-backed dal.DB: one dalgo2http.Collection per query (see BuildCollection for the translation and its sensible-default policy for RowsPath/KeyField, since the QueryDef JSON schema does not yet carry those explicitly), snapshot fallback wired to the project's fixtures/http/ directory (see fixtureFS for how its flatly-named fixture files are bridged to dalgo2http's per-request snapshot keying), live-then-snapshot mode.
Package httpsource translates a datatug project's HTTP-type QueryDefs into a dalgo2http-backed dal.DB: one dalgo2http.Collection per query (see BuildCollection for the translation and its sensible-default policy for RowsPath/KeyField, since the QueryDef JSON schema does not yet carry those explicitly), snapshot fallback wired to the project's fixtures/http/ directory (see fixtureFS for how its flatly-named fixture files are bridged to dalgo2http's per-request snapshot keying), live-then-snapshot mode.
Package incidentstore persists the Incidentius event stream in a repository.
Package incidentstore persists the Incidentius event stream in a repository.
Package joinmeta reads the relations a TugQL query reads and the foreign keys of a database, from the query's own tree and from DALgo's engine-neutral schema calls (dbschema.ListCollections and DescribeCollection), never from engine-specific SQL.
Package joinmeta reads the relations a TugQL query reads and the foreign keys of a database, from the query's own tree and from DALgo's engine-neutral schema calls (dbschema.ListCollections and DescribeCollection), never from engine-specific SQL.
Package localprojects manages projects inside an operator-selected creation root.
Package localprojects manages projects inside an operator-selected creation root.
Package mcpserver exposes selected reads of a separately running local DataTug agent over MCP.
Package mcpserver exposes selected reads of a separately running local DataTug agent over MCP.
Package personalqueries resolves the on-disk directory a principal's personal (never-shared) queries live under for `datatug serve` — see ResolveProjectDir.
Package personalqueries resolves the on-disk directory a principal's personal (never-shared) queries live under for `datatug serve` — see ResolveProjectDir.
Package privateadmission serializes local native journal writes with session SQLite mutations.
Package privateadmission serializes local native journal writes with session SQLite mutations.
Package projectvisibility coordinates discovery metadata with restoration of legacy native archives.
Package projectvisibility coordinates discovery metadata with restoration of legacy native archives.
Package querybody adapts a saved query's explicit body representation to the structured document accepted by DataTug's policy-bound executor.
Package querybody adapts a saved query's explicit body representation to the structured document accepted by DataTug's policy-bound executor.
Package queryops derives bounded, previewable TugQL operations without running a query or resolving any source.
Package queryops derives bounded, previewable TugQL operations without running a query or resolving any source.
Package queryparams converts declared query defaults without changing driver row types.
Package queryparams converts declared query defaults without changing driver row types.
Package queryresults keeps the private result files that `datatug query run --result-id <id>` writes: <root>/<id>/data.json (the rows) and <root>/<id>/meta.json (everything a card needs except the rows).
Package queryresults keeps the private result files that `datatug query run --result-id <id>` writes: <root>/<id>/data.json (the rows) and <root>/<id>/meta.json (everything a card needs except the rows).
Package querywrite holds the guards every saved-query write path of this agent shares - the legacy queries/create_query, update_query and delete_query routes and queries/capture - so each check has one definition, whichever route a write takes.
Package querywrite holds the guards every saved-query write path of this agent shares - the legacy queries/create_query, update_query and delete_query routes and queries/capture - so each check has one definition, whichever route a write takes.
Package resultops applies deterministic local operations to captured result snapshots.
Package resultops applies deterministic local operations to captured result snapshots.
dalgoschema
Package dalgoschema is a schemer.SchemaProvider built on DALgo's dbschema.SchemaReader, so one scanner serves every database whose DALgo adapter can read its own schema.
Package dalgoschema is a schemer.SchemaProvider built on DALgo's dbschema.SchemaReader, so one scanner serves every database whose DALgo adapter can read its own schema.
Package secureread is the policy-enforced read executor for the DataTug agent server (`datatug serve`).
Package secureread is the policy-enforced read executor for the DataTug agent server (`datatug serve`).
Package sessionnative provides trusted local native/session worker ports.
Package sessionnative provides trusted local native/session worker ports.
Package sessionresultcache retains bounded display results on one device.
Package sessionresultcache retains bounded display results on one device.
Package sessionstore opens a private OVDB SQLite authority for working sessions.
Package sessionstore opens a private OVDB SQLite authority for working sessions.
Package watch implements project Watches over DALGO transactional state.
Package watch implements project Watches over DALGO transactional state.
Package watchdaemon hosts DataTug's independently composable Watch roles.
Package watchdaemon hosts DataTug's independently composable Watch roles.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL