diff --git a/docs/web-automation.md b/docs/web-automation.md index ddba36c..d56dac0 100644 --- a/docs/web-automation.md +++ b/docs/web-automation.md @@ -32,6 +32,16 @@ pnpm approve-builds pnpm rebuild better-sqlite3 esbuild ``` +## Updating CloakBrowser + +```bash +cd ~/.openclaw/workspace/skills/web-automation/scripts +pnpm up cloakbrowser playwright-core +npx cloakbrowser install +pnpm approve-builds +pnpm rebuild better-sqlite3 esbuild +``` + ## System libraries (for OpenClaw Docker builds) ```bash diff --git a/skills/web-automation/SKILL.md b/skills/web-automation/SKILL.md index 33aed7d..4aa3d39 100644 --- a/skills/web-automation/SKILL.md +++ b/skills/web-automation/SKILL.md @@ -32,13 +32,23 @@ pnpm approve-builds pnpm rebuild better-sqlite3 esbuild ``` +## Updating CloakBrowser + +```bash +cd ~/.openclaw/workspace/skills/web-automation/scripts +pnpm up cloakbrowser playwright-core +npx cloakbrowser install +pnpm approve-builds +pnpm rebuild better-sqlite3 esbuild +``` + ## Prerequisite Check (MANDATORY) Before running any automation, verify CloakBrowser and Playwright Core dependencies are installed and scripts are configured to use CloakBrowser. ```bash cd ~/.openclaw/workspace/skills/web-automation/scripts -node -e "require.resolve('cloakbrowser');require.resolve('playwright-core/package.json');console.log('OK: cloakbrowser + playwright-core installed')" +node --input-type=module -e "await import('cloakbrowser');import 'playwright-core';console.log('OK: cloakbrowser + playwright-core installed')" node -e "const fs=require('fs');const t=fs.readFileSync('browse.ts','utf8');if(!/launchPersistentContext\s*from\s*\'cloakbrowser\'/.test(t)){throw new Error('browse.ts is not configured for CloakBrowser')}console.log('OK: CloakBrowser integration detected in browse.ts')" ``` diff --git a/skills/web-automation/scripts/package.json b/skills/web-automation/scripts/package.json index b4a9a54..4c97316 100644 --- a/skills/web-automation/scripts/package.json +++ b/skills/web-automation/scripts/package.json @@ -15,7 +15,7 @@ "cloakbrowser": "^0.3.14", "jsdom": "^24.0.0", "minimist": "^1.2.8", - "playwright-core": "^1.40.0", + "playwright-core": "^1.58.2", "turndown": "^7.1.2", "turndown-plugin-gfm": "^1.0.2" }, diff --git a/skills/web-automation/scripts/pnpm-lock.yaml b/skills/web-automation/scripts/pnpm-lock.yaml index e57ade9..96721ff 100644 --- a/skills/web-automation/scripts/pnpm-lock.yaml +++ b/skills/web-automation/scripts/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: version: 12.6.2 cloakbrowser: specifier: ^0.3.14 - version: 0.3.14(mmdb-lib@3.0.1)(playwright-core@1.57.0) + version: 0.3.14(mmdb-lib@3.0.1)(playwright-core@1.58.2) jsdom: specifier: ^24.0.0 version: 24.1.3 @@ -24,8 +24,8 @@ importers: specifier: ^1.2.8 version: 1.2.8 playwright-core: - specifier: ^1.40.0 - version: 1.57.0 + specifier: ^1.58.2 + version: 1.58.2 turndown: specifier: ^7.1.2 version: 7.2.2 @@ -534,8 +534,8 @@ packages: parse5@7.3.0: resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} - playwright-core@1.57.0: - resolution: {integrity: sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==} + playwright-core@1.58.2: + resolution: {integrity: sha512-yZkEtftgwS8CsfYo7nm0KE8jsvm6i/PTgVtB8DL726wNf6H2IMsDuxCpJj59KDaxCtSnrWan2AeDqM7JBaultg==} engines: {node: '>=18'} hasBin: true @@ -873,12 +873,12 @@ snapshots: chownr@3.0.0: {} - cloakbrowser@0.3.14(mmdb-lib@3.0.1)(playwright-core@1.57.0): + cloakbrowser@0.3.14(mmdb-lib@3.0.1)(playwright-core@1.58.2): dependencies: tar: 7.5.11 optionalDependencies: mmdb-lib: 3.0.1 - playwright-core: 1.57.0 + playwright-core: 1.58.2 combined-stream@1.0.8: dependencies: @@ -1122,7 +1122,7 @@ snapshots: dependencies: entities: 6.0.1 - playwright-core@1.57.0: {} + playwright-core@1.58.2: {} prebuild-install@7.1.3: dependencies: