Files
ruflo/v3/@claude-flow/browser/package.json
T
ruv 5fedd1d022 feat(browser): #2041 ADR-122 Phase 0 + Phase 1 — agent-browser 0.27 + signed trajectories
Phase 0 (convergence):
- Bump agent-browser dep ^0.6.0 → ^0.27.0 (21-minor drift closed)
- Package version → 3.0.0-alpha.4
- Adapter already had full 0.27 surface (find/mouse/set/network/tabs/etc.)

Phase 1 (beyond-SOTA wedge: signed trajectory containers):
- domain/signed-trajectory.ts — envelope schema + replay types
- infrastructure/witness-signer.ts — Ed25519 sign/verify via node:crypto
- application/signed-trajectory-service.ts — seal/verify/replay-plan/replay-delta
- BrowserService.endTrajectory now optionally seals via signTrajectories:true
- 19 new tests: round-trip, tamper detection, trust list, replay planning,
  delta detection, determinism. 147/147 tests passing.

Acceptance (Phase 1):
- record → sign → distribute → verify round-trips
- forging a step/goal/screenshot-hash breaks verify (signature invalid)
- trust-list filtering accepts/rejects by signer public key
- replay planning applies replaceStepInput + skipSteps mutations
- buildReplayDelta detects action drift + outcome drift

Beyond SOTA: no other web agent (Surfer-H, Browser Use, Stagehand, Operator,
Skyvern) ships cryptographic provenance for AI browsing sessions.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-05-18 19:28:31 -04:00

57 lines
1.7 KiB
JSON

{
"name": "@claude-flow/browser",
"version": "3.0.0-alpha.4",
"description": "Browser automation for AI agents - integrates agent-browser with claude-flow swarms",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./mcp-tools": "./dist/mcp-tools/index.js",
"./skill": "./dist/skill/index.js",
"./agent": "./dist/agent/index.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "vitest run tests/e2e",
"lint": "eslint src/",
"typecheck": "tsc --noEmit",
"postinstall": "node -e \"const{execSync}=require('child_process');try{execSync('agent-browser --version',{stdio:'ignore'});}catch{console.log('\\n📦 Installing agent-browser globally...');try{execSync('npm install -g agent-browser@latest',{stdio:'inherit'});console.log('✅ agent-browser installed successfully!');}catch(e){console.log('⚠️ Could not install agent-browser globally. Run manually:\\n npm install -g agent-browser@latest');}}\""
},
"dependencies": {
"agent-browser": "^0.27.0",
"agentic-flow": "^2.0.3",
"zod": "^3.22.4"
},
"peerDependencies": {
"@claude-flow/cli": ">=3.5.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
"typescript": "^5.3.0",
"vitest": "^4.0.16"
},
"keywords": [
"browser",
"automation",
"ai-agent",
"claude-flow",
"playwright",
"web-scraping",
"testing"
],
"author": "ruvnet",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ruvnet/claude-flow.git",
"directory": "v3/@claude-flow/browser"
},
"engines": {
"node": ">=18.0.0"
}
}