github / github/copilot-cli

Add git-subdir source type support to plugin marketplace schema

未關閉
#3,376 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
area:plugins
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

/plugin marketplace add anthropics/claude-plugins-official fails with ~40 plugins.N.source: Invalid input errors because Copilot CLI's marketplace schema doesn't accept the git-subdir source type used widely in the Claude Code plugin ecosystem.

### Proposed solution

_No response_

### Example prompts or workflows

Example of a rejected entry (valid in Claude Code, rejected by Copilot CLI):

{
"name": "stripe",
"source": {
"source": "git-subdir",
"url": "https://github.com/stripe/ai.git",
"path": "providers/claude/plugin",
"ref": "main",
"sha": "ec93d4c4b9ffdbc994ac45ce692d4ec1cdb755f0"
}
}

Currently only string paths and {"source": "url", "url": "...", "sha": "..."} (whole-repo) are accepted. Without git-subdir support, ~40 of ~170 plugins in Anthropic's
official marketplace — including AWS, Stripe, Zapier, Shopify, Microsoft Dataverse, SAP, Auth0, Airtable, Expo, Railway, Neon, Snowflake, ServiceNow, and others — cannot be
installed via Copilot CLI. Please add git-subdir to the accepted source schema for plugin marketplace entries so the Claude Code ecosystem works out of the box.

Repro: /plugin marketplace add anthropics/claude-plugins-official

### Additional context

_No response_

貢獻指南

開啟貢獻指南

研究方向

從 `/plugin marketplace add anthropics/claude-plugins-official` 入口開始,找出 marketplace 來源驗證或 schema。重現 `git-subdir` 被拒絕的情況,然後確認包含 `source`、`url`、`path`、`ref` 和 `sha` 的項目會被接受,且 marketplace 能夠成功安裝。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
shell
領域
cli, tooling
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
58/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。