truecanvas 0.6.1 → 0.6.2

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.
@@ -564,6 +564,13 @@ async function startHub(opts) {
564
564
  const store = new ProjectStore();
565
565
  const editorDir = fileURLToPath(new URL("./editor/", import.meta.url));
566
566
  const pkgDir = path5.resolve(path5.dirname(opts.cli), "..");
567
+ const version = (() => {
568
+ try {
569
+ return JSON.parse(fs5.readFileSync(path5.join(pkgDir, "package.json"), "utf8")).version;
570
+ } catch {
571
+ return "";
572
+ }
573
+ })();
567
574
  const origin = `http://localhost:${opts.port}`;
568
575
  const allowedHosts = /* @__PURE__ */ new Set([`localhost:${opts.port}`, `127.0.0.1:${opts.port}`]);
569
576
  const clients = /* @__PURE__ */ new Set();
@@ -628,6 +635,7 @@ async function startHub(opts) {
628
635
  const live = await Promise.all(running.map(async (dir) => [dir, await sessionsOf(dir)]));
629
636
  return {
630
637
  origin,
638
+ version,
631
639
  active,
632
640
  focus,
633
641
  notice: opts.notice ?? null,
package/dist/cli.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  readPackage,
15
15
  runScript,
16
16
  startHub
17
- } from "./chunk-NAK4DQWO.js";
17
+ } from "./chunk-FJO64PGM.js";
18
18
  import {
19
19
  CHUNK,
20
20
  decodeFrame,