From f00eb177472717dbf793090071a57e4382a7c508 Mon Sep 17 00:00:00 2001 From: OpenWaygate <27287694+OpenWaygate@users.noreply.github.com> Date: Tue, 14 Jul 2026 19:07:35 +0800 Subject: [PATCH] :memo: Update AGENTS.md files for liveBroadcast and liveChatMessage --- AGENTS.md | 9 +++++++++ cmd/AGENTS.md | 2 +- pkg/AGENTS.md | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 60b4a03..eb67cd7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -33,3 +33,12 @@ Go CLI + MCP server + Agent for YouTube. - **BUILD.bazel files are auto-generated** — do NOT create or edit them manually. Run `bazel run //:gazelle` to regenerate. - After changing dependencies: `bazel run @rules_go//go -- mod tidy -v && bazel mod tidy`. - See [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md) for the full list of useful build/test/release commands. + +## Adding a New YouTube Resource + +Every new resource package under `pkg/` and `cmd/` must also be registered in: + +1. **`main.go`** — add a blank import (`_ "github.com/eat-pray-ai/yutu/cmd/"`). +2. **`internal/tools/skillgen/main.go`** — add a blank import and a `categoryMap` entry. +3. **`internal/tools/cmdtestgen/main.go`** — add a blank import. +4. **`cmd/agent/agents.go`** — add the resource's MCP tool names to the appropriate agent definition (`Aagje` for read-only, `Knorretje` for create/update, `Daan` for delete). diff --git a/cmd/AGENTS.md b/cmd/AGENTS.md index aaba9a4..8253a73 100644 --- a/cmd/AGENTS.md +++ b/cmd/AGENTS.md @@ -19,6 +19,6 @@ CLI command definitions and MCP tool bindings. Each subdirectory is a 1:1 mapping to a YouTube API resource: -`abuseReport/`, `activity/`, `agent/`, `caption/`, `channel/`, `channelBanner/`, `channelSection/`, `comment/`, `commentThread/`, `i18nLanguage/`, `i18nRegion/`, `liveChatBan/`, `liveChatModerator/`, `liveStream/`, `member/`, `membershipsLevel/`, `playlist/`, `playlistImage/`, `playlistItem/`, `search/`, `subscription/`, `superChatEvent/`, `thirdPartyLink/`, `thumbnail/`, `video/`, `videoAbuseReportReason/`, `videoCategory/`, `watermark/` +`abuseReport/`, `activity/`, `agent/`, `caption/`, `channel/`, `channelBanner/`, `channelSection/`, `comment/`, `commentThread/`, `i18nLanguage/`, `i18nRegion/`, `liveBroadcast/`, `liveChatBan/`, `liveChatMessage/`, `liveChatModerator/`, `liveStream/`, `member/`, `membershipsLevel/`, `playlist/`, `playlistImage/`, `playlistItem/`, `search/`, `subscription/`, `superChatEvent/`, `thirdPartyLink/`, `thumbnail/`, `video/`, `videoAbuseReportReason/`, `videoCategory/`, `watermark/` All follow the same pattern — see [Wiring](#wiring) above. diff --git a/pkg/AGENTS.md b/pkg/AGENTS.md index 92f3a18..adda01e 100644 --- a/pkg/AGENTS.md +++ b/pkg/AGENTS.md @@ -27,4 +27,4 @@ Core domain logic and shared infrastructure. Each maps 1:1 to a YouTube API resource: -`abuseReport/`, `activity/`, `caption/`, `channel/`, `channelBanner/`, `channelSection/`, `comment/`, `commentThread/`, `i18nLanguage/`, `i18nRegion/`, `liveChatBan/`, `liveChatModerator/`, `liveStream/`, `member/`, `membershipsLevel/`, `playlist/`, `playlistImage/`, `playlistItem/`, `search/`, `subscription/`, `superChatEvent/`, `thirdPartyLink/`, `thumbnail/`, `video/`, `videoAbuseReportReason/`, `videoCategory/`, `watermark/` +`abuseReport/`, `activity/`, `caption/`, `channel/`, `channelBanner/`, `channelSection/`, `comment/`, `commentThread/`, `i18nLanguage/`, `i18nRegion/`, `liveBroadcast/`, `liveChatBan/`, `liveChatMessage/`, `liveChatModerator/`, `liveStream/`, `member/`, `membershipsLevel/`, `playlist/`, `playlistImage/`, `playlistItem/`, `search/`, `subscription/`, `superChatEvent/`, `thirdPartyLink/`, `thumbnail/`, `video/`, `videoAbuseReportReason/`, `videoCategory/`, `watermark/`