@sogni-ai/sogni-client 5.28.0 → 5.29.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [5.29.0](https://github.com/Sogni-AI/sogni-client/compare/v5.28.0...v5.29.0) (2026-09-05)
2
+
3
+
4
+ ### Features
5
+
6
+ * **projects:** type the model unload and load phases a worker reports while initiating ([3e8d04d](https://github.com/Sogni-AI/sogni-client/commit/3e8d04d25bf50809f36ab9b81229d54e691cd102))
7
+
1
8
  # [5.28.0](https://github.com/Sogni-AI/sogni-client/compare/v5.27.1...v5.28.0) (2026-09-04)
2
9
 
3
10
 
@@ -180,7 +180,11 @@ export type JobETAData = {
180
180
  imgID?: string;
181
181
  etaSeconds: number;
182
182
  };
183
- export type JobPreparation = {
183
+ /**
184
+ * A LoRA the job needs is being fetched by the worker before the graph is
185
+ * queued. Arrives on `initiatingModel` and updates as the download progresses.
186
+ */
187
+ export type JobAssetPreparation = {
184
188
  phase: 'downloadingAssets';
185
189
  assetType: 'lora';
186
190
  requested: number;
@@ -190,6 +194,25 @@ export type JobPreparation = {
190
194
  current: number;
191
195
  currentProgress?: number;
192
196
  };
197
+ /**
198
+ * The worker is switching models: ComfyUI is moving the previous model out of
199
+ * VRAM (`unloadingModel`) or the next one in (`loadingModel`). Each phase
200
+ * arrives twice on `initiatingModel`, at `start` and at `end`; the `end` step
201
+ * carries how long it took. A switch can run past a minute on a card that was
202
+ * full, so show it rather than a render that appears stuck at 0%.
203
+ */
204
+ export type JobModelPhasePreparation = {
205
+ phase: 'unloadingModel' | 'loadingModel';
206
+ /** The model class ComfyUI names, e.g. "Flux" or "WAN21"; not a display name. */
207
+ model: string;
208
+ step: 'start' | 'end';
209
+ elapsedSec?: number;
210
+ };
211
+ /**
212
+ * What the worker is doing while a job is `initiating`. Narrow on `phase`
213
+ * before reading the other fields.
214
+ */
215
+ export type JobPreparation = JobAssetPreparation | JobModelPhasePreparation;
193
216
  export type JobResultData = {
194
217
  jobID: string;
195
218
  imgID: string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const LIB_VERSION = "5.28.0";
1
+ export declare const LIB_VERSION = "5.29.0";
package/dist/version.js CHANGED
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LIB_VERSION = void 0;
4
4
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
5
5
  // Source of truth: package.json version.
6
- exports.LIB_VERSION = '5.28.0';
6
+ exports.LIB_VERSION = '5.29.0';
7
7
  //# sourceMappingURL=version.js.map
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
2
2
  // Source of truth: package.json version.
3
- export const LIB_VERSION = '5.28.0';
3
+ export const LIB_VERSION = '5.29.0';
4
4
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "5.28.0",
6
+ "version": "5.29.0",
7
7
  "engines": {
8
8
  "node": ">=22"
9
9
  },
@@ -188,7 +188,11 @@ export type JobETAData = {
188
188
  etaSeconds: number;
189
189
  };
190
190
 
191
- export type JobPreparation = {
191
+ /**
192
+ * A LoRA the job needs is being fetched by the worker before the graph is
193
+ * queued. Arrives on `initiatingModel` and updates as the download progresses.
194
+ */
195
+ export type JobAssetPreparation = {
192
196
  phase: 'downloadingAssets';
193
197
  assetType: 'lora';
194
198
  requested: number;
@@ -199,6 +203,27 @@ export type JobPreparation = {
199
203
  currentProgress?: number;
200
204
  };
201
205
 
206
+ /**
207
+ * The worker is switching models: ComfyUI is moving the previous model out of
208
+ * VRAM (`unloadingModel`) or the next one in (`loadingModel`). Each phase
209
+ * arrives twice on `initiatingModel`, at `start` and at `end`; the `end` step
210
+ * carries how long it took. A switch can run past a minute on a card that was
211
+ * full, so show it rather than a render that appears stuck at 0%.
212
+ */
213
+ export type JobModelPhasePreparation = {
214
+ phase: 'unloadingModel' | 'loadingModel';
215
+ /** The model class ComfyUI names, e.g. "Flux" or "WAN21"; not a display name. */
216
+ model: string;
217
+ step: 'start' | 'end';
218
+ elapsedSec?: number;
219
+ };
220
+
221
+ /**
222
+ * What the worker is doing while a job is `initiating`. Narrow on `phase`
223
+ * before reading the other fields.
224
+ */
225
+ export type JobPreparation = JobAssetPreparation | JobModelPhasePreparation;
226
+
202
227
  export type JobResultData = {
203
228
  jobID: string;
204
229
  imgID: string;
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
2
2
  // Source of truth: package.json version.
3
- export const LIB_VERSION = '5.28.0';
3
+ export const LIB_VERSION = '5.29.0';