gooseworks 0.5.9-dev.61.827a2d9f → 0.5.9

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.
Files changed (45) hide show
  1. package/dist/kit/core/assembly-timeline.d.ts +184 -0
  2. package/dist/kit/core/assembly-timeline.d.ts.map +1 -0
  3. package/dist/kit/core/assembly-timeline.js +476 -0
  4. package/dist/kit/core/assembly-timeline.js.map +1 -0
  5. package/dist/kit/core/device.d.ts.map +1 -1
  6. package/dist/kit/core/device.js +1 -0
  7. package/dist/kit/core/device.js.map +1 -1
  8. package/dist/kit/core/eyes.d.ts +22 -1
  9. package/dist/kit/core/eyes.d.ts.map +1 -1
  10. package/dist/kit/core/eyes.js +40 -3
  11. package/dist/kit/core/eyes.js.map +1 -1
  12. package/dist/kit/core/final-measure.d.ts +138 -0
  13. package/dist/kit/core/final-measure.d.ts.map +1 -0
  14. package/dist/kit/core/final-measure.js +492 -0
  15. package/dist/kit/core/final-measure.js.map +1 -0
  16. package/dist/kit/core/run.d.ts +7 -0
  17. package/dist/kit/core/run.d.ts.map +1 -1
  18. package/dist/kit/core/run.js +298 -6
  19. package/dist/kit/core/run.js.map +1 -1
  20. package/dist/kit/core/version.d.ts +3 -1
  21. package/dist/kit/core/version.d.ts.map +1 -1
  22. package/dist/kit/core/version.js +4 -2
  23. package/dist/kit/core/version.js.map +1 -1
  24. package/dist/kit/line/types.d.ts +2 -0
  25. package/dist/kit/line/types.d.ts.map +1 -1
  26. package/dist/kit/maker/inputs.js +1 -1
  27. package/dist/kit/maker/make.d.ts +8 -0
  28. package/dist/kit/maker/make.d.ts.map +1 -1
  29. package/dist/kit/maker/make.js +34 -1
  30. package/dist/kit/maker/make.js.map +1 -1
  31. package/dist/kit/maker/parts/html-frames/{1.2.1 → 1.3.1}/part.json +42 -4
  32. package/dist/kit/maker/parts/html-frames/src/part.d.ts.map +1 -1
  33. package/dist/kit/maker/parts/html-frames/src/part.js +5 -1
  34. package/dist/kit/maker/parts/html-frames/src/part.js.map +1 -1
  35. package/dist/kit/maker/under.d.ts +2 -0
  36. package/dist/kit/maker/under.d.ts.map +1 -1
  37. package/dist/kit/maker/under.js +11 -0
  38. package/dist/kit/maker/under.js.map +1 -1
  39. package/dist/skills/server-entry-skills.d.ts +1 -1
  40. package/dist/skills/server-entry-skills.d.ts.map +1 -1
  41. package/dist/skills/server-entry-skills.js +39 -39
  42. package/dist/skills/server-entry-skills.js.map +1 -1
  43. package/package.json +9 -4
  44. package/skills/make-custom-video/SKILL.md +23 -29
  45. package/skills/manifest.json +2 -2
