@lmzhen/dsh-evolution-state 0.3.17 → 0.3.19
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/lib/index.js +5 -0
- package/lib/types/index.d.ts +3 -0
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -32,6 +32,11 @@ var EvolutionState = class extends Service {
|
|
|
32
32
|
saveCuratorState(record) {
|
|
33
33
|
return this.storage().saveCuratorState(record);
|
|
34
34
|
}
|
|
35
|
+
/** Atomic read-modify-write the curator-state record (S5.5). See the
|
|
36
|
+
* storage seam contract for the task / delete semantics. */
|
|
37
|
+
transactCuratorState(task) {
|
|
38
|
+
return this.storage().transactCuratorState(task);
|
|
39
|
+
}
|
|
35
40
|
listPending(status = "pending") {
|
|
36
41
|
return this.storage().listPending(status);
|
|
37
42
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ export declare class EvolutionState extends Service {
|
|
|
29
29
|
saveReviewState(sessionId: string, record: ReviewStateRecord): Promise<void>;
|
|
30
30
|
loadCuratorState(): Promise<CuratorStateRecord | null>;
|
|
31
31
|
saveCuratorState(record: CuratorStateRecord): Promise<void>;
|
|
32
|
+
/** Atomic read-modify-write the curator-state record (S5.5). See the
|
|
33
|
+
* storage seam contract for the task / delete semantics. */
|
|
34
|
+
transactCuratorState(task: (current: CuratorStateRecord | null) => CuratorStateRecord | null): Promise<void>;
|
|
32
35
|
listPending(status?: PendingStatus): Promise<PendingRecord[]>;
|
|
33
36
|
savePending(record: PendingRecord): Promise<void>;
|
|
34
37
|
tryResolvePending(id: string, status: 'approved' | 'rejected'): Promise<import("@deepseek-ai/dsh-evolution-state-storage").PendingResolution>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-state",
|
|
3
3
|
"description": "Durable evolution state consumer over pluggable storage providers (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.19",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
39
39
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
40
40
|
"@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2",
|
|
41
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
42
|
-
"@lmzhen/dsh-evolution-state-domain": "^0.3.
|
|
41
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.19",
|
|
42
|
+
"@lmzhen/dsh-evolution-state-domain": "^0.3.19"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
46
46
|
"@deepseek-ai/dsh-storage-domain": "^0.1.1-rc.2",
|
|
47
|
-
"@lmzhen/dsh-evolution-state-storage": "^0.3.
|
|
48
|
-
"@lmzhen/dsh-evolution-state-domain": "^0.3.
|
|
49
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
50
|
-
"@lmzhen/dsh-evolution-io-node": "^0.3.
|
|
51
|
-
"@lmzhen/dsh-evolution-state-json": "^0.3.
|
|
47
|
+
"@lmzhen/dsh-evolution-state-storage": "^0.3.19",
|
|
48
|
+
"@lmzhen/dsh-evolution-state-domain": "^0.3.19",
|
|
49
|
+
"@lmzhen/dsh-evolution-io": "^0.3.19",
|
|
50
|
+
"@lmzhen/dsh-evolution-io-node": "^0.3.19",
|
|
51
|
+
"@lmzhen/dsh-evolution-state-json": "^0.3.19"
|
|
52
52
|
}
|
|
53
53
|
}
|