phibelle-kit 1.0.3 → 1.0.4

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.
@@ -9,6 +9,7 @@ import { unpackageScene } from "../lib/scene-packaging.js";
9
9
  import { createScriptWatcher } from "../lib/script-watcher.js";
10
10
  import { runFirstUpdateSetup } from "../lib/first-run-setup.js";
11
11
  import { toErrorMessage } from "../lib/utils.js";
12
+ import { BASE_URL } from "../lib/public-env.js";
12
13
  function createWatchCallbacks() {
13
14
  return {
14
15
  onPushed: (file) => console.log(chalk.green(" ✓ Pushed " + file + " to Convex")),
@@ -24,6 +25,8 @@ export async function watchSceneCommand(sceneId) {
24
25
  console.log();
25
26
  console.log(chalk.bold.cyan(" 👀 Watching scene updates..."));
26
27
  console.log(chalk.gray(` Scene ID: ${sceneId}`));
28
+ console.log(chalk.white(" Scene link: ") + chalk.cyan(`${BASE_URL}/editor?sceneId=${sceneId}`));
29
+ console.log();
27
30
  console.log(chalk.gray(" Press Ctrl+C to stop"));
28
31
  console.log();
29
32
  let previousUpdatedAt = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phibelle-kit",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "CLI tool for interacting with the Phibelle engine",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,6 +10,7 @@ import { createScriptWatcher, type ScriptWatcher } from "../lib/script-watcher.j
10
10
  import { runFirstUpdateSetup } from "../lib/first-run-setup.js";
11
11
  import { toErrorMessage } from "../lib/utils.js";
12
12
  import type { Scene } from "../lib/types.js";
13
+ import { BASE_URL } from "../lib/public-env.js";
13
14
 
14
15
  function createWatchCallbacks() {
15
16
  return {
@@ -29,6 +30,8 @@ export async function watchSceneCommand(sceneId: string) {
29
30
  console.log();
30
31
  console.log(chalk.bold.cyan(" 👀 Watching scene updates..."));
31
32
  console.log(chalk.gray(` Scene ID: ${sceneId}`));
33
+ console.log(chalk.white(" Scene link: ") + chalk.cyan(`${BASE_URL}/editor?sceneId=${sceneId}`));
34
+ console.log();
32
35
  console.log(chalk.gray(" Press Ctrl+C to stop"));
33
36
  console.log();
34
37