@@ -443,6 +443,110 @@ async function main() {
443443 new Spinner(),
444444 );
445445
446+ // ── Web search ──────────────────────────────────────────
447+ separator("15. Web search results");
448+ await renderTurn(
449+ eventsFrom([
450+ {
451+ type: "tool-call-start",
452+ toolName: "webSearch",
453+ toolCallId: "ws1",
454+ args: { query: "bun test runner docs" },
455+ },
456+ {
457+ type: "tool-result",
458+ toolName: "webSearch",
459+ toolCallId: "ws1",
460+ isError: false,
461+ result: {
462+ results: [
463+ {
464+ title: "Bun Test Runner Documentation",
465+ url: "https://bun.sh/docs/cli/test",
466+ score: 0.95,
467+ },
468+ {
469+ title: "Testing with Bun - Getting Started",
470+ url: "https://bun.sh/guides/test/getting-started",
471+ score: 0.87,
472+ },
473+ ],
474+ },
475+ },
476+ {
477+ type: "text-delta",
478+ delta: "Found the relevant documentation.",
479+ },
480+ done(),
481+ ]),
482+ new Spinner(),
483+ );
484+
485+ // ── Web content ─────────────────────────────────────────
486+ separator("16. Web content fetch");
487+ await renderTurn(
488+ eventsFrom([
489+ {
490+ type: "tool-call-start",
491+ toolName: "webContent",
492+ toolCallId: "wc1",
493+ args: { urls: ["https://bun.sh/docs/cli/test"] },
494+ },
495+ {
496+ type: "tool-result",
497+ toolName: "webContent",
498+ toolCallId: "wc1",
499+ isError: false,
500+ result: {
501+ results: [
502+ {
503+ title: "Bun Test Runner Documentation",
504+ url: "https://bun.sh/docs/cli/test",
505+ text: "Bun ships with a fast built-in test runner. Tests are written in TypeScript or JavaScript using a familiar Jest-like API.",
506+ },
507+ ],
508+ },
509+ },
510+ {
511+ type: "text-delta",
512+ delta: "The docs confirm Bun uses a Jest-like API.",
513+ },
514+ done(),
515+ ]),
516+ new Spinner(),
517+ );
518+
519+ // ── List skills ─────────────────────────────────────────
520+ separator("17. List skills");
521+ await renderTurn(
522+ eventsFrom([
523+ {
524+ type: "tool-call-start",
525+ toolName: "listSkills",
526+ toolCallId: "ls1",
527+ args: {},
528+ },
529+ {
530+ type: "tool-result",
531+ toolName: "listSkills",
532+ toolCallId: "ls1",
533+ isError: false,
534+ result: {
535+ skills: [
536+ { name: "mini-coder", description: "How to use the mc CLI coding agent", source: "local" },
537+ { name: "deploy", description: "Deployment guidelines", source: "global" },
538+ ],
539+ },
540+ },
541+ {
542+ type: "text-delta",
543+ delta: "Found 2 available skills.",
544+ },
545+ done(),
546+ ]),
547+ new Spinner(),
548+ );
549+
446550 writeln("");
447551 }
448552