Make @github/copilot-sdk an optional peer dependency of squad-sdk (#2438)

オープン
#2,472 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
46/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, node.js, typescript

調査の方向性

Start with packages/squad-sdk/package.json and compare how the Claude Agent SDK is declared and loaded. Then trace the four imports under packages/squad-sdk/src and review how @bradygaster/squad-cli supplies Copilot dependencies. Decide how CLI users receive the optional dependency, then run the listed Claude-only and Copilot tests; done means the Claude paths work without the package and Copilot paths still pass with it installed.

索引モデルが issue の本文から書いたものです。

説明

Part of #2438 (epic Phase 1), split out from #2441, which scoped it out as a separate change. Listed in checklist #2469.

Problem

packages/squad-sdk/package.json has @github/copilot-sdk as a hard dependency (>=1.0.19 <1.0.29-0), so a Claude-only install still pulls it in. The Claude Agent SDK is already an optional peer dependency, loaded lazily.

What needs to be done

  • Move @github/copilot-sdk to peerDependencies, marked optional in peerDependenciesMeta, the same way @anthropic-ai/claude-agent-sdk is.
  • Load it lazily wherever the SDK imports it (4 files under packages/squad-sdk/src today), with a clear error message when a Copilot-only feature runs without it.
  • Keep @bradygaster/squad-cli working for Copilot users unchanged: the CLI either keeps a hard dependency on it, or installs it on first Copilot use. Decide which.
  • Tests: a Claude-only install (no @github/copilot-sdk) runs squad init --client claude, state-mcp and the claude-agent-sdk harness. The Copilot paths still pass with it installed.

🤖 Generated with Claude Code

主要言語
TypeScript
スター
3.4k
フォーク
516
平均マージ
1日 15時間
マージ済み PR(30日)
116

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/squad のほかの issue

github/squad の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。