mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
* fix(agents): initialize transport hooks at execution boundaries Keep catalog compatibility on a narrow internal import and install the existing transport host before session dispatch or completion preparation. Direct SDK completions now apply provider stream wrappers before sending a request, with owner and cancellation checks after initialization. * build(ai): emit the model compatibility entrypoint * perf: isolate catalog workers from unused execution code Use explicit catalog plugin owners without automatic agent slots. Load Ollama payload helpers when their streams run and acquire the TypeScript compiler only when a typed module is actually compiled. * test(agents): exercise admitted compaction cancellation Cancel the manual compaction after its provider is admitted so its exact rejection remains observable. Assert that cancellation before dispatch never calls the provider again.
143 lines
4.2 KiB
JSON
143 lines
4.2 KiB
JSON
{
|
|
"name": "@openclaw/ai",
|
|
"version": "2026.9.4",
|
|
"description": "Reusable model provider adapters and streaming runtime from OpenClaw",
|
|
"keywords": [
|
|
"ai",
|
|
"anthropic",
|
|
"google",
|
|
"llm",
|
|
"mistral",
|
|
"openai",
|
|
"streaming"
|
|
],
|
|
"homepage": "https://github.com/openclaw/openclaw#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/openclaw/openclaw/issues"
|
|
},
|
|
"license": "MIT",
|
|
"author": "OpenClaw Foundation (https://openclaw.org)",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/openclaw/openclaw.git",
|
|
"directory": "packages/ai"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"LICENSE",
|
|
"README.md"
|
|
],
|
|
"type": "module",
|
|
"main": "./dist/index.mjs",
|
|
"types": "./dist/index.d.mts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"import": "./dist/index.mjs",
|
|
"default": "./dist/index.mjs"
|
|
},
|
|
"./providers": {
|
|
"types": "./dist/providers.d.mts",
|
|
"import": "./dist/providers.mjs",
|
|
"default": "./dist/providers.mjs"
|
|
},
|
|
"./transports": {
|
|
"types": "./dist/transports.d.mts",
|
|
"import": "./dist/transports.mjs",
|
|
"default": "./dist/transports.mjs"
|
|
},
|
|
"./diagnostics": {
|
|
"types": "./dist/diagnostics.d.mts",
|
|
"import": "./dist/diagnostics.mjs",
|
|
"default": "./dist/diagnostics.mjs"
|
|
},
|
|
"./event-stream": {
|
|
"types": "./dist/event-stream.d.mts",
|
|
"import": "./dist/event-stream.mjs",
|
|
"default": "./dist/event-stream.mjs"
|
|
},
|
|
"./types": {
|
|
"types": "./dist/types.d.mts",
|
|
"import": "./dist/types.mjs",
|
|
"default": "./dist/types.mjs"
|
|
},
|
|
"./provider-types": {
|
|
"types": "./dist/provider-types.d.mts",
|
|
"import": "./dist/provider-types.mjs",
|
|
"default": "./dist/provider-types.mjs"
|
|
},
|
|
"./validation": {
|
|
"types": "./dist/validation.d.mts",
|
|
"import": "./dist/validation.mjs",
|
|
"default": "./dist/validation.mjs"
|
|
},
|
|
"./internal/anthropic": {
|
|
"types": "./dist/internal/anthropic.d.mts",
|
|
"import": "./dist/internal/anthropic.mjs",
|
|
"default": "./dist/internal/anthropic.mjs"
|
|
},
|
|
"./internal/google-model-family": {
|
|
"types": "./dist/internal/google-model-family.d.mts",
|
|
"import": "./dist/internal/google-model-family.mjs",
|
|
"default": "./dist/internal/google-model-family.mjs"
|
|
},
|
|
"./internal/openai": {
|
|
"types": "./dist/internal/openai.d.mts",
|
|
"import": "./dist/internal/openai.mjs",
|
|
"default": "./dist/internal/openai.mjs"
|
|
},
|
|
"./internal/openai-completions-compat": {
|
|
"types": "./dist/internal/openai-completions-compat.d.mts",
|
|
"import": "./dist/internal/openai-completions-compat.mjs",
|
|
"default": "./dist/internal/openai-completions-compat.mjs"
|
|
},
|
|
"./internal/openai-responses-payload-policy": {
|
|
"types": "./dist/internal/openai-responses-payload-policy.d.mts",
|
|
"import": "./dist/internal/openai-responses-payload-policy.mjs",
|
|
"default": "./dist/internal/openai-responses-payload-policy.mjs"
|
|
},
|
|
"./internal/retry-after": {
|
|
"types": "./dist/internal/retry-after.d.mts",
|
|
"import": "./dist/internal/retry-after.mjs",
|
|
"default": "./dist/internal/retry-after.mjs"
|
|
},
|
|
"./internal/runtime": {
|
|
"types": "./dist/internal/runtime.d.mts",
|
|
"import": "./dist/internal/runtime.mjs",
|
|
"default": "./dist/internal/runtime.mjs"
|
|
},
|
|
"./internal/shared": {
|
|
"types": "./dist/internal/shared.d.mts",
|
|
"import": "./dist/internal/shared.mjs",
|
|
"default": "./dist/internal/shared.mjs"
|
|
},
|
|
"./internal/tool-schema": {
|
|
"types": "./dist/internal/tool-schema.d.mts",
|
|
"import": "./dist/internal/tool-schema.mjs",
|
|
"default": "./dist/internal/tool-schema.mjs"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "0.124.0",
|
|
"@google/genai": "2.21.0",
|
|
"@mistralai/mistralai": "2.6.4",
|
|
"openai": "7.10.0",
|
|
"partial-json": "0.1.7",
|
|
"typebox": "1.3.27"
|
|
},
|
|
"devDependencies": {
|
|
"@openclaw/model-catalog-core": "workspace:*",
|
|
"@openclaw/normalization-core": "workspace:*"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.19.0"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"openclaw": {
|
|
"release": {
|
|
"publishToNpm": true
|
|
}
|
|
}
|
|
}
|