dislop 0.9.0 → 1.0.1
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 -57
- package/README.md +360 -252
- package/README.zh-CN.md +390 -240
- package/action.yml +30 -39
- package/bin/dislop-mcp.mjs +3 -4
- package/bin/dislop.mjs +4 -4582
- package/gemini-extension.json +2 -2
- package/llms-install.md +68 -0
- package/package.json +17 -55
- 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 +173 -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 +290 -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 +8 -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/references/essay.md +1 -1
- package/skills/dislop/references/essay.zh-CN.md +1 -1
- package/skills/dislop/references/office.md +1 -1
- package/skills/dislop/references/office.zh-CN.md +1 -1
- package/skills/dislop/references/web-ui.md +1 -1
- package/skills/dislop/references/web-ui.zh-CN.md +1 -1
- package/skills/dislop/references/work-docs.md +1 -1
- package/skills/dislop/references/work-docs.zh-CN.md +1 -1
- package/src/cli-main.mjs +210 -0
- package/src/commands/check-fix.mjs +169 -0
- package/src/commands/doctor.mjs +110 -0
- package/src/commands/init.mjs +49 -0
- package/src/commands/login.mjs +82 -0
- package/src/commands/model.mjs +130 -0
- package/src/commands/packs.mjs +44 -0
- package/src/commands/verify.mjs +133 -0
- package/src/commands/voice.mjs +84 -0
- package/src/kernel/config.mjs +232 -0
- package/src/kernel/document-model.mjs +1412 -0
- package/src/kernel/fact-gate.mjs +615 -0
- package/src/kernel/file-discovery.mjs +139 -0
- package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +532 -893
- package/src/kernel/pack-loader.mjs +715 -0
- package/src/kernel/patcher.mjs +341 -0
- package/src/kernel/pipeline.mjs +267 -0
- package/src/kernel/prompt-assembler.mjs +307 -0
- package/src/kernel/voice-profile.mjs +177 -0
- package/src/mcp/stdio-server.mjs +372 -0
- package/src/runners/auto-fix.mjs +59 -0
- package/src/runners/interactive-tty.mjs +461 -0
- package/src/runners/reporters.mjs +256 -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 +136 -0
- package/src/runtime/providers/gemini.mjs +91 -0
- package/src/runtime/providers/local-model.mjs +139 -0
- package/src/runtime/providers/openai-compat.mjs +130 -0
- package/src/runtime/router.mjs +315 -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
|
@@ -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": "0.
|
|
9
|
+
"version": "1.0.1"
|
|
10
10
|
},
|
|
11
11
|
"plugins": [
|
|
12
12
|
{
|
|
13
13
|
"name": "dislop",
|
|
14
14
|
"source": "./",
|
|
15
|
-
"description": "Cutting AI slop is real productivity.
|
|
16
|
-
"version": "0.
|
|
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.1",
|
|
17
17
|
"author": {
|
|
18
18
|
"name": "dislop-ai",
|
|
19
19
|
"url": "https://dislop.com"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Cutting AI slop is real productivity.
|
|
3
|
+
"version": "1.0.1",
|
|
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",
|
|
7
7
|
"url": "https://dislop.com"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Cutting AI slop is real productivity.
|
|
3
|
+
"version": "1.0.1",
|
|
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",
|
|
7
7
|
"url": "https://dislop.com"
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"anti-slop",
|
|
14
14
|
"de-slop",
|
|
15
15
|
"ai-slop",
|
|
16
|
-
"humanizer",
|
|
17
16
|
"writing",
|
|
18
17
|
"linter",
|
|
19
18
|
"proofreading",
|
|
@@ -26,8 +25,8 @@
|
|
|
26
25
|
"mcpServers": "./.mcp.json",
|
|
27
26
|
"interface": {
|
|
28
27
|
"displayName": "dislop",
|
|
29
|
-
"shortDescription": "
|
|
30
|
-
"longDescription": "Cutting AI slop is real productivity.
|
|
28
|
+
"shortDescription": "Pluggable Editorial & Artifact Linter",
|
|
29
|
+
"longDescription": "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.",
|
|
31
30
|
"developerName": "dislop-ai",
|
|
32
31
|
"category": "Productivity",
|
|
33
32
|
"capabilities": [
|
|
@@ -40,9 +39,9 @@
|
|
|
40
39
|
"logo": "./assets/logo.svg",
|
|
41
40
|
"logoDark": "./assets/logo.svg",
|
|
42
41
|
"defaultPrompt": [
|
|
43
|
-
"Check my draft for
|
|
44
|
-
"Audit docs/ and slides for
|
|
45
|
-
"Review this HTML/JSX page
|
|
42
|
+
"Check my draft for delivery defects and AI scaffolding while keeping every number, unit, and entity intact.",
|
|
43
|
+
"Audit docs/ and slides for placeholders, raw Markdown leaks, and word-walls with dislop.",
|
|
44
|
+
"Review this HTML/JSX page for dead links, unexplained disabled buttons, neon gradients, and pill soup."
|
|
46
45
|
],
|
|
47
46
|
"brandColor": "#F04438",
|
|
48
47
|
"screenshots": []
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dislop",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Cutting AI slop is real productivity.
|
|
3
|
+
"version": "1.0.1",
|
|
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",
|
|
7
7
|
"url": "https://dislop.com"
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"anti-slop",
|
|
14
14
|
"de-slop",
|
|
15
15
|
"ai-slop",
|
|
16
|
-
"humanizer",
|
|
17
16
|
"writing",
|
|
18
17
|
"linter",
|
|
19
18
|
"proofreading",
|
package/.pre-commit-hooks.yaml
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
- id: dislop-check
|
|
2
|
-
name: dislop anti-slop check (
|
|
3
|
-
description: Catch stray chatbot
|
|
4
|
-
entry: dislop check --
|
|
5
|
-
language:
|
|
6
|
-
files: \.(md|mdx|txt|html|htm|css|jsx|tsx|svg|docx|pptx)$
|
|
7
|
-
|
|
8
|
-
- id: dislop-check-strict
|
|
9
|
-
name: dislop anti-slop strict check (fail on warning)
|
|
10
|
-
description: Fail commit on both core AI artifacts and scenario cliché/template warnings.
|
|
11
|
-
entry: dislop check --fail-on warning
|
|
12
|
-
language: python
|
|
13
|
-
files: \.(md|mdx|txt|html|htm|css|jsx|tsx|svg|docx|pptx)$
|
|
2
|
+
name: dislop anti-slop check (deterministic defect gate)
|
|
3
|
+
description: Catch stray chatbot wrappers, unfilled placeholders, broken local links, raw Markdown in Office/HTML docs, and dead UI controls before commit.
|
|
4
|
+
entry: npx --yes dislop check --no-llm
|
|
5
|
+
language: system
|
|
6
|
+
files: \.(md|mdx|txt|html|htm|css|jsx|tsx|svg|docx|pptx|pdf)$
|
package/PRODUCT.md
CHANGED
|
@@ -1,67 +1,29 @@
|
|
|
1
1
|
# dislop Product Brief
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Slogan
|
|
4
4
|
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## English (Primary / Global Baseline)
|
|
8
|
-
|
|
9
|
-
### Slogan
|
|
10
5
|
Cutting AI slop is real productivity.
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
**Linter for AI Slop.** Helps you (and your agent) catch and fix AI-sounding text and template layouts in docs, web pages, and slides before sending.
|
|
14
|
-
|
|
15
|
-
### Global-First Priority & Single-Domain Strategy
|
|
16
|
-
- **English (Global) first across code, docs, and assets**: Rule precision on native English prose/UI/decks, CLI/MCP/Skill schemas, canonical documentation (`*.md`), and primary visual assets (`og-card.png`, `-en-v2` demos, `@dislop_ai`) always come first. Chinese (`*.zh-CN.md`, `zh-*` rules, `-zh-v2` demos) is maintained in lockstep as a native localized counterpart, never the upstream source for machine translation.
|
|
17
|
-
- **Strategic horizon**: Short-term rollout pairs global package/MCP/skill registries and flagship English benchmarks with fast community seed validation; medium-to-long-term growth focuses on winning the default pre-flight slot across global Agent ecosystems and international team workflows, while serving localized office document cleanup as a complementary track on the same engine.
|
|
18
|
-
- **One brand, one repository, one domain (`dislop.com`)**: Never split into separate regional subdomains or separate codebases. The site serves native English at the root `dislop.com/` (`x-default`) and native Chinese under `dislop.com/zh/`, with automatic browser language routing, a one-click manual toggle, and `301` redirects on legacy `/en/*` paths.
|
|
19
|
-
- **Strict language separation**: English and Chinese materials use their own native examples, banners, social cards, and single-language accounts (`@dislop_ai` publishes exclusively in English), never word-for-word translations and never mixed inside one page or post.
|
|
20
|
-
|
|
21
|
-
### Users
|
|
22
|
-
First coding agent users, then office agent users, and finally everyone who delivers work with AI. Their agents are direct users too, and can find and run `dislop` on their own.
|
|
23
|
-
|
|
24
|
-
### Product Form
|
|
25
|
-
1. **Skill (open-source, Markdown only)**: Genre-specific writing and UI reference cards with no bundled scripts. Your agent reads the matching card before drafting and can run the CLI afterward to check its work.
|
|
26
|
-
2. **CLI & Local Plugins (open-source, local)**: Zero-dependency local checker that flags AI leftovers and stock templates across docs, web UI, Word, and PowerPoint in terminals, editors, Git hooks, and CI. Developers can also plug in their own model API key for deeper review.
|
|
27
|
-
3. **Official MCP & Web Workbench (cloud service)**: Sign in to connect office or coding agents to the remote MCP with no local setup, or use the web workbench directly. The cloud service runs multi-model review by genre, returns structured issues and edit guidance for your local agent to apply in context, and handles Word and PowerPoint files while keeping their layout.
|
|
28
|
-
|
|
29
|
-
### Selling Points
|
|
30
|
-
1. **Curated community work**: Combines vetted open-source rules, corpus findings, and an indexed 90-tool directory across docs, web UI, Word, and PowerPoint, without hunting down scattered prompts.
|
|
31
|
-
2. **Broad host and scenario fit**: Ships domain packs for engineering, business, UI, and decks across Skill, Plugin, CLI, and Cloud MCP, connecting to major agents and editors in one command.
|
|
32
|
-
3. **Local, offline, private**: The CLI and local plugins run on your machine with zero uploads, keeping private drafts and source code local.
|
|
33
|
-
|
|
34
|
-
### One-Sentence Pitch
|
|
35
|
-
A dedicated linter for AI slop. It brings together vetted community rules and practices to help your agent find and fix AI slop in docs, web UI, and slides. Connects to major agents and editors in one command and can run completely offline.
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## 中文(独立原生适配)
|
|
40
|
-
|
|
41
|
-
### Slogan
|
|
42
|
-
去 AI 味才是真正的生产力!
|
|
43
|
-
|
|
44
|
-
### 定位
|
|
45
|
-
**AI 味检查工具。** 帮你(的 Agent)在文档、网页和 PPT 发出前,挑出并改掉里面的 AI 味。
|
|
7
|
+
## Positioning
|
|
46
8
|
|
|
47
|
-
|
|
48
|
-
- **技术、文档与主物料以英文(全球)为第一基准**:地道英文语料检出精度与零误报边界、CLI/MCP/Skill 协议字段、主干英文文档(`*.md`)及默认视觉物料(`og-card.png`、`-en-v2` 动图、`@dislop_ai`)始终优先建设与验收;中文文档(`*.zh-CN.md`)、`zh-*` 专属规则与中文演示物料面向中文场景原生独立编写,不做英译中或中译英套翻。
|
|
49
|
-
- **短中长期节奏统一**:短期同步推进全球注册表/目录上架、中文技术社区快速种子验证与英文旗舰实测发布;中长期坚定以全球英语 Agent 生态标准和国际团队协作工作流为主战场,同时在同一套底座上承接中文免配置网页工作台与办公文档去味需求。
|
|
50
|
-
- **单品牌、单仓库、单域名(`dislop.com`)**:不拆独立子域名或第二套代码库。站点路由以根路径 `dislop.com/` 默认提供纯英文静态页(`x-default`),以子路径 `dislop.com/zh/` 提供原生中文静态页,支持按浏览器语言自动引导、一键手动切换与旧路径 `/en/*` `301` 跳转。
|
|
51
|
-
- **单页单帖严格不混排**:中英文各自使用独立案例、视觉卡片与单语社交账号(官方号 `@dislop_ai` 固定纯英文发布),同一页面或单条帖子内绝不中英混排。
|
|
9
|
+
**Pluggable Editorial & Artifact Linter.** Built on a Node.js (`>= 20`) micro-kernel for coding agents, office agents, CI pipelines, and human writers. Catches objective delivery defects and AI-sounding scaffolding across docs, web UI, slides, and Office documents before publication.
|
|
52
10
|
|
|
53
|
-
|
|
54
|
-
第一批是 Coding Agent 用户,第二批是办公 Agent 用户,最后是所有用 AI 交付成果的人;他们的 Agent 也是直接使用者,能自己找到并调用。
|
|
11
|
+
## Architectural Pillars
|
|
55
12
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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 coordinate patching, and CI exit-code arbitration.
|
|
15
|
+
- Rules and modality probes live in pluggable Packs organized by scope/language and scenario (`packs/common/*`, `packs/en/*`, `packs/zh/*`), local `.mjs` modules, or zero-code `.pack.md` files.
|
|
16
|
+
2. **Dual-Track Taxonomy (`Defect` vs. `Suggestion`)**:
|
|
17
|
+
- Editorial prose findings are `Suggestion`s (`strong | moderate | hint`) and never block CI (`Exit Code 0`).
|
|
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`).
|
|
19
|
+
3. **Local-First Default with Optional Semantic Tiers**:
|
|
20
|
+
- Runs locally with zero network uploads by default (`--engine local`), while prompting users and agents toward Tier 1 Official Cloud (`dislop login`), Tier 2 BYOK/Loopback (`--engine byok`), or Tier 3 Managed Local Models (`dislop model pull`) for deeper semantic review.
|
|
21
|
+
4. **High-Restraint Editorial Discipline & Strict Single-Language Purity**:
|
|
22
|
+
- Built-in prose packs flag only zero-information scaffolding and self-contained syntactic AI tics—never nagging authors over ordinary abstract verbs when repository context is unavailable.
|
|
23
|
+
- English and Chinese packs, prompts, and documentation stay strictly separated into single-language files and directory levels.
|
|
60
24
|
|
|
61
|
-
|
|
62
|
-
1. **社区规则和工具一处拿全**:整合经过核验的开源去味规则、语料经验与 90 条精选工具,覆盖文稿、网页和 Word/PPT,不用自己到处搜集拼凑。
|
|
63
|
-
2. **多端与多场景兼容**:内置研发、商务、前端与演示等场景包,提供 Skill、Plugin、CLI 与官方 MCP,快速接入主流 Agent 和编辑器。
|
|
64
|
-
3. **本地离线保护隐私**:CLI 与本地插件支持纯本地运行、零上传,私密文稿与代码不出本机。
|
|
25
|
+
## Product Surfaces
|
|
65
26
|
|
|
66
|
-
|
|
67
|
-
|
|
27
|
+
1. **Agent Skills (`skills/`)**: Pure-Markdown genre reference cards read before drafting and paired with `dislop check --format agent` + `dislop verify`.
|
|
28
|
+
2. **Node.js CLI, SDK & Local MCP (`bin/dislop.mjs`, `bin/dislop-mcp.mjs`, `dislop/sdk`)**: Local-first checker, interactive `git add -p` hunk reviewer (`dislop fix`), batch safe fixer (`dislop fix --auto`), standalone Fact Gate verifier (`dislop verify`), and local stdio MCP server.
|
|
29
|
+
3. **Official Cloud Service (`dislop.com`)**: Hosted multi-model review and layout-preserving Office workflows (see [docs/MIGRATION-TODO.md](./docs/MIGRATION-TODO.md) for pending static-site extraction and API schema alignment).
|