@vivix-labs/studio-workbench 1.0.0-beta.5 → 1.0.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/server.js CHANGED
@@ -1,9 +1,13 @@
1
1
  // packages/studio-workbench/src/server.ts
2
+ import { execFile } from "child_process";
2
3
  import { createReadStream } from "fs";
3
- import { stat } from "fs/promises";
4
+ import { readFile, stat } from "fs/promises";
5
+ import { dirname, join } from "path";
4
6
  import { Readable as Readable2 } from "stream";
5
- import { defineOperation } from "vivix-studio/sdk/server";
6
- import { z as z3 } from "vivix-studio/sdk/shared";
7
+ import { fileURLToPath } from "url";
8
+ import { promisify } from "util";
9
+ import { defineOperation as defineOperation2, PluginError } from "vivix-studio/sdk/server";
10
+ import { z as z6 } from "vivix-studio/sdk/shared";
7
11
 
8
12
  // packages/studio-workbench/src/shared.ts
9
13
  import { z } from "vivix-studio/sdk/shared";
@@ -18,7 +22,8 @@ var Config = z.object({
18
22
  libraryInstance: z.string().min(1).nullable().default(null),
19
23
  libraryServiceInstance: z.string().min(1).nullable().default(null),
20
24
  views: z.object({
21
- assetList: uiReference.optional()
25
+ assetList: uiReference.optional(),
26
+ projectCreator: uiReference.optional()
22
27
  }).strict().default({}),
23
28
  dashboard: z.array(uiReference).optional(),
24
29
  savedViews: z.array(z.union([uiReference, savedProjectView])).default([]),
@@ -26,34 +31,195 @@ var Config = z.object({
26
31
  }).strict();
27
32
 
28
33
  // packages/studio-workbench/src/query-view.ts
34
+ import { z as z4 } from "vivix-studio/sdk/shared";
35
+
36
+ // packages/project-studio/src/shared.ts
37
+ import { z as z3, defineOperation } from "vivix-studio/sdk/shared";
38
+
39
+ // packages/project-studio/src/ads-shared.ts
29
40
  import { z as z2 } from "vivix-studio/sdk/shared";
41
+ var fixedRef = z2.object({ storeId: z2.uuid(), objectId: z2.uuid(), versionId: z2.uuid() }).strict();
42
+ var copy = z2.string().max(8e3).default("");
43
+ var clipScript = z2.object({
44
+ title: z2.string().trim().min(1).max(200),
45
+ visual: copy,
46
+ voiceover: copy,
47
+ onScreenText: copy,
48
+ cta: copy,
49
+ plannedDurationMs: z2.number().int().positive().nullable().default(null)
50
+ }).strict();
51
+ var adBrief = z2.object({
52
+ product: copy,
53
+ category: copy,
54
+ audience: copy,
55
+ sellingPoints: copy,
56
+ channel: copy,
57
+ aspectRatio: z2.string().max(40).nullable().default(null),
58
+ targetDurationMs: z2.number().int().positive().nullable().default(null),
59
+ body: copy,
60
+ productRefs: z2.array(fixedRef).max(100).default([]),
61
+ modelRefs: z2.array(fixedRef).max(100).default([])
62
+ }).strict();
63
+ var adFilm = z2.object({
64
+ title: z2.string().trim().min(1).max(150),
65
+ source: fixedRef,
66
+ width: z2.number().int().positive().max(8192),
67
+ height: z2.number().int().positive().max(8192),
68
+ aspectRatio: z2.string().regex(/^\d+:\d+$/)
69
+ }).strict();
70
+ var adStoryboard = z2.object({
71
+ brief: adBrief,
72
+ films: z2.array(adFilm).max(100).optional(),
73
+ clips: z2.array(
74
+ z2.object({
75
+ assetId: z2.uuid(),
76
+ filmId: z2.uuid().optional(),
77
+ script: clipScript,
78
+ edits: z2.array(z2.object({ sourceVersionId: z2.uuid(), editRef: fixedRef }).strict()).max(200)
79
+ }).strict()
80
+ ).max(200)
81
+ }).strict().superRefine((value, context) => {
82
+ if (new Set(value.clips.map((c) => c.assetId)).size !== value.clips.length)
83
+ context.addIssue({ code: "custom", message: "A clip can appear only once in a storyboard." });
84
+ for (const clip of value.clips)
85
+ if (new Set(clip.edits.map((e) => e.sourceVersionId)).size !== clip.edits.length)
86
+ context.addIssue({
87
+ code: "custom",
88
+ message: "Each candidate has one current edit binding."
89
+ });
90
+ });
91
+
92
+ // packages/project-studio/src/shared.ts
93
+ var projectType = z3.enum(["short-drama", "product-ad", "other"]);
94
+ var studioConfig = z3.object({
95
+ role: z3.enum(["project", "coordinator"]).default("project"),
96
+ projectType: projectType.optional(),
97
+ dataInstance: z3.string().min(1).default("user:data"),
98
+ apiInstance: z3.string().min(1).default("api"),
99
+ libraryInstance: z3.string().min(1).nullable().default(null),
100
+ coordinatorInstance: z3.string().min(1).optional()
101
+ }).strict();
102
+ var versionRef = z3.object({ storeId: z3.uuid(), objectId: z3.uuid(), versionId: z3.uuid() }).strict();
103
+ var tags = z3.array(z3.string().trim().min(1).max(64)).max(50).transform((x) => [...new Set(x)]).default([]);
104
+ var kind = z3.enum(["text", "image", "video", "audio", "file"]);
105
+ var projectData = z3.object({
106
+ name: z3.string().trim().min(1).max(120),
107
+ description: z3.string().max(4e3).default(""),
108
+ status: z3.enum(["draft", "active", "archived"]).default("draft"),
109
+ aspectRatio: z3.string().nullable().default(null),
110
+ projectType: projectType.optional(),
111
+ coverRef: versionRef.nullable().default(null),
112
+ briefRef: z3.object({ storeId: z3.uuid(), objectId: z3.uuid() }).strict().nullable().default(null),
113
+ tags
114
+ }).strict();
115
+ var assetData = z3.object({
116
+ projectId: z3.uuid(),
117
+ name: z3.string().trim().min(1).max(200),
118
+ kind,
119
+ purpose: z3.enum(["reference", "script", "shot", "music", "voice", "subtitle", "final", "other"]).default("other"),
120
+ origin: z3.enum(["upload", "library", "generated", "authored"]),
121
+ orderKey: z3.number().int().nullable().default(null),
122
+ tags,
123
+ lifecycle: z3.enum(["draft", "ready", "archived"]).default("draft"),
124
+ sourceRef: versionRef.nullable().default(null),
125
+ adoptedVersionId: z3.uuid().nullable().default(null)
126
+ }).strict();
127
+ var anchor = z3.discriminatedUnion("kind", [
128
+ z3.object({ kind: z3.literal("whole") }).strict(),
129
+ z3.object({
130
+ kind: z3.literal("timeRange"),
131
+ startMs: z3.number().int().nonnegative(),
132
+ endMs: z3.number().int().nonnegative()
133
+ }).strict()
134
+ ]);
135
+ var generationInput = z3.object({
136
+ targetAssetId: z3.uuid().optional(),
137
+ taskName: z3.string().trim().min(1).max(200).optional(),
138
+ context: z3.record(z3.string().min(1).max(64), z3.string().min(1).max(200)).optional(),
139
+ expectedRevision: z3.number().int().positive().optional(),
140
+ newAsset: z3.object({
141
+ name: z3.string().trim().min(1).max(200),
142
+ kind: z3.enum(["image", "video", "audio"])
143
+ }).strict().optional(),
144
+ modelId: z3.string().min(1),
145
+ capabilityId: z3.string().min(1),
146
+ prompt: z3.string().max(32e3),
147
+ parameters: z3.record(z3.string(), z3.unknown()).default({}),
148
+ outputCount: z3.number().int().min(1).max(100).default(1),
149
+ inputs: z3.array(
150
+ z3.object({
151
+ ref: versionRef,
152
+ role: z3.string().min(1),
153
+ order: z3.number().int().nonnegative(),
154
+ weight: z3.number().finite().nullable().default(null)
155
+ }).strict()
156
+ ).max(100).default([]),
157
+ baseVersionId: z3.uuid().optional(),
158
+ changeRequest: z3.string().trim().min(1).max(4e3).optional(),
159
+ preserveRequest: z3.string().max(4e3).default(""),
160
+ anchor: anchor.default({ kind: "whole" }),
161
+ retryOfTaskId: z3.uuid().optional(),
162
+ acknowledgeUnknown: z3.boolean().optional()
163
+ }).strict();
164
+ var projectSettingsInput = z3.object({
165
+ projectId: z3.uuid(),
166
+ expectedRevision: z3.number().int().positive(),
167
+ changes: projectData.pick({ name: true, description: true, tags: true, aspectRatio: true, coverRef: true }).extend({
168
+ description: projectData.shape.description.unwrap(),
169
+ tags: projectData.shape.tags.unwrap(),
170
+ aspectRatio: projectData.shape.aspectRatio.unwrap(),
171
+ coverRef: projectData.shape.coverRef.unwrap()
172
+ }).partial().strict()
173
+ }).strict();
174
+ var generationSubmitOperation = defineOperation({
175
+ id: "generation.submit",
176
+ title: "Generate",
177
+ description: "Submit one media generation without approval, retaining its paid request identity.",
178
+ input: generationInput,
179
+ output: z3.any(),
180
+ effects: ["write", "paid"],
181
+ confirm: "none"
182
+ });
183
+ var favoriteData = z3.object({ ref: versionRef }).strict();
184
+ var sqlScalar = z3.union([z3.string(), z3.number().finite(), z3.null()]);
185
+ var globalQueryInput = z3.object({
186
+ sql: z3.string().trim().min(1),
187
+ params: z3.union([z3.array(sqlScalar), z3.record(z3.string(), sqlScalar)]).optional(),
188
+ timeoutMs: z3.number().int().positive().optional(),
189
+ maxRows: z3.number().int().positive().optional(),
190
+ limit: z3.number().int().min(1).max(200).optional(),
191
+ offset: z3.number().int().nonnegative().optional(),
192
+ source: z3.enum(["projects", "assets", "tasks"]),
193
+ excludeProjectIds: z3.array(z3.uuid()).optional(),
194
+ catalog: z3.array(z3.object({ id: z3.string().min(1), name: z3.string(), available: z3.boolean() }).strict()).optional()
195
+ }).strict();
30
196
 
31
197
  // packages/studio-workbench/src/view-common.ts
32
198
  var pageSources = ["projects", "assets", "tasks"];
33
199
 
34
200
  // packages/studio-workbench/src/query-view.ts
35
- var columnName = z2.string().min(1).max(200).refine((value) => !/[\u0000-\u001f]/.test(value));
36
- var scalar = z2.union([z2.null(), z2.string(), z2.number().finite()]);
37
- var customViewSchema = z2.object({
38
- source: z2.enum(pageSources),
39
- projectId: z2.uuid().optional(),
40
- name: z2.string().trim().min(1).max(120),
41
- sql: z2.string().trim().min(1).max(32e3),
42
- params: z2.union([z2.array(scalar), z2.record(z2.string(), scalar)]).default([]),
43
- columns: z2.array(
44
- z2.object({
201
+ var columnName = z4.string().min(1).max(200).refine((value) => !/[\u0000-\u001f]/.test(value));
202
+ var scalar = z4.union([z4.null(), z4.string(), z4.number().finite()]);
203
+ var customViewSchema = z4.object({
204
+ source: z4.enum(pageSources),
205
+ projectId: z4.uuid().optional(),
206
+ name: z4.string().trim().min(1).max(120),
207
+ sql: z4.string().trim().min(1).max(32e3),
208
+ params: z4.union([z4.array(scalar), z4.record(z4.string(), scalar)]).default([]),
209
+ columns: z4.array(
210
+ z4.object({
45
211
  path: columnName,
46
- label: z2.string().min(1).max(120).optional(),
47
- width: z2.number().int().min(80).max(600).default(140),
48
- visible: z2.boolean().default(true),
49
- format: z2.enum(["text", "categories", "date", "json"]).default("text"),
50
- role: z2.enum(["name", "preview", "state", "project"]).optional()
212
+ label: z4.string().min(1).max(120).optional(),
213
+ width: z4.number().int().min(80).max(600).default(140),
214
+ visible: z4.boolean().default(true),
215
+ format: z4.enum(["text", "categories", "date", "json"]).default("text"),
216
+ role: z4.enum(["name", "preview", "state", "project"]).optional()
51
217
  }).strict()
52
218
  ).min(1).max(60).refine(
53
219
  (columns) => new Set(columns.map((c) => c.path)).size === columns.length,
54
220
  "Column names must be unique."
55
221
  ),
56
- identity: z2.object({
222
+ identity: z4.object({
57
223
  row: columnName.default("rowId"),
58
224
  project: columnName.default("projectId"),
59
225
  ref: columnName.default("ref"),
@@ -112,6 +278,42 @@ function saveView(data, input, call) {
112
278
  return { id: record.objectId, revision: record.revision, view };
113
279
  }
114
280
 
281
+ // packages/studio-workbench/src/project-visibility.ts
282
+ import { z as z5 } from "vivix-studio/sdk/shared";
283
+ var namespace = "@vivix/table-workbench/hidden-projects/1";
284
+ var name = "Hidden workspace projects";
285
+ var projectIds = z5.array(z5.uuid());
286
+ function settings(data) {
287
+ for (let offset = 0; ; ) {
288
+ const page = data.list({ typeId: "extensions.document", search: name, limit: 200, offset });
289
+ const record = page.items.find(({ data: data2 }) => data2.payload?.namespace === namespace);
290
+ if (record || page.nextOffset === null) return record;
291
+ offset = page.nextOffset;
292
+ }
293
+ }
294
+ function listHiddenProjects(data) {
295
+ return projectIds.parse(settings(data)?.data.payload.projectIds ?? []);
296
+ }
297
+ function setProjectHidden(data, input, call) {
298
+ const record = settings(data);
299
+ const current = projectIds.parse(record?.data.payload.projectIds ?? []);
300
+ const hidden = new Set(current);
301
+ if (hidden.has(input.projectId) === input.hidden) return current;
302
+ if (input.hidden) hidden.add(input.projectId);
303
+ else hidden.delete(input.projectId);
304
+ const next = [...hidden];
305
+ data.documents(
306
+ record ? "update" : "create",
307
+ {
308
+ ...record && { objectId: record.objectId, expectedRevision: record.revision },
309
+ name,
310
+ payload: { namespace, projectIds: next }
311
+ },
312
+ call
313
+ );
314
+ return next;
315
+ }
316
+
115
317
  // packages/studio-workbench/src/export.ts
116
318
  import archiver from "archiver";
117
319
  import { Readable } from "stream";
@@ -121,8 +323,8 @@ function failure(code, message) {
121
323
  }
122
324
  function archiveNames(entries) {
123
325
  const used = /* @__PURE__ */ new Set();
124
- return entries.map(({ name }, index) => {
125
- const base = name.replace(/[\\/\u0000-\u001f\u007f:]/g, "_").replace(/^\.+/, "").trim().slice(0, 180) || `asset-${index + 1}`;
326
+ return entries.map(({ name: name2 }, index) => {
327
+ const base = name2.replace(/[\\/\u0000-\u001f\u007f:]/g, "_").replace(/^\.+/, "").trim().slice(0, 180) || `asset-${index + 1}`;
126
328
  const dot = base.lastIndexOf(".");
127
329
  const stem = dot > 0 ? base.slice(0, dot) : base;
128
330
  const extension = dot > 0 ? base.slice(dot) : "";
@@ -266,6 +468,8 @@ var homeClips = [
266
468
  ];
267
469
 
268
470
  // packages/studio-workbench/src/server.ts
471
+ var exec = promisify(execFile);
472
+ var sampleProject = z6.object({ id: z6.uuid(), name: z6.string(), available: z6.literal(true) });
269
473
  var dependencies = (config) => [
270
474
  ...new Set(
271
475
  [
@@ -281,7 +485,7 @@ function activate(ctx) {
281
485
  if ((ctx.scope?.kind || "project") === "project" && !ctx.config.studioInstance)
282
486
  throw Error("A project workbench requires studioInstance.");
283
487
  if (ctx.scope?.kind === "user") {
284
- const clipId = z3.enum(homeClips);
488
+ const clipId = z6.enum(homeClips);
285
489
  ctx.onDispose(
286
490
  ctx.http.register({
287
491
  id: "home-media",
@@ -304,6 +508,61 @@ function activate(ctx) {
304
508
  }
305
509
  ctx.provide({ frontendId: "table-workbench", config: ctx.config });
306
510
  if (ctx.scope?.kind !== "user") return;
511
+ const homeReceipt = join(dirname(ctx.scope.root), "home-initialization.json");
512
+ ctx.handle(
513
+ defineOperation2({
514
+ id: "workspace.dramaSample",
515
+ title: "Resolve the short drama sample",
516
+ description: "Resolve the prepared preset and any existing sample import.",
517
+ input: z6.object({}).strict(),
518
+ output: z6.object({ legacy: z6.boolean(), preset: z6.string() }),
519
+ effects: ["read"]
520
+ }),
521
+ async () => {
522
+ const owner = "@vivix-labs/short-drama-workbench";
523
+ const home = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
524
+ const preset = `${owner}@${home.vivixStudio.runtimePlugins[owner]}:out-of-steps`;
525
+ let legacy = false;
526
+ try {
527
+ const receipt = JSON.parse(await readFile(homeReceipt, "utf8"));
528
+ legacy = Boolean(receipt.projects?.["out-of-steps"]);
529
+ } catch (error) {
530
+ if (error.code !== "ENOENT") throw error;
531
+ }
532
+ return { legacy, preset };
533
+ }
534
+ );
535
+ ctx.handle(
536
+ defineOperation2({
537
+ id: "workspace.openSample",
538
+ title: "Open sample project",
539
+ description: "Import a bundled sample once and return its editable project.",
540
+ input: z6.object({ sample: z6.enum(["out-of-steps", "cobalt-headphones"]) }).strict(),
541
+ output: sampleProject,
542
+ effects: ["write"],
543
+ confirm: "none"
544
+ }),
545
+ async ({ sample }) => {
546
+ const script = fileURLToPath(
547
+ new URL("../skills/scripts/initialize-home.mjs", import.meta.url)
548
+ );
549
+ const cli = fileURLToPath(
550
+ new URL("../cli.js", import.meta.resolve("vivix-studio/sdk/server"))
551
+ );
552
+ try {
553
+ const { stdout } = await exec(process.execPath, [script, "--sample", sample], {
554
+ env: { ...process.env, VIVIX_STUDIO_CLI: cli }
555
+ });
556
+ return sampleProject.parse(JSON.parse(stdout).project);
557
+ } catch (error) {
558
+ throw new PluginError(
559
+ "SAMPLE_IMPORT_FAILED",
560
+ error.stderr?.trim() || "Unable to load the sample project.",
561
+ "Choose the sample again to retry."
562
+ );
563
+ }
564
+ }
565
+ );
307
566
  const scope = { kind: "user", id: ctx.scope.id };
308
567
  const workspace = ctx.plugins.get(ctx.config.dataInstance);
309
568
  const dataFor = (actorId) => workspace.bind({
@@ -313,47 +572,71 @@ function activate(ctx) {
313
572
  actorId,
314
573
  access: []
315
574
  });
316
- const saveInput = z3.object({
317
- id: z3.uuid().optional(),
318
- expectedRevision: z3.number().int().positive().optional(),
575
+ const saveInput = z6.object({
576
+ id: z6.uuid().optional(),
577
+ expectedRevision: z6.number().int().positive().optional(),
319
578
  view: customViewSchema
320
579
  }).strict();
321
580
  ctx.handle(
322
- defineOperation({
581
+ defineOperation2({
323
582
  id: "views.list",
324
583
  title: "Custom Views",
325
584
  description: "List persisted Custom Views for this page.",
326
- input: z3.object({ source: z3.enum(pageSources) }).strict(),
327
- output: z3.any(),
585
+ input: z6.object({ source: z6.enum(pageSources) }).strict(),
586
+ output: z6.any(),
328
587
  effects: ["read"],
329
588
  confirm: "none"
330
589
  }),
331
590
  (input, call) => listViews(dataFor(call.actor.id), input.source)
332
591
  );
333
592
  ctx.handle(
334
- defineOperation({
593
+ defineOperation2({
335
594
  id: "views.save",
336
595
  title: "Save Custom View",
337
596
  description: "Persist the SQL, parameters and columns with revision checks.",
338
597
  input: saveInput,
339
- output: z3.any(),
598
+ output: z6.any(),
340
599
  effects: ["write"],
341
600
  confirm: "none"
342
601
  }),
343
602
  (input, call) => saveView(dataFor(call.actor.id), input, { ...call, scope })
344
603
  );
604
+ ctx.handle(
605
+ defineOperation2({
606
+ id: "workspace.hiddenProjects",
607
+ title: "Hidden workspace projects",
608
+ description: "Read project IDs hidden from this user workbench.",
609
+ input: z6.object({}).strict(),
610
+ output: projectIds,
611
+ effects: ["read"],
612
+ confirm: "none"
613
+ }),
614
+ (_input, call) => listHiddenProjects(dataFor(call.actor.id))
615
+ );
616
+ ctx.handle(
617
+ defineOperation2({
618
+ id: "workspace.setProjectHidden",
619
+ title: "Set workspace project visibility",
620
+ description: "Hide or restore a project in the user workbench.",
621
+ input: z6.object({ projectId: z6.uuid(), hidden: z6.boolean() }).strict(),
622
+ output: projectIds,
623
+ effects: ["write"],
624
+ confirm: "none"
625
+ }),
626
+ (input, call) => setProjectHidden(dataFor(call.actor.id), input, { ...call, scope })
627
+ );
345
628
  if (!ctx.config.studioInstance) return;
346
629
  const coordinator = ctx.plugins.get(ctx.config.studioInstance);
347
630
  const exports = createExportService(coordinator.global);
348
631
  ctx.onDispose(() => exports.dispose());
349
- const ref = z3.object({ storeId: z3.uuid(), objectId: z3.uuid(), versionId: z3.uuid() }).strict();
632
+ const ref = z6.object({ storeId: z6.uuid(), objectId: z6.uuid(), versionId: z6.uuid() }).strict();
350
633
  ctx.handle(
351
- defineOperation({
634
+ defineOperation2({
352
635
  id: "exports.prepare",
353
636
  title: "Prepare download",
354
637
  description: "Prepare one exact selection of saved asset versions for streaming.",
355
- input: z3.object({ refs: z3.array(ref).min(1).max(100) }).strict(),
356
- output: z3.object({ exportId: z3.uuid(), expiresAt: z3.number().int() }).strict(),
638
+ input: z6.object({ refs: z6.array(ref).min(1).max(100) }).strict(),
639
+ output: z6.object({ exportId: z6.uuid(), expiresAt: z6.number().int() }).strict(),
357
640
  effects: ["read"],
358
641
  confirm: "none"
359
642
  }),
@@ -367,7 +650,7 @@ function activate(ctx) {
367
650
  if (contentType?.split(";")[0]?.trim() !== "application/x-www-form-urlencoded")
368
651
  throw Error("Use the prepared download form.");
369
652
  const fields = new URLSearchParams(await new Response(body).text());
370
- const input = z3.object({ exportId: z3.uuid() }).strict().parse(Object.fromEntries(fields));
653
+ const input = z6.object({ exportId: z6.uuid() }).strict().parse(Object.fromEntries(fields));
371
654
  if ([...fields].length !== 1) throw Error("The prepared download form is invalid.");
372
655
  return exports.response(input.exportId, signal);
373
656
  }
package/dist/shared.d.ts CHANGED
@@ -18,6 +18,7 @@ type CardProps = {
18
18
  openProjects(): void;
19
19
  openAssets(ref?: VersionRef): void;
20
20
  projects: readonly HomeProject[];
21
+ hiddenProjectIds?: readonly string[];
21
22
  ready: boolean;
22
23
  };
23
24
  declare const Config: z.ZodObject<{
@@ -33,6 +34,10 @@ declare const Config: z.ZodObject<{
33
34
  plugin: z.ZodString;
34
35
  id: z.ZodString;
35
36
  }, z.core.$strict>>;
37
+ projectCreator: z.ZodOptional<z.ZodObject<{
38
+ plugin: z.ZodString;
39
+ id: z.ZodString;
40
+ }, z.core.$strict>>;
36
41
  }, z.core.$strict>>;
37
42
  dashboard: z.ZodOptional<z.ZodArray<z.ZodObject<{
38
43
  plugin: z.ZodString;
package/dist/shared.js CHANGED
@@ -11,7 +11,8 @@ var Config = z.object({
11
11
  libraryInstance: z.string().min(1).nullable().default(null),
12
12
  libraryServiceInstance: z.string().min(1).nullable().default(null),
13
13
  views: z.object({
14
- assetList: uiReference.optional()
14
+ assetList: uiReference.optional(),
15
+ projectCreator: uiReference.optional()
15
16
  }).strict().default({}),
16
17
  dashboard: z.array(uiReference).optional(),
17
18
  savedViews: z.array(z.union([uiReference, savedProjectView])).default([]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vivix-labs/studio-workbench",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -53,28 +53,28 @@
53
53
  },
54
54
  "vivixStudio": {
55
55
  "runtimePlugins": {
56
- "@vivix-labs/ads-compare": "1.0.0-beta.2",
57
- "@vivix-labs/ads-storyboard": "1.0.0-beta.2",
58
- "@vivix-labs/creative-data": "1.0.0-beta.4",
59
- "@vivix-labs/dashboard-assets": "1.0.0-beta.2",
60
- "@vivix-labs/dashboard-projects": "1.0.0-beta.2",
61
- "@vivix-labs/magic-edit": "1.0.0-beta.2",
62
- "@vivix-labs/material-library": "1.0.0-beta.4",
63
- "@vivix-labs/media-tools": "1.0.0-beta.3",
64
- "@vivix-labs/project-studio": "1.0.0-beta.4",
65
- "@vivix-labs/short-drama-characters": "1.0.0-beta.2",
66
- "@vivix-labs/short-drama-compare": "1.0.0-beta.3",
67
- "@vivix-labs/short-drama-production": "1.0.0-beta.3",
68
- "@vivix-labs/short-drama-script-editor": "1.0.0-beta.2",
69
- "@vivix-labs/short-drama-social-preview": "1.0.0-beta.2",
70
- "@vivix-labs/short-drama-storyboard": "1.0.0-beta.2",
71
- "@vivix-labs/short-drama-workbench": "1.0.0-beta.5",
72
- "@vivix-labs/studio-asset-list": "1.0.0-beta.2",
73
- "@vivix-labs/studio-workbench": "1.0.0-beta.5",
74
- "@vivix-labs/vivix-api": "1.0.0-beta.2",
75
- "@vivix-labs/ads-workbench": "1.0.0-beta.4",
76
- "@vivix-labs/chat-components": "1.0.0-beta.5",
77
- "@vivix-labs/short-drama-authoring": "1.0.0-beta.2"
56
+ "@vivix-labs/ads-compare": "1.0.0-beta.9",
57
+ "@vivix-labs/ads-storyboard": "1.0.0-beta.9",
58
+ "@vivix-labs/creative-data": "1.0.0-beta.9",
59
+ "@vivix-labs/dashboard-assets": "1.0.0-beta.9",
60
+ "@vivix-labs/dashboard-projects": "1.0.0-beta.9",
61
+ "@vivix-labs/magic-edit": "1.0.0-beta.9",
62
+ "@vivix-labs/material-library": "1.0.0-beta.9",
63
+ "@vivix-labs/media-tools": "1.0.0-beta.9",
64
+ "@vivix-labs/project-studio": "1.0.0-beta.9",
65
+ "@vivix-labs/short-drama-characters": "1.0.0-beta.9",
66
+ "@vivix-labs/short-drama-compare": "1.0.0-beta.9",
67
+ "@vivix-labs/short-drama-production": "1.0.0-beta.9",
68
+ "@vivix-labs/short-drama-script-editor": "1.0.0-beta.9",
69
+ "@vivix-labs/short-drama-social-preview": "1.0.0-beta.9",
70
+ "@vivix-labs/short-drama-storyboard": "1.0.0-beta.9",
71
+ "@vivix-labs/short-drama-workbench": "1.0.0-beta.9",
72
+ "@vivix-labs/studio-asset-list": "1.0.0-beta.9",
73
+ "@vivix-labs/studio-workbench": "1.0.0-beta.9",
74
+ "@vivix-labs/vivix-api": "1.0.0-beta.9",
75
+ "@vivix-labs/ads-workbench": "1.0.0-beta.9",
76
+ "@vivix-labs/chat-components": "1.0.0-beta.9",
77
+ "@vivix-labs/short-drama-authoring": "1.0.0-beta.9"
78
78
  }
79
79
  }
80
80
  }
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "id": "api",
9
9
  "package": "@vivix-labs/vivix-api",
10
- "version": "1.0.0-beta.2",
10
+ "version": "1.0.0-beta.9",
11
11
  "enabled": true,
12
12
  "config": {},
13
13
  "requiredAccess": ["official.request"]
@@ -15,7 +15,7 @@
15
15
  {
16
16
  "id": "studio",
17
17
  "package": "@vivix-labs/project-studio",
18
- "version": "1.0.0-beta.4",
18
+ "version": "1.0.0-beta.9",
19
19
  "enabled": true,
20
20
  "config": {
21
21
  "role": "project",
@@ -29,7 +29,7 @@
29
29
  {
30
30
  "id": "library",
31
31
  "package": "@vivix-labs/material-library",
32
- "version": "1.0.0-beta.4",
32
+ "version": "1.0.0-beta.9",
33
33
  "enabled": true,
34
34
  "config": {
35
35
  "role": "client",
@@ -39,7 +39,7 @@
39
39
  {
40
40
  "id": "workbench",
41
41
  "package": "@vivix-labs/studio-workbench",
42
- "version": "1.0.0-beta.5",
42
+ "version": "1.0.0-beta.9",
43
43
  "enabled": true,
44
44
  "config": {
45
45
  "studioInstance": "studio",
@@ -7,7 +7,7 @@
7
7
  {
8
8
  "id": "data",
9
9
  "package": "@vivix-labs/creative-data",
10
- "version": "1.0.0-beta.4",
10
+ "version": "1.0.0-beta.9",
11
11
  "enabled": true,
12
12
  "config": {},
13
13
  "requiredAccess": ["project.content.read"]
@@ -15,7 +15,7 @@
15
15
  {
16
16
  "id": "library",
17
17
  "package": "@vivix-labs/material-library",
18
- "version": "1.0.0-beta.4",
18
+ "version": "1.0.0-beta.9",
19
19
  "enabled": true,
20
20
  "config": {
21
21
  "role": "service",
@@ -26,7 +26,7 @@
26
26
  {
27
27
  "id": "api",
28
28
  "package": "@vivix-labs/vivix-api",
29
- "version": "1.0.0-beta.2",
29
+ "version": "1.0.0-beta.9",
30
30
  "enabled": true,
31
31
  "config": {},
32
32
  "requiredAccess": ["official.request"]
@@ -34,7 +34,7 @@
34
34
  {
35
35
  "id": "coordinator",
36
36
  "package": "@vivix-labs/project-studio",
37
- "version": "1.0.0-beta.4",
37
+ "version": "1.0.0-beta.9",
38
38
  "enabled": true,
39
39
  "config": {
40
40
  "role": "coordinator",
@@ -47,14 +47,14 @@
47
47
  {
48
48
  "id": "magic-edit",
49
49
  "package": "@vivix-labs/magic-edit",
50
- "version": "1.0.0-beta.2",
50
+ "version": "1.0.0-beta.9",
51
51
  "enabled": true,
52
52
  "config": {}
53
53
  },
54
54
  {
55
55
  "id": "dashboard-projects",
56
56
  "package": "@vivix-labs/dashboard-projects",
57
- "version": "1.0.0-beta.2",
57
+ "version": "1.0.0-beta.9",
58
58
  "enabled": true,
59
59
  "config": {
60
60
  "studioInstance": "coordinator"
@@ -63,7 +63,7 @@
63
63
  {
64
64
  "id": "dashboard-assets",
65
65
  "package": "@vivix-labs/dashboard-assets",
66
- "version": "1.0.0-beta.2",
66
+ "version": "1.0.0-beta.9",
67
67
  "enabled": true,
68
68
  "config": {
69
69
  "studioInstance": "coordinator"
@@ -72,14 +72,14 @@
72
72
  {
73
73
  "id": "asset-list",
74
74
  "package": "@vivix-labs/studio-asset-list",
75
- "version": "1.0.0-beta.2",
75
+ "version": "1.0.0-beta.9",
76
76
  "enabled": true,
77
77
  "config": {}
78
78
  },
79
79
  {
80
80
  "id": "workbench",
81
81
  "package": "@vivix-labs/studio-workbench",
82
- "version": "1.0.0-beta.5",
82
+ "version": "1.0.0-beta.9",
83
83
  "enabled": true,
84
84
  "config": {
85
85
  "studioInstance": "coordinator",
@@ -99,6 +99,10 @@
99
99
  }
100
100
  ],
101
101
  "views": {
102
+ "projectCreator": {
103
+ "plugin": "dashboard-projects",
104
+ "id": "create-project"
105
+ },
102
106
  "assetList": {
103
107
  "plugin": "asset-list",
104
108
  "id": "asset-list"