Skip to content

T1 node18 web runtime only - #2

Merged
grigoreo-fox merged 33 commits into
mainfrom
t1-node18-web-runtime-only
Jul 8, 2026
Merged

grigoreo-fox merged 33 commits into
mainfrom
t1-node18-web-runtime-only

Conversation

@grigoreo-fox

@grigoreo-fox grigoreo-fox commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Summary by cubic

Migrate the repo to Node 18 with pnpm workspaces and move CI/CD and Docker to pnpm for faster, more reliable builds. Switch the web extension to webextension-polyfill and make webpack OpenSSL handling shell-agnostic.

  • Migration

    • Add pnpm-workspace.yaml and a single pnpm-lock.yaml; remove Lerna and all package-lock.json.
    • Set .nvmrc to v18 and packageManager to pnpm@10.15.0; enable Corepack in Docker.
    • Update GitHub Actions (use pnpm/action-setup@v4 with cache: "pnpm") and DO App Platform deploy to pnpm; convert publish-release and test workflows.
    • Rework Dockerfile-pwa and Dockerfile-server to Node 18 + pnpm, copying manifests for better layer caching.
    • Add webpack hashFunction: "sha256"; invoke webpack via node --openssl-legacy-provider in electron, tauri, and cordova to avoid shell-specific NODE_OPTIONS; drop it where not needed.
    • Tweak .prettierignore/.gitignore for pnpm-lock.yaml and internal docs.
  • Dependencies

    • Replace webextension-polyfill-ts with webextension-polyfill and add @types/webextension-polyfill; update extension imports and message typing.
    • Use workspace:* for intra-repo deps; add pnpm.overrides to pin versions (e.g., @types/node, pg-protocol, tiptap/*) consistent with the old lockfile.
    • Declare previously hoisted deps (e.g., date-fns in @padloc/core, yaml and @types/node in @padloc/locale, @types/parse5, @simplewebauthn/typescript-types) to keep builds green.
    • Apply safe within‑major bumps for tooling (e.g., webpack, html-webpack-plugin, ts-node) and minor app libs; configure native deps (sharp) via onlyBuiltDependencies in the workspace.

Written for commit 7d004d4. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Chores

    • Updated CI, release, and Docker build workflows to use pnpm/corepack, with consistent dependency installs and caching.
    • Upgraded the project toolchain baseline to Node 18 and migrated away from the previous monorepo tooling approach.
    • Refreshed deployment commands to match the pnpm-based workflow.
  • Bug Fixes

    • Standardized build artifact hashing (sha256) across multiple targets for more consistent production outputs.
    • Updated the browser extension polyfill integration for improved runtime typing/compatibility.
  • Localization

    • Corrected the German “Theme” label.
  • Documentation

    • Added modernization plan/spec documents.

Roadmap for the modernization epic: 5 sequential phases (Node18 catch-up,
pnpm+remove Lerna, CI+Docker on pnpm, cautious dep upgrade, webpack->Vite).
Captures scope, readiness criteria, per-phase risks, and non-goals (electron/
cordova/tauri, SWC, TS 5.x as possible separate spec).
Task-by-task TDD-style plan covering Node18 catch-up, pnpm+Lerna removal,
CI/Docker on pnpm, and cautious dependency upgrade (incl. TS 5.x decision fork).
Phase 4 (Vite) remains a separate plan per the roadmap spec.
pnpm 11 fails on Node 18 (ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING); pnpm 10.15.0
is the latest major that runs. Updated packageManager field, action-setup
versions, and prerequisites accordingly.
…m10 sharp build)

Execution finding: lerna bootstrap postinstall crashes on workspace: protocol
and aborts pnpm install lifecycle. Lerna removal must happen in the same task
that first runs pnpm install. Also pnpm 10 needs onlyBuiltDependencies to build
sharp's native binary. Renumbered old 1.5 verify task to 1.4.
Strict pnpm surfaced phantom deps (lit-html, lit-element, workbox-routing/
strategies, date-fns, @types/parse5, @simplewebauthn/typescript-types,
@types/node) previously hoisted by npm. Added pnpm.overrides to restore the
exact tiptap/prosemirror/@types-node/pg-protocol versions the old npm lockfile
resolved (pnpm's fresh resolver picked newer versions incompatible with TS
4.4.3). Allow-listed cypress build script. TS_NODE_TRANSPILE_ONLY guarantees
mocha's hoisted ts-node honors transpileOnly. Builds (pwa/extension/server) and
unit tests (core 14, server 10) verified green.
…errors, blocked deps)

Task 3.5 spike measured TS 5.9.3: ~131 errors, mechanical (decorators clean), but
47 environment errors need @types/node@18 + mongodb bumps that are blocked. Deferred
per roadmap fork. Follow-up spec stub captures the full analysis and suggested plan.
@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This PR migrates the monorepo from npm/Lerna to pnpm workspaces, upgrades the Node baseline to 18, updates CI workflows, Dockerfiles, deployment config, and package manifests, adds webpack sha256 hashing, replaces webextension-polyfill-ts with webextension-polyfill, and adds modernization planning documents.

Changes

pnpm/Node18 Migration

Layer / File(s) Summary
Root workspace and ignore config
pnpm-workspace.yaml, .nvmrc, .gitignore, .prettierignore
Adds pnpm workspace globs, built-dependency restrictions, and sharp hoisting; bumps Node to v18; ignores internal scratch and pnpm lockfile paths.
Root package.json pnpm scripts and overrides
package.json
Pins packageManager to pnpm, updates engines, adds pnpm overrides, and rewrites Lerna scripts to pnpm-filter equivalents.
Per-package manifests, Tauri build hooks, and locale translation
packages/*/package.json, packages/tauri/src-tauri/tauri.conf.json, packages/locale/res/translations/de.json
Updates engines to Node 18/npm 9, converts internal deps to workspace:*, adds legacy OpenSSL flags, bumps dependency versions, updates Tauri build hooks, and fixes a German translation entry.
Webpack output hashFunction updates
packages/{admin,cordova,electron,extension,pwa,tauri}/webpack.config.js
Adds hashFunction: "sha256" to each package's webpack output config.
Extension webextension-polyfill migration
packages/extension/src/*.ts
Switches from webextension-polyfill-ts named imports to webextension-polyfill default imports and updates message handler typings.
CI workflow pnpm conversion
.github/workflows/*.yml
Replaces npm install/cache steps with pnpm setup, caching, and pnpm install --frozen-lockfile, and switches invoked commands to pnpm across build, release, and test workflows.
Dockerfile and deployment pnpm/Node18 conversion
Dockerfile-pwa, Dockerfile-server, .do/deploy.template.yaml
Switches base images to Node 18, enables corepack, uses filtered pnpm installs, and updates entrypoints/build commands to pnpm.
Modernization planning and spec documentation
docs/superpowers/plans/*, docs/superpowers/specs/*
Adds phased migration plan, roadmap design spec, and deferred TypeScript 5.x follow-up spec documents.

Estimated code review effort: 3 (Moderate) | ~30 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the Node 18/web-runtime migration but is too vague to clearly summarize the change. Use a clearer title like "Migrate workflows and builds to Node 18 and pnpm".
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch t1-node18-web-runtime-only

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/build-electron.yml (1)

46-53: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Remove the stale actions/cache step from the Electron workflow
actions/setup-node already caches pnpm here, and the cache key hashes a missing package-lock.json, so it collapses to a constant per-OS key and can reuse stale node_modules. Drop this block in all four jobs.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-electron.yml around lines 46 - 53, The Electron
workflow still has a redundant stale cache block using actions/cache@v3, which
can reuse outdated node_modules because its key is based on a missing
package-lock.json; remove this cache step from each of the four jobs in the
build-electron workflow and rely on actions/setup-node’s pnpm caching instead.
Use the existing build-electron job definitions and the actions/cache@v3 block
as the targets to delete.
🧹 Nitpick comments (9)
Dockerfile-pwa (1)

12-20: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Partial manifest copy is fragile against future workspace-dependency changes.

Only pwa, app, core, and locale package.json files are copied before running pnpm install --filter @padloc/pwa.... This works today because pnpm's glob-based workspace discovery simply won't find directories that don't exist in the build context, but if @padloc/pwa (or any transitive workspace dep) later gains a new internal workspace:* dependency not reflected here, the Docker build will fail at install time with a missing-package error, and the failure mode/reason may not be obvious to someone unfamiliar with this caching optimization. Consider a short comment documenting that this list must stay in sync with @padloc/pwa's workspace dependency graph, or explore pnpm deploy/turbo prune-style tooling to auto-derive the required manifest set.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile-pwa` around lines 12 - 20, The Dockerfile-pwa manifest-copy step
is manually listing workspace package.json files for pnpm install, which can
break when `@padloc/pwa` gains new internal workspace dependencies. Update the
Dockerfile-pwa COPY/install section to either add a brief maintenance comment
tied to the `@padloc/pwa` workspace dependency graph or switch to a pruned/deploy
approach that derives the needed manifests automatically, so the pnpm install
--filter `@padloc/pwa`... step stays reliable.
Dockerfile-server (1)

12-20: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Same fragile partial-manifest-copy pattern as Dockerfile-pwa.

Only server, core, and locale manifests are copied before pnpm install --filter @padloc/server.... Same maintenance risk as noted in Dockerfile-pwa: a future workspace dependency added to @padloc/server not reflected in this COPY list would silently break the Docker build.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Dockerfile-server` around lines 12 - 20, The server Docker build uses the
same brittle partial-manifest copy approach as the PWA image, so `pnpm install
--filter `@padloc/server`...` can break if a new workspace dependency is added but
not copied first. Update `Dockerfile-server` to make the manifest copy step
robust for `@padloc/server` by including all workspace package manifests needed
by the server dependency graph, or otherwise copy workspace manifests in a way
that automatically stays in sync with `pnpm` filtering so `pnpm install` cannot
miss a required package manifest.
.github/workflows/build-web-extension.yml (1)

33-49: 🗄️ Data Integrity & Integration | 🔵 Trivial | 💤 Low value

Tighten the web-extension job pins and drop the unused install.

  • pnpm/action-setup is using version: 10 while packageManager pins pnpm@10.15.0; match the exact pnpm version for reproducibility.
  • actions/setup-node@v3 can be bumped to v4.
  • npm i -g web-ext@6.6.0 isn’t used in the current job, so remove it unless the Firefox signing step is coming back.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-web-extension.yml around lines 33 - 49, Update the
web-extension workflow job to match the repo’s pinned toolchain and remove dead
setup. In the job that uses pnpm/action-setup and actions/setup-node, change the
pnpm version to the exact packageManager pin (pnpm@10.15.0) and bump
actions/setup-node to v4. Remove the unused global web-ext installation from the
Install dependencies step unless a later signing step in this workflow needs it
again.

Source: Linters/SAST tools

.github/workflows/build-tauri.yml (1)

46-52: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Upgrade actions/setup-node to v4. pnpm/action-setup@v4 with version: 10 already aligns with packageManager: pnpm@10.15.0, so there’s no pnpm pin drift here.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-tauri.yml around lines 46 - 52, The workflow still
uses an older actions/setup-node version in the build-tauri job; update the
setup-node step to v4 so it matches the current pnpm/action-setup@v4 usage and
the packageManager pin already in place. Keep the rest of the step intact, and
make the change in the workflow job that contains pnpm/action-setup and
actions/setup-node.

Source: Linters/SAST tools

docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md (2)

110-113: 📐 Maintainability & Code Quality | 🔵 Trivial

Align the pnpm pin with the repo’s actual target.

This spec still says pnpm@9.x, but the repo context already pins packageManager to pnpm@10.15.0. Leaving the older value here will send implementers to the wrong corepack version.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md`
around lines 110 - 113, The spec still points implementers to the wrong corepack
version by saying pnpm@9.x. Update the packageManager guidance in the roadmap
doc to match the repo’s actual pin, pnpm@10.15.0, and keep the surrounding
package.json cleanup notes (removing lerna and bootstrap/postinstall) unchanged
so the instructions stay consistent.

229-230: 🎯 Functional Correctness | 🔵 Trivial

Rewrite the safe-update step for exact pins.

With save-exact=true and exact version strings, pnpm update will not behave like a normal semver-range refresh. The plan should say to rewrite the package.json pins first (or use a different update flow), otherwise this step reads like it updates versions when it may be a no-op.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md`
around lines 229 - 230, The safe-update step is inaccurate because `pnpm update`
will not refresh exact pins when `save-exact=true` is in use. Update the plan to
say that exact `package.json` version pins must be rewritten first, or that a
different update flow should be used, and then regenerate `pnpm-lock.yaml`. Keep
the wording aligned with the roadmap step that mentions the safe patch/minor
update.
docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md (1)

218-226: 📐 Maintainability & Code Quality | 🔵 Trivial

Make the allow-list example match the later execution notes.

This step reads as if sharp is the only package that needs onlyBuiltDependencies, but Task 1.4 later calls out cypress/leveldown as additional candidates. Please either include them here or mark the snippet as provisional so implementers do not stop after the wrong config.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md` around
lines 218 - 226, The allow-list example is too narrow and conflicts with the
later build-script notes. Update the pnpm-workspace.yaml guidance in this phase
to either include the additional likely dependencies mentioned later, such as
cypress and leveldown, alongside sharp, or clearly label the snippet as
provisional so readers do not treat sharp as the only required entry. Keep the
instruction anchored to the pnpm-workspace.yaml example and the
onlyBuiltDependencies section.
packages/core/package.json (1)

21-21: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

@types/node still pinned to v16 despite the Node 18 engine bump.

engines.node was updated to 18.x (Line 37) but @types/node remains 16.11.7. Type declarations should track the target runtime to avoid missing/incorrect types for Node 18 APIs.

♻️ Proposed fix
-        "`@types/node`": "16.11.7",
+        "`@types/node`": "18.19.0",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/core/package.json` at line 21, Update the dependency declaration in
package.json so `@types/node` matches the Node 18 runtime target instead of
staying on 16.11.7. Adjust the version used by the package manifest alongside
the engines.node bump to 18.x, keeping the type definitions aligned with the
runtime APIs referenced by the core package.
packages/tauri/src-tauri/tauri.conf.json (1)

9-10: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove the legacy OpenSSL flag from the Tauri webpack commands. packages/tauri/webpack.config.js already sets output.hashFunction: "sha256", so NODE_OPTIONS=--openssl-legacy-provider is redundant in both beforeDevCommand and beforeBuildCommand.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/tauri/src-tauri/tauri.conf.json` around lines 9 - 10, Remove the
redundant OpenSSL legacy flag from the Tauri webpack commands in the
beforeDevCommand and beforeBuildCommand entries, since webpack.config.js already
uses output.hashFunction set to sha256. Update the command strings to run
update:config, tauricon, and webpack/webpack serve without
NODE_OPTIONS=--openssl-legacy-provider, keeping the rest of the build flow
unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/build-cordova.yml:
- Around line 47-56: Update the actions/setup-node step in both Cordova jobs
from v3 to v4, leaving the pnpm/action-setup pin as-is. Locate the job steps
containing actions/setup-node and change the action version consistently in both
places so the workflow uses the current Node setup action.

In @.github/workflows/build-electron.yml:
- Around line 39-45: The build workflow still uses actions/setup-node@v3 in the
linux, macos_unsigned, macos_signed, and windows jobs, so update each setup-node
step to v4 for consistency and to match the review request. Keep the existing
node-version-file and pnpm cache settings unchanged while replacing the action
version in every job that uses setup-node.

In @.github/workflows/publish-release.yml:
- Around line 33-42: The release jobs still use an outdated actions/setup-node
version, so update each setup step from actions/setup-node@v3 to the newer
supported version while keeping the existing pnpm/action-setup@v4 and install
flow unchanged. Make this change in the workflow job(s) that include the
setup-node step so the release pipeline uses the current Node setup action
consistently.

In @.github/workflows/run-tests.yml:
- Around line 14-22: The workflow is still using the outdated
actions/setup-node@v3 in the test setup job. Update the setup-node step in the
run-tests workflow to the v4 release while keeping the existing
node-version-file and cache configuration unchanged, so the Node setup is
aligned with the current action version.

In `@package.json`:
- Line 5: The CI workflow is still installing pnpm at the major version level
while packageManager pins pnpm@10.15.0, so align the GitHub Actions pnpm setup
with the same patch release or relax the packageManager pin. Update the workflow
step that installs pnpm so it matches the version declared in packageManager,
keeping the CI environment and local package manager version consistent.

---

Outside diff comments:
In @.github/workflows/build-electron.yml:
- Around line 46-53: The Electron workflow still has a redundant stale cache
block using actions/cache@v3, which can reuse outdated node_modules because its
key is based on a missing package-lock.json; remove this cache step from each of
the four jobs in the build-electron workflow and rely on actions/setup-node’s
pnpm caching instead. Use the existing build-electron job definitions and the
actions/cache@v3 block as the targets to delete.

---

Nitpick comments:
In @.github/workflows/build-tauri.yml:
- Around line 46-52: The workflow still uses an older actions/setup-node version
in the build-tauri job; update the setup-node step to v4 so it matches the
current pnpm/action-setup@v4 usage and the packageManager pin already in place.
Keep the rest of the step intact, and make the change in the workflow job that
contains pnpm/action-setup and actions/setup-node.

In @.github/workflows/build-web-extension.yml:
- Around line 33-49: Update the web-extension workflow job to match the repo’s
pinned toolchain and remove dead setup. In the job that uses pnpm/action-setup
and actions/setup-node, change the pnpm version to the exact packageManager pin
(pnpm@10.15.0) and bump actions/setup-node to v4. Remove the unused global
web-ext installation from the Install dependencies step unless a later signing
step in this workflow needs it again.

In `@Dockerfile-pwa`:
- Around line 12-20: The Dockerfile-pwa manifest-copy step is manually listing
workspace package.json files for pnpm install, which can break when `@padloc/pwa`
gains new internal workspace dependencies. Update the Dockerfile-pwa
COPY/install section to either add a brief maintenance comment tied to the
`@padloc/pwa` workspace dependency graph or switch to a pruned/deploy approach
that derives the needed manifests automatically, so the pnpm install --filter
`@padloc/pwa`... step stays reliable.

In `@Dockerfile-server`:
- Around line 12-20: The server Docker build uses the same brittle
partial-manifest copy approach as the PWA image, so `pnpm install --filter
`@padloc/server`...` can break if a new workspace dependency is added but not
copied first. Update `Dockerfile-server` to make the manifest copy step robust
for `@padloc/server` by including all workspace package manifests needed by the
server dependency graph, or otherwise copy workspace manifests in a way that
automatically stays in sync with `pnpm` filtering so `pnpm install` cannot miss
a required package manifest.

In `@docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md`:
- Around line 218-226: The allow-list example is too narrow and conflicts with
the later build-script notes. Update the pnpm-workspace.yaml guidance in this
phase to either include the additional likely dependencies mentioned later, such
as cypress and leveldown, alongside sharp, or clearly label the snippet as
provisional so readers do not treat sharp as the only required entry. Keep the
instruction anchored to the pnpm-workspace.yaml example and the
onlyBuiltDependencies section.

In `@docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md`:
- Around line 110-113: The spec still points implementers to the wrong corepack
version by saying pnpm@9.x. Update the packageManager guidance in the roadmap
doc to match the repo’s actual pin, pnpm@10.15.0, and keep the surrounding
package.json cleanup notes (removing lerna and bootstrap/postinstall) unchanged
so the instructions stay consistent.
- Around line 229-230: The safe-update step is inaccurate because `pnpm update`
will not refresh exact pins when `save-exact=true` is in use. Update the plan to
say that exact `package.json` version pins must be rewritten first, or that a
different update flow should be used, and then regenerate `pnpm-lock.yaml`. Keep
the wording aligned with the roadmap step that mentions the safe patch/minor
update.

In `@packages/core/package.json`:
- Line 21: Update the dependency declaration in package.json so `@types/node`
matches the Node 18 runtime target instead of staying on 16.11.7. Adjust the
version used by the package manifest alongside the engines.node bump to 18.x,
keeping the type definitions aligned with the runtime APIs referenced by the
core package.

In `@packages/tauri/src-tauri/tauri.conf.json`:
- Around line 9-10: Remove the redundant OpenSSL legacy flag from the Tauri
webpack commands in the beforeDevCommand and beforeBuildCommand entries, since
webpack.config.js already uses output.hashFunction set to sha256. Update the
command strings to run update:config, tauricon, and webpack/webpack serve
without NODE_OPTIONS=--openssl-legacy-provider, keeping the rest of the build
flow unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4cc0882d-0b96-4d70-8e4a-0a9d175feaf7

📥 Commits

Reviewing files that changed from the base of the PR and between 710ec6f and 8250a9f.

⛔ Files ignored due to path filters (12)
  • package-lock.json is excluded by !**/package-lock.json
  • packages/admin/package-lock.json is excluded by !**/package-lock.json
  • packages/app/package-lock.json is excluded by !**/package-lock.json
  • packages/cordova/package-lock.json is excluded by !**/package-lock.json
  • packages/core/package-lock.json is excluded by !**/package-lock.json
  • packages/electron/package-lock.json is excluded by !**/package-lock.json
  • packages/extension/package-lock.json is excluded by !**/package-lock.json
  • packages/locale/package-lock.json is excluded by !**/package-lock.json
  • packages/pwa/package-lock.json is excluded by !**/package-lock.json
  • packages/server/package-lock.json is excluded by !**/package-lock.json
  • packages/tauri/package-lock.json is excluded by !**/package-lock.json
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (41)
  • .github/workflows/build-cordova.yml
  • .github/workflows/build-electron.yml
  • .github/workflows/build-tauri.yml
  • .github/workflows/build-web-extension.yml
  • .github/workflows/publish-release.yml
  • .github/workflows/run-tests.yml
  • .gitignore
  • .npmrc
  • .nvmrc
  • .prettierignore
  • Dockerfile-pwa
  • Dockerfile-server
  • docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md
  • docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md
  • docs/superpowers/specs/2026-07-08-typescript-5x-upgrade-followup.md
  • lerna.json
  • package.json
  • packages/admin/package.json
  • packages/admin/webpack.config.js
  • packages/app/package.json
  • packages/cordova/package.json
  • packages/cordova/webpack.config.js
  • packages/core/package.json
  • packages/electron/package.json
  • packages/electron/webpack.config.js
  • packages/extension/package.json
  • packages/extension/src/app.ts
  • packages/extension/src/background.ts
  • packages/extension/src/content.ts
  • packages/extension/src/message.ts
  • packages/extension/src/storage.ts
  • packages/extension/src/toolbar.ts
  • packages/extension/webpack.config.js
  • packages/locale/package.json
  • packages/pwa/package.json
  • packages/pwa/webpack.config.js
  • packages/server/package.json
  • packages/tauri/package.json
  • packages/tauri/src-tauri/tauri.conf.json
  • packages/tauri/webpack.config.js
  • pnpm-workspace.yaml
💤 Files with no reviewable changes (1)
  • lerna.json

Comment on lines +47 to +56
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
pnpm install --frozen-lockfile

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n## Relevant files\n'
git ls-files '.github/workflows/build-cordova.yml' 'package.json' '.nvmrc' 'pnpm-lock.yaml' 'pnpm-workspace.yaml' | sed 's#^`#-` #'

printf '\n## package.json\n'
if [ -f package.json ]; then
  cat -n package.json | sed -n '1,220p'
fi

printf '\n## .nvmrc\n'
if [ -f .nvmrc ]; then
  cat -n .nvmrc
fi

printf '\n## Workflow excerpt\n'
if [ -f .github/workflows/build-cordova.yml ]; then
  cat -n .github/workflows/build-cordova.yml | sed -n '1,220p'
fi

Repository: grigoreo-dev/padloc

Length of output: 11195


🌐 Web query:

pnpm/action-setup version input packageManager field precedence docs

💡 Result:

In pnpm/action-setup, the version input and the packageManager field in package.json are not processed with a simple priority order; instead, the action expects them to be consistent [1]. If you provide both a version in your GitHub Action configuration and a packageManager field in your package.json, the action performs a validation check [1]. If the versions specified do not match, the action will throw an error and fail the workflow [1]. To avoid this conflict, you have two primary options: 1. Use the packageManager field (Recommended): Omit the version input in your GitHub Action configuration [2][3]. The action will automatically detect and use the version specified in the packageManager field of your package.json [2]. 2. Use the version input: If you prefer to manage the version via the action configuration, ensure it matches the version specified in your package.json [1]. Note that if you do not specify a version via either method, the action will throw an error [1]. Crucially, for the action to read the packageManager field, you must ensure that your repository has been checked out (e.g., using actions/checkout) before the pnpm/action-setup step [1]. Additionally, newer versions of pnpm also support specifying a version via devEngines.packageManager in package.json, which may also be considered by the action during version resolution [4][5].

Citations:


🌐 Web query:

pnpm/action-setup version input semver range major 10 packageManager exact version validation

💡 Result:

The pnpm/action-setup action supports the npm versioning scheme for its version input, which includes both exact versions (e.g., 10.9.8) and semver ranges (e.g., 10, 10.x.x, ^10.9.8, *) [1][2][3]. Regarding version validation and the packageManager field: 1. Handling of Semver Ranges: While documentation indicates support for ranges [2][3], recent repository updates have clarified that the underlying self-update mechanism relies on resolving these inputs [4][5]. Developments as of May 2026 have moved toward explicitly supporting both exact versions and semver ranges directly by passing them through to the self-update process, effectively removing previous restrictions that required exact semver pinning [4][5]. 2. packageManager Integration: If the version input is omitted, the action is designed to use the version specified in the packageManager (or devEngines.packageManager) field of your package.json [2][3]. 3. Version Validation and Workarounds: Users have historically encountered issues where the action might not perfectly extract or align the version from the package.json field, particularly when integrity hashes (e.g., +sha512...) are present [6]. If you experience mismatches, it is recommended to ensure the extracted version is a clean semver string. A common workaround involves using tools like jq to extract the version and strip any hash suffixes before passing it to the action: echo "version=$(jq --raw-output '.devEngines.packageManager.version | split("+")' package.json)" >> $GITHUB_OUTPUT [6] By using the version input explicitly with the value from your package.json, you can override default extraction behaviors and ensure the specific version you require is installed [6].

Citations:


Update actions/setup-node to v4 in both Cordova jobs. The pnpm/action-setup pin already matches the repo’s packageManager, so the Node setup action is the only remaining issue here.

🧰 Tools
🪛 actionlint (1.7.12)

[error] 50-50: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-cordova.yml around lines 47 - 56, Update the
actions/setup-node step in both Cordova jobs from v3 to v4, leaving the
pnpm/action-setup pin as-is. Locate the job steps containing actions/setup-node
and change the action version consistently in both places so the workflow uses
the current Node setup action.

Source: Linters/SAST tools

Comment on lines +39 to +45
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Files:\n'
git ls-files .github/workflows/build-electron.yml package.json pnpm-lock.yaml .nvmrc 2>/dev/null || true

printf '\nWorkflow outline:\n'
ast-grep outline .github/workflows/build-electron.yml --view expanded || true

printf '\nRelevant snippets from workflow:\n'
sed -n '1,240p' .github/workflows/build-electron.yml | nl -ba | sed -n '1,240p'

printf '\npackage.json snippet:\n'
if [ -f package.json ]; then
  sed -n '1,220p' package.json | nl -ba | sed -n '1,220p'
fi

printf '\nSearch for packageManager and setup-node usage:\n'
rg -n '"packageManager"|pnpm/action-setup@|actions/setup-node@' . -g '!**/node_modules/**' -g '!**/dist/**' -g '!**/build/**'

Repository: grigoreo-dev/padloc

Length of output: 381


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Workflow lines around all setup steps:\n'
sed -n '1,260p' .github/workflows/build-electron.yml | awk '{printf "%4d  %s\n", NR, $0}'

printf '\npackage.json lines around packageManager:\n'
awk 'BEGIN{n=0} /"packageManager"/ {n=12} n>0 {printf "%4d  %s\n", NR, $0; n--}' package.json

printf '\nExact occurrences:\n'
rg -n 'packageManager|pnpm/action-setup@|actions/setup-node@|node-version-file|cache:' .github/workflows/build-electron.yml package.json .nvmrc

Repository: grigoreo-dev/padloc

Length of output: 11137


🌐 Web query:

pnpm/action-setup packageManager version input exact version packageManager field docs

💡 Result:

In pnpm/action-setup, the version input is optional if a packageManager field exists in your package.json file [1][2]. Key details regarding this behavior include: 1. Automatic Detection: If you omit the version input in your GitHub Actions workflow, the action will automatically attempt to read the pnpm version from the packageManager field in your package.json file [1][2]. For this to work, ensure you run the actions/checkout step before pnpm/action-setup so the file is available [3]. 2. Version Conflicts: If you specify both an explicit version in the action configuration and a version in the package.json packageManager field, the action will throw an error if the versions do not match, preventing a mismatch between the configured and requested environment [3]. 3. Recommended Usage: To leverage the packageManager field, simply omit the version input in your workflow: - uses: pnpm/action-setup@v6 (This will automatically use the version specified in your package.json) [1][2]. Note that pnpm enforces the version specified in the packageManager field when running commands (like pnpm install). If the action installs a different version than what is requested by the packageManager field, you may encounter an ERR_PNPM_BAD_PM_VERSION error [4]. Keeping the packageManager field updated or matching your action configuration is essential to avoid this conflict [4].

Citations:


🌐 Web query:

actions/setup-node v4 cache pnpm node-version-file docs

💡 Result:

To use caching with pnpm in actions/setup-node v4, set the cache input to 'pnpm' [1][2]. Note that pnpm caching requires pnpm version 6.10.0 or higher [1][3]. When using node-version-file in conjunction with caching, the action determines the Node.js version from the specified file (e.g.,.nvmrc,.node-version,.tool-versions, or package.json) [1][2]. If both node-version and node-version-file are provided, the node-version input takes precedence [1][2]. For caching pnpm dependencies, you must also use pnpm/action-setup to install pnpm before running actions/setup-node [1]. Example configuration: steps: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v2 with: version: 9.0.0 - uses: actions/setup-node@v4 with: node-version-file: '.nvmrc' cache: 'pnpm' - run: pnpm install If your lockfile (e.g., pnpm-lock.yaml) is not in the repository root, or if you have multiple lockfiles, use the cache-dependency-path input to specify the correct path [1][3]. The action uses the hash of the dependency file to generate the cache key [2][4]. Caching is disabled by default and must be explicitly configured using the cache input [2][3].

Citations:


🌐 Web query:

pnpm/action-setup version input major version packageManager exact match 10.15.0 docs

💡 Result:

In the pnpm/action-setup GitHub Action, the version input determines which version of pnpm is installed [1][2]. While the official documentation states that the version input is optional if a packageManager field exists in your package.json, the action's behavior regarding exact version matching from that field and the version input has been the subject of recent updates and bug reports [1][3][4][5]. Key points regarding versioning and the packageManager field: 1. Version Input Flexibility: The version input supports the npm versioning scheme, including exact versions (e.g., 10.15.0), semantic versioning ranges (e.g., 10, ^10.9.8), or keywords like latest [1][2]. 2. packageManager Integration: If you omit the version input, the action attempts to use the version specified in the packageManager field of your package.json [1][2]. 3. Known Issues and Recent Fixes: Recent versions of the action (v6) have faced issues where they did not correctly respect the version specified in the packageManager field or the version input due to PATH precedence bugs and extraction logic errors [3][5]. However, ongoing development, such as Pull Request #256, has addressed these issues by ensuring the action correctly self-updates to the pinned version (whether exact or a range) defined in packageManager or devEngines.packageManager.version [4]. If you need to ensure an exact match for 10.15.0, you should explicitly set the version input: - uses: pnpm/action-setup@v6 with: version: 10.15.0 If you prefer to rely on the package.json configuration, ensure you are using the latest version of the action, as older releases of v6 may require manual workarounds (such as extracting the version using jq and passing it to the version input) to bypass resolution bugs [3][4].

Citations:


🌐 Web query:

pnpm/action-setup version 10 packageManager pnpm@10.15.0 mismatch

💡 Result:

If you are encountering a version mismatch error between pnpm/action-setup and your specified pnpm version (e.g., 10.15.0), it is likely due to a conflict where the action's configuration and your project's package.json (via the packageManager field) both specify conflicting versions [1][2]. The pnpm/action-setup action enforces a strict consistency check [3]. If you define a version in the GitHub Action input (with: version:...) and also have a packageManager field in your package.json, the action will throw an error if they do not match [1]. To resolve this: 1. Standardize your configuration: You should ideally specify the version in only one place [1]. If you have a packageManager field in your package.json, you can omit the version input in your GitHub Actions workflow file to let the action automatically detect and use the version defined in your project [4]. 2. Check for hidden conflicts: Sometimes, the version in package.json may include integrity metadata (e.g., +sha512...) or be defined within a devEngines block, which the action might parse differently [5][6]. Ensure the versions are strictly compatible or identical. 3. Update the action: Recent versions of pnpm/action-setup (v6.x) have included fixes to better handle version resolution, including improved handling of packageManager fields and self-update mechanisms to prevent the action from defaulting to an incorrect bootstrap version [3][6]. Ensure you are using the latest version of the action. If you specifically need to pin to 10.15.0, ensure your workflow looks like this [7]: - uses: pnpm/action-setup@v6 with: version: 10.15.0 Then, verify that your package.json also matches or remove the packageManager field if it is causing a conflict [1].

Citations:


🌐 Web query:

pnpm/action-setup version input semver range packageManager exact match source code

💡 Result:

In pnpm/action-setup, the behavior regarding versioning and input handling is as follows: The version input for pnpm/action-setup supports standard npm versioning schemes [1]. This includes exact versions (e.g., 10.9.8), semver ranges (e.g., 10, ^10.9.8, 10.x.x), and the keyword latest [1]. Regarding the packageManager field (typically found in package.json), the action is designed to read the specified version to automatically manage the pnpm installation if the version input is omitted [1][2]. Internally, the action retrieves this value and processes it to determine the target version [2]. Recent updates to the action (notably in May 2026) have improved how the system handles both exact versions and semver ranges found in the packageManager field (as well as devEngines.packageManager), allowing these to be passed through for resolution by the pnpm self-update mechanism [3][4]. Previously, some logic gates required or preferred exact semver, but these have been updated to support ranges directly [3][4]. If both a version input and a packageManager field are present, the action performs a validation check [2]. If the versions do not match, the action will throw an error to prevent potential conflicts [2][5]. Users are advised to remove one of these definitions to avoid such mismatches [2]. When specifying a version from package.json, it is important to note that if the version string includes integrity hash metadata (common in some packageManager configurations), it may require manual stripping (e.g., via split('+')) for the action to resolve the version correctly [4][6].

Citations:


🌐 Web query:

pnpm/action-setup compare version input packageManager semver.satisfies

💡 Result:

The pnpm/action-setup GitHub Action determines which version of pnpm to install based on its version input and the packageManager field (or devEngines.packageManager) in the project's package.json [1][2][3]. The interaction between these inputs is as follows: 1. Version Input: If the version input is explicitly provided in the GitHub Action workflow, pnpm/action-setup will use that version [1][2]. This input supports exact versions, version ranges (e.g., 10.x.x, ^10.9.8), or the keyword 'latest' [1]. 2. packageManager Field: If the version input is omitted, the action reads the packageManager (or devEngines.packageManager) field from the package.json to determine the pnpm version [1][2]. 3. Conflict Handling: If both the version input and the packageManager field are present, the action checks if they match [4][2]. If they do not, it throws an error to prevent potential version mismatch issues such as ERR_PNPM_BAD_PM_VERSION [4][2]. 4. Version Resolution: Rather than relying on semver.satisfies during the initial setup, the action typically passes the specified version or range to pnpm self-update [3]. This command is used to ensure the environment is running the correct, project-specific version of pnpm [3]. As of recent updates, the action normalizes these inputs (e.g., stripping prefixes like pnpm@ or integrity hashes) to ensure accurate version matching [3][5]. In summary, the action prioritizes the explicit version input, uses the packageManager field as a fallback, and enforces consistency between them to ensure the build environment uses the intended pnpm version [4][2][3].

Citations:


Upgrade actions/setup-node to v4 in all four jobs. actions/setup-node@v3 is outdated in the linux, macos_unsigned, macos_signed, and windows steps.

🧰 Tools
🪛 actionlint (1.7.12)

[error] 42-42: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/build-electron.yml around lines 39 - 45, The build
workflow still uses actions/setup-node@v3 in the linux, macos_unsigned,
macos_signed, and windows jobs, so update each setup-node step to v4 for
consistency and to match the review request. Keep the existing node-version-file
and pnpm cache settings unchanged while replacing the action version in every
job that uses setup-node.

Source: Linters/SAST tools

Comment on lines +33 to +42
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
pnpm install --frozen-lockfile

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

sed -n '1,220p' .github/workflows/publish-release.yml

Repository: grigoreo-dev/padloc

Length of output: 10071


🏁 Script executed:

python3 - <<'PY'
import json, pathlib
for p in [pathlib.Path('package.json'), pathlib.Path('.nvmrc')]:
    if p.exists():
        print(f'## {p}')
        print(p.read_text())
PY

Repository: grigoreo-dev/padloc

Length of output: 5814


🏁 Script executed:

rg -n "pnpm/action-setup@v4|actions/setup-node@v3|packageManager|package-manager" .github package.json

Repository: grigoreo-dev/padloc

Length of output: 2671


🌐 Web query:

pnpm/action-setup version input packageManager package.json exact version behavior docs

💡 Result:

In pnpm/action-setup, the behavior of the version input and the packageManager field in package.json is as follows: General Behavior - The version input is optional if a packageManager field is defined in the package.json file [1][2]. - If the packageManager field is absent, the version input is required [1][2]. - When provided, the version input supports the npm versioning scheme, including exact versions (e.g., 10.9.8), version ranges (e.g., 10, ^10.9.8), or latest [1][2]. Interaction Between version and packageManager - If you specify both the version input and a packageManager field, the action validates that they match [3]. If they differ, the action will throw an error to prevent version conflicts [3]. - To use the version specified in the package.json packageManager field, you should omit the version input entirely [1][2]. - For the action to successfully read the packageManager field, you must ensure the repository has been checked out (using actions/checkout) before running pnpm/action-setup [3]. Important Implementation Details - The packageManager field in package.json must be in the format pnpm@ (e.g., pnpm@10.9.8) to be recognized [3]. - You can specify a custom file path for the configuration using the package_json_file input, which defaults to package.json [1][2]. - Users have reported issues in recent versions (e.g., v6) where the action may not correctly resolve the version from the packageManager field if the file structure or field content includes unexpected metadata; in such cases, manual extraction and passing the version via the version input is a common workaround [4].

Citations:


🌐 Web query:

actions/setup-node v3 v4 deprecation release notes

💡 Result:

The actions/setup-node action has evolved significantly since v3, with v4 and subsequent major versions (v5, v6) introducing breaking changes and environment updates [1][2][3]. Key details regarding the transition from v3 to v4: - Release Date: v4.0.0 was released on October 23, 2023 [1]. - Breaking Changes: The primary change in v4 was upgrading the action's underlying Node.js runtime from Node 16 to Node 20 [1][4]. It also included an upgrade to actions/checkout v4 [1][5]. - Deprecation Status: While GitHub has deprecated older runtime environments (such as Node 16 and recently Node 20) for GitHub Actions runners themselves [6], the actions/setup-node v3 release is considered legacy. Users are encouraged to migrate to more recent versions (e.g., v6) to maintain compatibility with updated runner environments and security standards [2][3]. As of July 8, 2026, the current major version of actions/setup-node is v6 [2][3]. The v6 release includes further updates, such as upgrading the action's runtime to Node 24 and removing the deprecated always-auth input [2]. To ensure compatibility with modern GitHub Actions runners, it is recommended to update workflows to use the latest version of the action [2].

Citations:


Update actions/setup-node in the release jobs
pnpm/action-setup@v4 already matches packageManager: pnpm@10.15.0, so there’s no pnpm version drift here; the remaining cleanup is to bump actions/setup-node@v3 in each release job.

🧰 Tools
🪛 actionlint (1.7.12)

[error] 36-36: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🪛 zizmor (1.26.1)

[error] 36-36: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): this step

