@lmzhen/dsh-evolution-commands 0.3.9 → 0.3.10
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 +1 -1
- package/lib/types/index.d.ts +4 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -189,7 +189,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
189
189
|
}
|
|
190
190
|
const maintainArgs = /^maintain(?: --timeout (\d+))?\s*$/.exec(input);
|
|
191
191
|
if (maintainArgs) {
|
|
192
|
-
const runTimeoutMs = maintainArgs[1] ? Number(maintainArgs[1]) : config.maintainTimeoutMs ??
|
|
192
|
+
const runTimeoutMs = maintainArgs[1] ? Number(maintainArgs[1]) : config.maintainTimeoutMs ?? 6e5;
|
|
193
193
|
if (!Number.isSafeInteger(runTimeoutMs) || runTimeoutMs <= 0) return err("Invalid --timeout value: expected a positive integer number of milliseconds (e.g. /evolution maintain --timeout 600000).");
|
|
194
194
|
const cooldownMs = config.maintainCooldownMs ?? 3e4;
|
|
195
195
|
const sinceLast = Date.now() - lastMaintainAt;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -15,8 +15,10 @@ export interface Config {
|
|
|
15
15
|
* in-flight runs, so the old 130s ">= timeout" rationale was a comment bug.
|
|
16
16
|
* Transient (per-process). */
|
|
17
17
|
maintainCooldownMs?: number | undefined;
|
|
18
|
-
/** Subagent deadline for one maintenance scan (ms). Default
|
|
19
|
-
*
|
|
18
|
+
/** Subagent deadline for one maintenance scan (ms). Default 600s (0.3.10):
|
|
19
|
+
* the real library's full audit (bodies + support files + judgment) needs
|
|
20
|
+
* 4-8 min — the 13:38 successful run used --timeout 600000; the old 120s
|
|
21
|
+
* default deadlined bare runs mid-analysis (14:37 run aborted at 119.94s). */
|
|
20
22
|
maintainTimeoutMs?: number | undefined;
|
|
21
23
|
}
|
|
22
24
|
export declare function apply(ctx: Context, rawConfig?: Config): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-commands",
|
|
3
3
|
"description": "Human commands for the evolution family (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.10",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
36
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
37
|
-
"@lmzhen/dsh-evolution-maintenance": "^0.3.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.3.10",
|
|
37
|
+
"@lmzhen/dsh-evolution-maintenance": "^0.3.10"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.1",
|