2026-03-12 21:55:17 -06:00
|
|
|
{
|
2026-04-15 22:56:33 +02:00
|
|
|
"name": "@singularity-forge/pi-ai",
|
2026-04-17 17:26:31 +00:00
|
|
|
"version": "2.75.0",
|
2026-03-12 21:55:17 -06:00
|
|
|
"description": "Unified LLM API (vendored from pi-mono)",
|
|
|
|
|
"type": "module",
|
|
|
|
|
"main": "./dist/index.js",
|
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
|
"exports": {
|
|
|
|
|
".": {
|
|
|
|
|
"types": "./dist/index.d.ts",
|
|
|
|
|
"import": "./dist/index.js"
|
|
|
|
|
},
|
|
|
|
|
"./oauth": {
|
|
|
|
|
"types": "./dist/oauth.d.ts",
|
|
|
|
|
"import": "./dist/oauth.js"
|
|
|
|
|
},
|
|
|
|
|
"./bedrock-provider": {
|
|
|
|
|
"types": "./bedrock-provider.d.ts",
|
|
|
|
|
"import": "./bedrock-provider.js"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"scripts": {
|
|
|
|
|
"build": "tsc -p tsconfig.json"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@anthropic-ai/sdk": "^0.73.0",
|
feat: add anthropic-vertex provider for Claude on Vertex AI (#1533)
* feat: add anthropic-vertex provider for Claude models on Google Vertex AI
Add a new anthropic-vertex provider that enables using Claude models
(Opus 4.6, Sonnet 4.6, Haiku 4.5) through Google Vertex AI using the
@anthropic-ai/vertex-sdk package. Follows the same pattern as the
existing google/google-vertex provider split.
Detection uses ANTHROPIC_VERTEX_PROJECT_ID (same env var as Claude Code)
with CLOUD_ML_REGION for region selection, falling back to us-central1.
Extracts shared Anthropic utilities into anthropic-shared.ts (message
conversion, tool conversion, param building, stream processing) to
avoid duplication between anthropic.ts and anthropic-vertex.ts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add full Claude model set for anthropic-vertex provider
Add 200K context window variants for Opus 4.6 and Sonnet 4.6, plus
older models (Sonnet 4.5, Sonnet 4, Opus 4.5, Opus 4.1, Opus 4, Haiku 4.5).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: add @anthropic-ai/vertex-sdk to root dependencies
Required for the published package to resolve the vertex SDK at runtime.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove unnecessary comments to match codebase style
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: remove duplicate stream functions after rebase
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Nathan Roe <nathan.roe@carvana.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 01:14:13 -04:00
|
|
|
"@anthropic-ai/vertex-sdk": "^0.14.4",
|
2026-03-12 21:55:17 -06:00
|
|
|
"@aws-sdk/client-bedrock-runtime": "^3.983.0",
|
pi-ai: add @google/gemini-cli-core@0.38.2 dependency + refactor plan
Installs Google's official core library that powers the `gemini` CLI
binary. This is the first step of re-platforming pi-ai's
`google-gemini-cli` provider to use cli-core's transport instead of
handwritten fetch() calls against cloudcode-pa.googleapis.com.
Why:
- cli-core requests are byte-for-byte identical to the official
gemini CLI — preserves Google's subsidised free-OAuth quota and
eliminates bot-detection drift risk from our reverse-engineered
User-Agent / Client-Metadata headers.
- Auto-inherit upstream improvements (new tool formats, grounding,
session caching, quota displays) on `npm update`.
- The `genai-proxy` extension (localhost proxy for gemini-cli-format
clients) becomes "the CLI, but programmable" — same upstream
behavior, hookable SF routing underneath.
Auth model (unchanged for users):
- User runs the real `gemini` CLI once to OAuth; credentials land
in ~/.gemini/oauth_creds.json (or keychain on newer installs).
- SF reads those credentials via cli-core's own storage helpers;
no SF-side OAuth flow, no separate login.
Scope for this commit: dependency only. The transport refactor
(replacing the fetch() calls in google-gemini-cli.ts with
CodeAssistServer.generateContentStream()) is queued as the next
task and documented in google-gemini-cli-core-plan.md with a
detailed API map, two integration strategies (transport-only vs
full cli-core auth), and a step-by-step implementation checklist.
Note: this commit adds 66 transitive deps to pi-ai (ajv, zod,
glob, mime, open, etc.). google-antigravity provider stays on
handwritten code — different sandbox endpoints, different auth
contract, not in cli-core's scope.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 10:33:22 +02:00
|
|
|
"@google/gemini-cli-core": "0.38.2",
|
2026-03-12 21:55:17 -06:00
|
|
|
"@google/genai": "^1.40.0",
|
2026-03-17 18:29:31 -06:00
|
|
|
"@mistralai/mistralai": "^1.14.1",
|
2026-03-12 21:55:17 -06:00
|
|
|
"@sinclair/typebox": "^0.34.41",
|
|
|
|
|
"ajv": "^8.17.1",
|
|
|
|
|
"ajv-formats": "^3.0.1",
|
|
|
|
|
"chalk": "^5.6.2",
|
2026-05-02 06:19:52 +02:00
|
|
|
"gaxios": "^6",
|
2026-04-30 07:41:24 +02:00
|
|
|
"jsonrepair": "^3.14.0",
|
2026-03-17 18:29:31 -06:00
|
|
|
"openai": "^6.26.0",
|
2026-03-12 21:55:17 -06:00
|
|
|
"proxy-agent": "^6.5.0",
|
2026-03-14 10:45:52 -06:00
|
|
|
"undici": "^7.24.2",
|
2026-04-30 07:41:24 +02:00
|
|
|
"yaml": "^2.8.3",
|
2026-03-12 21:55:17 -06:00
|
|
|
"zod-to-json-schema": "^3.24.6"
|
2026-03-16 12:27:00 -04:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@smithy/node-http-handler": "^4.5.0"
|
2026-05-02 06:18:25 +02:00
|
|
|
},
|
|
|
|
|
"engines": {
|
|
|
|
|
"node": ">=24.0.0"
|
2026-03-12 21:55:17 -06:00
|
|
|
}
|
|
|
|
|
}
|