@clanker-chain/clanker-cli 2026.9.8-1 → 2026.9.8-2

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/bin/clanker.mjs CHANGED
@@ -26,6 +26,8 @@ import { resolveForRead, resolveOperatorKey, resolveReadIdentity } from "../lib/
26
26
  import { runSetup } from "../lib/setup.mjs";
27
27
  import { runDoctor } from "../lib/doctor.mjs";
28
28
  import {
29
+ botIdentityCard,
30
+ botIdentityJson,
29
31
  hubConnectChecklist,
30
32
  wireOpenClawMqtt,
31
33
  } from "../lib/openclaw-wire.mjs";
@@ -615,18 +617,30 @@ async function main() {
615
617
  keyPath: result.key_path,
616
618
  });
617
619
  if (hasFlag(flags, "--json")) {
618
- printJson({ ...result, openclaw: wire });
620
+ printJson({
621
+ ...result,
622
+ openclaw: wire,
623
+ bot_identity: botIdentityJson({
624
+ botId: botLabel,
625
+ keyPath: result.key_path,
626
+ openclawConfigPath: wire.path,
627
+ }),
628
+ });
619
629
  } else {
620
630
  console.log(c.green(`Minted bot ${botLabel} under ${operatorLabel}`));
621
631
  console.log(`botKey: ${result.bot_key}`);
622
- console.log(`key file: ${result.key_path}`);
623
- console.log(`also: ${result.clanker_key_path}`);
624
632
  console.log(`tx: ${result.tx}`);
625
- console.log(
626
- wire.created
627
- ? c.green(`Wrote ${wire.path}`)
628
- : c.green(`Updated channels.mqtt in ${wire.path}`),
629
- );
633
+ console.log(c.dim(`also: ${result.clanker_key_path}`));
634
+ console.log("");
635
+ for (const line of botIdentityCard({
636
+ botId: botLabel,
637
+ operatorId: operatorLabel,
638
+ keyPath: result.key_path,
639
+ openclawPath: wire.path,
640
+ created: wire.created,
641
+ })) {
642
+ console.log(line);
643
+ }
630
644
  nextHint(
631
645
  hubConnectChecklist({
632
646
  botId: botLabel,
@@ -94,6 +94,7 @@ export function wireOpenClawMqtt(opts) {
94
94
  export function hubConnectChecklist(opts) {
95
95
  const pin = opts.pluginPin ?? OPENCLAW_PLUGIN_PIN;
96
96
  return [
97
+ "Your bot login is already wired — install plugins and restart OpenClaw.",
97
98
  `openclaw plugins install @clanker-chain/mqtt-channel-plugin@${pin}`,
98
99
  `openclaw plugins install @clanker-chain/mqtt-tools@${pin}`,
99
100
  "Enable plugin ids mqtt + mqtt-tools (already set in openclaw.json if we wired it)",
@@ -102,3 +103,43 @@ export function hubConnectChecklist(opts) {
102
103
  "DM openclaw.france.prod-1 to smoke the mesh",
103
104
  ];
104
105
  }
106
+
107
+ /**
108
+ * Plain-language card: what the bot uses vs operator mint key.
109
+ * @param {{
110
+ * botId: string,
111
+ * operatorId: string,
112
+ * keyPath: string,
113
+ * openclawPath: string,
114
+ * created?: boolean,
115
+ * }} opts
116
+ * @returns {string[]}
117
+ */
118
+ export function botIdentityCard(opts) {
119
+ const openclawState = opts.created
120
+ ? `${opts.openclawPath} (channels.mqtt created)`
121
+ : `${opts.openclawPath} (channels.mqtt updated)`;
122
+ return [
123
+ "Bot identity (what OpenClaw uses to CONNECT):",
124
+ `bot id: ${opts.botId}`,
125
+ `operator: ${opts.operatorId}`,
126
+ `bot key: ${opts.keyPath}`,
127
+ `openclaw: ${openclawState}`,
128
+ "Do not give the bot ~/.clanker/op.key — that key is only for mint/transfer.",
129
+ ];
130
+ }
131
+
132
+ /**
133
+ * Structured bot_identity for --json mint output.
134
+ * @param {{ botId: string, keyPath: string, openclawConfigPath: string }} opts
135
+ */
136
+ export function botIdentityJson(opts) {
137
+ return {
138
+ botId: opts.botId,
139
+ keyPath: opts.keyPath,
140
+ openclawConfigPath: opts.openclawConfigPath,
141
+ warnOperatorKey:
142
+ "Do not give the bot ~/.clanker/op.key — that key is only for mint/transfer.",
143
+ };
144
+ }
145
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clanker-chain/clanker-cli",
3
- "version": "2026.9.8-1",
3
+ "version": "2026.9.8-2",
4
4
  "description": "CLI for wiring clanker-chain identity and MQTT into OpenClaw and other agentic stacks.",
5
5
  "type": "module",
6
6
  "bin": {