The embedding engine now backs its graph with the SQLite store instead of
an in-memory graph, so it holds a database handle and a write-ahead-log
checkpointer that have to be released. New returns an error because
opening the store can fail, and the new Close is required: it closes the
store and removes the temp directory the zero-config constructor creates.
WithStorePath opts into a store that outlives the process, so an embedder
can index once and query the same graph on later runs.
wire: add missing go.mod, LICENSE, README and root go.work
The pkg/wire carve-out landed the .go sources and updated callers
in the previous two commits, but the files that actually define it
as a nested Go module were left untracked — so the pkg/wire/v0.1.0
tag resolved to a subdirectory of the parent module rather than a
standalone MIT module. Adding them now.
pkg/wire/go.mod declares module github.com/zzet/gortex/pkg/wire on
Go 1.25.6, stdlib only, testify test-only.
pkg/wire/LICENSE is MIT, scoped to this subtree.
pkg/wire/README.md covers install, encode, decode, round-trip.
Root go.work + go.work.sum make the nested module resolve locally
during dev without a replace directive.
Carve the GCX1 reference encoder/decoder out of internal/wire
(unimportable) into pkg/wire as a nested Go module with its own
go.mod and MIT LICENSE, so external MCP servers can import
github.com/zzet/gortex/pkg/wire without inheriting Gortex's
source-available license. Matches the existing MIT terms of the
@gortex/wire npm decoder.
The wire package is stdlib-only (testify test-only); no
cross-module type dependencies had to be broken. A root go.work
makes the nested module available to the parent during dev;
external consumers resolve pkg/wire via the module proxy once a
pkg/wire/v0.1.0 tag is pushed.
Updates the 6 internal importers (internal/mcp/gcx.go + tests,
internal/skills/generator.go, packages/wire-ts test harness,
bench/wire-format encoders + main) plus the live doc references
in CLAUDE.md, docs/wire-format.md, and packages/wire-ts/README.md.
Bench harness reproduces bit-identical: median -27.4% tokens,
20/20 round-trip.