Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/coverage-v8": "^4.0.16",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/coverage-v8": "^4.1.3",
"@vitest/eslint-plugin": "^1.6.14",
"@yarnpkg/types": "^4.0.1",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
Expand All @@ -90,7 +90,7 @@
"lint-staged": "^15.5.0",
"lodash": "^4.17.21",
"patch-package": "^8.0.0",
"playwright": "^1.58.2",
"playwright": "^1.59.1",
"prettier": "^3.5.3",
"prettier-plugin-packagejson": "^2.5.10",
"rimraf": "^6.0.1",
Expand All @@ -101,9 +101,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vite-tsconfig-paths": "^6.0.3",
"vitest": "^4.0.16",
"vite": "^8.0.6",
"vitest": "^4.1.3",
"vitest-fetch-mock": "^0.4.5"
},
"packageManager": "yarn@4.12.0",
Expand All @@ -130,7 +129,9 @@
"@metamask/kernel-cli>@metamask/kernel-shims>@libp2p/webrtc>node-datachannel": false,
"@metamask/kernel-cli>@metamask/kernel-utils": false,
"vitest>jsdom>ws>bufferutil": false,
"vitest>jsdom>ws>utf-8-validate": false
"vitest>jsdom>ws>utf-8-validate": false,
"@vitest/coverage-v8>@vitest/browser>ws>bufferutil": false,
"@vitest/coverage-v8>@vitest/browser>ws>utf-8-validate": false
}
},
"resolutions": {
Expand Down
6 changes: 3 additions & 3 deletions packages/create-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -77,8 +77,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16",
"vite": "^8.0.6",
"vitest": "^4.1.3",
"yargs": "^17.7.2"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions packages/evm-wallet-experiment/openclaw-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ const entry: PluginEntry = {
register,
};

export { register };
export default entry;
6 changes: 3 additions & 3 deletions packages/evm-wallet-experiment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -116,8 +116,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { afterAll, beforeAll, describe, expect, it } from 'vitest';

import register from '../../openclaw-plugin/index.ts';
import { register } from '../../openclaw-plugin/index.ts';
import { makeWalletClusterConfig } from '../../src/cluster-config.ts';

type ToolResponse = {
Expand Down
4 changes: 2 additions & 2 deletions packages/evm-wallet-experiment/test/openclaw-plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { spawn } from 'node:child_process';
import { EventEmitter } from 'node:events';
import { beforeEach, describe, expect, it, vi } from 'vitest';

import pluginEntry from '../openclaw-plugin/index.ts';
import { register } from '../openclaw-plugin/index.ts';

vi.mock('node:child_process', () => ({ spawn: vi.fn() }));

Expand Down Expand Up @@ -107,7 +107,7 @@ function setupPlugin(): Map<string, ToolDefinition> {
},
};

pluginEntry.register(api);
register(api);
return tools;
}

