mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
openConnect() gives browser apps a pi-ai Models collection: credentials and model catalogs in IndexedDB (Web Locks serialize token refreshes across tabs), OAuth sign-in in pi.dev's popup, the token requests browsers cannot send routed through pi.dev's relay, and support(), which says for every provider and method whether it works in the browser and why not. Auth documents (metadata only, bundled and refreshed from pi.dev) describe the browser tiers; scripts/probe-cors.ts checks them against the providers' endpoints. The relay allowlist in relay.ts is the source pi.dev vendors.
78 lines
4.9 KiB
JSON
78 lines
4.9 KiB
JSON
{
|
|
"name": "pi-monorepo",
|
|
"private": true,
|
|
"type": "module",
|
|
"workspaces": [
|
|
"packages/*",
|
|
"apps/*",
|
|
"packages/coding-agent/examples/extensions/with-deps",
|
|
"packages/coding-agent/examples/extensions/custom-provider-anthropic",
|
|
"packages/coding-agent/examples/extensions/custom-provider-gitlab-duo",
|
|
"packages/coding-agent/examples/extensions/sandbox",
|
|
"packages/coding-agent/examples/extensions/gondolin"
|
|
],
|
|
"scripts": {
|
|
"clean": "npm run clean --workspaces",
|
|
"build": "cd packages/telemetry && npm run build && cd ../chord && npm run build && cd ../tui && npm run build && cd ../codemode && npm run build && cd ../mcp && npm run build && cd ../ai && npm run build && cd ../durable && npm run build && cd ../env && npm run build && cd ../connect && npm run build && cd ../agent && npm run build && cd ../coding-agent && npm run build",
|
|
"build:offline": "cd packages/telemetry && npm run build && cd ../chord && npm run build && cd ../tui && npm run build && cd ../codemode && npm run build && cd ../mcp && npm run build && cd ../ai && npm run build:offline && cd ../durable && npm run build && cd ../env && npm run build && cd ../connect && npm run build && cd ../agent && npm run build && cd ../coding-agent && npm run build",
|
|
"build:native:darwin": "npm --prefix packages/tui run build:native:darwin",
|
|
"build:native:linux": "npm --prefix packages/tui run build:native:linux",
|
|
"build:native:win32": "npm --prefix packages/tui run build:native:win32",
|
|
"check": "node scripts/biome-check.mjs --write && npm run check:pinned-deps && npm run check:runtime-deps && npm run check:ts-imports && npm run check:entry-graphs && npm run check:install-lock:coding-agent && tsc --noEmit && npm run check:browser-smoke",
|
|
"check:browser-smoke": "node scripts/check-browser-smoke.mjs",
|
|
"check:pinned-deps": "node scripts/check-pinned-deps.mjs",
|
|
"check:runtime-deps": "node scripts/check-runtime-deps.mjs",
|
|
"check:package-install": "node scripts/check-package-install.mjs",
|
|
"check:install-lock:coding-agent": "node scripts/generate-coding-agent-install-lock.mjs --check",
|
|
"check:ts-imports": "node scripts/check-ts-relative-imports.mjs",
|
|
"check:entry-graphs": "node scripts/check-entry-graphs.mjs",
|
|
"generate:models": "npm --prefix packages/ai run generate-models",
|
|
"hydrate:model-data": "npm --prefix packages/ai run hydrate-model-data",
|
|
"check:model-data": "npm --prefix packages/ai run check:model-data",
|
|
"generate:model-catalog": "npm --prefix packages/ai run generate-model-catalog",
|
|
"diff:model-catalog": "node scripts/diff-model-catalog.mjs",
|
|
"update:model-catalog-pin": "node scripts/update-model-catalog-pin.mjs",
|
|
"eval": "npm run eval --workspace=@earendil-works/pi-evals --",
|
|
"check:model-catalog": "node scripts/publish-model-catalog.mjs --input .artifacts/model-catalog --dry-run",
|
|
"check:model-catalog-compat": "node scripts/check-model-catalog-compat.mjs",
|
|
"profile:tui": "node scripts/profile-coding-agent-node.mjs --mode tui",
|
|
"profile:rpc": "node scripts/profile-coding-agent-node.mjs --mode rpc",
|
|
"test": "npm run test:scripts && npm run test --workspaces --if-present",
|
|
"test:scripts": "node --test scripts/*.test.mjs scripts/*.test.ts",
|
|
"test:mcp-conformance": "node packages/coding-agent/test/mcp-conformance/run.ts",
|
|
"version:patch": "npm version patch --workspaces --no-git-tag-version --no-workspaces-update && node scripts/sync-versions.js && npm install --package-lock-only --ignore-scripts",
|
|
"version:minor": "npm version minor --workspaces --no-git-tag-version --no-workspaces-update && node scripts/sync-versions.js && npm install --package-lock-only --ignore-scripts",
|
|
"version:major": "npm version major --workspaces --no-git-tag-version --no-workspaces-update && node scripts/sync-versions.js && npm install --package-lock-only --ignore-scripts",
|
|
"version:set": "npm version --workspaces --no-workspaces-update",
|
|
"prepublishOnly": "npm run clean && npm run build && npm run check",
|
|
"publish": "npm run prepublishOnly && node scripts/publish.mjs",
|
|
"publish:dry": "npm run prepublishOnly && node scripts/publish.mjs --dry-run",
|
|
"release:local": "node scripts/local-release.mjs",
|
|
"pack:packages": "node scripts/pack-packages.mjs",
|
|
"install-lock:coding-agent": "node scripts/generate-coding-agent-install-lock.mjs",
|
|
"release:patch": "node scripts/release.mjs patch",
|
|
"release:minor": "node scripts/release.mjs minor",
|
|
"release:major": "node scripts/release.mjs major",
|
|
"release:fix-links": "node scripts/release-notes.mjs fix-github-releases",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@anthropic-ai/sandbox-runtime": "0.0.26",
|
|
"@biomejs/biome": "2.3.5",
|
|
"@biomejs/wasm-nodejs": "2.3.5",
|
|
"@types/node": "22.19.19",
|
|
"esbuild": "0.28.2",
|
|
"husky": "9.1.7",
|
|
"pnpm": "11.15.1",
|
|
"shx": "0.3.4",
|
|
"typescript": "7.0.2",
|
|
"yaml": "2.9.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.19.0"
|
|
},
|
|
"version": "0.0.3",
|
|
"overrides": {
|
|
"protobufjs": "7.6.6"
|
|
}
|
|
}
|