@aicopycoders/exodus 2026.11.1100-beta.2 → 2026.11.1100-beta.4

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.
@@ -0,0 +1,230 @@
1
+ import type { FlagOccurrence } from "../lib/args.js";
2
+ import { type FlowResult, type VideoDeps } from "./video.js";
3
+ export declare const SWIPE_BREAKDOWNS_PATH = "/api/v2/video/breakdowns";
4
+ export declare const SWIPE_UPLOAD_URL_PATH = "/api/v2/video/breakdowns/upload-url";
5
+ export declare const SWIPE_TEMPLATE_PATH = "/api/v2/video/swipe-template";
6
+ export declare const SWIPE_PRODUCTS_PATH = "/api/v2/video/swipe-products";
7
+ export declare const SWIPES_PATH = "/api/v2/video/swipes";
8
+ export declare const SWIPE_RUNS_PATH = "/api/v2/video/swipe-runs";
9
+ export interface SwipeBreakdown {
10
+ _id: string;
11
+ sourceKind: "url" | "file" | "ad";
12
+ sourceUrl: string | null;
13
+ fileName: string | null;
14
+ status: "queued" | "running" | "done" | "failed";
15
+ error: string | null;
16
+ steps: Array<{
17
+ id: string;
18
+ label: string;
19
+ status: "waiting" | "running" | "done" | "failed";
20
+ }>;
21
+ spentUsd: number | null;
22
+ costIsEstimate: boolean;
23
+ reused: boolean;
24
+ }
25
+ export interface SwipeFull {
26
+ source: {
27
+ advertiser?: string;
28
+ durationSec: number;
29
+ aspectRatio: string;
30
+ };
31
+ footage: {
32
+ shots: Array<{
33
+ id: string;
34
+ start: number;
35
+ end: number;
36
+ kind: "aroll" | "cutaway";
37
+ shotSize: string;
38
+ camera: string;
39
+ description: string;
40
+ }>;
41
+ };
42
+ buildSheet: {
43
+ cast: Array<{
44
+ characterId: string;
45
+ name: string;
46
+ embodiment: "on-screen" | "voice-only" | "behind-camera";
47
+ look: string;
48
+ voice: string;
49
+ }>;
50
+ script: Array<{
51
+ lineId: string;
52
+ speakerId: string | null;
53
+ start: number;
54
+ end: number;
55
+ text: string;
56
+ }>;
57
+ };
58
+ warnings: string[];
59
+ }
60
+ export interface SwipeTemplateView {
61
+ kind: {
62
+ key: string;
63
+ label: string;
64
+ why: string;
65
+ };
66
+ look: {
67
+ slug: string;
68
+ label: string;
69
+ why: string;
70
+ };
71
+ lines: number;
72
+ seconds: number;
73
+ }
74
+ export interface SwipeDraft {
75
+ script: string;
76
+ conceit: string;
77
+ style: string;
78
+ direction: string;
79
+ note: {
80
+ kept: string;
81
+ changed: string;
82
+ };
83
+ lengthGap?: {
84
+ ours: number;
85
+ theirs: number;
86
+ };
87
+ }
88
+ export interface SwipeView {
89
+ _id: string;
90
+ breakdownId: string;
91
+ productId: string;
92
+ request: {
93
+ mode: ServerMode;
94
+ closeness?: number;
95
+ look?: string;
96
+ };
97
+ outcome: {
98
+ kind: "written";
99
+ draft: SwipeDraft;
100
+ } | {
101
+ kind: "refused";
102
+ why: string;
103
+ };
104
+ checksFound?: string[];
105
+ workflowRunId: string | null;
106
+ costUsd: number | null;
107
+ }
108
+ export interface SwipeListRow {
109
+ _id: string;
110
+ breakdownId: string;
111
+ request: {
112
+ mode: ServerMode;
113
+ closeness?: number;
114
+ };
115
+ workflowRunId: string | null;
116
+ source: {
117
+ sourceKind: string;
118
+ sourceUrl?: string;
119
+ fileName?: string;
120
+ } | null;
121
+ outcome?: {
122
+ kind: "written" | "refused";
123
+ };
124
+ costUsd?: number | null;
125
+ }
126
+ type ServerMode = "whole" | "hook" | "their-format" | "new-look";
127
+ export declare const SWIPE_MODES: ReadonlyArray<{
128
+ flag: string;
129
+ mode: ServerMode;
130
+ label: string;
131
+ helper: string;
132
+ }>;
133
+ export declare const SWIPE_CLOSENESS: ReadonlyArray<{
134
+ step: number;
135
+ flag: string;
136
+ name: string;
137
+ line: string;
138
+ }>;
139
+ export declare const DEFAULT_CLOSENESS = 2;
140
+ export declare const NO_PRICE = "The CLI prints no price for this step.";
141
+ export type PaidStep = "breakdown" | "template" | "write" | "start" | "start-one-shot";
142
+ export declare const PAID: Record<PaidStep, {
143
+ buys: string;
144
+ paidBy: string;
145
+ }>;
146
+ export declare function needsYesResult(step: PaidStep, json: boolean, choice?: string[]): FlowResult;
147
+ export type SwipeSource = {
148
+ kind: "file";
149
+ file: string;
150
+ } | {
151
+ kind: "url";
152
+ url: string;
153
+ } | {
154
+ kind: "ad";
155
+ swipeAdId: string;
156
+ };
157
+ export interface WriteAsk {
158
+ productId: string;
159
+ mode: ServerMode;
160
+ closeness: number;
161
+ look?: string;
162
+ scriptFile?: string;
163
+ }
164
+ export interface StartAsk {
165
+ style?: string;
166
+ title?: string;
167
+ music: boolean;
168
+ oneShot: boolean;
169
+ }
170
+ export interface SwipeOpts {
171
+ json: boolean;
172
+ yes: boolean;
173
+ wait: boolean;
174
+ }
175
+ export type SwipePlan = {
176
+ kind: "usage";
177
+ line: string;
178
+ } | {
179
+ kind: "breakdown";
180
+ source: SwipeSource;
181
+ opts: SwipeOpts;
182
+ } | {
183
+ kind: "status";
184
+ breakdownId: string;
185
+ full: boolean;
186
+ opts: SwipeOpts;
187
+ } | {
188
+ kind: "template";
189
+ breakdownId: string;
190
+ opts: SwipeOpts;
191
+ } | {
192
+ kind: "products";
193
+ opts: SwipeOpts;
194
+ } | {
195
+ kind: "write";
196
+ breakdownId: string;
197
+ ask: WriteAsk;
198
+ opts: SwipeOpts;
199
+ } | {
200
+ kind: "show";
201
+ swipeId: string;
202
+ opts: SwipeOpts;
203
+ } | {
204
+ kind: "list";
205
+ opts: SwipeOpts;
206
+ } | {
207
+ kind: "start";
208
+ swipeId: string;
209
+ ask: StartAsk;
210
+ opts: SwipeOpts;
211
+ };
212
+ export declare function parseSwipeMode(value: string): ServerMode | null;
213
+ export declare function parseCloseness(value: string): number | null;
214
+ export declare function planSwipeCommand(rest: string[], occurrences: FlagOccurrence[]): SwipePlan;
215
+ export interface SwipeRunOptions extends SwipeOpts {
216
+ onProgressLine?: (line: string) => void;
217
+ }
218
+ export declare function swipeBreakdownFlow(source: SwipeSource, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
219
+ export declare function swipeStatusFlow(breakdownId: string, opts: SwipeRunOptions, deps: VideoDeps, full?: boolean): Promise<FlowResult>;
220
+ export declare function fullLines(data: Record<string, unknown>): string[];
221
+ export declare function swipeTemplateFlow(breakdownId: string, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
222
+ export declare function swipeProductsFlow(opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
223
+ export declare function swipeWriteFlow(breakdownId: string, ask: WriteAsk, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
224
+ export declare function swipeShowFlow(swipeId: string, opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
225
+ export declare function swipeListFlow(opts: SwipeOpts, deps: VideoDeps): Promise<FlowResult>;
226
+ export declare function swipeStartFlow(swipeId: string, ask: StartAsk, opts: SwipeRunOptions, deps: VideoDeps): Promise<FlowResult>;
227
+ export declare function runSwipePlan(plan: Exclude<SwipePlan, {
228
+ kind: "usage";
229
+ }>, deps: VideoDeps, onProgressLine?: (line: string) => void): Promise<FlowResult>;
230
+ export {};