nexgenr 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/NOTICE +10 -0
- package/README.md +89 -2
- package/dist/main.mjs +504027 -0
- package/dist/search-worker.mjs +13702 -0
- package/dist-web/index.html +20 -0
- package/package.json +117 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Moonshot AI
|
|
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/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
NexgenR
|
|
2
|
+
Copyright (c) 2026 NexgenR
|
|
3
|
+
|
|
4
|
+
This product is a fork of the kimi-code project, Copyright (c) 2026 Moonshot AI,
|
|
5
|
+
distributed under the MIT License. The original MIT license text is reproduced
|
|
6
|
+
in the LICENSE file. NexgenR replaces the original provider, authentication,
|
|
7
|
+
telemetry, update, and plugin integrations with NexgenRouter
|
|
8
|
+
(https://ia.nexgen.systems) and does not call Moonshot or Kimi services.
|
|
9
|
+
|
|
10
|
+
Third-party dependencies remain under their own licenses.
|
package/README.md
CHANGED
|
@@ -1,3 +1,90 @@
|
|
|
1
|
-
#
|
|
1
|
+
# nexgenr
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
NexgenR CLI is a terminal AI coding agent wired to the **NexgenR red-team** surface.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
Requires Node.js 22.19.0 or later.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -g nexgenr
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Or with pnpm:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pnpm add -g nexgenr
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Configure
|
|
20
|
+
|
|
21
|
+
NexgenR signs in with an API key. There is no OAuth and no device flow:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
export NEXGENR_API_KEY="<your key>"
|
|
25
|
+
# optional, defaults to https://redteam.nexgen.systems/v1
|
|
26
|
+
export NEXGENR_BASE_URL="https://redteam.nexgen.systems/v1"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
nexgenr login # reads NEXGENR_API_KEY
|
|
31
|
+
nexgenr login --api-key <your key> # or pass it explicitly
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The same key works on both surfaces; the header is what changes:
|
|
35
|
+
|
|
36
|
+
| Surface | Send the key as | Rejected |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| `/v1/…` inference and catalog | `Authorization: Bearer <key>` or `x-api-key: <key>` | `x-bf-vk` answers 401 here |
|
|
39
|
+
| `/mcp` gateway | `x-bf-vk: <key>` or `Authorization: Bearer <key>` | — |
|
|
40
|
+
|
|
41
|
+
The key must be provisioned for the `vllm` provider and the `nexgen-redteam` model.
|
|
42
|
+
Without that grant `GET /v1/models` answers 200 with an empty catalog and chat fails
|
|
43
|
+
with `400 modelo-desconocido`.
|
|
44
|
+
|
|
45
|
+
`nexgenr login` writes `~/.nexgenr/config.toml` with the `redteam` provider and its single
|
|
46
|
+
model `nexgen-redteam` (262 144 tokens of context), and `~/.nexgenr/mcp.json` with the
|
|
47
|
+
gateway. It does not call the catalog: the model list is static.
|
|
48
|
+
|
|
49
|
+
## Quick start
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
cd your-project
|
|
53
|
+
nexgenr -p "Summarize this repository"
|
|
54
|
+
nexgenr # interactive terminal UI
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## What it talks to
|
|
58
|
+
|
|
59
|
+
| Capability | Endpoint |
|
|
60
|
+
|---|---|
|
|
61
|
+
| Chat, streaming only | `POST /v1/chat/completions` |
|
|
62
|
+
| Model catalog | `GET /v1/models` |
|
|
63
|
+
| Health and published limits | `GET /health`, no credential |
|
|
64
|
+
| MCP gateway | `POST /mcp` — 24 tools (8 Brave_Search, 16 Crawl4AI) |
|
|
65
|
+
|
|
66
|
+
`POST /v1/completions` and `POST /v1/embeddings` are in the edge allowlist but the engine
|
|
67
|
+
answers 404: `POST /v1/chat/completions` is the only inference route.
|
|
68
|
+
|
|
69
|
+
Limits, as published by `GET /health`: 4 requests in flight per consumer with `429` and
|
|
70
|
+
`Retry-After: 10` beyond that, a 12 MiB request body, and 262 144 tokens of context. A
|
|
71
|
+
prefill can take minutes, so requests stream and wait up to 3 600 s for the first byte.
|
|
72
|
+
|
|
73
|
+
## Features
|
|
74
|
+
|
|
75
|
+
- Terminal UI, headless `-p` mode, ACP server, and a local REST/WS API (`nexgenr web`).
|
|
76
|
+
- Sessions persisted under `~/.nexgenr/sessions`, with `wire.jsonl` as the source of truth.
|
|
77
|
+
- Permissions and approvals with `manual`, `yolo`, and `auto` modes.
|
|
78
|
+
- Agent Skills, MCP servers, subagents, goals, cron tasks, and Swarm fan-out.
|
|
79
|
+
- Provider/model configuration for any OpenAI-, Anthropic-, or Gemini-compatible endpoint.
|
|
80
|
+
|
|
81
|
+
## Not included in this build
|
|
82
|
+
|
|
83
|
+
- Remote Control (requires a relay service).
|
|
84
|
+
- CDN-based auto-update; upgrade with `npm install -g nexgenr@latest`.
|
|
85
|
+
- The bundled browser UI; `nexgenr web` serves the API plus a minimal landing page.
|
|
86
|
+
- SSO: NexgenR signs in with an API key only.
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT. See `LICENSE` and `NOTICE` for the upstream attribution.
|