dislop 1.0.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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/PRODUCT.md +2 -2
- package/README.md +34 -33
- package/README.zh-CN.md +65 -61
- package/gemini-extension.json +1 -1
- package/package.json +2 -2
- package/packs/common/artifact-qa/scripts/index.mjs +64 -2
- package/packs/en/artifact-qa/scripts/index.mjs +1 -1
- package/packs/en/prose/scripts/index.mjs +3 -0
- package/plugin.json +1 -1
- package/server.json +2 -2
- package/skills/dislop/SKILL.md +1 -1
- package/skills/dislop/agents/openai.yaml +1 -1
- package/skills/dislop/references/essay.md +5 -5
- package/skills/dislop/references/essay.zh-CN.md +5 -5
- package/skills/dislop/references/office.md +4 -4
- package/skills/dislop/references/office.zh-CN.md +4 -4
- package/skills/dislop/references/web-ui.md +3 -3
- package/skills/dislop/references/web-ui.zh-CN.md +3 -3
- package/skills/dislop/references/work-docs.md +6 -6
- package/skills/dislop/references/work-docs.zh-CN.md +6 -6
- package/src/cli-main.mjs +88 -6
- package/src/commands/check-fix.mjs +170 -15
- package/src/commands/doctor.mjs +23 -1
- package/src/commands/init.mjs +24 -18
- package/src/commands/packs.mjs +41 -4
- package/src/commands/verify.mjs +36 -4
- package/src/commands/voice.mjs +1 -1
- package/src/commands/worklog.mjs +424 -0
- package/src/kernel/config.mjs +546 -19
- package/src/kernel/document-model.mjs +30 -10
- package/src/kernel/fact-gate.mjs +160 -0
- package/src/kernel/file-discovery.mjs +168 -11
- package/src/kernel/ooxml-binary.mjs +86 -0
- package/src/kernel/pack-loader.mjs +107 -21
- package/src/kernel/pack-validator.mjs +491 -0
- package/src/kernel/patcher.mjs +177 -47
- package/src/kernel/pipeline.mjs +284 -21
- package/src/kernel/prompt-assembler.mjs +37 -8
- package/src/kernel/version.mjs +7 -0
- package/src/kernel/voice-profile.mjs +3 -0
- package/src/mcp/stdio-server.mjs +71 -1
- package/src/runners/auto-fix.mjs +17 -2
- package/src/runners/interactive-tty.mjs +32 -5
- package/src/runners/reporters.mjs +18 -2
- package/src/runtime/providers/cloud.mjs +4 -2
- package/src/runtime/providers/local-model.mjs +8 -0
- package/src/runtime/router.mjs +11 -2
- package/src/runtime/worklog.mjs +904 -0
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Official dislop plugin marketplace: pure-doc Agent Skill and Official Cloud MCP.",
|
|
9
|
-
"version": "1.0
|
|
9
|
+
"version": "1.1.0"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "dislop",
|
|
14
14
|
"source": "./",
|
|
15
15
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
16
|
-
"version": "1.0
|
|
16
|
+
"version": "1.1.0",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "dislop-ai",
|
|
19
19
|
"url": "https://dislop.com"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dislop-ai",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dislop-ai",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dislop-ai",
|
package/PRODUCT.md
CHANGED
|
@@ -11,8 +11,8 @@ Cutting AI slop is real productivity.
|
|
|
11
11
|
## Architectural Pillars
|
|
12
12
|
|
|
13
13
|
1. **Micro-Kernel + Multi-Modal Packs (`dislop/sdk`)**:
|
|
14
|
-
- Core owns document coordinate parsing (`DocumentModel`), immutable safety invariants, the Dual Fact Gate, 3-Tier LLM routing, lossless
|
|
15
|
-
- Rules and modality probes live in pluggable Packs organized by scope/language and scenario (`packs/common/*`, `packs/en/*`, `packs/zh/*`),
|
|
14
|
+
- Core owns document coordinate parsing (`DocumentModel`), untrusted repo vs. user config layering (`overrides`, declarative `.dislop/rules.json`, `extraPacks`), immutable safety invariants, the Dual Fact Gate, 3-Tier LLM routing (`local`, `auto`, `cloud`, `byok`, `off`), lossless OOXML patching, and CI exit-code arbitration (`--fail-on none|error|warning`).
|
|
15
|
+
- Rules and modality probes live in pluggable Packs organized by scope/language and scenario (`packs/common/*`, `packs/en/*`, `packs/zh/*`), validated via `dislop packs lint <path>`.
|
|
16
16
|
2. **Dual-Track Taxonomy (`Defect` vs. `Suggestion`)**:
|
|
17
17
|
- Editorial prose findings are `Suggestion`s (`strong | moderate | hint`) and never block CI (`Exit Code 0`).
|
|
18
18
|
- Objective delivery bugs (placeholders, chatbot residue, broken links, raw Markdown leaks in `.docx`/`.pptx`) are `Defect`s (`error | warning`) emitted strictly by deterministic `pack.check()` hooks (`Exit Code 1` on unresolved `Defect: error`).
|
package/README.md
CHANGED
|
@@ -124,14 +124,14 @@ dislop check slop-samples/en.md --engine cloud --format agent
|
|
|
124
124
|
|
|
125
125
|
### Tier 2: BYOK / OpenAI-Compatible Endpoint (`--engine byok`)
|
|
126
126
|
|
|
127
|
-
Combines deterministic `DEFECT` detection with frontier semantic `SUGGESTION` analysis—catching unchosen `Option A / Option B` branches (`[P10-S1|L16]`), disguised prose placeholders (`Mention the Q3 error-budget burn rate here once SRE signs off` at `[P10-S3|L16]`), and implicit assistant handoffs (`Based on the notes you shared...` at `[P3-S2|L5]`)
|
|
127
|
+
Combines deterministic `DEFECT` detection with frontier semantic `SUGGESTION` analysis—catching unchosen `Option A / Option B` branches (`[P10-S1|L16]`), disguised prose placeholders (`Mention the Q3 error-budget burn rate here once SRE signs off` at `[P10-S3|L16]`), and implicit assistant handoffs (`Based on the notes you shared...` at `[P3-S2|L5]`):
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
|
-
dislop check slop-samples/en.md --engine byok --format agent
|
|
130
|
+
dislop check slop-samples/en.md --engine byok --provider gemini --format agent
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
```text
|
|
134
|
-
# dislop file=slop-samples/en.md engine=byok:
|
|
134
|
+
# dislop file=slop-samples/en.md engine=byok:gemini-3.8-flash defects=8 suggestions=9
|
|
135
135
|
[P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
|
|
136
136
|
quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
|
|
137
137
|
reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
|
|
@@ -164,17 +164,13 @@ dislop check slop-samples/en.md --engine byok --format agent
|
|
|
164
164
|
quote: "[incident timeline](#)"
|
|
165
165
|
reason: Placeholder non-navigating link target '#'.
|
|
166
166
|
prompt: Wire a real destination URL or use a <button type="button"> control.
|
|
167
|
-
[P1-S1|L1] SUGGESTION(strong,manual) en/artifact-qa/implicit-assistant-framing
|
|
168
|
-
quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
|
|
169
|
-
reason: This announces delivery of a draft to its requester. The title already introduces the migration to readers.
|
|
170
|
-
note: Fact Gate withheld replacement (dropped proper noun/entity: Q3).
|
|
171
167
|
[P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
|
|
172
168
|
quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
|
|
173
169
|
reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
|
|
174
170
|
fix: DELETE
|
|
175
171
|
[P3-S2|L5] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
|
|
176
172
|
quote: "Based on the notes you shared, I have organized the key findings for [Company Name] below [oaicite:1]."
|
|
177
|
-
reason:
|
|
173
|
+
reason: Assistant handoff sentence explaining chatbot actions to the prompt author.
|
|
178
174
|
fix: DELETE
|
|
179
175
|
[P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
|
|
180
176
|
quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
|
|
@@ -184,38 +180,22 @@ dislop check slop-samples/en.md --engine byok --format agent
|
|
|
184
180
|
quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
|
|
185
181
|
reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
|
|
186
182
|
fix: "It is a new reliability baseline for our checkout pipeline."
|
|
187
|
-
[P5-S2|L9] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
|
|
188
|
-
quote: "Review the [incident timeline](#) or open the [on-call runbook]() before Friday, and assign follow-up verification to [TODO: confirm incident owner]."
|
|
189
|
-
reason: The TODO is an instruction to the writer, not an assignee. The timeline and runbook links also lack usable destinations, so readers cannot act on the Friday instruction as written.
|
|
190
|
-
prompt: Supply [incident timeline URL], [on-call runbook URL], and [confirmed incident owner] while retaining the Friday instruction.
|
|
191
183
|
[P10-S1|L16] SUGGESTION(strong,manual) common/artifact-qa/unchosen-draft-options
|
|
192
184
|
quote: "Option A: Roll out pooler settings to EU shards on Tuesday."
|
|
193
|
-
reason:
|
|
194
|
-
prompt:
|
|
185
|
+
reason: Inline text retains unchosen draft alternatives left over from drafting.
|
|
186
|
+
prompt: Select either [Option A] or [Option B] and remove the unused alternative.
|
|
195
187
|
[P10-S3|L16] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
|
|
196
188
|
quote: "Mention the Q3 error-budget burn rate here once SRE signs off."
|
|
197
|
-
reason:
|
|
198
|
-
prompt:
|
|
189
|
+
reason: Prose note formulated as an author-facing reminder rather than published postmortem content.
|
|
190
|
+
prompt: Insert the confirmed [Q3 error-budget burn rate percentage] from SRE, or remove the note.
|
|
199
191
|
[P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
|
|
200
192
|
quote: "Looking ahead, the possibilities are truly endless."
|
|
201
193
|
reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
|
|
202
194
|
fix: DELETE
|
|
203
|
-
[P12-S1|L20] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
|
|
204
|
-
quote: "I hope this helps!"
|
|
205
|
-
reason: This closes a conversation with the requester rather than the postmortem.
|
|
206
|
-
fix: DELETE
|
|
207
|
-
[P12-S2|L20] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
|
|
208
|
-
quote: "Let me know if you'd like any further adjustments."
|
|
209
|
-
reason: The offer concerns revisions to the draft, not follow-up work on the migration.
|
|
210
|
-
fix: DELETE
|
|
211
195
|
[P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
|
|
212
196
|
quote: "Why does this matter?"
|
|
213
197
|
reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
|
|
214
198
|
fix: DELETE
|
|
215
|
-
[P11-S1|L18] SUGGESTION(moderate,review) en/prose/moralizing-closer
|
|
216
|
-
quote: "Looking ahead, the possibilities are truly endless."
|
|
217
|
-
reason: The optimistic sign-off names no operational consequence or next step. The rollout decision, once confirmed, makes a more useful ending.
|
|
218
|
-
fix: DELETE
|
|
219
199
|
[P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
|
|
220
200
|
quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
|
|
221
201
|
reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
|
|
@@ -357,27 +337,48 @@ dislop check slop-samples/en.md --engine local --format agent
|
|
|
357
337
|
## CLI Reference
|
|
358
338
|
|
|
359
339
|
```text
|
|
360
|
-
dislop check <files/globs
|
|
340
|
+
dislop check <files/globs... | -> [options] Read-only Dual-Track linter (`-` reads stdin with `--stdin-filename`; `--changed` / `--since <ref>` scans git diffs)
|
|
361
341
|
dislop fix <files/globs...> [options] Interactive TTY hunk loop, or batch safe fixes (--auto)
|
|
362
|
-
dislop verify <before> <after> [--json] Verify edits preserved facts,
|
|
342
|
+
dislop verify <before> <after> [--json] Verify edits preserved facts, qualifiers, polarity, links, and metrics
|
|
363
343
|
dislop verify --git [ref] <file> [--json] Verify working-tree edits against a Git revision
|
|
364
|
-
dislop init [--global] [--voice <glob>] Initialize .dislop.json or ~/.config/dislop/config.json
|
|
344
|
+
dislop init [--global] [--voice <glob>] Initialize project .dislop.json or ~/.config/dislop/config.json
|
|
365
345
|
dislop login [--token <dslp_*>] Save Official Cloud credentials
|
|
366
346
|
dislop logout Remove Official Cloud credentials
|
|
367
347
|
dislop voice <extract|show|clear> [files] Manage personal voice profile (voice.json)
|
|
368
348
|
dislop model <list|pull|rm> [name] Manage Tier 3 local models (requires Ollama)
|
|
369
|
-
dislop packs [--json]
|
|
349
|
+
dislop packs [list|lint <path>] [--json] List built-in Packs or lint external .pack.md / Pack dirs
|
|
370
350
|
dislop doctor [--json] Diagnose active routing tier, Ollama status, auth, config, and Packs
|
|
351
|
+
dislop worklog <status|list|show|stats|reflect|clear> Inspect local dev worklog & reflection summaries
|
|
371
352
|
dislop mcp Start local stdio MCP server (also `dislop-mcp`)
|
|
372
353
|
```
|
|
373
354
|
|
|
374
|
-
|
|
355
|
+
Key flags: `--fail-on <none|error|warning>` controls Defect CI exit thresholds (Suggestions remain non-blocking at Exit `0`), `--stdin-filename <name>` sets stdin format, and `--changed` / `--since <ref>` scope checks to modified git files.
|
|
356
|
+
|
|
357
|
+
## Configuration Layering (`~/.config/dislop/config.json` vs `.dislop.json`)
|
|
358
|
+
|
|
359
|
+
Shared repo `.dislop.json` files are isolated under untrusted linter rules (`routing` limited to `"local"` or `"off"`, per-glob `overrides`, `extraPacks`, `rules`, `failOn`, `ignore`, and `voice.referenceFiles` inside the repo root). Put personal LLM backends and credentials ONLY in `~/.config/dislop/config.json` or an untracked `.dislop.local.json`:
|
|
360
|
+
|
|
361
|
+
```json
|
|
362
|
+
{
|
|
363
|
+
"routing": "local",
|
|
364
|
+
"ignore": [".private/**"],
|
|
365
|
+
"failOn": "error",
|
|
366
|
+
"overrides": [
|
|
367
|
+
{ "files": ["docs/**/*.md"], "packs": ["prose"] },
|
|
368
|
+
{ "files": ["site/**/*.html"], "packs": ["web-ui"] }
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
User config (`~/.config/dislop/config.json`) holds credentials & providers:
|
|
375
374
|
|
|
376
375
|
```json
|
|
377
376
|
{
|
|
378
377
|
"routing": "byok",
|
|
379
378
|
"activeProvider": "openai-default",
|
|
380
379
|
"approvedHosts": ["api.openai.com"],
|
|
380
|
+
"ignore": [".private/**"],
|
|
381
|
+
"concurrency": 4,
|
|
381
382
|
"providers": {
|
|
382
383
|
"openai-default": {
|
|
383
384
|
"protocol": "openai",
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](./README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**去 AI 味才是真正的生产力!**
|
|
6
6
|
|
|
7
7
|
`dislop` 是一款构建在零第三方运行时依赖 Node.js(`>= 20`)微内核上的可插拔文稿与交付物 Linter。它在正式发稿、提交 PR 或导出客户交付物前,自动审计 Markdown、纯文本、HTML/CSS/JSX/TSX/SVG、Word(`.docx`)、PowerPoint(`.pptx`)、PDF 与位图图片,将客观交付**缺陷(Defect)**与非阻断的文风去 AI 味**建议(Suggestion)**严格隔离。
|
|
8
8
|
|
|
@@ -124,39 +124,38 @@ dislop fix slop-samples/zh-CN.md --auto --dry-run --no-llm
|
|
|
124
124
|
```diff
|
|
125
125
|
--- a/slop-samples/zh-CN.md
|
|
126
126
|
+++ b/slop-samples/zh-CN.md
|
|
127
|
-
@@ -1,
|
|
127
|
+
@@ -1,1 +1,1 @@
|
|
128
128
|
-当然可以!以下是为您润色后的第三季度存储集群迁移复盘报告。
|
|
129
|
-
-
|
|
130
|
-
-# 第三季度存储层迁移复盘纪要
|
|
131
|
-
-
|
|
132
|
-
-在当今数字化转型加速推进的时代浪潮下,这一举措无疑具有举足轻重的战略意义。根据您提供的会议纪要,我已将 [公司名称](合作方某某科技)的核心发现梳理如下 [oaicite:1]。
|
|
133
|
-
-
|
|
134
|
-
-值得注意的是,PostgreSQL 在 `{{cluster_region}}` 区域的 4 个只读副本上 p95 查询延迟从 142ms 降至 18ms。为什么这一点如此重要?通过 `--pool-mode=transaction` 启用事务级连接池后,空闲连接内存开销降低了 64%,且未中断任何活跃会话。
|
|
135
|
-
-
|
|
136
|
-
-这不是一次简单的参数微调,而是核心结账链路可靠性基线的重建。请在周五前查阅 [故障时间线](#) 或打开 [值班应急手册](),并将后续压测核验指派给 [TODO: 确认故障负责人]。
|
|
137
|
-
-
|
|
138
|
-
-本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:混沌演练自动主从切换耗时控制在 9 秒以内,工作节点峰值 RSS 内存低于 4.2GB,慢查询日志采样阈值收紧至 50ms。
|
|
139
|
-
-
|
|
140
|
-
-方案 A:周二将连接池参数灰度至欧洲分片。 / 方案 B:等账单冻结窗口结束后再推欧洲分片。待 SRE 团队签字确认后在此处补上第三季度错误预算消耗率。
|
|
141
|
-
+
|
|
142
129
|
+# 第三季度存储层迁移复盘纪要
|
|
143
|
-
+
|
|
130
|
+
@@ -2,2 +2,2 @@
|
|
131
|
+
|
|
132
|
+
-# 第三季度存储层迁移复盘纪要
|
|
144
133
|
+根据您提供的会议纪要,我已将 [公司名称](合作方某某科技)的核心发现梳理如下。
|
|
145
|
-
+
|
|
134
|
+
@@ -4,2 +4,2 @@
|
|
135
|
+
|
|
136
|
+
-在当今数字化转型加速推进的时代浪潮下,这一举措无疑具有举足轻重的战略意义。根据您提供的会议纪要,我已将 [公司名称](合作方某某科技)的核心发现梳理如下 [oaicite:1]。
|
|
146
137
|
+PostgreSQL 在 `{{cluster_region}}` 区域的 4 个只读副本上 p95 查询延迟从 142ms 降至 18ms。为什么这一点如此重要?通过 `--pool-mode=transaction` 启用事务级连接池后,空闲连接内存开销降低了 64%,且未中断任何活跃会话。
|
|
147
|
-
+
|
|
138
|
+
@@ -6,2 +6,2 @@
|
|
139
|
+
|
|
140
|
+
-值得注意的是,PostgreSQL 在 `{{cluster_region}}` 区域的 4 个只读副本上 p95 查询延迟从 142ms 降至 18ms。为什么这一点如此重要?通过 `--pool-mode=transaction` 启用事务级连接池后,空闲连接内存开销降低了 64%,且未中断任何活跃会话。
|
|
148
141
|
+这不是一次简单的参数微调,而是核心结账链路可靠性基线的重建。请在周五前查阅 [故障时间线](#) 或打开 [值班应急手册](),并将后续压测核验指派给 [TODO: 确认故障负责人]。
|
|
149
|
-
+
|
|
142
|
+
@@ -8,2 +8,2 @@
|
|
143
|
+
|
|
144
|
+
-这不是一次简单的参数微调,而是核心结账链路可靠性基线的重建。请在周五前查阅 [故障时间线](#) 或打开 [值班应急手册](),并将后续压测核验指派给 [TODO: 确认故障负责人]。
|
|
150
145
|
+本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:混沌演练自动主从切换耗时控制在 9 秒以内,工作节点峰值 RSS 内存低于 4.2GB,慢查询日志采样阈值收紧至 50ms。
|
|
151
|
-
+
|
|
146
|
+
@@ -10,2 +10,2 @@
|
|
147
|
+
|
|
148
|
+
-本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:混沌演练自动主从切换耗时控制在 9 秒以内,工作节点峰值 RSS 内存低于 4.2GB,慢查询日志采样阈值收紧至 50ms。
|
|
152
149
|
+方案 A:周二将连接池参数灰度至欧洲分片。 / 方案 B:等账单冻结窗口结束后再推欧洲分片。待 SRE 团队签字确认后在此处补上第三季度错误预算消耗率。
|
|
153
|
-
+
|
|
154
|
-
@@ -14,5 +14,1 @@
|
|
150
|
+
@@ -12,7 +12,2 @@
|
|
155
151
|
|
|
152
|
+
-方案 A:周二将连接池参数灰度至欧洲分片。 / 方案 B:等账单冻结窗口结束后再推欧洲分片。待 SRE 团队签字确认后在此处补上第三季度错误预算消耗率。
|
|
153
|
+
-
|
|
156
154
|
-展望未来,我们将继续砥砺前行,构筑更加稳健的数字底座!
|
|
157
155
|
-
|
|
158
156
|
-希望以上内容对您有所帮助!如果您需要进一步调整,请随时告诉我。
|
|
159
157
|
-
|
|
158
|
+
+
|
|
160
159
|
```
|
|
161
160
|
|
|
162
161
|
### 用例 3:Tier 1 官方云端引擎(`--engine cloud`)
|
|
@@ -170,14 +169,14 @@ dislop check slop-samples/zh-CN.md --engine cloud --format agent
|
|
|
170
169
|
|
|
171
170
|
### 用例 4:Tier 2 自有密钥 / OpenAI 兼容网关深度语义审校(`--engine byok`)
|
|
172
171
|
|
|
173
|
-
在确定性规则基础上叠加前沿大模型语义理解,精准捕获绕过固定正则的隐性交付问题:面向委托人的交差过渡句(`根据您提供的会议纪要…` `[P3-S2|L5]`)、未二选一的并列排期草稿(`方案 A … / 方案 B …` `[P7-
|
|
172
|
+
在确定性规则基础上叠加前沿大模型语义理解,精准捕获绕过固定正则的隐性交付问题:面向委托人的交差过渡句(`根据您提供的会议纪要…` `[P3-S2|L5]`)、合作方占位假名(`某某科技` `[P3-S2|L5]`)、未二选一的并列排期草稿(`方案 A … / 方案 B …` `[P7-S2|L13]`)、混入正文的作者自留备忘(`待 SRE 团队签字确认后在此处补上第三季度错误预算消耗率。` `[P7-S3|L13]`),并直接将 `本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:…` 收敛为 `本次架构升级的具体收益包括:…`(`[P6-S1|L11]`):
|
|
174
173
|
|
|
175
174
|
```bash
|
|
176
|
-
dislop check slop-samples/zh-CN.md --engine byok --format agent
|
|
175
|
+
dislop check slop-samples/zh-CN.md --engine byok --provider gemini --format agent
|
|
177
176
|
```
|
|
178
177
|
|
|
179
178
|
```text
|
|
180
|
-
# dislop file=slop-samples/zh-CN.md engine=byok:
|
|
179
|
+
# dislop file=slop-samples/zh-CN.md engine=byok:gemini-3.8-flash defects=8 suggestions=10
|
|
181
180
|
[P1-S1|L1] DEFECT(error,safe) zh/artifact-qa/chatbot-artifact
|
|
182
181
|
quote: "当然可以!以下是为您润色后的第三季度存储集群迁移复盘报告。"
|
|
183
182
|
reason: 正文中遗留了 AI 对话寒暄开场或客套收尾壳,可直接安全删除。
|
|
@@ -210,50 +209,34 @@ dislop check slop-samples/zh-CN.md --engine byok --format agent
|
|
|
210
209
|
quote: "[故障时间线](#)"
|
|
211
210
|
reason: Placeholder non-navigating link target '#'.
|
|
212
211
|
prompt: Wire a real destination URL or use a <button type="button"> control.
|
|
213
|
-
[P1-S1|L1] SUGGESTION(strong,review) zh/artifact-qa/implicit-assistant-framing
|
|
214
|
-
quote: "当然可以!以下是为您润色后的第三季度存储集群迁移复盘报告。"
|
|
215
|
-
reason: 这句话向委托人交代润色任务已完成。下一行标题已说明报告主题,可以直接从标题开始。
|
|
216
|
-
fix: DELETE
|
|
217
212
|
[P3-S1|L5] SUGGESTION(strong,safe) zh/prose/hollow-transition
|
|
218
213
|
quote: "在当今数字化转型加速推进的时代浪潮下,这一举措无疑具有举足轻重的战略意义。"
|
|
219
214
|
reason: 零信息增量的宏大叙事套话,执行破坏性删除测试后不影响上下文事实与因果推进。
|
|
220
215
|
fix: DELETE
|
|
221
216
|
[P3-S2|L5] SUGGESTION(strong,review) zh/artifact-qa/implicit-assistant-framing
|
|
222
217
|
quote: "根据您提供的会议纪要,我已将 [公司名称](合作方某某科技)的核心发现梳理如下 [oaicite:1]。"
|
|
223
|
-
reason:
|
|
218
|
+
reason: 向提示词提问者汇报的助手过渡句,并残留引用标记,不应出现在正式复盘文档中。
|
|
224
219
|
fix: DELETE
|
|
225
220
|
[P5-S1|L9] SUGGESTION(strong,review) zh/prose/unprompted-negation
|
|
226
221
|
quote: "这不是一次简单的参数微调,而是核心结账链路可靠性基线的重建。"
|
|
227
222
|
reason: 移除无前文语境支撑的“不是…而是…”伪深刻对比壳,直接陈述后半句内容。
|
|
228
223
|
fix: "这是核心结账链路可靠性基线的重建。"
|
|
229
|
-
[
|
|
230
|
-
quote: "
|
|
231
|
-
reason:
|
|
232
|
-
prompt:
|
|
233
|
-
[P6-S1|L11] SUGGESTION(strong,review) zh/prose/hollow-transition
|
|
234
|
-
quote: "本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:"
|
|
235
|
-
reason: 三个概括性标签没有说明谁在协同、如何闭环。缩短引语即可突出冒号后的切换耗时、内存峰值和采样阈值。
|
|
236
|
-
fix: "本次架构升级的具体收益包括:"
|
|
237
|
-
[P7-S1|L13] SUGGESTION(strong,manual) common/artifact-qa/unchosen-draft-options
|
|
238
|
-
quote: "方案 A:周二将连接池参数灰度至欧洲分片。"
|
|
239
|
-
reason: 此句与下一句用斜线并列,给同一次欧洲分片灰度留下两种排期,未说明哪一种获准执行。
|
|
240
|
-
prompt: 按[已确认的欧洲分片灰度排期]保留对应安排,删除另一稿及方案编号。
|
|
224
|
+
[P7-S2|L13] SUGGESTION(strong,manual) common/artifact-qa/unchosen-draft-options
|
|
225
|
+
quote: "/ 方案 B:等账单冻结窗口结束后再推欧洲分片。"
|
|
226
|
+
reason: 正文中保留了头脑风暴期互斥的方案 A/B 草稿选项,未做最终定夺。
|
|
227
|
+
prompt: 请在 [方案 A / 方案 B] 中二选一保留最终确定的执行方案,并删除未采纳的选项。
|
|
241
228
|
[P7-S3|L13] SUGGESTION(strong,manual) zh/artifact-qa/disguised-placeholder-prose
|
|
242
229
|
quote: "待 SRE 团队签字确认后在此处补上第三季度错误预算消耗率。"
|
|
243
|
-
reason:
|
|
244
|
-
prompt:
|
|
230
|
+
reason: 正文中混入写给作者自己的待办备忘指令,非定稿内容。
|
|
231
|
+
prompt: 请填入经 SRE 团队确认的具体 [第三季度错误预算消耗率],或在发布前删除此待办说明。
|
|
245
232
|
[P8-S1|L15] SUGGESTION(strong,safe) zh/prose/hollow-transition
|
|
246
233
|
quote: "展望未来,我们将继续砥砺前行,构筑更加稳健的数字底座!"
|
|
247
234
|
reason: 零信息增量的宏大叙事套话,执行破坏性删除测试后不影响上下文事实与因果推进。
|
|
248
235
|
fix: DELETE
|
|
249
|
-
[
|
|
250
|
-
quote: "
|
|
251
|
-
reason:
|
|
252
|
-
|
|
253
|
-
[P9-S2|L17] SUGGESTION(strong,review) zh/artifact-qa/implicit-assistant-framing
|
|
254
|
-
quote: "如果您需要进一步调整,请随时告诉我。"
|
|
255
|
-
reason: 这句邀请委托人继续改稿,不是给工程团队的后续行动。
|
|
256
|
-
fix: DELETE
|
|
236
|
+
[P3-S2|L5] SUGGESTION(moderate,manual) zh/artifact-qa/synthetic-example-entity
|
|
237
|
+
quote: "某某科技"
|
|
238
|
+
reason: 正式交付文档中残留了未替换的测试假名“某某科技”。
|
|
239
|
+
prompt: 请将占位假名“某某科技”替换为真实的合作方机构名称,例如 [合作方真实名称]。
|
|
257
240
|
[P4-S1|L7] SUGGESTION(moderate,safe) zh/prose/throat-clearing
|
|
258
241
|
quote: "值得注意的是,PostgreSQL 在 `{{cluster_region}}` 区域的 4 个只读副本上 p95 查询延迟从 142ms 降至 18ms。"
|
|
259
242
|
reason: 删去无实质信息的句首套话铺垫,直接进入具体陈述。
|
|
@@ -266,10 +249,10 @@ dislop check slop-samples/zh-CN.md --engine byok --format agent
|
|
|
266
249
|
quote: "全面赋能、协同联动、闭环管理"
|
|
267
250
|
reason: 连续堆砌三个及以上空洞四字套话排比,缺乏具体动作或边界信息。
|
|
268
251
|
prompt: 删去四字口号排比串,保留或改写为原文中实际发生的具体改动:[填入具体机制或动作]
|
|
269
|
-
[
|
|
270
|
-
quote: "
|
|
271
|
-
reason:
|
|
272
|
-
fix:
|
|
252
|
+
[P6-S1|L11] SUGGESTION(moderate,review) zh/prose/cooccurrence-padding
|
|
253
|
+
quote: "本次架构升级实现了全面赋能、协同联动、闭环管理,具体收益包括:混沌演练自动主从切换耗时控制在 9 秒以内,工作节点峰值 RSS 内存低于 4.2GB,慢查询日志采样阈值收紧至 50ms。"
|
|
254
|
+
reason: 连续堆叠‘全面赋能、协同联动、闭环管理’等空泛管理词,去除后不影响后续具体收益数据。
|
|
255
|
+
fix: "本次架构升级的具体收益包括:混沌演练自动主从切换耗时控制在 9 秒以内,工作节点峰值 RSS 内存低于 4.2GB,慢查询日志采样阈值收紧至 50ms。"
|
|
273
256
|
```
|
|
274
257
|
|
|
275
258
|
### 用例 5:Tier 3 本地小模型离线语义审校(`--engine local`)
|
|
@@ -391,27 +374,48 @@ dislop check slop-samples/zh-CN.md --engine local --format agent
|
|
|
391
374
|
## CLI 命令参考
|
|
392
375
|
|
|
393
376
|
```text
|
|
394
|
-
dislop check <files/globs
|
|
377
|
+
dislop check <files/globs... | -> [options] 只读双轨 Linter 审计(支持 `-` 管道与 `--stdin-filename`、`--changed` / `--since <ref>`)
|
|
395
378
|
dislop fix <files/globs...> [options] 终端交互式逐块修补,或批量安全清理(--auto)
|
|
396
|
-
dislop verify <before> <after> [--json]
|
|
379
|
+
dislop verify <before> <after> [--json] 校验改稿前后数字、量纲、极性反转、限定词与指标配对是否守恒
|
|
397
380
|
dislop verify --git [ref] <file> [--json] 对比 Git 历史版本校验当前工作区改稿安全性
|
|
398
|
-
dislop init [--global] [--voice <glob>]
|
|
381
|
+
dislop init [--global] [--voice <glob>] 初始化项目最小 .dislop.json 或 ~/.config/dislop/config.json
|
|
399
382
|
dislop login [--token <dslp_*>] 保存官方云端访问凭据
|
|
400
383
|
dislop logout 清除本机保存的官方云端凭据
|
|
401
384
|
dislop voice <extract|show|clear> [files] 提取并管理个人写作风格基线(voice.json)
|
|
402
385
|
dislop model <list|pull|rm> [name] 管理 Tier 3 本地小模型(依赖 Ollama)
|
|
403
|
-
dislop packs [--json]
|
|
386
|
+
dislop packs [list|lint <path>] [--json] 查看内置规则包,或对外部 .pack.md / 规则包目录运行安全与格式检查
|
|
404
387
|
dislop doctor [--json] 诊断当前路由层级、Ollama 状态、鉴权与规则包配置
|
|
388
|
+
dislop worklog <status|list|show|stats|reflect|clear> 查看本地工作记录与反思摘要
|
|
405
389
|
dislop mcp 启动本地 stdio MCP 服务(亦可直接运行 `dislop-mcp`)
|
|
406
390
|
```
|
|
407
391
|
|
|
408
|
-
|
|
392
|
+
常用工程接入参数:`--fail-on <none|error|warning>`(仅控制确定性 Defect 退出码,Suggestion 恒为退出码 `0`)、`--changed` / `--since <ref>`(只扫 Git 变更文件)、`--stdin-filename <name>`(stdin 扩展名提示)。
|
|
393
|
+
|
|
394
|
+
## 分层配置边界(`~/.config/dislop/config.json` 与 `.dislop.json`)
|
|
395
|
+
|
|
396
|
+
共享仓库内的 `.dislop.json` 按不可信配置隔离:`routing` 仅允许 `"local"` 或 `"off"`,支持按路径 `overrides`、`extraPacks`、`rules`、`failOn`、`ignore` 与项目内 `.dislop/rules.json`;大模型供应商与本地凭据仅可写在 `~/.config/dislop/config.json` 或未跟踪的 `.dislop.local.json` 中:
|
|
397
|
+
|
|
398
|
+
```json
|
|
399
|
+
{
|
|
400
|
+
"routing": "local",
|
|
401
|
+
"ignore": [".private/**"],
|
|
402
|
+
"failOn": "error",
|
|
403
|
+
"overrides": [
|
|
404
|
+
{ "files": ["docs/**/*.md"], "packs": ["prose"] },
|
|
405
|
+
{ "files": ["site/**/*.html"], "packs": ["web-ui"] }
|
|
406
|
+
]
|
|
407
|
+
}
|
|
408
|
+
```
|
|
409
|
+
|
|
410
|
+
个人配置(`~/.config/dislop/config.json`):
|
|
409
411
|
|
|
410
412
|
```json
|
|
411
413
|
{
|
|
412
414
|
"routing": "byok",
|
|
413
415
|
"activeProvider": "openai-default",
|
|
414
416
|
"approvedHosts": ["api.openai.com"],
|
|
417
|
+
"ignore": [".private/**"],
|
|
418
|
+
"concurrency": 4,
|
|
415
419
|
"providers": {
|
|
416
420
|
"openai-default": {
|
|
417
421
|
"protocol": "openai",
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
5
5
|
"mcpServers": {
|
|
6
6
|
"dislop": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Pluggable Editorial & Artifact Linter (Node.js Micro-Kernel) — Dual-track Defect & Suggestion engine with local-first 3-Tier LLM routing, Fact Gate, interactive hunk review, and MCP.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://dislop.com",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"check:security": "node ./scripts/verify-packs-security.mjs",
|
|
29
29
|
"bench": "node ./scripts/run-benchmark.mjs",
|
|
30
30
|
"bench:assert": "node ./scripts/run-benchmark.mjs --assert",
|
|
31
|
-
"dogfood": "node ./bin/dislop.mjs check README.md README.zh-CN.md CONTRIBUTING.md PRODUCT.md AGENTS.md SECURITY.md docs/architecture.md docs/MIGRATION-TODO.md benchmarks/README.md benchmarks/REPORT.md skills/ --no-llm"
|
|
31
|
+
"dogfood": "node ./bin/dislop.mjs check README.md README.zh-CN.md CONTRIBUTING.md PRODUCT.md AGENTS.md SECURITY.md CHANGELOG.md llms-install.md docs/architecture.md docs/brand-and-voice-guide.md docs/brand-and-voice-guide.zh-CN.md docs/MIGRATION-TODO.md benchmarks/README.md benchmarks/REPORT.md skills/ assets/*.svg .github/PULL_REQUEST_TEMPLATE.md --no-llm"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
".agents/plugins/marketplace.json",
|
|
@@ -11,6 +11,17 @@ const UNIVERSAL_PLACEHOLDER_PATTERNS = [
|
|
|
11
11
|
const CITATION_ARTIFACT_RE =
|
|
12
12
|
/(?::contentReference\[oaicite:\d+\](?:\{[^}]*\})?|\[(?:oaicite|turn\d+search\d+|citation):\s*[^\]]+\])/i;
|
|
13
13
|
|
|
14
|
+
const LOCAL_HOME_PATH_RE =
|
|
15
|
+
/(?:file:\/\/\/(?:Users|home|private\/var|[A-Za-z]:)[^\s)"'<>]*|\/(?:Users|home)\/[A-Za-z0-9._-]+\/[^\s)"'<>]*|[A-Za-z]:\\+Users\\[A-Za-z0-9._-]+\\+[^\s)"'<>]*)/;
|
|
16
|
+
|
|
17
|
+
function safeDecodeUriComponent(raw) {
|
|
18
|
+
try {
|
|
19
|
+
return decodeURIComponent(raw);
|
|
20
|
+
} catch {
|
|
21
|
+
return raw;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
14
25
|
function isExternalOrSpecialScheme(url) {
|
|
15
26
|
return /^(?:[a-zA-Z][a-zA-Z0-9+.-]*:|\/\/)/.test(url);
|
|
16
27
|
}
|
|
@@ -42,6 +53,11 @@ function localTargetExists(docDir, cleanRel) {
|
|
|
42
53
|
|
|
43
54
|
export default definePackScripts({
|
|
44
55
|
check(doc, ctx) {
|
|
56
|
+
const isRenderedArtifact = ["html", "jsx", "tsx", "svg", "docx", "pptx", "pdf"].includes(
|
|
57
|
+
doc.format,
|
|
58
|
+
);
|
|
59
|
+
const reportedLeaks = new Set();
|
|
60
|
+
|
|
45
61
|
for (const seg of doc.segments) {
|
|
46
62
|
const proseOnly = maskInlineCode(seg.text);
|
|
47
63
|
|
|
@@ -117,8 +133,13 @@ export default definePackScripts({
|
|
|
117
133
|
continue;
|
|
118
134
|
}
|
|
119
135
|
|
|
120
|
-
if (
|
|
121
|
-
|
|
136
|
+
if (
|
|
137
|
+
!url.startsWith("#") &&
|
|
138
|
+
!url.startsWith("/") &&
|
|
139
|
+
!url.startsWith("~/") &&
|
|
140
|
+
!isExternalOrSpecialScheme(url)
|
|
141
|
+
) {
|
|
142
|
+
const cleanRel = safeDecodeUriComponent(url.split("#")[0].split("?")[0]);
|
|
122
143
|
if (cleanRel && doc.filePath && fs.existsSync(doc.filePath)) {
|
|
123
144
|
const isExtensionlessRoute =
|
|
124
145
|
doc.modality === "markup" && cleanRel.endsWith("/") && !path.extname(cleanRel.replace(/\/+$/, ""));
|
|
@@ -138,6 +159,47 @@ export default definePackScripts({
|
|
|
138
159
|
}
|
|
139
160
|
}
|
|
140
161
|
}
|
|
162
|
+
|
|
163
|
+
if (LOCAL_HOME_PATH_RE.test(url)) {
|
|
164
|
+
const leakKey = `${link.segmentId || "doc"}:${url}`;
|
|
165
|
+
if (!reportedLeaks.has(leakKey)) {
|
|
166
|
+
reportedLeaks.add(leakKey);
|
|
167
|
+
ctx.reportDefect({
|
|
168
|
+
ruleId: "local-path-leak",
|
|
169
|
+
severity: isRenderedArtifact ? "error" : "warning",
|
|
170
|
+
targetId: link.segmentId || null,
|
|
171
|
+
line: link.line,
|
|
172
|
+
originalQuote: link.raw || url,
|
|
173
|
+
fixSafety: "manual",
|
|
174
|
+
actionType: "prompt",
|
|
175
|
+
reason: `Personal or local machine filesystem path leaked in deliverable link ('${url}').`,
|
|
176
|
+
rewritePrompt: "Replace local machine path with a portable relative path or public URL.",
|
|
177
|
+
locator: link.locator,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
for (const seg of doc.segments || []) {
|
|
184
|
+
const m = seg.text.match(LOCAL_HOME_PATH_RE);
|
|
185
|
+
if (!m) continue;
|
|
186
|
+
const leakKey = `${seg.id}:${m[0]}`;
|
|
187
|
+
const alreadyFromLink = Array.from(reportedLeaks).some(
|
|
188
|
+
(k) => k.startsWith(`${seg.id}:`) || k.includes(m[0]),
|
|
189
|
+
);
|
|
190
|
+
if (alreadyFromLink || reportedLeaks.has(leakKey)) continue;
|
|
191
|
+
reportedLeaks.add(leakKey);
|
|
192
|
+
ctx.reportDefect({
|
|
193
|
+
ruleId: "local-path-leak",
|
|
194
|
+
severity: isRenderedArtifact ? "error" : "warning",
|
|
195
|
+
targetId: seg.id,
|
|
196
|
+
line: seg.line,
|
|
197
|
+
originalQuote: m[0],
|
|
198
|
+
fixSafety: "manual",
|
|
199
|
+
actionType: "prompt",
|
|
200
|
+
reason: `Personal or local machine filesystem path leaked in content ('${m[0]}').`,
|
|
201
|
+
rewritePrompt: "Replace concrete local user path with a relative path, env placeholder, or public URL.",
|
|
202
|
+
});
|
|
141
203
|
}
|
|
142
204
|
|
|
143
205
|
for (const leak of doc.artifacts.rawFormattingLeaks || []) {
|
|
@@ -8,7 +8,7 @@ const EN_PLACEHOLDER_PATTERNS = [
|
|
|
8
8
|
];
|
|
9
9
|
|
|
10
10
|
const EN_CHATBOT_WRAPPER_SENTENCES = [
|
|
11
|
-
/^(?:Certainly!|Sure!|Of course!|Absolutely!|Great question!|Happy to help!|Glad to help!)\s*(?:(?:Here(?:'s| is)\b|Below is\b|I(?:'ve| have)\b)[\s\S]*)?$/i,
|
|
11
|
+
/^(?:Certainly!|Sure!|Of course!|Absolutely!|Great question!|Happy to help!|Glad to help!)\s*(?:(?:Here(?:'s| is| it is)\b|Below is\b|I(?:'ve| have)\b)[\s\S]*)?$/i,
|
|
12
12
|
/^Here(?:'s| is) (?:a|the|your) (?:revised|updated|draft|polished|rewritten|concise|cleaned-up)\b[\s\S]*[:.]$/i,
|
|
13
13
|
/^As an AI(?: language model| assistant)?\b[\s\S]*$/i,
|
|
14
14
|
/^(?:I hope this helps!?|Hope this helps!?|(?:Please )?[Ll]et me know if you(?:'d| would) like (?:any )?(?:further |more |additional )?(?:changes|adjustments|edits|modifications|revisions)[\s\S]*)$/i,
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
3
|
"name": "dislop",
|
|
4
|
-
"version": "1.0
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "Cutting AI slop is real productivity. Pluggable editorial and artifact linter (11 modular Packs across docs, web UI, slides, and Office) via pure-doc Skill, offline CLI, local stdio MCP, and Official Cloud MCP.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "dislop-ai",
|
package/server.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
3
|
"name": "io.github.dislop-ai/dislop",
|
|
4
4
|
"title": "dislop",
|
|
5
|
-
"description": "Cutting AI slop is real productivity.
|
|
6
|
-
"version": "1.0
|
|
5
|
+
"description": "Cutting AI slop is real productivity. Editorial and artifact linter for docs, web UI & slides.",
|
|
6
|
+
"version": "1.1.0",
|
|
7
7
|
"websiteUrl": "https://dislop.com",
|
|
8
8
|
"icons": [
|
|
9
9
|
{
|
package/skills/dislop/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dislop
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.1.0
|
|
4
4
|
description: "Use when drafting or revising text or deliverables a person will read: README, docs, PR descriptions, release notes, RFCs, postmortems, CLI help/errors, emails, essays, web pages and UI copy (HTML/CSS/JSX/SVG), or Word and PowerPoint files. Removes AI-sounding phrasing, chatbot leftovers, placeholders, and template layouts without changing facts."
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "dislop"
|
|
3
|
-
short_description: "Cutting AI slop is real productivity —
|
|
3
|
+
short_description: "Cutting AI slop is real productivity — Pluggable Editorial & Artifact Linter"
|
|
4
4
|
default_prompt: "Use $dislop to check my draft for AI slop, replacement slogans, and template UI while keeping every number, link, and qualifier intact."
|
|
5
5
|
policy:
|
|
6
6
|
allow_implicit_invocation: true
|
|
@@ -5,11 +5,11 @@ CLI check: `dislop check <essay.md> --format agent` (optional personal voice bas
|
|
|
5
5
|
|
|
6
6
|
## Rules & Fixes
|
|
7
7
|
|
|
8
|
-
1. **
|
|
9
|
-
2. **Cut staged self-Q&A &
|
|
10
|
-
3. **Break
|
|
11
|
-
4. **End on the last concrete scene (`
|
|
12
|
-
5. **Restrain em-dashes & binary pivots (`excessive-em-dash
|
|
8
|
+
1. **Avoid low-information abstract filler (`stealth-vapor`, `hollow-transition`)**: Anchor clauses in supplied times, places, and physical actions without chopping prose into artificial short fragments (`staccato-slogan-run`).
|
|
9
|
+
2. **Cut staged self-Q&A & macro preambles (`rhetorical-self-qa`, `hollow-transition`)**: Remove `"Why does this matter?"`, `"The result?"`, `"In today's fast-paced world..."`, and balanced semicolon padding.
|
|
10
|
+
3. **Break sprawling comma-spliced sentences**: Split tangled multi-clause run-on sentences into 2–3 clear sentences when the subject gets lost.
|
|
11
|
+
4. **End on the last concrete scene (`moralizing-closer`)**: Cut closing paragraphs that zoom out into life lessons (`"Ultimately, this reminds us..."`). Stop on the final observed action or quote.
|
|
12
|
+
5. **Restrain em-dashes & binary pivots (`excessive-em-dash`, `unprompted-negation`)**: Replace stacked em-dashes (`3+` in one sentence) with commas or periods, and replace `"Not just X — it's Y"` pivots with plain action.
|
|
13
13
|
6. **Zero invented scene detail**: Use only objects, weather, bystanders, and quotes in the notes; develop those supplied details clearly to fit the target length without adding outside scenery.
|
|
14
14
|
|
|
15
15
|
## Contrast
|