Skip to content

fix: address post-merge review findings (#876, #900, #875)#963

Merged
bradygaster merged 5 commits intodevfrom
squad/942-rebase-type-safety
Apr 12, 2026
Merged

fix: address post-merge review findings (#876, #900, #875)#963
bradygaster merged 5 commits intodevfrom
squad/942-rebase-type-safety

Conversation

@bradygaster
Copy link
Copy Markdown
Owner

Rebased cherry-pick of tamirdresher's fix from PR #942 (originally based on insider, retargeted to dev).

Applies only the changes relevant to dev:

  • Replace catch(err: any) with catch(err: unknown) + narrowing (plugin.ts, init.ts)
  • Add deprecation warnings with standardized 'gh copilot' messaging (cli-entry.ts)
  • Includes changeset

Dropped insider-only changes (skill.ts YAML escaping, cross-package-exports.test.ts type safety) since those files don't exist on dev.

Closes #924, #925, #926
Supersedes #942

Original author: @tamirdresher
Original commits: 35dd824, 489c73b, 4aa6c4e

Copilot and others added 3 commits April 12, 2026 10:09
- Add YAML value escaping helper for skill metadata
- Replace catch(err: any) with catch(err: unknown) + narrowing
- Add type guards to replace unsafe type assertions
- Standardize deprecation messages on `gh copilot`
- Fix unsafe exports type cast in cross-package test

Closes #924, #925, #926

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bradygaster bradygaster added the skip-version-check Skip prerelease version guard for this PR label Apr 12, 2026
Copilot AI review requested due to automatic review settings April 12, 2026 17:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Follow-up fixes after post-merge review feedback, focused on safer error handling and standardizing deprecation messaging in the Squad CLI, with a corresponding changeset.

Changes:

  • Replace catch (err: any) with catch (err: unknown) and add basic message narrowing.
  • Add standardized deprecation warnings directing users to gh copilot for squad start and squad rc.
  • Add a changeset for the CLI release.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

File Description
packages/squad-cli/src/cli/core/init.ts Switch catch typing to unknown and narrow error message before calling fatal().
packages/squad-cli/src/cli/commands/plugin.ts Switch catch typing to unknown and narrow error message for marketplace browse failures.
packages/squad-cli/src/cli-entry.ts Print deprecation warnings for start and rc, directing users to gh copilot.
.changeset/review-findings-fix.md Adds a changeset entry for the CLI release.

Comment thread .changeset/review-findings-fix.md Outdated
'@bradygaster/squad-cli': patch
---

fix: address post-merge review findings — YAML escaping, type safety, deprecation messages
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

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

The changeset summary mentions “YAML escaping” and “type safety”, but this PR (per diff) only updates catch typing/narrowing and adds deprecation messaging. Please update the changeset text to accurately reflect the changes being released to avoid misleading changelog entries.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Updated the changeset summary in d32b744 to accurately reflect what this PR contains: catch unknown narrowing and deprecation warnings for start/rc commands. Removed the misleading "YAML escaping" reference (those were insider-only changes that were dropped from this cherry-pick).

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

…scaping reference)

Agent-Logs-Url: https://github.com/bradygaster/squad/sessions/54f41407-61bf-4977-85b7-572341c47b62

Co-authored-by: bradygaster <41929050+bradygaster@users.noreply.github.com>
@bradygaster bradygaster merged commit 419babe into dev Apr 12, 2026
1 check passed
tamirdresher pushed a commit that referenced this pull request Apr 21, 2026
* fix: address post-merge review findings (#876, #900, #875)

- Add YAML value escaping helper for skill metadata
- Replace catch(err: any) with catch(err: unknown) + narrowing
- Add type guards to replace unsafe type assertions
- Standardize deprecation messages on `gh copilot`
- Fix unsafe exports type cast in cross-package test

Closes #924, #925, #926

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: add changeset for review findings fix

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: trigger CI

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore(.squad): EECOM history — PR #942 rebase learnings

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* chore: update changeset to accurately reflect PR changes (drop YAML escaping reference)

Agent-Logs-Url: https://github.com/bradygaster/squad/sessions/54f41407-61bf-4977-85b7-572341c47b62

Co-authored-by: bradygaster <41929050+bradygaster@users.noreply.github.com>

---------

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-version-check Skip prerelease version guard for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: APM skill.ts — YAML escaping, type safety, and test coverage

4 participants