No description
Find a file
2026-11-13 22:27:49 +01:00
cmd/triport feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
docs feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
internal/trip feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
.gitignore feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
AGENTS.md feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
go.mod feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
go.sum feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00
README.md feat: add shared trip model and persistent Go service 2026-11-13 22:27:49 +01:00

Triport

Triport stores one shared trip plan for the web planner and MCP integration. This first service implements MAR-5.

Use Go 1.26 or later. SQLite runs in the Go process through modernc.org/sqlite. No database server or C compiler is necessary.

go test -race ./...
golangci-lint run -E unconvert -E revive ./...
go run ./cmd/triport -h

The command reads and writes JSON through the same service that future web and MCP adapters will use. It does not open a network port.

go run ./cmd/triport -db trip.sqlite -owner me create < internal/trip/testdata/plan.json
go run ./cmd/triport -db trip.sqlite -user me list
go run ./cmd/triport -db trip.sqlite -id TRIP_ID get
go run ./cmd/triport -db trip.sqlite -id TRIP_ID -revision 1 save < plan.json

Use the trip ID returned by create. save replaces the plan and requires its current revision. It cannot change ownership or membership.

See the data and service contract for storage rules, validation, and the boundary of this implementation.