dsh-param-repair 1.0.2 → 1.0.4

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.
@@ -0,0 +1,250 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1100" height="660" viewBox="0 0 1100 660" role="img" aria-label="dsh-param-repair: two independent faces - the /translate rosetta lookup and the tools/post-execute JSON repair state machine">
2
+ <title>dsh-param-repair structure: parameter rosetta + deterministic JSON repair</title>
3
+ <desc>Lane A: /translate reads the 13-parameter by 11-vendor rosetta table and returns a pair mapping. Lane B: tools/post-execute and fix_json extract a fence, parse, run a bounded strategy loop (escapeRepair, trailingComma, truncationClosure), complete required fields with null, validate against the supported schema subset, then accept a repaired value or call next() and keep the original.</desc>
4
+ <defs>
5
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#f9f6fd"/><stop offset="1" stop-color="#e4eaf8"/></linearGradient>
6
+ <pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="#4b67b4" opacity="0.075"/></pattern>
7
+ <filter id="soft" x="-20%" y="-30%" width="140%" height="170%"><feDropShadow dx="0" dy="3" stdDeviation="6" flood-color="#1b2140" flood-opacity="0.10"/></filter>
8
+ <marker id="arw" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0 L8 4 L0 8 z" fill="#5b6279"/></marker>
9
+ <marker id="arw-g" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0 L8 4 L0 8 z" fill="#16794a"/></marker>
10
+ <marker id="arw-a" viewBox="0 0 8 8" refX="7" refY="4" markerWidth="7" markerHeight="7" orient="auto"><path d="M0 0 L8 4 L0 8 z" fill="#4b67b4"/></marker>
11
+ </defs>
12
+ <rect width="1100" height="660" rx="22" fill="url(#bg)"/>
13
+ <rect width="1100" height="660" rx="22" fill="url(#dots)"/>
14
+ <text x="56" y="56" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="30" font-weight="700">dsh-param-repair</text>
15
+ <text x="56" y="82" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">index.mjs · inject: commands + tools · pure host</text>
16
+ <text x="1044" y="56" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14" text-anchor="end">no network · no model call · no build step</text>
17
+ <line x1="56" y1="100" x2="1044" y2="100" stroke="#d6d3e6" stroke-width="1"/>
18
+ <circle cx="68" cy="122" r="11" fill="#e7eaf7"/>
19
+ <text x="68" y="126" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="13" font-weight="700" text-anchor="middle">A</text>
20
+ <text x="90" y="127" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="0.4">COMMAND FACE · /translate</text>
21
+ <text x="1044" y="127" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14" text-anchor="end">lib/rosetta.mjs · pure lookup</text>
22
+ <rect x="56" y="142" width="254" height="124" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
23
+ <rect x="338" y="142" width="374" height="124" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
24
+ <rect x="738" y="142" width="306" height="124" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
25
+ <path d="M312 204 H330" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
26
+ <path d="M714 204 H732" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
27
+ <text x="74" y="168" fill="#4b67b4" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="15" font-weight="700">/translate</text>
28
+ <text x="74" y="196" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="15">openai ernie max_tokens</text>
29
+ <text x="74" y="222" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">from · to · [param]</text>
30
+ <text x="74" y="246" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">vendors · params</text>
31
+ <text x="358" y="166" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700">rosetta table</text>
32
+ <text x="694" y="166" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="13" text-anchor="end">13 × 11</text>
33
+ <rect x="358" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
34
+ <rect x="365" y="176" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
35
+ <rect x="372" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
36
+ <rect x="379" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
37
+ <rect x="386" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
38
+ <rect x="393" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
39
+ <rect x="400" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
40
+ <rect x="407" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
41
+ <rect x="414" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
42
+ <rect x="421" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
43
+ <rect x="428" y="176" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
44
+ <rect x="358" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
45
+ <rect x="365" y="183" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
46
+ <rect x="372" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
47
+ <rect x="379" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
48
+ <rect x="386" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
49
+ <rect x="393" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
50
+ <rect x="400" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
51
+ <rect x="407" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
52
+ <rect x="414" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
53
+ <rect x="421" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
54
+ <rect x="428" y="183" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
55
+ <rect x="358" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
56
+ <rect x="365" y="190" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
57
+ <rect x="372" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
58
+ <rect x="379" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
59
+ <rect x="386" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
60
+ <rect x="393" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
61
+ <rect x="400" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
62
+ <rect x="407" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
63
+ <rect x="414" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
64
+ <rect x="421" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
65
+ <rect x="428" y="190" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
66
+ <rect x="358" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
67
+ <rect x="365" y="197" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
68
+ <rect x="372" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
69
+ <rect x="379" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
70
+ <rect x="386" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
71
+ <rect x="393" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
72
+ <rect x="400" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
73
+ <rect x="407" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
74
+ <rect x="414" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
75
+ <rect x="421" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
76
+ <rect x="428" y="197" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
77
+ <rect x="358" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
78
+ <rect x="365" y="204" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
79
+ <rect x="372" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
80
+ <rect x="379" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
81
+ <rect x="386" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
82
+ <rect x="393" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
83
+ <rect x="400" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
84
+ <rect x="407" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
85
+ <rect x="414" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
86
+ <rect x="421" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
87
+ <rect x="428" y="204" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
88
+ <rect x="358" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
89
+ <rect x="365" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
90
+ <rect x="372" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
91
+ <rect x="379" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
92
+ <rect x="386" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
93
+ <rect x="393" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
94
+ <rect x="400" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
95
+ <rect x="407" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
96
+ <rect x="414" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
97
+ <rect x="421" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
98
+ <rect x="428" y="211" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
99
+ <rect x="358" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
100
+ <rect x="365" y="218" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
101
+ <rect x="372" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
102
+ <rect x="379" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
103
+ <rect x="386" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
104
+ <rect x="393" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
105
+ <rect x="400" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
106
+ <rect x="407" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
107
+ <rect x="414" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
108
+ <rect x="421" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
109
+ <rect x="428" y="218" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
110
+ <rect x="358" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
111
+ <rect x="365" y="225" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
112
+ <rect x="372" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
113
+ <rect x="379" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
114
+ <rect x="386" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
115
+ <rect x="393" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
116
+ <rect x="400" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
117
+ <rect x="407" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
118
+ <rect x="414" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
119
+ <rect x="421" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
120
+ <rect x="428" y="225" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
121
+ <rect x="358" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
122
+ <rect x="365" y="232" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
123
+ <rect x="372" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
124
+ <rect x="379" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
125
+ <rect x="386" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
126
+ <rect x="393" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
127
+ <rect x="400" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
128
+ <rect x="407" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
129
+ <rect x="414" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
130
+ <rect x="421" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
131
+ <rect x="428" y="232" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
132
+ <rect x="358" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
133
+ <rect x="365" y="239" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
134
+ <rect x="372" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
135
+ <rect x="379" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
136
+ <rect x="386" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
137
+ <rect x="393" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
138
+ <rect x="400" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
139
+ <rect x="407" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
140
+ <rect x="414" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
141
+ <rect x="421" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
142
+ <rect x="428" y="239" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
143
+ <rect x="358" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
144
+ <rect x="365" y="246" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
145
+ <rect x="372" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
146
+ <rect x="379" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
147
+ <rect x="386" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
148
+ <rect x="393" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
149
+ <rect x="400" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
150
+ <rect x="407" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
151
+ <rect x="414" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
152
+ <rect x="421" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
153
+ <rect x="428" y="246" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
154
+ <rect x="358" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
155
+ <rect x="365" y="253" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
156
+ <rect x="372" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
157
+ <rect x="379" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
158
+ <rect x="386" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
159
+ <rect x="393" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
160
+ <rect x="400" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
161
+ <rect x="407" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
162
+ <rect x="414" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
163
+ <rect x="421" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
164
+ <rect x="428" y="253" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
165
+ <rect x="358" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
166
+ <rect x="365" y="260" width="4" height="4" rx="1" fill="#4b67b4" opacity="1"/>
167
+ <rect x="372" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
168
+ <rect x="379" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
169
+ <rect x="386" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
170
+ <rect x="393" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
171
+ <rect x="400" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
172
+ <rect x="407" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
173
+ <rect x="414" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
174
+ <rect x="421" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
175
+ <rect x="428" y="260" width="4" height="4" rx="1" fill="#d6d3e6" opacity="0.9"/>
176
+ <rect x="363" y="209" width="8" height="8" rx="2" fill="none" stroke="#4b67b4" stroke-width="1"/>
177
+ <text x="450" y="198" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">11 vendors →</text>
178
+ <text x="450" y="220" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">13 params ↓</text>
179
+ <text x="450" y="244" fill="#7a8196" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">one cell = one field</text>
180
+ <text x="756" y="168" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700">pair view</text>
181
+ <text x="756" y="194" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">openai (OpenAI) → ernie</text>
182
+ <text x="756" y="220" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="15" font-weight="700">max_tokens</text>
183
+ <text x="756" y="242" fill="#4b67b4" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">→ max_output_tokens</text>
184
+ <text x="56" y="290" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">pure lookup · zero model calls · transformRequest() converts a whole standard request</text>
185
+ <text x="1044" y="290" fill="#7a8196" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" text-anchor="end">no state · no side effects</text>
186
+ <circle cx="68" cy="312" r="11" fill="#e7eaf7"/>
187
+ <text x="68" y="316" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="13" font-weight="700" text-anchor="middle">B</text>
188
+ <text x="90" y="318" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="0.3">TOOL-RESULT FACE · tools/post-execute + fix_json</text>
189
+ <text x="1044" y="318" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14" text-anchor="end">lib/fix.mjs · deterministic</text>
190
+ <rect x="56" y="334" width="218" height="92" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
191
+ <rect x="298" y="334" width="224" height="92" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
192
+ <rect x="546" y="334" width="224" height="92" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
193
+ <rect x="794" y="334" width="250" height="92" rx="18" fill="#fdfcff" stroke="#4b67b4" stroke-width="1" filter="url(#soft)" stroke-dasharray="5 4"/>
194
+ <path d="M274 380 H292" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
195
+ <path d="M522 380 H540" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
196
+ <text x="74" y="356" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="1">INPUT</text>
197
+ <text x="74" y="381" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="17" font-weight="700">success result</text>
198
+ <text x="74" y="402" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">value: string (JSON)</text>
199
+ <text x="74" y="421" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">fix_json: shared core</text>
200
+ <text x="316" y="356" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="1">CLAIM GATE</text>
201
+ <text x="504" y="356" fill="#b26a00" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" text-anchor="end">no → next()</text>
202
+ <text x="316" y="381" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="17" font-weight="700">claims the result?</text>
203
+ <text x="316" y="402" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">post-execute only</text>
204
+ <text x="316" y="421" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">string/json root</text>
205
+ <text x="564" y="356" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="1">PARSE</text>
206
+ <text x="752" y="356" fill="#16794a" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" text-anchor="end">valid → next()</text>
207
+ <text x="564" y="381" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="17" font-weight="700">extract · parse</text>
208
+ <text x="564" y="402" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">looksLikeJsonText()</text>
209
+ <text x="564" y="421" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">fence → parse</text>
210
+ <text x="812" y="356" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="0.8">REGISTRY BOUNDARY</text>
211
+ <text x="812" y="381" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">post-execute sees only</text>
212
+ <text x="812" y="402" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">successful string values</text>
213
+ <text x="812" y="421" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">failures stay failures</text>
214
+ <path d="M658 426 V436 H460 V444" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
215
+ <rect x="56" y="448" width="212" height="118" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
216
+ <rect x="300" y="448" width="320" height="118" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
217
+ <rect x="652" y="448" width="180" height="54" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
218
+ <rect x="652" y="512" width="180" height="54" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
219
+ <rect x="860" y="448" width="184" height="54" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
220
+ <rect x="860" y="512" width="184" height="54" rx="18" fill="#fdfcff" stroke="#d6d3e6" stroke-width="1" filter="url(#soft)"/>
221
+ <text x="74" y="470" fill="#4b67b4" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700" letter-spacing="0.6">AUDIT · SIDE CHANNEL</text>
222
+ <text x="74" y="494" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14" font-weight="700">translate/fix</text>
223
+ <text x="74" y="516" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">tool · call · flags</text>
224
+ <text x="74" y="538" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">counts, never payload</text>
225
+ <text x="74" y="558" fill="#7a8196" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">log-only · cannot block</text>
226
+ <text x="318" y="472" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="17" font-weight="700">repair loop</text>
227
+ <text x="602" y="472" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" text-anchor="end">≤ maxSteps (8)</text>
228
+ <rect x="318" y="486" width="284" height="23" rx="8" fill="#e7eaf7"/>
229
+ <rect x="318" y="513" width="284" height="23" rx="8" fill="#e7eaf7"/>
230
+ <rect x="318" y="540" width="284" height="23" rx="8" fill="#e7eaf7"/>
231
+ <text x="330" y="502" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">escapeRepair</text>
232
+ <text x="330" y="529" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">trailingComma</text>
233
+ <text x="330" y="556" fill="#1b2140" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">truncationClosure</text>
234
+ <text x="670" y="470" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700">fieldCompletion</text>
235
+ <text x="670" y="490" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">required → null</text>
236
+ <text x="670" y="534" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" font-weight="700">schema validate</text>
237
+ <text x="670" y="554" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">subset only</text>
238
+ <text x="878" y="470" fill="#16794a" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="15" font-weight="700">accept</text>
239
+ <text x="878" y="490" fill="#5b6279" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">{ kind, value }</text>
240
+ <text x="878" y="534" fill="#1b2140" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="15" font-weight="700">next()</text>
241
+ <text x="878" y="554" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">original kept</text>
242
+ <path d="M620 507 H636 V475 H648" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
243
+ <path d="M742 502 V508" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
244
+ <path d="M832 539 H844" fill="none" stroke="#5b6279" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
245
+ <path d="M844 539 V475 H856" fill="none" stroke="#16794a" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw-g)"/>
246
+ <path d="M844 539 H856" fill="none" stroke="#16794a" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw-g)"/>
247
+ <line x1="56" y1="600" x2="1044" y2="600" stroke="#d6d3e6" stroke-width="1"/>
248
+ <text x="56" y="626" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14">no invented data · null is a placeholder</text>
249
+ <text x="1044" y="626" fill="#5b6279" font-family="ui-sans-serif,system-ui,-apple-system,'Segoe UI','Noto Sans',sans-serif" font-size="14" text-anchor="end">accept is re-validated · next() keeps the original</text>
250
+ </svg>
@@ -0,0 +1,19 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="360" viewBox="0 0 1200 360" role="img" aria-label="dsh-param-repair workflow">
2
+ <title>dsh-param-repair workflow</title>
3
+ <rect width="1200" height="360" rx="18" fill="#0d1117"/>
4
+ <text x="60" y="58" fill="#f0f6fc" font-family="ui-sans-serif,system-ui,sans-serif" font-size="30" font-weight="700">dsh-param-repair</text>
5
+ <text x="60" y="92" fill="#8b949e" font-family="ui-monospace,monospace" font-size="16">DeepSeek Harness plugin</text>
6
+ <line x1="60" y1="118" x2="1140" y2="118" stroke="#30363d"/>
7
+ <rect x="120" y="150" width="240" height="140" rx="14" fill="#161b22" stroke="#7c3aed" stroke-width="2"/>
8
+ <path d="M240 189v38m0 0l13-13m-13 13L227 214" stroke="#7c3aed" stroke-width="3" fill="none" stroke-linecap="round"/><path d="M217 235h46" stroke="#7c3aed" stroke-width="3"/>
9
+ <circle cx="330" cy="270" r="13" fill="#7c3aed"/><text x="330" y="276" fill="#0d1117" text-anchor="middle" font-family="ui-monospace,monospace" font-size="14" font-weight="700">1</text>
10
+ <path d="M368 220h64" stroke="#7c3aed" stroke-width="3"/><path d="M422 213l10 7-10 7" fill="none" stroke="#7c3aed" stroke-width="3" stroke-linecap="round"/>
11
+ <rect x="480" y="150" width="240" height="140" rx="14" fill="#161b22" stroke="#7c3aed" stroke-width="2"/>
12
+ <rect x="576" y="189" width="48" height="50" rx="7" fill="none" stroke="#7c3aed" stroke-width="3"/><path d="M576 203h48M585 196h4m6 0h4" stroke="#7c3aed" stroke-width="3"/>
13
+ <circle cx="690" cy="270" r="13" fill="#7c3aed"/><text x="690" y="276" fill="#0d1117" text-anchor="middle" font-family="ui-monospace,monospace" font-size="14" font-weight="700">2</text>
14
+ <path d="M728 220h64" stroke="#7c3aed" stroke-width="3"/><path d="M782 213l10 7-10 7" fill="none" stroke="#7c3aed" stroke-width="3" stroke-linecap="round"/>
15
+ <rect x="840" y="150" width="240" height="140" rx="14" fill="#161b22" stroke="#7c3aed" stroke-width="2"/>
16
+ <path d="M947 193l30 32-14 2-8 15z" fill="none" stroke="#7c3aed" stroke-width="3" stroke-linejoin="round"/>
17
+ <circle cx="1050" cy="270" r="13" fill="#7c3aed"/><text x="1050" y="276" fill="#0d1117" text-anchor="middle" font-family="ui-monospace,monospace" font-size="14" font-weight="700">3</text>
18
+ <text x="60" y="332" fill="#8b949e" font-family="ui-monospace,monospace" font-size="14">PerryLink DSH plugin family · Apache-2.0</text>
19
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-param-repair",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Vendor parameter mapping and deterministic JSON repair for DeepSeek Harness: the /translate command maps temperature/top_p/max_tokens/stop/system across 11 vendors, and the tools/post-execute repair layer (plus the fix_json tool) fixes broken JSON tool output with escape repair, trailing-comma removal, truncation closure, and required-field completion — never fabricating data",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,9 +33,10 @@
33
33
  "THIRD_PARTY_NOTICES.md",
