Add unit tests for skill capabilities, skill planner, and UV setup
- Implement tests for random ID generation, ensuring preference for crypto.randomUUID. - Create tests for runtime context capabilities, validating the injection of enabled skill capabilities. - Add tests for skill capability parsing, including classification and command example extraction. - Introduce tests for the skill planner, verifying tool call planning based on user requests and attachment requirements. - Establish tests for UV setup, ensuring proper handling of Python installation scenarios and environment checks.
This commit is contained in:
@@ -6,11 +6,12 @@
|
||||
"main": "dist-electron/main/main.js",
|
||||
"scripts": {
|
||||
"init": "pnpm install && pnpm run uv:download",
|
||||
"prepackage": "node scripts/ensure-bundled-runtime-binaries.mjs",
|
||||
"predev": "zx scripts/prepare-preinstalled-skills-dev.mjs",
|
||||
"prestart": "zx scripts/prepare-preinstalled-skills-dev.mjs",
|
||||
"dev": "vite",
|
||||
"start": "vite",
|
||||
"build": "vite build && node scripts/bundle-openclaw.mjs && zx scripts/bundle-preinstalled-skills.mjs && electron-builder",
|
||||
"build": "pnpm run package && electron-builder",
|
||||
"build:vite": "vite build",
|
||||
"test": "vitest run",
|
||||
"smoke:agents": "node scripts/agents-runtime-smoke.mjs",
|
||||
@@ -25,7 +26,7 @@
|
||||
"uv:download:all": "zx scripts/download-bundled-uv.mjs --all",
|
||||
"node:download:win": "zx scripts/download-bundled-node.mjs --platform=win",
|
||||
"prep:win-binaries": "pnpm run uv:download:win && pnpm run node:download:win",
|
||||
"package:win": "pnpm run prep:win-binaries && pnpm run package && electron-builder --win --publish never",
|
||||
"package:win": "pnpm run package && electron-builder --win --publish never",
|
||||
"package:mac": "pnpm run package && electron-builder --mac --publish never",
|
||||
"package:mac:local": "SKIP_AFTERPACK_CLEANUP=1 pnpm run package && electron-builder --mac --publish never",
|
||||
"package:mac:x64": "pnpm run package && electron-builder --mac --x64 --publish never",
|
||||
@@ -140,6 +141,7 @@
|
||||
"ts-node": "^10.9.2",
|
||||
"use-stick-to-bottom": "^1.1.3",
|
||||
"uuid": "^13.0.0",
|
||||
"xlsx": "^0.18.5",
|
||||
"zustand": "^5.0.12",
|
||||
"zx": "^8.8.5"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user