opencode-adk-docs
Advanced tools
+1
-1
| { | ||
| "name": "opencode-adk-docs", | ||
| "version": "0.1.0", | ||
| "version": "0.1.1", | ||
| "description": "OpenCode plugin for Google Agent Development Kit (ADK) Python SDK documentation and cache management", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
+1
-1
@@ -5,3 +5,3 @@ import { homedir } from "node:os"; | ||
| /** Root directory for cached ADK repositories. */ | ||
| export const CACHE_ROOT = join(homedir(), ".cache", "opencode", "adk-docs"); | ||
| export const CACHE_ROOT = join(homedir(), ".cache", "opencode", "plugins", "adk-docs"); | ||
@@ -8,0 +8,0 @@ /** ADK GitHub repositories to cache. */ |
+18
-3
@@ -152,7 +152,18 @@ import { existsSync, readFileSync } from "node:fs"; | ||
| repo: tool.schema | ||
| .enum(["adk-docs", "adk-python", "adk-samples"]) | ||
| .union([ | ||
| tool.schema.literal("adk-docs"), | ||
| tool.schema.literal("adk-python"), | ||
| tool.schema.literal("adk-samples"), | ||
| ]) | ||
| .optional() | ||
| .describe("Restrict search to a specific repository"), | ||
| kind: tool.schema | ||
| .enum(["class", "function", "method", "doc-section", "sample", "code-example"]) | ||
| .union([ | ||
| tool.schema.literal("class"), | ||
| tool.schema.literal("function"), | ||
| tool.schema.literal("method"), | ||
| tool.schema.literal("doc-section"), | ||
| tool.schema.literal("sample"), | ||
| tool.schema.literal("code-example"), | ||
| ]) | ||
| .optional() | ||
@@ -185,3 +196,7 @@ .describe("Filter results by entry kind"), | ||
| repo: tool.schema | ||
| .enum(["adk-docs", "adk-python", "adk-samples"]) | ||
| .union([ | ||
| tool.schema.literal("adk-docs"), | ||
| tool.schema.literal("adk-python"), | ||
| tool.schema.literal("adk-samples"), | ||
| ]) | ||
| .describe("Which repository to read from"), | ||
@@ -188,0 +203,0 @@ path: tool.schema.string().describe("Relative file path within the repository"), |
Sorry, the diff of this file is too big to display
530591
0.16%14913
0.2%