@zenbujs/core 0.0.8 → 0.0.9

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.
@@ -654,6 +654,9 @@ type UpdaterPhase = {
654
654
  phase: "incompatible";
655
655
  remoteHead: string;
656
656
  reason: string;
657
+ } | {
658
+ phase: "dirty-tree";
659
+ appsDir: string;
657
660
  } | {
658
661
  phase: "error";
659
662
  message: string;
@@ -1,6 +1,6 @@
1
1
  import { Events } from "./events.mjs";
2
2
  import { n as SchemaRoot } from "./schema-CjrMVk36.mjs";
3
- import { c as DbService, d as ServerService, i as BaseWindowService, l as HttpService, n as WindowService, o as RendererHostService, r as RpcService, s as ViewRegistryService, t as UpdaterService, u as ReloaderService } from "./index-w5QyDjuf.mjs";
3
+ import { c as DbService, d as ServerService, i as BaseWindowService, l as HttpService, n as WindowService, o as RendererHostService, r as RpcService, s as ViewRegistryService, t as UpdaterService, u as ReloaderService } from "./index-CVF768Xs.mjs";
4
4
 
5
5
  //#region src/registry-generated.d.ts
6
6
  type ServiceBase = "evaluate" | "shutdown" | "constructor" | "effect" | "__cleanupAllEffects" | "__effectCleanups" | "ctx";
@@ -17,7 +17,7 @@ async function defaultServices() {
17
17
  await import("../renderer-host-DD16MXhI.mjs").then((n) => n.i);
18
18
  await import("../window-YFKvAM0l.mjs").then((n) => n.n);
19
19
  await import("../advice-config-DXSIo0sg.mjs").then((n) => n.t);
20
- await import("../updater-DCkz9M1c.mjs").then((n) => n.n);
20
+ await import("../updater-BtB_Ki1r.mjs").then((n) => n.n);
21
21
  }
22
22
  //#endregion
23
23
  export { defaultServices };
@@ -1,2 +1,2 @@
1
- import { a as MAIN_WINDOW_ID, c as DbService, d as ServerService, i as BaseWindowService, l as HttpService, n as WindowService, o as RendererHostService, r as RpcService, s as ViewRegistryService, t as UpdaterService, u as ReloaderService } from "../index-w5QyDjuf.mjs";
1
+ import { a as MAIN_WINDOW_ID, c as DbService, d as ServerService, i as BaseWindowService, l as HttpService, n as WindowService, o as RendererHostService, r as RpcService, s as ViewRegistryService, t as UpdaterService, u as ReloaderService } from "../index-CVF768Xs.mjs";
2
2
  export { BaseWindowService, DbService, HttpService, MAIN_WINDOW_ID, ReloaderService, RendererHostService, RpcService, ServerService, UpdaterService, ViewRegistryService, WindowService };
@@ -4,5 +4,5 @@ import { a as DbService, r as ViewRegistryService, s as HttpService, t as Render
4
4
  import { n as MAIN_WINDOW_ID, t as BaseWindowService } from "../base-window-BxBZ2md_.mjs";
5
5
  import { t as RpcService } from "../rpc-C4_NQmpT.mjs";
6
6
  import { t as WindowService } from "../window-YFKvAM0l.mjs";
7
- import { t as UpdaterService } from "../updater-DCkz9M1c.mjs";
7
+ import { t as UpdaterService } from "../updater-BtB_Ki1r.mjs";
8
8
  export { BaseWindowService, DbService, HttpService, MAIN_WINDOW_ID, ReloaderService, RendererHostService, RpcService, ServerService, UpdaterService, ViewRegistryService, WindowService };
@@ -188,6 +188,12 @@ async function loadConfigPhase(tsconfig, projectRoot) {
188
188
  register$1({ tsconfig });
189
189
  const { loadConfig } = await import("./load-config-C4Oe2qZO.mjs").then((n) => n.n);
190
190
  const { resolved, pluginSourceFiles } = await loadConfig(projectRoot);
191
+ try {
192
+ const { linkProject } = await import("./link-glX89NV5.mjs").then((n) => n.n);
193
+ await linkProject(projectRoot, { quiet: true });
194
+ } catch (err) {
195
+ console.warn(`[setup-gate] zen link failed (non-fatal): ${err instanceof Error ? err.message : String(err)}`);
196
+ }
191
197
  const loaderData = {
192
198
  payload: {
193
199
  plugins: resolved.plugins.map((p) => ({
@@ -754,10 +754,13 @@ var UpdaterService = class extends Service.create({ key: "updater" }) {
754
754
  };
755
755
  try {
756
756
  if (await hasLocalModifications(ctx.appsDir)) {
757
- this.setStatus({ phase: "idle" });
757
+ this.setStatus({
758
+ phase: "dirty-tree",
759
+ appsDir: ctx.appsDir
760
+ });
758
761
  return {
759
762
  status: "dirty-tree",
760
- error: `uncommitted changes in ${ctx.appsDir}; refusing to update`
763
+ error: `uncommitted changes in ${ctx.appsDir}; refusing to update. Either revert local edits, or wait for the launcher to clean things up on the next full restart.`
761
764
  };
762
765
  }
763
766
  const reporter = this.makeReporter("update");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenbujs/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -122,9 +122,9 @@
122
122
  "tsdown": "^0.21.10",
123
123
  "typescript": "^5.4.5",
124
124
  "vitest": "^3.2.4",
125
- "@zenbu/zenrpc": "0.0.0",
125
+ "@zenbu/advice": "0.0.0",
126
126
  "@zenbu/kyju": "0.0.0",
127
- "@zenbu/advice": "0.0.0"
127
+ "@zenbu/zenrpc": "0.0.0"
128
128
  },
129
129
  "scripts": {
130
130
  "build": "node --max-old-space-size=8192 ./node_modules/tsdown/dist/run.mjs",