@bamdra/bamdra-user-bind 0.1.6 → 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
|
-
|
|
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
|
package/openclaw.plugin.json
CHANGED
|
@@ -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.
|
|
6
|
+
"version": "0.1.8",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"skills": ["./skills"],
|
|
9
9
|
"configSchema": {
|
package/package.json
CHANGED
|
@@ -52,3 +52,18 @@ Good examples:
|
|
|
52
52
|
- “我更喜欢先给结论,再展开”
|
|
53
53
|
|
|
54
54
|
Do not update the profile for transient moods, one-off formatting requests, or unstable short-term details.
|
|
55
|
+
|
|
56
|
+
## Storage Boundary
|
|
57
|
+
|
|
58
|
+
Treat profile-style facts as private-by-default.
|
|
59
|
+
|
|
60
|
+
These should stay in the current user's profile or user-scoped memory, not `shared` memory:
|
|
61
|
+
|
|
62
|
+
- 称呼方式
|
|
63
|
+
- 时区
|
|
64
|
+
- 对话风格偏好
|
|
65
|
+
- 角色和职责
|
|
66
|
+
- 宠物、家庭、个人背景
|
|
67
|
+
- 当前主要工作和长期个人目标
|
|
68
|
+
|
|
69
|
+
Only treat a statement as shared if the user clearly frames it as a team rule, a reusable public fact, or something that should apply beyond themselves.
|