No description
- Go 100%
| cmd/triport | ||
| docs | ||
| internal/trip | ||
| .gitignore | ||
| AGENTS.md | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
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.