From 740d65b5a5d994a5a8bcc2b31f25635a943ba17d Mon Sep 17 00:00:00 2001 From: Alex Newman Date: Fri, 7 Nov 2025 15:05:31 -0500 Subject: [PATCH] Add TypeScript Agent SDK reference documentation - Introduced comprehensive API reference for the TypeScript Agent SDK. - Documented installation instructions for the SDK. - Detailed the main functions: `query()`, `tool()`, and `createSdkMcpServer()`. - Defined various types including `Options`, `Query`, `AgentDefinition`, and more. - Included message types and their structures, such as `SDKMessage`, `SDKAssistantMessage`, and `SDKUserMessage`. - Explained hook types and their usage within the SDK. - Provided detailed documentation for tool input and output types. - Added sections on permission types and other relevant types for better clarity. --- context/agent-sdk-ref.md | 1797 ++++++++++++++++++ package.json | 13 +- plugin/scripts/context-hook.js | 76 +- plugin/scripts/summary-hook.js | 2 +- plugin/scripts/worker-service.cjs | 39 +- plugin/ui/viewer-bundle.js | 10 +- plugin/ui/viewer.html | 46 +- src/hooks/context-hook.ts | 4 - src/hooks/summary-hook.ts | 6 + src/services/worker-service-LEGACY.ts | 1 + src/services/worker-service.ts | 53 +- src/services/worker/PaginationHelper.ts | 59 +- src/ui/viewer-template.html | 46 +- src/ui/viewer/components/ObservationCard.tsx | 150 +- 14 files changed, 2141 insertions(+), 161 deletions(-) create mode 100644 context/agent-sdk-ref.md diff --git a/context/agent-sdk-ref.md b/context/agent-sdk-ref.md new file mode 100644 index 00000000..28925155 --- /dev/null +++ b/context/agent-sdk-ref.md @@ -0,0 +1,1797 @@ +# Agent SDK reference - TypeScript + +> Complete API reference for the TypeScript Agent SDK, including all functions, types, and interfaces. + +