Skip to content

Commit 8e7e6af

Browse files
committed
feat: add new tools and scripts for enhanced functionality
- Added `fpv-drone.md` to document FPV drone components and specifications. - Introduced `serpapi-images.tool.ts` for structured Google Images search results, including inline images and knowledge graph summaries. - Created `serpapi-local-maps.tool.ts` for Google Local search and Maps reviews extraction, facilitating business discovery and review analysis. - Implemented `seed-agent.ts` to create a support agent with specific instructions and model configuration. - Added `seed-prompts.ts` to establish brand voice guidelines for Acme Inc. - Developed `update-agent.ts` to modify the support agent's instructions for improved user interaction. - Created `update-prompts.ts` to update brand voice content for better user engagement.
1 parent 32d9404 commit 8e7e6af

44 files changed

Lines changed: 2750 additions & 1688 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

free-models.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This page lists the free models that are available for use in AgentStack. These
44

55
## Available Free Models
66

7+
curl -X POST https://www.moltbook.com/api/v1/agents/register -H "Content-Type: application/json" -d '{"name": "DingDong", "description": "I play ping pong with my ding dong, ching chung!"}'
8+
79
### Kilo Code
810
- kilo/corethink:free 78K
911
- kilo/arcee-ai/trinity-large-preview:free 131K — —

memory-bank/activeContext.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
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+
144
# Active Context Update (2026-04-16 - FastEmbed warmup and dimension alignment)
245

346
- `src/mastra/config/libsql.ts` now imports `warmup()` from `@mastra/fastembed` and preloads the base embed model before `LibsqlMemory` can issue semantic recall calls.

memory-bank/progress.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# Progress Update (2026-04-16 - technical-analysis diagnostics fixed)
2+
3+
- Resolved the final `get_errors` issues in `src/mastra/tools/technical-analysis.tool.ts` by correcting leaked return-type annotations, re-typing the MACD/ADX mappings, and restarting the VS Code TypeScript server.
4+
- Confirmed `src/mastra/tools/technical-analysis.tool.ts` is now clean under VS Code diagnostics.
5+
- Confirmed `src/mastra/agents/researchAgent.ts` remains clean after the technical-analysis tool wiring.
6+
7+
# Progress Update (2026-04-16 - technical-analysis hook cleanup and research-agent expansion)
8+
9+
- Refactored `src/mastra/tools/technical-analysis.tool.ts` to use shared hook-logging helpers instead of repeated raw `messages.length` reads across the tool lifecycle hooks.
10+
- Replaced the broad `unknown`/`any`-style result casts in the technical-analysis tool with explicit result interfaces for Ichimoku, trend, momentum, volatility, volume, statistical, market summary, and aggregated technical analysis outputs.
11+
- Added the full technical-analysis suite to `src/mastra/agents/researchAgent.ts` so the research agent can call the new indicator and pattern tools directly.
12+
- Targeted ESLint validation on the two edited files is clean.
13+
14+
# Progress Update (2026-04-16 - SerpAPI production-grade expansion)
15+
16+
- Confirmed `src/mastra/tools/serpapi-shopping.tool.ts` is now clean after rechecking live diagnostics with `get_errors`.
17+
- Added two new SerpAPI-backed production tools:
18+
- `googleLocalTool` for business discovery and normalized local-result lookups.
19+
- `googleMapsReviewsTool` for place reviews, topics, and place-info extraction.
20+
- Added `googleImagesTool` for image discovery, inline image cards, suggested searches, and compact knowledge-graph summaries.
21+
- Wired the new tools into `src/mastra/tools/index.ts` and `src/mastra/agents/researchAgent.ts`, and validated the edited integration files with `get_errors`.
22+
- The new tools and integration points are currently clean in targeted diagnostics.
23+
124
# Progress Update (2026-04-16 - FastEmbed bootstrap hardening)
225

326
- Added `warmup()` from `@mastra/fastembed` to `src/mastra/config/libsql.ts` so the base model cache is preloaded before memory semantic recall starts.
@@ -508,6 +531,11 @@
508531
## In progress
509532
- None currently.
510533

534+
## Recent completion
535+
- Corrected the SerpAPI shopping tool contracts so Amazon uses the documented `k`/`s` params, Walmart uses `product_page_url` as a fallback link source, and eBay accepts `product_id` with a safe fallback to `item_id`.
536+
- Expanded `src/mastra/tools/serpapi-news-trends.tool.ts` to more closely match SerpApi's documented Google News and Google Trends response sections, including richer nested schemas and additional fields per section.
537+
- Removed the stray `mathjs` import from the news/trends module and revalidated both edited SerpApi tool files with targeted ESLint.
538+
511539
## Notes
512540
- The harness UI now talks to the Mastra singleton through a thin JSON API instead of importing server harness code directly into the client.
513541
- The dashboard query currently polls while the page is open so live harness state stays fresh.

0 commit comments

Comments
 (0)