build: declare the Win32 link libraries the vendored TLS stack needs
The Win64 leg failed with undefined references to __imp_select / __imp_send / __imp_WSAGetLastError: plugin.json declared an empty ldflags_win64, so the release CLI linked the PE with no import libraries while the Makefile's own win64 target supplies -lws2_32. BearSSL's system RNG also needs CryptAcquireContext, i.e. -ladvapi32. Fixed and re-cut as 1.0.1 - the 1.0.0 publish shipped 5 of 6 targets.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-14 05:33:52
Commit4ca99c2c
Parents33907819
Changed files
plugin.json+5−2■■■■■
src/ws.h+1−1■■
tests/run.sh+2−1■■■
3 files+8−4
Diff
plugin.json+5−2■■■■■
index 68b9277..9bf51ed 100644
--- a/plugin.json
+++ b/plugin.json
@@ -11,7 +11,7 @@
1111 "menus": false,
1212 "verified": "live",
1313 "category": "network",
14- "version": "1.0.0",
14+ "version": "1.0.1",
1515 "license": "MIT",
1616 "capabilities": [
1717 "outbound_https_search_api",
@@ -24,5 +24,8 @@
2424 "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-websearch",
2525 "cflags": [],
2626 "ldflags_posix": [],
27- "ldflags_win64": []
27+ "ldflags_win64": [
28+ "-lws2_32",
29+ "-ladvapi32"
30+ ]
2831 }
src/ws.h+1−1■■
index 0837e9e..01e9a9a 100644
--- a/src/ws.h
+++ b/src/ws.h
@@ -32,7 +32,7 @@
3232
3333 #define WS_SLUG "websearch"
3434 #define WS_ID "plugin_websearch"
35-#define WS_VER "1.0.0"
35+#define WS_VER "1.0.1"
3636 #define WS_NAME "websearch"
3737 #define WS_DESC "Web search MCP"
3838
tests/run.sh+2−1■■■
index 2977089..dad6c45 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -149,7 +149,8 @@ json_ok "kind is mcp, mcp true, menus false" \
149149 json_ok "daemon is false" "$META" 'd["daemon"] is False'
150150 json_ok "category is network" "$META" 'd["category"]=="network"'
151151 check "SX_PLUGIN_META=1 agrees" '"name":"websearch"' "$(SX_PLUGIN_META=1 "$BIN")"
152-check "--version prints the semver" '1.0.0' "$("$BIN" --version)"
152+VER=$(python3 -c 'import json;print(json.load(open("plugin.json"))["version"])')
153+check "--version agrees with plugin.json" "$VER" "$("$BIN" --version)"
153154 check "--help mentions the tool names" 'web_search' "$("$BIN" --help)"
154155
155156 # -------------------------------------------------------------- --schema
156157
plugin.json+5−2■■■■■
index 68b9277..9bf51ed 100644index 68b9277..9bf51ed 100644
--- a/plugin.json--- a/plugin.json
+++ b/plugin.json+++ b/plugin.json
@@ -11,7 +11,7 @@@@ -11,7 +11,7 @@
11 "menus": false,11 "menus": false,
12 "verified": "live",12 "verified": "live",
13 "category": "network",13 "category": "network",
14- "version": "1.0.0",14+ "version": "1.0.1",
15 "license": "MIT",15 "license": "MIT",
16 "capabilities": [16 "capabilities": [
17 "outbound_https_search_api",17 "outbound_https_search_api",
@@ -24,5 +24,8 @@@@ -24,5 +24,8 @@
24 "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-websearch",24 "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-websearch",
25 "cflags": [],25 "cflags": [],
26 "ldflags_posix": [],26 "ldflags_posix": [],
27- "ldflags_win64": []27+ "ldflags_win64": [
28+ "-lws2_32",
29+ "-ladvapi32"
30+ ]
28 }31 }
src/ws.h+1−1■■
index 0837e9e..01e9a9a 100644index 0837e9e..01e9a9a 100644
--- a/src/ws.h--- a/src/ws.h
+++ b/src/ws.h+++ b/src/ws.h
@@ -32,7 +32,7 @@@@ -32,7 +32,7 @@
32 32
33 #define WS_SLUG "websearch"33 #define WS_SLUG "websearch"
34 #define WS_ID "plugin_websearch"34 #define WS_ID "plugin_websearch"
35-#define WS_VER "1.0.0"35+#define WS_VER "1.0.1"
36 #define WS_NAME "websearch"36 #define WS_NAME "websearch"
37 #define WS_DESC "Web search MCP"37 #define WS_DESC "Web search MCP"
38 38
tests/run.sh+2−1■■■
index 2977089..dad6c45 100755index 2977089..dad6c45 100755
--- a/tests/run.sh--- a/tests/run.sh
+++ b/tests/run.sh+++ b/tests/run.sh
@@ -149,7 +149,8 @@ json_ok "kind is mcp, mcp true, menus false" \@@ -149,7 +149,8 @@ json_ok "kind is mcp, mcp true, menus false" \
149 json_ok "daemon is false" "$META" 'd["daemon"] is False'149 json_ok "daemon is false" "$META" 'd["daemon"] is False'
150 json_ok "category is network" "$META" 'd["category"]=="network"'150 json_ok "category is network" "$META" 'd["category"]=="network"'
151 check "SX_PLUGIN_META=1 agrees" '"name":"websearch"' "$(SX_PLUGIN_META=1 "$BIN")"151 check "SX_PLUGIN_META=1 agrees" '"name":"websearch"' "$(SX_PLUGIN_META=1 "$BIN")"
152-check "--version prints the semver" '1.0.0' "$("$BIN" --version)"152+VER=$(python3 -c 'import json;print(json.load(open("plugin.json"))["version"])')
153+check "--version agrees with plugin.json" "$VER" "$("$BIN" --version)"
153 check "--help mentions the tool names" 'web_search' "$("$BIN" --help)"154 check "--help mentions the tool names" 'web_search' "$("$BIN" --help)"
154 155
155 # -------------------------------------------------------------- --schema156 # -------------------------------------------------------------- --schema
156157