Skip to main content

storage

Change the snapshot store, SnapshotQuery, index rebuild, or on-disk layout. Use when save/load, paging, corrupt files, or FileSnapshotStore behaviour is involved.

설치로 이동

소스 정보

저장소
hoangsonww/Diffuse-Native-Apps
최근 소스 활동
2026년 8월 20일 04:16
감지된 SKILL.md 언어
영어
스타
2
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
storage
description
Change the snapshot store, SnapshotQuery, index rebuild, or on-disk layout. Use when save/load, paging, corrupt files, or FileSnapshotStore behaviour is involved.
# Storage JSON files plus a rebuildable `index.json`. No database. Core code depends on the `SnapshotStore` protocol so tests can use `InMemorySnapshotStore`. - Snapshots are immutable after save. Only annotations (`label`, `note`, `isPinned`, `tags`) mutate. - `SnapshotQuery.apply` is the single filter implementation; stores must not reimplement filtering. - Duplicate saves throw `StorageError.alreadyExists`. Missing deletes throw `.notFound`. - Corrupt snapshot files are skipped on `rebuildIndex`, not fatal to the library. - Writes are atomic (temp file + replace). Read `Documentation/Storage.md`. Tests: `Tests/Domain/SnapshotServiceAndStoreTests.swift`, Storage package suite.
GitHub에서 보기