@agenticmail/enterprise 0.5.68 → 0.5.69
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/chunk-5CJEN2T2.js +898 -0
- package/dist/chunk-E2QHM43W.js +13099 -0
- package/dist/chunk-REEOTFHO.js +2125 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +3 -3
- package/dist/routes-2ZF6MEJB.js +6157 -0
- package/dist/runtime-5CF3MTGB.js +47 -0
- package/dist/server-Z3VGADZS.js +12 -0
- package/dist/setup-HKQDFATJ.js +20 -0
- package/package.json +1 -1
- package/src/engine/agent-routes.ts +16 -0
|
@@ -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-E2QHM43W.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,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-REEOTFHO.js";
|
|
4
|
+
import "./chunk-3SMTCIR4.js";
|
|
5
|
+
import "./chunk-JLSQOQ5L.js";
|
|
6
|
+
import "./chunk-RO537U6H.js";
|
|
7
|
+
import "./chunk-DRXMYYKN.js";
|
|
8
|
+
import "./chunk-67KZYSLU.js";
|
|
9
|
+
import "./chunk-KFQGP6VL.js";
|
|
10
|
+
export {
|
|
11
|
+
createServer
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-5CJEN2T2.js";
|
|
10
|
+
import "./chunk-WP76IB36.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
|
@@ -47,6 +47,14 @@ export function createAgentRoutes(opts: {
|
|
|
47
47
|
try {
|
|
48
48
|
const actor = c.req.header('X-User-Id') || updatedBy;
|
|
49
49
|
const agent = await lifecycle.updateConfig(c.req.param('id'), updates, actor);
|
|
50
|
+
// Sync name/email to admin agents table
|
|
51
|
+
const adminDb = getAdminDb();
|
|
52
|
+
if (adminDb && (updates.name || updates.email)) {
|
|
53
|
+
const sync: any = {};
|
|
54
|
+
if (updates.name) sync.name = updates.name;
|
|
55
|
+
if (updates.email) sync.email = updates.email;
|
|
56
|
+
adminDb.updateAgent(c.req.param('id'), sync).catch(() => {});
|
|
57
|
+
}
|
|
50
58
|
return c.json({ agent });
|
|
51
59
|
} catch (e: any) {
|
|
52
60
|
return c.json({ error: e.message }, 400);
|
|
@@ -91,6 +99,14 @@ export function createAgentRoutes(opts: {
|
|
|
91
99
|
try {
|
|
92
100
|
const actor = c.req.header('X-User-Id') || updatedBy;
|
|
93
101
|
const agent = await lifecycle.hotUpdate(c.req.param('id'), updates, actor);
|
|
102
|
+
// Sync name/email to admin agents table
|
|
103
|
+
const adminDb = getAdminDb();
|
|
104
|
+
if (adminDb && (updates.name || updates.email)) {
|
|
105
|
+
const sync: any = {};
|
|
106
|
+
if (updates.name) sync.name = updates.name;
|
|
107
|
+
if (updates.email) sync.email = updates.email;
|
|
108
|
+
adminDb.updateAgent(c.req.param('id'), sync).catch(() => {});
|
|
109
|
+
}
|
|
94
110
|
return c.json({ agent });
|
|
95
111
|
} catch (e: any) {
|
|
96
112
|
return c.json({ error: e.message }, 400);
|