@openbkn/bkn-sdk 0.1.1-alpha.14 → 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/dist/cli.js CHANGED
@@ -37,7 +37,7 @@ import {
37
37
  use,
38
38
  whoami,
39
39
  writePlatformConfig
40
- } from "./chunk-2GNQU4XH.js";
40
+ } from "./chunk-SH2KLES5.js";
41
41
 
42
42
  // src/cli.ts
43
43
  import { Command as Command17 } from "commander";
@@ -45,10 +45,10 @@ 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.14",
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
- license: "Apache-2.0",
51
+ license: "SEE LICENSE IN LICENSE",
52
52
  engines: {
53
53
  node: ">=18"
54
54
  },
@@ -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
  },
@@ -627,9 +627,7 @@ function authCommand() {
627
627
  var int = (v) => Number.parseInt(v, 10);
628
628
  var DEFAULT_RESET_PASSWORD = "openbkn";
629
629
  function adminCommand() {
630
- const admin = new Command2("admin").description(
631
- "Operator CLI (kweaver-admin): org, user, role, models, audit"
632
- );
630
+ const admin = new Command2("admin").description("Operator CLI: org, user, role, models, audit");
633
631
  registerAuthLeaves(admin.command("auth").description("Operator authentication"));
634
632
  const org = admin.command("org").description("Departments and org structure");
635
633
  org.command("list").description("List departments").option("--role <r>", "role qualifier", "super_admin").option("--name <s>", "filter by name").option("--limit <n>", "page size", int, 100).option("--offset <n>", "page offset", int, 0).action(async (opts, cmd) => {
@@ -1737,6 +1735,16 @@ function contextCommand() {
1737
1735
  outputOptions(cmd2)
1738
1736
  );
1739
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
+ });
1740
1748
  cmd.command("info").description("List the deploy's MCP tool catalog (global \u2014 no KN needed)").action(async (_opts, cmd2) => {
1741
1749
  printToolList(await clientFrom(cmd2).context.info(), outputOptions(cmd2));
1742
1750
  });