@agenticmail/enterprise 0.5.396 → 0.5.397
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-WCN5ODKM.js → chunk-5OY7G6NG.js} +16 -1
- package/dist/{chunk-4RQSNUKJ.js → chunk-6XGF35TY.js} +2 -2
- package/dist/{chunk-7V3NWAVW.js → chunk-X5ULMFKP.js} +2 -2
- package/dist/{cli-agent-GU37CHPR.js → cli-agent-X356EE3C.js} +1 -1
- package/dist/{cli-serve-SCJMUJKM.js → cli-serve-CY6V5YHF.js} +1 -1
- package/dist/cli.js +3 -3
- package/dist/index.js +3 -3
- package/dist/{runtime-6FNMOTUR.js → runtime-WPUNDUHR.js} +1 -1
- package/dist/{server-BCCVD2XT.js → server-BWD2O5WP.js} +1 -1
- package/dist/{setup-ZLDVLN5G.js → setup-GGMNQVWH.js} +1 -1
- package/logs/cloudflared-error.log +4 -0
- package/package.json +1 -1
|
@@ -4009,6 +4009,9 @@ var FollowUpScheduler = class {
|
|
|
4009
4009
|
};
|
|
4010
4010
|
|
|
4011
4011
|
// src/runtime/index.ts
|
|
4012
|
+
import { homedir } from "os";
|
|
4013
|
+
import { join } from "path";
|
|
4014
|
+
import { mkdirSync } from "fs";
|
|
4012
4015
|
var _remotionPrompt = buildRemotonPrompt();
|
|
4013
4016
|
var DEFAULT_MODEL = {
|
|
4014
4017
|
provider: "anthropic",
|
|
@@ -4051,9 +4054,14 @@ var AgentRuntime = class {
|
|
|
4051
4054
|
/** Build tool options for a given agent, including OAuth email config if available */
|
|
4052
4055
|
buildToolOptions(agentId, sessionId) {
|
|
4053
4056
|
const self = this;
|
|
4057
|
+
const agentWorkspace = join(homedir(), ".agenticmail", "workspaces", agentId);
|
|
4058
|
+
try {
|
|
4059
|
+
mkdirSync(agentWorkspace, { recursive: true });
|
|
4060
|
+
} catch {
|
|
4061
|
+
}
|
|
4054
4062
|
const base = {
|
|
4055
4063
|
agentId,
|
|
4056
|
-
workspaceDir:
|
|
4064
|
+
workspaceDir: agentWorkspace,
|
|
4057
4065
|
agenticmailManager: this.config.agenticmailManager,
|
|
4058
4066
|
agentMemoryManager: this.config.agentMemoryManager,
|
|
4059
4067
|
engineDb: this.config.engineDb,
|
|
@@ -4829,6 +4837,7 @@ function createAgentRuntime(config) {
|
|
|
4829
4837
|
return new AgentRuntime(config);
|
|
4830
4838
|
}
|
|
4831
4839
|
function buildDefaultSystemPrompt(agentId, memoryContext, hierarchyContext, agentIdentity, dbConnections) {
|
|
4840
|
+
const wsDir = join(homedir(), ".agenticmail", "workspaces", agentId);
|
|
4832
4841
|
var base = `You are an AI agent managed by AgenticMail Enterprise (agent: ${agentId}).
|
|
4833
4842
|
|
|
4834
4843
|
You have access to a comprehensive set of tools for completing tasks. Use them effectively.
|
|
@@ -4841,6 +4850,12 @@ Guidelines:
|
|
|
4841
4850
|
- Respect organization policies and permissions
|
|
4842
4851
|
- Keep responses concise unless detail is requested
|
|
4843
4852
|
- For long tasks, work systematically and report progress
|
|
4853
|
+
|
|
4854
|
+
## Your Workspace
|
|
4855
|
+
Your dedicated workspace directory is: ${wsDir}
|
|
4856
|
+
ALWAYS save files, deliverables, rendered videos, images, and outputs here \u2014 NEVER in /tmp.
|
|
4857
|
+
/tmp files are cleaned up by the OS and will be lost. Your workspace persists across sessions.
|
|
4858
|
+
Create subdirectories as needed (e.g. videos/, images/, projects/, exports/).
|
|
4844
4859
|
- ACTIVELY USE YOUR MEMORY: After corrections, lessons, or insights, call memory_reflect to record them
|
|
4845
4860
|
- Before complex tasks, call memory_context to recall relevant knowledge
|
|
4846
4861
|
- Your memory persists across conversations \u2014 it's how you grow as an expert
|
|
@@ -1234,7 +1234,7 @@ async function deploy(config, db, jwtSecret, vaultKey, spinner, chalk) {
|
|
|
1234
1234
|
const { deployTarget, company, database, domain, tunnel, cloud } = config;
|
|
1235
1235
|
if (deployTarget === "cloudflare-tunnel" && tunnel) {
|
|
1236
1236
|
spinner.start(`Starting local server on port ${tunnel.port}...`);
|
|
1237
|
-
const { createServer: createServer2 } = await import("./server-
|
|
1237
|
+
const { createServer: createServer2 } = await import("./server-BWD2O5WP.js");
|
|
1238
1238
|
const server2 = createServer2({ port: tunnel.port, db, jwtSecret });
|
|
1239
1239
|
const handle2 = await server2.start();
|
|
1240
1240
|
spinner.succeed("Server running");
|
|
@@ -1536,7 +1536,7 @@ async function deploy(config, db, jwtSecret, vaultKey, spinner, chalk) {
|
|
|
1536
1536
|
return {};
|
|
1537
1537
|
}
|
|
1538
1538
|
spinner.start("Starting local server...");
|
|
1539
|
-
const { createServer } = await import("./server-
|
|
1539
|
+
const { createServer } = await import("./server-BWD2O5WP.js");
|
|
1540
1540
|
const server = createServer({ port: 3e3, db, jwtSecret });
|
|
1541
1541
|
const handle = await server.start();
|
|
1542
1542
|
spinner.succeed("Server running");
|
|
@@ -4713,7 +4713,7 @@ function createServer(config) {
|
|
|
4713
4713
|
engineInitialized = true;
|
|
4714
4714
|
if (config.runtime?.enabled) {
|
|
4715
4715
|
try {
|
|
4716
|
-
const { createAgentRuntime } = await import("./runtime-
|
|
4716
|
+
const { createAgentRuntime } = await import("./runtime-WPUNDUHR.js");
|
|
4717
4717
|
const { mountRuntimeApp, setRuntime } = await import("./routes-KL7BIX5B.js");
|
|
4718
4718
|
let getEmailConfig;
|
|
4719
4719
|
let onTokenRefresh;
|
|
@@ -5033,7 +5033,7 @@ function createServer(config) {
|
|
|
5033
5033
|
await setEngineDb(engineDb, config.db);
|
|
5034
5034
|
if (config.runtime?.enabled) {
|
|
5035
5035
|
try {
|
|
5036
|
-
const { createAgentRuntime } = await import("./runtime-
|
|
5036
|
+
const { createAgentRuntime } = await import("./runtime-WPUNDUHR.js");
|
|
5037
5037
|
const { mountRuntimeApp, setRuntime } = await import("./routes-KL7BIX5B.js");
|
|
5038
5038
|
let getEmailConfig;
|
|
5039
5039
|
let onTokenRefresh;
|
|
@@ -834,7 +834,7 @@ async function runAgent(_args) {
|
|
|
834
834
|
}
|
|
835
835
|
} catch {
|
|
836
836
|
}
|
|
837
|
-
const { createAgentRuntime } = await import("./runtime-
|
|
837
|
+
const { createAgentRuntime } = await import("./runtime-WPUNDUHR.js");
|
|
838
838
|
let orgIntMgr = null;
|
|
839
839
|
try {
|
|
840
840
|
const { orgIntegrations: oi } = await import("./routes-KL7BIX5B.js");
|
|
@@ -94,7 +94,7 @@ async function runServe(_args) {
|
|
|
94
94
|
process.exit(1);
|
|
95
95
|
}
|
|
96
96
|
const { createAdapter, smartDbConfig } = await import("./factory-XRYYBBCW.js");
|
|
97
|
-
const { createServer } = await import("./server-
|
|
97
|
+
const { createServer } = await import("./server-BWD2O5WP.js");
|
|
98
98
|
const db = await createAdapter(smartDbConfig(DATABASE_URL));
|
|
99
99
|
await db.migrate();
|
|
100
100
|
const server = createServer({
|
package/dist/cli.js
CHANGED
|
@@ -65,14 +65,14 @@ Skill Development:
|
|
|
65
65
|
break;
|
|
66
66
|
case "serve":
|
|
67
67
|
case "start":
|
|
68
|
-
import("./cli-serve-
|
|
68
|
+
import("./cli-serve-CY6V5YHF.js").then((m) => m.runServe(args.slice(1))).catch(fatal);
|
|
69
69
|
break;
|
|
70
70
|
case "agent":
|
|
71
|
-
import("./cli-agent-
|
|
71
|
+
import("./cli-agent-X356EE3C.js").then((m) => m.runAgent(args.slice(1))).catch(fatal);
|
|
72
72
|
break;
|
|
73
73
|
case "setup":
|
|
74
74
|
default:
|
|
75
|
-
import("./setup-
|
|
75
|
+
import("./setup-GGMNQVWH.js").then((m) => m.runSetupWizard()).catch(fatal);
|
|
76
76
|
break;
|
|
77
77
|
}
|
|
78
78
|
function fatal(err) {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provision,
|
|
3
3
|
runSetupWizard
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6XGF35TY.js";
|
|
5
5
|
import {
|
|
6
6
|
AgenticMailManager,
|
|
7
7
|
GoogleEmailProvider,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
executeTool,
|
|
29
29
|
runAgentLoop,
|
|
30
30
|
toolsToDefinitions
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5OY7G6NG.js";
|
|
32
32
|
import "./chunk-WPM52NBU.js";
|
|
33
33
|
import {
|
|
34
34
|
ValidationError,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
requireRole,
|
|
44
44
|
securityHeaders,
|
|
45
45
|
validate
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-X5ULMFKP.js";
|
|
47
47
|
import "./chunk-DJBCRQTD.js";
|
|
48
48
|
import {
|
|
49
49
|
PROVIDER_REGISTRY,
|
|
@@ -131,3 +131,7 @@
|
|
|
131
131
|
2026-03-06 03:14:30: 2026-03-06T02:14:30Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF" connIndex=0 dest=https://enterprise.agenticmail.io/api/engine/agent-status-stream?agentId=3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.43 type=http
|
|
132
132
|
2026-03-06 03:14:30: 2026-03-06T02:14:30Z INF Tunnel connection curve preferences: [X25519MLKEM768 CurveP256] connIndex=3 event=0 ip=198.41.192.37
|
|
133
133
|
2026-03-06 03:14:31: 2026-03-06T02:14:31Z INF Registered tunnel connection connIndex=3 connection=a23c65da-d8ea-458d-b23f-b8b17a0df4f0 event=0 ip=198.41.192.37 location=atl01 protocol=quic
|
|
134
|
+
2026-03-06 03:17:57: 2026-03-06T02:17:57Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8080
|
|
135
|
+
2026-03-06 03:17:57: 2026-03-06T02:17:57Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF" connIndex=0 dest=https://enterprise.agenticmail.io/dashboard/agents/3eecd57d-03ae-440d-8945-5b35f43a8d90 event=0 ip=198.41.200.43 type=http
|
|
136
|
+
2026-03-06 03:17:57: 2026-03-06T02:17:57Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF" connIndex=0 event=1 ingressRule=0 originService=http://localhost:8080
|
|
137
|
+
2026-03-06 03:17:57: 2026-03-06T02:17:57Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: EOF" connIndex=0 dest=https://enterprise.agenticmail.io/favicon.ico event=0 ip=198.41.200.43 type=http
|