@koda-sl/baker-cli 0.66.2 → 0.67.0-dev.3a23b0e68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/chunk-5L2X6KDP.js +5662 -0
- package/dist/chunk-5L2X6KDP.js.map +1 -0
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +14423 -33
- package/dist/cli.js.map +1 -1
- package/dist/engine/index.d.ts +416 -27
- package/dist/engine/index.js +22 -103
- package/dist/engine/index.js.map +1 -1
- package/package.json +8 -4
- package/dist/cli-version.test.d.ts +0 -2
- package/dist/cli-version.test.d.ts.map +0 -1
- package/dist/cli-version.test.js +0 -13
- package/dist/cli-version.test.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/client.d.ts +0 -12
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -153
- package/dist/client.js.map +0 -1
- package/dist/commands/actions/claim.d.ts +0 -13
- package/dist/commands/actions/claim.d.ts.map +0 -1
- package/dist/commands/actions/claim.js +0 -45
- package/dist/commands/actions/claim.js.map +0 -1
- package/dist/commands/actions/complete.d.ts +0 -18
- package/dist/commands/actions/complete.d.ts.map +0 -1
- package/dist/commands/actions/complete.js +0 -42
- package/dist/commands/actions/complete.js.map +0 -1
- package/dist/commands/actions/create.d.ts +0 -24
- package/dist/commands/actions/create.d.ts.map +0 -1
- package/dist/commands/actions/create.js +0 -68
- package/dist/commands/actions/create.js.map +0 -1
- package/dist/commands/actions/discard.d.ts +0 -18
- package/dist/commands/actions/discard.d.ts.map +0 -1
- package/dist/commands/actions/discard.js +0 -44
- package/dist/commands/actions/discard.js.map +0 -1
- package/dist/commands/actions/get.d.ts +0 -13
- package/dist/commands/actions/get.d.ts.map +0 -1
- package/dist/commands/actions/get.js +0 -34
- package/dist/commands/actions/get.js.map +0 -1
- package/dist/commands/actions/index.d.ts +0 -2
- package/dist/commands/actions/index.d.ts.map +0 -1
- package/dist/commands/actions/index.js +0 -46
- package/dist/commands/actions/index.js.map +0 -1
- package/dist/commands/actions/link.d.ts +0 -13
- package/dist/commands/actions/link.d.ts.map +0 -1
- package/dist/commands/actions/link.js +0 -43
- package/dist/commands/actions/link.js.map +0 -1
- package/dist/commands/actions/list.d.ts +0 -19
- package/dist/commands/actions/list.d.ts.map +0 -1
- package/dist/commands/actions/list.js +0 -66
- package/dist/commands/actions/list.js.map +0 -1
- package/dist/commands/actions/release.d.ts +0 -13
- package/dist/commands/actions/release.d.ts.map +0 -1
- package/dist/commands/actions/release.js +0 -38
- package/dist/commands/actions/release.js.map +0 -1
- package/dist/commands/actions/shared.d.ts +0 -6
- package/dist/commands/actions/shared.d.ts.map +0 -1
- package/dist/commands/actions/shared.js +0 -28
- package/dist/commands/actions/shared.js.map +0 -1
- package/dist/commands/actions/status.d.ts +0 -8
- package/dist/commands/actions/status.d.ts.map +0 -1
- package/dist/commands/actions/status.js +0 -38
- package/dist/commands/actions/status.js.map +0 -1
- package/dist/commands/actions/tag/add.d.ts +0 -18
- package/dist/commands/actions/tag/add.d.ts.map +0 -1
- package/dist/commands/actions/tag/add.js +0 -47
- package/dist/commands/actions/tag/add.js.map +0 -1
- package/dist/commands/actions/tag/create.d.ts +0 -23
- package/dist/commands/actions/tag/create.d.ts.map +0 -1
- package/dist/commands/actions/tag/create.js +0 -50
- package/dist/commands/actions/tag/create.js.map +0 -1
- package/dist/commands/actions/tag/delete.d.ts +0 -13
- package/dist/commands/actions/tag/delete.d.ts.map +0 -1
- package/dist/commands/actions/tag/delete.js +0 -36
- package/dist/commands/actions/tag/delete.js.map +0 -1
- package/dist/commands/actions/tag/index.d.ts +0 -2
- package/dist/commands/actions/tag/index.d.ts.map +0 -1
- package/dist/commands/actions/tag/index.js +0 -32
- package/dist/commands/actions/tag/index.js.map +0 -1
- package/dist/commands/actions/tag/list.d.ts +0 -2
- package/dist/commands/actions/tag/list.d.ts.map +0 -1
- package/dist/commands/actions/tag/list.js +0 -24
- package/dist/commands/actions/tag/list.js.map +0 -1
- package/dist/commands/actions/tag/remove.d.ts +0 -18
- package/dist/commands/actions/tag/remove.d.ts.map +0 -1
- package/dist/commands/actions/tag/remove.js +0 -48
- package/dist/commands/actions/tag/remove.js.map +0 -1
- package/dist/commands/actions/tag/update.d.ts +0 -28
- package/dist/commands/actions/tag/update.d.ts.map +0 -1
- package/dist/commands/actions/tag/update.js +0 -50
- package/dist/commands/actions/tag/update.js.map +0 -1
- package/dist/commands/actions/unlink.d.ts +0 -13
- package/dist/commands/actions/unlink.d.ts.map +0 -1
- package/dist/commands/actions/unlink.js +0 -45
- package/dist/commands/actions/unlink.js.map +0 -1
- package/dist/commands/actions/update.d.ts +0 -23
- package/dist/commands/actions/update.d.ts.map +0 -1
- package/dist/commands/actions/update.js +0 -50
- package/dist/commands/actions/update.js.map +0 -1
- package/dist/commands/ads/cache.d.ts +0 -7
- package/dist/commands/ads/cache.d.ts.map +0 -1
- package/dist/commands/ads/cache.js +0 -73
- package/dist/commands/ads/cache.js.map +0 -1
- package/dist/commands/ads/cache.test.d.ts +0 -2
- package/dist/commands/ads/cache.test.d.ts.map +0 -1
- package/dist/commands/ads/cache.test.js +0 -44
- package/dist/commands/ads/cache.test.js.map +0 -1
- package/dist/commands/ads/field-descriptions.d.ts +0 -2
- package/dist/commands/ads/field-descriptions.d.ts.map +0 -1
- package/dist/commands/ads/field-descriptions.js +0 -91
- package/dist/commands/ads/field-descriptions.js.map +0 -1
- package/dist/commands/ads/google/accounts.d.ts +0 -14
- package/dist/commands/ads/google/accounts.d.ts.map +0 -1
- package/dist/commands/ads/google/accounts.js +0 -76
- package/dist/commands/ads/google/accounts.js.map +0 -1
- package/dist/commands/ads/google/changes.d.ts +0 -34
- package/dist/commands/ads/google/changes.d.ts.map +0 -1
- package/dist/commands/ads/google/changes.js +0 -80
- package/dist/commands/ads/google/changes.js.map +0 -1
- package/dist/commands/ads/google/correction-table.d.ts +0 -3
- package/dist/commands/ads/google/correction-table.d.ts.map +0 -1
- package/dist/commands/ads/google/correction-table.js +0 -352
- package/dist/commands/ads/google/correction-table.js.map +0 -1
- package/dist/commands/ads/google/currency.d.ts +0 -13
- package/dist/commands/ads/google/currency.d.ts.map +0 -1
- package/dist/commands/ads/google/currency.js +0 -68
- package/dist/commands/ads/google/currency.js.map +0 -1
- package/dist/commands/ads/google/error-parser.d.ts +0 -3
- package/dist/commands/ads/google/error-parser.d.ts.map +0 -1
- package/dist/commands/ads/google/error-parser.js +0 -91
- package/dist/commands/ads/google/error-parser.js.map +0 -1
- package/dist/commands/ads/google/error-parser.test.d.ts +0 -2
- package/dist/commands/ads/google/error-parser.test.d.ts.map +0 -1
- package/dist/commands/ads/google/error-parser.test.js +0 -48
- package/dist/commands/ads/google/error-parser.test.js.map +0 -1
- package/dist/commands/ads/google/index.d.ts +0 -2
- package/dist/commands/ads/google/index.d.ts.map +0 -1
- package/dist/commands/ads/google/index.js +0 -34
- package/dist/commands/ads/google/index.js.map +0 -1
- package/dist/commands/ads/google/keywords/discover.d.ts +0 -49
- package/dist/commands/ads/google/keywords/discover.d.ts.map +0 -1
- package/dist/commands/ads/google/keywords/discover.js +0 -151
- package/dist/commands/ads/google/keywords/discover.js.map +0 -1
- package/dist/commands/ads/google/keywords/index.d.ts +0 -2
- package/dist/commands/ads/google/keywords/index.d.ts.map +0 -1
- package/dist/commands/ads/google/keywords/index.js +0 -24
- package/dist/commands/ads/google/keywords/index.js.map +0 -1
- package/dist/commands/ads/google/keywords/languages.d.ts +0 -2
- package/dist/commands/ads/google/keywords/languages.d.ts.map +0 -1
- package/dist/commands/ads/google/keywords/languages.js +0 -23
- package/dist/commands/ads/google/keywords/languages.js.map +0 -1
- package/dist/commands/ads/google/keywords/locations.d.ts +0 -2
- package/dist/commands/ads/google/keywords/locations.d.ts.map +0 -1
- package/dist/commands/ads/google/keywords/locations.js +0 -23
- package/dist/commands/ads/google/keywords/locations.js.map +0 -1
- package/dist/commands/ads/google/keywords/metrics.d.ts +0 -34
- package/dist/commands/ads/google/keywords/metrics.d.ts.map +0 -1
- package/dist/commands/ads/google/keywords/metrics.js +0 -123
- package/dist/commands/ads/google/keywords/metrics.js.map +0 -1
- package/dist/commands/ads/google/library/index.d.ts +0 -3
- package/dist/commands/ads/google/library/index.d.ts.map +0 -1
- package/dist/commands/ads/google/library/index.js +0 -279
- package/dist/commands/ads/google/library/index.js.map +0 -1
- package/dist/commands/ads/google/library/index.test.d.ts +0 -2
- package/dist/commands/ads/google/library/index.test.d.ts.map +0 -1
- package/dist/commands/ads/google/library/index.test.js +0 -26
- package/dist/commands/ads/google/library/index.test.js.map +0 -1
- package/dist/commands/ads/google/preflight.d.ts +0 -3
- package/dist/commands/ads/google/preflight.d.ts.map +0 -1
- package/dist/commands/ads/google/preflight.js +0 -142
- package/dist/commands/ads/google/preflight.js.map +0 -1
- package/dist/commands/ads/google/preflight.test.d.ts +0 -2
- package/dist/commands/ads/google/preflight.test.d.ts.map +0 -1
- package/dist/commands/ads/google/preflight.test.js +0 -56
- package/dist/commands/ads/google/preflight.test.js.map +0 -1
- package/dist/commands/ads/google/presets.d.ts +0 -12
- package/dist/commands/ads/google/presets.d.ts.map +0 -1
- package/dist/commands/ads/google/presets.js +0 -85
- package/dist/commands/ads/google/presets.js.map +0 -1
- package/dist/commands/ads/google/presets.test.d.ts +0 -2
- package/dist/commands/ads/google/presets.test.d.ts.map +0 -1
- package/dist/commands/ads/google/presets.test.js +0 -79
- package/dist/commands/ads/google/presets.test.js.map +0 -1
- package/dist/commands/ads/google/query.d.ts +0 -64
- package/dist/commands/ads/google/query.d.ts.map +0 -1
- package/dist/commands/ads/google/query.js +0 -304
- package/dist/commands/ads/google/query.js.map +0 -1
- package/dist/commands/ads/index.d.ts +0 -2
- package/dist/commands/ads/index.d.ts.map +0 -1
- package/dist/commands/ads/index.js +0 -34
- package/dist/commands/ads/index.js.map +0 -1
- package/dist/commands/ads/linkedin/account.d.ts +0 -20
- package/dist/commands/ads/linkedin/account.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/account.js +0 -39
- package/dist/commands/ads/linkedin/account.js.map +0 -1
- package/dist/commands/ads/linkedin/accounts.d.ts +0 -20
- package/dist/commands/ads/linkedin/accounts.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/accounts.js +0 -56
- package/dist/commands/ads/linkedin/accounts.js.map +0 -1
- package/dist/commands/ads/linkedin/analytics.d.ts +0 -84
- package/dist/commands/ads/linkedin/analytics.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/analytics.js +0 -249
- package/dist/commands/ads/linkedin/analytics.js.map +0 -1
- package/dist/commands/ads/linkedin/audience-size.d.ts +0 -28
- package/dist/commands/ads/linkedin/audience-size.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/audience-size.js +0 -75
- package/dist/commands/ads/linkedin/audience-size.js.map +0 -1
- package/dist/commands/ads/linkedin/audit.d.ts +0 -35
- package/dist/commands/ads/linkedin/audit.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/audit.js +0 -136
- package/dist/commands/ads/linkedin/audit.js.map +0 -1
- package/dist/commands/ads/linkedin/bid-pricing.d.ts +0 -38
- package/dist/commands/ads/linkedin/bid-pricing.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/bid-pricing.js +0 -76
- package/dist/commands/ads/linkedin/bid-pricing.js.map +0 -1
- package/dist/commands/ads/linkedin/campaign-groups.d.ts +0 -32
- package/dist/commands/ads/linkedin/campaign-groups.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/campaign-groups.js +0 -50
- package/dist/commands/ads/linkedin/campaign-groups.js.map +0 -1
- package/dist/commands/ads/linkedin/campaigns.d.ts +0 -36
- package/dist/commands/ads/linkedin/campaigns.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/campaigns.js +0 -57
- package/dist/commands/ads/linkedin/campaigns.js.map +0 -1
- package/dist/commands/ads/linkedin/conversation.d.ts +0 -36
- package/dist/commands/ads/linkedin/conversation.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/conversation.js +0 -77
- package/dist/commands/ads/linkedin/conversation.js.map +0 -1
- package/dist/commands/ads/linkedin/conversions.d.ts +0 -2
- package/dist/commands/ads/linkedin/conversions.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/conversions.js +0 -102
- package/dist/commands/ads/linkedin/conversions.js.map +0 -1
- package/dist/commands/ads/linkedin/creatives.d.ts +0 -36
- package/dist/commands/ads/linkedin/creatives.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/creatives.js +0 -57
- package/dist/commands/ads/linkedin/creatives.js.map +0 -1
- package/dist/commands/ads/linkedin/demographics.d.ts +0 -40
- package/dist/commands/ads/linkedin/demographics.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/demographics.js +0 -117
- package/dist/commands/ads/linkedin/demographics.js.map +0 -1
- package/dist/commands/ads/linkedin/facets.d.ts +0 -2
- package/dist/commands/ads/linkedin/facets.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/facets.js +0 -95
- package/dist/commands/ads/linkedin/facets.js.map +0 -1
- package/dist/commands/ads/linkedin/forecast.d.ts +0 -50
- package/dist/commands/ads/linkedin/forecast.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/forecast.js +0 -83
- package/dist/commands/ads/linkedin/forecast.js.map +0 -1
- package/dist/commands/ads/linkedin/index.d.ts +0 -19
- package/dist/commands/ads/linkedin/index.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/index.js +0 -83
- package/dist/commands/ads/linkedin/index.js.map +0 -1
- package/dist/commands/ads/linkedin/leads.d.ts +0 -40
- package/dist/commands/ads/linkedin/leads.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/leads.js +0 -75
- package/dist/commands/ads/linkedin/leads.js.map +0 -1
- package/dist/commands/ads/linkedin/presets.d.ts +0 -40
- package/dist/commands/ads/linkedin/presets.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/presets.js +0 -193
- package/dist/commands/ads/linkedin/presets.js.map +0 -1
- package/dist/commands/ads/linkedin/presets.test.d.ts +0 -2
- package/dist/commands/ads/linkedin/presets.test.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/presets.test.js +0 -98
- package/dist/commands/ads/linkedin/presets.test.js.map +0 -1
- package/dist/commands/ads/linkedin/schemas.d.ts +0 -2
- package/dist/commands/ads/linkedin/schemas.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/schemas.js +0 -300
- package/dist/commands/ads/linkedin/schemas.js.map +0 -1
- package/dist/commands/ads/linkedin/shared.d.ts +0 -17
- package/dist/commands/ads/linkedin/shared.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/shared.js +0 -116
- package/dist/commands/ads/linkedin/shared.js.map +0 -1
- package/dist/commands/ads/linkedin/top-companies.d.ts +0 -44
- package/dist/commands/ads/linkedin/top-companies.d.ts.map +0 -1
- package/dist/commands/ads/linkedin/top-companies.js +0 -86
- package/dist/commands/ads/linkedin/top-companies.js.map +0 -1
- package/dist/commands/ads/meta/account.d.ts +0 -11
- package/dist/commands/ads/meta/account.d.ts.map +0 -1
- package/dist/commands/ads/meta/account.js +0 -32
- package/dist/commands/ads/meta/account.js.map +0 -1
- package/dist/commands/ads/meta/accounts.d.ts +0 -20
- package/dist/commands/ads/meta/accounts.d.ts.map +0 -1
- package/dist/commands/ads/meta/accounts.js +0 -55
- package/dist/commands/ads/meta/accounts.js.map +0 -1
- package/dist/commands/ads/meta/activities.d.ts +0 -24
- package/dist/commands/ads/meta/activities.d.ts.map +0 -1
- package/dist/commands/ads/meta/activities.js +0 -44
- package/dist/commands/ads/meta/activities.js.map +0 -1
- package/dist/commands/ads/meta/ads.d.ts +0 -36
- package/dist/commands/ads/meta/ads.d.ts.map +0 -1
- package/dist/commands/ads/meta/ads.js +0 -57
- package/dist/commands/ads/meta/ads.js.map +0 -1
- package/dist/commands/ads/meta/adsets.d.ts +0 -32
- package/dist/commands/ads/meta/adsets.d.ts.map +0 -1
- package/dist/commands/ads/meta/adsets.js +0 -50
- package/dist/commands/ads/meta/adsets.js.map +0 -1
- package/dist/commands/ads/meta/audiences.d.ts +0 -20
- package/dist/commands/ads/meta/audiences.d.ts.map +0 -1
- package/dist/commands/ads/meta/audiences.js +0 -41
- package/dist/commands/ads/meta/audiences.js.map +0 -1
- package/dist/commands/ads/meta/businesses.d.ts +0 -12
- package/dist/commands/ads/meta/businesses.d.ts.map +0 -1
- package/dist/commands/ads/meta/businesses.js +0 -35
- package/dist/commands/ads/meta/businesses.js.map +0 -1
- package/dist/commands/ads/meta/campaigns.d.ts +0 -28
- package/dist/commands/ads/meta/campaigns.d.ts.map +0 -1
- package/dist/commands/ads/meta/campaigns.js +0 -51
- package/dist/commands/ads/meta/campaigns.js.map +0 -1
- package/dist/commands/ads/meta/creatives.d.ts +0 -24
- package/dist/commands/ads/meta/creatives.d.ts.map +0 -1
- package/dist/commands/ads/meta/creatives.js +0 -51
- package/dist/commands/ads/meta/creatives.js.map +0 -1
- package/dist/commands/ads/meta/index.d.ts +0 -17
- package/dist/commands/ads/meta/index.d.ts.map +0 -1
- package/dist/commands/ads/meta/index.js +0 -79
- package/dist/commands/ads/meta/index.js.map +0 -1
- package/dist/commands/ads/meta/insights.d.ts +0 -92
- package/dist/commands/ads/meta/insights.d.ts.map +0 -1
- package/dist/commands/ads/meta/insights.js +0 -260
- package/dist/commands/ads/meta/insights.js.map +0 -1
- package/dist/commands/ads/meta/pixels.d.ts +0 -33
- package/dist/commands/ads/meta/pixels.d.ts.map +0 -1
- package/dist/commands/ads/meta/pixels.js +0 -76
- package/dist/commands/ads/meta/pixels.js.map +0 -1
- package/dist/commands/ads/meta/presets.d.ts +0 -30
- package/dist/commands/ads/meta/presets.d.ts.map +0 -1
- package/dist/commands/ads/meta/presets.js +0 -86
- package/dist/commands/ads/meta/presets.js.map +0 -1
- package/dist/commands/ads/meta/preview.d.ts +0 -32
- package/dist/commands/ads/meta/preview.d.ts.map +0 -1
- package/dist/commands/ads/meta/preview.js +0 -90
- package/dist/commands/ads/meta/preview.js.map +0 -1
- package/dist/commands/ads/meta/shared.d.ts +0 -18
- package/dist/commands/ads/meta/shared.d.ts.map +0 -1
- package/dist/commands/ads/meta/shared.js +0 -86
- package/dist/commands/ads/meta/shared.js.map +0 -1
- package/dist/commands/ads/output.d.ts +0 -22
- package/dist/commands/ads/output.d.ts.map +0 -1
- package/dist/commands/ads/output.js +0 -130
- package/dist/commands/ads/output.js.map +0 -1
- package/dist/commands/ads/output.test.d.ts +0 -2
- package/dist/commands/ads/output.test.d.ts.map +0 -1
- package/dist/commands/ads/output.test.js +0 -100
- package/dist/commands/ads/output.test.js.map +0 -1
- package/dist/commands/ads/types.d.ts +0 -69
- package/dist/commands/ads/types.d.ts.map +0 -1
- package/dist/commands/ads/types.js +0 -2
- package/dist/commands/ads/types.js.map +0 -1
- package/dist/commands/ads/x/accounts.d.ts +0 -14
- package/dist/commands/ads/x/accounts.d.ts.map +0 -1
- package/dist/commands/ads/x/accounts.js +0 -73
- package/dist/commands/ads/x/accounts.js.map +0 -1
- package/dist/commands/ads/x/active-entities.d.ts +0 -43
- package/dist/commands/ads/x/active-entities.d.ts.map +0 -1
- package/dist/commands/ads/x/active-entities.js +0 -88
- package/dist/commands/ads/x/active-entities.js.map +0 -1
- package/dist/commands/ads/x/audiences.d.ts +0 -19
- package/dist/commands/ads/x/audiences.d.ts.map +0 -1
- package/dist/commands/ads/x/audiences.js +0 -65
- package/dist/commands/ads/x/audiences.js.map +0 -1
- package/dist/commands/ads/x/campaigns.d.ts +0 -34
- package/dist/commands/ads/x/campaigns.d.ts.map +0 -1
- package/dist/commands/ads/x/campaigns.js +0 -56
- package/dist/commands/ads/x/campaigns.js.map +0 -1
- package/dist/commands/ads/x/cards.d.ts +0 -19
- package/dist/commands/ads/x/cards.d.ts.map +0 -1
- package/dist/commands/ads/x/cards.js +0 -65
- package/dist/commands/ads/x/cards.js.map +0 -1
- package/dist/commands/ads/x/error-parser.d.ts +0 -3
- package/dist/commands/ads/x/error-parser.d.ts.map +0 -1
- package/dist/commands/ads/x/error-parser.js +0 -80
- package/dist/commands/ads/x/error-parser.js.map +0 -1
- package/dist/commands/ads/x/funding.d.ts +0 -19
- package/dist/commands/ads/x/funding.d.ts.map +0 -1
- package/dist/commands/ads/x/funding.js +0 -65
- package/dist/commands/ads/x/funding.js.map +0 -1
- package/dist/commands/ads/x/index.d.ts +0 -2
- package/dist/commands/ads/x/index.d.ts.map +0 -1
- package/dist/commands/ads/x/index.js +0 -50
- package/dist/commands/ads/x/index.js.map +0 -1
- package/dist/commands/ads/x/line-items.d.ts +0 -34
- package/dist/commands/ads/x/line-items.d.ts.map +0 -1
- package/dist/commands/ads/x/line-items.js +0 -55
- package/dist/commands/ads/x/line-items.js.map +0 -1
- package/dist/commands/ads/x/media.d.ts +0 -24
- package/dist/commands/ads/x/media.d.ts.map +0 -1
- package/dist/commands/ads/x/media.js +0 -70
- package/dist/commands/ads/x/media.js.map +0 -1
- package/dist/commands/ads/x/output.d.ts +0 -13
- package/dist/commands/ads/x/output.d.ts.map +0 -1
- package/dist/commands/ads/x/output.js +0 -75
- package/dist/commands/ads/x/output.js.map +0 -1
- package/dist/commands/ads/x/presets.d.ts +0 -15
- package/dist/commands/ads/x/presets.d.ts.map +0 -1
- package/dist/commands/ads/x/presets.js +0 -60
- package/dist/commands/ads/x/presets.js.map +0 -1
- package/dist/commands/ads/x/promoted-tweets.d.ts +0 -29
- package/dist/commands/ads/x/promoted-tweets.d.ts.map +0 -1
- package/dist/commands/ads/x/promoted-tweets.js +0 -74
- package/dist/commands/ads/x/promoted-tweets.js.map +0 -1
- package/dist/commands/ads/x/run-list.d.ts +0 -17
- package/dist/commands/ads/x/run-list.d.ts.map +0 -1
- package/dist/commands/ads/x/run-list.js +0 -60
- package/dist/commands/ads/x/run-list.js.map +0 -1
- package/dist/commands/ads/x/stats/index.d.ts +0 -2
- package/dist/commands/ads/x/stats/index.d.ts.map +0 -1
- package/dist/commands/ads/x/stats/index.js +0 -32
- package/dist/commands/ads/x/stats/index.js.map +0 -1
- package/dist/commands/ads/x/stats/job-create.d.ts +0 -58
- package/dist/commands/ads/x/stats/job-create.d.ts.map +0 -1
- package/dist/commands/ads/x/stats/job-create.js +0 -95
- package/dist/commands/ads/x/stats/job-create.js.map +0 -1
- package/dist/commands/ads/x/stats/job-status.d.ts +0 -18
- package/dist/commands/ads/x/stats/job-status.d.ts.map +0 -1
- package/dist/commands/ads/x/stats/job-status.js +0 -58
- package/dist/commands/ads/x/stats/job-status.js.map +0 -1
- package/dist/commands/ads/x/stats/job.d.ts +0 -63
- package/dist/commands/ads/x/stats/job.d.ts.map +0 -1
- package/dist/commands/ads/x/stats/job.js +0 -183
- package/dist/commands/ads/x/stats/job.js.map +0 -1
- package/dist/commands/ads/x/stats/sync.d.ts +0 -73
- package/dist/commands/ads/x/stats/sync.d.ts.map +0 -1
- package/dist/commands/ads/x/stats/sync.js +0 -151
- package/dist/commands/ads/x/stats/sync.js.map +0 -1
- package/dist/commands/ads/x/targeting-constants.d.ts +0 -34
- package/dist/commands/ads/x/targeting-constants.d.ts.map +0 -1
- package/dist/commands/ads/x/targeting-constants.js +0 -80
- package/dist/commands/ads/x/targeting-constants.js.map +0 -1
- package/dist/commands/ads/x/targeting-criteria.d.ts +0 -24
- package/dist/commands/ads/x/targeting-criteria.d.ts.map +0 -1
- package/dist/commands/ads/x/targeting-criteria.js +0 -69
- package/dist/commands/ads/x/targeting-criteria.js.map +0 -1
- package/dist/commands/canvas/catalog.d.ts +0 -2
- package/dist/commands/canvas/catalog.d.ts.map +0 -1
- package/dist/commands/canvas/catalog.js +0 -13
- package/dist/commands/canvas/catalog.js.map +0 -1
- package/dist/commands/canvas/index.d.ts +0 -2
- package/dist/commands/canvas/index.d.ts.map +0 -1
- package/dist/commands/canvas/index.js +0 -32
- package/dist/commands/canvas/index.js.map +0 -1
- package/dist/commands/canvas/inspect.d.ts +0 -16
- package/dist/commands/canvas/inspect.d.ts.map +0 -1
- package/dist/commands/canvas/inspect.js +0 -115
- package/dist/commands/canvas/inspect.js.map +0 -1
- package/dist/commands/canvas/run.d.ts +0 -24
- package/dist/commands/canvas/run.d.ts.map +0 -1
- package/dist/commands/canvas/run.js +0 -56
- package/dist/commands/canvas/run.js.map +0 -1
- package/dist/commands/canvas/scaffold-static-ad.d.ts +0 -40
- package/dist/commands/canvas/scaffold-static-ad.d.ts.map +0 -1
- package/dist/commands/canvas/scaffold-static-ad.js +0 -265
- package/dist/commands/canvas/scaffold-static-ad.js.map +0 -1
- package/dist/commands/canvas/scaffold-video.d.ts +0 -44
- package/dist/commands/canvas/scaffold-video.d.ts.map +0 -1
- package/dist/commands/canvas/scaffold-video.js +0 -235
- package/dist/commands/canvas/scaffold-video.js.map +0 -1
- package/dist/commands/canvas/validate.d.ts +0 -8
- package/dist/commands/canvas/validate.d.ts.map +0 -1
- package/dist/commands/canvas/validate.js +0 -37
- package/dist/commands/canvas/validate.js.map +0 -1
- package/dist/commands/ga4/audit.d.ts +0 -13
- package/dist/commands/ga4/audit.d.ts.map +0 -1
- package/dist/commands/ga4/audit.js +0 -67
- package/dist/commands/ga4/audit.js.map +0 -1
- package/dist/commands/ga4/index.d.ts +0 -2
- package/dist/commands/ga4/index.d.ts.map +0 -1
- package/dist/commands/ga4/index.js +0 -26
- package/dist/commands/ga4/index.js.map +0 -1
- package/dist/commands/ga4/presets.d.ts +0 -8
- package/dist/commands/ga4/presets.d.ts.map +0 -1
- package/dist/commands/ga4/presets.js +0 -33
- package/dist/commands/ga4/presets.js.map +0 -1
- package/dist/commands/ga4/properties.d.ts +0 -14
- package/dist/commands/ga4/properties.d.ts.map +0 -1
- package/dist/commands/ga4/properties.js +0 -61
- package/dist/commands/ga4/properties.js.map +0 -1
- package/dist/commands/ga4/query.d.ts +0 -69
- package/dist/commands/ga4/query.d.ts.map +0 -1
- package/dist/commands/ga4/query.js +0 -184
- package/dist/commands/ga4/query.js.map +0 -1
- package/dist/commands/ga4/resolve.d.ts +0 -2
- package/dist/commands/ga4/resolve.d.ts.map +0 -1
- package/dist/commands/ga4/resolve.js +0 -57
- package/dist/commands/ga4/resolve.js.map +0 -1
- package/dist/commands/gsc/index.d.ts +0 -2
- package/dist/commands/gsc/index.d.ts.map +0 -1
- package/dist/commands/gsc/index.js +0 -26
- package/dist/commands/gsc/index.js.map +0 -1
- package/dist/commands/gsc/presets.d.ts +0 -9
- package/dist/commands/gsc/presets.d.ts.map +0 -1
- package/dist/commands/gsc/presets.js +0 -34
- package/dist/commands/gsc/presets.js.map +0 -1
- package/dist/commands/gsc/query.d.ts +0 -79
- package/dist/commands/gsc/query.d.ts.map +0 -1
- package/dist/commands/gsc/query.js +0 -196
- package/dist/commands/gsc/query.js.map +0 -1
- package/dist/commands/gsc/resolve.d.ts +0 -2
- package/dist/commands/gsc/resolve.d.ts.map +0 -1
- package/dist/commands/gsc/resolve.js +0 -57
- package/dist/commands/gsc/resolve.js.map +0 -1
- package/dist/commands/gsc/sitemaps.d.ts +0 -19
- package/dist/commands/gsc/sitemaps.d.ts.map +0 -1
- package/dist/commands/gsc/sitemaps.js +0 -65
- package/dist/commands/gsc/sitemaps.js.map +0 -1
- package/dist/commands/gsc/sites.d.ts +0 -14
- package/dist/commands/gsc/sites.d.ts.map +0 -1
- package/dist/commands/gsc/sites.js +0 -61
- package/dist/commands/gsc/sites.js.map +0 -1
- package/dist/commands/images/crop.d.ts +0 -33
- package/dist/commands/images/crop.d.ts.map +0 -1
- package/dist/commands/images/crop.js +0 -90
- package/dist/commands/images/crop.js.map +0 -1
- package/dist/commands/images/delete.d.ts +0 -19
- package/dist/commands/images/delete.d.ts.map +0 -1
- package/dist/commands/images/delete.js +0 -58
- package/dist/commands/images/delete.js.map +0 -1
- package/dist/commands/images/dimensions.d.ts +0 -8
- package/dist/commands/images/dimensions.d.ts.map +0 -1
- package/dist/commands/images/dimensions.js +0 -56
- package/dist/commands/images/dimensions.js.map +0 -1
- package/dist/commands/images/extract.d.ts +0 -28
- package/dist/commands/images/extract.d.ts.map +0 -1
- package/dist/commands/images/extract.js +0 -61
- package/dist/commands/images/extract.js.map +0 -1
- package/dist/commands/images/find.d.ts +0 -38
- package/dist/commands/images/find.d.ts.map +0 -1
- package/dist/commands/images/find.js +0 -87
- package/dist/commands/images/find.js.map +0 -1
- package/dist/commands/images/get.d.ts +0 -30
- package/dist/commands/images/get.d.ts.map +0 -1
- package/dist/commands/images/get.js +0 -42
- package/dist/commands/images/get.js.map +0 -1
- package/dist/commands/images/gif.d.ts +0 -38
- package/dist/commands/images/gif.d.ts.map +0 -1
- package/dist/commands/images/gif.js +0 -89
- package/dist/commands/images/gif.js.map +0 -1
- package/dist/commands/images/google.d.ts +0 -43
- package/dist/commands/images/google.d.ts.map +0 -1
- package/dist/commands/images/google.js +0 -94
- package/dist/commands/images/google.js.map +0 -1
- package/dist/commands/images/icon.d.ts +0 -33
- package/dist/commands/images/icon.d.ts.map +0 -1
- package/dist/commands/images/icon.js +0 -74
- package/dist/commands/images/icon.js.map +0 -1
- package/dist/commands/images/index.d.ts +0 -2
- package/dist/commands/images/index.d.ts.map +0 -1
- package/dist/commands/images/index.js +0 -81
- package/dist/commands/images/index.js.map +0 -1
- package/dist/commands/images/ingest.d.ts +0 -28
- package/dist/commands/images/ingest.d.ts.map +0 -1
- package/dist/commands/images/ingest.js +0 -60
- package/dist/commands/images/ingest.js.map +0 -1
- package/dist/commands/images/library.d.ts +0 -55
- package/dist/commands/images/library.d.ts.map +0 -1
- package/dist/commands/images/library.js +0 -86
- package/dist/commands/images/library.js.map +0 -1
- package/dist/commands/images/logo.d.ts +0 -28
- package/dist/commands/images/logo.d.ts.map +0 -1
- package/dist/commands/images/logo.js +0 -71
- package/dist/commands/images/logo.js.map +0 -1
- package/dist/commands/images/normalize.d.ts +0 -54
- package/dist/commands/images/normalize.d.ts.map +0 -1
- package/dist/commands/images/normalize.js +0 -252
- package/dist/commands/images/normalize.js.map +0 -1
- package/dist/commands/images/screenshot.d.ts +0 -28
- package/dist/commands/images/screenshot.d.ts.map +0 -1
- package/dist/commands/images/screenshot.js +0 -72
- package/dist/commands/images/screenshot.js.map +0 -1
- package/dist/commands/images/search.d.ts +0 -45
- package/dist/commands/images/search.d.ts.map +0 -1
- package/dist/commands/images/search.js +0 -74
- package/dist/commands/images/search.js.map +0 -1
- package/dist/commands/images/sticker.d.ts +0 -38
- package/dist/commands/images/sticker.d.ts.map +0 -1
- package/dist/commands/images/sticker.js +0 -89
- package/dist/commands/images/sticker.js.map +0 -1
- package/dist/commands/images/stock.d.ts +0 -63
- package/dist/commands/images/stock.d.ts.map +0 -1
- package/dist/commands/images/stock.js +0 -128
- package/dist/commands/images/stock.js.map +0 -1
- package/dist/commands/images/upload.d.ts +0 -39
- package/dist/commands/images/upload.d.ts.map +0 -1
- package/dist/commands/images/upload.js +0 -159
- package/dist/commands/images/upload.js.map +0 -1
- package/dist/commands/images/upscale.d.ts +0 -13
- package/dist/commands/images/upscale.d.ts.map +0 -1
- package/dist/commands/images/upscale.js +0 -73
- package/dist/commands/images/upscale.js.map +0 -1
- package/dist/commands/images/use.d.ts +0 -23
- package/dist/commands/images/use.d.ts.map +0 -1
- package/dist/commands/images/use.js +0 -66
- package/dist/commands/images/use.js.map +0 -1
- package/dist/commands/research/advertisers.d.ts +0 -34
- package/dist/commands/research/advertisers.d.ts.map +0 -1
- package/dist/commands/research/advertisers.js +0 -78
- package/dist/commands/research/advertisers.js.map +0 -1
- package/dist/commands/research/autocomplete.d.ts +0 -34
- package/dist/commands/research/autocomplete.d.ts.map +0 -1
- package/dist/commands/research/autocomplete.js +0 -73
- package/dist/commands/research/autocomplete.js.map +0 -1
- package/dist/commands/research/countries.d.ts +0 -2
- package/dist/commands/research/countries.d.ts.map +0 -1
- package/dist/commands/research/countries.js +0 -69
- package/dist/commands/research/countries.js.map +0 -1
- package/dist/commands/research/index.d.ts +0 -2
- package/dist/commands/research/index.d.ts.map +0 -1
- package/dist/commands/research/index.js +0 -50
- package/dist/commands/research/index.js.map +0 -1
- package/dist/commands/research/intent.d.ts +0 -24
- package/dist/commands/research/intent.d.ts.map +0 -1
- package/dist/commands/research/intent.js +0 -78
- package/dist/commands/research/intent.js.map +0 -1
- package/dist/commands/research/keyword-gap.d.ts +0 -49
- package/dist/commands/research/keyword-gap.d.ts.map +0 -1
- package/dist/commands/research/keyword-gap.js +0 -107
- package/dist/commands/research/keyword-gap.js.map +0 -1
- package/dist/commands/research/keywords-for-site.d.ts +0 -44
- package/dist/commands/research/keywords-for-site.d.ts.map +0 -1
- package/dist/commands/research/keywords-for-site.js +0 -90
- package/dist/commands/research/keywords-for-site.js.map +0 -1
- package/dist/commands/research/languages.d.ts +0 -2
- package/dist/commands/research/languages.d.ts.map +0 -1
- package/dist/commands/research/languages.js +0 -42
- package/dist/commands/research/languages.js.map +0 -1
- package/dist/commands/research/lighthouse.d.ts +0 -24
- package/dist/commands/research/lighthouse.d.ts.map +0 -1
- package/dist/commands/research/lighthouse.js +0 -60
- package/dist/commands/research/lighthouse.js.map +0 -1
- package/dist/commands/research/output.d.ts +0 -29
- package/dist/commands/research/output.d.ts.map +0 -1
- package/dist/commands/research/output.js +0 -81
- package/dist/commands/research/output.js.map +0 -1
- package/dist/commands/research/relevant-pages.d.ts +0 -34
- package/dist/commands/research/relevant-pages.d.ts.map +0 -1
- package/dist/commands/research/relevant-pages.js +0 -76
- package/dist/commands/research/relevant-pages.js.map +0 -1
- package/dist/commands/research/web.d.ts +0 -19
- package/dist/commands/research/web.d.ts.map +0 -1
- package/dist/commands/research/web.js +0 -112
- package/dist/commands/research/web.js.map +0 -1
- package/dist/commands/scheduled-actions/create.d.ts +0 -50
- package/dist/commands/scheduled-actions/create.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/create.js +0 -83
- package/dist/commands/scheduled-actions/create.js.map +0 -1
- package/dist/commands/scheduled-actions/delete.d.ts +0 -13
- package/dist/commands/scheduled-actions/delete.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/delete.js +0 -41
- package/dist/commands/scheduled-actions/delete.js.map +0 -1
- package/dist/commands/scheduled-actions/get.d.ts +0 -13
- package/dist/commands/scheduled-actions/get.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/get.js +0 -50
- package/dist/commands/scheduled-actions/get.js.map +0 -1
- package/dist/commands/scheduled-actions/index.d.ts +0 -2
- package/dist/commands/scheduled-actions/index.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/index.js +0 -32
- package/dist/commands/scheduled-actions/index.js.map +0 -1
- package/dist/commands/scheduled-actions/list.d.ts +0 -2
- package/dist/commands/scheduled-actions/list.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/list.js +0 -32
- package/dist/commands/scheduled-actions/list.js.map +0 -1
- package/dist/commands/scheduled-actions/shared.d.ts +0 -22
- package/dist/commands/scheduled-actions/shared.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/shared.js +0 -90
- package/dist/commands/scheduled-actions/shared.js.map +0 -1
- package/dist/commands/scheduled-actions/shared.test.d.ts +0 -2
- package/dist/commands/scheduled-actions/shared.test.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/shared.test.js +0 -12
- package/dist/commands/scheduled-actions/shared.test.js.map +0 -1
- package/dist/commands/scheduled-actions/trigger.d.ts +0 -13
- package/dist/commands/scheduled-actions/trigger.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/trigger.js +0 -50
- package/dist/commands/scheduled-actions/trigger.js.map +0 -1
- package/dist/commands/scheduled-actions/update.d.ts +0 -58
- package/dist/commands/scheduled-actions/update.d.ts.map +0 -1
- package/dist/commands/scheduled-actions/update.js +0 -108
- package/dist/commands/scheduled-actions/update.js.map +0 -1
- package/dist/commands/schema.d.ts +0 -8
- package/dist/commands/schema.d.ts.map +0 -1
- package/dist/commands/schema.js +0 -38
- package/dist/commands/schema.js.map +0 -1
- package/dist/commands/testimonials/get.d.ts +0 -30
- package/dist/commands/testimonials/get.d.ts.map +0 -1
- package/dist/commands/testimonials/get.js +0 -42
- package/dist/commands/testimonials/get.js.map +0 -1
- package/dist/commands/testimonials/index.d.ts +0 -2
- package/dist/commands/testimonials/index.d.ts.map +0 -1
- package/dist/commands/testimonials/index.js +0 -22
- package/dist/commands/testimonials/index.js.map +0 -1
- package/dist/commands/testimonials/list.d.ts +0 -60
- package/dist/commands/testimonials/list.d.ts.map +0 -1
- package/dist/commands/testimonials/list.js +0 -84
- package/dist/commands/testimonials/list.js.map +0 -1
- package/dist/commands/testimonials/search.d.ts +0 -65
- package/dist/commands/testimonials/search.d.ts.map +0 -1
- package/dist/commands/testimonials/search.js +0 -99
- package/dist/commands/testimonials/search.js.map +0 -1
- package/dist/commands/testimonials/search.test.d.ts +0 -2
- package/dist/commands/testimonials/search.test.d.ts.map +0 -1
- package/dist/commands/testimonials/search.test.js +0 -18
- package/dist/commands/testimonials/search.test.js.map +0 -1
- package/dist/commands/videos/delete.d.ts +0 -19
- package/dist/commands/videos/delete.d.ts.map +0 -1
- package/dist/commands/videos/delete.js +0 -58
- package/dist/commands/videos/delete.js.map +0 -1
- package/dist/commands/videos/get.d.ts +0 -30
- package/dist/commands/videos/get.d.ts.map +0 -1
- package/dist/commands/videos/get.js +0 -42
- package/dist/commands/videos/get.js.map +0 -1
- package/dist/commands/videos/index.d.ts +0 -2
- package/dist/commands/videos/index.d.ts.map +0 -1
- package/dist/commands/videos/index.js +0 -25
- package/dist/commands/videos/index.js.map +0 -1
- package/dist/commands/videos/search.d.ts +0 -35
- package/dist/commands/videos/search.d.ts.map +0 -1
- package/dist/commands/videos/search.js +0 -54
- package/dist/commands/videos/search.js.map +0 -1
- package/dist/commands/videos/upload.d.ts +0 -19
- package/dist/commands/videos/upload.d.ts.map +0 -1
- package/dist/commands/videos/upload.js +0 -92
- package/dist/commands/videos/upload.js.map +0 -1
- package/dist/engine/client/backend-client.d.ts +0 -50
- package/dist/engine/client/backend-client.d.ts.map +0 -1
- package/dist/engine/client/backend-client.js +0 -20
- package/dist/engine/client/backend-client.js.map +0 -1
- package/dist/engine/client/env.d.ts +0 -7
- package/dist/engine/client/env.d.ts.map +0 -1
- package/dist/engine/client/env.js +0 -18
- package/dist/engine/client/env.js.map +0 -1
- package/dist/engine/client/http.d.ts +0 -56
- package/dist/engine/client/http.d.ts.map +0 -1
- package/dist/engine/client/http.js +0 -168
- package/dist/engine/client/http.js.map +0 -1
- package/dist/engine/engine/cache-key.d.ts +0 -19
- package/dist/engine/engine/cache-key.d.ts.map +0 -1
- package/dist/engine/engine/cache-key.js +0 -33
- package/dist/engine/engine/cache-key.js.map +0 -1
- package/dist/engine/engine/canonical.d.ts +0 -14
- package/dist/engine/engine/canonical.d.ts.map +0 -1
- package/dist/engine/engine/canonical.js +0 -53
- package/dist/engine/engine/canonical.js.map +0 -1
- package/dist/engine/engine/composition-hash.d.ts +0 -14
- package/dist/engine/engine/composition-hash.d.ts.map +0 -1
- package/dist/engine/engine/composition-hash.js +0 -51
- package/dist/engine/engine/composition-hash.js.map +0 -1
- package/dist/engine/engine/composition-meta.d.ts +0 -77
- package/dist/engine/engine/composition-meta.d.ts.map +0 -1
- package/dist/engine/engine/composition-meta.js +0 -199
- package/dist/engine/engine/composition-meta.js.map +0 -1
- package/dist/engine/engine/context.d.ts +0 -16
- package/dist/engine/engine/context.d.ts.map +0 -1
- package/dist/engine/engine/context.js +0 -2
- package/dist/engine/engine/context.js.map +0 -1
- package/dist/engine/engine/define.d.ts +0 -69
- package/dist/engine/engine/define.d.ts.map +0 -1
- package/dist/engine/engine/define.js +0 -9
- package/dist/engine/engine/define.js.map +0 -1
- package/dist/engine/engine/didyoumean.d.ts +0 -2
- package/dist/engine/engine/didyoumean.d.ts.map +0 -1
- package/dist/engine/engine/didyoumean.js +0 -58
- package/dist/engine/engine/didyoumean.js.map +0 -1
- package/dist/engine/engine/errors.d.ts +0 -41
- package/dist/engine/engine/errors.d.ts.map +0 -1
- package/dist/engine/engine/errors.js +0 -45
- package/dist/engine/engine/errors.js.map +0 -1
- package/dist/engine/engine/executor.d.ts +0 -72
- package/dist/engine/engine/executor.d.ts.map +0 -1
- package/dist/engine/engine/executor.js +0 -445
- package/dist/engine/engine/executor.js.map +0 -1
- package/dist/engine/engine/refs.d.ts +0 -12
- package/dist/engine/engine/refs.d.ts.map +0 -1
- package/dist/engine/engine/refs.js +0 -48
- package/dist/engine/engine/refs.js.map +0 -1
- package/dist/engine/engine/registry.d.ts +0 -11
- package/dist/engine/engine/registry.d.ts.map +0 -1
- package/dist/engine/engine/registry.js +0 -26
- package/dist/engine/engine/registry.js.map +0 -1
- package/dist/engine/engine/scheduler.d.ts +0 -10
- package/dist/engine/engine/scheduler.d.ts.map +0 -1
- package/dist/engine/engine/scheduler.js +0 -89
- package/dist/engine/engine/scheduler.js.map +0 -1
- package/dist/engine/engine/validator.d.ts +0 -31
- package/dist/engine/engine/validator.d.ts.map +0 -1
- package/dist/engine/engine/validator.js +0 -501
- package/dist/engine/engine/validator.js.map +0 -1
- package/dist/engine/index.d.ts.map +0 -1
- package/dist/engine/lib/ulid.d.ts +0 -3
- package/dist/engine/lib/ulid.d.ts.map +0 -1
- package/dist/engine/lib/ulid.js +0 -36
- package/dist/engine/lib/ulid.js.map +0 -1
- package/dist/engine/models/canvas-ad-params.test.d.ts +0 -2
- package/dist/engine/models/canvas-ad-params.test.d.ts.map +0 -1
- package/dist/engine/models/canvas-ad-params.test.js +0 -60
- package/dist/engine/models/canvas-ad-params.test.js.map +0 -1
- package/dist/engine/models/registry.d.ts +0 -63
- package/dist/engine/models/registry.d.ts.map +0 -1
- package/dist/engine/models/registry.js +0 -432
- package/dist/engine/models/registry.js.map +0 -1
- package/dist/engine/models/validateParams.d.ts +0 -38
- package/dist/engine/models/validateParams.d.ts.map +0 -1
- package/dist/engine/models/validateParams.js +0 -166
- package/dist/engine/models/validateParams.js.map +0 -1
- package/dist/engine/nodes/ingest.d.ts +0 -113
- package/dist/engine/nodes/ingest.d.ts.map +0 -1
- package/dist/engine/nodes/ingest.js +0 -555
- package/dist/engine/nodes/ingest.js.map +0 -1
- package/dist/engine/nodes/ingest.svg.test.d.ts +0 -2
- package/dist/engine/nodes/ingest.svg.test.d.ts.map +0 -1
- package/dist/engine/nodes/ingest.svg.test.js +0 -30
- package/dist/engine/nodes/ingest.svg.test.js.map +0 -1
- package/dist/engine/nodes/local/audioTimeline.d.ts +0 -82
- package/dist/engine/nodes/local/audioTimeline.d.ts.map +0 -1
- package/dist/engine/nodes/local/audioTimeline.js +0 -97
- package/dist/engine/nodes/local/audioTimeline.js.map +0 -1
- package/dist/engine/nodes/local/ffmpeg.d.ts +0 -56
- package/dist/engine/nodes/local/ffmpeg.d.ts.map +0 -1
- package/dist/engine/nodes/local/ffmpeg.js +0 -50
- package/dist/engine/nodes/local/ffmpeg.js.map +0 -1
- package/dist/engine/nodes/local/fontSpecimen.d.ts +0 -50
- package/dist/engine/nodes/local/fontSpecimen.d.ts.map +0 -1
- package/dist/engine/nodes/local/fontSpecimen.js +0 -198
- package/dist/engine/nodes/local/fontSpecimen.js.map +0 -1
- package/dist/engine/nodes/local/hyperframe-snapshot.d.ts +0 -116
- package/dist/engine/nodes/local/hyperframe-snapshot.d.ts.map +0 -1
- package/dist/engine/nodes/local/hyperframe-snapshot.js +0 -230
- package/dist/engine/nodes/local/hyperframe-snapshot.js.map +0 -1
- package/dist/engine/nodes/local/hyperframe.d.ts +0 -123
- package/dist/engine/nodes/local/hyperframe.d.ts.map +0 -1
- package/dist/engine/nodes/local/hyperframe.js +0 -367
- package/dist/engine/nodes/local/hyperframe.js.map +0 -1
- package/dist/engine/nodes/local/imagemagick.d.ts +0 -56
- package/dist/engine/nodes/local/imagemagick.d.ts.map +0 -1
- package/dist/engine/nodes/local/imagemagick.js +0 -71
- package/dist/engine/nodes/local/imagemagick.js.map +0 -1
- package/dist/engine/nodes/local/lib/assets.d.ts +0 -20
- package/dist/engine/nodes/local/lib/assets.d.ts.map +0 -1
- package/dist/engine/nodes/local/lib/assets.js +0 -40
- package/dist/engine/nodes/local/lib/assets.js.map +0 -1
- package/dist/engine/nodes/local/lib/cli-runner.d.ts +0 -78
- package/dist/engine/nodes/local/lib/cli-runner.d.ts.map +0 -1
- package/dist/engine/nodes/local/lib/cli-runner.js +0 -254
- package/dist/engine/nodes/local/lib/cli-runner.js.map +0 -1
- package/dist/engine/nodes/local/lib/ffmpeg.d.ts +0 -23
- package/dist/engine/nodes/local/lib/ffmpeg.d.ts.map +0 -1
- package/dist/engine/nodes/local/lib/ffmpeg.js +0 -75
- package/dist/engine/nodes/local/lib/ffmpeg.js.map +0 -1
- package/dist/engine/nodes/local/lib/hyperframe-errors.d.ts +0 -2
- package/dist/engine/nodes/local/lib/hyperframe-errors.d.ts.map +0 -1
- package/dist/engine/nodes/local/lib/hyperframe-errors.js +0 -47
- package/dist/engine/nodes/local/lib/hyperframe-errors.js.map +0 -1
- package/dist/engine/nodes/local/lib/templating.d.ts +0 -22
- package/dist/engine/nodes/local/lib/templating.d.ts.map +0 -1
- package/dist/engine/nodes/local/lib/templating.js +0 -85
- package/dist/engine/nodes/local/lib/templating.js.map +0 -1
- package/dist/engine/nodes/local/text.d.ts +0 -6
- package/dist/engine/nodes/local/text.d.ts.map +0 -1
- package/dist/engine/nodes/local/text.js +0 -15
- package/dist/engine/nodes/local/text.js.map +0 -1
- package/dist/engine/nodes/remote/delegate.d.ts +0 -25
- package/dist/engine/nodes/remote/delegate.d.ts.map +0 -1
- package/dist/engine/nodes/remote/delegate.js +0 -160
- package/dist/engine/nodes/remote/delegate.js.map +0 -1
- package/dist/engine/nodes/remote/dialogue.d.ts +0 -34
- package/dist/engine/nodes/remote/dialogue.d.ts.map +0 -1
- package/dist/engine/nodes/remote/dialogue.js +0 -54
- package/dist/engine/nodes/remote/dialogue.js.map +0 -1
- package/dist/engine/nodes/remote/image.d.ts +0 -42
- package/dist/engine/nodes/remote/image.d.ts.map +0 -1
- package/dist/engine/nodes/remote/image.js +0 -43
- package/dist/engine/nodes/remote/image.js.map +0 -1
- package/dist/engine/nodes/remote/imageAspectAdapt.d.ts +0 -30
- package/dist/engine/nodes/remote/imageAspectAdapt.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageAspectAdapt.js +0 -42
- package/dist/engine/nodes/remote/imageAspectAdapt.js.map +0 -1
- package/dist/engine/nodes/remote/imageBackgroundRemove.d.ts +0 -39
- package/dist/engine/nodes/remote/imageBackgroundRemove.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageBackgroundRemove.js +0 -37
- package/dist/engine/nodes/remote/imageBackgroundRemove.js.map +0 -1
- package/dist/engine/nodes/remote/imageDescribe.d.ts +0 -29
- package/dist/engine/nodes/remote/imageDescribe.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageDescribe.js +0 -25
- package/dist/engine/nodes/remote/imageDescribe.js.map +0 -1
- package/dist/engine/nodes/remote/imageReferenceSheet.d.ts +0 -34
- package/dist/engine/nodes/remote/imageReferenceSheet.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageReferenceSheet.js +0 -38
- package/dist/engine/nodes/remote/imageReferenceSheet.js.map +0 -1
- package/dist/engine/nodes/remote/imageSearch.d.ts +0 -18
- package/dist/engine/nodes/remote/imageSearch.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageSearch.js +0 -22
- package/dist/engine/nodes/remote/imageSearch.js.map +0 -1
- package/dist/engine/nodes/remote/imageSelect.d.ts +0 -39
- package/dist/engine/nodes/remote/imageSelect.d.ts.map +0 -1
- package/dist/engine/nodes/remote/imageSelect.js +0 -45
- package/dist/engine/nodes/remote/imageSelect.js.map +0 -1
- package/dist/engine/nodes/remote/music.d.ts +0 -45
- package/dist/engine/nodes/remote/music.d.ts.map +0 -1
- package/dist/engine/nodes/remote/music.js +0 -73
- package/dist/engine/nodes/remote/music.js.map +0 -1
- package/dist/engine/nodes/remote/soundEffect.d.ts +0 -21
- package/dist/engine/nodes/remote/soundEffect.d.ts.map +0 -1
- package/dist/engine/nodes/remote/soundEffect.js +0 -41
- package/dist/engine/nodes/remote/soundEffect.js.map +0 -1
- package/dist/engine/nodes/remote/textGenerate.d.ts +0 -21
- package/dist/engine/nodes/remote/textGenerate.d.ts.map +0 -1
- package/dist/engine/nodes/remote/textGenerate.js +0 -27
- package/dist/engine/nodes/remote/textGenerate.js.map +0 -1
- package/dist/engine/nodes/remote/tts.d.ts +0 -45
- package/dist/engine/nodes/remote/tts.d.ts.map +0 -1
- package/dist/engine/nodes/remote/tts.js +0 -66
- package/dist/engine/nodes/remote/tts.js.map +0 -1
- package/dist/engine/nodes/remote/video.d.ts +0 -58
- package/dist/engine/nodes/remote/video.d.ts.map +0 -1
- package/dist/engine/nodes/remote/video.js +0 -44
- package/dist/engine/nodes/remote/video.js.map +0 -1
- package/dist/engine/nodes/remote/videoBackgroundRemove.d.ts +0 -30
- package/dist/engine/nodes/remote/videoBackgroundRemove.d.ts.map +0 -1
- package/dist/engine/nodes/remote/videoBackgroundRemove.js +0 -29
- package/dist/engine/nodes/remote/videoBackgroundRemove.js.map +0 -1
- package/dist/engine/nodes/remote/videoDeconstruct.d.ts +0 -61
- package/dist/engine/nodes/remote/videoDeconstruct.d.ts.map +0 -1
- package/dist/engine/nodes/remote/videoDeconstruct.js +0 -40
- package/dist/engine/nodes/remote/videoDeconstruct.js.map +0 -1
- package/dist/engine/nodes/remote/videoLipsync.d.ts +0 -37
- package/dist/engine/nodes/remote/videoLipsync.d.ts.map +0 -1
- package/dist/engine/nodes/remote/videoLipsync.js +0 -26
- package/dist/engine/nodes/remote/videoLipsync.js.map +0 -1
- package/dist/engine/nodes/remote/videoTranscribe.d.ts +0 -116
- package/dist/engine/nodes/remote/videoTranscribe.d.ts.map +0 -1
- package/dist/engine/nodes/remote/videoTranscribe.js +0 -123
- package/dist/engine/nodes/remote/videoTranscribe.js.map +0 -1
- package/dist/engine/nodes/remote/voiceSelect.d.ts +0 -28
- package/dist/engine/nodes/remote/voiceSelect.d.ts.map +0 -1
- package/dist/engine/nodes/remote/voiceSelect.js +0 -25
- package/dist/engine/nodes/remote/voiceSelect.js.map +0 -1
- package/dist/engine/scaffold/staticAd.d.ts +0 -44
- package/dist/engine/scaffold/staticAd.d.ts.map +0 -1
- package/dist/engine/scaffold/staticAd.js +0 -243
- package/dist/engine/scaffold/staticAd.js.map +0 -1
- package/dist/engine/scaffold/video.d.ts +0 -56
- package/dist/engine/scaffold/video.d.ts.map +0 -1
- package/dist/engine/scaffold/video.js +0 -709
- package/dist/engine/scaffold/video.js.map +0 -1
- package/dist/engine/schema/canvas.d.ts +0 -41
- package/dist/engine/schema/canvas.d.ts.map +0 -1
- package/dist/engine/schema/canvas.js +0 -67
- package/dist/engine/schema/canvas.js.map +0 -1
- package/dist/engine/schema/catalog.d.ts +0 -25
- package/dist/engine/schema/catalog.d.ts.map +0 -1
- package/dist/engine/schema/catalog.js +0 -48
- package/dist/engine/schema/catalog.js.map +0 -1
- package/dist/engine/schema/primitives.d.ts +0 -6
- package/dist/engine/schema/primitives.d.ts.map +0 -1
- package/dist/engine/schema/primitives.js +0 -4
- package/dist/engine/schema/primitives.js.map +0 -1
- package/dist/engine/schema/prompts.d.ts +0 -4
- package/dist/engine/schema/prompts.d.ts.map +0 -1
- package/dist/engine/schema/prompts.js +0 -23
- package/dist/engine/schema/prompts.js.map +0 -1
- package/dist/engine/schema/refs.d.ts +0 -113
- package/dist/engine/schema/refs.d.ts.map +0 -1
- package/dist/engine/schema/refs.js +0 -35
- package/dist/engine/schema/refs.js.map +0 -1
- package/dist/engine/storage/asset-store.d.ts +0 -48
- package/dist/engine/storage/asset-store.d.ts.map +0 -1
- package/dist/engine/storage/asset-store.js +0 -166
- package/dist/engine/storage/asset-store.js.map +0 -1
- package/dist/engine/storage/cache-store.d.ts +0 -21
- package/dist/engine/storage/cache-store.d.ts.map +0 -1
- package/dist/engine/storage/cache-store.js +0 -31
- package/dist/engine/storage/cache-store.js.map +0 -1
- package/dist/engine/storage/output-writer.d.ts +0 -18
- package/dist/engine/storage/output-writer.d.ts.map +0 -1
- package/dist/engine/storage/output-writer.js +0 -52
- package/dist/engine/storage/output-writer.js.map +0 -1
- package/dist/engine/storage/sha256.d.ts +0 -2
- package/dist/engine/storage/sha256.d.ts.map +0 -1
- package/dist/engine/storage/sha256.js +0 -7
- package/dist/engine/storage/sha256.js.map +0 -1
- package/dist/env.d.ts +0 -15
- package/dist/env.d.ts.map +0 -1
- package/dist/env.js +0 -39
- package/dist/env.js.map +0 -1
- package/dist/error-handler.d.ts +0 -8
- package/dist/error-handler.d.ts.map +0 -1
- package/dist/error-handler.js +0 -46
- package/dist/error-handler.js.map +0 -1
- package/dist/geo-context.d.ts +0 -21
- package/dist/geo-context.d.ts.map +0 -1
- package/dist/geo-context.js +0 -208
- package/dist/geo-context.js.map +0 -1
- package/dist/lib/image/color-changer.d.ts +0 -18
- package/dist/lib/image/color-changer.d.ts.map +0 -1
- package/dist/lib/image/color-changer.js +0 -366
- package/dist/lib/image/color-changer.js.map +0 -1
- package/dist/lib/image/color-changer.test.d.ts +0 -2
- package/dist/lib/image/color-changer.test.d.ts.map +0 -1
- package/dist/lib/image/color-changer.test.js +0 -131
- package/dist/lib/image/color-changer.test.js.map +0 -1
- package/dist/lib/image/crop-sprite.d.ts +0 -9
- package/dist/lib/image/crop-sprite.d.ts.map +0 -1
- package/dist/lib/image/crop-sprite.js +0 -13
- package/dist/lib/image/crop-sprite.js.map +0 -1
- package/dist/lib/image/dimensions.d.ts +0 -9
- package/dist/lib/image/dimensions.d.ts.map +0 -1
- package/dist/lib/image/dimensions.js +0 -13
- package/dist/lib/image/dimensions.js.map +0 -1
- package/dist/lib/image/image-processor.d.ts +0 -26
- package/dist/lib/image/image-processor.d.ts.map +0 -1
- package/dist/lib/image/image-processor.js +0 -212
- package/dist/lib/image/image-processor.js.map +0 -1
- package/dist/lib/image/image-processor.test.d.ts +0 -2
- package/dist/lib/image/image-processor.test.d.ts.map +0 -1
- package/dist/lib/image/image-processor.test.js +0 -65
- package/dist/lib/image/image-processor.test.js.map +0 -1
- package/dist/lib/image/io.d.ts +0 -29
- package/dist/lib/image/io.d.ts.map +0 -1
- package/dist/lib/image/io.js +0 -90
- package/dist/lib/image/io.js.map +0 -1
- package/dist/output.d.ts +0 -43
- package/dist/output.d.ts.map +0 -1
- package/dist/output.js +0 -182
- package/dist/output.js.map +0 -1
- package/dist/output.test.d.ts +0 -2
- package/dist/output.test.d.ts.map +0 -1
- package/dist/output.test.js +0 -117
- package/dist/output.test.js.map +0 -1
- package/dist/schemas.d.ts +0 -17
- package/dist/schemas.d.ts.map +0 -1
- package/dist/schemas.js +0 -11
- package/dist/schemas.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -19
- package/dist/version.js.map +0 -1
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { mkdtemp, readFile, rm } from "node:fs/promises";
|
|
2
|
-
import { tmpdir } from "node:os";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { defineNode } from "../../engine/define.js";
|
|
6
|
-
import { VideoRef } from "../../schema/refs.js";
|
|
7
|
-
import { sha256Hex } from "../../storage/sha256.js";
|
|
8
|
-
import { probeVideo, runFfmpeg } from "../local/lib/ffmpeg.js";
|
|
9
|
-
import { callBackendExec } from "./delegate.js";
|
|
10
|
-
const VideoTranscribeParams = z
|
|
11
|
-
.object({
|
|
12
|
-
language: z.string().min(2).max(8).optional(),
|
|
13
|
-
// Provider choice is explicit (no env-based silent branching). Default Groq
|
|
14
|
-
// Whisper; "deepgram" routes to Deepgram Nova-3, which additionally emits a
|
|
15
|
-
// `rich` JSON output with punctuated words + paragraph/sentence grouping.
|
|
16
|
-
transcriber: z.enum(["groq", "deepgram"]).optional(),
|
|
17
|
-
})
|
|
18
|
-
.strict();
|
|
19
|
-
const VideoTranscribeInputs = z
|
|
20
|
-
.object({
|
|
21
|
-
video: VideoRef,
|
|
22
|
-
})
|
|
23
|
-
.strict();
|
|
24
|
-
const VideoTranscribeOutputs = z
|
|
25
|
-
.object({
|
|
26
|
-
transcript: z.custom(),
|
|
27
|
-
// Only emitted by the Deepgram path: full punctuated words + paragraph /
|
|
28
|
-
// sentence grouping with speaker indices. Absent for the default Groq path.
|
|
29
|
-
rich: z.custom().optional(),
|
|
30
|
-
})
|
|
31
|
-
.strict();
|
|
32
|
-
const AUDIO_EXTRACT_TIMEOUT_MS = 60_000;
|
|
33
|
-
export const videoTranscribeNode = defineNode({
|
|
34
|
-
id: "video_transcribe",
|
|
35
|
-
version: "2.2.0",
|
|
36
|
-
category: "language",
|
|
37
|
-
location: "local",
|
|
38
|
-
summary: 'Transcribe a video\'s audio to a word-level JSON transcript. Default `transcriber:"groq"` uses ' +
|
|
39
|
-
'Groq Whisper Large v3 Turbo ($0.04/hr, 10s min); `transcriber:"deepgram"` uses Deepgram Nova-3 ' +
|
|
40
|
-
"($0.0043/min) and additionally emits a `rich` JSON output with punctuated words + paragraph/sentence " +
|
|
41
|
-
"grouping (and speaker indices). " +
|
|
42
|
-
"Automatically extracts audio locally (mono 16 kHz MP3) before uploading — reduces payload ~100× " +
|
|
43
|
-
"and lifts the effective duration limit well beyond Groq's 100 MB file cap. " +
|
|
44
|
-
"The `transcript` output is always an array of {text, start, end} entries ready to feed Hyperframes " +
|
|
45
|
-
"caption compositions (Deepgram prefers the punctuated word form).",
|
|
46
|
-
when_to_use: "Use to generate burned-in captions for a stitched video. Pair with `hyperframe_render` and a captions composition (e.g. `tiktok-captions`) by passing the transcript JSON through `params.variables.transcript`. " +
|
|
47
|
-
'Pick `params.language` to filter out non-target speech (e.g. "es" for Spanish). ' +
|
|
48
|
-
'Pick `transcriber:"deepgram"` when you want punctuation/paragraphs (read them from the `rich` output) or speaker grouping. ' +
|
|
49
|
-
"Requires ffmpeg on PATH for audio extraction (falls back to full video upload if unavailable).",
|
|
50
|
-
inputs: VideoTranscribeInputs,
|
|
51
|
-
params: VideoTranscribeParams,
|
|
52
|
-
outputs: VideoTranscribeOutputs,
|
|
53
|
-
outputKinds: { transcript: "json", rich: "json" },
|
|
54
|
-
cost: () => ({ credits: 2, seconds_estimate: 30 }),
|
|
55
|
-
async execute({ inputs, params, ctx }) {
|
|
56
|
-
const audioInput = await tryExtractAudio(inputs, ctx);
|
|
57
|
-
const effectiveInputs = audioInput ?? inputs;
|
|
58
|
-
return (await callBackendExec({
|
|
59
|
-
nodeType: "video_transcribe",
|
|
60
|
-
nodeVersion: "2.2.0",
|
|
61
|
-
params,
|
|
62
|
-
inputs: effectiveInputs,
|
|
63
|
-
outputKinds: { transcript: "json", rich: "json" },
|
|
64
|
-
ctx,
|
|
65
|
-
}));
|
|
66
|
-
},
|
|
67
|
-
});
|
|
68
|
-
async function tryExtractAudio(inputs, ctx) {
|
|
69
|
-
const video = inputs.video;
|
|
70
|
-
if (!video.path || !video.mime?.startsWith("video/"))
|
|
71
|
-
return null;
|
|
72
|
-
let tmpDir;
|
|
73
|
-
try {
|
|
74
|
-
const probe = await probeVideo(video.path);
|
|
75
|
-
if (!probe.has_audio) {
|
|
76
|
-
ctx.log("video_transcribe: no audio track detected, sending full video");
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
tmpDir = await mkdtemp(path.join(tmpdir(), "vtx-"));
|
|
80
|
-
const audioPath = path.join(tmpDir, "audio.mp3");
|
|
81
|
-
ctx.log("video_transcribe: extracting audio (mono 16kHz mp3)");
|
|
82
|
-
await runFfmpeg(["-i", video.path, "-vn", "-ac", "1", "-ar", "16000", "-b:a", "64k", "-f", "mp3", "-y", audioPath], { timeout_ms: AUDIO_EXTRACT_TIMEOUT_MS });
|
|
83
|
-
const bytes = await readFile(audioPath);
|
|
84
|
-
if (bytes.byteLength === 0) {
|
|
85
|
-
ctx.log("video_transcribe: extracted audio is empty, sending full video");
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
const sha = sha256Hex(bytes);
|
|
89
|
-
const mime = "audio/mpeg";
|
|
90
|
-
const { putUrl, publicUrl } = await ctx.client.presignAssetUpload(sha, mime, ctx.signal);
|
|
91
|
-
const putRes = await fetch(putUrl, {
|
|
92
|
-
method: "PUT",
|
|
93
|
-
body: new Uint8Array(bytes),
|
|
94
|
-
headers: { "Content-Type": mime },
|
|
95
|
-
signal: ctx.signal,
|
|
96
|
-
});
|
|
97
|
-
if (!putRes.ok) {
|
|
98
|
-
ctx.log(`video_transcribe: audio upload failed (${putRes.status}), sending full video`);
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
const localRef = await ctx.assets.ingestBytes({
|
|
102
|
-
bytes,
|
|
103
|
-
kind: "audio",
|
|
104
|
-
mime,
|
|
105
|
-
metadata: { extracted_from: video.sha256 },
|
|
106
|
-
});
|
|
107
|
-
const sizeMb = (bytes.byteLength / (1024 * 1024)).toFixed(1);
|
|
108
|
-
ctx.log(`video_transcribe: audio extracted (${sizeMb} MB), uploading`);
|
|
109
|
-
return {
|
|
110
|
-
video: { ...localRef, url: publicUrl },
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
catch (e) {
|
|
114
|
-
ctx.log(`video_transcribe: audio extraction failed, sending full video: ${e.message}`);
|
|
115
|
-
return null;
|
|
116
|
-
}
|
|
117
|
-
finally {
|
|
118
|
-
if (tmpDir) {
|
|
119
|
-
await rm(tmpDir, { recursive: true, force: true }).catch((_e) => undefined);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
//# sourceMappingURL=videoTranscribe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"videoTranscribe.js","sourceRoot":"","sources":["../../../../src/engine/nodes/remote/videoTranscribe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,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AAM,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC;YAC5C,KAAK;YACL,IAAI,EAAE,OAAO;YACb,IAAI;YACJ,QAAQ,EAAE,EAAE,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE;SAC3C,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC7D,GAAG,CAAC,GAAG,CAAC,sCAAsC,MAAM,iBAAiB,CAAC,CAAC;QAEvE,OAAO;YACL,KAAK,EAAE,EAAE,GAAG,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAc;SACnD,CAAC;IACJ,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,GAAG,CAAC,GAAG,CAAC,kEAAmE,CAAW,CAAC,OAAO,EAAE,CAAC,CAAC;QAClG,OAAO,IAAI,CAAC;IACd,CAAC;YAAS,CAAC;QACT,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC;QAC9E,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export declare const voiceSelectNode: import("../../engine/define.ts").NodeDefinition<{
|
|
2
|
-
[x: string]: unknown;
|
|
3
|
-
}, {
|
|
4
|
-
description: string;
|
|
5
|
-
gender?: string | undefined;
|
|
6
|
-
age?: string | undefined;
|
|
7
|
-
accent?: string | undefined;
|
|
8
|
-
language?: string | undefined;
|
|
9
|
-
limit?: number | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
voice_id: {
|
|
12
|
-
sha256: string;
|
|
13
|
-
mime: string;
|
|
14
|
-
kind: "text";
|
|
15
|
-
url?: string | undefined;
|
|
16
|
-
path?: string | undefined;
|
|
17
|
-
metadata?: Record<string, unknown> | undefined;
|
|
18
|
-
};
|
|
19
|
-
candidates: {
|
|
20
|
-
sha256: string;
|
|
21
|
-
mime: string;
|
|
22
|
-
kind: "json";
|
|
23
|
-
url?: string | undefined;
|
|
24
|
-
path?: string | undefined;
|
|
25
|
-
metadata?: Record<string, unknown> | undefined;
|
|
26
|
-
};
|
|
27
|
-
}>;
|
|
28
|
-
//# sourceMappingURL=voiceSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voiceSelect.d.ts","sourceRoot":"","sources":["../../../../src/engine/nodes/remote/voiceSelect.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;EAsB1B,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { JsonRef, TextRef } from "../../schema/refs.js";
|
|
3
|
-
import { delegated } from "./delegate.js";
|
|
4
|
-
export const voiceSelectNode = delegated({
|
|
5
|
-
id: "voice_select",
|
|
6
|
-
version: "1.0.0",
|
|
7
|
-
category: "audio",
|
|
8
|
-
summary: 'Cast an ElevenLabs voice from a natural-language description (e.g. "warm, authoritative female narrator, American accent"). Lists the account\'s voices and ranks them against the brief, emitting the best `voice_id` as a bare-string text asset plus a ranked `candidates` JSON.',
|
|
9
|
-
when_to_use: 'Use to turn a voice description (e.g. from a `video_deconstruct` blueprint\'s `voice_description`) into a usable ElevenLabs voice id, then feed it into a `tts` node by wiring `inputs.voice_ref: $ref:<this>.voice_id` and setting `params.voice: "{{voice_ref}}"` — the engine splices the id in at run time. Review `candidates` (json) to pick a different voice. Optional `gender`/`age`/`accent`/`language` hints sharpen the ranking.',
|
|
10
|
-
inputs: z.object({}).loose(),
|
|
11
|
-
params: z
|
|
12
|
-
.object({
|
|
13
|
-
description: z.string().min(1),
|
|
14
|
-
gender: z.string().optional(),
|
|
15
|
-
age: z.string().optional(),
|
|
16
|
-
accent: z.string().optional(),
|
|
17
|
-
language: z.string().optional(),
|
|
18
|
-
limit: z.number().int().min(1).max(20).optional(),
|
|
19
|
-
})
|
|
20
|
-
.strict(),
|
|
21
|
-
outputs: z.object({ voice_id: TextRef, candidates: JsonRef }).strict(),
|
|
22
|
-
outputKinds: { voice_id: "text", candidates: "json" },
|
|
23
|
-
cost: () => ({ credits: 0, seconds_estimate: 5 }),
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=voiceSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"voiceSelect.js","sourceRoot":"","sources":["../../../../src/engine/nodes/remote/voiceSelect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,CAAC;IACvC,EAAE,EAAE,cAAc;IAClB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,OAAO;IACjB,OAAO,EACL,qRAAqR;IACvR,WAAW,EACT,8aAA8a;IAChb,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,CAAC;SACN,MAAM,CAAC;QACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC1B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC;SACD,MAAM,EAAE;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACtE,WAAW,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE;IACrD,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,gBAAgB,EAAE,CAAC,EAAE,CAAC;CAClD,CAAC,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { Canvas } from "../schema/canvas.ts";
|
|
2
|
-
export type StaticAdOpts = {
|
|
3
|
-
/** image_generate model id (resolved from the registry by the command). */
|
|
4
|
-
genModel: string;
|
|
5
|
-
/** Source image path the emitted `original` ingest reads (composition reference). */
|
|
6
|
-
imagePath: string;
|
|
7
|
-
/** Path the emitted `prompt` ingest reads (the baked blueprint). Default ./prompt.json */
|
|
8
|
-
blueprintPath?: string;
|
|
9
|
-
/** Override the aspect ratio; otherwise taken from the blueprint, else 9:16. */
|
|
10
|
-
aspectRatio?: string;
|
|
11
|
-
/** Emit the brand-font → type-specimen slot (removable). Default true. */
|
|
12
|
-
includeFont?: boolean;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Stamp each element's reference label onto the blueprint entry it came from
|
|
16
|
-
* (`subjects[i]`/`people[i]`/`brands_logos[i]`.reference_image = LABEL), so the
|
|
17
|
-
* baked prompt.json self-documents which wired slot grounds which subject. The
|
|
18
|
-
* generator already resolves references by this label; this closes the loop for
|
|
19
|
-
* the human editing the JSON. Clones the input (never mutates the caller's
|
|
20
|
-
* object) and skips any element whose locator is missing or out of range.
|
|
21
|
-
*/
|
|
22
|
-
export declare function annotateBlueprintWithLabels(blueprintInput: unknown, elementsInput: unknown): unknown;
|
|
23
|
-
/**
|
|
24
|
-
* Assemble a static-ad canvas: the baked blueprint as the editable `prompt`,
|
|
25
|
-
* the source image as the composition `original`, one `ingest` placeholder per
|
|
26
|
-
* main element, an optional brand-font → type-specimen, and an `image_generate`
|
|
27
|
-
* whose reference legend is generated from the elements actually present.
|
|
28
|
-
*/
|
|
29
|
-
export declare function scaffoldStaticAd(input: unknown, elementsInput: unknown, opts: StaticAdOpts): Canvas;
|
|
30
|
-
type StaticAdReport = {
|
|
31
|
-
element_count: number;
|
|
32
|
-
elements: Array<{
|
|
33
|
-
label: string;
|
|
34
|
-
type: string;
|
|
35
|
-
description: string | null;
|
|
36
|
-
asset_todo: string;
|
|
37
|
-
}>;
|
|
38
|
-
includes_font: boolean;
|
|
39
|
-
aspect_ratio: string;
|
|
40
|
-
};
|
|
41
|
-
/** Human-facing checklist the command prints — the real assets to supply before running. */
|
|
42
|
-
export declare function staticAdReport(input: unknown, elementsInput: unknown, opts: StaticAdOpts): StaticAdReport;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=staticAd.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticAd.d.ts","sourceRoot":"","sources":["../../../src/engine/scaffold/staticAd.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,qBAAqB,CAAC;AA2C5D,MAAM,MAAM,YAAY,GAAG;IACzB,2EAA2E;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,SAAS,EAAE,MAAM,CAAC;IAClB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AA+BF;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CAcpG;AAwCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM,CAoGnG;AAED,KAAK,cAAc,GAAG;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjG,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,4FAA4F;AAC5F,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,cAAc,CAczG"}
|
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
// Pure transform: an `image_describe` blueprint + an AI-selected list of the
|
|
2
|
-
// image's MAIN identity elements → a runnable `baker-canvas/1` static-ad canvas.
|
|
3
|
-
// No IO — the command layer runs the describe + element-selection passes, bakes
|
|
4
|
-
// the blueprint to `prompt.json`, calls this, validates the result, and writes
|
|
5
|
-
// it. The emitted canvas ingests that baked JSON as the editable "prompt" and
|
|
6
|
-
// wires one `ingest` placeholder per main element into the generator; the human
|
|
7
|
-
// edits the JSON and drops the real assets, then runs. Shares its shape with
|
|
8
|
-
// `video.ts` (tolerant schema, `[TODO]` markers, a `*Report` checklist).
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
// Aspect ratios image_generate accepts; the blueprint's estimate is honored
|
|
11
|
-
// only when it lands in this set, else we default to a vertical social format.
|
|
12
|
-
const GEN_ASPECT_RATIOS = new Set(["1:1", "4:5", "9:16", "16:9", "4:3", "3:4", "2:3", "3:2", "21:9"]);
|
|
13
|
-
const DEFAULT_ASPECT_RATIO = "9:16";
|
|
14
|
-
// --- Tolerant blueprint schema: only the fields the scaffold itself consumes. ---
|
|
15
|
-
// (The full blueprint is baked to prompt.json and ingested; this reads just what
|
|
16
|
-
// shapes the canvas: the aspect ratio and the verbatim copy for the specimen.)
|
|
17
|
-
const Blueprint = z
|
|
18
|
-
.object({
|
|
19
|
-
meta: z.object({ estimated_aspect_ratio: z.string().optional() }).loose().optional(),
|
|
20
|
-
text_content: z.array(z.object({ text: z.string().optional() }).loose()).optional(),
|
|
21
|
-
})
|
|
22
|
-
.loose();
|
|
23
|
-
// Where in the blueprint this element lives — used to stamp the reference label
|
|
24
|
-
// back onto that exact entry so the editable prompt.json self-documents which
|
|
25
|
-
// slot grounds which subject/logo/badge.
|
|
26
|
-
const ElementLocator = z
|
|
27
|
-
.object({
|
|
28
|
-
collection: z.enum(["subjects", "people", "brands_logos"]),
|
|
29
|
-
index: z.number().int().nonnegative(),
|
|
30
|
-
})
|
|
31
|
-
.loose();
|
|
32
|
-
// --- A main element chosen by the AI selection pass. ---
|
|
33
|
-
const MainElement = z
|
|
34
|
-
.object({
|
|
35
|
-
// logo | product | person | animal | badge | other
|
|
36
|
-
type: z.string(),
|
|
37
|
-
label: z.string().optional(),
|
|
38
|
-
description: z.string().optional(),
|
|
39
|
-
expression: z.string().nullable().optional(),
|
|
40
|
-
reason: z.string().optional(),
|
|
41
|
-
locator: ElementLocator.optional(),
|
|
42
|
-
})
|
|
43
|
-
.loose();
|
|
44
|
-
const MainElements = z.array(MainElement);
|
|
45
|
-
/** lower_snake_case id satisfying the canvas NodeIdRe; falls back to a stable default. */
|
|
46
|
-
function sanitizeId(raw, fallback) {
|
|
47
|
-
const id = raw
|
|
48
|
-
.toLowerCase()
|
|
49
|
-
.replace(/[^a-z0-9]+/g, "_")
|
|
50
|
-
.replace(/^_+|_+$/g, "");
|
|
51
|
-
return /^[a-z]/.test(id) ? id : `${fallback}_${id}`.replace(/_+$/g, "") || fallback;
|
|
52
|
-
}
|
|
53
|
-
/** UPPER_SNAKE reference label, deduped across elements (LOGO, LOGO_2, ...). */
|
|
54
|
-
function labelFor(el, used) {
|
|
55
|
-
const base = (el.label ?? el.type ?? "ELEMENT")
|
|
56
|
-
.toUpperCase()
|
|
57
|
-
.replace(/[^A-Z0-9]+/g, "_")
|
|
58
|
-
.replace(/^_+|_+$/g, "") || "ELEMENT";
|
|
59
|
-
let label = base;
|
|
60
|
-
let n = 2;
|
|
61
|
-
while (used.has(label))
|
|
62
|
-
label = `${base}_${n++}`;
|
|
63
|
-
used.add(label);
|
|
64
|
-
return label;
|
|
65
|
-
}
|
|
66
|
-
/** Assign each element its deduped reference label, in order — one source of truth shared by every consumer. */
|
|
67
|
-
function assignElementLabels(elements) {
|
|
68
|
-
const used = new Set();
|
|
69
|
-
return elements.map((el) => ({ el, label: labelFor(el, used) }));
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Stamp each element's reference label onto the blueprint entry it came from
|
|
73
|
-
* (`subjects[i]`/`people[i]`/`brands_logos[i]`.reference_image = LABEL), so the
|
|
74
|
-
* baked prompt.json self-documents which wired slot grounds which subject. The
|
|
75
|
-
* generator already resolves references by this label; this closes the loop for
|
|
76
|
-
* the human editing the JSON. Clones the input (never mutates the caller's
|
|
77
|
-
* object) and skips any element whose locator is missing or out of range.
|
|
78
|
-
*/
|
|
79
|
-
export function annotateBlueprintWithLabels(blueprintInput, elementsInput) {
|
|
80
|
-
if (!blueprintInput || typeof blueprintInput !== "object")
|
|
81
|
-
return blueprintInput;
|
|
82
|
-
const elements = MainElements.parse(elementsInput);
|
|
83
|
-
const clone = JSON.parse(JSON.stringify(blueprintInput));
|
|
84
|
-
for (const { el, label } of assignElementLabels(elements)) {
|
|
85
|
-
const loc = el.locator;
|
|
86
|
-
if (!loc)
|
|
87
|
-
continue;
|
|
88
|
-
const collection = clone[loc.collection];
|
|
89
|
-
const entry = Array.isArray(collection) ? collection[loc.index] : undefined;
|
|
90
|
-
if (entry && typeof entry === "object") {
|
|
91
|
-
entry.reference_image = label;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return clone;
|
|
95
|
-
}
|
|
96
|
-
/** What the generator should do with each reference, by element type. */
|
|
97
|
-
function roleForType(type) {
|
|
98
|
-
switch (type.toLowerCase()) {
|
|
99
|
-
case "logo":
|
|
100
|
-
return "the brand wordmark/logo; reproduce it as closely as possible, do not redraw or restyle it.";
|
|
101
|
-
case "badge":
|
|
102
|
-
return "a trust/rating badge; reproduce it exactly, do not invent ratings or seals.";
|
|
103
|
-
case "product":
|
|
104
|
-
return "the showcased product; keep this exact product identity. Ignore any caption text printed on this reference.";
|
|
105
|
-
case "person":
|
|
106
|
-
case "animal":
|
|
107
|
-
return "the hero subject; keep this identity AND the expression the blueprint specifies. Ignore any caption text printed on this reference.";
|
|
108
|
-
default:
|
|
109
|
-
return "an identity-bearing element; reproduce it faithfully from this reference. Ignore any caption text printed on it.";
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function todoPath(el, label) {
|
|
113
|
-
const desc = el.description ? ` — ${el.description}` : "";
|
|
114
|
-
const expr = el.expression ? `, with a ${el.expression} expression` : "";
|
|
115
|
-
return `[TODO: drop a real image for ${label} (${el.type})${desc}${expr}]`;
|
|
116
|
-
}
|
|
117
|
-
function aspectRatio(blueprint, opts) {
|
|
118
|
-
const requested = opts.aspectRatio ?? blueprint.meta?.estimated_aspect_ratio;
|
|
119
|
-
return requested && GEN_ASPECT_RATIOS.has(requested) ? requested : DEFAULT_ASPECT_RATIO;
|
|
120
|
-
}
|
|
121
|
-
/** Verbatim visible-text strings from the blueprint, for the type specimen. */
|
|
122
|
-
function specimenText(blueprint) {
|
|
123
|
-
const lines = (blueprint.text_content ?? [])
|
|
124
|
-
.map((t) => (typeof t.text === "string" ? t.text.trim() : ""))
|
|
125
|
-
.filter((t) => t.length > 0);
|
|
126
|
-
return lines.length > 0 ? lines.join("\n") : "Brand Headline";
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Assemble a static-ad canvas: the baked blueprint as the editable `prompt`,
|
|
130
|
-
* the source image as the composition `original`, one `ingest` placeholder per
|
|
131
|
-
* main element, an optional brand-font → type-specimen, and an `image_generate`
|
|
132
|
-
* whose reference legend is generated from the elements actually present.
|
|
133
|
-
*/
|
|
134
|
-
export function scaffoldStaticAd(input, elementsInput, opts) {
|
|
135
|
-
const blueprint = Blueprint.parse(input);
|
|
136
|
-
const elements = MainElements.parse(elementsInput);
|
|
137
|
-
const includeFont = opts.includeFont !== false;
|
|
138
|
-
const nodes = [];
|
|
139
|
-
// The editable "prompt": the baked image_describe blueprint, ingested as JSON.
|
|
140
|
-
nodes.push({
|
|
141
|
-
id: "prompt",
|
|
142
|
-
type: "ingest",
|
|
143
|
-
params: { source: "path", path: opts.blueprintPath ?? "./prompt.json", expect: "json" },
|
|
144
|
-
});
|
|
145
|
-
// The source image — composition reference only.
|
|
146
|
-
nodes.push({
|
|
147
|
-
id: "original",
|
|
148
|
-
type: "ingest",
|
|
149
|
-
params: { source: "path", path: opts.imagePath, expect: "image" },
|
|
150
|
-
});
|
|
151
|
-
// One ingest placeholder per main identity element, wired into the generator.
|
|
152
|
-
const usedIds = new Set(["prompt", "original", "gen", "brandfont", "type_ref"]);
|
|
153
|
-
const elementSlots = [];
|
|
154
|
-
assignElementLabels(elements).forEach(({ el, label }, i) => {
|
|
155
|
-
let id = sanitizeId(`el_${label}`, `el_${i}`);
|
|
156
|
-
while (usedIds.has(id))
|
|
157
|
-
id = `${id}_${i}`;
|
|
158
|
-
usedIds.add(id);
|
|
159
|
-
nodes.push({
|
|
160
|
-
id,
|
|
161
|
-
type: "ingest",
|
|
162
|
-
params: { source: "path", path: todoPath(el, label), expect: "image" },
|
|
163
|
-
});
|
|
164
|
-
elementSlots.push({ ref: `$ref:${id}.asset`, label, type: el.type });
|
|
165
|
-
});
|
|
166
|
-
// Optional brand-font → type-specimen (biases generated type toward the brand face).
|
|
167
|
-
const hasFont = includeFont;
|
|
168
|
-
if (hasFont) {
|
|
169
|
-
nodes.push({
|
|
170
|
-
id: "brandfont",
|
|
171
|
-
type: "ingest",
|
|
172
|
-
params: { source: "path", path: "[TODO: path to brand font .otf/.ttf]", expect: "font" },
|
|
173
|
-
});
|
|
174
|
-
nodes.push({
|
|
175
|
-
id: "type_ref",
|
|
176
|
-
type: "font_specimen",
|
|
177
|
-
inputs: { font: "$ref:brandfont.asset" },
|
|
178
|
-
params: { text: specimenText(blueprint), font_size: 72, line_height: 1.2, max_width: 1600 },
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
// Reference order: identity elements, then the type specimen, then the
|
|
182
|
-
// original (composition only) last.
|
|
183
|
-
const reference = [
|
|
184
|
-
...elementSlots.map((s) => s.ref),
|
|
185
|
-
...(hasFont ? ["$ref:type_ref.image"] : []),
|
|
186
|
-
"$ref:original.asset",
|
|
187
|
-
];
|
|
188
|
-
const legend = [
|
|
189
|
-
...elementSlots.map((s) => `- ${s.label} — ${roleForType(s.type)}`),
|
|
190
|
-
...(hasFont
|
|
191
|
-
? ["- TYPE SPECIMEN — render every text string in this exact typeface; ignore its color and layout."]
|
|
192
|
-
: []),
|
|
193
|
-
"- ORIGINAL — use ONLY for composition, layout, and proportions. IGNORE its text, its logo, its brand name, and its colors entirely — they belong to a different brand.",
|
|
194
|
-
].join("\n");
|
|
195
|
-
const prompt = [
|
|
196
|
-
"Render the advertisement described by the TARGET BLUEPRINT below faithfully. The blueprint is authoritative — render exactly what it says (palette, expressions, intent, layout). Follow the blueprint's `layout` object for the global composition: reproduce the column/row grid, each region's position and size from its x_pct/y_pct bounds, the panel splits, and every text block at the relative size, weight, case, and alignment it specifies. Do not add brand logic, do not recolor on your own, do not invent any logo, badge, face, or product.",
|
|
197
|
-
"",
|
|
198
|
-
"REFERENCE IMAGES (in the order provided) — the blueprint refers to these by their reference_image label:",
|
|
199
|
-
legend,
|
|
200
|
-
"",
|
|
201
|
-
`Render every text string verbatim from the blueprint${hasFont ? ", in the specimen's typeface" : ""}. Match the blueprint palette hex precisely (including any functional color the blueprint kept). Render each subject's expression and the ad's intent. Negatives: no text other than the blueprint's strings; exactly the subjects the blueprint names; no invented badges or icons; no competitor branding; no watermark.`,
|
|
202
|
-
"",
|
|
203
|
-
"TARGET BLUEPRINT:",
|
|
204
|
-
"{{target_blueprint}}",
|
|
205
|
-
].join("\n");
|
|
206
|
-
nodes.push({
|
|
207
|
-
id: "gen",
|
|
208
|
-
type: "image_generate",
|
|
209
|
-
inputs: { reference, target_blueprint: "$ref:prompt.asset" },
|
|
210
|
-
params: {
|
|
211
|
-
model: opts.genModel,
|
|
212
|
-
aspect_ratio: aspectRatio(blueprint, opts),
|
|
213
|
-
image_size: "2K",
|
|
214
|
-
prompt,
|
|
215
|
-
},
|
|
216
|
-
});
|
|
217
|
-
return {
|
|
218
|
-
schema: "baker-canvas/1",
|
|
219
|
-
metadata: {
|
|
220
|
-
name: "static ad reproduction",
|
|
221
|
-
description: "Scaffolded by `baker canvas scaffold-static-ad`. Edit `prompt.json` (the blueprint generated from the source image) into the ad you want, drop a real asset at each [TODO] ingest path (logo/product/subject/badge + brand font), then `baker canvas run`. The original is wired for composition only.",
|
|
222
|
-
},
|
|
223
|
-
nodes,
|
|
224
|
-
output: { node: "gen", output: "images" },
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
/** Human-facing checklist the command prints — the real assets to supply before running. */
|
|
228
|
-
export function staticAdReport(input, elementsInput, opts) {
|
|
229
|
-
const blueprint = Blueprint.parse(input);
|
|
230
|
-
const elements = MainElements.parse(elementsInput);
|
|
231
|
-
return {
|
|
232
|
-
element_count: elements.length,
|
|
233
|
-
elements: assignElementLabels(elements).map(({ el, label }) => ({
|
|
234
|
-
label,
|
|
235
|
-
type: el.type,
|
|
236
|
-
description: el.description ?? null,
|
|
237
|
-
asset_todo: todoPath(el, label),
|
|
238
|
-
})),
|
|
239
|
-
includes_font: opts.includeFont !== false,
|
|
240
|
-
aspect_ratio: aspectRatio(blueprint, opts),
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
//# sourceMappingURL=staticAd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"staticAd.js","sourceRoot":"","sources":["../../../src/engine/scaffold/staticAd.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,iFAAiF;AACjF,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,gFAAgF;AAChF,6EAA6E;AAC7E,yEAAyE;AAEzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,4EAA4E;AAC5E,+EAA+E;AAC/E,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACtG,MAAM,oBAAoB,GAAG,MAAM,CAAC;AAEpC,mFAAmF;AACnF,iFAAiF;AACjF,+EAA+E;AAC/E,MAAM,SAAS,GAAG,CAAC;KAChB,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IACpF,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpF,CAAC;KACD,KAAK,EAAE,CAAC;AAGX,gFAAgF;AAChF,8EAA8E;AAC9E,yCAAyC;AACzC,MAAM,cAAc,GAAG,CAAC;KACrB,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAA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
2
|
-
/** Snap an arbitrary scene length to the nearest Seedance-allowed clip duration (≤15s). */
|
|
3
|
-
export declare function snapToSeedance(durationS: number): number;
|
|
4
|
-
export type ScaffoldVideoOpts = {
|
|
5
|
-
imageModel: string;
|
|
6
|
-
videoModel: string;
|
|
7
|
-
/** Path the canvas references for the overlay composition (command copies it there). */
|
|
8
|
-
overlayCompositionPath: string;
|
|
9
|
-
/** Path the emitted `prompt` ingest reads (the baked blueprint). Default ./prompt.json */
|
|
10
|
-
blueprintPath?: string;
|
|
11
|
-
/** "generate" (default) regenerates frames anchored on the real frame; "reuse" wires the real frame straight in. */
|
|
12
|
-
frames?: "generate" | "reuse";
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Document the recurring elements in the baked prompt.json: add a top-level
|
|
16
|
-
* `reference_elements` summary (label/type/description/scenes), and stamp
|
|
17
|
-
* `reference_image: LABEL` onto the matching `global.cast[*]` entry by id — so
|
|
18
|
-
* the human editing the JSON sees which wired slot grounds which persona. Clones
|
|
19
|
-
* the input (never mutates the caller's object).
|
|
20
|
-
*/
|
|
21
|
-
export declare function annotateBlueprintWithElements(blueprintInput: unknown, elementsInput: unknown): unknown;
|
|
22
|
-
/**
|
|
23
|
-
* Assemble a full video reproduction canvas. The baked blueprint as the editable
|
|
24
|
-
* `prompt`, one shared `ingest` per recurring element, then the visual spine
|
|
25
|
-
* (per-scene boundary frames → clips → concat), an optional burned-in overlay
|
|
26
|
-
* pass, and an optional audio mix (music + voiceover + SFX) muxed under the video.
|
|
27
|
-
*/
|
|
28
|
-
export declare function scaffoldVideoCanvas(input: unknown, elementsInput: unknown, opts: ScaffoldVideoOpts): Canvas;
|
|
29
|
-
type VideoReport = {
|
|
30
|
-
scene_count: number;
|
|
31
|
-
elements: Array<{
|
|
32
|
-
label: string;
|
|
33
|
-
type: string;
|
|
34
|
-
description: string | null;
|
|
35
|
-
scenes: number[];
|
|
36
|
-
asset_todo: string;
|
|
37
|
-
}>;
|
|
38
|
-
dialogue: Array<{
|
|
39
|
-
scene: number;
|
|
40
|
-
speaker: string;
|
|
41
|
-
line: string;
|
|
42
|
-
voice_description: string | null;
|
|
43
|
-
}>;
|
|
44
|
-
sfx_count: number;
|
|
45
|
-
overlay_count: number;
|
|
46
|
-
clamped_scenes: Array<{
|
|
47
|
-
scene: number;
|
|
48
|
-
original_s: number;
|
|
49
|
-
clip_s: number;
|
|
50
|
-
}>;
|
|
51
|
-
has_music: boolean;
|
|
52
|
-
};
|
|
53
|
-
/** Human-facing checklist the command prints — what needs review/assets after scaffolding. */
|
|
54
|
-
export declare function videoReport(input: unknown, elementsInput: unknown): VideoReport;
|
|
55
|
-
export {};
|
|
56
|
-
//# sourceMappingURL=video.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/engine/scaffold/video.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,qBAAqB,CAAC;AAa5D,2FAA2F;AAC3F,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAaxD;AA8FD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,sBAAsB,EAAE,MAAM,CAAC;IAC/B,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oHAAoH;IACpH,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;CAC/B,CAAC;AA4DF;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO,CAgBtG;AAqWD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,CA6G3G;AA2DD,KAAK,WAAW,GA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