@menteeai/menteeswe 0.1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +80 -0
  3. package/dist/cli.js +3224 -0
  4. package/package.json +50 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MenteE
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.
package/README.md ADDED
@@ -0,0 +1,80 @@
1
+ # MenteE SWE
2
+
3
+ An autonomous **SWE agent in your terminal**. It investigates your repository, plans, makes minimal edits, runs your tests, debugs failures, and reports back with evidence — never claiming success without proof.
4
+
5
+ **Bring your own intelligence:** MenteE is model-agnostic. Kimi, GLM, and more plug in as replaceable providers. The product is the harness: tools, verification loop, context management, and orchestration.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g menteeswe
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```bash
16
+ # one-time configuration (choose Kimi or GLM, paste API key)
17
+ mentee config
18
+
19
+ # run a task in your project
20
+ cd your-project
21
+ mentee "fix the failing auth tests"
22
+ ```
23
+
24
+ Or try without installing: `npx menteeswe "your task"`.
25
+
26
+ ## Providers
27
+
28
+ | Provider | Default model | Env var |
29
+ |---|---|---|
30
+ | Kimi (Moonshot) | `kimi-k2.7-code` | `MENTEE_KIMI_API_KEY` |
31
+ | GLM (Zhipu CN) | `glm-4.6` | `MENTEE_GLM_API_KEY` |
32
+ | Z.ai (GLM international) | `glm-4.6` | `MENTEE_ZAI_API_KEY` |
33
+ | mock (testing) | — | no key needed |
34
+
35
+ Select with `-p kimi` / `-p glm` / `-p zai`, override the model with `-m <id>`.
36
+
37
+ ## Inside the TUI
38
+
39
+ The interactive CLI stays open between tasks. Type a task and press Enter, or use slash commands:
40
+
41
+ ```text
42
+ /provider zai switch provider (kimi, glm, zai, mock)
43
+ /model glm-4.5-air set the model for the current provider
44
+ /key <api-key> add the API key for the current provider (saved to ~/.mentee/config.json)
45
+ /help list commands
46
+ /exit quit
47
+ ```
48
+
49
+ ## Safety model
50
+
51
+ - **safe** — read-only commands (`git status`, `npm test`, `ls`) run automatically
52
+ - **restricted** — installs, git history changes → interactive approval (`y` / `a` / `n`), or auto-approve with `--yes`
53
+ - **dangerous** — `rm -rf`, `sudo`, force pushes → always blocked
54
+
55
+ All file edits are constrained to the current workspace. Sessions log to `~/.mentee/logs/`.
56
+
57
+ ## CLI
58
+
59
+ ```text
60
+ mentee [task...] run a task (interactive TUI in a terminal)
61
+ mentee config provider/key setup wizard
62
+ mentee -p glm "task" choose provider
63
+ mentee -m kimi-k2-turbo-preview override model
64
+ mentee --yes --no-tui "task" headless mode for scripts/CI
65
+ ```
66
+
67
+ ## Development
68
+
69
+ ```bash
70
+ npm install
71
+ npm run dev # run from source
72
+ npm test # unit + integration tests (mock provider, no API keys needed)
73
+ npm run typecheck # tsc --noEmit
74
+ npm run build # bundle to dist/
75
+ npm run eval # eval suite against fixture repos (mock provider)
76
+ ```
77
+
78
+ ## Architecture
79
+
80
+ See [../MAIN_GOAL.md](../MAIN_GOAL.md) for the full product plan: phases, verification loop, subagents, context engineering, and routing roadmap.