@sellable/mcp 0.1.119 → 0.1.120
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.
|
@@ -2,10 +2,13 @@ import { getApi } from "../api.js";
|
|
|
2
2
|
const knownBlueprintColumnTypes = new Set([
|
|
3
3
|
"ai_column",
|
|
4
4
|
"checkbox",
|
|
5
|
+
"check_connection",
|
|
6
|
+
"datetime",
|
|
5
7
|
"formula",
|
|
6
8
|
"generate_message",
|
|
7
9
|
"http_request",
|
|
8
10
|
"inbound_webhook",
|
|
11
|
+
"react_and_comment",
|
|
9
12
|
"score_icp_mcp",
|
|
10
13
|
"send_dm",
|
|
11
14
|
"send_inmail_closed",
|
package/dist/update-check.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as fs from "fs";
|
|
2
2
|
import * as os from "os";
|
|
3
3
|
import * as path from "path";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
4
5
|
const MCP_PACKAGE = "@sellable/mcp";
|
|
5
6
|
const INSTALL_PACKAGE = "@sellable/install";
|
|
6
7
|
const DEFAULT_TTL_MS = 24 * 60 * 60 * 1000;
|
|
@@ -8,11 +9,22 @@ const DEFAULT_TIMEOUT_MS = 1500;
|
|
|
8
9
|
function cachePath() {
|
|
9
10
|
return path.join(os.homedir(), ".sellable", "update-check.json");
|
|
10
11
|
}
|
|
12
|
+
function readEntrypointDir() {
|
|
13
|
+
if (!process.argv[1])
|
|
14
|
+
return process.cwd();
|
|
15
|
+
const entrypointPath = path.resolve(process.argv[1]);
|
|
16
|
+
try {
|
|
17
|
+
return path.dirname(fs.realpathSync.native(entrypointPath));
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
return path.dirname(entrypointPath);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
11
23
|
function readCurrentVersion() {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
: process.cwd();
|
|
24
|
+
const moduleDir = path.dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const entrypointDir = readEntrypointDir();
|
|
15
26
|
const candidates = [
|
|
27
|
+
path.resolve(moduleDir, "..", "package.json"),
|
|
16
28
|
path.resolve(entrypointDir, "..", "package.json"),
|
|
17
29
|
path.resolve(process.cwd(), "mcp/sellable/package.json"),
|
|
18
30
|
];
|