Commit graph

20 commits

Author SHA1 Message Date
Snider
a8cab201b8 Align store internals with RFC
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
2026-04-15 11:09:36 +01:00
Snider
2d7fb951db feat(store): io.Medium-backed storage per RFC §9
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Add WithMedium option so Store archives and Import/Export helpers can
route through any io.Medium implementation (local, memory, S3, cube,
sftp) instead of the raw filesystem. The Medium transport is optional —
when unset, existing filesystem behaviour is preserved.

- medium.go exposes WithMedium, Import, and Export helpers plus a small
  Medium interface that any io.Medium satisfies structurally
- Compact honours the installed Medium for archive writes, falling back
  to the local filesystem when nil
- StoreConfig.Medium round-trips through Config()/WithMedium so callers
  can inspect and override the transport
- medium_test.go covers the happy-path JSONL/CSV/JSON imports, JSON and
  JSONL exports, nil-argument validation, missing-file errors, and the
  Compact medium route

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-14 12:16:53 +01:00
Snider
eef4e737aa refactor(store): replace banned stdlib imports with core/go primitives
Some checks failed
Security Scan / security (push) Has been cancelled
Test / test (push) Has been cancelled
- fmt → core.Sprintf, core.E
- strings → core.Contains, core.HasPrefix, core.Split, core.Join, core.Trim
- os → core.Fs operations
- path/filepath → core.JoinPath, core.PathBase
- encoding/json → core.JSONMarshal, core.JSONUnmarshal
- Add usage example comments to all exported struct fields

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-08 16:43:49 +01:00
Snider
79815048c3 chore: refresh go.sum
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-07 11:43:20 +01:00
Virgil
fcb178fee1 feat(scope): expose scoped config snapshot
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 20:54:45 +00:00
Virgil
aa49cdab4e feat(scope): add scoped pagination helpers
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 17:53:21 +00:00
Virgil
c2ba21342a docs(ax): prefer scoped config literals
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-04 17:34:15 +00:00
Virgil
d983760445 feat(store): add zstd archive support
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:53:12 +00:00
Virgil
134853e6df fix(store): tighten scoped purge and delete events
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:03:19 +00:00
Virgil
083bc1b232 chore(deps): remove stale core/log dependency
All checks were successful
Security Scan / security (push) Successful in 8s
Test / test (push) Successful in 2m32s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-29 23:27:16 +00:00
Claude
c3de82b207
feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 2m33s
Replace fmt, errors, strings, path/filepath with Core primitives
across 8 files. Keep strings for SplitSeq/FieldsSeq/Builder/Repeat.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 13:58:50 +00:00
Virgil
ec500b86d2 chore(repo): enforce AX review conventions
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 11:17:06 +00:00
Snider
5225c99cd7 refactor(module): migrate module paths from forge.lthn.ai to dappco.re
Some checks failed
Security Scan / security (pull_request) Successful in 8s
Test / test (pull_request) Failing after 32s
Update module path to dappco.re/go/core/store, require dappco.re/go/core/log v0.1.0,
and update all Go import paths and documentation references.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 01:27:35 +00:00
Snider
3cd761dc03 chore: sync dependencies for v0.1.9
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-17 17:48:09 +00:00
Snider
2512006510 chore: sync dependencies for v0.1.8
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 2m59s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 22:19:36 +00:00
Snider
e88b8a3455 refactor(errors): replace fmt.Errorf and errors.New with coreerr.E()
All checks were successful
Security Scan / security (push) Successful in 7s
Test / test (push) Successful in 2m26s
Replace all fmt.Errorf and errors.New calls in production code
(store.go, scope.go) with structured coreerr.E() from go-log.
Sentinel errors (ErrNotFound, ErrQuotaExceeded) are now *log.Err
values; errors.Is() chains continue to work via Unwrap(). Update
four coverage_test.go assertions to match the new op-prefixed
error format from the All() iterator.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:48:59 +00:00
Snider
75168376ed chore: sync go.mod dependencies
Some checks failed
Security Scan / security (push) Successful in 8s
Test / test (push) Failing after 28s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-15 15:28:59 +00:00
Snider
df5c7a6cad chore: refresh go.sum after upstream tag updates
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-23 06:35:19 +00:00
Claude
2126e8bcaa
chore: sync workspace dependency versions
Run go work sync to align dependency versions across workspace.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:42:03 +00:00
Snider
63c37cb801 fix: add modernc.org/sqlite dependency
Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-19 16:10:16 +00:00