@agenticmail/enterprise 0.5.183 → 0.5.185
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-2DZHFBWX.js +17805 -0
- package/dist/chunk-DAYU4XNV.js +17789 -0
- package/dist/chunk-LJGIBMP2.js +8880 -0
- package/dist/chunk-P25KYXYW.js +898 -0
- package/dist/chunk-PG42UZSR.js +2199 -0
- package/dist/chunk-WNLJITVK.js +898 -0
- package/dist/chunk-ZBM5GHZL.js +2199 -0
- package/dist/cli-agent-5AX56N3Q.js +1078 -0
- package/dist/cli-agent-JTGJDEQF.js +1078 -0
- package/dist/cli-serve-QEIP3NUF.js +34 -0
- package/dist/cli-serve-WCYJCCOW.js +34 -0
- package/dist/cli.js +3 -3
- package/dist/index.js +4 -4
- package/dist/routes-USWTNVHR.js +7198 -0
- package/dist/runtime-ITIB7HAR.js +49 -0
- package/dist/runtime-VXSQT3JF.js +49 -0
- package/dist/server-IMLI4Z3G.js +12 -0
- package/dist/server-YEN6332C.js +12 -0
- package/dist/setup-36NWX3GC.js +20 -0
- package/dist/setup-SYJLT2YX.js +20 -0
- package/package.json +1 -1
- package/src/engine/chat-webhook-routes.ts +0 -1
- package/src/engine/lifecycle.ts +5 -0
- package/src/runtime/index.ts +15 -1
|
@@ -0,0 +1,49 @@
|
|
|
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-2DZHFBWX.js";
|
|
18
|
+
import "./chunk-AQH4DFYV.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-NRF3YRF7.js";
|
|
27
|
+
import "./chunk-TYW5XTOW.js";
|
|
28
|
+
import "./chunk-KFQGP6VL.js";
|
|
29
|
+
export {
|
|
30
|
+
AgentRuntime,
|
|
31
|
+
EmailChannel,
|
|
32
|
+
FollowUpScheduler,
|
|
33
|
+
PROVIDER_REGISTRY,
|
|
34
|
+
SessionManager,
|
|
35
|
+
SubAgentManager,
|
|
36
|
+
ToolRegistry,
|
|
37
|
+
callLLM,
|
|
38
|
+
createAgentRuntime,
|
|
39
|
+
createNoopHooks,
|
|
40
|
+
createRuntimeHooks,
|
|
41
|
+
estimateMessageTokens,
|
|
42
|
+
estimateTokens,
|
|
43
|
+
executeTool,
|
|
44
|
+
listAllProviders,
|
|
45
|
+
resolveApiKeyForProvider,
|
|
46
|
+
resolveProvider,
|
|
47
|
+
runAgentLoop,
|
|
48
|
+
toolsToDefinitions
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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-DAYU4XNV.js";
|
|
18
|
+
import "./chunk-AQH4DFYV.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-NRF3YRF7.js";
|
|
27
|
+
import "./chunk-TYW5XTOW.js";
|
|
28
|
+
import "./chunk-KFQGP6VL.js";
|
|
29
|
+
export {
|
|
30
|
+
AgentRuntime,
|
|
31
|
+
EmailChannel,
|
|
32
|
+
FollowUpScheduler,
|
|
33
|
+
PROVIDER_REGISTRY,
|
|
34
|
+
SessionManager,
|
|
35
|
+
SubAgentManager,
|
|
36
|
+
ToolRegistry,
|
|
37
|
+
callLLM,
|
|
38
|
+
createAgentRuntime,
|
|
39
|
+
createNoopHooks,
|
|
40
|
+
createRuntimeHooks,
|
|
41
|
+
estimateMessageTokens,
|
|
42
|
+
estimateTokens,
|
|
43
|
+
executeTool,
|
|
44
|
+
listAllProviders,
|
|
45
|
+
resolveApiKeyForProvider,
|
|
46
|
+
resolveProvider,
|
|
47
|
+
runAgentLoop,
|
|
48
|
+
toolsToDefinitions
|
|
49
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-ZBM5GHZL.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,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createServer
|
|
3
|
+
} from "./chunk-PG42UZSR.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-WNLJITVK.js";
|
|
10
|
+
import "./chunk-MHIFVS5L.js";
|
|
11
|
+
import "./chunk-KFQGP6VL.js";
|
|
12
|
+
export {
|
|
13
|
+
promptCompanyInfo,
|
|
14
|
+
promptDatabase,
|
|
15
|
+
promptDeployment,
|
|
16
|
+
promptDomain,
|
|
17
|
+
promptRegistration,
|
|
18
|
+
provision,
|
|
19
|
+
runSetupWizard
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-P25KYXYW.js";
|
|
10
|
+
import "./chunk-MHIFVS5L.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
|
@@ -131,7 +131,6 @@ async function handleMessage(
|
|
|
131
131
|
for (const agent of allAgents) {
|
|
132
132
|
if (agent.state !== 'running') continue;
|
|
133
133
|
const services = agent.config?.enabledGoogleServices || [];
|
|
134
|
-
// Agent must have chat enabled (or have no restrictions)
|
|
135
134
|
if (services.includes('chat') || services.length === 0) {
|
|
136
135
|
targetAgent = agent;
|
|
137
136
|
break;
|
package/src/engine/lifecycle.ts
CHANGED
|
@@ -672,6 +672,11 @@ export class AgentLifecycleManager {
|
|
|
672
672
|
return Array.from(this.agents.values()).filter(a => a.orgId === orgId);
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
+
/** Get all agents across all orgs */
|
|
676
|
+
getAllAgents(): ManagedAgent[] {
|
|
677
|
+
return Array.from(this.agents.values());
|
|
678
|
+
}
|
|
679
|
+
|
|
675
680
|
/**
|
|
676
681
|
* Get a single agent
|
|
677
682
|
*/
|
package/src/runtime/index.ts
CHANGED
|
@@ -151,10 +151,24 @@ export class AgentRuntime {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
// Pass enabledGoogleServices from agent config
|
|
154
|
+
// Auto-derive from skills array if enabledGoogleServices is not explicitly set
|
|
154
155
|
if (this.config.getAgentConfig) {
|
|
155
156
|
const agentConfig = this.config.getAgentConfig(agentId);
|
|
156
|
-
if (agentConfig?.enabledGoogleServices) {
|
|
157
|
+
if (agentConfig?.enabledGoogleServices?.length) {
|
|
157
158
|
base.enabledGoogleServices = agentConfig.enabledGoogleServices;
|
|
159
|
+
} else if (agentConfig?.skills?.length) {
|
|
160
|
+
// Map gws-* skills to Google service names
|
|
161
|
+
const skillToService: Record<string, string> = {
|
|
162
|
+
'gws-gmail': 'gmail', 'gws-calendar': 'calendar', 'gws-drive': 'drive',
|
|
163
|
+
'gws-tasks': 'tasks', 'gws-docs': 'docs', 'gws-sheets': 'sheets',
|
|
164
|
+
'gws-contacts': 'contacts', 'gws-chat': 'chat', 'gws-slides': 'slides',
|
|
165
|
+
'gws-forms': 'forms', 'gws-meet': 'meetings',
|
|
166
|
+
};
|
|
167
|
+
const derived = agentConfig.skills
|
|
168
|
+
.filter((s: string) => s.startsWith('gws-'))
|
|
169
|
+
.map((s: string) => skillToService[s])
|
|
170
|
+
.filter(Boolean);
|
|
171
|
+
if (derived.length) base.enabledGoogleServices = derived;
|
|
158
172
|
}
|
|
159
173
|
}
|
|
160
174
|
return base;
|