@agenticmail/enterprise 0.5.290 → 0.5.292
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/agent-heartbeat-W2XLGPOG.js +510 -0
- package/dist/agent-tools-H7BYL7A6.js +13881 -0
- package/dist/chunk-64SXJMJI.js +3841 -0
- package/dist/chunk-67AD7SKP.js +4739 -0
- package/dist/chunk-I3AODI5Z.js +1519 -0
- package/dist/chunk-NPR5DIPX.js +48 -0
- package/dist/chunk-S3WOS4UN.js +1519 -0
- package/dist/cli-agent-5JNS5J2U.js +1778 -0
- package/dist/cli-recover-2U3N37CE.js +487 -0
- package/dist/cli-recover-O2OROH5K.js +487 -0
- package/dist/cli-serve-QM2D6TYP.js +143 -0
- package/dist/cli-verify-R32RJGVW.js +149 -0
- package/dist/cli.js +5 -5
- package/dist/dashboard/app.js +16 -3
- package/dist/dashboard/components/icons.js +2 -0
- package/dist/dashboard/pages/agent-detail/index.js +11 -1
- package/dist/dashboard/pages/users.js +282 -13
- package/dist/factory-KWNTMIVU.js +9 -0
- package/dist/index.js +17 -17
- package/dist/page-registry-OZYEX3Q3.js +178 -0
- package/dist/postgres-CRAQ7OOV.js +760 -0
- package/dist/routes-6DD25A5C.js +13695 -0
- package/dist/runtime-HKTQ22HR.js +45 -0
- package/dist/server-A37MVNDZ.js +15 -0
- package/dist/setup-FUCZUQBB.js +20 -0
- package/dist/setup-XI4ZTR4B.js +20 -0
- package/dist/sqlite-RVBJTDQC.js +495 -0
- package/package.json +1 -1
- package/src/admin/page-registry.ts +204 -0
- package/src/admin/routes.ts +80 -0
- package/src/dashboard/app.js +16 -3
- package/src/dashboard/components/icons.js +2 -0
- package/src/dashboard/pages/agent-detail/index.js +11 -1
- package/src/dashboard/pages/users.js +282 -13
- package/src/db/adapter.ts +1 -0
- package/src/db/postgres.ts +2 -0
- package/src/db/sqlite.ts +4 -0
- package/src/domain-lock/cli-recover.ts +7 -1
- package/src/setup/database.ts +37 -4
- package/src/setup/deployment.ts +13 -2
- package/src/setup/provision.ts +20 -0
package/dist/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
provision,
|
|
3
|
+
runSetupWizard
|
|
4
|
+
} from "./chunk-I3AODI5Z.js";
|
|
1
5
|
import {
|
|
2
6
|
AgenticMailManager,
|
|
3
7
|
GoogleEmailProvider,
|
|
@@ -10,10 +14,6 @@ import {
|
|
|
10
14
|
generateEnvFile,
|
|
11
15
|
generateFlyToml
|
|
12
16
|
} from "./chunk-CMJJLSUB.js";
|
|
13
|
-
import {
|
|
14
|
-
provision,
|
|
15
|
-
runSetupWizard
|
|
16
|
-
} from "./chunk-HE5H6NHI.js";
|
|
17
17
|
import {
|
|
18
18
|
AgentRuntime,
|
|
19
19
|
EmailChannel,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
executeTool,
|
|
29
29
|
runAgentLoop,
|
|
30
30
|
toolsToDefinitions
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-67AD7SKP.js";
|
|
32
32
|
import {
|
|
33
33
|
ValidationError,
|
|
34
34
|
auditLogger,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
requireRole,
|
|
43
43
|
securityHeaders,
|
|
44
44
|
validate
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-64SXJMJI.js";
|
|
46
46
|
import "./chunk-OF4MUWWS.js";
|
|
47
47
|
import {
|
|
48
48
|
PROVIDER_REGISTRY,
|
|
@@ -50,6 +50,16 @@ import {
|
|
|
50
50
|
resolveApiKeyForProvider,
|
|
51
51
|
resolveProvider
|
|
52
52
|
} from "./chunk-UF3ZJMJO.js";
|
|
53
|
+
import {
|
|
54
|
+
ENGINE_TABLES,
|
|
55
|
+
ENGINE_TABLES_POSTGRES,
|
|
56
|
+
EngineDatabase,
|
|
57
|
+
MIGRATIONS,
|
|
58
|
+
MIGRATIONS_TABLE,
|
|
59
|
+
MIGRATIONS_TABLE_POSTGRES,
|
|
60
|
+
sqliteToMySQL,
|
|
61
|
+
sqliteToPostgres
|
|
62
|
+
} from "./chunk-KKTVGBSC.js";
|
|
53
63
|
import {
|
|
54
64
|
ActionJournal,
|
|
55
65
|
ActivityTracker,
|
|
@@ -70,16 +80,6 @@ import {
|
|
|
70
80
|
init_guardrails
|
|
71
81
|
} from "./chunk-LOBBAW6U.js";
|
|
72
82
|
import "./chunk-3OC6RH7W.js";
|
|
73
|
-
import {
|
|
74
|
-
ENGINE_TABLES,
|
|
75
|
-
ENGINE_TABLES_POSTGRES,
|
|
76
|
-
EngineDatabase,
|
|
77
|
-
MIGRATIONS,
|
|
78
|
-
MIGRATIONS_TABLE,
|
|
79
|
-
MIGRATIONS_TABLE_POSTGRES,
|
|
80
|
-
sqliteToMySQL,
|
|
81
|
-
sqliteToPostgres
|
|
82
|
-
} from "./chunk-KKTVGBSC.js";
|
|
83
83
|
import {
|
|
84
84
|
BUILTIN_SKILLS,
|
|
85
85
|
PRESET_PROFILES,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
import {
|
|
114
114
|
createAdapter,
|
|
115
115
|
getSupportedDatabases
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-NPR5DIPX.js";
|
|
117
117
|
import {
|
|
118
118
|
AGENTICMAIL_TOOLS,
|
|
119
119
|
ALL_TOOLS,
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import "./chunk-KFQGP6VL.js";
|
|
2
|
+
|
|
3
|
+
// src/admin/page-registry.ts
|
|
4
|
+
var PAGE_REGISTRY = {
|
|
5
|
+
// ─── Overview ────────────────────────────────────
|
|
6
|
+
dashboard: {
|
|
7
|
+
label: "Dashboard",
|
|
8
|
+
section: "overview",
|
|
9
|
+
description: "Main dashboard with key metrics and activity feed"
|
|
10
|
+
},
|
|
11
|
+
// ─── Management ──────────────────────────────────
|
|
12
|
+
agents: {
|
|
13
|
+
label: "Agents",
|
|
14
|
+
section: "management",
|
|
15
|
+
description: "View and manage AI agents",
|
|
16
|
+
tabs: {
|
|
17
|
+
overview: "Overview",
|
|
18
|
+
personal: "Personal Details",
|
|
19
|
+
email: "Email",
|
|
20
|
+
whatsapp: "WhatsApp",
|
|
21
|
+
channels: "Channels",
|
|
22
|
+
configuration: "Configuration",
|
|
23
|
+
manager: "Manager",
|
|
24
|
+
tools: "Tools",
|
|
25
|
+
skills: "Skills",
|
|
26
|
+
permissions: "Permissions",
|
|
27
|
+
activity: "Activity",
|
|
28
|
+
communication: "Communication",
|
|
29
|
+
workforce: "Workforce",
|
|
30
|
+
memory: "Memory",
|
|
31
|
+
guardrails: "Guardrails",
|
|
32
|
+
autonomy: "Autonomy",
|
|
33
|
+
budget: "Budget",
|
|
34
|
+
security: "Security",
|
|
35
|
+
"tool-security": "Tool Security",
|
|
36
|
+
deployment: "Deployment"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
skills: {
|
|
40
|
+
label: "Skills",
|
|
41
|
+
section: "management",
|
|
42
|
+
description: "Manage agent skill packs"
|
|
43
|
+
},
|
|
44
|
+
"community-skills": {
|
|
45
|
+
label: "Community Skills",
|
|
46
|
+
section: "management",
|
|
47
|
+
description: "Browse and install community skill marketplace"
|
|
48
|
+
},
|
|
49
|
+
"skill-connections": {
|
|
50
|
+
label: "Integrations & MCP",
|
|
51
|
+
section: "management",
|
|
52
|
+
description: "MCP servers, built-in integrations, and community skills"
|
|
53
|
+
},
|
|
54
|
+
"database-access": {
|
|
55
|
+
label: "Database Access",
|
|
56
|
+
section: "management",
|
|
57
|
+
description: "Manage database connections and agent access",
|
|
58
|
+
tabs: {
|
|
59
|
+
connections: "Connections",
|
|
60
|
+
access: "Agent Access",
|
|
61
|
+
audit: "Audit Log"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
knowledge: {
|
|
65
|
+
label: "Knowledge Bases",
|
|
66
|
+
section: "management",
|
|
67
|
+
description: "Manage knowledge base documents and collections"
|
|
68
|
+
},
|
|
69
|
+
"knowledge-contributions": {
|
|
70
|
+
label: "Knowledge Hub",
|
|
71
|
+
section: "management",
|
|
72
|
+
description: "Agent contributions to shared knowledge"
|
|
73
|
+
},
|
|
74
|
+
approvals: {
|
|
75
|
+
label: "Approvals",
|
|
76
|
+
section: "management",
|
|
77
|
+
description: "Review and approve pending agent actions"
|
|
78
|
+
},
|
|
79
|
+
"org-chart": {
|
|
80
|
+
label: "Org Chart",
|
|
81
|
+
section: "management",
|
|
82
|
+
description: "Visual agent hierarchy and reporting structure"
|
|
83
|
+
},
|
|
84
|
+
"task-pipeline": {
|
|
85
|
+
label: "Task Pipeline",
|
|
86
|
+
section: "management",
|
|
87
|
+
description: "Track task lifecycle from creation to completion"
|
|
88
|
+
},
|
|
89
|
+
workforce: {
|
|
90
|
+
label: "Workforce",
|
|
91
|
+
section: "management",
|
|
92
|
+
description: "Agent scheduling, workload, and availability"
|
|
93
|
+
},
|
|
94
|
+
messages: {
|
|
95
|
+
label: "Messages",
|
|
96
|
+
section: "management",
|
|
97
|
+
description: "Inter-agent and external message logs"
|
|
98
|
+
},
|
|
99
|
+
guardrails: {
|
|
100
|
+
label: "Guardrails",
|
|
101
|
+
section: "management",
|
|
102
|
+
description: "Global safety policies and content filters"
|
|
103
|
+
},
|
|
104
|
+
journal: {
|
|
105
|
+
label: "Journal",
|
|
106
|
+
section: "management",
|
|
107
|
+
description: "System event journal and decision log"
|
|
108
|
+
},
|
|
109
|
+
// ─── Administration ──────────────────────────────
|
|
110
|
+
dlp: {
|
|
111
|
+
label: "DLP",
|
|
112
|
+
section: "administration",
|
|
113
|
+
description: "Data loss prevention policies and alerts"
|
|
114
|
+
},
|
|
115
|
+
compliance: {
|
|
116
|
+
label: "Compliance",
|
|
117
|
+
section: "administration",
|
|
118
|
+
description: "Regulatory compliance settings and reports"
|
|
119
|
+
},
|
|
120
|
+
"domain-status": {
|
|
121
|
+
label: "Domain",
|
|
122
|
+
section: "administration",
|
|
123
|
+
description: "Domain configuration and deployment status"
|
|
124
|
+
},
|
|
125
|
+
users: {
|
|
126
|
+
label: "Users",
|
|
127
|
+
section: "administration",
|
|
128
|
+
description: "Manage dashboard users, roles, and permissions"
|
|
129
|
+
},
|
|
130
|
+
vault: {
|
|
131
|
+
label: "Vault",
|
|
132
|
+
section: "administration",
|
|
133
|
+
description: "Encrypted credential storage"
|
|
134
|
+
},
|
|
135
|
+
audit: {
|
|
136
|
+
label: "Audit Log",
|
|
137
|
+
section: "administration",
|
|
138
|
+
description: "Full audit trail of all system actions"
|
|
139
|
+
},
|
|
140
|
+
settings: {
|
|
141
|
+
label: "Settings",
|
|
142
|
+
section: "administration",
|
|
143
|
+
description: "Global platform configuration and branding"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
function getAllPageIds() {
|
|
147
|
+
return Object.keys(PAGE_REGISTRY);
|
|
148
|
+
}
|
|
149
|
+
function getPageTabs(pageId) {
|
|
150
|
+
const page = PAGE_REGISTRY[pageId];
|
|
151
|
+
return page?.tabs ? Object.keys(page.tabs) : [];
|
|
152
|
+
}
|
|
153
|
+
function hasPageAccess(grants, pageId) {
|
|
154
|
+
if (grants === "*") return true;
|
|
155
|
+
return pageId in grants;
|
|
156
|
+
}
|
|
157
|
+
function hasTabAccess(grants, pageId, tabId) {
|
|
158
|
+
if (grants === "*") return true;
|
|
159
|
+
const pageGrant = grants[pageId];
|
|
160
|
+
if (!pageGrant) return false;
|
|
161
|
+
if (pageGrant === true) return true;
|
|
162
|
+
return pageGrant.includes(tabId);
|
|
163
|
+
}
|
|
164
|
+
function getAccessibleTabs(grants, pageId) {
|
|
165
|
+
if (grants === "*") return "all";
|
|
166
|
+
const pageGrant = grants[pageId];
|
|
167
|
+
if (!pageGrant) return [];
|
|
168
|
+
if (pageGrant === true) return "all";
|
|
169
|
+
return pageGrant;
|
|
170
|
+
}
|
|
171
|
+
export {
|
|
172
|
+
PAGE_REGISTRY,
|
|
173
|
+
getAccessibleTabs,
|
|
174
|
+
getAllPageIds,
|
|
175
|
+
getPageTabs,
|
|
176
|
+
hasPageAccess,
|
|
177
|
+
hasTabAccess
|
|
178
|
+
};
|