dsh-origin-rvc-check 0.2.4 → 0.2.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.
- package/CHANGELOG.md +25 -0
- package/README-es.md +12 -10
- package/README-hi.md +12 -10
- package/README-pt.md +12 -10
- package/README-zh.md +12 -10
- package/README.md +12 -10
- package/lib/index.mjs +0 -8
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.8] - 2026-10-18
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Move the Install section to the first screen in all five READMEs.
|
|
8
|
+
|
|
9
|
+
## [0.2.7] - 2026-10-18
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Add a 1280×720 hero and a 960×540, 4-second terminal GIF rendered from the checker’s own output; `screenshots.json` is an object array and `capture.json` records the storyboard.
|
|
14
|
+
|
|
15
|
+
## 0.2.6 - 2026-10-18
|
|
16
|
+
|
|
17
|
+
- Fix: a rule that executed and found no difference is no longer placed in `skipped`. The report view labels only genuinely unexecuted rules as “未执行的检查”; `skippedCount` no longer counts executed-clean rules.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## 0.2.5 - 2026-10-17
|
|
21
|
+
|
|
22
|
+
- Compatibility: declare `engines.dsh` `>=0.2.1-0 <0.3.0`; move `@deepseek-ai/dsh-*` devDependencies to `0.2.1-rc.2`; add `@deepseek-ai/dsh-working-directory`.
|
|
23
|
+
- Docs: the compatibility table no longer claims `engines.dsh` is undeclared; drop the retired `both` tool mode.
|
|
24
|
+
|
|
25
|
+
|
|
3
26
|
## 0.2.4
|
|
4
27
|
|
|
5
28
|
- Add a demo card to the README: one terminal shot of this plugin's real output
|
|
@@ -56,3 +79,5 @@
|
|
|
56
79
|
- Five-language READMEs hold the same section count and the same configuration keys.
|
|
57
80
|
- Rule pack: 7 rules across OR-001..OR-007.
|
|
58
81
|
- Licensed Apache-2.0.
|
|
82
|
+
|
|
83
|
+
|
package/README-es.md
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
`dsh-origin-rvc-check` lee un registro de determinación de origen (原产地判定台账) —la cabecera del acuerdo más una fila por material— y comprueba la aritmética de ese mismo registro: que se declaren el acuerdo y el producto, que el contenido de valor regional sea igual a (FOB − valor de los materiales no originarios) ÷ FOB × 100, que el RVC alcance el umbral que usted configura, que cada material indique su origen, que el criterio de origen proceda del vocabulario de su acuerdo, que los números de material no se repitan y que no quede ningún marcador de plantilla sin sustituir en la descripción.
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## Cómo se ve la salida
|
|
8
15
|
|
|
9
|
-

|
|
17
|
+
|
|
18
|
+

