vibes-diy 14.3.447 → 14.3.448
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.
|
@@ -161364,6 +161364,7 @@ __name(normalizeCapiPhone, "normalizeCapiPhone");
|
|
|
161364
161364
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_process();
|
|
161365
161365
|
init_virtual_unenv_global_polyfill_cloudflare_unenv_preset_node_console();
|
|
161366
161366
|
init_performance2();
|
|
161367
|
+
init_esm();
|
|
161367
161368
|
init_expressions();
|
|
161368
161369
|
init_types4();
|
|
161369
161370
|
|
|
@@ -174746,7 +174747,54 @@ function classifyReadResponse(res, requestHeaders, method) {
|
|
|
174746
174747
|
return { store, ttlMs, varySignature: signature ?? "", suspect };
|
|
174747
174748
|
}
|
|
174748
174749
|
__name(classifyReadResponse, "classifyReadResponse");
|
|
174750
|
+
var CREDENTIAL_PARAM_TOKENS = /* @__PURE__ */ new Set([
|
|
174751
|
+
"key",
|
|
174752
|
+
"apikey",
|
|
174753
|
+
"token",
|
|
174754
|
+
"accesstoken",
|
|
174755
|
+
"auth",
|
|
174756
|
+
"authorization",
|
|
174757
|
+
"secret",
|
|
174758
|
+
"password",
|
|
174759
|
+
"passwd",
|
|
174760
|
+
"pwd",
|
|
174761
|
+
"session",
|
|
174762
|
+
"sessionid",
|
|
174763
|
+
"sid",
|
|
174764
|
+
"sig",
|
|
174765
|
+
"signature",
|
|
174766
|
+
"jwt",
|
|
174767
|
+
"bearer",
|
|
174768
|
+
"credential",
|
|
174769
|
+
"credentials"
|
|
174770
|
+
]);
|
|
174771
|
+
function isCredentialParamName(name) {
|
|
174772
|
+
const lower2 = name.toLowerCase();
|
|
174773
|
+
if (CREDENTIAL_PARAM_TOKENS.has(lower2.replace(/[^a-z0-9]/g, ""))) return true;
|
|
174774
|
+
const tokens = name.replace(/([a-z0-9])([A-Z])/g, "$1_$2").toLowerCase().split(/[^a-z0-9]+/);
|
|
174775
|
+
return tokens.some((t3) => CREDENTIAL_PARAM_TOKENS.has(t3));
|
|
174776
|
+
}
|
|
174777
|
+
__name(isCredentialParamName, "isCredentialParamName");
|
|
174778
|
+
var USERINFO_RE = /^[a-z][a-z0-9+.-]*:\/\/[^/?#]*@/i;
|
|
174779
|
+
function readRequestCarriesCredential(href) {
|
|
174780
|
+
if (USERINFO_RE.test(href)) return true;
|
|
174781
|
+
for (const [name] of URI.from(href).getParams) {
|
|
174782
|
+
if (isCredentialParamName(name)) return true;
|
|
174783
|
+
}
|
|
174784
|
+
return false;
|
|
174785
|
+
}
|
|
174786
|
+
__name(readRequestCarriesCredential, "readRequestCarriesCredential");
|
|
174787
|
+
function readSuspectReasons(reasons, hrefs) {
|
|
174788
|
+
if (reasons.length === 0) return reasons;
|
|
174789
|
+
return hrefs.some(readRequestCarriesCredential) ? reasons : [];
|
|
174790
|
+
}
|
|
174791
|
+
__name(readSuspectReasons, "readSuspectReasons");
|
|
174749
174792
|
var ReadSuspectLog = class {
|
|
174793
|
+
/** `warn` is the one line's destination; production keeps `console.warn` (Logpush reads it). */
|
|
174794
|
+
constructor(warn4 = (line2) => console.warn(line2)) {
|
|
174795
|
+
this.warn = warn4;
|
|
174796
|
+
}
|
|
174797
|
+
warn;
|
|
174750
174798
|
static {
|
|
174751
174799
|
__name(this, "ReadSuspectLog");
|
|
174752
174800
|
}
|
|
@@ -174762,7 +174810,7 @@ var ReadSuspectLog = class {
|
|
|
174762
174810
|
if (oldest.done === true) break;
|
|
174763
174811
|
this.lastLoggedAt.delete(oldest.value);
|
|
174764
174812
|
}
|
|
174765
|
-
|
|
174813
|
+
this.warn(`${READ_SUSPECT_MARKER} host=${ctx.host} vibe=${ctx.ownerHandle}/${ctx.appSlug} reason=${reasons.join(",")}`);
|
|
174766
174814
|
}
|
|
174767
174815
|
};
|
|
174768
174816
|
function variantBytes(variants) {
|
|
@@ -175114,7 +175162,13 @@ async function serveOptimisticRead(args2) {
|
|
|
175114
175162
|
const { input: input3, url: url3, method, varyHeaders, upstream, lane, now: now2 } = args2;
|
|
175115
175163
|
const cache4 = lane.cache;
|
|
175116
175164
|
const decision = classifyReadResponse(upstream, varyHeaders, method);
|
|
175117
|
-
|
|
175165
|
+
const reachedUrl = finalUrls.get(upstream);
|
|
175166
|
+
const askedAndReached = reachedUrl === void 0 ? [url3.toString()] : [url3.toString(), reachedUrl];
|
|
175167
|
+
lane.suspect.log(
|
|
175168
|
+
readSuspectReasons(decision.suspect, askedAndReached),
|
|
175169
|
+
{ host: url3.hostname, ownerHandle: input3.ownerHandle, appSlug: input3.appSlug },
|
|
175170
|
+
now2
|
|
175171
|
+
);
|
|
175118
175172
|
if (!decision.store) {
|
|
175119
175173
|
admitLanes.set(upstream, "optimistic-read");
|
|
175120
175174
|
return upstream;
|
|
@@ -2562,6 +2562,10 @@
|
|
|
2562
2562
|
"vibes.diy/api/svc/intern/text-lane/line-capacity.ts",
|
|
2563
2563
|
"vibes.diy/api/svc/intern/text-lane/lines.ts",
|
|
2564
2564
|
"vibes.diy/api/svc/intern/text-lane/linq-client.ts",
|
|
2565
|
+
"vibes.diy/api/svc/intern/text-lane/policy/copy.ts",
|
|
2566
|
+
"vibes.diy/api/svc/intern/text-lane/policy/for-messages.ts",
|
|
2567
|
+
"vibes.diy/api/svc/intern/text-lane/policy/reactions.ts",
|
|
2568
|
+
"vibes.diy/api/svc/intern/text-lane/policy/record-param.ts",
|
|
2565
2569
|
"vibes.diy/api/svc/intern/text-lane/policy/reminder-reply.ts",
|
|
2566
2570
|
"vibes.diy/api/svc/intern/text-lane/send-policy.ts",
|
|
2567
2571
|
"vibes.diy/api/svc/intern/text-lane/text-principal.ts",
|