@x-otto/plugin-weather 0.1.0-alpha.4 → 0.1.0-alpha.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/README.md +1 -1
- package/package.json +5 -3
- package/plugin-dist/meta.json +1 -1
- package/plugin-dist/plugin.cjs +42 -13781
- package/renderers/weather.ts +155 -0
- package/renderers-dist/package.json +1 -0
- package/renderers-dist/weather.js +96 -0
- package/src/schema.ts +44 -12
- package/plugin-dist/plugin.js +0 -13935
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Provides a single `get_weather` tool that fetches current weather and a 3-day fo
|
|
|
8
8
|
|
|
9
9
|
This plugin contributes two things:
|
|
10
10
|
|
|
11
|
-
1. **Tool** (`get_weather`) — Geocodes a city name, fetches the
|
|
11
|
+
1. **Tool** (`get_weather`) — Geocodes a city name, fetches the 3-day forecast from Open-Meteo, and returns structured data with current conditions + 3-day summary.
|
|
12
12
|
2. **Renderer** — A terminal card renderer (`matcher.toolName: "get_weather"`) that formats the tool result as a pretty TUI card with temperature, description, and forecast details.
|
|
13
13
|
|
|
14
14
|
The tool returns both a plain-text summary (for the conversation stream) and structured `details` (for the renderer to consume without string parsing).
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-otto/plugin-weather",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Weather forecast plugin — get_weather tool (Open-Meteo, no API key) + terminal card renderer",
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@x-otto/interchange": "0.1.0-alpha.
|
|
7
|
+
"@x-otto/interchange": "0.1.0-alpha.8"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"plugin.ts",
|
|
14
14
|
"src",
|
|
15
|
+
"renderers",
|
|
16
|
+
"renderers-dist",
|
|
15
17
|
"plugin-dist"
|
|
16
18
|
],
|
|
17
19
|
"publishConfig": {
|
|
@@ -20,7 +22,7 @@
|
|
|
20
22
|
"tag": "alpha"
|
|
21
23
|
},
|
|
22
24
|
"dependencies": {
|
|
23
|
-
"@x-otto/plugin": "0.1.0-alpha.
|
|
25
|
+
"@x-otto/plugin": "0.1.0-alpha.8"
|
|
24
26
|
},
|
|
25
27
|
"scripts": {
|
|
26
28
|
"typecheck": "tsc --noEmit",
|
package/plugin-dist/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.
|
|
1
|
+
{"apiVersion":1,"compilerVersion":"0.1.0-alpha.8","sourceHash":"77c57e232f4a06a5f27a09c936273f194f49cbbd4655c0e53eeca6a79c6c2748"}
|