mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
* feat(kosong): classify HTTP 413 request-body-too-large as a dedicated error type * feat(agent-core): lower default image downscale cap to 2000px and make it configurable * feat(agent-core): strip media to text markers and retry when the compaction request is too large * feat(agent-core): cap model-initiated image reads with a configurable byte budget * feat(agent-core): resend with degraded media when the provider rejects the request body as too large * test(agent-core): add explicit timeouts to encode-heavy image budget tests * feat: add WebP decoding support with wasm integration - Introduced a new WebP decoding module using @jsquash/webp's wasm decoder. - Implemented functions to decode WebP images and check for animated WebP formats. - Updated image compression tests to include scenarios for WebP handling, including encoding and decoding. - Enhanced error handling for API request size limits to accommodate various error messages. - Updated pnpm lockfile to include new dependencies for WebP encoding and decoding. * chore(changeset): consolidate this PR's entries into one * fix(nix): update pnpmDeps hash for merged lockfile * feat(agent-core): refuse HEIC/HEIF reads with platform-matched conversion guidance
106 lines
No EOL
2.5 KiB
JSON
106 lines
No EOL
2.5 KiB
JSON
{
|
|
"name": "@moonshot-ai/agent-core",
|
|
"version": "0.15.3",
|
|
"private": true,
|
|
"description": "The unified agent engine for Kimi",
|
|
"license": "MIT",
|
|
"author": "Moonshot AI",
|
|
"homepage": "https://github.com/MoonshotAI/kimi-code/tree/main/packages/agent-core#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/MoonshotAI/kimi-code.git",
|
|
"directory": "packages/agent-core"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/MoonshotAI/kimi-code/issues"
|
|
},
|
|
"keywords": [
|
|
"kimi",
|
|
"agent",
|
|
"ai",
|
|
"llm",
|
|
"session",
|
|
"tools"
|
|
],
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": [
|
|
"./src/*.ts",
|
|
"./src/*/index.ts"
|
|
]
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./package.json": {
|
|
"types": "./package.json",
|
|
"default": "./package.json"
|
|
},
|
|
"./session/store": {
|
|
"types": "./src/session/store/index.ts",
|
|
"default": "./src/session/store/index.ts"
|
|
},
|
|
"./*": {
|
|
"types": "./src/*.ts",
|
|
"default": "./src/*.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"test": "vitest run",
|
|
"test:baseline": "vitest run",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@antfu/utils": "^9.3.0",
|
|
"@jsquash/webp": "^1.5.0",
|
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
"@moonshot-ai/kaos": "workspace:^",
|
|
"@moonshot-ai/kimi-code-oauth": "workspace:^",
|
|
"@moonshot-ai/kosong": "workspace:^",
|
|
"@moonshot-ai/protocol": "workspace:^",
|
|
"@mozilla/readability": "^0.6.0",
|
|
"ajv": "^8.18.0",
|
|
"ajv-formats": "^3.0.1",
|
|
"chokidar": "^4.0.3",
|
|
"ignore": "^5.3.2",
|
|
"jimp": "^1.6.1",
|
|
"js-yaml": "^4.1.1",
|
|
"linkedom": "^0.18.12",
|
|
"node-pty": "^1.1.0",
|
|
"nunjucks": "^3.2.4",
|
|
"open": "^10.2.0",
|
|
"pathe": "^2.0.3",
|
|
"picomatch": "^4.0.4",
|
|
"proper-lockfile": "^4.1.2",
|
|
"regexp.escape": "^2.0.1",
|
|
"retry": "0.13.1",
|
|
"smol-toml": "^1.6.1",
|
|
"socks": "^2.8.9",
|
|
"tar": "^7.5.13",
|
|
"ulid": "^3.0.1",
|
|
"undici": "^7.27.1",
|
|
"yauzl": "^3.3.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/nunjucks": "^3.2.6",
|
|
"@types/picomatch": "^4.0.3",
|
|
"@types/proper-lockfile": "^4.1.4",
|
|
"@types/regexp.escape": "^2.0.0",
|
|
"@types/retry": "0.12.0",
|
|
"@types/sinon": "^21.0.1",
|
|
"@types/tar": "^7.0.87",
|
|
"@types/yauzl": "^2.10.3",
|
|
"@types/yazl": "^2.4.6",
|
|
"sinon": "^22.0.0",
|
|
"yazl": "^3.3.1"
|
|
}
|
|
} |