@editframe/cli 0.8.0-beta.8 → 0.8.0-beta.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.
package/dist/VERSION.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.0-beta.
|
|
1
|
+
export declare const VERSION = "0.8.0-beta.9";
|
package/dist/VERSION.js
CHANGED
|
@@ -119,14 +119,14 @@ const syncAssetDirectory = async (projectDirectory) => {
|
|
|
119
119
|
created.id,
|
|
120
120
|
createReadStream(subAssetPath),
|
|
121
121
|
Number.parseInt(format.size || "0")
|
|
122
|
-
).
|
|
122
|
+
).then(() => {
|
|
123
|
+
reportSuccess(subAsset, "Image has been synced.");
|
|
124
|
+
return syncStatus.markSynced();
|
|
125
|
+
}).catch((error) => {
|
|
123
126
|
reportError(
|
|
124
127
|
subAsset,
|
|
125
128
|
`Error uploading image: ${error.message}`
|
|
126
129
|
);
|
|
127
|
-
}).then(() => {
|
|
128
|
-
reportSuccess(subAsset, "Image has been synced.");
|
|
129
|
-
return syncStatus.markSynced();
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -180,7 +180,7 @@ const syncAssetDirectory = async (projectDirectory) => {
|
|
|
180
180
|
createPayload
|
|
181
181
|
);
|
|
182
182
|
if (createdTrack) {
|
|
183
|
-
if (createdTrack.next_byte === createdTrack.byte_size
|
|
183
|
+
if (createdTrack.next_byte === createdTrack.byte_size) {
|
|
184
184
|
reportInfo(subAsset, "✔ Track has already been synced.");
|
|
185
185
|
await syncStatus.markSynced();
|
|
186
186
|
} else {
|
|
@@ -190,14 +190,14 @@ const syncAssetDirectory = async (projectDirectory) => {
|
|
|
190
190
|
Number(trackId),
|
|
191
191
|
createReadStream(subAssetPath),
|
|
192
192
|
createdTrack.byte_size
|
|
193
|
-
).
|
|
193
|
+
).then(() => {
|
|
194
|
+
reportSuccess(subAsset, "Track has been synced.");
|
|
195
|
+
return syncStatus.markSynced();
|
|
196
|
+
}).catch((error) => {
|
|
194
197
|
reportError(
|
|
195
198
|
subAsset,
|
|
196
199
|
`Error uploading track: ${error.message}`
|
|
197
200
|
);
|
|
198
|
-
}).then(() => {
|
|
199
|
-
reportSuccess(subAsset, "Track has been synced.");
|
|
200
|
-
return syncStatus.markSynced();
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
}
|
|
@@ -222,14 +222,14 @@ const syncAssetDirectory = async (projectDirectory) => {
|
|
|
222
222
|
asset,
|
|
223
223
|
readStream,
|
|
224
224
|
stats.size
|
|
225
|
-
).
|
|
225
|
+
).then(() => {
|
|
226
|
+
reportSuccess(subAsset, "Fragment index has been synced.");
|
|
227
|
+
return syncStatus.markSynced();
|
|
228
|
+
}).catch((error) => {
|
|
226
229
|
reportError(
|
|
227
230
|
subAsset,
|
|
228
231
|
`Error uploading fragment index: ${error.message}`
|
|
229
232
|
);
|
|
230
|
-
}).then(() => {
|
|
231
|
-
reportSuccess(subAsset, "Fragment index has been synced.");
|
|
232
|
-
return syncStatus.markSynced();
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
} else {
|
|
@@ -260,14 +260,14 @@ const syncAssetDirectory = async (projectDirectory) => {
|
|
|
260
260
|
asset,
|
|
261
261
|
readStream,
|
|
262
262
|
stats.size
|
|
263
|
-
).
|
|
263
|
+
).then(() => {
|
|
264
|
+
reportSuccess(subAsset, "Captions have been synced.");
|
|
265
|
+
return syncStatus.markSynced();
|
|
266
|
+
}).catch((error) => {
|
|
264
267
|
reportError(
|
|
265
268
|
subAsset,
|
|
266
269
|
`Error uploading captions: ${error.message}`
|
|
267
270
|
);
|
|
268
|
-
}).then(() => {
|
|
269
|
-
reportSuccess(subAsset, "Captions have been synced.");
|
|
270
|
-
return syncStatus.markSynced();
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/cli",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
3
|
+
"version": "0.8.0-beta.9",
|
|
4
4
|
"description": "Command line interface for EditFrame",
|
|
5
5
|
"bin": {
|
|
6
6
|
"editframe": "./dist/index.js"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"author": "",
|
|
15
15
|
"license": "UNLICENSED",
|
|
16
16
|
"devDependencies": {
|
|
17
|
+
"@inquirer/prompts": "^5.3.8",
|
|
17
18
|
"@types/dom-webcodecs": "^0.1.11",
|
|
18
19
|
"@types/node": "^20.14.13",
|
|
19
20
|
"@types/promptly": "^3.0.5",
|
|
@@ -23,10 +24,10 @@
|
|
|
23
24
|
"vite-tsconfig-paths": "^4.3.2"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
|
-
"@editframe/api": "0.8.0-beta.
|
|
27
|
-
"@editframe/assets": "0.8.0-beta.
|
|
28
|
-
"@editframe/elements": "0.8.0-beta.
|
|
29
|
-
"@editframe/vite-plugin": "0.8.0-beta.
|
|
27
|
+
"@editframe/api": "0.8.0-beta.9",
|
|
28
|
+
"@editframe/assets": "0.8.0-beta.9",
|
|
29
|
+
"@editframe/elements": "0.8.0-beta.9",
|
|
30
|
+
"@editframe/vite-plugin": "0.8.0-beta.9",
|
|
30
31
|
"axios": "^1.6.8",
|
|
31
32
|
"chalk": "^5.3.0",
|
|
32
33
|
"commander": "^12.0.0",
|
|
@@ -153,15 +153,15 @@ export const syncAssetDirectory = async (
|
|
|
153
153
|
createReadStream(subAssetPath),
|
|
154
154
|
Number.parseInt(format.size || "0"),
|
|
155
155
|
)
|
|
156
|
+
.then(() => {
|
|
157
|
+
reportSuccess(subAsset, "Image has been synced.");
|
|
158
|
+
return syncStatus.markSynced();
|
|
159
|
+
})
|
|
156
160
|
.catch((error) => {
|
|
157
161
|
reportError(
|
|
158
162
|
subAsset,
|
|
159
163
|
`Error uploading image: ${error.message}`,
|
|
160
164
|
);
|
|
161
|
-
})
|
|
162
|
-
.then(() => {
|
|
163
|
-
reportSuccess(subAsset, "Image has been synced.");
|
|
164
|
-
return syncStatus.markSynced();
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -227,7 +227,7 @@ export const syncAssetDirectory = async (
|
|
|
227
227
|
);
|
|
228
228
|
|
|
229
229
|
if (createdTrack) {
|
|
230
|
-
if (createdTrack.next_byte === createdTrack.byte_size
|
|
230
|
+
if (createdTrack.next_byte === createdTrack.byte_size) {
|
|
231
231
|
reportInfo(subAsset, "✔ Track has already been synced.");
|
|
232
232
|
await syncStatus.markSynced();
|
|
233
233
|
} else {
|
|
@@ -238,15 +238,15 @@ export const syncAssetDirectory = async (
|
|
|
238
238
|
createReadStream(subAssetPath),
|
|
239
239
|
createdTrack.byte_size,
|
|
240
240
|
)
|
|
241
|
+
.then(() => {
|
|
242
|
+
reportSuccess(subAsset, "Track has been synced.");
|
|
243
|
+
return syncStatus.markSynced();
|
|
244
|
+
})
|
|
241
245
|
.catch((error) => {
|
|
242
246
|
reportError(
|
|
243
247
|
subAsset,
|
|
244
248
|
`Error uploading track: ${error.message}`,
|
|
245
249
|
);
|
|
246
|
-
})
|
|
247
|
-
.then(() => {
|
|
248
|
-
reportSuccess(subAsset, "Track has been synced.");
|
|
249
|
-
return syncStatus.markSynced();
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -273,15 +273,15 @@ export const syncAssetDirectory = async (
|
|
|
273
273
|
readStream,
|
|
274
274
|
stats.size,
|
|
275
275
|
)
|
|
276
|
+
.then(() => {
|
|
277
|
+
reportSuccess(subAsset, "Fragment index has been synced.");
|
|
278
|
+
return syncStatus.markSynced();
|
|
279
|
+
})
|
|
276
280
|
.catch((error) => {
|
|
277
281
|
reportError(
|
|
278
282
|
subAsset,
|
|
279
283
|
`Error uploading fragment index: ${error.message}`,
|
|
280
284
|
);
|
|
281
|
-
})
|
|
282
|
-
.then(() => {
|
|
283
|
-
reportSuccess(subAsset, "Fragment index has been synced.");
|
|
284
|
-
return syncStatus.markSynced();
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
} else {
|
|
@@ -313,15 +313,15 @@ export const syncAssetDirectory = async (
|
|
|
313
313
|
readStream,
|
|
314
314
|
stats.size,
|
|
315
315
|
)
|
|
316
|
+
.then(() => {
|
|
317
|
+
reportSuccess(subAsset, "Captions have been synced.");
|
|
318
|
+
return syncStatus.markSynced();
|
|
319
|
+
})
|
|
316
320
|
.catch((error) => {
|
|
317
321
|
reportError(
|
|
318
322
|
subAsset,
|
|
319
323
|
`Error uploading captions: ${error.message}`,
|
|
320
324
|
);
|
|
321
|
-
})
|
|
322
|
-
.then(() => {
|
|
323
|
-
reportSuccess(subAsset, "Captions have been synced.");
|
|
324
|
-
return syncStatus.markSynced();
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
} else {
|