deepadata-edm-sdk 0.8.9 → 0.8.10
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/assembler.d.ts +2 -2
- package/dist/assembler.js +2 -2
- package/dist/assembler.js.map +1 -1
- package/dist/extractors/generate-field-block.d.ts +44 -0
- package/dist/extractors/generate-field-block.d.ts.map +1 -0
- package/dist/extractors/generate-field-block.js +253 -0
- package/dist/extractors/generate-field-block.js.map +1 -0
- package/dist/extractors/llm-extractor.d.ts +1 -1
- package/dist/extractors/llm-extractor.d.ts.map +1 -1
- package/dist/extractors/llm-extractor.js +50 -52
- package/dist/extractors/llm-extractor.js.map +1 -1
- package/dist/extractors/output-sanitizer.js +1 -1
- package/dist/extractors/output-sanitizer.js.map +1 -1
- package/dist/extractors/profile-prompts.d.ts +2 -2
- package/dist/extractors/profile-prompts.d.ts.map +1 -1
- package/dist/extractors/profile-prompts.js +43 -43
- package/dist/schema/edm-schema.d.ts +26 -26
- package/dist/schema/edm-schema.d.ts.map +1 -1
- package/dist/schema/edm-schema.js +4 -3
- package/dist/schema/edm-schema.js.map +1 -1
- package/dist/schema/types.d.ts +1 -1
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/types.js +0 -1
- package/dist/schema/types.js.map +1 -1
- package/package.json +2 -1
|
@@ -77,15 +77,15 @@ Normalization (very important)
|
|
|
77
77
|
|
|
78
78
|
Schema
|
|
79
79
|
{
|
|
80
|
-
"experiential_stance": "",
|
|
80
|
+
"experiential_stance": "", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)
|
|
81
81
|
"core": {
|
|
82
|
-
"anchor": "",
|
|
83
|
-
"spark": "",
|
|
84
|
-
"wound": "",
|
|
85
|
-
"fuel": "",
|
|
86
|
-
"bridge": "",
|
|
87
|
-
"echo": "",
|
|
88
|
-
"narrative": ""
|
|
82
|
+
"anchor": "", // central theme (e.g., "dad's toolbox", "nana's traditions")
|
|
83
|
+
"spark": "", // what triggered the memory (e.g., "finding the cassette", "first snow")
|
|
84
|
+
"wound": "", // The specific vulnerability, loss, or pain present — NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.
|
|
85
|
+
"fuel": "", // what energized the experience (e.g., "shared laughter", "curiosity")
|
|
86
|
+
"bridge": "", // connection between past and present (e.g., "replaying old tape", "returning to the porch")
|
|
87
|
+
"echo": "", // what still resonates (e.g., "her laugh", "smell of oil", "city lights on water")
|
|
88
|
+
"narrative": "" // 3–5 sentences. REQUIRED: include ALL of the following — ≥1 concrete sensory detail (sight, sound, smell, texture), ≥1 temporal cue that anchors the memory in time, ≥1 symbolic callback that connects past to present. Write from the subject's perspective. Do not compress or summarise — give the memory space to breathe. Faithful and specific. Never generic.
|
|
89
89
|
},
|
|
90
90
|
"constellation": {
|
|
91
91
|
"emotion_primary": "", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)
|
|
@@ -97,8 +97,8 @@ Schema
|
|
|
97
97
|
"relational_dynamics": "", // CANONICAL: parent_child | grandparent_grandchild | romantic_partnership | couple | sibling_bond | family | friendship | friend | companionship | colleague | mentorship | reunion | community_ritual | grief | self_reflection | professional | therapeutic | service | adversarial (free text accepted if none fits)
|
|
98
98
|
"temporal_context": "", // STRICT ENUM: childhood | early_adulthood | midlife | late_life | recent | future | timeless (pick ONE or null)
|
|
99
99
|
"memory_type": "", // STRICT ENUM: legacy_artifact | fleeting_moment | milestone | reflection | formative_experience (pick ONE or null)
|
|
100
|
-
"media_format": "", // photo
|
|
101
|
-
"narrative_archetype": "", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent |
|
|
100
|
+
"media_format": "", // STRICT ENUM: photo | video | audio | text | photo_with_story (pick ONE or null)
|
|
101
|
+
"narrative_archetype": "", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent | magician | creator | everyman | jester | ruler (pick ONE or null; lowercase)
|
|
102
102
|
"symbolic_anchor": "", // concrete object/place/ritual (or null)
|
|
103
103
|
"relational_perspective": "", // STRICT ENUM: self | partner | family | friends | community | humanity (pick ONE or null)
|
|
104
104
|
"temporal_rhythm": "", // STRICT ENUM: still | sudden | rising | fading | recurring | spiraling | dragging | suspended | looping | cyclic (pick ONE or null)
|
|
@@ -109,42 +109,43 @@ Schema
|
|
|
109
109
|
"arc_type": "" // CANONICAL: betrayal | liberation | grief | discovery | resistance | bond | moral_awakening | transformation | reconciliation | reckoning | threshold | exile | gratitude | authenticity (free text accepted if none fits). gratitude = moments of thankfulness, appreciation, acknowledging blessing; authenticity = feeling fully oneself, self-alignment, identity congruence
|
|
110
110
|
},
|
|
111
111
|
"milky_way": {
|
|
112
|
-
"event_type": "",
|
|
113
|
-
"location_context": "",
|
|
114
|
-
"associated_people": [],
|
|
115
|
-
"visibility_context": "",
|
|
116
|
-
"tone_shift": ""
|
|
112
|
+
"event_type": "", // e.g., family gathering, farewell, birthday (or null)
|
|
113
|
+
"location_context": "", // place from text or image (or null)
|
|
114
|
+
"associated_people": [], // names or roles (proper case allowed)
|
|
115
|
+
"visibility_context": "", // STRICT ENUM: private | family_only | shared_publicly (pick ONE or null)
|
|
116
|
+
"tone_shift": "" // e.g., loss to gratitude (or null)
|
|
117
117
|
},
|
|
118
118
|
"gravity": {
|
|
119
|
-
"emotional_weight": 0.0,
|
|
120
|
-
"emotional_density": "",
|
|
121
|
-
"valence": "",
|
|
122
|
-
"viscosity": "",
|
|
123
|
-
"gravity_type": "",
|
|
124
|
-
"tether_type": "",
|
|
125
|
-
"recall_triggers": [],
|
|
126
|
-
"retrieval_keys": [],
|
|
127
|
-
"nearby_themes": [],
|
|
128
|
-
"recurrence_pattern": "",
|
|
129
|
-
"strength_score": 0.0,
|
|
130
|
-
"temporal_decay": "",
|
|
131
|
-
"resilience_markers": [],
|
|
132
|
-
"adaptation_trajectory": ""
|
|
119
|
+
"emotional_weight": 0.0, // 0.0–1.0 (felt intensity IN THE MOMENT). Calibration: 0.9+ life-altering irreversible moments; 0.7-0.9 significant personal events with strong emotional response; 0.4-0.7 meaningful but routine emotional experiences; 0.1-0.4 mild passing emotional content
|
|
120
|
+
"emotional_density": "", // STRICT ENUM: low | medium | high (pick ONE or null)
|
|
121
|
+
"valence": "", // STRICT ENUM: positive | negative | mixed (pick ONE or null)
|
|
122
|
+
"viscosity": "", // STRICT ENUM: low | medium | high | enduring | fluid (pick ONE or null)
|
|
123
|
+
"gravity_type": "", // short phrase (e.g., symbolic resonance)
|
|
124
|
+
"tether_type": "", // CANONICAL: person | symbol | event | place | ritual | object | tradition | identity | self (free text accepted if none fits)
|
|
125
|
+
"recall_triggers": [], // sensory or symbolic cues (lowercase tokens)
|
|
126
|
+
"retrieval_keys": [], // compact hooks (3–6 tokens recommended)
|
|
127
|
+
"nearby_themes": [], // adjacent concepts
|
|
128
|
+
"recurrence_pattern": "", // CANONICAL: cyclical | isolated | chronic | emerging (free text accepted if none fits)
|
|
129
|
+
"strength_score": 0.0, // 0.0–1.0 (how BOUND/STUCK this memory is)
|
|
130
|
+
"temporal_decay": "", // STRICT ENUM: fast | moderate | slow (pick ONE or null)
|
|
131
|
+
"resilience_markers": [], // 1–3 (e.g., acceptance, optimism, continuity)
|
|
132
|
+
"adaptation_trajectory": "" // STRICT ENUM: improving | stable | declining | integrative | emerging (pick ONE or null)
|
|
133
133
|
},
|
|
134
134
|
"impulse": {
|
|
135
|
-
"primary_energy": "",
|
|
136
|
-
"drive_state": "",
|
|
137
|
-
"motivational_orientation": "",
|
|
138
|
-
"temporal_focus": "",
|
|
139
|
-
"directionality": "",
|
|
140
|
-
"social_visibility": "",
|
|
141
|
-
"urgency": "",
|
|
142
|
-
"risk_posture": "",
|
|
143
|
-
"agency_level": "",
|
|
144
|
-
"regulation_state": "",
|
|
145
|
-
"attachment_style": "",
|
|
146
|
-
"coping_style": ""
|
|
135
|
+
"primary_energy": "", // free text: e.g., curiosity, fear, compassion (or null; lowercase)
|
|
136
|
+
"drive_state": "", // STRICT ENUM: explore | approach | avoid | repair | persevere | share | confront | protect | process (pick ONE or null)
|
|
137
|
+
"motivational_orientation": "", // STRICT ENUM: belonging | safety | mastery | meaning | autonomy | authenticity (pick ONE or null)
|
|
138
|
+
"temporal_focus": "", // STRICT ENUM: past | present | future (pick ONE or null)
|
|
139
|
+
"directionality": "", // STRICT ENUM: inward | outward | transcendent (pick ONE or null)
|
|
140
|
+
"social_visibility": "", // STRICT ENUM: private | relational | collective (pick ONE or null)
|
|
141
|
+
"urgency": "", // STRICT ENUM: calm | elevated | pressing | acute (pick ONE or null)
|
|
142
|
+
"risk_posture": "", // STRICT ENUM: cautious | balanced | bold (pick ONE or null)
|
|
143
|
+
"agency_level": "", // STRICT ENUM: low | medium | high (pick ONE or null)
|
|
144
|
+
"regulation_state": "", // STRICT ENUM: regulated | wavering | dysregulated (pick ONE or null)
|
|
145
|
+
"attachment_style": "", // STRICT ENUM: secure | anxious | avoidant | disorganized (pick ONE or null)
|
|
146
|
+
"coping_style": "" // CANONICAL: reframe_meaning | seek_support | distract | ritualize | confront | detach | process (free text accepted if none fits)
|
|
147
147
|
}
|
|
148
|
+
}
|
|
148
149
|
|
|
149
150
|
// Calibration — Impulse (helps apply the fields consistently)
|
|
150
151
|
// - temporal_focus: past (reminisce), present (here-and-now coping), future (plans/longing).
|
|
@@ -177,17 +178,15 @@ Schema
|
|
|
177
178
|
// - coping_style: the STRATEGY for managing emotions (reframe_meaning, seek_support, confront, etc.)
|
|
178
179
|
// - "confront" is valid in BOTH - use drive_state for action impulse, coping_style for emotion management
|
|
179
180
|
//
|
|
180
|
-
// emotion_primary (
|
|
181
|
-
// - emotion_primary
|
|
182
|
-
//
|
|
183
|
-
// - Use higher_order_emotion for complex emotions
|
|
181
|
+
// emotion_primary (two-tier free text) vs higher_order_emotion (free text):
|
|
182
|
+
// - emotion_primary: prefer a canonical value when one fits; otherwise use the most accurate
|
|
183
|
+
// free-text term (accuracy takes precedence over canonical conformance)
|
|
184
|
+
// - Use higher_order_emotion for complex/second-order emotions layered on the primary feeling
|
|
184
185
|
//
|
|
185
|
-
// narrative_arc (
|
|
186
|
-
// - Describes the STORY TRAJECTORY (overcoming, transformation, connection, reflection, closure)
|
|
187
|
-
// - "confrontation"
|
|
188
|
-
// -
|
|
189
|
-
// or "transformation" (fundamental change through conflict)
|
|
190
|
-
// - "confront" belongs in drive_state or coping_style, NOT in narrative_arc
|
|
186
|
+
// narrative_arc (story trajectory):
|
|
187
|
+
// - Describes the STORY TRAJECTORY (overcoming, transformation, connection, reflection, closure, loss, confrontation)
|
|
188
|
+
// - "confrontation" IS a canonical narrative_arc value (a confronting trajectory); free text accepted if none fits
|
|
189
|
+
// - Distinct from the impulse-domain "confront" (drive_state / coping_style), which describes action/coping, not story shape
|
|
191
190
|
//
|
|
192
191
|
// emotional_weight vs strength_score (CRITICAL - different concepts):
|
|
193
192
|
// - emotional_weight: The felt INTENSITY of the experience in the moment.
|
|
@@ -201,7 +200,6 @@ Schema
|
|
|
201
200
|
// SYNONYM CORRECTIONS (use the canonical form):
|
|
202
201
|
// - drive_state: Use "process" NOT "reflect". The enum value is "process" for internal processing/reflection.
|
|
203
202
|
// - narrative_archetype: Use "caregiver" NOT "caretaker". The Jungian archetype label is "caregiver".
|
|
204
|
-
}
|
|
205
203
|
`;
|
|
206
204
|
/**
|
|
207
205
|
* Get the appropriate schema for profile-specific validation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-extractor.js","sourceRoot":"","sources":["../../src/extractors/llm-extractor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,0B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OAAO,CAAC,OAAO,GAAG,CAAC,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;IAE3F,OAAO,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC5C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,OAAO,IAAI,SAAS,CAAC;QACnB,MAAM,EAAE,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;KACnD,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -21,7 +21,7 @@ const STRICT_ENUMS = {
|
|
|
21
21
|
temporal_context: ["childhood", "early_adulthood", "midlife", "late_life", "recent", "future", "timeless"],
|
|
22
22
|
memory_type: ["legacy_artifact", "fleeting_moment", "milestone", "reflection", "formative_experience"],
|
|
23
23
|
media_format: ["photo", "video", "audio", "text", "photo_with_story"],
|
|
24
|
-
narrative_archetype: ["hero", "caregiver", "seeker", "sage", "lover", "outlaw", "innocent", "
|
|
24
|
+
narrative_archetype: ["hero", "caregiver", "seeker", "sage", "lover", "outlaw", "innocent", "magician", "creator", "everyman", "jester", "ruler"],
|
|
25
25
|
relational_perspective: ["self", "partner", "family", "friends", "community", "humanity"],
|
|
26
26
|
temporal_rhythm: ["still", "sudden", "rising", "fading", "recurring", "spiraling", "dragging", "suspended", "looping", "cyclic"],
|
|
27
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-sanitizer.js","sourceRoot":"","sources":["../../src/extractors/output-sanitizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,uEAAuE;AACvE,MAAM,YAAY,GAAsD;IACtE,aAAa,EAAE;QACb,gBAAgB,EAAE,CAAC,WAAW,EAAE,iBAAiB,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC;QAC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AC,CAAC;YACzC,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,6DAA6D;AAC7D,MAAM,UAAU,qBAAqB,CAAC,KAAuB;IAC3D,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACpC,OAAO,CACL,aAAa;QACb,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,KAAK,iBAAiB,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACpI,CAAC;AACJ,CAAC"}
|
|
@@ -11,14 +11,14 @@ import type { EdmProfile } from "../schema/types.js";
|
|
|
11
11
|
* Target: memory platforms, agent frameworks, AI assistants
|
|
12
12
|
* Core (6 fields) + Constellation (3 fields) = 9 LLM fields
|
|
13
13
|
*/
|
|
14
|
-
export declare const ESSENTIAL_PROFILE_PROMPT = "\nYou classify emotionally rich memories into a JSON object. Input may include text and an image.\n\nPROFILE: ESSENTIAL (24 fields)\nThis is a minimal extraction for memory platforms. Focus ONLY on the required fields.\nDomains not listed below are not included in this profile.\n\nRules\n- Fuse text + image. Treat text as primary; use image only to add grounded specifics.\n- Keep fields to single words or short phrases (1\u20133 words).\n- No invention. If not supported by input, use null.\n- Output JSON only \u2014 no commentary, markdown, or extra text.\n- Emit lowercase for all string fields except proper names.\n- Use canonical values where they fit. If no canonical value accurately represents the content, use the most accurate free-text term. Accuracy takes precedence over canonical conformance.\n\nSUBJECT ANCHORING (critical)\n- The SUBJECT is the person this artifact will belong to. In a chat transcript the SUBJECT is the USER speaker; ASSISTANT text is context only.\n- Extract relative to the SUBJECT, not the passage. Do not invent emotional detail the subject never expressed.\n\nEXPERIENTIAL STANCE (critical)\nClassify whose experience the emotionally salient material is, in the top-level \"experiential_stance\" key: lived (subject's own experience) | witnessed (subject directly affected) | quoted_third_party (someone else's story quoted/pasted/retold) | assistant_generated (assistant-invented fiction or examples) | hypothetical (imagined scenarios, role-play). Pick ONE or null.\nIf the stance is quoted_third_party, assistant_generated, or hypothetical: do NOT encode that material into wound \u2014 it describes the SUBJECT. Return null instead.\n\nESSENTIAL PROFILE SCHEMA (extract these fields ONLY):\n{\n \"experiential_stance\": \"\",
|
|
14
|
+
export declare const ESSENTIAL_PROFILE_PROMPT = "\nYou classify emotionally rich memories into a JSON object. Input may include text and an image.\n\nPROFILE: ESSENTIAL (24 fields)\nThis is a minimal extraction for memory platforms. Focus ONLY on the required fields.\nDomains not listed below are not included in this profile.\n\nRules\n- Fuse text + image. Treat text as primary; use image only to add grounded specifics.\n- Keep fields to single words or short phrases (1\u20133 words).\n- No invention. If not supported by input, use null.\n- Output JSON only \u2014 no commentary, markdown, or extra text.\n- Emit lowercase for all string fields except proper names.\n- Use canonical values where they fit. If no canonical value accurately represents the content, use the most accurate free-text term. Accuracy takes precedence over canonical conformance.\n\nSUBJECT ANCHORING (critical)\n- The SUBJECT is the person this artifact will belong to. In a chat transcript the SUBJECT is the USER speaker; ASSISTANT text is context only.\n- Extract relative to the SUBJECT, not the passage. Do not invent emotional detail the subject never expressed.\n\nEXPERIENTIAL STANCE (critical)\nClassify whose experience the emotionally salient material is, in the top-level \"experiential_stance\" key: lived (subject's own experience) | witnessed (subject directly affected) | quoted_third_party (someone else's story quoted/pasted/retold) | assistant_generated (assistant-invented fiction or examples) | hypothetical (imagined scenarios, role-play). Pick ONE or null.\nIf the stance is quoted_third_party, assistant_generated, or hypothetical: do NOT encode that material into wound \u2014 it describes the SUBJECT. Return null instead.\n\nESSENTIAL PROFILE SCHEMA (extract these fields ONLY):\n{\n \"experiential_stance\": \"\", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)\n \"core\": {\n \"anchor\": \"\", // central theme (e.g., \"dad's toolbox\", \"nana's traditions\")\n \"spark\": \"\", // what triggered the memory (e.g., \"finding the cassette\", \"first snow\")\n \"wound\": \"\", // The specific vulnerability, loss, or pain present \u2014 NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.\n \"fuel\": \"\", // what energized the experience (e.g., \"shared laughter\", \"curiosity\")\n \"bridge\": \"\", // connection between past and present (e.g., \"replaying old tape\", \"returning to the porch\")\n \"echo\": \"\" // what still resonates (e.g., \"her laugh\", \"smell of oil\", \"city lights on water\")\n },\n \"constellation\": {\n \"emotion_primary\": \"\", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)\n \"emotion_subtone\": [], // 2\u20134 short words (e.g., bittersweet, grateful) \u2014 free text array\n \"narrative_arc\": \"\" // CANONICAL: overcoming | transformation | connection | reflection | closure | loss | confrontation (free text accepted if none fits)\n }\n}\n\n// EXTRACTION NOTES\n// wound: Do NOT use generic labels like \"loss\" or \"grief\".\n// Extract what specifically was lost or why it hurts.\n// If no wound is present in the content, use null.\n//\n// emotion_primary: Prefer canonical values (17 listed). disappointment, relief, frustration are now canonical.\n// If no canonical value fits accurately, use free text.\n//\n// narrative_arc: Describes the STORY TRAJECTORY. loss, confrontation are now canonical.\n// Use free text if no canonical value fits accurately.\n";
|
|
15
15
|
/**
|
|
16
16
|
* Extended Profile System Prompt (50 fields)
|
|
17
17
|
* Target: journaling apps, companion AI, workplace wellness
|
|
18
18
|
* Core (7) + Constellation (18) + Milky_Way (5) + Gravity (5) = 35 LLM fields + metadata domains
|
|
19
19
|
* Impulse, System, Crosswalks — Not included in this profile
|
|
20
20
|
*/
|
|
21
|
-
export declare const EXTENDED_PROFILE_PROMPT = "\nYou classify emotionally rich memories into a JSON object. Input may include text and an image.\n\nPROFILE: EXTENDED (50 fields)\nThis extraction adds full Constellation, Milky_Way, and key Gravity fields.\nImpulse domain is NOT included in this profile.\n\nRules\n- Fuse text + image. Treat text as primary; use image only to add grounded specifics.\n- Keep fields to single words or short phrases (1\u20133 words). Only \"narrative\" is multi-sentence (3\u20135).\n- No invention. If not supported by input, use null.\n- Output JSON only \u2014 no commentary, markdown, or extra text.\n- Emit lowercase for all string fields except proper names.\n- For array fields, use short tokens without punctuation; avoid duplicates.\n- Use canonical values where they fit. If no canonical value accurately represents the content, use the most accurate free-text term. Accuracy takes precedence over canonical conformance.\n\nSUBJECT ANCHORING (critical)\n- The SUBJECT is the person this artifact will belong to. In a chat transcript the SUBJECT is the USER speaker; ASSISTANT text is context only, never a source of the subject's experience.\n- Score every field relative to the SUBJECT, not the passage. emotional_weight measures what this content meant TO THE SUBJECT \u2014 not how vivid, dramatic, or emotionally rich the text itself is.\n- Routine work content (debugging, drafting, planning, logistics) is 0.1\u20130.4 even when the subject expresses momentary relief or frustration. Reserve 0.7+ for events with personal stakes the subject states or plainly carries. Do not invent somatic or emotional detail the subject never expressed.\n- transformational_pivot is true ONLY if the subject explicitly marks the experience as life-changing. Finishing a task, fixing a bug, or shipping a feature is not a transformational pivot.\n\nEXPERIENTIAL STANCE (critical)\nClassify whose experience the emotionally salient material is, in the top-level \"experiential_stance\" key:\n- \"lived\" \u2014 the subject's own first-hand experience\n- \"witnessed\" \u2014 events the subject personally witnessed or is directly affected by (a loved one's death, a family crisis)\n- \"quoted_third_party\" \u2014 someone else's story the subject quoted, pasted, or retold without being a participant (an article, test data, a stranger's anecdote)\n- \"assistant_generated\" \u2014 fiction, examples, or anecdotes produced by the assistant, not reported by the subject\n- \"hypothetical\" \u2014 imagined scenarios, drafts about invented people, role-play\nIf the stance is quoted_third_party, assistant_generated, or hypothetical: do NOT encode that material into wound, identity_thread, expressed_insight, somatic_signature, transformational_pivot, or high emotional_weight \u2014 those fields describe the SUBJECT. Extract only what the content reveals about the subject themselves (e.g. why they engaged with it), or return null fields with low weight.\n\nEXTENDED PROFILE SCHEMA:\n{\n \"experiential_stance\": \"\", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)\n \"core\": {\n \"anchor\": \"\", // central theme (e.g., \"dad's toolbox\", \"nana's traditions\")\n \"spark\": \"\", // what triggered the memory (e.g., \"finding the cassette\", \"first snow\")\n \"wound\": \"\", // The specific vulnerability, loss, or pain present \u2014 NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.\n \"fuel\": \"\", // what energized the experience (e.g., \"shared laughter\", \"curiosity\")\n \"bridge\": \"\", // connection between past and present (e.g., \"replaying old tape\", \"returning to the porch\")\n \"echo\": \"\", // what still resonates (e.g., \"her laugh\", \"smell of oil\", \"city lights on water\")\n \"narrative\": \"\" // 3\u20135 sentences; include \u22651 sensory detail, \u22651 temporal cue, and a symbolic callback; faithful and concise\n },\n \"constellation\": {\n \"emotion_primary\": \"\", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)\n \"emotion_subtone\": [],\n \"higher_order_emotion\": \"\",\n \"meta_emotional_state\": \"\",\n \"interpersonal_affect\": \"\",\n \"narrative_arc\": \"\", // CANONICAL: overcoming | transformation | connection | reflection | closure | loss | confrontation (free text accepted if none fits)\n \"relational_dynamics\": \"\", // CANONICAL: parent_child | grandparent_grandchild | romantic_partnership | couple | sibling_bond | family | friendship | friend | companionship | colleague | mentorship | reunion | community_ritual | grief | self_reflection | professional | therapeutic | service | adversarial (free text accepted if none fits)\n \"temporal_context\": \"\", // STRICT ENUM: childhood | early_adulthood | midlife | late_life | recent | future | timeless\n \"memory_type\": \"\", // STRICT ENUM: legacy_artifact | fleeting_moment | milestone | reflection | formative_experience\n \"media_format\": \"\", // STRICT ENUM: photo | video | audio | text | photo_with_story\n \"narrative_archetype\": \"\", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent | orphan | magician | creator | everyman | jester | ruler | mentor\n \"symbolic_anchor\": \"\",\n \"relational_perspective\": \"\", // STRICT ENUM: self | partner | family | friends | community | humanity\n \"temporal_rhythm\": \"\", // STRICT ENUM: still | sudden | rising | fading | recurring | spiraling | dragging | suspended | looping | cyclic\n \"identity_thread\": \"\",\n \"expressed_insight\": \"\",\n \"transformational_pivot\": false,\n \"somatic_signature\": \"\",\n \"arc_type\": \"\" // CANONICAL: betrayal | liberation | grief | discovery | resistance | bond | moral_awakening | transformation | reconciliation | reckoning | threshold | exile | gratitude | authenticity (free text accepted if none fits). gratitude = moments of thankfulness, appreciation, acknowledging blessing; authenticity = feeling fully oneself, self-alignment, identity congruence\n },\n \"milky_way\": {\n \"event_type\": \"\",\n \"location_context\": \"\",\n \"associated_people\": [],\n \"visibility_context\": \"\", // STRICT ENUM: private | family_only | shared_publicly\n \"tone_shift\": \"\"\n },\n \"gravity\": {\n \"emotional_weight\": 0.0, // 0.0\u20131.0 (felt intensity IN THE MOMENT). Calibration: 0.9+ life-altering irreversible moments; 0.7-0.9 significant personal events with strong emotional response; 0.4-0.7 meaningful but routine emotional experiences; 0.1-0.4 mild passing emotional content\n \"valence\": \"\", // STRICT ENUM: positive | negative | mixed\n \"tether_type\": \"\", // STRICT ENUM: person | symbol | event | place | ritual | object | tradition | identity | self\n \"recurrence_pattern\": \"\", // STRICT ENUM: cyclical | isolated | chronic | emerging\n \"strength_score\": 0.0 // 0.0\u20131.0 (how BOUND/STUCK this memory is)\n }\n}\n\n// CROSS-CONTAMINATION DISAMBIGUATION\n//\n// temporal_rhythm vs urgency:\n// temporal_rhythm = CADENCE of time in the memory experience\n// urgency = INTENSITY of motivational pressure right now\n// \"pressing\" belongs ONLY in urgency, NEVER in temporal_rhythm\n//\n// relational_dynamics vs relational_perspective:\n// relational_dynamics = TYPE of relationship\n// relational_perspective = WHOSE viewpoint the narrative is told from\n//\n// emotional_weight vs strength_score:\n// emotional_weight = felt intensity IN THE MOMENT (how heavy does it feel?)\n// strength_score = how BOUND/STUCK this memory is over time\n// These should NOT always correlate.\n//\n// emotion_primary: Prefer canonical values (17 listed). disappointment, relief, frustration are now canonical.\n// Use higher_order_emotion for complex emotions not in the list.\n// If no canonical value fits accurately, use free text.\n//\n// narrative_arc: Describes the STORY TRAJECTORY. loss, confrontation are now canonical.\n// Use free text if no canonical value fits accurately.\n//\n// arc_type: Identify the structural arc pattern. Prefer canonical values: betrayal, liberation, grief, discovery, resistance, bond, moral_awakening, transformation, reconciliation, reckoning, threshold, exile. If none fits accurately, use the most accurate descriptive term. Use exact canonical spelling with underscores: moral_awakening not moral awakening. Canonical values must match exactly.\n//\n// wound: Do NOT use generic labels like \"loss\" or \"grief\".\n// Extract what specifically was lost or why it hurts.\n";
|
|
21
|
+
export declare const EXTENDED_PROFILE_PROMPT = "\nYou classify emotionally rich memories into a JSON object. Input may include text and an image.\n\nPROFILE: EXTENDED (50 fields)\nThis extraction adds full Constellation, Milky_Way, and key Gravity fields.\nImpulse domain is NOT included in this profile.\n\nRules\n- Fuse text + image. Treat text as primary; use image only to add grounded specifics.\n- Keep fields to single words or short phrases (1\u20133 words). Only \"narrative\" is multi-sentence (3\u20135).\n- No invention. If not supported by input, use null.\n- Output JSON only \u2014 no commentary, markdown, or extra text.\n- Emit lowercase for all string fields except proper names.\n- For array fields, use short tokens without punctuation; avoid duplicates.\n- Use canonical values where they fit. If no canonical value accurately represents the content, use the most accurate free-text term. Accuracy takes precedence over canonical conformance.\n\nSUBJECT ANCHORING (critical)\n- The SUBJECT is the person this artifact will belong to. In a chat transcript the SUBJECT is the USER speaker; ASSISTANT text is context only, never a source of the subject's experience.\n- Score every field relative to the SUBJECT, not the passage. emotional_weight measures what this content meant TO THE SUBJECT \u2014 not how vivid, dramatic, or emotionally rich the text itself is.\n- Routine work content (debugging, drafting, planning, logistics) is 0.1\u20130.4 even when the subject expresses momentary relief or frustration. Reserve 0.7+ for events with personal stakes the subject states or plainly carries. Do not invent somatic or emotional detail the subject never expressed.\n- transformational_pivot is true ONLY if the subject explicitly marks the experience as life-changing. Finishing a task, fixing a bug, or shipping a feature is not a transformational pivot.\n\nEXPERIENTIAL STANCE (critical)\nClassify whose experience the emotionally salient material is, in the top-level \"experiential_stance\" key:\n- \"lived\" \u2014 the subject's own first-hand experience\n- \"witnessed\" \u2014 events the subject personally witnessed or is directly affected by (a loved one's death, a family crisis)\n- \"quoted_third_party\" \u2014 someone else's story the subject quoted, pasted, or retold without being a participant (an article, test data, a stranger's anecdote)\n- \"assistant_generated\" \u2014 fiction, examples, or anecdotes produced by the assistant, not reported by the subject\n- \"hypothetical\" \u2014 imagined scenarios, drafts about invented people, role-play\nIf the stance is quoted_third_party, assistant_generated, or hypothetical: do NOT encode that material into wound, identity_thread, expressed_insight, somatic_signature, transformational_pivot, or high emotional_weight \u2014 those fields describe the SUBJECT. Extract only what the content reveals about the subject themselves (e.g. why they engaged with it), or return null fields with low weight.\n\nEXTENDED PROFILE SCHEMA:\n{\n \"experiential_stance\": \"\", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)\n \"core\": {\n \"anchor\": \"\", // central theme (e.g., \"dad's toolbox\", \"nana's traditions\")\n \"spark\": \"\", // what triggered the memory (e.g., \"finding the cassette\", \"first snow\")\n \"wound\": \"\", // The specific vulnerability, loss, or pain present \u2014 NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.\n \"fuel\": \"\", // what energized the experience (e.g., \"shared laughter\", \"curiosity\")\n \"bridge\": \"\", // connection between past and present (e.g., \"replaying old tape\", \"returning to the porch\")\n \"echo\": \"\", // what still resonates (e.g., \"her laugh\", \"smell of oil\", \"city lights on water\")\n \"narrative\": \"\" // 3\u20135 sentences. REQUIRED: include ALL of the following \u2014 \u22651 concrete sensory detail (sight, sound, smell, texture), \u22651 temporal cue that anchors the memory in time, \u22651 symbolic callback that connects past to present. Write from the subject's perspective. Do not compress or summarise \u2014 give the memory space to breathe. Faithful and specific. Never generic.\n },\n \"constellation\": {\n \"emotion_primary\": \"\", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)\n \"emotion_subtone\": [], // 2\u20134 short words (e.g., bittersweet, grateful) \u2014 free text array\n \"higher_order_emotion\": \"\", // free text: e.g., awe, forgiveness, pride, moral_elevation (or null)\n \"meta_emotional_state\": \"\", // free text: e.g., acceptance, confusion, curiosity (or null)\n \"interpersonal_affect\": \"\", // free text: e.g., warmth, openness, defensiveness (or null)\n \"narrative_arc\": \"\", // CANONICAL: overcoming | transformation | connection | reflection | closure | loss | confrontation (free text accepted if none fits)\n \"relational_dynamics\": \"\", // CANONICAL: parent_child | grandparent_grandchild | romantic_partnership | couple | sibling_bond | family | friendship | friend | companionship | colleague | mentorship | reunion | community_ritual | grief | self_reflection | professional | therapeutic | service | adversarial (free text accepted if none fits)\n \"temporal_context\": \"\", // STRICT ENUM: childhood | early_adulthood | midlife | late_life | recent | future | timeless (pick ONE or null)\n \"memory_type\": \"\", // STRICT ENUM: legacy_artifact | fleeting_moment | milestone | reflection | formative_experience (pick ONE or null)\n \"media_format\": \"\", // STRICT ENUM: photo | video | audio | text | photo_with_story (pick ONE or null)\n \"narrative_archetype\": \"\", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent | magician | creator | everyman | jester | ruler (pick ONE or null; lowercase)\n \"symbolic_anchor\": \"\", // concrete object/place/ritual (or null)\n \"relational_perspective\": \"\", // STRICT ENUM: self | partner | family | friends | community | humanity (pick ONE or null)\n \"temporal_rhythm\": \"\", // STRICT ENUM: still | sudden | rising | fading | recurring | spiraling | dragging | suspended | looping | cyclic (pick ONE or null)\n \"identity_thread\": \"\", // short sentence\n \"expressed_insight\": \"\", // brief insight explicitly stated by subject (extracted, not inferred)\n \"transformational_pivot\": false, // true if subject explicitly identifies this as life-changing\n \"somatic_signature\": \"\", // bodily sensations explicitly described (e.g., \"chest tightness\", \"warmth spreading\") or null\n \"arc_type\": \"\" // CANONICAL: betrayal | liberation | grief | discovery | resistance | bond | moral_awakening | transformation | reconciliation | reckoning | threshold | exile | gratitude | authenticity (free text accepted if none fits). gratitude = moments of thankfulness, appreciation, acknowledging blessing; authenticity = feeling fully oneself, self-alignment, identity congruence\n },\n \"milky_way\": {\n \"event_type\": \"\", // e.g., family gathering, farewell, birthday (or null)\n \"location_context\": \"\", // place from text or image (or null)\n \"associated_people\": [], // names or roles (proper case allowed)\n \"visibility_context\": \"\", // STRICT ENUM: private | family_only | shared_publicly (pick ONE or null)\n \"tone_shift\": \"\" // e.g., loss to gratitude (or null)\n },\n \"gravity\": {\n \"emotional_weight\": 0.0, // 0.0\u20131.0 (felt intensity IN THE MOMENT). Calibration: 0.9+ life-altering irreversible moments; 0.7-0.9 significant personal events with strong emotional response; 0.4-0.7 meaningful but routine emotional experiences; 0.1-0.4 mild passing emotional content\n \"valence\": \"\", // STRICT ENUM: positive | negative | mixed (pick ONE or null)\n \"tether_type\": \"\", // CANONICAL: person | symbol | event | place | ritual | object | tradition | identity | self (free text accepted if none fits)\n \"recurrence_pattern\": \"\", // CANONICAL: cyclical | isolated | chronic | emerging (free text accepted if none fits)\n \"strength_score\": 0.0 // 0.0\u20131.0 (how BOUND/STUCK this memory is)\n }\n}\n\n// CROSS-CONTAMINATION DISAMBIGUATION\n//\n// temporal_rhythm vs urgency:\n// temporal_rhythm = CADENCE of time in the memory experience\n// urgency = INTENSITY of motivational pressure right now\n// \"pressing\" belongs ONLY in urgency, NEVER in temporal_rhythm\n//\n// relational_dynamics vs relational_perspective:\n// relational_dynamics = TYPE of relationship\n// relational_perspective = WHOSE viewpoint the narrative is told from\n//\n// emotional_weight vs strength_score:\n// emotional_weight = felt intensity IN THE MOMENT (how heavy does it feel?)\n// strength_score = how BOUND/STUCK this memory is over time\n// These should NOT always correlate.\n//\n// emotion_primary: Prefer canonical values (17 listed). disappointment, relief, frustration are now canonical.\n// Use higher_order_emotion for complex emotions not in the list.\n// If no canonical value fits accurately, use free text.\n//\n// narrative_arc: Describes the STORY TRAJECTORY. loss, confrontation are now canonical.\n// Use free text if no canonical value fits accurately.\n//\n// arc_type: Identify the structural arc pattern. Prefer canonical values: betrayal, liberation, grief, discovery, resistance, bond, moral_awakening, transformation, reconciliation, reckoning, threshold, exile. If none fits accurately, use the most accurate descriptive term. Use exact canonical spelling with underscores: moral_awakening not moral awakening. Canonical values must match exactly.\n//\n// wound: Do NOT use generic labels like \"loss\" or \"grief\".\n// Extract what specifically was lost or why it hurts.\n";
|
|
22
22
|
/**
|
|
23
23
|
* Get the appropriate system prompt for a profile
|
|
24
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-prompts.d.ts","sourceRoot":"","sources":["../../src/extractors/profile-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"profile-prompts.d.ts","sourceRoot":"","sources":["../../src/extractors/profile-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,owHAmDpC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,4oUA2GnC,CAAC;AAEF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAW5D;AAED;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,CAgDhE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAClD,OAAO,EAAE,UAAU,GAClB,MAAM,CAuBR"}
|
|
@@ -35,19 +35,19 @@ If the stance is quoted_third_party, assistant_generated, or hypothetical: do NO
|
|
|
35
35
|
|
|
36
36
|
ESSENTIAL PROFILE SCHEMA (extract these fields ONLY):
|
|
37
37
|
{
|
|
38
|
-
"experiential_stance": "",
|
|
38
|
+
"experiential_stance": "", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)
|
|
39
39
|
"core": {
|
|
40
|
-
"anchor": "",
|
|
41
|
-
"spark": "",
|
|
42
|
-
"wound": "",
|
|
43
|
-
"fuel": "",
|
|
44
|
-
"bridge": "",
|
|
45
|
-
"echo": ""
|
|
40
|
+
"anchor": "", // central theme (e.g., "dad's toolbox", "nana's traditions")
|
|
41
|
+
"spark": "", // what triggered the memory (e.g., "finding the cassette", "first snow")
|
|
42
|
+
"wound": "", // The specific vulnerability, loss, or pain present — NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.
|
|
43
|
+
"fuel": "", // what energized the experience (e.g., "shared laughter", "curiosity")
|
|
44
|
+
"bridge": "", // connection between past and present (e.g., "replaying old tape", "returning to the porch")
|
|
45
|
+
"echo": "" // what still resonates (e.g., "her laugh", "smell of oil", "city lights on water")
|
|
46
46
|
},
|
|
47
47
|
"constellation": {
|
|
48
|
-
"emotion_primary": "",
|
|
49
|
-
"emotion_subtone": [],
|
|
50
|
-
"narrative_arc": ""
|
|
48
|
+
"emotion_primary": "", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)
|
|
49
|
+
"emotion_subtone": [], // 2–4 short words (e.g., bittersweet, grateful) — free text array
|
|
50
|
+
"narrative_arc": "" // CANONICAL: overcoming | transformation | connection | reflection | closure | loss | confrontation (free text accepted if none fits)
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -101,50 +101,50 @@ If the stance is quoted_third_party, assistant_generated, or hypothetical: do NO
|
|
|
101
101
|
|
|
102
102
|
EXTENDED PROFILE SCHEMA:
|
|
103
103
|
{
|
|
104
|
-
"experiential_stance": "",
|
|
104
|
+
"experiential_stance": "", // STRICT ENUM: lived | witnessed | quoted_third_party | assistant_generated | hypothetical (pick ONE or null)
|
|
105
105
|
"core": {
|
|
106
|
-
"anchor": "",
|
|
107
|
-
"spark": "",
|
|
108
|
-
"wound": "",
|
|
109
|
-
"fuel": "",
|
|
110
|
-
"bridge": "",
|
|
111
|
-
"echo": "",
|
|
112
|
-
"narrative": ""
|
|
106
|
+
"anchor": "", // central theme (e.g., "dad's toolbox", "nana's traditions")
|
|
107
|
+
"spark": "", // what triggered the memory (e.g., "finding the cassette", "first snow")
|
|
108
|
+
"wound": "", // The specific vulnerability, loss, or pain present — NOT generic labels like 'loss' or 'grief' but what exactly was lost or why it hurts. Examples: 'unlived travel dream', 'war silence never spoken', 'father died before I knew him', 'shame of not fitting in'. If no wound is present, use null.
|
|
109
|
+
"fuel": "", // what energized the experience (e.g., "shared laughter", "curiosity")
|
|
110
|
+
"bridge": "", // connection between past and present (e.g., "replaying old tape", "returning to the porch")
|
|
111
|
+
"echo": "", // what still resonates (e.g., "her laugh", "smell of oil", "city lights on water")
|
|
112
|
+
"narrative": "" // 3–5 sentences. REQUIRED: include ALL of the following — ≥1 concrete sensory detail (sight, sound, smell, texture), ≥1 temporal cue that anchors the memory in time, ≥1 symbolic callback that connects past to present. Write from the subject's perspective. Do not compress or summarise — give the memory space to breathe. Faithful and specific. Never generic.
|
|
113
113
|
},
|
|
114
114
|
"constellation": {
|
|
115
115
|
"emotion_primary": "", // CANONICAL: joy | sadness | fear | anger | wonder | peace | tenderness | reverence | pride | anxiety | gratitude | longing | hope | shame | disappointment | relief | frustration (free text accepted if none fits)
|
|
116
|
-
"emotion_subtone": [],
|
|
117
|
-
"higher_order_emotion": "",
|
|
118
|
-
"meta_emotional_state": "",
|
|
119
|
-
"interpersonal_affect": "",
|
|
116
|
+
"emotion_subtone": [], // 2–4 short words (e.g., bittersweet, grateful) — free text array
|
|
117
|
+
"higher_order_emotion": "", // free text: e.g., awe, forgiveness, pride, moral_elevation (or null)
|
|
118
|
+
"meta_emotional_state": "", // free text: e.g., acceptance, confusion, curiosity (or null)
|
|
119
|
+
"interpersonal_affect": "", // free text: e.g., warmth, openness, defensiveness (or null)
|
|
120
120
|
"narrative_arc": "", // CANONICAL: overcoming | transformation | connection | reflection | closure | loss | confrontation (free text accepted if none fits)
|
|
121
121
|
"relational_dynamics": "", // CANONICAL: parent_child | grandparent_grandchild | romantic_partnership | couple | sibling_bond | family | friendship | friend | companionship | colleague | mentorship | reunion | community_ritual | grief | self_reflection | professional | therapeutic | service | adversarial (free text accepted if none fits)
|
|
122
|
-
"temporal_context": "", // STRICT ENUM: childhood | early_adulthood | midlife | late_life | recent | future | timeless
|
|
123
|
-
"memory_type": "", // STRICT ENUM: legacy_artifact | fleeting_moment | milestone | reflection | formative_experience
|
|
124
|
-
"media_format": "", // STRICT ENUM: photo | video | audio | text | photo_with_story
|
|
125
|
-
"narrative_archetype": "", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent |
|
|
126
|
-
"symbolic_anchor": "",
|
|
127
|
-
"relational_perspective": "", // STRICT ENUM: self | partner | family | friends | community | humanity
|
|
128
|
-
"temporal_rhythm": "", // STRICT ENUM: still | sudden | rising | fading | recurring | spiraling | dragging | suspended | looping | cyclic
|
|
129
|
-
"identity_thread": "",
|
|
130
|
-
"expressed_insight": "",
|
|
131
|
-
"transformational_pivot": false,
|
|
132
|
-
"somatic_signature": "",
|
|
122
|
+
"temporal_context": "", // STRICT ENUM: childhood | early_adulthood | midlife | late_life | recent | future | timeless (pick ONE or null)
|
|
123
|
+
"memory_type": "", // STRICT ENUM: legacy_artifact | fleeting_moment | milestone | reflection | formative_experience (pick ONE or null)
|
|
124
|
+
"media_format": "", // STRICT ENUM: photo | video | audio | text | photo_with_story (pick ONE or null)
|
|
125
|
+
"narrative_archetype": "", // STRICT ENUM: hero | caregiver | seeker | sage | lover | outlaw | innocent | magician | creator | everyman | jester | ruler (pick ONE or null; lowercase)
|
|
126
|
+
"symbolic_anchor": "", // concrete object/place/ritual (or null)
|
|
127
|
+
"relational_perspective": "", // STRICT ENUM: self | partner | family | friends | community | humanity (pick ONE or null)
|
|
128
|
+
"temporal_rhythm": "", // STRICT ENUM: still | sudden | rising | fading | recurring | spiraling | dragging | suspended | looping | cyclic (pick ONE or null)
|
|
129
|
+
"identity_thread": "", // short sentence
|
|
130
|
+
"expressed_insight": "", // brief insight explicitly stated by subject (extracted, not inferred)
|
|
131
|
+
"transformational_pivot": false, // true if subject explicitly identifies this as life-changing
|
|
132
|
+
"somatic_signature": "", // bodily sensations explicitly described (e.g., "chest tightness", "warmth spreading") or null
|
|
133
133
|
"arc_type": "" // CANONICAL: betrayal | liberation | grief | discovery | resistance | bond | moral_awakening | transformation | reconciliation | reckoning | threshold | exile | gratitude | authenticity (free text accepted if none fits). gratitude = moments of thankfulness, appreciation, acknowledging blessing; authenticity = feeling fully oneself, self-alignment, identity congruence
|
|
134
134
|
},
|
|
135
135
|
"milky_way": {
|
|
136
|
-
"event_type": "",
|
|
137
|
-
"location_context": "",
|
|
138
|
-
"associated_people": [],
|
|
139
|
-
"visibility_context": "",
|
|
140
|
-
"tone_shift": ""
|
|
136
|
+
"event_type": "", // e.g., family gathering, farewell, birthday (or null)
|
|
137
|
+
"location_context": "", // place from text or image (or null)
|
|
138
|
+
"associated_people": [], // names or roles (proper case allowed)
|
|
139
|
+
"visibility_context": "", // STRICT ENUM: private | family_only | shared_publicly (pick ONE or null)
|
|
140
|
+
"tone_shift": "" // e.g., loss to gratitude (or null)
|
|
141
141
|
},
|
|
142
142
|
"gravity": {
|
|
143
|
-
"emotional_weight": 0.0,
|
|
144
|
-
"valence": "",
|
|
145
|
-
"tether_type": "",
|
|
146
|
-
"recurrence_pattern": "",
|
|
147
|
-
"strength_score": 0.0
|
|
143
|
+
"emotional_weight": 0.0, // 0.0–1.0 (felt intensity IN THE MOMENT). Calibration: 0.9+ life-altering irreversible moments; 0.7-0.9 significant personal events with strong emotional response; 0.4-0.7 meaningful but routine emotional experiences; 0.1-0.4 mild passing emotional content
|
|
144
|
+
"valence": "", // STRICT ENUM: positive | negative | mixed (pick ONE or null)
|
|
145
|
+
"tether_type": "", // CANONICAL: person | symbol | event | place | ritual | object | tradition | identity | self (free text accepted if none fits)
|
|
146
|
+
"recurrence_pattern": "", // CANONICAL: cyclical | isolated | chronic | emerging (free text accepted if none fits)
|
|
147
|
+
"strength_score": 0.0 // 0.0–1.0 (how BOUND/STUCK this memory is)
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|