| index 68b9277..9bf51ed 100644 | ||
| --- a/plugin.json | ||
| +++ b/plugin.json | ||
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | "menus": false, |
| 12 | 12 | "verified": "live", |
| 13 | 13 | "category": "network", |
| 14 | - "version": "1.0.0", | |
| 14 | + "version": "1.0.1", | |
| 15 | 15 | "license": "MIT", |
| 16 | 16 | "capabilities": [ |
| 17 | 17 | "outbound_https_search_api", |
| @@ -24,5 +24,8 @@ | ||
| 24 | 24 | "homepage": "https://plugingit.scorpiox.net/repo?name=scorpiox-bot-plugin-websearch", |
| 25 | 25 | "cflags": [], |
| 26 | 26 | "ldflags_posix": [], |
| 27 | - "ldflags_win64": [] | |
| 27 | + "ldflags_win64": [ | |
| 28 | + "-lws2_32", | |
| 29 | + "-ladvapi32" | |
| 30 | + ] | |
| 28 | 31 | } |
| index 0837e9e..01e9a9a 100644 | ||
| --- a/src/ws.h | ||
| +++ b/src/ws.h | ||
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | |
| 33 | 33 | #define WS_SLUG "websearch" |
| 34 | 34 | #define WS_ID "plugin_websearch" |
| 35 | -#define WS_VER "1.0.0" | |
| 35 | +#define WS_VER "1.0.1" | |
| 36 | 36 | #define WS_NAME "websearch" |
| 37 | 37 | #define WS_DESC "Web search MCP" |
| 38 | 38 |
| 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" \ | ||
| 149 | 149 | json_ok "daemon is false" "$META" 'd["daemon"] is False' |
| 150 | 150 | json_ok "category is network" "$META" 'd["category"]=="network"' |
| 151 | 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 | 154 | check "--help mentions the tool names" 'web_search' "$("$BIN" --help)" |
| 154 | 155 | |
| 155 | 156 | # -------------------------------------------------------------- --schema |
| 156 | 157 |
| index 68b9277..9bf51ed 100644 | index 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 | } |
| index 0837e9e..01e9a9a 100644 | index 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 |
| index 2977089..dad6c45 100755 | index 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 | # -------------------------------------------------------------- --schema | 156 | # -------------------------------------------------------------- --schema |
| 156 | 157 |