dislop 0.9.1 → 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 -63
- 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 -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 +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 +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/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
package/action.yml
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
name: "dislop Anti-Slop Check"
|
|
2
2
|
author: "dislop-ai"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Pluggable editorial and artifact linter for Markdown, Word (.docx), PowerPoint (.pptx), PDF, and HTML/CSS/JSX/SVG — zero runtime dependencies."
|
|
4
4
|
branding:
|
|
5
5
|
icon: "edit-3"
|
|
6
6
|
color: "red"
|
|
7
7
|
|
|
8
8
|
inputs:
|
|
9
9
|
paths:
|
|
10
|
-
description: "Newline- or whitespace-separated file or directory paths to inspect
|
|
10
|
+
description: "Newline- or whitespace-separated file or directory paths to inspect."
|
|
11
11
|
required: false
|
|
12
12
|
default: "."
|
|
13
13
|
pack:
|
|
14
|
-
description: "Optional
|
|
14
|
+
description: "Optional comma-separated Pack names or paths (e.g., `en/prose,common/artifact-qa`)."
|
|
15
15
|
required: false
|
|
16
16
|
default: ""
|
|
17
|
-
|
|
18
|
-
description: "
|
|
17
|
+
level:
|
|
18
|
+
description: "Suggestion priority filter (`strong`, `moderate`, `hint`, `all`)."
|
|
19
19
|
required: false
|
|
20
|
-
default: "
|
|
21
|
-
changed:
|
|
22
|
-
description: "Git base ref for incremental line-level checking (for example `origin/main`)."
|
|
23
|
-
required: false
|
|
24
|
-
default: ""
|
|
20
|
+
default: "all"
|
|
25
21
|
format:
|
|
26
|
-
description: "Output format (`
|
|
22
|
+
description: "Output format (`text`, `diff`, `json`, `agent`, `sarif`)."
|
|
27
23
|
required: false
|
|
28
|
-
default: "
|
|
24
|
+
default: "text"
|
|
29
25
|
lang:
|
|
30
|
-
description: "
|
|
26
|
+
description: "Diagnostic language (`auto`, `en`, `zh`)."
|
|
31
27
|
required: false
|
|
32
|
-
default: "
|
|
28
|
+
default: "auto"
|
|
33
29
|
sarif-file:
|
|
34
30
|
description: "Optional file path to write SARIF 2.1.0 output when `format: sarif` is selected."
|
|
35
31
|
required: false
|
|
@@ -39,7 +35,7 @@ runs:
|
|
|
39
35
|
using: "composite"
|
|
40
36
|
steps:
|
|
41
37
|
- name: Set up Node.js 22
|
|
42
|
-
uses: actions/setup-node@
|
|
38
|
+
uses: actions/setup-node@v4
|
|
43
39
|
with:
|
|
44
40
|
node-version: "22"
|
|
45
41
|
|
|
@@ -48,39 +44,34 @@ runs:
|
|
|
48
44
|
env:
|
|
49
45
|
INPUT_PATHS: ${{ inputs.paths }}
|
|
50
46
|
INPUT_PACK: ${{ inputs.pack }}
|
|
51
|
-
|
|
52
|
-
INPUT_CHANGED: ${{ inputs.changed }}
|
|
47
|
+
INPUT_LEVEL: ${{ inputs.level }}
|
|
53
48
|
INPUT_FORMAT: ${{ inputs.format }}
|
|
54
49
|
INPUT_LANG: ${{ inputs.lang }}
|
|
55
50
|
INPUT_SARIF_FILE: ${{ inputs.sarif-file }}
|
|
56
51
|
ACTION_DIR: ${{ github.action_path }}
|
|
57
52
|
run: |
|
|
58
53
|
set -euo pipefail
|
|
59
|
-
ARGS=("check" "--
|
|
54
|
+
ARGS=("check" "--no-llm" "--level" "${INPUT_LEVEL}" "--format" "${INPUT_FORMAT}" "--lang" "${INPUT_LANG}")
|
|
60
55
|
if [ -n "${INPUT_PACK}" ]; then
|
|
61
56
|
ARGS+=("--pack" "${INPUT_PACK}")
|
|
62
57
|
fi
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
else
|
|
81
|
-
read -r -a words <<< "${only}"
|
|
82
|
-
ARGS+=("${words[@]}")
|
|
83
|
-
fi
|
|
58
|
+
NONEMPTY_LINES=()
|
|
59
|
+
while IFS= read -r line; do
|
|
60
|
+
trimmed="${line#"${line%%[![:space:]]*}"}"
|
|
61
|
+
trimmed="${trimmed%"${trimmed##*[![:space:]]}"}"
|
|
62
|
+
[ -n "${trimmed}" ] && NONEMPTY_LINES+=("${trimmed}")
|
|
63
|
+
done <<< "${INPUT_PATHS}"
|
|
64
|
+
if [ "${#NONEMPTY_LINES[@]}" -gt 1 ]; then
|
|
65
|
+
for item in "${NONEMPTY_LINES[@]}"; do
|
|
66
|
+
ARGS+=("${item}")
|
|
67
|
+
done
|
|
68
|
+
elif [ "${#NONEMPTY_LINES[@]}" -eq 1 ]; then
|
|
69
|
+
only="${NONEMPTY_LINES[0]}"
|
|
70
|
+
if [ -e "${only}" ]; then
|
|
71
|
+
ARGS+=("${only}")
|
|
72
|
+
else
|
|
73
|
+
read -r -a words <<< "${only}"
|
|
74
|
+
ARGS+=("${words[@]}")
|
|
84
75
|
fi
|
|
85
76
|
fi
|
|
86
77
|
if [ "${INPUT_FORMAT}" = "sarif" ] && [ -n "${INPUT_SARIF_FILE}" ]; then
|
package/bin/dislop-mcp.mjs
CHANGED