signetai 0.200.19 → 0.200.20
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 +15 -6
- package/native-manifest.json +13 -13
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -51007,11 +51007,12 @@ async function fetchMarketplacePolicy(baseUrl, authorizationHeader) {
|
|
|
51007
51007
|
function marketplaceRefreshKey(baseUrl, context, authorizationHeader) {
|
|
51008
51008
|
return JSON.stringify({ baseUrl, context, authorizationHeader });
|
|
51009
51009
|
}
|
|
51010
|
-
async function fetchMarketplaceRefreshSnapshot(state) {
|
|
51010
|
+
async function fetchMarketplaceRefreshSnapshot(state, options) {
|
|
51011
51011
|
const key = marketplaceRefreshKey(state.baseUrl, state.context, state.authorizationHeader);
|
|
51012
51012
|
const now2 = Date.now();
|
|
51013
51013
|
const cached2 = marketplaceRefreshes.get(key);
|
|
51014
|
-
|
|
51014
|
+
const force = options?.force ?? false;
|
|
51015
|
+
if (cached2 && (!cached2.settled || !force && cached2.expiresAt > now2))
|
|
51015
51016
|
return cached2.promise;
|
|
51016
51017
|
const promise3 = (async () => {
|
|
51017
51018
|
const policy = await fetchMarketplacePolicy(state.baseUrl, state.authorizationHeader);
|
|
@@ -51021,7 +51022,15 @@ async function fetchMarketplaceRefreshSnapshot(state) {
|
|
|
51021
51022
|
});
|
|
51022
51023
|
return { policy, routed };
|
|
51023
51024
|
})();
|
|
51024
|
-
|
|
51025
|
+
const entry = { expiresAt: now2 + MARKETPLACE_PROXY_REFRESH_TTL_MS, promise: promise3, settled: false };
|
|
51026
|
+
marketplaceRefreshes.set(key, entry);
|
|
51027
|
+
promise3.then(() => {
|
|
51028
|
+
if (marketplaceRefreshes.get(key)?.promise === promise3)
|
|
51029
|
+
entry.settled = true;
|
|
51030
|
+
}, () => {
|
|
51031
|
+
if (marketplaceRefreshes.get(key)?.promise === promise3)
|
|
51032
|
+
marketplaceRefreshes.delete(key);
|
|
51033
|
+
});
|
|
51025
51034
|
try {
|
|
51026
51035
|
return await promise3;
|
|
51027
51036
|
} catch (error51) {
|
|
@@ -51037,7 +51046,7 @@ async function refreshMarketplaceProxyTools(server, options) {
|
|
|
51037
51046
|
}
|
|
51038
51047
|
const notify = options?.notify ?? true;
|
|
51039
51048
|
const registeredTools = getRegisteredToolsMap(server);
|
|
51040
|
-
const snapshot = await fetchMarketplaceRefreshSnapshot(state);
|
|
51049
|
+
const snapshot = await fetchMarketplaceRefreshSnapshot(state, { force: options?.force });
|
|
51041
51050
|
if (snapshot.policy)
|
|
51042
51051
|
state.policy = snapshot.policy;
|
|
51043
51052
|
const routed = snapshot.routed;
|
|
@@ -51896,7 +51905,7 @@ async function createMcpServer(opts) {
|
|
|
51896
51905
|
})
|
|
51897
51906
|
}, async ({ refresh }) => {
|
|
51898
51907
|
if (refresh && enableMarketplaceProxyTools) {
|
|
51899
|
-
await refreshMarketplaceProxyTools(server, { notify: true });
|
|
51908
|
+
await refreshMarketplaceProxyTools(server, { notify: true, force: true });
|
|
51900
51909
|
}
|
|
51901
51910
|
const path = refresh ? "/api/marketplace/mcp/tools?refresh=1" : "/api/marketplace/mcp/tools";
|
|
51902
51911
|
const result = await fetchDaemon(baseUrl, contextPath(path));
|
|
@@ -51935,7 +51944,7 @@ async function createMcpServer(opts) {
|
|
|
51935
51944
|
}
|
|
51936
51945
|
trimHotToolSet(hotSet);
|
|
51937
51946
|
hotToolTouchedAt.set(proxyState.contextKey, Date.now());
|
|
51938
|
-
await refreshMarketplaceProxyTools(server, { notify: true });
|
|
51947
|
+
await refreshMarketplaceProxyTools(server, { notify: true, force: refresh === true });
|
|
51939
51948
|
}
|
|
51940
51949
|
return textResult({
|
|
51941
51950
|
query: result.data.query,
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.200.
|
|
3
|
+
"version": "0.200.20",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
8
|
+
"sha256": "82955b3212be8bd6095dfa1dcbcb252f128f0317226db9a009a77a46e141a942",
|
|
9
9
|
"size": 125333920
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "478ecbec267db65d8aeedd56c4b919792641339b147f94a0ebd35949d3cd39a7",
|
|
15
|
+
"size": 130320960
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "84b59846befdaddd37d8a62ff5b58fec79b4a6a9c6539ae65a95827bd5df55d3",
|
|
21
|
+
"size": 169881292
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "5e32271609f932c8ac0dc15945cda83368be5c238d904eb5baf63980d344da49",
|
|
27
|
+
"size": 172255874
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "9c45a4766f46b044d2371d29c3eb911d1d34d7f01c53fca316acf1e176871bca",
|
|
33
|
+
"size": 180381184
|
|
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.20.tar.gz",
|
|
39
|
+
"sha256": "e838ca5469e974cd19fa6e43170e9e57c9fe54511cd5e54ffa5eae8f581498fd",
|
|
40
|
+
"size": 21942
|
|
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.20",
|
|
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.20/signetai-darwin-arm64-0.200.20.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.20/signetai-darwin-x64-0.200.20.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.20/signetai-linux-arm64-0.200.20.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.20/signetai-linux-x64-0.200.20.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.20/signetai-win32-x64-0.200.20.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|