From cfa8b73fd646c6efba50b6cea548d39f174a73cb Mon Sep 17 00:00:00 2001 From: Nivesh353 Date: Fri, 12 Jun 2026 15:41:06 +0530 Subject: [PATCH] fix(gitagent-docs): import SDK from @open-gitagent/gitagent, not opengap --- src/components/gitAgent/GitAgentCookbookCodeReview.tsx | 6 +++--- src/components/gitAgent/GitAgentCookbookCustomTool.tsx | 6 +++--- .../gitAgent/GitAgentCookbookMultiAgentHandoff.tsx | 6 +++--- .../gitAgent/GitAgentCookbookRefactorRepo.tsx | 6 +++--- .../gitAgent/GitAgentCookbookScheduledCron.tsx | 6 +++--- .../gitAgent/GitAgentCookbookSummarizeEmails.tsx | 6 +++--- src/components/gitAgent/GitAgentHeroSection.tsx | 2 +- src/components/gitAgent/GitAgentInterfaces.tsx | 2 +- src/components/gitAgent/GitAgentModels.tsx | 2 +- src/components/gitAgent/GitAgentPlugins.tsx | 2 +- .../gitAgent/GitAgentQuickStartPersonalAssistant.tsx | 2 +- src/components/gitAgent/GitAgentQuickStartSDK.tsx | 6 +++--- src/components/gitAgent/GitAgentSDK.tsx | 10 +++++----- src/components/gitAgent/GitAgentUtilities.tsx | 4 ++-- 14 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/gitAgent/GitAgentCookbookCodeReview.tsx b/src/components/gitAgent/GitAgentCookbookCodeReview.tsx index 490706d..ae5a32a 100644 --- a/src/components/gitAgent/GitAgentCookbookCodeReview.tsx +++ b/src/components/gitAgent/GitAgentCookbookCodeReview.tsx @@ -54,19 +54,19 @@ git push`; const part2Setup = `mkdir pr-reviewer && cd pr-reviewer npm init -y -npm install @open-gitagent/opengap`; +npm install @open-gitagent/gitagent`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0" + "@open-gitagent/gitagent": "^2.0.0" } }`; const envVars = `export ANTHROPIC_API_KEY=your_anthropic_key export GITHUB_TOKEN=your_pat`; -const reviewTs = `import { query } from "@open-gitagent/opengap"; +const reviewTs = `import { query } from "@open-gitagent/gitagent"; import { writeFileSync } from "fs"; const prUrl = process.argv[2]; diff --git a/src/components/gitAgent/GitAgentCookbookCustomTool.tsx b/src/components/gitAgent/GitAgentCookbookCustomTool.tsx index f6484e1..474e178 100644 --- a/src/components/gitAgent/GitAgentCookbookCustomTool.tsx +++ b/src/components/gitAgent/GitAgentCookbookCustomTool.tsx @@ -47,12 +47,12 @@ git push`; const part4Setup = `mkdir custom-tool-sdk && cd custom-tool-sdk npm init -y -npm install @open-gitagent/opengap`; +npm install @open-gitagent/gitagent`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0" + "@open-gitagent/gitagent": "^2.0.0" } }`; @@ -61,7 +61,7 @@ export GITHUB_TOKEN=your_pat export GITHUB_REPO=your-username/test-issues export DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxx/yyy`; -const indexTs = `import { query, tool } from "@open-gitagent/opengap"; +const indexTs = `import { query, tool } from "@open-gitagent/gitagent"; const lookupGithubIssue = tool( "lookup_github_issue", diff --git a/src/components/gitAgent/GitAgentCookbookMultiAgentHandoff.tsx b/src/components/gitAgent/GitAgentCookbookMultiAgentHandoff.tsx index 0f656db..1ea54b4 100644 --- a/src/components/gitAgent/GitAgentCookbookMultiAgentHandoff.tsx +++ b/src/components/gitAgent/GitAgentCookbookMultiAgentHandoff.tsx @@ -138,19 +138,19 @@ const writerPush = `git add . && git commit -m "init writer agent" && git push`; const part4Setup = `mkdir multi-agent-sdk && cd multi-agent-sdk npm init -y -npm install @open-gitagent/opengap`; +npm install @open-gitagent/gitagent`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0" + "@open-gitagent/gitagent": "^2.0.0" } }`; const envVars = `export ANTHROPIC_API_KEY=your_anthropic_key export GITHUB_TOKEN=your_pat`; -const indexTs = `import { query } from "@open-gitagent/opengap"; +const indexTs = `import { query } from "@open-gitagent/gitagent"; async function main() { console.log("Agent 1 — Scanning codebase for issues...\\n"); diff --git a/src/components/gitAgent/GitAgentCookbookRefactorRepo.tsx b/src/components/gitAgent/GitAgentCookbookRefactorRepo.tsx index 4eb2723..035675e 100644 --- a/src/components/gitAgent/GitAgentCookbookRefactorRepo.tsx +++ b/src/components/gitAgent/GitAgentCookbookRefactorRepo.tsx @@ -51,16 +51,16 @@ git push`; const part2Setup = `mkdir refactor-sdk && cd refactor-sdk npm init -y -npm install @open-gitagent/opengap`; +npm install @open-gitagent/gitagent`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0" + "@open-gitagent/gitagent": "^2.0.0" } }`; -const indexTs = `import { query } from "@open-gitagent/opengap"; +const indexTs = `import { query } from "@open-gitagent/gitagent"; async function main() { const result = query({ diff --git a/src/components/gitAgent/GitAgentCookbookScheduledCron.tsx b/src/components/gitAgent/GitAgentCookbookScheduledCron.tsx index 625f225..dcb1499 100644 --- a/src/components/gitAgent/GitAgentCookbookScheduledCron.tsx +++ b/src/components/gitAgent/GitAgentCookbookScheduledCron.tsx @@ -63,13 +63,13 @@ const part2Push = `git add . && git commit -m "init standup agent" && git push`; const part4Setup = `mkdir standup-sdk && cd standup-sdk npm init -y -npm install @open-gitagent/opengap node-cron +npm install @open-gitagent/gitagent node-cron npm install -D tsx`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0", + "@open-gitagent/gitagent": "^2.0.0", "node-cron": "^4.2.1" } }`; @@ -78,7 +78,7 @@ const envVars = `export ANTHROPIC_API_KEY=your_anthropic_key export GITHUB_TOKEN=your_pat export DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...`; -const indexTs = `import { query } from "@open-gitagent/opengap"; +const indexTs = `import { query } from "@open-gitagent/gitagent"; import cron from "node-cron"; async function runStandup() { diff --git a/src/components/gitAgent/GitAgentCookbookSummarizeEmails.tsx b/src/components/gitAgent/GitAgentCookbookSummarizeEmails.tsx index 36a4140..7464612 100644 --- a/src/components/gitAgent/GitAgentCookbookSummarizeEmails.tsx +++ b/src/components/gitAgent/GitAgentCookbookSummarizeEmails.tsx @@ -72,12 +72,12 @@ const runGetToken = `node get-token.mjs`; const part3Setup = `mkdir email-summarizer && cd email-summarizer npm init -y -npm install @open-gitagent/opengap googleapis`; +npm install @open-gitagent/gitagent googleapis`; const packageJson = `{ "type": "module", "dependencies": { - "@open-gitagent/opengap": "^2.0.0", + "@open-gitagent/gitagent": "^2.0.0", "googleapis": "latest" } }`; @@ -88,7 +88,7 @@ export GMAIL_CLIENT_ID=your_client_id export GMAIL_CLIENT_SECRET=your_client_secret export GMAIL_REFRESH_TOKEN=your_refresh_token`; -const indexTs = `import { query, tool } from "@open-gitagent/opengap"; +const indexTs = `import { query, tool } from "@open-gitagent/gitagent"; import { google } from "googleapis"; const auth = new google.auth.OAuth2( diff --git a/src/components/gitAgent/GitAgentHeroSection.tsx b/src/components/gitAgent/GitAgentHeroSection.tsx index 3211a20..1b5a790 100644 --- a/src/components/gitAgent/GitAgentHeroSection.tsx +++ b/src/components/gitAgent/GitAgentHeroSection.tsx @@ -3,7 +3,7 @@ import { motion } from "framer-motion"; import { Copy, Check, BookOpen, Github, ArrowRight, Folder, FileText, Brain, Settings, Zap, Wrench, Database, GitFork, ShieldCheck } from "lucide-react"; import { track } from "@/lib/analytics"; -const INSTALL_CMD = `npm install -g @open-gitagent/opengap`; +const INSTALL_CMD = `npm install -g @open-gitagent/gitagent`; type TreeItem = { name: string; indent: number; icon: React.ReactNode; tag?: string }; diff --git a/src/components/gitAgent/GitAgentInterfaces.tsx b/src/components/gitAgent/GitAgentInterfaces.tsx index 5eb2497..bec8b2d 100644 --- a/src/components/gitAgent/GitAgentInterfaces.tsx +++ b/src/components/gitAgent/GitAgentInterfaces.tsx @@ -2,7 +2,7 @@ import { motion } from "framer-motion"; import { Terminal, Globe, MessageSquare, Code2 } from "lucide-react"; import { CodeBlock } from "@/components/gitAgent/CodeBlock"; -const sdkCode = `import { query } from "@open-gitagent/opengap";\n\nfor await (const msg of query({\n prompt: "Summarise yesterday's tasks",\n dir: "./my-agent",\n})) {\n if (msg.type === "assistant") console.log(msg.content);\n}`; +const sdkCode = `import { query } from "@open-gitagent/gitagent";\n\nfor await (const msg of query({\n prompt: "Summarise yesterday's tasks",\n dir: "./my-agent",\n})) {\n if (msg.type === "assistant") console.log(msg.content);\n}`; const paItems = [ { diff --git a/src/components/gitAgent/GitAgentModels.tsx b/src/components/gitAgent/GitAgentModels.tsx index 2dac3cc..56ca1a6 100644 --- a/src/components/gitAgent/GitAgentModels.tsx +++ b/src/components/gitAgent/GitAgentModels.tsx @@ -56,7 +56,7 @@ const compatibleEndpoints = [ { name: "Any OpenAI-compatible proxy", port: "" }, ]; -const lyzrSdkCode = `import { query } from "@open-gitagent/opengap"; +const lyzrSdkCode = `import { query } from "@open-gitagent/gitagent"; const result = query({ prompt: "Hello! What can you help me with?", diff --git a/src/components/gitAgent/GitAgentPlugins.tsx b/src/components/gitAgent/GitAgentPlugins.tsx index cc7d786..64ead22 100644 --- a/src/components/gitAgent/GitAgentPlugins.tsx +++ b/src/components/gitAgent/GitAgentPlugins.tsx @@ -50,7 +50,7 @@ const agentYamlConfig = `plugins: api_key: "your-api-key" timeout: 30`; -const sdkCode = `import type { GitagentPluginApi } from "@open-gitagent/opengap"; +const sdkCode = `import type { GitagentPluginApi } from "@open-gitagent/gitagent"; export function register(api: GitagentPluginApi) { api.registerTool(myTool); diff --git a/src/components/gitAgent/GitAgentQuickStartPersonalAssistant.tsx b/src/components/gitAgent/GitAgentQuickStartPersonalAssistant.tsx index 62f07a1..c3b1477 100644 --- a/src/components/gitAgent/GitAgentQuickStartPersonalAssistant.tsx +++ b/src/components/gitAgent/GitAgentQuickStartPersonalAssistant.tsx @@ -10,7 +10,7 @@ const installMethods = [ }, { title: "Manual install", - code: `npm install -g @open-gitagent/opengap + code: `npm install -g @open-gitagent/gitagent mkdir ~/assistant && cd ~/assistant && git init gitagent --voice --dir .`, desc: "", diff --git a/src/components/gitAgent/GitAgentQuickStartSDK.tsx b/src/components/gitAgent/GitAgentQuickStartSDK.tsx index e88f8f7..569b70d 100644 --- a/src/components/gitAgent/GitAgentQuickStartSDK.tsx +++ b/src/components/gitAgent/GitAgentQuickStartSDK.tsx @@ -1,9 +1,9 @@ import { motion } from "framer-motion"; import { CodeBlock } from "@/components/gitAgent/CodeBlock"; -const installCode = `npm install @open-gitagent/opengap`; +const installCode = `npm install @open-gitagent/gitagent`; -const pathWithRepo = `import { query } from "@open-gitagent/opengap"; +const pathWithRepo = `import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ prompt: "Summarise the open pull requests", @@ -12,7 +12,7 @@ for await (const msg of query({ if (msg.type === "assistant") console.log(msg.content); }`; -const pathWithoutRepo = `import { query } from "@open-gitagent/opengap"; +const pathWithoutRepo = `import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ prompt: "Refactor the auth module in src/auth.ts", diff --git a/src/components/gitAgent/GitAgentSDK.tsx b/src/components/gitAgent/GitAgentSDK.tsx index 076b34c..e2fe01c 100644 --- a/src/components/gitAgent/GitAgentSDK.tsx +++ b/src/components/gitAgent/GitAgentSDK.tsx @@ -8,7 +8,7 @@ const tabs = ["query()", "tool()", "buildTool()", "hooks"] as const; type Tab = (typeof tabs)[number]; const codeMap: Record = { - "query()": `import { query } from "@open-gitagent/opengap"; + "query()": `import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ prompt: "Refactor the auth module", @@ -28,7 +28,7 @@ for await (const msg of query({ console.log(\`[\${msg.subtype}] \${msg.content}\`); break; } }`, - "tool()": `import { query, tool } from "@open-gitagent/opengap"; + "tool()": `import { query, tool } from "@open-gitagent/gitagent"; const search = tool( "search_docs", @@ -49,7 +49,7 @@ const search = tool( for await (const msg of query({ prompt: "Find auth docs", tools: [search] })) { // agent can now call search_docs }`, - "buildTool()": `import { buildTool } from "@open-gitagent/opengap"; + "buildTool()": `import { buildTool } from "@open-gitagent/gitagent"; const myTool = buildTool({ name: "search_docs", @@ -98,7 +98,7 @@ const myTool = buildTool({ });`, }; -const pathWithRepo = `import { query } from "@open-gitagent/opengap"; +const pathWithRepo = `import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ repo: "https://github.com/open-gitagent/opengap", @@ -107,7 +107,7 @@ for await (const msg of query({ if (msg.type === "assistant") console.log(msg.content); }`; -const pathWithoutRepo = `import { query } from "@open-gitagent/opengap"; +const pathWithoutRepo = `import { query } from "@open-gitagent/gitagent"; for await (const msg of query({ prompt: "Refactor the auth module in src/auth.ts", diff --git a/src/components/gitAgent/GitAgentUtilities.tsx b/src/components/gitAgent/GitAgentUtilities.tsx index 10df021..9bdeec3 100644 --- a/src/components/gitAgent/GitAgentUtilities.tsx +++ b/src/components/gitAgent/GitAgentUtilities.tsx @@ -8,7 +8,7 @@ const compactionCode = `import { needsCompaction, truncateToolResults, buildCompactPrompt -} from "@open-gitagent/opengap"; +} from "@open-gitagent/gitagent"; // Estimate tokens in a string const tokens = estimateTokens("Hello world"); // ~3 @@ -24,7 +24,7 @@ const trimmed = truncateToolResults(messages, 10000); // Build a summarization prompt for the LLM const prompt = buildCompactPrompt(messages);`; -const costTrackingCode = `import { query } from "@open-gitagent/opengap"; +const costTrackingCode = `import { query } from "@open-gitagent/gitagent"; const result = query({ prompt: "...", dir: "..." });