@try-works/dsh-memory 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@try-works/dsh-memory",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Git-backed, workspace-scoped memory for the DeepSeek Harness (global layer + per-workspace layers)",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/store.js CHANGED
@@ -7,7 +7,7 @@ import { GLOBAL_LAYERED, LAYER_DIRS, LAYERED } from './entry.js'
7
7
  import { sanitizeKey, deriveWorkspaceKey } from './workspace-key.js'
8
8
  import { workingPreamble } from './working.js'
9
9
 
10
- export const LAYER_FILES = ['INDEX.md', 'semantic.md', 'episodic.md', 'procedural.md', 'working.md', 'learnings.md', 'junk.md', 'codebase.md', 'history.md', 'decisions.md', 'state.md']
10
+ export const LAYER_FILES = ['INDEX.md', 'semantic.md', 'episodic.md', 'procedural.md', 'working.md', 'learnings.md', 'junk.md', 'codebase.md', 'history.md', 'decisions.md', 'assets.md', 'state.md']
11
11
 
12
12
  /** Working memory is the current-state head of ONE repo/workspace, never of the
13
13
  * whole store: a global working.md would mix unrelated repositories together. */
package/src/system-doc.js CHANGED
@@ -14,7 +14,7 @@ import { fileURLToPath } from 'node:url'
14
14
  import { LAYER_CODES, LAYER_DIRS, LAYERED, VOLATILITY_DAYS, WORKSPACE_ONLY_LAYERS } from './entry.js'
15
15
 
16
16
  /** Bumped whenever the described behaviour changes, so a stale on-disk copy is detectable. */
17
- export const SYSTEM_DOC_VERSION = 2
17
+ export const SYSTEM_DOC_VERSION = 3
18
18
 
19
19
  /** The template ships beside this module; resolve it relative to the module, not the cwd. */
20
20
  export function templatePath() {
@@ -83,6 +83,7 @@ const LAYER_PURPOSE = {
83
83
  codebase: 'What a module, file or subsystem of THIS repository does. Workspace only.',
84
84
  history: 'How the repository changed: one entry per commit, grouped by day. Workspace only.',
85
85
  decision: 'A settled choice and why it won: dependencies, conventions, architecture. Available in both scopes.',
86
+ asset: 'A stored file - a document, an image or a data file - documented with what it is and when to read it. The bytes live under assets/objects and are fetched with memory_asset_get; the contents are never indexed.',
86
87
  }
87
88
 
88
89
  /**