@tbox-dev-js/sdk 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/LEGAL.md +7 -0
- package/README.md +222 -0
- package/config/knowledge.json +41 -0
- package/dist/amap.d.ts +373 -0
- package/dist/app.d.ts +47 -0
- package/dist/constant.d.ts +9 -0
- package/dist/conversation.d.ts +112 -0
- package/dist/core.d.ts +79 -0
- package/dist/error.d.ts +71 -0
- package/dist/http.d.ts +43 -0
- package/dist/index.cjs +2981 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.esm.js +2951 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/knowledge-client.d.ts +160 -0
- package/dist/knowledge.d.ts +185 -0
- package/dist/llm.d.ts +121 -0
- package/dist/plugin.d.ts +118 -0
- package/dist/resource.d.ts +11 -0
- package/dist/resources/knowledge/documents.d.ts +24 -0
- package/dist/resources/knowledge/index.d.ts +28 -0
- package/dist/resources/knowledge/schema.d.ts +9 -0
- package/dist/resources/knowledge/types.d.ts +117 -0
- package/dist/schema.d.ts +104 -0
- package/dist/tbox-api.d.ts +17 -0
- package/dist/types.d.ts +1415 -0
- package/package.json +61 -0
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tbox-dev-js/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "百宝箱平台 JavaScript SDK — 知识库、插件、会话等服务的统一客户端",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.esm.js",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"config",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LEGAL.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rollup -c",
|
|
24
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"clean": "rm -rf dist",
|
|
27
|
+
"prepublishOnly": "npm run clean && npm run typecheck && npm run build",
|
|
28
|
+
"publish:dry": "npm publish --dry-run --access public",
|
|
29
|
+
"publish:npm": "npm publish --access public",
|
|
30
|
+
"version:patch": "npm version patch --no-git-tag-version",
|
|
31
|
+
"version:minor": "npm version minor --no-git-tag-version",
|
|
32
|
+
"version:major": "npm version major --no-git-tag-version"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://code.alipay.com/tbox-vibe-template/tbox-js"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://code.alipay.com/tbox-vibe-template/tbox-js#readme",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://code.alipay.com/tbox-vibe-template/tbox-js/issues"
|
|
41
|
+
},
|
|
42
|
+
"author": "whx2010nj",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
45
|
+
"rollup": "^4.18.0",
|
|
46
|
+
"tslib": "^2.6.3",
|
|
47
|
+
"typescript": "^5.4.5"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=16.0.0"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"tbox",
|
|
54
|
+
"sdk",
|
|
55
|
+
"knowledge-base",
|
|
56
|
+
"ai",
|
|
57
|
+
"baobao",
|
|
58
|
+
"plugin"
|
|
59
|
+
],
|
|
60
|
+
"license": "MIT"
|
|
61
|
+
}
|