dsh-power-ticket-check 0.2.2 → 0.2.3
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 +14 -0
- package/README-es.md +8 -0
- package/README-hi.md +8 -0
- package/README-pt.md +8 -0
- package/README-zh.md +8 -0
- package/README.md +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.3
|
|
4
|
+
|
|
5
|
+
- Add a demo card to the README: one terminal shot of this plugin's real output
|
|
6
|
+
over its own test fixture, plus the DSH Market badge.
|
|
7
|
+
|
|
8
|
+
The card is generated by running this repository's check core over a committed
|
|
9
|
+
fixture and rendering the report it returned, so the findings, rule ids, cited
|
|
10
|
+
documents and "not obtained" notes are the plugin's own output rather than an
|
|
11
|
+
artist's impression. In a family whose claim is that it never fabricates a
|
|
12
|
+
citation, a hand-drawn screenshot would undercut the thing being demonstrated.
|
|
13
|
+
|
|
14
|
+
Added to all five READMEs together, which `check:readmes` requires.
|
|
15
|
+
|
|
16
|
+
|
|
3
17
|
## 0.2.2
|
|
4
18
|
|
|
5
19
|
- Rework the README first screen. The H1 now names what the plugin checks rather
|
package/README-es.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-power-ticket-check — Verificación de la completitud del permiso de trabajo eléctrico y del orden de emisión, autorización y cierre
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-power-ticket-check` lee un **电力工作票** como un mapa plano de los nombres de columna del propio formulario a sus valores, junto con los roles que figuran en él, y comprueba lo que puede exigirse a un formulario: que estén rellenas todas las columnas de su `requiredFields` configurado, que el 工作票种类 figure entre los que declara su implantación, que 签发时间 → 许可时间 → 终结时间 formen una secuencia físicamente posible, que un 延期时间 desplace el final hacia adelante y no sea anterior a la autorización, que los roles configurados como exclusivos los desempeñen personas distintas, y que el texto de medidas de seguridad y de autorización contenga los cinco términos de 安全技术措施 y los tres de 许可手续 que el paquete busca. Las comprobaciones que no pudieron ejecutarse se listan en `skipped` con su motivo, en lugar de pasar en silencio.
|
|
4
6
|
|
|
7
|
+
## Cómo se ve la salida
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Salida real de este plugin sobre su propio fixture de prueba `PT-003` — 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
|
+
|
|
5
13
|
## Qué responde
|
|
6
14
|
|
|
7
15
|
| Usted pregunta | Qué responde |
|
package/README-hi.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-power-ticket-check — विद्युत कार्य-अनुज्ञप्ति की पूर्णता तथा निर्गमन, अनुमति और समापन के क्रम की जाँच
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-power-ticket-check` एक **电力工作票** को उसके अपने कॉलम नामों से मानों तक के सपाट मैपिंग के रूप में पढ़ता है — साथ में उस पर अंकित भूमिकाएँ — और उस अनुज्ञप्ति की वह जाँच करता है जो एक फ़ॉर्म से अपेक्षित की जा सकती है: आपके कॉन्फ़िगर किए गए `requiredFields` के हर कॉलम में मान भरा हो, 工作票种类 आपकी संस्था द्वारा सूचीबद्ध किस्मों में से हो, 签发时间 → 许可时间 → 终结时间 का क्रम भौतिक रूप से संभव हो, 延期时间 अंत को आगे बढ़ाए और अनुमति से पहले न हो, जिन भूमिकाओं को आपने अलग-अलग रखने के लिए कॉन्फ़िगर किया है वे अलग-अलग व्यक्तियों के हों, तथा सुरक्षा-उपाय और अनुमति के पाठ में नियम-पैक द्वारा खोजे जाने वाले 安全技术措施 के पाँच और 许可手续 के तीन शब्द मौजूद हों। जो जाँचें चल नहीं सकीं, वे चुपचाप पास होने के बजाय कारण के साथ `skipped` में दर्ज होती हैं।
|
|
4
6
|
|
|
7
|
+
## आउटपुट कैसा दिखता है
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
इस प्लगइन का अपने ही `PT-003` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
|
|
12
|
+
|
|
5
13
|
## यह किन सवालों का जवाब देता है
|
|
6
14
|
|
|
7
15
|
| आपका सवाल | इसका जवाब |
|
package/README-pt.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-power-ticket-check — Verificação da completude do permiso de trabalho elétrico e da ordem de emissão, autorização e encerramento
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-power-ticket-check` lê um **电力工作票** como um mapa plano dos nomes das colunas do próprio formulário para os respetivos valores, em conjunto com os papéis nele indicados, e verifica o que se pode exigir a um formulário: que todas as colunas do seu `requiredFields` configurado estejam preenchidas, que o 工作票种类 conste dos que a sua implantação declara, que 签发时间 → 许可时间 → 终结时间 formem uma sequência fisicamente possível, que um 延期时间 empurre o fim para a frente e não seja anterior à autorização, que os papéis configurados como exclusivos sejam desempenhados por pessoas diferentes, e que o texto das medidas de segurança e da autorização contenha os cinco termos de 安全技术措施 e os três de 许可手续 que o pacote procura. As verificações que não puderam ser executadas são listadas em `skipped` com o respetivo motivo, em vez de passarem em silêncio.
|
|
4
6
|
|
|
7
|
+
## Como é a saída
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Saída real deste plugin sobre o seu próprio fixture de teste `PT-003` — 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
|
+
|
|
5
13
|
## O que ele responde
|
|
6
14
|
|
|
7
15
|
| Você pergunta | O que ele responde |
|
package/README-zh.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-power-ticket-check — 电力工作票要素齐备性与签发许可终结顺序核对
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-power-ticket-check` 读取一份 **电力工作票**——以票面栏目名为键、栏目取值为值的平铺映射,外加票上列出的人员角色——按一张票面能被要求到的范围核对:本机构配置的 `requiredFields` 各栏是否都已填写、工作票种类是否在本机构列出的票种之内、签发时间 → 许可时间 → 终结时间 的顺序是否物理上成立、延期时间是否把结束时间向后推且不早于许可时间、本机构配置为须分设的角色是否由不同人员担任,以及安全措施与许可文本中是否出现规则库要求核对的安全技术措施五项与许可手续三项关键词。未能执行的检查逐条列在 `skipped` 并写明原因,而不是静默通过。
|
|
4
6
|
|
|
7
|
+
## 实际输出长什么样
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
本插件对自己 `PT-003` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
|
|
12
|
+
|
|
5
13
|
## 它回答什么问题
|
|
6
14
|
|
|
7
15
|
| 你会问 | 它怎么答 |
|
package/README.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# dsh-power-ticket-check — Power work-ticket completeness and issue-permit-termination order check
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-power-ticket-check` reads one **电力工作票** as a flat mapping of the ticket's own column names to their values, together with the roles named on it, and checks that ticket for what a form can be held to: that every column in your configured `requiredFields` is filled, that the 工作票种类 is one your deployment lists, that 签发时间 → 许可时间 → 终结时间 form a sequence that is physically possible, that a 延期时间 pushes the end forward and does not precede the permit, that roles you configured as exclusive are held by different people, and that the safety-measure and permit text carries the five 安全技术措施 terms and the three 许可手续 terms the pack looks for. Checks that could not run are listed in `skipped` with their reason rather than passing silently.
|
|
4
6
|
|
|
7
|
+
## What it looks like
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
Real output from this plugin over its own `PT-003` 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
|
+
|
|
5
13
|
## What it answers
|
|
6
14
|
|
|
7
15
|
| You ask | What it answers |
|