codeden 0.1.0 → 0.1.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.
Files changed (29) hide show
  1. package/README.md +18 -0
  2. package/dist/cli.js +214 -56089
  3. package/dist/cli.js.map +1 -1
  4. package/dist/main-BF0aQ9U8.js +57012 -0
  5. package/dist/main-BF0aQ9U8.js.map +1 -0
  6. package/dist/main-DaGFUbbW.js +59 -0
  7. package/dist/main-DaGFUbbW.js.map +1 -0
  8. package/dist/{runner-CoJjefjZ.js → runner-D8m3WdtS.js} +232 -98
  9. package/dist/runner-D8m3WdtS.js.map +1 -0
  10. package/dist/runner.js +16 -52
  11. package/dist/runner.js.map +1 -1
  12. package/dist/web/assets/{core-DpRfWkWN.js → core-BmMheb4i.js} +1 -1
  13. package/dist/web/assets/engine-oniguruma-CVzqqUIi.js +1 -0
  14. package/dist/web/assets/{highlighted-body-JLMTFACH-H03v731F.js → highlighted-body-JLMTFACH-nUCrIe8P.js} +1 -1
  15. package/dist/web/assets/{highlights-Dz1cMTeO.js → highlights-CdGBlIcw.js} +1 -1
  16. package/dist/web/assets/{index-BG4dO7iI.js → index-DKWZjMF1.js} +205 -205
  17. package/dist/web/assets/index-DfoaM4E6.css +1 -0
  18. package/dist/web/assets/langs-kfQh6fa2.js +1 -0
  19. package/dist/web/assets/mermaid-WFAXDIZX-BIq7_eYY.js +1 -0
  20. package/dist/web/assets/{shiki-NQ4ryC1Y.js → shiki-D8HIISPT.js} +2 -2
  21. package/dist/web/assets/{stream-tokenizer-BxwNb7lW.js → stream-tokenizer-BmWmYTv_.js} +1 -1
  22. package/dist/web/assets/{themes-CNX2CYCy.js → themes-CKsIQs7_.js} +2 -2
  23. package/dist/web/index.html +2 -2
  24. package/package.json +1 -1
  25. package/dist/runner-CoJjefjZ.js.map +0 -1
  26. package/dist/web/assets/engine-oniguruma-C_TN-UZT.js +0 -1
  27. package/dist/web/assets/index-BpVrEjZE.css +0 -1
  28. package/dist/web/assets/langs-D6g8tc-L.js +0 -1
  29. package/dist/web/assets/mermaid-WFAXDIZX-DbjU3Ezf.js +0 -1
package/README.md CHANGED
@@ -29,6 +29,7 @@ That's the whole install. CodeDen starts a local server, opens your browser on a
29
29
  - [Security model](#security-model)
30
30
  - [Configuration](#configuration)
31
31
  - [CLI reference](#cli-reference)
32
+ - [Updating](#updating)
32
33
  - [FAQ](#faq)
33
34
  - [Documentation](#documentation)
34
35
  - [Contributing](#contributing) · [License](#license)
@@ -196,6 +197,9 @@ Inside the data directory:
196
197
  orchestrator/ the orchestrator's working directory
197
198
  backups/ copies of config files taken before CodeDen overwrote them
198
199
  logs/runner.log runner output
200
+ deps/ Claude Code support, installed on demand
201
+ app/<version>/ CodeDen versions installed by one-click updates
202
+ app/current.json which installed version `codeden` starts
199
203
  ```
200
204
 
201
205
  Two copies can run side by side with different homes and ports, for example `codeden --home ~/.codeden-test --port 4400`.
@@ -214,6 +218,7 @@ A minimal `.codeden/project.json`:
214
218
  ```
215
219
  codeden [options] Start CodeDen and open it in the browser
216
220
  codeden doctor Check the installation (--install: add Claude Code support now)
221
+ codeden update Install the latest version and switch to it (--rollback: go back)
217
222
  codeden stop Stop the server and the runner
218
223
 
219
224
  Options:
@@ -231,6 +236,19 @@ Options:
231
236
 
232
237
  Environment variables: `CODEDEN_HOME` (data directory), `CODEDEN_DEBUG=1` (server log lines in the terminal), `CODEDEN_SHELL` (terminal shell; PowerShell on Windows, `$SHELL` elsewhere), `CODEDEN_GITHUB_SYNC=0` (turn GitHub polling off).
233
238
 
239
+ ## Updating
240
+
241
+ CodeDen checks npm for a new version when it starts and every 6 hours (only the package name is sent; turn it off under **Settings > General > Updates**). When one is out, a banner says so: **What's new** shows the release notes, **Update now** installs it and restarts CodeDen, and the page reconnects on its own. Running agents are drained and resumed, the same as after any runner restart.
242
+
243
+ - **How it works.** New versions install side by side into `~/.codeden/app/<version>/`, and `~/.codeden/app/current.json` names the one to run. Whatever `codeden` you start (`npx codeden`, a global install) checks that file first and runs the newer installed version in its place, so there's nothing to reinstall by hand. The previous version is kept for rollback.
244
+ - **Install automatically.** Set **Updates** to *Install automatically* to download new versions in the background; they start the next time you open CodeDen (or right away with **Restart now**).
245
+ - **From the terminal.** `codeden update` does the same as the button (and restarts a running CodeDen); `codeden update --rollback` goes back to the previous version. `codeden doctor` lists the installed versions and which one starts.
246
+ - **Roll back** from **Settings > About** as well.
247
+ - **If it can't restart itself** (for example when started some other way), the banner says "Update installed, restart CodeDen to finish" with the command to run.
248
+ - **Running from source** (a clone of this repository) never switches versions: pull and rebuild (`git pull && pnpm install && pnpm build`).
249
+ - **The old way still works:** `npm i -g codeden@latest`, or `npx codeden@latest`. A globally installed version newer than the side-by-side one always wins.
250
+ - **Upgrading from 0.1.0:** 0.1.0 predates one-click updates; update it once by hand (`npm i -g codeden@latest` or `npx codeden@latest`).
251
+
234
252
  ## FAQ
235
253
 
236
254
  **Do I need API keys?**