@agenticmail/enterprise 0.5.178 → 0.5.180
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-7JMCHM7L.js +898 -0
- package/dist/chunk-GANGMM3A.js +2195 -0
- package/dist/chunk-IEBZONQA.js +17693 -0
- package/dist/chunk-QRKMDW4Q.js +898 -0
- package/dist/chunk-WMNZBOIZ.js +2195 -0
- package/dist/cli-agent-RLPZJM7B.js +1012 -0
- package/dist/cli-agent-RYEBQAJP.js +1012 -0
- package/dist/cli-serve-MSSREE4E.js +34 -0
- package/dist/cli-serve-XT4JQGAO.js +34 -0
- package/dist/cli.js +3 -3
- package/dist/dashboard/pages/agent-detail.js +1 -1
- package/dist/index.js +4 -4
- package/dist/routes-ZWXDFW5U.js +7045 -0
- package/dist/runtime-NHZQJEZE.js +49 -0
- package/dist/server-2OU6YIV3.js +12 -0
- package/dist/server-DX2A2J4N.js +12 -0
- package/dist/setup-N52HK3ID.js +20 -0
- package/dist/setup-Z2HVHAFJ.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/agent-detail.js +1 -1
- package/src/engine/agent-routes.ts +1 -1
- package/src/engine/db-adapter.ts +1 -0
|
@@ -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-IEBZONQA.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-GANGMM3A.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-WMNZBOIZ.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-QRKMDW4Q.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-7JMCHM7L.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
|
@@ -369,7 +369,7 @@ function OverviewSection(props) {
|
|
|
369
369
|
h('div', { className: 'card-body', style: { display: 'flex', flexWrap: 'wrap', gap: 10 } },
|
|
370
370
|
|
|
371
371
|
// Reset state (when in error/degraded)
|
|
372
|
-
(agentState === 'error' || agentState === 'degraded') && h('button', {
|
|
372
|
+
(agentState === 'error' || agentState === 'degraded' || agentState === 'draft') && h('button', {
|
|
373
373
|
className: 'btn btn-secondary btn-sm',
|
|
374
374
|
disabled: !!acting,
|
|
375
375
|
onClick: function() {
|
|
@@ -84,7 +84,7 @@ export function createAgentRoutes(opts: {
|
|
|
84
84
|
try {
|
|
85
85
|
const agent = lifecycle.getAgent(c.req.param('id'));
|
|
86
86
|
if (!agent) return c.json({ error: 'Agent not found' }, 404);
|
|
87
|
-
if (!['error', 'degraded', 'deploying', 'provisioning', 'starting'].includes(agent.state)) {
|
|
87
|
+
if (!['error', 'degraded', 'deploying', 'provisioning', 'starting', 'draft'].includes(agent.state)) {
|
|
88
88
|
return c.json({ error: `Cannot reset from state "${agent.state}"` }, 400);
|
|
89
89
|
}
|
|
90
90
|
// Reset to ready
|
package/src/engine/db-adapter.ts
CHANGED
|
@@ -234,6 +234,7 @@ export class EngineDatabase {
|
|
|
234
234
|
INSERT INTO managed_agents (id, org_id, name, display_name, state, config, health, usage, permission_profile_id, version, last_deployed_at, last_health_check_at, created_at, updated_at)
|
|
235
235
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
|
236
236
|
ON CONFLICT(id) DO UPDATE SET
|
|
237
|
+
state = excluded.state,
|
|
237
238
|
config = excluded.config,
|
|
238
239
|
health = excluded.health,
|
|
239
240
|
permission_profile_id = excluded.permission_profile_id,
|