|
| 1 | +# Active Context Update (2026-04-16 - technical-analysis diagnostics fully clean) |
| 2 | + |
| 3 | +- `src/mastra/tools/technical-analysis.tool.ts` is now clean under VS Code `get_errors` after correcting the accidentally leaked return-type annotations and forcing the MACD/ADX result mappings to return explicit local types. |
| 4 | +- The technical-analysis hook blocks remain in the correct tool objects, with shared lifecycle logging helpers still in place. |
| 5 | +- `src/mastra/agents/researchAgent.ts` remains clean and still includes the full technical-analysis suite. |
| 6 | + |
| 7 | +# Active Context Update (2026-04-16 - technical-analysis hook and research-agent expansion) |
| 8 | + |
| 9 | +- `src/mastra/tools/technical-analysis.tool.ts` now uses shared hook-logging helpers for the repeated tool lifecycle hooks, with `messages` counts handled safely and the noisy `messages.length` reads removed. |
| 10 | +- The technical-analysis tool outputs now use explicit result interfaces instead of broad `Record<string, unknown>` / `as unknown as` casts for: |
| 11 | + - Ichimoku cloud |
| 12 | + - trend analysis |
| 13 | + - momentum analysis |
| 14 | + - volatility analysis |
| 15 | + - volume analysis |
| 16 | + - statistical analysis |
| 17 | + - market summary |
| 18 | + - final aggregated technical-analysis output |
| 19 | +- `src/mastra/agents/researchAgent.ts` now imports and exposes the full technical-analysis suite: |
| 20 | + - `ichimokuCloudTool`, `fibonacciTool`, `pivotPointsTool`, `trendAnalysisTool`, `momentumAnalysisTool`, `volatilityAnalysisTool`, `volumeAnalysisTool`, `statisticalAnalysisTool`, `heikinAshiTool`, `marketSummaryTool`, `candlestickPatternTool`, and `technicalAnalysisTool` |
| 21 | +- Targeted ESLint validation on `src/mastra/tools/technical-analysis.tool.ts` and `src/mastra/agents/researchAgent.ts` is clean. |
| 22 | + |
| 23 | +# Active Context Update (2026-04-16 - SerpAPI production-grade expansion) |
| 24 | + |
| 25 | +- The shopping tool file `src/mastra/tools/serpapi-shopping.tool.ts` is now clean again after a targeted `get_errors` refresh. |
| 26 | +- Added three new SerpAPI tool surfaces for higher-value production use: |
| 27 | + - `googleLocalTool` and `googleMapsReviewsTool` in `src/mastra/tools/serpapi-local-maps.tool.ts` |
| 28 | + - `googleImagesTool` in `src/mastra/tools/serpapi-images.tool.ts` |
| 29 | +- Wired the new tools into `src/mastra/tools/index.ts` and `src/mastra/agents/researchAgent.ts` so they can be used by the agent runtime. |
| 30 | +- Targeted diagnostics are clean for the new tool files and the integration points. |
| 31 | + |
| 32 | +# Active Context Update (2026-04-16 - SerpAPI schema alignment) |
| 33 | + |
| 34 | +- `src/mastra/tools/serpapi-shopping.tool.ts` now uses the documented SerpAPI request/response fields for Amazon, Walmart, and eBay: |
| 35 | + - Amazon search uses `k` for the query and `s` for sort values. |
| 36 | + - Walmart links now fall back to `product_page_url` when present. |
| 37 | + - eBay item ids now accept `product_id` with a fallback to `item_id`, and malformed listings are filtered out before returning. |
| 38 | +- `src/mastra/tools/serpapi-news-trends.tool.ts` now models richer Google News and Google Trends sections instead of flattening them away: |
| 39 | + - Google News now preserves `position`, `sourceDetails`, `menuLinks`, and a normalized numeric `totalResults`. |
| 40 | + - Google Trends now preserves detailed `interestOverTime`, `averages`, `relatedQueries`, and `relatedTopics` objects. |
| 41 | +- The stray `mathjs` import was removed from the SerpAPI news/trends module. |
| 42 | +- Targeted ESLint validation on the edited SerpAPI tool files is clean. |
| 43 | + |
1 | 44 | # Active Context Update (2026-04-16 - FastEmbed warmup and dimension alignment) |
2 | 45 |
|
3 | 46 | - `src/mastra/config/libsql.ts` now imports `warmup()` from `@mastra/fastembed` and preloads the base embed model before `LibsqlMemory` can issue semantic recall calls. |
|
0 commit comments