(cache-poisoning)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-release.yml around lines 33 - 42, The release jobs
still use an outdated actions/setup-node version, so update each setup step from
actions/setup-node@v3 to the newer supported version while keeping the existing
pnpm/action-setup@v4 and install flow unchanged. Make this change in the
workflow job(s) that include the setup-node step so the release pipeline uses
the current Node setup action consistently.

Source: Linters/SAST tools

Comment on lines +14 to +22
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- uses: actions/cache@v3
with:
path: |
~/.npm
~/.nvm
node_modules
packages/app/node_modules
packages/cordova/node_modules
packages/core/node_modules
packages/electron/node_modules
packages/extension/node_modules
packages/locale/node_modules
packages/manage/node_modules
packages/pwa/node_modules
packages/server/node_modules
packages/tauri/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
cache: "pnpm"
- name: Install dependencies
run: |
npm i -g npm@8.2.0
npm ci
run: pnpm install --frozen-lockfile

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== run-tests workflow ==\n'
cat -n .github/workflows/run-tests.yml | sed -n '1,120p'

printf '\n== package manager declaration search ==\n'
rg -n --hidden --glob 'package.json' --glob '.npmrc' --glob '.nvmrc' --glob 'pnpm-workspace.yaml' --glob '.github/workflows/*.yml' 'packageManager|pnpm/action-setup|actions/setup-node@v[0-9]+' .

