pextacy 1d9c55d131 feat(oss-fund): fund maintainers your dependency tree leans on
Add @settlekit/oss-fund: read package.json / requirements.txt (+ optional
lockfile), map the (transitive) dependency graph to maintainer wallets, and
split a small monthly budget across them — settled over the existing
nanopayment spine (payee-registry, x402 Settler, RecursiveSplitDistributor).

The allocation is the core: an engine weighs four signals per package —
directness, reach (criticality), usage, and maintainer underfunding — and the
capability layer converts a proposed weighting into a conserved integer
allocation (legs sum to the budget exactly, only resolvable wallets paid,
unregistered maintainers earmarked to escrow). Two engines, mirroring the paying
agent: a deterministic heuristic (default/CI) and a Claude (claude-opus-4-8)
tool-use brain that proposes weights under the same enforced policy.

- packages/oss-fund: manifest/lockfile parsing, graph + reach, signals,
  resolver, conserved allocation, heuristic + Claude engines, settlement +
  on-chain distributor calldata, realistic seed, CLI, tests (12 passing).
- apps/api: public PUBLIC routes GET /v1/fund/demo and POST /v1/fund/plan.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-19 13:11:38 +03:00

37 lines
829 B
JSON

{
"name": "@settlekit/oss-fund",
"version": "0.0.0",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"oss-fund": "./dist/cli.js"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": ["dist"],
"scripts": {
"build": "tsc -b",
"demo": "node dist/cli.js",
"test": "vitest run"
},
"dependencies": {
"@settlekit/common": "workspace:*",
"@settlekit/platform-billing": "workspace:*",
"@settlekit/payee-registry": "workspace:*",
"@settlekit/x402": "workspace:*",
"@settlekit/x402-client": "workspace:*",
"@anthropic-ai/sdk": "^0.65.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/node": "^20.14.0",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
}
}