move-doctor 0.2.0-dev.24edc5d → 0.2.0-dev.d0feceb

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.
Files changed (3) hide show
  1. package/README.md +3 -28
  2. package/dist/cli.js +3 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -10,27 +10,7 @@ Deterministic Sui Move scanner. Rules grounded in [The Move Book](https://move-b
10
10
  npx move-doctor@latest
11
11
  ```
12
12
 
13
- Scans the current directory and prints a health score, a per-bucket breakdown, and next steps. Add `--verbose` for file/line refs and fix hints. Sample output:
14
-
15
- ```
16
- ╭────────────────────────────────────────────────────────────────────────╮
17
- │ │
18
- │ 44 / 100 poor movebook_gaps │
19
- │ ███████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ │
20
- │ │
21
- │ 2 modules · edition 2024.beta · Sui 1.70.2 · scanned in 1.3s │
22
- │ 22 findings > 4 errors · 3 warnings · 15 info │
23
- ╰────────────────────────────────────────────────────────── move.doctor ─╯
24
-
25
- security > 4 errors · 3 warnings
26
- conventions > 5 info
27
- testing > 5 info
28
- functions > 2 info
29
- idioms > 2 info
30
- macros > 1 info
31
-
32
- > Run --verbose for file refs and fix hints.
33
- ```
13
+ Scans the current directory and prints a 0–100 health score, a severity breakdown by area, and next steps. Add `--verbose` for file/line refs and fix hints. With the Sui CLI on `PATH`, its `sui move build --lint` pass runs alongside and feeds the same score.
34
14
 
35
15
  ## Install as an agent skill
36
16
 
@@ -40,20 +20,15 @@ npx move-doctor@latest install
40
20
 
41
21
  Writes `<cwd>/.claude/skills/move-doctor/SKILL.md`. Claude Code picks it up automatically — type `/movedoctor` or ask it to "run move doctor" and it'll scan, group findings, and fix them.
42
22
 
43
- ## CI gate
23
+ ## CI
44
24
 
45
- Use `--score` for a numeric output and gate PRs on a budget:
25
+ `npx move-doctor@latest install` can set up a GitHub Actions workflow that scores every push and pull request. To gate by hand, fail the build below a score budget:
46
26
 
47
27
  ```bash
48
28
  SCORE=$(npx move-doctor@latest . --score)
49
29
  [ "$SCORE" -ge 80 ] || exit 1
50
30
  ```
51
31
 
52
- ## Requirements
53
-
54
- - Node.js ≥ 20
55
- - (Optional) Sui CLI on PATH — when present, `sui move build --lint` runs in parallel and its 6 built-in lints feed the same score.
56
-
57
32
  ## Source
58
33
 
59
34
  - Source code: [github.com/notmatical/move-doctor](https://github.com/notmatical/move-doctor)
package/dist/cli.js CHANGED
@@ -3886,7 +3886,7 @@ var renderWorkspaceJson = (workspace, result) => JSON.stringify(
3886
3886
  var renderWorkspaceScoreOnly = (result) => String(result.aggregateScore.score);
3887
3887
 
3888
3888
  // src/cli/utils/branded-header.ts
3889
- var VERSION = "0.2.0-dev.24edc5d";
3889
+ var VERSION = "0.2.0-dev.d0feceb";
3890
3890
  var printBrandedHeader = () => {
3891
3891
  const wordmark = highlighter.accent(hyperlink("move.doctor", HOMEPAGE));
3892
3892
  process.stdout.write(
@@ -4042,14 +4042,9 @@ curl --fail --silent --show-error \\
4042
4042
  https://move.doctor/prompts/move-doctor-agent.md
4043
4043
  \`\`\`
4044
4044
 
4045
- It's a scan \u2192 group \u2192 triage \u2192 fix \u2192 re-score loop that edits the working tree directly (never commits, never opens PRs). For each finding, fetch the matching per-rule fix recipe on demand \u2014 \`<bucket>/<rule>\` comes straight from the diagnostic's rule id:
4045
+ It's a scan \u2192 triage \u2192 fix \u2192 re-score loop that edits the working tree directly (never commits, never opens PRs). Every finding in \`--json\` carries its own \`fixHint\` and \`citation\` \u2014 fix straight from those; there's nothing else to fetch.
4046
4046
 
4047
- \`\`\`bash
4048
- curl --fail --silent --show-error \\
4049
- https://move.doctor/prompts/rules/<bucket>/<rule>.md
4050
- \`\`\`
4051
-
4052
- If the fetch fails (offline / site down), fall back to: run \`move-doctor --verbose\`, fix errors first (\`security/*\` and \`abilities/*\` findings are real vulnerabilities, not style), apply each finding's \`fixHint\` verbatim, and re-run until the score stops rising. Never suppress a rule unless you can explain why the surrounding code is a documented exception.
4047
+ If the fetch fails (offline / site down), fall back to: run \`move-doctor --verbose\`, fix errors first (\`security/*\` and \`abilities/*\` findings are real vulnerabilities, not style), apply each finding's \`fixHint\`, and re-run until the score stops rising. Never silence a finding unless you can explain why the surrounding code is a documented exception.
4053
4048
 
4054
4049
  ## Command
4055
4050
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "move-doctor",
3
- "version": "0.2.0-dev.24edc5d",
3
+ "version": "0.2.0-dev.d0feceb",
4
4
  "description": "A deterministic linter for Sui Move. Rules cited via the Move Book, with a SKILL.md for coding agents.",
5
5
  "keywords": [
6
6
  "sui",