@openbkn/bkn-sdk 0.1.4 → 0.1.5-rc.1
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/README.md +7 -9
- package/README.zh.md +2 -6
- package/dist/{chunk-Z2NRTUB3.js → chunk-WIYRGBAB.js} +367 -535
- package/dist/cli.js +1835 -422
- package/dist/index.d.ts +603 -151
- package/dist/index.js +3 -3
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ npm install -g @openbkn/bkn-sdk # CLI: `openbkn`
|
|
|
20
20
|
npm install @openbkn/bkn-sdk
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Requires Node ≥
|
|
23
|
+
Requires Node ≥ 22.19.0.
|
|
24
24
|
|
|
25
25
|
## CLI
|
|
26
26
|
|
|
@@ -40,16 +40,12 @@ openbkn resource list --type table
|
|
|
40
40
|
openbkn vega catalog list
|
|
41
41
|
openbkn model llm list
|
|
42
42
|
|
|
43
|
-
# Agents
|
|
44
|
-
openbkn agent list
|
|
45
|
-
openbkn agent sessions <agent-key>
|
|
46
|
-
|
|
47
43
|
# Operator (nested)
|
|
48
44
|
openbkn admin org list
|
|
49
45
|
openbkn admin role list
|
|
50
46
|
|
|
51
47
|
# Raw passthrough to any endpoint
|
|
52
|
-
openbkn call /api/
|
|
48
|
+
openbkn call /api/bkn-backend/v1/knowledge-networks
|
|
53
49
|
|
|
54
50
|
# Global flags: --base-url, --token, --user, --json/--compact, -bd/--biz-domain, -k/--insecure,
|
|
55
51
|
# --conversation-id/--interaction-id (BKN Trace correlation; also BKN_CONVERSATION_ID/BKN_INTERACTION_ID)
|
|
@@ -96,7 +92,8 @@ npm run build # tsup → dist/ (library + `openbkn` bin)
|
|
|
96
92
|
|
|
97
93
|
Every command, subcommand, and sub-subcommand ships a grouped `--help` that
|
|
98
94
|
lists its flags and arguments, so the tree is discoverable end to end.
|
|
99
|
-
`openbkn
|
|
95
|
+
`openbkn describe` prints the whole tree at once — sections, arguments, and
|
|
96
|
+
where each id comes from; `--json` ships the same thing as data.
|
|
100
97
|
|
|
101
98
|
## Agent skill
|
|
102
99
|
|
|
@@ -104,8 +101,9 @@ lists its flags and arguments, so the tree is discoverable end to end.
|
|
|
104
101
|
ecosystem) that lets an AI drive the `openbkn` CLI from natural language. It
|
|
105
102
|
ships a `SKILL.md` (trigger intents, `allowed-tools: Bash(openbkn *)`, a
|
|
106
103
|
command-group map, examples, and cautions) plus per-domain cheat sheets under
|
|
107
|
-
`references/` (auth, bkn,
|
|
108
|
-
skill, toolbox, trace, admin, call) and two how-tos
|
|
104
|
+
`references/` (auth, bkn, model, vega, resource, context,
|
|
105
|
+
skill, toolbox, function, trace, admin, call) and two how-tos
|
|
106
|
+
(build-a-KN, troubleshooting).
|
|
109
107
|
|
|
110
108
|
A second skill, `skills/create-bkn/`, guides an AI through **authoring** a BKN
|
|
111
109
|
definition tree (`network.bkn` + typed `object_types/` / `relation_types/` /
|
package/README.zh.md
CHANGED
|
@@ -15,7 +15,7 @@ npm install -g @openbkn/bkn-sdk # CLI:openbkn
|
|
|
15
15
|
npm install @openbkn/bkn-sdk
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
需要 Node ≥
|
|
18
|
+
需要 Node ≥ 22.19.0。
|
|
19
19
|
|
|
20
20
|
## CLI
|
|
21
21
|
|
|
@@ -34,16 +34,12 @@ openbkn resource list --type table
|
|
|
34
34
|
openbkn vega catalog list
|
|
35
35
|
openbkn model llm list
|
|
36
36
|
|
|
37
|
-
# 智能体
|
|
38
|
-
openbkn agent list
|
|
39
|
-
openbkn agent sessions <agent-key>
|
|
40
|
-
|
|
41
37
|
# 运维(嵌套)
|
|
42
38
|
openbkn admin org list
|
|
43
39
|
openbkn admin role list
|
|
44
40
|
|
|
45
41
|
# 任意端点的原始透传
|
|
46
|
-
openbkn call /api/
|
|
42
|
+
openbkn call /api/bkn-backend/v1/knowledge-networks
|
|
47
43
|
|
|
48
44
|
# 全局参数:--base-url --token --user --json/--compact -bd/--biz-domain -k/--insecure
|
|
49
45
|
# --conversation-id/--interaction-id(BKN Trace 关联,等价 env:BKN_CONVERSATION_ID/BKN_INTERACTION_ID)
|