@lmzhen/dsh-evolution-state-storage 0.3.20 → 0.3.22

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.
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * Provider seam for durable evolution state.
3
3
  *
4
- * The state CONSUMER (`@deepseek-ai/dsh-evolution-state`) never touches a
4
+ * The state CONSUMER (`@lmzhen/dsh-evolution-state`) never touches a
5
5
  * medium. Providers register here: `domain` (storage-domain KV) and `json`
6
6
  * (IO-seam files) are the two shipped providers.
7
- * @module @deepseek-ai/dsh-evolution-state-storage
7
+ * @module @lmzhen/dsh-evolution-state-storage
8
8
  */
9
9
  import { Context, Service } from '@deepseek-ai/cordis';
10
10
  /** 0.3.17 (S3.5, D-4): 'skill_batch' removed — nothing ever created one
@@ -76,9 +76,11 @@ export interface EvolutionStateStorage {
76
76
  /**
77
77
  * Atomically read-modify-write the curator-state record (S5.5): `task`
78
78
  * receives the current record (or null when none exists) and returns the
79
- * next record (or null to delete). The whole read → transform → write runs
80
- * inside one provider transact, so a setPaused racing the run-core
81
- * bookkeeping write can never interleave a stale load with a newer save.
79
+ * next record; returning null keeps the current record unchanged (the
80
+ * domain update primitive cannot delete, and json aligns with it). The
81
+ * whole read transform write runs inside one provider transact, so a
82
+ * setPaused racing the run-core bookkeeping write can never interleave a
83
+ * stale load with a newer save.
82
84
  */
83
85
  transactCuratorState(task: (current: CuratorStateRecord | null) => CuratorStateRecord | null): Promise<void>;
84
86
  listPending(status?: PendingStatus): Promise<PendingRecord[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-state-storage",
3
3
  "description": "Provider registry seam for durable evolution state (community build)",
4
- "version": "0.3.20",
4
+ "version": "0.3.22",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -25,10 +25,8 @@
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "files": [
28
- "lib/index.js",
29
- "lib/invariant.js",
30
- "lib/types/**/*.d.ts",
31
- "lib/types/invariant.d.ts"
28
+ "lib/*.js",
29
+ "lib/types/**/*.d.ts"
32
30
  ],
33
31
  "license": "MIT",
34
32
  "dependencies": {},