docs: AgentEditor.update creates missing agents, but the plugin docs don't say so

オープン 初心者向け
#62,210 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@starke0o がすでに取り組んでいます。

2026年11月6日 から。

  • #62420 @starke0o による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
76/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
documentation

調査の方向性

/v2/docs/build/plugins/server の Agent セクションから始め、AgentEditor.update の説明を確認し、packages/core/src/agent.ts の動作と比較してください。update は agent が存在しない場合に作成することを文書化し、登録例を追加してください。ドキュメントでこの upsert の動作を説明し、plugin が新しい agent を登録する方法を示せば完了です。

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

説明

The Agent section of /v2/docs/build/plugins/server lists AgentEditor with list/get/default/update/remove and describes update as editing an existing agent. In packages/core/src/agent.ts, update creates the agent when it doesn't exist (Info.default(id)), which is how plugins register new agents (#45841). Two duplicate requests for add() (#45841, #50404) came from this gap. Suggest documenting that update is an upsert and adding a "register a new agent" example.

主要言語
TypeScript
スター
224k
フォーク
30k
平均マージ
5時間 25分
マージ済み PR(30日)
494

環境構築

はじめの一歩

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

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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