@openbkn/bkn-sdk 0.1.1-alpha.15 → 0.1.1-alpha.16
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/NOTICE +31 -0
- package/dist/{chunk-KF3J46WL.js → chunk-SH2KLES5.js} +16 -1
- package/dist/chunk-SH2KLES5.js.map +1 -0
- package/dist/cli.js +13 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-KF3J46WL.js.map +0 -1
package/NOTICE
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
BKN SDK
|
|
2
|
+
Copyright 2026 OpenBKN
|
|
3
|
+
|
|
4
|
+
BKN SDK is part of the OpenBKN project.
|
|
5
|
+
|
|
6
|
+
================================================================
|
|
7
|
+
1. BKN SDK (OpenBKN License)
|
|
8
|
+
================================================================
|
|
9
|
+
BKN SDK is independently developed by OpenBKN, does not contain
|
|
10
|
+
upstream kweaver-ai/kweaver-core code, is copyright OpenBKN, and is
|
|
11
|
+
licensed under the OpenBKN License — a modified version of the Apache
|
|
12
|
+
License, Version 2.0, with Additional Conditions.
|
|
13
|
+
|
|
14
|
+
Full license text: LICENSE
|
|
15
|
+
Apache License, Version 2.0 (incorporated): http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
|
|
17
|
+
================================================================
|
|
18
|
+
2. Third-party dependencies
|
|
19
|
+
================================================================
|
|
20
|
+
This product depends on and may bundle third-party software, each of
|
|
21
|
+
which remains under its own license as declared in its package
|
|
22
|
+
metadata (see package.json and the dependency manifests). Those
|
|
23
|
+
licenses are not altered by the OpenBKN License.
|
|
24
|
+
|
|
25
|
+
================================================================
|
|
26
|
+
3. Historical versions
|
|
27
|
+
================================================================
|
|
28
|
+
Versions of this repository previously distributed under the Apache
|
|
29
|
+
License, Version 2.0 remain available under that license; their grant
|
|
30
|
+
is not affected by the present licensing arrangement. The present
|
|
31
|
+
arrangement applies only to versions released after this notice.
|
|
@@ -1148,6 +1148,17 @@ function findSkills(ctx, knId, objectTypeId, topK) {
|
|
|
1148
1148
|
if (topK !== void 0) args.top_k = topK;
|
|
1149
1149
|
return callTool(ctx, knId, "find_skills", args);
|
|
1150
1150
|
}
|
|
1151
|
+
function getKnDetail(ctx, knId, detailLevel) {
|
|
1152
|
+
const args = { response_format: "json" };
|
|
1153
|
+
if (detailLevel) args.detail_level = detailLevel;
|
|
1154
|
+
return callTool(ctx, knId, "get_kn_detail", args);
|
|
1155
|
+
}
|
|
1156
|
+
function getObjectTypes(ctx, knId, ids) {
|
|
1157
|
+
return callTool(ctx, knId, "get_object_types", { ids, response_format: "json" });
|
|
1158
|
+
}
|
|
1159
|
+
function getRelationTypes(ctx, knId, ids) {
|
|
1160
|
+
return callTool(ctx, knId, "get_relation_types", { ids, response_format: "json" });
|
|
1161
|
+
}
|
|
1151
1162
|
function listTools(ctx, knId) {
|
|
1152
1163
|
return callMethod(ctx, knId, "tools/list");
|
|
1153
1164
|
}
|
|
@@ -1182,6 +1193,10 @@ function context(ctx) {
|
|
|
1182
1193
|
searchSchema: (knId, query, opts) => searchSchema(ctx, knId, query, opts),
|
|
1183
1194
|
queryObjectInstance: (knId, args) => queryObjectInstance(ctx, knId, args),
|
|
1184
1195
|
findSkills: (knId, objectTypeId, topK) => findSkills(ctx, knId, objectTypeId, topK),
|
|
1196
|
+
// Progressive schema disclosure: skeleton first (summary), then drill down.
|
|
1197
|
+
knDetail: (knId, detailLevel) => getKnDetail(ctx, knId, detailLevel),
|
|
1198
|
+
objectTypes: (knId, ids) => getObjectTypes(ctx, knId, ids),
|
|
1199
|
+
relationTypes: (knId, ids) => getRelationTypes(ctx, knId, ids),
|
|
1185
1200
|
info: () => mcpInfo(ctx),
|
|
1186
1201
|
tools: (knId) => listTools(ctx, knId),
|
|
1187
1202
|
toolCall: (knId, name, args) => callTool(ctx, knId, name, args),
|
|
@@ -5331,4 +5346,4 @@ export {
|
|
|
5331
5346
|
exportCreds,
|
|
5332
5347
|
auth_exports
|
|
5333
5348
|
};
|
|
5334
|
-
//# sourceMappingURL=chunk-
|
|
5349
|
+
//# sourceMappingURL=chunk-SH2KLES5.js.map
|