@agenticmail/enterprise 0.5.38 → 0.5.40

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/cli.js CHANGED
@@ -48,7 +48,7 @@ Skill Development:
48
48
  break;
49
49
  case "setup":
50
50
  default:
51
- import("./setup-IMHJCIZU.js").then((m) => m.runSetupWizard()).catch(fatal);
51
+ import("./setup-3T23L2RA.js").then((m) => m.runSetupWizard()).catch(fatal);
52
52
  break;
53
53
  }
54
54
  function fatal(err) {
@@ -70,8 +70,8 @@ export function KnowledgeContributionsPage() {
70
70
  if (entryFilters.status) params.set('status', entryFilters.status);
71
71
  if (entryFilters.minQuality) params.set('minQuality', entryFilters.minQuality);
72
72
  engineCall('/knowledge-contribution/bases/' + baseId + '/entries?' + params.toString())
73
- .then(function(d) { setBaseEntries(d.entries || []); })
74
- .catch(function() {});
73
+ .then(function(d) { setBaseEntries(Array.isArray(d.entries) ? d.entries : []); })
74
+ .catch(function() { setBaseEntries([]); });
75
75
  }, [entryFilters]);
76
76
 
77
77
  useEffect(function() {
@@ -282,7 +282,7 @@ export function KnowledgeContributionsPage() {
282
282
  var renderBaseDetail = function() {
283
283
  var categories = [];
284
284
  var catSet = {};
285
- baseEntries.forEach(function(e) {
285
+ (Array.isArray(baseEntries) ? baseEntries : []).forEach(function(e) {
286
286
  if (e.category && !catSet[e.category]) {
287
287
  catSet[e.category] = true;
288
288
  categories.push(e.category);
package/dist/index.js CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  executeTool,
36
36
  runAgentLoop,
37
37
  toolsToDefinitions
38
- } from "./chunk-25QRPLMP.js";
38
+ } from "./chunk-S33UPVJ5.js";
39
39
  import "./chunk-TYW5XTOW.js";
40
40
  import {
41
41
  ValidationError,
@@ -50,11 +50,11 @@ import {
50
50
  requireRole,
51
51
  securityHeaders,
52
52
  validate
53
- } from "./chunk-PRO5D4X3.js";
53
+ } from "./chunk-IDNJYE2A.js";
54
54
  import {
55
55
  provision,
56
56
  runSetupWizard
57
- } from "./chunk-T3CNJPFP.js";
57
+ } from "./chunk-7XKYS3OB.js";
58
58
  import {
59
59
  ENGINE_TABLES,
60
60
  ENGINE_TABLES_POSTGRES,