@sellable/install 0.1.32 → 0.1.36
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/bin/sellable-install.mjs +34 -52
- package/package.json +1 -1
package/bin/sellable-install.mjs
CHANGED
|
@@ -1394,9 +1394,7 @@ function verify(opts) {
|
|
|
1394
1394
|
function printNextSteps(installedHosts) {
|
|
1395
1395
|
console.log("");
|
|
1396
1396
|
printDivider();
|
|
1397
|
-
console.log(
|
|
1398
|
-
` ${C.bold}You're set. Let's launch your first campaign.${C.reset}`
|
|
1399
|
-
);
|
|
1397
|
+
console.log(` ${C.bold}Done.${C.reset}`);
|
|
1400
1398
|
printDivider();
|
|
1401
1399
|
console.log("");
|
|
1402
1400
|
|
|
@@ -1418,49 +1416,37 @@ function printNextSteps(installedHosts) {
|
|
|
1418
1416
|
return;
|
|
1419
1417
|
}
|
|
1420
1418
|
|
|
1421
|
-
const
|
|
1422
|
-
const
|
|
1423
|
-
? {
|
|
1424
|
-
label: "Claude Code",
|
|
1425
|
-
cmd: "claude",
|
|
1426
|
-
slash: "/sellable:create-campaign",
|
|
1427
|
-
}
|
|
1428
|
-
: { label: "Codex", cmd: "codex", slash: "/sellable:create-campaign" };
|
|
1429
|
-
const secondary =
|
|
1430
|
-
useClaude && installedHosts.includes("Codex")
|
|
1431
|
-
? { label: "Codex", cmd: "codex", slash: "/sellable:create-campaign" }
|
|
1432
|
-
: null;
|
|
1419
|
+
const hasClaude = installedHosts.includes("Claude Code");
|
|
1420
|
+
const hasCodex = installedHosts.includes("Codex");
|
|
1433
1421
|
|
|
1434
|
-
|
|
1435
|
-
` ${C.bold}
|
|
1436
|
-
);
|
|
1437
|
-
console.log("");
|
|
1438
|
-
console.log(` ${C.grey}1.${C.reset} Open ${primary.label}:`);
|
|
1439
|
-
console.log("");
|
|
1440
|
-
console.log(` ${C.cyan}${primary.cmd}${C.reset}`);
|
|
1441
|
-
console.log("");
|
|
1442
|
-
console.log(` ${C.grey}2.${C.reset} Type this and hit enter:`);
|
|
1443
|
-
console.log("");
|
|
1444
|
-
console.log(` ${C.cyan}${primary.slash}${C.reset}`);
|
|
1445
|
-
console.log("");
|
|
1446
|
-
console.log(
|
|
1447
|
-
` ${C.grey}First time? Sellable signs you up automatically — just answer in chat.${C.reset}`
|
|
1448
|
-
);
|
|
1449
|
-
|
|
1450
|
-
if (secondary) {
|
|
1422
|
+
if (hasClaude && hasCodex) {
|
|
1423
|
+
console.log(` ${C.bold}Open Claude Code or Codex and run:${C.reset}`);
|
|
1451
1424
|
console.log("");
|
|
1452
1425
|
console.log(
|
|
1453
|
-
`
|
|
1426
|
+
` ${C.cyan}/sellable:create-campaign${C.reset} ${C.grey}(Claude Code)${C.reset}`
|
|
1427
|
+
);
|
|
1428
|
+
console.log(
|
|
1429
|
+
` ${C.cyan}$sellable:create-campaign${C.reset} ${C.grey}(Codex)${C.reset}`
|
|
1454
1430
|
);
|
|
1431
|
+
} else if (hasClaude) {
|
|
1432
|
+
console.log(` ${C.bold}Open Claude Code and run:${C.reset}`);
|
|
1433
|
+
console.log("");
|
|
1434
|
+
console.log(` ${C.cyan}/sellable:create-campaign${C.reset}`);
|
|
1435
|
+
} else {
|
|
1436
|
+
console.log(` ${C.bold}Open Codex and run:${C.reset}`);
|
|
1437
|
+
console.log("");
|
|
1438
|
+
console.log(` ${C.cyan}$sellable:create-campaign${C.reset}`);
|
|
1455
1439
|
}
|
|
1456
1440
|
|
|
1457
|
-
console.log("");
|
|
1458
|
-
printDivider();
|
|
1459
1441
|
console.log("");
|
|
1460
1442
|
console.log(
|
|
1461
|
-
`
|
|
1443
|
+
` ${C.grey}First time? The agent will sign you up — just answer in chat.${C.reset}`
|
|
1462
1444
|
);
|
|
1463
|
-
|
|
1445
|
+
|
|
1446
|
+
console.log("");
|
|
1447
|
+
printDivider();
|
|
1448
|
+
console.log("");
|
|
1449
|
+
console.log(` ${C.grey}Need help?${C.reset}`);
|
|
1464
1450
|
console.log(
|
|
1465
1451
|
` Slack: ${C.cyan}https://join.slack.com/t/ditttoai/shared_invite/zt-3wvs86yau-csKZGP3iGXO3oEiAUmtH9A${C.reset}`
|
|
1466
1452
|
);
|
|
@@ -1507,7 +1493,7 @@ async function main() {
|
|
|
1507
1493
|
const authResult = writeAuth(opts);
|
|
1508
1494
|
installSelfShim(opts);
|
|
1509
1495
|
if (authResult.reused) {
|
|
1510
|
-
logMilestone(
|
|
1496
|
+
logMilestone("Auth ready");
|
|
1511
1497
|
} else if (authResult.written) {
|
|
1512
1498
|
logMilestone(`Authenticated (workspace: ${opts.workspaceId})`);
|
|
1513
1499
|
} else {
|
|
@@ -1519,26 +1505,22 @@ async function main() {
|
|
|
1519
1505
|
if (opts.host === "claude" || opts.host === "all") {
|
|
1520
1506
|
if (installClaude(opts)) {
|
|
1521
1507
|
installedHosts.push("Claude Code");
|
|
1522
|
-
logMilestone("Claude Code MCP server registered");
|
|
1523
1508
|
}
|
|
1524
1509
|
}
|
|
1525
1510
|
if (opts.host === "codex" || opts.host === "all") {
|
|
1526
1511
|
const result = installCodex(opts);
|
|
1527
1512
|
if (result.installed) {
|
|
1528
1513
|
installedHosts.push("Codex");
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
);
|
|
1540
|
-
}
|
|
1541
|
-
logMilestone("Codex Default-mode request_user_input enabled");
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
if (installedHosts.length > 0) {
|
|
1518
|
+
logMilestone(
|
|
1519
|
+
`MCP servers registered (${installedHosts.join(" + ")})`
|
|
1520
|
+
);
|
|
1521
|
+
if (installedHosts.includes("Codex")) {
|
|
1522
|
+
logMilestone("Codex Desktop plugin installed");
|
|
1523
|
+
logMilestone("Skills installed");
|
|
1542
1524
|
}
|
|
1543
1525
|
}
|
|
1544
1526
|
}
|