nexgenk 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 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
+ NexgenK
2
+ Copyright (c) 2026 NexgenK
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. NexgenK 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,75 @@
1
- # Temporary Holding Version
1
+ # nexgenk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ NexgenK CLI is a terminal AI coding agent wired to **NexgenRouter**.
4
+
5
+ ## Install
6
+
7
+ Requires Node.js 22.19.0 or later.
8
+
9
+ ```sh
10
+ npm install -g nexgenk
11
+ ```
12
+
13
+ Or with pnpm:
14
+
15
+ ```sh
16
+ pnpm add -g nexgenk
17
+ ```
18
+
19
+ ## Configure
20
+
21
+ NexgenK authenticates with a NexgenRouter API key:
22
+
23
+ ```sh
24
+ export NEXGEN_API_KEY="<your key>"
25
+ # optional, defaults to https://ia.nexgen.systems/v1
26
+ export NEXGEN_BASE_URL="https://ia.nexgen.systems/v1"
27
+ ```
28
+
29
+ Validate the key and provision the model catalog:
30
+
31
+ ```sh
32
+ nexgenk login # reads NEXGEN_API_KEY
33
+ nexgenk login --api-key <your key> # or pass it explicitly
34
+ ```
35
+
36
+ This reads `GET /v1/models`, writes `~/.nexgenk/config.toml`, and selects `nexgen-auto` as the default model.
37
+
38
+ ## Quick start
39
+
40
+ ```sh
41
+ cd your-project
42
+ nexgenk -p "Summarize this repository"
43
+ nexgenk # interactive terminal UI
44
+ ```
45
+
46
+ ## What it talks to
47
+
48
+ | Capability | Endpoint |
49
+ |---|---|
50
+ | Chat (OpenAI, Responses, Anthropic) | `POST /v1/chat/completions`, `/v1/responses`, `/v1/messages` |
51
+ | Model catalog | `GET /v1/models` |
52
+ | Web search | `POST /v1/tools/search` |
53
+ | URL fetch | `POST /v1/tools/fetch` |
54
+ | Server tools | `openrouter:*` declared in `tools[]` |
55
+
56
+ Authentication uses `Authorization: Bearer <key>` (and `x-api-key` on the Anthropic wire).
57
+
58
+ ## Features
59
+
60
+ - Terminal UI, headless `-p` mode, ACP server, and a local REST/WS API (`nexgenk web`).
61
+ - Sessions persisted under `~/.nexgenk/sessions`, with `wire.jsonl` as the source of truth.
62
+ - Permissions and approvals with `manual`, `yolo`, and `auto` modes.
63
+ - Agent Skills, MCP servers, subagents, goals, cron tasks, and Swarm fan-out.
64
+ - Provider/model configuration for any OpenAI-, Anthropic-, or Gemini-compatible endpoint.
65
+
66
+ ## Not included in this build
67
+
68
+ - Remote Control (requires a relay service).
69
+ - CDN-based auto-update; upgrade with `npm install -g nexgenk@latest`.
70
+ - The bundled browser UI; `nexgenk web` serves the API plus a minimal landing page.
71
+ - Device-flow OAuth; `nexgenk login` validates an API key and writes the provider entry.
72
+
73
+ ## License
74
+
75
+ MIT. See `LICENSE` and `NOTICE` for the upstream attribution.