exomind 0.3.5 → 0.3.6

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
@@ -3119,7 +3119,7 @@ var {
3119
3119
  // package.json
3120
3120
  var package_default = {
3121
3121
  name: "exomind",
3122
- version: "0.3.5",
3122
+ version: "0.3.6",
3123
3123
  description: "ExoMind \u8DE8\u5E73\u53F0\u547D\u4EE4\u884C\u5BA2\u6237\u7AEF \u2014 \u901A\u8FC7 REST \u4E0E ExoMind \u77E5\u8BC6\u5E93\u4EA4\u4E92(ingest/query/search/review),\u66FF\u4EE3 Windows \u4E0D\u53EF\u7528\u7684 MCP \u5BA2\u6237\u7AEF\u3002",
3124
3124
  bin: {
3125
3125
  exomind: "dist/cli.js"
@@ -4342,7 +4342,15 @@ async function whoami(client) {
4342
4342
  console.log(dim(` \u670D\u52A1\u5668: ${cfg.base_url}`));
4343
4343
  console.log(dim(` \u51ED\u8BC1: ${hint2} (${kind})`));
4344
4344
  if (me.authenticated) {
4345
- console.log(dim(` \u7528\u6237: ${me.name || me.login || "-"} (tenant: ${me.tenant_id || "-"})`));
4345
+ const userId = me.tenant_id || "-";
4346
+ const display = me.name || me.login || "";
4347
+ if (display) {
4348
+ console.log(dim(` \u7528\u6237: ${display} (\u7528\u6237ID: ${userId})`));
4349
+ } else if (me.method === "api_key") {
4350
+ console.log(dim(` \u7528\u6237ID: ${userId}\uFF08API Key \u4E0D\u643A\u5E26\u7528\u6237\u540D\uFF09`));
4351
+ } else {
4352
+ console.log(dim(` \u7528\u6237ID: ${userId}`));
4353
+ }
4346
4354
  }
4347
4355
  }
4348
4356
  );