Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
server-price-tracker
command
Package main is the entry point for the server-price-tracker.
|
Package main is the entry point for the server-price-tracker. |
|
server-price-tracker/cmd
Package cmd implements the CLI commands for server-price-tracker.
|
Package cmd implements the CLI commands for server-price-tracker. |
|
spt
command
Package main is the entry point for the spt CLI client.
|
Package main is the entry point for the spt CLI client. |
|
spt/cmd
Package cmd implements the spt CLI commands.
|
Package cmd implements the spt CLI commands. |
|
internal
|
|
|
api/client
Package client provides a thin HTTP client for the server-price-tracker API.
|
Package client provides a thin HTTP client for the server-price-tracker API. |
|
api/handlers
Package handlers — alerts_ui.go implements the server-rendered alert review UI from DESIGN-0010 / IMPL-0015 Phase 4.
|
Package handlers — alerts_ui.go implements the server-rendered alert review UI from DESIGN-0010 / IMPL-0015 Phase 4. |
|
api/middleware
Package middleware provides Echo middleware for server-price-tracker.
|
Package middleware provides Echo middleware for server-price-tracker. |
|
api/web
Package web embeds and serves the alert review UI assets.
|
Package web embeds and serves the alert review UI assets. |
|
api/web/components
Package components holds the templ components rendered by the alert review UI.
|
Package components holds the templ components rendered by the alert review UI. |
|
config
Package config handles loading and validating the application configuration from YAML files with environment variable substitution.
|
Package config handles loading and validating the application configuration from YAML files with environment variable substitution. |
|
ebay
Package ebay provides an eBay Browse API client abstracted behind interfaces for testability.
|
Package ebay provides an eBay Browse API client abstracted behind interfaces for testability. |
|
engine
Package engine implements the core business logic loops: scoring, ingestion, baseline recomputation, and alert evaluation.
|
Package engine implements the core business logic loops: scoring, ingestion, baseline recomputation, and alert evaluation. |
|
metrics
Package metrics defines Prometheus metrics for server-price-tracker.
|
Package metrics defines Prometheus metrics for server-price-tracker. |
|
notify
Package notify defines the notification interface and implementations for alert delivery.
|
Package notify defines the notification interface and implementations for alert delivery. |
|
observability
Package observability provides OpenTelemetry SDK initialisation for the server-price-tracker binary.
|
Package observability provides OpenTelemetry SDK initialisation for the server-price-tracker binary. |
|
regression
Package regression carries the shared shape of the `testdata/golden_classifications.json` regression dataset and the helpers all four operator CLIs (`tools/dataset-bootstrap`, `tools/dataset-upload`, `tools/regression-runner`, plus the build- tagged `pkg/extract/regression_test.go` stub) consume.
|
Package regression carries the shared shape of the `testdata/golden_classifications.json` regression dataset and the helpers all four operator CLIs (`tools/dataset-bootstrap`, `tools/dataset-upload`, `tools/regression-runner`, plus the build- tagged `pkg/extract/regression_test.go` stub) consume. |
|
store
Package store defines the datastore abstraction for server-price-tracker.
|
Package store defines the datastore abstraction for server-price-tracker. |
|
version
Package version exposes build-time identifiers (commit SHA, semver) so runtime code can attach them to telemetry resource attributes and log fields.
|
Package version exposes build-time identifiers (commit SHA, semver) so runtime code can attach them to telemetry resource attributes and log fields. |
|
pkg
|
|
|
extract
Package extract provides LLM-based attribute extraction for eBay listings, abstracted behind interfaces for testability.
|
Package extract provides LLM-based attribute extraction for eBay listings, abstracted behind interfaces for testability. |
|
judge
Package judge implements the LLM-as-judge worker that grades fired alerts retrospectively against an operator-curated rubric (see IMPL-0019 Phase 5 / DESIGN-0016).
|
Package judge implements the LLM-as-judge worker that grades fired alerts retrospectively against an operator-curated rubric (see IMPL-0019 Phase 5 / DESIGN-0016). |
|
logger
Package logger provides centralized slog.Logger construction with configurable level and output format (text or JSON).
|
Package logger provides centralized slog.Logger construction with configurable level and output format (text or JSON). |
|
observability/langfuse
Package langfuse provides an in-house HTTP client for Langfuse (https://langfuse.com/), the LLM-observability backend used by IMPL-0019 to capture every LLMBackend.Generate call as a Langfuse generation linked to the active OTel trace.
|
Package langfuse provides an in-house HTTP client for Langfuse (https://langfuse.com/), the LLM-observability backend used by IMPL-0019 to capture every LLMBackend.Generate call as a Langfuse generation linked to the active OTel trace. |
|
scorer
Package score implements the composite deal scoring algorithm for eBay listings.
|
Package score implements the composite deal scoring algorithm for eBay listings. |
|
types
Package domain defines the core business types for the server price tracker.
|
Package domain defines the core business types for the server price tracker. |
|
test
|
|
|
utils
Package testhelper provides shared utilities for integration and e2e tests.
|
Package testhelper provides shared utilities for integration and e2e tests. |
|
tools
|
|
|
dataset-bootstrap
command
Package main is the operator-facing CLI for bootstrapping the regression dataset (testdata/golden_classifications.json).
|
Package main is the operator-facing CLI for bootstrapping the regression dataset (testdata/golden_classifications.json). |
|
dataset-upload
command
Package main is the operator-facing CLI for uploading the curated regression dataset (testdata/golden_classifications.json) to Langfuse as one DatasetItem per row.
|
Package main is the operator-facing CLI for uploading the curated regression dataset (testdata/golden_classifications.json) to Langfuse as one DatasetItem per row. |
|
docgen
command
Package main generates CLI reference documentation from the spt command tree.
|
Package main generates CLI reference documentation from the spt command tree. |
|
judge-bootstrap
command
Package main is the operator-facing CLI for bootstrapping the LLM-as-judge few-shot example set (pkg/judge/examples.json).
|
Package main is the operator-facing CLI for bootstrapping the LLM-as-judge few-shot example set (pkg/judge/examples.json). |
|
mock-server
command
Package main implements a mock eBay API server for local development.
|
Package main implements a mock eBay API server for local development. |
|
regression-runner
command
Package main is the operator-facing CLI for running the extraction regression suite against one or more configured LLM backends.
|
Package main is the operator-facing CLI for running the extraction regression suite against one or more configured LLM backends. |
Click to show internal directories.
Click to hide internal directories.