@bamdra/bamdra-user-bind 0.1.7 → 0.1.8

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/index.js CHANGED
@@ -1369,7 +1369,7 @@ ${notes}
1369
1369
  function parseProfileMarkdown(markdown) {
1370
1370
  const lines = markdown.split(/\r?\n/);
1371
1371
  const patch = {};
1372
- let notes = "";
1372
+ let notes = null;
1373
1373
  let index = 0;
1374
1374
  if (lines[index] === "---") {
1375
1375
  index += 1;
@@ -1387,7 +1387,11 @@ function parseProfileMarkdown(markdown) {
1387
1387
  index += 1;
1388
1388
  }
1389
1389
  }
1390
- notes = lines.slice(index).join("\n").trim() || null;
1390
+ const body = lines.slice(index).join("\n");
1391
+ const notesMatch = body.match(/##\s*备注\s*\n([\s\S]*)$/);
1392
+ if (notesMatch?.[1]) {
1393
+ notes = notesMatch[1].trim() || null;
1394
+ }
1391
1395
  return {
1392
1396
  profilePatch: patch,
1393
1397
  notes
@@ -3,7 +3,7 @@
3
3
  "type": "tool",
4
4
  "name": "Bamdra User Bind",
5
5
  "description": "Identity resolution, user profile binding, and admin profile tools for OpenClaw channels.",
6
- "version": "0.1.7",
6
+ "version": "0.1.8",
7
7
  "main": "./dist/index.js",
8
8
  "skills": ["./skills"],
9
9
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamdra/bamdra-user-bind",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Identity resolution, user profile binding, and admin-safe profile tools for OpenClaw channels.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.bamdra.com",