@vgai/editor-sdk 0.5.3 → 0.5.5
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 +2 -2
- package/src/client.ts +13 -3
- package/src/editor-view.ts +1 -1
- package/src/types.ts +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@vgai/editor-sdk",
|
|
3
3
|
"author": "Volter AI, Inc.",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@types/three": "^0.180.0",
|
|
25
|
-
"@vgai/sdk": "0.5.
|
|
25
|
+
"@vgai/sdk": "0.5.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^19.0.0",
|
package/src/client.ts
CHANGED
|
@@ -149,9 +149,19 @@ export class EditorClient {
|
|
|
149
149
|
* explicit config leg, relayed as `cmd['seed']`; `handleCommand`'s
|
|
150
150
|
* `'play'` case threads it into `enterPlayMode`'s highest-precedence seed
|
|
151
151
|
* argument (beats manifest.determinism.defaultSeed/?vgai-seed=). Omitted,
|
|
152
|
-
* boot seeding falls back to that precedence unchanged.
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
* boot seeding falls back to that precedence unchanged.
|
|
153
|
+
*
|
|
154
|
+
* `opts.name` (`vgai play --name <text>`) — an OPTIONAL label for this run,
|
|
155
|
+
* relayed as `cmd['name']` and slugified server-side into the run's
|
|
156
|
+
* `logs/play-*.jsonl` filename and its session-journal line. Findability
|
|
157
|
+
* only: no registry, no uniqueness, no lookup verb — grep and `ls` are the
|
|
158
|
+
* query engine. Omitted, the filename keeps its exact unnamed shape. */
|
|
159
|
+
async play(opts?: { seed?: number; name?: string | null }): Promise<void> {
|
|
160
|
+
await this.command({
|
|
161
|
+
type: 'play',
|
|
162
|
+
...(opts?.seed !== undefined ? { seed: opts.seed } : {}),
|
|
163
|
+
...(opts?.name ? { name: opts.name } : {}),
|
|
164
|
+
});
|
|
155
165
|
}
|
|
156
166
|
|
|
157
167
|
/** Dispose the current play session and mount it again from fresh project entry source. */
|
package/src/editor-view.ts
CHANGED
|
@@ -32,7 +32,7 @@ const DIAGNOSTICS = new Set<EditorViewDiagnostic>([
|
|
|
32
32
|
'bounds',
|
|
33
33
|
'skeleton',
|
|
34
34
|
]);
|
|
35
|
-
const UTILITIES = new Set<EditorViewUtility>(['profiler', 'console', 'animation'
|
|
35
|
+
const UTILITIES = new Set<EditorViewUtility>(['profiler', 'console', 'animation']);
|
|
36
36
|
|
|
37
37
|
function nonEmpty(value: string | null): string | null {
|
|
38
38
|
const trimmed = value?.trim();
|
package/src/types.ts
CHANGED
|
@@ -473,7 +473,7 @@ export interface EditorView {
|
|
|
473
473
|
frame?: 'document' | 'selection';
|
|
474
474
|
grid?: boolean;
|
|
475
475
|
};
|
|
476
|
-
utility?: 'profiler' | 'console' | 'animation'
|
|
476
|
+
utility?: 'profiler' | 'console' | 'animation';
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
export interface PresentedEditorView {
|