dsh-param-repair 1.0.3 → 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.
- package/CHANGELOG.md +4 -0
- package/README.en.md +27 -17
- package/README.es.md +29 -19
- package/README.hi.md +29 -19
- package/README.md +27 -17
- package/README.pt.md +29 -19
- package/docs/assets/dsh-param-repair-demo.gif +0 -0
- package/docs/assets/dsh-param-repair-demo.png +0 -0
- package/docs/assets/dsh-param-repair-flow-dark.svg +34 -0
- package/docs/assets/dsh-param-repair-flow-light.svg +34 -0
- package/docs/assets/dsh-param-repair-flow-v5-dark.svg +250 -0
- package/docs/assets/dsh-param-repair-flow-v5-light.svg +250 -0
- package/docs/assets/dsh-param-repair-flow.svg +19 -0
- package/docs/assets/dsh-param-repair-hero-en-dark.webp +0 -0
- package/docs/assets/dsh-param-repair-hero-en-light.webp +0 -0
- package/docs/assets/dsh-param-repair-hero-zh-dark.webp +0 -0
- package/docs/assets/dsh-param-repair-hero-zh-light.webp +0 -0
- package/docs/assets/dsh-param-repair-hero.png +0 -0
- package/package.json +6 -5
package/README.pt.md
CHANGED
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
**Faça a mesma requisição funcionar em todos os provedores: o JSON quebrado é corrigido na hora, nunca inventando dados.**
|
|
11
11
|
|
|
12
|
-
Um plugin puramente host-side para o DeepSeek Harness: o
|
|
12
|
+
Um plugin puramente host-side para o DeepSeek Harness: o, `/translate` mapeia 13 parâmetros canônicos em 11 provedores, e a camada de reparo de `tools/post-execute` mais a ferramenta `fix_json` reparam de forma determinística o JSON quebrado dos resultados bem-sucedidos até ele passar na validação de schema.
|
|
13
|
+
|
|
14
|
+
Última verificação: DeepSeek Harness `dsh-v0.2.3-alpha.1` (2026-11-22).
|
|
13
15
|
|
|
14
16
|
[Instalar](#instalação-em-três-passos) · [Configuração](#configuração) · [FAQ](#faq) · [简体中文](README.md) · [English](README.en.md) · [Español](README.es.md) · [Português](README.pt.md) · [हिन्दी](README.hi.md)
|
|
15
17
|
|
|
@@ -45,6 +47,10 @@ O "translate" do nome é uma tabela de correspondência de parâmetros, não tra
|
|
|
45
47
|
<img src="docs/assets/dsh-param-repair-flow-v5-light.svg" width="100%" alt="Estrutura do dsh-param-repair: acima, a face de comando /translate lê a tabela 13 × 11 e devolve um mapeamento; abaixo, a máquina de estados de reparo de tools/post-execute e fix_json — porta de reivindicação, extração e análise, laço de estratégias ≤ maxSteps, preenchimento null de campos obrigatórios, validação do subconjunto de schema e, ao final, accept ou next() mantendo o original">
|
|
46
48
|
</picture>
|
|
47
49
|
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
*Repetição animada de uma execução real registrada neste repositório.*
|
|
53
|
+
|
|
48
54
|
## Instalação em três passos
|
|
49
55
|
|
|
50
56
|
1. **Instalar** (escolha uma via):
|
|
@@ -328,18 +334,28 @@ Este projeto faz parte da família de plugins do DeepSeek Harness mantida pela [
|
|
|
328
334
|
| **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
|
|
329
335
|
| **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
|
|
330
336
|
| **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
|
|
331
|
-
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | 🧊 CONGELADO — ver o README do
|
|
337
|
+
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | 🧊 CONGELADO — ver o README do repositório |
|
|
338
|
+
| **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 RETIRADO — ver o README do repositório |
|
|
332
339
|
| **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
|
|
333
340
|
| **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
|
|
334
|
-
| **[dsh-
|
|
341
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 CONGELADO — ver o README do repositório |
|
|
342
|
+
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | 🧊 CONGELADO — ver o README do repositório |
|
|
343
|
+
| **[dsh-check-pack](https://github.com/PerryLink/dsh-check-pack)** | |
|
|
335
344
|
| **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
|
|
345
|
+
| **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 CONGELADO — ver o README do repositório |
|
|
336
346
|
| **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
|
|
347
|
+
| **[dsh-clinic](https://github.com/PerryLink/dsh-clinic)** | |
|
|
348
|
+
| **[dsh-codemod](https://github.com/PerryLink/dsh-codemod)** | |
|
|
349
|
+
| **[dsh-community-bench](https://github.com/PerryLink/dsh-community-bench)** | 🧊 CONGELADO — ver o README do repositório |
|
|
337
350
|
| **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
|
|
338
351
|
| **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
|
|
339
352
|
| **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
|
|
340
353
|
| **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | 🧊 CONGELADO — ver o README do repo |
|
|
354
|
+
| **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 CONGELADO — ver o README do repositório |
|
|
341
355
|
| **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
|
|
356
|
+
| **[dsh-dida](https://github.com/PerryLink/dsh-dida)** | |
|
|
342
357
|
| **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
|
|
358
|
+
| **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 CONGELADO — ver o README do repositório |
|
|
343
359
|
| **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
|
|
344
360
|
| **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
|
|
345
361
|
| **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
|
|
@@ -350,7 +366,7 @@ Este projeto faz parte da família de plugins do DeepSeek Harness mantida pela [
|
|
|
350
366
|
| **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
|
|
351
367
|
| **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
|
|
352
368
|
| **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
|
|
353
|
-
| **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
|
|
369
|
+
| **[dsh-github-bot](https://github.com/PerryLink/dsh-github-bot)** | |
|
|
354
370
|
| **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
|
|
355
371
|
| **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
|
|
356
372
|
| **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
|
|
@@ -378,48 +394,42 @@ Este projeto faz parte da família de plugins do DeepSeek Harness mantida pela [
|
|
|
378
394
|
| **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
|
|
379
395
|
| **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
|
|
380
396
|
| **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
|
|
397
|
+
| **[dsh-param-repair](https://github.com/PerryLink/dsh-param-repair)** | |
|
|
381
398
|
| **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
|
|
382
399
|
| **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
|
|
400
|
+
| **[dsh-phocinae](https://github.com/PerryLink/dsh-phocinae)** | |
|
|
401
|
+
| **[dsh-phone-inbox](https://github.com/PerryLink/dsh-phone-inbox)** | |
|
|
383
402
|
| **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
|
|
384
403
|
| **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
|
|
385
|
-
| **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | 🚫 APOSENTADO (repo arquivado) |
|
|
386
|
-
| **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
|
|
387
|
-
| **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | 🚫 APOSENTADO (repo arquivado) |
|
|
388
|
-
| **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | 🚫 APOSENTADO (repo arquivado) |
|
|
389
404
|
| **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
|
|
390
405
|
| **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
|
|
391
406
|
| **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
|
|
392
407
|
| **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
|
|
408
|
+
| **[dsh-primer](https://github.com/PerryLink/dsh-primer)** | |
|
|
393
409
|
| **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
|
|
394
410
|
| **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
|
|
411
|
+
| **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 CONGELADO — ver o README do repositório |
|
|
395
412
|
| **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
|
|
396
413
|
| **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
|
|
397
414
|
| **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
|
|
398
415
|
| **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
|
|
399
416
|
| **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
|
|
417
|
+
| **[dsh-scaffold](https://github.com/PerryLink/dsh-scaffold)** | |
|
|
400
418
|
| **[dsh-score](https://github.com/PerryLink/dsh-score)** | 🧊 CONGELADO — ver o README do repo |
|
|
419
|
+
| **[dsh-security-pack](https://github.com/PerryLink/dsh-security-pack)** | |
|
|
420
|
+
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRADO — ver o README do repositório |
|
|
401
421
|
| **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
|
|
402
422
|
| **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
|
|
403
|
-
| **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
|
|
404
423
|
| **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
|
|
405
424
|
| **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
|
|
406
425
|
| **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
|
|
407
426
|
| **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
|
|
408
427
|
| **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
|
|
428
|
+
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRADO — ver o README do repositório |
|
|
409
429
|
| **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
|
|
410
430
|
| **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
|
|
411
431
|
| **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
|
|
412
|
-
| **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | 🚫 APOSENTADO (repo arquivado) |
|
|
413
|
-
| **[dsh-param-repair](https://github.com/PerryLink/dsh-param-repair)** | |
|
|
414
432
|
| **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
|
|
415
|
-
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | |
|
|
416
|
-
| **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | |
|
|
417
|
-
| **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | |
|
|
418
|
-
| **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 CONGELADO — ver o README do repo |
|
|
419
|
-
| **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | |
|
|
420
|
-
| **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 APOSENTADO (repo arquivado) |
|
|
421
|
-
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 APOSENTADO (repo arquivado) |
|
|
422
|
-
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 APOSENTADO (repo arquivado) |
|
|
423
433
|
|
|
424
434
|
</details>
|
|
425
435
|
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="430" viewBox="0 0 1200 430" role="img" aria-label="dsh-param-repair data flow">
|
|
2
|
+
<title>dsh-param-repair data flow</title>
|
|
3
|
+
<rect width="1200" height="430" 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">tools/post-execute · /translate · fix_json</text>
|
|
6
|
+
<line x1="60" y1="118" x2="1140" y2="118" stroke="#30363d"/>
|
|
7
|
+
<text x="70" y="150" fill="#8b949e" font-family="ui-monospace,monospace" font-size="13">tools/post-execute</text>
|
|
8
|
+
<rect x="70" y="168" width="190" height="100" rx="14" fill="#161b22" stroke="#30363d" stroke-width="2"/>
|
|
9
|
+
<text x="165" y="210" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">tool result</text>
|
|
10
|
+
<text x="165" y="238" fill="#8b949e" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">JSON text · success</text>
|
|
11
|
+
<path d="M264 218h18" stroke="#8b949e" stroke-width="3"/>
|
|
12
|
+
<path d="M280 211l10 7-10 7" fill="none" stroke="#8b949e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
<rect x="288" y="168" width="190" height="100" rx="14" fill="#161b22" stroke="#4B67B4" stroke-width="2"/>
|
|
14
|
+
<text x="383" y="210" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">extract fence</text>
|
|
15
|
+
<text x="383" y="238" fill="#8b949e" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">parse</text>
|
|
16
|
+
<path d="M482 218h18" stroke="#8b949e" stroke-width="3"/>
|
|
17
|
+
<path d="M498 211l10 7-10 7" fill="none" stroke="#8b949e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<rect x="506" y="168" width="190" height="100" rx="14" fill="#161b22" stroke="#4B67B4" stroke-width="2"/>
|
|
19
|
+
<text x="601" y="210" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">repair loop</text>
|
|
20
|
+
<text x="601" y="238" fill="#8b949e" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">4 strategies</text>
|
|
21
|
+
<path d="M700 218h18" stroke="#8b949e" stroke-width="3"/>
|
|
22
|
+
<path d="M716 211l10 7-10 7" fill="none" stroke="#8b949e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
23
|
+
<rect x="724" y="168" width="190" height="100" rx="14" fill="#161b22" stroke="#30363d" stroke-width="2"/>
|
|
24
|
+
<text x="819" y="210" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">schema validate</text>
|
|
25
|
+
<text x="819" y="238" fill="#8b949e" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">supported subset</text>
|
|
26
|
+
<path d="M918 218h18" stroke="#8b949e" stroke-width="3"/>
|
|
27
|
+
<path d="M934 211l10 7-10 7" fill="none" stroke="#8b949e" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
<rect x="942" y="168" width="190" height="100" rx="14" fill="#161b22" stroke="#3fb950" stroke-width="2"/>
|
|
29
|
+
<text x="1037" y="210" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">accept | next()</text>
|
|
30
|
+
<text x="1037" y="238" fill="#8b949e" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">audit: counts only</text>
|
|
31
|
+
<rect x="70" y="300" width="1060" height="58" rx="12" fill="#161b22" stroke="#4B67B4" stroke-width="2"/>
|
|
32
|
+
<text x="600" y="337" fill="#f0f6fc" text-anchor="middle" font-family="ui-monospace,monospace" font-size="15">/translate · 13 params × 11 vendors · <from> <to> [param]</text>
|
|
33
|
+
<text x="60" y="404" fill="#8b949e" font-family="ui-monospace,monospace" font-size="13">no invented data · translate/fix audit = counts + flags only</text>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="430" viewBox="0 0 1200 430" role="img" aria-label="dsh-param-repair data flow">
|
|
2
|
+
<title>dsh-param-repair data flow</title>
|
|
3
|
+
<rect width="1200" height="430" rx="18" fill="#ffffff"/>
|
|
4
|
+
<text x="60" y="58" fill="#1f2328" 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="#57606a" font-family="ui-monospace,monospace" font-size="16">tools/post-execute · /translate · fix_json</text>
|
|
6
|
+
<line x1="60" y1="118" x2="1140" y2="118" stroke="#d0d7de"/>
|
|
7
|
+
<text x="70" y="150" fill="#57606a" font-family="ui-monospace,monospace" font-size="13">tools/post-execute</text>
|
|
8
|
+
<rect x="70" y="168" width="190" height="100" rx="14" fill="#f6f8fa" stroke="#d0d7de" stroke-width="2"/>
|
|
9
|
+
<text x="165" y="210" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">tool result</text>
|
|
10
|
+
<text x="165" y="238" fill="#57606a" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">JSON text · success</text>
|
|
11
|
+
<path d="M264 218h18" stroke="#57606a" stroke-width="3"/>
|
|
12
|
+
<path d="M280 211l10 7-10 7" fill="none" stroke="#57606a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
13
|
+
<rect x="288" y="168" width="190" height="100" rx="14" fill="#f6f8fa" stroke="#4B67B4" stroke-width="2"/>
|
|
14
|
+
<text x="383" y="210" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">extract fence</text>
|
|
15
|
+
<text x="383" y="238" fill="#57606a" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">parse</text>
|
|
16
|
+
<path d="M482 218h18" stroke="#57606a" stroke-width="3"/>
|
|
17
|
+
<path d="M498 211l10 7-10 7" fill="none" stroke="#57606a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
18
|
+
<rect x="506" y="168" width="190" height="100" rx="14" fill="#f6f8fa" stroke="#4B67B4" stroke-width="2"/>
|
|
19
|
+
<text x="601" y="210" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">repair loop</text>
|
|
20
|
+
<text x="601" y="238" fill="#57606a" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">4 strategies</text>
|
|
21
|
+
<path d="M700 218h18" stroke="#57606a" stroke-width="3"/>
|
|
22
|
+
<path d="M716 211l10 7-10 7" fill="none" stroke="#57606a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
23
|
+
<rect x="724" y="168" width="190" height="100" rx="14" fill="#f6f8fa" stroke="#d0d7de" stroke-width="2"/>
|
|
24
|
+
<text x="819" y="210" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">schema validate</text>
|
|
25
|
+
<text x="819" y="238" fill="#57606a" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">supported subset</text>
|
|
26
|
+
<path d="M918 218h18" stroke="#57606a" stroke-width="3"/>
|
|
27
|
+
<path d="M934 211l10 7-10 7" fill="none" stroke="#57606a" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
28
|
+
<rect x="942" y="168" width="190" height="100" rx="14" fill="#f6f8fa" stroke="#16a34a" stroke-width="2"/>
|
|
29
|
+
<text x="1037" y="210" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="16" font-weight="700">accept | next()</text>
|
|
30
|
+
<text x="1037" y="238" fill="#57606a" text-anchor="middle" font-family="ui-monospace,monospace" font-size="12">audit: counts only</text>
|
|
31
|
+
<rect x="70" y="300" width="1060" height="58" rx="12" fill="#f6f8fa" stroke="#4B67B4" stroke-width="2"/>
|
|
32
|
+
<text x="600" y="337" fill="#1f2328" text-anchor="middle" font-family="ui-monospace,monospace" font-size="15">/translate · 13 params × 11 vendors · <from> <to> [param]</text>
|
|
33
|
+
<text x="60" y="404" fill="#57606a" font-family="ui-monospace,monospace" font-size="13">no invented data · translate/fix audit = counts + flags only</text>
|
|
34
|
+
</svg>
|
|
@@ -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="#131a2a"/><stop offset="1" stop-color="#0c1016"/></linearGradient>
|
|
6
|
+
<pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="1" fill="#8496f5" 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="#a7b0c5"/></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="#3fb950"/></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="#8496f5"/></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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" 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="#2c3852" stroke-width="1"/>
|
|
18
|
+
<circle cx="68" cy="122" r="11" fill="#222b45"/>
|
|
19
|
+
<text x="68" y="126" fill="#8496f5" 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="#eef1f8" 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="#a7b0c5" 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="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
23
|
+
<rect x="338" y="142" width="374" height="124" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
24
|
+
<rect x="738" y="142" width="306" height="124" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
25
|
+
<path d="M312 204 H330" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
26
|
+
<path d="M714 204 H732" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
27
|
+
<text x="74" y="168" fill="#8496f5" 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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" 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="#eef1f8" 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="#a7b0c5" 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="#2c3852" opacity="0.9"/>
|
|
34
|
+
<rect x="365" y="176" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
35
|
+
<rect x="372" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
36
|
+
<rect x="379" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
37
|
+
<rect x="386" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
38
|
+
<rect x="393" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
39
|
+
<rect x="400" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
40
|
+
<rect x="407" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
41
|
+
<rect x="414" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
42
|
+
<rect x="421" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
43
|
+
<rect x="428" y="176" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
44
|
+
<rect x="358" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
45
|
+
<rect x="365" y="183" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
46
|
+
<rect x="372" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
47
|
+
<rect x="379" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
48
|
+
<rect x="386" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
49
|
+
<rect x="393" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
50
|
+
<rect x="400" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
51
|
+
<rect x="407" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
52
|
+
<rect x="414" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
53
|
+
<rect x="421" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
54
|
+
<rect x="428" y="183" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
55
|
+
<rect x="358" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
56
|
+
<rect x="365" y="190" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
57
|
+
<rect x="372" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
58
|
+
<rect x="379" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
59
|
+
<rect x="386" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
60
|
+
<rect x="393" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
61
|
+
<rect x="400" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
62
|
+
<rect x="407" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
63
|
+
<rect x="414" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
64
|
+
<rect x="421" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
65
|
+
<rect x="428" y="190" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
66
|
+
<rect x="358" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
67
|
+
<rect x="365" y="197" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
68
|
+
<rect x="372" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
69
|
+
<rect x="379" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
70
|
+
<rect x="386" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
71
|
+
<rect x="393" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
72
|
+
<rect x="400" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
73
|
+
<rect x="407" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
74
|
+
<rect x="414" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
75
|
+
<rect x="421" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
76
|
+
<rect x="428" y="197" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
77
|
+
<rect x="358" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
78
|
+
<rect x="365" y="204" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
79
|
+
<rect x="372" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
80
|
+
<rect x="379" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
81
|
+
<rect x="386" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
82
|
+
<rect x="393" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
83
|
+
<rect x="400" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
84
|
+
<rect x="407" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
85
|
+
<rect x="414" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
86
|
+
<rect x="421" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
87
|
+
<rect x="428" y="204" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
88
|
+
<rect x="358" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
89
|
+
<rect x="365" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
90
|
+
<rect x="372" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
91
|
+
<rect x="379" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
92
|
+
<rect x="386" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
93
|
+
<rect x="393" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
94
|
+
<rect x="400" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
95
|
+
<rect x="407" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
96
|
+
<rect x="414" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
97
|
+
<rect x="421" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
98
|
+
<rect x="428" y="211" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
99
|
+
<rect x="358" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
100
|
+
<rect x="365" y="218" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
101
|
+
<rect x="372" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
102
|
+
<rect x="379" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
103
|
+
<rect x="386" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
104
|
+
<rect x="393" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
105
|
+
<rect x="400" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
106
|
+
<rect x="407" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
107
|
+
<rect x="414" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
108
|
+
<rect x="421" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
109
|
+
<rect x="428" y="218" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
110
|
+
<rect x="358" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
111
|
+
<rect x="365" y="225" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
112
|
+
<rect x="372" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
113
|
+
<rect x="379" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
114
|
+
<rect x="386" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
115
|
+
<rect x="393" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
116
|
+
<rect x="400" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
117
|
+
<rect x="407" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
118
|
+
<rect x="414" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
119
|
+
<rect x="421" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
120
|
+
<rect x="428" y="225" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
121
|
+
<rect x="358" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
122
|
+
<rect x="365" y="232" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
123
|
+
<rect x="372" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
124
|
+
<rect x="379" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
125
|
+
<rect x="386" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
126
|
+
<rect x="393" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
127
|
+
<rect x="400" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
128
|
+
<rect x="407" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
129
|
+
<rect x="414" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
130
|
+
<rect x="421" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
131
|
+
<rect x="428" y="232" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
132
|
+
<rect x="358" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
133
|
+
<rect x="365" y="239" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
134
|
+
<rect x="372" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
135
|
+
<rect x="379" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
136
|
+
<rect x="386" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
137
|
+
<rect x="393" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
138
|
+
<rect x="400" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
139
|
+
<rect x="407" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
140
|
+
<rect x="414" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
141
|
+
<rect x="421" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
142
|
+
<rect x="428" y="239" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
143
|
+
<rect x="358" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
144
|
+
<rect x="365" y="246" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
145
|
+
<rect x="372" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
146
|
+
<rect x="379" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
147
|
+
<rect x="386" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
148
|
+
<rect x="393" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
149
|
+
<rect x="400" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
150
|
+
<rect x="407" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
151
|
+
<rect x="414" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
152
|
+
<rect x="421" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
153
|
+
<rect x="428" y="246" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
154
|
+
<rect x="358" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
155
|
+
<rect x="365" y="253" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
156
|
+
<rect x="372" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
157
|
+
<rect x="379" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
158
|
+
<rect x="386" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
159
|
+
<rect x="393" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
160
|
+
<rect x="400" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
161
|
+
<rect x="407" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
162
|
+
<rect x="414" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
163
|
+
<rect x="421" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
164
|
+
<rect x="428" y="253" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
165
|
+
<rect x="358" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
166
|
+
<rect x="365" y="260" width="4" height="4" rx="1" fill="#8496f5" opacity="1"/>
|
|
167
|
+
<rect x="372" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
168
|
+
<rect x="379" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
169
|
+
<rect x="386" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
170
|
+
<rect x="393" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
171
|
+
<rect x="400" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
172
|
+
<rect x="407" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
173
|
+
<rect x="414" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
174
|
+
<rect x="421" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
175
|
+
<rect x="428" y="260" width="4" height="4" rx="1" fill="#2c3852" opacity="0.9"/>
|
|
176
|
+
<rect x="363" y="209" width="8" height="8" rx="2" fill="none" stroke="#8496f5" stroke-width="1"/>
|
|
177
|
+
<text x="450" y="198" fill="#a7b0c5" 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="#a7b0c5" 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="#7c87a0" 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="#eef1f8" 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="#eef1f8" 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="#eef1f8" 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="#8496f5" 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="#a7b0c5" 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="#7c87a0" 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="#222b45"/>
|
|
187
|
+
<text x="68" y="316" fill="#8496f5" 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="#eef1f8" 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="#a7b0c5" 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="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
191
|
+
<rect x="298" y="334" width="224" height="92" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
192
|
+
<rect x="546" y="334" width="224" height="92" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
193
|
+
<rect x="794" y="334" width="250" height="92" rx="18" fill="#1a2233" stroke="#8496f5" stroke-width="1" filter="url(#soft)" stroke-dasharray="5 4"/>
|
|
194
|
+
<path d="M274 380 H292" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
195
|
+
<path d="M522 380 H540" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
196
|
+
<text x="74" y="356" fill="#8496f5" 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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" 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="#8496f5" 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="#f0b45f" 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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" 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="#8496f5" 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="#3fb950" 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="#eef1f8" 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="#a7b0c5" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">looksLikeJsonText()</text>
|
|
209
|
+
<text x="564" y="421" fill="#a7b0c5" 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="#8496f5" 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="#a7b0c5" 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="#a7b0c5" 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="#a7b0c5" 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="#a7b0c5" 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="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
216
|
+
<rect x="300" y="448" width="320" height="118" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
217
|
+
<rect x="652" y="448" width="180" height="54" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
218
|
+
<rect x="652" y="512" width="180" height="54" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
219
|
+
<rect x="860" y="448" width="184" height="54" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
220
|
+
<rect x="860" y="512" width="184" height="54" rx="18" fill="#1a2233" stroke="#2c3852" stroke-width="1" filter="url(#soft)"/>
|
|
221
|
+
<text x="74" y="470" fill="#8496f5" 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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" 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="#7c87a0" 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="#eef1f8" 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="#a7b0c5" 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="#222b45"/>
|
|
229
|
+
<rect x="318" y="513" width="284" height="23" rx="8" fill="#222b45"/>
|
|
230
|
+
<rect x="318" y="540" width="284" height="23" rx="8" fill="#222b45"/>
|
|
231
|
+
<text x="330" y="502" fill="#eef1f8" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">escapeRepair</text>
|
|
232
|
+
<text x="330" y="529" fill="#eef1f8" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">trailingComma</text>
|
|
233
|
+
<text x="330" y="556" fill="#eef1f8" font-family="ui-monospace,SFMono-Regular,'Cascadia Mono',Consolas,'Liberation Mono',monospace" font-size="14">truncationClosure</text>
|
|
234
|
+
<text x="670" y="470" fill="#eef1f8" 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="#a7b0c5" 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="#eef1f8" 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="#a7b0c5" 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="#3fb950" 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="#a7b0c5" 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="#eef1f8" 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="#a7b0c5" 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="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
243
|
+
<path d="M742 502 V508" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
244
|
+
<path d="M832 539 H844" fill="none" stroke="#a7b0c5" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw)"/>
|
|
245
|
+
<path d="M844 539 V475 H856" fill="none" stroke="#3fb950" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arw-g)"/>
|
|
246
|
+
<path d="M844 539 H856" fill="none" stroke="#3fb950" 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="#2c3852" stroke-width="1"/>
|
|
248
|
+
<text x="56" y="626" fill="#a7b0c5" 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="#a7b0c5" 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>
|