codeharden 2026.1122.2133 → 2026.1122.2302
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 +48 -3
- package/dist/{args-B0i5tyjE.js → args-BJ0ric8X.js} +5 -5
- package/dist/args-BJ0ric8X.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/{commands-CvAvyECH.js → commands-BPobEsBP.js} +33 -14
- package/dist/commands-BPobEsBP.js.map +1 -0
- package/dist/{env-wDgRchH9.js → env-CMkse2o0.js} +2 -2
- package/dist/{env-wDgRchH9.js.map → env-CMkse2o0.js.map} +1 -1
- package/dist/{harden-channel-2IT0Y7p3.js → harden-channel-D7h06kQ_.js} +41 -3
- package/dist/harden-channel-D7h06kQ_.js.map +1 -0
- package/dist/{launcher-D17oQovS.js → launcher-CvQZcEIC.js} +3 -3
- package/dist/launcher-CvQZcEIC.js.map +1 -0
- package/dist/{lock-DxXcNd2w.js → lock-iovTSSb0.js} +2 -2
- package/dist/{lock-DxXcNd2w.js.map → lock-iovTSSb0.js.map} +1 -1
- package/dist/{main-BRHfJHGf.js → main-BFo94KOF.js} +6 -6
- package/dist/{main-BRHfJHGf.js.map → main-BFo94KOF.js.map} +1 -1
- package/dist/{main-CJdbWeA_.js → main-B_ui4G93.js} +3 -3
- package/dist/{main-CJdbWeA_.js.map → main-B_ui4G93.js.map} +1 -1
- package/dist/{mediaType-e66mt7Cb.js → mediaType-DHbUOwRj.js} +2 -2
- package/dist/{mediaType-e66mt7Cb.js.map → mediaType-DHbUOwRj.js.map} +1 -1
- package/dist/{runner-CKo8zFVx.js → runner-agAgr2qn.js} +5 -5
- package/dist/{runner-CKo8zFVx.js.map → runner-agAgr2qn.js.map} +1 -1
- package/dist/{runner-link-CGefyJ5U.js → runner-link-B7SsTYaz.js} +3 -3
- package/dist/{runner-link-CGefyJ5U.js.map → runner-link-B7SsTYaz.js.map} +1 -1
- package/dist/runner.js +1 -1
- package/dist/{server-test-aa-ENBUk.js → server-test-Cad_bM68.js} +4 -4
- package/dist/{server-test-aa-ENBUk.js.map → server-test-Cad_bM68.js.map} +1 -1
- package/dist/{src-CwV8i4Mj.js → src-BPcdaWEw.js} +4 -6
- package/dist/{src-CwV8i4Mj.js.map → src-BPcdaWEw.js.map} +1 -1
- package/dist/web/assets/{add-project-dialog-VBi3WXnh.js → add-project-dialog-BHbgORVh.js} +1 -1
- package/dist/web/assets/{agent-tabs-BNgrQWDq.js → agent-tabs-B6uUKAXD.js} +1 -1
- package/dist/web/assets/{agents-Ir1aHz-I.js → agents-NbcZbVrc.js} +1 -1
- package/dist/web/assets/{api-jkvqht5P.js → api-B9OffDXw.js} +1 -1
- package/dist/web/assets/{api-B620HpC2.js → api-yvn34iKU.js} +27 -27
- package/dist/web/assets/{archived-sessions-D4fJHB37.js → archived-sessions-C1-stU7x.js} +1 -1
- package/dist/web/assets/{automation-B91XTDIM.js → automation-Co7V1tcW.js} +1 -1
- package/dist/web/assets/{automation-new-CN7YhryW.js → automation-new-hCV8HoK1.js} +1 -1
- package/dist/web/assets/{automations-CLzVG-zc.js → automations-7GJxGbPp.js} +1 -1
- package/dist/web/assets/{composer-Dd8joSgj.js → composer-B1tdNGSi.js} +1 -1
- package/dist/web/assets/{conflict-card-BN9kNMVL.js → conflict-card-Bx8tT_d5.js} +1 -1
- package/dist/web/assets/{dialog-Dyw3b_Tu.js → dialog-Cvj_lHPY.js} +1 -1
- package/dist/web/assets/{diff-panel-CQ2XZMk2.js → diff-panel-BHhM9z93.js} +1 -1
- package/dist/web/assets/{draft-BmnE6-7J.js → draft-JkaN3nCS.js} +1 -1
- package/dist/web/assets/{dropdown-menu-C4XI7F63.js → dropdown-menu-Bflkx6wY.js} +1 -1
- package/dist/web/assets/{engines-Chq2ih3x.js → engines-pLQJYIu_.js} +1 -1
- package/dist/web/assets/{factory-BBYEYI9i.js → factory-DVCs5zxg.js} +1 -1
- package/dist/web/assets/{factory-columns-CtJOpFim.js → factory-columns-DExb6gW2.js} +1 -1
- package/dist/web/assets/{factory-item-BjydL6AH.js → factory-item-efMFkxnv.js} +1 -1
- package/dist/web/assets/{factory-view-BU2AKcD8.js → factory-view-Cot7flHA.js} +1 -1
- package/dist/web/assets/{files-panel-B6_6pSo9.js → files-panel-BIkR_seN.js} +1 -1
- package/dist/web/assets/{floor-scene-DCpEq0j7.js → floor-scene-DGy8i_5R.js} +1 -1
- package/dist/web/assets/{form-bits-BSfnSmQ7.js → form-bits-5XojWhBG.js} +1 -1
- package/dist/web/assets/{format-D1ma_o2D.js → format-D3kairnQ.js} +1 -1
- package/dist/web/assets/{home-_m_Aihwv.js → home-BtFPGjza.js} +1 -1
- package/dist/web/assets/{inbox-FDD5FMWW.js → inbox-CUPkJ4WC.js} +1 -1
- package/dist/web/assets/{index-BkpVvQrC.js → index-C0C9GyeX.js} +4 -4
- package/dist/web/assets/{item-parts-BhDFWsT1.js → item-parts-DZ3TQad4.js} +1 -1
- package/dist/web/assets/{kill-switch-Dvqaozhz.js → kill-switch-BDAFCjui.js} +1 -1
- package/dist/web/assets/{label-DcWfyglU.js → label-Bm_8Eqe2.js} +1 -1
- package/dist/web/assets/{local-whisper-test-DPTOEA1M.js → local-whisper-test-CqGlAOvK.js} +1 -1
- package/dist/web/assets/{markdown-ad2jia51.js → markdown-DGHfubu-.js} +1 -1
- package/dist/web/assets/{mobile-nav-D8FZcJzG.js → mobile-nav-CrjrDJZ5.js} +1 -1
- package/dist/web/assets/{model-picker-4yoJPkRY.js → model-picker-DnKv2cbc.js} +1 -1
- package/dist/web/assets/{new-session-ddLbjOoZ.js → new-session-Bc93-xJK.js} +1 -1
- package/dist/web/assets/{new-session-GpxXZWbB.js → new-session-CUpOffXI.js} +1 -1
- package/dist/web/assets/{new-session-CwbgcYzY.js → new-session-DVYesr8z.js} +1 -1
- package/dist/web/assets/{now-next-D-6j1g_S.js → now-next-x8fwFm7p.js} +1 -1
- package/dist/web/assets/{on-demand-Cvu5D9uT.js → on-demand-Cvi90jRi.js} +2 -2
- package/dist/web/assets/{open-pr-controls--EtUvzD2.js → open-pr-controls-CYypJCKQ.js} +1 -1
- package/dist/web/assets/{orchestration-pknfiYFr.js → orchestration-BZj0HlxR.js} +1 -1
- package/dist/web/assets/{page-header-BqPf-jRo.js → page-header-t9HzSrxd.js} +1 -1
- package/dist/web/assets/{pm-fMuSJMPP.js → pm-DJfHcB90.js} +1 -1
- package/dist/web/assets/{popover-OrzLEhHL.js → popover-BqwWmyWQ.js} +1 -1
- package/dist/web/assets/{pr-details-BBVM9Kll.js → pr-details-1hhbiFWa.js} +1 -1
- package/dist/web/assets/{project-ws85aDq4.js → project-dy2_DT0H.js} +1 -1
- package/dist/web/assets/{question-card-4aNx5IRX.js → question-card-ldxLXNS_.js} +1 -1
- package/dist/web/assets/{remote-check-BAPXUznK.js → remote-check-CQktPgyp.js} +2 -2
- package/dist/web/assets/{reports-BZj5_wsp.js → reports-D0GAsXFv.js} +1 -1
- package/dist/web/assets/{role-chat-CeJXMsYB.js → role-chat-nIyzM-vQ.js} +1 -1
- package/dist/web/assets/{run-conflict-CPr9OWa3.js → run-conflict-BlgKVpOG.js} +1 -1
- package/dist/web/assets/{runs-table-DpBJ4ZeQ.js → runs-table-DMPF5_D6.js} +1 -1
- package/dist/web/assets/{search-BFTvT67N.js → search-gwjIEGis.js} +1 -1
- package/dist/web/assets/{search-Da3B5-lr.js → search-hK5b8Xwb.js} +1 -1
- package/dist/web/assets/{select-B4LGxZQI.js → select-B1ES0hhy.js} +1 -1
- package/dist/web/assets/{session-_62x2rSZ.js → session-CPUTlq1O.js} +1 -1
- package/dist/web/assets/{settings-CUYuBL-5.js → settings-DRd0b0Kz.js} +1 -1
- package/dist/web/assets/{settings-ui-Ux8rPFol.js → settings-ui-Bc6ymtc_.js} +1 -1
- package/dist/web/assets/{setup-BKOOV6vX.js → setup-Bn2CFYAt.js} +1 -1
- package/dist/web/assets/{shallow-CbfSRfYC.js → shallow-BUNpybIA.js} +1 -1
- package/dist/web/assets/{spec-approval-9S-jPMrI.js → spec-approval-CmC6QBSh.js} +1 -1
- package/dist/web/assets/{spot-check-actions-5CmYjt8A.js → spot-check-actions-DzMUED1O.js} +1 -1
- package/dist/web/assets/{spot-checks-BadmkHuG.js → spot-checks-CDZxwwu0.js} +1 -1
- package/dist/web/assets/{storeys-OlWmOmqA.js → storeys-BEgFUsix.js} +1 -1
- package/dist/web/assets/{switch-DuBpF2_h.js → switch-BHplnCdo.js} +1 -1
- package/dist/web/assets/{terminal-view-ChO1pNp0.js → terminal-view-WNT8FI6K.js} +1 -1
- package/dist/web/assets/{theme-DsW-i9mD.js → theme-3eeE0sp4.js} +1 -1
- package/dist/web/assets/{thread-view-CPlJsMhl.js → thread-view-AQKzJlKb.js} +1 -1
- package/dist/web/assets/{update-banner-CNYd8gAf.js → update-banner-CZGRgiG8.js} +1 -1
- package/dist/web/assets/{updates-CQZDqpFF.js → updates-4l7pwDq1.js} +1 -1
- package/dist/web/assets/{use-retry-item-CWwb3JGo.js → use-retry-item-3n4BD_3J.js} +1 -1
- package/dist/web/assets/{vision-7gkgZ-Ap.js → vision-Z1sLHr_c.js} +1 -1
- package/dist/web/assets/{wip-chip-D5-cZcfN.js → wip-chip-DXwuAo3A.js} +1 -1
- package/dist/web/index.html +34 -34
- package/package.json +1 -1
- package/dist/args-B0i5tyjE.js.map +0 -1
- package/dist/commands-CvAvyECH.js.map +0 -1
- package/dist/harden-channel-2IT0Y7p3.js.map +0 -1
- package/dist/launcher-D17oQovS.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
> **CodeHarden** is a hardened fork of [CodeDen](https://github.com/leonvanzyl/codeden) by Leon van Zyl.
|
|
2
2
|
> It stays close to upstream: new upstream changes are reviewed every day for security and function,
|
|
3
3
|
> and merged 48 hours after they are approved. CodeHarden versions are timestamps; the app's own
|
|
4
|
-
> version number stays upstream's.
|
|
4
|
+
> version number stays upstream's. It is its own app: its data is in `~/.codeharden`, it listens on
|
|
5
|
+
> port 4417, and it installs and runs next to CodeDen ([how they stay apart](https://github.com/harperaa/codeharden/blob/harden/docs/desktop.md#next-to-codeden)).
|
|
6
|
+
> Everything below is CodeDen's own README.
|
|
7
|
+
> Want the same for your own changes? See [Make your own hardened fork](#make-your-own-hardened-fork).
|
|
5
8
|
|
|
6
9
|
<div align="center">
|
|
7
10
|
|
|
@@ -149,7 +152,7 @@ Full details: [Security](https://github.com/harperaa/codeharden/blob/harden/docs
|
|
|
149
152
|
npx codeharden
|
|
150
153
|
```
|
|
151
154
|
|
|
152
|
-
Or install the **desktop app** from the [latest release](https://github.com/harperaa/codeharden/releases/latest): `
|
|
155
|
+
Or install the **desktop app** from the [latest release](https://github.com/harperaa/codeharden/releases/latest): `CodeHarden-Setup-<version>.exe` on Windows, a `.dmg` on macOS, an AppImage or `.deb` on Linux. If Windows or macOS warns about an unsigned app the first time, see [The desktop app](https://github.com/harperaa/codeharden/blob/harden/docs/desktop.md#unsigned-builds).
|
|
153
156
|
|
|
154
157
|
1. **The setup checklist** finds your agents, GitHub and git, and only asks about what's missing. Each problem has a one-click fix: an install command, or a **Sign in** button.
|
|
155
158
|
2. **Add a project.** Pick a folder on your computer, or paste a GitHub link to clone one.
|
|
@@ -167,7 +170,7 @@ CodeDen updates itself: when a new version is out, a banner offers **Update now*
|
|
|
167
170
|
No. CodeDen uses your agents' own logins, including Claude, ChatGPT, Cursor and Google subscriptions. API keys are only an optional extra for some image and voice features. Check your provider's terms for how your plan may be used.
|
|
168
171
|
|
|
169
172
|
**Where does my data go?**
|
|
170
|
-
Nowhere. It stays on your computer, in `~/.
|
|
173
|
+
Nowhere. It stays on your computer, in `~/.codeharden/`. The only network traffic is your agents talking to their providers, GitHub (if you use it), and any optional image or voice services you turn on.
|
|
171
174
|
|
|
172
175
|
**Is there telemetry?**
|
|
173
176
|
No. CodeDen sends no usage data anywhere.
|
|
@@ -208,6 +211,48 @@ It's experimental. Start with the software factory on a test repository with aut
|
|
|
208
211
|
| [Reference](https://github.com/harperaa/codeharden/blob/harden/docs/reference.md) | Settings, data folder, command-line options and updates |
|
|
209
212
|
| [Architecture](https://github.com/harperaa/codeharden/blob/harden/docs/architecture.md) | How CodeDen is built |
|
|
210
213
|
|
|
214
|
+
## Make your own hardened fork
|
|
215
|
+
|
|
216
|
+
CodeHarden follows CodeDen: upstream changes are mirrored daily, reviewed, and merged 48 hours after approval; releases are timestamps; npm is published by hand. You can follow CodeHarden the same way, with your own changes on top and your own npm package. Three repository variables and one script point the same machinery at your names.
|
|
217
|
+
|
|
218
|
+
| Variable | What it is | CodeHarden | Your fork |
|
|
219
|
+
|---|---|---|---|
|
|
220
|
+
| `UPSTREAM_REPO` | The repository you follow | `leonvanzyl/codeden` | `harperaa/codeharden` |
|
|
221
|
+
| `UPSTREAM_BRANCH` | The branch of it you follow | `main` | `harden` |
|
|
222
|
+
| `PACKAGE_NAME` | The npm package you publish; its last part is the command | `codeharden` | your own, for example `example-harden` |
|
|
223
|
+
|
|
224
|
+
Your fork has two branches that matter. `harden` is your working and default branch: upstream plus your changes, where upstream only ever arrives by merge. `mirror` is a pure copy of CodeHarden's `harden`, only ever fast-forwarded and never committed to. (CodeHarden's own mirror is `main`, named after the branch it follows; yours can't be called `harden` twice, so it is `mirror`. A `main` branch copied by the fork button is not used and can stay.) Other names: `--branch` and `--mirror-branch`, stored as the variables `HARDEN_BRANCH` and `MIRROR_BRANCH`.
|
|
225
|
+
|
|
226
|
+
1. **Fork** [harperaa/codeharden](https://github.com/harperaa/codeharden) on GitHub. Copying only the `harden` branch is enough.
|
|
227
|
+
2. **Enable workflows** in the fork: open its Actions tab and press "I understand my workflows, go ahead and enable them". GitHub asks this of every new fork.
|
|
228
|
+
3. **Clone it** and install the [GitHub CLI](https://cli.github.com), signed in as you (`gh auth login`).
|
|
229
|
+
4. **Run the script**, first as a dry run:
|
|
230
|
+
|
|
231
|
+
```sh
|
|
232
|
+
scripts/harden/setup-fork.sh --package example-harden --dry-run
|
|
233
|
+
scripts/harden/setup-fork.sh --package example-harden
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
It creates the three variables, the `mirror` branch and the labels `sync-approved`, `sync-needs-review` and `sync-hold`, makes `harden` the default branch, enables Actions and the "Upstream sync merge" workflow, and disables the Release workflow (which stays disabled: nothing publishes from CI). Each step prints "already set" or "changed", so you can run it again at any time. It never force-pushes, never deletes anything and stores no token; what it may not do with your sign-in, it lists for you at the end.
|
|
237
|
+
|
|
238
|
+
**How syncs get reviewed and merged.** Every day the workflow fast-forwards `mirror`. To take upstream changes, push them to a branch named `sync/...` and open a pull request into `harden`:
|
|
239
|
+
|
|
240
|
+
```sh
|
|
241
|
+
git fetch origin mirror
|
|
242
|
+
git push origin FETCH_HEAD:refs/heads/sync/2026-01-05
|
|
243
|
+
gh pr create --repo <you>/<your fork> --base harden --head sync/2026-01-05 --title "sync: upstream to 2026-01-05"
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Review it, then label it: `sync-approved` (the workflow merges it 48 hours later, if its checks pass and nothing was pushed since), `sync-needs-review` or `sync-hold` (it waits for you). The daily review can be a CodeDen automation that opens the pull request, reads the changes and sets the label, or you do it yourself; the workflow only looks at the labels. Three things to expect:
|
|
247
|
+
|
|
248
|
+
- If the pull request conflicts, merge `harden` into the sync branch and resolve there. `VERSION`, `CODEHARDEN-CHANGELOG.md` and `state/upstream-base` conflict once both sides have made a release: keep yours.
|
|
249
|
+
- A sync that changes `scripts/harden/` (the release and sync scripts themselves) is never merged for you: it gets `sync-needs-review`, and you merge it by hand with a merge commit.
|
|
250
|
+
- A sync that changes a workflow file can't be merged, or mirrored, by the workflow's own token; its log says so and you do that one by hand.
|
|
251
|
+
|
|
252
|
+
**Releases and npm, under your name.** After the workflow merges a sync it makes a release on `harden` (a commit, a tag `v<version>` and a changelog entry). After merging your own changes, make one yourself: `scripts/harden/release.sh --dry-run`, then `scripts/harden/release.sh --push`. To publish a release to npm, check its tag out and run `scripts/harden/publish.sh --dry-run`, then `scripts/harden/publish.sh`, signed in to npm as the package's owner: [Publishing to npm](https://github.com/harperaa/codeharden/blob/harden/docs/codeharden-npm-release.md) has every step. The scripts read your variables from GitHub with `gh` (or from the environment), and refuse to release or publish in a repository that is not CodeHarden's until they are set, so your users are never updated onto `codeharden` by a default. Your fork is also its own app next to CodeHarden and CodeDen: the home folder (`~/.example-harden` written as one word, `~/.exampleharden`), the link scheme, the keychain service, the app id (`com.exampleharden.app`) and the app's name all come from `PACKAGE_NAME`. Three optional build variables name them exactly: `PRODUCT_NAME` (for example `Example Harden`), `APP_ID` and `DEFAULT_PORT` (CodeHarden's is 4417; pick another so both run at once). `scripts/harden/channel-define.mjs` has the details. The "CodeDen" wording inside the UI is not changed by any of this.
|
|
253
|
+
|
|
254
|
+
Optional: `git config core.hooksPath scripts/harden/hooks` runs the tests on your machine before each push, and the repository variable `CI_TESTS=off` skips them in CI (see "Local test gate" in [AGENTS.md](https://github.com/harperaa/codeharden/blob/harden/AGENTS.md)). The script sets neither.
|
|
255
|
+
|
|
211
256
|
## Contributing
|
|
212
257
|
|
|
213
258
|
Bug reports, ideas and pull requests are welcome. See [CONTRIBUTING.md](https://github.com/harperaa/codeharden/blob/harden/CONTRIBUTING.md) to get set up, and [CHANGELOG.md](https://github.com/harperaa/codeharden/blob/harden/CHANGELOG.md) for what's changed.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as HARDEN_COMMAND } from "./harden-channel-
|
|
2
|
-
import { P as formatHardenVersion } from "./src-
|
|
1
|
+
import { i as HARDEN_HOME_DISPLAY, n as HARDEN_DEFAULT_PORT, t as HARDEN_COMMAND } from "./harden-channel-D7h06kQ_.js";
|
|
2
|
+
import { P as formatHardenVersion } from "./src-BPcdaWEw.js";
|
|
3
3
|
import { parseArgs } from "node:util";
|
|
4
4
|
// src/args.ts
|
|
5
|
-
const DEFAULT_PORT =
|
|
5
|
+
const DEFAULT_PORT = HARDEN_DEFAULT_PORT;
|
|
6
6
|
/** The help text below, with its commands named after the channel's command (`HARDEN_COMMAND`). */
|
|
7
7
|
const named = (help) => help.replaceAll("\n codeden", `\n ${HARDEN_COMMAND}`).replaceAll(`\n${" ".repeat(25)}`, `\n${" ".repeat(18 + HARDEN_COMMAND.length)}`);
|
|
8
8
|
const HELP = named(`${formatHardenVersion()}: a local-first harness for coding agents
|
|
@@ -19,7 +19,7 @@ Usage:
|
|
|
19
19
|
|
|
20
20
|
Options:
|
|
21
21
|
--port <n> Port to listen on (default ${DEFAULT_PORT})
|
|
22
|
-
--home <dir> Data directory (default
|
|
22
|
+
--home <dir> Data directory (default ${HARDEN_HOME_DISPLAY}, or CODEDEN_HOME)
|
|
23
23
|
--no-open Do not open the browser
|
|
24
24
|
-v, --version Print the version
|
|
25
25
|
-h, --help Show this help
|
|
@@ -63,4 +63,4 @@ function parseCli(args) {
|
|
|
63
63
|
}
|
|
64
64
|
export { HELP as n, parseCli as r, DEFAULT_PORT as t };
|
|
65
65
|
|
|
66
|
-
//# sourceMappingURL=args-
|
|
66
|
+
//# sourceMappingURL=args-BJ0ric8X.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args-BJ0ric8X.js","names":[],"sources":["../src/args.ts"],"sourcesContent":["import { parseArgs } from \"node:util\";\nimport {\n formatHardenVersion,\n HARDEN_COMMAND,\n HARDEN_DEFAULT_PORT,\n HARDEN_HOME_DISPLAY,\n} from \"@codeden/contracts\";\n\nexport const DEFAULT_PORT = HARDEN_DEFAULT_PORT;\n\n/** The help text below, with its commands named after the channel's command (`HARDEN_COMMAND`). */\nconst named = (help: string) =>\n help\n .replaceAll(\"\\n codeden\", `\\n ${HARDEN_COMMAND}`)\n .replaceAll(`\\n${\" \".repeat(25)}`, `\\n${\" \".repeat(18 + HARDEN_COMMAND.length)}`);\n\nexport const HELP = named(`${formatHardenVersion()}: a local-first harness for coding agents\n\nUsage:\n codeden [options] Start CodeDen and open it in the browser\n codeden doctor Check the installation (--install: add Claude Code support now)\n codeden update Install the latest version and switch to it (--rollback: go back)\n codeden stop Stop the server and the runner\n codeden password Set the network access password (--generate: make one up)\n codeden network on|off Let phones on your network open CodeDen, or stop it\n codeden runner-link Connect stdin/stdout to the runner in --home (run by the server\n inside a sandbox; stdout carries only protocol frames)\n\nOptions:\n --port <n> Port to listen on (default ${DEFAULT_PORT})\n --home <dir> Data directory (default ${HARDEN_HOME_DISPLAY}, or CODEDEN_HOME)\n --no-open Do not open the browser\n -v, --version Print the version\n -h, --help Show this help\n`);\n\n/** The command line; throws on an unknown option. */\nexport function parseCli(args: string[]) {\n return parseArgs({\n args,\n allowPositionals: true,\n options: {\n port: { type: \"string\" },\n home: { type: \"string\" },\n \"no-open\": { type: \"boolean\", default: false },\n install: { type: \"boolean\", default: false },\n rollback: { type: \"boolean\", default: false },\n generate: { type: \"boolean\", default: false },\n version: { type: \"boolean\", short: \"v\", default: false },\n help: { type: \"boolean\", short: \"h\", default: false },\n },\n });\n}\n\nexport type ParsedCli = ReturnType<typeof parseCli>;\n"],"mappings":";;;;AAQA,MAAa,eAAe;;AAG5B,MAAM,SAAS,SACb,KACG,WAAW,eAAe,OAAO,gBAAgB,CAAC,CAClD,WAAW,KAAK,IAAI,OAAO,EAAE,KAAK,KAAK,IAAI,OAAO,KAAK,eAAe,MAAM,GAAG;AAEpF,MAAa,OAAO,MAAM,GAAG,oBAAoB,EAAE;;;;;;;;;;;;;8CAaL,aAAa;2CAChB,oBAAoB;;;;CAI9D;;AAGD,SAAgB,SAAS,MAAgB;CACvC,OAAO,UAAU;EACf;EACA,kBAAkB;EAClB,SAAS;GACP,MAAM,EAAE,MAAM,SAAS;GACvB,MAAM,EAAE,MAAM,SAAS;GACvB,WAAW;IAAE,MAAM;IAAW,SAAS;GAAM;GAC7C,SAAS;IAAE,MAAM;IAAW,SAAS;GAAM;GAC3C,UAAU;IAAE,MAAM;IAAW,SAAS;GAAM;GAC5C,UAAU;IAAE,MAAM;IAAW,SAAS;GAAM;GAC5C,SAAS;IAAE,MAAM;IAAW,OAAO;IAAK,SAAS;GAAM;GACvD,MAAM;IAAE,MAAM;IAAW,OAAO;IAAK,SAAS;GAAM;EACtD;CACF,CAAC;AACH"}
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as homeFromArgs, c as restartCommandFor, i as decideLaunch, n as LAUNCH_KEY, o as installKind, r as VERSION_KEY, s as parseLaunchedBy, t as LAUNCHED_BY_ENV } from "./launcher-
|
|
2
|
+
import { a as homeFromArgs, c as restartCommandFor, i as decideLaunch, n as LAUNCH_KEY, o as installKind, r as VERSION_KEY, s as parseLaunchedBy, t as LAUNCHED_BY_ENV } from "./launcher-CvQZcEIC.js";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
5
5
|
// src/cli.ts
|
|
@@ -69,7 +69,7 @@ async function run() {
|
|
|
69
69
|
console.log(selfVersion);
|
|
70
70
|
process.exit(0);
|
|
71
71
|
}
|
|
72
|
-
await import("./main-
|
|
72
|
+
await import("./main-BFo94KOF.js");
|
|
73
73
|
}
|
|
74
74
|
/** Settles once this copy's CLI has loaded (an older launcher that switched here awaits it). */
|
|
75
75
|
const started = run();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DegdyBIC.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { $ as BrowserWsQuery, $i as HookHandler, $n as FactorySpecDecisionRequest, $t as LocalSttModelParams, A as ImageTestRequest, An as FactoryTuning, Ar as TerminalClientMessage, At as LoginToolId, B as factoryNeed, Ba as prettifyError, Bn as isFactoryMode, Br as SessionFileQuery, Bt as SetSecretRequest, C as PASSWORD_RULE_TEXT, Cn as githubPrId, Cr as DiffScope, Ct as FileReadQuery, D as SetNetworkPasswordResponse, Di as ProjectConfigFile, Dn as FACTORY_DRAINING, Dr as RestoreFilesRequest, Dt as INBOX_BULK_MAX, E as SetNetworkPasswordRequest, Ei as checkRunItemId, En as DRAIN_UNAVAILABLE, Er as GitPushRequest, Et as HandoffSessionRequest, F as CODEDEN_VERSION, Fi as ProjectCommandsQuery, Fn as ReviewVerdict, Ft as ReviewSessionRequest, G as uiContentSecurityPolicy, Gn as FactoryAdmitRequest, Gr as DIALOG_TIMEOUT_MS, Gt as UpdateProjectRequest, H as BrowserHostClientMessage, Hi as messageFrom, Hn as FactorySpotCheckRequest, Hr as BrowserDialogId, Ht as SteerRequest, I as FactoryScorecardQuery, Ii as oneLineDescription, In as ReviewVerdictSubmission, Ir as TRANSFER_CHUNK_BYTES, It as SecretKey, J as BrowserHistoryRequest, Jn as FactoryFileIssueRequest, Jr as MAX_FOCUS_TYPE_CHARS, Jt as agentEventToNewEvent, K as BrowserClientMessage, Kn as FactoryAnalysisReport, Kr as MAX_AGENT_SCROLL, Kt as HealthResponse, L as FactoryRetryOptions, La as ZodError, Li as winningCommands, Ln as SCOUT_UNAVAILABLE, Lt as SendMessageRequest, M as HARDEN_VERSION, Ma as record, Mi as mergeItemDeltas, Mn as LEGACY_SIZE_LIMITS, Mr as RunnerCommandResults, Mt as ResolveInboxRequest, N as UPSTREAM_VERSION, Na as string, Nn as PutVisionRequest, Nt as RespondRequest, O as SignInRequest, Oa as number, Oi as checkTimeoutMs, On as FactoryAllowLargeChangeRequest, Or as SessionResult, Ot as ListInboxQuery, P as formatHardenVersion, Pn as REVIEW_SUMMARY_MAX, Pr as FS_CHUNK_MAX_BYTES, Pt as RestoreInboxRequest, Q as BrowserViewportRequest, Qi as HookChangeRequest, Qn as FactorySetTypeRequest, Qr as PROVIDER_HISTORY_MAX, Qt as LOCAL_STT_SAMPLE_RATE, R as FactoryRetryRequest, Ra as toJSONSchema, Ri as redactAndCount, Rn as SetAutonomyModeRequest, Rt as SessionSnapshotQuery, S as NetworkStatus, Si as CHECK_MESSAGE_TAIL, Sn as TriageIssueRequest, Sr as SessionStatus, St as DismissInboxRequest, T as SetNetworkAccessRequest, Ti as CheckRunData, Tn as DRAIN_PER_PROJECT, Tr as GitCommitRequest, Tt as ForkSessionRequest, U as summarizeActivity, Ui as splitSender, Un as spotCheckProblemPercent, Ur as BrowserModifierKey, Ut as ThreadItemsQuery, V as factoryNeedLabel, Vn as truncateReviewSummary, Vt as StartSessionRequest, W as RemoteImageRequest, Wn as spotCheckShare, Wr as BrowserMouseAction, Wt as UiClientMessage, X as BrowserNewTabRequest, Xi as McpServerTestRequest, Xn as FactoryPlanRoundRequest, Xr as checkBrowserMouse, Xt as Settings, Y as BrowserNavigateRequest, Yn as FactoryFinding, Yt as READ_ALOUD_FULL_MAX_CHARS, Z as BrowserOpenRequest, Zi as SkillSwitchRequest, Zn as FactoryReproductionReport, Zr as HideProviderHistoryRequest, Zt as speechExcerpt, _ as ListConflictsQuery, _a as _enum, _i as InboxItem, _n as GithubLabelRequest, _r as AutomationRun, _t as UpcomingRunsQuery, aa as AgentConfigProvider, ai as ConflictDecision, an as compareVersions$1, ar as isRetiredLesson, at as ImportAutomationsRequest, b as RoleMessageRequest, ba as array, bi as inboxWaitsOnYou, bn as MergePrRequest, br as ACTIVE_SESSION_STATUSES, bt as ArchivedSessionsQuery, c as ServerLock, ca as McpServerTarget, ci as Project, cr as FOLLOW_UP_LABEL, ct as AutomationProjectRequest, da as providersWith, di as FactoryLimits, dn as NoticeBatchData, dr as hasItemBudget, dt as ListAutomationsQuery, ea as ShelvedHook, en as SttQuery, er as ScoutState, et as AUTOMATION_IMPORT_LIMITS, fa as AutonomyLevel, fi as describeUnpushedWork, fn as CreateGithubIssueRequest, fr as itemBudgetReached, ft as RunAutomationRequest, g as ArchiveSessionRequest, ga as datetime, gi as INBOX_ANSWER_KINDS, gn as GithubIssueStateReason, gr as AutomationGuards, gt as TriageReport, hi as INBOX_ACT_NOTIFY, hn as GithubIssue, hr as AutomationAction, ht as TriageDecisionRequest, ia as AgentConfigLocator, ii as SessionOptions, in as UpdateStatus, ir as cleanLessons, it as ExportAutomationsQuery, j as ImageUsage, ji as SessionUpdatedEvent, jn as KillSwitchRequest, jr as TerminalQuery, jt as ReorderProjectsRequest, k as passwordProblem, ka as object, ki as checksOf, kn as FactoryDecisionRequest, kr as SpeechSummaryRequest, kt as ListSessionsQuery, la as McpServerUpsertRequest, li as sortProjects, ln as ConflictRecord, lr as FactoryFileFollowUpRequest, lt as CreateAutomationRequest, m as MCP_RESPONSE_HEADERS, ma as ReasoningEffort, mi as sandboxRefFor, mn as GithubCommentRequest, mr as Automation, mt as StarterSetRequest, n as UsageSettings, na as AgentConfigDiffRequest, nn as AppPointer, nr as pipelineStep, nt as AutomationImportSource, o as RunnerLock, oa as AgentConfigWriteRequest, oi as StartedBy, on as isNewerVersion, or as lessonInBriefsAt, ot as AutomationFileFrontmatter, p as MCP_REQUEST_HEADERS, pa as ProviderId, pi as hasUnpushedWork, pn as GithubAuthorAssociation, pr as Artifact, pt as SetAutomationEnabledRequest, q as BrowserDevServerRequest, qi as MCP_TEST_DEFAULT_TIMEOUT_MS, qn as FactoryDismissRequest, qr as MAX_DIALOG_TEXT, qt as AGENT_EVENT_PREFIX, r as TranscriptSearchQuery, ra as AgentConfigListQuery, rn as UpdateInstallRequest, rr as specHeld, rt as DuplicateAutomationRequest, s as RunnerToServerMessage, sa as McpServerDiffRequest, si as WorkKey, sn as HOME_RUNNER_ID, sr as lessonKey, st as AutomationGuardsPatch, t as UsageQuery, ta as AgentConfigDeleteQuery, ti as INVALID_COPY_SUFFIX, tn as TtsRequest, tr as checksPassed, tt as AutomationImportLinkRequest, u as MCP_LINK_CHUNK_BYTES, ua as agentConfigFeatures, ui as DEFAULT_VISION_PATH, un as NOTICE_BATCH_CODE, ur as sameFollowUpTitle, ut as ListAutomationRunsQuery, v as ListNoticesQuery, vi as InboxItemKind, vn as GithubListQuery, vr as AutomationTrigger, vt as UpdateAutomationProjectSettingsRequest, w as RemoteAccessFile, wa as int, wi as CHECK_RUN_NOTICE, wn as parseGithubPrId, wr as EditQueuedMessageRequest, wt as FileWriteRequest, x as UpdateSessionRequest, xa as boolean, xi as CHECK_MESSAGE_LIMIT, xn as PrMergeState, xr as Session, xt as CreateProjectRequest, y as ResolveConflictRequest, yi as inboxAttempts, yn as GithubPr, yr as TriagePolicy, yt as UpdateAutomationRequest, z as stoppedRetry, zn as drainText, zr as WorkspaceFsErrorCode, zt as SessionStartMeta } from "./src-
|
|
4
|
-
import { $ as isElectronRuntime, A as cursorOnly, C as Ja, D as cursorInstallCommand, F as CODEX_MIN_VERSION, G as runNpm, H as importClaudeSdkFrom, I as claudeMemoryDir, J as CLAUDE_MIN_VERSION, K as resolveNpm, L as findGitRoot, M as imageInfo, N as resolveImageOutput, O as parseCursorStatus, P as ImageGenerationError, R as mainRepoRoot, S as readGeminiAuth, T as qo, U as installClaudeSdk, V as CLAUDE_SDK_VERSION, W as isClaudeSdkInstalled, X as findExecutable, Y as brokenInstallMessage, _ as GEMINI_INSTALL_COMMAND, a as isCodedenCredentialFile, b as geminiTooOldMessage, c as workspaceRelative, et as ownNodeEnv, g as IMAGE_ASPECT_RATIOS, h as createImageEngineRegistry, i as WorkspaceFsError, j as isCursorVersion, k as cursorBroken, m as ImageEngineRegistry, n as DiskWorkspace, nt as isProviderLoginFile, o as lexicalTarget, q as acquireInstallLock, rt as isSecretPath, s as platformPath, v as GEMINI_MIN_VERSION, w as Ko, x as isSupportedGeminiVersion, y as GEMINI_UPGRADE_COMMAND, z as claudeSdkSource } from "./env-
|
|
2
|
+
import { _ as hardenReleaseApiUrl, a as HARDEN_INSTALL_COMMAND, c as HARDEN_PACKAGE_NAME, d as HARDEN_PROJECTS_DIRNAME, f as HARDEN_UPDATE_COMMAND, g as hardenLatestReleaseUrl, h as hardenHomeNotice, m as hardenChangelogUrl, o as HARDEN_KEYCHAIN_SERVICE, r as HARDEN_HOME_DIRNAME, s as HARDEN_NPX_COMMAND, t as HARDEN_COMMAND, v as hardenReleaseUrl, y as hardenVersionOf } from "./harden-channel-D7h06kQ_.js";
|
|
3
|
+
import { $ as BrowserWsQuery, $i as HookHandler, $n as FactorySpecDecisionRequest, $t as LocalSttModelParams, A as ImageTestRequest, An as FactoryTuning, Ar as TerminalClientMessage, At as LoginToolId, B as factoryNeed, Ba as prettifyError, Bn as isFactoryMode, Br as SessionFileQuery, Bt as SetSecretRequest, C as PASSWORD_RULE_TEXT, Cn as githubPrId, Cr as DiffScope, Ct as FileReadQuery, D as SetNetworkPasswordResponse, Di as ProjectConfigFile, Dn as FACTORY_DRAINING, Dr as RestoreFilesRequest, Dt as INBOX_BULK_MAX, E as SetNetworkPasswordRequest, Ei as checkRunItemId, En as DRAIN_UNAVAILABLE, Er as GitPushRequest, Et as HandoffSessionRequest, F as CODEDEN_VERSION, Fi as ProjectCommandsQuery, Fn as ReviewVerdict, Ft as ReviewSessionRequest, G as uiContentSecurityPolicy, Gn as FactoryAdmitRequest, Gr as DIALOG_TIMEOUT_MS, Gt as UpdateProjectRequest, H as BrowserHostClientMessage, Hi as messageFrom, Hn as FactorySpotCheckRequest, Hr as BrowserDialogId, Ht as SteerRequest, I as FactoryScorecardQuery, Ii as oneLineDescription, In as ReviewVerdictSubmission, Ir as TRANSFER_CHUNK_BYTES, It as SecretKey, J as BrowserHistoryRequest, Jn as FactoryFileIssueRequest, Jr as MAX_FOCUS_TYPE_CHARS, Jt as agentEventToNewEvent, K as BrowserClientMessage, Kn as FactoryAnalysisReport, Kr as MAX_AGENT_SCROLL, Kt as HealthResponse, L as FactoryRetryOptions, La as ZodError, Li as winningCommands, Ln as SCOUT_UNAVAILABLE, Lt as SendMessageRequest, M as HARDEN_VERSION, Ma as record, Mi as mergeItemDeltas, Mn as LEGACY_SIZE_LIMITS, Mr as RunnerCommandResults, Mt as ResolveInboxRequest, N as UPSTREAM_VERSION, Na as string, Nn as PutVisionRequest, Nt as RespondRequest, O as SignInRequest, Oa as number, Oi as checkTimeoutMs, On as FactoryAllowLargeChangeRequest, Or as SessionResult, Ot as ListInboxQuery, P as formatHardenVersion, Pn as REVIEW_SUMMARY_MAX, Pr as FS_CHUNK_MAX_BYTES, Pt as RestoreInboxRequest, Q as BrowserViewportRequest, Qi as HookChangeRequest, Qn as FactorySetTypeRequest, Qr as PROVIDER_HISTORY_MAX, Qt as LOCAL_STT_SAMPLE_RATE, R as FactoryRetryRequest, Ra as toJSONSchema, Ri as redactAndCount, Rn as SetAutonomyModeRequest, Rt as SessionSnapshotQuery, S as NetworkStatus, Si as CHECK_MESSAGE_TAIL, Sn as TriageIssueRequest, Sr as SessionStatus, St as DismissInboxRequest, T as SetNetworkAccessRequest, Ti as CheckRunData, Tn as DRAIN_PER_PROJECT, Tr as GitCommitRequest, Tt as ForkSessionRequest, U as summarizeActivity, Ui as splitSender, Un as spotCheckProblemPercent, Ur as BrowserModifierKey, Ut as ThreadItemsQuery, V as factoryNeedLabel, Vn as truncateReviewSummary, Vt as StartSessionRequest, W as RemoteImageRequest, Wn as spotCheckShare, Wr as BrowserMouseAction, Wt as UiClientMessage, X as BrowserNewTabRequest, Xi as McpServerTestRequest, Xn as FactoryPlanRoundRequest, Xr as checkBrowserMouse, Xt as Settings, Y as BrowserNavigateRequest, Yn as FactoryFinding, Yt as READ_ALOUD_FULL_MAX_CHARS, Z as BrowserOpenRequest, Zi as SkillSwitchRequest, Zn as FactoryReproductionReport, Zr as HideProviderHistoryRequest, Zt as speechExcerpt, _ as ListConflictsQuery, _a as _enum, _i as InboxItem, _n as GithubLabelRequest, _r as AutomationRun, _t as UpcomingRunsQuery, aa as AgentConfigProvider, ai as ConflictDecision, an as compareVersions$1, ar as isRetiredLesson, at as ImportAutomationsRequest, b as RoleMessageRequest, ba as array, bi as inboxWaitsOnYou, bn as MergePrRequest, br as ACTIVE_SESSION_STATUSES, bt as ArchivedSessionsQuery, c as ServerLock, ca as McpServerTarget, ci as Project, cr as FOLLOW_UP_LABEL, ct as AutomationProjectRequest, da as providersWith, di as FactoryLimits, dn as NoticeBatchData, dr as hasItemBudget, dt as ListAutomationsQuery, ea as ShelvedHook, en as SttQuery, er as ScoutState, et as AUTOMATION_IMPORT_LIMITS, fa as AutonomyLevel, fi as describeUnpushedWork, fn as CreateGithubIssueRequest, fr as itemBudgetReached, ft as RunAutomationRequest, g as ArchiveSessionRequest, ga as datetime, gi as INBOX_ANSWER_KINDS, gn as GithubIssueStateReason, gr as AutomationGuards, gt as TriageReport, hi as INBOX_ACT_NOTIFY, hn as GithubIssue, hr as AutomationAction, ht as TriageDecisionRequest, ia as AgentConfigLocator, ii as SessionOptions, in as UpdateStatus, ir as cleanLessons, it as ExportAutomationsQuery, j as ImageUsage, ji as SessionUpdatedEvent, jn as KillSwitchRequest, jr as TerminalQuery, jt as ReorderProjectsRequest, k as passwordProblem, ka as object, ki as checksOf, kn as FactoryDecisionRequest, kr as SpeechSummaryRequest, kt as ListSessionsQuery, la as McpServerUpsertRequest, li as sortProjects, ln as ConflictRecord, lr as FactoryFileFollowUpRequest, lt as CreateAutomationRequest, m as MCP_RESPONSE_HEADERS, ma as ReasoningEffort, mi as sandboxRefFor, mn as GithubCommentRequest, mr as Automation, mt as StarterSetRequest, n as UsageSettings, na as AgentConfigDiffRequest, nn as AppPointer, nr as pipelineStep, nt as AutomationImportSource, o as RunnerLock, oa as AgentConfigWriteRequest, oi as StartedBy, on as isNewerVersion, or as lessonInBriefsAt, ot as AutomationFileFrontmatter, p as MCP_REQUEST_HEADERS, pa as ProviderId, pi as hasUnpushedWork, pn as GithubAuthorAssociation, pr as Artifact, pt as SetAutomationEnabledRequest, q as BrowserDevServerRequest, qi as MCP_TEST_DEFAULT_TIMEOUT_MS, qn as FactoryDismissRequest, qr as MAX_DIALOG_TEXT, qt as AGENT_EVENT_PREFIX, r as TranscriptSearchQuery, ra as AgentConfigListQuery, rn as UpdateInstallRequest, rr as specHeld, rt as DuplicateAutomationRequest, s as RunnerToServerMessage, sa as McpServerDiffRequest, si as WorkKey, sn as HOME_RUNNER_ID, sr as lessonKey, st as AutomationGuardsPatch, t as UsageQuery, ta as AgentConfigDeleteQuery, ti as INVALID_COPY_SUFFIX, tn as TtsRequest, tr as checksPassed, tt as AutomationImportLinkRequest, u as MCP_LINK_CHUNK_BYTES, ua as agentConfigFeatures, ui as DEFAULT_VISION_PATH, un as NOTICE_BATCH_CODE, ur as sameFollowUpTitle, ut as ListAutomationRunsQuery, v as ListNoticesQuery, vi as InboxItemKind, vn as GithubListQuery, vr as AutomationTrigger, vt as UpdateAutomationProjectSettingsRequest, w as RemoteAccessFile, wa as int, wi as CHECK_RUN_NOTICE, wn as parseGithubPrId, wr as EditQueuedMessageRequest, wt as FileWriteRequest, x as UpdateSessionRequest, xa as boolean, xi as CHECK_MESSAGE_LIMIT, xn as PrMergeState, xr as Session, xt as CreateProjectRequest, y as ResolveConflictRequest, yi as inboxAttempts, yn as GithubPr, yr as TriagePolicy, yt as UpdateAutomationRequest, z as stoppedRetry, zn as drainText, zr as WorkspaceFsErrorCode, zt as SessionStartMeta } from "./src-BPcdaWEw.js";
|
|
4
|
+
import { $ as isElectronRuntime, A as cursorOnly, C as Ja, D as cursorInstallCommand, F as CODEX_MIN_VERSION, G as runNpm, H as importClaudeSdkFrom, I as claudeMemoryDir, J as CLAUDE_MIN_VERSION, K as resolveNpm, L as findGitRoot, M as imageInfo, N as resolveImageOutput, O as parseCursorStatus, P as ImageGenerationError, R as mainRepoRoot, S as readGeminiAuth, T as qo, U as installClaudeSdk, V as CLAUDE_SDK_VERSION, W as isClaudeSdkInstalled, X as findExecutable, Y as brokenInstallMessage, _ as GEMINI_INSTALL_COMMAND, a as isCodedenCredentialFile, b as geminiTooOldMessage, c as workspaceRelative, et as ownNodeEnv, g as IMAGE_ASPECT_RATIOS, h as createImageEngineRegistry, i as WorkspaceFsError, j as isCursorVersion, k as cursorBroken, m as ImageEngineRegistry, n as DiskWorkspace, nt as isProviderLoginFile, o as lexicalTarget, q as acquireInstallLock, rt as isSecretPath, s as platformPath, v as GEMINI_MIN_VERSION, w as Ko, x as isSupportedGeminiVersion, y as GEMINI_UPGRADE_COMMAND, z as claudeSdkSource } from "./env-CMkse2o0.js";
|
|
5
5
|
import { a as encodeLinkFrame, c as appendToolOutput, i as describeRunnerLinkExit, n as RUNNER_LINK_MAX_LINE_BYTES, o as OUTPUT_PREVIEW_CHARS, s as STREAMED_OUTPUT_CHARS, t as LinkFrameDecoder } from "./link-BkOc5xKB.js";
|
|
6
|
-
import { a as wrapper_default, i as import_websocket_server, n as readLock } from "./lock-
|
|
7
|
-
import { a as createAdaptorServer, c as defaultShell, i as bufferToFormData, l as shellCommandLine, n as Hono, o as upgradeWebSocket, r as tryDecodeURIComponent, s as refreshProcessPath } from "./runner-
|
|
8
|
-
import { A as ListRootsResultSchema, C as InitializedNotificationSchema, G as isJSONRPCResultResponse, J as safeParse, K as getLiteralValue, N as LoggingLevelSchema, P as McpError, R as SUPPORTED_PROTOCOL_VERSIONS, T as LATEST_PROTOCOL_VERSION, U as isJSONRPCErrorResponse, V as isInitializeRequest, W as isJSONRPCRequest, _ as ElicitResultSchema, a as AjvJsonSchemaValidator, c as CallToolRequestSchema, f as CreateMessageResultSchema, i as assertToolsCallTaskCapability, j as ListToolsRequestSchema, l as CallToolResultSchema, m as CreateTaskResultSchema, o as Protocol, p as CreateMessageResultWithToolsSchema, q as getObjectShape, r as assertClientRequestTaskCapability, s as mergeCapabilities, t as isJsonContentType, v as EmptyResultSchema, w as JSONRPCMessageSchema, x as InitializeRequestSchema, y as ErrorCode, z as SetLevelRequestSchema } from "./mediaType-
|
|
9
|
-
import { n as HELP, t as DEFAULT_PORT
|
|
6
|
+
import { a as wrapper_default, i as import_websocket_server, n as readLock } from "./lock-iovTSSb0.js";
|
|
7
|
+
import { a as createAdaptorServer, c as defaultShell, i as bufferToFormData, l as shellCommandLine, n as Hono, o as upgradeWebSocket, r as tryDecodeURIComponent, s as refreshProcessPath } from "./runner-agAgr2qn.js";
|
|
8
|
+
import { A as ListRootsResultSchema, C as InitializedNotificationSchema, G as isJSONRPCResultResponse, J as safeParse, K as getLiteralValue, N as LoggingLevelSchema, P as McpError, R as SUPPORTED_PROTOCOL_VERSIONS, T as LATEST_PROTOCOL_VERSION, U as isJSONRPCErrorResponse, V as isInitializeRequest, W as isJSONRPCRequest, _ as ElicitResultSchema, a as AjvJsonSchemaValidator, c as CallToolRequestSchema, f as CreateMessageResultSchema, i as assertToolsCallTaskCapability, j as ListToolsRequestSchema, l as CallToolResultSchema, m as CreateTaskResultSchema, o as Protocol, p as CreateMessageResultWithToolsSchema, q as getObjectShape, r as assertClientRequestTaskCapability, s as mergeCapabilities, t as isJsonContentType, v as EmptyResultSchema, w as JSONRPCMessageSchema, x as InitializeRequestSchema, y as ErrorCode, z as SetLevelRequestSchema } from "./mediaType-DHbUOwRj.js";
|
|
9
|
+
import { n as HELP, t as DEFAULT_PORT } from "./args-BJ0ric8X.js";
|
|
10
10
|
import { r as killTree$1, t as isAlive } from "./tree-DPmfBwMa.js";
|
|
11
11
|
import { createRequire } from "node:module";
|
|
12
12
|
import fs, { accessSync, appendFileSync, chmodSync, closeSync, constants, copyFileSync, cpSync, createReadStream, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, realpathSync, renameSync, rmSync, statSync, watch, writeFileSync } from "node:fs";
|
|
@@ -669,14 +669,15 @@ var RemoteAccessStore = class {
|
|
|
669
669
|
};
|
|
670
670
|
// ../server/src/paths.ts
|
|
671
671
|
/**
|
|
672
|
-
* Resolve the data directory (§6): explicit value, then `CODEDEN_HOME`, then
|
|
672
|
+
* Resolve the data directory (§6): explicit value, then `CODEDEN_HOME`, then the product's own
|
|
673
|
+
* folder in the user's home (`HARDEN_HOME_DIRNAME`, `~/.codeharden`).
|
|
673
674
|
* Two copies can run side by side with different homes and ports.
|
|
674
675
|
*/
|
|
675
676
|
function resolveHome(explicit) {
|
|
676
677
|
const fromEnv = process.env.CODEDEN_HOME;
|
|
677
678
|
if (explicit) return resolve(explicit);
|
|
678
679
|
if (fromEnv) return resolve(fromEnv);
|
|
679
|
-
return join(homedir(),
|
|
680
|
+
return join(homedir(), HARDEN_HOME_DIRNAME);
|
|
680
681
|
}
|
|
681
682
|
/** Well-known paths inside the data directory. */
|
|
682
683
|
function homePaths(home) {
|
|
@@ -67597,7 +67598,7 @@ function createServices(opts) {
|
|
|
67597
67598
|
db: opts.db,
|
|
67598
67599
|
store: opts.store,
|
|
67599
67600
|
exec,
|
|
67600
|
-
projectsDir: opts.projectsDir ?? join(userHome,
|
|
67601
|
+
projectsDir: opts.projectsDir ?? join(userHome, HARDEN_PROJECTS_DIRNAME)
|
|
67601
67602
|
});
|
|
67602
67603
|
const sessionRepo = new SessionRepo(opts.db, opts.store);
|
|
67603
67604
|
const artifacts = new ArtifactService(opts.db, opts.store, opts.paths.artifacts);
|
|
@@ -68137,7 +68138,7 @@ var KeyringSecretStore = class {
|
|
|
68137
68138
|
Entry;
|
|
68138
68139
|
service;
|
|
68139
68140
|
backend = "keyring";
|
|
68140
|
-
constructor(Entry, service =
|
|
68141
|
+
constructor(Entry, service = HARDEN_KEYCHAIN_SERVICE) {
|
|
68141
68142
|
this.Entry = Entry;
|
|
68142
68143
|
this.service = service;
|
|
68143
68144
|
}
|
|
@@ -68522,6 +68523,21 @@ async function checkSetup(opts) {
|
|
|
68522
68523
|
}
|
|
68523
68524
|
}).status({ refresh: true });
|
|
68524
68525
|
}
|
|
68526
|
+
// src/harden-home.ts
|
|
68527
|
+
/**
|
|
68528
|
+
* The line to print when this start uses the product's own default home for the first time and
|
|
68529
|
+
* the home it shared with upstream CodeDen before is still there. Nothing is moved or copied:
|
|
68530
|
+
* the line only says where the data now lives and how to keep using the old folder. Null with
|
|
68531
|
+
* `--home` or `CODEDEN_HOME`, once the new home exists, and when there is no old home.
|
|
68532
|
+
*
|
|
68533
|
+
* Call it before the home is created.
|
|
68534
|
+
*/
|
|
68535
|
+
function oldHomeNotice(home, userHome = homedir(), exists = existsSync) {
|
|
68536
|
+
if (HARDEN_HOME_DIRNAME === ".codeden") return null;
|
|
68537
|
+
if (home !== join(userHome, HARDEN_HOME_DIRNAME)) return null;
|
|
68538
|
+
if (exists(home) || !exists(join(userHome, ".codeden"))) return null;
|
|
68539
|
+
return hardenHomeNotice();
|
|
68540
|
+
}
|
|
68525
68541
|
// src/running.ts
|
|
68526
68542
|
/** The server recorded in `<home>/server.json`, if it is alive and answering. */
|
|
68527
68543
|
async function findRunningServer(lockFile) {
|
|
@@ -68659,6 +68675,8 @@ async function doctor(home, opts = {}) {
|
|
|
68659
68675
|
}
|
|
68660
68676
|
}
|
|
68661
68677
|
for (const warning of status.warnings) console.log(`\nWarning: ${warning.message}`);
|
|
68678
|
+
const notice = oldHomeNotice(home);
|
|
68679
|
+
if (notice) console.log(`\nNote: ${notice}`);
|
|
68662
68680
|
if (!status.ready) console.log("\nInstall and sign in to Claude Code, Codex or OpenCode: at least one agent provider is required.");
|
|
68663
68681
|
const node = status.checks.find((c) => c.id === "node");
|
|
68664
68682
|
const git = status.checks.find((c) => c.id === "git");
|
|
@@ -68702,7 +68720,6 @@ function versionRows(home, launch) {
|
|
|
68702
68720
|
return rows;
|
|
68703
68721
|
}
|
|
68704
68722
|
// src/network-command.ts
|
|
68705
|
-
const DEFAULT_PORT = 4317;
|
|
68706
68723
|
/**
|
|
68707
68724
|
* The home's network access file, used while CodeDen is not running. A damaged file is kept
|
|
68708
68725
|
* as a copy and reset (network access off); say so on stderr, as no server is there to.
|
|
@@ -69233,6 +69250,8 @@ async function runCommand(args, parsed) {
|
|
|
69233
69250
|
console.error(`Unknown command "${command}".\n\n${HELP}`);
|
|
69234
69251
|
return 2;
|
|
69235
69252
|
}
|
|
69253
|
+
const notice = oldHomeNotice(home);
|
|
69254
|
+
if (notice) console.log(notice);
|
|
69236
69255
|
const paths = ensureHome(home);
|
|
69237
69256
|
const token = ensureInstallToken(paths.token);
|
|
69238
69257
|
const running = await findRunningServer(paths.serverLock);
|
|
@@ -69242,7 +69261,7 @@ async function runCommand(args, parsed) {
|
|
|
69242
69261
|
if (!values["no-open"]) openBrowser(url);
|
|
69243
69262
|
return 0;
|
|
69244
69263
|
}
|
|
69245
|
-
const port = values.port ? Number(values.port) : DEFAULT_PORT
|
|
69264
|
+
const port = values.port ? Number(values.port) : DEFAULT_PORT;
|
|
69246
69265
|
if (!Number.isInteger(port) || port < 0 || port > 65535) {
|
|
69247
69266
|
console.error(`Invalid port "${values.port}".`);
|
|
69248
69267
|
return 2;
|
|
@@ -69300,4 +69319,4 @@ async function runCommand(args, parsed) {
|
|
|
69300
69319
|
}
|
|
69301
69320
|
export { runCommand };
|
|
69302
69321
|
|
|
69303
|
-
//# sourceMappingURL=commands-
|
|
69322
|
+
//# sourceMappingURL=commands-BPobEsBP.js.map
|