Commit graph

5 commits

Author SHA1 Message Date
Virgil
cabb7b1d0e fix(cache): resolve issue 4 findings 2026-03-23 07:35:31 +00:00
Snider
b36729e592 chore(cache): migrate to dappco.re vanity import path
Some checks failed
CI / test (pull_request) Failing after 2s
CI / auto-fix (pull_request) Failing after 0s
CI / auto-merge (pull_request) Failing after 0s
Update module path from forge.lthn.ai/core/go-cache to
dappco.re/go/core/cache. Update dependencies to dappco.re/go/core/io
v0.2.0 and dappco.re/go/core/log v0.1.0. Fix path traversal prefix
collision in Cache.Path() and update package doc comment.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 01:24:52 +00:00
Snider
a8fa63e7f1 fix(cache): replace fmt.Errorf and raw errors with coreerr.E(), standardise go-io import alias
- Add forge.lthn.ai/core/go-log as direct dependency (was indirect)
- Alias go-io import as coreio throughout cache.go and cache_test.go
- Replace all fmt.Errorf calls in Path() with coreerr.E()
- Wrap all raw error returns from stdlib/medium calls with coreerr.E()
- No interface implemented by Cache found; compile-time check skipped

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 18:19:50 +00:00
Snider
32ede3b495 security: prevent path traversal in cache key resolution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:28:55 +00:00
Snider
9f8cb6cd0e feat: extract cache package from core/go pkg/cache
File-based cache with TTL, JSON serialisation, go-io Medium backend.

Moved from forge.lthn.ai/core/go/pkg/cache to standalone module.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 13:03:52 +00:00