novacode 0.2.0 → 0.3.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 +2 -4
- package/package.json +2 -3
- package/src/main.ts +9 -8
package/README.md
CHANGED
|
@@ -22,17 +22,15 @@ You can also run without installing using `bunx novacode`.
|
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
24
24
|
|
|
25
|
-
### 1. Launch
|
|
25
|
+
### 1. Launch nova
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
nova
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
`novacode` and `nova` are the same command — use whichever you prefer.
|
|
32
|
-
|
|
33
31
|
### 2. First-run setup
|
|
34
32
|
|
|
35
|
-
On first launch,
|
|
33
|
+
On first launch, nova walks you through a quick setup:
|
|
36
34
|
|
|
37
35
|
1. **Pick a provider** — GLM (Z.AI), Gemini (Google), DeepSeek, or OpenAI
|
|
38
36
|
2. **Enter your API key** — stored securely in `~/.novacode/auth.json`
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "novacode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Open-source multi-provider coding agent. Bun-native.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/main.ts",
|
|
7
7
|
"bin": {
|
|
8
|
-
"novacode": "src/main.ts",
|
|
9
8
|
"nova": "src/main.ts"
|
|
10
9
|
},
|
|
11
10
|
"files": [
|
|
@@ -20,7 +19,7 @@
|
|
|
20
19
|
"lint:fix": "biome check --write .",
|
|
21
20
|
"format": "biome format --write .",
|
|
22
21
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"build": "bun build src/main.ts --compile --outfile
|
|
22
|
+
"build": "bun build src/main.ts --compile --outfile nova",
|
|
24
23
|
"check": "bun run typecheck && bun run lint && bun test",
|
|
25
24
|
"prepublishOnly": "bun run check"
|
|
26
25
|
},
|
package/src/main.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
1
2
|
/**
|
|
2
|
-
* Entry point for the
|
|
3
|
+
* Entry point for the nova CLI.
|
|
3
4
|
* Handles configuration, CLI flags, and switches between interactive/print modes.
|
|
4
5
|
*/
|
|
5
6
|
import { parseArgs } from "node:util"
|
|
@@ -46,18 +47,18 @@ async function main() {
|
|
|
46
47
|
|
|
47
48
|
if (flags.version) {
|
|
48
49
|
const pkg = await Bun.file("package.json").json()
|
|
49
|
-
console.log(`
|
|
50
|
+
console.log(`nova ${pkg.version}`)
|
|
50
51
|
process.exit(0)
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
if (flags.help) {
|
|
54
|
-
console.log(`
|
|
55
|
+
console.log(`nova — open-source coding agent
|
|
55
56
|
|
|
56
57
|
Usage:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
nova Interactive mode
|
|
59
|
+
nova "prompt" Print mode (non-interactive)
|
|
60
|
+
nova session <cmd> Session management (list, delete)
|
|
61
|
+
nova --session <id> Resume a session
|
|
61
62
|
|
|
62
63
|
Options:
|
|
63
64
|
-h, --help Show help
|
|
@@ -103,7 +104,7 @@ Options:
|
|
|
103
104
|
|
|
104
105
|
if (!apiKey) {
|
|
105
106
|
console.error(
|
|
106
|
-
`No API key for ${provider.name}. Set ${provider.envKey} or run
|
|
107
|
+
`No API key for ${provider.name}. Set ${provider.envKey} or run nova for onboarding.`,
|
|
107
108
|
)
|
|
108
109
|
process.exit(1)
|
|
109
110
|
}
|