@clipwright/core 0.78.0 → 0.79.0
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/dist/account.d.ts +1 -0
- package/dist/account.js +1 -0
- package/dist/ad-guide.d.ts +2 -1
- package/dist/ad-guide.js +4 -4
- package/dist/api-failure.d.ts +1 -0
- package/dist/api-failure.js +6 -3
- package/dist/contract-dispositions.d.ts +20 -4
- package/dist/contract-dispositions.js +3 -0
- package/dist/contracts/v1/workflow-brief.d.ts +34 -4
- package/dist/contracts/v1/workflow-brief.js +12 -3
- package/dist/contracts/v1/workflow-catalog.d.ts +52 -4
- package/dist/contracts/v1/workflow-client.d.ts +17 -2
- package/dist/contracts/v1/workflow-execution.d.ts +26 -0
- package/dist/contracts/v1/workflow-next.d.ts +13 -0
- package/dist/contracts/v1/workflow-plan.d.ts +69 -6
- package/dist/contracts/v1/workflow-run-read.d.ts +36 -0
- package/dist/edit-style-names.d.ts +9 -0
- package/dist/edit-style-names.js +4 -0
- package/dist/edit-style.d.ts +70 -0
- package/dist/edit-style.js +202 -0
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -0
- package/dist/film-guide.d.ts +2 -1
- package/dist/film-guide.js +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/mcp-ugc-descriptions.d.ts +2 -1
- package/dist/mcp-ugc-descriptions.js +5 -3
- package/dist/reference-analysis.d.ts +13 -0
- package/dist/reference-analysis.js +10 -1
- package/dist/reference-display.d.ts +2 -0
- package/dist/reference-display.js +9 -1
- package/dist/run-static-warnings.js +2 -2
- package/dist/skills.d.ts +186 -111
- package/dist/skills.js +97 -39
- package/dist/voice-admission.d.ts +33 -27
- package/dist/workflows/methods/faceless-explainer.d.ts +7 -2
- package/dist/workflows/methods/kinetic-launch.d.ts +14 -4
- package/dist/workflows/methods/product-image-story.d.ts +7 -2
- package/dist/workflows/methods/reference-remake.d.ts +7 -2
- package/dist/workflows/methods/reference-remake.js +1 -1
- package/dist/workflows/methods/shared.d.ts +7 -2
- package/dist/workflows/methods/ugc-faq-answer.d.ts +7 -2
- package/dist/workflows/methods/ugc-faq-answer.js +1 -1
- package/dist/workflows/methods/ugc-product-intro.d.ts +7 -2
- package/dist/workflows/methods/ugc-product-intro.js +1 -1
- package/dist/workflows/methods/website-proof-demo.d.ts +14 -4
- package/dist/workflows/reference-remake.d.ts +9 -1
- package/dist/workflows/reference-remake.js +3 -2
- package/dist/workflows/validate.js +4 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { type ReferenceProfileInput as ReferenceProfile } from '../reference-pro
|
|
|
3
3
|
import { type GenerationShot } from '../generation-shot.js';
|
|
4
4
|
import { LIVE_SHOT_PRODUCT_PLACEMENTS } from '../skills.js';
|
|
5
5
|
import type { CapabilityProfile } from '../contracts/v1/workflow-catalog.js';
|
|
6
|
+
import type { EditStyleField } from '../edit-style.js';
|
|
6
7
|
import { type WorkflowPlanDocument } from '../contracts/v1/workflow-plan.js';
|
|
7
8
|
import { type WorkflowIssue } from '../contracts/v1/workflow-primitives.js';
|
|
8
9
|
import { type RemakeChooser } from './remake-chooser.js';
|
|
@@ -2144,5 +2145,12 @@ export declare function sceneBriefOf(graphic: ReferenceGraphic, asked: boolean,
|
|
|
2144
2145
|
} | undefined;
|
|
2145
2146
|
export declare function referenceScriptWords(script: string): ReferenceScriptWord[];
|
|
2146
2147
|
export declare const proportionalSpans: ReferenceSpanPlanner;
|
|
2147
|
-
export
|
|
2148
|
+
export type RemakeStyle = (native: Record<string, unknown>) => {
|
|
2149
|
+
input: Record<string, unknown>;
|
|
2150
|
+
pins?: {
|
|
2151
|
+
fields: EditStyleField[];
|
|
2152
|
+
left_out?: string[];
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2155
|
+
export declare function compileReferenceRemake(input: unknown, capabilities: CapabilityProfile, planSpans?: ReferenceSpanPlanner, choose?: RemakeChooser, facts?: ReferenceAssetFacts, style?: RemakeStyle): ReferenceRemakeResult;
|
|
2148
2156
|
export {};
|
|
@@ -327,7 +327,7 @@ function callStageOf(profile, listening, note) {
|
|
|
327
327
|
note(listening, `the call phone's measured staging (${stage.error.issues[0]?.message ?? 'out of bounds'})`, 'the reference call scene\'s place and rise');
|
|
328
328
|
return stage.success ? stage.data : undefined;
|
|
329
329
|
}
|
|
330
|
-
export function compileReferenceRemake(input, capabilities, planSpans = proportionalSpans, choose, facts) {
|
|
330
|
+
export function compileReferenceRemake(input, capabilities, planSpans = proportionalSpans, choose, facts, style) {
|
|
331
331
|
const parsed = planReferenceRemake.safeParse(input);
|
|
332
332
|
if (!parsed.success)
|
|
333
333
|
return { kind: 'invalid', issues: parsed.error.issues.map(issue => ({ kind: 'invalid_request', path: issue.path.join('.'), message: issue.message })) };
|
|
@@ -1632,11 +1632,12 @@ export function compileReferenceRemake(input, capabilities, planSpans = proporti
|
|
|
1632
1632
|
suggested_substitute: 'fewer graphics in the reference, or edit the plan' }];
|
|
1633
1633
|
})();
|
|
1634
1634
|
const firstSentence = parts({ start: 0, end: words.length })[0];
|
|
1635
|
+
const styled = style?.(native);
|
|
1635
1636
|
const document = workflowPlanDocument.safeParse({ v: 1,
|
|
1636
1637
|
method: { method_id: method.id, version: method.version, content_digest: method.content_digest, capability_digest: capabilities.content_digest },
|
|
1637
1638
|
brief: { audience: request.audience ?? 'Viewers of short ads in the style of the reference',
|
|
1638
1639
|
message: request.message ?? script.slice(words[firstSentence.start].from, words[firstSentence.end - 1].to),
|
|
1639
|
-
script, native: { skill: 'make_ugc', input: native },
|
|
1640
|
+
script, native: { skill: 'make_ugc', input: styled?.input ?? native }, ...(styled?.pins ? { edit_style_default: styled.pins } : {}),
|
|
1640
1641
|
reference_profile: { ...withoutWords(profile), music: '', unmapped,
|
|
1641
1642
|
beats: profile.beats.map((beat, index) => ({ ...beat, spoken_summary: '', graphics: beat.graphics.map((graphic, at) => ({ ...graphic, label_hint: '',
|
|
1642
1643
|
...(converted.has(graphic) ? { kind: converted.get(graphic) } : scened.has(`${index}:${at}`) ? { kind: 'scene' } : {}) })) })) },
|
|
@@ -5,6 +5,7 @@ import { planSemanticInserts } from '../semantic-inserts.js';
|
|
|
5
5
|
import { resolveFacelessCustomerAnchors } from '../faceless-customer-anchors.js';
|
|
6
6
|
import { FIELD_DISPOSITIONS } from '../contract-dispositions.js';
|
|
7
7
|
import { admittedUgcResolution, DEFAULT_RESOLUTION, makeUgcInputShape } from '../skills.js';
|
|
8
|
+
import { STYLE_FIELD_DEFAULTS } from '../edit-style-names.js';
|
|
8
9
|
import { referenceProfileWarnings } from '../reference-profile.js';
|
|
9
10
|
import { queryWorkflowMethod } from './catalog.js';
|
|
10
11
|
import { workflowProductReferenceWarnings } from './product-references.js';
|
|
@@ -19,8 +20,9 @@ const nativeFieldRequested = (input, field, skill) => {
|
|
|
19
20
|
return false;
|
|
20
21
|
if (skill === 'make_ugc' && field in FIELD_DISPOSITIONS) {
|
|
21
22
|
const standard = makeUgcInputShape[field].safeParse(undefined);
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
const fallback = standard.success && standard.data !== undefined ? standard.data : STYLE_FIELD_DEFAULTS[field];
|
|
24
|
+
if (fallback !== undefined)
|
|
25
|
+
return input[field] !== fallback;
|
|
24
26
|
}
|
|
25
27
|
return true;
|
|
26
28
|
};
|