@agenticmail/enterprise 0.5.58 → 0.5.60
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-6PNEB7CI.js +2115 -0
- package/dist/chunk-CWFBG45X.js +898 -0
- package/dist/chunk-UOFWBDLW.js +13099 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/knowledge-contributions.js +14 -3
- package/dist/index.js +3 -3
- package/dist/routes-SK75BITO.js +6130 -0
- package/dist/runtime-NKIAGOH2.js +47 -0
- package/dist/server-YSE3JO7S.js +12 -0
- package/dist/setup-DCQIIXJG.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/knowledge-contributions.js +14 -3
- package/src/engine/community-routes.ts +2 -1
|
@@ -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-UOFWBDLW.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-6PNEB7CI.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-CWFBG45X.js";
|
|
10
|
+
import "./chunk-M4PRT53C.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
|
@@ -25,9 +25,20 @@ export function KnowledgeContributionsPage() {
|
|
|
25
25
|
var [editSchedule, setEditSchedule] = useState(null);
|
|
26
26
|
|
|
27
27
|
var loadBases = useCallback(function() {
|
|
28
|
-
|
|
29
|
-
.
|
|
30
|
-
.catch(function() {})
|
|
28
|
+
Promise.all([
|
|
29
|
+
engineCall('/knowledge-contribution/bases?orgId=' + getOrgId()).catch(function() { return { bases: [] }; }),
|
|
30
|
+
engineCall('/knowledge-bases').catch(function() { return { knowledgeBases: [] }; })
|
|
31
|
+
]).then(function(results) {
|
|
32
|
+
var contribBases = results[0].bases || [];
|
|
33
|
+
var mainBases = (results[1].knowledgeBases || []).map(function(kb) {
|
|
34
|
+
return { id: kb.id, orgId: getOrgId(), name: kb.name, description: kb.description, role: 'general', categories: [], contributorCount: 0, entryCount: kb.stats ? kb.stats.documentCount || 0 : 0, createdAt: kb.createdAt, updatedAt: kb.updatedAt, _source: 'main' };
|
|
35
|
+
});
|
|
36
|
+
// Merge: contribution bases first, then main bases not already in contribution
|
|
37
|
+
var ids = {};
|
|
38
|
+
contribBases.forEach(function(b) { ids[b.id] = true; });
|
|
39
|
+
var merged = contribBases.concat(mainBases.filter(function(b) { return !ids[b.id]; }));
|
|
40
|
+
setBases(merged);
|
|
41
|
+
});
|
|
31
42
|
}, []);
|
|
32
43
|
|
|
33
44
|
var loadRoles = useCallback(function() {
|
|
@@ -101,7 +101,8 @@ export function createCommunityRoutes(registry: CommunitySkillRegistry) {
|
|
|
101
101
|
|
|
102
102
|
router.delete('/skills/:id/uninstall', async (c) => {
|
|
103
103
|
try {
|
|
104
|
-
const
|
|
104
|
+
const body = await c.req.json().catch(() => ({} as any));
|
|
105
|
+
const orgId = body.orgId || c.req.query('orgId') || 'default';
|
|
105
106
|
await registry.uninstall(orgId, c.req.param('id'));
|
|
106
107
|
return c.json({ ok: true });
|
|
107
108
|
} catch (e: any) {
|