@arbidocs/tui 0.3.121 → 0.3.123

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 CHANGED
@@ -2575,10 +2575,7 @@ var ArbiTui = class {
2575
2575
  try {
2576
2576
  const docs = await sdk.documents.listDocuments(this.workspaceContext.arbi);
2577
2577
  const docIds = docs.map((d) => d.external_id);
2578
- const docNames = {};
2579
- for (const d of docs) {
2580
- if (d.external_id && d.file_name) docNames[d.external_id] = d.file_name;
2581
- }
2578
+ const docNames = sdk.buildDocNameMap(docs);
2582
2579
  const session = this.store.getChatSession();
2583
2580
  const previousResponseId = this.state.conversationMessageId ?? session.lastMessageExtId;
2584
2581
  const response = await sdk.assistant.queryAssistant({