@absolutejs/absolute 0.19.0-beta.549 → 0.19.0-beta.550

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/ai/index.js CHANGED
@@ -4842,6 +4842,46 @@ var buildSyncOverviewLatestRow = (sources) => {
4842
4842
  ].filter(Boolean).join(" \xB7 ")
4843
4843
  };
4844
4844
  };
4845
+ var formatAdminActionLabel = (value) => value.replaceAll("_", " ");
4846
+ var buildAdminTimingLabel = (input) => typeof input.elapsedMs === "number" ? formatDurationLabel(input.elapsedMs) : formatDateLabel(input.startedAt);
4847
+ var buildRAGAdminJobPresentation = (job) => ({
4848
+ id: job.id,
4849
+ action: job.action,
4850
+ status: job.status,
4851
+ summary: [
4852
+ job.status.toUpperCase(),
4853
+ formatAdminActionLabel(job.action),
4854
+ job.target,
4855
+ buildAdminTimingLabel(job)
4856
+ ].filter(Boolean).join(" \xB7 "),
4857
+ rows: [
4858
+ { label: "Action", value: formatAdminActionLabel(job.action) },
4859
+ { label: "Status", value: job.status },
4860
+ ...job.target ? [{ label: "Target", value: job.target }] : [],
4861
+ { label: "Timing", value: buildAdminTimingLabel(job) },
4862
+ ...job.error ? [{ label: "Error", value: job.error }] : []
4863
+ ]
4864
+ });
4865
+ var buildRAGAdminJobPresentations = (jobs) => (jobs ?? []).slice(0, 3).map(buildRAGAdminJobPresentation);
4866
+ var buildRAGAdminActionPresentation = (action) => ({
4867
+ id: action.id,
4868
+ action: action.action,
4869
+ status: action.status,
4870
+ summary: [
4871
+ action.status.toUpperCase(),
4872
+ formatAdminActionLabel(action.action),
4873
+ action.documentId ?? action.target,
4874
+ buildAdminTimingLabel(action)
4875
+ ].filter(Boolean).join(" \xB7 "),
4876
+ rows: [
4877
+ { label: "Action", value: formatAdminActionLabel(action.action) },
4878
+ { label: "Status", value: action.status },
4879
+ ...action.documentId ? [{ label: "Document", value: action.documentId }] : action.target ? [{ label: "Target", value: action.target }] : [],
4880
+ { label: "Timing", value: buildAdminTimingLabel(action) },
4881
+ ...action.error ? [{ label: "Error", value: action.error }] : []
4882
+ ]
4883
+ });
4884
+ var buildRAGAdminActionPresentations = (actions) => (actions ?? []).slice(0, 3).map(buildRAGAdminActionPresentation);
4845
4885
  var buildRAGSyncSourceRunPresentations = (source) => {
4846
4886
  if (!Array.isArray(source.metadata?.recentRuns)) {
4847
4887
  return [];
@@ -12436,6 +12476,10 @@ export {
12436
12476
  buildRAGAnswerGroundingCaseSnapshotPresentations,
12437
12477
  buildRAGAnswerGroundingCaseDifficultyRunDiff,
12438
12478
  buildRAGAnswerGroundingCaseDifficultyLeaderboard,
12479
+ buildRAGAdminJobPresentations,
12480
+ buildRAGAdminJobPresentation,
12481
+ buildRAGAdminActionPresentations,
12482
+ buildRAGAdminActionPresentation,
12439
12483
  applyRAGReranking,
12440
12484
  applyRAGQueryTransform,
12441
12485
  anthropicOCR,
@@ -12444,5 +12488,5 @@ export {
12444
12488
  aiChat
12445
12489
  };
12446
12490
 
12447
- //# debugId=73B9FDA304D27F1A64756E2164756E21
12491
+ //# debugId=87BF178FDB66370264756E2164756E21
12448
12492
  //# sourceMappingURL=index.js.map