novacode 0.3.0 → 0.4.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.
- package/README.md +13 -30
- package/package.json +1 -1
- package/src/main.ts +2 -1
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# NovaCode
|
|
2
2
|
|
|
3
|
-
Open-source, multi-provider coding agent.
|
|
3
|
+
Open-source, multi-provider coding agent.
|
|
4
4
|
|
|
5
5
|
> **Currently in early development.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
<img width="1164" height="720" alt="result" src="https://github.com/user-attachments/assets/a456c41a-ec19-4a4d-b3b7-180e6b83acc3" />
|
|
8
8
|
|
|
9
|
+
## Install
|
|
9
10
|
Requires [Bun](https://bun.sh) >= 1.3.
|
|
10
11
|
|
|
11
12
|
```bash
|
|
@@ -31,10 +32,9 @@ nova
|
|
|
31
32
|
### 2. First-run setup
|
|
32
33
|
|
|
33
34
|
On first launch, nova walks you through a quick setup:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
3. **Pick a default model** — choose from the provider's available models
|
|
35
|
+
1. **Pick a provider**
|
|
36
|
+
2. **Enter your API key**
|
|
37
|
+
3. **Pick a default model**
|
|
38
38
|
|
|
39
39
|
That's it. You're ready to go.
|
|
40
40
|
|
|
@@ -55,33 +55,16 @@ nova "explain the auth module in this project"
|
|
|
55
55
|
nova "fix the type error in src/utils.ts"
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### 4.
|
|
58
|
+
### 4. Flags & commands
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
nova
|
|
63
|
-
|
|
64
|
-
nova
|
|
65
|
-
nova --api-key <key> # override API key
|
|
66
|
-
nova -s <session-id> # resume a previous session
|
|
67
|
-
nova session list # list saved sessions
|
|
68
|
-
nova session delete <id> # delete a session
|
|
69
|
-
nova -v # show version
|
|
70
|
-
nova -h # show help
|
|
71
|
-
```
|
|
60
|
+
Available flags: `--provider`, `--model`, `--api-key`, `-s` (resume session)
|
|
61
|
+
|
|
62
|
+
Session commands: `nova session list`, `nova session delete <id>`
|
|
63
|
+
|
|
64
|
+
Run `nova -h` or type `/help` in interactive mode to see everything.
|
|
72
65
|
|
|
73
66
|
### Supported Providers
|
|
74
67
|
|
|
75
68
|
GLM (Z.AI), Gemini (Google), DeepSeek, OpenAI
|
|
76
69
|
|
|
77
|
-
You can set API keys via environment variables or let the onboarding wizard store them in `~/.novacode/auth.json`.
|
|
78
|
-
|
|
79
|
-
## Build from Source
|
|
80
70
|
|
|
81
|
-
```bash
|
|
82
|
-
git clone https://github.com/rwitesh/novacode.git
|
|
83
|
-
cd novacode
|
|
84
|
-
bun install
|
|
85
|
-
bun run dev # run with watch mode
|
|
86
|
-
bun run build # compile to binary
|
|
87
|
-
```
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Entry point for the nova CLI.
|
|
4
4
|
* Handles configuration, CLI flags, and switches between interactive/print modes.
|
|
5
5
|
*/
|
|
6
|
+
import { join } from "node:path"
|
|
6
7
|
import { parseArgs } from "node:util"
|
|
7
8
|
import { Agent } from "./agent/agent.ts"
|
|
8
9
|
import { buildSystemPrompt } from "./agent/prompt.ts"
|
|
@@ -46,7 +47,7 @@ async function main() {
|
|
|
46
47
|
const { flags, args } = parseCli()
|
|
47
48
|
|
|
48
49
|
if (flags.version) {
|
|
49
|
-
const pkg = await Bun.file("package.json").json()
|
|
50
|
+
const pkg = await Bun.file(join(import.meta.dir, "..", "package.json")).json()
|
|
50
51
|
console.log(`nova ${pkg.version}`)
|
|
51
52
|
process.exit(0)
|
|
52
53
|
}
|