trace-avatar-render 0.0.0-stage → 0.1.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/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +175 -2
- package/dist/chunk-BM26YQ4L.js +1729 -0
- package/dist/chunk-BM26YQ4L.js.map +1 -0
- package/dist/cli.js +324 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +829 -0
- package/dist/index.js +139 -0
- package/dist/index.js.map +1 -0
- package/package.json +71 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_BACKGROUND,
|
|
3
|
+
DEFAULT_MAX_WAIT_MS,
|
|
4
|
+
GEMINI_TTS,
|
|
5
|
+
RenderError,
|
|
6
|
+
TRACK_RATE,
|
|
7
|
+
ZOOM_KINDS,
|
|
8
|
+
actionsOf,
|
|
9
|
+
blank,
|
|
10
|
+
cached,
|
|
11
|
+
cameraKeys,
|
|
12
|
+
cameraPath,
|
|
13
|
+
captionCues,
|
|
14
|
+
capture,
|
|
15
|
+
cardOf,
|
|
16
|
+
chapterCues,
|
|
17
|
+
createGifWriter,
|
|
18
|
+
createLayers,
|
|
19
|
+
crop,
|
|
20
|
+
crossfade,
|
|
21
|
+
cueAt,
|
|
22
|
+
drawRegion,
|
|
23
|
+
durationOf,
|
|
24
|
+
editList,
|
|
25
|
+
encodeGif,
|
|
26
|
+
encodeMp4,
|
|
27
|
+
findFfmpeg,
|
|
28
|
+
findPlayer,
|
|
29
|
+
finish,
|
|
30
|
+
fitWidth,
|
|
31
|
+
formatOf,
|
|
32
|
+
frameTimes,
|
|
33
|
+
fromS16le,
|
|
34
|
+
fromWav,
|
|
35
|
+
geminiVoice,
|
|
36
|
+
layoutOf,
|
|
37
|
+
linesOf,
|
|
38
|
+
mix,
|
|
39
|
+
mp4Args,
|
|
40
|
+
msOf,
|
|
41
|
+
narrationText,
|
|
42
|
+
openAiVoice,
|
|
43
|
+
outputAt,
|
|
44
|
+
overlay,
|
|
45
|
+
pageAt,
|
|
46
|
+
paletteOf,
|
|
47
|
+
parseScript,
|
|
48
|
+
pickFrames,
|
|
49
|
+
pixel,
|
|
50
|
+
planNarration,
|
|
51
|
+
providerOf,
|
|
52
|
+
render,
|
|
53
|
+
repairGuide,
|
|
54
|
+
repairScriptOf,
|
|
55
|
+
resample,
|
|
56
|
+
resize,
|
|
57
|
+
runQa,
|
|
58
|
+
sayVoice,
|
|
59
|
+
sourceAt,
|
|
60
|
+
spansOf,
|
|
61
|
+
stallInspector,
|
|
62
|
+
stepCues,
|
|
63
|
+
suggestScript,
|
|
64
|
+
toVtt,
|
|
65
|
+
toWav,
|
|
66
|
+
trimSilence,
|
|
67
|
+
voiceOf,
|
|
68
|
+
withHolds
|
|
69
|
+
} from "./chunk-BM26YQ4L.js";
|
|
70
|
+
export {
|
|
71
|
+
DEFAULT_BACKGROUND,
|
|
72
|
+
DEFAULT_MAX_WAIT_MS,
|
|
73
|
+
GEMINI_TTS,
|
|
74
|
+
RenderError,
|
|
75
|
+
TRACK_RATE,
|
|
76
|
+
ZOOM_KINDS,
|
|
77
|
+
actionsOf,
|
|
78
|
+
blank,
|
|
79
|
+
cached,
|
|
80
|
+
cameraKeys,
|
|
81
|
+
cameraPath,
|
|
82
|
+
captionCues,
|
|
83
|
+
capture,
|
|
84
|
+
cardOf,
|
|
85
|
+
chapterCues,
|
|
86
|
+
createGifWriter,
|
|
87
|
+
createLayers,
|
|
88
|
+
crop,
|
|
89
|
+
crossfade,
|
|
90
|
+
cueAt,
|
|
91
|
+
drawRegion,
|
|
92
|
+
durationOf,
|
|
93
|
+
editList,
|
|
94
|
+
encodeGif,
|
|
95
|
+
encodeMp4,
|
|
96
|
+
findFfmpeg,
|
|
97
|
+
findPlayer,
|
|
98
|
+
finish,
|
|
99
|
+
fitWidth,
|
|
100
|
+
formatOf,
|
|
101
|
+
frameTimes,
|
|
102
|
+
fromS16le,
|
|
103
|
+
fromWav,
|
|
104
|
+
geminiVoice,
|
|
105
|
+
layoutOf,
|
|
106
|
+
linesOf,
|
|
107
|
+
mix,
|
|
108
|
+
mp4Args,
|
|
109
|
+
msOf,
|
|
110
|
+
narrationText,
|
|
111
|
+
openAiVoice,
|
|
112
|
+
outputAt,
|
|
113
|
+
overlay,
|
|
114
|
+
pageAt,
|
|
115
|
+
paletteOf,
|
|
116
|
+
parseScript,
|
|
117
|
+
pickFrames,
|
|
118
|
+
pixel,
|
|
119
|
+
planNarration,
|
|
120
|
+
providerOf,
|
|
121
|
+
render,
|
|
122
|
+
repairGuide,
|
|
123
|
+
repairScriptOf,
|
|
124
|
+
resample,
|
|
125
|
+
resize,
|
|
126
|
+
runQa,
|
|
127
|
+
sayVoice,
|
|
128
|
+
sourceAt,
|
|
129
|
+
spansOf,
|
|
130
|
+
stallInspector,
|
|
131
|
+
stepCues,
|
|
132
|
+
suggestScript,
|
|
133
|
+
toVtt,
|
|
134
|
+
toWav,
|
|
135
|
+
trimSilence,
|
|
136
|
+
voiceOf,
|
|
137
|
+
withHolds
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trace-avatar-render",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Render a trace-avatar guide to a GIF or MP4 by playing it on your real app in headless Chromium.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"trace-avatar-render": "./dist/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"CHANGELOG.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup",
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run tests/unit",
|
|
31
|
+
"test:e2e": "npm run build && vitest run tests/e2e",
|
|
32
|
+
"live:ai": "npm run build && node scripts/live-ai.mjs",
|
|
33
|
+
"check": "npm run typecheck && npm test && npm run test:e2e",
|
|
34
|
+
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"trace-avatar",
|
|
38
|
+
"gif",
|
|
39
|
+
"video",
|
|
40
|
+
"render",
|
|
41
|
+
"walkthrough",
|
|
42
|
+
"demo",
|
|
43
|
+
"playwright",
|
|
44
|
+
"docs",
|
|
45
|
+
"ci",
|
|
46
|
+
"screencast",
|
|
47
|
+
"narration"
|
|
48
|
+
],
|
|
49
|
+
"author": "",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"homepage": "https://github.com/saidiadegoke/trace-avatar-render#readme",
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "git+https://github.com/saidiadegoke/trace-avatar-render.git"
|
|
55
|
+
},
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/saidiadegoke/trace-avatar-render/issues"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"gifenc": "^1.0.3",
|
|
61
|
+
"playwright": "^1.65.0",
|
|
62
|
+
"pngjs": "^7.0.0",
|
|
63
|
+
"trace-avatar": "^0.1.7"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@types/node": "^22.0.0",
|
|
67
|
+
"@types/pngjs": "^6.0.5",
|
|
68
|
+
"omggif": "^1.0.10",
|
|
69
|
+
"tsup": "^8.5.1",
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"vitest": "^3.2.7"
|
|
72
|
+
}
|
|
73
|
+
}
|