@@ -0,0 +1,184 @@
1
+ export declare const ASSEMBLY_FORMAT: "gooseworks-assembly-timeline/1";
2
+ export declare const SPEECH_MODES: readonly ["native_dialogue", "audio_driven_lipsync", "narration", "singing", "mixed", "none"];
3
+ export declare const SOUNDTRACK_MODES: readonly ["source_ambience", "music", "sfx", "intentional_silence"];
4
+ export type SpeechMode = typeof SPEECH_MODES[number];
5
+ export type SoundtrackMode = typeof SOUNDTRACK_MODES[number];
6
+ export interface AssemblySource {
7
+ asset_id: string;
8
+ sha256: string;
9
+ /** Local transport only; excluded from the portable revision and stripped before upload. */
10
+ path?: string;
11
+ in_ms: number;
12
+ out_ms: number;
13
+ speed: number;
14
+ /** Picture sources only: the part of the source shown, in whole source pixels. */
15
+ crop?: {
16
+ x: number;
17
+ y: number;
18
+ w: number;
19
+ h: number;
20
+ };
21
+ /** Picture sources only: how the shown part is scaled. Uneven stretch over 2% is refused; zoom is checked against the real source. */
22
+ scale_x?: number;
23
+ scale_y?: number;
24
+ }
25
+ /** Picture stretch and zoom limits (fix-forward contract section 7, as amended 15 Oct). */
26
+ export declare const MAX_UNEVEN_STRETCH = 0.02;
27
+ /**
28
+ * The most a crop may zoom in: the crop's fit-scale over the full source frame's fit-scale.
29
+ * Plain resolution scaling of the whole frame (H3's 432×768 to 1080×1920) is not zoom.
30
+ */
31
+ export declare const MAX_ZOOM = 1.5;
32
+ /** Planned pause and freeze limits, the same numbers the final measurements use. */
33
+ export declare const MAX_PLANNED_PAUSE_MS: 1500;
34
+ export declare const MAX_PLANNED_TOTAL_SHARE: 0.1;
35
+ /** How far a crop zooms in when its picture fills a `frame` (cover fit); 1 for the whole source. */
36
+ export declare function cropZoom(crop: {
37
+ w: number;
38
+ h: number;
39
+ }, source: {
40
+ width: number;
41
+ height: number;
42
+ }, frame: {
43
+ width: number;
44
+ height: number;
45
+ }): number;
46
+ /** A segment that deliberately shows an earlier shot again says so with an intent starting with this. */
47
+ export declare const CALLBACK_INTENT = "callback:";
48
+ export interface AssemblySegment {
49
+ id: string;
50
+ scene_id: string;
51
+ start_ms: number;
52
+ end_ms: number;
53
+ video: AssemblySource;
54
+ speech_mode: SpeechMode;
55
+ depicts_speech: boolean;
56
+ native_audio: 'preserve' | 'muted';
57
+ speech_driver?: AssemblySource & {
58
+ task: 'exact_audio';
59
+ };
60
+ intent?: string;
61
+ }
62
+ export interface AssemblyCue {
63
+ id: string;
64
+ role: Exclude<SpeechMode, 'mixed' | 'none'> | 'source_ambience' | 'music' | 'sfx';
65
+ source: AssemblySource;
66
+ start_ms: number;
67
+ end_ms: number;
68
+ gain_db: number;
69
+ loop: boolean;
70
+ intent?: string;
71
+ }
72
+ export interface AssemblyTimeline {
73
+ format: typeof ASSEMBLY_FORMAT;
74
+ creative_contract_revision: string;
75
+ duration_ms: number;
76
+ speech_mode: SpeechMode;
77
+ soundtrack_modes: SoundtrackMode[];
78
+ segments: AssemblySegment[];
79
+ audio_cues: AssemblyCue[];
80
+ pauses: Array<{
81
+ start_ms: number;
82
+ end_ms: number;
83
+ scope: 'speech' | 'all_audio';
84
+ reason: string;
85
+ }>;
86
+ required_cue_ids: string[];
87
+ visual_overrides?: Array<{
88
+ start_ms: number;
89
+ end_ms: number;
90
+ kind: 'freeze' | 'transition';
91
+ reason: string;
92
+ source?: AssemblySource;
93
+ scene_id?: string;
94
+ source_kind?: 'image' | 'video';
95
+ segment_ids?: string[];
96
+ }>;
97
+ }
98
+ export interface AssemblyPictureSource {
99
+ id: string;
100
+ scene_id: string;
101
+ source: AssemblySource;
102
+ source_kind: 'image' | 'video';
103
+ }
104
+ /** Overrides can introduce picture bytes that never appear in ordinary clips. */
105
+ export declare function assemblyPictureSources(timeline: AssemblyTimeline): AssemblyPictureSource[];
106
+ export interface AssemblyCheck {
107
+ status: 'complete' | 'incomplete' | 'invalid';
108
+ timeline: AssemblyTimeline | null;
109
+ revision: string | null;
110
+ issues: string[];
111
+ /** Legacy intent is retained for review, never inferred from transcript absence. */
112
+ legacy?: Record<string, unknown>;
113
+ }
114
+ /** How the reviewer perceived the sound: heard it (a person or an audio-capable model), or relied on the measurements. */
115
+ export type AudioPerception = 'listened' | 'measured';
116
+ /** How the reviewer perceived the moving picture: watched it, or relied on the measurements. */
117
+ export type MotionPerception = 'watched' | 'measured';
118
+ export declare const AUDIO_PERCEPTIONS: readonly AudioPerception[];
119
+ export declare const MOTION_PERCEPTIONS: readonly MotionPerception[];
120
+ /**
121
+ * `capabilities` (fix-forward contract section 2). The old boolean shape still parses for one release:
122
+ * `true` reads as listened/watched; `false` is refused.
123
+ */
124
+ export type ReviewCapabilities = {
125
+ audio: AudioPerception;
126
+ motion: MotionPerception;
127
+ } | {
128
+ audio_perception: boolean;
129
+ motion_perception: boolean;
130
+ };
131
+ export interface FinalContentReview {
132
+ output_sha256: string;
133
+ timeline_revision: string;
134
+ creative_contract_revision: string;
135
+ reviewer: string;
136
+ verdict: 'approved' | 'needs_revision' | 'incomplete';
137
+ capabilities: ReviewCapabilities;
138
+ coverage: Array<{
139
+ start_ms: number;
140
+ end_ms: number;
141
+ }>;
142
+ /** Matched case-insensitively: only P2 lets the upload go on; P0, P1, blocker and anything unknown block. */
143
+ unresolved_issues: Array<{
144
+ severity: string;
145
+ message: string;
146
+ }>;
147
+ dimensions: Record<string, {
148
+ status: 'pass' | 'needs_revision' | 'incomplete' | 'not_applicable';
149
+ note: string;
150
+ }>;
151
+ }
152
+ /** What a measured review leans on: the kit's own final measurements of the same bytes. */
153
+ export interface FinalMeasureSummary {
154
+ output_sha256: string;
155
+ checks: Array<{
156
+ id: string;
157
+ result: 'pass' | 'fail' | 'not_applicable';
158
+ }>;
159
+ }
160
+ export declare const CONTENT_DIMENSIONS: readonly ["reference_and_concept", "brand_and_product", "scale_and_geometry", "action_and_continuity", "lip_sync", "voice_performance", "pronunciation", "sound_and_silence", "pacing_and_joins", "camera_and_lighting", "overlays"];
161
+ /** The timeline without machine-specific `path` values: what the revision hashes and what goes to the server. */
162
+ export declare function portableTimeline<T>(value: T): T;
163
+ /** Excludes machine-specific transport, while retaining exact assets and source clocks. */
164
+ export declare function assemblyTimelineRevision(value: AssemblyTimeline): string;
165
+ /** Structural and clock checks. A complete result still requires source-byte and content review. */
166
+ export declare function normalizeAssemblyTimeline(raw: unknown, legacy?: Record<string, unknown>): AssemblyCheck;
167
+ export declare const FINAL_ASSEMBLY_DURATION_TOLERANCE_MS = 100;
168
+ export declare function measuredFinalDurationMs(seconds: number | null | undefined): number | null;
169
+ /**
170
+ * The review's perception, in the new shape. The old booleans are aliases: `true` reads as
171
+ * listened/watched and `false` is refused, so a review that admits it could not hear or see never passes.
172
+ */
173
+ export declare function reviewCapabilities(raw: unknown): {
174
+ audio: AudioPerception | null;
175
+ motion: MotionPerception | null;
176
+ problems: string[];
177
+ };
178
+ /**
179
+ * Omit measurement only for preflight; final acceptance needs the measured duration. A `measured`
180
+ * perception is accepted only with `finalMeasure` of the same bytes in which every check passed
181
+ * (or does not apply); the server adds its own frame judge on top.
182
+ */
183
+ export declare function finalContentReviewProblems(raw: unknown, outputSha: string, assembly: AssemblyCheck, measuredDurationMs?: number | null, finalMeasure?: FinalMeasureSummary | null): string[];
184
+ //# sourceMappingURL=assembly-timeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assembly-timeline.d.ts","sourceRoot":"","sources":["../../../src/kit/core/assembly-timeline.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,EAAG,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