@agenticmail/enterprise 0.5.176 → 0.5.178
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-2VSCPBC5.js +17693 -0
- package/dist/chunk-4SUPIOEO.js +2195 -0
- package/dist/chunk-F4XOJWAF.js +8876 -0
- package/dist/chunk-G6KSDUL7.js +898 -0
- package/dist/chunk-GAN64NTH.js +898 -0
- package/dist/chunk-PCBOCACL.js +17693 -0
- package/dist/chunk-VPZX6UA6.js +2195 -0
- package/dist/cli-agent-2XLHET5Z.js +1011 -0
- package/dist/cli-agent-KGRXB2A4.js +1012 -0
- package/dist/cli-serve-6UZJMLKN.js +34 -0
- package/dist/cli-serve-RIUNCKUB.js +34 -0
- package/dist/cli.js +3 -3
- package/dist/index.js +4 -4
- package/dist/routes-XVCFULQ3.js +7045 -0
- package/dist/runtime-AKYA4BC2.js +49 -0
- package/dist/runtime-KR6GMZHE.js +49 -0
- package/dist/server-ATRALRWA.js +12 -0
- package/dist/server-KOBAVLWK.js +12 -0
- package/dist/setup-H4AZZPAP.js +20 -0
- package/dist/setup-TOO6H56V.js +20 -0
- package/package.json +1 -1
- package/src/agent-tools/index.ts +4 -1
- package/src/agent-tools/tools/google/index.ts +20 -13
- package/src/cli-agent.ts +5 -0
- package/src/engine/lifecycle.ts +30 -29
- package/src/runtime/index.ts +7 -0
- package/src/runtime/types.ts +2 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "./chunk-KFQGP6VL.js";
|
|
2
|
+
|
|
3
|
+
// src/cli-serve.ts
|
|
4
|
+
async function runServe(_args) {
|
|
5
|
+
const DATABASE_URL = process.env.DATABASE_URL;
|
|
6
|
+
const JWT_SECRET = process.env.JWT_SECRET;
|
|
7
|
+
const PORT = parseInt(process.env.PORT || "8080", 10);
|
|
8
|
+
if (!DATABASE_URL) {
|
|
9
|
+
console.error("ERROR: DATABASE_URL environment variable is required");
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
if (!JWT_SECRET) {
|
|
13
|
+
console.error("ERROR: JWT_SECRET environment variable is required");
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
const { createAdapter } = await import("./factory-MBP7N2OQ.js");
|
|
17
|
+
const { createServer } = await import("./server-ATRALRWA.js");
|
|
18
|
+
const db = await createAdapter({
|
|
19
|
+
type: DATABASE_URL.startsWith("postgres") ? "postgres" : "sqlite",
|
|
20
|
+
connectionString: DATABASE_URL
|
|
21
|
+
});
|
|
22
|
+
await db.migrate();
|
|
23
|
+
const server = createServer({
|
|
24
|
+
port: PORT,
|
|
25
|
+
db,
|
|
26
|
+
jwtSecret: JWT_SECRET,
|
|
27
|
+
corsOrigins: ["*"]
|
|
28
|
+
});
|
|
29
|
+
await server.start();
|
|
30
|
+
console.log(`AgenticMail Enterprise server running on :${PORT}`);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
runServe
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import "./chunk-KFQGP6VL.js";
|
|
2
|
+
|
|
3
|
+
// src/cli-serve.ts
|
|
4
|
+
async function runServe(_args) {
|
|
5
|
+
const DATABASE_URL = process.env.DATABASE_URL;
|
|
6
|
+
const JWT_SECRET = process.env.JWT_SECRET;
|
|
7
|
+
const PORT = parseInt(process.env.PORT || "8080", 10);
|
|
8
|
+
if (!DATABASE_URL) {
|
|
9
|
+
console.error("ERROR: DATABASE_URL environment variable is required");
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
if (!JWT_SECRET) {
|
|
13
|
+
console.error("ERROR: JWT_SECRET environment variable is required");
|
|
14
|
+
process.exit(1);
|
|
15
|
+
}
|
|
16
|
+
const { createAdapter } = await import("./factory-MBP7N2OQ.js");
|
|
17
|
+
const { createServer } = await import("./server-KOBAVLWK.js");
|
|
18
|
+
const db = await createAdapter({
|
|
19
|
+
type: DATABASE_URL.startsWith("postgres") ? "postgres" : "sqlite",
|
|
20
|
+
connectionString: DATABASE_URL
|
|
21
|
+
});
|
|
22
|
+
await db.migrate();
|
|
23
|
+
const server = createServer({
|
|
24
|
+
port: PORT,
|
|
25
|
+
db,
|
|
26
|
+
jwtSecret: JWT_SECRET,
|
|
27
|
+
corsOrigins: ["*"]
|
|
28
|
+
});
|
|
29
|
+
await server.start();
|
|
30
|
+
console.log(`AgenticMail Enterprise server running on :${PORT}`);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
runServe
|
|
34
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -47,14 +47,14 @@ Skill Development:
|
|
|
47
47
|
`);
|
|
48
48
|
break;
|
|
49
49
|
case "serve":
|
|
50
|
-
import("./cli-serve-
|
|
50
|
+
import("./cli-serve-RIUNCKUB.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
51
51
|
break;
|
|
52
52
|
case "agent":
|
|
53
|
-
import("./cli-agent-
|
|
53
|
+
import("./cli-agent-KGRXB2A4.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
54
54
|
break;
|
|
55
55
|
case "setup":
|
|
56
56
|
default:
|
|
57
|
-
import("./setup-
|
|
57
|
+
import("./setup-TOO6H56V.js").then((m) => m.runSetupWizard()).catch(fatal);
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
60
|
function fatal(err) {
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
provision,
|
|
9
9
|
runSetupWizard
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GAN64NTH.js";
|
|
11
11
|
import {
|
|
12
12
|
ActionJournal,
|
|
13
13
|
ActivityTracker,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
TenantManager,
|
|
30
30
|
WorkforceManager,
|
|
31
31
|
init_guardrails
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-F4XOJWAF.js";
|
|
33
33
|
import {
|
|
34
34
|
ENGINE_TABLES,
|
|
35
35
|
ENGINE_TABLES_POSTGRES,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
executeTool,
|
|
55
55
|
runAgentLoop,
|
|
56
56
|
toolsToDefinitions
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2VSCPBC5.js";
|
|
58
58
|
import "./chunk-AQH4DFYV.js";
|
|
59
59
|
import {
|
|
60
60
|
ValidationError,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
requireRole,
|
|
70
70
|
securityHeaders,
|
|
71
71
|
validate
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-4SUPIOEO.js";
|
|
73
73
|
import "./chunk-3SMTCIR4.js";
|
|
74
74
|
import {
|
|
75
75
|
CircuitBreaker,
|