internal/

directory
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT

Directories

Path Synopsis
pkg
common/blocks
Package blocks defines the fixed library of display building blocks used to compose a template's rendered layout.
Package blocks defines the fixed library of display building blocks used to compose a template's rendered layout.
common/template
Package template defines the programmatic template contract for gitrakz: a saved composition of a form, a transform pipeline, and a display layout — never a saved prompt.
Package template defines the programmatic template contract for gitrakz: a saved composition of a form, a transform pipeline, and a display layout — never a saved prompt.
common/templates
Package templates provides gitrakz's built-in template library: a small set of deterministic, Builtin=true templates seeded into the templates table on every service boot, so the template runner and templates manager have something to run before any user or LLM-authored template exists.
Package templates provides gitrakz's built-in template library: a small set of deterministic, Builtin=true templates seeded into the templates table on every service boot, so the template runner and templates manager have something to run before any user or LLM-authored template exists.
common/transform
Package transform defines the pipeline contract for gitrakz templates: an ordered chain of primitives that reshape a selected timeline into a typed display document.
Package transform defines the pipeline contract for gitrakz templates: an ordered chain of primitives that reshape a selected timeline into a typed display document.
common/types
Package types defines the shared domain vocabulary for gitrakz — events, sessions, form values — as plain data structs.
Package types defines the shared domain vocabulary for gitrakz — events, sessions, form values — as plain data structs.
config
Package config loads gitrakz's runtime configuration from environment variables prefixed with GITRAKZ_.
Package config loads gitrakz's runtime configuration from environment variables prefixed with GITRAKZ_.
db
Package db wires gitrakz's SQLite storage: opening the database, running the embedded migrations, and exposing a typed Store facade over the generated gorm-gen repositories.
Package db wires gitrakz's SQLite storage: opening the database, running the embedded migrations, and exposing a typed Store facade over the generated gorm-gen repositories.
db/migrations
Package migrations embeds gitrakz's SQLite schema migrations into the binary so it stays self-contained — no migrations directory to mount, no version skew between the binary and the SQL files.
Package migrations embeds gitrakz's SQLite schema migrations into the binary so it stays self-contained — no migrations directory to mount, no version skew between the binary and the SQL files.
engine
Package engine runs a template's transform pipeline over a selected timeline and renders the result into a display Document via the template's layout — the glue between the transform and template packages.
Package engine runs a template's transform pipeline over a selected timeline and renders the result into a display Document via the template's layout — the glue between the transform and template packages.
export
Package export serializes a blocks.Document into the output formats gitrakz exposes to callers: raw JSON, CSV, and PDF.
Package export serializes a blocks.Document into the output formats gitrakz exposes to callers: raw JSON, CSV, and PDF.
ghsync
Package ghsync pulls a GitHub user's activity into gitrakz's local store, incrementally.
Package ghsync pulls a GitHub user's activity into gitrakz's local store, incrementally.
http/api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.
http/server
Package server implements gitrakz's HTTP handlers as the generated api.StrictServerInterface.
Package server implements gitrakz's HTTP handlers as the generated api.StrictServerInterface.
services/http-server
Package httpserver is gitrakz's only servicepack service: it boots the whole app — SQLite storage + migrations, the gh sync engine, the transform/template engine, the LLM adapters, and an aichteeteapee/serbewr HTTP server mounting the generated API under /api/v1/ plus the embedded Svelte SPA — and runs a background sync ticker for the lifetime of the process.
Package httpserver is gitrakz's only servicepack service: it boots the whole app — SQLite storage + migrations, the gh sync engine, the transform/template engine, the LLM adapters, and an aichteeteapee/serbewr HTTP server mounting the generated API under /api/v1/ plus the embedded Svelte SPA — and runs a background sync ticker for the lifetime of the process.
transform/aggregate
Package aggregate implements the "aggregate" transform primitive: it folds every existing State.Rows entry's Values[field] down to one summary value (sum, avg, min, or max) and appends the result as a new Row.
Package aggregate implements the "aggregate" transform primitive: it folds every existing State.Rows entry's Values[field] down to one summary value (sum, avg, min, or max) and appends the result as a new Row.
transform/describework
Package describework implements the "describe-work" 🤖 transform primitive: it turns a group of raw commit titles into a one-line, natural-language description of the work — because commit subjects like "fix", "wip", or "asdf" don't belong in a timesheet or client report.
Package describework implements the "describe-work" 🤖 transform primitive: it turns a group of raw commit titles into a one-line, natural-language description of the work — because commit subjects like "fix", "wip", or "asdf" don't belong in a timesheet or client report.
transform/excludeofftime
Package excludeofftime implements the "exclude-off-time" transform primitive: it subtracts recurring daily off-hours windows (lunch breaks, end-of-day cutoffs, etc.) from every session's duration.
Package excludeofftime implements the "exclude-off-time" transform primitive: it subtracts recurring daily off-hours windows (lunch breaks, end-of-day cutoffs, etc.) from every session's duration.
transform/groupby
Package groupby implements the "group-by" transform primitive: it buckets the timeline by a chosen Event field and writes one Row per bucket to State.Rows, each carrying the bucket's event count and additions/ deletions totals.
Package groupby implements the "group-by" transform primitive: it buckets the timeline by a chosen Event field and writes one Row per bucket to State.Rows, each carrying the bucket's event count and additions/ deletions totals.
transform/passthrough
Package passthrough implements the "passthrough" transform primitive: it projects the raw event timeline directly into a display table with no aggregation, grouping, or filtering.
Package passthrough implements the "passthrough" transform primitive: it projects the raw event timeline directly into a display table with no aggregation, grouping, or filtering.
transform/rate
Package rate implements the "rate" transform primitive: it derives a dollars value for every row by multiplying its hours value by an hourly rate resolved from the run's form values, falling back to a params default.
Package rate implements the "rate" transform primitive: it derives a dollars value for every row by multiplying its hours value by an hourly rate resolved from the run's form values, falling back to a params default.
transform/registry
Package registry wires every built-in transform primitive into a transform.Registry so the template engine can build a pipeline from a template's named steps.
Package registry wires every built-in transform primitive into a transform.Registry so the template engine can build a pipeline from a template's named steps.
transform/sessionize
Package sessionize implements the "sessionize" transform primitive: it clusters a timeline's events into per-owner work sessions using a gap-based heuristic, so downstream primitives can reason about continuous blocks of work instead of raw event timestamps.
Package sessionize implements the "sessionize" transform primitive: it clusters a timeline's events into per-owner work sessions using a gap-based heuristic, so downstream primitives can reason about continuous blocks of work instead of raw event timestamps.
transform/splitbyactivedays
Package splitbyactivedays implements a transform.Primitive that groups State.Sessions by the UTC calendar day of each session's start time and emits one aggregated Row per active day.
Package splitbyactivedays implements a transform.Primitive that groups State.Sessions by the UTC calendar day of each session's start time and emits one aggregated Row per active day.

Jump to

Keyboard shortcuts

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