@tutti-os/agent-gui 0.0.101 → 0.0.102

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.
@@ -5,7 +5,7 @@ import {
5
5
  agentMentionFilterLabel,
6
6
  agentMentionGroupLabel,
7
7
  mentionGroupExpandCount
8
- } from "./chunk-EUW6VPIK.js";
8
+ } from "./chunk-YYE35EZ5.js";
9
9
  import {
10
10
  resolveAgentMentionFileThumbnailUrl,
11
11
  resolveAgentMentionFileVisualKind
@@ -490,4 +490,4 @@ export {
490
490
  AgentFileMentionPalette,
491
491
  AgentContextMentionPalette
492
492
  };
493
- //# sourceMappingURL=chunk-FAE7CXZO.js.map
493
+ //# sourceMappingURL=chunk-W4RYNKWO.js.map
@@ -1138,12 +1138,15 @@ async function runAgentMentionProviderQuery(input) {
1138
1138
  }
1139
1139
 
1140
1140
  // agent-gui/agentGuiNode/AgentMentionSearchIndex.ts
1141
+ import { referenceProvenanceFilterIsActive } from "@tutti-os/workspace-file-reference/core";
1141
1142
  async function fetchAgentMentionFilterResult(input) {
1142
1143
  const providerDiagnostics = [];
1143
- const agentFilterActive = input.provenanceFilter !== null && input.provenanceFilter.agentTargetIds !== null;
1144
+ const provenanceFilterActive = referenceProvenanceFilterIsActive(
1145
+ input.provenanceFilter
1146
+ );
1144
1147
  switch (input.filter) {
1145
1148
  case "file": {
1146
- const fileQuery = agentFilterActive ? Promise.resolve([]) : input.queryProviderMentionItemsById({
1149
+ const fileQuery = provenanceFilterActive ? Promise.resolve([]) : input.queryProviderMentionItemsById({
1147
1150
  providerId: FILE_PROVIDER_ID,
1148
1151
  workspaceId: input.workspaceId,
1149
1152
  currentUserId: input.currentUserId,
@@ -1153,7 +1156,7 @@ async function fetchAgentMentionFilterResult(input) {
1153
1156
  diagnostics: providerDiagnostics,
1154
1157
  provenanceFilter: input.provenanceFilter
1155
1158
  });
1156
- const agentGeneratedFileQuery = input.includeAgentGeneratedFiles || agentFilterActive ? input.queryProviderMentionItemsById({
1159
+ const agentGeneratedFileQuery = input.includeAgentGeneratedFiles || provenanceFilterActive ? input.queryProviderMentionItemsById({
1157
1160
  providerId: AGENT_GENERATED_FILE_PROVIDER_ID,
1158
1161
  workspaceId: input.workspaceId,
1159
1162
  currentUserId: input.currentUserId,
@@ -1201,7 +1204,7 @@ async function fetchAgentMentionFilterResult(input) {
1201
1204
  };
1202
1205
  }
1203
1206
  case "issue": {
1204
- const issueItems = agentFilterActive ? [] : await input.queryProviderMentionItemsById({
1207
+ const issueItems = provenanceFilterActive ? [] : await input.queryProviderMentionItemsById({
1205
1208
  providerId: WORKSPACE_ISSUE_PROVIDER_ID,
1206
1209
  workspaceId: input.workspaceId,
1207
1210
  currentUserId: input.currentUserId,
@@ -2152,4 +2155,4 @@ export {
2152
2155
  AgentMentionSearchController,
2153
2156
  preloadAgentMentionBrowse
2154
2157
  };
2155
- //# sourceMappingURL=chunk-EUW6VPIK.js.map
2158
+ //# sourceMappingURL=chunk-YYE35EZ5.js.map