phibelle-kit 1.0.35 → 1.0.37

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.
@@ -45,6 +45,10 @@ export async function watchSceneCommand() {
45
45
  const incoming = parseIncomingSceneMessage(raw);
46
46
  if (!incoming)
47
47
  return;
48
+ if (incoming.sceneId !== sceneId) {
49
+ console.log(chalk.red(" ✖ Scene ID mismatch: " + incoming.sceneId + " !== " + sceneId));
50
+ process.exit(1);
51
+ }
48
52
  try {
49
53
  parseSceneJson(incoming.sceneData);
50
54
  }
@@ -156,7 +160,8 @@ function isSceneSyncMessage(value) {
156
160
  (obj.templateId === undefined || typeof obj.templateId === "string"));
157
161
  }
158
162
  function printEditorLink(sceneId, templateId, lastPrintedLink) {
159
- let editorUrl = `${BASE_URL}/editor?sceneId=${encodeURIComponent(sceneId)}&wsEnabled=true`;
163
+ const folderName = path.basename(process.cwd());
164
+ let editorUrl = `${BASE_URL}/editor?sceneId=${encodeURIComponent(sceneId)}&wsEnabled=true&sceneName=${encodeURIComponent(folderName)}`;
160
165
  if (sceneId === "template" && templateId) {
161
166
  editorUrl += `&id=${encodeURIComponent(templateId)}`;
162
167
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phibelle-kit",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "CLI tool for interacting with the Phibelle engine",
5
5
  "type": "module",
6
6
  "bin": {