agent-chat-sdk-core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "agent-chat-sdk-core",
3
+ "version": "0.1.0",
4
+ "description": "智能体(ReAct)流式对话 SDK:调用 SSE 接口、解析服务端分片,并将思考 / 工具调用 / 最终回答推送为标准化事件(UI 无关)",
5
+ "main": "./dist/cjs/index.js",
6
+ "module": "./dist/esm/index.js",
7
+ "types": "./dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/esm/index.d.ts",
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.js",
13
+ "default": "./dist/esm/index.js"
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md",
20
+ "LICENSE",
21
+ "CHANGELOG.md"
22
+ ],
23
+ "scripts": {
24
+ "build": "npm run build:esm && npm run build:cjs",
25
+ "build:esm": "tsc -p tsconfig.build.json",
26
+ "build:cjs": "tsc -p tsconfig.build.cjs.json && node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({ type: 'commonjs' }, null, 2))\"",
27
+ "typecheck": "tsc --noEmit",
28
+ "test": "vitest run",
29
+ "prepublishOnly": "npm run typecheck && npm test && npm run build"
30
+ },
31
+ "sideEffects": false,
32
+ "engines": {
33
+ "node": ">=18"
34
+ },
35
+ "keywords": [
36
+ "agent",
37
+ "chat",
38
+ "sse",
39
+ "streaming",
40
+ "react-agent",
41
+ "llm",
42
+ "sdk",
43
+ "typescript"
44
+ ],
45
+ "author": "paco",
46
+ "license": "MIT",
47
+ "type": "module",
48
+ "devDependencies": {
49
+ "typescript": "^5.9.2",
50
+ "vitest": "^3.2.4"
51
+ }
52
+ }