@hearsay-tools/squawk 0.19.0-dev.8679 → 0.19.0-dev.8689
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/automations/tools.d.ts +8 -8
- package/dist/delegation/transport.d.ts +14 -14
- package/dist/preview/chromium.d.ts +3 -2
- package/dist/preview/chromium.js +5 -1
- package/dist/preview/chromium.js.map +1 -1
- package/dist/runs/transcript-facts-queue.d.ts +9 -1
- package/dist/runs/transcript-facts-queue.js +43 -10
- package/dist/runs/transcript-facts-queue.js.map +1 -1
- package/dist/runs/transcript-facts-sidecar.d.ts +22 -0
- package/dist/runs/transcript-facts-sidecar.js +58 -0
- package/dist/runs/transcript-facts-sidecar.js.map +1 -0
- package/dist/runs/transcript-facts-worker.d.ts +7 -2
- package/dist/runs/transcript-facts-worker.js +8 -5
- package/dist/runs/transcript-facts-worker.js.map +1 -1
- package/dist/runs/transcript-facts.d.ts +4 -0
- package/dist/runs/transcript-facts.js +36 -16
- package/dist/runs/transcript-facts.js.map +1 -1
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/repo-routes.d.ts +13 -13
- package/dist/server/runs-routes.d.ts +16 -16
- package/dist/server/server.d.ts +72 -72
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/scripts/measure-transcript-facts-health.mjs +10 -5
- package/scripts/transcript-facts-timing.mjs +10 -0
|
@@ -165,6 +165,16 @@ export function summarizeWaits(seen) {
|
|
|
165
165
|
return counts;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
+
/** Name the waits of every sample whose blocking reached the budget, not only the first one.
|
|
169
|
+
* `window(sample)` gives the sample's [from, to) on the performance.now() clock. */
|
|
170
|
+
export function attachWaitsOverBudget(samples, seen, budgetMs, window) {
|
|
171
|
+
for (const sample of samples) {
|
|
172
|
+
if (sample.blockingMs < budgetMs) continue;
|
|
173
|
+
const [from, to] = window(sample);
|
|
174
|
+
sample.waits = summarizeWaits(seen.filter(entry => entry.at >= from && entry.at < to));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
/** Instrument only the synchronous open call. Imports and hook setup are outside its budget.
|
|
169
179
|
* These diagnostic wrappers restore every method even when open throws. */
|
|
170
180
|
export async function prepareOpenTiming(runtime) {
|