@agenticmail/enterprise 0.5.54 → 0.5.56
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-E7OYRZX2.js +13099 -0
- package/dist/chunk-G3ECIMIX.js +2115 -0
- package/dist/chunk-HZKAGQWE.js +898 -0
- package/dist/chunk-JJIW2UKU.js +2115 -0
- package/dist/chunk-ODD3VA4O.js +13099 -0
- package/dist/chunk-Z6QUATDJ.js +898 -0
- package/dist/cli.js +1 -1
- package/dist/dashboard/pages/skills.js +5 -14
- package/dist/index.js +3 -3
- package/dist/routes-GXHFKFBH.js +6047 -0
- package/dist/routes-U22UQEZH.js +6067 -0
- package/dist/runtime-OTDD5QIO.js +47 -0
- package/dist/runtime-ZLWGSOAW.js +47 -0
- package/dist/server-IQL4BQI5.js +12 -0
- package/dist/server-VB3JHAWO.js +12 -0
- package/dist/setup-AJFRWYMC.js +20 -0
- package/dist/setup-SY7ZT5ZR.js +20 -0
- package/package.json +1 -1
- package/src/dashboard/pages/skills.js +5 -14
- package/src/engine/community-routes.ts +46 -20
|
@@ -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-ODD3VA4O.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,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-E7OYRZX2.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-JJIW2UKU.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-G3ECIMIX.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-HZKAGQWE.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
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
promptCompanyInfo,
|
|
3
|
+
promptDatabase,
|
|
4
|
+
promptDeployment,
|
|
5
|
+
promptDomain,
|
|
6
|
+
promptRegistration,
|
|
7
|
+
provision,
|
|
8
|
+
runSetupWizard
|
|
9
|
+
} from "./chunk-Z6QUATDJ.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
|
@@ -263,20 +263,11 @@ export function SkillsPage() {
|
|
|
263
263
|
h('div', { className: 'skill-cat' }, s.category || cat),
|
|
264
264
|
h('div', { className: 'skill-name' }, s.name),
|
|
265
265
|
h('div', { className: 'skill-desc' }, s.description),
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
className: 'btn btn-primary btn-sm',
|
|
272
|
-
style: { fontSize: 11, padding: '3px 10px' },
|
|
273
|
-
onClick: function() { installBuiltinSkill(s.id); }
|
|
274
|
-
}, 'Install'),
|
|
275
|
-
!isInstalled && h('button', {
|
|
276
|
-
className: 'btn btn-secondary btn-sm',
|
|
277
|
-
style: { fontSize: 11, padding: '3px 10px' },
|
|
278
|
-
onClick: function() { setTokenModal({ skillId: s.id, skillName: s.name }); }
|
|
279
|
-
}, 'Add Token')
|
|
266
|
+
h('div', { style: { marginTop: 8, display: 'flex', gap: 6, alignItems: 'center' } },
|
|
267
|
+
h('span', {
|
|
268
|
+
style: { fontSize: 11, padding: '2px 8px', borderRadius: 12, background: 'var(--bg-tertiary)', color: 'var(--text-secondary)', fontWeight: 600 }
|
|
269
|
+
}, '\u2713 Built-in'),
|
|
270
|
+
s.tools && s.tools.length > 0 && h('span', { style: { fontSize: 11, color: 'var(--text-muted)' } }, s.tools.length + ' tools available')
|
|
280
271
|
)
|
|
281
272
|
);
|
|
282
273
|
}))
|
|
@@ -87,41 +87,67 @@ export function createCommunityRoutes(registry: CommunitySkillRegistry) {
|
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
router.post('/skills/:id/install', async (c) => {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
try {
|
|
91
|
+
const { orgId, config } = await c.req.json().catch(() => ({ orgId: 'default', config: {} }));
|
|
92
|
+
const userId = c.req.header('X-User-Id') || 'admin';
|
|
93
|
+
const installed = await registry.install(orgId || 'default', c.req.param('id'), userId, config);
|
|
94
|
+
return c.json({ installed }, 201);
|
|
95
|
+
} catch (e: any) {
|
|
96
|
+
const msg = e?.message || 'Install failed';
|
|
97
|
+
const status = msg.includes('not found') ? 404 : 500;
|
|
98
|
+
return c.json({ error: msg }, status);
|
|
99
|
+
}
|
|
94
100
|
});
|
|
95
101
|
|
|
96
102
|
router.delete('/skills/:id/uninstall', async (c) => {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
try {
|
|
104
|
+
const orgId = c.req.query('orgId') || 'default';
|
|
105
|
+
await registry.uninstall(orgId, c.req.param('id'));
|
|
106
|
+
return c.json({ ok: true });
|
|
107
|
+
} catch (e: any) {
|
|
108
|
+
return c.json({ error: e?.message || 'Uninstall failed' }, 404);
|
|
109
|
+
}
|
|
100
110
|
});
|
|
101
111
|
|
|
102
112
|
router.put('/skills/:id/enable', async (c) => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
113
|
+
try {
|
|
114
|
+
const { orgId } = await c.req.json().catch(() => ({ orgId: 'default' }));
|
|
115
|
+
await registry.enable(orgId || 'default', c.req.param('id'));
|
|
116
|
+
return c.json({ ok: true });
|
|
117
|
+
} catch (e: any) {
|
|
118
|
+
return c.json({ error: e?.message || 'Enable failed' }, 404);
|
|
119
|
+
}
|
|
106
120
|
});
|
|
107
121
|
|
|
108
122
|
router.put('/skills/:id/disable', async (c) => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
123
|
+
try {
|
|
124
|
+
const { orgId } = await c.req.json().catch(() => ({ orgId: 'default' }));
|
|
125
|
+
await registry.disable(orgId || 'default', c.req.param('id'));
|
|
126
|
+
return c.json({ ok: true });
|
|
127
|
+
} catch (e: any) {
|
|
128
|
+
return c.json({ error: e?.message || 'Disable failed' }, 404);
|
|
129
|
+
}
|
|
112
130
|
});
|
|
113
131
|
|
|
114
132
|
router.put('/skills/:id/config', async (c) => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
133
|
+
try {
|
|
134
|
+
const { orgId, config } = await c.req.json();
|
|
135
|
+
if (!config) return c.json({ error: 'config required' }, 400);
|
|
136
|
+
await registry.updateConfig(orgId || 'default', c.req.param('id'), config);
|
|
137
|
+
return c.json({ ok: true });
|
|
138
|
+
} catch (e: any) {
|
|
139
|
+
return c.json({ error: e?.message || 'Config update failed' }, 404);
|
|
140
|
+
}
|
|
119
141
|
});
|
|
120
142
|
|
|
121
143
|
router.post('/skills/:id/upgrade', async (c) => {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
144
|
+
try {
|
|
145
|
+
const { orgId } = await c.req.json().catch(() => ({ orgId: 'default' }));
|
|
146
|
+
const installed = await registry.upgrade(orgId || 'default', c.req.param('id'));
|
|
147
|
+
return c.json({ installed });
|
|
148
|
+
} catch (e: any) {
|
|
149
|
+
return c.json({ error: e?.message || 'Upgrade failed' }, 404);
|
|
150
|
+
}
|
|
125
151
|
});
|
|
126
152
|
|
|
127
153
|
// ─── Admin / Publishing ──────────────────────────────
|