@moreai/code 0.1.0-beta.2 → 0.1.0-beta.4
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 +66 -14
- package/dist/daemon.mjs +1232 -2582
- package/dist/locales.dat +0 -0
- package/dist/moreai.mjs +205 -366
- package/dist/resources/file-acl/macos/moreai-file-acl +0 -0
- package/media/approve.webp +0 -0
- package/media/connect.webp +0 -0
- package/media/start.webp +0 -0
- package/package.json +4 -3
- package/dist/locales/am.json +0 -1185
- package/dist/locales/bho.json +0 -1185
- package/dist/locales/bn.json +0 -1185
- package/dist/locales/da.json +0 -1185
- package/dist/locales/de.json +0 -1185
- package/dist/locales/es-419.json +0 -1187
- package/dist/locales/es.json +0 -1187
- package/dist/locales/fi.json +0 -1185
- package/dist/locales/fil.json +0 -1185
- package/dist/locales/fr.json +0 -1187
- package/dist/locales/gu.json +0 -1185
- package/dist/locales/ha.json +0 -1185
- package/dist/locales/hi.json +0 -1185
- package/dist/locales/id.json +0 -1149
- package/dist/locales/it.json +0 -1187
- package/dist/locales/ja.json +0 -1149
- package/dist/locales/kn.json +0 -1185
- package/dist/locales/ko.json +0 -1149
- package/dist/locales/ml.json +0 -1185
- package/dist/locales/mr.json +0 -1185
- package/dist/locales/nb.json +0 -1185
- package/dist/locales/nl.json +0 -1185
- package/dist/locales/pt-BR.json +0 -1187
- package/dist/locales/ru.json +0 -1261
- package/dist/locales/sv.json +0 -1185
- package/dist/locales/sw.json +0 -1185
- package/dist/locales/ta.json +0 -1185
- package/dist/locales/te.json +0 -1185
- package/dist/locales/th.json +0 -1149
- package/dist/locales/tr.json +0 -1185
- package/dist/locales/uk.json +0 -1261
- package/dist/locales/vi.json +0 -1149
- package/dist/locales/zh-TW.json +0 -1148
- package/dist/locales/zh.json +0 -1148
package/README.md
CHANGED
|
@@ -13,26 +13,85 @@
|
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
|
-
<img alt="More AI Code exploring a repository, editing a file, writing a test, running it and summarising the change" src="https://
|
|
16
|
+
<img alt="More AI Code exploring a repository, editing a file, writing a test, running it and summarising the change" src="https://unpkg.com/@moreai/code@0.1.0-beta.4/media/session.webp" width="860">
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
+
More AI Code is an assistant that works in your project from the terminal.
|
|
20
|
+
Describe a task in plain words — "fix the failing test", "add validation to
|
|
21
|
+
the signup form", "explain how billing works" — and it reads the code, edits
|
|
22
|
+
the files, runs the commands and tests, and tells you what it changed. You stay
|
|
23
|
+
in control: anything risky waits for your yes.
|
|
24
|
+
|
|
25
|
+
It works with the AI you already have: an API key from more than 30 providers, a
|
|
26
|
+
ChatGPT, GitHub Copilot or Claude subscription, or a model running on your own
|
|
27
|
+
computer. No account and no desktop app are needed.
|
|
28
|
+
|
|
19
29
|
## Install
|
|
20
30
|
|
|
21
31
|
```sh
|
|
22
32
|
npm install -g @moreai/code
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> **Keep the `-g`.** The install box in npm's sidebar shows
|
|
36
|
+
> `npm i @moreai/code`, which only adds the package to the current folder — the
|
|
37
|
+
> `moreai` command appears only after a global install.
|
|
38
|
+
|
|
39
|
+
Requires **Node.js 22 or newer** (`node --version`) on macOS, Linux or Windows.
|
|
40
|
+
Check the install with `moreai --version`. On Linux, if npm answers `EACCES`,
|
|
41
|
+
install Node with a version manager such as [nvm](https://github.com/nvm-sh/nvm)
|
|
42
|
+
or [fnm](https://github.com/Schniz/fnm) instead of using `sudo`.
|
|
43
|
+
|
|
44
|
+
## Get started in three steps
|
|
45
|
+
|
|
46
|
+
### 1. Open your project and connect a model
|
|
47
|
+
|
|
48
|
+
```sh
|
|
23
49
|
cd your-project
|
|
24
50
|
moreai
|
|
25
51
|
```
|
|
26
52
|
|
|
27
|
-
|
|
28
|
-
|
|
53
|
+
The first launch asks how to reach a model. Pick a provider from the list (type
|
|
54
|
+
to search), then paste an API key, sign in with your subscription, or choose a
|
|
55
|
+
local model from Ollama or LM Studio. Keys stay on your machine.
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<img alt="The first launch: a searchable list of AI providers — Anthropic, OpenAI, ChatGPT, Google Gemini, GitHub Copilot, OpenRouter and more" src="https://unpkg.com/@moreai/code@0.1.0-beta.4/media/connect.webp" width="760">
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
Already have `ANTHROPIC_API_KEY`, `OPENAI_API_KEY` or another provider key in
|
|
62
|
+
your environment? It is offered at the top of the list.
|
|
63
|
+
|
|
64
|
+
### 2. Say what you want done
|
|
65
|
+
|
|
66
|
+
Type the task as you would tell a colleague and press **Enter**. The line under
|
|
67
|
+
the prompt shows the access mode, the model and your branch.
|
|
68
|
+
|
|
69
|
+
<p align="center">
|
|
70
|
+
<img alt="A session in a project folder, with the task typed into the prompt" src="https://unpkg.com/@moreai/code@0.1.0-beta.4/media/start.webp" width="760">
|
|
71
|
+
</p>
|
|
72
|
+
|
|
73
|
+
### 3. Follow along and approve what matters
|
|
74
|
+
|
|
75
|
+
The agent shows every step: files it reads, each edit as a diff, commands and
|
|
76
|
+
their output. You choose how much it may do on its own. In `accept-edits`,
|
|
77
|
+
shown here, it edits files freely and stops before every command — allow it
|
|
78
|
+
once, for the session, always, or deny it. In `auto`, the default, it runs
|
|
79
|
+
what it can show is safe and declines the rest.
|
|
80
|
+
|
|
81
|
+
<p align="center">
|
|
82
|
+
<img alt="A permission card asking to run npm test, with the choices Allow once, Allow for this session, Always allow and Deny" src="https://unpkg.com/@moreai/code@0.1.0-beta.4/media/approve.webp" width="760">
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
While it works you can keep typing to steer it, **Esc** interrupts, and
|
|
86
|
+
**Shift+Tab** switches the access mode (see *Access modes* below). `/help`
|
|
87
|
+
lists every command.
|
|
29
88
|
|
|
30
89
|
## What it does
|
|
31
90
|
|
|
32
91
|
- **Works in your repository.** Reads and searches the code, edits files and
|
|
33
92
|
shows each change as a diff, runs commands and tests, keeps a checklist of
|
|
34
93
|
its own plan, and answers in plain language.
|
|
35
|
-
- **Runs on your models.**
|
|
94
|
+
- **Runs on your models.** More than 30 providers: Anthropic, OpenAI, Google
|
|
36
95
|
Gemini, OpenRouter, DeepSeek, Groq, local models through Ollama or LM Studio,
|
|
37
96
|
any OpenAI-compatible endpoint, and ChatGPT or GitHub Copilot subscriptions.
|
|
38
97
|
Keys stay on your machine.
|
|
@@ -47,23 +106,16 @@ helps you connect a model; nothing else is required — no account, no desktop a
|
|
|
47
106
|
- **Listens.** `Ctrl+T` dictates into the prompt.
|
|
48
107
|
- **Speaks your language.** The interface is translated into 35 languages.
|
|
49
108
|
|
|
50
|
-
##
|
|
109
|
+
## Everyday commands
|
|
51
110
|
|
|
52
111
|
```sh
|
|
53
112
|
moreai # interactive session in this folder
|
|
54
113
|
moreai setup # guided setup: model, optional account and services
|
|
55
114
|
moreai auth # connect or change an AI provider
|
|
115
|
+
moreai auth env # connect every provider key found in your environment
|
|
56
116
|
moreai doctor # check that everything is ready
|
|
57
117
|
```
|
|
58
118
|
|
|
59
|
-
If a provider key is already in your environment (`ANTHROPIC_API_KEY`,
|
|
60
|
-
`OPENAI_API_KEY`, …), the first launch offers it at the top of the list, and
|
|
61
|
-
`moreai auth env` connects every one it finds.
|
|
62
|
-
|
|
63
|
-
In a session, type a task and press **Enter**. While the agent works you can
|
|
64
|
-
keep typing to steer it, **Esc** interrupts, and **Shift+Tab** changes the
|
|
65
|
-
access mode. `/help` lists every command.
|
|
66
|
-
|
|
67
119
|
## Access modes
|
|
68
120
|
|
|
69
121
|
| Mode | What the agent may do |
|
|
@@ -79,7 +131,7 @@ Pick one with **Shift+Tab** in a session or `--mode <mode>` on the command line.
|
|
|
79
131
|
## Helper agents
|
|
80
132
|
|
|
81
133
|
<p align="center">
|
|
82
|
-
<img alt="Three parallel helper agents researching webhooks, each with its result, then the combined answer" src="https://
|
|
134
|
+
<img alt="Three parallel helper agents researching webhooks, each with its result, then the combined answer" src="https://unpkg.com/@moreai/code@0.1.0-beta.4/media/helpers.webp" width="860">
|
|
83
135
|
</p>
|
|
84
136
|
|
|
85
137
|
For broad questions the agent can start several **helper agents** in
|