{
  "name": "pi-unsloth-webtools",
  "version": "0.7.4",
  "type": "module",
  "description": "Pi extension: web_search and web_fetch tools that began as a port of the Unsloth Studio codebase and now diverge from it (multi-engine search, opt-in SSRF guard, HTML-to-Markdown extraction)",
  "main": "index.ts",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/YuGiMob/pi-unsloth-webtools.git"
  },
  "author": "YuGiMob",
  "keywords": [
    "pi-package",
    "pi",
    "coding-agent",
    "extension",
    "web-search",
    "web-fetch",
    "unsloth",
    "duckduckgo",
    "ssrf"
  ],
  "license": "AGPL-3.0",
  "files": [
    "index.ts",
    "config.ts",
    "config-ui.ts",
    "web-search.ts",
    "web-fetch.ts",
    "web-render.ts",
    "web-access.ts",
    "html-to-md.ts",
    "engines.ts",
    "entities.ts",
    "pdf.ts",
    "proxy.ts",
    "user-agents.ts",
    "cache.ts",
    "settings.ts",
    "agent-dir.ts",
    "README.md",
    "LICENSE"
  ],
  "pi": {
    "extensions": [
      "./index.ts"
    ]
  },
  "peerDependencies": {
    "@earendil-works/pi-coding-agent": "*",
    "@earendil-works/pi-tui": "*",
    "typebox": "*"
  },
  "engines": {
    "node": ">=22.19.0"
  },
  "scripts": {
    "test": "vitest run",
    "test:unit": "vitest run --exclude **/smoke.test.ts",
    "test:smoke": "vitest run test/smoke.test.ts",
    "typecheck": "tsc --noEmit",
    "check:package": "node -e \"const fs=require('fs');const pkg=require('./package.json');const listed=new Set(pkg.files);const bad=[];for(const f of pkg.files){if(!fs.existsSync(f))bad.push('missing file: '+f)}for(const f of fs.readdirSync('.').filter(f=>f.endsWith('.ts'))){if(!listed.has(f))bad.push('unlisted source: '+f)}if(bad.length){console.error(bad.join('\\n'));process.exit(1)}\"",
    "prepublishOnly": "npm run typecheck && npm run lint && npm run test:unit && npm run check:package && npm run check:publint",
    "lint": "oxlint .",
    "check:publint": "publint",
    "check:attw": "attw --pack"
  },
  "devDependencies": {
    "@earendil-works/pi-coding-agent": "^0.84.0",
    "@types/node": "^24.0.0",
    "typebox": "^1.3.7",
    "typescript": "~5.9.3",
    "vitest": "^4.1.9",
    "@arethetypeswrong/cli": "^0.18.5",
    "oxlint": "^1.81.0",
    "publint": "^0.3.24"
  },
  "optionalDependencies": {
    "mupdf": "^1.28.0"
  }
}
