@lmzhen/dsh-evolution-maintenance 0.18.0 → 0.18.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/tools.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { a as snapshotFromLibrary, i as enrichmentSnapshotOptions, n as computeProbe, r as buildEnrichment, t as PROBE_SIGNALS } from "./probe-Bojb0piw.js";
2
- import { assertSkillsRootAliasRetired, newSkillLibrary, redactSecrets, resolveRootConfig } from "@lmzhen/dsh-evolution-core";
2
+ import { DEFAULT_PROBE_TIMEOUT_MS, MAX_TIMER_DELAY_MS, assertSkillsRootAliasRetired, clampedNumber, newSkillLibrary, redactSecrets, resolveRootConfig } from "@lmzhen/dsh-evolution-core";
3
3
  import z from "@deepseek-ai/schemastery";
4
4
  import { defineTool } from "@deepseek-ai/dsh-tools";
5
5
  //#region lib/types/tools.js
@@ -16,15 +16,18 @@ import { defineTool } from "@deepseek-ai/dsh-tools";
16
16
  const name = "evolution-maintenance-tools";
17
17
  const Config = z.object({
18
18
  root: z.string().default(""),
19
- skillsRoot: z.string().default("")
19
+ skillsRoot: z.string().default(""),
20
+ probeTimeoutMs: z.number().min(1).max(MAX_TIMER_DELAY_MS).default(DEFAULT_PROBE_TIMEOUT_MS)
20
21
  });
21
22
  function apply(ctx, rawConfig = {}) {
22
23
  assertSkillsRootAliasRetired(rawConfig);
23
24
  const rootConfig = resolveRootConfig(rawConfig);
25
+ const probeTimeoutMs = clampedNumber(rawConfig.probeTimeoutMs, DEFAULT_PROBE_TIMEOUT_MS, { min: 1 });
24
26
  ctx.inject(["tools"], (toolCtx) => {
25
27
  const tools = toolCtx.get("tools");
26
28
  toolCtx.effect(() => tools.register(defineTool({
27
29
  name: "maintenance_probe",
30
+ timeoutMs: probeTimeoutMs,
28
31
  description: "Read-only deep-dive into maintenance scan signals: library-level group/cluster membership or per-skill detail (line numbers, pointer gaps, narrow shapes, stamp samples). Machine-derived from the same calculators as the facts block — never introduces new evidence ids. Output is JSON detail.",
29
32
  parameters: {
30
33
  signal: {
@@ -18,13 +18,19 @@ export interface Config {
18
18
  /** V27 G2.4 (M-08): RETIRED alias of `root`. Declared so the loader passes it
19
19
  * to the load-time gate (which rejects it loudly) instead of dropping it. */
20
20
  skillsRoot?: string | undefined;
21
+ /** Model-facing budget of one probe call (ms). A hang guard: see
22
+ * `DEFAULT_PROBE_TIMEOUT_MS` for the measurement behind the default and for
23
+ * the conditions that would reopen it. */
24
+ probeTimeoutMs?: number | undefined;
21
25
  }
22
26
  export declare const Config: z<Schemastery.ObjectS<NoInfer<{
23
27
  root: z<string, string, "defined">;
24
28
  skillsRoot: z<string, string, "defined">;
29
+ probeTimeoutMs: z<number, number, "defined">;
25
30
  }>>, Schemastery.ObjectT<NoInfer<{
26
31
  root: z<string, string, "defined">;
27
32
  skillsRoot: z<string, string, "defined">;
33
+ probeTimeoutMs: z<number, number, "defined">;
28
34
  }>>, "plain">;
29
35
  export declare function apply(ctx: Context, rawConfig?: Config): void;
30
36
  //# sourceMappingURL=tools.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-maintenance",
3
3
  "description": "Deterministic maintenance-scan surface: skill-library snapshot assembly, drift signals and mechanical-facts rendering (design 011) (community build)",
4
- "version": "0.18.0",
4
+ "version": "0.18.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,7 +31,7 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.4",
34
- "@lmzhen/dsh-evolution-core": "^0.18.0"
34
+ "@lmzhen/dsh-evolution-core": "^0.18.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@deepseek-ai/dsh-agent": "^0.2.0-rc.1",