@sellable/install 0.1.324 → 0.1.326
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 -0
- package/package.json +1 -1
package/bin/sellable-install.mjs
CHANGED
|
@@ -3544,8 +3544,19 @@ const WATCH_MODE_DRIVER_ENV = {
|
|
|
3544
3544
|
};
|
|
3545
3545
|
|
|
3546
3546
|
function mcpEnvForHost(host, opts) {
|
|
3547
|
+
const mcpVersionMatch = /^@sellable\/mcp@(.+)$/.exec(opts.mcpPackage || "");
|
|
3548
|
+
const mcpVersion = mcpVersionMatch?.[1] || String(opts.mcpPackage || "unknown");
|
|
3549
|
+
const pluginVersion = host === "codex" ? CODEX_PLUGIN_VERSION : "not-applicable";
|
|
3550
|
+
const cacheIdentity =
|
|
3551
|
+
host === "codex"
|
|
3552
|
+
? `codex-plugin:${CODEX_PLUGIN_VERSION}|mcp:${mcpVersion}`
|
|
3553
|
+
: `${host}-host|mcp:${mcpVersion}`;
|
|
3547
3554
|
const env = {
|
|
3548
3555
|
SELLABLE_WATCH_MODE_DRIVER: host,
|
|
3556
|
+
SELLABLE_INSTALL_PACKAGE_VERSION: getInstallVersion(),
|
|
3557
|
+
SELLABLE_MCP_PACKAGE_VERSION: mcpVersion,
|
|
3558
|
+
SELLABLE_CODEX_PLUGIN_VERSION: pluginVersion,
|
|
3559
|
+
SELLABLE_PLUGIN_CACHE_IDENTITY: cacheIdentity,
|
|
3549
3560
|
};
|
|
3550
3561
|
if (opts.server === "hosted") return env;
|
|
3551
3562
|
if (opts.sellableConfigPath) {
|