@vivix-labs/studio-workbench 0.0.0-stage → 1.0.0-beta.10

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.
Files changed (123) hide show
  1. package/dist/Inter-LICENSE.txt +93 -0
  2. package/dist/UI-LICENSE.txt +21 -0
  3. package/dist/assets/35a50-G5EJUNOC.svg +6 -0
  4. package/dist/assets/369ca-BISNKZ3M.svg +6 -0
  5. package/dist/assets/441bc-BCMNQ72W.svg +6 -0
  6. package/dist/assets/483f0-T6ZAGTDG.svg +6 -0
  7. package/dist/assets/6911b-ESLYKSC6.svg +6 -0
  8. package/dist/assets/Inter-LICENSE.txt +93 -0
  9. package/dist/assets/UI-system-LICENSE.txt +21 -0
  10. package/dist/assets/add-JY533O73.svg +5 -0
  11. package/dist/assets/area-P2WOMBT5.svg +9 -0
  12. package/dist/assets/b70bb-BTTOKPOH.svg +6 -0
  13. package/dist/assets/b9919-3S3O6YOT.svg +6 -0
  14. package/dist/assets/calendar-JI6USFRJ.svg +1 -0
  15. package/dist/assets/check-JSRRIXN5.svg +5 -0
  16. package/dist/assets/check-on-content-FQUVG3IZ.svg +5 -0
  17. package/dist/assets/chevron-down-K7YKS2EY.svg +5 -0
  18. package/dist/assets/chevron-left-JQCLK2WZ.svg +3 -0
  19. package/dist/assets/chevron-right-TNE35DBJ.svg +3 -0
  20. package/dist/assets/chevron-up-VBHYAJVB.svg +5 -0
  21. package/dist/assets/clear-XNEZJKFC.svg +5 -0
  22. package/dist/assets/close-GO5F7YFS.svg +10 -0
  23. package/dist/assets/copy-document-EF4PHM7F.svg +10 -0
  24. package/dist/assets/create-custom-view-WUWJL7YC.svg +5 -0
  25. package/dist/assets/crop-5JXWHIPN.svg +6 -0
  26. package/dist/assets/dashboard-overview-Y32BCZQC.svg +8 -0
  27. package/dist/assets/dashboard-views-GOG66UAH.svg +7 -0
  28. package/dist/assets/dccd4-CZJXWICW.svg +6 -0
  29. package/dist/assets/dd163-3S3O6YOT.svg +6 -0
  30. package/dist/assets/delete-4Y3OUMEL.svg +8 -0
  31. package/dist/assets/detail-E52XPONK.svg +4 -0
  32. package/dist/assets/download-VTKCEAZG.svg +6 -0
  33. package/dist/assets/draw-FOFX5TOM.svg +6 -0
  34. package/dist/assets/e8aed-CZJXWICW.svg +6 -0
  35. package/dist/assets/ea990-CZJXWICW.svg +6 -0
  36. package/dist/assets/edit-JUVJDD5A.svg +6 -0
  37. package/dist/assets/expand-IAV75AFA.svg +6 -0
  38. package/dist/assets/export-W2OBXZDQ.svg +6 -0
  39. package/dist/assets/favorite-6GMNHJCN.svg +5 -0
  40. package/dist/assets/filter-JSDZZVGN.svg +5 -0
  41. package/dist/assets/fullscreen-L2JCXIN2.svg +6 -0
  42. package/dist/assets/fullscreen-large-MPLIWDMI.svg +6 -0
  43. package/dist/assets/grid-TLG5JYWB.svg +8 -0
  44. package/dist/assets/hero-base-5KRPU5WN.png +0 -0
  45. package/dist/assets/hero-blossom-YNVLGEJJ.webp +0 -0
  46. package/dist/assets/hero-blossom-sequence-TZ74A6VV.webp +0 -0
  47. package/dist/assets/hero-breeze-sequence-CEWDK3QZ.webp +0 -0
  48. package/dist/assets/hero-landscape-H35LYO4H.png +0 -0
  49. package/dist/assets/hero-placeholder-strip-WAPZ6XF4.svg +28 -0
  50. package/dist/assets/hero-pointer-OOZJGR5D.svg +17 -0
  51. package/dist/assets/hero-shot-CNLBX3OX.png +0 -0
  52. package/dist/assets/import-AFBUV2VV.svg +4 -0
  53. package/dist/assets/inria-serif-latin-400-italic-ZCFRMMVP.woff2 +0 -0
  54. package/dist/assets/inria-serif-latin-700-italic-UNRIXGAH.woff2 +0 -0
  55. package/dist/assets/inter-latin-400-normal-55WT6UWF.woff2 +0 -0
  56. package/dist/assets/inter-latin-500-normal-W62DVTXI.woff2 +0 -0
  57. package/dist/assets/inter-latin-600-normal-R6Y2SZCR.woff2 +0 -0
  58. package/dist/assets/inter-latin-700-normal-SU5XVJMF.woff2 +0 -0
  59. package/dist/assets/inter-latin-900-normal-FKACR3DR.woff2 +0 -0
  60. package/dist/assets/list-5VUAOZUH.svg +9 -0
  61. package/dist/assets/local-user-MIBWBA6X.png +0 -0
  62. package/dist/assets/magic-OMME7FOV.svg +9 -0
  63. package/dist/assets/more-AEJ5MHWV.svg +5 -0
  64. package/dist/assets/mute-SXOSCR2U.svg +6 -0
  65. package/dist/assets/mute-large-LSZZ44HF.svg +6 -0
  66. package/dist/assets/nav-assets-35EAQZQX.svg +7 -0
  67. package/dist/assets/nav-home-BMDOUQGN.svg +5 -0
  68. package/dist/assets/nav-projects-N5UV3GAG.svg +6 -0
  69. package/dist/assets/nav-queue-2I5E65F4.svg +8 -0
  70. package/dist/assets/pause-2E4UY4FW.svg +6 -0
  71. package/dist/assets/pause-large-XEUBL4KC.svg +6 -0
  72. package/dist/assets/placeholder-audio-EJEBE7OB.svg +11 -0
  73. package/dist/assets/placeholder-image-NOVXFVRL.svg +10 -0
  74. package/dist/assets/placeholder-script-LR2GKWKS.svg +7 -0
  75. package/dist/assets/placeholder-video-ZFOYHYCR.svg +7 -0
  76. package/dist/assets/play-WIIT3XQK.svg +5 -0
  77. package/dist/assets/play-cover-WQLOHHPZ.svg +5 -0
  78. package/dist/assets/playback-play-YRMIX5W4.svg +5 -0
  79. package/dist/assets/playback-play-large-TM3QUJGG.svg +5 -0
  80. package/dist/assets/refresh-WQ3CTB57.svg +3 -0
  81. package/dist/assets/reset-JESMTEMV.svg +6 -0
  82. package/dist/assets/search-JUOSGQRM.svg +6 -0
  83. package/dist/assets/select-VU7WR7B4.svg +7 -0
  84. package/dist/assets/select-items-GJZIVO37.svg +6 -0
  85. package/dist/assets/social-preview-F36PFR67.svg +91 -0
  86. package/dist/assets/sound-file-YYY6VNYN.svg +3 -0
  87. package/dist/assets/template-1-NR5GMMN5.png +0 -0
  88. package/dist/assets/template-2-YUHY6VN5.png +0 -0
  89. package/dist/assets/template-3-JHX6FHCZ.png +0 -0
  90. package/dist/assets/template-4-TAVSM3BI.png +0 -0
  91. package/dist/assets/template-5-ESABL4EM.png +0 -0
  92. package/dist/assets/template-6-4FAHO5N4.png +0 -0
  93. package/dist/assets/template-7-2KRMROJ6.png +0 -0
  94. package/dist/assets/trim-LQMHHN2M.svg +9 -0
  95. package/dist/assets/upload-U5RZT5QI.svg +5 -0
  96. package/dist/assets/volume-2TYGJL6F.svg +6 -0
  97. package/dist/assets/volume-large-QNULSJ2I.svg +6 -0
  98. package/dist/assets/welcome-add-HS6LIH63.svg +5 -0
  99. package/dist/assets/welcome-close-NOBXBZOT.svg +5 -0
  100. package/dist/assets/welcome-product-ad-YRPDJRAH.png +0 -0
  101. package/dist/assets/welcome-short-drama-YDTZHBGK.png +0 -0
  102. package/dist/client.bundle.js +6989 -0
  103. package/dist/client.css +5229 -0
  104. package/dist/client.d.ts +15 -0
  105. package/dist/client.js +3 -0
  106. package/dist/server.d.ts +10 -0
  107. package/dist/server.js +664 -0
  108. package/dist/shared.d.ts +82 -0
  109. package/dist/shared.js +79 -0
  110. package/home-media/product-ad.mp4 +0 -0
  111. package/home-media/short-drama.mp4 +0 -0
  112. package/home-media/tree-shadow-blossom.mp4 +0 -0
  113. package/home-media/tree-shadow-breeze.mp4 +0 -0
  114. package/licenses/Inria-Serif-OFL.txt +93 -0
  115. package/package.json +78 -4
  116. package/presets/table.json +67 -0
  117. package/presets/user-base.json +130 -0
  118. package/skills/SKILL.md +110 -0
  119. package/skills/references/assets-and-views.md +30 -0
  120. package/skills/references/sql-custom-views.md +10 -0
  121. package/skills/scripts/initialize-home.mjs +281 -0
  122. package/studio-plugin.json +31 -0
  123. package/README.md +0 -3
