@wordbricks/persona 0.1.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/index.js ADDED
@@ -0,0 +1,209 @@
1
+ import {
2
+ buildPersonaInstructions
3
+ } from "./chunk-O2K26IXY.js";
4
+ import {
5
+ PERSONA_ANSWER_MODES,
6
+ PERSONA_CONSOLIDATION_SYSTEM_PROMPT,
7
+ PERSONA_MEMORY_TRIAGE_SYSTEM_PROMPT,
8
+ PERSONA_MEMORY_TYPES,
9
+ PERSONA_MOOD_BASELINE,
10
+ PERSONA_QUERY_TYPES,
11
+ PERSONA_SOURCE_DRAFTING_SYSTEM_PROMPT,
12
+ PERSONA_TURN_PLANNER_SYSTEM_PROMPT,
13
+ activatePersonaDraftMemory,
14
+ applyBeliefContradiction,
15
+ applyBeliefReinforcement,
16
+ backfillPersonaMemoryEmbeddings,
17
+ calculateMemoryAvailability,
18
+ calculatePersonaMoodUpdate,
19
+ chunkPersonaSourceText,
20
+ consolidatePersonaMemoryScope,
21
+ copyPersonaProfile,
22
+ createHindsightPersonaMemoryClient,
23
+ createHindsightPersonaMemoryConfig,
24
+ createNoopHindsightPersonaMemoryClient,
25
+ createOpenAiPersonaEmbedder,
26
+ deletePersonaProfile,
27
+ draftPersonaMemoriesFromSourceDocument,
28
+ estimateTurnAffect,
29
+ evaluatePostResponseInteractionMemory,
30
+ explainTurnAffect,
31
+ forgetPersonaLayerMemory,
32
+ formatPersonaSourceExcerptForQuery,
33
+ formatWorkspacePrompt,
34
+ hashPersonaMemoryText,
35
+ hashPersonaSourceContent,
36
+ hindsightPersonaBankId,
37
+ hindsightPersonaTags,
38
+ ingestPersonaSourceDocument,
39
+ listPersonaAliases,
40
+ listPublicPersonaProfiles,
41
+ loadPersonaProfile,
42
+ normalizeCosineSimilarity,
43
+ normalizePersonaEmbeddingText,
44
+ parsePersonaBeliefStance,
45
+ parsePersonaEpisodeAffect,
46
+ parsePersonaLexicalPreferences,
47
+ parsePersonaToneVector,
48
+ planPersonaTurnWithLlm,
49
+ preparePersonaRuntimeContext,
50
+ processPersonaMemoryConsolidationTick,
51
+ publishPersonaProfile,
52
+ recallPersonaMemoriesForCue,
53
+ recordPostResponsePersonaMemoryReview,
54
+ rememberPersonaLayerMemory,
55
+ selectPersonaMemories,
56
+ selectPersonaMemoriesWithScores,
57
+ shouldRecordInteractionMemory,
58
+ triageInteractionMemoryWithLlm,
59
+ triagePostResponseInteractionMemoryWithLlm,
60
+ updatePersonaMood,
61
+ upsertPersonaAlias,
62
+ upsertPersonaMemoryEmbeddings,
63
+ upsertPersonaProfile
64
+ } from "./chunk-WW6EKNPL.js";
65
+ import {
66
+ PERSONA_ALIAS_STATES,
67
+ PERSONA_ALIAS_SURFACES,
68
+ PERSONA_BELIEF_STANCES,
69
+ PERSONA_BELIEF_TYPES,
70
+ PERSONA_CONSENT_STATUSES,
71
+ PERSONA_EMBEDDING_DIMENSION,
72
+ PERSONA_EMBEDDING_TARGET_KINDS,
73
+ PERSONA_EXTERNAL_MEMORY_LOCAL_TARGET_KINDS,
74
+ PERSONA_EXTERNAL_MEMORY_PROVIDERS,
75
+ PERSONA_EXTERNAL_MEMORY_REF_STATES,
76
+ PERSONA_FACT_OBJECT_TYPES,
77
+ PERSONA_FACT_TYPES,
78
+ PERSONA_INTERACTION_MEMORY_STATES,
79
+ PERSONA_LIFECYCLE_EFFECT_STATUSES,
80
+ PERSONA_LIFECYCLE_EFFECT_TYPES,
81
+ PERSONA_MEMORY_STATES,
82
+ PERSONA_PRIVACY_LEVELS,
83
+ PERSONA_PROFILE_STATES,
84
+ PERSONA_PROFILE_TYPES,
85
+ PERSONA_RIGHTS_STATUSES,
86
+ PERSONA_SCOPES,
87
+ PERSONA_SOURCE_PRIORITIES,
88
+ PERSONA_SOURCE_TYPES,
89
+ personaAliases,
90
+ personaAuditLogs,
91
+ personaEmotionalSalience,
92
+ personaEpisodeMemories,
93
+ personaExternalMemoryRefs,
94
+ personaFacts,
95
+ personaHabitPatterns,
96
+ personaInteractionMemories,
97
+ personaLifecycleEffects,
98
+ personaMemoryEmbeddings,
99
+ personaMoodStates,
100
+ personaProfiles,
101
+ personaSemanticBeliefs,
102
+ personaSourceChunks,
103
+ personaSourceDocuments,
104
+ personaStyleProfiles,
105
+ personaWorkspaceStates
106
+ } from "./chunk-2MUEPA24.js";
107
+ export {
108
+ PERSONA_ALIAS_STATES,
109
+ PERSONA_ALIAS_SURFACES,
110
+ PERSONA_ANSWER_MODES,
111
+ PERSONA_BELIEF_STANCES,
112
+ PERSONA_BELIEF_TYPES,
113
+ PERSONA_CONSENT_STATUSES,
114
+ PERSONA_CONSOLIDATION_SYSTEM_PROMPT,
115
+ PERSONA_EMBEDDING_DIMENSION,
116
+ PERSONA_EMBEDDING_TARGET_KINDS,
117
+ PERSONA_EXTERNAL_MEMORY_LOCAL_TARGET_KINDS,
118
+ PERSONA_EXTERNAL_MEMORY_PROVIDERS,
119
+ PERSONA_EXTERNAL_MEMORY_REF_STATES,
120
+ PERSONA_FACT_OBJECT_TYPES,
121
+ PERSONA_FACT_TYPES,
122
+ PERSONA_INTERACTION_MEMORY_STATES,
123
+ PERSONA_LIFECYCLE_EFFECT_STATUSES,
124
+ PERSONA_LIFECYCLE_EFFECT_TYPES,
125
+ PERSONA_MEMORY_STATES,
126
+ PERSONA_MEMORY_TRIAGE_SYSTEM_PROMPT,
127
+ PERSONA_MEMORY_TYPES,
128
+ PERSONA_MOOD_BASELINE,
129
+ PERSONA_PRIVACY_LEVELS,
130
+ PERSONA_PROFILE_STATES,
131
+ PERSONA_PROFILE_TYPES,
132
+ PERSONA_QUERY_TYPES,
133
+ PERSONA_RIGHTS_STATUSES,
134
+ PERSONA_SCOPES,
135
+ PERSONA_SOURCE_DRAFTING_SYSTEM_PROMPT,
136
+ PERSONA_SOURCE_PRIORITIES,
137
+ PERSONA_SOURCE_TYPES,
138
+ PERSONA_TURN_PLANNER_SYSTEM_PROMPT,
139
+ activatePersonaDraftMemory,
140
+ applyBeliefContradiction,
141
+ applyBeliefReinforcement,
142
+ backfillPersonaMemoryEmbeddings,
143
+ buildPersonaInstructions,
144
+ calculateMemoryAvailability,
145
+ calculatePersonaMoodUpdate,
146
+ chunkPersonaSourceText,
147
+ consolidatePersonaMemoryScope,
148
+ copyPersonaProfile,
149
+ createHindsightPersonaMemoryClient,
150
+ createHindsightPersonaMemoryConfig,
151
+ createNoopHindsightPersonaMemoryClient,
152
+ createOpenAiPersonaEmbedder,
153
+ deletePersonaProfile,
154
+ draftPersonaMemoriesFromSourceDocument,
155
+ estimateTurnAffect,
156
+ evaluatePostResponseInteractionMemory,
157
+ explainTurnAffect,
158
+ forgetPersonaLayerMemory,
159
+ formatPersonaSourceExcerptForQuery,
160
+ formatWorkspacePrompt,
161
+ hashPersonaMemoryText,
162
+ hashPersonaSourceContent,
163
+ hindsightPersonaBankId,
164
+ hindsightPersonaTags,
165
+ ingestPersonaSourceDocument,
166
+ listPersonaAliases,
167
+ listPublicPersonaProfiles,
168
+ loadPersonaProfile,
169
+ normalizeCosineSimilarity,
170
+ normalizePersonaEmbeddingText,
171
+ parsePersonaBeliefStance,
172
+ parsePersonaEpisodeAffect,
173
+ parsePersonaLexicalPreferences,
174
+ parsePersonaToneVector,
175
+ personaAliases,
176
+ personaAuditLogs,
177
+ personaEmotionalSalience,
178
+ personaEpisodeMemories,
179
+ personaExternalMemoryRefs,
180
+ personaFacts,
181
+ personaHabitPatterns,
182
+ personaInteractionMemories,
183
+ personaLifecycleEffects,
184
+ personaMemoryEmbeddings,
185
+ personaMoodStates,
186
+ personaProfiles,
187
+ personaSemanticBeliefs,
188
+ personaSourceChunks,
189
+ personaSourceDocuments,
190
+ personaStyleProfiles,
191
+ personaWorkspaceStates,
192
+ planPersonaTurnWithLlm,
193
+ preparePersonaRuntimeContext,
194
+ processPersonaMemoryConsolidationTick,
195
+ publishPersonaProfile,
196
+ recallPersonaMemoriesForCue,
197
+ recordPostResponsePersonaMemoryReview,
198
+ rememberPersonaLayerMemory,
199
+ selectPersonaMemories,
200
+ selectPersonaMemoriesWithScores,
201
+ shouldRecordInteractionMemory,
202
+ triageInteractionMemoryWithLlm,
203
+ triagePostResponseInteractionMemoryWithLlm,
204
+ updatePersonaMood,
205
+ upsertPersonaAlias,
206
+ upsertPersonaMemoryEmbeddings,
207
+ upsertPersonaProfile
208
+ };
209
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,5 @@
1
+ export { H as HindsightPersonaMemoryClient, a as HindsightPersonaMemoryConfig, b as HindsightPersonaMemoryEnv, c as HindsightRecallInput, d as HindsightRecallResult, e as HindsightReflectInput, f as HindsightReflectResult, g as HindsightRetainInput, h as HindsightRetainResult, P as PERSONA_CONSOLIDATION_SYSTEM_PROMPT, i as PERSONA_MEMORY_TRIAGE_SYSTEM_PROMPT, j as PERSONA_MOOD_BASELINE, k as PERSONA_SOURCE_DRAFTING_SYSTEM_PROMPT, l as PERSONA_TURN_PLANNER_SYSTEM_PROMPT, n as PersonaDraftMemorySummary, o as PersonaEpisodeAffectInput, p as PersonaMemoryEmbeddingEntry, q as PersonaProfileDeleteCounts, r as PersonaSourceDraftBelief, s as PersonaSourceDraftEpisode, t as PersonaSourceDraftFact, u as PersonaSourceDraftHabit, v as PersonaSourceDraftMemoryInput, w as PersonaSourceDraftMemoryResult, x as PersonaSourceDraftStyleProfile, y as PersonaSourceIngestionResult, z as PersonaSourceTextChunk, A as activatePersonaDraftMemory, B as applyBeliefContradiction, C as applyBeliefReinforcement, D as backfillPersonaMemoryEmbeddings, E as calculateMemoryAvailability, F as calculatePersonaMoodUpdate, G as chunkPersonaSourceText, I as consolidatePersonaMemoryScope, J as copyPersonaProfile, K as createHindsightPersonaMemoryClient, L as createHindsightPersonaMemoryConfig, M as createNoopHindsightPersonaMemoryClient, N as createOpenAiPersonaEmbedder, O as deletePersonaProfile, Q as draftPersonaMemoriesFromSourceDocument, R as estimateTurnAffect, S as evaluatePostResponseInteractionMemory, T as explainTurnAffect, U as forgetPersonaLayerMemory, V as formatPersonaSourceExcerptForQuery, W as formatWorkspacePrompt, X as hashPersonaMemoryText, Y as hashPersonaSourceContent, Z as hindsightPersonaBankId, _ as hindsightPersonaTags, $ as ingestPersonaSourceDocument, a0 as listPersonaAliases, a1 as listPublicPersonaProfiles, a2 as loadPersonaProfile, a3 as normalizeCosineSimilarity, a4 as normalizePersonaEmbeddingText, a5 as parsePersonaBeliefStance, a6 as parsePersonaEpisodeAffect, a7 as parsePersonaLexicalPreferences, a8 as parsePersonaToneVector, a9 as planPersonaTurnWithLlm, aa as preparePersonaRuntimeContext, ab as processPersonaMemoryConsolidationTick, ac as publishPersonaProfile, ad as recallPersonaMemoriesForCue, ae as recordPostResponsePersonaMemoryReview, af as rememberPersonaLayerMemory, ag as selectPersonaMemories, ah as selectPersonaMemoriesWithScores, ai as shouldRecordInteractionMemory, aj as triageInteractionMemoryWithLlm, ak as triagePostResponseInteractionMemoryWithLlm, al as updatePersonaMood, am as upsertPersonaAlias, an as upsertPersonaMemoryEmbeddings, ao as upsertPersonaProfile } from '../index-swXvBCre.js';
2
+ import '../schema/index.js';
3
+ export { D as DisclosurePolicy, P as PERSONA_ANSWER_MODES, a as PERSONA_MEMORY_TYPES, b as PERSONA_QUERY_TYPES, c as PersonaAffectVector, d as PersonaAnswerMode, e as PersonaContextGatewayOutput, f as PersonaEmbedder, g as PersonaGateOutput, h as PersonaJsonLlm, i as PersonaLogger, j as PersonaMemoryCandidate, k as PersonaMemorySelectionResult, l as PersonaMemoryTriageDecision, m as PersonaMemoryTriageIntent, n as PersonaMemoryTriageSource, o as PersonaMemoryTriageType, p as PersonaMemoryType, q as PersonaMoodEmotionLabel, r as PersonaMoodEmotionLabelSource, s as PersonaMoodSignal, t as PersonaMoodUpdateTrace, u as PersonaQueryType, v as PersonaRuntimeContext, w as PersonaTurnAffectEstimate, x as PersonaTurnPlan } from '../types-BHEW4MGH.js';
4
+ import 'drizzle-orm/postgres-js';
5
+ import 'drizzle-orm/pg-core';
@@ -0,0 +1,124 @@
1
+ import {
2
+ PERSONA_ANSWER_MODES,
3
+ PERSONA_CONSOLIDATION_SYSTEM_PROMPT,
4
+ PERSONA_MEMORY_TRIAGE_SYSTEM_PROMPT,
5
+ PERSONA_MEMORY_TYPES,
6
+ PERSONA_MOOD_BASELINE,
7
+ PERSONA_QUERY_TYPES,
8
+ PERSONA_SOURCE_DRAFTING_SYSTEM_PROMPT,
9
+ PERSONA_TURN_PLANNER_SYSTEM_PROMPT,
10
+ activatePersonaDraftMemory,
11
+ applyBeliefContradiction,
12
+ applyBeliefReinforcement,
13
+ backfillPersonaMemoryEmbeddings,
14
+ calculateMemoryAvailability,
15
+ calculatePersonaMoodUpdate,
16
+ chunkPersonaSourceText,
17
+ consolidatePersonaMemoryScope,
18
+ copyPersonaProfile,
19
+ createHindsightPersonaMemoryClient,
20
+ createHindsightPersonaMemoryConfig,
21
+ createNoopHindsightPersonaMemoryClient,
22
+ createOpenAiPersonaEmbedder,
23
+ deletePersonaProfile,
24
+ draftPersonaMemoriesFromSourceDocument,
25
+ estimateTurnAffect,
26
+ evaluatePostResponseInteractionMemory,
27
+ explainTurnAffect,
28
+ forgetPersonaLayerMemory,
29
+ formatPersonaSourceExcerptForQuery,
30
+ formatWorkspacePrompt,
31
+ hashPersonaMemoryText,
32
+ hashPersonaSourceContent,
33
+ hindsightPersonaBankId,
34
+ hindsightPersonaTags,
35
+ ingestPersonaSourceDocument,
36
+ listPersonaAliases,
37
+ listPublicPersonaProfiles,
38
+ loadPersonaProfile,
39
+ normalizeCosineSimilarity,
40
+ normalizePersonaEmbeddingText,
41
+ parsePersonaBeliefStance,
42
+ parsePersonaEpisodeAffect,
43
+ parsePersonaLexicalPreferences,
44
+ parsePersonaToneVector,
45
+ planPersonaTurnWithLlm,
46
+ preparePersonaRuntimeContext,
47
+ processPersonaMemoryConsolidationTick,
48
+ publishPersonaProfile,
49
+ recallPersonaMemoriesForCue,
50
+ recordPostResponsePersonaMemoryReview,
51
+ rememberPersonaLayerMemory,
52
+ selectPersonaMemories,
53
+ selectPersonaMemoriesWithScores,
54
+ shouldRecordInteractionMemory,
55
+ triageInteractionMemoryWithLlm,
56
+ triagePostResponseInteractionMemoryWithLlm,
57
+ updatePersonaMood,
58
+ upsertPersonaAlias,
59
+ upsertPersonaMemoryEmbeddings,
60
+ upsertPersonaProfile
61
+ } from "../chunk-WW6EKNPL.js";
62
+ import "../chunk-2MUEPA24.js";
63
+ export {
64
+ PERSONA_ANSWER_MODES,
65
+ PERSONA_CONSOLIDATION_SYSTEM_PROMPT,
66
+ PERSONA_MEMORY_TRIAGE_SYSTEM_PROMPT,
67
+ PERSONA_MEMORY_TYPES,
68
+ PERSONA_MOOD_BASELINE,
69
+ PERSONA_QUERY_TYPES,
70
+ PERSONA_SOURCE_DRAFTING_SYSTEM_PROMPT,
71
+ PERSONA_TURN_PLANNER_SYSTEM_PROMPT,
72
+ activatePersonaDraftMemory,
73
+ applyBeliefContradiction,
74
+ applyBeliefReinforcement,
75
+ backfillPersonaMemoryEmbeddings,
76
+ calculateMemoryAvailability,
77
+ calculatePersonaMoodUpdate,
78
+ chunkPersonaSourceText,
79
+ consolidatePersonaMemoryScope,
80
+ copyPersonaProfile,
81
+ createHindsightPersonaMemoryClient,
82
+ createHindsightPersonaMemoryConfig,
83
+ createNoopHindsightPersonaMemoryClient,
84
+ createOpenAiPersonaEmbedder,
85
+ deletePersonaProfile,
86
+ draftPersonaMemoriesFromSourceDocument,
87
+ estimateTurnAffect,
88
+ evaluatePostResponseInteractionMemory,
89
+ explainTurnAffect,
90
+ forgetPersonaLayerMemory,
91
+ formatPersonaSourceExcerptForQuery,
92
+ formatWorkspacePrompt,
93
+ hashPersonaMemoryText,
94
+ hashPersonaSourceContent,
95
+ hindsightPersonaBankId,
96
+ hindsightPersonaTags,
97
+ ingestPersonaSourceDocument,
98
+ listPersonaAliases,
99
+ listPublicPersonaProfiles,
100
+ loadPersonaProfile,
101
+ normalizeCosineSimilarity,
102
+ normalizePersonaEmbeddingText,
103
+ parsePersonaBeliefStance,
104
+ parsePersonaEpisodeAffect,
105
+ parsePersonaLexicalPreferences,
106
+ parsePersonaToneVector,
107
+ planPersonaTurnWithLlm,
108
+ preparePersonaRuntimeContext,
109
+ processPersonaMemoryConsolidationTick,
110
+ publishPersonaProfile,
111
+ recallPersonaMemoriesForCue,
112
+ recordPostResponsePersonaMemoryReview,
113
+ rememberPersonaLayerMemory,
114
+ selectPersonaMemories,
115
+ selectPersonaMemoriesWithScores,
116
+ shouldRecordInteractionMemory,
117
+ triageInteractionMemoryWithLlm,
118
+ triagePostResponseInteractionMemoryWithLlm,
119
+ updatePersonaMood,
120
+ upsertPersonaAlias,
121
+ upsertPersonaMemoryEmbeddings,
122
+ upsertPersonaProfile
123
+ };
124
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}