@agenticmail/enterprise 0.5.22 → 0.5.23

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.
@@ -0,0 +1,47 @@
1
+ import {
2
+ AgentRuntime,
3
+ EmailChannel,
4
+ FollowUpScheduler,
5
+ SessionManager,
6
+ SubAgentManager,
7
+ ToolRegistry,
8
+ callLLM,
9
+ createAgentRuntime,
10
+ createNoopHooks,
11
+ createRuntimeHooks,
12
+ estimateMessageTokens,
13
+ estimateTokens,
14
+ executeTool,
15
+ runAgentLoop,
16
+ toolsToDefinitions
17
+ } from "./chunk-I5C76NBS.js";
18
+ import "./chunk-TYW5XTOW.js";
19
+ import "./chunk-JLSQOQ5L.js";
20
+ import {
21
+ PROVIDER_REGISTRY,
22
+ listAllProviders,
23
+ resolveApiKeyForProvider,
24
+ resolveProvider
25
+ } from "./chunk-67KZYSLU.js";
26
+ import "./chunk-KFQGP6VL.js";
27
+ export {
28
+ AgentRuntime,
29
+ EmailChannel,
30
+ FollowUpScheduler,
31
+ PROVIDER_REGISTRY,
32
+ SessionManager,
33
+ SubAgentManager,
34
+ ToolRegistry,
35
+ callLLM,
36
+ createAgentRuntime,
37
+ createNoopHooks,
38
+ createRuntimeHooks,
39
+ estimateMessageTokens,
40
+ estimateTokens,
41
+ executeTool,
42
+ listAllProviders,
43
+ resolveApiKeyForProvider,
44
+ resolveProvider,
45
+ runAgentLoop,
46
+ toolsToDefinitions
47
+ };
@@ -0,0 +1,11 @@
1
+ import {
2
+ createServer
3
+ } from "./chunk-MGZTOPY6.js";
4
+ import "./chunk-JLSQOQ5L.js";
5
+ import "./chunk-RO537U6H.js";
6
+ import "./chunk-DRXMYYKN.js";
7
+ import "./chunk-67KZYSLU.js";
8
+ import "./chunk-KFQGP6VL.js";
9
+ export {
10
+ createServer
11
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ promptCompanyInfo,
3
+ promptDatabase,
4
+ promptDeployment,
5
+ promptDomain,
6
+ promptRegistration,
7
+ provision,
8
+ runSetupWizard
9
+ } from "./chunk-2JB6N2JV.js";
10
+ import "./chunk-HEK7L3DT.js";
11
+ import "./chunk-KFQGP6VL.js";
12
+ export {
13
+ promptCompanyInfo,
14
+ promptDatabase,
15
+ promptDeployment,
16
+ promptDomain,
17
+ promptRegistration,
18
+ provision,
19
+ runSetupWizard
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/enterprise",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
4
4
  "description": "AgenticMail Enterprise — cloud-hosted AI agent identity, email, auth & compliance for organizations",
5
5
  "type": "module",
6
6
  "bin": {
@@ -302,6 +302,19 @@ export function createKnowledgeContributionRoutes(manager: KnowledgeContribution
302
302
  }
303
303
  });
304
304
 
305
+ // Alias: dashboard calls /contributions, which maps to /cycles
306
+ router.get('/contributions', async (c) => {
307
+ try {
308
+ const orgId = c.req.query('orgId') || undefined;
309
+ const agentId = c.req.query('agentId') || undefined;
310
+ const limit = parseInt(c.req.query('limit') || '50');
311
+ const cycles = await manager.listCycles({ orgId, agentId, limit });
312
+ return c.json({ contributions: cycles, cycles });
313
+ } catch (err: any) {
314
+ return c.json({ error: err.message }, 500);
315
+ }
316
+ });
317
+
305
318
  router.post('/run-due', async (c) => {
306
319
  try {
307
320
  const userId = c.req.header('X-User-Id') || 'admin';
@@ -221,6 +221,26 @@ export function createWorkforceRoutes(workforce: WorkforceManager, opts?: { life
221
221
  }
222
222
  });
223
223
 
224
+ /** List all tasks across all agents */
225
+ router.get('/tasks', async (c) => {
226
+ try {
227
+ const orgId = c.req.query('orgId') || undefined;
228
+ const status = (c.req.query('status') || undefined) as 'completed' | 'queued' | 'in_progress' | 'cancelled' | undefined;
229
+ // Get all agents and collect their tasks
230
+ const agents = await workforce.getWorkforceStatus(orgId || 'default');
231
+ const allTasks: any[] = [];
232
+ if (agents && Array.isArray((agents as any).agents)) {
233
+ for (const agent of (agents as any).agents) {
234
+ const tasks = await workforce.getAgentTasks(agent.agentId || agent.id, status);
235
+ allTasks.push(...tasks);
236
+ }
237
+ }
238
+ return c.json({ tasks: allTasks, total: allTasks.length });
239
+ } catch (err: any) {
240
+ return c.json({ tasks: [], total: 0 });
241
+ }
242
+ });
243
+
224
244
  /** Get an agent's task queue, optionally filtered by status */
225
245
  router.get('/tasks/:agentId', async (c) => {
226
246
  try {