@marlinjai/studio-mcp 0.8.0 → 0.10.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/README.md +6 -3
- package/dist/cli.js +348 -25
- package/dist/index.d.ts +24 -3
- package/dist/index.js +348 -25
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ declare const WorkflowDocumentSchema: z.ZodObject<{
|
|
|
199
199
|
json: "json";
|
|
200
200
|
mask: "mask";
|
|
201
201
|
mesh3d: "mesh3d";
|
|
202
|
+
reference: "reference";
|
|
202
203
|
}>;
|
|
203
204
|
}, z.core.$strip>>;
|
|
204
205
|
layout: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -442,6 +443,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
442
443
|
mask: "mask";
|
|
443
444
|
mesh3d: "mesh3d";
|
|
444
445
|
json: "json";
|
|
446
|
+
reference: "reference";
|
|
445
447
|
}>;
|
|
446
448
|
index: z.ZodOptional<z.ZodNumber>;
|
|
447
449
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -456,6 +458,7 @@ declare const OpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
456
458
|
mask: "mask";
|
|
457
459
|
mesh3d: "mesh3d";
|
|
458
460
|
json: "json";
|
|
461
|
+
reference: "reference";
|
|
459
462
|
}>;
|
|
460
463
|
}, z.core.$strip>, z.ZodObject<{
|
|
461
464
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -738,6 +741,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
738
741
|
mask: "mask";
|
|
739
742
|
mesh3d: "mesh3d";
|
|
740
743
|
json: "json";
|
|
744
|
+
reference: "reference";
|
|
741
745
|
}>;
|
|
742
746
|
index: z.ZodOptional<z.ZodNumber>;
|
|
743
747
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -752,6 +756,7 @@ declare const PatchSchema: z.ZodObject<{
|
|
|
752
756
|
mask: "mask";
|
|
753
757
|
mesh3d: "mesh3d";
|
|
754
758
|
json: "json";
|
|
759
|
+
reference: "reference";
|
|
755
760
|
}>;
|
|
756
761
|
}, z.core.$strip>, z.ZodObject<{
|
|
757
762
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -859,7 +864,7 @@ interface ApplyError {
|
|
|
859
864
|
* Pure: no database, no provider, no DOM.
|
|
860
865
|
*/
|
|
861
866
|
|
|
862
|
-
type ProjectionIssueCode = "no_task_nodes" | "not_runnable" | "no_model" | "prompt_required" | "source_uploading" | "keyframe_positions" | "no_inputs" | "param_unmappable" | "param_type_conflict" | "integrity";
|
|
867
|
+
type ProjectionIssueCode = "no_task_nodes" | "not_runnable" | "no_model" | "prompt_required" | "source_uploading" | "keyframe_positions" | "character_references" | "no_inputs" | "param_unmappable" | "param_type_conflict" | "integrity";
|
|
863
868
|
interface ProjectionIssue {
|
|
864
869
|
code: ProjectionIssueCode;
|
|
865
870
|
/** The node the issue is about, when it is about one. */
|
|
@@ -1549,6 +1554,8 @@ interface WorkflowCreateResponse {
|
|
|
1549
1554
|
revision: number;
|
|
1550
1555
|
document: WorkflowDocument;
|
|
1551
1556
|
projection?: Projection;
|
|
1557
|
+
/** true when an earlier create with the same idempotencyKey made this workflow. */
|
|
1558
|
+
replayed?: boolean;
|
|
1552
1559
|
}
|
|
1553
1560
|
/** `PATCH /api/v1/workflows/:savedId`: 200. */
|
|
1554
1561
|
interface WorkflowApplyResponse {
|
|
@@ -1825,11 +1832,17 @@ declare class StudioClient {
|
|
|
1825
1832
|
getWorkflowDocument(savedId: string, opts?: {
|
|
1826
1833
|
projectId?: string;
|
|
1827
1834
|
}): Promise<WorkflowDocumentResponse>;
|
|
1828
|
-
/**
|
|
1835
|
+
/**
|
|
1836
|
+
* Create a document by applying `ops` to an empty one (the same code path as
|
|
1837
|
+
* apply). 201 created; 200 with `replayed: true` when a create with this
|
|
1838
|
+
* idempotencyKey already made it; 409 `idempotency_mismatch` when that key
|
|
1839
|
+
* made a different one.
|
|
1840
|
+
*/
|
|
1829
1841
|
createWorkflow(body: {
|
|
1830
1842
|
ops: Op[];
|
|
1831
1843
|
label?: string;
|
|
1832
1844
|
projectId?: string;
|
|
1845
|
+
idempotencyKey?: string;
|
|
1833
1846
|
}): Promise<WorkflowCreateResponse>;
|
|
1834
1847
|
/**
|
|
1835
1848
|
* Apply a patch atomically on top of `patch.baseRevision`. 409 on a stale
|
|
@@ -2038,7 +2051,7 @@ declare function registerTools(server: McpServer, base: ToolContext): void;
|
|
|
2038
2051
|
*/
|
|
2039
2052
|
|
|
2040
2053
|
declare const SERVER_NAME = "lumitra-studio";
|
|
2041
|
-
declare const SERVER_VERSION = "0.
|
|
2054
|
+
declare const SERVER_VERSION = "0.10.0";
|
|
2042
2055
|
interface CreateServerOptions {
|
|
2043
2056
|
config?: StudioConfig;
|
|
2044
2057
|
env?: NodeJS.ProcessEnv;
|
|
@@ -2300,6 +2313,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
2300
2313
|
mask: "mask";
|
|
2301
2314
|
mesh3d: "mesh3d";
|
|
2302
2315
|
json: "json";
|
|
2316
|
+
reference: "reference";
|
|
2303
2317
|
}>;
|
|
2304
2318
|
index: z.ZodOptional<z.ZodNumber>;
|
|
2305
2319
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2314,6 +2328,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
2314
2328
|
mask: "mask";
|
|
2315
2329
|
mesh3d: "mesh3d";
|
|
2316
2330
|
json: "json";
|
|
2331
|
+
reference: "reference";
|
|
2317
2332
|
}>;
|
|
2318
2333
|
}, z.core.$strip>, z.ZodObject<{
|
|
2319
2334
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -2384,6 +2399,7 @@ declare const studioWorkflowCreate: ToolDef<{
|
|
|
2384
2399
|
}, z.core.$strip>], "type">>;
|
|
2385
2400
|
label: z.ZodOptional<z.ZodString>;
|
|
2386
2401
|
projectId: z.ZodOptional<z.ZodString>;
|
|
2402
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
2387
2403
|
}>;
|
|
2388
2404
|
declare const studioWorkflowApply: ToolDef<{
|
|
2389
2405
|
savedId: z.ZodString;
|
|
@@ -2598,6 +2614,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2598
2614
|
mask: "mask";
|
|
2599
2615
|
mesh3d: "mesh3d";
|
|
2600
2616
|
json: "json";
|
|
2617
|
+
reference: "reference";
|
|
2601
2618
|
}>;
|
|
2602
2619
|
index: z.ZodOptional<z.ZodNumber>;
|
|
2603
2620
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -2612,6 +2629,7 @@ declare const studioWorkflowApply: ToolDef<{
|
|
|
2612
2629
|
mask: "mask";
|
|
2613
2630
|
mesh3d: "mesh3d";
|
|
2614
2631
|
json: "json";
|
|
2632
|
+
reference: "reference";
|
|
2615
2633
|
}>;
|
|
2616
2634
|
}, z.core.$strip>, z.ZodObject<{
|
|
2617
2635
|
type: z.ZodLiteral<"exposeAsInput">;
|
|
@@ -2782,6 +2800,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
2782
2800
|
json: "json";
|
|
2783
2801
|
mask: "mask";
|
|
2784
2802
|
mesh3d: "mesh3d";
|
|
2803
|
+
reference: "reference";
|
|
2785
2804
|
}>;
|
|
2786
2805
|
}, z.core.$strip>>;
|
|
2787
2806
|
layout: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -3025,6 +3044,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
3025
3044
|
mask: "mask";
|
|
3026
3045
|
mesh3d: "mesh3d";
|
|
3027
3046
|
json: "json";
|
|
3047
|
+
reference: "reference";
|
|
3028
3048
|
}>;
|
|
3029
3049
|
index: z.ZodOptional<z.ZodNumber>;
|
|
3030
3050
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3039,6 +3059,7 @@ declare const studioWorkflowValidate: ToolDef<{
|
|
|
3039
3059
|
mask: "mask";
|
|
3040
3060
|
mesh3d: "mesh3d";
|
|
3041
3061
|
json: "json";
|
|
3062
|
+
reference: "reference";
|
|
3042
3063
|
}>;
|
|
3043
3064
|
}, z.core.$strip>, z.ZodObject<{
|
|
3044
3065
|
type: z.ZodLiteral<"exposeAsInput">;
|