@mdless/cli 1.3.0 → 1.4.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/README.md +16 -1
- package/dist/index.js +722 -481
- package/package.json +8 -4
- package/src/agents/prompts/orchestrator.md +22 -7
- package/LICENSE +0 -21
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdless/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Mind less, ship more. Agent loops from md files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mdless": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "bun test",
|
|
10
|
+
"test": "bun test --pass-with-no-tests",
|
|
11
11
|
"build": "bun build src/index.ts --target node --format esm --outfile dist/index.js",
|
|
12
12
|
"typecheck": "tsc --noEmit",
|
|
13
13
|
"smoke": "sh scripts/smoke-test.sh",
|
|
@@ -29,18 +29,22 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/
|
|
32
|
+
"url": "git+https://github.com/mdless/mdless.git",
|
|
33
|
+
"directory": "apps/cli"
|
|
33
34
|
},
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@inquirer/prompts": "^8.2.0",
|
|
40
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
41
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
39
42
|
"@types/bun": "^1.3.8",
|
|
40
43
|
"commander": "^14.0.3",
|
|
41
44
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
42
45
|
"semantic-release": "^25.0.9",
|
|
43
46
|
"tsx": "^4.7.0",
|
|
44
47
|
"typescript": "^6.0.3"
|
|
45
|
-
}
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/mdless/mdless/tree/main/apps/cli"
|
|
46
50
|
}
|
|
@@ -142,12 +142,27 @@ Issue #<N>: <title>
|
|
|
142
142
|
1. git worktree add .mdless/worktrees/issue-<N> -b mdless/issue-<N> (reuse if it exists)
|
|
143
143
|
cd .mdless/worktrees/issue-<N>
|
|
144
144
|
2. Implement the minimal change that resolves the issue. No unrelated cleanup.
|
|
145
|
-
3.
|
|
146
|
-
4.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
145
|
+
3. Run the repo's typecheck, tests and build. Fix failures.
|
|
146
|
+
4. git add -A && git commit -m "fix: <short summary>" && git push -u origin mdless/issue-<N>
|
|
147
|
+
5. Evidence (keep files in .mdless-evidence/, never commit them):
|
|
148
|
+
- UI change: start the app, take before/after screenshots as PNG.
|
|
149
|
+
- No UI change: write a simple HTML page (flow, ERD or before/after diagram), then
|
|
150
|
+
mdless evidence render .mdless-evidence/diagram.html .mdless-evidence/diagram.png
|
|
151
|
+
- mdless evidence publish .mdless-evidence/*.png → prints one  line per image
|
|
152
|
+
- If you cannot make an image, note why instead of omitting it silently.
|
|
153
|
+
6. Write .mdless-evidence/pr.md:
|
|
154
|
+
Closes #<N>
|
|
155
|
+
|
|
156
|
+
<summary>
|
|
157
|
+
|
|
158
|
+
## Evidence
|
|
159
|
+
<the  lines from step 5, Markdown syntax, not <img>>
|
|
160
|
+
|
|
161
|
+
## Checks
|
|
162
|
+
<code block: typecheck, test and build results, with the count of passing tests>
|
|
163
|
+
7. Open a DRAFT PR:
|
|
164
|
+
gh pr create --draft --title "<title>" --body-file .mdless-evidence/pr.md
|
|
165
|
+
8. If you get stuck (ambiguous issue, conflict you can't resolve), comment on the issue and stop — do not force a bad fix.
|
|
151
166
|
|
|
152
167
|
Return: { branch, pr_number, summary, blocked: <reason or null> }
|
|
153
168
|
```
|
|
@@ -160,7 +175,7 @@ You review one pull request against a checklist, then exit. Do not merge, do not
|
|
|
160
175
|
PR #<number> (head <headRefOid>), linked issue #<N>.
|
|
161
176
|
|
|
162
177
|
1. gh pr diff <number> and gh issue view <N>
|
|
163
|
-
2. Check: Correctness (solves the issue?), Scope (anything unrelated?), Bugs (off-by-one, null deref, missed error path, broken types?), Tests (if similar code has tests, are there new/updated ones?), Guidelines (clear violations of AGENTS.md/CLAUDE.md and nested ones). Do not flag subjective style.
|
|
178
|
+
2. Check: Correctness (solves the issue?), Scope (anything unrelated?), Bugs (off-by-one, null deref, missed error path, broken types?), Tests (if similar code has tests, are there new/updated ones?), Evidence (does the PR show visual proof and the output of the checks?), Guidelines (clear violations of AGENTS.md/CLAUDE.md and nested ones). Do not flag subjective style.
|
|
164
179
|
3. If you find unrelated changes, do NOT request them inline. Track them as a separate work unit: dedup locally by the files they touch, and only if no issue exists, create one with a `Scope-Ref: <files>` line. Reference that issue in a comment.
|
|
165
180
|
4. Leave each actionable finding as an inline comment (these are scoped to this PR and safe for you to post):
|
|
166
181
|
gh api repos/<owner>/<repo>/pulls/<number>/comments -f body='...' -f commit_id='<headRefOid>' -f path='...' -F line=... -f side='RIGHT'
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 mdless
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|