Uh oh!
There was an error while loading. Please reload this page.
add templates - #63
Conversation
| console.error("Error closing HyperAgent:", err); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Bug: Function returns void but defines unused schema
The function testIframeInteraction declares a return type of Promise<void> but defines an IframeInteractionSchema and has extraction code commented out (lines 136-141). Either the function should return the extracted schema result or the schema should be removed. The current state creates confusion between intent and implementation.
| } | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Bug: Function returns void but defines unused schema
The function testYouTubeOOPIF returns Promise<void> but defines YouTubeOOPIFSchema with a corresponding result type that is typed but never used. The result extraction at the end (line 116) should either be uncommented and returned, or removed entirely for consistency.
| // Example usage | ||
| if (require.main === module) { | ||
| // Test play action | ||
| testPlayWordle(); |
There was a problem hiding this comment.
Note
Introduce a comprehensive set of aiAction TypeScript templates with Zod schemas and example usage across common sites plus advanced iframe/OOPIF demos, along with a detailed planning document.
zodschemas and example usage)template/templates/1-social-media-feed.ts(X/Twitter feed extraction)template/templates/2-ecommerce-product-search.ts(Amazon search/results)template/templates/3-form-submission.ts(generic contact form submit + confirmation extract)template/templates/4-news-aggregation.ts(Hacker News headlines)template/templates/5-job-board-search.ts(LinkedIn jobs + filters)template/templates/6-real-estate-listings.ts(Zillow with price/beds filters)template/templates/7-financial-data.ts(Yahoo Finance quote)template/templates/8-food-delivery-search.ts(DoorDash restaurants)template/templates/9-event-discovery.ts(Eventbrite search)template/templates/10-government-public-records.ts(USA.gov search)template/templates/11-click-iframe.ts(single/nested iframes)template/templates/12-youtube-oopif.ts(YouTube embed),template/templates/13-google-maps-oopif.ts(Google Maps controls)template/templates/14-play-wordle.ts(Wordle play attempt)template/AIACTION_TEMPLATES_PLAN.mddetailing aiAction command reference, 10 template categories, structure, testing strategy, and code generator requirements.Written by Cursor Bugbot for commit a8350f5. This will update automatically on new commits. Configure here.