Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ npm >=11.17 blocks dependency install scripts until they're approved, which woul

`postinstall` runs `@electron/rebuild` so `node-pty` matches Electron, not the host Node. `package.json` overrides `node-abi` so rebuild knows this Electron major. On Windows that compile needs **admin rights** to install or modify Visual Studio 2022 Build Tools, plus the **MSVC v143 Spectre-mitigated libs** component (`MSB8040` if it is missing). Do not strip `SpectreMitigation` from `binding.gyp`. Git Bash/MinGW is not a substitute. Details: [README.md](./README.md) (Install → Windows).

Agent shells on Windows (Claude Code) may set `NoDefaultCurrentDirectoryInExePath=1`, which makes node-pty's gyp step fail with `'GetCommitHash.bat' is not recognized`. Unset it for `npm ci` / `npm run build:win*`.

Machines without admin do not `npm install` from git. Produce a portable folder on a VS machine with `npm run build:win` and copy `dist/win-unpacked`. That path is run-only (`DevTool.exe`); it does not unlock `npm run dev`.

## Windows spawn PATH
Expand Down
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A desktop application for managing development workspaces. Organize projects, ta

Built with Electron, React, and TypeScript.

Windows support (Git Bash terminals, portable Node, `.cmd` agent shims) was contributed from the [TeleporterGuy/DevTool](https://github.com/TeleporterGuy/DevTool) fork. Their Windows/Pi direction is in [ROADMAP.md](./ROADMAP.md); a company-deploy security snapshot is in [SECURITY.md](./SECURITY.md).
Windows support (Git Bash terminals, portable Node, `.cmd` agent shims) was contributed from the [join3r/claude-project](https://github.com/join3r/claude-project) fork. Their Windows/Pi direction is in [ROADMAP.md](./ROADMAP.md); a company-deploy security snapshot is in [SECURITY.md](./SECURITY.md).

## Features

Expand Down Expand Up @@ -110,7 +110,23 @@ Limits of this path:

- It is **run-only**. You cannot `npm run dev` or change the Electron native addon without a VS build machine.
- Architecture must match (x64 build for x64 Windows).
- This is a folder, not a Setup.exe. `electron-winstaller` stays unapproved until an installer is actually required. The portable `DevTool.exe` is unsigned (`signAndEditExecutable` is off so the build does not need Windows code-sign tools).
- The portable `DevTool.exe` is unsigned. The build still stamps DevTool's icon and version resources onto it (an `afterPack` hook, `scripts/win-rcedit.cjs`, runs the `rcedit` npm package; no certificate), so Task Manager and file properties say DevTool, not Electron.

#### Windows installer (per-user Setup.exe)

```bash
npm run build:win:setup
```

That writes `dist/DevTool-Setup-<version>.exe` (per-user NSIS installer: no admin, installs under `%LOCALAPPDATA%\Programs\DevTool`, adds a Start Menu shortcut) and `dist/DevTool-<version>-win.zip` (the portable folder, zipped). The portable folder from `npm run build:win` stays the no-admin escape hatch. Uninstalling never touches `~/.devtool`. It is electron-builder NSIS, so `electron-winstaller` stays unapproved.

Both are **unsigned** until a code-signing certificate exists. SmartScreen will warn: **More info → Run anyway**.

Releases are cut by hand on the Windows build machine: `npm run release:win` builds both and uploads them as a **draft** GitHub Release (needs `gh` logged in); publish the draft on GitHub. With a certificate, `npm run release:win -- --signed` (see `scripts/sign-win.cjs` for `DEVTOOL_SIGN_CMD` / `DEVTOOL_PUBLISHER_NAME`) also uploads `latest.yml`, which lets signed installs update themselves.

#### Updates

Packaged builds check `github.com/join3r/claude-project/releases` at launch and every few hours (Settings → Updates, or the menu's **Check for Updates…**; the automatic check can be turned off). Unsigned builds — the portable folder, an unsigned Setup.exe, macOS/Linux dirs — never replace themselves: they say a new version exists and open its release page. Only a signed Setup.exe install downloads and installs updates on its own.

### Development

Expand All @@ -125,6 +141,7 @@ Starts the app in development mode with hot reload. On Windows this still needs
```bash
npm run build # Typecheck, then production JS/CSS bundle
npm run build:win # Portable Windows folder (dist/win-unpacked)
npm run build:win:setup # Per-user Setup.exe + portable zip (dist/)
npm run build:mac # Package macOS app
npm run build:linux # Package Linux app
```
Expand Down
28 changes: 19 additions & 9 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Company-deploy security snapshot (what this app actually is on a workstation): [

Stay on **0.x** until the app is something you would tell a friend to unzip. **1.0.0** is that call, not “Phase 5 finished.”

`package.json` is **0.5.1** (Phase 4.5 agent context links, a patch on Phase 4's `0.5.0`, like 1.3 / 1.4). Phase 2 landed without tagging `0.4.0` and stayed **0.3.2**, so Phase 3 used that skipped minor instead of jumping to `0.5.0`. Shape:
`package.json` is **0.6.0** (Phase 5 packaging + app identity). Phase 2 landed without tagging `0.4.0` and stayed **0.3.2**, so Phase 3 used that skipped minor instead of jumping to `0.5.0`. Shape:

| Part | Meaning |
| --- | --- |
Expand All @@ -46,7 +46,7 @@ Work inside a phase is `0.x.y`; shipping the phase is the next `0.(x+1).0`.
| Phase 3 done | `0.4.0` |
| Phase 4 done | `0.5.0` (native `.ipynb` tabs) |
| Phase 4.5 (agent context links) | `0.5.1` (tagged; not a numbered bump) |
| Phase 5 (packaging + app identity) | `0.6.0`+ (icon / name / NSIS / signing / updater as you tag them) |
| Phase 5 done (packaging + app identity) | `0.6.0` (signing dormant until a certificate; a signed build is a `0.6.x` patch) |
| Phase 6 (Pi chat tab) | `0.7.0` |

LSP is parked (see Ideas); it does not get a numbered phase or a minor. Phase 6 is the Pi chat tab; there is no Phase 7 until something else earns one. Phase 0.5 does not get a version. Ideas in the parking lot do not get a version until they are pulled into a phase.
Expand All @@ -66,7 +66,7 @@ Already useful, keep it:

Known gaps this fork must treat as work, not surprises:

- Windows packaging is a portable folder (`npm run build:win` → `dist/win-unpacked`), not a Setup.exe. That folder stays the no-admin escape hatch. An installer is **Phase 5** (electron-builder NSIS, not `electron-winstaller`). From-source `npm install` on Windows still needs admin + VS Build Tools + Spectre libs (see README).
- Windows packaging: the portable folder (`npm run build:win` → `dist/win-unpacked`) stays the no-admin escape hatch; Phase 5 added a per-user NSIS Setup.exe (`npm run build:win:setup`). Both are unsigned until a certificate exists. From-source `npm install` on Windows still needs admin + VS Build Tools + Spectre libs (see README).
- Local Windows terminals are Git Bash (`Git\bin\bash.exe --login -i`, auto-detect; Settings can set a `bash.exe` path). PowerShell and Command Prompt are not product surfaces. Login-shell env **is** captured in `shell-env.ts`; do not copy that Unix PATH onto `process.env.PATH` (ConPTY `cmd.exe` lookup breaks — see AGENTS.md).
- POSIX assumptions: worktree paths, hook inject (`curl` + `python3`). Remote Pi extension lives under `$HOME/.devtool-remote/` (Phase 2 moved it off `/tmp`).

Expand Down Expand Up @@ -342,7 +342,7 @@ Tried and dropped during testing: a bare `path (lines …)` without `@` (Claude

---

## Phase 5 — Packaging, distribution, app identity
## Phase 5 — Packaging, distribution, app identity — done (`0.6.0`)

Was going to sit behind language servers as a later phase. LSP is parked, so packaging is the next numbered phase after native notebooks (and the 4.5 context-links patch). **Packaging and making the app look like DevTool, not Electron.**

Expand All @@ -361,11 +361,21 @@ Items 2–3 are small and independent of the certificate; they can tag as `0.5.x

Software Center / MSI may be a **separate IT artifact**, not this phase’s default output.

**Status (landed in `0.6.0`):**

- **2. Icon** — landed. `build/icon.png` is generated from join3r's iOS app icon (`npm run make-icon` → `scripts/make-icon.mjs`: macOS grid, rounded corners, transparent padding); electron-builder derives `.ico` / `.icns`. Window icon on Windows/Linux, Dock icon in macOS dev runs.
- **3. Name** — landed. `app.setName('DevTool')` with userData pinned to its old path (dev stays on `<appData>/devtool`, not merged into the packaged `DevTool` profile). Dev `Electron.app` plist gets `CFBundleName` / `CFBundleDisplayName` (postinstall + `predev`). Windows: an `afterPack` hook (`scripts/win-rcedit.cjs`, `rcedit` npm package) stamps icon + version resources with no certificate (exe stays unsigned), and `setAppUserModelId('com.devtool.app')` (`.dev` for dev runs). `signAndEditExecutable` stays `false`: on Windows, electron-builder's own rcedit step unpacks `winCodeSign`, and 7-Zip fails on its macOS symlinks without Developer Mode / admin (seen on the build machine). electron-builder then only signs the NSIS installer/uninstaller, so the `afterPack` hook calls `scripts/sign-win.cjs` on `DevTool.exe` itself (no-op without `DEVTOOL_SIGN_CMD`).
- **4. NSIS** — landed. `npm run build:win:setup` → per-user `DevTool-Setup-<v>.exe` (no admin, Start Menu shortcut, never touches `~/.devtool`) + portable zip. `npm run release:win` uploads a draft GitHub Release from the Windows box.
- **5. Signing** — wired, dormant. No certificate. `scripts/sign-win.cjs` runs `DEVTOOL_SIGN_CMD` when set (token/cloud-HSM certs sign through a command, not a `.pfx`). Options to look at when it matters: Certum Open Source Code Signing, SignPath Foundation (needs CI builds), Azure Artifact Signing (check eligibility). Stem (`join3r/stem`) does not sign on Windows either.
- **6. Updates** — landed, stem's model. Every packaged build checks GitHub Releases (Settings → Updates, Check for Updates…, opt-out toggle). Unsigned builds only announce a new version and open its page; only a `--signed` Setup.exe install self-updates via electron-updater. Unsigned releases carry no `latest.yml`.

Stay out of: language servers, conda GUI, a second Windows shell, reviving JupyterLab-in-browser.

**Verify:** on Windows — exe icon, taskbar, Task Manager name, Start Menu shortcut, installer per-user without admin, portable folder still runs. On macOS — `npm run dev` menu bar and Dock say DevTool with the DevTool icon; packaged `build:mac` the same.
**Verify:** unit tests for version compare, release-redirect parsing, update-mode decision (signed NSIS vs portable vs dev), manual-check states, the config toggle and the sign hook. **Windows (Windows 11, 2026-10-01) — done:** `build:win` exe carries DevTool icon + version resources (unsigned), taskbar / title bar / Task Manager say DevTool, Git Bash + Pi tabs start; `build:win:setup` installs per-user without UAC under `%LOCALAPPDATA%\Programs\DevTool`, Start Menu shortcut, pinning groups on one button, `app-update.yml` names the fork; Settings → Updates and Help → Check for Updates… report up to date (no releases yet); uninstall keeps `~/.devtool`; dev runs group separately and update checks are off. **macOS — done:** dev and packaged `build:mac` say DevTool with the icon; dev userData stays `devtool`; packaged update check is `manual`. Not run: offline check (unit-tested).

**Closeout:** done. `package.json` is **0.6.0**. Authenticode + self-update are wired but dormant until a certificate (then `release:win --signed`, a `0.6.x` patch). Next is Phase 6 (Pi chat tab).

**Effort:** icon + name are an evening; installer is days to a couple of weeks; signing + updater depend on the certificate. Ships as **`0.6.0`+** (tag slices as you actually copy them).
**Effort:** icon + name an evening; installer + updater a few evenings; signing waits on a certificate. Shipped as **`0.6.0`**.

---

Expand Down Expand Up @@ -410,7 +420,7 @@ Parking lot. Do not start these instead of the numbered phases. Several items al
| Language servers (Python, Markdown) | Parked. Monaco covers edit/view; analysis belongs in Pi. Optional sugar only if Monaco-without-Pi is painful. No minor reserved. |
| Native notebook cells + kernel | Phase 4 (`0.5.0`) |
| Agent context links from editor/notebook (Ctrl+L / Ctrl+Shift+L) | Phase 4.5 (`0.5.1`) |
| Windows installer + Authenticode + auto-update + app icon + app name (not "Electron") | Phase 5 |
| Windows installer + Authenticode + auto-update + app icon + app name (not "Electron") | Phase 5 (`0.6.0`; signing dormant until a certificate) |
| Open workspace in VS Code / Cursor | Phase 1.2 |
| Spyder as an external IDE | after Phase 3 |
| Config-dir `0700`, scrollback id, IPC cwd allow-list | Parking lot (deferred; not packaging) |
Expand Down Expand Up @@ -455,7 +465,7 @@ Keep upstream `master` as a remote (`upstream`) and rebase or merge periodically
9. Conda env picker on spawn (Phase 3). **Done** in `0.4.0`.
10. Native in-app `.ipynb` notebooks (Phase 4). **Done** in `0.5.0`. Not a JupyterLab browser launcher.
11. Agent context links from editor/notebook (Phase 4.5): Ctrl+L (selection, or current line / cell) and Ctrl+Shift+L (whole file) insert a compact `@path:lines` / cell / file link into the agent terminal or Claude chat. Tags `0.5.1`.
12. Packaging + app identity (Phase 5): keep portable `dist/win-unpacked`, app icon, app name (not "Electron" in the macOS menu bar / Windows Task Manager), then per-user NSIS Setup.exe + Start Menu, then Authenticode, then auto-update. Ships as `0.6.0`+. Do not insert LSP between 11 and 12. Do not revive browser JupyterLab.
12. Packaging + app identity (Phase 5): keep portable `dist/win-unpacked`, app icon, app name (not "Electron" in the macOS menu bar / Windows Task Manager), then per-user NSIS Setup.exe + Start Menu, then Authenticode, then auto-update. **Done** in `0.6.0` (signing/self-update dormant until a certificate). Do not revive browser JupyterLab.
13. Pi chat tab (Phase 6): `pi --mode rpc` in main, agent-neutral chat model shared with Claude chat, extension dialogs as cards. Ships as `0.7.0`.

Skip a step only if the previous phase already includes it by accident (e.g. PATH work that makes conda trivial).
Expand Down Expand Up @@ -498,7 +508,7 @@ Work machine constraints to re-test every phase: Git Bash, portable Node zip, Pi
| 3 | `0.4.0` (shipped) | Conda picker on spawn | 1–2 weeks |
| 4 | `0.5.0` (shipped) | Native `.ipynb` tabs (Monaco cells + conda kernel) | a focused pass |
| 4.5 | `0.5.1` (shipped) | Ctrl+L selection (or line / cell) and Ctrl+Shift+L whole file → compact link in agent terminal / Claude chat | a short pass |
| 5 | `0.6.0`+ | Portable folder kept; app icon + DevTool name; per-user NSIS Setup.exe; then Authenticode; then auto-update | icon/name an evening; installer days–weeks; signing/updater depend on the cert |
| 5 | `0.6.0` (shipped) | Portable folder kept; app icon + DevTool name; per-user NSIS Setup.exe; update checks; Authenticode + self-update wired, dormant until a cert | a few evenings |
| 6 | `0.7.0` | Pi chat tab over `pi --mode rpc` (timeline, composer, extension dialogs, resume) | 2–3 weeks of evenings |

Language servers stay in the parking lot. They are not a numbered phase. There is no Phase 7 until something else earns one.
Expand Down
8 changes: 5 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Snapshot of what this fork actually is, from a security point of view, before putting it on company machines. Dated against **`0.5.0`** (Phase 4 native notebooks). Not a pentest. Not a promise that later phases stay clean.

This repository is a fork of [join3r/claude-project](https://github.com/join3r/claude-project). Work stays on [TeleporterGuy/DevTool](https://github.com/TeleporterGuy/DevTool). Product direction is in [ROADMAP.md](./ROADMAP.md).
This repository is a fork of [join3r/claude-project](https://github.com/join3r/claude-project). Work stays on [join3r/claude-project](https://github.com/join3r/claude-project). Product direction is in [ROADMAP.md](./ROADMAP.md).

---

Expand All @@ -22,7 +22,7 @@ It will:
It will **not**:

- Sandbox Pi (or Claude/Codex). Models, API keys, and base URL stay in Pi’s own config (Phase 0.5).
- Add SSO, audit logs, DLP, or an update channel.
- Add SSO, audit logs, or DLP. The update check (below) talks to public GitHub Releases, not a managed company channel.
- Replace company SSH/PKI policy. Host-key checking is TOFU (`accept-new`).

If “an AI CLI with the developer’s credentials, on company source” is already a no, this app does not make that safer. If that is already accepted for a normal Git Bash window, the rest of this file is the *extra* surface DevTool adds.
Expand Down Expand Up @@ -70,7 +70,9 @@ Severity is “what a company security review usually does with it,” not CVSS.

### Blocker

**Unsigned Windows portable folder.** `package.json` sets `signAndEditExecutable: false`. `npm run build:win` yields `dist/win-unpacked` with no Authenticode publisher. SmartScreen, AppLocker, WDAC, and “who shipped this?” all fire. There is no installer, no auto-update, no Electron fuses (`onlyLoadAppFromAsar`, `embeddedAsarIntegrityValidation`, `runAsNode`, cookie encryption). Anyone who can write into that folder can replace binaries.
**Unsigned Windows builds.** No certificate is configured: `npm run build:win` (`dist/win-unpacked`) and `npm run build:win:setup` (per-user NSIS Setup.exe) carry DevTool's icon and version resources but no Authenticode publisher. SmartScreen, AppLocker, WDAC, and “who shipped this?” all fire. No Electron fuses (`onlyLoadAppFromAsar`, `embeddedAsarIntegrityValidation`, `runAsNode`, cookie encryption). Anyone who can write into the install folder (per-user: `%LOCALAPPDATA%\Programs\DevTool`) can replace binaries.

**Update check.** Packaged builds request `https://github.com/join3r/claude-project/releases/latest` at launch and every 6 h (Settings → Updates turns it off). Unsigned builds only report a newer version and open its page; they never download or replace themselves. Only a build signed through `scripts/sign-win.cjs` and installed with Setup.exe self-updates via electron-updater, which checks the downloaded installer's publisher. Unsigned releases ship without `latest.yml`, so no install self-updates to one.

### High

Expand Down
Binary file added build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,11 @@ export default tseslint.config(
// Test doubles cast freely (window.api mocks, partial fixtures).
'@typescript-eslint/no-explicit-any': 'off'
}
},
{
// CommonJS hooks electron-builder loads with require() (scripts/sign-win.cjs).
files: ['**/*.cjs'],
languageOptions: { sourceType: 'commonjs' },
rules: { '@typescript-eslint/no-require-imports': 'off' }
}
)
Loading
Loading