Files
ruflo/v3/@claude-flow/browser/package.json
ruv 7307d1d86a chore(release): move 18 internal leaf packages from alpha to stable semver
Every @claude-flow/* leaf still on X.Y.Z-alpha.N moves to its stable X.Y.Z
(3.0.0, cli-core 3.7.0, the two plugins 1.0.0), matching the public train's
move to stable at 3.7.0. @claude-flow/embeddings is deliberately excluded:
its registry `latest` (3.0.0-alpha.45) was built from a branch not on main,
and publishing from main would drop 139 exported names.

Validated before publish:
- API surface: each package's main build compared against its published
  `latest` tarball (files, exports/bin keys, exported names). All 18 are
  equal-or-superset; no export removed.
- Every package builds; ~7.8k tests across 17 suites pass (cli-core has no
  suite of its own and is exercised through the CLI's).

Packaging fixes made along the way:
- publishConfig.tag v3alpha/alpha removed so stable versions land on
  `latest` rather than only the legacy channel tag.
- `files` allowlists (dist + README) on the 7 packages that had none. Their
  published tarballs shipped local runtime state: .claude-flow daemon logs
  and pids, settings.json, .swarm/memory.db, headless-worker prompt logs.
  A secret scan of every affected published version found no credentials.
  mcp shrinks from 335 files to 70, and no longer ships the .claude/
  helpers copy that #3411 concerned.
- plugins/providers/testing pointed every `types` condition at a
  nonexistent `.d.js` file; now `.d.ts`, so consumer type resolution works.
- Removed three subpath exports whose targets were never built (plugins
  ./examples/*, performance ./benchmarks/*); they could only throw
  ERR_MODULE_NOT_FOUND.
- Intra-leaf ranges normalised to ^<stable>, including a `file:../security`
  and a `workspace:*` devDependency that npm publish would ship verbatim.

Security: harden attention toSQL against injection (plugins)
The 13 attention SQL builders interpolated caller-supplied vectors and
config values into SQL that AttentionExecutor executes. TypeScript types do
not exist at runtime, so a string element could break out of the quoted
vector literal. Every interpolated value is now proven finite-numeric or
boolean. A differential run of 195 legitimate inputs across all 13
mechanisms produced byte-identical SQL; the new test fails 11/13 on the
original code (which emitted DROP TABLE for 5 payloads) and passes 13/13.

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-09-28 16:54:24 -04:00

86 lines
2.5 KiB
JSON

{
"name": "@claude-flow/browser",
"version": "3.0.0",
"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"
},
"files": [
"dist",
"README.md"
],
"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.37.1",
"agentic-flow": "^2.0.13",
"zod": "^3.22.4"
},
"overrides": {
"@opentelemetry/sdk-node": ">=0.218.0",
"@opentelemetry/auto-instrumentations-node": ">=0.75.0",
"@opentelemetry/exporter-prometheus": ">=0.217.0",
"@opentelemetry/core": "1.25.1",
"@opentelemetry/resources": "1.25.1",
"@opentelemetry/sdk-trace-base": "1.25.1",
"axios": ">=1.13.2",
"fast-uri": ">=3.1.0",
"hono": ">=4.11.4",
"@hono/node-server": ">=1.19.10",
"path-to-regexp": ">=8.2.1",
"undici": ">=7.18.0",
"minimatch": ">=10.0.0",
"@isaacs/brace-expansion": ">=5.0.1",
"picomatch": ">=4.0.3",
"flatted": ">=3.4.0",
"tar": ">=7.5.11",
"cacache": ">=20.0.0",
"make-fetch-happen": ">=15.0.0",
"express-rate-limit": ">=8.4.1",
"protobufjs": ">=7.5.5",
"vite": ">=6.4.6",
"ws": ">=8.18.4"
},
"peerDependencies": {
"@claude-flow/cli": ">=3.5.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
"typescript": "^5.3.0",
"vitest": "^4.1.0"
},
"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"
}
}