signetai 0.200.4 → 0.200.6
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/dist/mcp-stdio.js +91 -3
- package/native-manifest.json +13 -13
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -42066,8 +42066,89 @@ var ONTOLOGY_PROPOSAL_OPERATIONS = [
|
|
|
42066
42066
|
"create_interface",
|
|
42067
42067
|
"attach_interface"
|
|
42068
42068
|
];
|
|
42069
|
-
var
|
|
42069
|
+
var LOOPBACK_HOST = "127.0.0.1";
|
|
42070
|
+
function normalizeLoopbackHost(host) {
|
|
42071
|
+
const normalized = host.trim().toLowerCase().replace(/^\[|\]$/g, "");
|
|
42072
|
+
return normalized === "localhost" || normalized === "::1" || normalized === "0:0:0:0:0:0:0:1" ? LOOPBACK_HOST : host;
|
|
42073
|
+
}
|
|
42074
|
+
var LOCAL_BINDS = new Set([LOOPBACK_HOST, "localhost", "::1", "::ffff:127.0.0.1"]);
|
|
42070
42075
|
var import_yaml2 = __toESM2(require_dist2(), 1);
|
|
42076
|
+
function readEnv(env, name) {
|
|
42077
|
+
const value = env[name];
|
|
42078
|
+
if (typeof value !== "string")
|
|
42079
|
+
return;
|
|
42080
|
+
const trimmed = value.trim();
|
|
42081
|
+
return trimmed.length > 0 ? trimmed : undefined;
|
|
42082
|
+
}
|
|
42083
|
+
function normalizePort(raw, fallback) {
|
|
42084
|
+
if (!raw)
|
|
42085
|
+
return String(fallback);
|
|
42086
|
+
if (!/^\d+$/.test(raw)) {
|
|
42087
|
+
throw new Error(`SIGNET_PORT must be an integer between 1 and 65535: ${raw}`);
|
|
42088
|
+
}
|
|
42089
|
+
const port = Number.parseInt(raw, 10);
|
|
42090
|
+
if (!Number.isFinite(port) || port < 1 || port > 65535) {
|
|
42091
|
+
throw new Error(`SIGNET_PORT must be an integer between 1 and 65535: ${raw}`);
|
|
42092
|
+
}
|
|
42093
|
+
return String(port);
|
|
42094
|
+
}
|
|
42095
|
+
function bracketIpv6Host(host) {
|
|
42096
|
+
if (host.startsWith("[") || !host.includes(":"))
|
|
42097
|
+
return host;
|
|
42098
|
+
return `[${host}]`;
|
|
42099
|
+
}
|
|
42100
|
+
function assertPlainHost(raw) {
|
|
42101
|
+
if (raw.includes("/") || raw.includes("@") || raw.includes("?") || raw.includes("#")) {
|
|
42102
|
+
throw new Error(`SIGNET_HOST must be a hostname or IP address, not a URL: ${raw}`);
|
|
42103
|
+
}
|
|
42104
|
+
const host = raw.startsWith("[") && raw.endsWith("]") ? raw.slice(1, -1) : raw;
|
|
42105
|
+
if (host.includes(":")) {
|
|
42106
|
+
if (/^[0-9A-Fa-f:.]+$/.test(host))
|
|
42107
|
+
return;
|
|
42108
|
+
throw new Error(`SIGNET_HOST must be a hostname or IP address: ${raw}`);
|
|
42109
|
+
}
|
|
42110
|
+
if (!/^[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?$/.test(host)) {
|
|
42111
|
+
throw new Error(`SIGNET_HOST must be a hostname or IP address: ${raw}`);
|
|
42112
|
+
}
|
|
42113
|
+
}
|
|
42114
|
+
function normalizeDaemonUrl(raw, source) {
|
|
42115
|
+
let parsed;
|
|
42116
|
+
try {
|
|
42117
|
+
parsed = new URL(raw);
|
|
42118
|
+
} catch {
|
|
42119
|
+
throw new Error(`${source} must be an http(s) URL: ${raw}`);
|
|
42120
|
+
}
|
|
42121
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
|
|
42122
|
+
throw new Error(`${source} must use http or https: ${raw}`);
|
|
42123
|
+
}
|
|
42124
|
+
if (parsed.username || parsed.password) {
|
|
42125
|
+
throw new Error(`${source} must not include username or password credentials`);
|
|
42126
|
+
}
|
|
42127
|
+
if (parsed.search || parsed.hash) {
|
|
42128
|
+
throw new Error(`${source} must not include query strings or fragments`);
|
|
42129
|
+
}
|
|
42130
|
+
if (parsed.pathname !== "/" && parsed.pathname !== "") {
|
|
42131
|
+
throw new Error(`${source} must point at the daemon origin, not a path: ${raw}`);
|
|
42132
|
+
}
|
|
42133
|
+
if (normalizeLoopbackHost(parsed.hostname) !== parsed.hostname) {
|
|
42134
|
+
parsed.hostname = LOOPBACK_HOST;
|
|
42135
|
+
}
|
|
42136
|
+
return parsed.toString().replace(/\/$/, "");
|
|
42137
|
+
}
|
|
42138
|
+
function resolveSignetDaemonUrl(opts = {}) {
|
|
42139
|
+
const env = opts.env ?? process.env;
|
|
42140
|
+
const fallbackHost = opts.defaultHost ?? LOOPBACK_HOST;
|
|
42141
|
+
const fallbackPort = opts.defaultPort ?? 3850;
|
|
42142
|
+
const explicit = readEnv(env, "SIGNET_DAEMON_URL");
|
|
42143
|
+
if (explicit)
|
|
42144
|
+
return normalizeDaemonUrl(explicit, "SIGNET_DAEMON_URL");
|
|
42145
|
+
if (opts.configUrl)
|
|
42146
|
+
return normalizeDaemonUrl(opts.configUrl, "daemon.url");
|
|
42147
|
+
const host = normalizeLoopbackHost(readEnv(env, "SIGNET_HOST") ?? fallbackHost);
|
|
42148
|
+
assertPlainHost(host);
|
|
42149
|
+
const port = normalizePort(readEnv(env, "SIGNET_PORT"), fallbackPort);
|
|
42150
|
+
return normalizeDaemonUrl(`http://${bracketIpv6Host(host)}:${port}`, "SIGNET_HOST/SIGNET_PORT");
|
|
42151
|
+
}
|
|
42071
42152
|
var native = null;
|
|
42072
42153
|
try {
|
|
42073
42154
|
const esmRequire = createRequire2(import.meta.url);
|
|
@@ -43150,6 +43231,8 @@ var DEFAULT_PIPELINE_V2 = {
|
|
|
43150
43231
|
maxSummaries: 10
|
|
43151
43232
|
}
|
|
43152
43233
|
};
|
|
43234
|
+
var DEFAULT_OLLAMA_BASE_URL = `http://${LOOPBACK_HOST}:11434`;
|
|
43235
|
+
var DEFAULT_LLAMACPP_BASE_URL = `http://${LOOPBACK_HOST}:8080`;
|
|
43153
43236
|
|
|
43154
43237
|
// ../../platform/daemon/src/db-accessor.ts
|
|
43155
43238
|
var isBun = typeof globalThis.Bun !== "undefined";
|
|
@@ -51101,7 +51184,7 @@ function registerGraphiqCompatAliases(server, pluginHostProvider) {
|
|
|
51101
51184
|
}
|
|
51102
51185
|
}
|
|
51103
51186
|
async function createMcpServer(opts) {
|
|
51104
|
-
const baseUrl = opts?.daemonUrl ??
|
|
51187
|
+
const baseUrl = opts?.daemonUrl ?? resolveSignetDaemonUrl({ env: {} });
|
|
51105
51188
|
const version2 = opts?.version ?? "0.1.0";
|
|
51106
51189
|
const enableMarketplaceProxyTools = opts?.enableMarketplaceProxyTools ?? true;
|
|
51107
51190
|
const context = normalizeContext(opts?.context);
|
|
@@ -52568,8 +52651,13 @@ function createDreamingMcpServer(options) {
|
|
|
52568
52651
|
return server;
|
|
52569
52652
|
}
|
|
52570
52653
|
|
|
52654
|
+
// ../../platform/daemon/src/mcp-stdio-url.ts
|
|
52655
|
+
function resolveMcpDaemonUrl(env = process.env) {
|
|
52656
|
+
return resolveSignetDaemonUrl({ env });
|
|
52657
|
+
}
|
|
52658
|
+
|
|
52571
52659
|
// ../../platform/daemon/src/mcp-stdio.ts
|
|
52572
|
-
var DAEMON_URL =
|
|
52660
|
+
var DAEMON_URL = resolveMcpDaemonUrl();
|
|
52573
52661
|
function isLocalDaemonUrl(url2) {
|
|
52574
52662
|
let parsed;
|
|
52575
52663
|
try {
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.200.
|
|
3
|
+
"version": "0.200.6",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "96080a49d8302fb1e98576634770e6d6687fd8b52669cd65b505265468acfd5d",
|
|
9
9
|
"size": 125317408
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "85b8e9a36654a429852f4dfaa24ca432a6fbb347c771b91631b2d3e39f064738",
|
|
15
|
+
"size": 130304576
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "63a04e283cba434daa882fccc2e95f8232ae9c92e10948548d8222eb8f4aac8b",
|
|
21
|
+
"size": 169868318
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "9d50afcfddc2bbab9f0c6d89f36a71843caccaf7eb77f22fec2865e263841c00",
|
|
27
|
+
"size": 172242900
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "6de72514579c157daf6d5b76ad7a6dab5bbda46cf56bebbe4adc5715e372d036",
|
|
33
|
+
"size": 180368896
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.200.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.200.6.tar.gz",
|
|
39
|
+
"sha256": "7abf71c6a66891c4faf26391c65e950177cda7e48388ba7f5d8420616fdb73a9",
|
|
40
|
+
"size": 21944
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.200.
|
|
3
|
+
"version": "0.200.6",
|
|
4
4
|
"description": "Signet native CLI installer wrapper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"optionalDependencies": {
|
|
68
|
-
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.6/signetai-darwin-arm64-0.200.6.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.6/signetai-darwin-x64-0.200.6.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.6/signetai-linux-arm64-0.200.6.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.6/signetai-linux-x64-0.200.6.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.6/signetai-win32-x64-0.200.6.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|