Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
drop the picomatch and basic-ftp overrides that forced majors onto pm2's deps
[._.]/ Adam Eivy018ef2441bde
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex dbbf562bec..606c5031a7 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -170,6 +170,7 @@- **[issue-3376] A second machine's stale snapshot can no longer undo a requeue and throw away where the retry was supposed to resume.** Federated peers reconcile a task they both hold by lifecycle rank, on the reasoning that a task only ever moves forward — so the higher status is the newer truth. Two paths break that assumption by design: the orphan sweep and the retry-hold release from #3373 both move a task from `in_progress` back to `pending`, and that write is precisely the one that records the branch and worktree a retry should resume from. A peer still holding its pre-requeue view therefore won the merge on rank alone, restoring `in_progress` and discarding the resume pointer with it, so the retry that eventually ran started from an empty tree and redid work that was already committed. The `challenged` status already had an exemption for this shape; `in_progress` versus `pending` now has one too — but a stricter one, because 'whichever side was edited most recently' turned out to be the wrong test. An ordinary edit landing on a peer's stale `pending` copy also carries a newer timestamp, and letting that win would revert a task an agent is actively running and invite a second agent onto it, which is worse than the delayed retry being fixed. So the requeue now stamps itself, and the merge asks whether that requeue happened after the spawn the other side is reporting; every other pairing falls through to the old behavior, including for a peer running a version too old to stamp. Two things the requeue depends on came along with it: the lease that the requeue deliberately releases is no longer re-attached by the separate claim merge — which had been quietly re-imposing it and blocking the retry for a full lease window — while a lease held by the requeued record itself is still honored, since a dispatch takes its lease a moment before it flips the task to running. And two peers looking at the same claim with the same owner and expiry but a different claim time now settle on one of them instead of each keeping its own forever. The wire format is unchanged, so an older peer converges on the next sweep exactly as it does today.- **`@eslint/js` was a full major behind the ESLint it configures, and catching up surfaced eight dead stores.** The client runs `eslint` 10.8.0 but pinned `@eslint/js` — the package that supplies `js.configs.recommended` — at 9.39.4, whose peer range is `eslint@^9`. The lint run worked, so nothing complained, but the config presets being applied were the v9 set: ESLint 10 promoted `no-useless-assignment` into `recommended`, and PortOS had been running without it. Bumping to 10.0.1 turned on that rule and it found eight real dead stores, each a value written and then overwritten on every path that reaches a read: five `let x = <default>` initializers where both branches assign (a timezone validity flag, a keyboard-scrub target, a parsed session snapshot, a drag span's end, two fetch-result flags), one overflow cluster that is only ever read inside the branch that builds it, and one in the MIDI parser that advances `pos` immediately before `break`ing out of a loop after which `pos` is never read. None changed behavior; all eight are now gone rather than silenced. `@vitejs/plugin-react` (6.0.5) and `@eslint-react/eslint-plugin` (5.18.1) took their patches in the same pass.- **Dependency audit: clean, and the two deferred override majors were re-checked rather than re-deferred.** `npm audit` reports zero vulnerabilities across all four manifests (root, `server`, `client`, `autofixer`) — the React Router advisory that drove the v8 migration was the last one outstanding. Every other direct dependency is already at its latest published version. The two overrides held back last pass stay held back for a reason that is now recorded instead of re-derived: pm2 declares `js-yaml` at the *exact* version `4.3.0`, so forcing the 5.x major overrides an exact pin rather than a range, and `onnxruntime-web` (via `kokoro-js`) declares `protobufjs@^7.2.4`, which 8.x is outside of by definition. `typescript` 7.0.2 is likewise blocked upstream, not by choice: it exists in this repo only as a peer for `@typescript-eslint`, whose current 8.65.0 declares `typescript >=4.8.4 <6.1.0` — the 6.0.3 pin is already at that ceiling, and 7 becomes available when typescript-eslint ships support for it. `node-pty` stays on `1.2.0-beta.14`, which is ahead of the 1.1.0 stable, not behind it.+- **Two `overrides` were forcing majors onto transitive consumers for no security benefit — the exact thing the previous pass refused to do to `js-yaml` and `protobufjs`.** Every direct dependency is already current and `npm audit` is still clean across all four manifests, so this pass audited the pinned `overrides` blocks themselves rather than the versions above them. Resolving each manifest twice — once as written, once with `overrides` deleted — and diffing the trees sorts all 39 entries into three groups. Two were actively harmful. `picomatch` was pinned to 4.0.5 against consumers that declared `^2.0.4` and `^2.2.1` — `anymatch` and `readdirp`, reached through pm2's `chokidar@3` file watcher — so pm2's watch globbing was running against a picomatch two majors past the one those packages were written for. `basic-ftp` was pinned to 6.2.0 against `get-uri@6`'s declared `^5.0.2`, in the FTP branch of pm2's PAC proxy agent. Neither pin is load-bearing: deleting each one individually and re-resolving leaves `npm audit` at zero, so no advisory required them and the only thing they bought was silent-breakage risk of the kind that surfaces at runtime instead of at install time. Both are gone, and the lockfile diff is exactly the correction — `basic-ftp` back to 5.3.1 under `get-uri`, `picomatch` 2.3.2 nested under `anymatch` and `readdirp` while vite and vitest keep the 4.0.5 they actually ask for. Ten more entries named packages that were not in the tree they were declared in at all — seven of the root manifest's fourteen, which had been copy-pasted from `server` even though root's only dependency is pm2, plus `brace-expansion`/`systeminformation` in `server` and `js-yaml` in `client`. Removing those produced zero lockfile churn, which is the proof they were inert; the root block now describes pm2's actual tree. The remaining pins all have real consumers and all sit inside the ranges those consumers declared, with two deliberate exceptions kept as-is: `sharp` and `three` are force-deduped across the whole tree because a second copy of a native binary or of three.js is itself the bug.## Three.js Modelsdiff --git a/client/package.json b/client/package.jsonindex 51737cbf84..b3a2aac35e 100644--- a/client/package.json+++ b/client/package.json@@ -48,7 +48,6 @@},"overrides": {"brace-expansion": "5.0.9",- "js-yaml": "4.3.0","socket.io-parser": "4.2.7","ws": "8.21.1","minimatch@3": {diff --git a/package-lock.json b/package-lock.jsonindex 6d1691d0a6..ec4737d307 100644--- a/package-lock.json+++ b/package-lock.json@@ -154,6 +154,19 @@"node": ">= 8"}},+ "node_modules/anymatch/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/argparse": {"version": "2.0.1","resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",@@ -181,16 +194,6 @@"dev": true,"license": "MIT"},- "node_modules/basic-ftp": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-6.2.0.tgz",- "integrity": "sha512-H8eLjhoYPbOI717FLP8fGE7XInkMI7Ucj/ft0fp1avABtSiV5Bb2kYzScnOqlvJZs/KJZypr9Mp5zJmhaPFAEg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10.0.0"- }- },"node_modules/binary-extensions": {"version": "2.3.0","resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",@@ -496,6 +499,16 @@"node": ">= 14"}},+ "node_modules/get-uri/node_modules/basic-ftp": {+ "version": "5.3.1",+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.3.1.tgz",+ "integrity": "sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ }+ },"node_modules/glob-parent": {"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",@@ -711,19 +724,6 @@"node": ">= 14"}},- "node_modules/picomatch": {- "version": "4.0.5",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz",- "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },"node_modules/pidusage": {"version": "4.0.1","resolved": "https://registry.npmjs.org/pidusage/-/pidusage-4.0.1.tgz",@@ -844,6 +844,19 @@"node": ">=8.10.0"}},+ "node_modules/readdirp/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/run-series": {"version": "1.1.9","resolved": "https://registry.npmjs.org/run-series/-/run-series-1.1.9.tgz",diff --git a/package.json b/package.jsonindex 37a2daebbb..69574d4caa 100644--- a/package.json+++ b/package.json@@ -39,19 +39,10 @@"pm2": "7.0.3"},"overrides": {- "path-to-regexp": "8.4.2","lodash": "4.18.1",- "basic-ftp": "6.2.0","follow-redirects": "1.16.0",- "brace-expansion": "5.0.9","js-yaml": "4.3.0",- "socket.io-parser": "4.2.7",- "protobufjs": "7.6.5",- "@protobufjs/utf8": "1.1.2","ws": "8.21.1",- "ip-address": "10.4.0",- "picomatch": "4.0.5",- "postcss": "8.5.25",- "systeminformation": "5.33.1"+ "ip-address": "10.4.0"}}diff --git a/server/package-lock.json b/server/package-lock.jsonindex 7b27622b06..b6f08d175a 100644--- a/server/package-lock.json+++ b/server/package-lock.json@@ -1515,6 +1515,18 @@"node": ">= 8"}},+ "node_modules/anymatch/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/argparse": {"version": "2.0.1","resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",@@ -1590,15 +1602,6 @@"node": "^4.5.0 || >= 5.9"}},- "node_modules/basic-ftp": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-6.2.0.tgz",- "integrity": "sha512-H8eLjhoYPbOI717FLP8fGE7XInkMI7Ucj/ft0fp1avABtSiV5Bb2kYzScnOqlvJZs/KJZypr9Mp5zJmhaPFAEg==",- "license": "MIT",- "engines": {- "node": ">=10.0.0"- }- },"node_modules/bignumber.js": {"version": "9.3.1","resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",@@ -2553,6 +2556,15 @@"node": ">= 14"}},+ "node_modules/get-uri/node_modules/basic-ftp": {+ "version": "5.3.1",+ "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.3.1.tgz",+ "integrity": "sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ }+ },"node_modules/glob-parent": {"version": "5.1.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",@@ -3806,6 +3818,7 @@"version": "4.0.5","resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz","integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==",+ "dev": true,"license": "MIT","engines": {"node": ">=12"@@ -4077,6 +4090,18 @@"node": ">=8.10.0"}},+ "node_modules/readdirp/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/roarr": {"version": "2.15.4","resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz",diff --git a/server/package.json b/server/package.jsonindex b5626c9933..1b58da2d19 100644--- a/server/package.json+++ b/server/package.json@@ -37,9 +37,7 @@"overrides": {"path-to-regexp": "8.4.2","lodash": "4.18.1",- "basic-ftp": "6.2.0","follow-redirects": "1.16.0",- "brace-expansion": "5.0.9","body-parser": "2.3.0","js-yaml": "4.3.0","tar": "7.5.22",@@ -51,8 +49,6 @@"@protobufjs/utf8": "1.1.2","ws": "8.21.1","ip-address": "10.4.0",- "picomatch": "4.0.5",- "postcss": "8.5.25",- "systeminformation": "5.33.1"+ "postcss": "8.5.25"}}