dsh-logicprobe 0.6.7 → 0.6.8

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,46 +1,54 @@
1
- /**
2
- * logicprobe — DeepSeek Harness native plugin for the Logic Probe toolbox.
3
- * Injects the session-start gate text (claim-verification doctrine, 1% Rule,
4
- * Red Flags, proactive suggestion) into the first model step of every agent
5
- * session, mirroring the SessionStart hook the Claude Code plugin installs.
6
- * The skill ships in this package's `skills/` directory and is registered at
7
- * apply time into dsh's `ctx.skills` registry through the standard filesystem
8
- * provider, so it appears in every session catalog without a manual copy step.
9
- *
10
- * Injection listens on agent/pre-step and appends the gate to the FIRST
11
- * model step that runs, once per session (guarded by the session's durable
12
- * history). Session-start inbox injection was dropped: a blank-session preset
13
- * switch (agentPreset.select -> recompose) can clear the inbox before the
14
- * first step, losing the gate for the whole session. The pre-step decision is
15
- * the durable path - anchored/bootstrap presets that strip first-step injected
16
- * reminders (skill catalog, AGENTS.md, gate plugins) simply defer this message
17
- * to the first step after their promotion, and the history guard re-injects it
18
- * there. The default gate text is the dsh-native adaptation of
19
- * `hooks/session-start-content.md`: behavior rules
20
- * (1% Rule / Red Flags / proactive suggestion) stay in sync, while
21
- * presentation is adapted to dsh's native skill catalog — the trigger list
22
- * lives in the skill description, not duplicated in the gate. Deployments
23
- * override via Config.
24
- *
25
- * @module logicprobe-dsh
26
- */
27
- import type { Context } from '@deepseek-ai/cordis';
28
- import z from '@deepseek-ai/schemastery';
29
- export declare const name = "logicprobe";
30
- export declare const inject: string[];
31
- export type InteractionMode = 'ask' | 'auto' | 'follow-approval';
32
- export interface Config {
33
- enabled: boolean;
34
- gateContent: string;
35
- interaction: InteractionMode;
36
- }
37
- export declare const Config: z<Schemastery.ObjectS<{
38
- enabled: z<boolean, boolean>;
39
- gateContent: z<string, string>;
40
- interaction: z<"ask" | "auto" | "follow-approval", "ask" | "auto" | "follow-approval">;
41
- }>, Schemastery.ObjectT<{
42
- enabled: z<boolean, boolean>;
43
- gateContent: z<string, string>;
44
- interaction: z<"ask" | "auto" | "follow-approval", "ask" | "auto" | "follow-approval">;
45
- }>>;
46
- export declare function apply(ctx: Context, config: Config): void;
1
+ /**
2
+ * logicprobe — DeepSeek Harness native plugin for the Logic Probe toolbox.
3
+ * Injects the session-start gate text (claim-verification doctrine, 1% Rule,
4
+ * Red Flags, proactive suggestion) into the first model step of every agent
5
+ * session, mirroring the SessionStart hook the Claude Code plugin installs.
6
+ * The skill ships in this package's `skills/` directory and is registered at
7
+ * apply time into dsh's `ctx.skills` registry through the standard filesystem
8
+ * provider, so it appears in every session catalog without a manual copy step.
9
+ *
10
+ * Injection listens on agent/pre-step and appends the gate to the FIRST
11
+ * model step that runs, once per session (guarded by the session's durable
12
+ * history). Session-start inbox injection was dropped: a blank-session preset
13
+ * switch (agentPreset.select -> recompose) can clear the inbox before the
14
+ * first step, losing the gate for the whole session. The pre-step decision is
15
+ * the durable path - anchored/bootstrap presets that strip first-step injected
16
+ * reminders (skill catalog, AGENTS.md, gate plugins) simply defer this message
17
+ * to the first step after their promotion, and the history guard re-injects it
18
+ * there. The default gate text is the dsh-native adaptation of
19
+ * `hooks/session-start-content.md`: behavior rules
20
+ * (1% Rule / Red Flags / proactive suggestion) stay in sync, while
21
+ * presentation is adapted to dsh's native skill catalog — the trigger list
22
+ * lives in the skill description, not duplicated in the gate. Deployments
23
+ * override via Config.
24
+ *
25
+ * @module logicprobe-dsh
26
+ */
27
+ import type { Context } from '@deepseek-ai/cordis';
28
+ import z from '@deepseek-ai/schemastery';
29
+ import type { ContextFormed } from '@deepseek-ai/dsh-llm';
30
+ declare module '@deepseek-ai/dsh-llm' {
31
+ interface MessageSourceMap {
32
+ 'plugin:logicprobe': {
33
+ kind: 'plugin:logicprobe';
34
+ } & ContextFormed;
35
+ }
36
+ }
37
+ export declare const name = "logicprobe";
38
+ export declare const inject: string[];
39
+ export type InteractionMode = 'ask' | 'auto' | 'follow-approval';
40
+ export interface Config {
41
+ enabled: boolean;
42
+ gateContent: string;
43
+ interaction: InteractionMode;
44
+ }
45
+ export declare const Config: z<Schemastery.ObjectS<{
46
+ enabled: z<boolean, boolean>;
47
+ gateContent: z<string, string>;
48
+ interaction: z<"ask" | "auto" | "follow-approval", "ask" | "auto" | "follow-approval">;
49
+ }>, Schemastery.ObjectT<{
50
+ enabled: z<boolean, boolean>;
51
+ gateContent: z<string, string>;
52
+ interaction: z<"ask" | "auto" | "follow-approval", "ask" | "auto" | "follow-approval">;
53
+ }>>;
54
+ export declare function apply(ctx: Context, config: Config): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-logicprobe",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Design document & plan claim verification — enumerate claims, verify against codebase facts, then escalate to state-machine verification (S1-S8/A1-A12, including budget/worst-case path-cost checks) and data-model verification (DS/DA/DD) for behavioral claims. Supports before/after regression, idempotency/monotonic/sequence/leads-to/atomicity constraints, and concurrency risk mining. Ships a native DeepSeek Harness (dsh) bundle that injects the claim-verification gate into the first model step.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -29,7 +29,7 @@
29
29
  "patch": "./cordis.patch.yml"
