mirror of
https://github.com/codeany-ai/open-agent-sdk-typescript.git
synced 2026-04-25 07:00:49 +09:00
85dff47d74
- Add skill system with types, registry, SkillTool, and 5 bundled skills
(simplify, commit, review, debug, test)
- Integrate hooks into QueryEngine at 9 lifecycle points (SessionStart,
UserPromptSubmit, PreToolUse, PostToolUse, PostToolUseFailure,
PreCompact, PostCompact, Stop, SessionEnd)
- Add LLM provider abstraction supporting both Anthropic Messages API
and OpenAI Chat Completions API (works with GPT, DeepSeek, Qwen, etc.)
- Add CODEANY_API_TYPE env var ('anthropic-messages' | 'openai-completions')
with auto-detection from model name
- Remove all ANTHROPIC_* env var references, only support CODEANY_* prefix
- Add model pricing and context windows for OpenAI/DeepSeek models
- Remove direct @anthropic-ai/sdk dependency from all files except the
Anthropic provider (types.ts, engine.ts, etc. are now provider-agnostic)
- Add PermissionBehavior type export
- Bump version to 0.2.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"name": "@codeany/open-agent-sdk",
|
|
"author": {
|
|
"name": "CodeAny",
|
|
"url": "https://codeany.ai"
|
|
},
|
|
"homepage": "https://github.com/codeany-ai/open-agent-sdk-typescript",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/codeany-ai/open-agent-sdk-typescript.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/codeany-ai/open-agent-sdk-typescript/issues"
|
|
},
|
|
"version": "0.2.0",
|
|
"description": "Open-source Agent SDK. Runs the full agent loop in-process — no local CLI required. Deploy anywhere: cloud, serverless, Docker, CI/CD.",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "npx tsx examples/01-simple-query.ts",
|
|
"test:all": "for f in examples/*.ts; do echo \"--- Running $f ---\"; npx tsx $f; echo; done",
|
|
"web": "npx tsx examples/web/server.ts"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.52.0",
|
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
"zod": "^3.23.0",
|
|
"zod-to-json-schema": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0"
|
|
},
|
|
"keywords": [
|
|
"open-agent-sdk",
|
|
"codeany",
|
|
"agent",
|
|
"sdk",
|
|
"ai",
|
|
"llm",
|
|
"tools",
|
|
"agentic",
|
|
"coding-agent",
|
|
"mcp"
|
|
],
|
|
"license": "MIT"
|
|
}
|