@bamdra/bamdra-user-bind 0.1.13 → 0.1.14

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.
@@ -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.13",
6
+ "version": "0.1.14",
7
7
  "main": "./index.js",
8
8
  "skills": [
9
9
  "./skills"
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamdra/bamdra-user-bind",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bamdra/bamdra-user-bind",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
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",
@@ -12,7 +12,7 @@ Its purpose is operational: inspect user bindings, repair incorrect profile fiel
12
12
  ## Allowed Jobs
13
13
 
14
14
  - query a specific user profile or binding by `userId`
15
- - correct nickname, role, timezone, preferences, personality fields, or preferred address
15
+ - correct name, nickname, gender, birthday, age, role, timezone, preferences, personality, interests, or other profile fields
16
16
  - merge duplicate user records
17
17
  - inspect sync failures and identity resolution issues
18
18
  - request a resync for a known user
@@ -30,8 +30,9 @@ Use the admin tools in natural language:
30
30
  ## Good Requests
31
31
 
32
32
  - “查询 user:u_123 的画像和绑定关系”
33
- - “把 user:u_123 的称呼改成老板,时区改成 Europe/Berlin
34
- - “把 user:u_123 的默认称呼改成丰哥”
33
+ - “把 user:u_123 的姓名改成李明,时区改成 Asia/Tokyo
34
+ - “把 user:u_123 的兴趣改成摄影和骑行”
35
+ - “把 user:u_123 的默认称呼改成小李”
35
36
  - “合并 user:u_old 到 user:u_new”
36
37
  - “列出最近的绑定失败问题”
37
38
 
@@ -54,6 +54,8 @@ Use the profile tools as an action loop, not as a passive reference.
54
54
 
55
55
  When the user reveals stable profile information, do not stop at "我记住了" in prose. Actually write it back through the tool.
56
56
 
57
+ If you just asked a profile-collection question and the user replies briefly, that short answer still counts as profile information. Examples: "叫我小李就行", "直接点", "先给结论". Do not wait for a longer sentence before calling `bamdra_user_bind_update_my_profile`.
58
+
57
59
  Do not surface internal profile-write failures in the user-facing reply unless the user explicitly asks about the profile system itself. Avoid lines like "系统画像更新遇到了一点技术问题". If the write path needs repair in the background, keep the reply natural and continue serving the user.
58
60
 
59
61
  ## Semantic Extraction Rule
@@ -64,9 +66,13 @@ Use model judgment to read the user's natural language and decide whether the me
64
66
 
65
67
  Think in terms of profile slots, not keywords:
66
68
 
69
+ - the user's name or self-identification
67
70
  - how the user prefers to be addressed
71
+ - gender when the user explicitly provides it
72
+ - birthday, birth date, birth year, age, or other durable demographic facts when explicitly provided
68
73
  - how the user prefers answers to be structured
69
74
  - tone and communication style
75
+ - long-lived interests, hobbies, or personal background that help future collaboration
70
76
  - role, responsibility, or identity in the collaboration
71
77
  - timezone or durable location context
72
78
  - durable dislikes, boundaries, or collaboration constraints
@@ -91,9 +97,15 @@ If a message contains both a task request and profile information, do both:
91
97
 
92
98
  Field mapping for `bamdra_user_bind_update_my_profile`:
93
99
 
100
+ - explicit self-identification -> `name`
94
101
  - preferred form of address -> `nickname`
102
+ - explicit gender statement -> `gender`
103
+ - birthday or birth date -> `birthDate`
104
+ - birth year or birth month/year -> `birthYear`
105
+ - explicit age -> `age`
95
106
  - communication style or formatting preference -> `preferences`
96
107
  - personality or tone preference -> `personality`
108
+ - durable interests, hobbies, or recurring passions -> `interests`
97
109
  - role or identity in collaboration -> `role`
98
110
  - timezone -> `timezone`
99
111
  - durable private notes worth remembering -> `notes`
@@ -104,16 +116,25 @@ Examples of semantic normalization:
104
116
 
105
117
  - "以后别整那么官腔" -> `personality` or `preferences`, not raw transcript dumping
106
118
  - "我比较喜欢你先说判断,再展开原因" -> `preferences`
119
+ - "我叫李明" -> `name`
120
+ - "我生日是 1994-08-12" -> `birthDate`
121
+ - "我今年 31 岁" -> `age`
122
+ - "我平时喜欢骑行和摄影" -> `interests`
107
123
  - "我是这个项目最后拍板的人" -> `role`
108
124
  - "别老叫我老师,直接叫我名字就行" -> `nickname` or `notes`, depending on what is clearest
109
125
  - "我不喜欢太长铺垫" -> `preferences` or `notes`
110
126
 
111
127
  Examples:
112
128
 
113
- - "以后叫我阿丰" -> call `bamdra_user_bind_update_my_profile` with `nickname: "阿丰"`
129
+ - "我叫李明" -> call `bamdra_user_bind_update_my_profile` with `name: "李明"`
130
+ - "以后叫我小李" -> call `bamdra_user_bind_update_my_profile` with `nickname: "小李"`
131
+ - "我是女性" -> call `bamdra_user_bind_update_my_profile` with `gender: "女性"`
132
+ - "我生日是 1994-08-12" -> call `bamdra_user_bind_update_my_profile` with `birthDate: "1994-08-12"`
133
+ - "我今年 31 岁" -> call `bamdra_user_bind_update_my_profile` with `age: "31"`
114
134
  - "你先给结论,再展开" -> call `bamdra_user_bind_update_my_profile` with `preferences: "偏好先给结论,再展开"`
115
135
  - "说话直接一点,但别太冲" -> call `bamdra_user_bind_update_my_profile` with `personality: "偏好直接、克制、不生硬"`
116
- - "我常驻 Berlin" -> call `bamdra_user_bind_update_my_profile` with `timezone: "Europe/Berlin"`
136
+ - "我喜欢骑行和摄影" -> call `bamdra_user_bind_update_my_profile` with `interests: "骑行;摄影"`
137
+ - "我常驻东京" -> call `bamdra_user_bind_update_my_profile` with `timezone: "Asia/Tokyo"`
117
138
  - "我是这个项目的负责人" -> call `bamdra_user_bind_update_my_profile` with `role: "项目负责人"`
118
139
 
119
140
  If one user message contains both service intent and stable profile facts, do both in the same turn:
@@ -135,11 +156,11 @@ When the user clearly provides a stable preference or asks to remember how to wo
135
156
 
136
157
  Good examples:
137
158
 
138
- - “以后叫我老板”
139
- - “我在 Europe/Berlin 时区”
159
+ - “以后叫我小李”
160
+ - “我在 Asia/Tokyo 时区”
140
161
  - “我偏好幽默一点,但别太浮夸”
141
162
  - “我更喜欢先给结论,再展开”
142
- - “应该叫我阿丰,不用太正式”
163
+ - “应该叫我名字,不用太正式”
143
164
  - “第一次配合的话,你可以先简短一点”
144
165
  - “别太像客服,直接一点”
145
166
  - “我是这个项目的负责人”
@@ -158,9 +179,13 @@ Treat profile-style facts as private-by-default.
158
179
 
159
180
  These should stay in the current user's profile or user-scoped memory, not `shared` memory:
160
181
 
182
+ - 姓名
183
+ - 性别
184
+ - 生日 / 出生年月 / 年龄
161
185
  - 称呼方式
162
186
  - 时区
163
187
  - 对话风格偏好
188
+ - 兴趣爱好
164
189
  - 角色和职责
165
190
  - 宠物、家庭、个人背景
166
191
  - 当前主要工作和长期个人目标