@agenticmail/enterprise 0.4.2 → 0.4.3
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-ANW4OHXR.js +764 -0
- package/dist/chunk-EVQPFQ55.js +9040 -0
- package/dist/chunk-JMTNHH7I.js +12666 -0
- package/dist/chunk-TYW5XTOW.js +395 -0
- package/dist/chunk-V2YIXYDJ.js +1943 -0
- package/dist/cli.js +1 -1
- package/dist/index.js +5 -4
- package/dist/routes-ALTC4I2R.js +5674 -0
- package/dist/runtime-JLFTHMIT.js +47 -0
- package/dist/server-OGQWCOT6.js +11 -0
- package/dist/setup-HCMMUEW6.js +20 -0
- package/package.json +1 -1
- package/src/agent-tools/tools/memory.ts +42 -15
- package/src/engine/agent-memory.ts +4 -355
- package/src/lib/text-search.ts +358 -0
|
@@ -0,0 +1,764 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSupportedDatabases
|
|
3
|
+
} from "./chunk-NTVN3JHS.js";
|
|
4
|
+
|
|
5
|
+
// src/setup/company.ts
|
|
6
|
+
function toSlug(name) {
|
|
7
|
+
return name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "").slice(0, 63);
|
|
8
|
+
}
|
|
9
|
+
function generateAlternatives(companyName) {
|
|
10
|
+
const base = toSlug(companyName);
|
|
11
|
+
const words = companyName.trim().split(/\s+/).map((w) => w.toLowerCase().replace(/[^a-z0-9]/g, "")).filter(Boolean);
|
|
12
|
+
const suggestions = /* @__PURE__ */ new Set();
|
|
13
|
+
suggestions.add(base);
|
|
14
|
+
if (words.length >= 2) {
|
|
15
|
+
const initials = words.map((w) => w[0]).join("");
|
|
16
|
+
if (initials.length >= 2) suggestions.add(initials);
|
|
17
|
+
}
|
|
18
|
+
if (words[0] && words[0] !== base) {
|
|
19
|
+
suggestions.add(words[0]);
|
|
20
|
+
}
|
|
21
|
+
if (words.length >= 3) {
|
|
22
|
+
suggestions.add(`${words[0]}-${words[words.length - 1]}`);
|
|
23
|
+
}
|
|
24
|
+
suggestions.add(`team-${base}`);
|
|
25
|
+
suggestions.add(`app-${base}`);
|
|
26
|
+
suggestions.add(`mail-${words[0] || base}`);
|
|
27
|
+
suggestions.add(`ai-${words[0] || base}`);
|
|
28
|
+
suggestions.add(`${words[0] || base}-hq`);
|
|
29
|
+
suggestions.delete(base);
|
|
30
|
+
return [...suggestions].map((s) => s.slice(0, 63)).slice(0, 5);
|
|
31
|
+
}
|
|
32
|
+
function validateSubdomain(v) {
|
|
33
|
+
const s = v.trim();
|
|
34
|
+
if (!s) return "Subdomain is required";
|
|
35
|
+
if (s.length < 2) return "Subdomain must be at least 2 characters";
|
|
36
|
+
if (s.length > 63) return "Subdomain must be 63 characters or fewer";
|
|
37
|
+
if (!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(s)) {
|
|
38
|
+
return "Subdomain must be lowercase letters, numbers, and hyphens (cannot start or end with a hyphen)";
|
|
39
|
+
}
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
async function promptCompanyInfo(inquirer, chalk) {
|
|
43
|
+
console.log(chalk.bold.cyan(" Step 1 of 5: Company Info"));
|
|
44
|
+
console.log(chalk.dim(" Tell us about your organization.\n"));
|
|
45
|
+
const { companyName, adminEmail, adminPassword } = await inquirer.prompt([
|
|
46
|
+
{
|
|
47
|
+
type: "input",
|
|
48
|
+
name: "companyName",
|
|
49
|
+
message: "Company name:",
|
|
50
|
+
validate: (v) => {
|
|
51
|
+
if (!v.trim()) return "Company name is required";
|
|
52
|
+
if (v.length > 100) return "Company name must be under 100 characters";
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "input",
|
|
58
|
+
name: "adminEmail",
|
|
59
|
+
message: "Admin email:",
|
|
60
|
+
validate: (v) => {
|
|
61
|
+
if (!v.includes("@") || !v.includes(".")) return "Enter a valid email address";
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "password",
|
|
67
|
+
name: "adminPassword",
|
|
68
|
+
message: "Admin password:",
|
|
69
|
+
mask: "*",
|
|
70
|
+
validate: (v) => {
|
|
71
|
+
if (v.length < 8) return "Password must be at least 8 characters";
|
|
72
|
+
if (!/[A-Z]/.test(v) && !/[0-9]/.test(v)) {
|
|
73
|
+
return "Password should contain at least one uppercase letter or number";
|
|
74
|
+
}
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]);
|
|
79
|
+
const suggested = toSlug(companyName);
|
|
80
|
+
const alternatives = generateAlternatives(companyName);
|
|
81
|
+
console.log("");
|
|
82
|
+
console.log(chalk.bold(" Subdomain"));
|
|
83
|
+
console.log(chalk.dim(" Used for your dashboard URL and internal routing.\n"));
|
|
84
|
+
const choices = [
|
|
85
|
+
{ name: `${suggested} ${chalk.dim("(recommended)")}`, value: suggested },
|
|
86
|
+
...alternatives.map((alt) => ({ name: alt, value: alt })),
|
|
87
|
+
new inquirer.Separator(),
|
|
88
|
+
{ name: `${chalk.italic("Enter my own...")}`, value: "__custom__" },
|
|
89
|
+
{ name: `${chalk.italic("Generate more suggestions")}`, value: "__regenerate__" }
|
|
90
|
+
];
|
|
91
|
+
let subdomain = suggested;
|
|
92
|
+
let choosing = true;
|
|
93
|
+
while (choosing) {
|
|
94
|
+
const { subdomainChoice } = await inquirer.prompt([{
|
|
95
|
+
type: "list",
|
|
96
|
+
name: "subdomainChoice",
|
|
97
|
+
message: "Choose a subdomain:",
|
|
98
|
+
choices
|
|
99
|
+
}]);
|
|
100
|
+
if (subdomainChoice === "__custom__") {
|
|
101
|
+
const { custom } = await inquirer.prompt([{
|
|
102
|
+
type: "input",
|
|
103
|
+
name: "custom",
|
|
104
|
+
message: "Custom subdomain:",
|
|
105
|
+
suffix: chalk.dim(" (lowercase, letters/numbers/hyphens)"),
|
|
106
|
+
validate: validateSubdomain,
|
|
107
|
+
filter: (v) => v.trim().toLowerCase()
|
|
108
|
+
}]);
|
|
109
|
+
subdomain = custom;
|
|
110
|
+
choosing = false;
|
|
111
|
+
} else if (subdomainChoice === "__regenerate__") {
|
|
112
|
+
const base = toSlug(companyName);
|
|
113
|
+
const words = companyName.trim().split(/\s+/).map((w2) => w2.toLowerCase().replace(/[^a-z0-9]/g, "")).filter(Boolean);
|
|
114
|
+
const w = words[0] || base;
|
|
115
|
+
const rand = () => Math.random().toString(36).slice(2, 5);
|
|
116
|
+
const fresh = [
|
|
117
|
+
`${w}-${rand()}`,
|
|
118
|
+
`${base}-${rand()}`,
|
|
119
|
+
`${w}-agents`,
|
|
120
|
+
`${w}-mail`,
|
|
121
|
+
`${w}-platform`
|
|
122
|
+
];
|
|
123
|
+
choices.splice(
|
|
124
|
+
1,
|
|
125
|
+
alternatives.length,
|
|
126
|
+
...fresh.map((alt) => ({ name: alt, value: alt }))
|
|
127
|
+
);
|
|
128
|
+
} else {
|
|
129
|
+
subdomain = subdomainChoice;
|
|
130
|
+
choosing = false;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
console.log(chalk.dim(` Your subdomain: ${chalk.white(subdomain)}
|
|
134
|
+
`));
|
|
135
|
+
return { companyName, adminEmail, adminPassword, subdomain };
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// src/setup/database.ts
|
|
139
|
+
var CONNECTION_HINTS = {
|
|
140
|
+
postgres: "postgresql://user:pass@host:5432/dbname",
|
|
141
|
+
mysql: "mysql://user:pass@host:3306/dbname",
|
|
142
|
+
mongodb: "mongodb+srv://user:pass@cluster.mongodb.net/dbname",
|
|
143
|
+
supabase: "postgresql://postgres:pass@db.xxxx.supabase.co:5432/postgres",
|
|
144
|
+
neon: "postgresql://user:pass@ep-xxx.us-east-1.aws.neon.tech/dbname?sslmode=require",
|
|
145
|
+
planetscale: 'mysql://user:pass@aws.connect.psdb.cloud/dbname?ssl={"rejectUnauthorized":true}',
|
|
146
|
+
cockroachdb: "postgresql://user:pass@cluster.cockroachlabs.cloud:26257/dbname?sslmode=verify-full"
|
|
147
|
+
};
|
|
148
|
+
async function promptDatabase(inquirer, chalk) {
|
|
149
|
+
console.log("");
|
|
150
|
+
console.log(chalk.bold.cyan(" Step 2 of 4: Database"));
|
|
151
|
+
console.log(chalk.dim(" Where should your data live?\n"));
|
|
152
|
+
const databases = getSupportedDatabases();
|
|
153
|
+
const { dbType } = await inquirer.prompt([
|
|
154
|
+
{
|
|
155
|
+
type: "list",
|
|
156
|
+
name: "dbType",
|
|
157
|
+
message: "Database backend:",
|
|
158
|
+
choices: databases.map((d) => ({
|
|
159
|
+
name: `${d.label} ${chalk.dim(`(${d.group})`)}`,
|
|
160
|
+
value: d.type
|
|
161
|
+
}))
|
|
162
|
+
}
|
|
163
|
+
]);
|
|
164
|
+
if (dbType === "sqlite") {
|
|
165
|
+
const { dbPath } = await inquirer.prompt([{
|
|
166
|
+
type: "input",
|
|
167
|
+
name: "dbPath",
|
|
168
|
+
message: "Database file path:",
|
|
169
|
+
default: "./agenticmail-enterprise.db"
|
|
170
|
+
}]);
|
|
171
|
+
return { type: dbType, connectionString: dbPath };
|
|
172
|
+
}
|
|
173
|
+
if (dbType === "dynamodb") {
|
|
174
|
+
const answers = await inquirer.prompt([
|
|
175
|
+
{
|
|
176
|
+
type: "input",
|
|
177
|
+
name: "region",
|
|
178
|
+
message: "AWS Region:",
|
|
179
|
+
default: "us-east-1"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
type: "input",
|
|
183
|
+
name: "accessKeyId",
|
|
184
|
+
message: "AWS Access Key ID:",
|
|
185
|
+
validate: (v) => v.length > 0 || "Required"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: "password",
|
|
189
|
+
name: "secretAccessKey",
|
|
190
|
+
message: "AWS Secret Access Key:",
|
|
191
|
+
mask: "*",
|
|
192
|
+
validate: (v) => v.length > 0 || "Required"
|
|
193
|
+
}
|
|
194
|
+
]);
|
|
195
|
+
return { type: dbType, ...answers };
|
|
196
|
+
}
|
|
197
|
+
if (dbType === "turso") {
|
|
198
|
+
const answers = await inquirer.prompt([
|
|
199
|
+
{
|
|
200
|
+
type: "input",
|
|
201
|
+
name: "connectionString",
|
|
202
|
+
message: "Turso database URL:",
|
|
203
|
+
suffix: chalk.dim(" (e.g. libsql://db-org.turso.io)"),
|
|
204
|
+
validate: (v) => v.length > 0 || "Required"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
type: "password",
|
|
208
|
+
name: "authToken",
|
|
209
|
+
message: "Turso auth token:",
|
|
210
|
+
mask: "*",
|
|
211
|
+
validate: (v) => v.length > 0 || "Required"
|
|
212
|
+
}
|
|
213
|
+
]);
|
|
214
|
+
return { type: dbType, connectionString: answers.connectionString, authToken: answers.authToken };
|
|
215
|
+
}
|
|
216
|
+
const hint = CONNECTION_HINTS[dbType] || "";
|
|
217
|
+
const { connectionString } = await inquirer.prompt([{
|
|
218
|
+
type: "input",
|
|
219
|
+
name: "connectionString",
|
|
220
|
+
message: "Connection string:",
|
|
221
|
+
suffix: hint ? chalk.dim(` (e.g. ${hint})`) : "",
|
|
222
|
+
validate: (v) => v.length > 0 || "Connection string is required"
|
|
223
|
+
}]);
|
|
224
|
+
return { type: dbType, connectionString };
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// src/setup/deployment.ts
|
|
228
|
+
async function promptDeployment(inquirer, chalk) {
|
|
229
|
+
console.log("");
|
|
230
|
+
console.log(chalk.bold.cyan(" Step 3 of 4: Deployment"));
|
|
231
|
+
console.log(chalk.dim(" Where should your dashboard run?\n"));
|
|
232
|
+
const { deployTarget } = await inquirer.prompt([{
|
|
233
|
+
type: "list",
|
|
234
|
+
name: "deployTarget",
|
|
235
|
+
message: "Deploy to:",
|
|
236
|
+
choices: [
|
|
237
|
+
{
|
|
238
|
+
name: `AgenticMail Cloud ${chalk.dim("(managed, instant URL)")}`,
|
|
239
|
+
value: "cloud"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
name: `Fly.io ${chalk.dim("(your account)")}`,
|
|
243
|
+
value: "fly"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: `Railway ${chalk.dim("(your account)")}`,
|
|
247
|
+
value: "railway"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: `Docker ${chalk.dim("(self-hosted)")}`,
|
|
251
|
+
value: "docker"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
name: `Local ${chalk.dim("(dev/testing, runs here)")}`,
|
|
255
|
+
value: "local"
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}]);
|
|
259
|
+
return { target: deployTarget };
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// src/setup/domain.ts
|
|
263
|
+
async function promptDomain(inquirer, chalk, deployTarget) {
|
|
264
|
+
if (deployTarget === "local") {
|
|
265
|
+
return {};
|
|
266
|
+
}
|
|
267
|
+
console.log("");
|
|
268
|
+
console.log(chalk.bold.cyan(" Step 4 of 5: Custom Domain"));
|
|
269
|
+
console.log(chalk.dim(" Point your own domain at this deployment.\n"));
|
|
270
|
+
const targetHints = {
|
|
271
|
+
cloud: "Your dashboard will be accessible at this domain instead of the default .agenticmail.io URL.",
|
|
272
|
+
docker: "Configure your reverse proxy (nginx, Caddy, etc.) to route this domain to the Docker container.",
|
|
273
|
+
fly: "After deploying, run `fly certs add <domain>` to provision TLS for this domain.",
|
|
274
|
+
railway: "Add this domain in your Railway project settings after deploying."
|
|
275
|
+
};
|
|
276
|
+
if (targetHints[deployTarget]) {
|
|
277
|
+
console.log(chalk.dim(` ${targetHints[deployTarget]}`));
|
|
278
|
+
console.log("");
|
|
279
|
+
}
|
|
280
|
+
const { wantsDomain } = await inquirer.prompt([{
|
|
281
|
+
type: "confirm",
|
|
282
|
+
name: "wantsDomain",
|
|
283
|
+
message: "Add a custom domain?",
|
|
284
|
+
default: false
|
|
285
|
+
}]);
|
|
286
|
+
if (!wantsDomain) return {};
|
|
287
|
+
const { domain } = await inquirer.prompt([{
|
|
288
|
+
type: "input",
|
|
289
|
+
name: "domain",
|
|
290
|
+
message: "Custom domain:",
|
|
291
|
+
suffix: chalk.dim(" (e.g. agents.agenticmail.io)"),
|
|
292
|
+
validate: (v) => {
|
|
293
|
+
const d = v.trim().toLowerCase();
|
|
294
|
+
if (!d.includes(".")) return "Enter a valid domain (e.g. agents.agenticmail.io)";
|
|
295
|
+
if (d.startsWith("http")) return "Enter just the domain, not a URL";
|
|
296
|
+
if (d.endsWith(".")) return "Do not include a trailing dot";
|
|
297
|
+
return true;
|
|
298
|
+
},
|
|
299
|
+
filter: (v) => v.trim().toLowerCase()
|
|
300
|
+
}]);
|
|
301
|
+
console.log("");
|
|
302
|
+
console.log(chalk.dim(" After setup, you will need two DNS records for this domain:"));
|
|
303
|
+
console.log("");
|
|
304
|
+
console.log(chalk.dim(` 1. ${chalk.white("CNAME or A record")} \u2014 routes traffic to your server`));
|
|
305
|
+
console.log(chalk.dim(` (instructions shown after deployment)`));
|
|
306
|
+
console.log(chalk.dim(` 2. ${chalk.white("TXT record")} \u2014 proves domain ownership (next step)`));
|
|
307
|
+
console.log("");
|
|
308
|
+
return { customDomain: domain };
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// src/setup/registration.ts
|
|
312
|
+
import { randomBytes } from "crypto";
|
|
313
|
+
var REGISTRY_BASE_URL = process.env.AGENTICMAIL_REGISTRY_URL || "https://registry.agenticmail.com/v1";
|
|
314
|
+
async function promptRegistration(inquirer, chalk, ora, domain, companyName, adminEmail) {
|
|
315
|
+
if (!domain) {
|
|
316
|
+
return { registered: false, verificationStatus: "skipped" };
|
|
317
|
+
}
|
|
318
|
+
console.log("");
|
|
319
|
+
console.log(chalk.bold.cyan(" Step 5 of 5: Domain Registration"));
|
|
320
|
+
console.log(chalk.dim(" Protect your deployment from unauthorized duplication.\n"));
|
|
321
|
+
const { wantsRegistration } = await inquirer.prompt([{
|
|
322
|
+
type: "confirm",
|
|
323
|
+
name: "wantsRegistration",
|
|
324
|
+
message: `Register ${chalk.bold(domain)} with AgenticMail?`,
|
|
325
|
+
default: true
|
|
326
|
+
}]);
|
|
327
|
+
if (!wantsRegistration) {
|
|
328
|
+
console.log(chalk.dim(" Skipped. You can register later from the dashboard.\n"));
|
|
329
|
+
return { registered: false, verificationStatus: "skipped" };
|
|
330
|
+
}
|
|
331
|
+
const spinner = ora("Generating deployment key...").start();
|
|
332
|
+
const { default: bcrypt } = await import("bcryptjs");
|
|
333
|
+
const plaintextKey = randomBytes(32).toString("hex");
|
|
334
|
+
const keyHash = await bcrypt.hash(plaintextKey, 12);
|
|
335
|
+
spinner.succeed("Deployment key generated");
|
|
336
|
+
spinner.start("Registering domain with AgenticMail registry...");
|
|
337
|
+
const registryUrl = REGISTRY_BASE_URL.replace(/\/$/, "");
|
|
338
|
+
let registrationId;
|
|
339
|
+
let dnsChallenge;
|
|
340
|
+
try {
|
|
341
|
+
const res = await fetch(`${registryUrl}/domains/register`, {
|
|
342
|
+
method: "POST",
|
|
343
|
+
headers: { "Content-Type": "application/json" },
|
|
344
|
+
body: JSON.stringify({
|
|
345
|
+
domain: domain.toLowerCase().trim(),
|
|
346
|
+
keyHash,
|
|
347
|
+
orgName: companyName,
|
|
348
|
+
contactEmail: adminEmail
|
|
349
|
+
}),
|
|
350
|
+
signal: AbortSignal.timeout(15e3)
|
|
351
|
+
});
|
|
352
|
+
const data = await res.json().catch(() => ({}));
|
|
353
|
+
if (res.status === 409) {
|
|
354
|
+
spinner.fail("Domain already registered");
|
|
355
|
+
console.log("");
|
|
356
|
+
console.log(chalk.yellow(" This domain is already registered and verified."));
|
|
357
|
+
console.log(chalk.dim(" If this is your domain, use: agenticmail-enterprise recover"));
|
|
358
|
+
console.log("");
|
|
359
|
+
const { continueAnyway } = await inquirer.prompt([{
|
|
360
|
+
type: "confirm",
|
|
361
|
+
name: "continueAnyway",
|
|
362
|
+
message: "Continue setup without registration?",
|
|
363
|
+
default: true
|
|
364
|
+
}]);
|
|
365
|
+
if (continueAnyway) {
|
|
366
|
+
return { registered: false, verificationStatus: "skipped" };
|
|
367
|
+
}
|
|
368
|
+
process.exit(1);
|
|
369
|
+
}
|
|
370
|
+
if (!res.ok) {
|
|
371
|
+
throw new Error(data.error || `HTTP ${res.status}`);
|
|
372
|
+
}
|
|
373
|
+
registrationId = data.registrationId;
|
|
374
|
+
dnsChallenge = data.dnsChallenge;
|
|
375
|
+
spinner.succeed("Domain registered");
|
|
376
|
+
} catch (err) {
|
|
377
|
+
spinner.warn("Registry unavailable");
|
|
378
|
+
console.log("");
|
|
379
|
+
console.log(chalk.yellow(` Could not reach registry: ${err.message}`));
|
|
380
|
+
console.log(chalk.dim(" You can register later with: agenticmail-enterprise verify-domain"));
|
|
381
|
+
console.log("");
|
|
382
|
+
const { continueAnyway } = await inquirer.prompt([{
|
|
383
|
+
type: "confirm",
|
|
384
|
+
name: "continueAnyway",
|
|
385
|
+
message: "Continue setup without registration?",
|
|
386
|
+
default: true
|
|
387
|
+
}]);
|
|
388
|
+
if (continueAnyway) {
|
|
389
|
+
return { registered: false, verificationStatus: "skipped" };
|
|
390
|
+
}
|
|
391
|
+
process.exit(1);
|
|
392
|
+
}
|
|
393
|
+
console.log("");
|
|
394
|
+
console.log(chalk.red.bold(" \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557"));
|
|
395
|
+
console.log(chalk.red.bold(" \u2551") + chalk.white.bold(" DEPLOYMENT KEY \u2014 SAVE THIS NOW ") + chalk.red.bold("\u2551"));
|
|
396
|
+
console.log(chalk.red.bold(" \u2551") + " " + chalk.red.bold("\u2551"));
|
|
397
|
+
console.log(chalk.red.bold(" \u2551") + ` ${chalk.green.bold(plaintextKey)} ` + chalk.red.bold("\u2551"));
|
|
398
|
+
console.log(chalk.red.bold(" \u2551") + " " + chalk.red.bold("\u2551"));
|
|
399
|
+
console.log(chalk.red.bold(" \u2551") + chalk.dim(" This key is shown ONCE. Store it securely (password manager, ") + chalk.red.bold("\u2551"));
|
|
400
|
+
console.log(chalk.red.bold(" \u2551") + chalk.dim(" vault, printed backup). You need it to recover this domain. ") + chalk.red.bold("\u2551"));
|
|
401
|
+
console.log(chalk.red.bold(" \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D"));
|
|
402
|
+
console.log("");
|
|
403
|
+
console.log(chalk.bold(" Add this DNS TXT record to prove domain ownership:"));
|
|
404
|
+
console.log("");
|
|
405
|
+
console.log(` ${chalk.bold("Host:")} ${chalk.cyan(`_agenticmail-verify.${domain}`)}`);
|
|
406
|
+
console.log(` ${chalk.bold("Type:")} ${chalk.cyan("TXT")}`);
|
|
407
|
+
console.log(` ${chalk.bold("Value:")} ${chalk.cyan(dnsChallenge)}`);
|
|
408
|
+
console.log("");
|
|
409
|
+
console.log(chalk.dim(" DNS changes can take up to 48 hours to propagate."));
|
|
410
|
+
console.log("");
|
|
411
|
+
await inquirer.prompt([{
|
|
412
|
+
type: "confirm",
|
|
413
|
+
name: "keySaved",
|
|
414
|
+
message: "I have saved my deployment key",
|
|
415
|
+
default: false
|
|
416
|
+
}]);
|
|
417
|
+
const { checkNow } = await inquirer.prompt([{
|
|
418
|
+
type: "confirm",
|
|
419
|
+
name: "checkNow",
|
|
420
|
+
message: "Check DNS verification now?",
|
|
421
|
+
default: false
|
|
422
|
+
}]);
|
|
423
|
+
let verificationStatus = "pending_dns";
|
|
424
|
+
if (checkNow) {
|
|
425
|
+
for (let attempt = 1; attempt <= 5; attempt++) {
|
|
426
|
+
spinner.start(`Checking DNS (attempt ${attempt}/5)...`);
|
|
427
|
+
try {
|
|
428
|
+
const res = await fetch(`${registryUrl}/domains/verify`, {
|
|
429
|
+
method: "POST",
|
|
430
|
+
headers: { "Content-Type": "application/json" },
|
|
431
|
+
body: JSON.stringify({ domain: domain.toLowerCase().trim() }),
|
|
432
|
+
signal: AbortSignal.timeout(15e3)
|
|
433
|
+
});
|
|
434
|
+
const data = await res.json().catch(() => ({}));
|
|
435
|
+
if (data.verified) {
|
|
436
|
+
spinner.succeed("Domain verified!");
|
|
437
|
+
verificationStatus = "verified";
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
} catch {
|
|
441
|
+
}
|
|
442
|
+
if (attempt < 5) {
|
|
443
|
+
spinner.text = `DNS record not found yet. Retrying in 10s (attempt ${attempt}/5)...`;
|
|
444
|
+
await new Promise((r) => setTimeout(r, 1e4));
|
|
445
|
+
} else {
|
|
446
|
+
spinner.info("DNS record not found yet");
|
|
447
|
+
console.log(chalk.dim(" Run later: agenticmail-enterprise verify-domain"));
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
} else {
|
|
451
|
+
console.log(chalk.dim(" Run when ready: agenticmail-enterprise verify-domain"));
|
|
452
|
+
}
|
|
453
|
+
console.log("");
|
|
454
|
+
return {
|
|
455
|
+
registered: true,
|
|
456
|
+
deploymentKeyHash: keyHash,
|
|
457
|
+
dnsChallenge,
|
|
458
|
+
registrationId,
|
|
459
|
+
verificationStatus
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
// src/setup/provision.ts
|
|
464
|
+
import { randomUUID } from "crypto";
|
|
465
|
+
async function provision(config, ora, chalk) {
|
|
466
|
+
const spinner = ora("Connecting to database...").start();
|
|
467
|
+
const jwtSecret = randomUUID() + randomUUID();
|
|
468
|
+
try {
|
|
469
|
+
const { createAdapter } = await import("./factory-FVJH5RRY.js");
|
|
470
|
+
const db = await createAdapter({
|
|
471
|
+
type: config.database.type,
|
|
472
|
+
connectionString: config.database.connectionString,
|
|
473
|
+
region: config.database.region,
|
|
474
|
+
accessKeyId: config.database.accessKeyId,
|
|
475
|
+
secretAccessKey: config.database.secretAccessKey,
|
|
476
|
+
authToken: config.database.authToken
|
|
477
|
+
});
|
|
478
|
+
spinner.text = "Running migrations...";
|
|
479
|
+
await db.migrate();
|
|
480
|
+
spinner.succeed("Database ready");
|
|
481
|
+
const engineDbInterface = db.getEngineDB();
|
|
482
|
+
if (engineDbInterface) {
|
|
483
|
+
spinner.start("Initializing engine...");
|
|
484
|
+
const { EngineDatabase } = await import("./db-adapter-5PWMLY67.js");
|
|
485
|
+
const dialectMap = {
|
|
486
|
+
sqlite: "sqlite",
|
|
487
|
+
postgres: "postgres",
|
|
488
|
+
supabase: "postgres",
|
|
489
|
+
neon: "postgres",
|
|
490
|
+
cockroachdb: "postgres",
|
|
491
|
+
mysql: "mysql",
|
|
492
|
+
planetscale: "mysql",
|
|
493
|
+
turso: "turso"
|
|
494
|
+
};
|
|
495
|
+
const engineDialect = dialectMap[db.getDialect()] || db.getDialect();
|
|
496
|
+
const engineDb = new EngineDatabase(engineDbInterface, engineDialect);
|
|
497
|
+
const migResult = await engineDb.migrate();
|
|
498
|
+
spinner.succeed(`Engine ready (${migResult.applied} migrations applied)`);
|
|
499
|
+
}
|
|
500
|
+
spinner.start("Creating company...");
|
|
501
|
+
await db.updateSettings({
|
|
502
|
+
name: config.company.companyName,
|
|
503
|
+
subdomain: config.company.subdomain,
|
|
504
|
+
domain: config.domain.customDomain
|
|
505
|
+
});
|
|
506
|
+
spinner.succeed("Company created");
|
|
507
|
+
if (config.registration?.registered) {
|
|
508
|
+
spinner.start("Saving domain registration...");
|
|
509
|
+
await db.updateSettings({
|
|
510
|
+
deploymentKeyHash: config.registration.deploymentKeyHash,
|
|
511
|
+
domainRegistrationId: config.registration.registrationId,
|
|
512
|
+
domainDnsChallenge: config.registration.dnsChallenge,
|
|
513
|
+
domainRegisteredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
514
|
+
domainStatus: config.registration.verificationStatus === "verified" ? "verified" : "pending_dns",
|
|
515
|
+
...config.registration.verificationStatus === "verified" ? { domainVerifiedAt: (/* @__PURE__ */ new Date()).toISOString() } : {}
|
|
516
|
+
});
|
|
517
|
+
spinner.succeed("Domain registration saved");
|
|
518
|
+
}
|
|
519
|
+
spinner.start("Creating admin account...");
|
|
520
|
+
const admin = await db.createUser({
|
|
521
|
+
email: config.company.adminEmail,
|
|
522
|
+
name: "Admin",
|
|
523
|
+
role: "owner",
|
|
524
|
+
password: config.company.adminPassword
|
|
525
|
+
});
|
|
526
|
+
await db.logEvent({
|
|
527
|
+
actor: admin.id,
|
|
528
|
+
actorType: "system",
|
|
529
|
+
action: "setup.complete",
|
|
530
|
+
resource: `company:${config.company.subdomain}`,
|
|
531
|
+
details: {
|
|
532
|
+
dbType: config.database.type,
|
|
533
|
+
deployTarget: config.deployTarget,
|
|
534
|
+
companyName: config.company.companyName
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
spinner.succeed("Admin account created");
|
|
538
|
+
const result = await deploy(config, db, jwtSecret, spinner, chalk);
|
|
539
|
+
return {
|
|
540
|
+
success: true,
|
|
541
|
+
url: result.url,
|
|
542
|
+
jwtSecret,
|
|
543
|
+
db,
|
|
544
|
+
serverClose: result.close
|
|
545
|
+
};
|
|
546
|
+
} catch (err) {
|
|
547
|
+
spinner.fail(`Setup failed: ${err.message}`);
|
|
548
|
+
return {
|
|
549
|
+
success: false,
|
|
550
|
+
error: err.message,
|
|
551
|
+
jwtSecret,
|
|
552
|
+
db: null
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
async function deploy(config, db, jwtSecret, spinner, chalk) {
|
|
557
|
+
const { deployTarget, company, database, domain } = config;
|
|
558
|
+
if (deployTarget === "cloud") {
|
|
559
|
+
spinner.start("Deploying to AgenticMail Cloud...");
|
|
560
|
+
const { deployToCloud } = await import("./managed-QVTONZ7E.js");
|
|
561
|
+
const result = await deployToCloud({
|
|
562
|
+
subdomain: company.subdomain,
|
|
563
|
+
plan: "free",
|
|
564
|
+
dbType: database.type,
|
|
565
|
+
dbConnectionString: database.connectionString || "",
|
|
566
|
+
jwtSecret
|
|
567
|
+
});
|
|
568
|
+
spinner.succeed(`Deployed to ${result.url}`);
|
|
569
|
+
printCloudSuccess(chalk, result.url, company.adminEmail, domain.customDomain, company.subdomain);
|
|
570
|
+
return { url: result.url };
|
|
571
|
+
}
|
|
572
|
+
if (deployTarget === "docker") {
|
|
573
|
+
const { generateDockerCompose, generateEnvFile } = await import("./managed-QVTONZ7E.js");
|
|
574
|
+
const compose = generateDockerCompose({ port: 3e3 });
|
|
575
|
+
const envFile = generateEnvFile({
|
|
576
|
+
dbType: database.type,
|
|
577
|
+
dbConnectionString: database.connectionString || "",
|
|
578
|
+
jwtSecret
|
|
579
|
+
});
|
|
580
|
+
const { writeFileSync, existsSync, appendFileSync } = await import("fs");
|
|
581
|
+
writeFileSync("docker-compose.yml", compose);
|
|
582
|
+
writeFileSync(".env", envFile);
|
|
583
|
+
if (existsSync(".gitignore")) {
|
|
584
|
+
const content = await import("fs").then((f) => f.readFileSync(".gitignore", "utf-8"));
|
|
585
|
+
if (!content.includes(".env")) {
|
|
586
|
+
appendFileSync(".gitignore", "\n# Secrets\n.env\n");
|
|
587
|
+
}
|
|
588
|
+
} else {
|
|
589
|
+
writeFileSync(".gitignore", "# Secrets\n.env\nnode_modules/\n");
|
|
590
|
+
}
|
|
591
|
+
spinner.succeed("docker-compose.yml + .env generated");
|
|
592
|
+
console.log("");
|
|
593
|
+
console.log(chalk.green.bold(" Docker deployment ready!"));
|
|
594
|
+
console.log("");
|
|
595
|
+
console.log(` Run: ${chalk.cyan("docker compose up -d")}`);
|
|
596
|
+
console.log(` Dashboard: ${chalk.cyan("http://localhost:3000")}`);
|
|
597
|
+
console.log(chalk.dim(" Secrets stored in .env \u2014 do not commit to git"));
|
|
598
|
+
if (domain.customDomain) {
|
|
599
|
+
printCustomDomainInstructions(chalk, domain.customDomain, "docker");
|
|
600
|
+
}
|
|
601
|
+
return { url: "http://localhost:3000" };
|
|
602
|
+
}
|
|
603
|
+
if (deployTarget === "fly") {
|
|
604
|
+
const { generateFlyToml } = await import("./managed-QVTONZ7E.js");
|
|
605
|
+
const flyToml = generateFlyToml(`am-${company.subdomain}`, "iad");
|
|
606
|
+
const { writeFileSync } = await import("fs");
|
|
607
|
+
writeFileSync("fly.toml", flyToml);
|
|
608
|
+
spinner.succeed("fly.toml generated");
|
|
609
|
+
console.log("");
|
|
610
|
+
console.log(chalk.green.bold(" Fly.io deployment ready!"));
|
|
611
|
+
console.log("");
|
|
612
|
+
console.log(` 1. ${chalk.cyan("fly launch --copy-config")}`);
|
|
613
|
+
console.log(` 2. ${chalk.cyan(`fly secrets set DATABASE_URL="${database.connectionString}" JWT_SECRET="${jwtSecret}"`)}`);
|
|
614
|
+
console.log(` 3. ${chalk.cyan("fly deploy")}`);
|
|
615
|
+
if (domain.customDomain) {
|
|
616
|
+
console.log(` 4. ${chalk.cyan(`fly certs add ${domain.customDomain}`)}`);
|
|
617
|
+
printCustomDomainInstructions(chalk, domain.customDomain, "fly", `am-${company.subdomain}.fly.dev`);
|
|
618
|
+
}
|
|
619
|
+
return {};
|
|
620
|
+
}
|
|
621
|
+
if (deployTarget === "railway") {
|
|
622
|
+
const { generateRailwayConfig } = await import("./managed-QVTONZ7E.js");
|
|
623
|
+
const railwayConfig = generateRailwayConfig();
|
|
624
|
+
const { writeFileSync } = await import("fs");
|
|
625
|
+
writeFileSync("railway.toml", railwayConfig);
|
|
626
|
+
spinner.succeed("railway.toml generated");
|
|
627
|
+
console.log("");
|
|
628
|
+
console.log(chalk.green.bold(" Railway deployment ready!"));
|
|
629
|
+
console.log("");
|
|
630
|
+
console.log(` 1. ${chalk.cyan("railway init")}`);
|
|
631
|
+
console.log(` 2. ${chalk.cyan("railway link")}`);
|
|
632
|
+
console.log(` 3. ${chalk.cyan("railway up")}`);
|
|
633
|
+
if (domain.customDomain) {
|
|
634
|
+
printCustomDomainInstructions(chalk, domain.customDomain, "railway");
|
|
635
|
+
}
|
|
636
|
+
return {};
|
|
637
|
+
}
|
|
638
|
+
spinner.start("Starting local server...");
|
|
639
|
+
const { createServer } = await import("./server-OGQWCOT6.js");
|
|
640
|
+
const server = createServer({ port: 3e3, db, jwtSecret });
|
|
641
|
+
const handle = await server.start();
|
|
642
|
+
spinner.succeed("Server running");
|
|
643
|
+
console.log("");
|
|
644
|
+
console.log(chalk.green.bold(" AgenticMail Enterprise is running!"));
|
|
645
|
+
console.log("");
|
|
646
|
+
console.log(` ${chalk.bold("Dashboard:")} ${chalk.cyan("http://localhost:3000")}`);
|
|
647
|
+
console.log(` ${chalk.bold("API:")} ${chalk.cyan("http://localhost:3000/api")}`);
|
|
648
|
+
console.log(` ${chalk.bold("Admin:")} ${company.adminEmail}`);
|
|
649
|
+
console.log("");
|
|
650
|
+
console.log(chalk.dim(" Press Ctrl+C to stop"));
|
|
651
|
+
return { url: "http://localhost:3000", close: handle.close };
|
|
652
|
+
}
|
|
653
|
+
function printCloudSuccess(chalk, url, adminEmail, customDomain, subdomain) {
|
|
654
|
+
console.log("");
|
|
655
|
+
console.log(chalk.green.bold(" Your dashboard is live!"));
|
|
656
|
+
console.log("");
|
|
657
|
+
console.log(` ${chalk.bold("URL:")} ${chalk.cyan(url)}`);
|
|
658
|
+
console.log(` ${chalk.bold("Admin:")} ${adminEmail}`);
|
|
659
|
+
console.log(` ${chalk.bold("Password:")} (the one you just set)`);
|
|
660
|
+
if (customDomain) {
|
|
661
|
+
printCustomDomainInstructions(chalk, customDomain, "cloud", `${subdomain}.agenticmail.io`);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
function printCustomDomainInstructions(chalk, domain, target, cnameTarget) {
|
|
665
|
+
console.log("");
|
|
666
|
+
console.log(chalk.bold(" Custom Domain DNS Setup"));
|
|
667
|
+
console.log(chalk.dim(` Route ${chalk.white(domain)} to your deployment.
|
|
668
|
+
`));
|
|
669
|
+
if (target === "cloud" && cnameTarget) {
|
|
670
|
+
console.log(chalk.bold(" Add this DNS record at your domain registrar:"));
|
|
671
|
+
console.log("");
|
|
672
|
+
console.log(` ${chalk.bold("Type:")} ${chalk.cyan("CNAME")}`);
|
|
673
|
+
console.log(` ${chalk.bold("Host:")} ${chalk.cyan(domain)}`);
|
|
674
|
+
console.log(` ${chalk.bold("Value:")} ${chalk.cyan(cnameTarget)}`);
|
|
675
|
+
} else if (target === "fly" && cnameTarget) {
|
|
676
|
+
console.log(chalk.bold(" Add this DNS record at your domain registrar:"));
|
|
677
|
+
console.log("");
|
|
678
|
+
console.log(` ${chalk.bold("Type:")} ${chalk.cyan("CNAME")}`);
|
|
679
|
+
console.log(` ${chalk.bold("Host:")} ${chalk.cyan(domain)}`);
|
|
680
|
+
console.log(` ${chalk.bold("Value:")} ${chalk.cyan(cnameTarget)}`);
|
|
681
|
+
console.log("");
|
|
682
|
+
console.log(chalk.dim(" Fly.io will automatically provision a TLS certificate."));
|
|
683
|
+
} else if (target === "railway") {
|
|
684
|
+
console.log(chalk.bold(" After deploying:"));
|
|
685
|
+
console.log("");
|
|
686
|
+
console.log(` 1. Open your Railway project dashboard`);
|
|
687
|
+
console.log(` 2. Go to ${chalk.bold("Settings")} \u2192 ${chalk.bold("Domains")}`);
|
|
688
|
+
console.log(` 3. Add ${chalk.cyan(domain)} as a custom domain`);
|
|
689
|
+
console.log(` 4. Railway will show you a ${chalk.bold("CNAME")} target \u2014 add it at your DNS provider`);
|
|
690
|
+
} else if (target === "docker") {
|
|
691
|
+
console.log(chalk.bold(" Configure your reverse proxy to route traffic:"));
|
|
692
|
+
console.log("");
|
|
693
|
+
console.log(` ${chalk.bold("Domain:")} ${chalk.cyan(domain)}`);
|
|
694
|
+
console.log(` ${chalk.bold("Target:")} ${chalk.cyan("localhost:3000")} ${chalk.dim("(or your Docker host IP)")}`);
|
|
695
|
+
console.log("");
|
|
696
|
+
console.log(chalk.dim(" Example with nginx:"));
|
|
697
|
+
console.log(chalk.dim(""));
|
|
698
|
+
console.log(chalk.dim(" server {"));
|
|
699
|
+
console.log(chalk.dim(` server_name ${domain};`));
|
|
700
|
+
console.log(chalk.dim(" location / {"));
|
|
701
|
+
console.log(chalk.dim(" proxy_pass http://localhost:3000;"));
|
|
702
|
+
console.log(chalk.dim(" proxy_set_header Host $host;"));
|
|
703
|
+
console.log(chalk.dim(" proxy_set_header X-Real-IP $remote_addr;"));
|
|
704
|
+
console.log(chalk.dim(" }"));
|
|
705
|
+
console.log(chalk.dim(" }"));
|
|
706
|
+
console.log("");
|
|
707
|
+
console.log(chalk.dim(" Then add a DNS A record pointing to your server IP,"));
|
|
708
|
+
console.log(chalk.dim(" or a CNAME if you have an existing hostname."));
|
|
709
|
+
}
|
|
710
|
+
console.log("");
|
|
711
|
+
console.log(chalk.dim(" Note: This CNAME/A record routes traffic. A separate TXT record"));
|
|
712
|
+
console.log(chalk.dim(" for domain verification was (or will be) configured in Step 5."));
|
|
713
|
+
console.log("");
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
// src/setup/index.ts
|
|
717
|
+
async function runSetupWizard() {
|
|
718
|
+
const { default: inquirer } = await import("inquirer");
|
|
719
|
+
const { default: ora } = await import("ora");
|
|
720
|
+
const { default: chalk } = await import("chalk");
|
|
721
|
+
console.log("");
|
|
722
|
+
console.log(chalk.bold(" AgenticMail Enterprise"));
|
|
723
|
+
console.log(chalk.dim(" AI Agent Identity & Email for Organizations"));
|
|
724
|
+
console.log("");
|
|
725
|
+
console.log(chalk.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
726
|
+
console.log("");
|
|
727
|
+
const company = await promptCompanyInfo(inquirer, chalk);
|
|
728
|
+
const database = await promptDatabase(inquirer, chalk);
|
|
729
|
+
const { target: deployTarget } = await promptDeployment(inquirer, chalk);
|
|
730
|
+
const domain = await promptDomain(inquirer, chalk, deployTarget);
|
|
731
|
+
const registration = await promptRegistration(
|
|
732
|
+
inquirer,
|
|
733
|
+
chalk,
|
|
734
|
+
ora,
|
|
735
|
+
domain.customDomain,
|
|
736
|
+
company.companyName,
|
|
737
|
+
company.adminEmail
|
|
738
|
+
);
|
|
739
|
+
console.log("");
|
|
740
|
+
console.log(chalk.dim(" \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"));
|
|
741
|
+
console.log("");
|
|
742
|
+
const result = await provision(
|
|
743
|
+
{ company, database, deployTarget, domain, registration },
|
|
744
|
+
ora,
|
|
745
|
+
chalk
|
|
746
|
+
);
|
|
747
|
+
if (!result.success) {
|
|
748
|
+
console.error("");
|
|
749
|
+
console.error(chalk.red(` Setup failed: ${result.error}`));
|
|
750
|
+
console.error(chalk.dim(" Check your database connection and try again."));
|
|
751
|
+
process.exit(1);
|
|
752
|
+
}
|
|
753
|
+
console.log("");
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
export {
|
|
757
|
+
promptCompanyInfo,
|
|
758
|
+
promptDatabase,
|
|
759
|
+
promptDeployment,
|
|
760
|
+
promptDomain,
|
|
761
|
+
promptRegistration,
|
|
762
|
+
provision,
|
|
763
|
+
runSetupWizard
|
|
764
|
+
};
|