Levi Neely
24e4209a95
store: refactor to storeConfig architecture
...
- Replace FlatDir type with storeConfig (unexported) + NewFlatDir returning Store
- Refactor SkillStore to skillState + storeConfig, NewSkillStore returns Store
- SessionStore/BatchStore embed *storeConfig for Store interface methods
- Add Runnable interface (RunnableID, Cancel, Interrupt, AppendLog, LogInfo)
- Session and batchJob satisfy Runnable
- Add Terminator-style Shutdown/InterruptAll on SessionStore and BatchStore
- NewSession constructor replaces exported field access
- Rename AppendChat->AppendLog, ChatInfo->LogInfo on Session
2026-04-21 18:23:18 +02:00
Levi Neely
500f7fe96b
store: move Session, SessionStore, SessionFileStore to core
...
Session holds chat buffer + agent.Core + context.
SessionStore takes SessionStoreConfig with OnRename callback for
protocol-level fixups. SessionFileStore unchanged (already used callbacks).
Also adds FormatParams, ParseParams, SessionStoreFileMode, ChatInfo.
2026-04-21 16:37:34 +02:00
Levi Neely
72e4019493
store: move BatchStore, LoadAgentConfig, FormatEvent to core
...
BatchStore takes BatchStoreConfig instead of *Server, breaking the
9p coupling. LoadAgentConfig and FormatEvent are now exported from
pkg/store.
2026-04-21 16:29:31 +02:00
Levi Neely
0511f7c8b5
store: move SkillStore to core
2026-04-21 16:22:05 +02:00
Levi Neely
3c3e9cf917
store: add SyntheticFileInfo, SyntheticEntry, FileEntry, DirEntry
2026-04-21 16:14:34 +02:00
Levi Neely
fb96721f2e
store: new pkg/store with interfaces and FlatDir
...
Move ReadableStore, WritableStore, ReadWriteStore, BlobStore, Store
interfaces and FlatDir (née FlatDirStore) implementation from 9p into
core so the agent runtime and other consumers can use them directly.
2026-04-21 16:10:13 +02:00