@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/cli.js
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
use,
|
|
38
38
|
whoami,
|
|
39
39
|
writePlatformConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-SH2KLES5.js";
|
|
41
41
|
|
|
42
42
|
// src/cli.ts
|
|
43
43
|
import { Command as Command17 } from "commander";
|
|
@@ -45,7 +45,7 @@ import { Command as Command17 } from "commander";
|
|
|
45
45
|
// package.json
|
|
46
46
|
var package_default = {
|
|
47
47
|
name: "@openbkn/bkn-sdk",
|
|
48
|
-
version: "0.1.1-alpha.
|
|
48
|
+
version: "0.1.1-alpha.16",
|
|
49
49
|
description: "Unified TypeScript SDK + CLI for the BKN (Business Knowledge Network) platform.",
|
|
50
50
|
type: "module",
|
|
51
51
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -63,7 +63,7 @@ var package_default = {
|
|
|
63
63
|
import: "./dist/index.js"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
files: ["dist", "README.md", "README.zh.md", "LICENSE"],
|
|
66
|
+
files: ["dist", "README.md", "README.zh.md", "LICENSE", "NOTICE"],
|
|
67
67
|
publishConfig: {
|
|
68
68
|
access: "public"
|
|
69
69
|
},
|
|
@@ -1735,6 +1735,16 @@ function contextCommand() {
|
|
|
1735
1735
|
outputOptions(cmd2)
|
|
1736
1736
|
);
|
|
1737
1737
|
});
|
|
1738
|
+
cmd.command("kn-detail <kn-id>").description("Get a KN's schema at a detail level (progressive: summary skeleton \u2192 drill down)").option("--detail-level <level>", "summary (default) | full", "summary").action(async (knId, opts, cmd2) => {
|
|
1739
|
+
const level = opts.detailLevel === "full" ? "full" : "summary";
|
|
1740
|
+
printJson(await clientFrom(cmd2).context.knDetail(knId, level), outputOptions(cmd2));
|
|
1741
|
+
});
|
|
1742
|
+
cmd.command("object-types <kn-id> <ids...>").description("Full definitions for the given object-type ids (unmatched \u2192 `missing`)").action(async (knId, ids, _opts, cmd2) => {
|
|
1743
|
+
printJson(await clientFrom(cmd2).context.objectTypes(knId, ids), outputOptions(cmd2));
|
|
1744
|
+
});
|
|
1745
|
+
cmd.command("relation-types <kn-id> <ids...>").description("Full definitions for the given relation-type ids (unmatched \u2192 `missing`)").action(async (knId, ids, _opts, cmd2) => {
|
|
1746
|
+
printJson(await clientFrom(cmd2).context.relationTypes(knId, ids), outputOptions(cmd2));
|
|
1747
|
+
});
|
|
1738
1748
|
cmd.command("info").description("List the deploy's MCP tool catalog (global \u2014 no KN needed)").action(async (_opts, cmd2) => {
|
|
1739
1749
|
printToolList(await clientFrom(cmd2).context.info(), outputOptions(cmd2));
|
|
1740
1750
|
});
|