@genspark/gencode 1.18.31-gencode.5 → 1.18.31-gencode.6

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 CHANGED
@@ -1,13 +1,129 @@
1
1
  # GenCode
2
2
 
3
- GenCode is Genspark's coding agent for the terminal, built on [opencode](https://github.com/anomalyco/opencode) (MIT).
3
+ GenCode is Genspark's AI coding agent for the terminal. Point it at a project and
4
+ it reads the code, plans changes, edits files, runs commands and tests, and
5
+ explains what it did — powered by the models included in your Genspark plan. It
6
+ ships as an interactive TUI and a scriptable CLI.
7
+
8
+ GenCode is built on the open source [opencode](https://github.com/anomalyco/opencode)
9
+ project and retains its MIT notice (see `LICENSE-opencode`) for the derived code.
10
+ GenCode itself is a proprietary Genspark product and is not affiliated with or
11
+ endorsed by the opencode project.
12
+
13
+ ## Requirements
14
+
15
+ - A **Genspark account** — GenCode signs in with it and runs on the models your
16
+ Genspark plan includes. Sign up or manage your plan at
17
+ [www.genspark.ai](https://www.genspark.ai).
18
+ - Node.js 18+ to run the installer (`postinstall`). The CLI itself is a
19
+ self-contained binary and needs no Node.js at runtime.
20
+ - macOS (arm64, x64), Linux glibc and musl (arm64, x64), and Windows (arm64, x64).
21
+
22
+ ## Install
4
23
 
5
24
  ```sh
6
25
  npm install -g @genspark/gencode
7
- gencode # start the TUI in the current project
8
- gencode auth login # sign in to Genspark
26
+ # or
27
+ bun add -g @genspark/gencode
28
+ pnpm add -g @genspark/gencode
29
+ yarn global add @genspark/gencode
30
+ ```
31
+
32
+ Verify the install:
33
+
34
+ ```sh
35
+ gencode --version
36
+ ```
37
+
38
+ ## Sign in
39
+
40
+ ```sh
41
+ gencode login
42
+ ```
43
+
44
+ This opens the Genspark sign-in page in your browser. Approve the request and the
45
+ CLI is ready. `gencode auth login` and picking **Genspark** is equivalent. If you
46
+ already use the [Genspark CLI](https://www.npmjs.com/package/@genspark/cli)
47
+ (`gsk login`), GenCode reuses that sign-in automatically. No Genspark account yet?
48
+ Create one at [www.genspark.ai](https://www.genspark.ai).
49
+
50
+ The same environment variables apply:
51
+
52
+ | Variable | Purpose |
53
+ | -------------- | ----------------------------------------------------- |
54
+ | `GSK_API_KEY` | Use this Genspark API key instead of a stored sign-in |
55
+ | `GSK_BASE_URL` | Genspark host, default `https://www.genspark.ai` |
56
+ | `GSK_CONFIG` | Path to a `gsk` config file to read the sign-in from |
57
+
58
+ Sign out with `gencode auth logout`.
59
+
60
+ ## Use
61
+
62
+ ```sh
63
+ cd your-project
64
+ gencode # interactive TUI
65
+ gencode run "explain this repo" # one-shot answer, then exit
66
+ gencode run -m genspark-llm-proxy/claude-opus-5 "add tests for src/auth.ts"
67
+ gencode --continue # resume the most recent session
68
+ gencode models # list the models your plan includes
69
+ gencode serve # headless server on http://127.0.0.1:4196
70
+ ```
71
+
72
+ Inside the TUI, `Tab` switches between the **build** agent (full access) and the
73
+ **plan** agent (read-only, asks before running commands); `/connect` manages
74
+ providers and `/help` lists the rest. The model choice is remembered per project.
75
+
76
+ Models come from your Genspark account rather than a list baked into the CLI:
77
+ whatever Genspark enables for you appears in `gencode models` and the model
78
+ picker, with reasoning-effort variants where the model supports them. Spend is
79
+ shown in Genspark credits per step.
80
+
81
+ ## Configure
82
+
83
+ GenCode reads the same configuration format as opencode, from its own locations:
84
+
85
+ | Scope | Location |
86
+ | ------------------ | --------------------------------------------------------------------------------------------------------------------------- |
87
+ | Global | `~/.config/gencode/opencode.json` (or `.jsonc`), plus `agent/`, `command/`, `skill/`, `AGENTS.md` next to it |
88
+ | Project (yours) | `~/.local/share/gencode/projects/<key>/opencode.json` (or `.jsonc`) — per-checkout settings that stay out of the repository |
89
+ | Project resources | `.opencode/{agent,command,skill}/` in the repository, shared with opencode on purpose |
90
+ | Data, cache, state | `~/.local/share/gencode`, `~/.cache/gencode`, `~/.local/state/gencode` |
91
+
92
+ Genspark providers are added for you, so you rarely need a `provider` block.
93
+ Everything else — agents, custom commands, skills, MCP servers, permissions and
94
+ keybinds — works as described in the [opencode docs](https://opencode.ai/docs).
95
+ `OPENCODE_*` environment variables apply to GenCode unchanged.
96
+
97
+ ## Upgrading
98
+
99
+ ```sh
100
+ gencode upgrade # or: npm i -g @genspark/gencode@latest
101
+ ```
102
+
103
+ The TUI checks for updates at startup and every six hours. By default it only
104
+ notifies; use `/update` to install after confirmation, remind you tomorrow, or
105
+ skip that version. Set global `autoupdate: false` or
106
+ `OPENCODE_DISABLE_AUTOUPDATE=1` to disable automatic checks — manual `gencode
107
+ upgrade` still works.
108
+
109
+ ## Coexisting with opencode
110
+
111
+ GenCode and opencode can be installed at the same time. They use different
112
+ commands (`gencode` / `opencode`), packages, configuration, data and cache
113
+ directories, default server ports (`4196` / `4096`) and mDNS names. Only the
114
+ project-level `.opencode/` directory is shared, so the agents, commands and
115
+ skills you keep in a repository work with both.
116
+
117
+ ## Uninstall
118
+
119
+ ```sh
120
+ gencode uninstall # --keep-config / --keep-data to preserve state
9
121
  ```
10
122
 
11
- GenCode keeps its own config, data and cache directories (`~/.config/gencode`, `~/.local/share/gencode`, …), so it coexists with an existing opencode install.
123
+ ## License
12
124
 
13
- Issues: https://github.com/wework5119/opencode/issues
125
+ GenCode is a proprietary Genspark product. It is a fork of the open source
126
+ [opencode](https://github.com/anomalyco/opencode) project, and the MIT license
127
+ text that covers the derived code is included in
128
+ [`LICENSE-opencode`](./LICENSE-opencode). GenCode is not affiliated with or
129
+ endorsed by the opencode project. "opencode" is a trademark of its owners.
package/package.json CHANGED
@@ -1,21 +1,33 @@
1
1
  {
2
2
  "name": "@genspark/gencode",
3
- "description": "GenCode — Genspark's coding agent for the terminal",
3
+ "description": "GenCode — Genspark's AI coding agent for the terminal: an interactive TUI and headless CLI that read your codebase, plan and edit files, run commands and tests, and explain the result with the models in your Genspark plan.",
4
+ "keywords": [
5
+ "gencode",
6
+ "genspark",
7
+ "ai",
8
+ "ai-agent",
9
+ "coding-agent",
10
+ "coding-assistant",
11
+ "cli",
12
+ "tui",
13
+ "terminal",
14
+ "developer-tools",
15
+ "llm",
16
+ "code-generation",
17
+ "agent"
18
+ ],
4
19
  "bin": {
5
20
  "gencode": "./bin/gencode.exe"
6
21
  },
7
22
  "scripts": {
8
23
  "postinstall": "node ./postinstall.mjs"
9
24
  },
10
- "version": "1.18.31-gencode.5",
11
- "license": "MIT",
12
- "repository": {
13
- "type": "git",
14
- "url": "git+https://github.com/wework5119/opencode.git"
15
- },
16
- "homepage": "https://github.com/wework5119/opencode/releases",
17
- "bugs": {
18
- "url": "https://github.com/wework5119/opencode/issues"
25
+ "version": "1.18.31-gencode.6",
26
+ "license": "UNLICENSED",
27
+ "author": "Genspark",
28
+ "homepage": "https://www.genspark.ai",
29
+ "engines": {
30
+ "node": ">=18"
19
31
  },
20
32
  "os": [
21
33
  "darwin",
@@ -27,17 +39,17 @@
27
39
  "x64"
28
40
  ],
29
41
  "optionalDependencies": {
30
- "@genspark/gencode-darwin-x64": "1.18.31-gencode.5",
31
- "@genspark/gencode-linux-x64-baseline": "1.18.31-gencode.5",
32
- "@genspark/gencode-darwin-arm64": "1.18.31-gencode.5",
33
- "@genspark/gencode-linux-arm64-musl": "1.18.31-gencode.5",
34
- "@genspark/gencode-windows-x64-baseline": "1.18.31-gencode.5",
35
- "@genspark/gencode-linux-arm64": "1.18.31-gencode.5",
36
- "@genspark/gencode-linux-x64-baseline-musl": "1.18.31-gencode.5",
37
- "@genspark/gencode-windows-x64": "1.18.31-gencode.5",
38
- "@genspark/gencode-linux-x64": "1.18.31-gencode.5",
39
- "@genspark/gencode-darwin-x64-baseline": "1.18.31-gencode.5",
40
- "@genspark/gencode-linux-x64-musl": "1.18.31-gencode.5",
41
- "@genspark/gencode-windows-arm64": "1.18.31-gencode.5"
42
+ "@genspark/gencode-darwin-x64": "1.18.31-gencode.6",
43
+ "@genspark/gencode-linux-x64-baseline": "1.18.31-gencode.6",
44
+ "@genspark/gencode-darwin-arm64": "1.18.31-gencode.6",
45
+ "@genspark/gencode-linux-arm64-musl": "1.18.31-gencode.6",
46
+ "@genspark/gencode-windows-x64-baseline": "1.18.31-gencode.6",
47
+ "@genspark/gencode-linux-arm64": "1.18.31-gencode.6",
48
+ "@genspark/gencode-linux-x64-baseline-musl": "1.18.31-gencode.6",
49
+ "@genspark/gencode-windows-x64": "1.18.31-gencode.6",
50
+ "@genspark/gencode-linux-x64": "1.18.31-gencode.6",
51
+ "@genspark/gencode-darwin-x64-baseline": "1.18.31-gencode.6",
52
+ "@genspark/gencode-linux-x64-musl": "1.18.31-gencode.6",
53
+ "@genspark/gencode-windows-arm64": "1.18.31-gencode.6"
42
54
  }
43
55
  }
File without changes