phibelle-kit 1.0.2 → 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/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ import { cloneSceneCommand } from "./commands/clone-scene.js";
|
|
|
5
5
|
import { waitForToken } from "./lib/wait-for-token.js";
|
|
6
6
|
const USAGE = " Usage: phibelle-kit clone <sceneId> | phibelle-kit watch <sceneId>";
|
|
7
7
|
async function main() {
|
|
8
|
-
await waitForToken();
|
|
9
8
|
const command = process.argv[2];
|
|
10
9
|
const sceneId = process.argv[3];
|
|
11
10
|
if (!command || !sceneId) {
|
|
@@ -13,6 +12,7 @@ async function main() {
|
|
|
13
12
|
console.log(chalk.gray(USAGE));
|
|
14
13
|
process.exit(1);
|
|
15
14
|
}
|
|
15
|
+
await waitForToken();
|
|
16
16
|
if (command === "clone") {
|
|
17
17
|
await cloneSceneCommand(sceneId);
|
|
18
18
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phibelle-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "CLI tool for interacting with the Phibelle engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "tsc",
|
|
11
11
|
"dev": "tsc && NODE_ENV=development node dist/index.js",
|
|
12
|
-
"start": "node dist/index.js"
|
|
12
|
+
"start": "node dist/index.js",
|
|
13
|
+
"npm-publish": "pnpm build && npm publish"
|
|
13
14
|
},
|
|
14
15
|
"engines": {
|
|
15
16
|
"node": ">=20"
|
|
@@ -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
|
|