mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:04:45 +00:00
chore: update dependencies
This commit is contained in:
@@ -8,11 +8,11 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-bedrock": "3.1045.0",
|
||||
"@aws-sdk/client-bedrock": "3.1047.0",
|
||||
"@aws-sdk/client-bedrock-runtime": "3.1045.0",
|
||||
"@aws-sdk/credential-provider-node": "3.972.39",
|
||||
"@aws-sdk/credential-provider-node": "3.972.41",
|
||||
"@earendil-works/pi-ai": "0.74.0",
|
||||
"@smithy/shared-ini-file-loader": "4.5.1"
|
||||
"@smithy/shared-ini-file-loader": "4.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
"express": "5.2.1",
|
||||
"playwright-core": "1.60.0",
|
||||
"typebox": "1.1.38",
|
||||
"ws": "8.20.0"
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*",
|
||||
"undici": "8.2.0"
|
||||
"undici": "8.3.0"
|
||||
},
|
||||
"openclaw": {
|
||||
"extensions": [
|
||||
|
||||
@@ -18,6 +18,7 @@ const mocks = vi.hoisted(() => ({
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "test-hash",
|
||||
persistedHash: "test-hash",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: draft,
|
||||
result,
|
||||
|
||||
@@ -20,6 +20,7 @@ const configMocks = vi.hoisted(() => ({
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "test-hash",
|
||||
persistedHash: "test-hash",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: draft,
|
||||
result,
|
||||
|
||||
@@ -437,6 +437,7 @@ vi.mock("../config/config.js", async () => {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "test-hash",
|
||||
persistedHash: "test-hash",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: draft,
|
||||
result,
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
},
|
||||
"dependencies": {
|
||||
"@a2ui/lit": "0.9.3",
|
||||
"@a2ui/lit": "0.10.0",
|
||||
"@lit/context": "1.1.6",
|
||||
"chokidar": "5.0.0",
|
||||
"lit": "3.3.2",
|
||||
"lit": "3.3.3",
|
||||
"typebox": "1.1.38",
|
||||
"ws": "8.20.0"
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"openclaw": {
|
||||
"extensions": [
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"./runtime-api.js": "./runtime-api.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"@earendil-works/pi-coding-agent": "0.74.0",
|
||||
"@openai/codex": "0.130.0",
|
||||
"ajv": "8.20.0",
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@opentelemetry/api": "1.9.1",
|
||||
"@opentelemetry/api-logs": "0.217.0",
|
||||
"@opentelemetry/exporter-logs-otlp-proto": "0.217.0",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto": "0.217.0",
|
||||
"@opentelemetry/exporter-trace-otlp-proto": "0.217.0",
|
||||
"@opentelemetry/api-logs": "0.218.0",
|
||||
"@opentelemetry/exporter-logs-otlp-proto": "0.218.0",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto": "0.218.0",
|
||||
"@opentelemetry/exporter-trace-otlp-proto": "0.218.0",
|
||||
"@opentelemetry/resources": "2.7.1",
|
||||
"@opentelemetry/sdk-logs": "0.217.0",
|
||||
"@opentelemetry/sdk-logs": "0.218.0",
|
||||
"@opentelemetry/sdk-metrics": "2.7.1",
|
||||
"@opentelemetry/sdk-node": "0.217.0",
|
||||
"@opentelemetry/sdk-node": "0.218.0",
|
||||
"@opentelemetry/sdk-trace-base": "2.7.1",
|
||||
"@opentelemetry/semantic-conventions": "1.40.0"
|
||||
"@opentelemetry/semantic-conventions": "1.41.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
"https-proxy-agent": "9.0.0",
|
||||
"opusscript": "0.1.1",
|
||||
"typebox": "1.1.38",
|
||||
"undici": "8.2.0",
|
||||
"ws": "8.20.0"
|
||||
"undici": "8.3.0",
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*",
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@larksuiteoapi/node-sdk": "1.63.1",
|
||||
"@larksuiteoapi/node-sdk": "1.64.0",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw GitHub Copilot provider plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@clack/prompts": "1.3.0"
|
||||
"@clack/prompts": "1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@earendil-works/pi-ai": "0.74.0",
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"description": "OpenClaw Google plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@google/genai": "2.0.1",
|
||||
"@earendil-works/pi-ai": "0.74.0"
|
||||
"@earendil-works/pi-ai": "0.74.0",
|
||||
"@google/genai": "2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@matrix-org/matrix-sdk-crypto-nodejs": "0.5.1",
|
||||
"@matrix-org/matrix-sdk-crypto-wasm": "18.2.0",
|
||||
"@matrix-org/matrix-sdk-crypto-wasm": "18.3.0",
|
||||
"fake-indexeddb": "6.2.5",
|
||||
"markdown-it": "14.1.1",
|
||||
"matrix-js-sdk": "41.5.0-rc.0",
|
||||
"matrix-js-sdk": "41.5.0",
|
||||
"music-metadata": "11.12.3",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -35,6 +35,7 @@ function createHarness(initialConfig: OpenClawConfig = {}) {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: {},
|
||||
nextConfig: runtimeConfig,
|
||||
afterWrite: { mode: "auto" },
|
||||
|
||||
@@ -58,6 +58,7 @@ export function makeConfigRuntime(
|
||||
const next = structuredClone(config);
|
||||
const result = await mutate(next, {
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: { config, raw: "", hash: null },
|
||||
});
|
||||
commitConfig(next);
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@azure/identity": "4.13.1",
|
||||
"@microsoft/teams.api": "2.0.10",
|
||||
"@microsoft/teams.apps": "2.0.10",
|
||||
"@microsoft/teams.api": "2.0.11",
|
||||
"@microsoft/teams.apps": "2.0.11",
|
||||
"express": "5.2.1",
|
||||
"jsonwebtoken": "9.0.3",
|
||||
"jwks-rsa": "4.0.1",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@earendil-works/pi-ai": "0.74.0",
|
||||
"ws": "8.20.0"
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -42,6 +42,7 @@ function createApi(params: {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: {},
|
||||
nextConfig,
|
||||
afterWrite: { mode: "auto" },
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw QA lab plugin with private debugger UI and scenario runner",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@copilotkit/aimock": "1.22.0",
|
||||
"@copilotkit/aimock": "1.24.1",
|
||||
"@modelcontextprotocol/sdk": "1.29.0",
|
||||
"playwright-core": "1.60.0",
|
||||
"yaml": "2.9.0",
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Matrix QA runner plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"undici": "8.2.0"
|
||||
"undici": "8.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/matrix": "workspace:*",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"@tencent-connect/qqbot-connector": "1.1.0",
|
||||
"mpg123-decoder": "1.0.3",
|
||||
"silk-wasm": "3.7.1",
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"description": "OpenClaw Signal channel plugin",
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"ws": "8.20.0"
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"@slack/bolt": "4.7.2",
|
||||
"@slack/types": "2.21.1",
|
||||
"@slack/web-api": "7.15.2",
|
||||
"@slack/web-api": "7.16.0",
|
||||
"https-proxy-agent": "9.0.0",
|
||||
"typebox": "1.1.38",
|
||||
"zod": "4.4.3"
|
||||
|
||||
@@ -17,6 +17,7 @@ function createHarness(config: Record<string, unknown>) {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: {},
|
||||
nextConfig: config,
|
||||
afterWrite: { mode: "auto" },
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"@grammyjs/transformer-throttler": "1.2.1",
|
||||
"grammy": "1.42.0",
|
||||
"typebox": "1.1.38",
|
||||
"undici": "8.2.0"
|
||||
"undici": "8.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*"
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@aws-sdk/client-s3": "3.1045.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1045.0",
|
||||
"@tloncorp/tlon-skill": "0.3.6",
|
||||
"@aws-sdk/client-s3": "3.1047.0",
|
||||
"@aws-sdk/s3-request-presigner": "3.1047.0",
|
||||
"@tloncorp/tlon-skill": "0.4.0",
|
||||
"@urbit/aura": "3.0.0",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"dependencies": {
|
||||
"commander": "14.0.3",
|
||||
"typebox": "1.1.38",
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"https-proxy-agent": "9.0.0",
|
||||
"jimp": "1.6.1",
|
||||
"typebox": "1.1.38",
|
||||
"undici": "8.2.0"
|
||||
"undici": "8.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openclaw/plugin-sdk": "workspace:*",
|
||||
"ws": "8.20.0"
|
||||
"ws": "8.20.1"
|
||||
},
|
||||
"openclaw": {
|
||||
"extensions": [
|
||||
|
||||
30
package.json
30
package.json
@@ -1748,14 +1748,14 @@
|
||||
"ui:install": "node scripts/ui.js install"
|
||||
},
|
||||
"dependencies": {
|
||||
"@agentclientprotocol/sdk": "0.21.0",
|
||||
"@clack/core": "1.3.0",
|
||||
"@clack/prompts": "1.3.0",
|
||||
"@agentclientprotocol/sdk": "0.21.1",
|
||||
"@clack/core": "1.3.1",
|
||||
"@clack/prompts": "1.4.0",
|
||||
"@earendil-works/pi-agent-core": "0.74.0",
|
||||
"@earendil-works/pi-ai": "0.74.0",
|
||||
"@earendil-works/pi-coding-agent": "0.74.0",
|
||||
"@earendil-works/pi-tui": "0.74.0",
|
||||
"@google/genai": "2.0.1",
|
||||
"@google/genai": "2.2.0",
|
||||
"@grammyjs/runner": "2.0.3",
|
||||
"@grammyjs/transformer-throttler": "1.2.1",
|
||||
"@homebridge/ciao": "1.3.8",
|
||||
@@ -1792,35 +1792,35 @@
|
||||
"tree-sitter-bash": "0.25.1",
|
||||
"tslog": "4.10.2",
|
||||
"typebox": "1.1.38",
|
||||
"undici": "8.2.0",
|
||||
"undici": "8.3.0",
|
||||
"web-push": "3.6.7",
|
||||
"web-tree-sitter": "0.26.8",
|
||||
"ws": "8.20.0",
|
||||
"ws": "8.20.1",
|
||||
"yaml": "2.9.0",
|
||||
"zod": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@a2ui/lit": "0.9.3",
|
||||
"@copilotkit/aimock": "1.22.0",
|
||||
"@grammyjs/types": "3.26.0",
|
||||
"@lit-labs/signals": "0.2.0",
|
||||
"@a2ui/lit": "0.10.0",
|
||||
"@copilotkit/aimock": "1.24.1",
|
||||
"@grammyjs/types": "3.27.2",
|
||||
"@lit-labs/signals": "0.3.0",
|
||||
"@lit/context": "1.1.6",
|
||||
"@mdx-js/mdx": "3.1.1",
|
||||
"@types/express": "5.0.6",
|
||||
"@types/markdown-it": "14.1.2",
|
||||
"@types/node": "25.7.0",
|
||||
"@types/node": "25.8.0",
|
||||
"@types/ws": "8.18.1",
|
||||
"@typescript/native-preview": "7.0.0-dev.20260511.1",
|
||||
"@typescript/native-preview": "7.0.0-dev.20260514.1",
|
||||
"@vitest/coverage-v8": "4.1.6",
|
||||
"jscpd": "4.1.0",
|
||||
"jscpd": "4.2.0",
|
||||
"jsdom": "29.1.1",
|
||||
"lit": "3.3.2",
|
||||
"lit": "3.3.3",
|
||||
"oxfmt": "0.49.0",
|
||||
"oxlint": "1.64.0",
|
||||
"oxlint-tsgolint": "0.22.1",
|
||||
"signal-utils": "0.21.1",
|
||||
"tsdown": "0.22.0",
|
||||
"tsx": "4.21.0",
|
||||
"tsx": "4.22.0",
|
||||
"typescript": "6.0.3",
|
||||
"unrun": "0.3.0",
|
||||
"vitest": "4.1.6"
|
||||
|
||||
2689
pnpm-lock.yaml
generated
2689
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -66,6 +66,7 @@ async function transformConfigFileWithRetryMock<T = unknown>(
|
||||
return {
|
||||
path: snapshot.path ?? "/tmp/openclaw.json",
|
||||
previousHash,
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot,
|
||||
nextConfig: transformed.nextConfig,
|
||||
result: transformed.result,
|
||||
|
||||
@@ -69,6 +69,7 @@ async function transformConfigFileWithRetryMock<T = unknown>(
|
||||
return {
|
||||
path: snapshot.path ?? "/tmp/openclaw.json",
|
||||
previousHash,
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot,
|
||||
nextConfig: transformed.nextConfig,
|
||||
result: transformed.result,
|
||||
|
||||
@@ -53,6 +53,7 @@ async function transformConfigFileWithRetryMock<T = unknown>(
|
||||
return {
|
||||
path: snapshot.path ?? "/tmp/openclaw.json",
|
||||
previousHash,
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot,
|
||||
nextConfig: transformed.nextConfig,
|
||||
result: transformed.result,
|
||||
|
||||
@@ -122,6 +122,7 @@ const mocks = vi.hoisted(() => {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "hash-1",
|
||||
persistedHash: "hash-1",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: draft,
|
||||
result: undefined,
|
||||
@@ -133,6 +134,7 @@ const mocks = vi.hoisted(() => {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "hash-1",
|
||||
persistedHash: "hash-1",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig,
|
||||
};
|
||||
@@ -234,6 +236,7 @@ describe("exec-policy CLI", () => {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "hash-1",
|
||||
persistedHash: "hash-1",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: draft,
|
||||
result: undefined,
|
||||
@@ -247,6 +250,7 @@ describe("exec-policy CLI", () => {
|
||||
return {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: "hash-1",
|
||||
persistedHash: "hash-1",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig,
|
||||
};
|
||||
|
||||
@@ -42,6 +42,7 @@ const transformConfigWithPendingPluginInstallsMock = vi.hoisted(() =>
|
||||
return {
|
||||
path: snapshot.path ?? "/tmp/openclaw.json",
|
||||
previousHash: snapshot.hash ?? null,
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot,
|
||||
nextConfig: transformed.nextConfig,
|
||||
result: transformed.result,
|
||||
|
||||
@@ -112,6 +112,7 @@ const mockConfig = vi.hoisted(() => {
|
||||
return {
|
||||
path: state.path,
|
||||
previousHash: before.hash ?? null,
|
||||
persistedHash: before.hash ?? null,
|
||||
snapshot: before,
|
||||
nextConfig: cloneConfig(),
|
||||
result: undefined,
|
||||
|
||||
@@ -63,6 +63,7 @@ const mockConfig = vi.hoisted(() => {
|
||||
return {
|
||||
path: state.path,
|
||||
previousHash: before.hash ?? null,
|
||||
persistedHash: before.hash ?? null,
|
||||
snapshot: before,
|
||||
nextConfig: cloneConfig(),
|
||||
result: undefined,
|
||||
|
||||
@@ -81,6 +81,7 @@ vi.mock("../../config/config.js", async () => {
|
||||
return {
|
||||
path: "/tmp/openclaw/config.json",
|
||||
previousHash: "test-hash",
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot: { path: "/tmp/openclaw/config.json" },
|
||||
nextConfig: draft,
|
||||
result,
|
||||
|
||||
@@ -36,6 +36,7 @@ vi.mock("../../config/config.js", () => {
|
||||
return {
|
||||
path: snapshot.path,
|
||||
previousHash: "test-hash",
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot,
|
||||
nextConfig: draft,
|
||||
result,
|
||||
|
||||
@@ -306,6 +306,7 @@ export function createPluginRuntimeMock(overrides: DeepPartial<PluginRuntime> =
|
||||
mutateConfigFile: vi.fn(async () => ({
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: {} as never,
|
||||
nextConfig: {},
|
||||
afterWrite: { mode: "auto" },
|
||||
@@ -315,6 +316,7 @@ export function createPluginRuntimeMock(overrides: DeepPartial<PluginRuntime> =
|
||||
replaceConfigFile: vi.fn(async ({ nextConfig }) => ({
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
persistedHash: null,
|
||||
snapshot: {} as never,
|
||||
nextConfig,
|
||||
afterWrite: { mode: "auto" },
|
||||
|
||||
@@ -26,14 +26,20 @@ describe("plugin registry runtime config scope", () => {
|
||||
let replaceScope = getPluginRuntimeGatewayRequestScope();
|
||||
const config = {} as OpenClawConfig;
|
||||
const replaceResult = {
|
||||
path: "/tmp/openclaw.json",
|
||||
previousHash: null,
|
||||
nextHash: "next",
|
||||
persistedHash: "persisted-hash",
|
||||
snapshot: { path: "/tmp/openclaw.json" },
|
||||
nextConfig: config,
|
||||
afterWrite: { mode: "auto" },
|
||||
followUp: { mode: "auto", requiresRestart: false },
|
||||
} as unknown as Awaited<ReturnType<PluginRuntime["config"]["replaceConfigFile"]>>;
|
||||
const mutateConfigFile: PluginRuntime["config"]["mutateConfigFile"] = async () => {
|
||||
mutateScope = getPluginRuntimeGatewayRequestScope();
|
||||
return {
|
||||
...replaceResult,
|
||||
result: undefined,
|
||||
attempts: 1,
|
||||
};
|
||||
};
|
||||
const replaceConfigFile: PluginRuntime["config"]["replaceConfigFile"] = async () => {
|
||||
|
||||
@@ -32,8 +32,11 @@ describe("createRuntimeConfig", () => {
|
||||
replaceConfigFileMock.mockReset();
|
||||
logWarnMock.mockClear();
|
||||
getRuntimeConfigMock.mockReturnValue({ plugins: {} });
|
||||
mutateConfigFileMock.mockResolvedValue({ previousHash: null, nextHash: "next" });
|
||||
replaceConfigFileMock.mockResolvedValue({ previousHash: null, nextHash: "next" });
|
||||
mutateConfigFileMock.mockResolvedValue({ previousHash: null, persistedHash: "persisted-hash" });
|
||||
replaceConfigFileMock.mockResolvedValue({
|
||||
previousHash: null,
|
||||
persistedHash: "persisted-hash",
|
||||
});
|
||||
});
|
||||
|
||||
it("reads config from the runtime snapshot for current and deprecated loadConfig", () => {
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
"dependencies": {
|
||||
"@create-markdown/preview": "2.0.3",
|
||||
"@noble/ed25519": "3.1.0",
|
||||
"dompurify": "3.4.2",
|
||||
"dompurify": "3.4.3",
|
||||
"json5": "2.2.3",
|
||||
"lit": "3.3.2",
|
||||
"lit": "3.3.3",
|
||||
"markdown-it": "14.1.1",
|
||||
"markdown-it-task-lists": "2.1.1",
|
||||
"marked": "18.0.3"
|
||||
@@ -23,7 +23,7 @@
|
||||
"@vitest/browser-playwright": "4.1.6",
|
||||
"jsdom": "29.1.1",
|
||||
"playwright": "1.60.0",
|
||||
"vite": "8.0.12",
|
||||
"vite": "8.0.13",
|
||||
"vitest": "4.1.6"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user