ei-tui 0.6.1 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ei-tui",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "author": "Flare576",
5
5
  "repository": {
6
6
  "type": "git",
@@ -122,6 +122,7 @@ export async function handleTopicUpdate(response: LLMResponse, state: StateManag
122
122
  const personaDisplayName = response.request.data.personaDisplayName as string;
123
123
  const roomId = response.request.data.roomId as string | undefined;
124
124
  const candidateCategory = response.request.data.candidateCategory as string | undefined;
125
+ const candidateName = response.request.data.candidateName as string | undefined;
125
126
 
126
127
  const personaIds = personaId.split("|").filter(Boolean);
127
128
  const primaryId = personaIds[0] ?? personaId;
@@ -143,7 +144,7 @@ export async function handleTopicUpdate(response: LLMResponse, state: StateManag
143
144
 
144
145
  const existingTopic = isNewItem ? undefined : human.topics.find(t => t.id === existingItemId);
145
146
 
146
- const resolvedName = result.name || existingTopic?.name;
147
+ const resolvedName = result.name || existingTopic?.name || candidateName;
147
148
  const resolvedDescription = typeof result.description === 'string' ? result.description : existingTopic?.description;
148
149
 
149
150
  if (!resolvedName || !resolvedDescription || result.sentiment === undefined) {
@@ -422,6 +422,7 @@ export function queueTopicUpdate(
422
422
  roomId: context.roomId,
423
423
  isNewItem,
424
424
  existingItemId: existingItem?.id,
425
+ candidateName: isNewItem ? context.candidateName : undefined,
425
426
  candidateCategory: context.candidateCategory,
426
427
  analyze_from_timestamp: getAnalyzeFromTimestamp(chunk),
427
428
  },