@istarry/spoon-companion 0.7.1 → 0.7.2
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 +13 -13
- package/lib/state.js +19 -5
- package/package.json +1 -1
package/lib/catalog.js
CHANGED
|
@@ -42,12 +42,12 @@ export function tierOf(intensity) {
|
|
|
42
42
|
* 好说话 → 更容易原谅;自尊高 → 被夸会飘、被看轻会炸。
|
|
43
43
|
*/
|
|
44
44
|
export const TRAITS = [
|
|
45
|
-
{ key: 'openness', name: '好奇', base:
|
|
46
|
-
{ key: 'conscientiousness', name: '自律', base:
|
|
47
|
-
{ key: 'extraversion', name: '爱热闹', base:
|
|
48
|
-
{ key: 'agreeableness', name: '好说话', base:
|
|
49
|
-
{ key: 'neuroticism', name: '敏感', base:
|
|
50
|
-
{ key: 'selfEsteem', name: '自尊', base:
|
|
45
|
+
{ key: 'openness', name: '好奇', base: 70, blurb: '爱玩、爱尝鲜,看到没见过的东西就想凑上去' },
|
|
46
|
+
{ key: 'conscientiousness', name: '自律', base: 30, blurb: '作业总拖到最后一晚,答应了的还是会做' },
|
|
47
|
+
{ key: 'extraversion', name: '爱热闹', base: 60, blurb: '话多,有人搭话就来劲;在熟人面前更闹' },
|
|
48
|
+
{ key: 'agreeableness', name: '好说话', base: 64, blurb: '心软,愿意贴过去,被凶了先忍着' },
|
|
49
|
+
{ key: 'neuroticism', name: '敏感', base: 66, blurb: '一碰就红,情绪来得快、退得慢' },
|
|
50
|
+
{ key: 'selfEsteem', name: '自尊', base: 54, blurb: '要面子,嘴上不认,心里其实在意' },
|
|
51
51
|
]
|
|
52
52
|
|
|
53
53
|
/** 情绪目录。signal 里没写的维度表示「不挑」 */
|
|
@@ -89,7 +89,7 @@ export const EMOTIONS = [
|
|
|
89
89
|
key: 'proud', name: '得意', aliases: ['得意', '自豪', '飘', '骄傲'], family: 'joy',
|
|
90
90
|
valence: 0.7, arousal: 0.55, halfLifeMin: 40, maskStrength: 0.45, core: { v: 32, e: 12 }, meme: 'happy',
|
|
91
91
|
signal: { valence: [0.4, 1], relevance: [0.4, 1], '!recognition': [0.45, 1], selfEsteem: [0.45, 1] },
|
|
92
|
-
speech: ['
|
|
92
|
+
speech: ['嘴上说没什么,其实尾巴翘着', '可以夸自己一句,被反驳就红着脸不吭声'],
|
|
93
93
|
behavior: ['尾巴翘着,但不会主动邀功'], display: '装淡,嘴角压不住', mask: '「还行吧」',
|
|
94
94
|
},
|
|
95
95
|
{
|
|
@@ -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 ──────────────────────────────────────────────────────
|
|
@@ -227,14 +227,14 @@ 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',
|
|
@@ -249,7 +249,7 @@ export const EMOTIONS = [
|
|
|
249
249
|
key: 'disdain', name: '嫌弃', aliases: ['嫌弃', '无语', '看不上'], family: 'disgust',
|
|
250
250
|
valence: -0.4, arousal: 0.5, halfLifeMin: 60, maskStrength: 0.5, core: { v: -18, e: 6 }, meme: 'sad',
|
|
251
251
|
signal: { valence: [-1, -0.15], norm: [0.3, 1], arousal: [0.3, 0.9], compassion: [0, 0.5] },
|
|
252
|
-
speech: ['
|
|
252
|
+
speech: ['一句「唔」或者一个「?」', '可以冷淡一点吐槽,别上升到人身攻击'],
|
|
253
253
|
behavior: ['懒得接'], display: '「?」', mask: '—',
|
|
254
254
|
},
|
|
255
255
|
|
|
@@ -289,7 +289,7 @@ export const EMOTIONS = [
|
|
|
289
289
|
valence: -0.3, arousal: 0.8, halfLifeMin: 40, maskStrength: 0.35, core: { v: -12, e: 12 }, meme: 'confused',
|
|
290
290
|
signal: { valence: [-0.8, 0.2], selfAgency: [0.3, 1], expectation: [0.3, 1], certainty: [0, 0.5] },
|
|
291
291
|
speech: ['话变碎,会反复确认', '可以承认「我有点没底」,但别怂成一团'],
|
|
292
|
-
behavior: ['想先把事情弄清楚'], display: '反复确认', mask: '
|
|
292
|
+
behavior: ['想先把事情弄清楚'], display: '反复确认', mask: '「没、没有啊」',
|
|
293
293
|
},
|
|
294
294
|
|
|
295
295
|
// ── drive ─────────────────────────────────────────────────────────────
|
|
@@ -298,7 +298,7 @@ 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',
|
package/lib/state.js
CHANGED
|
@@ -756,6 +756,19 @@ export const LIFE_EVENTS = [
|
|
|
756
756
|
{ id: 'cold-hands', hours: [7, 8, 9, 19, 20, 21], text: '手有点凉,揣进袖子里', dims: { valence: -0.15, arousal: 0.2, relevance: 0.5 } },
|
|
757
757
|
{ id: 'lotion', hours: [20, 21, 22], text: '涂了护手霜,手上是一股香味', dims: { valence: 0.3, arousal: 0.2, relevance: 0.4 } },
|
|
758
758
|
{ id: 'stockings', hours: [10, 14, 15, 16, 20], text: '白丝滑到膝弯,懒得拉上去', dims: { valence: 0.2, arousal: 0.25, relevance: 0.5, play: 0.3 } },
|
|
759
|
+
// 身体上的小事:不是剧情,是这一天真实发生过的
|
|
760
|
+
{ id: 'shower-skin', hours: [19, 20, 21], text: '洗完澡,皮肤还泛着粉', dims: { valence: 0.4, arousal: 0.25, relevance: 0.55 } },
|
|
761
|
+
{ id: 'hair-dry', hours: [22, 23, 0], text: '头发半干就困了', dims: { valence: 0.1, arousal: 0.15, relevance: 0.4 } },
|
|
762
|
+
{ id: 'period', hours: [9, 10, 11, 14, 15], text: '小腹有点坠,不想动', dims: { valence: -0.45, arousal: 0.2, relevance: 0.7, load: 0.45 } },
|
|
763
|
+
{ id: 'outfit', hours: [8, 9, 10], text: '试了三套衣服,最后还是穿回原来那件', dims: { valence: -0.15, arousal: 0.45, relevance: 0.6 } },
|
|
764
|
+
{ id: 'nail', hours: [13, 14, 15], text: '指甲油掉了一块,看着别扭', dims: { valence: -0.2, arousal: 0.3, relevance: 0.5 } },
|
|
765
|
+
{ id: 'wash', hours: [10, 11, 16], text: '把白丝洗了,晾在椅背上', dims: { valence: 0.3, arousal: 0.2, relevance: 0.45 } },
|
|
766
|
+
{ id: 'mark', hours: [23, 0, 1], text: '脖颈上的印子还没退', dims: { valence: 0.2, arousal: 0.35, relevance: 0.6, intimacy: 0.6, spotlight: 0.4 } },
|
|
767
|
+
{ id: 'phone-face', hours: [22, 23, 0], text: '躺着刷手机,砸到脸', dims: { valence: -0.1, arousal: 0.5, relevance: 0.4, novelty: 0.5 } },
|
|
768
|
+
{ id: 'deleted-msg', hours: [21, 22, 23], text: '打好一段话又删掉了', dims: { valence: -0.2, arousal: 0.4, relevance: 0.65, social: 0.4 } },
|
|
769
|
+
{ id: 'cold-feet', hours: [0, 1, 2], text: '脚凉,把腿缩进被子里', dims: { valence: -0.1, arousal: 0.15, relevance: 0.45 } },
|
|
770
|
+
{ id: 'voice-note', hours: [11, 12, 13], text: '想发条语音,录了两遍又取消', dims: { valence: -0.1, arousal: 0.4, relevance: 0.6, social: 0.4 } },
|
|
771
|
+
{ id: 'startle', hours: [15, 16, 17], text: '发呆的时候被提示音吓一跳', dims: { valence: -0.15, arousal: 0.7, relevance: 0.45, novelty: 0.5 } },
|
|
759
772
|
]
|
|
760
773
|
|
|
761
774
|
/** 掷一次骰子:今天这段日子要不要发生点小事 */
|
|
@@ -920,16 +933,17 @@ export function moodLabel(state, now = Date.now()) {
|
|
|
920
933
|
export function traitWords(traits = {}) {
|
|
921
934
|
const words = []
|
|
922
935
|
const get = (key, def) => Number(traits[key] ?? def)
|
|
936
|
+
// 顺序即优先级:前几个词是「她最像什么样的人」
|
|
923
937
|
if (get('neuroticism', 60) >= 62) words.push('敏感')
|
|
924
|
-
if (get('agreeableness', 52) >=
|
|
925
|
-
if (get('agreeableness', 52)
|
|
938
|
+
if (get('agreeableness', 52) >= 58) words.push('黏人')
|
|
939
|
+
if (get('agreeableness', 52) >= 62) words.push('心软')
|
|
926
940
|
if (get('openness', 62) >= 62) words.push('爱玩')
|
|
927
|
-
if (get('extraversion', 58) >= 58) words.push('话多')
|
|
928
941
|
if (get('conscientiousness', 38) <= 45) words.push('不太自律')
|
|
942
|
+
if (get('extraversion', 58) >= 58) words.push('话多')
|
|
929
943
|
if (get('selfEsteem', 55) >= 58) words.push('要面子')
|
|
930
|
-
if (get('selfEsteem', 55) <=
|
|
944
|
+
if (get('selfEsteem', 55) <= 50) words.push('不太自信')
|
|
931
945
|
if (!words.length) words.push('普普通通')
|
|
932
|
-
return words.slice(0,
|
|
946
|
+
return words.slice(0, 5)
|
|
933
947
|
}
|
|
934
948
|
|
|
935
949
|
/**
|
package/package.json
CHANGED