printf '\n== package.json files with packageManager ==\n'
for f in $(git ls-files '**/package.json'); do
  if rg -n '"packageManager"' "$f" >/dev/null; then
    printf '\n-- %s --\n' "$f"
    rg -n '"packageManager"' "$f"
  fi
done

Repository: grigoreo-dev/padloc

Length of output: 4329


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== .github/workflows/run-tests.yml ==\n'
sed -n '1,80p' .github/workflows/run-tests.yml

printf '\n== package.json packageManager entries ==\n'
for f in $(git ls-files '**/package.json'); do
  if grep -q '"packageManager"' "$f"; then
    printf '\n-- %s --\n' "$f"
    grep -n '"packageManager"' "$f"
  fi
done

printf '\n== actions/setup-node versions in workflows ==\n'
rg -n 'actions/setup-node@v[0-9]+' .github/workflows

Repository: grigoreo-dev/padloc

Length of output: 2734


Bump actions/setup-node to v4.
actions/setup-node@v3 is outdated here.

🧰 Tools
🪛 actionlint (1.7.12)

[error] 17-17: the runner of "actions/setup-node@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/run-tests.yml around lines 14 - 22, The workflow is still
using the outdated actions/setup-node@v3 in the test setup job. Update the
setup-node step in the run-tests workflow to the v4 release while keeping the
existing node-version-file and cache configuration unchanged, so the Node setup
is aligned with the current action version.

