Files
cursor2api/package.json
chinadoiphin eae3760dfc v2.6.5: 流式 thinking 修复 + XOR 混淆 + 中性工作区动作策略
- 修复流式 thinking block 类型冲突(缓冲后处理保证 thinking→text 顺序)
- 多 thinking block 合并为单个 content block(符合 Anthropic API 规范)
- 反拒绝策略重构:移除 Testing Assistant 身份声明,改用中性 workspace action 格式
- 敏感字符串从 Base64 迁移至 XOR 混淆(16字节轮转密钥,模型无法心算解码)
- 子 Agent 清洗增强:新增 claude_background_info/env 标签剥离
- Unicode 撇号兼容 + 全局 Claude/Anthropic 引用清洗兜底
2026-03-15 11:14:19 +08:00

35 lines
1.1 KiB
JSON

{
"name": "cursor2api",
"version": "2.6.5",
"description": "Proxy Cursor docs AI to Anthropic Messages API for Claude Code",
"type": "module",
"scripts": {
"dev": "tsx watch src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"test:unit": "node test/unit-tolerant-parse.mjs",
"test:tool-fixer": "node test/unit-tool-fixer.mjs",
"test:openai-compat": "node test/unit-openai-compat.mjs",
"test:all": "node test/unit-tolerant-parse.mjs && node test/unit-tool-fixer.mjs && node test/unit-openai-compat.mjs && node test/unit-proxy-agent.mjs",
"test:e2e": "node test/e2e-chat.mjs",
"test:agentic": "node test/e2e-agentic.mjs"
},
"dependencies": {
"dotenv": "^16.5.0",
"eventsource-parser": "^3.0.1",
"express": "^5.1.0",
"tesseract.js": "^7.0.0",
"undici": "^7.22.0",
"uuid": "^11.1.0",
"yaml": "^2.7.1"
},
"devDependencies": {
"@types/express": "^5.0.2",
"@types/node": "^22.15.0",
"@types/uuid": "^10.0.0",
"ts-node": "^10.9.2",
"tsx": "^4.19.0",
"typescript": "^5.8.0"
}
}