Skip to content

Conversation

@bokelley
Copy link
Contributor

Summary

Adds two new parameterized template formats for the sales agent's template picker:

  • display_js: JavaScript-based display ads accepting dimensions parameter
  • video_vast: VAST video ads accepting duration parameter (parameterized version of existing video_vast_30s)

This brings the total template formats from 5 to 7, enabling the sales agent UI to validate user-configured templates combining format IDs with dimensions or duration values.

Fixes #40

Test plan

  • All 257 existing tests pass
  • Template format discovery tests updated to expect 7 templates
  • Video template filter tests expect 3 video templates (was 2)
  • Display template filter tests expect 4 display templates (was 3)
  • Format count test updated to 49 total formats (was 47)
  • Linting passes on src/ and tests/

🤖 Generated with Claude Code

bokelley and others added 4 commits December 26, 2025 16:14
Adds two new template formats that accept parameters, enabling the sales
agent's template picker to validate user-configured templates:

- display_js: JavaScript-based display ads accepting dimensions parameter
- video_vast: VAST video ads accepting duration parameter (parameterized
  version of the existing fixed video_vast_30s format)

Fixes #40

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use the dedicated `vast` asset type instead of `text` for VAST tag
assets. Also fixes the existing video_vast_30s format which had the
same issue.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Remove duplicative description and max_file_size_mb fields from
asset requirements - they don't add value beyond the format-level
description.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The accepts_parameters field on the format already indicates which
parameters are accepted from FormatId. Having parameters_from_format_id
on each asset was redundant and not actually used by any code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 746ed0b into main Dec 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add parameterized format templates for display and video

2 participants