mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-05-01 06:36:23 +08:00
build: update dependencies
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"specs": [
|
||||
"@anthropic-ai/sdk@0.81.0",
|
||||
"@anthropic-ai/sdk@0.90.0",
|
||||
"@aws/bedrock-token-generator@^1.1.0",
|
||||
"@mariozechner/pi-ai@0.68.1"
|
||||
"@mariozechner/pi-ai@0.69.0"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"description": "OpenClaw Amazon Bedrock Mantle (OpenAI-compatible) provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "0.81.0",
|
||||
"@anthropic-ai/sdk": "0.90.0",
|
||||
"@aws/bedrock-token-generator": "^1.1.0",
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"specs": [
|
||||
"@aws-sdk/client-bedrock-runtime@3.1032.0",
|
||||
"@aws-sdk/client-bedrock@3.1032.0",
|
||||
"@aws-sdk/credential-provider-node@3.972.32"
|
||||
"@aws-sdk/client-bedrock-runtime@3.1033.0",
|
||||
"@aws-sdk/client-bedrock@3.1033.0",
|
||||
"@aws-sdk/credential-provider-node@3.972.33"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
"description": "OpenClaw Amazon Bedrock provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-bedrock": "3.1032.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "3.1032.0",
|
||||
"@aws-sdk/credential-provider-node": "3.972.32"
|
||||
"@aws-sdk/client-bedrock": "3.1033.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "3.1033.0",
|
||||
"@aws-sdk/credential-provider-node": "3.972.33"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"specs": ["@mariozechner/pi-ai@0.68.1"]
|
||||
"specs": ["@mariozechner/pi-ai@0.69.0"]
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Anthropic provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"specs": ["@mariozechner/pi-coding-agent@0.68.1", "ws@^8.20.0", "zod@^4.3.6"]
|
||||
"specs": ["@mariozechner/pi-coding-agent@0.69.0", "ws@^8.20.0", "zod@^4.3.6"]
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "OpenClaw Codex harness and model provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-coding-agent": "0.68.1",
|
||||
"@mariozechner/pi-coding-agent": "0.69.0",
|
||||
"ws": "^8.20.0",
|
||||
"zod": "^4.3.6"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Fireworks provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@clack/prompts": "^1.2.0",
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"specs": ["@google/genai@^1.50.1", "@mariozechner/pi-ai@0.68.1"]
|
||||
"specs": ["@google/genai@^1.50.1", "@mariozechner/pi-ai@0.69.0"]
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ describe("google-shared convertMessages", () => {
|
||||
} as unknown as Context;
|
||||
|
||||
const contents = convertMessages(model, context);
|
||||
expectConvertedRoles(contents, ["user", "model", "model"]);
|
||||
expectConvertedRoles(contents, ["user", "model", "model", "user"]);
|
||||
const toolCallPart = contents[2].parts?.find(
|
||||
(part) => typeof part === "object" && part !== null && "functionCall" in part,
|
||||
);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@google/genai": "^1.50.1",
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Kimi provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw LM Studio provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1"
|
||||
"@mariozechner/pi-ai": "0.69.0"
|
||||
},
|
||||
"openclaw": {
|
||||
"extensions": [
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Ollama provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1",
|
||||
"@mariozechner/pi-ai": "0.69.0",
|
||||
"@sinclair/typebox": "0.34.49"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw OpenAI provider plugins",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1",
|
||||
"@mariozechner/pi-ai": "0.69.0",
|
||||
"ws": "^8.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -34,6 +34,8 @@ describe("opencode-go provider plugin", () => {
|
||||
"kimi-k2.6",
|
||||
"mimo-v2-omni",
|
||||
"mimo-v2-pro",
|
||||
"mimo-v2.5",
|
||||
"mimo-v2.5-pro",
|
||||
"minimax-m2.5",
|
||||
"minimax-m2.7",
|
||||
"qwen3.5-plus",
|
||||
@@ -61,13 +63,13 @@ describe("opencode-go provider plugin", () => {
|
||||
input: ["text"],
|
||||
reasoning: true,
|
||||
contextWindow: 1_048_576,
|
||||
maxTokens: 64_000,
|
||||
maxTokens: 128_000,
|
||||
});
|
||||
expect(models.get("mimo-v2-omni")).toMatchObject({
|
||||
input: ["text", "image"],
|
||||
reasoning: true,
|
||||
contextWindow: 262_144,
|
||||
maxTokens: 64_000,
|
||||
maxTokens: 128_000,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"description": "OpenClaw Tlon/Urbit channel plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.1032.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1032.0",
|
||||
"@aws-sdk/client-s3": "3.1033.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1033.0",
|
||||
"@tloncorp/tlon-skill": "0.3.5",
|
||||
"@urbit/aura": "^3.0.0"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw xAI plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@mariozechner/pi-ai": "0.68.1",
|
||||
"@mariozechner/pi-ai": "0.69.0",
|
||||
"@sinclair/typebox": "0.34.49",
|
||||
"ws": "^8.20.0"
|
||||
},
|
||||
|
||||
14
package.json
14
package.json
@@ -1534,10 +1534,10 @@
|
||||
"@clack/prompts": "^1.2.0",
|
||||
"@homebridge/ciao": "^1.3.6",
|
||||
"@lydell/node-pty": "1.2.0-beta.12",
|
||||
"@mariozechner/pi-agent-core": "0.68.1",
|
||||
"@mariozechner/pi-ai": "0.68.1",
|
||||
"@mariozechner/pi-coding-agent": "0.68.1",
|
||||
"@mariozechner/pi-tui": "0.68.1",
|
||||
"@mariozechner/pi-agent-core": "0.69.0",
|
||||
"@mariozechner/pi-ai": "0.69.0",
|
||||
"@mariozechner/pi-coding-agent": "0.69.0",
|
||||
"@mariozechner/pi-tui": "0.69.0",
|
||||
"@modelcontextprotocol/sdk": "1.29.0",
|
||||
"@mozilla/readability": "^0.6.0",
|
||||
"@sinclair/typebox": "0.34.49",
|
||||
@@ -1587,8 +1587,8 @@
|
||||
"jscpd": "4.0.9",
|
||||
"jsdom": "^29.0.2",
|
||||
"lit": "^3.3.2",
|
||||
"oxfmt": "0.45.0",
|
||||
"oxlint": "^1.60.0",
|
||||
"oxfmt": "0.46.0",
|
||||
"oxlint": "^1.61.0",
|
||||
"oxlint-tsgolint": "^0.21.1",
|
||||
"signal-utils": "0.21.1",
|
||||
"tsdown": "0.21.9",
|
||||
@@ -1617,7 +1617,7 @@
|
||||
"packageManager": "pnpm@10.33.0",
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@anthropic-ai/sdk": "0.81.0",
|
||||
"@anthropic-ai/sdk": "0.90.0",
|
||||
"hono": "4.12.14",
|
||||
"@hono/node-server": "1.19.14",
|
||||
"axios": "1.15.0",
|
||||
|
||||
1056
pnpm-lock.yaml
generated
1056
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -395,15 +395,18 @@ function convertAnthropicTools(tools: Context["tools"], isOAuthToken: boolean) {
|
||||
if (!tools) {
|
||||
return [];
|
||||
}
|
||||
return tools.map((tool) => ({
|
||||
name: isOAuthToken ? toClaudeCodeName(tool.name) : tool.name,
|
||||
description: tool.description,
|
||||
input_schema: {
|
||||
type: "object",
|
||||
properties: tool.parameters.properties || {},
|
||||
required: tool.parameters.required || [],
|
||||
},
|
||||
}));
|
||||
return tools.map((tool) => {
|
||||
const parameters = tool.parameters as Record<string, unknown>;
|
||||
return {
|
||||
name: isOAuthToken ? toClaudeCodeName(tool.name) : tool.name,
|
||||
description: tool.description,
|
||||
input_schema: {
|
||||
type: "object",
|
||||
properties: parameters.properties || {},
|
||||
required: parameters.required || [],
|
||||
},
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function mapStopReason(reason: string | undefined): string {
|
||||
|
||||
@@ -362,7 +362,10 @@ function convertResponsesTools(
|
||||
type: "function",
|
||||
name: tool.name,
|
||||
description: tool.description,
|
||||
parameters: normalizeOpenAIStrictToolParameters(tool.parameters, strict),
|
||||
parameters: normalizeOpenAIStrictToolParameters(tool.parameters, strict) as Record<
|
||||
string,
|
||||
unknown
|
||||
>,
|
||||
strict,
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import fs from "node:fs/promises";
|
||||
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
|
||||
import type {
|
||||
AgentTool,
|
||||
AgentToolResult,
|
||||
AgentToolUpdateCallback,
|
||||
} from "@mariozechner/pi-agent-core";
|
||||
import type { TSchema } from "@sinclair/typebox";
|
||||
import { detectMime } from "../../media/mime.js";
|
||||
import { readSnakeCaseParamRaw } from "../../param-key.js";
|
||||
@@ -18,8 +22,26 @@ export type AgentToolWithMeta<TParameters extends TSchema, TResult> = AgentTool<
|
||||
// plugin/runtime factories that are effectively existential over params/details.
|
||||
// Tightening this alias without a dedicated adapter seam blows up plugin tool
|
||||
// factories and embedded-runner tool plumbing.
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
export type AnyAgentTool = AgentToolWithMeta<any, unknown>;
|
||||
type AnyAgentToolExecute = (
|
||||
toolCallId: string,
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
params: any,
|
||||
signal?: AbortSignal,
|
||||
onUpdate?: AgentToolUpdateCallback,
|
||||
) => Promise<AgentToolResult<unknown>>;
|
||||
|
||||
export type AnyAgentTool = {
|
||||
name: string;
|
||||
label: string;
|
||||
description: string;
|
||||
// oxlint-disable-next-line typescript/no-explicit-any
|
||||
parameters: any;
|
||||
prepareArguments?: (args: unknown) => unknown;
|
||||
executionMode?: AgentTool["executionMode"];
|
||||
ownerOnly?: boolean;
|
||||
displaySummary?: string;
|
||||
execute: AnyAgentToolExecute;
|
||||
};
|
||||
|
||||
export type StringParamOptions = {
|
||||
required?: boolean;
|
||||
|
||||
@@ -95,7 +95,7 @@ describe("production lint suppressions", () => {
|
||||
"src/agents/skills-clawhub.ts|no-control-regex|1",
|
||||
"src/agents/subagent-attachments.ts|no-control-regex|1",
|
||||
"src/agents/subagent-spawn.ts|no-control-regex|1",
|
||||
"src/agents/tools/common.ts|typescript/no-explicit-any|1",
|
||||
"src/agents/tools/common.ts|typescript/no-explicit-any|2",
|
||||
"src/channels/plugins/channel-runtime-surface.types.ts|typescript/no-unnecessary-type-parameters|1",
|
||||
"src/channels/plugins/contracts/test-helpers.ts|typescript/no-unnecessary-type-parameters|1",
|
||||
"src/channels/plugins/types.plugin.ts|typescript/no-explicit-any|1",
|
||||
@@ -137,6 +137,10 @@ describe("production lint suppressions", () => {
|
||||
);
|
||||
|
||||
expect(anySuppressions).toEqual([
|
||||
{
|
||||
file: "src/agents/tools/common.ts",
|
||||
rule: "typescript/no-explicit-any",
|
||||
},
|
||||
{
|
||||
file: "src/agents/tools/common.ts",
|
||||
rule: "typescript/no-explicit-any",
|
||||
|
||||
Reference in New Issue
Block a user