trace-avatar-render 0.2.2 → 0.2.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.
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-NFJMQBQ4.js → chunk-7N5RZAMS.js} +48 -2
- package/dist/chunk-7N5RZAMS.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-NFJMQBQ4.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1230,11 +1230,19 @@ interface DirectOptions {
|
|
|
1230
1230
|
session?: Session;
|
|
1231
1231
|
/** Options for a session function, for the first window (a window of its own can pass others). */
|
|
1232
1232
|
sessionOptions?: Record<string, unknown>;
|
|
1233
|
+
/** Where to save a screenshot of the page when the script fails (to see what it was looking at). */
|
|
1234
|
+
failShot?: string;
|
|
1233
1235
|
/** Open the first window signed out (default false). */
|
|
1234
1236
|
signedOut?: boolean;
|
|
1235
1237
|
alias?: Alias | string;
|
|
1236
1238
|
/** Folders served at a path of the app's own address (props the app doesn't have): { '/__terminal': 'dir' }. */
|
|
1237
1239
|
routes?: Record<string, string>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Addresses answered by others while filming, the address bar unchanged: { 'https://api.example.com':
|
|
1242
|
+
* 'https://demo-api.example.com' } films a live front end against a demo API. Only what the browser fetches is
|
|
1243
|
+
* rerouted; a page its own server builds still asks that server's API.
|
|
1244
|
+
*/
|
|
1245
|
+
reroute?: Record<string, string>;
|
|
1238
1246
|
/** Narrate with this voice. */
|
|
1239
1247
|
voice?: Voice;
|
|
1240
1248
|
/** The spoken lines by scene (instead of each caption): a script or its path. */
|
|
@@ -1268,6 +1276,8 @@ declare function aliasOf(url: string, alias?: Alias | string): {
|
|
|
1268
1276
|
localApi?: string;
|
|
1269
1277
|
rewrite: string[];
|
|
1270
1278
|
};
|
|
1279
|
+
/** Where a request goes under a reroute map: the same path and query at the other origin, or null. */
|
|
1280
|
+
declare function rerouted(url: string, map: Record<string, string>): string | null;
|
|
1271
1281
|
/** Make one director video. A script that throws (a failed check) makes nothing. */
|
|
1272
1282
|
declare function direct(o: DirectOptions): Promise<DirectResult>;
|
|
1273
1283
|
|
|
@@ -1304,6 +1314,8 @@ interface CampaignApp {
|
|
|
1304
1314
|
alias?: string | Alias;
|
|
1305
1315
|
/** Folders served at a path of the app's own address, for director videos: { "/__props": "props" }. */
|
|
1306
1316
|
routes?: Record<string, string>;
|
|
1317
|
+
/** Addresses answered by others while filming (director videos): { "https://api.x.com": "https://demo-api.x.com" }. */
|
|
1318
|
+
reroute?: Record<string, string>;
|
|
1307
1319
|
}
|
|
1308
1320
|
interface CampaignLook {
|
|
1309
1321
|
/** A brand file (--brand): frame, background, cards, watermark … */
|
|
@@ -1470,4 +1482,4 @@ declare function makeCampaign(c: LoadedCampaign, o?: MakeOptions): Promise<{
|
|
|
1470
1482
|
*/
|
|
1471
1483
|
declare function saysOf(c: Pick<LoadedCampaign, 'out'>, renderId: string): string[] | null;
|
|
1472
1484
|
|
|
1473
|
-
export { type Action, type Alias, type Brand, CAMPAIGN_KINDS, CAMPAIGN_SHAPES, CANVASES, CATALOGUE_FORMATS, CATALOGUE_KINDS, CATALOGUE_REQUIRED, CATALOGUE_SHAPES, CATALOGUE_SPEC, CORNERS, type CameraOptions, type Campaign, type CampaignApp, type CampaignLook, type CampaignRender, type CampaignVideo, type Canvas, type CanvasSpec, type Capture, type CaptureOptions, type CapturedFrame, type CardOptions, type Catalogue, type CatalogueCheck, type CatalogueEntry, type CheckOptions, type Corner, type Cue, DEFAULT_BACKGROUND, DEFAULT_MAX_WAIT_MS, DIRECTOR_VIEWPORT, type DirectOptions, type DirectResult, type Director, type DirectorCard, type EditOptions, type FinishOptions, type FrameStyle, GEMINI_TTS, type GifOptions, type GifResult, type GifWriter, type Image, type Layers, type Layout, type LoadedCampaign, type LookOf, type Made, type MakeOptions, type Move, type NarrationPlan, type OutFormat, type OutSpec, type Pcm, type Phase, type PlanOptions, type PlannedLine, type Point, type Progress, type Rect, RenderError, type RenderOptions, type RenderOutput, type RenderResult, type RepairOutcome, type RepairSuggestion, SKIP_KEEP_MS, type Scene, type Script, type Segment, type Session, type Shot, type Span, type Sprite, TRACK_RATE, type TimelineEvent, type Unresolved, type Voice, type Watermark, ZOOM_KINDS, actionsOf, aliasOf, arrowSprite, badgeAt, blank, brandFile, brandOf, cached, cameraKeys, cameraPath, canvasOf, captionCues, capture, cardCaption, cardFrames, cardOf, cardsOf, catalogueId, chapterCues, checkCampaign, checkCatalogue, createGifWriter, createLayers, crop, crossfade, cueAt, cursorAt, dataUri, direct, drawCursor, drawRegion, durationOf, editList, encodeGif, encodeMp4, endsWithOf, ensureApp, filesOf, findFfmpeg, findPlayer, finish, fitWidth, formatOf, frameScale, frameTimes, fromS16le, fromWav, geminiVoice, layoutOf, linesOf, loadCampaign, lookOptions, makeCampaign, mix, mp4Args, mp4Head, msOf, narrationText, openAiVoice, outputAt, overlay, pageAt, paletteOf, parseScript, pathOf, pickFrames, pixel, planNarration, progressOf, providerOf, readCampaign, render, rendersOf, repairGuide, repairScriptOf, resample, resize, runQa, sayFrom, sayVoice, saysOf, shapeTag, sourceAt, spansOf, stallInspector, statusOf, stepCues, suggestScript, toVtt, toWav, travelMs, trimSilence, voiceOf, vttEnds, watermarkOf, withCards, withCursor, withHolds };
|
|
1485
|
+
export { type Action, type Alias, type Brand, CAMPAIGN_KINDS, CAMPAIGN_SHAPES, CANVASES, CATALOGUE_FORMATS, CATALOGUE_KINDS, CATALOGUE_REQUIRED, CATALOGUE_SHAPES, CATALOGUE_SPEC, CORNERS, type CameraOptions, type Campaign, type CampaignApp, type CampaignLook, type CampaignRender, type CampaignVideo, type Canvas, type CanvasSpec, type Capture, type CaptureOptions, type CapturedFrame, type CardOptions, type Catalogue, type CatalogueCheck, type CatalogueEntry, type CheckOptions, type Corner, type Cue, DEFAULT_BACKGROUND, DEFAULT_MAX_WAIT_MS, DIRECTOR_VIEWPORT, type DirectOptions, type DirectResult, type Director, type DirectorCard, type EditOptions, type FinishOptions, type FrameStyle, GEMINI_TTS, type GifOptions, type GifResult, type GifWriter, type Image, type Layers, type Layout, type LoadedCampaign, type LookOf, type Made, type MakeOptions, type Move, type NarrationPlan, type OutFormat, type OutSpec, type Pcm, type Phase, type PlanOptions, type PlannedLine, type Point, type Progress, type Rect, RenderError, type RenderOptions, type RenderOutput, type RenderResult, type RepairOutcome, type RepairSuggestion, SKIP_KEEP_MS, type Scene, type Script, type Segment, type Session, type Shot, type Span, type Sprite, TRACK_RATE, type TimelineEvent, type Unresolved, type Voice, type Watermark, ZOOM_KINDS, actionsOf, aliasOf, arrowSprite, badgeAt, blank, brandFile, brandOf, cached, cameraKeys, cameraPath, canvasOf, captionCues, capture, cardCaption, cardFrames, cardOf, cardsOf, catalogueId, chapterCues, checkCampaign, checkCatalogue, createGifWriter, createLayers, crop, crossfade, cueAt, cursorAt, dataUri, direct, drawCursor, drawRegion, durationOf, editList, encodeGif, encodeMp4, endsWithOf, ensureApp, filesOf, findFfmpeg, findPlayer, finish, fitWidth, formatOf, frameScale, frameTimes, fromS16le, fromWav, geminiVoice, layoutOf, linesOf, loadCampaign, lookOptions, makeCampaign, mix, mp4Args, mp4Head, msOf, narrationText, openAiVoice, outputAt, overlay, pageAt, paletteOf, parseScript, pathOf, pickFrames, pixel, planNarration, progressOf, providerOf, readCampaign, render, rendersOf, repairGuide, repairScriptOf, rerouted, resample, resize, runQa, sayFrom, sayVoice, saysOf, shapeTag, sourceAt, spansOf, stallInspector, statusOf, stepCues, suggestScript, toVtt, toWav, travelMs, trimSilence, voiceOf, vttEnds, watermarkOf, withCards, withCursor, withHolds };
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
rendersOf,
|
|
92
92
|
repairGuide,
|
|
93
93
|
repairScriptOf,
|
|
94
|
+
rerouted,
|
|
94
95
|
resample,
|
|
95
96
|
resize,
|
|
96
97
|
runQa,
|
|
@@ -114,7 +115,7 @@ import {
|
|
|
114
115
|
withCards,
|
|
115
116
|
withCursor,
|
|
116
117
|
withHolds
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-7N5RZAMS.js";
|
|
118
119
|
export {
|
|
119
120
|
CAMPAIGN_KINDS,
|
|
120
121
|
CAMPAIGN_SHAPES,
|
|
@@ -208,6 +209,7 @@ export {
|
|
|
208
209
|
rendersOf,
|
|
209
210
|
repairGuide,
|
|
210
211
|
repairScriptOf,
|
|
212
|
+
rerouted,
|
|
211
213
|
resample,
|
|
212
214
|
resize,
|
|
213
215
|
runQa,
|