Fix the availability of some @anthropic-ai/claude-agent-sdk types (#322)
* Fix the availability of some `@anthropic-ai/claude-agent-sdk` types * update it in the action too * fix types
This commit is contained in:
committed by
pullfrog[bot]
parent
df13253d48
commit
510f2c96f9
@@ -144591,6 +144591,15 @@ var package_default = {
|
||||
require: "./dist/index.cjs"
|
||||
}
|
||||
},
|
||||
pnpm: {
|
||||
packageExtensions: {
|
||||
"@anthropic-ai/claude-agent-sdk": {
|
||||
dependencies: {
|
||||
"@anthropic-ai/sdk": "*"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
packageManager: "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a"
|
||||
};
|
||||
|
||||
@@ -145002,11 +145011,16 @@ var messageHandlers = {
|
||||
user: (data, bashToolIds, thinkingTimer) => {
|
||||
if (data.message?.content) {
|
||||
for (const content of data.message.content) {
|
||||
if (typeof content === "string") {
|
||||
continue;
|
||||
}
|
||||
if (content.type === "tool_result") {
|
||||
thinkingTimer.markToolResult();
|
||||
const toolUseId = content.tool_use_id;
|
||||
const isBashTool = toolUseId && bashToolIds.has(toolUseId);
|
||||
const outputContent = typeof content.content === "string" ? content.content : Array.isArray(content.content) ? content.content.map((c) => typeof c === "string" ? c : c.text || JSON.stringify(c)).join("\n") : String(content.content);
|
||||
const outputContent = typeof content.content === "string" ? content.content : Array.isArray(content.content) ? content.content.map(
|
||||
(c) => typeof c === "string" ? c : "text" in c ? c.text : JSON.stringify(c)
|
||||
).join("\n") : String(content.content);
|
||||
if (isBashTool) {
|
||||
log.startGroup(`bash output`);
|
||||
if (content.is_error) {
|
||||
|
||||
Reference in New Issue
Block a user