Commit 8d59fb0
StackMemory Bot (CLI)
fix(sync): resolve correct DB path + ensure sync tables before force push
- getDbPath() now checks context.db first (where CLI/MCP write frames)
- ensureSyncTables() called at start of push/pull (not just in helpers)
- Fixes crash on `push --force` when cloud_sync_state table doesn't exist
- Skip missing tables (trace_events, entity_states) gracefully
- Removed stale PROVENANT_API_KEY from .env (env var precedence bug)
- Successfully synced 651 entities to Provenant cloud1 parent 1db4de1 commit 8d59fb0
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| |||
0 commit comments