34
34
  "README.md",
35
35
  "README.en.md",
36
- "README-es.md",
37
- "README-pt.md",
38
- "README-hi.md",
36
+ "README.es.md",
37
+ "README.pt.md",
38
+ "README.hi.md",
39
+ "docs/assets/*",
39
40
  "LICENSE"
40
41
  ],
41
42
  "dsh": {
@@ -105,28 +106,28 @@
105
106
  ],
106
107
  "engines": {
107
108
  "node": "^22.19.0 || >=24.9.0",
108
- "dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0"
109
+ "dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0"
109
110
  },
110
111
  "packageManager": "pnpm@11.7.0",
111
112
  "peerDependencies": {
112
113
  "@deepseek-ai/cordis": "^4.0.5-alpha.1",
113
- "@deepseek-ai/dsh-commands": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
114
- "@deepseek-ai/dsh-session": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
115
- "@deepseek-ai/dsh-tools": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
114
+ "@deepseek-ai/dsh-commands": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0",
115
+ "@deepseek-ai/dsh-session": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0",
116
+ "@deepseek-ai/dsh-tools": ">=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-0 <0.3.0 || >=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0",
116
117
  "@deepseek-ai/schemastery": "^3.18.5-alpha.1"
117
118
  },
118
119
  "devDependencies": {
119
120
  "@deepseek-ai/cordis": "^4.1.0",
120
121
  "@deepseek-ai/cordis-plugin-include": "^1.1.0",
121
122
  "@deepseek-ai/cordis-plugin-loader": "^1.1.0",
122
- "@deepseek-ai/dsh-commands": "0.2.2-rc.1",
123
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
124
- "@deepseek-ai/dsh-package-manifest": "0.2.2-rc.1",
125
- "@deepseek-ai/dsh-session": "0.2.2-rc.1",
126
- "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
127
- "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
128
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
129
- "@deepseek-ai/dsh-working-directory": "0.2.2-rc.1",
123
+ "@deepseek-ai/dsh-commands": "0.2.2-rc.4",
124
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.4",
125
+ "@deepseek-ai/dsh-package-manifest": "0.2.2-rc.4",
126
+ "@deepseek-ai/dsh-session": "0.2.2-rc.4",
127
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.4",
128
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.4",
129
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.4",
130
+ "@deepseek-ai/dsh-working-directory": "0.2.2-rc.4",
130
131
  "@deepseek-ai/schemastery": "~3.19.0",
131
132
  "@types/node": "^22.19.0",
132
133
  "oxlint": "0.18.1",