kimi-code/packages/agent-core-v2/package.json
Haozhe 071d56940f
refactor(agent-core-v2): remove the L0-L7 domain layering and clean up comment conventions (#2451)
* refactor(agent-core-v2): move workspace-domain internals into internal/ dirs

- move sessionLifecycle/addressing into internal/
- move workspaceFs errors/fsProcess/fsSearch/rgLocator/runRg into internal/
- move workspaceMcpConfig/config-loader into internal/
- update import paths in services, index.ts, and tests

* docs(agent-core-v2): strip non-header comments, make headers file-local

- remove all symbol JSDoc and inline // and /* */ comments under src/;
  file-top header comments and directive comments (eslint, @ts-*) are kept
- rewrite file headers to describe only what the file itself does, dropping
  references to other files and see-X / lives-in / consumed-by relationships
- no code changes

* refactor(agent-core-v2): remove the L0-L7 domain layering and its lint guard

- replace check-domain-layers.mjs with check-import-boundaries.mjs,
  keeping only the v1-import ban and the kosong subtree rules
- rename the lint:domain package script to lint:imports
- drop the (Ln) layer label from every file-header identity line
- update AGENTS.md, package docs, and the agent-core-dev skill to match
2026-07-31 13:45:33 +08:00

112 lines
3.1 KiB
JSON

{
"name": "@moonshot-ai/agent-core-v2",
"version": "0.3.0",
"private": true,
"description": "The unified agent engine for Kimi (v2 — DI Scope architecture)",
"license": "MIT",
"author": "Moonshot AI",
"homepage": "https://github.com/MoonshotAI/kimi-code/tree/main/packages/agent-core-v2#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/MoonshotAI/kimi-code.git",
"directory": "packages/agent-core-v2"
},
"bugs": {
"url": "https://github.com/MoonshotAI/kimi-code/issues"
},
"keywords": [
"kimi",
"agent",
"ai",
"llm",
"session",
"tools"
],
"files": [
"dist"
],
"type": "module",
"imports": {
"#/*": "./src/*.ts"
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
},
"./package.json": {
"types": "./package.json",
"default": "./package.json"
},
"./*": {
"types": "./src/*.ts",
"default": "./src/*.ts"
}
},
"scripts": {
"build": "tsdown",
"test": "vitest run",
"typecheck": "tsc -p tsconfig.json --noEmit",
"gen:contract-types": "node scripts/gen-contract-types.mjs",
"gen:config-manifest": "tsx --import ../../build/register-raw-text-loader.mjs scripts/gen-config-manifest.mts",
"gen:wire-manifest": "tsx --import ../../build/register-raw-text-loader.mjs scripts/gen-wire-manifest.mts",
"gen:state-manifest": "tsx scripts/gen-state-manifest.mts",
"lint:imports": "node scripts/check-import-boundaries.mjs",
"clean": "rm -rf dist",
"dep-graph:analyze": "tsx scripts/dep-graph/cli.ts",
"dep-graph:dev": "vite --config scripts/dep-graph/vite.config.ts",
"dep-graph:lint": "tsx scripts/dep-graph/lint.ts"
},
"dependencies": {
"@antfu/utils": "^9.3.0",
"@anthropic-ai/sdk": "^0.95.2",
"@google/genai": "^1.49.0",
"@jsquash/webp": "^1.5.0",
"@modelcontextprotocol/sdk": "^1.29.0",
"@moonshot-ai/kimi-code-oauth": "workspace:^",
"@moonshot-ai/minidb": "workspace:^",
"@moonshot-ai/protocol": "workspace:^",
"@moonshot-ai/tree-sitter-bash": "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",
"openai": "^6.34.0",
"pathe": "^2.0.3",
"picomatch": "^4.0.4",
"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",
"yazl": "^3.3.1",
"zod": "^4.3.6"
},
"devDependencies": {
"@dagrejs/dagre": "^1.1.4",
"@types/js-yaml": "^4.0.9",
"@types/picomatch": "^4.0.3",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@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",
"@vitejs/plugin-react": "^4.4.1",
"@xyflow/react": "^12.4.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"sinon": "^22.0.0",
"ts-morph": "^28.0.0",
"tsx": "^4.21.0",
"vite": "^6.3.3"
}
}