@agenticmail/enterprise 0.5.301 → 0.5.303

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.
Files changed (52) hide show
  1. package/dist/chunk-4VGAZULN.js +1519 -0
  2. package/dist/chunk-CRXYUYVJ.js +4395 -0
  3. package/dist/chunk-QCGSFWKU.js +48 -0
  4. package/dist/cli-agent-YSQVDBOZ.js +1778 -0
  5. package/dist/cli-recover-2LWWVD4Q.js +487 -0
  6. package/dist/cli-serve-JZEXPYXY.js +143 -0
  7. package/dist/cli-verify-TZMX3GWV.js +149 -0
  8. package/dist/cli.js +5 -5
  9. package/dist/dashboard/app.js +57 -1
  10. package/dist/dashboard/components/org-switcher.js +118 -0
  11. package/dist/dashboard/pages/agents.js +8 -1
  12. package/dist/dashboard/pages/approvals.js +5 -1
  13. package/dist/dashboard/pages/dashboard.js +6 -2
  14. package/dist/dashboard/pages/guardrails.js +20 -16
  15. package/dist/dashboard/pages/journal.js +6 -2
  16. package/dist/dashboard/pages/knowledge-contributions.js +18 -10
  17. package/dist/dashboard/pages/knowledge.js +32 -9
  18. package/dist/dashboard/pages/messages.js +8 -4
  19. package/dist/dashboard/pages/org-chart.js +5 -1
  20. package/dist/dashboard/pages/organizations.js +39 -3
  21. package/dist/dashboard/pages/skills.js +15 -11
  22. package/dist/dashboard/pages/task-pipeline.js +6 -2
  23. package/dist/dashboard/pages/users.js +34 -4
  24. package/dist/dashboard/pages/workforce.js +5 -1
  25. package/dist/factory-QYGGXVYW.js +9 -0
  26. package/dist/index.js +3 -3
  27. package/dist/postgres-ALNOGUUM.js +819 -0
  28. package/dist/server-3R5KZPLA.js +15 -0
  29. package/dist/setup-ZZAOBEY4.js +20 -0
  30. package/dist/sqlite-2QPVZQ27.js +566 -0
  31. package/package.json +1 -1
  32. package/src/admin/routes.ts +32 -1
  33. package/src/auth/routes.ts +36 -2
  34. package/src/dashboard/app.js +57 -1
  35. package/src/dashboard/components/org-switcher.js +118 -0
  36. package/src/dashboard/pages/agents.js +8 -1
  37. package/src/dashboard/pages/approvals.js +5 -1
  38. package/src/dashboard/pages/dashboard.js +6 -2
  39. package/src/dashboard/pages/guardrails.js +20 -16
  40. package/src/dashboard/pages/journal.js +6 -2
  41. package/src/dashboard/pages/knowledge-contributions.js +18 -10
  42. package/src/dashboard/pages/knowledge.js +32 -9
  43. package/src/dashboard/pages/messages.js +8 -4
  44. package/src/dashboard/pages/org-chart.js +5 -1
  45. package/src/dashboard/pages/organizations.js +39 -3
  46. package/src/dashboard/pages/skills.js +15 -11
  47. package/src/dashboard/pages/task-pipeline.js +6 -2
  48. package/src/dashboard/pages/users.js +34 -4
  49. package/src/dashboard/pages/workforce.js +5 -1
  50. package/src/db/adapter.ts +1 -0
  51. package/src/db/postgres.ts +3 -0
  52. package/src/db/sqlite.ts +7 -0
@@ -2,8 +2,11 @@ import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buil
2
2
  import { I } from '../components/icons.js';
3
3
  import { TimezoneSelect } from '../components/timezones.js';
4
4
  import { HelpButton } from '../components/help-button.js';
5
+ import { useOrgContext } from '../components/org-switcher.js';
5
6
 
6
7
  export function WorkforcePage() {
8
+ var orgCtx = useOrgContext();
9
+ var effectiveOrgId = orgCtx.selectedOrgId || getOrgId();
7
10
  const { toast } = useApp();
8
11
  const [tab, setTab] = useState('overview');
9
12
  const [status, setStatus] = useState(null);
@@ -44,7 +47,7 @@ export function WorkforcePage() {
44
47
  setSchedules(schedulesRes.schedules || []);
45
48
  setBudgetData(budgetRes);
46
49
  setClockRecords(recordsRes.records || []);
47
- engineCall('/agents?orgId=' + getOrgId()).then(d => setAgents(d.agents || [])).catch(() => {});
50
+ engineCall('/agents?orgId=' + effectiveOrgId).then(d => setAgents(d.agents || [])).catch(() => {});
48
51
  } catch (err) { toast('Failed to load workforce data', 'error'); }
49
52
  setLoading(false);
50
53
  };
@@ -251,6 +254,7 @@ export function WorkforcePage() {
251
254
  var _tip = { marginTop: 12, padding: 12, background: 'var(--bg-secondary, #1e293b)', borderRadius: 'var(--radius, 8px)', fontSize: 13 };
252
255
 
253
256
  return h('div', { className: 'page-inner' },
257
+ h(orgCtx.Switcher),
254
258
  h('div', { className: 'page-header' },
255
259
  h('h1', { style: { display: 'flex', alignItems: 'center' } }, 'Workforce Management', h(HelpButton, { label: 'Workforce Management' },
256
260
  h('p', null, 'Manage your agents like employees — set work schedules, assign tasks, track budgets, and monitor clock-in/out history.'),
@@ -0,0 +1,9 @@
1
+ import {
2
+ createAdapter,
3
+ getSupportedDatabases
4
+ } from "./chunk-QCGSFWKU.js";
5
+ import "./chunk-KFQGP6VL.js";
6
+ export {
7
+ createAdapter,
8
+ getSupportedDatabases
9
+ };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  provision,
3
3
  runSetupWizard
4
- } from "./chunk-QKQWDX6M.js";
4
+ } from "./chunk-4VGAZULN.js";
5
5
  import {
6
6
  AgenticMailManager,
7
7
  GoogleEmailProvider,
@@ -42,7 +42,7 @@ import {
42
42
  requireRole,
43
43
  securityHeaders,
44
44
  validate
45
- } from "./chunk-VMVOJFCX.js";
45
+ } from "./chunk-CRXYUYVJ.js";
46
46
  import "./chunk-OF4MUWWS.js";
47
47
  import {
48
48
  PROVIDER_REGISTRY,
@@ -113,7 +113,7 @@ import {
113
113
  import {
114
114
  createAdapter,
115
115
  getSupportedDatabases
116
- } from "./chunk-VLVRDLYO.js";
116
+ } from "./chunk-QCGSFWKU.js";
117
117
  import {
118
118
  AGENTICMAIL_TOOLS,
119
119
  ALL_TOOLS,