Source: Linters/SAST tools

Comment thread package.json
"name": "padloc",
"private": true,
"version": "4.3.0",
"packageManager": "pnpm@10.15.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf 'Top-level files:\n'
git ls-files | sed -n '1,200p' | grep -E '(^package\.json$|\.github/workflows/.*\.(yml|yaml)$|pnpm-lock\.yaml$)' || true

printf '\nSearch pnpm references:\n'
rg -n --hidden --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' 'pnpm(@|[[:space:]])|setup-pnpm|pnpm/action-setup|packageManager' .

printf '\npackage.json:\n'
cat -n package.json

printf '\nWorkflow excerpts:\n'
for f in $(git ls-files '.github/workflows/*.yml' '.github/workflows/*.yaml'); do
  echo "== $f =="
  cat -n "$f" | sed -n '1,220p'
done

Repository: grigoreo-dev/padloc

Length of output: 50375


Pin CI to pnpm 10.15.0.

packageManager requires pnpm@10.15.0, but the GitHub Actions setup still installs pnpm 10. Set the workflow to the same patch release, or relax the pin, so installs don’t drift.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 5, The CI workflow is still installing pnpm at the
major version level while packageManager pins pnpm@10.15.0, so align the GitHub
Actions pnpm setup with the same patch release or relax the packageManager pin.
Update the workflow step that installs pnpm so it matches the version declared
in packageManager, keeping the CI environment and local package manager version
consistent.

