@far-world-labs/verblets 0.7.0 → 0.7.1

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.js CHANGED
@@ -1,40 +1,40 @@
1
1
  import pe from "dotenv";
2
- import { i as de, n as B, c as M, g as se, E as q, a as me, O as D, w as V, r as W, j as U, b as he, D as O, d as C, e as T, s as ae, f as ge, h as fe, k as be, l as ye, p as we } from "./shared-Dc73O74G.js";
3
- import { cJ as Nt, L as $t, I as Bt, M as Mt, bX as Ut, aI as Ot, bV as zt, aE as _t, K as jt, J as qt, cH as Vt, bZ as Wt, b_ as Gt, an as Ht, cG as Jt, c0 as Kt, c1 as Xt, Q as Yt, a_ as Qt, b$ as Zt, b1 as es, bY as ts, bP as ss, bi as as, bd as ns, be as rs, bO as os, a4 as is, a3 as cs, bg as ls, u as us, aB as ps, bf as ds, aa as ms, F as hs, H as gs, G as fs, aA as bs, bb as ys, a6 as ws, a7 as vs, co as xs, bJ as Ss, x as ks, m as Cs, bU as Is, aC as As, bH as Es, aD as Ps, cp as Ts, b3 as Rs, cL as Ds, t as Ls, aF as Fs, cq as Ns, bL as $s, N as Bs, W as Ms, v as Us, bK as Os, U as zs, a8 as _s, a9 as js, ao as qs, aG as Vs, aJ as Ws, aL as Gs, bo as Hs, bF as Js, bp as Ks, bD as Xs, bq as Ys, bt as Qs, bu as Zs, bE as ea, bx as ta, bC as sa, bB as aa, cE as na, bw as ra, bA as oa, bG as ia, by as ca, bz as la, br as ua, ad as pa, ac as da, a1 as ma, a2 as ha, X as ga, bh as fa, ae as ba, ab as ya, cf as wa, aU as va, aM as xa, af as Sa, aN as ka, c8 as Ca, ag as Ia, c9 as Aa, al as Ea, aH as Pa, S as Ta, T as Ra, ah as Da, ai as La, cb as Fa, cK as Na, bj as $a, aj as Ba, aO as Ma, cr as Ua, ak as Oa, am as za, ap as _a, bk as ja, bl as qa, aq as Va, c7 as Wa, ay as Ga, aP as Ha, aQ as Ja, bR as Ka, bM as Xa, y as Ya, z as Qa, P as Za, R as en, cs as tn, c3 as sn, c4 as an, c6 as nn, c2 as rn, c5 as on, bN as cn, cn as ln, aW as un, aX as pn, aR as dn, bl as mn, ct as hn, cz as gn, aS as fn, cC as bn, cD as yn, cA as wn, aT as vn, bI as xn, ca as Sn, aY as kn, aV as Cn, cI as In, cF as An, o as En, bW as Pn, C as Tn, A as Rn, B as Dn, aZ as Ln, cB as Fn, ba as Nn, ar as $n, bv as Bn, au as Mn, at as Un, as as On, bm as zn, bs as _n, q as jn, bn as qn, cy as Vn, aK as Wn, bT as Gn, a$ as Hn, bc as Jn, av as Kn, cu as Xn, b0 as Yn, ch as Qn, cg as Zn, a5 as er, az as tr, aw as sr, ax as ar, b2 as nr, Z as rr, _ as or, Y as ir, a0 as cr, bS as lr, bQ as ur, b4 as pr, b5 as dr, ci as mr, ck as hr, cl as gr, cj as fr, cm as br, b6 as yr, b7 as wr, cv as vr, $ as xr, V as Sr, cw as kr, b9 as Cr, b8 as Ir, cc as Ar, cd as Er, ce as Pr, cx as Tr } from "./shared-Dc73O74G.js";
2
+ import { i as de, n as B, c as z, g as se, E as q, a as me, O as L, r as W, j as O, b as he, w as V, D as P, d as C, e as R, s as ae, f as ge, h as fe, k as be, l as ye, p as we } from "./shared-CNTi6iN9.js";
3
+ import { cP as Mt, L as Nt, I as $t, M as Bt, b$ as zt, aL as Ot, bZ as Ut, aH as _t, K as jt, J as qt, cN as Vt, c6 as Wt, c1 as Gt, c2 as Ht, an as Jt, cM as Kt, c4 as Xt, c5 as Qt, Q as Yt, c7 as Zt, b1 as es, c3 as ts, b4 as ss, c0 as as, bT as rs, bl as ns, bg as os, bh as is, bS as cs, a4 as ls, a3 as us, bj as ps, u as ds, aE as ms, bi as hs, aa as gs, F as fs, H as bs, G as ys, bP as ws, aD as vs, be as xs, a6 as Ss, a7 as ks, cu as Cs, bM as Is, x as As, m as Es, bY as Ps, aF as Ts, bK as Rs, aG as Ds, cv as Ls, b6 as Fs, cR as Ms, t as Ns, aI as $s, cw as Bs, bO as zs, N as Os, W as Us, v as _s, bN as js, U as qs, a8 as Vs, a9 as Ws, ao as Gs, aJ as Hs, aM as Js, aO as Ks, br as Xs, bI as Qs, bs as Ys, bG as Zs, bt as ea, bw as ta, bx as sa, bH as aa, bA as ra, bF as na, bE as oa, cK as ia, bz as ca, bD as la, bJ as ua, bB as pa, bC as da, bu as ma, ad as ha, ac as ga, a1 as fa, a2 as ba, X as ya, bk as wa, ae as va, ab as xa, cl as Sa, aX as ka, aP as Ca, af as Ia, aQ as Aa, ce as Ea, ag as Pa, cf as Ta, al as Ra, aK as Da, S as La, T as Fa, ah as Ma, ai as Na, ch as $a, cQ as Ba, bm as za, aj as Oa, aR as Ua, cx as _a, ak as ja, am as qa, ap as Va, bn as Wa, bo as Ga, aq as Ha, cd as Ja, aB as Ka, aS as Xa, aT as Qa, bV as Ya, bQ as Za, aw as er, y as tr, z as sr, P as ar, R as rr, cy as nr, c9 as or, ca as ir, cc as cr, c8 as lr, cb as ur, bR as pr, ct as dr, aZ as mr, a_ as hr, aU as gr, bo as fr, cz as br, cF as yr, aV as wr, cI as vr, cJ as xr, cG as Sr, aW as kr, bL as Cr, cg as Ir, a$ as Ar, aY as Er, cO as Pr, cL as Tr, o as Rr, b_ as Dr, C as Lr, A as Fr, B as Mr, b0 as Nr, cH as $r, bd as Br, ar as zr, by as Or, au as Ur, at as _r, av as jr, ax as qr, as as Vr, bp as Wr, bv as Gr, q as Hr, bq as Jr, cE as Kr, aN as Xr, bX as Qr, b2 as Yr, bf as Zr, ay as en, cA as tn, b3 as sn, cn as an, cm as rn, a5 as nn, aC as on, az as cn, aA as ln, b5 as un, Z as pn, _ as dn, Y as mn, a0 as hn, bW as gn, bU as fn, b7 as bn, b8 as yn, co as wn, cq as vn, cr as xn, cp as Sn, cs as kn, b9 as Cn, ba as In, cB as An, $ as En, V as Pn, cC as Tn, bc as Rn, bb as Dn, ci as Ln, cj as Fn, ck as Mn, cD as Nn } from "./shared-CNTi6iN9.js";
4
4
  import * as J from "playwright-core";
5
5
  import k from "node:fs";
6
6
  import "node:path";
7
7
  import "glob";
8
8
  import ve from "node:fs/promises";
