5 Commits

Author SHA1 Message Date
Andrey Kumanyaev 5dc7b58fac feat(api)!: give the embedding engine an explicit store and Close
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.
2026-08-06 01:11:54 +02:00
Andrey Kumanyaev 9dd67b5923 Extract GCX1 to its own repositories in gortexhq org 2026-04-22 20:06:43 +02:00
Andrey Kumanyaev 907027b27f Commit message:
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.
2026-04-20 09:50:20 +02:00
Andrey Kumanyaev bb3d5fdfa5 wire: split GCX1 into MIT-licensed pkg/wire nested module
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.
2026-04-20 09:41:14 +02:00
Andrey Kumanyaev 49aaebd3c7 init 2026-04-06 15:49:49 +02:00