Skip to content

refactor(state): json file backend directory tree#9

Merged
himewel merged 6 commits into
mainfrom
refactor/json-file-backend-dir-tree
May 17, 2026
Merged

refactor(state): json file backend directory tree#9
himewel merged 6 commits into
mainfrom
refactor/json-file-backend-dir-tree

Conversation

@himewel
Copy link
Copy Markdown
Owner

@himewel himewel commented May 17, 2026

No description provided.

himewel and others added 5 commits May 17, 2026 19:31
Replace the single flat JSON file per session with a subdirectory layout:

    {root}/{session_id}/
      meta.json
      items/{file_name}.json
      batches/{batch_key}.json

Each item and batch now lives in its own file, making concurrent writes
to different items safe by construction.  Every file is still published
atomically via a temp file and os.replace.

Legacy flat-file sessions ({session_id}.json) are detected and loaded
transparently so existing state is not lost on upgrade.

Co-authored-by: Cursor <[email protected]>
Update all references to JsonFileBackend and Q2GOOGLE_STATE_DIR to
describe the new per-session subdirectory layout (meta.json, items/,
batches/) instead of the old single flat-file format.

Also enable the pymdownx.emoji extension in mkdocs.yml.

Co-authored-by: Cursor <[email protected]>
The yaml literal block scalar passed a leading newline and indentation
to the action's parser, causing an unexpected token error at 1:14.

Co-authored-by: Cursor <[email protected]>
@himewel himewel changed the title Refactor/json file backend dir tree refactor(state): json file backend directory tree May 17, 2026
@himewel himewel merged commit 871b298 into main May 17, 2026
5 checks passed
@himewel himewel deleted the refactor/json-file-backend-dir-tree branch May 17, 2026 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant