diff options
| author | Adam Malczewski <[email protected]> | 2026-06-21 15:02:49 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-21 15:02:49 +0900 |
| commit | 4ccdfd34c55bee279ce5e190412afd19cfbb5238 (patch) | |
| tree | 80dc0e1d1474bd4381c1343e97a456e03bf2dda7 /packages/tool-youtube-transcript/src/format.test.ts | |
| parent | dfb3a61afa545b67b85dbefe6b217affd14c16a7 (diff) | |
| download | dispatch-4ccdfd34c55bee279ce5e190412afd19cfbb5238.tar.gz dispatch-4ccdfd34c55bee279ce5e190412afd19cfbb5238.zip | |
refactor(tool-youtube-transcript): remove .youtube_subtitles_pending file convention
Leaner tool description and queued response — no longer instructs the model
to append URLs to a pending file. The tool just returns status, ETA, and URL.
Diffstat (limited to 'packages/tool-youtube-transcript/src/format.test.ts')
| -rw-r--r-- | packages/tool-youtube-transcript/src/format.test.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/tool-youtube-transcript/src/format.test.ts b/packages/tool-youtube-transcript/src/format.test.ts index 00b5d05..7555318 100644 --- a/packages/tool-youtube-transcript/src/format.test.ts +++ b/packages/tool-youtube-transcript/src/format.test.ts @@ -57,7 +57,7 @@ describe("formatCompleted", () => { }); describe("formatQueued", () => { - it("returns status + position + estimated time + pending file instruction", () => { + it("returns status + position + estimated time", () => { const data: QueuedResponse = { status: "queued", video_id: "vid456", @@ -70,12 +70,11 @@ describe("formatQueued", () => { const expected = `Transcript not yet available (status: queued, queue position: 3).\n` + `Estimated available at: ${expectedTime} (in ~120s).\n` + - `You must append this video URL to .youtube_subtitles_pending in the current ` + - `working directory: https://youtu.be/vid456`; + `URL: https://youtu.be/vid456`; expect(out).toBe(expected); }); - it("includes the processing status + pending-file instruction", () => { + it("includes the processing status", () => { const data: QueuedResponse = { status: "processing", video_id: "vid457", @@ -86,7 +85,6 @@ describe("formatQueued", () => { expect(out).toContain("status: processing"); expect(out).toContain("queue position: 0"); expect(out).toContain("(in ~46s)"); - expect(out).toContain(".youtube_subtitles_pending"); expect(out).toContain("https://youtu.be/vid457"); }); }); |
