feat(source-weatherkit): add insight slot (#54)

Add LLM-fillable insight slot to weather-current feed items.
Prompt lives in a separate .txt file for easy iteration.

Also adds interactive CLI script (scripts/query.ts) for
querying WeatherKit with credential caching and JSON output.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-03 00:00:11 +00:00
committed by GitHub
parent caf48484bf
commit de29e44a08
4 changed files with 223 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { Context, TimeRelevance, UnknownActionError } from "@aris/core"
import { LocationKey } from "@aris/source-location"
import { WeatherFeedItemType, type WeatherFeedItem } from "./feed-items"
import currentWeatherInsightPrompt from "./prompts/current-weather-insight.txt"
import { WeatherKey, type Weather } from "./weather-context"
import {
DefaultWeatherKitClient,
@@ -309,6 +310,12 @@ function createCurrentWeatherFeedItem(
windSpeed: convertSpeed(current.windSpeed, units),
},
signals,
slots: {
insight: {
description: currentWeatherInsightPrompt,
content: null,
},
},
}
}