|
|
10
19
|
|
|
11
20
|
Salida real de este plugin sobre su propio fixture de prueba `OR-001` — no es un montaje. El paquete de reglas no inventa citas, así que cada hallazgo nombra la cláusula aplicada y advierte que su texto no se obtuvo.
|
|
12
21
|
|
|
@@ -59,22 +68,15 @@ is valid, or whether origin circumvention occurred.
|
|
|
59
68
|
|
|
60
69
|
| Superficie | Estado |
|
|
61
70
|
|---|---|
|
|
62
|
-
| Harness | Rango de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificado para aceptar tanto `0.2.0-rc.2` como `0.2.1-
|
|
71
|
+
| Harness | Rango de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificado para aceptar tanto `0.2.0-rc.2` como `0.2.1-rc.2`. **`engines.dsh` se declara como `>=0.2.1-0 <0.3.0`** y el host lo aplica desde 0.2.1 |
|
|
63
72
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
64
73
|
| Plataformas | Todas (ESM puro; sin código nativo, sin red, sin llamada al modelo) |
|
|
65
|
-
| Modo de herramienta | Funciona en `native
|
|
74
|
+
| Modo de herramienta | Funciona en `native` y `ptc`; para un directorio completo use `ptc` |
|
|
66
75
|
|
|
67
76
|
## What it does
|
|
68
77
|
|
|
69
78
|
La tabla de reglas, los campos y el comportamiento detallado están en [README.md](README.md#what-it-does) (versión principal en inglés). El plugin sólo enumera divergencias literales frente a las cláusulas citadas e indica en `skipped` cada comprobación que no pudo ejecutarse.
|
|
70
79
|
|
|
71
|
-
## Install
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
75
|
-
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
76
|
-
```
|
|
77
|
-
|
|
78
80
|
## Configuration
|
|
79
81
|
|
|
80
82
|
Todos los parámetros ajustables viven en el esquema Schemastery de `src/config.ts`, por lo que se cambian desde `cordis.yml` sin tocar el código; los umbrales por regla están en el paquete de reglas bajo `rules/`.
|
package/README-hi.md
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
`dsh-origin-rvc-check` एक उद्गम-निर्धारण रजिस्टर (原产地判定台账) पढ़ता है — समझौते का हेडर और प्रत्येक सामग्री की एक पंक्ति — और उसी रजिस्टर के अपने अंकगणित की जाँच करता है: कि समझौता और उत्पाद घोषित हैं, कि क्षेत्रीय मूल्य-अंश (FOB − गैर-उद्गम सामग्री मूल्य) ÷ FOB × 100 के बराबर है, कि RVC आपकी निर्धारित सीमा तक पहुँचता है, कि प्रत्येक सामग्री अपना उद्गम बताती है, कि उद्गम मानदंड आपके समझौते की शब्दावली से आता है, कि सामग्री क्रमांक दोहराए नहीं गए हैं, और कि विवरण में कोई अप्रतिस्थापित प्लेसहोल्डर शेष नहीं है।
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## आउटपुट कैसा दिखता है
|
|
8
15
|
|
|
9
|
-

|
|
17
|
+
|
|
18
|
+

|
|
10
19
|
|
|
11
20
|
इस प्लगइन का अपने ही `OR-001` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
|
|
12
21
|
|
|
@@ -59,22 +68,15 @@ is valid, or whether origin circumvention occurred.
|
|
|
59
68
|
|
|
60
69
|
| सतह | स्थिति |
|
|
61
70
|
|---|---|
|
|
62
|
-
| Harness | peer रेंज `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — `0.2.0-rc.2` और `0.2.1-
|
|
71
|
+
| Harness | peer रेंज `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — `0.2.0-rc.2` और `0.2.1-rc.2` दोनों को स्वीकार करने के लिए सत्यापित। **`engines.dsh` `>=0.2.1-0 <0.3.0` के रूप में घोषित है** और 0.2.1 से होस्ट इसे लागू करता है |
|
|
63
72
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
64
73
|
| प्लेटफ़ॉर्म | सभी (शुद्ध ESM; कोई नेटिव कोड नहीं, कोई नेटवर्क नहीं, कोई मॉडल कॉल नहीं) |
|
|
65
|
-
| टूल मोड | `native
|
|
74
|
+
| टूल मोड | `native` और `ptc` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
|
|
66
75
|
|
|
67
76
|
## What it does
|
|
68
77
|
|
|
69
78
|
नियम-सूची, फ़ील्ड और विस्तृत व्यवहार [README.md](README.md#what-it-does) (अंग्रेज़ी मुख्य संस्करण) में हैं। यह प्लगइन केवल उद्धृत धाराओं के सामने शाब्दिक अंतर सूचीबद्ध करता है और हर न चल पाई जाँच को `skipped` में बताता है।
|
|
70
79
|
|
|
71
|
-
## Install
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
75
|
-
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
76
|
-
```
|
|
77
|
-
|
|
78
80
|
## Configuration
|
|
79
81
|
|
|
80
82
|
सभी समायोज्य पैरामीटर `src/config.ts` की Schemastery स्कीमा में हैं, इसलिए कोड बदले बिना `cordis.yml` से बदले जा सकते हैं; प्रति-नियम सीमाएँ `rules/` के नियम-पैक में हैं।
|
package/README-pt.md
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
`dsh-origin-rvc-check` lê um registo de determinação de origem (原产地判定台账) —o cabeçalho do acordo mais uma linha por material— e verifica a aritmética desse próprio registo: que o acordo e o produto sejam declarados, que o conteúdo de valor regional seja igual a (FOB − valor dos materiais não originários) ÷ FOB × 100, que o RVC atinja o limiar que configura, que cada material indique a sua origem, que o critério de origem venha do vocabulário do seu acordo, que os números de material não se repitam e que não reste nenhum marcador de modelo por substituir na descrição.
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## Como é a saída
|
|
8
15
|
|
|
9
|
-

|
|
17
|
+
|
|
18
|
+

|
|
10
19
|
|
|
11
20
|
Saída real deste plugin sobre o seu próprio fixture de teste `OR-001` — não é uma simulação. O pacote de regras não inventa citações, por isso cada achado nomeia a cláusula aplicada e avisa que o seu texto não foi obtido.
|
|
12
21
|
|
|
@@ -59,22 +68,15 @@ is valid, or whether origin circumvention occurred.
|
|
|
59
68
|
|
|
60
69
|
| Superfície | Estado |
|
|
61
70
|
|---|---|
|
|
62
|
-
| Harness | Faixa de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificada para aceitar tanto `0.2.0-rc.2` quanto `0.2.1-
|
|
71
|
+
| Harness | Faixa de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificada para aceitar tanto `0.2.0-rc.2` quanto `0.2.1-rc.2`. **`engines.dsh` é declarado como `>=0.2.1-0 <0.3.0`** e o host o aplica desde 0.2.1 |
|
|
63
72
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
64
73
|
| Plataformas | Todas (ESM puro; sem código nativo, sem rede, sem chamada ao modelo) |
|
|
65
|
-
| Modo de ferramenta | Funciona em `native
|
|
74
|
+
| Modo de ferramenta | Funciona em `native` e `ptc`; para um diretório inteiro use `ptc` |
|
|
66
75
|
|
|
67
76
|
## What it does
|
|
68
77
|
|
|
69
78
|
A tabela de regras, os campos e o comportamento detalhado estão em [README.md](README.md#what-it-does) (versão principal em inglês). O plugin apenas lista divergências literais frente às cláusulas citadas e indica em `skipped` cada verificação que não pôde ser executada.
|
|
70
79
|
|
|
71
|
-
## Install
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
75
|
-
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
76
|
-
```
|
|
77
|
-
|
|
78
80
|
## Configuration
|
|
79
81
|
|
|
80
82
|
Todos os parâmetros ajustáveis ficam no esquema Schemastery de `src/config.ts`, portanto mudam pelo `cordis.yml` sem editar código; os limites por regra ficam no pacote de regras sob `rules/`.
|
package/README-zh.md
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
`dsh-origin-rvc-check` 读取一份原产地判定台账——表头写明协定与产品,每种料件一行——核对这份台账自身的算术:协定与产品是否声明、区域价值成分是否等于 (FOB − 非原产材料价值) ÷ FOB × 100、RVC 是否达到你配置的门槛、每条料件是否填写原产国、原产地标准是否出自你所适用协定的口径、料件序号是否唯一、品名栏是否残留未替换的占位符。
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## 实际输出长什么样
|
|
8
15
|
|
|
9
|
-

|
|
17
|
+
|
|
18
|
+

|
|
10
19
|
|
|
11
20
|
本插件对自己 `OR-001` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
|
|
12
21
|
|
|
@@ -59,22 +68,15 @@ is valid, or whether origin circumvention occurred.
|
|
|
59
68
|
|
|
60
69
|
| 项目 | 状态 |
|
|
61
70
|
|---|---|
|
|
62
|
-
| Harness | 对等版本范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` —— 已实测同时接受 `0.2.0-rc.2` 与 `0.2.1-
|
|
71
|
+
| Harness | 对等版本范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` —— 已实测同时接受 `0.2.0-rc.2` 与 `0.2.1-rc.2`。**已声明 `engines.dsh`**:0.2.1 起由宿主单独裁决,范围为 `>=0.2.1-0 <0.3.0` |
|
|
63
72
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
64
73
|
| 平台 | 全平台(纯 ESM;无原生代码、无联网、不调用模型) |
|
|
65
|
-
| 工具模式 | `native` / `ptc`
|
|
74
|
+
| 工具模式 | `native` / `ptc` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
|
|
66
75
|
|
|
67
76
|
## What it does
|
|
68
77
|
|
|
69
78
|
规则表、字段说明与行为细节见 [README.md](README.md#what-it-does)(英文主版本)。本插件只列出材料与所引条款之间的字面差异,并对无法执行的检查在 `skipped` 中逐项说明。
|
|
70
79
|
|
|
71
|
-
## Install
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
75
|
-
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
76
|
-
```
|
|
77
|
-
|
|
78
80
|
## Configuration
|
|
79
81
|
|
|
80
82
|
全部可调参数都在 `src/config.ts` 的 Schemastery schema 中,只改 `cordis.yml` 即可生效,无需改代码;逐条阈值在 `rules/` 下的规则库文件里。
|
package/README.md
CHANGED
|
@@ -4,9 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
`dsh-origin-rvc-check` reads one origin determination register (原产地判定台账) — the agreement header plus one row per material — and checks that register's own arithmetic: that the agreement and product are declared, that regional value content equals (FOB − non-originating value) ÷ FOB × 100, that RVC meets the threshold you configure, that every material states its origin, that the origin criterion comes from your agreement's vocabulary, that material numbers are unique, and that no unreplaced placeholder survives in the description.
|
|
6
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
7
14
|
## What it looks like
|
|
8
15
|
|
|
9
|
-

|
|
17
|
+
|
|
18
|
+

|
|
10
19
|
|
|
11
20
|
Real output from this plugin over its own `OR-001` test fixture — not a mock-up. The rule pack ships no invented quotations, so a finding names both the clause it applied and the fact that the clause text was not obtained.
|
|
12
21
|
|
|
@@ -59,10 +68,10 @@ is valid, or whether origin circumvention occurred.
|
|
|
59
68
|
|
|
60
69
|
| Surface | Status |
|
|
61
70
|
|---|---|
|
|
62
|
-
| Harness | Peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verified to accept both `0.2.0-rc.2` and `0.2.1-
|
|
71
|
+
| Harness | Peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verified to accept both `0.2.0-rc.2` and `0.2.1-rc.2`. `engines.dsh` is declared as `>=0.2.1-0 <0.3.0` and is enforced by the host since 0.2.1 |
|
|
63
72
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
64
73
|
| Platforms | All (plain ESM; no native code, no network, no model call) |
|
|
65
|
-
| Tool mode | Works in `native
|
|
74
|
+
| Tool mode | Works in `native` and `ptc`; for a full bill of materials use `ptc` |
|
|
66
75
|
|
|
67
76
|
## What it does
|
|
68
77
|
|
|
@@ -78,13 +87,6 @@ material — applies a versioned rule pack, and returns a report.
|
|
|
78
87
|
| `OR-005` | the criterion comes from your vocabulary (off by default) | info | local |
|
|
79
88
|
| `OR-006` | material numbers are unique | warn | principle |
|
|
80
89
|
| `OR-007` | the description holds no unreplaced placeholder | warn | principle |
|
|
81
|
-
## Install
|
|
82
|
-
|
|
83
|
-
```sh
|
|
84
|
-
dsh plugin --profile <name> add dsh-origin-rvc-check
|
|
85
|
-
dsh --profile <name> --dump-config | grep 'dsh-origin-rvc-check'
|
|
86
|
-
```
|
|
87
|
-
|
|
88
90
|
## Configuration
|
|
89
91
|
|
|
90
92
|
| Key | Type | Default | Description |
|
package/lib/index.mjs
CHANGED
|
@@ -2188,14 +2188,6 @@ function runTableCheck(input, ruleset, options) {
|
|
|
2188
2188
|
});
|
|
2189
2189
|
already.add(ruleId);
|
|
2190
2190
|
}
|
|
2191
|
-
for (const rule of ruleset.rules) {
|
|
2192
|
-
if (disabled.has(rule.id) || fired.has(rule.id) || already.has(rule.id)) continue;
|
|
2193
|
-
if (only.size > 0 && !only.has(rule.id)) continue;
|
|
2194
|
-
skipped.push({
|
|
2195
|
-
rule: rule.id,
|
|
2196
|
-
reason: withNote("材料满足该检查的前置条件且未发现差异条目")
|
|
2197
|
-
});
|
|
2198
|
-
}
|
|
2199
2191
|
if (only.size > 0) {
|
|
2200
2192
|
const notSelected = ruleset.rules.filter((rule) => !only.has(rule.id) && !disabled.has(rule.id));
|
|
2201
2193
|
if (notSelected.length > 0) skipped.push({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-origin-rvc-check",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "原产地区域价值成分核对(按 RVC 定义式与门槛核对原产地判定自洽,仅提示差异,不作出定性结论)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.mjs",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": "^22.19.0 || >=24.0.0",
|
|
72
|
-
"dsh": ">=0.2.1-
|
|
72
|
+
"dsh": ">=0.2.1-0 <0.3.0"
|
|
73
73
|
},
|
|
74
74
|
"packageManager": "pnpm@11.7.0",
|
|
75
75
|
"peerDependencies": {
|
|
@@ -79,11 +79,12 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@deepseek-ai/cordis": "4.0.5-alpha.1",
|
|
82
|
-
"@deepseek-ai/dsh-package-manifest": "0.2.1-
|
|
83
|
-
"@deepseek-ai/dsh-tools": "0.2.1-
|
|
82
|
+
"@deepseek-ai/dsh-package-manifest": "0.2.1-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
84
84
|
"@deepseek-ai/schemastery": "3.18.5-alpha.1",
|
|
85
85
|
"@types/node": "^22.20.1",
|
|
86
|
-
"vitest": "^3.2.7"
|
|
86
|
+
"vitest": "^3.2.7",
|
|
87
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-rc.2"
|
|
87
88
|
},
|
|
88
89
|
"dependencies": {
|
|
89
90
|
"tsdown": "^0.22.14",
|