@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/dist/index.d.ts
CHANGED
|
@@ -320,6 +320,8 @@ interface SearchSchemaOptions {
|
|
|
320
320
|
searchScope?: string[];
|
|
321
321
|
maxConcepts?: number;
|
|
322
322
|
}
|
|
323
|
+
/** Progressive KN-detail disclosure level: `summary` (skeleton + property names) | `full`. */
|
|
324
|
+
type DetailLevel = "summary" | "full";
|
|
323
325
|
|
|
324
326
|
/** Context-loader resource surface (MCP over agent-retrieval). */
|
|
325
327
|
|
|
@@ -327,6 +329,9 @@ declare function context(ctx: RequestContext): {
|
|
|
327
329
|
searchSchema: (knId: string, query: string, opts?: SearchSchemaOptions) => Promise<unknown>;
|
|
328
330
|
queryObjectInstance: (knId: string, args: Record<string, unknown>) => Promise<unknown>;
|
|
329
331
|
findSkills: (knId: string, objectTypeId: string, topK?: number) => Promise<unknown>;
|
|
332
|
+
knDetail: (knId: string, detailLevel?: DetailLevel) => Promise<unknown>;
|
|
333
|
+
objectTypes: (knId: string, ids: string[]) => Promise<unknown>;
|
|
334
|
+
relationTypes: (knId: string, ids: string[]) => Promise<unknown>;
|
|
330
335
|
info: () => Promise<unknown>;
|
|
331
336
|
tools: (knId: string) => Promise<unknown>;
|
|
332
337
|
toolCall: (knId: string, name: string, args: Record<string, unknown>) => Promise<unknown>;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openbkn/bkn-sdk",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.16",
|
|
4
4
|
"description": "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"import": "./dist/index.js"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
"files": ["dist", "README.md", "README.zh.md", "LICENSE"],
|
|
21
|
+
"files": ["dist", "README.md", "README.zh.md", "LICENSE", "NOTICE"],
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|