@lmzhen/dsh-evolution-review 0.60.1 → 0.61.1
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 +4 -2
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -1147,7 +1147,8 @@ function apply(ctx, rawConfig = {}) {
|
|
|
1147
1147
|
const reviewStateLocks = sessionState.add("reviewStateLocks", /* @__PURE__ */ new Map());
|
|
1148
1148
|
async function withReviewStateLock(id, task) {
|
|
1149
1149
|
const next = (reviewStateLocks.get(id) ?? Promise.resolve()).catch(() => {}).then(async () => {
|
|
1150
|
-
const
|
|
1150
|
+
const liveAuthority = () => ctx.get("evolutionMutationAuthority");
|
|
1151
|
+
const authority = liveAuthority();
|
|
1151
1152
|
let token;
|
|
1152
1153
|
if (authority !== void 0) {
|
|
1153
1154
|
for (let attempt = 0; attempt < 50; attempt += 1) {
|
|
@@ -1578,7 +1579,8 @@ function apply(ctx, rawConfig = {}) {
|
|
|
1578
1579
|
ctx.logger.warn("dsh-evolution-review: aux review skipped — llm/tools service is not mounted");
|
|
1579
1580
|
return false;
|
|
1580
1581
|
}
|
|
1581
|
-
const
|
|
1582
|
+
const liveAuthority = () => ctx.get("evolutionMutationAuthority");
|
|
1583
|
+
const authority = liveAuthority();
|
|
1582
1584
|
let leaseToken;
|
|
1583
1585
|
if (authority?.lease !== void 0) {
|
|
1584
1586
|
const lease = await authority.lease.acquire("background_review", "review:" + session.id + ":" + kind, Math.max(config.reviewTimeoutMs + 3e4, 6e4)).catch(() => void 0);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-review",
|
|
3
3
|
"description": "Background review orchestration (community build)",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.61.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
32
|
-
"@lmzhen/dsh-evolution-core": "0.
|
|
33
|
-
"@lmzhen/dsh-evolution-platform": "0.
|
|
32
|
+
"@lmzhen/dsh-evolution-core": "0.61.1",
|
|
33
|
+
"@lmzhen/dsh-evolution-platform": "0.61.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
43
43
|
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
44
44
|
"@deepseek-ai/dsh-session": "0.2.2-rc.5",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.61.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"dsh": "0.2.2-rc.5"
|