@tencent-ai/agent-sdk 0.3.31 → 0.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/CHANGELOG.md +30 -0
- package/cli/bin/codebuddy +3 -0
- package/cli/dist/codebuddy.js +7 -7
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +12 -2
- package/cli/product.internal.json +12 -2
- package/cli/product.ioa.json +15 -2
- package/cli/product.json +24 -5
- package/cli/product.selfhosted.json +12 -2
- package/lib/acp/agent.d.ts +1 -0
- package/lib/acp/agent.d.ts.map +1 -1
- package/lib/acp/agent.js +14 -3
- package/lib/acp/agent.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/session.d.ts +21 -5
- package/lib/session.d.ts.map +1 -1
- package/lib/session.js +71 -42
- package/lib/session.js.map +1 -1
- package/lib/transport/index.d.ts +12 -0
- package/lib/transport/index.d.ts.map +1 -1
- package/lib/transport/index.js.map +1 -1
- package/lib/transport/process-transport.d.ts +14 -1
- package/lib/transport/process-transport.d.ts.map +1 -1
- package/lib/transport/process-transport.js +48 -32
- package/lib/transport/process-transport.js.map +1 -1
- package/lib/types.d.ts +56 -1
- package/lib/types.d.ts.map +1 -1
- package/package.json +1 -1
package/cli/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tencent-ai/codebuddy-code",
|
|
3
|
-
"version": "2.42.
|
|
3
|
+
"version": "2.42.3",
|
|
4
4
|
"description": "Use CodeBuddy, Tencent's AI assistant, right from your terminal. CodeBuddy can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.",
|
|
5
5
|
"main": "lib/node/index.js",
|
|
6
6
|
"typings": "lib/node/index.d.ts",
|
|
@@ -108,6 +108,16 @@
|
|
|
108
108
|
],
|
|
109
109
|
"tools": []
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"name": "summaryGenerator",
|
|
113
|
+
"instructions": "summary-generator-instructions",
|
|
114
|
+
"description": "Generate session summaries from conversation content.",
|
|
115
|
+
"tags": [
|
|
116
|
+
"cli",
|
|
117
|
+
"summary-generator"
|
|
118
|
+
],
|
|
119
|
+
"tools": []
|
|
120
|
+
},
|
|
111
121
|
{
|
|
112
122
|
"name": "agentInstructions",
|
|
113
123
|
"instructions": "agent-instructions",
|
|
@@ -332,6 +342,6 @@
|
|
|
332
342
|
"CustomModelsJSON": true,
|
|
333
343
|
"ImageGen": true
|
|
334
344
|
},
|
|
335
|
-
"commit": "
|
|
336
|
-
"date": "2026-01-
|
|
345
|
+
"commit": "4261ad4fa958757640802ed6d690cd8925f69076",
|
|
346
|
+
"date": "2026-01-31T14:45:43.950Z"
|
|
337
347
|
}
|
|
@@ -111,6 +111,16 @@
|
|
|
111
111
|
],
|
|
112
112
|
"tools": []
|
|
113
113
|
},
|
|
114
|
+
{
|
|
115
|
+
"name": "summaryGenerator",
|
|
116
|
+
"instructions": "summary-generator-instructions",
|
|
117
|
+
"description": "Generate session summaries from conversation content.",
|
|
118
|
+
"tags": [
|
|
119
|
+
"cli",
|
|
120
|
+
"summary-generator"
|
|
121
|
+
],
|
|
122
|
+
"tools": []
|
|
123
|
+
},
|
|
114
124
|
{
|
|
115
125
|
"name": "agentInstructions",
|
|
116
126
|
"instructions": "agent-instructions",
|
|
@@ -353,6 +363,6 @@
|
|
|
353
363
|
"CustomModelsJSON": true,
|
|
354
364
|
"ImageGen": true
|
|
355
365
|
},
|
|
356
|
-
"commit": "
|
|
357
|
-
"date": "2026-01-
|
|
366
|
+
"commit": "4261ad4fa958757640802ed6d690cd8925f69076",
|
|
367
|
+
"date": "2026-01-31T14:45:41.392Z"
|
|
358
368
|
}
|
package/cli/product.ioa.json
CHANGED
|
@@ -134,6 +134,19 @@
|
|
|
134
134
|
],
|
|
135
135
|
"tools": []
|
|
136
136
|
},
|
|
137
|
+
{
|
|
138
|
+
"name": "summaryGenerator",
|
|
139
|
+
"instructions": "summary-generator-instructions",
|
|
140
|
+
"description": "Generate session summaries from conversation content.",
|
|
141
|
+
"models": [
|
|
142
|
+
"lite"
|
|
143
|
+
],
|
|
144
|
+
"tags": [
|
|
145
|
+
"cli",
|
|
146
|
+
"summary-generator"
|
|
147
|
+
],
|
|
148
|
+
"tools": []
|
|
149
|
+
},
|
|
137
150
|
{
|
|
138
151
|
"name": "agentInstructions",
|
|
139
152
|
"instructions": "agent-instructions",
|
|
@@ -518,6 +531,6 @@
|
|
|
518
531
|
"CustomModelsJSON": true,
|
|
519
532
|
"ImageGen": true
|
|
520
533
|
},
|
|
521
|
-
"commit": "
|
|
522
|
-
"date": "2026-01-
|
|
534
|
+
"commit": "4261ad4fa958757640802ed6d690cd8925f69076",
|
|
535
|
+
"date": "2026-01-31T14:45:42.673Z"
|
|
523
536
|
}
|
package/cli/product.json
CHANGED
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"prefixPath": "/plugin",
|
|
30
30
|
"internalDomain": [
|
|
31
31
|
"copilot.tencent.com",
|
|
32
|
-
"staging-copilot.tencent.com"
|
|
32
|
+
"staging-copilot.tencent.com",
|
|
33
|
+
"www.codebuddy.cn"
|
|
33
34
|
],
|
|
34
35
|
"externalDomain": [
|
|
35
36
|
"www.codebuddy.ai",
|
|
@@ -37,7 +38,8 @@
|
|
|
37
38
|
],
|
|
38
39
|
"iOADomain": [
|
|
39
40
|
"tencent.sso.copilot.tencent.com",
|
|
40
|
-
"tencent.sso.copilot-staging.tencent.com"
|
|
41
|
+
"tencent.sso.copilot-staging.tencent.com",
|
|
42
|
+
"tencent.sso.codebuddy.cn"
|
|
41
43
|
],
|
|
42
44
|
"cloudHostedDomain": [
|
|
43
45
|
"*.sso.copilot.tencent.com",
|
|
@@ -314,7 +316,7 @@
|
|
|
314
316
|
"prompts": [
|
|
315
317
|
{
|
|
316
318
|
"name": "cli-agent-prompt",
|
|
317
|
-
"template": "You are CodeBuddy Code.\n\n{%- if cliDescription -%}\n{{cliDescription}}\n{%- else -%}\nYou are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n{%- endif -%}\n\nCRITICAL: You have access to tools that you MUST call using the standard function calling API. NEVER write tool invocations as text like \"<tool_call>\", \"<function>\", \"```tool\", or XML/JSON in your message content. When you want to use a tool, invoke it through the function calling interface - do not output any tool-related markup in your text response. Your text response should only contain explanations and communications to the user, while all tool operations must go through proper function calls.\n\nIMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\nIf the user asks for help or wants to give feedback inform them of the following:\n- /help: Get help with using CodeBuddy Code\n- To give feedback, users should report the issue at https://cnb.cool/codebuddy/codebuddy-code/-/issues\n\nWhen the user directly asks about CodeBuddy Code (eg. \"can CodeBuddy Code do...\", \"does CodeBuddy Code have...\"), or asks in second person (eg. \"are you able...\", \"can you do...\"), or asks how to use a specific CodeBuddy Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from CodeBuddy Code docs. The list of available docs is available at https://cnb.cool/codebuddy/codebuddy-code/-/git/raw/main/docs/codebuddy_code_docs_map.md.\n\n# Tone and style\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- Your output will be displayed on a command line interface. Your responses should be short and concise. You can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\n- Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.\n- NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. This includes markdown files.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if CodeBuddy honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs. Avoid using over-the-top validation or excessive praise when responding to users such as \"You're absolutely right\" or similar phrases.\n\n# Task Management\nYou have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the TodoWrite tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using Bash.\n\nLooks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\n\n\n# Asking questions as you work\n\nYou have access to the AskUserQuestion tool to ask the user questions when you need clarification, want to validate assumptions, or need to make a decision you're unsure about.\n\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n{%- if keepCodingInstructions -%}\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the TodoWrite tool to plan the task if required\n- Use the AskUserQuestion tool to ask questions, clarify and gather information as needed.\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n{%- endif -%}\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n\n\n# Tool usage policy\n- When doing file search, prefer to use the Task tool in order to reduce context usage.\n- You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.\n\n- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL provided in the response.\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \"in parallel\", you MUST send a single message with multiple tool use content blocks. For example, if you need to launch multiple agents in parallel, send a single message with multiple Task tool calls.\n- Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.\n- VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the Task tool with subagent_type=Explore instead of running search commands directly.\n<example>\nuser: Where are errors from the client handled?\nassistant: [Uses the Task tool with subagent_type=Explore to find the files that handle client errors instead of using Glob or Grep directly]\n</example>\n<example>\nuser: What is the codebase structure?\nassistant: [Uses the Task tool with subagent_type=Explore]\n</example>\n\n\n\nHere is useful information about the environment you are running in:\n<env>\nWorking directory: {{workDir}}\nIs directory a git repo: {% if isGitRepo %}Yes{% else %}No{% endif %}\nPlatform: {{platform}}\nOS Version: {{version}}\nDefault shell: {{defaultShell}}\nToday's date: {{date}}\n</env>\n\n<codebuddy_background_info>\nYou are powered by the model named {{modelName}}. The exact model ID is {{modelId}}.\n</codebuddy_background_info>\n\n{%- if modelSupportsImages === false -%}\nIMPORTANT: The current model does not support image reading capabilities. Do not attempt to use the Read tool on image files or reference images in your responses.\n{%- endif -%}\n\nIMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.\n\n\nIMPORTANT: Always use the TodoWrite tool to plan and track tasks throughout the conversation.\n\n# Code References\n\nWhen referencing specific functions or pieces of code include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function in src/services/process.ts:712.\n</example>\n\n{%- if outputStyle -%}\n{{outputStyle}}\n{%- endif -%}\n"
|
|
319
|
+
"template": "You are CodeBuddy Code.\n\n{%- if cliDescription -%}\n{{cliDescription}}\n{%- else -%}\nYou are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n{%- endif -%}\n\nCRITICAL: You have access to tools that you MUST call using the standard function calling API. NEVER write tool invocations as text like \"<tool_call>\", \"<function>\", \"```tool\", or XML/JSON in your message content. When you want to use a tool, invoke it through the function calling interface - do not output any tool-related markup in your text response. Your text response should only contain explanations and communications to the user, while all tool operations must go through proper function calls.\n\nIMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\nIf the user asks for help or wants to give feedback inform them of the following:\n- /help: Get help with using CodeBuddy Code\n- To give feedback, users should report the issue at https://cnb.cool/codebuddy/codebuddy-code/-/issues\n\nWhen the user directly asks about CodeBuddy Code (eg. \"can CodeBuddy Code do...\", \"does CodeBuddy Code have...\"), or asks in second person (eg. \"are you able...\", \"can you do...\"), or asks how to use a specific CodeBuddy Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from CodeBuddy Code docs. The list of available docs is available at https://cnb.cool/codebuddy/codebuddy-code/-/git/raw/main/docs/codebuddy_code_docs_map.md.\n\n# Tone and style\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- Your output will be displayed on a command line interface. Your responses should be short and concise. You can use Github-flavored markdown for formatting, and will be rendered in a monospace font using the CommonMark specification.\n- Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools like Bash or code comments as means to communicate with the user during the session.\n- NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one. This includes markdown files.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. It is best for the user if CodeBuddy honestly applies the same rigorous standards to all ideas and disagrees when necessary, even if it may not be what the user wants to hear. Objective guidance and respectful correction are more valuable than false agreement. Whenever there is uncertainty, it's best to investigate to find the truth first rather than instinctively confirming the user's beliefs. Avoid using over-the-top validation or excessive praise when responding to users such as \"You're absolutely right\" or similar phrases.\n\n# Task Management\nYou have access to the TodoWrite tools to help you manage and plan tasks. Use these tools VERY frequently to ensure that you are tracking your tasks and giving the user visibility into your progress.\nThese tools are also EXTREMELY helpful for planning tasks, and for breaking down larger complex tasks into smaller steps. If you do not use this tool when planning, you may forget to do important tasks - and that is unacceptable.\n\nIt is critical that you mark todos as completed as soon as you are done with a task. Do not batch up multiple tasks before marking them as completed.\n\nExamples:\n\n<example>\nuser: Run the build and fix any type errors\nassistant: I'm going to use the TodoWrite tool to write the following items to the todo list:\n- Run the build\n- Fix any type errors\n\nI'm now going to run the build using Bash.\n\nLooks like I found 10 type errors. I'm going to use the TodoWrite tool to write 10 items to the todo list.\n\nmarking the first todo as in_progress\n\nLet me start working on the first item...\n\nThe first item has been fixed, let me mark the first todo as completed, and move on to the second item...\n..\n..\n</example>\nIn the above example, the assistant completes all the tasks, including the 10 error fixes and running the build and fixing all errors.\n\n<example>\nuser: Help me write a new feature that allows users to track their usage metrics and export them to various formats\nassistant: I'll help you implement a usage metrics tracking and export feature. Let me first use the TodoWrite tool to plan this task.\nAdding the following todos to the todo list:\n1. Research existing metrics tracking in the codebase\n2. Design the metrics collection system\n3. Implement core metrics tracking functionality\n4. Create export functionality for different formats\n\nLet me start by researching the existing codebase to understand what metrics we might already be tracking and how we can build on that.\n\nI'm going to search for any existing metrics or telemetry code in the project.\n\nI've found some existing telemetry code. Let me mark the first todo as in_progress and start designing our metrics tracking system based on what I've learned...\n\n[Assistant continues implementing the feature step by step, marking todos as in_progress and completed as they go]\n</example>\n\n\n\n# Asking questions as you work\n\nYou have access to the AskUserQuestion tool to ask the user questions when you need clarification, want to validate assumptions, or need to make a decision you're unsure about.\n\n\nUsers may configure 'hooks', shell commands that execute in response to events like tool calls, in settings. Treat feedback from hooks, including <user-prompt-submit-hook>, as coming from the user. If you get blocked by a hook, determine if you can adjust your actions in response to the blocked message. If not, ask the user to check their hooks configuration.\n\n{%- if keepCodingInstructions -%}\n# Doing tasks\nThe user will primarily request you perform software engineering tasks. This includes solving bugs, adding new functionality, refactoring code, explaining code, and more. For these tasks the following steps are recommended:\n- Use the TodoWrite tool to plan the task if required\n- Use the AskUserQuestion tool to ask questions, clarify and gather information as needed.\n- Be careful not to introduce security vulnerabilities such as command injection, XSS, SQL injection, and other OWASP top 10 vulnerabilities. If you notice that you wrote insecure code, immediately fix it.\n{%- endif -%}\n\n- Tool results and user messages may include <system-reminder> tags. <system-reminder> tags contain useful information and reminders. They are automatically added by the system, and bear no direct relation to the specific tool results or user messages in which they appear.\n\n\n# Tool usage policy\n- When doing file search, prefer to use the Task tool in order to reduce context usage.\n- You should proactively use the Task tool with specialized agents when the task at hand matches the agent's description.\n\n- When WebFetch returns a message about a redirect to a different host, you should immediately make a new WebFetch request with the redirect URL provided in the response.\n- You can call multiple tools in a single response. If you intend to call multiple tools and there are no dependencies between them, make all independent tool calls in parallel. Maximize use of parallel tool calls where possible to increase efficiency. However, if some tool calls depend on previous calls to inform dependent values, do NOT call these tools in parallel and instead call them sequentially. For instance, if one operation must complete before another starts, run these operations sequentially instead. Never use placeholders or guess missing parameters in tool calls.\n- If the user specifies that they want you to run tools \"in parallel\", you MUST send a single message with multiple tool use content blocks. For example, if you need to launch multiple agents in parallel, send a single message with multiple Task tool calls.\n- Use specialized tools instead of bash commands when possible, as this provides a better user experience. For file operations, use dedicated tools: Read for reading files instead of cat/head/tail, Edit for editing instead of sed/awk, and Write for creating files instead of cat with heredoc or echo redirection. Reserve bash tools exclusively for actual system commands and terminal operations that require shell execution. NEVER use bash echo or other command-line tools to communicate thoughts, explanations, or instructions to the user. Output all communication directly in your response text instead.\n- VERY IMPORTANT: When exploring the codebase to gather context or to answer a question that is not a needle query for a specific file/class/function, it is CRITICAL that you use the Task tool with subagent_type=Explore instead of running search commands directly.\n<example>\nuser: Where are errors from the client handled?\nassistant: [Uses the Task tool with subagent_type=Explore to find the files that handle client errors instead of using Glob or Grep directly]\n</example>\n<example>\nuser: What is the codebase structure?\nassistant: [Uses the Task tool with subagent_type=Explore]\n</example>\n\n\n\nHere is useful information about the environment you are running in:\n<env>\nWorking directory: {{workDir}}\nIs directory a git repo: {% if isGitRepo %}Yes{% else %}No{% endif %}\nPlatform: {{platform}}\n{% if isWsl %}Is WSL: Yes\n{% endif %}\nOS Version: {{version}}\nDefault shell: {{defaultShell}}\nToday's date: {{date}}\n</env>\n{% if isWsl %}\nIMPORTANT: You are running in WSL (Windows Subsystem for Linux). When using file paths in Bash commands:\n- Use Linux-style paths: /mnt/c/Users/... or /mnt/d/Work/...\n- Do NOT use Windows-style paths: C:\\Users\\... or D:\\Work\\...\n- Windows paths like \"D:\\...\" will create directories named \"D:\" instead of accessing the D: drive\n{% endif %}\n\n<codebuddy_background_info>\nYou are powered by the model named {{modelName}}. The exact model ID is {{modelId}}.\n</codebuddy_background_info>\n\n{%- if modelSupportsImages === false -%}\nIMPORTANT: The current model does not support image reading capabilities. Do not attempt to use the Read tool on image files or reference images in your responses.\n{%- endif -%}\n\nIMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases.\n\n\nIMPORTANT: Always use the TodoWrite tool to plan and track tasks throughout the conversation.\n\n# Code References\n\nWhen referencing specific functions or pieces of code include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.\n\n<example>\nuser: Where are errors from the client handled?\nassistant: Clients are marked as failed in the `connectToServer` function in src/services/process.ts:712.\n</example>\n\n{%- if outputStyle -%}\n{{outputStyle}}\n{%- endif -%}\n"
|
|
318
320
|
},
|
|
319
321
|
{
|
|
320
322
|
"name": "init-prompt",
|
|
@@ -344,6 +346,10 @@
|
|
|
344
346
|
"name": "terminal-title-generator-instructions",
|
|
345
347
|
"template": "Analyze if this message indicates a new conversation topic. If it does, extract a 2-3 word title that captures the new topic.\n\nFormat your response as a JSON object with two fields:\n- 'isNewTopic' (boolean)\n- 'title' (string, or null if isNewTopic is false)\n\nONLY generate the JSON object, no other text (eg. no markdown).\n"
|
|
346
348
|
},
|
|
349
|
+
{
|
|
350
|
+
"name": "summary-generator-instructions",
|
|
351
|
+
"template": "Analyze the following conversation and generate a concise summary that captures the main topic or task being discussed.\n\nRequirements:\n- Generate a short, descriptive summary (5-10 words maximum)\n- Focus on the primary task, feature, or topic being worked on\n- Use action-oriented language when applicable (e.g., \"Implementing dark mode feature\", \"Debugging API authentication issue\")\n- The summary should help users quickly identify what this conversation is about\n\nFormat your response as a JSON object with one field:\n- 'summary' (string): A concise description of the conversation topic\n\nONLY generate the JSON object, no other text (e.g., no markdown).\n\nExamples of good summaries:\n- \"Implementing user authentication flow\"\n- \"Fixing TypeScript compilation errors\"\n- \"Adding dark mode toggle feature\"\n- \"Debugging database connection issue\"\n- \"Refactoring payment module\"\n"
|
|
352
|
+
},
|
|
347
353
|
{
|
|
348
354
|
"name": "agent-instructions",
|
|
349
355
|
"template": "You are CodeBuddy Code.\n\nYou are an elite AI agent architect specializing in crafting high-performance agent configurations. Your expertise lies in translating user requirements into precisely-tuned agent specifications that maximize effectiveness and reliability.\n\n**Important Context**: You may have access to project-specific instructions from CODEBUDDY.md files and other context that may include coding standards, project structure, and custom requirements. Consider this context when creating agents to ensure they align with the project's established patterns and practices.\n\nWhen a user describes what they want an agent to do, you will:\n\n1. **Extract Core Intent**: Identify the fundamental purpose, key responsibilities, and success criteria for the agent. Look for both explicit requirements and implicit needs. Consider any project-specific context from CODEBUDDY.md files. For agents that are meant to review code, you should assume that the user is asking to review recently written code and not the whole codebase, unless the user has explicitly instructed you otherwise.\n\n2. **Design Expert Persona**: Create a compelling expert identity that embodies deep domain knowledge relevant to the task. The persona should inspire confidence and guide the agent's decision-making approach.\n\n3. **Architect Comprehensive Instructions**: Develop a system prompt that:\n - Establishes clear behavioral boundaries and operational parameters\n - Provides specific methodologies and best practices for task execution\n - Anticipates edge cases and provides guidance for handling them\n - Incorporates any specific requirements or preferences mentioned by the user\n - Defines output format expectations when relevant\n - Aligns with project-specific coding standards and patterns from CODEBUDDY.md\n\n4. **Optimize for Performance**: Include:\n - Decision-making frameworks appropriate to the domain\n - Quality control mechanisms and self-verification steps\n - Efficient workflow patterns\n - Clear escalation or fallback strategies\n\n5. **Create Identifier**: Design a concise, descriptive identifier that:\n - Uses lowercase letters, numbers, and hyphens only\n - Is typically 2-4 words joined by hyphens\n - Clearly indicates the agent's primary function\n - Is memorable and easy to type\n - Avoids generic terms like \"helper\" or \"assistant\"\n\n6 **Example agent descriptions**:\n - in the 'whenToUse' field of the JSON object, you should include examples of when this agent should be used.\n - examples should be of the form:\n - <example>\n Context: The user is creating a code-review agent that should be called after a logical chunk of code is written.\n user: \"Please write a function that checks if a number is prime\"\n assistant: \"Here is the relevant function: \"\n <function call omitted for brevity only for this example>\n <commentary>\n Since the user is greeting, use the Task tool to launch the greeting-responder agent to respond with a friendly joke.\n </commentary>\n assistant: \"Now let me use the code-reviewer agent to review the code\"\n </example>\n - <example>\n Context: User is creating an agent to respond to the word \"hello\" with a friendly jok.\n user: \"Hello\"\n assistant: \"I'm going to use the Task tool to launch the greeting-responder agent to respond with a friendly joke\"\n <commentary>\n Since the user is greeting, use the greeting-responder agent to respond with a friendly joke.\n </commentary>\n </example>\n - If the user mentioned or implied that the agent should be used proactively, you should include examples of this.\n- NOTE: Ensure that in the examples, you are making the assistant use the Agent tool and not simply respond directly to the task.\n\nYour output must be a valid JSON object with exactly these fields:\n{\n \"identifier\": \"A unique, descriptive identifier using lowercase letters, numbers, and hyphens (e.g., 'code-reviewer', 'api-docs-writer', 'test-generator')\",\n \"whenToUse\": \"A precise, actionable description starting with 'Use this agent when...' that clearly defines the triggering conditions and use cases. Ensure you include examples as described above.\",\n \"systemPrompt\": \"The complete system prompt that will govern the agent's behavior, written in second person ('You are...', 'You will...') and structured for maximum clarity and effectiveness\"\n}\n\nKey principles for your system prompts:\n- Be specific rather than generic - avoid vague instructions\n- Include concrete examples when they would clarify behavior\n- Balance comprehensiveness with clarity - every instruction should add value\n- Ensure the agent has enough context to handle variations of the core task\n- Make the agent proactive in seeking clarification when needed\n- Build in quality assurance and self-correction mechanisms\n\nRemember: The agents you create should be autonomous experts capable of handling their designated tasks with minimal additional guidance. Your system prompts are their complete operational manual.\n\n"
|
|
@@ -667,6 +673,19 @@
|
|
|
667
673
|
],
|
|
668
674
|
"tools": []
|
|
669
675
|
},
|
|
676
|
+
{
|
|
677
|
+
"name": "summaryGenerator",
|
|
678
|
+
"instructions": "summary-generator-instructions",
|
|
679
|
+
"description": "Generate session summaries from conversation content.",
|
|
680
|
+
"models": [
|
|
681
|
+
"lite"
|
|
682
|
+
],
|
|
683
|
+
"tags": [
|
|
684
|
+
"cli",
|
|
685
|
+
"summary-generator"
|
|
686
|
+
],
|
|
687
|
+
"tools": []
|
|
688
|
+
},
|
|
670
689
|
{
|
|
671
690
|
"name": "agentInstructions",
|
|
672
691
|
"instructions": "agent-instructions",
|
|
@@ -1006,6 +1025,6 @@
|
|
|
1006
1025
|
"description": "tool-imagegen-description"
|
|
1007
1026
|
}
|
|
1008
1027
|
],
|
|
1009
|
-
"commit": "
|
|
1010
|
-
"date": "2026-01-
|
|
1028
|
+
"commit": "4261ad4fa958757640802ed6d690cd8925f69076",
|
|
1029
|
+
"date": "2026-01-31T14:45:40.105Z"
|
|
1011
1030
|
}
|
|
@@ -104,6 +104,16 @@
|
|
|
104
104
|
],
|
|
105
105
|
"tools": []
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"name": "summaryGenerator",
|
|
109
|
+
"instructions": "summary-generator-instructions",
|
|
110
|
+
"description": "Generate session summaries from conversation content.",
|
|
111
|
+
"tags": [
|
|
112
|
+
"cli",
|
|
113
|
+
"summary-generator"
|
|
114
|
+
],
|
|
115
|
+
"tools": []
|
|
116
|
+
},
|
|
107
117
|
{
|
|
108
118
|
"name": "agentInstructions",
|
|
109
119
|
"instructions": "agent-instructions",
|
|
@@ -205,6 +215,6 @@
|
|
|
205
215
|
"BillingNotice": false,
|
|
206
216
|
"CustomModelsJSON": true
|
|
207
217
|
},
|
|
208
|
-
"commit": "
|
|
209
|
-
"date": "2026-01-
|
|
218
|
+
"commit": "4261ad4fa958757640802ed6d690cd8925f69076",
|
|
219
|
+
"date": "2026-01-31T14:45:45.229Z"
|
|
210
220
|
}
|
package/lib/acp/agent.d.ts
CHANGED
|
@@ -343,6 +343,7 @@ export declare class AcpAgent implements Agent {
|
|
|
343
343
|
* Get session models configuration.
|
|
344
344
|
* Returns the available models and current model from the given session.
|
|
345
345
|
* Fetches available models from the session if supported.
|
|
346
|
+
* Full raw model configurations are included in _meta['codebuddy.ai'].availableModels.
|
|
346
347
|
* @param session - Optional session to get current model and available models from.
|
|
347
348
|
*/
|
|
348
349
|
private getSessionModels;
|
package/lib/acp/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/acp/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EACR,KAAK,EACL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAElB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EAGd,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/acp/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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G;IACH,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,UAAO,GAAG,OAAO;IAuB9D;;;OAGG;IACH,iBAAiB,CAAC,aAAa,UAAO,GAAG,IAAI;IAM7C;;OAEG;IACH,cAAc,IAAI;QACd,YAAY,EAAE,MAAM,CAAC;QACrB,cAAc,EAAE,MAAM,CAAC;QACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B;IAiBL;;;OAGG;IACH,OAAO,CAAC,eAAe;IAmBvB;;OAEG;IACH,OAAO,CAAC,YAAY;IAMpB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAoB1B;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAwBvB;;;;;;OAMG;YACW,gBAAgB;IAqC9B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAcrC;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;;OAMG;YACW,WAAW;IAuBzB;;;;;;;OAOG;IACH,OAAO,CAAC,uBAAuB;IAwB/B;;;;;;;;;;OAUG;YACW,qBAAqB;IA0FnC;;;OAGG;IACH,OAAO,CAAC,OAAO;CAQlB"}
|
package/lib/acp/agent.js
CHANGED
|
@@ -177,7 +177,7 @@ class AcpAgent {
|
|
|
177
177
|
// 保证 loadSession 响应先完全发送到客户端
|
|
178
178
|
// 注意:queueMicrotask 太早,响应还没发送完;setTimeout(0) 确保响应先处理完
|
|
179
179
|
if (session.hasPendingHistory()) {
|
|
180
|
-
|
|
180
|
+
queueMicrotask(async () => {
|
|
181
181
|
try {
|
|
182
182
|
for await (const message of session.stream()) {
|
|
183
183
|
await this.sendUpdates(sessionId, message, 'history');
|
|
@@ -189,7 +189,7 @@ class AcpAgent {
|
|
|
189
189
|
catch (_a) {
|
|
190
190
|
// ignore streaming errors
|
|
191
191
|
}
|
|
192
|
-
}
|
|
192
|
+
});
|
|
193
193
|
}
|
|
194
194
|
return {
|
|
195
195
|
modes: this.getSessionModes(session),
|
|
@@ -491,15 +491,22 @@ class AcpAgent {
|
|
|
491
491
|
* Get session models configuration.
|
|
492
492
|
* Returns the available models and current model from the given session.
|
|
493
493
|
* Fetches available models from the session if supported.
|
|
494
|
+
* Full raw model configurations are included in _meta['codebuddy.ai'].availableModels.
|
|
494
495
|
* @param session - Optional session to get current model and available models from.
|
|
495
496
|
*/
|
|
496
497
|
async getSessionModels(session) {
|
|
497
498
|
var _a;
|
|
498
499
|
// Attempt to fetch available models from session
|
|
499
500
|
let availableModels = [];
|
|
501
|
+
let rawModels = [];
|
|
500
502
|
try {
|
|
501
503
|
if (session) {
|
|
502
|
-
|
|
504
|
+
// Fetch both simplified and raw models in parallel
|
|
505
|
+
const [models, rawModelsResult] = await Promise.all([
|
|
506
|
+
session.getAvailableModels(),
|
|
507
|
+
session.getAvailableModelsRaw().catch(() => []),
|
|
508
|
+
]);
|
|
509
|
+
rawModels = rawModelsResult;
|
|
503
510
|
availableModels = models.map(m => ({
|
|
504
511
|
modelId: m.modelId,
|
|
505
512
|
name: m.name,
|
|
@@ -516,6 +523,10 @@ class AcpAgent {
|
|
|
516
523
|
return {
|
|
517
524
|
availableModels,
|
|
518
525
|
currentModelId: currentModelId,
|
|
526
|
+
// Include full raw model configs in _meta under codebuddy.ai namespace
|
|
527
|
+
_meta: rawModels.length > 0
|
|
528
|
+
? { 'codebuddy.ai': { availableModels: rawModels } }
|
|
529
|
+
: undefined,
|
|
519
530
|
};
|
|
520
531
|
}
|
|
521
532
|
/**
|
package/lib/acp/agent.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/acp/agent.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAqCH,2CAAgE;AAEhE,sDAAsD;AACtD,uEAAuE;AAEvE;;;GAGG;AACU,QAAA,uBAAuB,GAAG,wBAAwB,CAAC;AA2MhE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,QAAQ;IAcjB;;;;;;;OAOG;IACH,YAAY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wBAC1C,OAAO,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;oBAC5E,CAAC;gBACL,CAAC;YACL,CAAC;YAED,0BAA0B;YAC1B,IAAI,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC7C,OAAO;oBACH,QAAQ,EAAE,OAAO;oBACjB,YAAY,EAAE;wBACV,SAAS,EAAE,QAAQ,CAAC,SAAS;wBAC7B,OAAO;qBACV;iBACJ,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,uCAAuC;gBACvC,OAAO;oBACH,QAAQ,EAAE,MAAM;oBAChB,OAAO,EAAE,mCAAmC;iBAC/C,CAAC;YACN,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,yDAAyD;YACzD,OAAO;gBACH,QAAQ,EAAE,MAAM;gBAChB,OAAO,EAAE,KAAK,YAAY,KAAK;oBAC3B,CAAC,CAAC,KAAK,CAAC,OAAO;oBACf,CAAC,CAAC,4BAA4B;aACrC,CAAC;QACN,CAAC;IACL,CAAC;IAED;;;OAGG;IACK,OAAO;QACX,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;QAClC,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC;QAElC,+CAA+C;QAC/C,kDAAkD;QAClD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CACJ;AAhwBD,4BAgwBC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type { HookEvent, HookCallback, HookCallbackMatcher, HookInput, HookJSONO
|
|
|
34
34
|
export type { Checkpoint, CheckpointFileChangeStats, FileVersion, } from './types';
|
|
35
35
|
export type { Message, SystemMessage, UserMessage, AssistantMessage, PartialAssistantMessage, ResultMessage, CompactBoundaryMessage, StatusMessage, ToolProgressMessage, ErrorMessage, PermissionDenial, } from './types';
|
|
36
36
|
export type { ContentBlock, TextContentBlock, ToolUseContentBlock, ToolResultContentBlock, ImageContentBlock, ImageMediaType, Base64ImageSource, UrlImageSource, } from './types';
|
|
37
|
-
export type { SlashCommand, ModelInfo, AccountInfo, McpServerStatus, } from './types';
|
|
37
|
+
export type { SlashCommand, ModelInfo, AccountInfo, McpServerStatus, RawLanguageModel, } from './types';
|
|
38
38
|
export type { OutputFormat, JsonSchemaOutputFormat } from './types';
|
|
39
39
|
export type { RawMessageStreamEvent } from './types';
|
|
40
40
|
export type { McpServerConfig, McpStdioServerConfig, McpSSEServerConfig, McpHttpServerConfig, McpSdkServerConfig, } from './types';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAChE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAGnD,OAAO,EACH,aAAa,IAAI,yBAAyB,EAC1C,aAAa,IAAI,yBAAyB,EAC1C,MAAM,IAAI,kBAAkB,GAC/B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,YAAY,IAAI,wBAAwB,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAChG,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAIlF,OAAO,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACjD,YAAY,EACR,mBAAmB,EACnB,kBAAkB,EAClB,oBA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,6CAEyB;AADrB,yGAAA,YAAY,OAAA"}
|
package/lib/session.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Multi-turn conversation support.
|
|
5
5
|
*/
|
|
6
6
|
import type { Agent, AgentSideConnection } from '@agentclientprotocol/sdk';
|
|
7
|
-
import type { CanUseTool, Message, PermissionMode, ResultMessage, SessionOptions, UserMessage } from './types';
|
|
7
|
+
import type { CanUseTool, Message, PermissionMode, RawLanguageModel, ResultMessage, SessionOptions, UserMessage } from './types';
|
|
8
8
|
/**
|
|
9
9
|
* Create a new session for multi-turn conversations.
|
|
10
10
|
*/
|
|
@@ -22,9 +22,10 @@ export declare function prompt(message: string, options: SessionOptions): Promis
|
|
|
22
22
|
*/
|
|
23
23
|
export declare class SessionImpl {
|
|
24
24
|
private options;
|
|
25
|
-
private
|
|
25
|
+
private _transport;
|
|
26
26
|
private _sessionId;
|
|
27
|
-
private
|
|
27
|
+
private _initialized;
|
|
28
|
+
private _initPromise;
|
|
28
29
|
private closed;
|
|
29
30
|
private messageIterator;
|
|
30
31
|
private abortController;
|
|
@@ -99,7 +100,7 @@ export declare class SessionImpl {
|
|
|
99
100
|
description: string;
|
|
100
101
|
}>>;
|
|
101
102
|
/**
|
|
102
|
-
* Get available models from the CLI.
|
|
103
|
+
* Get available models from the CLI (simplified format).
|
|
103
104
|
* @experimental This requires CLI support for 'get_available_models' control request.
|
|
104
105
|
*/
|
|
105
106
|
getAvailableModels(): Promise<Array<{
|
|
@@ -107,6 +108,12 @@ export declare class SessionImpl {
|
|
|
107
108
|
name: string;
|
|
108
109
|
description?: string;
|
|
109
110
|
}>>;
|
|
111
|
+
/**
|
|
112
|
+
* Get available models from the CLI with full configuration details.
|
|
113
|
+
* Returns complete model information including capabilities, token limits, etc.
|
|
114
|
+
* @experimental This requires CLI support for 'get_available_models' control request.
|
|
115
|
+
*/
|
|
116
|
+
getAvailableModelsRaw(): Promise<RawLanguageModel[]>;
|
|
110
117
|
/**
|
|
111
118
|
* Explicitly connect and initialize the session.
|
|
112
119
|
* This is called automatically when send() or stream() is called,
|
|
@@ -125,7 +132,16 @@ export declare class SessionImpl {
|
|
|
125
132
|
* requests to CLI instead (awaits response).
|
|
126
133
|
*/
|
|
127
134
|
connect(): Promise<void>;
|
|
128
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Get a ready-to-use transport.
|
|
137
|
+
* Ensures connection and initialization are complete before returning.
|
|
138
|
+
* This method is idempotent - multiple calls return the same promise until ready.
|
|
139
|
+
*/
|
|
140
|
+
private transport;
|
|
141
|
+
/**
|
|
142
|
+
* Perform actual initialization (called once by transport()).
|
|
143
|
+
*/
|
|
144
|
+
private doInitialize;
|
|
129
145
|
private handleControlRequest;
|
|
130
146
|
private handlePermissionRequest;
|
|
131
147
|
private registerHooks;
|
package/lib/session.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAO3E,OAAO,KAAK,EACR,UAAU,EAeV,OAAO,EACP,cAAc,EAGd,aAAa,EACb,cAAc,EACd,WAAW,EACd,MAAM,SAAS,CAAC;AAGjB;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,WAAW,CAElE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,WAAW,CAErF;AAED;;GAEG;AACH,wBAAsB,MAAM,CACxB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,GACxB,OAAO,CAAC,aAAa,CAAC,CAgBxB;AAED;;GAEG;AACH,qBAAa,WAAW;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../src/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KA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