Source: Pipeline failures

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5 issues found across 53 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="Dockerfile-server">

<violation number="1" location="Dockerfile-server:1">
P2: Image builds are no longer reproducible because `node:18-bullseye` can change without a code change. Pinning to an exact patch tag (or digest) would keep runtime updates explicit and auditable.</violation>
</file>

<file name="packages/core/package.json">

<violation number="1" location="packages/core/package.json:21">
P3: The Node 18-only package metadata still gives core Node 16 type definitions, so Node 18 APIs will be missing or incorrectly typed during development. Consider aligning `@types/node` (and the root pnpm override) with the new Node 18 runtime target.</violation>
</file>

<file name="package.json">

<violation number="1" location="package.json:5">
P2: DigitalOcean template deploys will fail during dependency installation after this pnpm migration: the app spec still runs `npm ci`, but the repo now has only a pnpm lockfile. Consider updating those build commands to enable/use pnpm (or retaining a package-lock if npm deploys are still supported).</violation>

<violation number="2" location="package.json:21">
P2: The `@types/node` override pins to version `16.11.7` while the `engines.node` field now specifies `18.x`. This means TypeScript will see Node 16 type definitions, which miss Node 18 APIs (e.g., stable `fetch`, `ReadableStream`, `fs/promises` improvements). If any workspace package uses Node 18 features, TypeScript will incorrectly flag them as errors — or worse, fail to catch real issues because the types it knows about are for a different runtime version.</violation>
</file>

