@civitai/blocks-react 0.52.0 β 0.53.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/dist/internal/iframeTransport.d.ts +97 -0
- package/dist/internal/iframeTransport.d.ts.map +1 -1
- package/dist/internal/iframeTransport.js +178 -2
- package/dist/internal/iframeTransport.js.map +1 -1
- package/dist/internal/requestTimeouts.d.ts.map +1 -1
- package/dist/internal/requestTimeouts.js +9 -0
- package/dist/internal/requestTimeouts.js.map +1 -1
- package/package.json +39 -6
|
@@ -101,6 +101,103 @@ export declare class IframeTransport implements BlockTransport {
|
|
|
101
101
|
dispose(): void;
|
|
102
102
|
private dispatch;
|
|
103
103
|
private flushOutbound;
|
|
104
|
+
/**
|
|
105
|
+
* Which blockβhost request a reply we are about to drop leaves hanging, and
|
|
106
|
+
* whether we can tell at all.
|
|
107
|
+
*
|
|
108
|
+
* π΄ "NO REQUEST IS PENDING" AND "I CANNOT TELL WHICH" ARE DIFFERENT ANSWERS, and
|
|
109
|
+
* an earlier revision collapsed them. It returned `'other'` whenever `requestId`
|
|
110
|
+
* was not a readable string and the `console.warn` then asserted *"unsolicited
|
|
111
|
+
* push β nothing was awaiting it"*, which is FALSE for two shapes that occur:
|
|
112
|
+
* - a reply whose whole payload is not an object (`isObject` is the first thing
|
|
113
|
+
* most validators check), while its request sits in `pending` and hangs to its
|
|
114
|
+
* timeout;
|
|
115
|
+
* - a PRE-v2 host, which echoes `requestId` only via
|
|
116
|
+
* `...(requestId ? { requestId } : {})` β the asymmetry
|
|
117
|
+
* `isValidTokenRefreshResponse` exists to tolerate (NOT `isValidTokenRefresh`,
|
|
118
|
+
* which validates a host PUSH and has no `requestId` handling at all), so a
|
|
119
|
+
* legacy host's malformed `TOKEN_REFRESH_RESPONSE`
|
|
120
|
+
* arrives with no `requestId` at all while `REQUEST_TOKEN` is awaiting it.
|
|
121
|
+
* In both, something IS hanging and the operator was told the opposite. So a
|
|
122
|
+
* reply that leaves a request OF ITS OWN TYPE unattributed reports `unknown`
|
|
123
|
+
* rather than `pushed`, and the warn names how many are awaiting that reply type
|
|
124
|
+
* rather than claiming none was.
|
|
125
|
+
*
|
|
126
|
+
* π΄ AND THE LOOKUP APPLIES THE SAME `responseType` PREDICATE AS REAL
|
|
127
|
+
* CORRELATION. Without it, a malformed reply carrying ANOTHER in-flight request's
|
|
128
|
+
* `requestId` β which a buggy host can produce by echoing the wrong id β reports
|
|
129
|
+
* against the wrong request type, i.e. mislabels a healthy request as the broken
|
|
130
|
+
* one. `handleMessage` already refuses to settle such a reply; this must refuse to
|
|
131
|
+
* name it for the same reason.
|
|
132
|
+
*
|
|
133
|
+
* The `requestId` is read from an UNVALIDATED payload (the validator just
|
|
134
|
+
* rejected it), so it is used ONLY as a `Map` key on our own pending table and
|
|
135
|
+
* never trusted as data.
|
|
136
|
+
*
|
|
137
|
+
* π΄ THE CLAMP IS NOT REDUNDANT WITH THE TYPE SYSTEM. `requestType` is whatever
|
|
138
|
+
* the caller passed to `sendRequest` β typed, but a JavaScript consumer, or a
|
|
139
|
+
* block built against a newer protocol, can put any string there, and this value
|
|
140
|
+
* becomes a Prometheus label on the host. See `boundBlockToParentMessageType`.
|
|
141
|
+
*/
|
|
142
|
+
private hangingRequestTypeFor;
|
|
143
|
+
/**
|
|
144
|
+
* Tell the host that this transport refused an inbound message, so the drop
|
|
145
|
+
* becomes a number instead of a `console.warn` nobody is reading.
|
|
146
|
+
*
|
|
147
|
+
* π΄ WHY IT GOES OVER THE BRIDGE AND NOT STRAIGHT TO AN ENDPOINT. A block runs
|
|
148
|
+
* in a sandboxed iframe at an OPAQUE origin with no ambient credential and no
|
|
149
|
+
* civitai session, so it has no metrics path of its own: a direct POST would be
|
|
150
|
+
* cross-origin, uncredentialed, and would need a new PUBLIC unauthenticated
|
|
151
|
+
* endpoint to receive it β a fresh abuse surface for an observability add-on, and
|
|
152
|
+
* explicitly out of scope. The host already owns the receiving half: its
|
|
153
|
+
* dispatcher counts every inbound bridge message on
|
|
154
|
+
* `civitai_app_block_bridge_messages_total{app_block_id,type,host,outcome}` and
|
|
155
|
+
* flushes it through the same-origin, coalescing `/api/track/block-message`
|
|
156
|
+
* beacon. Reporting over the bridge reuses that end to end and adds no route: the
|
|
157
|
+
* host's handler for this message records `outcome="validator_rejected"` against
|
|
158
|
+
* the `type` we name here.
|
|
159
|
+
*
|
|
160
|
+
* π΄ THE VALIDATOR'S NAME IS NOT ON THIS WIRE, AND THE `console.warn` DOES NOT
|
|
161
|
+
* CLOSE THE GAP EITHER β an earlier revision of this docblock claimed it did, and
|
|
162
|
+
* that was false. `payloadValidatorFor` is a function from type to validator, so
|
|
163
|
+
* the TOP-LEVEL validator is derivable from the type already on the wire; a
|
|
164
|
+
* `validator` field would carry only that derivable half, which reads as coverage
|
|
165
|
+
* while adding none, and a fifth Prometheus label is not free (the beacon route's
|
|
166
|
+
* own docblock asks for the label product to be read before one is added). The
|
|
167
|
+
* half that is NOT derivable is which NESTED helper rejected β
|
|
168
|
+
* `isValidGatedImage` inside `isValidImagesResult` on 2026-09-18 β and the warn
|
|
169
|
+
* cannot supply it: `validator.name` resolves to the top-level validator, and no
|
|
170
|
+
* helper in `validate.ts` reports its own name anywhere at runtime. So that
|
|
171
|
+
* diagnosis is UNAVAILABLE today, from any surface. Closing it means teaching the
|
|
172
|
+
* validators to return a reason; do not read the warn as a substitute.
|
|
173
|
+
*
|
|
174
|
+
* π΄ NOTHING IS REPORTED BEFORE `BLOCK_INIT`, DELIBERATELY. `dispatch` has no
|
|
175
|
+
* `parentOrigin` until the first valid init, so a report raised while rejecting a
|
|
176
|
+
* malformed `BLOCK_INIT` could only be QUEUED β and the host re-sends init on a
|
|
177
|
+
* ~400ms interval until `BLOCK_READY`, so that queue is a producer with no
|
|
178
|
+
* consumer: ~25 entries inside one 10s ready window, flushed only if a later init
|
|
179
|
+
* succeeds and silently discarded if none does. The gap it would have covered is
|
|
180
|
+
* already covered by a different series β a block that never inits never sends
|
|
181
|
+
* `BLOCK_READY`, so the host's ready timeout records
|
|
182
|
+
* `civitai_app_block_renders_total{result="timeout"}`. This counter exists for the
|
|
183
|
+
* failures AFTER ready, which that one is structurally blind to.
|
|
184
|
+
*
|
|
185
|
+
* π΄ NO EMIT BUDGET, AND THE ONE AN EARLIER REVISION CARRIED WAS JUSTIFIED BY A
|
|
186
|
+
* FALSEHOOD. It capped reports at 30 per 10s "so a flood cannot burn the host's
|
|
187
|
+
* 30 msg/sec inbound budget that legitimate `BLOCK_ERROR` reporting needs". The
|
|
188
|
+
* host consumes `BLOCK_MESSAGE_REJECTED` in its shared dispatcher ABOVE that
|
|
189
|
+
* limiter β the same placement, and for the same stated reason, as its
|
|
190
|
+
* `no_handler` branch β so a report consumes none of that budget and the cap
|
|
191
|
+
* bought nothing. What it did buy was a permanent UNDERCOUNT, which inverts the
|
|
192
|
+
* receiving side's own documented preference: `bridgeLabels.ts` chooses its clamp
|
|
193
|
+
* so that "a real flood is still VISIBLE rather than exactly counted β¦ the series
|
|
194
|
+
* reads 'enormous' instead of 'wrong'". A cap here makes a flood read SMALL, the
|
|
195
|
+
* one shape of wrongness that side rejects. Magnitude is therefore unbounded on
|
|
196
|
+
* this path exactly as it already is for `no_handler` and `deduped`; the host's
|
|
197
|
+
* `BRIDGE_MESSAGE_COUNT_MAX` is the clamp that bounds a row, and the beacon
|
|
198
|
+
* coalesces identical label sets, so the network cost of a flood is ~one row.
|
|
199
|
+
*/
|
|
200
|
+
private reportRejection;
|
|
104
201
|
private postToParent;
|
|
105
202
|
private handleMessage;
|
|
106
203
|
private applyTokenRefresh;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframeTransport.d.ts","sourceRoot":"","sources":["../../src/internal/iframeTransport.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"iframeTransport.d.ts","sourceRoot":"","sources":["../../src/internal/iframeTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,gBAAgB,E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;IAI9B,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAO3C,WAAW,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAIxC,WAAW,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAIhD,WAAW,CACT,OAAO,EAAE,eAAe,EACxB,YAAY,EAAE,wBAAwB,EACtC,IAAI,GAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAO,GAChC,OAAO,CAAC,OAAO,CAAC;IAuBnB,SAAS,CACP,IAAI,EAAE,wBAAwB,EAC9B,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,GAClC,MAAM,IAAI;IAeb,uDAAuD;IACvD,OAAO,IAAI,IAAI;IAYf,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,aAAa;IAOrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACH,OAAO,CAAC,qBAAqB;IAmD7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,OAAO,CAAC,eAAe;IAevB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,aAAa;IA4IrB,OAAO,CAAC,iBAAiB;IASzB;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,IAAI;CAGb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isMessage, parseBlockInitFragment, stripBlockInitFragment, } from '@civitai/app-sdk/blocks';
|
|
1
|
+
import { boundBlockToParentMessageType, isMessage, OTHER_MESSAGE_TYPE_LABEL, parseBlockInitFragment, stripBlockInitFragment, } from '@civitai/app-sdk/blocks';
|
|
2
2
|
import { EMPTY_SNAPSHOT, nextRequestId, RequestTimeoutError, snapshotFromInit, tokenFromWrapped, } from './transport.js';
|
|
3
3
|
import { OriginMatcher } from './originMatcher.js';
|
|
4
4
|
import { DEFAULT_REQUEST_TIMEOUT_MS } from './requestTimeouts.js';
|
|
@@ -223,6 +223,7 @@ export class IframeTransport {
|
|
|
223
223
|
reject,
|
|
224
224
|
timeoutId,
|
|
225
225
|
responseType,
|
|
226
|
+
requestType: request.type,
|
|
226
227
|
});
|
|
227
228
|
this.dispatch(request.type, { ...request.payload, requestId });
|
|
228
229
|
});
|
|
@@ -268,6 +269,164 @@ export class IframeTransport {
|
|
|
268
269
|
this.postToParent(msg);
|
|
269
270
|
}
|
|
270
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* Which blockβhost request a reply we are about to drop leaves hanging, and
|
|
274
|
+
* whether we can tell at all.
|
|
275
|
+
*
|
|
276
|
+
* π΄ "NO REQUEST IS PENDING" AND "I CANNOT TELL WHICH" ARE DIFFERENT ANSWERS, and
|
|
277
|
+
* an earlier revision collapsed them. It returned `'other'` whenever `requestId`
|
|
278
|
+
* was not a readable string and the `console.warn` then asserted *"unsolicited
|
|
279
|
+
* push β nothing was awaiting it"*, which is FALSE for two shapes that occur:
|
|
280
|
+
* - a reply whose whole payload is not an object (`isObject` is the first thing
|
|
281
|
+
* most validators check), while its request sits in `pending` and hangs to its
|
|
282
|
+
* timeout;
|
|
283
|
+
* - a PRE-v2 host, which echoes `requestId` only via
|
|
284
|
+
* `...(requestId ? { requestId } : {})` β the asymmetry
|
|
285
|
+
* `isValidTokenRefreshResponse` exists to tolerate (NOT `isValidTokenRefresh`,
|
|
286
|
+
* which validates a host PUSH and has no `requestId` handling at all), so a
|
|
287
|
+
* legacy host's malformed `TOKEN_REFRESH_RESPONSE`
|
|
288
|
+
* arrives with no `requestId` at all while `REQUEST_TOKEN` is awaiting it.
|
|
289
|
+
* In both, something IS hanging and the operator was told the opposite. So a
|
|
290
|
+
* reply that leaves a request OF ITS OWN TYPE unattributed reports `unknown`
|
|
291
|
+
* rather than `pushed`, and the warn names how many are awaiting that reply type
|
|
292
|
+
* rather than claiming none was.
|
|
293
|
+
*
|
|
294
|
+
* π΄ AND THE LOOKUP APPLIES THE SAME `responseType` PREDICATE AS REAL
|
|
295
|
+
* CORRELATION. Without it, a malformed reply carrying ANOTHER in-flight request's
|
|
296
|
+
* `requestId` β which a buggy host can produce by echoing the wrong id β reports
|
|
297
|
+
* against the wrong request type, i.e. mislabels a healthy request as the broken
|
|
298
|
+
* one. `handleMessage` already refuses to settle such a reply; this must refuse to
|
|
299
|
+
* name it for the same reason.
|
|
300
|
+
*
|
|
301
|
+
* The `requestId` is read from an UNVALIDATED payload (the validator just
|
|
302
|
+
* rejected it), so it is used ONLY as a `Map` key on our own pending table and
|
|
303
|
+
* never trusted as data.
|
|
304
|
+
*
|
|
305
|
+
* π΄ THE CLAMP IS NOT REDUNDANT WITH THE TYPE SYSTEM. `requestType` is whatever
|
|
306
|
+
* the caller passed to `sendRequest` β typed, but a JavaScript consumer, or a
|
|
307
|
+
* block built against a newer protocol, can put any string there, and this value
|
|
308
|
+
* becomes a Prometheus label on the host. See `boundBlockToParentMessageType`.
|
|
309
|
+
*/
|
|
310
|
+
hangingRequestTypeFor(replyType, payload) {
|
|
311
|
+
// π΄ THE DISCRIMINATOR IS "WHO IS AWAITING **THIS REPLY TYPE**", NOT
|
|
312
|
+
// `pending.size`. An earlier revision used the size of the whole table, and it
|
|
313
|
+
// was wrong in BOTH directions β the shape this file keeps producing:
|
|
314
|
+
// - too WIDE: a genuine malformed PUSH (`THEME_CHANGE`, `CONSENT_UNAVAILABLE`,
|
|
315
|
+
// `TOKEN_REFRESH`) arriving while anything at all was in flight printed "one
|
|
316
|
+
// may now hang", when `validate.ts` says in as many words that dropping one
|
|
317
|
+
// of those "costs at most a stale theme β¦ never a hang β nothing awaits this
|
|
318
|
+
// message". For a busy block that made the honest push case near-unreachable;
|
|
319
|
+
// - too NARROW, on the same pass: the `responseType`-mismatch branch reached
|
|
320
|
+
// the "this reply names none of them" wording having just FOUND the request
|
|
321
|
+
// by id, so it asserted the one thing that was demonstrably false there.
|
|
322
|
+
// Filtering by `responseType` answers both: if nobody is awaiting this reply
|
|
323
|
+
// type, nothing here can hang whatever else is in flight.
|
|
324
|
+
//
|
|
325
|
+
// β οΈ ONE EXCEPTION, AND IT IS THE HIGHEST-STAKES MOMENT THIS WARN HAS.
|
|
326
|
+
// `BLOCK_INIT` has a validator and is never any request's `responseType`, so a
|
|
327
|
+
// malformed one always lands on `pushed` and prints "nothing was awaiting it" β
|
|
328
|
+
// while `waitForInit()` IS awaiting it and rejects 10s later, after which the
|
|
329
|
+
// host shows a fallback.
|
|
330
|
+
//
|
|
331
|
+
// β οΈ AND THE FILTER DID CHANGE THIS PATH, which an earlier revision of this note
|
|
332
|
+
// denied on the premise that "pre-init `pending` is empty". It is not: a block
|
|
333
|
+
// calling `useViewer()` from a bare mount effect has `GET_VIEWER` in `pending`
|
|
334
|
+
// before any init lands, because `sendRequest` inserts there BEFORE `dispatch`
|
|
335
|
+
// decides to queue. Under the old `pending.size` discriminator that printed
|
|
336
|
+
// "1 request(s) β¦ may now hang"; now it prints the push wording β i.e. the change
|
|
337
|
+
// moved this path in the direction this very note calls the worst one. The
|
|
338
|
+
// CONCLUSION still holds (no metric moves: `reportRejection` returns early on
|
|
339
|
+
// `!parentOrigin`), and the rule above is not universal. Only the premise was
|
|
340
|
+
// wrong.
|
|
341
|
+
const awaiting = [...this.pending.values()].filter((p) => p.responseType === replyType);
|
|
342
|
+
if (awaiting.length === 0) {
|
|
343
|
+
return { label: OTHER_MESSAGE_TYPE_LABEL, hung: 'pushed' };
|
|
344
|
+
}
|
|
345
|
+
const requestId = payload?.requestId;
|
|
346
|
+
if (typeof requestId === 'string') {
|
|
347
|
+
const pending = this.pending.get(requestId);
|
|
348
|
+
// The same predicate `handleMessage` applies before it will SETTLE a reply.
|
|
349
|
+
// An id matching a request awaiting a DIFFERENT reply type names nothing we
|
|
350
|
+
// may attribute: blaming it would pin this breakage on a healthy request.
|
|
351
|
+
if (pending && pending.responseType === replyType) {
|
|
352
|
+
return { label: boundBlockToParentMessageType(pending.requestType), hung: 'named' };
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return { label: OTHER_MESSAGE_TYPE_LABEL, hung: 'unknown', awaiting: awaiting.length };
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Tell the host that this transport refused an inbound message, so the drop
|
|
359
|
+
* becomes a number instead of a `console.warn` nobody is reading.
|
|
360
|
+
*
|
|
361
|
+
* π΄ WHY IT GOES OVER THE BRIDGE AND NOT STRAIGHT TO AN ENDPOINT. A block runs
|
|
362
|
+
* in a sandboxed iframe at an OPAQUE origin with no ambient credential and no
|
|
363
|
+
* civitai session, so it has no metrics path of its own: a direct POST would be
|
|
364
|
+
* cross-origin, uncredentialed, and would need a new PUBLIC unauthenticated
|
|
365
|
+
* endpoint to receive it β a fresh abuse surface for an observability add-on, and
|
|
366
|
+
* explicitly out of scope. The host already owns the receiving half: its
|
|
367
|
+
* dispatcher counts every inbound bridge message on
|
|
368
|
+
* `civitai_app_block_bridge_messages_total{app_block_id,type,host,outcome}` and
|
|
369
|
+
* flushes it through the same-origin, coalescing `/api/track/block-message`
|
|
370
|
+
* beacon. Reporting over the bridge reuses that end to end and adds no route: the
|
|
371
|
+
* host's handler for this message records `outcome="validator_rejected"` against
|
|
372
|
+
* the `type` we name here.
|
|
373
|
+
*
|
|
374
|
+
* π΄ THE VALIDATOR'S NAME IS NOT ON THIS WIRE, AND THE `console.warn` DOES NOT
|
|
375
|
+
* CLOSE THE GAP EITHER β an earlier revision of this docblock claimed it did, and
|
|
376
|
+
* that was false. `payloadValidatorFor` is a function from type to validator, so
|
|
377
|
+
* the TOP-LEVEL validator is derivable from the type already on the wire; a
|
|
378
|
+
* `validator` field would carry only that derivable half, which reads as coverage
|
|
379
|
+
* while adding none, and a fifth Prometheus label is not free (the beacon route's
|
|
380
|
+
* own docblock asks for the label product to be read before one is added). The
|
|
381
|
+
* half that is NOT derivable is which NESTED helper rejected β
|
|
382
|
+
* `isValidGatedImage` inside `isValidImagesResult` on 2026-09-18 β and the warn
|
|
383
|
+
* cannot supply it: `validator.name` resolves to the top-level validator, and no
|
|
384
|
+
* helper in `validate.ts` reports its own name anywhere at runtime. So that
|
|
385
|
+
* diagnosis is UNAVAILABLE today, from any surface. Closing it means teaching the
|
|
386
|
+
* validators to return a reason; do not read the warn as a substitute.
|
|
387
|
+
*
|
|
388
|
+
* π΄ NOTHING IS REPORTED BEFORE `BLOCK_INIT`, DELIBERATELY. `dispatch` has no
|
|
389
|
+
* `parentOrigin` until the first valid init, so a report raised while rejecting a
|
|
390
|
+
* malformed `BLOCK_INIT` could only be QUEUED β and the host re-sends init on a
|
|
391
|
+
* ~400ms interval until `BLOCK_READY`, so that queue is a producer with no
|
|
392
|
+
* consumer: ~25 entries inside one 10s ready window, flushed only if a later init
|
|
393
|
+
* succeeds and silently discarded if none does. The gap it would have covered is
|
|
394
|
+
* already covered by a different series β a block that never inits never sends
|
|
395
|
+
* `BLOCK_READY`, so the host's ready timeout records
|
|
396
|
+
* `civitai_app_block_renders_total{result="timeout"}`. This counter exists for the
|
|
397
|
+
* failures AFTER ready, which that one is structurally blind to.
|
|
398
|
+
*
|
|
399
|
+
* π΄ NO EMIT BUDGET, AND THE ONE AN EARLIER REVISION CARRIED WAS JUSTIFIED BY A
|
|
400
|
+
* FALSEHOOD. It capped reports at 30 per 10s "so a flood cannot burn the host's
|
|
401
|
+
* 30 msg/sec inbound budget that legitimate `BLOCK_ERROR` reporting needs". The
|
|
402
|
+
* host consumes `BLOCK_MESSAGE_REJECTED` in its shared dispatcher ABOVE that
|
|
403
|
+
* limiter β the same placement, and for the same stated reason, as its
|
|
404
|
+
* `no_handler` branch β so a report consumes none of that budget and the cap
|
|
405
|
+
* bought nothing. What it did buy was a permanent UNDERCOUNT, which inverts the
|
|
406
|
+
* receiving side's own documented preference: `bridgeLabels.ts` chooses its clamp
|
|
407
|
+
* so that "a real flood is still VISIBLE rather than exactly counted β¦ the series
|
|
408
|
+
* reads 'enormous' instead of 'wrong'". A cap here makes a flood read SMALL, the
|
|
409
|
+
* one shape of wrongness that side rejects. Magnitude is therefore unbounded on
|
|
410
|
+
* this path exactly as it already is for `no_handler` and `deduped`; the host's
|
|
411
|
+
* `BRIDGE_MESSAGE_COUNT_MAX` is the clamp that bounds a row, and the beacon
|
|
412
|
+
* coalesces identical label sets, so the network cost of a flood is ~one row.
|
|
413
|
+
*/
|
|
414
|
+
reportRejection(hangingRequestType) {
|
|
415
|
+
// No parent origin yet β nothing to post to, and queueing is worse than
|
|
416
|
+
// dropping here (see the docblock). Checked rather than left to `dispatch`,
|
|
417
|
+
// whose queue is unbounded and has no consumer on this path.
|
|
418
|
+
if (!this.parentOrigin)
|
|
419
|
+
return;
|
|
420
|
+
// Fail-soft: a throw here would propagate out of the `message` listener and
|
|
421
|
+
// abort dispatch for this event β turning an observability feature into a
|
|
422
|
+
// second silent drop on top of the one it is reporting.
|
|
423
|
+
try {
|
|
424
|
+
this.dispatch('BLOCK_MESSAGE_REJECTED', { type: hangingRequestType });
|
|
425
|
+
}
|
|
426
|
+
catch {
|
|
427
|
+
// swallow β telemetry must never break the transport it observes
|
|
428
|
+
}
|
|
429
|
+
}
|
|
271
430
|
postToParent(msg) {
|
|
272
431
|
// `parentOrigin` is captured from a validated BLOCK_INIT; safe to use as targetOrigin.
|
|
273
432
|
this.window.parent.postMessage(msg, this.parentOrigin);
|
|
@@ -284,8 +443,25 @@ export class IframeTransport {
|
|
|
284
443
|
// rather than crash β see ./validate.ts.
|
|
285
444
|
const validator = payloadValidatorFor(data.type);
|
|
286
445
|
if (validator && !validator(data.payload)) {
|
|
446
|
+
const hanging = this.hangingRequestTypeFor(data.type, data.payload);
|
|
447
|
+
// π΄ THE THREE CASES SAY THREE DIFFERENT THINGS, and `unknown` is the one an
|
|
448
|
+
// earlier revision printed as `pushed`. Claiming "nothing was awaiting it"
|
|
449
|
+
// while a request hangs is worse than saying nothing: it sends the one person
|
|
450
|
+
// reading this console away from the actual symptom.
|
|
451
|
+
const diagnosis = hanging.hung === 'named'
|
|
452
|
+
? `; "${hanging.label}" will now hang to its request timeout)`
|
|
453
|
+
: hanging.hung === 'pushed'
|
|
454
|
+
? ', unsolicited push β nothing was awaiting it)'
|
|
455
|
+
// `hung` is exactly three states and the two above are excluded, so this
|
|
456
|
+
// arm is `'unknown'` by construction β but a FOURTH state would land here
|
|
457
|
+
// silently, and the obvious `: 0` fallback prints "0 request(s) β¦ so one
|
|
458
|
+
// may now hang", a sentence that contradicts itself. Say that instead.
|
|
459
|
+
: `; ${hanging.hung === 'unknown' ? `${hanging.awaiting} request(s)` : 'an unknown number of requests'} awaiting "${data.type}" and this reply names none of them, so one may now hang)`;
|
|
287
460
|
// eslint-disable-next-line no-console -- developer-facing diagnostic at a trust boundary
|
|
288
|
-
console.warn(`IframeTransport: dropping malformed "${data.type}" message from ${event.origin}`
|
|
461
|
+
console.warn(`IframeTransport: dropping malformed "${data.type}" message from ${event.origin} ` +
|
|
462
|
+
`(rejected by ${validator.name || 'an anonymous validator'}` +
|
|
463
|
+
diagnosis);
|
|
464
|
+
this.reportRejection(hanging.label);
|
|
289
465
|
return;
|
|
290
466
|
}
|
|
291
467
|
// CONTRACT β load-bearing, do NOT weaken the `!this.initResolved` guard:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframeTransport.js","sourceRoot":"","sources":["../../src/internal/iframeTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,sBAAsB,GAKvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GAIjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAIpD,MAAM,eAAe,GAAG,MAAM,CAAC;AAuB/B;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QAAQ,EAAE,CAAC;IACpD,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestTimeouts.d.ts","sourceRoot":"","sources":["../../src/internal/requestTimeouts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAIxE;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,QAAS,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,4BAA4B,QAAc,CAAC;AAExD,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB;AAC7B,gFAAgF;AAC9E,OAAO;AACT,uFAAuF;GACrF,UAAU;AACZ,qFAAqF;GACnF,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"requestTimeouts.d.ts","sourceRoot":"","sources":["../../src/internal/requestTimeouts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAIxE;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,QAAS,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,4BAA4B,QAAc,CAAC;AAExD,4DAA4D;AAC5D,MAAM,MAAM,mBAAmB;AAC7B,gFAAgF;AAC9E,OAAO;AACT,uFAAuF;GACrF,UAAU;AACZ,qFAAqF;GACnF,UAAU,CAAC;AAqKf;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,wBAAwB,EAIhE,CAAC"}
|
|
@@ -72,6 +72,15 @@ const REQUEST_TIMEOUT_CLASS = {
|
|
|
72
72
|
// ββ Fire-and-forget: no requestId, so no pending promise to time out ββββ
|
|
73
73
|
BLOCK_ERROR: 'no-reply',
|
|
74
74
|
BLOCK_HELLO: 'no-reply',
|
|
75
|
+
// Reports a drop that has ALREADY happened, so there is nothing to answer and
|
|
76
|
+
// nothing to bound. Deliberately `'no-reply'` and not merely "unhandled": if a
|
|
77
|
+
// host ever did reply to it, that reply would itself run the validator this
|
|
78
|
+
// message exists to report on β a rejection loop with NOTHING braking it. (The
|
|
79
|
+
// emitter carries no cap; an earlier revision did, and this comment used to name
|
|
80
|
+
// it as the brake.) The loop is unreachable today because the payload carries no
|
|
81
|
+
// `requestId`, so neither host NACKs it β but that is a property of the hosts,
|
|
82
|
+
// not of this bucket, which is why the bucket is the one that must stay.
|
|
83
|
+
BLOCK_MESSAGE_REJECTED: 'no-reply',
|
|
75
84
|
BLOCK_READY: 'no-reply',
|
|
76
85
|
NAVIGATE: 'no-reply',
|
|
77
86
|
// Human-gated in SPIRIT, but the host never replies β a grant arrives later as
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestTimeouts.js","sourceRoot":"","sources":["../../src/internal/requestTimeouts.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,GAAG,MAAM,CAAC;AAWxD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,qBAAqB,GAAG;IAC5B,2EAA2E;IAC3E,kBAAkB,EAAE,OAAO,EAAE,wCAAwC;IACrE,sBAAsB,EAAE,OAAO,EAAE,8BAA8B;IAC/D,iBAAiB,EAAE,OAAO,EAAE,kCAAkC;IAC9D,oBAAoB,EAAE,OAAO,EAAE,gCAAgC;IAC/D,0BAA0B,EAAE,OAAO,EAAE,4CAA4C;IACjF,0EAA0E;IAC1E,4EAA4E;IAC5E,wEAAwE;IACxE,4EAA4E;IAC5E,uEAAuE;IACvE,wEAAwE;IACxE,wEAAwE;IACxE,qBAAqB,EAAE,OAAO;IAC9B,4EAA4E;IAC5E,6EAA6E;IAC7E,6EAA6E;IAC7E,0EAA0E;IAC1E,6EAA6E;IAC7E,sEAAsE;IACtE,8EAA8E;IA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B,aAAa,EAAE,UAAU;IACzB,UAAU,EAAE,UAAU;IACtB,gBAAgB,EAAE,UAAU;IAC5B,iBAAiB,EAAE,UAAU;IAC7B,WAAW,EAAE,UAAU;IACvB,aAAa,EAAE,UAAU;IACzB,aAAa,EAAE,UAAU;IACzB,aAAa,EAAE,UAAU;IACzB,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,UAAU;CACoC,CAAC;AAelE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,sBAAsB,GAC1B,SAA6C,CAAC;AAChD,KAAK,sBAAsB,CAAC;AAE5B,MAAM,sBAAsB,GAAU,SAGrC,CAAC;AACF,KAAK,sBAAsB,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,sBAAsB,GAAU,SAAsD,CAAC;AAC7F,KAAK,sBAAsB,CAAC;AAE5B,MAAM,wBAAwB,GAAU,SAAmD,CAAC;AAC5F,KAAK,wBAAwB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GACpC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAClC;KACE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC;KACnD,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@civitai/blocks-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"description": "React hooks and iframe transport for Civitai Apps. Pairs with @civitai/app-sdk/blocks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,8 +35,41 @@
|
|
|
35
35
|
"@civitai/theme": "0.3.1"
|
|
36
36
|
},
|
|
37
37
|
"comment-peerDependencies": [
|
|
38
|
-
"The @civitai/app-sdk floor is DERIVED, not chosen:
|
|
39
|
-
"
|
|
38
|
+
"The @civitai/app-sdk floor is DERIVED, not chosen: it is the lowest published",
|
|
39
|
+
"version that exports every symbol this package imports from the peer.",
|
|
40
|
+
"",
|
|
41
|
+
"π΄ RAISED 0.40.0 -> 0.45.0 when this package began importing two NEW peer VALUE",
|
|
42
|
+
"symbols -- `boundBlockToParentMessageType` and `OTHER_MESSAGE_TYPE_LABEL`, used by",
|
|
43
|
+
"`internal/iframeTransport.ts` to bound the `BLOCK_MESSAGE_REJECTED` label. Both",
|
|
44
|
+
"ship for the first time in the app-sdk minor released alongside this change, so",
|
|
45
|
+
"0.45.0 is not a margin: it is the first version that has them. Measured against",
|
|
46
|
+
"the then-latest published 0.44.0 -- which SATISFIED the old range -- both are",
|
|
47
|
+
"absent from every subpath, and the failure is not a type error: `dist/index.js`",
|
|
48
|
+
"re-exports `IframeTransport`, so the package's MAIN ENTRY is in the failing module",
|
|
49
|
+
"graph and the block does not boot at all. Caught by an adversarial audit that",
|
|
50
|
+
"built the dist and resolved it, not by any gate; the paragraph below says why no",
|
|
51
|
+
"gate can. Step 4's positive control was run (a symbol that cannot exist reported",
|
|
52
|
+
"as absent), so the zero for the other symbols is a measurement and not a silent",
|
|
53
|
+
"pass.",
|
|
54
|
+
"",
|
|
55
|
+
"β οΈ 0.45.0 IS A PREDICTION ABOUT RELEASE ORDERING, NOT A MEASURED VERSION. It is",
|
|
56
|
+
"what the pending minor changeset publishes ONCE THIS BRANCH IS ON TOP OF a main",
|
|
57
|
+
"where app-sdk is already 0.44.0 and the catalog changeset has been consumed. If",
|
|
58
|
+
"another minor releases FIRST, the two symbols ship in 0.46.0 while 0.45.0",
|
|
59
|
+
"publishes WITHOUT them and SATISFIES this range -- #309's shape exactly, the one",
|
|
60
|
+
"this floor exists to close.",
|
|
61
|
+
"",
|
|
62
|
+
"π΄ AND `changeset version` WILL REWRITE THIS RANGE DOWNWARD IF IT RUNS TOO EARLY.",
|
|
63
|
+
"An earlier revision of this note said onlyUpdatePeerDependentsWhenOutOfRange",
|
|
64
|
+
"'guarantees changeset version will not correct it'. That is BACKWARDS, and it is",
|
|
65
|
+
"measured: run on this branch as it stands (app-sdk 0.43.0 in-tree, the catalog",
|
|
66
|
+
"changeset still present, so app-sdk computes to 0.44.0), `changeset version`",
|
|
67
|
+
"rewrites `>=0.45.0 <1.0.0` to `>=0.44.0` -- it LOWERS the floor to the exact",
|
|
68
|
+
"version that lacks the symbols AND drops the upper bound. The flag rewrites a",
|
|
69
|
+
"peer range precisely when the computed version falls OUT of it. Post-merge it",
|
|
70
|
+
"computes 0.45.0 and leaves the range alone, which is why this is not a live",
|
|
71
|
+
"defect -- but never run `changeset version` on this branch before rebasing, and",
|
|
72
|
+
"re-read the range afterwards rather than trusting the flag to protect it.",
|
|
40
73
|
"",
|
|
41
74
|
"π΄ A PEER RANGE IS METADATA AND NOTHING CHECKS IT AGAINST THE CODE. 0.49.0-0.51.0",
|
|
42
75
|
"declared >=0.29.0 while importing `effectiveBrowsingCeiling` (app-sdk 0.39.0) and",
|
|
@@ -56,7 +89,7 @@
|
|
|
56
89
|
"TO RE-DERIVE IT (do this when this package starts importing a new peer symbol):",
|
|
57
90
|
" 1. collect the symbols -- every named `import`/`export β¦ from '@civitai/app-sdk*'`",
|
|
58
91
|
" clause in src/, plus bare and star forms, which name a SUBPATH and no symbols",
|
|
59
|
-
" but still have to resolve. At the time of writing:
|
|
92
|
+
" but still have to resolve. At the time of writing: 62 symbols, 2 subpaths",
|
|
60
93
|
" ('/blocks' and '/safe-storage').",
|
|
61
94
|
" 2. in a scratch dir OUTSIDE this workspace (pnpm would resolve the peer to the",
|
|
62
95
|
" workspace copy and measure nothing), `npm i @civitai/app-sdk@<version>` and",
|
|
@@ -74,7 +107,7 @@
|
|
|
74
107
|
"the tool was the expensive half."
|
|
75
108
|
],
|
|
76
109
|
"peerDependencies": {
|
|
77
|
-
"@civitai/app-sdk": ">=0.
|
|
110
|
+
"@civitai/app-sdk": ">=0.45.0 <1.0.0",
|
|
78
111
|
"react": "^18.0.0 || ^19.0.0"
|
|
79
112
|
},
|
|
80
113
|
"devDependencies": {
|
|
@@ -89,7 +122,7 @@
|
|
|
89
122
|
"react-dom": "^19.0.0",
|
|
90
123
|
"typescript": "^5.9.2",
|
|
91
124
|
"vitest": "^4.1.11",
|
|
92
|
-
"@civitai/app-sdk": "^0.
|
|
125
|
+
"@civitai/app-sdk": "^0.45.0"
|
|
93
126
|
},
|
|
94
127
|
"publishConfig": {
|
|
95
128
|
"access": "public"
|