@openbkn/bkn-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/LICENSE +201 -0
- package/README.md +104 -0
- package/README.zh.md +88 -0
- package/dist/chunk-4NXAIG4G.js +4805 -0
- package/dist/chunk-4NXAIG4G.js.map +1 -0
- package/dist/cli.js +2317 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +955 -0
- package/dist/index.js +45 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_BUSINESS_DOMAIN,
|
|
3
|
+
DEFAULT_LIST_LIMIT,
|
|
4
|
+
DEFAULT_QUERY_LIMIT,
|
|
5
|
+
HttpError,
|
|
6
|
+
InputError,
|
|
7
|
+
admin,
|
|
8
|
+
agents,
|
|
9
|
+
auth_exports,
|
|
10
|
+
context,
|
|
11
|
+
createClient,
|
|
12
|
+
dataflows,
|
|
13
|
+
kn,
|
|
14
|
+
models,
|
|
15
|
+
request,
|
|
16
|
+
resolveContext,
|
|
17
|
+
resources,
|
|
18
|
+
skills,
|
|
19
|
+
toolboxes,
|
|
20
|
+
trace,
|
|
21
|
+
vega
|
|
22
|
+
} from "./chunk-4NXAIG4G.js";
|
|
23
|
+
export {
|
|
24
|
+
DEFAULT_BUSINESS_DOMAIN,
|
|
25
|
+
DEFAULT_LIST_LIMIT,
|
|
26
|
+
DEFAULT_QUERY_LIMIT,
|
|
27
|
+
HttpError,
|
|
28
|
+
InputError,
|
|
29
|
+
admin,
|
|
30
|
+
agents,
|
|
31
|
+
auth_exports as auth,
|
|
32
|
+
context,
|
|
33
|
+
createClient,
|
|
34
|
+
dataflows,
|
|
35
|
+
kn,
|
|
36
|
+
models,
|
|
37
|
+
request,
|
|
38
|
+
resolveContext,
|
|
39
|
+
resources,
|
|
40
|
+
skills,
|
|
41
|
+
toolboxes,
|
|
42
|
+
trace,
|
|
43
|
+
vega
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openbkn/bkn-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"openbkn": "./dist/cli.js"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": ["dist", "README.md", "README.zh.md", "LICENSE"],
|
|
22
|
+
"publishConfig": {
|
|
23
|
+
"access": "public"
|
|
24
|
+
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/openbkn-ai/bkn-sdk.git"
|
|
28
|
+
},
|
|
29
|
+
"keywords": ["bkn", "openbkn", "knowledge-network", "cli", "sdk", "typescript"],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsup",
|
|
32
|
+
"dev": "tsup --watch",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"lint": "biome check . && tsc --noEmit",
|
|
35
|
+
"format": "biome format --write .",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"test:cover": "vitest run --coverage",
|
|
38
|
+
"ci": "npm run lint && npm test",
|
|
39
|
+
"prepublishOnly": "npm run ci && npm run build"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@clack/prompts": "^0.9.1",
|
|
43
|
+
"chalk": "^5.4.1",
|
|
44
|
+
"cli-table3": "^0.6.5",
|
|
45
|
+
"commander": "^13.1.0",
|
|
46
|
+
"csv-parse": "^6.2.1",
|
|
47
|
+
"js-yaml": "^4.2.0",
|
|
48
|
+
"jszip": "^3.10.1",
|
|
49
|
+
"zod": "^3.24.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@biomejs/biome": "^1.9.4",
|
|
53
|
+
"@types/js-yaml": "^4.0.9",
|
|
54
|
+
"@types/node": "^22.13.0",
|
|
55
|
+
"tsup": "^8.4.0",
|
|
56
|
+
"typescript": "^5.8.0",
|
|
57
|
+
"vitest": "^3.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|