chore(release): 1.0.2 - plugin.json declares the version
A source-mode install reads plugin.json and reported 0.0.0 while the prebuilt manifest said 1.0.1, so the same plugin looked like two different builds depending on how it was installed. plugin.json now carries "version", the suite pins it against --version, and both paths report 1.0.2.
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-14 02:48:45
Commita5fa38ca
Parents58dba7a1
Changed files
README.md+1−1■■
plugin.json+1−0■
src/plugintime.h+1−1■■
tests/run.sh+4−3■■■■■
4 files+7−5
Diff
README.md+1−1■■
index bc267cf..9bf2406 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`.
6969
7070 | Mode | Trigger | Response |
7171 |---|---|---|
72-| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.0"}` (unauthenticated) |
72+| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.2"}` (unauthenticated) |
7373 | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` |
7474 | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` |
7575 | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` |
plugin.json+1−0■
index 4643bd2..7035f91 100644
--- a/plugin.json
+++ b/plugin.json
@@ -1,6 +1,7 @@
11 {
22 "slug": "time",
33 "id": "plugin_time",
4+ "version": "1.0.2",
45 "name": "time",
56 "desc": "World time MCP",
67 "title": "World Time & Timezone Converter (MCP)",
src/plugintime.h+1−1■■
index 0aba4dd..c06878d 100644
--- a/src/plugintime.h
+++ b/src/plugintime.h
@@ -25,7 +25,7 @@
2525
2626 #define PLUGIN_SLUG "time"
2727 #define PLUGIN_ID "plugin_time"
28-#define PLUGIN_VER "1.0.0"
28+#define PLUGIN_VER "1.0.2"
2929 #define PLUGIN_NAME "time"
3030 #define PLUGIN_DESC "World time MCP"
3131
tests/run.sh+4−3■■■■■
index 5728eeb..75818f2 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False"
139139 json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False"
140140 json_ok "--meta verified is live" "$M" "d['verified']=='live'"
141141 json_ok "--meta category is utilities" "$M" "d['category']=='utilities'"
142-json_ok "--meta version is 1.0.0" "$M" "d['version']=='1.0.0'"
142+json_ok "--meta version is 1.0.2" "$M" "d['version']=='1.0.2'"
143143 json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2"
144144 json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15"
145145 M2=$(body "$(SX_PLUGIN_META=1 $BIN)")
@@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2"
147147 check_not "--meta emits no HTML" '<html' "$M"
148148 V=$(body "$($BIN --version)")
149149 check "--version names the binary" 'plugin_time' "$V"
150-check "--version names the version" '1.0.0' "$V"
150+check "--version names the version" '1.0.2' "$V"
151+check "--version matches plugin.json" "\"version\": \"$($BIN --version | awk '{print $2}')\"" "$(cat plugin.json)"
151152 H=$(body "$($BIN --help)")
152153 check "--help lists --mcp" '--mcp' "$H"
153154 check "--help lists convert_time" 'convert_time' "$H"
@@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake"
181182 INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1)
182183 check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT"
183184 check "initialize names the server" '"name":"time-server"' "$INIT"
184-check "initialize carries the version" '"version":"1.0.0"' "$INIT"
185+check "initialize carries the version" '"version":"1.0.2"' "$INIT"
185186 check "initialize advertises tools" '"tools"' "$INIT"
186187 check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT"
187188 NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}')
188189
README.md+1−1■■
index bc267cf..9bf2406 100644index bc267cf..9bf2406 100644
--- a/README.md--- a/README.md
+++ b/README.md+++ b/README.md
@@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`.@@ -69,7 +69,7 @@ BotCloud container: `/workspace/.scorpiox/plugins/plugin_time`.
69 69
70 | Mode | Trigger | Response |70 | Mode | Trigger | Response |
71 |---|---|---|71 |---|---|---|
72-| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.0"}` (unauthenticated) |72+| Discovery | `--meta` or `SX_PLUGIN_META=1` | `{"name":"time","desc":"World time MCP","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live","category":"utilities","version":"1.0.2"}` (unauthenticated) |
73 | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` |73 | **MCP tool provider** | `--mcp` | newline-delimited **JSON-RPC 2.0 over stdio** — `initialize`, `tools/list`, `tools/call`, `ping` |
74 | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` |74 | API | `?action=...`, `?format=json`, or any `POST` | `application/json; charset=utf-8` |
75 | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` |75 | UI | plain `GET` (`?embed=1` aware) | the World Clock page, `text/html` |
plugin.json+1−0■
index 4643bd2..7035f91 100644index 4643bd2..7035f91 100644
--- a/plugin.json--- a/plugin.json
+++ b/plugin.json+++ b/plugin.json
@@ -1,6 +1,7 @@@@ -1,6 +1,7 @@
1 {1 {
2 "slug": "time",2 "slug": "time",
3 "id": "plugin_time",3 "id": "plugin_time",
4+ "version": "1.0.2",
4 "name": "time",5 "name": "time",
5 "desc": "World time MCP",6 "desc": "World time MCP",
6 "title": "World Time & Timezone Converter (MCP)",7 "title": "World Time & Timezone Converter (MCP)",
src/plugintime.h+1−1■■
index 0aba4dd..c06878d 100644index 0aba4dd..c06878d 100644
--- a/src/plugintime.h--- a/src/plugintime.h
+++ b/src/plugintime.h+++ b/src/plugintime.h
@@ -25,7 +25,7 @@@@ -25,7 +25,7 @@
25 25
26 #define PLUGIN_SLUG "time"26 #define PLUGIN_SLUG "time"
27 #define PLUGIN_ID "plugin_time"27 #define PLUGIN_ID "plugin_time"
28-#define PLUGIN_VER "1.0.0"28+#define PLUGIN_VER "1.0.2"
29 #define PLUGIN_NAME "time"29 #define PLUGIN_NAME "time"
30 #define PLUGIN_DESC "World time MCP"30 #define PLUGIN_DESC "World time MCP"
31 31
tests/run.sh+4−3■■■■■
index 5728eeb..75818f2 100755index 5728eeb..75818f2 100755
--- a/tests/run.sh--- a/tests/run.sh
+++ b/tests/run.sh+++ b/tests/run.sh
@@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False"@@ -139,7 +139,7 @@ json_ok "--meta daemon is false" "$M" "d['daemon'] is False"
139 json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False"139 json_ok "--meta menus is false (connectors must not flood the dropdowns)" "$M" "d['menus'] is False"
140 json_ok "--meta verified is live" "$M" "d['verified']=='live'"140 json_ok "--meta verified is live" "$M" "d['verified']=='live'"
141 json_ok "--meta category is utilities" "$M" "d['category']=='utilities'"141 json_ok "--meta category is utilities" "$M" "d['category']=='utilities'"
142-json_ok "--meta version is 1.0.0" "$M" "d['version']=='1.0.0'"142+json_ok "--meta version is 1.0.2" "$M" "d['version']=='1.0.2'"
143 json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2"143 json_ok "--meta name is 1-2 words" "$M" "len(d['name'].split())<=2"
144 json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15"144 json_ok "--meta desc is at most 15 chars" "$M" "len(d['desc'])<=15"
145 M2=$(body "$(SX_PLUGIN_META=1 $BIN)")145 M2=$(body "$(SX_PLUGIN_META=1 $BIN)")
@@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2"@@ -147,7 +147,8 @@ check "SX_PLUGIN_META env var works" '"name":"time"' "$M2"
147 check_not "--meta emits no HTML" '<html' "$M"147 check_not "--meta emits no HTML" '<html' "$M"
148 V=$(body "$($BIN --version)")148 V=$(body "$($BIN --version)")
149 check "--version names the binary" 'plugin_time' "$V"149 check "--version names the binary" 'plugin_time' "$V"
150-check "--version names the version" '1.0.0' "$V"150+check "--version names the version" '1.0.2' "$V"
151+check "--version matches plugin.json" "\"version\": \"$($BIN --version | awk '{print $2}')\"" "$(cat plugin.json)"
151 H=$(body "$($BIN --help)")152 H=$(body "$($BIN --help)")
152 check "--help lists --mcp" '--mcp' "$H"153 check "--help lists --mcp" '--mcp' "$H"
153 check "--help lists convert_time" 'convert_time' "$H"154 check "--help lists convert_time" 'convert_time' "$H"
@@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake"@@ -181,7 +182,7 @@ section "mode 2b - MCP JSON-RPC handshake"
181 INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1)182 INIT=$(mcp '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' | head -1)
182 check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT"183 check "initialize answers with a protocolVersion" '"protocolVersion":"2025-06-18"' "$INIT"
183 check "initialize names the server" '"name":"time-server"' "$INIT"184 check "initialize names the server" '"name":"time-server"' "$INIT"
184-check "initialize carries the version" '"version":"1.0.0"' "$INIT"185+check "initialize carries the version" '"version":"1.0.2"' "$INIT"
185 check "initialize advertises tools" '"tools"' "$INIT"186 check "initialize advertises tools" '"tools"' "$INIT"
186 check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT"187 check "initialize names the node's local zone in instructions" 'Etc/UTC' "$INIT"
187 NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}')188 NR=$(mcp '{"jsonrpc":"2.0","method":"notifications/initialized"}')
188189