@ai-matrx/summon 0.1.4 → 0.1.5

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.
package/dist/index.d.cts CHANGED
@@ -215,6 +215,12 @@ interface OverlayPersistencePort {
215
215
  }>;
216
216
  remove(key: string): Promise<void>;
217
217
  list?(prefix: string): Promise<readonly string[]>;
218
+ /**
219
+ * Every saved value at once (key → value), for stores where one read is cheaper than several.
220
+ * When present, restoring an identity costs exactly this one call: the workspace and every
221
+ * saved component state come out of it, and `load`/`list` are not called on boot.
222
+ */
223
+ loadAll?(): Promise<ReadonlyMap<string, StoredValue>>;
218
224
  }
219
225
  interface SummonPorts {
220
226
  readonly identity: IdentityPort;
package/dist/index.d.ts CHANGED
@@ -215,6 +215,12 @@ interface OverlayPersistencePort {
215
215
  }>;
216
216
  remove(key: string): Promise<void>;
217
217
  list?(prefix: string): Promise<readonly string[]>;
218
+ /**
219
+ * Every saved value at once (key → value), for stores where one read is cheaper than several.
220
+ * When present, restoring an identity costs exactly this one call: the workspace and every
221
+ * saved component state come out of it, and `load`/`list` are not called on boot.
222
+ */
223
+ loadAll?(): Promise<ReadonlyMap<string, StoredValue>>;
218
224
  }
219
225
  interface SummonPorts {
220
226
  readonly identity: IdentityPort;
package/dist/index.js CHANGED
@@ -1145,11 +1145,14 @@ var windowManagerSlice = createSlice2({
1145
1145
  if (!Number.isFinite(viewportWidth) || !Number.isFinite(viewportHeight) || viewportWidth <= 0 || viewportHeight <= 0) {
1146
1146
  return;
1147
1147
  }
1148
- state2.trayViewport = { width: viewportWidth, height: viewportHeight };
1149
1148
  const minimized = Object.values(state2.windows).filter(
1150
1149
  (w) => w.state === "minimized" && w.traySlot !== null
1151
1150
  );
1152
1151
  if (minimized.length === 0) return;
1152
+ const tv = state2.trayViewport;
1153
+ if (!tv || tv.width !== viewportWidth || tv.height !== viewportHeight) {
1154
+ state2.trayViewport = { width: viewportWidth, height: viewportHeight };
1155
+ }
1153
1156
  recomputeAllTrayRects(state2);
1154
1157
  },
1155
1158
  /**