Conversation
|
@claude deep review please. make your report very succinct |
|
Claude finished @kantord's task in 1m 17s —— View job Deep Review
Summary: Good refactor — Bugs1. const DESKTOP_FILE = path.join(process.cwd(), 'flatpak', ...)This is called from const DESKTOP_FILE = path.join(import.meta.dirname, '..', 'flatpak', ...)Security / Correctness2. Unquoted paths in shell commands — Paths are interpolated directly into shell strings without quoting. run(`dpkg-deb -x ${debFile} ${EXTRACT_DIR}`) // line 51
run(`sed -i "s|^Exec=.*|Exec=${packagedBin} %U|" ${desktopFile}`) // line 82
run(`sudo cp ${desktopFile} ${SYSTEM_APPLICATIONS_DIR}/`) // line 87The Minor3.
4. Re-export in
|
There was a problem hiding this comment.
Pull request overview
This PR centralizes app identity constants (starting with the deep link protocol) into a new common/app-info.ts so packaging config and helper scripts can stay in sync and be overridden by an enterprise overlay.
Changes:
- Added
common/app-info.tsand refactored deep-link protocol usage to import from it. - Updated Electron Forge packaging config (protocol registration + rpm/deb mime types) and added a Linux
.desktopgenerator to keep Flatpak metadata synchronized. - Replaced the Linux deep-link handler install bash script with a TypeScript (
tsx) script and updated TS config includes accordingly.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| utils/generate-desktop.ts | Generates the Flatpak .desktop file using DEEP_LINK_PROTOCOL. |
| tsconfig.node.json | Expands Node TS project includes to cover scripts/ and common/. |
| scripts/install-deep-link-handler.ts | TS replacement for the deep-link handler installer (builds deb, extracts desktop file, installs it). |
| scripts/install-deep-link-handler.sh | Removed legacy bash implementation. |
| package.json | Switches the deeplink registration script to the new TS implementation. |
| forge.config.ts | Uses centralized DEEP_LINK_PROTOCOL and triggers desktop generation on Linux builds. |
| common/deep-links.ts | Re-exports DEEP_LINK_PROTOCOL from the new app-info module. |
| common/app-info.ts | New single source of truth for app identity constants (overlay-friendly). |
62da8b2 to
efd08c9
Compare
c69d824 to
d3ab074
Compare
|
@claude please do another round of review. i made some changes, addressing everythin you pointed out that was actually actionable/worth addressing + made some additional changes |
|
Claude finished @kantord's task in 2m 40s —— View job Review (Round 2)
Good fixes since round 1: Bug (Critical):
|
a219930 to
67b569f
Compare
67b569f to
a37bc86
Compare
| /** | ||
| * App identity constants — single source of truth for build-configurable | ||
| * values shared across forge config, deep links, and scripts. | ||
| */ | ||
|
|
||
| export const DEEP_LINK_PROTOCOL = 'toolhive-gui' | ||
| export const FLATPAK_APP_ID = 'com.stacklok.ToolHive' |
There was a problem hiding this comment.
IDK, I feel this should live in common in any case, so we don’t have specific aliases.
No description provided.