Expand Down
16 changes: 8 additions & 8 deletions packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@metamask/eslint-config-typescript": "^15.0.0",
"@ocap/kernel-test": "workspace:^",
"@ocap/repo-tools": "workspace:^",
"@playwright/test": "^1.58.2",
"@playwright/test": "^1.59.1",
"@testing-library/jest-dom": "^6.6.3",
"@types/chrome": "^0.0.313",
"@types/react": "^18.3.18",
Expand All @@ -72,7 +72,7 @@
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitejs/plugin-react": "^5.1.2",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -82,19 +82,19 @@
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-promise": "^7.2.1",
"jsdom": "^27.4.0",
"playwright": "^1.58.2",
"jsdom": "^29.0.2",
"playwright": "^1.59.1",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"tsx": "^4.20.6",
"turbo": "^2.9.1",
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vite-plugin-checker": "^0.9.1",
"vite-plugin-static-copy": "^2.3.2",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-static-copy": "^4.0.1",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
14 changes: 5 additions & 9 deletions packages/extension/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default defineConfig(({ mode }) => {
outDir,
minify: !isDev,
sourcemap: isDev ? 'inline' : false,
rollupOptions: {
rolldownOptions: {
input: {
background: path.resolve(sourceDir, 'background.ts'),
offscreen: path.resolve(sourceDir, 'offscreen.html'),
Expand All @@ -79,13 +79,7 @@ export default defineConfig(({ mode }) => {
},
output: {
entryFileNames: '[name].js',
chunkFileNames: (chunkInfo) => {
// Rename _commonjsHelpers to avoid underscore prefix extension issues
if (chunkInfo.name === '_commonjsHelpers') {
return 'commonjsHelpers.js';
}
return '[name].js';
},
chunkFileNames: '[name].js',
assetFileNames: '[name].[ext]',
},
},
Expand All @@ -107,7 +101,9 @@ export default defineConfig(({ mode }) => {
jsTrustedPrelude({ trustedPreludes }),
viteStaticCopy({
targets: staticCopyTargets.map((src) =>
typeof src === 'string' ? { src, dest: './' } : src,
typeof src === 'string'
? { src, dest: './', rename: { stripBase: true } }
: src,
),
watch: { reloadPageOnChange: true },
silent: isDev,
Expand Down
6 changes: 3 additions & 3 deletions packages/kernel-agents-repl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -75,8 +75,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
6 changes: 3 additions & 3 deletions packages/kernel-agents/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -185,8 +185,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
10 changes: 5 additions & 5 deletions packages/kernel-browser-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -110,10 +110,10 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vite-plugin-checker": "^0.9.1",
"vite-plugin-static-copy": "^2.3.2",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-static-copy": "^4.0.1",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
12 changes: 9 additions & 3 deletions packages/kernel-browser-runtime/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export const trustedPreludes: PreludeRecord = {
* Paths are relative from the project root directory.
*/
const staticCopyTargets: readonly (string | Target)[] = [
'../../kernel-shims/dist/endoify.js',
{
src: '../../kernel-shims/dist/endoify.js',
dest: './',
rename: { stripBase: true },
},
];

const sourceDir = path.resolve(import.meta.dirname, 'src');
Expand All @@ -53,7 +57,7 @@ export default defineConfig(({ mode }) => {
outDir: buildDir,
// Disable Vite's module preload, which may cause SES-dependent code to run before lockdown.
modulePreload: false,
rollupOptions: {
rolldownOptions: {
input: {
'kernel-worker': path.resolve(
sourceDir,
Expand Down Expand Up @@ -99,7 +103,9 @@ export default defineConfig(({ mode }) => {
jsTrustedPrelude({ trustedPreludes }),
viteStaticCopy({
targets: staticCopyTargets.map((src) =>
typeof src === 'string' ? { src, dest: './' } : src,
typeof src === 'string'
? { src, dest: './', rename: { stripBase: true } }
: src,
),
watch: { reloadPageOnChange: true },
silent: isDev,
Expand Down
8 changes: 4 additions & 4 deletions packages/kernel-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"chokidar": "^4.0.1",
"glob": "^11.0.0",
"serve-handler": "^6.1.6",
"vite": "^7.3.0",
"vite": "^8.0.6",
"yargs": "^17.7.2"
},
"devDependencies": {
Expand All @@ -74,7 +74,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -84,15 +84,15 @@
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-promise": "^7.2.1",
"jsdom": "^27.4.0",
"jsdom": "^29.0.2",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"ses": "^1.14.0",
"turbo": "^2.9.1",
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vitest": "^4.0.16"
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
2 changes: 1 addition & 1 deletion packages/kernel-cli/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig((args) => {
defineProject({
build: {
ssr: true,
rollupOptions: {
rolldownOptions: {
output: {
esModule: true,
},
Expand Down
8 changes: 4 additions & 4 deletions packages/kernel-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -83,16 +83,16 @@
"eslint-plugin-n": "^17.17.0",
"eslint-plugin-prettier": "^5.2.6",
"eslint-plugin-promise": "^7.2.1",
"jsdom": "^27.4.0",
"jsdom": "^29.0.2",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"ses": "^1.14.0",
"turbo": "^2.9.1",
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
6 changes: 3 additions & 3 deletions packages/kernel-language-model-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"@typescript-eslint/utils": "^8.29.0",
"@vitest/eslint-plugin": "^1.6.5",
"@vitest/eslint-plugin": "^1.6.14",
"depcheck": "^1.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
Expand All @@ -117,8 +117,8 @@
"typedoc": "^0.28.1",
"typescript": "~5.8.2",
"typescript-eslint": "^8.29.0",
"vite": "^7.3.0",
"vitest": "^4.0.16"
"vite": "^8.0.6",
"vitest": "^4.1.3"
},
"engines": {
"node": ">=22"
Expand Down
Loading
Loading