9
- const z = 60, xe = (t) => ({
10
- low: { width: 300, quality: z, format: "jpeg" },
11
- med: { width: 100, quality: z, format: "jpeg" },
12
- high: { width: 50, quality: z, format: "jpeg" }
9
+ const U = 60, xe = (t) => ({
10
+ low: { width: 300, quality: U, format: "jpeg" },
11
+ med: { width: 100, quality: U, format: "jpeg" },
12
+ high: { width: 50, quality: U, format: "jpeg" }
13
13
  })[t], G = (t) => () => {
14
14
  throw new Error(`${t} is not available in browser environment`);
15
15
  }, Et = G("resizeImage"), Pt = G("tileImages"), Tt = G("imageToBase64"), Rt = () => {
16
16
  throw new Error("webScrape is not available in browser environment");
17
17
  }, Se = async (t, a) => (await t.evaluate(() => {
18
18
  const s = /* @__PURE__ */ new Set();
19
- return [...document.querySelectorAll("a[href]")].map((n) => {
20
- const o = n.href;
21
- if (s.has(o)) return;
22
- s.add(o);
23
- const i = n.getBoundingClientRect();
19
+ return [...document.querySelectorAll("a[href]")].map((r) => {
20
+ const i = r.href;
21
+ if (s.has(i)) return;
22
+ s.add(i);
23
+ const o = r.getBoundingClientRect();
24
24
  return {
25
- href: o,
26
- text: n.textContent?.trim()?.slice(0, 120) || "",
27
- ariaLabel: n.getAttribute("aria-label") || "",
28
- rel: n.getAttribute("rel") || "",
29
- target: n.getAttribute("target") || "",
30
- isVisible: i.width > 0 && i.height > 0,
31
- classes: n.className?.slice?.(0, 120) || "",
25
+ href: i,
26
+ text: r.textContent?.trim()?.slice(0, 120) || "",
27
+ ariaLabel: r.getAttribute("aria-label") || "",
28
+ rel: r.getAttribute("rel") || "",
29
+ target: r.getAttribute("target") || "",
30
+ isVisible: o.width > 0 && o.height > 0,
31
+ classes: r.className?.slice?.(0, 120) || "",
32
32
  dataAttrs: Object.fromEntries(
33
- [...n.attributes].filter((r) => r.name.startsWith("data-")).map((r) => [r.name, r.value?.slice(0, 80)])
33
+ [...r.attributes].filter((n) => n.name.startsWith("data-")).map((n) => [n.name, n.value?.slice(0, 80)])
34
34
  ),
35
- inNav: !!n.closest('nav, [role="navigation"], header'),
36
- inFooter: !!n.closest("footer"),
37
- inMain: !!n.closest('main, [role="main"], #main, .main-content')
35
+ inNav: !!r.closest('nav, [role="navigation"], header'),
36
+ inFooter: !!r.closest("footer"),
37
+ inMain: !!r.closest('main, [role="main"], #main, .main-content')
38
38
  };
39
39
  }).filter(Boolean);
40
40
  })).map((s) => ({
@@ -75,21 +75,21 @@ const z = 60, xe = (t) => ({
75
75
  ], e = [
76
76
  ...document.querySelectorAll("[onclick], [data-action], [data-toggle], [data-target]")
77
77
  ];
78
- return [.../* @__PURE__ */ new Set([...a, ...e])].map((n) => {
79
- const o = n.getBoundingClientRect();
78
+ return [.../* @__PURE__ */ new Set([...a, ...e])].map((r) => {
79
+ const i = r.getBoundingClientRect();
80
80
  return {
81
- tag: n.tagName.toLowerCase(),
82
- type: n.type || "",
83
- text: n.textContent?.trim()?.slice(0, 80) || "",
84
- id: n.id || "",
85
- classes: (typeof n.className == "string" ? n.className : n.className?.baseVal || "").slice(0, 120),
86
- ariaLabel: n.getAttribute("aria-label") || "",
87
- isVisible: o.width > 0 && o.height > 0,
88
- disabled: n.disabled || n.getAttribute("aria-disabled") === "true",
89
- hasOnclick: !!n.getAttribute("onclick"),
90
- onclick: n.getAttribute("onclick")?.slice(0, 120) || "",
81
+ tag: r.tagName.toLowerCase(),
82
+ type: r.type || "",
83
+ text: r.textContent?.trim()?.slice(0, 80) || "",
84
+ id: r.id || "",
85
+ classes: (typeof r.className == "string" ? r.className : r.className?.baseVal || "").slice(0, 120),
86
+ ariaLabel: r.getAttribute("aria-label") || "",
87
+ isVisible: i.width > 0 && i.height > 0,
88
+ disabled: r.disabled || r.getAttribute("aria-disabled") === "true",
89
+ hasOnclick: !!r.getAttribute("onclick"),
90
+ onclick: r.getAttribute("onclick")?.slice(0, 120) || "",
91
91
  dataAttrs: Object.fromEntries(
92
- [...n.attributes].filter((i) => i.name.startsWith("data-")).map((i) => [i.name, i.value?.slice(0, 80)])
92
+ [...r.attributes].filter((o) => o.name.startsWith("data-")).map((o) => [o.name, o.value?.slice(0, 80)])
93
93
  )
94
94
  };
95
95
  });
@@ -145,16 +145,16 @@ const z = 60, xe = (t) => ({
145
145
  document.querySelectorAll("*").forEach((l) => {
146
146
  [...l.attributes].filter((p) => p.name.startsWith("data-")).forEach((p) => s.add(p.name));
147
147
  });
148
- const n = [...document.querySelectorAll('link[rel="stylesheet"]')].map((l) => l.href), o = /* @__PURE__ */ new Set(), i = (l) => {
148
+ const r = [...document.querySelectorAll('link[rel="stylesheet"]')].map((l) => l.href), i = /* @__PURE__ */ new Set(), o = (l) => {
149
149
  const p = l.className;
150
150
  return typeof p == "string" ? p : p?.baseVal || "";
151
151
  };
152
152
  document.querySelectorAll("[class]").forEach((l) => {
153
- i(l).split(/\s+/).slice(0, 5).forEach((p) => {
154
- p && o.add(p);
153
+ o(l).split(/\s+/).slice(0, 5).forEach((p) => {
154
+ p && i.add(p);
155
155
  });
156
156
  });
157
- const r = [...o].slice(0, 200), c = {}, u = [
157
+ const n = [...i].slice(0, 200), c = {}, u = [
158
158
  "jQuery",
159
159
  "$",
160
160
  "React",
@@ -204,15 +204,15 @@ const z = 60, xe = (t) => ({
204
204
  headings: a,
205
205
  landmarks: e,
206
206
  dataAttributes: Array.from(s).toSorted().slice(0, 100),
207
- stylesheets: n.slice(0, 20),
208
- sampleClasses: r,
207
+ stylesheets: r.slice(0, 20),
208
+ sampleClasses: n,
209
209
  globals: c,
210
210
  inlineHandlers: [...d],
211
211
  iframeCount: document.querySelectorAll("iframe").length,
212
212
  shadowRootCount: [...document.querySelectorAll("*")].filter((l) => l.shadowRoot).length
213
213
  };
214
214
  }), Pe = async (t) => {
215
- const a = t.url(), e = new URL(a).origin, [s, n, o, i, r, c] = await Promise.all([
215
+ const a = t.url(), e = new URL(a).origin, [s, r, i, o, n, c] = await Promise.all([
216
216
  Se(t, e),
217
217
  ke(t),
218
218
  Ce(t),
@@ -220,46 +220,46 @@ const z = 60, xe = (t) => ({
220
220
  Ae(t),
221
221
  Ee(t)
222
222
  ]);
223
- return { url: a, links: s, forms: n, buttons: o, scripts: i, meta: r, structure: c };
223
+ return { url: a, links: s, forms: r, buttons: i, scripts: o, meta: n, structure: c };
224
224
  }, _ = (t) => {
225
225
  const a = new URL(t);
226
226
  a.hash = "";
227
- const e = Array.from(a.searchParams.entries()).toSorted(([n], [o]) => n.localeCompare(o));
227
+ const e = Array.from(a.searchParams.entries()).toSorted(([r], [i]) => r.localeCompare(i));
228
228
  a.search = new URLSearchParams(e).toString();
229
229
  const s = a.toString();
230
230
  return s.endsWith("/") && a.pathname !== "/" ? s.slice(0, -1) : s;
231
231
  }, Te = (t, a = 2) => `/${new URL(t).pathname.split("/").filter(Boolean).slice(0, a).join("/")}`, Re = (t, a = {}) => {
232
- const e = new URL(t).origin, s = a.sameDomain !== !1, n = a.maxDepth ?? 10, o = [], i = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set(), u = _(t);
233
- return o.push({ url: t, normalized: u, depth: 0, source: "(start)" }), c.add(u), {
232
+ const e = new URL(t).origin, s = a.sameDomain !== !1, r = a.maxDepth ?? 10, i = [], o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Set(), u = _(t);
233
+ return i.push({ url: t, normalized: u, depth: 0, source: "(start)" }), c.add(u), {
234
234
  addLinks: (b, w, h) => {
235
235
  let y = 0;
236
236
  for (const f of b) {
237
237
  const v = f.href || f, x = _(v);
238
238
  if (c.has(x)) continue;
239
239
  if (c.add(x), s && !v.startsWith(e)) {
240
- r.set(x, "external");
240
+ n.set(x, "external");
241
241
  continue;
242
242
  }
243
- if (w + 1 > n) {
244
- r.set(x, "max-depth");
243
+ if (w + 1 > r) {
244
+ n.set(x, "max-depth");
245
245
  continue;
246
246
  }
247
247
  const E = new URL(v).pathname;
248
248
  if (/\.(png|jpg|jpeg|gif|svg|ico|css|js|woff2?|ttf|eot|pdf|zip|mp[34])$/i.test(E)) {
249
- r.set(x, "resource");
249
+ n.set(x, "resource");
250
250
  continue;
251
251
  }
252
252
  if (/^(mailto|tel|javascript):/i.test(v)) {
253
- r.set(x, "scheme");
253
+ n.set(x, "scheme");
254
254
  continue;
255
255
  }
256
- o.push({ url: v, normalized: x, depth: w + 1, source: h }), y++;
256
+ i.push({ url: v, normalized: x, depth: w + 1, source: h }), y++;
257
257
  }
258
258
  return y;
259
259
  },
260
260
  next: () => {
261
- const b = o.shift();
262
- return b && i.set(b.normalized, {
261
+ const b = i.shift();
262
+ return b && o.set(b.normalized, {
263
263
  url: b.url,
264
264
  depth: b.depth,
265
265
  source: b.source
@@ -269,33 +269,33 @@ const z = 60, xe = (t) => ({
269
269
  const h = /* @__PURE__ */ new Set();
270
270
  for (const v of b) {
271
271
  const x = _(v);
272
- r.set(x, w), h.add(x);
272
+ n.set(x, w), h.add(x);
273
273
  }
274
- const y = o.length, f = o.filter((v) => !h.has(v.normalized));
275
- return o.splice(0, o.length, ...f), y - f.length;
274
+ const y = i.length, f = i.filter((v) => !h.has(v.normalized));
275
+ return i.splice(0, i.length, ...f), y - f.length;
276
276
  },
277
277
  pendingByPrefix: (b = 2) => {
278
278
  const w = /* @__PURE__ */ new Map();
279
- for (const h of o) {
279
+ for (const h of i) {
280
280
  const y = Te(h.url, b), f = w.get(y) || [];
281
281
  f.push(h), w.set(y, f);
282
282
  }
283
283
  return w;
284
284
  },
285
- size: () => o.length,
286
- visitedCount: () => i.size,
287
- isEmpty: () => o.length === 0,
285
+ size: () => i.length,
286
+ visitedCount: () => o.size,
287
+ isEmpty: () => i.length === 0,
288
288
  summary: () => ({
289
- pending: o.length,
290
- visited: i.size,
291
- skipped: r.size,
289
+ pending: i.length,
290
+ visited: o.size,
291
+ skipped: n.size,
292
292
  seen: c.size
293
293
  }),
294
- visitedUrls: () => [...i.entries()].map(([b, w]) => ({
294
+ visitedUrls: () => [...o.entries()].map(([b, w]) => ({
295
295
  normalized: b,
296
296
  ...w
297
297
  })),
298
- skippedUrls: () => [...r.entries()].map(([b, w]) => ({
298
+ skippedUrls: () => [...n.entries()].map(([b, w]) => ({
299
299
  url: b,
300
300
  reason: w
301
301
  })),
@@ -309,7 +309,7 @@ const z = 60, xe = (t) => ({
309
309
  start: "cooldown:start",
310
310
  retry: "cooldown:retry",
311
311
  heartbeat: "heartbeat"
312
- }), ne = {
312
+ }), re = {
313
313
  baseDelay: 5e3,
314
314
  // 5s initial wait
315
315
  maxDelay: 3e5,
@@ -333,23 +333,23 @@ const z = 60, xe = (t) => ({
333
333
  }, Fe = (t, a) => {
334
334
  const e = a.baseDelay * Math.pow(a.backoffFactor, t), s = Math.min(e, a.maxDelay);
335
335
  return Math.round(Le(s, a.jitter));
336
- }, Ne = async (t, a, e, s) => {
337
- const n = Date.now(), o = n + t;
338
- let i = 0;
339
- for (; i < t; ) {
340
- const r = t - i, c = Math.min(e, r);
341
- await new Promise((u) => setTimeout(u, c)), i = Date.now() - n, a.emit({
336
+ }, Me = async (t, a, e, s) => {
337
+ const r = Date.now(), i = r + t;
338
+ let o = 0;
339
+ for (; o < t; ) {
340
+ const n = t - o, c = Math.min(e, n);
341
+ await new Promise((u) => setTimeout(u, c)), o = Date.now() - r, a.emit({
342
342
  event: I.tick,
343
- elapsedMs: i,
344
- remainingMs: Math.max(0, o - Date.now()),
343
+ elapsedMs: o,
344
+ remainingMs: Math.max(0, i - Date.now()),
345
345
  totalMs: t,
346
346
  ...s
347
347
  });
348
348
  }
349
- }, $e = async (t, a, e, s, n, o, i) => {
350
- const r = { ...ne, ...n };
349
+ }, Ne = async (t, a, e, s, r, i, o) => {
350
+ const n = { ...re, ...r };
351
351
  let c = 0;
352
- for (let u = 0; u <= r.maxRetries; u++) {
352
+ for (let u = 0; u <= n.maxRetries; u++) {
353
353
  let d;
354
354
  try {
355
355
  d = await t(a, e);
@@ -358,13 +358,13 @@ const z = 60, xe = (t) => ({
358
358
  }
359
359
  let m;
360
360
  try {
361
- m = await o(a);
361
+ m = await i(a);
362
362
  } catch (p) {
363
363
  throw s.emit({ event: I.blockCheckError, url: e, attempt: u, error: p.message }), p;
364
364
  }
365
365
  if (!m)
366
366
  return { pageData: d, retries: u, totalCooldownMs: c };
367
- if (u >= r.maxRetries)
367
+ if (u >= n.maxRetries)
368
368
  return s.emit({
369
369
  event: I.exhausted,
370
370
  url: e,
@@ -372,16 +372,16 @@ const z = 60, xe = (t) => ({
372
372
  attempts: u + 1,
373
373
  totalCooldownMs: c
374
374
  }), { pageData: d, retries: u, totalCooldownMs: c, blocked: m };
375
- const l = Fe(u, r);
375
+ const l = Fe(u, n);
376
376
  c += l, s.emit({
377
377
  event: I.start,
378
378
  url: e,
379
379
  reason: m,
380
380
  attempt: u + 1,
381
- maxRetries: r.maxRetries,
381
+ maxRetries: n.maxRetries,
382
382
  delayMs: l,
383
383
  totalCooldownMs: c
384
- }), await Ne(l, s, i, {
384
+ }), await Me(l, s, o, {
385
385
  url: e,
386
386
  reason: m,
387
387
  attempt: u + 1
@@ -391,7 +391,7 @@ const z = 60, xe = (t) => ({
391
391
  attempt: u + 1
392
392
  });
393
393
  }
394
- }, Be = (t, a, e) => {
394
+ }, $e = (t, a, e) => {
395
395
  const s = setInterval(() => {
396
396
  t.emit({
397
397
  event: I.heartbeat,
@@ -401,20 +401,20 @@ const z = 60, xe = (t) => ({
401
401
  return {
402
402
  stop: () => clearInterval(s)
403
403
  };
404
- }, K = "site-crawl", Me = "Browser support is disabled. Call init({ browser: true }) to enable.", Ue = (t, a) => {
405
- const e = a.summary(), s = t.map((n) => `${new URL(n.url).pathname} — ${n.meta.title || "(no title)"} [${n.links.length} links, ${n.forms.length} forms, ${n.buttons.length} buttons]`);
404
+ }, K = "site-crawl", Be = "Browser support is disabled. Call init({ browser: true }) to enable.", ze = (t, a) => {
405
+ const e = a.summary(), s = t.map((r) => `${new URL(r.url).pathname} — ${r.meta.title || "(no title)"} [${r.links.length} links, ${r.forms.length} forms, ${r.buttons.length} buttons]`);
406
406
  return [
407
407
  `Crawled ${e.visited} pages, ${e.pending} pending, ${e.skipped} skipped.`,
408
408
  "",
409
409
  "Pages visited:",
410
- ...s.map((n) => ` ${n}`)
410
+ ...s.map((r) => ` ${r}`)
411
411
  ].join(`
412
412
  `);
413
413
  }, Oe = (t, a, e) => {
414
414
  const s = [];
415
- for (const [n, o] of t) {
416
- const i = o.slice(0, 5).map((c) => ` ${c.url}`), r = o.length > 5 ? ` ... and ${o.length - 5} more` : "";
417
- s.push(` ${n} (${o.length} URLs):`), s.push(...i), r && s.push(r);
415
+ for (const [r, i] of t) {
416
+ const o = i.slice(0, 5).map((c) => ` ${c.url}`), n = i.length > 5 ? ` ... and ${i.length - 5} more` : "";
417
+ s.push(` ${r} (${i.length} URLs):`), s.push(...o), n && s.push(n);
418
418
  }
419
419
  return [
420
420
  "You are a site crawler deciding which URL branches to explore next.",
@@ -432,7 +432,7 @@ const z = 60, xe = (t) => ({
432
432
  "Skip groups that are clearly non-functional (help/support, legal, marketing pages)."
433
433
  ].join(`
434
434
  `);
435
- }, ze = U("crawl_gate", {
435
+ }, Ue = O("crawl_gate", {
436
436
  type: "object",
437
437
  properties: {
438
438
  decisions: {
@@ -460,15 +460,15 @@ const z = 60, xe = (t) => ({
460
460
  required: ["decisions"],
461
461
  additionalProperties: !1
462
462
  }), _e = async (t, a, e, s) => {
463
- const n = t.pendingByPrefix(2);
464
- if (n.size === 0) return { explore: [], skip: [], decisions: [] };
465
- const o = Ue(a, t), i = Oe(n, o, e), c = (await W(i, {
463
+ const r = t.pendingByPrefix(2);
464
+ if (r.size === 0) return { explore: [], skip: [], decisions: [] };
465
+ const i = ze(a, t), o = Oe(r, i, e), c = (await W(o, {
466
466
  ...s,
467
- responseFormat: ze,
467
+ responseFormat: Ue,
468
468
  temperature: 0.2
469
469
  }))?.decisions || [], u = [], d = [];
470
470
  for (const m of c) {
471
- const l = n.get(m.prefix);
471
+ const l = r.get(m.prefix);
472
472
  if (l)
473
473
  if (m.action === "skip")
474
474
  d.push(...l.map((p) => p.url));
@@ -477,36 +477,36 @@ const z = 60, xe = (t) => ({
477
477
  u.push(...l.slice(0, p).map((g) => g.url)), l.length > p && d.push(...l.slice(p).map((g) => g.url));
478
478
  }
479
479
  }
480
- for (const [m, l] of n)
480
+ for (const [m, l] of r)
481
481
  c.some((g) => g.prefix === m) || (u.push(l[0].url), l.length > 1 && d.push(...l.slice(1).map((g) => g.url)));
482
482
  return { explore: u, skip: d, decisions: c };
483
- }, je = async (t, a, e, s, n, o) => {
483
+ }, je = async (t, a, e, s, r, i) => {
484
484
  await t.goto(a, { waitUntil: "domcontentloaded", timeout: 3e4 }), await t.waitForTimeout(1500);
485
- const i = await Pe(t);
486
- if (n.screenshots) {
485
+ const o = await Pe(t);
486
+ if (r.screenshots) {
487
487
  const c = `${s.dir}/crawl-${Date.now()}.png`;
488
- if (await t.screenshot({ path: c, fullPage: !1 }), s.track(c), n.imageShrink) {
488
+ if (await t.screenshot({ path: c, fullPage: !1 }), s.track(c), r.imageShrink) {
489
489
  const u = await he(c, {
490
- ...n.imageShrink,
490
+ ...r.imageShrink,
491
491
  outputDir: s.dir
492
492
  });
493
- s.track(u.path), i.screenshot = u.path;
493
+ s.track(u.path), o.screenshot = u.path;
494
494
  } else
495
- i.screenshot = c;
495
+ o.screenshot = c;
496
496
  }
497
- const r = e.responses();
498
- return i.apis = r.filter((c) => {
497
+ const n = e.responses();
498
+ return o.apis = n.filter((c) => {
499
499
  const u = c.url();
500
500
  return u.includes("/api/") || u.includes("/v1/") || u.includes("/v2/") || u.includes("/graphql");
501
501
  }).map((c) => ({
502
502
  url: c.url(),
503
503
  status: c.status(),
504
504
  method: c.request().method()
505
- })), e.clear(), i;
505
+ })), e.clear(), o;
506
506
  }, qe = (t) => {
507
507
  const a = {};
508
508
  for (const e of t) {
509
- const s = e.links.filter((n) => n.isSameDomain && !n.isAnchor).map((n) => n.href);
509
+ const s = e.links.filter((r) => r.isSameDomain && !r.isAnchor).map((r) => r.href);
510
510
  a[e.url] = [...new Set(s)];
511
511
  }
512
512
  return a;
@@ -514,15 +514,15 @@ const z = 60, xe = (t) => ({
514
514
  const a = /* @__PURE__ */ new Map();
515
515
  for (const e of t)
516
516
  for (const s of e.apis || []) {
517
- const n = `${s.method} ${new URL(s.url).pathname}`;
518
- a.has(n) ? a.get(n).seenOn.push(e.url) : a.set(n, { ...s, seenOn: [e.url] });
517
+ const r = `${s.method} ${new URL(s.url).pathname}`;
518
+ a.has(r) ? a.get(r).seenOn.push(e.url) : a.set(r, { ...s, seenOn: [e.url] });
519
519
  }
520
520
  return [...a.values()];
521
521
  }, We = async (t, a = {}) => {
522
- if (!de()) throw new Error(Me);
523
- const e = B(K, a), s = M(K, e.onProgress, e);
522
+ if (!de()) throw new Error(Be);
523
+ const e = B(K, a), s = z(K, e.onProgress, e);
524
524
  s.start();
525
- const n = await se(e, {
525
+ const r = await se(e, {
526
526
  maxPages: 20,
527
527
  maxDepth: 5,
528
528
  sameDomain: !0,
@@ -532,14 +532,14 @@ const z = 60, xe = (t) => ({
532
532
  errorPosture: q.resilient,
533
533
  imageShrink: V(xe),
534
534
  heartbeatInterval: 1e3
535
- }), o = { ...ne, ...e.cooldown }, i = e.isBlocked || De, r = Re(t, {
536
- sameDomain: n.sameDomain,
537
- maxDepth: n.maxDepth
535
+ }), i = { ...re, ...e.cooldown }, o = e.isBlocked || De, n = Re(t, {
536
+ sameDomain: r.sameDomain,
537
+ maxDepth: r.maxDepth
538
538
  }), c = await me("site-crawl", e.outputDir), d = await (e.browserEngine ? J[e.browserEngine] : J.chromium).launch({
539
- headless: n.headless,
539
+ headless: r.headless,
540
540
  ...e.launchOptions
541
541
  });
542
- s.emit({ event: "browser", headless: n.headless });
542
+ s.emit({ event: "browser", headless: r.headless });
543
543
  try {
544
544
  const m = await d.newContext(e.contextOptions);
545
545
  if (e.setup) {
@@ -556,47 +556,47 @@ const z = 60, xe = (t) => ({
556
556
  };
557
557
  })(), g = [];
558
558
  let S = 0, A = t;
559
- const P = Be(s, n.heartbeatInterval, () => ({
559
+ const T = $e(s, r.heartbeatInterval, () => ({
560
560
  pagesVisited: g.length,
561
- maxPages: n.maxPages,
562
- pending: r.size(),
561
+ maxPages: r.maxPages,
562
+ pending: n.size(),
563
563
  currentUrl: A,
564
- ...r.summary()
565
- })), L = s.batch(n.maxPages);
564
+ ...n.summary()
565
+ })), F = s.batch(r.maxPages);
566
566
  try {
567
- for (; !r.isEmpty() && g.length < n.maxPages; ) {
568
- if (g.length > 0 && g.length % n.gateInterval === 0 && r.size() > 0) {
569
- const y = n.maxPages - g.length;
570
- s.emit({ event: "gate:start", pending: r.size(), budget: y });
571
- const f = await _e(r, g, y, e);
572
- S++, f.skip.length > 0 && r.skip(f.skip, "llm-gate"), s.emit({
567
+ for (; !n.isEmpty() && g.length < r.maxPages; ) {
568
+ if (g.length > 0 && g.length % r.gateInterval === 0 && n.size() > 0) {
569
+ const y = r.maxPages - g.length;
570
+ s.emit({ event: "gate:start", pending: n.size(), budget: y });
571
+ const f = await _e(n, g, y, e);
572
+ S++, f.skip.length > 0 && n.skip(f.skip, "llm-gate"), s.emit({
573
573
  event: "gate:complete",
574
574
  explored: f.explore.length,
575
575
  skipped: f.skip.length,
576
576
  decisions: f.decisions.length
577
577
  });
578
578
  }
579
- const h = r.next();
579
+ const h = n.next();
580
580
  if (!h) break;
581
581
  A = h.url, s.emit({
582
582
  event: "page:start",
583
583
  url: h.url,
584
584
  depth: h.depth,
585
585
  pageNumber: g.length + 1,
586
- maxPages: n.maxPages
586
+ maxPages: r.maxPages
587
587
  });
588
588
  try {
589
- const y = (E, ue) => je(E, ue, p, c, n, s), { pageData: f, blocked: v } = await $e(
589
+ const y = (E, ue) => je(E, ue, p, c, r, s), { pageData: f, blocked: v } = await Ne(
590
590
  y,
591
591
  l,
592
592
  h.url,
593
593
  s,
594
- o,
595
594
  i,
596
- n.heartbeatInterval
595
+ o,
596
+ r.heartbeatInterval
597
597
  );
598
598
  f.depth = h.depth, f.source = h.source, v && (f.blocked = v), g.push(f);
599
- const x = v ? 0 : r.addLinks(
599
+ const x = v ? 0 : n.addLinks(
600
600
  f.links.filter((E) => E.isSameDomain && !E.isAnchor),
601
601
  h.depth,
602
602
  h.url
@@ -607,15 +607,15 @@ const z = 60, xe = (t) => ({
607
607
  links: f.links.length,
608
608
  forms: f.forms.length,
609
609
  newUrls: x,
610
- pending: r.size(),
610
+ pending: n.size(),
611
611
  blocked: v
612
- }), L(1);
612
+ }), F(1);
613
613
  } catch (y) {
614
- if (s.emit({ event: "page:error", url: h.url, error: y.message }), n.errorPosture === q.strict) throw y;
614
+ if (s.emit({ event: "page:error", url: h.url, error: y.message }), r.errorPosture === q.strict) throw y;
615
615
  }
616
616
  }
617
617
  } finally {
618
- P.stop();
618
+ T.stop();
619
619
  }
620
620
  if (await l.close(), e.teardown) {
621
621
  try {
@@ -630,17 +630,17 @@ const z = 60, xe = (t) => ({
630
630
  pages: g,
631
631
  graph: H,
632
632
  apis: b,
633
- frontier: r.summary(),
634
- skipped: r.skippedUrls(),
633
+ frontier: n.summary(),
634
+ skipped: n.skippedUrls(),
635
635
  gateCallCount: S,
636
636
  cleanup: () => c.cleanup()
637
637
  };
638
638
  return s.complete({
639
- outcome: D.success,
639
+ outcome: L.success,
640
640
  pagesVisited: g.length,
641
641
  apisFound: b.length,
642
642
  gateCallCount: S,
643
- ...r.summary()
643
+ ...n.summary()
644
644
  }), w;
645
645
  } catch (m) {
646
646
  throw s.error(m, { pagesVisited: 0 }), m;
@@ -649,10 +649,10 @@ const z = 60, xe = (t) => ({
649
649
  }
650
650
  };
651
651
  We.knownTexts = [];
652
- const re = 1, F = 20, N = 5, Ge = 0.5, He = 5, X = 8e3, j = 5, $ = {
652
+ const ne = 1, M = 20, N = 5, Ge = 0.5, He = 5, X = 8e3, j = 5, $ = {
653
653
  INDIVIDUAL: "individual",
654
654
  BULK: "bulk"
655
- }, Je = (t) => t === void 0 ? F : typeof t == "number" ? t : { small: 10, med: F, large: 40 }[t] ?? F, Ke = (t) => t === void 0 ? N : typeof t == "number" ? t : { low: 2, med: N, high: 10 }[t] ?? N;
655
+ }, Je = (t) => t === void 0 ? M : typeof t == "number" ? t : { small: 10, med: M, large: 40 }[t] ?? M, Ke = (t) => t === void 0 ? N : typeof t == "number" ? t : { low: 2, med: N, high: 10 }[t] ?? N;
656
656
  function Xe(t, a) {
657
657
  const e = [];
658
658
  for (let s = 0; s < t.length; s += a)
@@ -663,61 +663,61 @@ function Xe(t, a) {
663
663
  });
664
664
  return e;
665
665
  }
666
- function Y(t, a, e, s, n, o) {
666
+ function Q(t, a, e, s, r, i) {
667
667
  return {
668
668
  chunkIndex: t.index,
669
669
  totalChunks: a,
670
670
  itemsInChunk: t.items.length,
671
671
  totalItems: e,
672
672
  status: s,
673
- bulkSize: n.bulkSize,
674
- maxConcurrency: n.maxConcurrency,
675
- processingMode: o,
673
+ bulkSize: r.bulkSize,
674
+ maxConcurrency: r.maxConcurrency,
675
+ processingMode: i,
676
676
  parallelMode: !0
677
677
  };
678
678
  }
679
- async function Ye(t, a, e, s, n, o = {}) {
679
+ async function Qe(t, a, e, s, r, i = {}) {
680
680
  try {
681
- const i = e.map((d) => ce(d(t))).filter(Boolean).join(`
681
+ const o = e.map((d) => ce(d(t))).filter(Boolean).join(`
682
682
 
683
- `), r = [a, i].filter(Boolean).join(`
683
+ `), n = [a, o].filter(Boolean).join(`
684
684
 
685
- `), c = ct(r, t, s, n === "files"), u = await W(c, {
686
- ...o,
687
- responseFormat: U("arch_result", rt)
685
+ `), c = ct(n, t, s, r === "files"), u = await W(c, {
686
+ ...i,
687
+ responseFormat: O("arch_result", nt)
688
688
  });
689
689
  return { item: t, ...u, error: void 0 };
690
- } catch (i) {
691
- return { item: t, passed: !1, reason: `Analysis failed: ${i.message}`, error: i };
690
+ } catch (o) {
691
+ return { item: t, passed: !1, reason: `Analysis failed: ${o.message}`, error: o };
692
692
  }
693
693
  }
694
- function Qe(t, a, e, s) {
695
- const n = [], o = [];
696
- let i = s;
697
- for (const r of t)
698
- if (n.push(r), r.passed || (i++, o.push(r.error || new Error(r.reason))), !a && i >= e)
694
+ function Ye(t, a, e, s) {
695
+ const r = [], i = [];
696
+ let o = s;
697
+ for (const n of t)
698
+ if (r.push(n), n.passed || (o++, i.push(n.error || new Error(n.reason))), !a && o >= e)
699
699
  break;
700
700
  return {
701
- results: n,
702
- errors: o,
703
- failures: i,
704
- shouldStop: !a && i >= e
701
+ results: r,
702
+ errors: i,
703
+ failures: o,
704
+ shouldStop: !a && o >= e
705
705
  };
706
706
  }
707
- function R(t, a, e, s) {
707
+ function D(t, a, e, s) {
708
708
  t && t(a, e, s);
709
709
  }
710
- async function oe(t, a, e, s, n, o = {}) {
711
- R(s, t, void 0, {
712
- ...n,
713
- status: T.start
710
+ async function oe(t, a, e, s, r, i = {}) {
711
+ D(s, t, void 0, {
712
+ ...r,
713
+ status: R.start
714
714
  });
715
715
  try {
716
- const i = lt(a, t, e), r = {
717
- ...o,
718
- responseFormat: U("arch_bulk_result", ot),
716
+ const o = lt(a, t, e), n = {
717
+ ...i,
718
+ responseFormat: O("arch_bulk_result", ot),
719
719
  onProgress: ae(s, "reduce")
720
- }, c = await ge(t, i, r), u = c.results || c;
720
+ }, c = await ge(t, o, n), u = c.results || c;
721
721
  let d = [];
722
722
  Array.isArray(u) ? d = u : d = t.map((p) => ({
723
723
  path: p,
@@ -725,37 +725,37 @@ async function oe(t, a, e, s, n, o = {}) {
725
725
  reason: "Invalid response format"
726
726
  }));
727
727
  const m = d.filter((p) => !p.passed).length, l = d.length - m;
728
- return R(
728
+ return D(
729
729
  s,
730
730
  t,
731
731
  m > 0 ? new Error(`${m} items failed`) : void 0,
732
732
  {
733
- ...n,
734
- status: T.complete,
733
+ ...r,
734
+ status: R.complete,
735
735
  passed: l,
736
736
  failed: m
737
737
  }
738
738
  ), d;
739
- } catch (i) {
740
- const r = t.map((c) => ({
739
+ } catch (o) {
740
+ const n = t.map((c) => ({
741
741
  path: c,
742
742
  passed: !1,
743
- reason: `Processing error: ${i.message}`
743
+ reason: `Processing error: ${o.message}`
744
744
  }));
745
- return R(s, t, i, {
746
- ...n,
747
- status: T.error
748
- }), r;
745
+ return D(s, t, o, {
746
+ ...r,
747
+ status: R.error
748
+ }), n;
749
749
  }
750
750
  }
751
751
  function Ze(t, a) {
752
- const e = a.filter((r) => r.passed).length, s = a.length - e, n = s === 0, o = a.length < t.length, i = a.filter((r) => !r.passed);
752
+ const e = a.filter((n) => n.passed).length, s = a.length - e, r = s === 0, i = a.length < t.length, o = a.filter((n) => !n.passed);
753
753
  return {
754
754
  passed: e,
755
755
  failed: s,
756
- allPassed: n,
757
- stoppedEarly: o,
758
- failures: i,
756
+ allPassed: r,
757
+ stoppedEarly: i,
758
+ failures: o,
759
759
  total: t.length,
760
760
  processed: a.length
761
761
  };
@@ -763,13 +763,13 @@ function Ze(t, a) {
763
763
  function et(t, a, e) {
764
764
  if (t.allPassed)
765
765
  return `All ${t.processed}/${t.total} items satisfy: ${a}`;
766
- const s = t.failures.slice(0, j).map((o) => ` • ${o.item}: ${o.reason || "Failed"}`).join(`
767
- `), n = t.failures.length > j ? `
766
+ const s = t.failures.slice(0, j).map((i) => ` • ${i.item}: ${i.reason || "Failed"}`).join(`
767
+ `), r = t.failures.length > j ? `
768
768
  ... and ${t.failures.length - j} more failures` : "";
769
- return `${t.failed}/${t.processed} items failed: ${a}${t.stoppedEarly && e !== re ? ` (stopped after ${e} failures)` : ""}
769
+ return `${t.failed}/${t.processed} items failed: ${a}${t.stoppedEarly && e !== ne ? ` (stopped after ${e} failures)` : ""}
770
770
 
771
771
  Failures:
772
- ${s}${n}`;
772
+ ${s}${r}`;
773
773
  }
774
774
  function tt(t, a) {
775
775
  return {
@@ -785,23 +785,23 @@ function tt(t, a) {
785
785
  };
786
786
  }
787
787
  function st(t, a, e, s) {
788
- const n = a || e.length > 0 || s <= He;
788
+ const r = a || e.length > 0 || s <= He;
789
789
  return {
790
- mode: n ? $.INDIVIDUAL : $.BULK,
791
- batchSize: n ? t.maxConcurrency : t.bulkSize,
792
- processor: n ? (o, i, r) => ie(o, i, r) : (o, i, r) => oe(
793
- o.items,
794
- i,
795
- r.description,
796
- r.onProgress,
797
- r.metadata
790
+ mode: r ? $.INDIVIDUAL : $.BULK,
791
+ batchSize: r ? t.maxConcurrency : t.bulkSize,
792
+ processor: r ? (i, o, n) => ie(i, o, n) : (i, o, n) => oe(
793
+ i.items,
794
+ o,
795
+ n.description,
796
+ n.onProgress,
797
+ n.metadata
798
798
  )
799
799
  };
800
800
  }
801
801
  function ie(t, a, e) {
802
802
  const s = t.items.map(
803
- (n) => Ye(
804
- n,
803
+ (r) => Qe(
804
+ r,
805
805
  a,
806
806
  e.itemContextFns,
807
807
  e.description,
@@ -813,7 +813,7 @@ function ie(t, a, e) {
813
813
  }
814
814
  function at(t, a, e) {
815
815
  if (a === $.INDIVIDUAL) {
816
- const { results: s, errors: n, failures: o, shouldStop: i } = Qe(
816
+ const { results: s, errors: r, failures: i, shouldStop: o } = Ye(
817
817
  t,
818
818
  e.isCoverageTest,
819
819
  e.maxFailures,
@@ -821,19 +821,19 @@ function at(t, a, e) {
821
821
  );
822
822
  return {
823
823
  results: s,
824
- errors: n,
825
- failures: o,
826
- shouldStop: i,
824
+ errors: r,
825
+ failures: i,
826
+ shouldStop: o,
827
827
  progressData: {
828
- passed: s.filter((r) => r.passed).length,
829
- failed: n.length
828
+ passed: s.filter((n) => n.passed).length,
829
+ failed: r.length
830
830
  }
831
831
  };
832
832
  } else {
833
- const s = t.map((n) => ({
834
- item: n.path,
835
- passed: n.passed,
836
- reason: n.reason
833
+ const s = t.map((r) => ({
834
+ item: r.path,
835
+ passed: r.passed,
836
+ reason: r.reason
837
837
  }));
838
838
  return {
839
839
  results: s,
@@ -841,34 +841,34 @@ function at(t, a, e) {
841
841
  failures: e.currentFailures || 0,
842
842
  shouldStop: !1,
843
843
  progressData: {
844
- passed: s.filter((n) => n.passed).length,
845
- failed: s.filter((n) => !n.passed).length
844
+ passed: s.filter((r) => r.passed).length,
845
+ failed: s.filter((r) => !r.passed).length
846
846
  }
847
847
  };
848
848
  }
849
849
  }
850
- async function nt(t, a, e, s) {
851
- const n = Xe(t, e.batchSize), o = [];
852
- let i = 0;
853
- for (const r of n) {
854
- if (!s.isCoverageTest && i >= s.maxFailures)
850
+ async function rt(t, a, e, s) {
851
+ const r = Xe(t, e.batchSize), i = [];
852
+ let o = 0;
853
+ for (const n of r) {
854
+ if (!s.isCoverageTest && o >= s.maxFailures)
855
855
  break;
856
- const c = Y(
857
- r,
858
- n.length,
856
+ const c = Q(
857
+ n,
858
+ r.length,
859
859
  t.length,
860
- T.start,
860
+ R.start,
861
861
  s,
862
862
  e.mode
863
863
  );
864
- R(s.onChunkProcessed, r.items, void 0, c);
864
+ D(s.onChunkProcessed, n.items, void 0, c);
865
865
  let u;
866
- e.mode === $.INDIVIDUAL ? u = await ie(r, a, {
866
+ e.mode === $.INDIVIDUAL ? u = await ie(n, a, {
867
867
  itemContextFns: s.itemContextFns,
868
868
  description: s.description,
869
869
  targetType: s.targetType
870
870
  }) : u = await oe(
871
- r.items,
871
+ n.items,
872
872
  a,
873
873
  s.description,
874
874
  s.onChunkProcessed,
@@ -877,18 +877,18 @@ async function nt(t, a, e, s) {
877
877
  );
878
878
  const d = at(u, e.mode, {
879
879
  ...s,
880
- currentFailures: i
880
+ currentFailures: o
881
881
  });
882
- if (o.push(...d.results), i = d.failures, R(
882
+ if (i.push(...d.results), o = d.failures, D(
883
883
  s.onChunkProcessed,
884
- r.items,
884
+ n.items,
885
885
  d.errors.length > 0 ? d.errors[0] : void 0,
886
886
  {
887
- ...Y(
888
- r,
889
- n.length,
887
+ ...Q(
888
+ n,
889
+ r.length,
890
890
  t.length,
891
- T.complete,
891
+ R.complete,
892
892
  s,
893
893
  e.mode
894
894
  ),
@@ -897,9 +897,9 @@ async function nt(t, a, e, s) {
897
897
  ), d.shouldStop)
898
898
  break;
899
899
  }
900
- return o;
900
+ return i;
901
901
  }
902
- const rt = {
902
+ const nt = {
903
903
  type: "object",
904
904
  properties: {
905
905
  passed: { type: "boolean" },
@@ -952,11 +952,11 @@ function it(t) {
952
952
  }
953
953
  }
954
954
  function ct(t, a, e, s) {
955
- const n = it(a);
955
+ const r = it(a);
956
956
  return [
957
957
  t,
958
958
  `Analyze this ${s ? "file" : "directory"}: ${a}`,
959
- C(n, { tag: "content" }),
959
+ C(r, { tag: "content" }),
960
960
  C(e, { tag: "description" }),
961
961
  'Return JSON with "passed" (boolean) and "reason" (string).'
962
962
  ].filter(Boolean).join(`
@@ -977,7 +977,7 @@ function lt(t, a, e) {
977
977
  }
978
978
  class ut {
979
979
  constructor(a, e = {}) {
980
- this.target = a, this.options = e, this.contexts = [], this.itemContextFns = [], this.maxFailures = e.maxFailures || re, this.bulkSize = e.bulkSize || F, this.maxConcurrency = e.maxConcurrency || N, this.onChunkProcessed = void 0, this.description = void 0, this.threshold = void 0, this.isCoverageTest = !1;
980
+ this.target = a, this.options = e, this.contexts = [], this.itemContextFns = [], this.maxFailures = e.maxFailures || ne, this.bulkSize = e.bulkSize || M, this.maxConcurrency = e.maxConcurrency || N, this.onChunkProcessed = void 0, this.description = void 0, this.threshold = void 0, this.isCoverageTest = !1;
981
981
  }
982
982
  withContext(a) {
983
983
  return this.contexts.push(a), this;
@@ -995,25 +995,25 @@ class ut {
995
995
  }
996
996
  // Start processing - this is the fluent terminator
997
997
  async start() {
998
- const a = B("ai-arch-expect", this.options), e = M("ai-arch-expect", a.onProgress, a);
999
- e.start(), e.emit({ event: O.input, value: this.description });
998
+ const a = B("ai-arch-expect", this.options), e = z("ai-arch-expect", a.onProgress, a);
999
+ e.start(), e.emit({ event: P.input, value: this.description });
1000
1000
  try {
1001
1001
  if (!this.description)
1002
1002
  throw new Error("Must call satisfies() before start()");
1003
- const s = await this.target.resolve(), n = this.contexts.map(ce).filter(Boolean).join(`
1003
+ const s = await this.target.resolve(), r = this.contexts.map(ce).filter(Boolean).join(`
1004
1004
 
1005
- `), o = st(
1005
+ `), i = st(
1006
1006
  this,
1007
1007
  this.onChunkProcessed,
1008
1008
  this.itemContextFns,
1009
1009
  s.length
1010
- ), { bulkSize: i, maxConcurrency: r, maxFailures: c } = await se(a, {
1010
+ ), { bulkSize: o, maxConcurrency: n, maxFailures: c } = await se(a, {
1011
1011
  bulkSize: V(Je),
1012
1012
  maxConcurrency: V(Ke),
1013
1013
  maxFailures: this.maxFailures
1014
1014
  }), u = {
1015
- bulkSize: i,
1016
- maxConcurrency: r,
1015
+ bulkSize: o,
1016
+ maxConcurrency: n,
1017
1017
  description: this.description,
1018
1018
  onChunkProcessed: this.onChunkProcessed,
1019
1019
  itemContextFns: this.itemContextFns,
@@ -1021,17 +1021,17 @@ class ut {
1021
1021
  maxFailures: c,
1022
1022
  isCoverageTest: this.isCoverageTest,
1023
1023
  runConfig: a
1024
- }, d = e.batch(s.length), m = await nt(s, n, o, u);
1024
+ }, d = e.batch(s.length), m = await rt(s, r, i, u);
1025
1025
  if (d(m.length), this.isCoverageTest) {
1026
- const p = m.filter((L) => L.passed).length, g = s.length > 0 ? p / s.length : 0, S = g >= this.threshold, A = `Coverage: ${p}/${s.length} (${(g * 100).toFixed(1)}%) - ${S ? "meets" : "below"} ${(this.threshold * 100).toFixed(1)}% threshold`;
1026
+ const p = m.filter((F) => F.passed).length, g = s.length > 0 ? p / s.length : 0, S = g >= this.threshold, A = `Coverage: ${p}/${s.length} (${(g * 100).toFixed(1)}%) - ${S ? "meets" : "below"} ${(this.threshold * 100).toFixed(1)}% threshold`;
1027
1027
  if (!S)
1028
1028
  throw new Error(A);
1029
- const P = { passed: S, coverage: g, message: A };
1030
- return e.emit({ event: O.output, value: P }), e.complete({ outcome: D.success, coverage: g, total: s.length }), P;
1029
+ const T = { passed: S, coverage: g, message: A };
1030
+ return e.emit({ event: P.output, value: T }), e.complete({ outcome: L.success, coverage: g, total: s.length }), T;
1031
1031
  }
1032
1032
  const l = this.summarize(s, m);
1033
- return e.emit({ event: O.output, value: l }), e.complete({
1034
- outcome: D.success,
1033
+ return e.emit({ event: P.output, value: l }), e.complete({
1034
+ outcome: L.success,
1035
1035
  total: s.length,
1036
1036
  passed: l.details.passed
1037
1037
  }), l;
@@ -1040,10 +1040,10 @@ class ut {
1040
1040
  }
1041
1041
  }
1042
1042
  summarize(a, e) {
1043
- const s = Ze(a, e), n = et(s, this.description, this.maxFailures);
1043
+ const s = Ze(a, e), r = et(s, this.description, this.maxFailures);
1044
1044
  if (!s.allPassed)
1045
- throw new Error(n);
1046
- return tt(s, n);
1045
+ throw new Error(r);
1046
+ return tt(s, r);
1047
1047
  }
1048
1048
  }
1049
1049
  function pt(t, a = {}) {
@@ -1053,7 +1053,7 @@ pt.knownTexts = [];
1053
1053
  function Dt() {
1054
1054
  return console.warn("scanJS is not available in browser environment"), Promise.resolve({});
1055
1055
  }
1056
- const Q = {
1056
+ const Y = {
1057
1057
  name: "test_analysis_result",
1058
1058
  schema: {
1059
1059
  type: "object",
@@ -1077,14 +1077,16 @@ const Q = {
1077
1077
  }, Z = "test";
1078
1078
  async function le(t, a, e) {
1079
1079
  [a, e] = fe(a, e);
1080
- const { text: s, context: n } = be(a, []), o = B(Z, e), i = M(Z, o.onProgress, o);
1081
- i.start();
1080
+ const { text: s, context: r } = be(a, []), i = B(Z, e), o = z(Z, i.onProgress, i);
1081
+ o.start();
1082
1082
  try {
1083
- const r = await ve.readFile(t, "utf-8"), c = n ? `
1083
+ const n = await ve.readFile(t, "utf-8");
1084
+ o.emit({ event: P.phase, phase: "file-read", path: t });
1085
+ const c = r ? `
1084
1086
 
1085
- ${n}` : "", u = `Analyze this code and ${s}:
1087
+ ${r}` : "", u = `Analyze this code and ${s}:
1086
1088
 
1087
- ${C(r, { tag: "code-to-analyze" })}
1089
+ ${C(n, { tag: "code-to-analyze" })}
1088
1090
 
1089
1091
  Return a JSON object with:
1090
1092
  - "hasIssues": boolean indicating if any issues were found
@@ -1095,19 +1097,25 @@ GUIDELINES:
1095
1097
  - Provide specific line numbers or code references when possible
1096
1098
  - Suggest concrete fixes for each issue identified
1097
1099
  - Be concise but clear in your feedback
1098
- - If no issues are found, return {"hasIssues": false, "issues": []}${c}`, d = await ye(
1100
+ - If no issues are found, return {"hasIssues": false, "issues": []}${c}`;
1101
+ o.emit({ event: P.phase, phase: "analyzing" });
1102
+ const d = await ye(
1099
1103
  () => W(u, {
1100
- ...o,
1101
- responseFormat: U(Q.name, Q.schema)
1104
+ ...i,
1105
+ responseFormat: O(Y.name, Y.schema)
1102
1106
  }),
1103
1107
  {
1104
1108
  label: "test chain",
1105
- config: o
1109
+ config: i
1106
1110
  }
1107
1111
  ), m = d.hasIssues ? d.issues : [];
1108
- return i.complete({ outcome: D.success }), m;
1109
- } catch (r) {
1110
- throw i.error(r), r;
1112
+ return o.emit({
1113
+ event: P.phase,
1114
+ phase: "analysis-complete",
1115
+ issueCount: m.length
1116
+ }), o.complete({ outcome: L.success }), m;
1117
+ } catch (n) {
1118
+ throw o.error(n), n;
1111
1119
  }
1112
1120
  }
1113
1121
  le.knownTexts = [];
@@ -1122,17 +1130,17 @@ const ee = "test-advice", dt = "Run the code with 5 boundary value test cases an
1122
1130
  wt
1123
1131
  ];
1124
1132
  async function vt(t, a = {}) {
1125
- const e = B(ee, a), s = M(ee, e.onProgress, e);
1133
+ const e = B(ee, a), s = z(ee, e.onProgress, e);
1126
1134
  s.start();
1127
1135
  try {
1128
- const n = s.batch(te.length), i = (await we(
1136
+ const r = s.batch(te.length), o = (await we(
1129
1137
  te,
1130
- async (r) => {
1131
- const c = await le(t, r, {
1138
+ async (n) => {
1139
+ const c = await le(t, n, {
1132
1140
  ...e,
1133
1141
  onProgress: ae(e.onProgress, "test-advice:test")
1134
1142
  });
1135
- return n(1), c;
1143
+ return r(1), c;
1136
1144
  },
1137
1145
  {
1138
1146
  maxParallel: 3,
@@ -1140,257 +1148,263 @@ async function vt(t, a = {}) {
1140
1148
  abortSignal: e.abortSignal,
1141
1149
  label: "test-advice:instructions"
1142
1150
  }
1143
- )).flat();
1144
- return s.complete({ outcome: D.success, totalIssues: i.length }), i;
1145
- } catch (n) {
1146
- throw s.error(n), n;
1151
+ )).filter(Array.isArray).flat();
1152
+ return s.complete({ outcome: L.success, totalIssues: o.length }), o;
1153
+ } catch (r) {
1154
+ throw s.error(r), r;
1147
1155
  }
1148
1156
  }
1149
1157
  vt.knownTexts = [];
1150
1158
  pe.config();
1151
1159
  export {
1152
- Nt as CAPABILITY_KEYS,
1153
- $t as COMPLIANCE,
1154
- Bt as CONTEXT_KINDS,
1155
- Mt as COST_POSTURE,
1156
- Ut as ChainEvent,
1160
+ Mt as CAPABILITY_KEYS,
1161
+ Nt as COMPLIANCE,
1162
+ $t as CONTEXT_KINDS,
1163
+ Bt as COST_POSTURE,
1164
+ zt as ChainEvent,
1157
1165
  Ot as ChainTree,
1158
- zt as ContextBudget,
1166
+ Ut as ContextBudget,
1159
1167
  _t as Conversation,
1160
1168
  jt as DOMAIN,
1161
- O as DomainEvent,
1169
+ P as DomainEvent,
1162
1170
  qt as ENVIRONMENT,
1163
1171
  Vt as EmbeddingService,
1164
- Wt as Kind,
1165
- Gt as Level,
1166
- Ht as ListStyle,
1167
- Jt as ModelService,
1168
- Kt as ModelSource,
1169
- T as OpEvent,
1170
- Xt as OptionSource,
1172
+ Wt as ErrorCategory,
1173
+ Gt as Kind,
1174
+ Ht as Level,
1175
+ Jt as ListStyle,
1176
+ Kt as ModelService,
1177
+ Xt as ModelSource,
1178
+ R as OpEvent,
1179
+ Qt as OptionSource,
1171
1180
  Yt as QUALITY_INTENT,
1172
- Qt as SocraticMethod,
1173
- Zt as StatusCode,
1174
- es as SummaryMap,
1175
- ts as TelemetryEvent,
1176
- ss as TimedAbortController,
1181
+ Zt as RetryMode,
1182
+ es as SocraticMethod,
1183
+ ts as StatusCode,
1184
+ ss as SummaryMap,
1185
+ as as TelemetryEvent,
1186
+ rs as TimedAbortController,
1177
1187
  pt as aiArchExpect,
1178
- as as aiExpect,
1179
- ns as analyzeImage,
1180
- rs as analyzeImageMapDetail,
1181
- os as anySignal,
1182
- is as applyAllTargetingRules,
1183
- cs as applyFirstTargetingRule,
1184
- ls as auto,
1185
- us as bool,
1186
- ps as buildSeedGenerationPrompt,
1187
- ds as buildVisionPrompt,
1188
- ms as calculateStatistics,
1189
- hs as calibrate,
1190
- gs as calibrateInstructions,
1191
- fs as calibrateSpec,
1192
- bs as categorySamples,
1193
- ys as causalFramePrompt,
1194
- ws as centralTendency,
1195
- vs as centralTendencyLines,
1196
- xs as chunk,
1197
- Ss as chunkSentences,
1198
- ks as classify,
1199
- Cs as cleanupPaths,
1200
- Is as collectEventsWith,
1201
- As as collectTerms,
1202
- Es as combinations,
1203
- Ps as commonalities,
1204
- Ts as compact,
1205
- Rs as computeTagStatistics,
1206
- Ds as config,
1207
- Ls as constants,
1208
- Fs as conversationTurnReduce,
1209
- Ns as cosineSimilarity,
1210
- $s as createBatches,
1211
- Bs as createContextBuilder,
1212
- M as createProgressEmitter,
1188
+ ns as aiExpect,
1189
+ os as analyzeImage,
1190
+ is as analyzeImageMapDetail,
1191
+ cs as anySignal,
1192
+ ls as applyAllTargetingRules,
1193
+ us as applyFirstTargetingRule,
1194
+ ps as auto,
1195
+ ds as bool,
1196
+ ms as buildSeedGenerationPrompt,
1197
+ hs as buildVisionPrompt,
1198
+ gs as calculateStatistics,
1199
+ fs as calibrate,
1200
+ bs as calibrateInstructions,
1201
+ ys as calibrateSpec,
1202
+ ws as callAgent,
1203
+ vs as categorySamples,
1204
+ xs as causalFramePrompt,
1205
+ Ss as centralTendency,
1206
+ ks as centralTendencyLines,
1207
+ Cs as chunk,
1208
+ Is as chunkSentences,
1209
+ As as classify,
1210
+ Es as cleanupPaths,
1211
+ Ps as collectEventsWith,
1212
+ Ts as collectTerms,
1213
+ Rs as combinations,
1214
+ Ds as commonalities,
1215
+ Ls as compact,
1216
+ Fs as computeTagStatistics,
1217
+ Ms as config,
1218
+ Ns as constants,
1219
+ $s as conversationTurnReduce,
1220
+ Bs as cosineSimilarity,
1221
+ zs as createBatches,
1222
+ Os as createContextBuilder,
1223
+ z as createProgressEmitter,
1213
1224
  me as createTempDir,
1214
- Ms as createTraceCollector,
1215
- Us as date,
1216
- Os as debug,
1225
+ Us as createTraceCollector,
1226
+ _s as date,
1227
+ js as debug,
1217
1228
  W as default,
1218
- zs as descriptorToSchema,
1219
- _s as detectPatterns,
1220
- js as detectThreshold,
1221
- qs as determineStyle,
1222
- Vs as disambiguate,
1223
- Ws as dismantle,
1224
- Gs as documentShrink,
1225
- Hs as embed,
1226
- Js as embedAssembleSpan,
1227
- Ks as embedBatch,
1228
- Xs as embedBuildIndex,
1229
- Ys as embedChunked,
1230
- Qs as embedImage,
1231
- Zs as embedImageBatch,
1232
- ea as embedMergeRanges,
1233
- ta as embedMultiQuery,
1234
- sa as embedNeighborChunks,
1235
- aa as embedNormalizeText,
1236
- na as embedObject,
1237
- ra as embedRewriteQuery,
1238
- oa as embedRewriteToOutputDoc,
1239
- ia as embedStandaloneSpan,
1240
- ca as embedStepBack,
1241
- la as embedSubquestions,
1242
- ua as embedWarmup,
1243
- pa as entityInstructions,
1244
- da as entitySpec,
1245
- ma as evaluateTargetingClause,
1246
- ha as evaluateTargetingRule,
1247
- ga as eventToTrace,
1248
- fa as expect,
1249
- ba as extractBlocks,
1229
+ qs as descriptorToSchema,
1230
+ Vs as detectPatterns,
1231
+ Ws as detectThreshold,
1232
+ Gs as determineStyle,
1233
+ Hs as disambiguate,
1234
+ Js as dismantle,
1235
+ Ks as documentShrink,
1236
+ Xs as embed,
1237
+ Qs as embedAssembleSpan,
1238
+ Ys as embedBatch,
1239
+ Zs as embedBuildIndex,
1240
+ ea as embedChunked,
1241
+ ta as embedImage,
1242
+ sa as embedImageBatch,
1243
+ aa as embedMergeRanges,
1244
+ ra as embedMultiQuery,
1245
+ na as embedNeighborChunks,
1246
+ oa as embedNormalizeText,
1247
+ ia as embedObject,
1248
+ ca as embedRewriteQuery,
1249
+ la as embedRewriteToOutputDoc,
1250
+ ua as embedStandaloneSpan,
1251
+ pa as embedStepBack,
1252
+ da as embedSubquestions,
1253
+ ma as embedWarmup,
1254
+ ha as entityInstructions,
1255
+ ga as entitySpec,
1256
+ fa as evaluateTargetingClause,
1257
+ ba as evaluateTargetingRule,
1258
+ ya as eventToTrace,
1259
+ wa as expect,
1260
+ va as extractBlocks,
1250
1261
  Ce as extractButtons,
1251
- ya as extractEntities,
1262
+ xa as extractEntities,
1252
1263
  ke as extractForms,
1253
- wa as extractJson,
1264
+ Sa as extractJson,
1254
1265
  Se as extractLinks,
1255
1266
  Ae as extractMeta,
1256
1267
  Pe as extractPage,
1257
- va as extractRelations,
1268
+ ka as extractRelations,
1258
1269
  Ie as extractScripts,
1259
1270
  Ee as extractStructure,
1260
- xa as fillMissing,
1261
- Sa as filter,
1262
- ka as filterAmbiguous,
1263
- Ca as filterEach,
1264
- Ia as find,
1265
- Aa as findEach,
1266
- Ea as generateList,
1267
- Pa as getMeanings,
1268
- Ta as getOption,
1269
- Ra as getOptionDetail,
1271
+ Ca as fillMissing,
1272
+ Ia as filter,
1273
+ Aa as filterAmbiguous,
1274
+ Ea as filterEach,
1275
+ Pa as find,
1276
+ Ta as findEach,
1277
+ Ra as generateList,
1278
+ Da as getMeanings,
1279
+ La as getOption,
1280
+ Fa as getOptionDetail,
1270
1281
  se as getOptions,
1271
- Da as glossary,
1272
- La as group,
1273
- Fa as groupEach,
1282
+ Ma as glossary,
1283
+ Na as group,
1284
+ $a as groupEach,
1274
1285
  Tt as imageToBase64,
1275
- Na as init,
1276
- $a as intent,
1277
- Ba as intersections,
1278
- Ma as join,
1279
- U as jsonSchema,
1280
- Ua as last,
1281
- Oa as list,
1282
- za as listBatch,
1283
- _a as listExpand,
1286
+ Ba as init,
1287
+ za as intent,
1288
+ Oa as intersections,
1289
+ Ua as join,
1290
+ O as jsonSchema,
1291
+ _a as last,
1292
+ ja as list,
1293
+ qa as listBatch,
1294
+ Va as listExpand,
1284
1295
  W as llm,
1285
- ja as llmLogger,
1286
- qa as makePrompt,
1287
- Va as map,
1288
- Wa as mapEach,
1296
+ Wa as llmLogger,
1297
+ Ga as makePrompt,
1298
+ Ha as map,
1299
+ Ja as mapEach,
1289
1300
  xe as mapImageShrink,
1290
- Ga as mapTags,
1291
- Ha as name,
1292
- Ja as nameSimilarTo,
1301
+ Ka as mapTags,
1302
+ Xa as name,
1303
+ Qa as nameSimilarTo,
1293
1304
  B as nameStep,
1294
- Ka as normalizeInstruction,
1295
- Xa as normalizeLlm,
1296
- Ya as number,
1297
- Qa as numberWithUnits,
1298
- Za as observeApplication,
1299
- en as observeProviders,
1300
- tn as omit,
1301
- sn as pFilter,
1302
- an as pFind,
1303
- nn as pGroup,
1304
- rn as pMap,
1305
- on as pReduce,
1305
+ Ya as normalizeInstruction,
1306
+ Za as normalizeLlm,
1307
+ er as normalizeRubric,
1308
+ tr as number,
1309
+ sr as numberWithUnits,
1310
+ ar as observeApplication,
1311
+ rr as observeProviders,
1312
+ nr as omit,
1313
+ or as pFilter,
1314
+ ir as pFind,
1315
+ cr as pGroup,
1316
+ lr as pMap,
1317
+ ur as pReduce,
1306
1318
  we as parallel,
1307
- cn as parallelMap,
1308
- ln as parseLLMList,
1309
- un as parseRDFLiteral,
1310
- pn as parseRelations,
1311
- dn as people,
1312
- mn as phailForge,
1313
- hn as pick,
1314
- gn as pipe,
1315
- fn as popReference,
1316
- bn as promptCache,
1317
- yn as promptPiece,
1318
- wn as prompts,
1319
- vn as questions,
1320
- xn as rangeCombinations,
1319
+ pr as parallelMap,
1320
+ dr as parseLLMList,
1321
+ mr as parseRDFLiteral,
1322
+ hr as parseRelations,
1323
+ gr as people,
1324
+ fr as phailForge,
1325
+ br as pick,
1326
+ yr as pipe,
1327
+ wr as popReference,
1328
+ vr as promptCache,
1329
+ xr as promptPiece,
1330
+ Sr as prompts,
1331
+ kr as questions,
1332
+ Cr as rangeCombinations,
1321
1333
  ge as reduce,
1322
- Sn as reduceEach,
1323
- kn as relationInstructions,
1324
- Cn as relationSpec,
1334
+ Ir as reduceEach,
1335
+ Ar as relationInstructions,
1336
+ Er as relationSpec,
1325
1337
  Et as resizeImage,
1326
1338
  fe as resolveArgs,
1327
- In as resolveEmbedding,
1328
- An as resolveModel,
1329
- En as resolveOutputDir,
1339
+ Pr as resolveEmbedding,
1340
+ Tr as resolveModel,
1341
+ Rr as resolveOutputDir,
1330
1342
  be as resolveTexts,
1331
1343
  ye as retry,
1332
- Pn as ringBuffer,
1333
- Tn as scaleInstructions,
1334
- Rn as scaleItem,
1335
- Dn as scaleSpec,
1344
+ Dr as ringBuffer,
1345
+ Lr as scaleInstructions,
1346
+ Fr as scaleItem,
1347
+ Mr as scaleSpec,
1336
1348
  Dt as scanJS,
1337
- Ln as schemaOrg,
1338
- Fn as schemas,
1339
- Nn as scientificFramingPrompt,
1349
+ Nr as schemaOrg,
1350
+ $r as schemas,
1351
+ Br as scientificFramingPrompt,
1340
1352
  ae as scopePhase,
1341
- $n as score,
1342
- Bn as scoreChunksByProbes,
1343
- Mn as scoreInstructions,
1344
- Un as scoreItem,
1345
- On as scoreSpec,
1346
- zn as sentiment,
1347
- _n as setEmbedEnabled,
1348
- jn as setImageProcessingEnabled,
1349
- qn as setInterval,
1350
- Vn as shuffle,
1351
- Wn as simplifyTree,
1353
+ zr as score,
1354
+ Or as scoreChunksByProbes,
1355
+ Ur as scoreInstructions,
1356
+ _r as scoreItem,
1357
+ jr as scoreMatrix,
1358
+ qr as scoreMatrixInstructions,
1359
+ Vr as scoreSpec,
1360
+ Wr as sentiment,
1361
+ Gr as setEmbedEnabled,
1362
+ Hr as setImageProcessingEnabled,
1363
+ Jr as setInterval,
1364
+ Kr as shuffle,
1365
+ Xr as simplifyTree,
1352
1366
  We as siteCrawl,
1353
- Gn as slot,
1354
- Hn as socratic,
1355
- Jn as softCoverPrompt,
1356
- Kn as sort,
1357
- Xn as sortBy,
1358
- Yn as split,
1359
- Qn as stripNumeric,
1360
- Zn as stripResponse,
1361
- er as suggestTargetingRules,
1362
- tr as tagInstructions,
1363
- sr as tagItem,
1364
- ar as tagSpec,
1365
- nr as tagVocabulary,
1366
- rr as targetingClause,
1367
- or as targetingRule,
1368
- ir as targetingRuleOps,
1369
- cr as targetingRuleSchema,
1370
- lr as templateBuilder,
1371
- ur as templateReplace,
1367
+ Qr as slot,
1368
+ Yr as socratic,
1369
+ Zr as softCoverPrompt,
1370
+ en as sort,
1371
+ tn as sortBy,
1372
+ sn as split,
1373
+ an as stripNumeric,
1374
+ rn as stripResponse,
1375
+ nn as suggestTargetingRules,
1376
+ on as tagInstructions,
1377
+ cn as tagItem,
1378
+ ln as tagSpec,
1379
+ un as tagVocabulary,
1380
+ pn as targetingClause,
1381
+ dn as targetingRule,
1382
+ mn as targetingRuleOps,
1383
+ hn as targetingRuleSchema,
1384
+ gn as templateBuilder,
1385
+ fn as templateReplace,
1372
1386
  le as test,
1373
1387
  vt as testAdvice,
1374
- pr as themes,
1388
+ bn as themes,
1375
1389
  Pt as tileImages,
1376
- dr as timeline,
1377
- mr as toBool,
1378
- hr as toDate,
1379
- gr as toEnum,
1380
- fr as toNumber,
1381
- br as toNumberWithUnits,
1382
- yr as toObject,
1383
- wr as truncate,
1384
- vr as unionBy,
1385
- xr as validateTargetingRules,
1386
- Sr as valueArbitrate,
1387
- kr as vectorSearch,
1388
- Cr as veiledVariantStrategies,
1389
- Ir as veiledVariants,
1390
- Ar as version,
1390
+ yn as timeline,
1391
+ wn as toBool,
1392
+ vn as toDate,
1393
+ xn as toEnum,
1394
+ Sn as toNumber,
1395
+ kn as toNumberWithUnits,
1396
+ Cn as toObject,
1397
+ In as truncate,
1398
+ An as unionBy,
1399
+ En as validateTargetingRules,
1400
+ Pn as valueArbitrate,
1401
+ Tn as vectorSearch,
1402
+ Rn as veiledVariantStrategies,
1403
+ Dn as veiledVariants,
1404
+ Ln as version,
1391
1405
  Rt as webScrape,
1392
- Er as windowFor,
1393
- Pr as withInactivityTimeout,
1406
+ Fn as windowFor,
1407
+ Mn as withInactivityTimeout,
1394
1408
  V as withPolicy,
1395
- Tr as zipWith
1409
+ Nn as zipWith
1396
1410
  };