pkg/

directory
v0.152.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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 callercontext names the AI harness (and its session) a DataTug command runs under, from the harness's own environment, so local records such as policy exception proposals and their audit events can say who proposed or used what.
Package callercontext names the AI harness (and its session) a DataTug command runs under, from the harness's own environment, so local records such as policy exception proposals and their audit events can say who proposed or used what.
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 cloudproject reads a DataTug Cloud project owned by a Space through the DataTug backend's /v0/datatug/* endpoints, the same reads datatug.app makes.
Package cloudproject reads a DataTug Cloud project owned by a Space through the DataTug backend's /v0/datatug/* endpoints, the same reads datatug.app makes.
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 datarolesfile keeps a local project's data-role classifications at <project>/datatug-data-roles.json (dataroles.FileName), beside the Meaning Graph labels of meaninglabelsfile.
Package datarolesfile keeps a local project's data-role classifications at <project>/datatug-data-roles.json (dataroles.FileName), beside the Meaning Graph labels of meaninglabelsfile.
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 deeplink reads the address of a page of the DataTug web app (https://datatug.app/...) into what the terminal UI needs to open the same project and page: `datatug ui --deep-link <address>`.
Package deeplink reads the address of a page of the DataTug web app (https://datatug.app/...) into what the terminal UI needs to open the same project and page: `datatug ui --deep-link <address>`.
Package demofixtures holds the files `datatug demo install` writes into the local demo project: the pinned Chinook SQLite database, a small inGitDB database of synthetic support notes, the curated Perimeter policy and the Meaning Graph sensitivity labels.
Package demofixtures holds the files `datatug demo install` writes into the local demo project: the pinned Chinook SQLite database, a small inGitDB database of synthetic support notes, the curated Perimeter policy and the Meaning Graph sensitivity labels.
factories
Package factories generates the five-factory reconciliation demo: one application (database family "factory") run as seven SQLite databases, five production factories and two test copies, with a few deliberate, documented differences for `datatug reconcile` to find.
Package factories generates the five-factory reconciliation demo: one application (database family "factory") run as seven SQLite databases, five production factories and two test copies, with a few deliberate, documented differences for `datatug reconcile` to find.
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 labelguard holds the sensitivity-label decisions every read of a project source shares, whoever reads it: `query run`, `chat`, `datatug://` reads and `datatug serve`'s exec/run_query.
Package labelguard holds the sensitivity-label decisions every read of a project source shares, whoever reads it: `query run`, `chat`, `datatug://` reads and `datatug serve`'s exec/run_query.
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 meaninglabelsfile keeps a local project's Meaning Graph label document at <project>/datatug-labels.json and its audit trail at <project>/.datatug/audit/labels.jsonl.
Package meaninglabelsfile keeps a local project's Meaning Graph label document at <project>/datatug-labels.json and its audit trail at <project>/.datatug/audit/labels.jsonl.
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 policyexceptions keeps the local policy exceptions of one DataTug project: time-boxed allow rules that the policy author adds to their own local policy, on this machine, for one role, one table of one source and an exact list of fields.
Package policyexceptions keeps the local policy exceptions of one DataTug project: time-boxed allow rules that the policy author adds to their own local policy, on this machine, for one role, one table of one source and an exact list of fields.
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 reconcileapi is the wire contract of the agent's POST /datatug/reconcile endpoint, shared by the server and the CLI.
Package reconcileapi is the wire contract of the agent's POST /datatug/reconcile endpoint, shared by the server and the CLI.
Package reconcileprofiles keeps a local project's reconciliation profiles, one plain reviewable file per profile at <project>/reconciliations/<id>.json (reconcile.ProfilesFolder).
Package reconcileprofiles keeps a local project's reconciliation profiles, one plain reviewable file per profile at <project>/reconciliations/<id>.json (reconcile.ProfilesFolder).
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 tugqlbind binds the databases a saved TugQL query reads to project sources (spec/features/cli/query, REQ:cross-database-sources).
Package tugqlbind binds the databases a saved TugQL query reads to project sources (spec/features/cli/query, REQ:cross-database-sources).
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.
Package webui installs, selects and serves the compiled DataTug web app (the public archives of github.com/datatug/web-ui) from the CLI's own HTTP server.
Package webui installs, selects and serves the compiled DataTug web app (the public archives of github.com/datatug/web-ui) from the CLI's own HTTP server.

Jump to

Keyboard shortcuts

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