Skip to content

fix(security): update vulnerable website dependencies - #3

Draft
0xjohnnydev wants to merge 1 commit into
trycua:mainfrom
0xjohnnydev:agent/security-website-dependencies
Draft

0xjohnnydev wants to merge 1 commit into
trycua:mainfrom
0xjohnnydev:agent/security-website-dependencies

Conversation

@0xjohnnydev

Copy link
Copy Markdown

Problem

OSV code scanning reports 23 alerts in the Docusaurus package lock, including high-severity Undici and WebSocket issues plus parser and development-server findings.

What changed

  • Added narrow npm overrides for each vulnerable transitive dependency with a published fix.
  • Regenerated the package lock without upgrading Docusaurus or React.
  • Also patched websocket-driver, which npm audit identified while validating the new graph.

Definition of Done

  • Packages with published fixes resolve to patched versions.
  • npm audit reports zero vulnerabilities.
  • The full two-locale Docusaurus production build succeeds.
  • OSV re-scans the lockfile after this draft is reviewed and merged.
  • Track GHSA-x4vx-rjvf-j5p4 separately if OSV continues to report it; no patched DOMPurify release is currently listed.

Validation note

The existing TypeScript command still fails on its pre-existing TypeScript 6 baseUrl deprecation. The production build completes; existing broken-link warnings are unchanged.

f-trycua pushed a commit that referenced this pull request Jul 20, 2026
Blocking #1 — gateway-connecting-overlay.tsx reduced-motion regression:
the top `if (reduce) setPhase('gone')` fired unconditionally on mount
whenever reduce-motion was on, so every OS reduced-motion user lost the
CONNECTING overlay during cold boot entirely (jumped to 'gone' before the
gateway was even open). The intent was to skip the exit *choreography*,
not to skip showing the overlay. Removed the unconditional top block and
the redundant nested preview block; kept only the third branch
(`gatewayState === 'open' && shownRef.current` → `reduce ? 'gone' :
'text-out'`) which correctly gates the short-circuit on connect. Also
fixed `if(reduce)` missing-space, 6-space misindent, and the same 3-line
comment pasted three times.

Nit #1 — tsconfig excludes e2e, so specs were never typechecked in CI.
Added tsconfig.e2e.json (extends base, includes e2e/ + playwright.config.ts,
adds @playwright/test types) and wired it into the typecheck script. This
surfaced three latent type errors that are fixed in the same commit:
  - fix-electron-tracing.ts: `app._context` and `electron._playwright` are
    private APIs — added `as any` on the access before the existing cast.
  - playwright.config.ts: `reducedMotion: 'reduce'` directly under `use:`
    is not a valid UseOptions property in playwright 1.58; it's a
    BrowserContextOption accessed via `contextOptions: { reducedMotion:
    'reduce' }`. The old form was silently ignored at runtime, so
    reduced-motion emulation wasn't actually active — screenshots could
    catch overlays mid-fade (exactly what the comment warned about).

Nit #2 — fix-electron-tracing.ts reaches into Playwright internals
(_playwright, _allContexts, _context) with no public contract. Added a
header comment calling out the `@playwright/test` exact pin (=1.58.2) so a
future bump knows to re-verify the private symbols still exist.

Nit #3 — main.ts TEST_WORKER_INDEX block had stray 6-space indentation.

Verified: tsc -p . && tsconfig.electron && tsconfig.e2e → 0 errors;
vitest boot-failure-overlay (3/3) + boot-failure-reauth (21/21) pass;
npm run build clean; playwright e2e/boot-failure.spec.ts 2/2 pass.
f-trycua pushed a commit that referenced this pull request Jul 25, 2026
…d curator

The skill-authoring guide and curator prompt both reference
descriptions as the primary discovery mechanism but never mentioned
the 57-char system prompt truncation. Add explicit guidance:

- Authoring guide: frontmatter docs, template comment, size limits,
  pitfall #3 with good/bad examples, verification checklist
- Curator prompt: parenthetical noting the 57-char window when
  writing umbrella skill descriptions
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