@deepraxis/cli 0.2.2-dev.068423d → 0.2.2-dev.1365840
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/praxis.js +31 -5
- package/package.json +1 -1
package/dist/praxis.js
CHANGED
|
@@ -16943,7 +16943,7 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
16943
16943
|
resource: "cut.projects.analysis",
|
|
16944
16944
|
method: "create",
|
|
16945
16945
|
summary: "Analyze project media or measure the project mix",
|
|
16946
|
-
description: 'Request silence, filler-word or
|
|
16946
|
+
description: 'Request silence, filler-word, scene or beat analysis for selected bound assets before editing, or measure the mix the timeline itself renders with kind mix. That kind is a render job, not a read: it answers pending with retry_after_sec and an id. Poll by calling this same method again with body { kinds: ["mix"], id } (there is no separate retrieve method); that call reads the measurement and renders nothing. The answer only exists once the audio has been rendered and measured. Omit media to select project sources; ranges returned in segments use source seconds. A pending result is not completion: use retry_after_sec before checking again, and inspect failed or unsupported asset results before deciding which edits are possible. Silence measures transcript-based speech pauses, not music or loudness. A completed transcript without words returns ready with empty segments and reason no_speech; no completed transcript returns unsupported with reason no_transcript. A failed transcription remains failed. kind mix is separate: it reports the project mix loudness, the loudness of each role and where music masks speech, so an editor can fix the mix rather than guess at it.',
|
|
16947
16947
|
http: "POST",
|
|
16948
16948
|
path: "/cut/v1/projects/{project_id}/analysis",
|
|
16949
16949
|
streaming: "no",
|
|
@@ -16974,10 +16974,11 @@ Execution errors include error.details.prints containing output printed before f
|
|
|
16974
16974
|
"silence",
|
|
16975
16975
|
"filler",
|
|
16976
16976
|
"scenes",
|
|
16977
|
+
"beats",
|
|
16977
16978
|
"mix"
|
|
16978
16979
|
],
|
|
16979
16980
|
required: true,
|
|
16980
|
-
description: "Analysis types to request. silence, filler and
|
|
16981
|
+
description: "Analysis types to request. silence, filler, scenes and beats analyze the selected source assets and are read from the media library; mix measures the project's own rendered mix and is requested on its own."
|
|
16981
16982
|
},
|
|
16982
16983
|
{
|
|
16983
16984
|
name: "from",
|
|
@@ -17477,7 +17478,7 @@ Published at https://docs.deepraxis.com/docs/developers/cut/script-reference wit
|
|
|
17477
17478
|
- \`FindItems\` — Visit every clip with its track; collect results.
|
|
17478
17479
|
- \`GetMedia\` — Media metadata; \`duration\` is seconds.
|
|
17479
17480
|
- \`GetTranscript\` — Transcript words in source microseconds.
|
|
17480
|
-
- \`GetAnalysis\` — Silence, filler or
|
|
17481
|
+
- \`GetAnalysis\` — Silence, filler, scene or beat segments.
|
|
17481
17482
|
- \`ListTransitions\` — Join transition kinds and parameters.
|
|
17482
17483
|
- \`ListEffects\` — Visual-effect catalog and parameters.
|
|
17483
17484
|
- \`ListAnimations\` — Animation presets by phase and target.
|
|
@@ -17594,6 +17595,7 @@ Published at https://docs.deepraxis.com/docs/developers/cut/script-reference wit
|
|
|
17594
17595
|
- \`SCRIPT_LIMIT\` — An execute budget was exceeded.
|
|
17595
17596
|
- \`OPS_REJECTED\` — An op failed; the whole edit rolled back.
|
|
17596
17597
|
- \`EDIT_EXPIRED\` — The saved edit id is over ten minutes old.
|
|
17598
|
+
- \`MEDIA_NOT_FOUND\` — The asset id is not in that library.
|
|
17597
17599
|
- \`MEDIA_OFFLINE\` — The asset cannot be fetched right now.
|
|
17598
17600
|
- \`MEDIA_UNAVAILABLE\` — The asset is not usable for rendering.
|
|
17599
17601
|
- \`MEDIA_IMPORT_FAILED\` — Importing media failed.
|
|
@@ -43501,6 +43503,30 @@ async function ensureContext(deps, agentId) {
|
|
|
43501
43503
|
}
|
|
43502
43504
|
}
|
|
43503
43505
|
var bounded = (work, ms) => Promise.race([work, new Promise((_, reject) => setTimeout(() => reject(new Error("timed out")), ms))]);
|
|
43506
|
+
function refusedConnect(cause) {
|
|
43507
|
+
if (!(cause instanceof Error))
|
|
43508
|
+
return null;
|
|
43509
|
+
const match = /WebSocket error: \S+ (\d{3}) [^\n]*\n([\s\S]+)$/.exec(cause.message);
|
|
43510
|
+
if (!match)
|
|
43511
|
+
return null;
|
|
43512
|
+
const status = Number(match[1]);
|
|
43513
|
+
let body;
|
|
43514
|
+
try {
|
|
43515
|
+
body = JSON.parse(match[2].trim());
|
|
43516
|
+
} catch {
|
|
43517
|
+
return null;
|
|
43518
|
+
}
|
|
43519
|
+
if (typeof body?.code !== "string")
|
|
43520
|
+
return null;
|
|
43521
|
+
const retryAfter = typeof body.retryAfter === "number" && Number.isFinite(body.retryAfter) ? body.retryAfter : null;
|
|
43522
|
+
const message = typeof body.message === "string" ? body.message : undefined;
|
|
43523
|
+
return new PraxisError({
|
|
43524
|
+
status,
|
|
43525
|
+
code: body.code,
|
|
43526
|
+
message: `${message ?? body.code}${retryAfter === null ? "" : ` Retry after ${retryAfter} s.`}`,
|
|
43527
|
+
raw: body
|
|
43528
|
+
});
|
|
43529
|
+
}
|
|
43504
43530
|
async function connectBrowser(deps, options = {}) {
|
|
43505
43531
|
const { PRAXIS_API: api, PRAXIS_RUN_TOKEN: token, PRAXIS_AGENT_ID: agentId, PRAXIS_SESSION_ID: sessionId } = deps.env;
|
|
43506
43532
|
const missing = ["PRAXIS_API", "PRAXIS_RUN_TOKEN", "PRAXIS_AGENT_ID", "PRAXIS_SESSION_ID"].filter((name) => !deps.env[name]);
|
|
@@ -43515,7 +43541,7 @@ async function connectBrowser(deps, options = {}) {
|
|
|
43515
43541
|
try {
|
|
43516
43542
|
browser = await playwright.chromium.connectOverCDP(url, { headers: { Authorization: `Bearer ${token}` }, timeout: 60000 });
|
|
43517
43543
|
} catch (cause) {
|
|
43518
|
-
throw unavailable(`Connecting to the cloud browser failed: ${cause.message.split(`
|
|
43544
|
+
throw refusedConnect(cause) ?? unavailable(`Connecting to the cloud browser failed: ${cause.message.split(`
|
|
43519
43545
|
`)[0]}`);
|
|
43520
43546
|
}
|
|
43521
43547
|
const fs = node(deps, "node:fs");
|
|
@@ -46938,7 +46964,7 @@ function startProgress(ctx, write = (text) => writeOutput({ stderr: text })) {
|
|
|
46938
46964
|
}
|
|
46939
46965
|
|
|
46940
46966
|
// src/main.ts
|
|
46941
|
-
var version = "0.2.2-dev.
|
|
46967
|
+
var version = "0.2.2-dev.1365840";
|
|
46942
46968
|
var commands = commandTree(operations);
|
|
46943
46969
|
var manual = [...workflows.map((w) => w.words), [API_WORD]];
|
|
46944
46970
|
function route(argv) {
|