@vivix-labs/studio-workbench 1.0.0-beta.12 → 1.0.0-beta.13
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/package.json +11 -11
- package/presets/table.json +1 -1
- package/presets/user-base.json +1 -1
- package/skills/scripts/initialize-home.mjs +17 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivix-labs/studio-workbench",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -44,9 +44,12 @@
|
|
|
44
44
|
"archiver": "7.0.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@vivix-labs/ui-system": "
|
|
49
|
-
"@
|
|
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"
|
|
50
53
|
},
|
|
51
54
|
"vivixStudio": {
|
|
52
55
|
"runtimePlugins": {
|
|
@@ -65,16 +68,13 @@
|
|
|
65
68
|
"@vivix-labs/short-drama-script-editor": "1.0.0-beta.11",
|
|
66
69
|
"@vivix-labs/short-drama-social-preview": "1.0.0-beta.11",
|
|
67
70
|
"@vivix-labs/short-drama-storyboard": "1.0.0-beta.11",
|
|
68
|
-
"@vivix-labs/short-drama-workbench": "1.0.0-beta.
|
|
71
|
+
"@vivix-labs/short-drama-workbench": "1.0.0-beta.13",
|
|
69
72
|
"@vivix-labs/studio-asset-list": "1.0.0-beta.11",
|
|
70
|
-
"@vivix-labs/studio-workbench": "1.0.0-beta.
|
|
73
|
+
"@vivix-labs/studio-workbench": "1.0.0-beta.13",
|
|
71
74
|
"@vivix-labs/vivix-api": "1.0.0-beta.11",
|
|
72
|
-
"@vivix-labs/ads-workbench": "1.0.0-beta.
|
|
75
|
+
"@vivix-labs/ads-workbench": "1.0.0-beta.12",
|
|
73
76
|
"@vivix-labs/chat-components": "1.0.0-beta.11",
|
|
74
77
|
"@vivix-labs/short-drama-authoring": "1.0.0-beta.11"
|
|
75
78
|
}
|
|
76
|
-
},
|
|
77
|
-
"scripts": {
|
|
78
|
-
"build": "node ../../scripts/build-product-packages.mjs studio-workbench"
|
|
79
79
|
}
|
|
80
|
-
}
|
|
80
|
+
}
|
package/presets/table.json
CHANGED
package/presets/user-base.json
CHANGED
|
@@ -108,12 +108,26 @@ async function configureDramaChat(projectId) {
|
|
|
108
108
|
);
|
|
109
109
|
if (!chat) return;
|
|
110
110
|
const project = await cli('plugin', 'list', '--project', projectId);
|
|
111
|
-
|
|
111
|
+
const current = project.instances.find((item) => item.id === chat.id);
|
|
112
|
+
if (current && current.package !== chat.package)
|
|
113
|
+
throw Error('Another plugin owns the chat-components instance.');
|
|
114
|
+
if (current?.config.libraryInstance) return;
|
|
115
|
+
const libraries = user.instances.filter(
|
|
116
|
+
(item) =>
|
|
117
|
+
item.package === '@vivix-labs/material-library' &&
|
|
118
|
+
item.state === 'ready' &&
|
|
119
|
+
item.config.role === 'service',
|
|
120
|
+
);
|
|
121
|
+
if (libraries.length !== 1)
|
|
122
|
+
throw Error('Configure one ready user material library before enabling chat file uploads.');
|
|
112
123
|
const config = join(lock, 'chat-components.json');
|
|
113
124
|
await writeFile(
|
|
114
125
|
config,
|
|
115
126
|
JSON.stringify({
|
|
116
|
-
|
|
127
|
+
...(current?.config || {
|
|
128
|
+
targets: { character: { instanceId: 'authoring', operationId: 'characters.receiveCard' } },
|
|
129
|
+
}),
|
|
130
|
+
libraryInstance: `user:${libraries[0].id}`,
|
|
117
131
|
}),
|
|
118
132
|
{ mode: 0o600 },
|
|
119
133
|
);
|
|
@@ -122,7 +136,7 @@ async function configureDramaChat(projectId) {
|
|
|
122
136
|
'enable',
|
|
123
137
|
chat.package,
|
|
124
138
|
'--version',
|
|
125
|
-
chat.version,
|
|
139
|
+
current?.version ?? chat.version,
|
|
126
140
|
'--project',
|
|
127
141
|
projectId,
|
|
128
142
|
'--instance',
|