dislop 0.9.1 → 1.1.0
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/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +7 -8
- package/.cursor-plugin/plugin.json +2 -3
- package/.pre-commit-hooks.yaml +5 -12
- package/PRODUCT.md +19 -63
- package/README.md +358 -249
- package/README.zh-CN.md +391 -237
- package/action.yml +30 -39
- package/bin/dislop-mcp.mjs +3 -4
- package/bin/dislop.mjs +4 -4594
- package/gemini-extension.json +2 -2
- package/llms-install.md +68 -0
- package/package.json +17 -63
- package/packs/common/artifact-qa/pack.json +5 -0
- package/packs/common/artifact-qa/prompts/rules.md +11 -0
- package/packs/common/artifact-qa/scripts/index.mjs +235 -0
- package/packs/common/slide-deck/pack.json +6 -0
- package/packs/common/slide-deck/prompts/rules.md +11 -0
- package/packs/common/slide-deck/scripts/index.mjs +62 -0
- package/packs/common/web-ui/pack.json +6 -0
- package/packs/common/web-ui/prompts/rules.md +11 -0
- package/packs/common/web-ui/scripts/index.mjs +80 -0
- package/packs/en/artifact-qa/pack.json +6 -0
- package/packs/en/artifact-qa/prompts/rules.md +14 -0
- package/packs/en/artifact-qa/scripts/index.mjs +90 -0
- package/packs/en/prose/pack.json +7 -0
- package/packs/en/prose/prompts/rules.md +26 -0
- package/packs/en/prose/scripts/index.mjs +293 -0
- package/packs/en/slide-deck/pack.json +7 -0
- package/packs/en/slide-deck/prompts/rules.md +17 -0
- package/packs/en/slide-deck/scripts/index.mjs +81 -0
- package/packs/en/web-ui/pack.json +7 -0
- package/packs/en/web-ui/prompts/rules.md +20 -0
- package/packs/en/web-ui/scripts/index.mjs +103 -0
- package/packs/zh/artifact-qa/pack.json +6 -0
- package/packs/zh/artifact-qa/prompts/rules.md +14 -0
- package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
- package/packs/zh/prose/pack.json +7 -0
- package/packs/zh/prose/prompts/rules.md +26 -0
- package/packs/zh/prose/scripts/index.mjs +305 -0
- package/packs/zh/slide-deck/pack.json +7 -0
- package/packs/zh/slide-deck/prompts/rules.md +17 -0
- package/packs/zh/slide-deck/scripts/index.mjs +75 -0
- package/packs/zh/web-ui/pack.json +7 -0
- package/packs/zh/web-ui/prompts/rules.md +20 -0
- package/packs/zh/web-ui/scripts/index.mjs +98 -0
- package/plugin.json +5 -6
- package/server.json +2 -2
- package/skills/deslop-docs/SKILL.md +10 -8
- package/skills/deslop-slides-docx/SKILL.md +7 -8
- package/skills/deslop-verify/SKILL.md +7 -8
- package/skills/deslop-web-ui/SKILL.md +7 -8
- package/skills/dislop/SKILL.md +16 -28
- package/skills/dislop/agents/openai.yaml +1 -1
- package/skills/dislop/references/essay.md +6 -6
- package/skills/dislop/references/essay.zh-CN.md +6 -6
- package/skills/dislop/references/office.md +5 -5
- package/skills/dislop/references/office.zh-CN.md +5 -5
- package/skills/dislop/references/web-ui.md +4 -4
- package/skills/dislop/references/web-ui.zh-CN.md +4 -4
- package/skills/dislop/references/work-docs.md +7 -7
- package/skills/dislop/references/work-docs.zh-CN.md +7 -7
- package/src/cli-main.mjs +292 -0
- package/src/commands/check-fix.mjs +324 -0
- package/src/commands/doctor.mjs +132 -0
- package/src/commands/init.mjs +55 -0
- package/src/commands/login.mjs +82 -0
- package/src/commands/model.mjs +130 -0
- package/src/commands/packs.mjs +81 -0
- package/src/commands/verify.mjs +165 -0
- package/src/commands/voice.mjs +84 -0
- package/src/commands/worklog.mjs +424 -0
- package/src/kernel/config.mjs +759 -0
- package/src/kernel/document-model.mjs +1432 -0
- package/src/kernel/fact-gate.mjs +775 -0
- package/src/kernel/file-discovery.mjs +296 -0
- package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +615 -890
- package/src/kernel/pack-loader.mjs +801 -0
- package/src/kernel/pack-validator.mjs +491 -0
- package/src/kernel/patcher.mjs +471 -0
- package/src/kernel/pipeline.mjs +530 -0
- package/src/kernel/prompt-assembler.mjs +336 -0
- package/src/kernel/version.mjs +7 -0
- package/src/kernel/voice-profile.mjs +180 -0
- package/src/mcp/stdio-server.mjs +442 -0
- package/src/runners/auto-fix.mjs +74 -0
- package/src/runners/interactive-tty.mjs +488 -0
- package/src/runners/reporters.mjs +272 -0
- package/src/runtime/chunker.mjs +87 -0
- package/src/runtime/json-extract.mjs +144 -0
- package/src/runtime/privacy-gate.mjs +97 -0
- package/src/runtime/providers/anthropic.mjs +65 -0
- package/src/runtime/providers/cloud.mjs +138 -0
- package/src/runtime/providers/gemini.mjs +91 -0
- package/src/runtime/providers/local-model.mjs +147 -0
- package/src/runtime/providers/openai-compat.mjs +130 -0
- package/src/runtime/router.mjs +324 -0
- package/src/runtime/worklog.mjs +904 -0
- package/src/sdk/index.mjs +137 -0
- package/models/manifest.json +0 -90
- package/models/pocket-slop-v1.json +0 -1
- package/packs/business-brief/pack.json +0 -937
- package/packs/core/pack.json +0 -209
- package/packs/deck-and-ui/pack.json +0 -539
- package/packs/engineering-spec/pack.json +0 -144
- package/packs/executive-deck/pack.json +0 -98
- package/packs/literary-essay/pack.json +0 -344
- package/packs/regulated-comms/pack.json +0 -99
- package/patterns/ai-tic-rubric.json +0 -252
- package/patterns/banks/composite-fusion.json +0 -48
- package/patterns/banks/discourse-rhythm.json +0 -95
- package/patterns/banks/lexical-signals.json +0 -92
- package/patterns/banks/syntactic-frames.json +0 -52
- package/patterns/banks/visual-deck.json +0 -44
- package/patterns/dimensions/artifacts.json +0 -121
- package/patterns/dimensions/discourse.json +0 -438
- package/patterns/dimensions/lexical.json +0 -198
- package/patterns/dimensions/rhythm.json +0 -258
- package/patterns/dimensions/syntactic.json +0 -285
- package/patterns/dimensions/visual-and-deck.json +0 -530
- package/patterns/taxonomy.json +0 -112
- package/src/core.mjs +0 -5497
- package/src/dislop/review-picker.vim +0 -114
- package/src/local-model.mjs +0 -997
- package/src/pattern-engine.mjs +0 -1003
- package/src/pocket-model.mjs +0 -729
- package/src/review-apply.mjs +0 -151
- package/src/review-client.mjs +0 -1073
package/packs/core/pack.json
DELETED
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": "dislop.pack/2",
|
|
3
|
-
"id": "core",
|
|
4
|
-
"version": "0.3.0",
|
|
5
|
-
"tier": "invariant",
|
|
6
|
-
"extends": [],
|
|
7
|
-
"name": {
|
|
8
|
-
"en": "AI Delivery Artifacts",
|
|
9
|
-
"zh": "AI 残留硬伤"
|
|
10
|
-
},
|
|
11
|
-
"summary": {
|
|
12
|
-
"en": "Clear AI-generation artifacts enabled across every pack: stray chatbot greetings, unfilled placeholders, raw Markdown pasted into Word/PowerPoint, and dead placeholder links/buttons in generated UI.",
|
|
13
|
-
"zh": "所有规则包默认开启的明显 AI 残留硬伤:留在正文里的 AI 寒暄、未填占位符、贴进 Word/PPT 没渲染的裸 Markdown,以及 AI 网页里的空链接与假按钮。"
|
|
14
|
-
},
|
|
15
|
-
"modalities": [
|
|
16
|
-
"markdown",
|
|
17
|
-
"text",
|
|
18
|
-
"html",
|
|
19
|
-
"css",
|
|
20
|
-
"jsx",
|
|
21
|
-
"svg",
|
|
22
|
-
"docx",
|
|
23
|
-
"pptx",
|
|
24
|
-
"pdf",
|
|
25
|
-
"image"
|
|
26
|
-
],
|
|
27
|
-
"thresholds": {},
|
|
28
|
-
"rules": [
|
|
29
|
-
{
|
|
30
|
-
"id": "unfilled-placeholder",
|
|
31
|
-
"tier": "invariant",
|
|
32
|
-
"severity": "error",
|
|
33
|
-
"family": "hygiene/placeholder",
|
|
34
|
-
"probe": "regex",
|
|
35
|
-
"zones": ["prose", "ui-text"],
|
|
36
|
-
"modalities": ["markdown", "text", "html", "jsx", "svg", "docx", "pptx", "pdf"],
|
|
37
|
-
"patterns": [
|
|
38
|
-
"(?<![A-Za-z])(?:lorem ipsum|dolor sit amet)(?![A-Za-z])",
|
|
39
|
-
"\\[(?:insert|add|your|placeholder|tbd|todo)(?:\\s+[^\\]\\n]{1,50})?\\](?!\\s*\\()",
|
|
40
|
-
"\\[(?:待补充|待填写|此处插入|占位符)\\](?!\\s*\\()",
|
|
41
|
-
"\\{\\{\\s*[A-Za-z_][A-Za-z0-9_.-]{0,40}\\s*\\}\\}",
|
|
42
|
-
"【[^】\\n]{0,20}(?:待补充|待填写|此处插入|占位符)[^】\\n]{0,20}】",
|
|
43
|
-
"(?:Click to add (?:title|subtitle|text)|单击此处添加(?:标题|副标题|文本))"
|
|
44
|
-
],
|
|
45
|
-
"message": {
|
|
46
|
-
"en": "Unfilled AI template placeholder or dummy copy.",
|
|
47
|
-
"zh": "存在未替换的模板占位符或测试假文。"
|
|
48
|
-
},
|
|
49
|
-
"deletionTest": {
|
|
50
|
-
"en": "Supply the real value before sending, or delete the unfinished line instead of leaving a bracketed marker.",
|
|
51
|
-
"zh": "发稿前填入真实信息,或者直接删掉这一句,不要留括号占位。"
|
|
52
|
-
},
|
|
53
|
-
"exemplar": {
|
|
54
|
-
"bad": "Q3 settlement ran across 14 gateways; p95 latency was [insert p95 latency].",
|
|
55
|
-
"trap": "Q3 settlement improved dramatically across 14 gateways.",
|
|
56
|
-
"good": "Q3 settlement ran across 14 gateways (p95 latency pending load-test sign-off).",
|
|
57
|
-
"note": {
|
|
58
|
-
"en": "State what is still pending or fill in the measured figure instead of leaving a bracket.",
|
|
59
|
-
"zh": "尚未测出的数据直说待补,或填入实测数值,不要留括号占位。"
|
|
60
|
-
},
|
|
61
|
-
"source": "original"
|
|
62
|
-
},
|
|
63
|
-
"fixtures": {
|
|
64
|
-
"hit": [
|
|
65
|
-
"Contact [insert account owner] before Friday.",
|
|
66
|
-
"Summary: {{project_summary}}",
|
|
67
|
-
"附录见【此处插入测试数据】。",
|
|
68
|
-
"本次灰度覆盖 [待填写] 个集群。"
|
|
69
|
-
],
|
|
70
|
-
"clean": [
|
|
71
|
-
"Contact the on-call engineer before Friday.",
|
|
72
|
-
"Array indexing uses items[0] in JavaScript.",
|
|
73
|
-
"Read [Your First GitHub Commit](https://example.com/guide) before opening a PR.",
|
|
74
|
-
"已完成第 3 节压测记录。"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"id": "chatbot-artifact",
|
|
80
|
-
"tier": "invariant",
|
|
81
|
-
"severity": "error",
|
|
82
|
-
"family": "hygiene/chat-residue",
|
|
83
|
-
"probe": "regex",
|
|
84
|
-
"zones": ["prose", "ui-text"],
|
|
85
|
-
"modalities": ["markdown", "text", "html", "jsx", "docx", "pptx", "pdf"],
|
|
86
|
-
"patterns": [
|
|
87
|
-
"(?:^|\\n)\\s*(?:Certainly|Sure|Absolutely|Of course|Happy to help|Glad to help)[!,.]?\\s+(?:[Hh]ere(?:'s|(?:\\s+it)?\\s+is|\\s+are)|[Bb]elow is)\\b",
|
|
88
|
-
"(?:^|\\n)\\s*Here(?:'s|\\s+is|\\s+are)\\s+(?:a|an|the|your)\\s+(?:revised|updated|polished|cleaned[- ]up|rewritten)\\s+",
|
|
89
|
-
"(?:^|\\n|[.!?]\\s+)\\s*As an AI(?:\\s+(?:language model|assistant))?(?:\\s*,|\\s+(?:I|we|my|here)\\b|\\s*$)",
|
|
90
|
-
"\\bAs an AI (?:language model|assistant)\\b",
|
|
91
|
-
"\\bAs an AI\\s*,\\s*(?:I|we|my)\\b",
|
|
92
|
-
"\\bI hope this helps[!.]?",
|
|
93
|
-
"\\bFeel free to (?:reach out|let me know|ask) if you (?:need|have) (?:anything|any (?:other |further )?questions)[!.]?",
|
|
94
|
-
"(?:^|\\n)\\s*(?:好的|当然可以|没问题)[,,!!]?\\s*(?:以下|下面)是",
|
|
95
|
-
"(?:^|\\n)\\s*以下是为您(?:整理|撰写|润色|生成|修改)的",
|
|
96
|
-
"(?:希望(?:这|以上内容)对(?:你|您)有(?:所)?帮助|如果(?:你|您)(?:还有|需要)(?:任何|其他)?(?:问题|帮助)[,,]?请随时告诉我|如需(?:进一步)?(?:调整|修改)[,,]?请随时(?:告诉我|告知))[!!。.]?",
|
|
97
|
-
"作为一个?\\s*AI(?:\\s*语言模型|\\s*助手)?",
|
|
98
|
-
"\\[oaicite:\\d+\\]",
|
|
99
|
-
"contentReference\\[oaicite:\\d+\\]",
|
|
100
|
-
"【\\d+†[^】\\n]{1,40}】",
|
|
101
|
-
"[?&]utm_source=(?:chatgpt\\.com|openai)"
|
|
102
|
-
],
|
|
103
|
-
"message": {
|
|
104
|
-
"en": "Unstripped chatbot wrapper sentence or AI search citation token.",
|
|
105
|
-
"zh": "残留未清理的 AI 对话寒暄壳或检索引用内部标记。"
|
|
106
|
-
},
|
|
107
|
-
"deletionTest": {
|
|
108
|
-
"en": "Delete the conversational wrapper or internal citation token completely; start at the actual subject.",
|
|
109
|
-
"zh": "直接删掉对话寒暄句或内部引用残迹,正文从实际内容开始。"
|
|
110
|
-
},
|
|
111
|
-
"exemplar": {
|
|
112
|
-
"bad": "Certainly! Here is the revised rollout note: Cluster B migrates on November 24 at 02:00 UTC.",
|
|
113
|
-
"trap": "Cluster B isn't just migrating — it's entering a new chapter on November 24 at 02:00 UTC.",
|
|
114
|
-
"good": "Cluster B migrates on November 24 at 02:00 UTC.",
|
|
115
|
-
"note": {
|
|
116
|
-
"en": "Strip the chat preamble and leave the rollout note intact.",
|
|
117
|
-
"zh": "删去对话开场白,直接进入正题。"
|
|
118
|
-
},
|
|
119
|
-
"source": "original"
|
|
120
|
-
},
|
|
121
|
-
"fixtures": {
|
|
122
|
-
"hit": [
|
|
123
|
-
"Certainly! Here is the summary of Q2 churn.",
|
|
124
|
-
"Happy to help! Below is the updated RFC.",
|
|
125
|
-
"Latency dropped 18%【4†source】.",
|
|
126
|
-
"好的,以下是修改后的会议纪要:周三上线。",
|
|
127
|
-
"好的,以下是本周进展:接口延迟降到 120ms。",
|
|
128
|
-
"周二 10:00 切流。希望这对你有帮助!",
|
|
129
|
-
"以下是为您整理的会议纪要:周四发布。",
|
|
130
|
-
"Here is the revised launch note: deploys at 14:00 UTC.",
|
|
131
|
-
"作为一个 AI 助手,我建议先做灰度验证。",
|
|
132
|
-
"As an AI, I cannot verify live deployment pricing.",
|
|
133
|
-
"Certainly! Here it is: Exports finish in up to 12 minutes.",
|
|
134
|
-
"Here's a polished version of your release note: deploys at 14:00 UTC.",
|
|
135
|
-
"希望以上内容对您有所帮助,如需调整请随时告诉我。"
|
|
136
|
-
],
|
|
137
|
-
"clean": [
|
|
138
|
-
"Sure enough, the cache warmed within 40 seconds.",
|
|
139
|
-
"Here is the architecture diagram for service B.",
|
|
140
|
-
"Q2 churn dropped from 4.1% to 3.4%.",
|
|
141
|
-
"会议纪要:周三上线。",
|
|
142
|
-
"以下是本周进展:接口延迟降到 120ms。",
|
|
143
|
-
"The daemon monitors queue depth every 5 seconds.",
|
|
144
|
-
"The reviewer flagged the subtitle as an AI microcopy tic in the prototype."
|
|
145
|
-
]
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"id": "markdown-leak",
|
|
150
|
-
"tier": "invariant",
|
|
151
|
-
"severity": "error",
|
|
152
|
-
"family": "hygiene/markdown-leak",
|
|
153
|
-
"probe": "office-markdown-leak",
|
|
154
|
-
"modalities": ["docx", "pptx", "pdf"],
|
|
155
|
-
"message": {
|
|
156
|
-
"en": "Raw Markdown syntax (`**bold**` or `## heading`) pasted unrendered into Word or PowerPoint.",
|
|
157
|
-
"zh": "Word 或 PowerPoint 文本中残留未渲染的原始 Markdown 标记(如 `**加粗**` 或 `## 标题`)。"
|
|
158
|
-
},
|
|
159
|
-
"deletionTest": {
|
|
160
|
-
"en": "Convert the raw asterisks or hash marks into native Word/PowerPoint formatting.",
|
|
161
|
-
"zh": "去掉原始星号或井号,改用 Word/PowerPoint 原生样式或加粗格式。"
|
|
162
|
-
},
|
|
163
|
-
"exemplar": {
|
|
164
|
-
"bad": "**Key Milestone**: Ship v0.2 parser before Friday.",
|
|
165
|
-
"trap": "Key Milestone — a game-changing v0.2 parser ships Friday.",
|
|
166
|
-
"good": "Key Milestone: Ship v0.2 parser before Friday.",
|
|
167
|
-
"note": {
|
|
168
|
-
"en": "Apply native run bolding in DOCX/PPTX rather than pasting raw Markdown asterisks.",
|
|
169
|
-
"zh": "在 Office 文档中使用原生字体加粗,不保留裸露的星号。"
|
|
170
|
-
},
|
|
171
|
-
"source": "original"
|
|
172
|
-
},
|
|
173
|
-
"fixtures": {
|
|
174
|
-
"hit": ["DOCX_RAW_MARKDOWN:**Key Milestone**: Ship v0.2"],
|
|
175
|
-
"clean": ["DOCX_PLAIN_RUN:Key Milestone: Ship v0.2"]
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"id": "ui-dead-control",
|
|
180
|
-
"tier": "invariant",
|
|
181
|
-
"severity": "error",
|
|
182
|
-
"family": "ui/dead-control",
|
|
183
|
-
"probe": "ui-dead-control",
|
|
184
|
-
"modalities": ["html", "jsx"],
|
|
185
|
-
"message": {
|
|
186
|
-
"en": "Placeholder `href=\"#\"` link, empty button, or unexplained disabled button typical of generated UI mockups.",
|
|
187
|
-
"zh": "AI 生成网页常见的空跳转链接(`href=\"#\"`)、空按钮或未说明原因的占位禁用按钮。"
|
|
188
|
-
},
|
|
189
|
-
"deletionTest": {
|
|
190
|
-
"en": "Wire the control to a real destination, explain why it is disabled via `title`/`aria-describedby`, or remove the fake button.",
|
|
191
|
-
"zh": "接上真实链接或交互,或者说明禁用原因;没做的功能直接删掉按钮。"
|
|
192
|
-
},
|
|
193
|
-
"exemplar": {
|
|
194
|
-
"bad": "<a href=\"#\" class=\"btn\">Download report</a>",
|
|
195
|
-
"trap": "<button disabled class=\"btn\">Download AI-Powered Insights</button>",
|
|
196
|
-
"good": "<a href=\"./reports/q3-audit.pdf\" class=\"btn\">Download Q3 audit (PDF)</a>",
|
|
197
|
-
"note": {
|
|
198
|
-
"en": "Point links to real targets and drop placeholder buttons that do nothing.",
|
|
199
|
-
"zh": "链接指向真实地址,不要摆放点不动的假按钮。"
|
|
200
|
-
},
|
|
201
|
-
"source": "original"
|
|
202
|
-
},
|
|
203
|
-
"fixtures": {
|
|
204
|
-
"hit": ["<a href=\"#\">Read specification</a>"],
|
|
205
|
-
"clean": ["<a href=\"/docs/spec.html\">Read specification</a>"]
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
]
|
|
209
|
-
}
|