@@ -0,0 +1,82 @@
1
+ import { z } from 'vivix-studio/sdk/shared';
2
+ import { WorkbenchProject } from 'vivix-studio/sdk/client';
3
+
4
+ interface VersionRef {
5
+ storeId: string;
6
+ objectId: string;
7
+ versionId: string;
8
+ }
9
+
10
+ type HomeProject = {
11
+ id: string;
12
+ name: string;
13
+ available: boolean;
14
+ };
15
+ type CardProps = {
16
+ onProjectCreated?(project: WorkbenchProject): void;
17
+ openProject(id: string, view?: string): void;
18
+ openProjects(): void;
19
+ openAssets(ref?: VersionRef): void;
20
+ projects: readonly HomeProject[];
21
+ hiddenProjectIds?: readonly string[];
22
+ ready: boolean;
23
+ };
24
+ declare const Config: z.ZodObject<{
25
+ studioInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
26
+ operationInstance: z.ZodDefault<z.ZodString>;
27
+ mediaInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
28
+ magicEditInstance: z.ZodOptional<z.ZodString>;
29
+ apiInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
30
+ libraryInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
31
+ libraryServiceInstance: z.ZodDefault<z.ZodNullable<z.ZodString>>;
32
+ views: z.ZodDefault<z.ZodObject<{
33
+ assetList: z.ZodOptional<z.ZodObject<{
34
+ plugin: z.ZodString;
35
+ id: z.ZodString;
36
+ }, z.core.$strict>>;
37
+ projectCreator: z.ZodOptional<z.ZodObject<{
38
+ plugin: z.ZodString;
39
+ id: z.ZodString;
40
+ }, z.core.$strict>>;
41
+ }, z.core.$strict>>;
42
+ dashboard: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ plugin: z.ZodString;
44
+ id: z.ZodString;
45
+ }, z.core.$strict>>>;
46
+ savedViews: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
47
+ plugin: z.ZodString;
48
+ id: z.ZodString;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ projectId: z.ZodUUID;
51
+ viewId: z.ZodString;
52
+ title: z.ZodString;
53
+ }, z.core.$strict>]>>>;
54
+ dataInstance: z.ZodDefault<z.ZodString>;
55
+ }, z.core.$strict>;
56
+ type WorkbenchConfig = z.infer<typeof Config>;
57
+ declare const dependencies: (config: WorkbenchConfig) => string[];
58
+ declare const viewKey: (workspaceId: string, page: string, projectId: string | null) => string;
59
+ declare const draftKey: (workspaceId: string, projectId: string, target: string) => string;
60
+ interface View {
61
+ columns: {
62
+ path: string;
63
+ width: number;
64
+ visible: boolean;
65
+ }[];
66
+ filter: {
67
+ search: string;
68
+ kind: string;
69
+ tag: string;
70
+ metadataEquals?: Record<string, unknown>;
71
+ metadataContains?: Record<string, unknown>;
72
+ };
73
+ sort: `${'name' | 'created' | 'updated'}_${'asc' | 'desc'}`;
74
+ }
75
+ declare function parseView(value: unknown, paths: string[]): View;
76
+ declare function sortQuery(sort: View['sort']): {
77
+ field: "name" | "createdAt" | "updatedAt";
78
+ direction: "asc" | "desc";
79
+ };
80
+ declare function viewSort(field: string, direction: string): View['sort'];
81
+
82
+ export { type CardProps, Config, type HomeProject, type View, type WorkbenchConfig, dependencies, draftKey, parseView, sortQuery, viewKey, viewSort };
package/dist/shared.js ADDED
@@ -0,0 +1,79 @@
1
+ // packages/studio-workbench/src/shared.ts
2
+ import { z } from "vivix-studio/sdk/shared";
3
+ var uiReference = z.object({ plugin: z.string().regex(/^[a-z][a-z0-9-]*$/), id: z.string().min(1) }).strict();
4
+ var savedProjectView = z.object({ projectId: z.uuid(), viewId: z.string().min(1), title: z.string().min(1) }).strict();
5
+ var Config = z.object({
6
+ studioInstance: z.string().min(1).nullable().default(null),
7
+ operationInstance: z.string().min(1).default("workbench"),
8
+ mediaInstance: z.string().min(1).nullable().default(null),
9
+ magicEditInstance: z.string().min(1).optional(),
10
+ apiInstance: z.string().min(1).nullable().default(null),
11
+ libraryInstance: z.string().min(1).nullable().default(null),
12
+ libraryServiceInstance: z.string().min(1).nullable().default(null),
13
+ views: z.object({
14
+ assetList: uiReference.optional(),
15
+ projectCreator: uiReference.optional()
16
+ }).strict().default({}),
17
+ dashboard: z.array(uiReference).optional(),
18
+ savedViews: z.array(z.union([uiReference, savedProjectView])).default([]),
19
+ dataInstance: z.string().min(1).default("user:data")
20
+ }).strict();
21
+ var dependencies = (config) => [
22
+ ...new Set(
23
+ [
24
+ config.studioInstance,
25
+ config.mediaInstance,
26
+ config.magicEditInstance,
27
+ config.apiInstance,
28
+ config.libraryInstance,
29
+ config.libraryServiceInstance,
30
+ config.dataInstance
31
+ ].filter((id) => Boolean(id))
32
+ )
33
+ ];
34
+ var viewKey = (workspaceId, page, projectId) => JSON.stringify([workspaceId, page, projectId]);
35
+ var draftKey = (workspaceId, projectId, target) => JSON.stringify(["generation-draft", 1, workspaceId, projectId, target]);
36
+ function parseView(value, paths) {
37
+ const fallback = {
38
+ columns: paths.map((path) => ({ path, width: path === "name" ? 260 : 140, visible: true })),
39
+ filter: { search: "", kind: "", tag: "" },
40
+ sort: "created_desc"
41
+ };
42
+ if (!value || typeof value !== "object") return fallback;
43
+ const v = value;
44
+ if (!Array.isArray(v.columns) || v.columns.some(
45
+ (c) => !paths.includes(c.path) && !/^metadata\.(?!__proto__$|prototype$|constructor$)[^\x00-\x20]{1,64}$/.test(c.path) || typeof c.width !== "number" || !Number.isInteger(c.width) || c.width < 80 || c.width > 600 || typeof c.visible !== "boolean"
46
+ ) || !v.filter || Object.keys(v.filter).some(
47
+ (k) => !["search", "kind", "tag", "metadataEquals", "metadataContains"].includes(k)
48
+ ) || ["search", "kind", "tag"].some((k) => typeof v.filter[k] !== "string") || ["metadataEquals", "metadataContains"].some(
49
+ (k) => v.filter[k] !== void 0 && (!v.filter[k] || typeof v.filter[k] !== "object" || Array.isArray(v.filter[k]))
50
+ ) || !v.sort || ![
51
+ "name_asc",
52
+ "name_desc",
53
+ "created_asc",
54
+ "created_desc",
55
+ "updated_asc",
56
+ "updated_desc"
57
+ ].includes(v.sort))
58
+ return fallback;
59
+ return v;
60
+ }
61
+ function sortQuery(sort) {
62
+ const [field, direction] = sort.split("_");
63
+ return {
64
+ field: { name: "name", created: "createdAt", updated: "updatedAt" }[field],
65
+ direction
66
+ };
67
+ }
68
+ function viewSort(field, direction) {
69
+ return `${{ name: "name", createdAt: "created", updatedAt: "updated" }[field]}_${direction}`;
70
+ }
71
+ export {
72
+ Config,
73
+ dependencies,
74
+ draftKey,
75
+ parseView,
76
+ sortQuery,
77
+ viewKey,
78
+ viewSort
79
+ };
Binary file
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts) InriaSerif-LightItalic.ttf: Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts) InriaSerif-Regular.ttf: Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts) InriaSerif-Italic.ttf: Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts) InriaSerif-Bold.ttf: Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts) InriaSerif-BoldItalic.ttf: Copyright 2017 The Inria Serif Project Authors (https://github.com/BlackFoundryCom/InriaFonts)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,80 @@
1
1
  {
2
2
  "name": "@vivix-labs/studio-workbench",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0-beta.10",
4
+ "type": "module",
5
+ "publishConfig": {
6
+ "access": "public",
7
+ "registry": "https://registry.npmjs.org/",
8
+ "tag": "beta"
9
+ },
10
+ "license": "MIT",
11
+ "files": [
12
+ "dist",
13
+ "home-media",
14
+ "licenses",
15
+ "studio-plugin.json",
16
+ "skills",
17
+ "presets/user-base.json",
18
+ "presets/table.json"
19
+ ],
20
+ "engines": {
21
+ "node": ">=22.12.0"
22
+ },
23
+ "exports": {
24
+ "./studio-plugin.json": "./studio-plugin.json",
25
+ "./server": {
26
+ "types": "./dist/server.d.ts",
27
+ "import": "./dist/server.js"
28
+ },
29
+ "./shared": {
30
+ "types": "./dist/shared.d.ts",
31
+ "import": "./dist/shared.js"
32
+ },
33
+ "./client": {
34
+ "types": "./dist/client.d.ts",
35
+ "import": "./dist/client.js"
36
+ }
37
+ },
38
+ "peerDependencies": {
39
+ "vivix-studio": ">=2.2.0",
40
+ "react": "19.3.1",
41
+ "react-dom": "^19.0.0"
42
+ },
43
+ "dependencies": {
44
+ "archiver": "7.0.1"
45
+ },
46
+ "devDependencies": {
47
+ "@vivix-labs/project-studio": "workspace:*",
48
+ "@vivix-labs/ui-system": "workspace:*",
49
+ "@types/archiver": "7.0.0"
50
+ },
51
+ "scripts": {
52
+ "build": "node ../../scripts/build-product-packages.mjs studio-workbench"
53
+ },
54
+ "vivixStudio": {
55
+ "runtimePlugins": {
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.10",
72
+ "@vivix-labs/studio-asset-list": "1.0.0-beta.9",
73
+ "@vivix-labs/studio-workbench": "1.0.0-beta.10",
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
+ }
79
+ }
80
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "presetVersion": "0.1",
3
+ "id": "table",
4
+ "title": "Project table",
5
+ "scope": "project",
6
+ "plugins": [
7
+ {
8
+ "id": "api",
9
+ "package": "@vivix-labs/vivix-api",
10
+ "version": "1.0.0-beta.9",
11
+ "enabled": true,
12
+ "config": {},
13
+ "requiredAccess": [
14
+ "official.request"
15
+ ]
16
+ },
17
+ {
18
+ "id": "studio",
19
+ "package": "@vivix-labs/project-studio",
20
+ "version": "1.0.0-beta.9",
21
+ "enabled": true,
22
+ "config": {
23
+ "role": "project",
24
+ "dataInstance": "user:data",
25
+ "apiInstance": "api",
26
+ "libraryInstance": "user:library",
27
+ "coordinatorInstance": "user:coordinator"
28
+ },
29
+ "requiredAccess": [
30
+ "events.publish"
31
+ ]
32
+ },
33
+ {
34
+ "id": "library",
35
+ "package": "@vivix-labs/material-library",
36
+ "version": "1.0.0-beta.9",
37
+ "enabled": true,
38
+ "config": {
39
+ "role": "client",
40
+ "serviceInstance": "user:library"
41
+ }
42
+ },
43
+ {
44
+ "id": "workbench",
45
+ "package": "@vivix-labs/studio-workbench",
46
+ "version": "1.0.0-beta.10",
47
+ "enabled": true,
48
+ "config": {
49
+ "studioInstance": "studio",
50
+ "apiInstance": "api",
51
+ "dataInstance": "user:data",
52
+ "libraryInstance": "library",
53
+ "libraryServiceInstance": "user:library"
54
+ },
55
+ "requiredAccess": [
56
+ "events.subscribe"
57
+ ]
58
+ }
59
+ ],
60
+ "workspace": {
61
+ "frontend": {
62
+ "plugin": "workbench",
63
+ "id": "table-workbench"
64
+ },
65
+ "settings": {}
66
+ }
67
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "presetVersion": "0.1",
3
+ "id": "user-base",
4
+ "title": "Personal studio",
5
+ "scope": "user",
6
+ "plugins": [
7
+ {
8
+ "id": "data",
9
+ "package": "@vivix-labs/creative-data",
10
+ "version": "1.0.0-beta.9",
11
+ "enabled": true,
12
+ "config": {},
13
+ "requiredAccess": [
14
+ "project.content.read"
15
+ ]
16
+ },
17
+ {
18
+ "id": "library",
19
+ "package": "@vivix-labs/material-library",
20
+ "version": "1.0.0-beta.9",
21
+ "enabled": true,
22
+ "config": {
23
+ "role": "service",
24
+ "dataInstance": "data",
25
+ "serviceInstance": "library"
26
+ }
27
+ },
28
+ {
29
+ "id": "api",
30
+ "package": "@vivix-labs/vivix-api",
31
+ "version": "1.0.0-beta.9",
32
+ "enabled": true,
33
+ "config": {},
34
+ "requiredAccess": [
35
+ "official.request"
36
+ ]
37
+ },
38
+ {
39
+ "id": "coordinator",
40
+ "package": "@vivix-labs/project-studio",
41
+ "version": "1.0.0-beta.9",
42
+ "enabled": true,
43
+ "config": {
44
+ "role": "coordinator",
45
+ "dataInstance": "data",
46
+ "apiInstance": "api",
47
+ "libraryInstance": "library"
48
+ },
49
+ "requiredAccess": [
50
+ "events.publish"
51
+ ]
52
+ },
53
+ {
54
+ "id": "magic-edit",
55
+ "package": "@vivix-labs/magic-edit",
56
+ "version": "1.0.0-beta.9",
57
+ "enabled": true,
58
+ "config": {}
59
+ },
60
+ {
61
+ "id": "dashboard-projects",
62
+ "package": "@vivix-labs/dashboard-projects",
63
+ "version": "1.0.0-beta.9",
64
+ "enabled": true,
65
+ "config": {
66
+ "studioInstance": "coordinator"
67
+ }
68
+ },
69
+ {
70
+ "id": "dashboard-assets",
71
+ "package": "@vivix-labs/dashboard-assets",
72
+ "version": "1.0.0-beta.9",
73
+ "enabled": true,
74
+ "config": {
75
+ "studioInstance": "coordinator"
76
+ }
77
+ },
78
+ {
79
+ "id": "asset-list",
80
+ "package": "@vivix-labs/studio-asset-list",
81
+ "version": "1.0.0-beta.9",
82
+ "enabled": true,
83
+ "config": {}
84
+ },
85
+ {
86
+ "id": "workbench",
87
+ "package": "@vivix-labs/studio-workbench",
88
+ "version": "1.0.0-beta.10",
89
+ "enabled": true,
90
+ "config": {
91
+ "studioInstance": "coordinator",
92
+ "apiInstance": "api",
93
+ "dataInstance": "data",
94
+ "libraryInstance": "library",
95
+ "libraryServiceInstance": "library",
96
+ "magicEditInstance": "magic-edit",
97
+ "dashboard": [
98
+ {
99
+ "plugin": "dashboard-projects",
100
+ "id": "projects"
101
+ },
102
+ {
103
+ "plugin": "dashboard-assets",
104
+ "id": "assets"
105
+ }
106
+ ],
107
+ "views": {
108
+ "projectCreator": {
109
+ "plugin": "dashboard-projects",
110
+ "id": "create-project"
111
+ },
112
+ "assetList": {
113
+ "plugin": "asset-list",
114
+ "id": "asset-list"
115
+ }
116
+ }
117
+ },
118
+ "requiredAccess": [
119
+ "events.subscribe"
120
+ ]
121
+ }
122
+ ],
123
+ "workspace": {
124
+ "frontend": {
125
+ "plugin": "workbench",
126
+ "id": "studio-home"
127
+ },
128
+ "settings": {}
129
+ }
130
+ }
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: vivix-studio-workbench
3
+ description: Operate the installed Vivix Studio workbench, saved Custom Views, fixed-version favorites. Use for workbench-specific asset selection; use public operation discovery for the installed version.
4
+ ---
5
+
6
+ # Operate the installed workbench
7
+
8
+ Use `agent guide --json` to locate the installed workspace Skill for project
9
+ selection, page opening, and host-adapted result presentation. Discover actual
10
+ instances, operations, and enabled plugin Skills before unfamiliar work.
11
+
12
+ Read [assets and views](references/assets-and-views.md) for project assets,
13
+ immutable versions, fixed favorites, saved SQL views, import/reference semantics,
14
+ and task recovery. Advertising projects use the separately installed advertising
15
+ workbench Skill. Discover available presets with `preset list`.
16
+
17
+ Keep the current choice distinct from the newest candidate. Ordinary file
18
+ projects use explicit adoption. Advertising clips may select their first saved
19
+ readable candidate automatically; later candidates preserve the existing choice.
20
+ Use the installed behavior rather than introducing another selection policy.
21
+
22
+ Persist business changes through public operations with the observed revisions.
23
+ Show the actual selected or edited media in chat and keep the matching workbench
24
+ view available. A recipe, saved view, accepted task, and finished file are different
25
+ results. Read back the corresponding state before reporting completion.
26
+
27
+ ## Project cover
28
+
29
+ On Manage Projects, open a project's action menu to upload, change, or remove
30
+ its cover. An image's menu in Global Asset can use the saved version as the
31
+ cover. For an Agent making the same change, discover `projects.get` and
32
+ `projects.update` on the actual project studio instance. Use the observed project
33
+ revision and set `changes.coverRef` to a saved image's exact VersionRef from that
34
+ project, or to `null` to remove it. Verify the saved reference and refresh Manage
35
+ Projects to see it on both the project card and sidebar.
36
+
37
+ ## Remove or restore a project in the workbench
38
+
39
+ Remove project hides the project from the sidebar, Home project cards, and
40
+ Manage Projects. The local directory, registration, and saved content remain
41
+ available. For a request to restore a project by name, match its registered
42
+ ID and discover `workspace.hiddenProjects` and `workspace.setProjectHidden`
43
+ on the user-scope workbench instance. Read the hidden IDs, set
44
+ `hidden: false` for the matching ID, and verify it is no longer hidden.
45
+
46
+ ## Refresh the affected workbench
47
+
48
+ After an operation succeeds and changes data shown in an open workbench, check that the
49
+ affected page has no unsaved edits, then refresh that page once through browser control.
50
+ If edits are unsaved or their state is uncertain, preserve them and ask the user to save
51
+ or finish editing before a refresh. If browser control is unavailable, tell the user which
52
+ workbench page to refresh manually. A failed or unknown operation needs its error or
53
+ original-intent recovery first; refreshing never retries the operation.
54
+
55
+ Workbench lists and details load on navigation and browser refresh. User-initiated
56
+ favorites and completed file imports update the affected list once after success; a batch
57
+ updates once after all items finish. Background generation continues independently. To
58
+ see its latest progress after an Agent operation, use the same saved-edit check and one
59
+ page refresh. Keep the user's current page and fixed media version when checking results.
60
+
61
+ `library.usage` accepts materialId, optional versionId, limit (1–200, default50)
62
+ and offset (default0). Its response is `{items,nextOffset}`; continue until
63
+ nextOffset is null. Usage rows identify the material version and target project,
64
+ asset and version. Usage count is distinct active target assets, not relation rows.
65
+ Use each actual scope's describe output to discover configured instance IDs;
66
+ custom projects need not use the default studio/api IDs or enable the library.
67
+
68
+ For image.edit only, when the raw model is image, explicitly sets
69
+ requires_explicit_source_roles=false and has source_roles=[], the installed
70
+ workbench derives a local implicit-image descriptor (one required fixed image,
71
+ no weight). This is a local mapping, not a Provider-declared role; upload sends
72
+ the real image as source_assets without a remote role. image.generate needs no
73
+ reference. Explicit roles keep their declared validation.
74
+
75
+ ## Set up Studio Home
76
+
77
+ After installing the matching official archives, run this package's
78
+ `skills/scripts/initialize-home.mjs` with Node in the intended Studio profile.
79
+ It applies the user preset and opens Home. Use `--no-open` to print the Home
80
+ bookmark. The welcome dialog imports only the selected sample. Use
81
+ `--sample out-of-steps` or `--sample cobalt-headphones` to import a sample or
82
+ resume its interrupted import from the CLI.
83
+
84
+ Home composes user-scope components from the workbench instance's
85
+ `config.dashboard` array of `{ "plugin": "instance-id", "id": "ui-id" }`
86
+ references. The official user preset supplies the separate `dashboard-projects`
87
+ and `dashboard-assets` instances, with the component IDs `projects` and `assets`.
88
+ To add a card, create or reuse a user-scope component, enable its provider, and
89
+ append its reference, for example `{ "plugin": "usage", "id": "summary" }`.
90
+ The card can read operations of its declared dependencies. Render it with Studio UI
91
+ System controls and inherit the workbench's semantic colors.
92
+
93
+ Each official Preset entry identifies its own installable plugin and registered
94
+ component or contributed page. A plugin can still register several views. Read the
95
+ view prompt for the scope, package, component ID and route.
96
+
97
+ Each `config.savedViews` item is one shortcut. A `{ "plugin": "instance-id",
98
+ "id": "ui-id" }` shortcut renders the selected user-scope component inside Home.
99
+ A `{ "projectId": "...", "viewId": "...", "title": "..." }` shortcut opens the
100
+ existing project and its declared navigation ID. To save Social Preview, use
101
+ the actual project ID and the contributed route `social:preview`. Two UI IDs
102
+ from the same enabled plugin can have their own shortcuts. Views saved through
103
+ the Assets table editor appear as table tabs on that page.
104
+
105
+ Enable local component providers in the same user scope before adding
106
+ references. Update the full composition with `project configure --scope user
107
+ --file <file>` and preserve unrelated instance settings. Remove references
108
+ before disabling a provider. If the Host returns `USER_SCOPE_IN_USE`, let the
109
+ active projects finish and restart the Host before applying the user change. An incompatible or disabled dependency can stop
110
+ Home from activating. Restore the prior composition if needed.