hermes-agent/apps/desktop/src/lib
Brooklyn Nicholson 2ce691d8ca fix(desktop): address CodeQL alerts on PR #20059
- settings/helpers.ts: harden setNested against prototype pollution.
  POLLUTING_PATH_PARTS check is now applied at every assignment site
  (loop + leaf) and uses Object.defineProperty so CodeQL can see the
  guard inline rather than via a helper function call.

- lib/markdown-preprocess.ts: rebuild the dangling-fence close regex
  from a fence-char + length instead of marker.replace(...). The marker
  is captured by `(`{3,}|~{3,})` so it can only be backticks or tildes,
  but CodeQL was tracing tainted input text into the RegExp source and
  flagging hostname dots from input as part of the pattern (false
  positive js/incomplete-hostname-regexp on the test fixture URLs).
  Reconstructing from a literal char breaks the dataflow.

- scripts/notarize-artifact.cjs: drop args from the run() rejection
  message. Args carry --key-id / --issuer / key file path; the existing
  outer catch already squashes errors to a generic line, but CodeQL was
  flagging the args.join(' ') as clear-text logging of APPLE_API_KEY_ID.

Composer DOM-text-as-HTML alerts (composer/index.tsx:379, :547) are
already addressed in 4dd9732a9 — innerHTML assignment was replaced with
renderComposerContents which builds DOM via replaceChildren / append
text nodes (no HTML interpretation).
2026-05-11 16:52:32 -04:00
..
chat-messages.test.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
chat-messages.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
chat-runtime.test.ts feat: lots of speech stuff 2026-05-01 19:28:02 -05:00
chat-runtime.ts feat: file preview and folder tree etc 2026-05-04 21:47:15 -05:00
clipboard.ts feat(desktop): polish chat voice and loading states 2026-05-01 16:44:30 -05:00
commit-changelog.test.ts feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
commit-changelog.ts feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
desktop-slash-commands.test.ts feat: better icons and overlay panes 2026-05-04 14:20:18 -05:00
desktop-slash-commands.ts feat: better icons and overlay panes 2026-05-04 14:20:18 -05:00
embedded-images.test.ts chore: uptick 2026-05-02 03:19:39 -05:00
embedded-images.ts feat: better icons and overlay panes 2026-05-04 14:20:18 -05:00
external-link.test.tsx feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
external-link.tsx feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
gateway-events.ts feat: file tabs 2026-05-05 13:17:40 -05:00
haptics.ts feat(desktop): polish chat voice and loading states 2026-05-01 16:44:30 -05:00
icons.ts feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
local-preview.ts feat: better composer etc 2026-05-04 22:19:16 -05:00
markdown-code.test.ts chore: uptick 2026-05-02 03:19:39 -05:00
markdown-code.ts feat(desktop): theme polish, prose chat typography, composer chrome 2026-05-11 10:25:23 -04:00
markdown-preprocess.ts fix(desktop): address CodeQL alerts on PR #20059 2026-05-11 16:52:32 -04:00
media.ts chore: uptick 2026-05-02 03:19:39 -05:00
preview-targets.test.ts feat: better composer etc 2026-05-04 22:19:16 -05:00
preview-targets.ts feat: better composer etc 2026-05-04 22:19:16 -05:00
session-export.ts feat: better icons and overlay panes 2026-05-04 14:20:18 -05:00
speech-text.ts feat: add install readme et al 2026-05-01 22:20:05 -05:00
statusbar.ts feat: better tool parsing ui 2026-05-04 16:08:44 -05:00
storage.ts feat: theme changes, composer tweaks, in app update ux, finesse 2026-05-11 15:28:45 -04:00
todos.test.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
todos.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
tool-result-summary.test.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
tool-result-summary.ts feat(desktop): hoisted todo widget, JSON tool summaries, history grouping & timer fixes 2026-05-11 16:34:25 -04:00
utils.ts feat(desktop): add structured desktop chat app 2026-05-01 12:49:12 -05:00
voice-playback.ts chore: uptick 2026-05-01 20:29:54 -05:00