<file name="packages/extension/src/background.ts">

<violation number="1" location="packages/extension/src/background.ts:33">
P3: Malformed extension messages can still be handled as trusted `Message` payloads; the new `unknown` parameter is immediately asserted instead of validated, so a bad `unlocked` payload can reach `base64ToBytes(msg.masterKey)`. Consider adding a small type guard for `type` and variant payloads before the switch.</violation>
</file>

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread packages/cordova/package.json Resolved
Comment thread .npmrc Resolved
Comment thread packages/electron/package.json Resolved
Comment thread package.json
"main": "main.js",
"pnpm": {
"overrides": {
"@types/node": "16.11.7",

@cubic-dev-ai cubic-dev-ai Bot Jul 8, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The @types/node override pins to version 16.11.7 while the engines.node field now specifies 18.x. This means TypeScript will see Node 16 type definitions, which miss Node 18 APIs (e.g., stable fetch, ReadableStream, fs/promises improvements). If any workspace package uses Node 18 features, TypeScript will incorrectly flag them as errors — or worse, fail to catch real issues because the types it knows about are for a different runtime version.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At package.json, line 21:

<comment>The `@types/node` override pins to version `16.11.7` while the `engines.node` field now specifies `18.x`. This means TypeScript will see Node 16 type definitions, which miss Node 18 APIs (e.g., stable `fetch`, `ReadableStream`, `fs/promises` improvements). If any workspace package uses Node 18 features, TypeScript will incorrectly flag them as errors — or worse, fail to catch real issues because the types it knows about are for a different runtime version.</comment>

<file context>
@@ -11,59 +12,87 @@
     "main": "main.js",
+    "pnpm": {
+        "overrides": {
+            "@types/node": "16.11.7",
+            "pg-protocol": "1.5.0",
+            "@tiptap/extension-blockquote": "2.0.0-beta.29",
</file context>
Fix with cubic

"devDependencies": {
"@types/chai": "4.2.18",
"@types/mocha": "8.2.2",
"@types/node": "16.11.7",

@cubic-dev-ai cubic-dev-ai Bot Jul 8, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The Node 18-only package metadata still gives core Node 16 type definitions, so Node 18 APIs will be missing or incorrectly typed during development. Consider aligning @types/node (and the root pnpm override) with the new Node 18 runtime target.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/core/package.json, line 21:

<comment>The Node 18-only package metadata still gives core Node 16 type definitions, so Node 18 APIs will be missing or incorrectly typed during development. Consider aligning `@types/node` (and the root pnpm override) with the new Node 18 runtime target.</comment>

<file context>
@@ -11,19 +11,21 @@
     "devDependencies": {
         "@types/chai": "4.2.18",
         "@types/mocha": "8.2.2",
+        "@types/node": "16.11.7",
         "chai": "4.3.4",
         "mocha": "9.2.2",
</file context>
Fix with cubic

this.app.subscribe(update);
browser.runtime.onMessage.addListener(async (msg: Message, sender: Runtime.MessageSender) => {
browser.runtime.onMessage.addListener(async (rawMsg: unknown, sender: Runtime.MessageSender) => {
const msg = rawMsg as Message;

@cubic-dev-ai cubic-dev-ai Bot Jul 8, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: Malformed extension messages can still be handled as trusted Message payloads; the new unknown parameter is immediately asserted instead of validated, so a bad unlocked payload can reach base64ToBytes(msg.masterKey). Consider adding a small type guard for type and variant payloads before the switch.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/extension/src/background.ts, line 33:

<comment>Malformed extension messages can still be handled as trusted `Message` payloads; the new `unknown` parameter is immediately asserted instead of validated, so a bad `unlocked` payload can reach `base64ToBytes(msg.masterKey)`. Consider adding a small type guard for `type` and variant payloads before the switch.</comment>

<file context>
@@ -28,7 +29,8 @@ class ExtensionBackground {
         this.app.subscribe(update);
-        browser.runtime.onMessage.addListener(async (msg: Message, sender: Runtime.MessageSender) => {
+        browser.runtime.onMessage.addListener(async (rawMsg: unknown, sender: Runtime.MessageSender) => {
+            const msg = rawMsg as Message;
             if (sender.tab) {
                 // Communication with content-scripts is one-way, so we ignore
</file context>
Fix with cubic

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/locale/res/translations/de.json`:
- Around line 1227-1229: The German translation entry for Theme: is empty in the
translations JSON, so restore the localized string in the de.json array where
translate() looks up this label. Update the Theme: key/value in the German
translation resource to a proper German equivalent and keep the surrounding
array structure intact so German users no longer fall back to the English source
text.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e83b9183-f09f-4788-82d5-879d35bb6575

📥 Commits

Reviewing files that changed from the base of the PR and between f6efc46 and 6d3acb1.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • packages/locale/package.json
  • packages/locale/res/translations/de.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/locale/package.json

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files (changes from recent commits).

Tip: Review your code locally with the cubic CLI to iterate faster.

Fix all with cubic | Re-trigger cubic

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.do/deploy.template.yaml (1)

15-15: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Consider scoping pnpm install to the built package.

Both build commands run pnpm install --frozen-lockfile at the workspace root with no --filter, so DO App Platform will resolve/install dependencies for the entire monorepo (cordova, electron, tauri, extension, admin, etc.) just to build server or pwa. This risks slower builds and potential failures if any unrelated workspace package has native/platform-specific build requirements not supported by the buildpack — especially since native deps like sharp are called out elsewhere in this migration as needing special hoisting/build handling.

Scope installs to the target package and its dependencies, e.g.:

♻️ Proposed scoped installs
-          build_command: corepack enable && pnpm install --frozen-lockfile
+          build_command: corepack enable && pnpm install --frozen-lockfile --filter `@padloc/server`...
-          build_command: corepack enable && pnpm install --frozen-lockfile && pnpm run pwa:build
+          build_command: corepack enable && pnpm install --frozen-lockfile --filter `@padloc/pwa`... && pnpm run pwa:build

Please confirm the actual workspace package names for server/pwa before applying the filter.

Also applies to: 75-75

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.do/deploy.template.yaml at line 15, The build commands in the DO deploy
template are installing the entire monorepo instead of just the target app,
which can slow builds and trigger unrelated workspace failures. Update the
install step used for the `server` and `pwa` build paths to scope `pnpm install
--frozen-lockfile` with the appropriate `--filter` for the actual workspace
package names, and keep the change aligned with the existing build_command
entries in the deploy template.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In @.do/deploy.template.yaml:
- Line 15: The build commands in the DO deploy template are installing the
entire monorepo instead of just the target app, which can slow builds and
trigger unrelated workspace failures. Update the install step used for the
`server` and `pwa` build paths to scope `pnpm install --frozen-lockfile` with
the appropriate `--filter` for the actual workspace package names, and keep the
change aligned with the existing build_command entries in the deploy template.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 221c8072-478a-4e2e-9bd4-5e5f88fd1375

📥 Commits

Reviewing files that changed from the base of the PR and between 6d3acb1 and 862cc56.

📒 Files selected for processing (6)
  • .do/deploy.template.yaml
  • .github/workflows/build-electron.yml
  • docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md
  • docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md
  • packages/locale/res/translations/de.json
  • pnpm-workspace.yaml
💤 Files with no reviewable changes (1)
  • .github/workflows/build-electron.yml
✅ Files skipped from review due to trivial changes (2)
  • docs/superpowers/specs/2026-07-07-padloc-modernization-roadmap-design.md
  • docs/superpowers/plans/2026-07-07-padloc-modernization-phases-0-3.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • pnpm-workspace.yaml

@grigoreo-fox
grigoreo-fox merged commit d1abafa into main Jul 8, 2026
3 checks passed
@grigoreo-fox
grigoreo-fox deleted the t1-node18-web-runtime-only branch July 8, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant