trace-avatar-render 0.2.3 → 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 +4 -0
- package/dist/{chunk-I4LM2D2B.js → chunk-7N5RZAMS.js} +37 -1
- package/dist/chunk-7N5RZAMS.js.map +1 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-I4LM2D2B.js.map +0 -1
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1237,6 +1237,12 @@ interface DirectOptions {
|
|
|
1237
1237
|
alias?: Alias | string;
|
|
1238
1238
|
/** Folders served at a path of the app's own address (props the app doesn't have): { '/__terminal': 'dir' }. */
|
|
1239
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>;
|
|
1240
1246
|
/** Narrate with this voice. */
|
|
1241
1247
|
voice?: Voice;
|
|
1242
1248
|
/** The spoken lines by scene (instead of each caption): a script or its path. */
|
|
@@ -1270,6 +1276,8 @@ declare function aliasOf(url: string, alias?: Alias | string): {
|
|
|
1270
1276
|
localApi?: string;
|
|
1271
1277
|
rewrite: string[];
|
|
1272
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;
|
|
1273
1281
|
/** Make one director video. A script that throws (a failed check) makes nothing. */
|
|
1274
1282
|
declare function direct(o: DirectOptions): Promise<DirectResult>;
|
|
1275
1283
|
|
|
@@ -1306,6 +1314,8 @@ interface CampaignApp {
|
|
|
1306
1314
|
alias?: string | Alias;
|
|
1307
1315
|
/** Folders served at a path of the app's own address, for director videos: { "/__props": "props" }. */
|
|
1308
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>;
|
|
1309
1319
|
}
|
|
1310
1320
|
interface CampaignLook {
|
|
1311
1321
|
/** A brand file (--brand): frame, background, cards, watermark … */
|
|
@@ -1472,4 +1482,4 @@ declare function makeCampaign(c: LoadedCampaign, o?: MakeOptions): Promise<{
|
|
|
1472
1482
|
*/
|
|
1473
1483
|
declare function saysOf(c: Pick<LoadedCampaign, 'out'>, renderId: string): string[] | null;
|
|
1474
1484
|
|
|
1475
|
-
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,
|