cbrowser 16.7.2 → 16.8.0
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/browser.d.ts.map +1 -1
- package/dist/browser.js +52 -7
- package/dist/browser.js.map +1 -1
- package/dist/cognitive/index.d.ts.map +1 -1
- package/dist/cognitive/index.js +22 -0
- package/dist/cognitive/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/personas.d.ts.map +1 -1
- package/dist/personas.js +17 -2
- package/dist/personas.js.map +1 -1
- package/dist/testing/nl-test-suite.d.ts +2 -0
- package/dist/testing/nl-test-suite.d.ts.map +1 -1
- package/dist/testing/nl-test-suite.js +38 -1
- package/dist/testing/nl-test-suite.js.map +1 -1
- package/dist/values/index.d.ts +14 -0
- package/dist/values/index.d.ts.map +1 -0
- package/dist/values/index.js +17 -0
- package/dist/values/index.js.map +1 -0
- package/dist/values/persona-values.d.ts +36 -0
- package/dist/values/persona-values.d.ts.map +1 -0
- package/dist/values/persona-values.js +343 -0
- package/dist/values/persona-values.js.map +1 -0
- package/dist/values/schwartz-values.d.ts +207 -0
- package/dist/values/schwartz-values.d.ts.map +1 -0
- package/dist/values/schwartz-values.js +130 -0
- package/dist/values/schwartz-values.js.map +1 -0
- package/dist/values/value-mappings.d.ts +97 -0
- package/dist/values/value-mappings.d.ts.map +1 -0
- package/dist/values/value-mappings.js +520 -0
- package/dist/values/value-mappings.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Value → Behavior → Influence Pattern Mappings
|
|
3
|
+
*
|
|
4
|
+
* Maps Schwartz values to behavioral tendencies and effective influence patterns.
|
|
5
|
+
* Used to predict which persuasion techniques will be effective for a given persona.
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2026 WF Media (Alexandria Eden) alexandria.shai.eden@gmail.com
|
|
8
|
+
* @license BSL-1.1 (Business Source License 1.1) - See LICENSE file
|
|
9
|
+
*
|
|
10
|
+
* @references
|
|
11
|
+
* - Cialdini, R.B. (2001). Influence: Science and practice (4th ed.).
|
|
12
|
+
* Boston: Allyn & Bacon.
|
|
13
|
+
*
|
|
14
|
+
* - Goldstein, N.J., Cialdini, R.B., & Griskevicius, V. (2008). A room with a
|
|
15
|
+
* viewpoint: Using social norms to motivate environmental conservation.
|
|
16
|
+
* Journal of Consumer Research, 35(3), 472-482.
|
|
17
|
+
*
|
|
18
|
+
* - Tversky, A., & Kahneman, D. (1974). Judgment under uncertainty: Heuristics
|
|
19
|
+
* and biases. Science, 185(4157), 1124-1131.
|
|
20
|
+
*
|
|
21
|
+
* - Baumeister, R.F., Bratslavsky, E., Muraven, M., & Tice, D.M. (1998).
|
|
22
|
+
* Ego depletion: Is the active self a limited resource?
|
|
23
|
+
* Journal of Personality and Social Psychology, 74(5), 1252-1265.
|
|
24
|
+
*/
|
|
25
|
+
/**
|
|
26
|
+
* Behavioral mappings for each Schwartz value.
|
|
27
|
+
*/
|
|
28
|
+
export const VALUE_BEHAVIORS = {
|
|
29
|
+
selfDirection: {
|
|
30
|
+
highBehaviors: [
|
|
31
|
+
"Explores all options before deciding",
|
|
32
|
+
"Resists default selections",
|
|
33
|
+
"Customizes settings extensively",
|
|
34
|
+
"Questions recommended paths",
|
|
35
|
+
"Seeks control over experience",
|
|
36
|
+
],
|
|
37
|
+
lowBehaviors: [
|
|
38
|
+
"Accepts defaults readily",
|
|
39
|
+
"Follows recommended paths",
|
|
40
|
+
"Minimal customization",
|
|
41
|
+
"Prefers guided experiences",
|
|
42
|
+
],
|
|
43
|
+
positiveResponses: [
|
|
44
|
+
"Customization options",
|
|
45
|
+
"Advanced settings",
|
|
46
|
+
"Multiple pathways",
|
|
47
|
+
"DIY options",
|
|
48
|
+
],
|
|
49
|
+
negativeResponses: [
|
|
50
|
+
"Forced paths",
|
|
51
|
+
"No customization",
|
|
52
|
+
"One-size-fits-all",
|
|
53
|
+
"Prescriptive guidance",
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
stimulation: {
|
|
57
|
+
highBehaviors: [
|
|
58
|
+
"Clicks 'What's new' immediately",
|
|
59
|
+
"Tries beta features",
|
|
60
|
+
"Explores unfamiliar sections",
|
|
61
|
+
"Gets bored with routine",
|
|
62
|
+
"Seeks novel experiences",
|
|
63
|
+
],
|
|
64
|
+
lowBehaviors: [
|
|
65
|
+
"Sticks to known paths",
|
|
66
|
+
"Avoids beta/experimental",
|
|
67
|
+
"Prefers familiar interfaces",
|
|
68
|
+
"Values consistency over novelty",
|
|
69
|
+
],
|
|
70
|
+
positiveResponses: [
|
|
71
|
+
"New feature badges",
|
|
72
|
+
"Beta access",
|
|
73
|
+
"Exclusive early access",
|
|
74
|
+
"Gamification elements",
|
|
75
|
+
],
|
|
76
|
+
negativeResponses: [
|
|
77
|
+
"Stale content",
|
|
78
|
+
"No updates visible",
|
|
79
|
+
"Boring/static design",
|
|
80
|
+
"Routine messaging",
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
hedonism: {
|
|
84
|
+
highBehaviors: [
|
|
85
|
+
"Responds strongly to visual appeal",
|
|
86
|
+
"Prefers delightful micro-interactions",
|
|
87
|
+
"Values aesthetic over function",
|
|
88
|
+
"Seeks enjoyable experiences",
|
|
89
|
+
],
|
|
90
|
+
lowBehaviors: [
|
|
91
|
+
"Ignores visual polish",
|
|
92
|
+
"Function over form",
|
|
93
|
+
"Minimal aesthetic concern",
|
|
94
|
+
"Task-focused only",
|
|
95
|
+
],
|
|
96
|
+
positiveResponses: [
|
|
97
|
+
"Beautiful design",
|
|
98
|
+
"Smooth animations",
|
|
99
|
+
"Delightful interactions",
|
|
100
|
+
"Pleasure-focused copy",
|
|
101
|
+
],
|
|
102
|
+
negativeResponses: [
|
|
103
|
+
"Utilitarian design",
|
|
104
|
+
"Clunky interactions",
|
|
105
|
+
"No visual appeal",
|
|
106
|
+
"Cold/clinical aesthetic",
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
achievement: {
|
|
110
|
+
highBehaviors: [
|
|
111
|
+
"Seeks efficiency metrics",
|
|
112
|
+
"Wants ROI proof",
|
|
113
|
+
"Focuses on outcomes",
|
|
114
|
+
"Compares performance",
|
|
115
|
+
"Values competence signals",
|
|
116
|
+
],
|
|
117
|
+
lowBehaviors: [
|
|
118
|
+
"Less concerned with metrics",
|
|
119
|
+
"Doesn't need ROI proof",
|
|
120
|
+
"Process over outcomes",
|
|
121
|
+
"Avoids comparisons",
|
|
122
|
+
],
|
|
123
|
+
positiveResponses: [
|
|
124
|
+
"ROI calculators",
|
|
125
|
+
"Success metrics",
|
|
126
|
+
"Performance comparisons",
|
|
127
|
+
"Achievement badges",
|
|
128
|
+
"Efficiency claims",
|
|
129
|
+
],
|
|
130
|
+
negativeResponses: [
|
|
131
|
+
"No proof of value",
|
|
132
|
+
"Vague benefits",
|
|
133
|
+
"No metrics",
|
|
134
|
+
"Unclear outcomes",
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
power: {
|
|
138
|
+
highBehaviors: [
|
|
139
|
+
"Attracted to premium tiers",
|
|
140
|
+
"Seeks exclusive access",
|
|
141
|
+
"Values status signals",
|
|
142
|
+
"Wants differentiation",
|
|
143
|
+
"Responds to authority positioning",
|
|
144
|
+
],
|
|
145
|
+
lowBehaviors: [
|
|
146
|
+
"Ignores premium positioning",
|
|
147
|
+
"Doesn't need exclusivity",
|
|
148
|
+
"Status-neutral",
|
|
149
|
+
"Prefers equality",
|
|
150
|
+
],
|
|
151
|
+
positiveResponses: [
|
|
152
|
+
"Premium branding",
|
|
153
|
+
"Exclusive access",
|
|
154
|
+
"'VIP' or 'Elite' tiers",
|
|
155
|
+
"Status differentiation",
|
|
156
|
+
"Authority endorsements",
|
|
157
|
+
],
|
|
158
|
+
negativeResponses: [
|
|
159
|
+
"Budget positioning",
|
|
160
|
+
"One-tier-for-all",
|
|
161
|
+
"Egalitarian messaging",
|
|
162
|
+
"No status differentiation",
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
security: {
|
|
166
|
+
highBehaviors: [
|
|
167
|
+
"Reads all fine print",
|
|
168
|
+
"Seeks guarantees",
|
|
169
|
+
"Researches extensively",
|
|
170
|
+
"Avoids perceived risks",
|
|
171
|
+
"Needs trust signals",
|
|
172
|
+
],
|
|
173
|
+
lowBehaviors: [
|
|
174
|
+
"Skips fine print",
|
|
175
|
+
"Comfortable with uncertainty",
|
|
176
|
+
"Quick decisions",
|
|
177
|
+
"Risk-tolerant",
|
|
178
|
+
],
|
|
179
|
+
positiveResponses: [
|
|
180
|
+
"Money-back guarantees",
|
|
181
|
+
"Security badges",
|
|
182
|
+
"Trust seals",
|
|
183
|
+
"Detailed policies",
|
|
184
|
+
"Longevity claims",
|
|
185
|
+
"Insurance options",
|
|
186
|
+
],
|
|
187
|
+
negativeResponses: [
|
|
188
|
+
"No guarantees visible",
|
|
189
|
+
"Missing trust signals",
|
|
190
|
+
"Unclear policies",
|
|
191
|
+
"New/unproven",
|
|
192
|
+
"Risk messaging",
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
conformity: {
|
|
196
|
+
highBehaviors: [
|
|
197
|
+
"Reads reviews extensively",
|
|
198
|
+
"Follows recommendations",
|
|
199
|
+
"Seeks social validation",
|
|
200
|
+
"Influenced by majority behavior",
|
|
201
|
+
"Avoids being different",
|
|
202
|
+
],
|
|
203
|
+
lowBehaviors: [
|
|
204
|
+
"Ignores reviews",
|
|
205
|
+
"Independent decisions",
|
|
206
|
+
"Doesn't need validation",
|
|
207
|
+
"Comfortable being different",
|
|
208
|
+
],
|
|
209
|
+
positiveResponses: [
|
|
210
|
+
"Customer reviews",
|
|
211
|
+
"Testimonials",
|
|
212
|
+
"Social proof numbers",
|
|
213
|
+
"'Most popular' badges",
|
|
214
|
+
"User counts",
|
|
215
|
+
],
|
|
216
|
+
negativeResponses: [
|
|
217
|
+
"No social proof",
|
|
218
|
+
"No reviews",
|
|
219
|
+
"Unique/different positioning",
|
|
220
|
+
"Minority messaging",
|
|
221
|
+
],
|
|
222
|
+
},
|
|
223
|
+
tradition: {
|
|
224
|
+
highBehaviors: [
|
|
225
|
+
"Prefers established brands",
|
|
226
|
+
"Skeptical of new",
|
|
227
|
+
"Values heritage",
|
|
228
|
+
"Follows customs",
|
|
229
|
+
"Resistant to change",
|
|
230
|
+
],
|
|
231
|
+
lowBehaviors: [
|
|
232
|
+
"Open to new brands",
|
|
233
|
+
"Embraces change",
|
|
234
|
+
"Questions traditions",
|
|
235
|
+
"Progressive outlook",
|
|
236
|
+
],
|
|
237
|
+
positiveResponses: [
|
|
238
|
+
"Heritage messaging",
|
|
239
|
+
"'Since [year]' claims",
|
|
240
|
+
"Traditional values",
|
|
241
|
+
"Established brand signals",
|
|
242
|
+
"Conservative design",
|
|
243
|
+
],
|
|
244
|
+
negativeResponses: [
|
|
245
|
+
"New/startup positioning",
|
|
246
|
+
"Disruptive messaging",
|
|
247
|
+
"Change-focused copy",
|
|
248
|
+
"Modern/trendy design",
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
benevolence: {
|
|
252
|
+
highBehaviors: [
|
|
253
|
+
"Responds to helping messaging",
|
|
254
|
+
"Values community",
|
|
255
|
+
"Influenced by impact on others",
|
|
256
|
+
"Seeks to contribute",
|
|
257
|
+
"Empathetic responses",
|
|
258
|
+
],
|
|
259
|
+
lowBehaviors: [
|
|
260
|
+
"Self-focused",
|
|
261
|
+
"Less community-oriented",
|
|
262
|
+
"Individual outcomes priority",
|
|
263
|
+
"Less empathetic",
|
|
264
|
+
],
|
|
265
|
+
positiveResponses: [
|
|
266
|
+
"Community features",
|
|
267
|
+
"Helping others messaging",
|
|
268
|
+
"Team/family benefits",
|
|
269
|
+
"Charitable giving",
|
|
270
|
+
"Impact stories",
|
|
271
|
+
],
|
|
272
|
+
negativeResponses: [
|
|
273
|
+
"Self-only benefits",
|
|
274
|
+
"No community aspect",
|
|
275
|
+
"Purely individual focus",
|
|
276
|
+
"No giving back",
|
|
277
|
+
],
|
|
278
|
+
},
|
|
279
|
+
universalism: {
|
|
280
|
+
highBehaviors: [
|
|
281
|
+
"Checks for ethical practices",
|
|
282
|
+
"Values sustainability",
|
|
283
|
+
"Concerned with social impact",
|
|
284
|
+
"Broad concern for welfare",
|
|
285
|
+
"Environmental awareness",
|
|
286
|
+
],
|
|
287
|
+
lowBehaviors: [
|
|
288
|
+
"Ignores ethical concerns",
|
|
289
|
+
"Sustainability not priority",
|
|
290
|
+
"Limited social concern",
|
|
291
|
+
"Individual focus",
|
|
292
|
+
],
|
|
293
|
+
positiveResponses: [
|
|
294
|
+
"B-Corp certification",
|
|
295
|
+
"Sustainability claims",
|
|
296
|
+
"Social impact",
|
|
297
|
+
"Ethical sourcing",
|
|
298
|
+
"Environmental badges",
|
|
299
|
+
"Diversity messaging",
|
|
300
|
+
],
|
|
301
|
+
negativeResponses: [
|
|
302
|
+
"No ethical signals",
|
|
303
|
+
"No sustainability",
|
|
304
|
+
"Pure profit focus",
|
|
305
|
+
"No social awareness",
|
|
306
|
+
],
|
|
307
|
+
},
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Research-backed influence patterns.
|
|
311
|
+
*/
|
|
312
|
+
export const INFLUENCE_PATTERNS = [
|
|
313
|
+
{
|
|
314
|
+
name: "scarcity",
|
|
315
|
+
description: "Limited availability or time creates urgency",
|
|
316
|
+
researchBasis: "Cialdini (2001): Scarcity increases perceived value",
|
|
317
|
+
targetValues: ["stimulation", "achievement", "power"],
|
|
318
|
+
mechanism: "FOMO activation, loss aversion trigger",
|
|
319
|
+
examples: ["Only 3 left in stock", "Offer ends in 2 hours", "Limited edition"],
|
|
320
|
+
effectivenessData: {
|
|
321
|
+
metric: "Conversion lift",
|
|
322
|
+
value: 0.178,
|
|
323
|
+
source: "CXL Institute (stock scarcity)",
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: "social_proof",
|
|
328
|
+
description: "Evidence of others' behavior guides decisions",
|
|
329
|
+
researchBasis: "Goldstein et al. (2008): Social norms drive behavior",
|
|
330
|
+
targetValues: ["conformity", "security"],
|
|
331
|
+
mechanism: "Uncertainty reduction through social validation",
|
|
332
|
+
examples: ["Trusted by 1M users", "4.8 stars from 10K reviews", "Most popular choice"],
|
|
333
|
+
effectivenessData: {
|
|
334
|
+
metric: "Purchase likelihood increase",
|
|
335
|
+
value: 0.77,
|
|
336
|
+
source: "Spiegel Research Center (1+ reviews)",
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "authority",
|
|
341
|
+
description: "Expert endorsement increases credibility",
|
|
342
|
+
researchBasis: "Milgram (1963): Authority figures drive compliance",
|
|
343
|
+
targetValues: ["security", "conformity", "tradition"],
|
|
344
|
+
mechanism: "Trust transfer from authority to product",
|
|
345
|
+
examples: ["Recommended by doctors", "Used by Fortune 500", "Expert endorsed"],
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "reciprocity",
|
|
349
|
+
description: "Giving something creates obligation to return",
|
|
350
|
+
researchBasis: "Cialdini (2001): Reciprocity norm is universal",
|
|
351
|
+
targetValues: ["benevolence", "conformity"],
|
|
352
|
+
mechanism: "Obligation creation through value provision",
|
|
353
|
+
examples: ["Free ebook download", "No-obligation trial", "Free assessment"],
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
name: "commitment",
|
|
357
|
+
description: "Small commitments lead to larger ones",
|
|
358
|
+
researchBasis: "Cialdini (2001): Consistency principle",
|
|
359
|
+
targetValues: ["achievement", "selfDirection"],
|
|
360
|
+
mechanism: "Self-consistency motivation after initial commitment",
|
|
361
|
+
examples: ["Save progress", "Quiz completion", "Profile building"],
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: "liking",
|
|
365
|
+
description: "Attractiveness and similarity increase persuasion",
|
|
366
|
+
researchBasis: "Cialdini (2001): We comply with those we like",
|
|
367
|
+
targetValues: ["hedonism", "benevolence"],
|
|
368
|
+
mechanism: "Positive affect transfer to product",
|
|
369
|
+
examples: ["Friendly tone", "Similar user stories", "Attractive design"],
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
name: "unity",
|
|
373
|
+
description: "Shared identity creates belonging",
|
|
374
|
+
researchBasis: "Cialdini (2016): The 7th principle of persuasion",
|
|
375
|
+
targetValues: ["benevolence", "tradition", "conformity"],
|
|
376
|
+
mechanism: "In-group identification and loyalty",
|
|
377
|
+
examples: ["Join our community", "Fellow founders", "Part of the family"],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "anchoring",
|
|
381
|
+
description: "First number sets reference point for comparison",
|
|
382
|
+
researchBasis: "Tversky & Kahneman (1974): Anchoring heuristic",
|
|
383
|
+
targetValues: ["achievement", "security"],
|
|
384
|
+
mechanism: "Reference point manipulation for value perception",
|
|
385
|
+
examples: ["Was $99, now $49", "Compare at $199", "Save 50%"],
|
|
386
|
+
effectivenessData: {
|
|
387
|
+
metric: "Sales increase (charm pricing)",
|
|
388
|
+
value: 0.24,
|
|
389
|
+
source: "Academic meta-analysis",
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "decoy_effect",
|
|
394
|
+
description: "Inferior option makes target look better",
|
|
395
|
+
researchBasis: "Heath & Chatterjee (1995): Asymmetric dominance",
|
|
396
|
+
targetValues: ["achievement", "selfDirection"],
|
|
397
|
+
mechanism: "Comparative evaluation bias toward target",
|
|
398
|
+
examples: ["Basic/Pro/Enterprise tiers", "Odd pricing structures"],
|
|
399
|
+
effectivenessData: {
|
|
400
|
+
metric: "Target option boost",
|
|
401
|
+
value: 0.113,
|
|
402
|
+
source: "Heath & Chatterjee meta-analysis",
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
name: "loss_aversion",
|
|
407
|
+
description: "Framing as loss is more motivating than gain",
|
|
408
|
+
researchBasis: "Kahneman & Tversky (1979): Losses felt 2-2.5x more than gains",
|
|
409
|
+
targetValues: ["security", "achievement"],
|
|
410
|
+
mechanism: "Fear of loss activation",
|
|
411
|
+
examples: ["Don't miss out", "Stop losing leads", "Avoid costly mistakes"],
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
name: "default_bias",
|
|
415
|
+
description: "Pre-selected options are more likely to be chosen",
|
|
416
|
+
researchBasis: "Thaler & Sunstein (2008): Nudge theory",
|
|
417
|
+
targetValues: ["conformity", "security"],
|
|
418
|
+
mechanism: "Status quo bias, effort minimization",
|
|
419
|
+
examples: ["Pre-checked boxes", "Recommended tier highlighted", "Auto-enrolled"],
|
|
420
|
+
effectivenessData: {
|
|
421
|
+
metric: "Opt-out vs opt-in participation",
|
|
422
|
+
value: 0.75,
|
|
423
|
+
source: "Organ donation studies (90% vs 15%)",
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
];
|
|
427
|
+
/**
|
|
428
|
+
* Common value profile patterns and their persuasion susceptibilities.
|
|
429
|
+
*/
|
|
430
|
+
export const VALUE_PROFILE_PATTERNS = [
|
|
431
|
+
{
|
|
432
|
+
name: "security_focused",
|
|
433
|
+
description: "High security + conformity, low stimulation",
|
|
434
|
+
valueSignature: {
|
|
435
|
+
security: 0.8,
|
|
436
|
+
conformity: 0.7,
|
|
437
|
+
stimulation: 0.2,
|
|
438
|
+
},
|
|
439
|
+
effectivePatterns: ["social_proof", "authority", "default_bias"],
|
|
440
|
+
ineffectivePatterns: ["scarcity", "reciprocity"],
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "achievement_driven",
|
|
444
|
+
description: "High achievement + power, moderate security",
|
|
445
|
+
valueSignature: {
|
|
446
|
+
achievement: 0.8,
|
|
447
|
+
power: 0.7,
|
|
448
|
+
security: 0.5,
|
|
449
|
+
},
|
|
450
|
+
effectivePatterns: ["anchoring", "decoy_effect", "commitment"],
|
|
451
|
+
ineffectivePatterns: ["unity", "reciprocity"],
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
name: "novelty_seeker",
|
|
455
|
+
description: "High stimulation + selfDirection, low tradition",
|
|
456
|
+
valueSignature: {
|
|
457
|
+
stimulation: 0.8,
|
|
458
|
+
selfDirection: 0.8,
|
|
459
|
+
tradition: 0.2,
|
|
460
|
+
},
|
|
461
|
+
effectivePatterns: ["scarcity", "commitment"],
|
|
462
|
+
ineffectivePatterns: ["authority", "social_proof", "default_bias"],
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
name: "community_oriented",
|
|
466
|
+
description: "High benevolence + universalism, moderate conformity",
|
|
467
|
+
valueSignature: {
|
|
468
|
+
benevolence: 0.8,
|
|
469
|
+
universalism: 0.7,
|
|
470
|
+
conformity: 0.5,
|
|
471
|
+
},
|
|
472
|
+
effectivePatterns: ["unity", "reciprocity", "liking"],
|
|
473
|
+
ineffectivePatterns: ["power", "scarcity"],
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
name: "tradition_keeper",
|
|
477
|
+
description: "High tradition + conformity + security",
|
|
478
|
+
valueSignature: {
|
|
479
|
+
tradition: 0.8,
|
|
480
|
+
conformity: 0.8,
|
|
481
|
+
security: 0.7,
|
|
482
|
+
},
|
|
483
|
+
effectivePatterns: ["authority", "social_proof", "default_bias"],
|
|
484
|
+
ineffectivePatterns: ["scarcity", "commitment"],
|
|
485
|
+
},
|
|
486
|
+
];
|
|
487
|
+
/**
|
|
488
|
+
* Calculate susceptibility score for an influence pattern given a value profile.
|
|
489
|
+
* @param values The persona's value profile
|
|
490
|
+
* @param pattern The influence pattern to evaluate
|
|
491
|
+
* @returns Susceptibility score 0-1 (higher = more susceptible)
|
|
492
|
+
*/
|
|
493
|
+
export function calculatePatternSusceptibility(values, pattern) {
|
|
494
|
+
const targetValues = pattern.targetValues;
|
|
495
|
+
if (targetValues.length === 0)
|
|
496
|
+
return 0.5;
|
|
497
|
+
let sum = 0;
|
|
498
|
+
let count = 0;
|
|
499
|
+
for (const value of targetValues) {
|
|
500
|
+
if (values[value] !== undefined) {
|
|
501
|
+
sum += values[value];
|
|
502
|
+
count++;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return count > 0 ? sum / count : 0.5;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Rank influence patterns by effectiveness for a given value profile.
|
|
509
|
+
* @param values The persona's value profile
|
|
510
|
+
* @returns Influence patterns sorted by susceptibility (most effective first)
|
|
511
|
+
*/
|
|
512
|
+
export function rankInfluencePatternsForProfile(values) {
|
|
513
|
+
return INFLUENCE_PATTERNS
|
|
514
|
+
.map((pattern) => ({
|
|
515
|
+
pattern,
|
|
516
|
+
susceptibility: calculatePatternSusceptibility(values, pattern),
|
|
517
|
+
}))
|
|
518
|
+
.sort((a, b) => b.susceptibility - a.susceptibility);
|
|
519
|
+
}
|
|
520
|
+
//# sourceMappingURL=value-mappings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"value-mappings.js","sourceRoot":"","sources":["../../src/values/value-mappings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAmBH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAiD;IAC3E,aAAa,EAAE;QACb,aAAa,EAAE;YACb,sCAAsC;YACtC,4BAA4B;YAC5B,iCAAiC;YACjC,6BAA6B;YAC7B,+BAA+B;SAChC;QACD,YAAY,EAAE;YACZ,0BAA0B;YAC1B,2BAA2B;YAC3B,uBAAuB;YACvB,4BAA4B;SAC7B;QACD,iBAAiB,EAAE;YACjB,uBAAuB;YACvB,mBAAmB;YACnB,mBAAmB;YACnB,aAAa;SACd;QACD,iBAAiB,EAAE;YACjB,cAAc;YACd,kBAAkB;YAClB,mBAAmB;YACnB,uBAAuB;SACxB;KACF;IAED,WAAW,EAAE;QACX,aAAa,EAAE;YACb,iCAAiC;YACjC,qBAAqB;YACrB,8BAA8B;YAC9B,yBAAyB;YACzB,yBAAyB;SAC1B;QACD,YAAY,E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F,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC,cAAc,CAAC,CAAC;AACzD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbrowser",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Cognitive browser automation that thinks like your users—and helps AI agents navigate too. Simulate real user cognition with abandonment detection, constitutional safety, chaos engineering, and UX friction discovery. Sites that pass CBrowser's cognitive tests are easier for both humans and AI agents to navigate.",
|
|
6
6
|
"main": "dist/index.js",
|