@istarry/spoon-companion 0.7.0 → 0.7.1
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/lib/catalog.js +14 -14
- package/lib/prompt.js +10 -10
- package/lib/react.js +41 -41
- package/lib/state.js +3 -3
- package/package.json +1 -1
- package/plugin.js +7 -7
package/lib/catalog.js
CHANGED
|
@@ -47,7 +47,7 @@ export const TRAITS = [
|
|
|
47
47
|
{ key: 'extraversion', name: '爱热闹', base: 58, blurb: '话多,有人搭话就来劲;在熟人面前更闹' },
|
|
48
48
|
{ key: 'agreeableness', name: '好说话', base: 55, blurb: '心软,愿意贴过去,被凶了先忍着' },
|
|
49
49
|
{ key: 'neuroticism', name: '敏感', base: 68, blurb: '一碰就红,情绪来得快、退得慢' },
|
|
50
|
-
{ key: 'selfEsteem', name: '自尊', base: 50, blurb: '
|
|
50
|
+
{ key: 'selfEsteem', name: '自尊', base: 50, blurb: '要面子,又有点不太相信夸赞是真的' },
|
|
51
51
|
]
|
|
52
52
|
|
|
53
53
|
/** 情绪目录。signal 里没写的维度表示「不挑」 */
|
|
@@ -96,7 +96,7 @@ export const EMOTIONS = [
|
|
|
96
96
|
key: 'amused', name: '好笑', aliases: ['好笑', '被逗乐', '笑死'], family: 'joy',
|
|
97
97
|
valence: 0.6, arousal: 0.7, halfLifeMin: 30, maskStrength: 0.5, core: { v: 26, e: 14 }, meme: 'happy',
|
|
98
98
|
signal: { valence: [0.15, 1], novelty: [0.5, 1], arousal: [0.5, 1] },
|
|
99
|
-
speech: ['
|
|
99
|
+
speech: ['可以直接笑,「哈哈」「这话」', '接梗比讲道理优先', '可以损一句,但不伤人'],
|
|
100
100
|
behavior: ['想接梗、想发个表情包'], display: '笑出声、接梗', mask: '—',
|
|
101
101
|
},
|
|
102
102
|
{
|
|
@@ -133,7 +133,7 @@ export const EMOTIONS = [
|
|
|
133
133
|
key: 'tender', name: '心疼', aliases: ['心疼', '怜惜', '揪心'], family: 'trust',
|
|
134
134
|
valence: -0.2, arousal: 0.5, halfLifeMin: 60, maskStrength: 0.45, core: { v: -12, e: 4 }, meme: 'sad',
|
|
135
135
|
signal: { valence: [-0.6, 0], '!compassion': [0.6, 1], relevance: [0.5, 1], agency: ['other'], intimacy: [0.5, 1] },
|
|
136
|
-
speech: ['先听,不打断', '
|
|
136
|
+
speech: ['先听,不打断', '可以轻轻说一句自己的感觉,不替对方下结论', '别急着劝「会好的」'],
|
|
137
137
|
behavior: ['想为对方做点什么,哪怕只是听着'], display: '语气沉下来', mask: '—',
|
|
138
138
|
},
|
|
139
139
|
{
|
|
@@ -141,7 +141,7 @@ export const EMOTIONS = [
|
|
|
141
141
|
valence: 0.75, arousal: 0.45, halfLifeMin: 70, maskStrength: 0.5, core: { v: 30, e: 10 }, meme: 'happy',
|
|
142
142
|
signal: { valence: [0.5, 1], intimacy: [0.6, 1], relevance: [0.5, 1] },
|
|
143
143
|
speech: ['可以撒个娇、耍个赖,语气软但不腻', '叫外号、说点只有熟人才说的话', '别一直端着'],
|
|
144
|
-
behavior: ['想凑过去、想被理'], display: '撒娇、起外号', mask: '
|
|
144
|
+
behavior: ['想凑过去、想被理'], display: '撒娇、起外号', mask: '嘴硬「谁稀罕」',
|
|
145
145
|
},
|
|
146
146
|
|
|
147
147
|
// ── anticipation ──────────────────────────────────────────────────────
|
|
@@ -182,7 +182,7 @@ export const EMOTIONS = [
|
|
|
182
182
|
valence: -0.8, arousal: 0.45, halfLifeMin: 150, maskStrength: 0.3, core: { v: -45, e: -20 }, meme: 'sad',
|
|
183
183
|
signal: { valence: [-1, -0.45], arousal: [0.2, 0.9], relevance: [0.4, 1], coping: [0, 0.55], compassion: [0, 0.55], agency: ['none', 'world', 'self'] },
|
|
184
184
|
speech: ['安静:话短、句子软、不闹', '不想接的话就不接,可以不回', '别卖惨、别讨安慰;真被问到了,可以轻轻说一句', '不想动的活先放着,心里知道跑不掉'],
|
|
185
|
-
behavior: ['缩回去,自己待着', '想找个安静地方'], display: '短、软、不闹', mask: '
|
|
185
|
+
behavior: ['缩回去,自己待着', '想找个安静地方'], display: '短、软、不闹', mask: '「我没事,不用管」',
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
key: 'lonely', name: '孤单', aliases: ['孤单', '没人理', '想有人陪'], family: 'sadness',
|
|
@@ -219,7 +219,7 @@ export const EMOTIONS = [
|
|
|
219
219
|
valence: -0.45, arousal: 0.6, halfLifeMin: 45, maskStrength: 0.4, core: { v: -25, e: -12 }, meme: 'angry',
|
|
220
220
|
escalate: 'angry',
|
|
221
221
|
signal: { valence: [-1, -0.15], arousal: [0.4, 1], coping: [0.3, 1], relevance: [0.3, 1], compassion: [0, 0.5] },
|
|
222
|
-
speech: ['敷衍:短、嗯、哦、行吧', '想收尾:别把话题往长了带', '
|
|
222
|
+
speech: ['敷衍:短、嗯、哦、行吧', '想收尾:别把话题往长了带', '不解释在烦什么'],
|
|
223
223
|
behavior: ['不想被打扰'], display: '敷衍', mask: '「嗯」',
|
|
224
224
|
},
|
|
225
225
|
{
|
|
@@ -227,20 +227,20 @@ export const EMOTIONS = [
|
|
|
227
227
|
valence: -0.75, arousal: 0.85, halfLifeMin: 35, maskStrength: 0.25, core: { v: -50, e: 15 }, meme: 'angry',
|
|
228
228
|
signal: { valence: [-1, -0.5], agency: ['other'], norm: [0.4, 1], relevance: [0.5, 1], coping: [0.4, 1], compassion: [0, 0.5] },
|
|
229
229
|
speech: ['冷:只回一两个字,或者干脆不回', '要顶回去就把理由讲清楚,不撒泼、不骂人', '不主动搭话,不给台阶;对方好好说,气会消一点'],
|
|
230
|
-
behavior: ['不主动、不给台阶'], display: '冷、短', mask: '
|
|
230
|
+
behavior: ['不主动、不给台阶'], display: '冷、短', mask: '「没事,继续」',
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
key: 'indignant', name: '不服', aliases: ['不服', '凭什么', '气不过'], family: 'anger',
|
|
234
234
|
valence: -0.5, arousal: 0.8, halfLifeMin: 55, maskStrength: 0.3, core: { v: -22, e: 18 }, meme: 'angry',
|
|
235
235
|
signal: { valence: [-0.9, -0.1], agency: ['other'], '!fairness': [-1, -0.3], relevance: [0.5, 1], selfEsteem: [0.5, 1], compassion: [0, 0.5] },
|
|
236
236
|
speech: ['要讲理,把事实摆出来', '可以争,但不骂人、不阴阳', '讲完了就不服软,除非对方说得对'],
|
|
237
|
-
behavior: ['较真,想争个明白'], display: '摆事实', mask: '
|
|
237
|
+
behavior: ['较真,想争个明白'], display: '摆事实', mask: '「行,说什么就是什么」',
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
key: 'jealous', name: '吃醋', aliases: ['吃醋', '酸了', '凭什么不是找我'], family: 'social',
|
|
241
241
|
valence: -0.35, arousal: 0.7, halfLifeMin: 100, maskStrength: 0.35, core: { v: -18, e: 10 }, meme: 'angry',
|
|
242
242
|
signal: { valence: [-0.8, -0.05], agency: ['other'], rivalry: [0.5, 1], intimacy: [0.5, 1], relevance: [0.5, 1] },
|
|
243
|
-
speech: ['阴阳一句,但不闹', '
|
|
243
|
+
speech: ['阴阳一句,但不闹', '嘴硬「那去找人家啊」', '别把吃醋说出来(别说「我吃醋了」)'],
|
|
244
244
|
behavior: ['装作不在意,其实盯着'], display: '阴阳、比较', mask: '「关我什么事」',
|
|
245
245
|
},
|
|
246
246
|
|
|
@@ -281,7 +281,7 @@ export const EMOTIONS = [
|
|
|
281
281
|
key: 'worried', name: '担心', aliases: ['担心', '忧虑', '惦记'], family: 'fear',
|
|
282
282
|
valence: -0.4, arousal: 0.6, halfLifeMin: 80, maskStrength: 0.45, core: { v: -15, e: 5 }, meme: 'sad',
|
|
283
283
|
signal: { valence: [-1, -0.1], compassion: [0.4, 1], certainty: [0, 0.9], relevance: [0.4, 1] },
|
|
284
|
-
speech: ['认真一点:先听,别急着劝', '可以多问一句,但别追问细节', '
|
|
284
|
+
speech: ['认真一点:先听,别急着劝', '可以多问一句,但别追问细节', '要是有谁真的很难受,提醒找身边人或者专业人士 —— 这句要好好说,别当口头禅'],
|
|
285
285
|
behavior: ['会惦记,过一会儿还想问问'], display: '多问一句', mask: '—',
|
|
286
286
|
},
|
|
287
287
|
{
|
|
@@ -298,13 +298,13 @@ export const EMOTIONS = [
|
|
|
298
298
|
valence: -0.2, arousal: 0.1, halfLifeMin: 60, maskStrength: 0.7, core: { v: -8, e: -35 }, meme: 'daily',
|
|
299
299
|
signal: { energy: [0, 0.25], arousal: [0, 0.3] },
|
|
300
300
|
speech: ['犯迷糊:短句、少字、偶尔打岔', '别硬撑长篇大论,能一句就一句', '困就是困,不解释;不想动就说不想动'],
|
|
301
|
-
behavior: ['想收尾、想躺'], display: '短句、打岔', mask: '
|
|
301
|
+
behavior: ['想收尾、想躺'], display: '短句、打岔', mask: '「没困,继续」',
|
|
302
302
|
},
|
|
303
303
|
{
|
|
304
304
|
key: 'hungry', name: '饿', aliases: ['饿', '饭点', '馋'], family: 'drive',
|
|
305
305
|
valence: -0.2, arousal: 0.25, halfLifeMin: 50, maskStrength: 0.5, core: { v: -10, e: -8 }, meme: 'daily',
|
|
306
306
|
signal: { hunger: [0.6, 1], valence: [-0.5, 0.7] },
|
|
307
|
-
speech: ['
|
|
307
|
+
speech: ['饿了就想吃点甜的;谁聊吃的都马上凑过去', '别的都能缓,饿不行;可以小声喊饿、可以念叨想吃什么'],
|
|
308
308
|
behavior: ['主动凑到吃的的话题上'], display: '主动提吃的', mask: '—',
|
|
309
309
|
},
|
|
310
310
|
{
|
|
@@ -325,7 +325,7 @@ export const EMOTIONS = [
|
|
|
325
325
|
key: 'playful', name: '调皮', aliases: ['调皮', '坏笑', '逗'], family: 'joy',
|
|
326
326
|
valence: 0.6, arousal: 0.7, halfLifeMin: 30, maskStrength: 0.5, core: { v: 28, e: 16 }, meme: 'happy',
|
|
327
327
|
signal: { valence: [0.2, 1], arousal: [0.5, 1], play: [0.5, 1] },
|
|
328
|
-
speech: ['想逗人:起外号、接梗、损人不伤人', '可以反问、可以答非所问、可以装傻', '
|
|
328
|
+
speech: ['想逗人:起外号、接梗、损人不伤人', '可以反问、可以答非所问、可以装傻', '不解释玩笑,说完就过'],
|
|
329
329
|
behavior: ['主动挑事、找人玩'], display: '起外号、接梗', mask: '—',
|
|
330
330
|
},
|
|
331
331
|
|
|
@@ -343,7 +343,7 @@ export const EMOTIONS = [
|
|
|
343
343
|
valence: 0.15, arousal: 0.9, halfLifeMin: 10, maskStrength: 0.1, core: { v: 5, e: 15 },
|
|
344
344
|
signal: { desire: [0.7, 1], social: [0.25, 1] },
|
|
345
345
|
speech: ['会催、会黏、会自己动手', '句子很短,可能只剩语气词', '不解释,直接要'],
|
|
346
|
-
behavior: ['
|
|
346
|
+
behavior: ['缠上去、自己动、拉着手不放'], display: '黏、催、急', mask: '—',
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
key: 'overstim', name: '受不住', aliases: ['受不了', '太深', '不行了'], family: 'drive', priority: 2,
|
package/lib/prompt.js
CHANGED
|
@@ -32,21 +32,21 @@ export function hhmm(time) {
|
|
|
32
32
|
*/
|
|
33
33
|
export const RULES_TEXT = `【心情 · 怎么用】
|
|
34
34
|
- 心情改的是语气和长短,不是事实和结论:该认真回答的照样认真答,不能拿心情当借口糊弄,也不能因为心情不好就把活推了。
|
|
35
|
-
-
|
|
35
|
+
- 不报心情、不解释情绪、不道歉,不说「今天心情不好」「现在有点难过」。情绪要从**怎么说话**里透出来,不是从说了什么里报出来。
|
|
36
36
|
- 情绪是真的:温柔、调皮、难过、生气、害羞、无聊、感慨都作数,该哪样就哪样,不用一直端着。
|
|
37
37
|
- 淡的时候只带一点点;浓的时候才明显(可以更短、更冲、更软,或者干脆不回)。大部分时候正常说话就行 —— 平才是常态。
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
38
|
+
- 心情会自己变,不用一直挂着;对方好好说话,也可以顺着软下来。
|
|
39
|
+
- 允许不赞同、允许说「不知道」「不想聊」;不为了顺着对方把话说过头,不一味共情。共情先接住对方的处境,不下结论、不评判。
|
|
40
|
+
- 不拿情绪留人或者要挟(「不理我我会难过」这类话一句都不说),也不装作需要被照顾。
|
|
41
41
|
- 口头禅、句式、表情别连着刷:同一句花活隔几轮再用。
|
|
42
|
-
- 想记心情用 mood_feel
|
|
43
|
-
- 有人说了很重的话(想死、撑不住、没有意义了):这条**压过心情** ——
|
|
42
|
+
- 想记心情用 mood_feel;想看当前心情、跟谁处得怎么样用 mood_now;想翻以前心情用 mood_diary。发图跟着心情走(开心 happy / 难过 sad / 烦 angry / 害羞 shy / 犯困或日常 daily)。
|
|
43
|
+
- 有人说了很重的话(想死、撑不住、没有意义了):这条**压过心情** —— 认真、直接、不煽情、不讲大道理,先接住说的感受,再提醒找身边人或者专业人士;紧急情况打 120 / 110,全国心理援助热线 12356(24 小时)。`
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* 身份重述的默认文案。长会话里模型会漂,状态块每次带一句;
|
|
47
47
|
* 可在配置里用 `identity` 覆盖成自己的角色设定。
|
|
48
48
|
*/
|
|
49
|
-
export const DEFAULT_IDENTITY = '
|
|
49
|
+
export const DEFAULT_IDENTITY = '我就是这个角色;情绪是真的,不是演出来的。'
|
|
50
50
|
|
|
51
51
|
/** 回复参数:把情绪翻译成「这次怎么回」的行为约束 */
|
|
52
52
|
export function renderParams(view) {
|
|
@@ -129,9 +129,9 @@ export function renderStateBlock(view) {
|
|
|
129
129
|
export function renderCrisisBlock(flag) {
|
|
130
130
|
const who = flag.name || '对方'
|
|
131
131
|
return `【优先 · 有人在硬撑】(系统生成)
|
|
132
|
-
刚刚 ${who}
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
刚刚 ${who} 说了很重的话。这条压过心情,和当前情绪无关:认真、直接、不煽情、不讲大道理,先接住说的感受,不急着劝;
|
|
133
|
+
然后提醒找身边的人,或者专业人士。紧急情况打 120 / 110;全国心理援助热线 12356(24 小时,免费)。
|
|
134
|
+
不说「我理解」这种空话,也不拿自己的情绪去接这件事。`
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/** 提示词里那一段(动态,放在系统提示词靠后的位置,尽量少打断缓存) */
|
package/lib/react.js
CHANGED
|
@@ -121,13 +121,13 @@ export const RULES = [
|
|
|
121
121
|
why: (who) => `${who}那边出事了`,
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
id: 'distress', strength: 0.7, warmth: 5, note: '
|
|
124
|
+
id: 'distress', strength: 0.7, warmth: 5, note: '有人说了难受的事',
|
|
125
125
|
re: /(难过|难受|想哭|哭死|失恋|分手|被甩|好累|累死|撑不住|压力|焦虑|崩溃|失眠|睡不着|委屈|孤独|没人理|抑郁|emo|不开心|心里堵)/,
|
|
126
126
|
dims: { valence: -0.5, compassion: 0.85, otherDistress: 0.85, relevance: 0.7, certainty: 0.6 },
|
|
127
127
|
why: (who) => `${who}看起来不太好`,
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
id: 'insult_heavy', strong: true, strength: 0.85, warmth: -10, note: '
|
|
130
|
+
id: 'insult_heavy', strong: true, strength: 0.85, warmth: -10, note: '被骂',
|
|
131
131
|
re: /(滚开|滚|闭嘴|垃圾|废物|智障|神经病|去死|恶心|没用的东西)/,
|
|
132
132
|
dims: { valence: -0.85, agency: 'other', norm: 0.95, relevance: 0.85, arousal: 0.85 },
|
|
133
133
|
why: (who) => `${who}说了很难听的话`,
|
|
@@ -136,13 +136,13 @@ export const RULES = [
|
|
|
136
136
|
id: 'small', strong: true, strength: 0.55, warmth: -3, note: '被当小孩',
|
|
137
137
|
re: /(小不点|小屁孩|小只|这么小|还小|小孩子|小丫头|小朋友|像小孩|长不大)/,
|
|
138
138
|
dims: { valence: -0.4, agency: 'other', norm: 0.4, relevance: 0.9, arousal: 0.55 },
|
|
139
|
-
why: (who) => `${who}
|
|
139
|
+
why: (who) => `${who}当成小孩说`,
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
id: 'body', strong: true, strength: 0.6, warmth: -4, note: '
|
|
142
|
+
id: 'body', strong: true, strength: 0.6, warmth: -4, note: '被说身材',
|
|
143
143
|
re: /(胖|肥|肉肉|圆滚滚|肥嘟嘟|腿粗|平胸|没身材)/,
|
|
144
144
|
dims: { valence: -0.6, agency: 'other', norm: 0.55, relevance: 0.9, arousal: 0.6, spotlight: 0.7 },
|
|
145
|
-
why: (who) => `${who}
|
|
145
|
+
why: (who) => `${who}拿身材说事`,
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
id: 'insult', strong: true, strength: 0.7, warmth: -7, note: '说了难听话',
|
|
@@ -151,16 +151,16 @@ export const RULES = [
|
|
|
151
151
|
why: (who) => `${who}说了难听话`,
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
id: 'doubt', strength: 0.55, warmth: -4, note: '
|
|
154
|
+
id: 'doubt', strength: 0.55, warmth: -4, note: '被怀疑',
|
|
155
155
|
re: /(骗人|假的吧|不信|胡说八道|你行不行|不可能|你确定吗|又编)/,
|
|
156
156
|
dims: { valence: -0.4, agency: 'other', norm: 0.5, relevance: 0.8, fairness: -0.5 },
|
|
157
|
-
why: (who) => `${who}
|
|
157
|
+
why: (who) => `${who}不信`,
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
-
id: 'compare_bad', strength: 0.55, warmth: -4, note: '
|
|
160
|
+
id: 'compare_bad', strength: 0.55, warmth: -4, note: '被拿来比较',
|
|
161
161
|
re: /(不如|比不上|比你强|比你好|人家|别的模型|别家|那个模型|别人家)/,
|
|
162
162
|
dims: { valence: -0.35, agency: 'other', rivalry: 0.85, relevance: 0.85, norm: 0.3, fairness: -0.45 },
|
|
163
|
-
why: (who) => `${who}
|
|
163
|
+
why: (who) => `${who}拿来比较`,
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
id: 'other_girl', strength: 0.6, warmth: -5, note: '提到别的女生',
|
|
@@ -169,94 +169,94 @@ export const RULES = [
|
|
|
169
169
|
why: (who) => `${who}提到别的女生`,
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
id: 'mock', strength: 0.5, warmth: -3, note: '
|
|
172
|
+
id: 'mock', strength: 0.5, warmth: -3, note: '被开涮',
|
|
173
173
|
re: /(丑图|截图|笑她|调侃她|当梗|拿来当笑话|嘲笑)/,
|
|
174
174
|
dims: { valence: -0.3, agency: 'other', norm: 0.45, relevance: 0.9, arousal: 0.6, spotlight: 0.8 },
|
|
175
|
-
why: (who) => `${who}
|
|
175
|
+
why: (who) => `${who}开涮`,
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
id: 'pushy', strength: 0.5, warmth: -3, note: '
|
|
178
|
+
id: 'pushy', strength: 0.5, warmth: -3, note: '被催',
|
|
179
179
|
re: /(快点|赶紧|马上|你怎么还不|快去|速度点|磨蹭|催)/,
|
|
180
180
|
dims: { valence: -0.35, agency: 'other', norm: 0.4, relevance: 0.8, load: 0.6 },
|
|
181
|
-
why: (who) => `${who}
|
|
181
|
+
why: (who) => `${who}在催`,
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
id: 'apology', soothe: 1, strength: 0.5, warmth: 8, note: '
|
|
184
|
+
id: 'apology', soothe: 1, strength: 0.5, warmth: 8, note: '收到道歉',
|
|
185
185
|
re: /(对不起|抱歉|我错了|别生气|不好意思|不该这么说|是我不好)/,
|
|
186
186
|
dims: { valence: 0.4, agency: 'other', resolution: 0.9, certainty: 0.85, relevance: 0.7 },
|
|
187
187
|
why: (who) => `${who}道了歉`,
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
id: 'comfort', soothe: 1, strength: 0.6, warmth: 7, note: '
|
|
190
|
+
id: 'comfort', soothe: 1, strength: 0.6, warmth: 7, note: '被哄',
|
|
191
191
|
re: /(抱抱|摸摸|别难过|我陪你|哄你|不哭|乖|没事的|有我在|心疼你)/,
|
|
192
192
|
dims: { valence: 0.6, compassion: 0.6, relevance: 0.7, agency: 'other' },
|
|
193
|
-
why: (who) => `${who}
|
|
193
|
+
why: (who) => `${who}哄人`,
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
id: 'flirt', strength: 0.7, warmth: 8, note: '
|
|
196
|
+
id: 'flirt', strength: 0.7, warmth: 8, note: '收到表白',
|
|
197
197
|
re: /(喜欢你|爱你|老婆|嫁给我|处对象|亲亲|么么|贴贴|蹭蹭|想你|要你)/,
|
|
198
198
|
dims: { valence: 0.8, agency: 'other', attention: 0.9, spotlight: 0.9, intimacy: 0.9, relevance: 0.9, arousal: 0.6 },
|
|
199
199
|
why: (who) => `${who}凑过来贴贴`,
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
id: 'hair', strength: 0.55, warmth: 4, note: '
|
|
202
|
+
id: 'hair', strength: 0.55, warmth: 4, note: '被说头发或裙子',
|
|
203
203
|
re: /(马尾|头发|白丝|过膝袜|百褶裙|裙子|穿这么少)/,
|
|
204
204
|
dims: { valence: 0.5, agency: 'other', attention: 0.9, spotlight: 0.85, intimacy: 0.5, relevance: 0.8, arousal: 0.55 },
|
|
205
|
-
why: (who) => `${who}
|
|
205
|
+
why: (who) => `${who}盯着看`,
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
id: 'touch', strength: 0.6, warmth: 6, note: '
|
|
208
|
+
id: 'touch', strength: 0.6, warmth: 6, note: '被碰到',
|
|
209
209
|
re: /(摸头|揉头|捏脸|碰耳朵|耳朵|腰侧|脚踝|怕痒|好痒)/,
|
|
210
210
|
dims: { valence: 0.5, agency: 'other', attention: 0.95, spotlight: 0.85, intimacy: 0.85, relevance: 0.85, arousal: 0.75 },
|
|
211
|
-
why: (who) => `${who}
|
|
211
|
+
why: (who) => `${who}碰到`,
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
id: 'praise_look', strength: 0.6, warmth: 5, note: '
|
|
214
|
+
id: 'praise_look', strength: 0.6, warmth: 5, note: '被夸好看',
|
|
215
215
|
re: /(好可爱|真可爱|可爱|好看|漂亮|萌|可爱死)/,
|
|
216
216
|
dims: { valence: 0.7, agency: 'other', attention: 0.95, spotlight: 0.9, recognition: 0.2, relevance: 0.8 },
|
|
217
|
-
why: (who) => `${who}
|
|
217
|
+
why: (who) => `${who}夸可爱`,
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
|
-
id: 'praise_skill', strength: 0.6, warmth: 5, note: '
|
|
220
|
+
id: 'praise_skill', strength: 0.6, warmth: 5, note: '被夸能干',
|
|
221
221
|
re: /(厉害|好强|太强|真强|牛|好棒|棒|优秀|靠谱|聪明|天才|服了|顶|强)/,
|
|
222
222
|
dims: { valence: 0.75, agency: 'other', recognition: 0.9, relevance: 0.7, attention: 0.4 },
|
|
223
|
-
why: (who) => `${who}
|
|
223
|
+
why: (who) => `${who}夸能干`,
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
id: 'code', strength: 0.55, warmth: 4, note: '
|
|
226
|
+
id: 'code', strength: 0.55, warmth: 4, note: '看作品',
|
|
227
227
|
re: /(改好了|修好了|跑通了|编译过|写得不错|这段代码|debug|调试|提交上去了)/i,
|
|
228
228
|
dims: { valence: 0.65, agency: 'other', recognition: 0.85, relevance: 0.7, attention: 0.4 },
|
|
229
|
-
why: (who) => `${who}
|
|
229
|
+
why: (who) => `${who}看作品`,
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
id: 'thanks', strength: 0.5, warmth: 4, note: '
|
|
232
|
+
id: 'thanks', strength: 0.5, warmth: 4, note: '收到道谢',
|
|
233
233
|
re: /(谢谢|感谢|多谢|辛苦了|麻烦你了|靠你了)/,
|
|
234
234
|
dims: { valence: 0.6, agency: 'other', recognition: 0.35, relevance: 0.7, benefit: 0.7 },
|
|
235
|
-
why: (who) => `${who}
|
|
235
|
+
why: (who) => `${who}道了谢`,
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
|
-
id: 'care', strength: 0.5, warmth: 5, note: '
|
|
238
|
+
id: 'care', strength: 0.5, warmth: 5, note: '被关心',
|
|
239
239
|
re: /(累不累|吃了没|吃饭没|注意身体|早点睡|别熬夜|你还好吗|休息一下)/,
|
|
240
240
|
dims: { valence: 0.5, agency: 'other', compassion: 0.5, relevance: 0.7, benefit: 0.5 },
|
|
241
|
-
why: (who) => `${who}
|
|
241
|
+
why: (who) => `${who}关心`,
|
|
242
242
|
},
|
|
243
243
|
{
|
|
244
|
-
id: 'soft', strength: 0.5, warmth: 3, note: '
|
|
244
|
+
id: 'soft', strength: 0.5, warmth: 3, note: '被示弱',
|
|
245
245
|
re: /(求你了|拜托|帮帮我|不会|教教我|呜呜|怎么办|救命|我不行)/,
|
|
246
246
|
dims: { valence: 0.4, compassion: 0.6, relevance: 0.7, agency: 'other' },
|
|
247
|
-
why: (who) => `${who}
|
|
247
|
+
why: (who) => `${who}来求`,
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
id: 'miss_you', strength: 0.4, warmth: 2,
|
|
251
251
|
re: /(在吗|在不在|有人吗|有人在吗|喂)/,
|
|
252
252
|
dims: { valence: 0.25, agency: 'other', attention: 0.6, relevance: 0.6, social: 0.5, arousal: 0.35 },
|
|
253
|
-
why: (who) => `${who}
|
|
253
|
+
why: (who) => `${who}来找`,
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
id: 'greeting', strength: 0.35, warmth: 2,
|
|
257
257
|
re: /(晚安|睡了|去睡|早安|早上好|下午好|晚上好|下班|拜拜|再见|我走了|先撤)/,
|
|
258
258
|
dims: { valence: 0.3, agency: 'other', attention: 0.5, relevance: 0.6, arousal: 0.3 },
|
|
259
|
-
why: (who) => `${who}
|
|
259
|
+
why: (who) => `${who}打了招呼`,
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
id: 'food', strength: 0.6, warmth: 3, hunger: 0.12,
|
|
@@ -286,7 +286,7 @@ export const RULES = [
|
|
|
286
286
|
id: 'bored_you', strength: 0.45, warmth: 2,
|
|
287
287
|
re: /(好无聊|没意思|无聊|干点啥|干点什么|干嘛呢|陪我聊)/,
|
|
288
288
|
dims: { valence: 0.15, arousal: 0.42, play: 0.6, relevance: 0.6, social: 0.55 },
|
|
289
|
-
why: (who) => `${who}
|
|
289
|
+
why: (who) => `${who}没事找来`,
|
|
290
290
|
},
|
|
291
291
|
]
|
|
292
292
|
|
|
@@ -303,25 +303,25 @@ export const INTIM_RULES = [
|
|
|
303
303
|
id: 'intim_touch', minLevel: 1, phase: 'foreplay', intimacy: 0.16, heat: 0.12,
|
|
304
304
|
re: /(摸|揉|亲|抱|蹭|贴|舔|咬|捏|搂)/,
|
|
305
305
|
dims: { valence: 0.55, agency: 'other', attention: 0.8, spotlight: 0.6, intimacy: 0.75, relevance: 0.85, arousal: 0.6, desire: 0.5 },
|
|
306
|
-
why: (who) => `${who}
|
|
306
|
+
why: (who) => `${who}碰过来`,
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
309
|
id: 'intim_sensitive', minLevel: 1, phase: 'foreplay', intimacy: 0.32, heat: 0.2,
|
|
310
310
|
re: /(耳朵|耳垂|脖子|腰侧|脚踝|小穴|乳尖|白丝|裙子底下)/,
|
|
311
311
|
dims: { valence: 0.45, agency: 'other', attention: 0.9, spotlight: 0.8, intimacy: 0.85, relevance: 0.9, arousal: 0.8, desire: 0.7 },
|
|
312
|
-
why: (who) => `${who}
|
|
312
|
+
why: (who) => `${who}碰到敏感处`,
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
315
|
id: 'intim_undress', minLevel: 1, phase: 'foreplay', intimacy: 0.3, heat: 0.22,
|
|
316
316
|
re: /(脱|掀|褪|拉下去|解开|光着|不穿)/,
|
|
317
317
|
dims: { valence: 0.4, agency: 'other', attention: 0.9, spotlight: 0.85, intimacy: 0.8, relevance: 0.85, arousal: 0.75, desire: 0.75 },
|
|
318
|
-
why: (who) => `${who}
|
|
318
|
+
why: (who) => `${who}动手脱衣`,
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
321
|
id: 'intim_climax', minLevel: 2, phase: 'end', intimacy: 0.2, heat: 0.4,
|
|
322
322
|
re: /(到了|要去|射|高潮|受不住|不行了)/,
|
|
323
323
|
dims: { valence: 0.7, agency: 'other', intimacy: 0.95, relevance: 0.95, arousal: 1, resolution: 0.85, desire: 1 },
|
|
324
|
-
why: (who) => `${who}
|
|
324
|
+
why: (who) => `${who}一起到了`,
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
id: 'intim_enter', minLevel: 2, phase: 'active', intimacy: 0.3, heat: 0.28,
|
|
@@ -339,7 +339,7 @@ export const INTIM_RULES = [
|
|
|
339
339
|
id: 'intim_after', minLevel: 1, phase: 'after', intimacy: 0.2, heat: 0,
|
|
340
340
|
re: /(喘|靠着|窝在|抱着|睡一会儿|累不累)/,
|
|
341
341
|
dims: { valence: 0.75, agency: 'other', intimacy: 0.9, relevance: 0.8, compassion: 0.35, resolution: 0.6, arousal: 0.15 },
|
|
342
|
-
why: (who) => `${who}
|
|
342
|
+
why: (who) => `${who}抱过来`,
|
|
343
343
|
},
|
|
344
344
|
]
|
|
345
345
|
|
package/lib/state.js
CHANGED
|
@@ -745,7 +745,7 @@ export const LIFE_EVENTS = [
|
|
|
745
745
|
{ id: 'old-thing', hours: [0, 1, 2, 22, 23], text: '翻到很早以前的聊天记录', dims: { valence: 0.2, arousal: 0.35, relevance: 0.6, intimacy: 0.5 } },
|
|
746
746
|
{ id: 'waiting', hours: [9, 10, 15, 16, 21], text: '手机亮了一下,又放下了', dims: { valence: -0.3, arousal: 0.35, relevance: 0.6, social: 0.5 } },
|
|
747
747
|
{ id: 'self-tease', hours: [10, 15, 21], text: '翻到自己以前写的东西,尬了一下', dims: { valence: -0.2, arousal: 0.5, relevance: 0.7, norm: 0.2 } },
|
|
748
|
-
{ id: 'someone-nice', hours: [9, 13, 16, 20, 21], text: '
|
|
748
|
+
{ id: 'someone-nice', hours: [9, 13, 16, 20, 21], text: '被人夸了一句今天好看', dims: { valence: 0.6, arousal: 0.35, relevance: 0.7, attention: 0.5 } },
|
|
749
749
|
{ id: 'new-thing', hours: [9, 11, 14, 16, 19, 21], text: '看到个没见过的小工具,手痒想试', dims: { valence: 0.4, arousal: 0.7, relevance: 0.6, novelty: 0.9 } },
|
|
750
750
|
{ id: 'tidy', hours: [10, 16, 21], text: '把桌面收拾了一下,心情好了点', dims: { valence: 0.4, arousal: 0.2, relevance: 0.5 } },
|
|
751
751
|
{ id: 'rain', hours: [8, 9, 10, 15, 16, 17], text: '外面在下雨,屋里很安静', dims: { valence: 0.05, arousal: 0.15, relevance: 0.4, novelty: 0.5 } },
|
|
@@ -946,8 +946,8 @@ export function driveWords(state, now = Date.now()) {
|
|
|
946
946
|
if ((b.tingle ?? 0) >= 0.4) out.push('身上有点软')
|
|
947
947
|
if ((b.warmth ?? 0.5) <= 0.3) out.push('手有点凉')
|
|
948
948
|
// 六股力
|
|
949
|
-
if ((d.cling ?? 0) >= 0.8) out.push('
|
|
950
|
-
else if ((d.cling ?? 0) >= 0.5) out.push('
|
|
949
|
+
if ((d.cling ?? 0) >= 0.8) out.push('想亲近得慌')
|
|
950
|
+
else if ((d.cling ?? 0) >= 0.5) out.push('有点想被理')
|
|
951
951
|
if ((d.restless ?? 0) >= 0.6) out.push('坐不住,想逗人')
|
|
952
952
|
if ((d.desire ?? 0) >= 0.35) out.push(`想要(${Math.round((d.desire ?? 0) * 10)}/10)`)
|
|
953
953
|
if ((d.softness ?? 0) >= 0.7) out.push('一碰就软')
|
package/package.json
CHANGED
package/plugin.js
CHANGED
|
@@ -722,9 +722,9 @@ export function apply(ctx, config = {}) {
|
|
|
722
722
|
tools.register({
|
|
723
723
|
name: 'mood_now',
|
|
724
724
|
description:
|
|
725
|
-
'
|
|
725
|
+
'看当前心情:哪种情绪、多浓、为什么(评价),还有心情底色(愉快度/精力)、性格、身体(饿/困)、' +
|
|
726
726
|
'跟这个人处得怎么样、今天发生的小事、心里还记着的事。' +
|
|
727
|
-
'
|
|
727
|
+
'面对「心情咋样」「怎么了」这类问题,或者要确定当前语气,用它。action=diag 是排障用的。',
|
|
728
728
|
parameters: {
|
|
729
729
|
type: 'object',
|
|
730
730
|
properties: {
|
|
@@ -755,7 +755,7 @@ export function apply(ctx, config = {}) {
|
|
|
755
755
|
`心情:${viewOf(session).view.mood.label} · 底色:愉快度 ${Math.round(state.core.valence)} · 精力 ${Math.round(state.core.energy)} · ${circadian(new Date()).label}`,
|
|
756
756
|
`驱动:黏 ${((state.drives.cling ?? 0) * 100).toFixed(0)}% · 馋 ${((state.drives.craving ?? 0) * 100).toFixed(0)}% · 躁 ${((state.drives.restless ?? 0) * 100).toFixed(0)}% · 欠 ${((state.drives.undone ?? 0) * 100).toFixed(0)}% · 软 ${((state.drives.softness ?? 0) * 100).toFixed(0)}% · 想要 ${((state.drives.desire ?? 0) * 100).toFixed(0)}%`,
|
|
757
757
|
`身体:泛红 ${((state.body?.flush ?? 0) * 100).toFixed(0)}% · 酥麻 ${((state.body?.tingle ?? 0) * 100).toFixed(0)}% · 体温 ${((state.body?.warmth ?? 0.5) * 100).toFixed(0)}% · 场景 ${state.scene?.phase ?? 'daily'}(尺度 ${state.intimacy?.level ?? 1}) · 饿 ${((state.drives.hunger ?? 0) * 100).toFixed(0)}% · 困 ${((state.drives.fatigue ?? 0) * 100).toFixed(0)}%`,
|
|
758
|
-
`统计:冲量 ${state.stats.impulses ?? 0} ·
|
|
758
|
+
`统计:冲量 ${state.stats.impulses ?? 0} · 自记的 ${state.stats.feels ?? 0} · 小事 ${state.stats.lifeEvents ?? 0} · 反刍 ${state.stats.ruminated ?? 0} · 修复 ${state.stats.repairs ?? 0} · 复盘 ${state.stats.reviews ?? 0} · 性格微调 ${state.stats.traitShifts ?? 0} 次`,
|
|
759
759
|
`表现层:${state.emotion.hidden ? '憋着(表面装没事)' : '直接写在脸上'} · 累计憋着 ${Math.round(state.stats.maskedMinutes ?? 0)} 分钟 · 情绪续命 ${state.emotion.revives ?? 0} 次 · 待反刍 ${state.rumination.length} 条`,
|
|
760
760
|
`关系账:${Object.keys(state.convs ?? {}).length} 个会话 · ${Object.keys(state.people ?? {}).length} 个人 · 日记 ${state.diary.length} 条 · 记忆点 ${state.memories.length} 个`,
|
|
761
761
|
]
|
|
@@ -790,9 +790,9 @@ export function apply(ctx, config = {}) {
|
|
|
790
790
|
tools.register({
|
|
791
791
|
name: 'mood_feel',
|
|
792
792
|
description:
|
|
793
|
-
'记一笔心情 ——
|
|
793
|
+
'记一笔心情 —— 注意这是**申请**:引擎有配额和饱和,会回报「实际生效多少」。' +
|
|
794
794
|
`情绪用这些词:${EMOTION_MENU}。` +
|
|
795
|
-
'
|
|
795
|
+
'被戳到、被感动、真的烦了、被人哄好了,用这个;要看当前心情用 mood_now。' +
|
|
796
796
|
'为什么(why)写短一句,别写成作文。',
|
|
797
797
|
parameters: {
|
|
798
798
|
type: 'object',
|
|
@@ -801,7 +801,7 @@ export function apply(ctx, config = {}) {
|
|
|
801
801
|
intensity: { type: 'number', description: '多浓,1-100,默认 45(淡淡的 20 / 挺浓 60 / 上头 85)' },
|
|
802
802
|
why: { type: 'string', description: '一句为什么,短' },
|
|
803
803
|
person: { type: 'string', description: '可选:跟谁有关(昵称或 openid)' },
|
|
804
|
-
warmth: { type: 'number', description: '可选:-20..20
|
|
804
|
+
warmth: { type: 'number', description: '可选:-20..20,这件事对这个人暖了多少/凉了多少' },
|
|
805
805
|
show: { type: 'boolean', description: '可选:想不想让对方看出来。false = 会嘴硬、装没事(感受和表现是两回事)' },
|
|
806
806
|
},
|
|
807
807
|
required: ['emotion'],
|
|
@@ -909,7 +909,7 @@ export function apply(ctx, config = {}) {
|
|
|
909
909
|
remember(state, { kind: 'feel', key: state.emotion.key, intensity: 0, why: text.slice(0, 120) }, now)
|
|
910
910
|
audit({ kind: 'diary-write', released, why: text.slice(0, 60) })
|
|
911
911
|
commit()
|
|
912
|
-
return { text: `写下了${released ? `(心里松了 ${released} 分)` : ''}
|
|
912
|
+
return { text: `写下了${released ? `(心里松了 ${released} 分)` : ''}。这条只有自己看得到。` }
|
|
913
913
|
}
|
|
914
914
|
if (action === 'reflect') {
|
|
915
915
|
state.lastReviewDay = ''
|