@sellable/install 0.1.92 → 0.1.93
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/README.md +10 -0
- package/bin/sellable-install.mjs +38 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,6 +6,16 @@ Installs Sellable MCP for Claude Code and Codex.
|
|
|
6
6
|
npx -y @sellable/install@latest --host all
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
After install, `sellable create` is a terminal helper that prints the correct
|
|
10
|
+
agent command for launching a campaign:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
sellable create
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Campaign creation itself runs inside Claude Code or Codex, where the Sellable
|
|
17
|
+
MCP tools and approval flow are available.
|
|
18
|
+
|
|
9
19
|
If you do not pass a token, the installer prompts you for one and shows where to get it.
|
|
10
20
|
|
|
11
21
|
The installer uses package stdio MCP by default:
|
package/bin/sellable-install.mjs
CHANGED
|
@@ -129,9 +129,15 @@ function usage() {
|
|
|
129
129
|
return `Sellable agent installer
|
|
130
130
|
|
|
131
131
|
Usage:
|
|
132
|
+
sellable create
|
|
132
133
|
sellable-install [options]
|
|
133
134
|
npx -y @sellable/install@latest -- [options]
|
|
134
135
|
|
|
136
|
+
Commands:
|
|
137
|
+
create Show how to launch the create-campaign workflow.
|
|
138
|
+
auth set <token> Save a Sellable API token for first-run auth.
|
|
139
|
+
uninstall Remove Sellable host config and installed artifacts.
|
|
140
|
+
|
|
135
141
|
Options:
|
|
136
142
|
--host <host> claude, codex, or all. Default: all
|
|
137
143
|
--server <mode> package, local, or hosted. Default: package
|
|
@@ -158,6 +164,34 @@ Auth:
|
|
|
158
164
|
`;
|
|
159
165
|
}
|
|
160
166
|
|
|
167
|
+
function printCreateCommandHint() {
|
|
168
|
+
printBanner();
|
|
169
|
+
console.log(
|
|
170
|
+
` ${C.bold}Create campaigns from Claude Code or Codex.${C.reset}`
|
|
171
|
+
);
|
|
172
|
+
console.log("");
|
|
173
|
+
console.log(
|
|
174
|
+
` ${C.grey}The terminal command installs and verifies Sellable. Campaign creation runs inside your agent session so the workflow can use MCP tools, live state, and approval gates.${C.reset}`
|
|
175
|
+
);
|
|
176
|
+
console.log("");
|
|
177
|
+
console.log(` ${"═".repeat(63)}`);
|
|
178
|
+
console.log(` ${C.bold}Start a Sellable campaign:${C.reset}`);
|
|
179
|
+
console.log(` ${"═".repeat(63)}`);
|
|
180
|
+
console.log("");
|
|
181
|
+
console.log("");
|
|
182
|
+
printAgentBox("Using Claude Code?", "claude", "/sellable:create-campaign");
|
|
183
|
+
console.log("");
|
|
184
|
+
console.log("");
|
|
185
|
+
printAgentBox("Using Codex?", "codex", "$sellable:create-campaign");
|
|
186
|
+
console.log("");
|
|
187
|
+
console.log(` ${"─".repeat(63)}`);
|
|
188
|
+
console.log(` ${C.grey}If those commands are missing, run:${C.reset}`);
|
|
189
|
+
console.log("");
|
|
190
|
+
console.log(` ${C.cyan}sellable --host all${C.reset}`);
|
|
191
|
+
console.log(` ${C.cyan}sellable --verify-only --host all${C.reset}`);
|
|
192
|
+
console.log("");
|
|
193
|
+
}
|
|
194
|
+
|
|
161
195
|
function parseArgs(argv) {
|
|
162
196
|
const opts = {
|
|
163
197
|
host: process.env.SELLABLE_INSTALL_HOST || "all",
|
|
@@ -2245,6 +2279,10 @@ async function main() {
|
|
|
2245
2279
|
runUninstall();
|
|
2246
2280
|
process.exit(0);
|
|
2247
2281
|
}
|
|
2282
|
+
if (rawArgs[0] === "create") {
|
|
2283
|
+
printCreateCommandHint();
|
|
2284
|
+
process.exit(0);
|
|
2285
|
+
}
|
|
2248
2286
|
const opts = parseArgs(process.argv.slice(2));
|
|
2249
2287
|
if (opts.help) {
|
|
2250
2288
|
console.log(usage());
|