mini-coder 0.2.0 → 0.2.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/.prettierignore +7 -0
- package/dist/mc.js +788 -797
- package/docs/KNOWN_ISSUES.md +13 -0
- package/docs/mini-coder.1.md +15 -15
- package/lefthook.yml +2 -13
- package/package.json +49 -47
- package/CLAUDE.md +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# KNOWN ISSUES
|
|
2
|
+
|
|
3
|
+
## Bugs
|
|
4
|
+
|
|
5
|
+
- `/model` doesn't autocomplete models provider/name pattern.
|
|
6
|
+
- AI SDK expands `claude-3-5-haiku` → dated variant that Zen doesn't serve (404).
|
|
7
|
+
- Shell tool max-timeout leaves the parent terminal in a broken state.
|
|
8
|
+
|
|
9
|
+
## Features
|
|
10
|
+
|
|
11
|
+
- Conversation summary on max context instead of just an error with `/new` suggestion.
|
|
12
|
+
|
|
13
|
+
## Refactors
|
package/docs/mini-coder.1.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## SYNOPSIS
|
|
8
8
|
|
|
9
|
-
`mc` \[
|
|
9
|
+
`mc` \[_options_\] \[_prompt_\]
|
|
10
10
|
|
|
11
11
|
## DESCRIPTION
|
|
12
12
|
|
|
@@ -14,25 +14,25 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
14
14
|
|
|
15
15
|
## OPTIONS
|
|
16
16
|
|
|
17
|
-
`-m`, `--model`
|
|
17
|
+
`-m`, `--model` _id_
|
|
18
18
|
: Model to use (e.g. `zen/claude-sonnet-4-6`).
|
|
19
19
|
|
|
20
20
|
`-c`, `--continue`
|
|
21
21
|
: Continue most recent session.
|
|
22
22
|
|
|
23
|
-
`-r`, `--resume`
|
|
23
|
+
`-r`, `--resume` _id_
|
|
24
24
|
: Resume a specific session.
|
|
25
25
|
|
|
26
26
|
`-l`, `--list`
|
|
27
27
|
: List recent sessions.
|
|
28
28
|
|
|
29
|
-
`--cwd`
|
|
29
|
+
`--cwd` _path_
|
|
30
30
|
: Set working directory.
|
|
31
31
|
|
|
32
32
|
`-h`, `--help`
|
|
33
33
|
: Display help.
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
_prompt_
|
|
36
36
|
: Optional one-shot prompt. Runs once then exits.
|
|
37
37
|
|
|
38
38
|
## INTERACTIVE COMMANDS
|
|
@@ -40,13 +40,13 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
40
40
|
`/model`
|
|
41
41
|
: List all available models.
|
|
42
42
|
|
|
43
|
-
`/model`
|
|
43
|
+
`/model` _id_
|
|
44
44
|
: Switch model.
|
|
45
45
|
|
|
46
|
-
`/model effort`
|
|
46
|
+
`/model effort` _low|medium|high|xhigh|off_
|
|
47
47
|
: Set reasoning effort.
|
|
48
48
|
|
|
49
|
-
`/session` \[
|
|
49
|
+
`/session` \[_id_\]
|
|
50
50
|
: List sessions or switch to one.
|
|
51
51
|
|
|
52
52
|
`/new`
|
|
@@ -55,22 +55,22 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
55
55
|
`/undo`
|
|
56
56
|
: Remove last turn (does NOT revert filesystem).
|
|
57
57
|
|
|
58
|
-
`/reasoning` \[
|
|
58
|
+
`/reasoning` \[_on|off_\]
|
|
59
59
|
: Toggle reasoning display.
|
|
60
60
|
|
|
61
|
-
`/verbose` \[
|
|
61
|
+
`/verbose` \[_on|off_\]
|
|
62
62
|
: Toggle output truncation.
|
|
63
63
|
|
|
64
64
|
`/mcp list`
|
|
65
65
|
: List MCP servers.
|
|
66
66
|
|
|
67
|
-
`/mcp add`
|
|
67
|
+
`/mcp add` _name_ `http` _url_
|
|
68
68
|
: Add HTTP MCP server.
|
|
69
69
|
|
|
70
|
-
`/mcp add`
|
|
70
|
+
`/mcp add` _name_ `stdio` _cmd_ \[_args..._\]
|
|
71
71
|
: Add stdio MCP server.
|
|
72
72
|
|
|
73
|
-
`/mcp remove`
|
|
73
|
+
`/mcp remove` _name_
|
|
74
74
|
: Remove MCP server.
|
|
75
75
|
|
|
76
76
|
`/review`
|
|
@@ -79,10 +79,10 @@ Developer-focused CLI coding agent. Prioritizes dev flow — no slow startup, no
|
|
|
79
79
|
`/login`
|
|
80
80
|
: Show OAuth login status.
|
|
81
81
|
|
|
82
|
-
`/login`
|
|
82
|
+
`/login` _provider_
|
|
83
83
|
: Login via OAuth (opens browser for device flow). Currently supports `anthropic`.
|
|
84
84
|
|
|
85
|
-
`/logout`
|
|
85
|
+
`/logout` _provider_
|
|
86
86
|
: Clear saved OAuth tokens.
|
|
87
87
|
|
|
88
88
|
`/help`
|
package/lefthook.yml
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
pre-commit:
|
|
2
|
-
parallel: true
|
|
3
2
|
commands:
|
|
4
|
-
|
|
5
|
-
run: bun run
|
|
6
|
-
knip:
|
|
7
|
-
run: bun run knip
|
|
8
|
-
typecheck:
|
|
9
|
-
run: bun run typecheck
|
|
10
|
-
format:
|
|
11
|
-
run: bun run format
|
|
12
|
-
lint:
|
|
13
|
-
run: bun run lint
|
|
14
|
-
test:
|
|
15
|
-
run: bun run test
|
|
3
|
+
check:
|
|
4
|
+
run: bun run check
|
package/package.json
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
2
|
+
"name": "mini-coder",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "A small, fast CLI coding agent",
|
|
5
|
+
"module": "src/index.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"mc": "dist/mc.js",
|
|
9
|
+
"mc-edit": "dist/mc-edit.js"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prepare": "lefthook install",
|
|
13
|
+
"build": "bun run scripts/build.ts",
|
|
14
|
+
"dev": "bun run src/index.ts",
|
|
15
|
+
"format": "prettier --write --log-level warn .",
|
|
16
|
+
"check": "bun run prettier -c . && bun run typecheck && bun run lint && bun run knip && bun run jscpd && bun run test",
|
|
17
|
+
"typecheck": "tsc --noEmit",
|
|
18
|
+
"lint": "biome check src",
|
|
19
|
+
"knip": "knip",
|
|
20
|
+
"test": "bun test --only-failures",
|
|
21
|
+
"test:verbose": "bun test",
|
|
22
|
+
"jscpd": "jscpd -s src"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@ai-sdk/anthropic": "^3.0.60",
|
|
26
|
+
"@ai-sdk/google": "^3.0.51",
|
|
27
|
+
"@ai-sdk/openai": "^3.0.45",
|
|
28
|
+
"@ai-sdk/openai-compatible": "^2.0.36",
|
|
29
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
30
|
+
"ai": "^6.0.127",
|
|
31
|
+
"diff": "^8.0.3",
|
|
32
|
+
"yoctocolors": "^2.1.2",
|
|
33
|
+
"yoctomarkdown": "^0.0.7",
|
|
34
|
+
"zod": "^4.3.6"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@biomejs/biome": "^2.4.6",
|
|
38
|
+
"@types/bun": "latest",
|
|
39
|
+
"jscpd": "^4.0.8",
|
|
40
|
+
"knip": "^5.86.0",
|
|
41
|
+
"lefthook": "^2.1.4",
|
|
42
|
+
"prettier": "^3.8.1",
|
|
43
|
+
"typescript": "^5.9.3"
|
|
44
|
+
},
|
|
45
|
+
"knip": {
|
|
46
|
+
"entry": [
|
|
47
|
+
"src/mc-edit.ts"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"license": "MIT"
|
|
49
51
|
}
|
package/CLAUDE.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Read and follow the instructions in [AGENTS.md](AGENTS.md).
|