@lunora/advisor 1.0.0-alpha.291 → 1.0.0-alpha.292
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.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/{actionFetchSsrf-BK-kvOPO.mjs → actionFetchSsrf-B7FqsLWm.mjs} +1 -1
- package/dist/packem_shared/actionWithoutErrorHandling-DK3rB5c-.mjs +1 -0
- package/dist/packem_shared/adminRouteWithoutGuard-CcdlN75o.mjs +1 -0
- package/dist/packem_shared/{aiRawRunEscapeHatch-BW7a8kZC.mjs → aiRawRunEscapeHatch-CzIaQf_v.mjs} +1 -1
- package/dist/packem_shared/aiRunWithoutLogging-Ct5MeKWe.mjs +1 -0
- package/dist/packem_shared/{aiToolSideEffectPromptInjection-9eJXRlKt.mjs → aiToolSideEffectPromptInjection-Ck_h8tFx.mjs} +1 -1
- package/dist/packem_shared/aiUnboundedGenerationPublic-CzF3xBc3.mjs +1 -0
- package/dist/packem_shared/{authApiCallWithoutHeaders-CReJRsGW.mjs → authApiCallWithoutHeaders-9PpziIB9.mjs} +1 -1
- package/dist/packem_shared/{authCsrfCheckDisabled-CRIVsvb9.mjs → authCsrfCheckDisabled-DYTzZFpp.mjs} +1 -1
- package/dist/packem_shared/{authEmailVerificationDisabled-BjFlnHr2.mjs → authEmailVerificationDisabled-OiNes7Dz.mjs} +1 -1
- package/dist/packem_shared/{authScimWithoutTransactions-B5ATiz5A.mjs → authScimWithoutTransactions-CajXH24D.mjs} +1 -1
- package/dist/packem_shared/{authSecureCookiesDisabled-By8PVum3.mjs → authSecureCookiesDisabled-CA5zyqDZ.mjs} +1 -1
- package/dist/packem_shared/{authSessionFreshageZero-DuxX3Ln9.mjs → authSessionFreshageZero-C3IYlYft.mjs} +1 -1
- package/dist/packem_shared/{authTrustedOriginsWildcard-BKIh6788.mjs → authTrustedOriginsWildcard-661FRsGe.mjs} +1 -1
- package/dist/packem_shared/{browserUserUrlWithoutAllowlist-CzDEraJB.mjs → browserUserUrlWithoutAllowlist-Bi5ZWTF7.mjs} +1 -1
- package/dist/packem_shared/{containerInstanceKeyFromUserInput-Bl-tAzKV.mjs → containerInstanceKeyFromUserInput-DHQ2JL4x.mjs} +1 -1
- package/dist/packem_shared/containerLongSleepAfter-DSGnfpfl.mjs +1 -0
- package/dist/packem_shared/containerOversizedInstance-INKmy3-D.mjs +1 -0
- package/dist/packem_shared/containerPublicInternet-Csh5_RwX.mjs +1 -0
- package/dist/packem_shared/{containerRuntimeEgressRelaxation-4tMrhq1k.mjs → containerRuntimeEgressRelaxation-J6rpfvr8.mjs} +1 -1
- package/dist/packem_shared/{containerStartEnableInternetOverride-mN_kuRtk.mjs → containerStartEnableInternetOverride-Bxbmrpwe.mjs} +1 -1
- package/dist/packem_shared/{countWithoutIndex-DjQFNBrw.mjs → countWithoutIndex-CTbdpLyE.mjs} +1 -1
- package/dist/packem_shared/cronEveryMinute-BjdRdTEz.mjs +1 -0
- package/dist/packem_shared/errorWithoutCatalog-Dib0sdSD.mjs +1 -0
- package/dist/packem_shared/{filterAfterIndexScan-CV8aPq7v.mjs → filterAfterIndexScan-BTHjxkNi.mjs} +1 -1
- package/dist/packem_shared/{filterOnPrimaryKey-CAhFiqp_.mjs → filterOnPrimaryKey-DeRYfLa7.mjs} +1 -1
- package/dist/packem_shared/{filterWithoutIndex-BGv3jbgg.mjs → filterWithoutIndex-8VrXwbq5.mjs} +1 -1
- package/dist/packem_shared/{flagGatesSecurityWithUnsafeDefault-B5FBDF8c.mjs → flagGatesSecurityWithUnsafeDefault-CJK9sKcH.mjs} +1 -1
- package/dist/packem_shared/{geoIndexFieldNotGeopoint-BMQuok2-.mjs → geoIndexFieldNotGeopoint-Cx_9INob.mjs} +1 -1
- package/dist/packem_shared/{helpers-DdZ_pyR3.mjs → helpers-YAAwOBMH.mjs} +1 -1
- package/dist/packem_shared/{httpActionMissingAuthGuard-DhMIs1EI.mjs → httpActionMissingAuthGuard-D58Vnjr0.mjs} +1 -1
- package/dist/packem_shared/{httpActionResponseHeaderInjection-mcRYd3Zw.mjs → httpActionResponseHeaderInjection-Yn1pbKZ8.mjs} +1 -1
- package/dist/packem_shared/{identityUndeclaredClaimTrusted-D1sEd5lr.mjs → identityUndeclaredClaimTrusted-Z-9ob8F2.mjs} +1 -1
- package/dist/packem_shared/{imagesUrlSourceFromUserInput-BJXotuyO.mjs → imagesUrlSourceFromUserInput-a2CZ-Xnj.mjs} +1 -1
- package/dist/packem_shared/{indexReferencesUnknownField-DKz4-bla.mjs → indexReferencesUnknownField-CV8STvk0.mjs} +1 -1
- package/dist/packem_shared/insertManyUnsafeUserData-CSvy65sr.mjs +1 -0
- package/dist/packem_shared/{kvUnscopedUserKeyIdor-DhymglIq.mjs → kvUnscopedUserKeyIdor-D0O2alyn.mjs} +1 -1
- package/dist/packem_shared/{mailRecipientFromRequestInput-BVXsZ4Xf.mjs → mailRecipientFromRequestInput-BMrAJjNK.mjs} +1 -1
- package/dist/packem_shared/{maskWeakHashStrategyOnPii-DJasagzX.mjs → maskWeakHashStrategyOnPii-CwgAXFSx.mjs} +1 -1
- package/dist/packem_shared/{outputProjectionMissingOnPublicRead-DWSeo7oC.mjs → outputProjectionMissingOnPublicRead-BPS-eg2q.mjs} +1 -1
- package/dist/packem_shared/{ownerFieldFromArgsNotAuth-J8Xbz5uI.mjs → ownerFieldFromArgsNotAuth-BmKLZxrX.mjs} +1 -1
- package/dist/packem_shared/{paymentWebhookWideTolerance-CqMcZOb2.mjs → paymentWebhookWideTolerance-D9i3Vb1n.mjs} +1 -1
- package/dist/packem_shared/policyReferencesUnknownTable-DiQYFRFY.mjs +1 -0
- package/dist/packem_shared/{privilegedDispatchUnvalidatedPayload-BM3NtT57.mjs → privilegedDispatchUnvalidatedPayload-BJL0JNzG.mjs} +1 -1
- package/dist/packem_shared/privilegedFanoutFromPublicProcedure-Byw3Prsi.mjs +1 -0
- package/dist/packem_shared/procedureWithoutStructuredEvent-na08a0M1.mjs +1 -0
- package/dist/packem_shared/publicMutationWithoutRatelimit-DAxh8tL0.mjs +1 -0
- package/dist/packem_shared/{publicTableRlsOptoutConfusion-CbNk75Xo.mjs → publicTableRlsOptoutConfusion-W_jAkKFR.mjs} +1 -1
- package/dist/packem_shared/queueWithoutDlq-CF_xUgE_.mjs +1 -0
- package/dist/packem_shared/{ratelimitKeySpoofableOrGlobal-DHMl74hR.mjs → ratelimitKeySpoofableOrGlobal-VSGOuu5X.mjs} +1 -1
- package/dist/packem_shared/{ratelimitMiddlewareFailOpen-Di2t8pDc.mjs → ratelimitMiddlewareFailOpen-bweBVZ4J.mjs} +1 -1
- package/dist/packem_shared/{relationReferencesUnknownField-Cl6mik8w.mjs → relationReferencesUnknownField-hVsgaUKy.mjs} +1 -1
- package/dist/packem_shared/rlsUncoveredTable-e2FhD6Nr.mjs +1 -0
- package/dist/packem_shared/selfRescheduleWithoutProgress-HoknmezK.mjs +1 -0
- package/dist/packem_shared/shapeTargetsGlobalTable-CYRV8OvU.mjs +1 -0
- package/dist/packem_shared/shapeUnknownTable-6virkUOz.mjs +1 -0
- package/dist/packem_shared/signupMutationWithoutDisposableGating-nopEfEEK.mjs +1 -0
- package/dist/packem_shared/{sqlInjectionRisk-BBWvOBtw.mjs → sqlInjectionRisk-CSKho3Vk.mjs} +1 -1
- package/dist/packem_shared/{storageGenerateUploadUrlNoContentTypePin-CrwFuo83.mjs → storageGenerateUploadUrlNoContentTypePin-BlOPGwhZ.mjs} +1 -1
- package/dist/packem_shared/{storageKeyFromUserArgs-3vkxmI3v.mjs → storageKeyFromUserArgs-BuoTsz-h.mjs} +1 -1
- package/dist/packem_shared/{storagePresignedUrlForPrivateContent-C3KeV5tV.mjs → storagePresignedUrlForPrivateContent-l-EwrAfj.mjs} +1 -1
- package/dist/packem_shared/{storageUploadWithoutContentTypeAllowlist-BXoK_QWE.mjs → storageUploadWithoutContentTypeAllowlist-JmITAazT.mjs} +1 -1
- package/dist/packem_shared/{storageUploadWithoutMaxSize-CW7uKvSi.mjs → storageUploadWithoutMaxSize-DlhE1I98.mjs} +1 -1
- package/dist/packem_shared/sweeps-DYG_FnlQ.mjs +1 -0
- package/dist/packem_shared/{ttlFieldNotTimestamp-lnb5nmM6.mjs → ttlFieldNotTimestamp-C8zgHJjp.mjs} +1 -1
- package/dist/packem_shared/{unboundedCollectOnOpenRange-DHy2RUL7.mjs → unboundedCollectOnOpenRange-DDGNuKks.mjs} +1 -1
- package/dist/packem_shared/{unboundedLoop-DxN3_apu.mjs → unboundedLoop-CUF9Wdxa.mjs} +1 -1
- package/dist/packem_shared/userCreatingMutationWithoutCaptcha-8mtYqiGy.mjs +1 -0
- package/dist/packem_shared/{vectorsNamespaceFromUserInput-CFa2qhFU.mjs → vectorsNamespaceFromUserInput-537Bt2vT.mjs} +1 -1
- package/dist/packem_shared/{workflowUnknownTarget-DEKB5H0g.mjs → workflowUnknownTarget-DdG3cUPH.mjs} +1 -1
- package/dist/packem_shared/workflowUnused-CSKRWTd_.mjs +1 -0
- package/package.json +1 -1
- package/dist/packem_shared/actionWithoutErrorHandling-4GCBT0_z.mjs +0 -1
- package/dist/packem_shared/adminRouteWithoutGuard-DPE7LuNh.mjs +0 -1
- package/dist/packem_shared/aiRunWithoutLogging-DT665z-w.mjs +0 -1
- package/dist/packem_shared/aiUnboundedGenerationPublic-C17h6sMV.mjs +0 -1
- package/dist/packem_shared/containerLongSleepAfter-CVvHEGYC.mjs +0 -1
- package/dist/packem_shared/containerOversizedInstance-Bx89uR7E.mjs +0 -1
- package/dist/packem_shared/containerPublicInternet-BFfZf_P4.mjs +0 -1
- package/dist/packem_shared/cronEveryMinute-CtpEAbxs.mjs +0 -1
- package/dist/packem_shared/errorWithoutCatalog-BTfvaXHR.mjs +0 -1
- package/dist/packem_shared/insertManyUnsafeUserData-DWE8d_DF.mjs +0 -1
- package/dist/packem_shared/policyReferencesUnknownTable-CIKuRZ5Y.mjs +0 -1
- package/dist/packem_shared/privilegedFanoutFromPublicProcedure-DV188gHQ.mjs +0 -1
- package/dist/packem_shared/procedureWithoutStructuredEvent-BcOE0mFx.mjs +0 -1
- package/dist/packem_shared/publicMutationWithoutRatelimit-Bd-rRxnz.mjs +0 -1
- package/dist/packem_shared/queueWithoutDlq-BvHz3Opg.mjs +0 -1
- package/dist/packem_shared/rlsUncoveredTable-CZ4ie4gX.mjs +0 -1
- package/dist/packem_shared/selfRescheduleWithoutProgress-CQNZI4FA.mjs +0 -1
- package/dist/packem_shared/shapeTargetsGlobalTable-Bu3eEDic.mjs +0 -1
- package/dist/packem_shared/shapeUnknownTable-CREfNnWi.mjs +0 -1
- package/dist/packem_shared/signupMutationWithoutDisposableGating-BdKwtxDP.mjs +0 -1
- package/dist/packem_shared/sweeps-JWMwcakB.mjs +0 -1
- package/dist/packem_shared/userCreatingMutationWithoutCaptcha-D4TZEpgz.mjs +0 -1
- package/dist/packem_shared/workflowUnused-DHwwE-1P.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,8 @@ interface AdvisorAdminRoute {
|
|
|
10
10
|
exportName: string;
|
|
11
11
|
/** Source file relative to the lunora dir, no extension. */
|
|
12
12
|
file: string;
|
|
13
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
14
|
+
line?: number;
|
|
13
15
|
/** HTTP verb the route binds to (uppercased), e.g. `"POST"`. */
|
|
14
16
|
method: string;
|
|
15
17
|
/** The route path, e.g. `/admin/users`. */
|
|
@@ -396,6 +398,8 @@ interface AdvisorContainer {
|
|
|
396
398
|
enableInternet?: boolean;
|
|
397
399
|
/** The `lunora/containers.ts` export name, e.g. `transcoder`. */
|
|
398
400
|
exportName: string;
|
|
401
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
402
|
+
file?: string;
|
|
399
403
|
/** Declared `hardTimeout` value, when a static literal. Caps total lifetime, idle or not. */
|
|
400
404
|
hardTimeout?: number | string;
|
|
401
405
|
/** Declared `instanceType`: a named size, or a custom `{ vcpu, memoryMib, diskMb }`. */
|
|
@@ -404,6 +408,8 @@ interface AdvisorContainer {
|
|
|
404
408
|
memoryMib?: number;
|
|
405
409
|
vcpu?: number;
|
|
406
410
|
};
|
|
411
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
412
|
+
line?: number;
|
|
407
413
|
/** Declared `maxInstances` cap, when present. */
|
|
408
414
|
maxInstances?: number;
|
|
409
415
|
/** Declared `sleepAfter` value, when a static literal. */
|
|
@@ -444,8 +450,12 @@ interface AdvisorCountRead {
|
|
|
444
450
|
interface AdvisorCron {
|
|
445
451
|
/** The compiled standard five-field cron expression, e.g. `"0 9 * * *"`. */
|
|
446
452
|
cron: string;
|
|
453
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
454
|
+
file?: string;
|
|
447
455
|
/** The `namespace:fn` the job dispatches; absent when the job starts a workflow. */
|
|
448
456
|
functionPath?: string;
|
|
457
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
458
|
+
line?: number;
|
|
449
459
|
/** Unique job name. */
|
|
450
460
|
name: string;
|
|
451
461
|
/** Set when each fire starts a workflow instance instead of dispatching a function. */
|
|
@@ -1237,6 +1247,8 @@ interface AdvisorProcedureProtection {
|
|
|
1237
1247
|
hasEmailArg?: boolean;
|
|
1238
1248
|
/** Registration kind — `query` is read-only; `mutation`/`action` are write-shaped. */
|
|
1239
1249
|
kind: "action" | "mutation" | "query";
|
|
1250
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1251
|
+
line?: number;
|
|
1240
1252
|
/** `true` when the handler reaches an outbound surface (`ctx.fetch`, mail, queues, storage, sql, ai, …) that can fail. */
|
|
1241
1253
|
reachesOutbound?: boolean;
|
|
1242
1254
|
/** `true` when the handler runs any AI generation, bounded or not. */
|
|
@@ -1393,6 +1405,8 @@ interface AdvisorQueue {
|
|
|
1393
1405
|
exportName: string;
|
|
1394
1406
|
file: string;
|
|
1395
1407
|
};
|
|
1408
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1409
|
+
line?: number;
|
|
1396
1410
|
/** How the queue is consumed: `"push"` (a worker `queue()` handler) or `"pull"` (external HTTP). */
|
|
1397
1411
|
mode: "pull" | "push";
|
|
1398
1412
|
/**
|
|
@@ -1515,6 +1529,8 @@ interface AdvisorRlsProcedure {
|
|
|
1515
1529
|
exportName: string;
|
|
1516
1530
|
/** Source file relative to the lunora dir, no extension. */
|
|
1517
1531
|
file: string;
|
|
1532
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1533
|
+
line?: number;
|
|
1518
1534
|
/**
|
|
1519
1535
|
* Tables explicitly named in the `rls(policies)` array passed to `.use(rls(...))`
|
|
1520
1536
|
* in this procedure's builder chain. Empty when the policies argument is not a
|
|
@@ -1760,6 +1776,8 @@ interface AdvisorShape {
|
|
|
1760
1776
|
exportName: string;
|
|
1761
1777
|
/** File the shape is declared in (relative, for the operator to open). */
|
|
1762
1778
|
file: string;
|
|
1779
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1780
|
+
line?: number;
|
|
1763
1781
|
/**
|
|
1764
1782
|
* The `table` string literal the shape replicates from, or `undefined` when
|
|
1765
1783
|
* the feeder could not read it as a plain string literal — tier-sensitive
|
|
@@ -2011,12 +2029,16 @@ interface AdvisorWorkflowStep {
|
|
|
2011
2029
|
interface AdvisorWorkflow {
|
|
2012
2030
|
/** The `lunora/workflows.ts` export name, e.g. `orderPipeline`. */
|
|
2013
2031
|
exportName: string;
|
|
2032
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
2033
|
+
file?: string;
|
|
2014
2034
|
/**
|
|
2015
2035
|
* The file declaring the handler when it is passed by reference from another
|
|
2016
2036
|
* file (`handler: onboard`) — the file the {@link AdvisorWorkflow.steps} lines
|
|
2017
2037
|
* are in. Lunora-relative inside `lunora/`, project-relative outside it.
|
|
2018
2038
|
*/
|
|
2019
2039
|
handlerFile?: string;
|
|
2040
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
2041
|
+
line?: number;
|
|
2020
2042
|
/**
|
|
2021
2043
|
* The durable step labels discovered in the handler body, in source order —
|
|
2022
2044
|
* the duplicate-step-name input. Cloudflare memoizes a step by its name, so a
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ interface AdvisorAdminRoute {
|
|
|
10
10
|
exportName: string;
|
|
11
11
|
/** Source file relative to the lunora dir, no extension. */
|
|
12
12
|
file: string;
|
|
13
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
14
|
+
line?: number;
|
|
13
15
|
/** HTTP verb the route binds to (uppercased), e.g. `"POST"`. */
|
|
14
16
|
method: string;
|
|
15
17
|
/** The route path, e.g. `/admin/users`. */
|
|
@@ -396,6 +398,8 @@ interface AdvisorContainer {
|
|
|
396
398
|
enableInternet?: boolean;
|
|
397
399
|
/** The `lunora/containers.ts` export name, e.g. `transcoder`. */
|
|
398
400
|
exportName: string;
|
|
401
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
402
|
+
file?: string;
|
|
399
403
|
/** Declared `hardTimeout` value, when a static literal. Caps total lifetime, idle or not. */
|
|
400
404
|
hardTimeout?: number | string;
|
|
401
405
|
/** Declared `instanceType`: a named size, or a custom `{ vcpu, memoryMib, diskMb }`. */
|
|
@@ -404,6 +408,8 @@ interface AdvisorContainer {
|
|
|
404
408
|
memoryMib?: number;
|
|
405
409
|
vcpu?: number;
|
|
406
410
|
};
|
|
411
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
412
|
+
line?: number;
|
|
407
413
|
/** Declared `maxInstances` cap, when present. */
|
|
408
414
|
maxInstances?: number;
|
|
409
415
|
/** Declared `sleepAfter` value, when a static literal. */
|
|
@@ -444,8 +450,12 @@ interface AdvisorCountRead {
|
|
|
444
450
|
interface AdvisorCron {
|
|
445
451
|
/** The compiled standard five-field cron expression, e.g. `"0 9 * * *"`. */
|
|
446
452
|
cron: string;
|
|
453
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
454
|
+
file?: string;
|
|
447
455
|
/** The `namespace:fn` the job dispatches; absent when the job starts a workflow. */
|
|
448
456
|
functionPath?: string;
|
|
457
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
458
|
+
line?: number;
|
|
449
459
|
/** Unique job name. */
|
|
450
460
|
name: string;
|
|
451
461
|
/** Set when each fire starts a workflow instance instead of dispatching a function. */
|
|
@@ -1237,6 +1247,8 @@ interface AdvisorProcedureProtection {
|
|
|
1237
1247
|
hasEmailArg?: boolean;
|
|
1238
1248
|
/** Registration kind — `query` is read-only; `mutation`/`action` are write-shaped. */
|
|
1239
1249
|
kind: "action" | "mutation" | "query";
|
|
1250
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1251
|
+
line?: number;
|
|
1240
1252
|
/** `true` when the handler reaches an outbound surface (`ctx.fetch`, mail, queues, storage, sql, ai, …) that can fail. */
|
|
1241
1253
|
reachesOutbound?: boolean;
|
|
1242
1254
|
/** `true` when the handler runs any AI generation, bounded or not. */
|
|
@@ -1393,6 +1405,8 @@ interface AdvisorQueue {
|
|
|
1393
1405
|
exportName: string;
|
|
1394
1406
|
file: string;
|
|
1395
1407
|
};
|
|
1408
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1409
|
+
line?: number;
|
|
1396
1410
|
/** How the queue is consumed: `"push"` (a worker `queue()` handler) or `"pull"` (external HTTP). */
|
|
1397
1411
|
mode: "pull" | "push";
|
|
1398
1412
|
/**
|
|
@@ -1515,6 +1529,8 @@ interface AdvisorRlsProcedure {
|
|
|
1515
1529
|
exportName: string;
|
|
1516
1530
|
/** Source file relative to the lunora dir, no extension. */
|
|
1517
1531
|
file: string;
|
|
1532
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1533
|
+
line?: number;
|
|
1518
1534
|
/**
|
|
1519
1535
|
* Tables explicitly named in the `rls(policies)` array passed to `.use(rls(...))`
|
|
1520
1536
|
* in this procedure's builder chain. Empty when the policies argument is not a
|
|
@@ -1760,6 +1776,8 @@ interface AdvisorShape {
|
|
|
1760
1776
|
exportName: string;
|
|
1761
1777
|
/** File the shape is declared in (relative, for the operator to open). */
|
|
1762
1778
|
file: string;
|
|
1779
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
1780
|
+
line?: number;
|
|
1763
1781
|
/**
|
|
1764
1782
|
* The `table` string literal the shape replicates from, or `undefined` when
|
|
1765
1783
|
* the feeder could not read it as a plain string literal — tier-sensitive
|
|
@@ -2011,12 +2029,16 @@ interface AdvisorWorkflowStep {
|
|
|
2011
2029
|
interface AdvisorWorkflow {
|
|
2012
2030
|
/** The `lunora/workflows.ts` export name, e.g. `orderPipeline`. */
|
|
2013
2031
|
exportName: string;
|
|
2032
|
+
/** Lunora-relative module of the declaration, without extension, when the feeder recorded it. */
|
|
2033
|
+
file?: string;
|
|
2014
2034
|
/**
|
|
2015
2035
|
* The file declaring the handler when it is passed by reference from another
|
|
2016
2036
|
* file (`handler: onboard`) — the file the {@link AdvisorWorkflow.steps} lines
|
|
2017
2037
|
* are in. Lunora-relative inside `lunora/`, project-relative outside it.
|
|
2018
2038
|
*/
|
|
2019
2039
|
handlerFile?: string;
|
|
2040
|
+
/** 1-based start line of the declaring statement, when the feeder recorded it. */
|
|
2041
|
+
line?: number;
|
|
2020
2042
|
/**
|
|
2021
2043
|
* The durable step labels discovered in the handler body, in source order —
|
|
2022
2044
|
* the duplicate-step-name input. Cloudflare memoizes a step by its name, so a
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dedupeCacheKeys as c}from"./packem_shared/dedupeCacheKeys-DtBOHffV.mjs";import d from"./packem_shared/fanOutBreadth-CBtmZnoh.mjs";import u from"./packem_shared/hotShard-BwGYZ3Tq.mjs";import h from"./packem_shared/indexUtilization-CmtN9-HA.mjs";import g from"./packem_shared/actionFetchSsrf-BK-kvOPO.mjs";import b from"./packem_shared/actionWithoutErrorHandling-4GCBT0_z.mjs";import y from"./packem_shared/adminRouteWithoutGuard-DPE7LuNh.mjs";import S from"./packem_shared/aiRawRunEscapeHatch-BW7a8kZC.mjs";import w from"./packem_shared/aiRunWithoutLogging-DT665z-w.mjs";import v from"./packem_shared/aiToolSideEffectPromptInjection-9eJXRlKt.mjs";import A from"./packem_shared/aiUnboundedGenerationPublic-C17h6sMV.mjs";import R from"./packem_shared/allowUnauthenticatedShardAccessEnabled-BQufF5Kb.mjs";import U from"./packem_shared/authApiCallWithoutHeaders-CReJRsGW.mjs";import T from"./packem_shared/authCsrfCheckDisabled-CRIVsvb9.mjs";import W from"./packem_shared/authEmailVerificationDisabled-BjFlnHr2.mjs";import I from"./packem_shared/authScimWithoutTransactions-B5ATiz5A.mjs";import x from"./packem_shared/authSecureCookiesDisabled-By8PVum3.mjs";import C from"./packem_shared/authSessionFreshageZero-DuxX3Ln9.mjs";import N from"./packem_shared/authTrustedOriginsWildcard-BKIh6788.mjs";import k from"./packem_shared/browserAllowPrivateTargets-Cj5sizhv.mjs";import F from"./packem_shared/browserUserUrlWithoutAllowlist-CzDEraJB.mjs";import M from"./packem_shared/circularFk-DtcWFJxK.mjs";import O from"./packem_shared/commitOrderedHardDelete-BPdwOKA7.mjs";import $ from"./packem_shared/containerInstanceKeyFromUserInput-Bl-tAzKV.mjs";import E from"./packem_shared/containerLongSleepAfter-CVvHEGYC.mjs";import D from"./packem_shared/containerOversizedInstance-Bx89uR7E.mjs";import P from"./packem_shared/containerPublicInternet-BFfZf_P4.mjs";import L from"./packem_shared/containerRuntimeEgressRelaxation-4tMrhq1k.mjs";import q from"./packem_shared/containerStartEnableInternetOverride-mN_kuRtk.mjs";import K from"./packem_shared/countWithoutIndex-DjQFNBrw.mjs";import _ from"./packem_shared/cronEveryMinute-CtpEAbxs.mjs";import G from"./packem_shared/crossModuleTableWrite-DjiVTAwK.mjs";import z from"./packem_shared/dispatchCycle-BwuXRDiL.mjs";import H from"./packem_shared/duplicateIndex-BJI90Cnj.mjs";import B from"./packem_shared/emptyIndex-BnHDcXza.mjs";import j from"./packem_shared/errorWithoutCatalog-BTfvaXHR.mjs";import V from"./packem_shared/exportSinkMisconfigured-JfbAx9AI.mjs";import Q from"./packem_shared/externalSourceIncrementalNoDeletePath-BCzm3HzF.mjs";import X from"./packem_shared/externalSourceOnGlobal-CH7xbJ49.mjs";import Z from"./packem_shared/externalSourceUnscoped-BxU2uSXk.mjs";import J from"./packem_shared/filterAfterIndexScan-CV8aPq7v.mjs";import Y from"./packem_shared/filterOnPrimaryKey-CAhFiqp_.mjs";import ee from"./packem_shared/filterWithoutIndex-BGv3jbgg.mjs";import oe from"./packem_shared/flagGatesSecurityWithUnsafeDefault-B5FBDF8c.mjs";import re from"./packem_shared/flagReadInSubscription-DabIhYGD.mjs";import te from"./packem_shared/geoIndexFieldNotGeopoint-BMQuok2-.mjs";import ie from"./packem_shared/geoIndexUnused-D7C9Qr4U.mjs";import ne from"./packem_shared/globalTableNearColumnLimit-BFbBBd6A.mjs";import ae from"./packem_shared/hardcodedSecret-Bw_4FYrs.mjs";import me from"./packem_shared/httpActionMissingAuthGuard-DhMIs1EI.mjs";import se from"./packem_shared/httpActionResponseHeaderInjection-mcRYd3Zw.mjs";import le from"./packem_shared/hyperdriveOutsideAction-CPDdGP2g.mjs";import pe from"./packem_shared/identityUndeclaredClaimTrusted-D1sEd5lr.mjs";import fe from"./packem_shared/imagesUrlSourceFromUserInput-BJXotuyO.mjs";import ce from"./packem_shared/indexReferencesUnknownField-DKz4-bla.mjs";import de from"./packem_shared/insertManyUnsafeUserData-DWE8d_DF.mjs";import ue from"./packem_shared/kvUnscopedUserKeyIdor-DhymglIq.mjs";import he from"./packem_shared/mailInboundDispatchWithoutVerify-CWwqXyPX.mjs";import ge from"./packem_shared/mailRecipientFromRequestInput-BVXsZ4Xf.mjs";import be from"./packem_shared/maskUncoveredPiiColumn-axEka4nd.mjs";import ye from"./packem_shared/maskWeakHashStrategyOnPii-DJasagzX.mjs";import Se from"./packem_shared/maskedRelationLeakViaWith-CIFij6vE.mjs";import{e as a}from"./packem_shared/finding-NrKO8idM.mjs";import we from"./packem_shared/mutatorFullRowReplace-NuqUCVOI.mjs";import ve from"./packem_shared/mutatorWithoutOwnerScope-BoS81ns0.mjs";import Ae from"./packem_shared/nondeterministicQueryMutation-DA_Lq_IE.mjs";import Re from"./packem_shared/normalizeIdUsedAsAuthorization-BXN-Can6.mjs";import Ue from"./packem_shared/notifyMissingPushConfig-BYks8FAs.mjs";import Te from"./packem_shared/notifySendOutsideAction-BJrDkr4h.mjs";import We from"./packem_shared/openShardAccess-CVMAgmmY.mjs";import Ie from"./packem_shared/outputProjectionMissingOnPublicRead-DWSeo7oC.mjs";import xe from"./packem_shared/ownerFieldFromArgsNotAuth-J8Xbz5uI.mjs";import Ce from"./packem_shared/paymentCreateWithoutAuthorize-CdenWpXD.mjs";import Ne from"./packem_shared/paymentWebhookWideTolerance-CqMcZOb2.mjs";import ke from"./packem_shared/plaintextSecretInWranglerVariables-bNkqmNqV.mjs";import Fe from"./packem_shared/policyReferencesUnknownTable-CIKuRZ5Y.mjs";import Me from"./packem_shared/privilegedDispatchUnvalidatedPayload-BM3NtT57.mjs";import Oe from"./packem_shared/privilegedFanoutFromPublicProcedure-DV188gHQ.mjs";import $e from"./packem_shared/procedureWithoutStructuredEvent-BcOE0mFx.mjs";import Ee from"./packem_shared/publicArgumentUsesAny-BDEvMA8Q.mjs";import De from"./packem_shared/publicMutationWithoutRatelimit-Bd-rRxnz.mjs";import Pe from"./packem_shared/publicTableRlsOptoutConfusion-CbNk75Xo.mjs";import Le from"./packem_shared/queueDispatchCycle-84yt1IR-.mjs";import qe from"./packem_shared/queueWithoutDlq-BvHz3Opg.mjs";import Ke from"./packem_shared/r2sqlOutsideAction-BdLiLOAX.mjs";import _e from"./packem_shared/ratelimitDefaultMemoryStore-Dj0Kk7t9.mjs";import Ge from"./packem_shared/ratelimitKeySpoofableOrGlobal-DHMl74hR.mjs";import ze from"./packem_shared/ratelimitMiddlewareFailOpen-Di2t8pDc.mjs";import He from"./packem_shared/relationReferencesUnknownField-Cl6mik8w.mjs";import Be from"./packem_shared/relationReferencesUnknownTable-vYjirSxf.mjs";import je from"./packem_shared/rlsUncoveredTable-CZ4ie4gX.mjs";import Ve from"./packem_shared/selfRescheduleWithoutProgress-CQNZI4FA.mjs";import Qe from"./packem_shared/shapeTargetsGlobalTable-Bu3eEDic.mjs";import Xe from"./packem_shared/shapeUnknownTable-CREfNnWi.mjs";import Ze from"./packem_shared/signupMutationWithoutDisposableGating-BdKwtxDP.mjs";import Je from"./packem_shared/softDeleteIncludeDeletedFromArgs-C7Ugg4zb.mjs";import Ye from"./packem_shared/sqlInjectionRisk-BBWvOBtw.mjs";import eo from"./packem_shared/storageGenerateUploadUrlNoContentTypePin-CrwFuo83.mjs";import oo from"./packem_shared/storageKeyFromUserArgs-3vkxmI3v.mjs";import ro from"./packem_shared/storagePresignedUrlForPrivateContent-C3KeV5tV.mjs";import to from"./packem_shared/storageUploadWithoutContentTypeAllowlist-BXoK_QWE.mjs";import io from"./packem_shared/storageUploadWithoutMaxSize-CW7uKvSi.mjs";import no from"./packem_shared/tableWithoutInsert-DrDVc5Do.mjs";import ao from"./packem_shared/throughRelationMissingUniqueIndex-Cg5e3GkS.mjs";import mo from"./packem_shared/topicTooManySubscriptions-CiZhFm9r.mjs";import so from"./packem_shared/ttlFieldNotTimestamp-lnb5nmM6.mjs";import{s as lo,q as po,c as fo}from"./packem_shared/helpers-DdZ_pyR3.mjs";import co from"./packem_shared/unboundedCollectOnOpenRange-DHy2RUL7.mjs";import uo from"./packem_shared/unboundedLoop-DxN3_apu.mjs";import ho from"./packem_shared/unboundedStringArgument-jZnCbwB0.mjs";import go from"./packem_shared/unindexedForeignKey-Dypgn8uH.mjs";import bo from"./packem_shared/unindexedRelationTarget-Dj2_NOCm.mjs";import yo from"./packem_shared/unrestrictedWhereBranch-CcIBmHik.mjs";import So from"./packem_shared/userCreatingMutationWithoutCaptcha-D4TZEpgz.mjs";import wo from"./packem_shared/vectorsNamespaceFromUserInput-CFa2qhFU.mjs";import vo from"./packem_shared/workflowDuplicateStepName-B6eAJzwA.mjs";import Ao from"./packem_shared/workflowUnknownTarget-DEKB5H0g.mjs";import Ro from"./packem_shared/workflowUnused-DHwwE-1P.mjs";import{callSiteCallers as Gt,callSiteDescription as zt,callSiteLabel as Ht,callSiteMetadata as Bt,helperRole as jt,isReachableSite as Vt,readCallSiteCallers as Qt}from"./packem_shared/callSiteCallers-DArHfQSU.mjs";import{compareToBaseline as Zt,parseAdvisorMap as Jt}from"./packem_shared/compareToBaseline-CUG59IOy.mjs";import{gradeFromScore as ei}from"./packem_shared/gradeFromScore-KSt58rj1.mjs";import{MAP_VERSION as ri,byCodepoint as ti,scoreAdvisor as ii}from"./packem_shared/MAP_VERSION-MQ5W2B6n.mjs";import{default as ai}from"./packem_shared/classifySensitivity-JnjaTGYi.mjs";import{fromServerSchema as si}from"./packem_shared/fromServerSchema-KWJd4PLE.mjs";const Uo={convex:"migrating/from-convex",firebase:"migrating/from-firebase",supabase:"migrating/from-supabase"},m={categories:["SCHEMA"],description:"A migrated-away platform's SDK is still imported from `lunora/` source. The code compiles and typechecks, so a half-finished port keeps reading from the old platform at runtime and the two stores silently drift apart.",facing:"INTERNAL",level:"WARN",name:"migration_stale_import",remediation:"Replace the call with its Lunora equivalent and drop the dependency. If the import is deliberate — a second data source you still read from — move it out of `lunora/` so it is not mistaken for an unfinished migration.",run:r=>r.staleMigrationImports===void 0?[]:r.staleMigrationImports.map(e=>a(m,{cacheKey:`migration_stale_import:${e.file}:${e.line.toString()}:${e.moduleSpecifier}`,detail:`\`${e.file}\` (line ${e.line.toString()}) still imports \`${e.moduleSpecifier}\`. Finish the port — see \`${Uo[e.platform]}\` — or move the import out of \`lunora/\` if you genuinely still read from ${e.platform}.`,metadata:{file:e.file,line:e.line,moduleSpecifier:e.moduleSpecifier,platform:e.platform}})),source:"static",title:"Stale migration import"},To=new Map([["global",{level:"WARN",scope:r=>`it reads the whole D1 table "${r}" over a cross-region round trip`}],["root",{level:"WARN",scope:r=>`it loads every row of "${r}" from the root Durable Object's SQLite into memory`}],["shardBy",{level:"INFO",scope:r=>`"${r}" is \`.shardBy()\`, so this collects one shard's rows rather than the whole table — bounded by a single tenant's row count`}]]),Wo={level:"WARN",scope:r=>`it loads every row of "${r}"`},s={categories:["PERFORMANCE"],description:"A query calls `.collect()` with no `.withIndex()` and no `.filter()`, so it materializes every row of the table. Any live subscription over it also re-sends that whole result to every subscribed client on every write to the table.",facing:"EXTERNAL",level:"WARN",name:"unbounded_collect",remediation:'Narrow the read with `.withIndex("name", (q) => q.eq(...))`, cap it with `.take(n)`, or page it with `.paginate(args.paginationOpts)` so neither the scan nor the subscription payload grows with the table.',run:r=>{const e=[],n=lo(r.schema);for(const o of r.queries??[]){if(o.terminal!=="collect"||o.hasIndex||o.table===""||o.hasFilter)continue;const t=n.get(o.table),{level:i,scope:l}=To.get(t??"")??Wo,p=po(o),f=i==="WARN"?` A live subscription over this query records a whole-table dependency, so every write to "${o.table}" re-runs it and re-sends the full result to each subscribed socket.`:" Cap it with `.take(n)` if that count can grow.";e.push(a(s,{cacheKey:`unbounded_collect:${o.file}:${o.line.toString()}:${o.table}`,detail:`Query on "${o.table}" at ${p} calls .collect() with no index and no filter — ${l(o.table)}.${f}`,level:i,metadata:{...fo(o),shardKind:t??"unknown",table:o.table}}))}return e},source:"static",title:"Unbounded collect"},Io=[ce,Be,He,Ao,vo,Xe,Q,X,Z,B,ne,j,te,ie,V,so,O,M,K,G,go,bo,ao,H,no,Ro,Le,qe,_,mo,Y,ee,J,s,co,uo,z,Ve,Qe,we,ve,Ae,le,Ke,U,Fe,je,be,ye,E,D,P,De,yo,So,Ze,Ee,ho,ae,Ye,y,Ce,he,_e,k,Oe,$e,de,A,g,b,xe,oo,ue,$,S,w,wo,ge,F,Me,q,L,I,N,T,x,W,C,fe,Ge,Pe,R,We,to,io,eo,ro,me,se,ze,oe,re,v,pe,Ne,Je,Se,Ie,Re,Te,Ue,ke,m],xo=[u,h,d],Co=[...Io,...xo],qt=(r,e={})=>{const n=e.lints??Co,o=[];for(const t of n)if(!(e.source!==void 0&&t.source!==e.source))try{o.push(...t.run(r))}catch(i){o.push({cacheKey:`advisor_lint_failed:${t.name}`,categories:t.categories,description:"An advisor lint threw while running, so its check did not run. This is a bug in the lint, not in your app.",detail:`The \`${t.name}\` lint threw: ${i instanceof Error?i.message:String(i)}. Its findings are missing from this run.`,facing:"INTERNAL",level:t.level,metadata:{lint:t.name},name:"advisor_lint_failed",remediation:"Report the error with the source shape that triggered it. Pass `--no-strict-advisories` to deploy past it in the meantime.",title:`Advisor lint \`${t.name}\` failed`})}return c(o)};export{Co as ALL_LINTS,ri as MAP_VERSION,xo as RUNTIME_LINTS,Io as STATIC_LINTS,g as actionFetchSsrf,b as actionWithoutErrorHandling,y as adminRouteWithoutGuard,S as aiRawRunEscapeHatch,w as aiRunWithoutLogging,v as aiToolSideEffectPromptInjection,A as aiUnboundedGenerationPublic,R as allowUnauthenticatedShardAccessEnabled,U as authApiCallWithoutHeaders,T as authCsrfCheckDisabled,W as authEmailVerificationDisabled,I as authScimWithoutTransactions,x as authSecureCookiesDisabled,C as authSessionFreshageZero,N as authTrustedOriginsWildcard,k as browserAllowPrivateTargets,F as browserUserUrlWithoutAllowlist,ti as byCodepoint,Gt as callSiteCallers,zt as callSiteDescription,Ht as callSiteLabel,Bt as callSiteMetadata,M as circularFk,ai as classifySensitivity,O as commitOrderedHardDelete,Zt as compareToBaseline,$ as containerInstanceKeyFromUserInput,E as containerLongSleepAfter,D as containerOversizedInstance,P as containerPublicInternet,L as containerRuntimeEgressRelaxation,q as containerStartEnableInternetOverride,K as countWithoutIndex,_ as cronEveryMinute,G as crossModuleTableWrite,c as dedupeCacheKeys,z as dispatchCycle,H as duplicateIndex,B as emptyIndex,j as errorWithoutCatalog,V as exportSinkMisconfigured,Q as externalSourceIncrementalNoDeletePath,X as externalSourceOnGlobal,Z as externalSourceUnscoped,d as fanOutBreadth,J as filterAfterIndexScan,Y as filterOnPrimaryKey,ee as filterWithoutIndex,oe as flagGatesSecurityWithUnsafeDefault,re as flagReadInSubscription,si as fromServerSchema,te as geoIndexFieldNotGeopoint,ie as geoIndexUnused,ne as globalTableNearColumnLimit,ei as gradeFromScore,ae as hardcodedSecret,jt as helperRole,u as hotShard,me as httpActionMissingAuthGuard,se as httpActionResponseHeaderInjection,le as hyperdriveOutsideAction,pe as identityUndeclaredClaimTrusted,fe as imagesUrlSourceFromUserInput,ce as indexReferencesUnknownField,h as indexUtilization,de as insertManyUnsafeUserData,Vt as isReachableSite,ue as kvUnscopedUserKeyIdor,he as mailInboundDispatchWithoutVerify,ge as mailRecipientFromRequestInput,be as maskUncoveredPiiColumn,ye as maskWeakHashStrategyOnPii,Se as maskedRelationLeakViaWith,we as mutatorFullRowReplace,ve as mutatorWithoutOwnerScope,Ae as nondeterministicQueryMutation,Re as normalizeIdUsedAsAuthorization,Ue as notifyMissingPushConfig,Te as notifySendOutsideAction,We as openShardAccess,Ie as outputProjectionMissingOnPublicRead,xe as ownerFieldFromArgsNotAuth,Jt as parseAdvisorMap,Ce as paymentCreateWithoutAuthorize,Ne as paymentWebhookWideTolerance,ke as plaintextSecretInWranglerVariables,Fe as policyReferencesUnknownTable,Me as privilegedDispatchUnvalidatedPayload,Oe as privilegedFanoutFromPublicProcedure,$e as procedureWithoutStructuredEvent,Ee as publicArgumentUsesAny,De as publicMutationWithoutRatelimit,Pe as publicTableRlsOptoutConfusion,Le as queueDispatchCycle,qe as queueWithoutDlq,Ke as r2sqlOutsideAction,_e as ratelimitDefaultMemoryStore,Ge as ratelimitKeySpoofableOrGlobal,ze as ratelimitMiddlewareFailOpen,Qt as readCallSiteCallers,He as relationReferencesUnknownField,Be as relationReferencesUnknownTable,je as rlsUncoveredTable,qt as runAdvisor,ii as scoreAdvisor,Ve as selfRescheduleWithoutProgress,Qe as shapeTargetsGlobalTable,Xe as shapeUnknownTable,Ze as signupMutationWithoutDisposableGating,Je as softDeleteIncludeDeletedFromArgs,Ye as sqlInjectionRisk,eo as storageGenerateUploadUrlNoContentTypePin,oo as storageKeyFromUserArgs,ro as storagePresignedUrlForPrivateContent,to as storageUploadWithoutContentTypeAllowlist,io as storageUploadWithoutMaxSize,no as tableWithoutInsert,ao as throughRelationMissingUniqueIndex,mo as topicTooManySubscriptions,so as ttlFieldNotTimestamp,co as unboundedCollectOnOpenRange,uo as unboundedLoop,ho as unboundedStringArgument,go as unindexedForeignKey,bo as unindexedRelationTarget,yo as unrestrictedWhereBranch,So as userCreatingMutationWithoutCaptcha,wo as vectorsNamespaceFromUserInput,vo as workflowDuplicateStepName,Ao as workflowUnknownTarget,Ro as workflowUnused};
|
|
1
|
+
import{dedupeCacheKeys as c}from"./packem_shared/dedupeCacheKeys-DtBOHffV.mjs";import d from"./packem_shared/fanOutBreadth-CBtmZnoh.mjs";import u from"./packem_shared/hotShard-BwGYZ3Tq.mjs";import h from"./packem_shared/indexUtilization-CmtN9-HA.mjs";import g from"./packem_shared/actionFetchSsrf-B7FqsLWm.mjs";import b from"./packem_shared/actionWithoutErrorHandling-DK3rB5c-.mjs";import y from"./packem_shared/adminRouteWithoutGuard-CcdlN75o.mjs";import S from"./packem_shared/aiRawRunEscapeHatch-CzIaQf_v.mjs";import w from"./packem_shared/aiRunWithoutLogging-Ct5MeKWe.mjs";import v from"./packem_shared/aiToolSideEffectPromptInjection-Ck_h8tFx.mjs";import A from"./packem_shared/aiUnboundedGenerationPublic-CzF3xBc3.mjs";import R from"./packem_shared/allowUnauthenticatedShardAccessEnabled-BQufF5Kb.mjs";import U from"./packem_shared/authApiCallWithoutHeaders-9PpziIB9.mjs";import T from"./packem_shared/authCsrfCheckDisabled-DYTzZFpp.mjs";import W from"./packem_shared/authEmailVerificationDisabled-OiNes7Dz.mjs";import I from"./packem_shared/authScimWithoutTransactions-CajXH24D.mjs";import x from"./packem_shared/authSecureCookiesDisabled-CA5zyqDZ.mjs";import C from"./packem_shared/authSessionFreshageZero-C3IYlYft.mjs";import N from"./packem_shared/authTrustedOriginsWildcard-661FRsGe.mjs";import k from"./packem_shared/browserAllowPrivateTargets-Cj5sizhv.mjs";import F from"./packem_shared/browserUserUrlWithoutAllowlist-Bi5ZWTF7.mjs";import M from"./packem_shared/circularFk-DtcWFJxK.mjs";import O from"./packem_shared/commitOrderedHardDelete-BPdwOKA7.mjs";import $ from"./packem_shared/containerInstanceKeyFromUserInput-DHQ2JL4x.mjs";import E from"./packem_shared/containerLongSleepAfter-DSGnfpfl.mjs";import D from"./packem_shared/containerOversizedInstance-INKmy3-D.mjs";import P from"./packem_shared/containerPublicInternet-Csh5_RwX.mjs";import L from"./packem_shared/containerRuntimeEgressRelaxation-J6rpfvr8.mjs";import q from"./packem_shared/containerStartEnableInternetOverride-Bxbmrpwe.mjs";import K from"./packem_shared/countWithoutIndex-CTbdpLyE.mjs";import _ from"./packem_shared/cronEveryMinute-BjdRdTEz.mjs";import G from"./packem_shared/crossModuleTableWrite-DjiVTAwK.mjs";import z from"./packem_shared/dispatchCycle-BwuXRDiL.mjs";import H from"./packem_shared/duplicateIndex-BJI90Cnj.mjs";import B from"./packem_shared/emptyIndex-BnHDcXza.mjs";import j from"./packem_shared/errorWithoutCatalog-Dib0sdSD.mjs";import V from"./packem_shared/exportSinkMisconfigured-JfbAx9AI.mjs";import Q from"./packem_shared/externalSourceIncrementalNoDeletePath-BCzm3HzF.mjs";import X from"./packem_shared/externalSourceOnGlobal-CH7xbJ49.mjs";import Z from"./packem_shared/externalSourceUnscoped-BxU2uSXk.mjs";import J from"./packem_shared/filterAfterIndexScan-BTHjxkNi.mjs";import Y from"./packem_shared/filterOnPrimaryKey-DeRYfLa7.mjs";import ee from"./packem_shared/filterWithoutIndex-8VrXwbq5.mjs";import oe from"./packem_shared/flagGatesSecurityWithUnsafeDefault-CJK9sKcH.mjs";import re from"./packem_shared/flagReadInSubscription-DabIhYGD.mjs";import te from"./packem_shared/geoIndexFieldNotGeopoint-Cx_9INob.mjs";import ie from"./packem_shared/geoIndexUnused-D7C9Qr4U.mjs";import ne from"./packem_shared/globalTableNearColumnLimit-BFbBBd6A.mjs";import ae from"./packem_shared/hardcodedSecret-Bw_4FYrs.mjs";import me from"./packem_shared/httpActionMissingAuthGuard-D58Vnjr0.mjs";import se from"./packem_shared/httpActionResponseHeaderInjection-Yn1pbKZ8.mjs";import le from"./packem_shared/hyperdriveOutsideAction-CPDdGP2g.mjs";import pe from"./packem_shared/identityUndeclaredClaimTrusted-Z-9ob8F2.mjs";import fe from"./packem_shared/imagesUrlSourceFromUserInput-a2CZ-Xnj.mjs";import ce from"./packem_shared/indexReferencesUnknownField-CV8STvk0.mjs";import de from"./packem_shared/insertManyUnsafeUserData-CSvy65sr.mjs";import ue from"./packem_shared/kvUnscopedUserKeyIdor-D0O2alyn.mjs";import he from"./packem_shared/mailInboundDispatchWithoutVerify-CWwqXyPX.mjs";import ge from"./packem_shared/mailRecipientFromRequestInput-BMrAJjNK.mjs";import be from"./packem_shared/maskUncoveredPiiColumn-axEka4nd.mjs";import ye from"./packem_shared/maskWeakHashStrategyOnPii-CwgAXFSx.mjs";import Se from"./packem_shared/maskedRelationLeakViaWith-CIFij6vE.mjs";import{e as a}from"./packem_shared/finding-NrKO8idM.mjs";import we from"./packem_shared/mutatorFullRowReplace-NuqUCVOI.mjs";import ve from"./packem_shared/mutatorWithoutOwnerScope-BoS81ns0.mjs";import Ae from"./packem_shared/nondeterministicQueryMutation-DA_Lq_IE.mjs";import Re from"./packem_shared/normalizeIdUsedAsAuthorization-BXN-Can6.mjs";import Ue from"./packem_shared/notifyMissingPushConfig-BYks8FAs.mjs";import Te from"./packem_shared/notifySendOutsideAction-BJrDkr4h.mjs";import We from"./packem_shared/openShardAccess-CVMAgmmY.mjs";import Ie from"./packem_shared/outputProjectionMissingOnPublicRead-BPS-eg2q.mjs";import xe from"./packem_shared/ownerFieldFromArgsNotAuth-BmKLZxrX.mjs";import Ce from"./packem_shared/paymentCreateWithoutAuthorize-CdenWpXD.mjs";import Ne from"./packem_shared/paymentWebhookWideTolerance-D9i3Vb1n.mjs";import ke from"./packem_shared/plaintextSecretInWranglerVariables-bNkqmNqV.mjs";import Fe from"./packem_shared/policyReferencesUnknownTable-DiQYFRFY.mjs";import Me from"./packem_shared/privilegedDispatchUnvalidatedPayload-BJL0JNzG.mjs";import Oe from"./packem_shared/privilegedFanoutFromPublicProcedure-Byw3Prsi.mjs";import $e from"./packem_shared/procedureWithoutStructuredEvent-na08a0M1.mjs";import Ee from"./packem_shared/publicArgumentUsesAny-BDEvMA8Q.mjs";import De from"./packem_shared/publicMutationWithoutRatelimit-DAxh8tL0.mjs";import Pe from"./packem_shared/publicTableRlsOptoutConfusion-W_jAkKFR.mjs";import Le from"./packem_shared/queueDispatchCycle-84yt1IR-.mjs";import qe from"./packem_shared/queueWithoutDlq-CF_xUgE_.mjs";import Ke from"./packem_shared/r2sqlOutsideAction-BdLiLOAX.mjs";import _e from"./packem_shared/ratelimitDefaultMemoryStore-Dj0Kk7t9.mjs";import Ge from"./packem_shared/ratelimitKeySpoofableOrGlobal-VSGOuu5X.mjs";import ze from"./packem_shared/ratelimitMiddlewareFailOpen-bweBVZ4J.mjs";import He from"./packem_shared/relationReferencesUnknownField-hVsgaUKy.mjs";import Be from"./packem_shared/relationReferencesUnknownTable-vYjirSxf.mjs";import je from"./packem_shared/rlsUncoveredTable-e2FhD6Nr.mjs";import Ve from"./packem_shared/selfRescheduleWithoutProgress-HoknmezK.mjs";import Qe from"./packem_shared/shapeTargetsGlobalTable-CYRV8OvU.mjs";import Xe from"./packem_shared/shapeUnknownTable-6virkUOz.mjs";import Ze from"./packem_shared/signupMutationWithoutDisposableGating-nopEfEEK.mjs";import Je from"./packem_shared/softDeleteIncludeDeletedFromArgs-C7Ugg4zb.mjs";import Ye from"./packem_shared/sqlInjectionRisk-CSKho3Vk.mjs";import eo from"./packem_shared/storageGenerateUploadUrlNoContentTypePin-BlOPGwhZ.mjs";import oo from"./packem_shared/storageKeyFromUserArgs-BuoTsz-h.mjs";import ro from"./packem_shared/storagePresignedUrlForPrivateContent-l-EwrAfj.mjs";import to from"./packem_shared/storageUploadWithoutContentTypeAllowlist-JmITAazT.mjs";import io from"./packem_shared/storageUploadWithoutMaxSize-DlhE1I98.mjs";import no from"./packem_shared/tableWithoutInsert-DrDVc5Do.mjs";import ao from"./packem_shared/throughRelationMissingUniqueIndex-Cg5e3GkS.mjs";import mo from"./packem_shared/topicTooManySubscriptions-CiZhFm9r.mjs";import so from"./packem_shared/ttlFieldNotTimestamp-C8zgHJjp.mjs";import{s as lo,q as po,c as fo}from"./packem_shared/helpers-YAAwOBMH.mjs";import co from"./packem_shared/unboundedCollectOnOpenRange-DDGNuKks.mjs";import uo from"./packem_shared/unboundedLoop-CUF9Wdxa.mjs";import ho from"./packem_shared/unboundedStringArgument-jZnCbwB0.mjs";import go from"./packem_shared/unindexedForeignKey-Dypgn8uH.mjs";import bo from"./packem_shared/unindexedRelationTarget-Dj2_NOCm.mjs";import yo from"./packem_shared/unrestrictedWhereBranch-CcIBmHik.mjs";import So from"./packem_shared/userCreatingMutationWithoutCaptcha-8mtYqiGy.mjs";import wo from"./packem_shared/vectorsNamespaceFromUserInput-537Bt2vT.mjs";import vo from"./packem_shared/workflowDuplicateStepName-B6eAJzwA.mjs";import Ao from"./packem_shared/workflowUnknownTarget-DdG3cUPH.mjs";import Ro from"./packem_shared/workflowUnused-CSKRWTd_.mjs";import{callSiteCallers as Gt,callSiteDescription as zt,callSiteLabel as Ht,callSiteMetadata as Bt,helperRole as jt,isReachableSite as Vt,readCallSiteCallers as Qt}from"./packem_shared/callSiteCallers-DArHfQSU.mjs";import{compareToBaseline as Zt,parseAdvisorMap as Jt}from"./packem_shared/compareToBaseline-CUG59IOy.mjs";import{gradeFromScore as ei}from"./packem_shared/gradeFromScore-KSt58rj1.mjs";import{MAP_VERSION as ri,byCodepoint as ti,scoreAdvisor as ii}from"./packem_shared/MAP_VERSION-MQ5W2B6n.mjs";import{default as ai}from"./packem_shared/classifySensitivity-JnjaTGYi.mjs";import{fromServerSchema as si}from"./packem_shared/fromServerSchema-KWJd4PLE.mjs";const Uo={convex:"migrating/from-convex",firebase:"migrating/from-firebase",supabase:"migrating/from-supabase"},m={categories:["SCHEMA"],description:"A migrated-away platform's SDK is still imported from `lunora/` source. The code compiles and typechecks, so a half-finished port keeps reading from the old platform at runtime and the two stores silently drift apart.",facing:"INTERNAL",level:"WARN",name:"migration_stale_import",remediation:"Replace the call with its Lunora equivalent and drop the dependency. If the import is deliberate — a second data source you still read from — move it out of `lunora/` so it is not mistaken for an unfinished migration.",run:r=>r.staleMigrationImports===void 0?[]:r.staleMigrationImports.map(e=>a(m,{cacheKey:`migration_stale_import:${e.file}:${e.line.toString()}:${e.moduleSpecifier}`,detail:`\`${e.file}\` (line ${e.line.toString()}) still imports \`${e.moduleSpecifier}\`. Finish the port — see \`${Uo[e.platform]}\` — or move the import out of \`lunora/\` if you genuinely still read from ${e.platform}.`,metadata:{file:e.file,line:e.line,moduleSpecifier:e.moduleSpecifier,platform:e.platform}})),source:"static",title:"Stale migration import"},To=new Map([["global",{level:"WARN",scope:r=>`it reads the whole D1 table "${r}" over a cross-region round trip`}],["root",{level:"WARN",scope:r=>`it loads every row of "${r}" from the root Durable Object's SQLite into memory`}],["shardBy",{level:"INFO",scope:r=>`"${r}" is \`.shardBy()\`, so this collects one shard's rows rather than the whole table — bounded by a single tenant's row count`}]]),Wo={level:"WARN",scope:r=>`it loads every row of "${r}"`},s={categories:["PERFORMANCE"],description:"A query calls `.collect()` with no `.withIndex()` and no `.filter()`, so it materializes every row of the table. Any live subscription over it also re-sends that whole result to every subscribed client on every write to the table.",facing:"EXTERNAL",level:"WARN",name:"unbounded_collect",remediation:'Narrow the read with `.withIndex("name", (q) => q.eq(...))`, cap it with `.take(n)`, or page it with `.paginate(args.paginationOpts)` so neither the scan nor the subscription payload grows with the table.',run:r=>{const e=[],n=lo(r.schema);for(const o of r.queries??[]){if(o.terminal!=="collect"||o.hasIndex||o.table===""||o.hasFilter)continue;const t=n.get(o.table),{level:i,scope:l}=To.get(t??"")??Wo,p=po(o),f=i==="WARN"?` A live subscription over this query records a whole-table dependency, so every write to "${o.table}" re-runs it and re-sends the full result to each subscribed socket.`:" Cap it with `.take(n)` if that count can grow.";e.push(a(s,{cacheKey:`unbounded_collect:${o.file}:${o.line.toString()}:${o.table}`,detail:`Query on "${o.table}" at ${p} calls .collect() with no index and no filter — ${l(o.table)}.${f}`,level:i,metadata:{...fo(o),shardKind:t??"unknown",table:o.table}}))}return e},source:"static",title:"Unbounded collect"},Io=[ce,Be,He,Ao,vo,Xe,Q,X,Z,B,ne,j,te,ie,V,so,O,M,K,G,go,bo,ao,H,no,Ro,Le,qe,_,mo,Y,ee,J,s,co,uo,z,Ve,Qe,we,ve,Ae,le,Ke,U,Fe,je,be,ye,E,D,P,De,yo,So,Ze,Ee,ho,ae,Ye,y,Ce,he,_e,k,Oe,$e,de,A,g,b,xe,oo,ue,$,S,w,wo,ge,F,Me,q,L,I,N,T,x,W,C,fe,Ge,Pe,R,We,to,io,eo,ro,me,se,ze,oe,re,v,pe,Ne,Je,Se,Ie,Re,Te,Ue,ke,m],xo=[u,h,d],Co=[...Io,...xo],qt=(r,e={})=>{const n=e.lints??Co,o=[];for(const t of n)if(!(e.source!==void 0&&t.source!==e.source))try{o.push(...t.run(r))}catch(i){o.push({cacheKey:`advisor_lint_failed:${t.name}`,categories:t.categories,description:"An advisor lint threw while running, so its check did not run. This is a bug in the lint, not in your app.",detail:`The \`${t.name}\` lint threw: ${i instanceof Error?i.message:String(i)}. Its findings are missing from this run.`,facing:"INTERNAL",level:t.level,metadata:{lint:t.name},name:"advisor_lint_failed",remediation:"Report the error with the source shape that triggered it. Pass `--no-strict-advisories` to deploy past it in the meantime.",title:`Advisor lint \`${t.name}\` failed`})}return c(o)};export{Co as ALL_LINTS,ri as MAP_VERSION,xo as RUNTIME_LINTS,Io as STATIC_LINTS,g as actionFetchSsrf,b as actionWithoutErrorHandling,y as adminRouteWithoutGuard,S as aiRawRunEscapeHatch,w as aiRunWithoutLogging,v as aiToolSideEffectPromptInjection,A as aiUnboundedGenerationPublic,R as allowUnauthenticatedShardAccessEnabled,U as authApiCallWithoutHeaders,T as authCsrfCheckDisabled,W as authEmailVerificationDisabled,I as authScimWithoutTransactions,x as authSecureCookiesDisabled,C as authSessionFreshageZero,N as authTrustedOriginsWildcard,k as browserAllowPrivateTargets,F as browserUserUrlWithoutAllowlist,ti as byCodepoint,Gt as callSiteCallers,zt as callSiteDescription,Ht as callSiteLabel,Bt as callSiteMetadata,M as circularFk,ai as classifySensitivity,O as commitOrderedHardDelete,Zt as compareToBaseline,$ as containerInstanceKeyFromUserInput,E as containerLongSleepAfter,D as containerOversizedInstance,P as containerPublicInternet,L as containerRuntimeEgressRelaxation,q as containerStartEnableInternetOverride,K as countWithoutIndex,_ as cronEveryMinute,G as crossModuleTableWrite,c as dedupeCacheKeys,z as dispatchCycle,H as duplicateIndex,B as emptyIndex,j as errorWithoutCatalog,V as exportSinkMisconfigured,Q as externalSourceIncrementalNoDeletePath,X as externalSourceOnGlobal,Z as externalSourceUnscoped,d as fanOutBreadth,J as filterAfterIndexScan,Y as filterOnPrimaryKey,ee as filterWithoutIndex,oe as flagGatesSecurityWithUnsafeDefault,re as flagReadInSubscription,si as fromServerSchema,te as geoIndexFieldNotGeopoint,ie as geoIndexUnused,ne as globalTableNearColumnLimit,ei as gradeFromScore,ae as hardcodedSecret,jt as helperRole,u as hotShard,me as httpActionMissingAuthGuard,se as httpActionResponseHeaderInjection,le as hyperdriveOutsideAction,pe as identityUndeclaredClaimTrusted,fe as imagesUrlSourceFromUserInput,ce as indexReferencesUnknownField,h as indexUtilization,de as insertManyUnsafeUserData,Vt as isReachableSite,ue as kvUnscopedUserKeyIdor,he as mailInboundDispatchWithoutVerify,ge as mailRecipientFromRequestInput,be as maskUncoveredPiiColumn,ye as maskWeakHashStrategyOnPii,Se as maskedRelationLeakViaWith,we as mutatorFullRowReplace,ve as mutatorWithoutOwnerScope,Ae as nondeterministicQueryMutation,Re as normalizeIdUsedAsAuthorization,Ue as notifyMissingPushConfig,Te as notifySendOutsideAction,We as openShardAccess,Ie as outputProjectionMissingOnPublicRead,xe as ownerFieldFromArgsNotAuth,Jt as parseAdvisorMap,Ce as paymentCreateWithoutAuthorize,Ne as paymentWebhookWideTolerance,ke as plaintextSecretInWranglerVariables,Fe as policyReferencesUnknownTable,Me as privilegedDispatchUnvalidatedPayload,Oe as privilegedFanoutFromPublicProcedure,$e as procedureWithoutStructuredEvent,Ee as publicArgumentUsesAny,De as publicMutationWithoutRatelimit,Pe as publicTableRlsOptoutConfusion,Le as queueDispatchCycle,qe as queueWithoutDlq,Ke as r2sqlOutsideAction,_e as ratelimitDefaultMemoryStore,Ge as ratelimitKeySpoofableOrGlobal,ze as ratelimitMiddlewareFailOpen,Qt as readCallSiteCallers,He as relationReferencesUnknownField,Be as relationReferencesUnknownTable,je as rlsUncoveredTable,qt as runAdvisor,ii as scoreAdvisor,Ve as selfRescheduleWithoutProgress,Qe as shapeTargetsGlobalTable,Xe as shapeUnknownTable,Ze as signupMutationWithoutDisposableGating,Je as softDeleteIncludeDeletedFromArgs,Ye as sqlInjectionRisk,eo as storageGenerateUploadUrlNoContentTypePin,oo as storageKeyFromUserArgs,ro as storagePresignedUrlForPrivateContent,to as storageUploadWithoutContentTypeAllowlist,io as storageUploadWithoutMaxSize,no as tableWithoutInsert,ao as throughRelationMissingUniqueIndex,mo as topicTooManySubscriptions,so as ttlFieldNotTimestamp,co as unboundedCollectOnOpenRange,uo as unboundedLoop,ho as unboundedStringArgument,go as unindexedForeignKey,bo as unindexedRelationTarget,yo as unrestrictedWhereBranch,So as userCreatingMutationWithoutCaptcha,wo as vectorsNamespaceFromUserInput,vo as workflowDuplicateStepName,Ao as workflowUnknownTarget,Ro as workflowUnused};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as a}from"./finding-NrKO8idM.mjs";import{c as r,a as s}from"./helpers-
|
|
1
|
+
import{e as a}from"./finding-NrKO8idM.mjs";import{c as r,a as s}from"./helpers-YAAwOBMH.mjs";const i={categories:["SECURITY"],description:"An action's `ctx.fetch(url)` fetches a URL derived from the handler's `args`. `ctx.fetch` applies no host allowlist, so request-controlled URLs let a caller reach cloud metadata endpoints or internal services — server-side request forgery.",facing:"EXTERNAL",level:"ERROR",name:"action_fetch_ssrf",remediation:"Validate the URL against an allowlist of expected hosts before fetching, and reject private, loopback, and link-local addresses (notably `169.254.169.254`). Never pass request input straight to `ctx.fetch`.",run:t=>t.argumentDerivedFetches===void 0?[]:t.argumentDerivedFetches.map(e=>a(i,{cacheKey:`action_fetch_ssrf:${e.file}:${e.line.toString()}`,detail:`\`ctx.fetch\` in ${s(e)} fetches a URL derived from \`args\` — a server-side request forgery vector. Validate the URL against a host allowlist and reject private/link-local targets before fetching.`,metadata:{...r(e)}})),source:"static",title:"Possible SSRF from arg-derived ctx.fetch URL"};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"./finding-NrKO8idM.mjs";import{d as n}from"./helpers-YAAwOBMH.mjs";const i={categories:["SCHEMA"],description:"An `action` calls an outbound surface (fetch, mail, queues, storage, sql, ai) with no `try`/`catch`. Those fail routinely, and an uncaught rejection reaches the caller with no indication of which dependency broke.",facing:"EXTERNAL",level:"WARN",name:"action_without_error_handling",remediation:"Wrap the outbound call in `try`/`catch`, then either degrade or rethrow a coded `LunoraError` naming the dependency that failed.",run:t=>t.procedureProtections===void 0?[]:t.procedureProtections.filter(e=>e.kind==="action"&&e.reachesOutbound===!0&&e.handlesErrors===!1).map(e=>a(i,{cacheKey:`action_without_error_handling:${e.file}:${e.exportName}`,detail:`Action \`${e.exportName}\` (${e.file}) calls an outbound surface with no \`try\`/\`catch\`. A dependency failure will surface to the caller unexplained.`,metadata:{exportName:e.exportName,...n(e),kind:e.kind}})),source:"static",title:"Action performs outbound I/O with no error handling"};export{i as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";import{d as i}from"./helpers-YAAwOBMH.mjs";const r={categories:["SECURITY"],description:"An `httpRoute` on an admin/privileged path has no visible auth/admin guard. REST routes aren't covered by RLS, so an unguarded `/admin/*` route is callable by anyone who reaches the URL.",facing:"EXTERNAL",level:"WARN",name:"admin_route_without_guard",remediation:"Assert an authenticated, authorized caller at the top of the handler — check `ctx.auth` / `getSession(...)`, or a `requireAdmin`-style guard — and reject (401/403) before doing privileged work. For machine callers, verify a secret with a timing-safe compare.",run:a=>a.adminRoutes===void 0?[]:a.adminRoutes.filter(e=>!e.usesGuard).map(e=>t(r,{cacheKey:`admin_route_without_guard:${e.file}:${e.method}:${e.path}`,detail:`Route \`${e.method} ${e.path}\` (\`${e.exportName}\` in ${e.file}) is on an admin/privileged path but its handler shows no auth/admin guard. Assert an authorized caller before doing privileged work.`,metadata:{exportName:e.exportName,...i(e),method:e.method,path:e.path}})),source:"static",title:"Admin route without an auth guard"};export{r as default};
|
package/dist/packem_shared/{aiRawRunEscapeHatch-BW7a8kZC.mjs → aiRawRunEscapeHatch-CzIaQf_v.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./finding-NrKO8idM.mjs";import{c as t,a as i}from"./helpers-
|
|
1
|
+
import{e as r}from"./finding-NrKO8idM.mjs";import{c as t,a as i}from"./helpers-YAAwOBMH.mjs";const s={categories:["SECURITY"],description:"A `ctx.ai.run(model, …)` call selects its model from the handler's `args` with no server-side scoping. `ctx.ai.run` is the raw Workers AI binding passthrough, so an arg-derived model id lets any caller pick an arbitrary model — bypassing the typed `ctx.ai.model(...)` + AI-SDK layer's cap/schema.",facing:"EXTERNAL",level:"WARN",name:"ai_raw_run_escape_hatch",remediation:"Select the model from a fixed server-side allowlist — never from `args`. Prefer the typed `ctx.ai.model(...)` + `generateText`/`streamText` path with an output cap over the raw `ctx.ai.run` escape hatch.",run:a=>a.aiRawRuns===void 0?[]:a.aiRawRuns.map(e=>r(s,{cacheKey:`ai_raw_run_escape_hatch:${e.file}:${e.line.toString()}`,detail:`\`ctx.ai.run\` in ${i(e)} selects its model from \`args\` with no server-side scoping — any caller can pick an arbitrary model, bypassing the typed AI-SDK layer's cap/schema. Select the model from a fixed server-side allowlist instead.`,metadata:{...t(e)}})),source:"static",title:"Possible arbitrary model selection from arg-derived ctx.ai.run"};export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as n}from"./finding-NrKO8idM.mjs";import{d as i}from"./helpers-YAAwOBMH.mjs";const a={categories:["PERFORMANCE"],description:"A procedure runs an AI generation but emits no structured event. Model calls bill per invocation and are not reproducible, so without one there is no way to attribute spend or trace a bad answer back to its prompt.",facing:"INTERNAL",level:"INFO",name:"ai_run_without_logging",remediation:'Emit an event around the generation — `ctx.trace("<name>", …)`, or a `ctx.log` line carrying the model and token usage.',run:e=>e.procedureProtections===void 0?[]:e.procedureProtections.filter(t=>t.runsAiGeneration===!0&&t.emitsEvent===!1).map(t=>n(a,{cacheKey:`ai_run_without_logging:${t.file}:${t.exportName}`,detail:`${t.kind} \`${t.exportName}\` (${t.file}) runs an AI generation with no structured event, so its cost and output cannot be attributed later.`,metadata:{exportName:t.exportName,...i(t),kind:t.kind}})),source:"static",title:"AI generation with no structured event"};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o}from"./finding-NrKO8idM.mjs";import{a as n,c as a}from"./helpers-
|
|
1
|
+
import{e as o}from"./finding-NrKO8idM.mjs";import{a as n,c as a}from"./helpers-YAAwOBMH.mjs";const r={categories:["SECURITY"],description:"A `generateText` / `streamText` call whose prompt/messages carry user-supplied text and whose model-callable `tools` perform a privileged side effect (DB write, `ctx.run` dispatch, or outbound send). An injected instruction in the user text can steer the model into firing that action — the confused-deputy prompt-injection hazard.",facing:"EXTERNAL",level:"WARN",name:"ai_tool_side_effect_prompt_injection",remediation:"Don't let a model with user-derived input directly trigger a privileged action. Have the tool return a proposal the server validates and authorizes before executing, gate the side effect behind an explicit human/step confirmation, or keep side-effecting tools out of any generation whose prompt includes untrusted input.",run:t=>t.aiToolSideEffects===void 0?[]:t.aiToolSideEffects.filter(e=>e.userInputDerived).map(e=>{const i=n(e);return o(r,{cacheKey:`ai_tool_side_effect_prompt_injection:${e.file}:${e.line.toString()}`,detail:`\`${e.method}\` in ${i} feeds user-derived input to a model whose tools reach \`${e.sideEffect}\`. An injected instruction can steer the model into firing that side effect.`,metadata:{...a(e),method:e.method,sideEffect:e.sideEffect}})}),source:"static",title:"AI tool side effect reachable via prompt injection"};export{r as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as n}from"./finding-NrKO8idM.mjs";import{m as i}from"./procedure-protections-DRQotu9I.mjs";import{d as a}from"./helpers-YAAwOBMH.mjs";const o={categories:["SECURITY"],description:"A public procedure runs an AI generation (`generateText`/`streamText`/`generateObject`/`streamObject`) with no `maxOutputTokens` bound. Generation bills per output token, so an anonymous caller can request arbitrarily long completions in a loop — a denial-of-wallet vector that also ties up worker time on long streams.",facing:"EXTERNAL",level:"WARN",name:"ai_unbounded_generation_public",remediation:"Cap the completion with `maxOutputTokens` in the generation config, and rate-limit the public entry point (`.use(rateLimit(...))`). For expensive models, prefer running generation from an internal, authenticated path rather than exposing it directly to anonymous callers.",run:t=>t.procedureProtections===void 0?[]:t.procedureProtections.filter(e=>i(e.unboundedAiGeneration)&&e.visibility==="public").map(e=>n(o,{cacheKey:`ai_unbounded_generation_public:${e.file}:${e.exportName}`,detail:`\`${e.exportName}\` (${e.file}) is public and runs an AI generation with no \`maxOutputTokens\` bound — an anonymous caller can drive unbounded, billable completions in a loop. Add a \`maxOutputTokens\` cap and rate-limit the entry point.`,metadata:{exportName:e.exportName,...a(e),kind:e.kind}})),source:"static",title:"Public procedure runs unbounded AI generation (no maxOutputTokens)"};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dedupeCacheKeys as i}from"./dedupeCacheKeys-DtBOHffV.mjs";import{e as a}from"./finding-NrKO8idM.mjs";import{c as s,a as r}from"./helpers-
|
|
1
|
+
import{dedupeCacheKeys as i}from"./dedupeCacheKeys-DtBOHffV.mjs";import{e as a}from"./finding-NrKO8idM.mjs";import{c as s,a as r}from"./helpers-YAAwOBMH.mjs";const h={categories:["SECURITY"],description:"A `ctx.authApi.<method>(...)` call omits `headers` — better-auth skips session authorization and runs the call with full server-to-server privileges, regardless of the caller's identity.",facing:"EXTERNAL",level:"WARN",name:"auth_api_call_without_headers",remediation:"Pass the inbound `headers` from the incoming request into every `ctx.authApi.*` call: `ctx.authApi.<method>({ body, headers: request.headers })`. See the `withAuthPlugins` middleware doc for details.",run:t=>t.authApiCalls===void 0?[]:i(t.authApiCalls.filter(e=>!e.hasHeaders).map(e=>a(h,{cacheKey:`auth_api_call_without_headers:${e.file}:${e.line.toString()}:${e.method}`,detail:`\`ctx.authApi.${e.method||"<method>"}(…)\` in ${r(e)} is called without \`headers\` — better-auth skips session authorization, so this runs with full privileges. Pass the inbound \`headers\`.`,metadata:{...s(e),method:e.method}}))),source:"static",title:"Privileged ctx.authApi call missing headers"};export{h as default};
|
package/dist/packem_shared/{authCsrfCheckDisabled-CRIVsvb9.mjs → authCsrfCheckDisabled-DYTzZFpp.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t}from"./finding-NrKO8idM.mjs";import{c as i,a as r}from"./helpers-
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";import{c as i,a as r}from"./helpers-YAAwOBMH.mjs";const s={categories:["SECURITY"],description:"A `createAuth({...})` call sets `advanced.disableCSRFCheck: true`, turning off better-auth's origin validation for state-changing auth requests — a cross-site request riding the ambient auth cookie is processed like a same-origin one.",facing:"EXTERNAL",level:"ERROR",name:"auth_csrf_check_disabled",remediation:"Remove `advanced.disableCSRFCheck: true` from `createAuth({...})` and rely on `trustedOrigins` for origin validation instead of disabling the check.",run:a=>a.authConfigs===void 0?[]:a.authConfigs.filter(e=>e.analyzable&&e.disableCsrfCheck).map(e=>t(s,{cacheKey:`auth_csrf_check_disabled:${e.file}:${e.line.toString()}`,detail:`\`createAuth\` in ${r(e)} sets \`advanced.disableCSRFCheck: true\`, turning off origin validation for state-changing auth requests. Remove the flag and rely on \`trustedOrigins\` instead.`,metadata:{...i(e)}})),source:"static",title:"createAuth CSRF check disabled"};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as i}from"./finding-NrKO8idM.mjs";import{c as t,a as r}from"./helpers-
|
|
1
|
+
import{e as i}from"./finding-NrKO8idM.mjs";import{c as t,a as r}from"./helpers-YAAwOBMH.mjs";const l={categories:["SECURITY"],description:"A `createAuth({...})` call enables `emailAndPassword` with no `requireEmailVerification: true`. better-auth defaults email verification off, so an account is usable before the caller has proven ownership of the email address.",facing:"EXTERNAL",level:"WARN",name:"auth_email_verification_disabled",remediation:"Set `emailAndPassword.requireEmailVerification: true` on `createAuth({...})` so a new account can't act until its email address is verified.",run:a=>a.authConfigs===void 0?[]:a.authConfigs.filter(e=>e.analyzable&&e.emailPasswordEnabled&&!e.requireEmailVerification).map(e=>i(l,{cacheKey:`auth_email_verification_disabled:${e.file}:${e.line.toString()}`,detail:`\`createAuth\` in ${r(e)} enables \`emailAndPassword\` with no \`requireEmailVerification: true\`, so an account is usable before its email is proven. Set \`emailAndPassword.requireEmailVerification: true\`.`,metadata:{...t(e)}})),source:"static",title:"createAuth email verification disabled"};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e}from"./finding-NrKO8idM.mjs";import{c as r,a as s}from"./helpers-
|
|
1
|
+
import{e}from"./finding-NrKO8idM.mjs";import{c as r,a as s}from"./helpers-YAAwOBMH.mjs";const i={categories:["SECURITY"],description:"A `createAuth({...})` call loads `scim()` with a `database` that has no native transactions (`lunoraD1Adapter` / `lunoraAuthAdapter`). `@better-auth/scim` refuses to serve on such an adapter, so every SCIM request fails.",facing:"EXTERNAL",level:"ERROR",name:"auth_scim_without_transactions",remediation:"Move the auth tables somewhere with real transactions: `.auth({ namespace })` with a `LunoraAuthDO` (Durable Object storage), or a Postgres/MySQL kysely dialect over `@lunora/hyperdrive` with `transaction: true`. D1 cannot host SCIM.",run:t=>t.authConfigs===void 0?[]:t.authConfigs.filter(a=>a.analyzable&&a.scimOnNonTransactionalAdapter).map(a=>e(i,{cacheKey:`auth_scim_without_transactions:${a.file}:${a.line.toString()}`,detail:`\`createAuth\` in ${s(a)} loads \`scim()\` on an adapter without native transactions, so the SCIM plugin will refuse to serve and every provisioning request from your IdP fails. Host the auth tables in a Durable Object (\`.auth({ namespace })\`) or on Postgres/MySQL via \`@lunora/hyperdrive\`.`,metadata:{...r(a)}})),source:"static",title:"SCIM configured on an adapter without transactions"};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s}from"./finding-NrKO8idM.mjs";import{c as a,a as o}from"./helpers-
|
|
1
|
+
import{e as s}from"./finding-NrKO8idM.mjs";import{c as a,a as o}from"./helpers-YAAwOBMH.mjs";const i={categories:["SECURITY"],description:"A `createAuth({...})` call sets `advanced.useSecureCookies: false`, overriding Lunora's secure-by-default posture — the session cookie ships without `Secure` even on an HTTPS deployment, so it can be sent over a plaintext connection.",facing:"EXTERNAL",level:"ERROR",name:"auth_secure_cookies_disabled",remediation:"Remove `advanced.useSecureCookies: false` from `createAuth({...})` — let Lunora's secure-by-default posture set the `Secure` cookie attribute for an HTTPS deployment.",run:t=>t.authConfigs===void 0?[]:t.authConfigs.filter(e=>e.analyzable&&e.secureCookiesDisabled).map(e=>s(i,{cacheKey:`auth_secure_cookies_disabled:${e.file}:${e.line.toString()}`,detail:`\`createAuth\` in ${o(e)} sets \`advanced.useSecureCookies: false\`, so the session cookie ships without \`Secure\` even on an HTTPS deployment. Remove the override and let Lunora's secure-by-default posture apply.`,metadata:{...a(e)}})),source:"static",title:"createAuth secure cookies disabled"};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t}from"./finding-NrKO8idM.mjs";import{c as r,a}from"./helpers-
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";import{c as r,a}from"./helpers-YAAwOBMH.mjs";const i={categories:["SECURITY"],description:"A `createAuth({...})` call sets `session.freshAge: 0`, disabling better-auth's recent-reauth check for sensitive operations — a long-lived stolen session can perform them without proving the caller still controls the credentials.",facing:"EXTERNAL",level:"WARN",name:"auth_session_freshage_zero",remediation:"Remove `session.freshAge: 0` from `createAuth({...})` (or set it to a real window) so sensitive operations require a recently re-authenticated session.",run:s=>s.authConfigs===void 0?[]:s.authConfigs.filter(e=>e.analyzable&&e.sessionFreshAgeZero).map(e=>t(i,{cacheKey:`auth_session_freshage_zero:${e.file}:${e.line.toString()}`,detail:`\`createAuth\` in ${a(e)} sets \`session.freshAge: 0\`, disabling the recent-reauth check for sensitive operations. Remove the override or set a real window.`,metadata:{...r(e)}})),source:"static",title:"createAuth session freshAge zero"};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t}from"./finding-NrKO8idM.mjs";import{c as r,a}from"./helpers-
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";import{c as r,a}from"./helpers-YAAwOBMH.mjs";const s={categories:["SECURITY"],description:"A `createAuth({...})` call's `trustedOrigins` array contains a `\"*\"` entry, disabling better-auth's CSRF/origin validation entirely — any origin is accepted for state-changing auth requests.",facing:"EXTERNAL",level:"ERROR",name:"auth_trusted_origins_wildcard",remediation:'List the specific origins your deployment serves in `trustedOrigins` instead of `"*"` — a wildcard disables origin validation for every caller.',run:e=>e.authConfigs===void 0?[]:e.authConfigs.filter(i=>i.analyzable&&i.trustedOriginsWildcard).map(i=>t(s,{cacheKey:`auth_trusted_origins_wildcard:${i.file}:${i.line.toString()}`,detail:`\`createAuth\` in ${a(i)} sets \`trustedOrigins\` to include \`"*"\`, disabling CSRF/origin validation for every request. List the specific origins your deployment serves instead.`,metadata:{...r(i)}})),source:"static",title:"createAuth trustedOrigins wildcard"};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as t}from"./argument-derived-sink-DLXFC79t.mjs";import{c as s,a as o}from"./helpers-
|
|
1
|
+
import{m as t}from"./argument-derived-sink-DLXFC79t.mjs";import{c as s,a as o}from"./helpers-YAAwOBMH.mjs";const n=t({cacheKey:e=>`browser_user_url_without_allowlist:${e.file}:${e.line.toString()}`,categories:["SECURITY"],description:"A `ctx.browser.<method>(url, …)` call navigates to a URL derived from the handler's `args` with no server-side scoping, and no `createBrowser` allowlist contains it. The default guard blocks private targets but not arbitrary public URLs, so any caller can make the headless browser an open-proxy / SSRF tool (fetch arbitrary third-party URLs, DNS-rebind to internal hosts).",detail:e=>`\`ctx.browser.${e.method}\` in ${o(e)} navigates to a URL derived from \`args\` with no server-side scoping, and no \`createBrowser\` allowlist contains it — the default guard blocks private targets but not arbitrary public URLs, so any caller can turn the headless browser into an open-proxy / SSRF tool. Pin \`allowedHosts\` on \`createBrowser({...})\` (Browser Run enforces it on the session), and derive the URL from server-trusted state where possible.`,facing:"EXTERNAL",getAccesses:e=>e.browserUrlAccesses,level:"WARN",metadata:e=>({...s(e),method:e.method}),name:"browser_user_url_without_allowlist",remediation:"Pin the browser with an `allowedHosts` allowlist on `createBrowser({...})` — Browser Run enforces it on the session, which makes it the supported production posture — and derive the navigation URL from server-trusted state where possible rather than passing `args` straight to `ctx.browser`.",suppressWhen:e=>(e.configCalls??[]).some(r=>r.callee==="createBrowser"&&r.analyzable&&r.presentKeys.includes("allowedHosts")),title:"Browser navigates to arg-derived URL with no allowlist"});export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as t}from"./argument-derived-sink-DLXFC79t.mjs";import{c as n,a as r}from"./helpers-
|
|
1
|
+
import{m as t}from"./argument-derived-sink-DLXFC79t.mjs";import{c as n,a as r}from"./helpers-YAAwOBMH.mjs";const s=t({cacheKey:e=>`container_instance_key_from_user_input:${e.file}:${e.line.toString()}`,categories:["SECURITY"],description:"A `ctx.containers.<name>.get` call routes to a container instance using a key derived from the handler's `args` with no server-side scoping. Any caller can supply another tenant's key and reach that tenant's container instance — a cross-tenant insecure direct object reference (IDOR).",detail:e=>`\`ctx.containers.*.${e.method}\` in ${r(e)} routes to a container instance using a key derived from \`args\` with no server-side scoping — any caller can reach another tenant's container (IDOR). Derive the key from a server-trusted identity (e.g. \`\${ctx.auth.userId}\`).`,facing:"EXTERNAL",getAccesses:e=>e.containerKeyAccesses,level:"WARN",metadata:e=>({...n(e),method:e.method}),name:"container_instance_key_from_user_input",remediation:"Derive the container instance key from a server-trusted identity (e.g. `${ctx.auth.userId}`) or a record the caller owns — never pass request input straight to `ctx.containers.<name>.get`.",title:"Possible cross-tenant IDOR from arg-derived unscoped container key"});export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as c}from"./finding-NrKO8idM.mjs";import{d as l}from"./helpers-YAAwOBMH.mjs";const f=3600,p={h:3600,m:60,s:1},m=/^(\d+)([smh])$/u,d=n=>{if(typeof n=="number")return n;const o=m.exec(n);if(o===null)return;const[,e="0",t="s"]=o;return Number(e)*(p[t]??1)},u={categories:["PERFORMANCE"],description:"A container's idle window (its `sleepAfter`, capped by any `hardTimeout`) is longer than an hour, so every idle instance keeps running, and billed, for that whole window.",facing:"INTERNAL",level:"WARN",name:"container_long_sleep_after",remediation:"Lower `sleepAfter` to the idle window the workload needs (the default is 10m), or add a `hardTimeout` that caps how long an instance may live.",run:n=>{const o=[];for(const e of n.containers??[]){const{hardTimeout:t,sleepAfter:i}=e;if(i===void 0)continue;const r=d(i);if(r===void 0)continue;const a=t===void 0?void 0:d(t),s=a===void 0?r:Math.min(r,a);s<=f||o.push(c(u,{cacheKey:`container_long_sleep_after:${e.exportName}`,detail:`Container "${e.exportName}" can sit idle for ${s.toString()} s before it sleeps (sleepAfter ${String(i)}${a===void 0?"":`, capped by hardTimeout ${String(t)}`}); every idle instance is billed for that whole window.`,metadata:{...l(e),container:e.exportName,effectiveIdleSeconds:s,hardTimeout:t,sleepAfter:i}}))}return o},source:"static",title:"Long container idle window"};export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as a}from"./finding-NrKO8idM.mjs";import{d as r}from"./helpers-YAAwOBMH.mjs";const o=new Set(["standard-3","standard-4"]),c=2,d=4096,l=e=>typeof e=="string"?o.has(e):(e.vcpu??0)>c||(e.memoryMib??0)>d,m={categories:["PERFORMANCE"],description:"A container is declared on a large instance type, whose provisioned memory and disk are billed for the lifetime of every running instance.",facing:"INTERNAL",level:"INFO",name:"container_oversized_instance",remediation:"Confirm the workload needs this size; a smaller instanceType (lite/basic/standard-1) costs less while idle-but-running.",run:e=>{const t=[];for(const i of e.containers??[]){const{instanceType:n}=i;if(n===void 0||!l(n))continue;const s=typeof n=="string"?n:JSON.stringify(n);t.push(a(m,{cacheKey:`container_oversized_instance:${i.exportName}`,detail:`Container "${i.exportName}" uses a large instance type (${s}); its memory + disk are billed while any instance runs.`,metadata:{...r(i),container:i.exportName,instanceType:n}}))}return t},source:"static",title:"Oversized container instance"};export{m as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as n}from"./finding-NrKO8idM.mjs";import{d as a}from"./helpers-YAAwOBMH.mjs";const i={categories:["SECURITY"],description:"A container leaves outbound internet access at the default (enabled), which is billed per GB of egress and widens the attack surface.",facing:"INTERNAL",level:"INFO",name:"container_public_internet",remediation:"Set `enableInternet: false` on the container if it doesn't call external services, or `true` to opt in deliberately.",run:t=>(t.containers??[]).filter(e=>e.enableInternet===void 0).map(e=>n(i,{cacheKey:`container_public_internet:${e.exportName}`,detail:`Container "${e.exportName}" doesn't set enableInternet, so outbound internet is on by default (egress is billed).`,metadata:{...a(e),container:e.exportName}})),source:"static",title:"Container egress enabled by default"};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{callSiteDescription as a}from"./callSiteCallers-DArHfQSU.mjs";import{e as i}from"./finding-NrKO8idM.mjs";import{c as n}from"./helpers-
|
|
1
|
+
import{callSiteDescription as a}from"./callSiteCallers-DArHfQSU.mjs";import{e as i}from"./finding-NrKO8idM.mjs";import{c as n}from"./helpers-YAAwOBMH.mjs";const r={categories:["SECURITY"],description:"A runtime `.egress.allow(...)` / `.egress.deny(...)` / `.egress.setAllowed(...)` call mutates the container's egress firewall at runtime, re-opening a network surface the static analysis assumes is locked to the `defineContainer` declaration.",facing:"EXTERNAL",level:"WARN",name:"container_runtime_egress_relaxation",remediation:"Prefer declaring the egress policy statically in `lunora/containers.ts` where it is auditable. When a runtime mutation is unavoidable, scope it behind a server-trusted check and keep the change narrow (a specific host, not a broad allow) rather than an unconditional relaxation.",run:t=>t.containerOverrides===void 0?[]:t.containerOverrides.filter(e=>e.kind==="egress_relaxation").map(e=>i(r,{cacheKey:`container_runtime_egress_relaxation:${e.file}:${e.line.toString()}`,detail:`${a(e.scope)} calls \`.egress.${e.detail}(...)\` at runtime, mutating the container's egress firewall.`,metadata:{...n(e),method:e.detail}})),source:"static",title:"Runtime egress mutation relaxes the container firewall"};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{callSiteDescription as n}from"./callSiteCallers-DArHfQSU.mjs";import{e as r}from"./finding-NrKO8idM.mjs";import{c as i}from"./helpers-
|
|
1
|
+
import{callSiteDescription as n}from"./callSiteCallers-DArHfQSU.mjs";import{e as r}from"./finding-NrKO8idM.mjs";import{c as i}from"./helpers-YAAwOBMH.mjs";const a={categories:["SECURITY"],description:"A runtime `.start({ enableInternet: true, … })` call overrides the static `defineContainer` declaration and re-opens public internet egress for that container instance, defeating the `container_public_internet` lint's assumption that the declaration is authoritative.",facing:"EXTERNAL",level:"WARN",name:"container_start_enable_internet_override",remediation:"Avoid overriding `enableInternet` at `.start()` time. Set it once on the `defineContainer` declaration in `lunora/containers.ts` so the static advisors can reason about it, and gate any runtime opt-in behind a server-trusted check rather than an unconditional literal.",run:t=>t.containerOverrides===void 0?[]:t.containerOverrides.filter(e=>e.kind==="enable_internet").map(e=>r(a,{cacheKey:`container_start_enable_internet_override:${e.file}:${e.line.toString()}`,detail:`${n(e.scope)} calls \`.start({ enableInternet: true })\`, overriding the container's static egress posture.`,metadata:{...i(e)}})),source:"static",title:"Runtime .start() override re-enables container internet access"};export{a as default};
|
package/dist/packem_shared/{countWithoutIndex-DjQFNBrw.mjs → countWithoutIndex-CTbdpLyE.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as l}from"./finding-NrKO8idM.mjs";import{s as g,q as b,c as m}from"./helpers-
|
|
1
|
+
import{e as l}from"./finding-NrKO8idM.mjs";import{s as g,q as b,c as m}from"./helpers-YAAwOBMH.mjs";import{l as f,P as w}from"./fk-index-DXYS17cc.mjs";const y=(a,n)=>{const o=n.filterFields??[],e=a.schema.tables.find(t=>t.name===n.table);if(e===void 0||o.length===0)return!1;const s=f(e);return o.some(t=>t===w||s.has(t))},d={categories:["PERFORMANCE"],description:"A `count()` runs on a table with no aggregate index, and no ordinary index covers its `where`, so every call scans every row of the table to count them. The cost grows with the table, and repeats on every call.",facing:"EXTERNAL",level:"WARN",name:"count_without_index",remediation:"Declare an aggregate index that covers the count (`.aggregateIndex(name, { by: [...] })` on the table, or `defineAggregateIndex` in the schema) so `count()` reads a counter. For a small table or a count that runs rarely, the scan may be acceptable.",run:a=>{const n=[],o=g(a.schema);for(const e of a.countReads??[]){if(e.indexed||y(a,e))continue;const s=b(e),t=o.get(e.table),i={...m(e),shardKind:t??"unknown",table:e.table},r=`count_without_index:${e.file}:${e.line.toString()}:${e.table}`;if(t==="shardBy"){n.push(l(d,{cacheKey:r,detail:`count() on "${e.table}" at ${s} has no aggregate index. "${e.table}" is \`.shardBy()\`, so the count covers one shard's rows, not the whole table. It is bounded by one tenant's row count.`,level:"INFO",metadata:i}));continue}const c=e.filterFields??[],h=c.length>0?`and no index leads with a field its where tests (${c.map(u=>`"${u}"`).join(", ")}), so it scans`:"so it scans";n.push(l(d,{cacheKey:r,detail:`count() on "${e.table}" at ${s} has no aggregate index, ${h} every row of "${e.table}" to count them.`,metadata:i}))}return n},source:"static",title:"Count without index"};export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{parse as c}from"@visulima/cron-parser/cloudflare";import{e as d}from"./finding-NrKO8idM.mjs";import{d as h}from"./helpers-YAAwOBMH.mjs";const l=/\s+/,u=t=>{const e=t.trim();if(e.split(l).length===5)try{const{dayOfMonth:r,dayOfWeek:n,hour:a,minute:i,month:s}=c(e).fields;return i.values.length!==60?void 0:a.values.length===24&&r.values.length===31&&s.values.length===12&&n.values.length===7?"always":"windowed"}catch{return}},o=t=>t.workflow===void 0?t.functionPath??"its target":`a new instance of workflow "${t.workflow.exportName}"`,w={categories:["PERFORMANCE"],description:"A cron job fires every minute, the fastest cadence Cloudflare Cron Triggers allow. Each fire is a Worker invocation (shared by jobs on the same schedule) plus a dispatch to its target (a Durable Object request, or a new workflow instance), billed whether or not there was work to do.",facing:"INTERNAL",level:"INFO",name:"cron_every_minute",remediation:"Confirm the cadence is needed. If the job only reacts to new work, drop it to a coarser interval, or replace the poll with `ctx.scheduler.runAfter(…)` armed by the write that creates the work. Whatever the cadence, make the target return early on an indexed read when there is nothing to do.",run:t=>(t.crons??[]).flatMap(e=>{const r=u(e.cron);if(r===void 0)return[];const n=r==="always"?`fires every minute — about 43,200 dispatches a month of ${o(e)}`:`fires every minute while its window is open, dispatching ${o(e)} once a minute`;return[d(w,{cacheKey:`cron_every_minute:${e.name}`,detail:`Cron job "${e.name}" (\`${e.cron}\`) ${n}, whether or not there is work. Jobs on the same schedule share one Worker invocation.`,metadata:{...h(e),cron:e.cron,job:e.name,window:r==="windowed"}})]}),source:"static",title:"Cron job fires every minute"};export{w as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";import{d as o}from"./helpers-YAAwOBMH.mjs";const a={categories:["SCHEMA"],description:"A procedure throws a bare `new Error(...)`. It reaches the client as an opaque message the caller cannot branch on, and error grouping cannot fingerprint it into a stable issue.",facing:"EXTERNAL",level:"WARN",name:"error_without_catalog",remediation:'Throw a coded error instead: `throw new LunoraError("<CODE>", { … })` from `@lunora/errors`, adding the code to `ERROR_CATALOG` if it is new.',run:e=>e.procedureProtections===void 0?[]:e.procedureProtections.filter(r=>r.throwsBareError===!0).map(r=>t(a,{cacheKey:`error_without_catalog:${r.file}:${r.exportName}`,detail:`${r.kind} \`${r.exportName}\` (${r.file}) throws a bare \`new Error(...)\`. Use \`LunoraError\` with a catalog code so the client can branch on it and Studio can group it.`,metadata:{exportName:r.exportName,...o(r),kind:r.kind}})),source:"static",title:"Bare Error thrown instead of a coded LunoraError"};export{a as default};
|
package/dist/packem_shared/{filterAfterIndexScan-CV8aPq7v.mjs → filterAfterIndexScan-BTHjxkNi.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o}from"./finding-NrKO8idM.mjs";import{i as l,c,q as f}from"./helpers-
|
|
1
|
+
import{e as o}from"./finding-NrKO8idM.mjs";import{i as l,c,q as f}from"./helpers-YAAwOBMH.mjs";import{o as h,u as x}from"./sweeps-DYG_FnlQ.mjs";const m={categories:["PERFORMANCE"],description:"A query calls `.withIndex(…)` and then `.filter(…)` on a field that index does not cover. The index narrows the scan, and the filter discards most of the rows it read. Extending the index with the field lets the read seek instead of scanning.",facing:"EXTERNAL",level:"INFO",name:"filter_after_index_scan",remediation:"Add the filtered field to the index the read uses, so the range covers it, or confirm the predicate cannot be expressed as an index range and keep the filter.",run:t=>{const n=[],r=l(t.schema),d=new Set(h(t));for(const e of t.queries??[]){if(!e.hasFilter||e.table===""||e.index?.name===void 0||e.filterFields===void 0||d.has(e))continue;const a=r(e);if(a===void 0)continue;const i=x(e,a);i.length!==0&&n.push(o(m,{cacheKey:`filter_after_index_scan:${e.file}:${e.line.toString()}:${e.table}`,detail:`Query on "${e.table}" at ${f(e)} narrows with index "${e.index.name}" and then filters on ${i.map(s=>`"${s}"`).join(", ")}, which the index does not cover. The filter reads every row the index range returns and keeps only those that match.`,metadata:{...c(e),filteredFields:i,indexName:e.index.name,table:e.table}}))}return n},source:"static",title:"Filter after index scan"};export{m as default};
|
package/dist/packem_shared/{filterOnPrimaryKey-CAhFiqp_.mjs → filterOnPrimaryKey-DeRYfLa7.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./finding-NrKO8idM.mjs";import{q as a,c as l}from"./helpers-
|
|
1
|
+
import{e as r}from"./finding-NrKO8idM.mjs";import{q as a,c as l}from"./helpers-YAAwOBMH.mjs";const s={categories:["PERFORMANCE"],description:"A query filters on `_id`, the primary key. That walks the table comparing every row's id, when `ctx.db.get(table, id)` fetches the row directly. There is no case where the scan is preferable.",facing:"EXTERNAL",level:"WARN",name:"filter_on_primary_key",remediation:'Replace `ctx.db.query("table").filter((d) => d._id === id).first()` with `ctx.db.get("table", id)`. Passing a typed `Id<"table">` also narrows the result to that table\'s `Doc`, where the scan form returns the shared row type.',run:t=>(t.queries??[]).filter(e=>e.filtersPrimaryKey===!0&&e.table!=="").map(e=>{const i=a(e);return r(s,{cacheKey:`filter_on_primary_key:${e.file}:${e.line.toString()}:${e.table}`,detail:`Query on "${e.table}" at ${i} filters on \`_id\` — it scans "${e.table}" to find a row \`ctx.db.get(table, id)\` addresses directly.`,metadata:{...l(e),table:e.table}})}),source:"static",title:"Filter on primary key instead of ctx.db.get"};export{s as default};
|
package/dist/packem_shared/{filterWithoutIndex-BGv3jbgg.mjs → filterWithoutIndex-8VrXwbq5.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s}from"./finding-NrKO8idM.mjs";import{s as c,q as u,c as f}from"./helpers-
|
|
1
|
+
import{e as s}from"./finding-NrKO8idM.mjs";import{s as c,q as u,c as f}from"./helpers-YAAwOBMH.mjs";const l={categories:["PERFORMANCE"],description:"A query calls `.filter()` without a `.withIndex()` / `.withSearchIndex()`, so it loads every row in the table and filters in memory — a full table scan that gets linearly slower as the table grows.",facing:"EXTERNAL",level:"WARN",name:"filter_without_index",remediation:'Narrow the read with `.withIndex("name", (q) => q.eq(...))` first, then `.filter()` only for what the index cannot express.',run:i=>{const t=[],d=c(i.schema);for(const e of i.queries??[]){if(!e.hasFilter||e.hasIndex||e.table===""||e.filtersPrimaryKey===!0)continue;const n=u(e),a=d.get(e.table),o={...f(e),shardKind:a??"unknown",table:e.table},r=`filter_without_index:${e.file}:${e.line.toString()}:${e.table}`;if(a==="shardBy"){t.push(s(l,{cacheKey:r,detail:`Query on "${e.table}" at ${n} calls .filter() without an index. "${e.table}" is \`.shardBy()\`, so the read is already scoped to one shard rather than the whole table — this is bounded by one tenant's row count, not the dataset. Add an index if that per-shard count grows large.`,level:"INFO",metadata:o}));continue}const h=new Map([["global",`it scans the whole D1 table "${e.table}" — unbounded, and the cost is a cross-region round trip`],["root",`it loads every row of "${e.table}" from the root Durable Object's SQLite and filters in memory`]]).get(a??"")??`it loads every row of "${e.table}" and filters in memory`;t.push(s(l,{cacheKey:r,detail:`Query on "${e.table}" at ${n} calls .filter() without an index — ${h}.`,metadata:o}))}return t},source:"static",title:"Filter without index"};export{l as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n}from"./finding-NrKO8idM.mjs";import{c as r,a as o}from"./helpers-
|
|
1
|
+
import{e as n}from"./finding-NrKO8idM.mjs";import{c as r,a as o}from"./helpers-YAAwOBMH.mjs";const f=new Set(["disallow","disallowed","enforce","enforced","enforcement","enforcing","gate","gated","gating","lockdown","rls"]),d=new Set(["allow","allowed","bypass","bypassed","permit","permitted"]),i=new Set(["disable","disabled","no","off","skip","skipped","without"]),u=/(?<=[A-Z])(?=[A-Z][a-z])/gu,c=/(?<=[a-z0-9])(?=[A-Z])/gu,g=/[^a-z0-9]+/u,h=a=>a.replaceAll(u," ").replaceAll(c," ").toLowerCase().split(g).filter(e=>e.length>0),p=a=>{let e=0;for(;e<a.length&&i.has(a[e]);)e+=1;if(e===a.length)return e;let t=0;for(;t<a.length-e&&i.has(a[a.length-1-t]);)t+=1;return e+t},y=a=>{const e=h(a),t=e.some(s=>f.has(s)),l=e.some(s=>d.has(s));if(t!==l)return{protects:t,safeDefault:p(e)%2===1?!t:t}},m={categories:["SECURITY"],description:"A `ctx.flags.boolean(key, default)` read on a security-shaped key has a fail-open default that selects the permissive branch. OpenFeature returns the default when the provider errors, so an outage silently disables a protection (a `false` default on an `enforce`/`rls`/`gate`/`lockdown` key) or grants a permission (a `true` default on an `allow`/`permit`/`bypass` key). A negating token in the key (`disableRls`, `rlsDisabled`, `skipEnforcement`) inverts which default is the safe one.",facing:"EXTERNAL",level:"WARN",name:"flag_gates_security_with_unsafe_default",remediation:"Flip the default so a provider outage fails closed — the finding's own detail names the value to write. The safe default is always the RESTRICTIVE branch, which is not a fixed value: a protection flag (`enforce*`/`rls*`/`gate*`/`lockdown*`/`disallow*`) defaults `true` and a permission/bypass flag (`allow*`/`permit*`/`bypass*`) defaults `false`, but a negated key (`disableRls`, `rlsDisabled`, `skipEnforcement`) inverts both. Never let an unreachable flag backend open access.",run:a=>a.flagSecurityDefaults===void 0?[]:a.flagSecurityDefaults.flatMap(e=>{const t=y(e.key);if(t===void 0||t.safeDefault===e.defaultValue)return[];const l=t.protects?"disabling the guarded protection":"granting the guarded permission";return[n(m,{cacheKey:`flag_gates_security_with_unsafe_default:${e.file}:${e.line.toString()}`,detail:`\`ctx.flags.boolean("${e.key}", ${String(e.defaultValue)})\` in ${o(e)} fails open to the permissive branch — a provider outage returns \`${String(e.defaultValue)}\`, ${l}. Fail closed: default it to \`${String(t.safeDefault)}\`.`,metadata:{defaultValue:e.defaultValue,...r(e),key:e.key}})]}),source:"static",title:"Security flag fails open to the permissive branch"};export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as d}from"./finding-NrKO8idM.mjs";import{b as c}from"./helpers-
|
|
1
|
+
import{e as d}from"./finding-NrKO8idM.mjs";import{b as c}from"./helpers-YAAwOBMH.mjs";const s={categories:["SCHEMA"],description:"A `.geoIndex(name, { field })` points at a column that is not a `v.geoPoint()`, so its geohash companion can't be built and `withGeoIndex(...)` can never match.",facing:"INTERNAL",level:"ERROR",name:"geo_index_field_not_geopoint",remediation:"Point the geo index at a `v.geoPoint()` column, or change the column's type to `v.geoPoint()`.",run:a=>{const t=[];for(const e of a.schema.tables)for(const n of e.indexes){if(n.kind!=="geo")continue;const o=n.fields[0];if(o===void 0)continue;const i=c(e,o);i===void 0||i==="geoPoint"||t.push(d(s,{cacheKey:`geo_index_field_not_geopoint:${e.name}:${n.name}:${o}`,detail:`Geo index "${n.name}" on table "${e.name}" indexes column "${o}", which is a ${i}, not a v.geoPoint().`,metadata:{field:o,index:n.name,kind:i,table:e.name}}))}return t},source:"static",title:"Geo index field is not a geoPoint"};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as h}from"./dispatch-namespace-BE_LxN7Z.mjs";import{callSiteMetadata as I,helperRole as S,callSiteCallers as d}from"./callSiteCallers-DArHfQSU.mjs";const r=new Set(["delete","deleteMany","hardDelete","patch","patchIf","patchMany","patchWhere","replace"]),$=(e,t)=>e.method!=="patch"&&e.method!=="patchMany"||t===void 0||e.fields===void 0?!0:e.fields.some(n=>t.includes(n)),m=["address","birthdate","creditCard","dateOfBirth","dob","driversLicense","email","firstName","fullName","lastName","nationalId","passport","phone","phoneNumber","socialSecurity","socialSecurityNumber","ssn","taxId"],N=/[^a-z0-9]/giu,_=/([a-z0-9])([A-Z])/gu,w=/[^a-zA-Z0-9]+/u,i=e=>e.replaceAll(N,"").toLowerCase(),c=e=>e.replaceAll(_,"$1_$2").split(w).filter(t=>t.length>0).map(t=>t.toLowerCase()),M=new Set(m.map(e=>i(e))),g=new Set(m.filter(e=>c(e).length===1).map(e=>e.toLowerCase())),A=new Set(["accountId","authorId","createdBy","createdById","organizationId","orgId","ownerId","tenantId","updatedBy","userId","workspaceId"]),E=e=>M.has(i(e))||c(e).some(t=>g.has(t)),
|
|
1
|
+
import{s as h}from"./dispatch-namespace-BE_LxN7Z.mjs";import{callSiteMetadata as I,helperRole as S,callSiteCallers as d}from"./callSiteCallers-DArHfQSU.mjs";const r=new Set(["delete","deleteMany","hardDelete","patch","patchIf","patchMany","patchWhere","replace"]),$=(e,t)=>e.method!=="patch"&&e.method!=="patchMany"||t===void 0||e.fields===void 0?!0:e.fields.some(n=>t.includes(n)),m=["address","birthdate","creditCard","dateOfBirth","dob","driversLicense","email","firstName","fullName","lastName","nationalId","passport","phone","phoneNumber","socialSecurity","socialSecurityNumber","ssn","taxId"],N=/[^a-z0-9]/giu,_=/([a-z0-9])([A-Z])/gu,w=/[^a-zA-Z0-9]+/u,i=e=>e.replaceAll(N,"").toLowerCase(),c=e=>e.replaceAll(_,"$1_$2").split(w).filter(t=>t.length>0).map(t=>t.toLowerCase()),M=new Set(m.map(e=>i(e))),g=new Set(m.filter(e=>c(e).length===1).map(e=>e.toLowerCase())),A=new Set(["accountId","authorId","createdBy","createdById","organizationId","orgId","ownerId","tenantId","updatedBy","userId","workspaceId"]),E=e=>M.has(i(e))||c(e).some(t=>g.has(t)),C=(e,t)=>{const n=c(e),o=i(e);return t.some(s=>{if(o===i(s))return!0;const a=c(s);return a.length>0&&n.some((l,f)=>a.every((u,p)=>n[f+p]===u))})},L=(e,t)=>e.columnKinds!==void 0&&Object.hasOwn(e.columnKinds,t)?e.columnKinds[t]:void 0,b=new Set(["_creationTime","_id"]),O=e=>e.fields.filter(t=>A.has(t)||E(t)),R=e=>new Set([...b,...e.fields]),P=e=>e.visibility==="public"&&(e.kind==="mutation"||e.kind==="action"),K=e=>e.line>0?`${e.file}:${e.line.toString()}`:e.file,k=e=>{const t=`${e.file}:${e.line.toString()}`;switch(e.scope.kind){case"export":return`\`${e.scope.name}\` (${t})`;case"helper":return`\`${e.scope.name}\` (${t}; ${S(e.scope)})`;default:return`module scope (${t})`}},x=e=>({...I(e.scope),file:e.file,line:e.line}),z=e=>({...e.file===void 0?{}:{file:e.file},...e.line===void 0?{}:{line:e.line}}),T=e=>new Map(e.tables.map(t=>[t.name,t.shardKind])),D=(e,t)=>`${h(e)}:${t}`,W=(e,t)=>new Set([...(e??[]).flatMap(n=>n.kind==="schedule"&&n.target!==void 0?[n.target]:[]),...t??[]]),B=(e,t)=>{const n=new Map,o=(s,a)=>{const l=n.get(s);l===void 0?n.set(s,[a]):l.push(a)};for(const s of e??[])if(r.has(s.method))for(const a of d(s.scope))o(`${s.file}:${a}:${s.table}`,{fields:s.fields,method:s.method});for(const s of t??[])r.has(s.method)&&o(`${s.file}:${s.exportName}:${s.table}`,{fields:s.fields,method:s.method});return n},F=e=>{const t=new Map(e.tables.map(n=>[n.name,new Map(n.indexes.filter(o=>o.kind==="index").map(o=>[o.name,o.fields]))]));return n=>{const o=n.index?.name;return o===void 0?void 0:t.get(n.table)?.get(o)}},H=(e,t,n,o=d(t.scope))=>o.some(s=>(e.get(`${t.file}:${s}:${t.table}`)??[]).some(a=>$(a,n)));export{k as a,L as b,x as c,z as d,E as e,P as f,D as g,H as h,F as i,W as j,C as m,O as o,K as q,B as r,T as s,R as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as i}from"./finding-NrKO8idM.mjs";import{c as n,a as c}from"./helpers-
|
|
1
|
+
import{e as i}from"./finding-NrKO8idM.mjs";import{c as n,a as c}from"./helpers-YAAwOBMH.mjs";const r=(e,t)=>e==="httpRoute"&&t?`\`httpRoute\` ${t} handler`:"`httpAction` handler",h={categories:["SECURITY"],description:"An `httpAction`/`httpRoute` handler performs a side effect (`ctx.runMutation`/`ctx.runAction`/a `ctx.db` write) but never reads `ctx.auth` — an unauthenticated HTTP endpoint driving a state change, bypassing the identity/RLS checks that guard the rest of the app.",facing:"EXTERNAL",level:"WARN",name:"http_action_missing_auth_guard",remediation:"Read `ctx.auth` in the handler before the side effect — call `await ctx.auth.getIdentity()` (or check `ctx.auth.userId`) and reject unauthenticated/unauthorized requests, or forward through a `mutation`/`action` whose RLS policies enforce access. If the endpoint is intentionally public (e.g. a signed webhook), verify the provider signature before the write.",run:e=>e.httpActionGuards===void 0?[]:e.httpActionGuards.filter(t=>!t.readsAuth).map(t=>{const a=r(t.kind,t.method);return i(h,{cacheKey:`http_action_missing_auth_guard:${t.file}:${t.line.toString()}`,detail:`${a} ${c(t)} calls \`ctx.${t.sideEffect}\` but never reads \`ctx.auth\` — an anonymous caller can drive this write. Authenticate the request before the side effect.`,metadata:{...n(t),kind:t.kind,sideEffect:t.sideEffect,...t.method?{method:t.method}:{}}})}),source:"static",title:"Unauthenticated HTTP handler performs a side effect"};export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as r}from"./finding-NrKO8idM.mjs";import{c as i,a as n}from"./helpers-
|
|
1
|
+
import{e as r}from"./finding-NrKO8idM.mjs";import{c as i,a as n}from"./helpers-YAAwOBMH.mjs";const s={"headers-append":"a `headers.append(...)` call","headers-ctor":"a `new Headers({...})` initializer","headers-set":"a `headers.set(...)` call","response-init":"a `Response` init `headers` object"},o={categories:["SECURITY"],description:"An `httpAction` handler writes a response-header value derived from raw request input (`request.headers`/URL/query/body) with no CR/LF sanitizer. A `Request`-derived string placed verbatim into a response header lets a caller smuggle `\\r\\n` and inject extra headers or split the response (HTTP response splitting / header injection).",facing:"EXTERNAL",level:"WARN",name:"http_action_response_header_injection",remediation:"Never place a raw request value into a response header. Route it through a CR/LF guard (`isSafeHeaderValue` from `@lunora/server`, rejecting values containing `\\r`/`\\n`/`\\0`), URL-encode it (`encodeURIComponent`), or coerce it to a number — before writing the header. `String(...)` / `.toString()` do NOT strip CR/LF and are not sufficient.",run:t=>t.httpHeaderWrites===void 0?[]:t.httpHeaderWrites.map(e=>{const a=e.headerName===""?"a response header":`the \`${e.headerName}\` response header`;return r(o,{cacheKey:`http_action_response_header_injection:${e.file}:${e.line.toString()}`,detail:`${n(e)} writes ${a} from raw request input via ${s[e.via]} with no CR/LF guard — a caller can smuggle \`\\r\\n\` to inject headers or split the response. Route the value through \`isSafeHeaderValue\` or \`encodeURIComponent\` first.`,metadata:{...i(e),headerName:e.headerName,via:e.via}})}),source:"static",title:"Response header written from unsanitized request input"};export{o as default};
|