30
30
  },
31
31
  "compatibility": {
32
- "dsh": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.2-alpha.3 || ^0.1.2-alpha.4 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.3-alpha.1 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.1.5-rc.1 || ^0.1.5-alpha.2 || ^0.1.5-rc.2 || ^0.1.6-alpha.1 || ^0.1.6-alpha.2",
32
+ "dsh": "^0.1.0-rc.7 || ^0.1.1-rc.1 || ^0.1.2-alpha.2 || ^0.1.2-alpha.3 || ^0.1.2-alpha.4 || ^0.1.2-alpha.5 || ^0.1.2-rc.1 || ^0.1.3-alpha.1 || ^0.1.3-alpha.2 || ^0.1.5-alpha.1 || ^0.1.5-rc.1 || ^0.1.5-alpha.2 || ^0.1.5-rc.2 || ^0.1.6-alpha.1 || ^0.1.6-alpha.2 || ^0.1.7-alpha.1",
33
33
  "dshReleases": {
34
34
  "0.1.0-rc.7": "compatible",
35
35
  "0.1.0-rc.8": "compatible",
@@ -47,7 +47,8 @@
47
47
  "0.1.5-rc.1": "compatible",
48
48
  "0.1.5-rc.2": "compatible",
49
49
  "0.1.6-alpha.1": "compatible",
50
- "0.1.6-alpha.2": "compatible"
50
+ "0.1.6-alpha.2": "compatible",
51
+ "0.1.7-alpha.1": "compatible"
51
52
  },
52
53
  "profiles": [
53
54
  "headless"
@@ -85,7 +86,7 @@
85
86
  "@deepseek-ai/dsh-timeout": "^0.1.0-rc.6",
86
87
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
87
88
  "@deepseek-ai/schemastery": "^3.18.2",
88
- "@types/node": "^26.5.0",
89
+ "@types/node": "^26.5.1",
89
90
  "typescript": "^7.0.2"
90
91
  },
91
92
  "author": {