@sellable/install 0.1.22 → 0.1.23
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 +11 -1
- package/package.json +1 -1
package/bin/sellable-install.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import { createInterface } from "node:readline/promises";
|
|
|
15
15
|
const DEFAULT_API_URL = "https://app.sellable.dev";
|
|
16
16
|
const DEFAULT_SERVER_PACKAGE =
|
|
17
17
|
process.env.SELLABLE_MCP_PACKAGE || "@sellable/mcp";
|
|
18
|
-
const CODEX_PLUGIN_VERSION = "0.1.
|
|
18
|
+
const CODEX_PLUGIN_VERSION = "0.1.23";
|
|
19
19
|
const CODEX_PLUGIN_COMPAT_VERSIONS = [
|
|
20
20
|
"0.1.8",
|
|
21
21
|
"0.1.9",
|
|
@@ -31,6 +31,7 @@ const CODEX_PLUGIN_COMPAT_VERSIONS = [
|
|
|
31
31
|
"0.1.19",
|
|
32
32
|
"0.1.20",
|
|
33
33
|
"0.1.21",
|
|
34
|
+
"0.1.22",
|
|
34
35
|
];
|
|
35
36
|
const INSTALL_PACKAGE_SPEC = `@sellable/install@${CODEX_PLUGIN_VERSION}`;
|
|
36
37
|
|
|
@@ -1180,6 +1181,14 @@ function writeAuth(opts) {
|
|
|
1180
1181
|
writeJson(sellablePath, config, opts);
|
|
1181
1182
|
}
|
|
1182
1183
|
|
|
1184
|
+
function installSelfShim(opts) {
|
|
1185
|
+
const binPath = join(homedir(), ".local", "bin", "sellable");
|
|
1186
|
+
const shim = `#!/usr/bin/env sh
|
|
1187
|
+
exec npx -y ${INSTALL_PACKAGE_SPEC} "$@"
|
|
1188
|
+
`;
|
|
1189
|
+
writeFile(binPath, shim, opts, 0o755);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1183
1192
|
function mcpCommand(opts) {
|
|
1184
1193
|
if (opts.server === "package") {
|
|
1185
1194
|
return ["npx", ["-y", opts.mcpPackage]];
|
|
@@ -1353,6 +1362,7 @@ async function main() {
|
|
|
1353
1362
|
if (!opts.verifyOnly) {
|
|
1354
1363
|
await promptForMissingAuth(opts);
|
|
1355
1364
|
writeAuth(opts);
|
|
1365
|
+
installSelfShim(opts);
|
|
1356
1366
|
if (opts.host === "claude" || opts.host === "all") {
|
|
1357
1367
|
if (installClaude(opts)) installedHosts.push("Claude Code");
|
|
1358
1368
|
}
|