democut 0.6.28 → 0.6.29
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/cli.js +64 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6916,7 +6916,7 @@ import { realpathSync } from "fs";
|
|
|
6916
6916
|
import { fileURLToPath } from "url";
|
|
6917
6917
|
|
|
6918
6918
|
// src/version.ts
|
|
6919
|
-
var VERSION = "0.6.
|
|
6919
|
+
var VERSION = "0.6.29";
|
|
6920
6920
|
|
|
6921
6921
|
// src/device-flow.ts
|
|
6922
6922
|
var DeviceFlowError = class extends Error {
|
|
@@ -20536,6 +20536,41 @@ var GENERATED_TOOLS = [
|
|
|
20536
20536
|
"idempotentHint": true,
|
|
20537
20537
|
"openWorldHint": false
|
|
20538
20538
|
}
|
|
20539
|
+
},
|
|
20540
|
+
{
|
|
20541
|
+
"name": "democut_get_silence",
|
|
20542
|
+
"description": "\uB300\uD45C \uBC84\uC804\uC758 \uBB34\uC74C \uAD6C\uAC04 \uBBF8\uB9AC\uBCF4\uAE30(threshold_ms).",
|
|
20543
|
+
"inputSchema": {
|
|
20544
|
+
"type": "object",
|
|
20545
|
+
"properties": {
|
|
20546
|
+
"slug": {
|
|
20547
|
+
"type": "string",
|
|
20548
|
+
"description": "\uD504\uB85C\uC81D\uD2B8 \uC2AC\uB7EC\uADF8(list_projects)"
|
|
20549
|
+
},
|
|
20550
|
+
"cut_id": {
|
|
20551
|
+
"type": "string",
|
|
20552
|
+
"description": "\uCEF7 id(cut_\u2026)"
|
|
20553
|
+
},
|
|
20554
|
+
"threshold_ms": {
|
|
20555
|
+
"default": 800,
|
|
20556
|
+
"maximum": 5e3,
|
|
20557
|
+
"minimum": 100,
|
|
20558
|
+
"title": "Threshold Ms",
|
|
20559
|
+
"type": "integer"
|
|
20560
|
+
}
|
|
20561
|
+
},
|
|
20562
|
+
"required": [
|
|
20563
|
+
"slug",
|
|
20564
|
+
"cut_id"
|
|
20565
|
+
],
|
|
20566
|
+
"additionalProperties": false
|
|
20567
|
+
},
|
|
20568
|
+
"annotations": {
|
|
20569
|
+
"readOnlyHint": true,
|
|
20570
|
+
"destructiveHint": false,
|
|
20571
|
+
"idempotentHint": true,
|
|
20572
|
+
"openWorldHint": false
|
|
20573
|
+
}
|
|
20539
20574
|
}
|
|
20540
20575
|
];
|
|
20541
20576
|
|
|
@@ -21543,6 +21578,32 @@ function addCut(a = {}, deps = {}) {
|
|
|
21543
21578
|
});
|
|
21544
21579
|
}
|
|
21545
21580
|
var EDIT_NOTE = "\uC774\uBBF8 \uB9CC\uB4E0 \uC601\uC0C1 \uD30C\uC77C\uC740 \uADF8\uB300\uB85C\uC785\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\xB7\uC644\uC131\uBCF8\uC5D0\uB9CC \uC801\uC6A9\uB418\uACE0 \uC7AC\uB80C\uB354\uB294 \uC5C6\uC2B5\uB2C8\uB2E4.";
|
|
21581
|
+
var SILENCE_NOTE = "\uBBF8\uB9AC\uBCF4\uAE30\uC785\uB2C8\uB2E4 \u2014 \uC2E4\uC81C\uB85C \uC9C0\uC6B0\uB824\uBA74 set_cut_edit \uC758 silence_removal \uC744 \uCF1C\uC138\uC694.";
|
|
21582
|
+
function getSilence(a = {}, deps = {}) {
|
|
21583
|
+
return guarded(READ_ONLY, async () => {
|
|
21584
|
+
const slug = needSlug(a);
|
|
21585
|
+
if (typeof slug !== "string") return slug;
|
|
21586
|
+
const cutId = (a.cut_id ?? "").trim();
|
|
21587
|
+
if (!cutId) return { isError: true, text: "cut_id \uAC00 \uD544\uC694\uD569\uB2C8\uB2E4." };
|
|
21588
|
+
const base = resolveBaseUrl(deps.baseUrl);
|
|
21589
|
+
const q = a.threshold_ms == null ? "" : `?threshold_ms=${encodeURIComponent(String(a.threshold_ms))}`;
|
|
21590
|
+
const view = await apiRequest(
|
|
21591
|
+
base,
|
|
21592
|
+
projectPath(slug, `/cuts/${encodeURIComponent(cutId)}/silence${q}`),
|
|
21593
|
+
{},
|
|
21594
|
+
deps
|
|
21595
|
+
);
|
|
21596
|
+
const spans = (view.audible_ranges ?? []).map(([s, e]) => `${(s / 1e3).toFixed(1)}~${(e / 1e3).toFixed(1)}s`).join(", ") || "(\uC5C6\uC74C)";
|
|
21597
|
+
return {
|
|
21598
|
+
text: [
|
|
21599
|
+
`\uBB34\uC74C ${view.threshold_ms}ms \uC774\uC0C1 \uAE30\uC900 \u2014 \uC9C0\uC6B0\uBA74 ${(view.removed_ms / 1e3).toFixed(1)}\uCD08 \uC904\uC5B4\uB4ED\uB2C8\uB2E4`,
|
|
21600
|
+
`\uB0A8\uB294 \uAD6C\uAC04: ${spans}`,
|
|
21601
|
+
// ★ **이 도구는 아무것도 바꾸지 않는다** — 안 말하면 모델이 이미 잘린 줄 알고 넘어간다.
|
|
21602
|
+
callableToolNames(SILENCE_NOTE)
|
|
21603
|
+
].join("\n")
|
|
21604
|
+
};
|
|
21605
|
+
});
|
|
21606
|
+
}
|
|
21546
21607
|
function reorderCuts(a = {}, deps = {}) {
|
|
21547
21608
|
return guarded(READ_ONLY, async () => {
|
|
21548
21609
|
const slug = needSlug(a);
|
|
@@ -21929,6 +21990,8 @@ function dispatch(name, args, deps = {}) {
|
|
|
21929
21990
|
return getStoryboard(args, deps);
|
|
21930
21991
|
case "democut_add_cut":
|
|
21931
21992
|
return addCut(args, deps);
|
|
21993
|
+
case "democut_get_silence":
|
|
21994
|
+
return getSilence(args, deps);
|
|
21932
21995
|
case "democut_reorder_cuts":
|
|
21933
21996
|
return reorderCuts(args, deps);
|
|
21934
21997
|
case "democut_put_cut_draft":
|