@lunora/advisor 1.0.0-alpha.244 → 1.0.0-alpha.246
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 +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/openShardAccess-CVMAgmmY.mjs +1 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1047,6 +1047,18 @@ interface AdvisorNotifyConfig {
|
|
|
1047
1047
|
/** Whether any handler sends a push (`ctx.push.send` / `ctx.push.broadcast`). */
|
|
1048
1048
|
usesPush: boolean;
|
|
1049
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* One literal `allowUnauthenticatedShardAccess: true` in an app's source — the
|
|
1052
|
+
* input the `open_shard_access` lint consumes. Supplied by `lunora deploy`, which
|
|
1053
|
+
* scans the project before shipping; codegen and runtime callers don't supply it,
|
|
1054
|
+
* so the lint finds nothing there.
|
|
1055
|
+
*/
|
|
1056
|
+
interface AdvisorOpenShardAccess {
|
|
1057
|
+
/** Source file relative to the project root. */
|
|
1058
|
+
file: string;
|
|
1059
|
+
/** 1-based line of the property. */
|
|
1060
|
+
line: number;
|
|
1061
|
+
}
|
|
1050
1062
|
/**
|
|
1051
1063
|
* One `ctx.db` write (`insert` / `replace` / `patch` / `insertManyUnsafe`) that
|
|
1052
1064
|
* sets an ownership / identity column — `userId`, `ownerId`, `tenantId`, and the
|
|
@@ -2434,6 +2446,12 @@ interface LintContext {
|
|
|
2434
2446
|
* callers, where the lint finds nothing.
|
|
2435
2447
|
*/
|
|
2436
2448
|
notifyConfig?: AdvisorNotifyConfig;
|
|
2449
|
+
/**
|
|
2450
|
+
* Literal `allowUnauthenticatedShardAccess: true` sites in the app — the
|
|
2451
|
+
* `open_shard_access` input. Supplied by `lunora deploy`'s project scan only;
|
|
2452
|
+
* absent for codegen and runtime callers, where the lint finds nothing.
|
|
2453
|
+
*/
|
|
2454
|
+
openShardAccess?: ReadonlyArray<AdvisorOpenShardAccess>;
|
|
2437
2455
|
/**
|
|
2438
2456
|
* `ctx.db` writes (`insert` / `replace` / `patch` / `insertManyUnsafe`) that set
|
|
2439
2457
|
* an ownership / identity column (`userId`, `ownerId`, `tenantId`, …) from the
|
|
@@ -4044,6 +4062,24 @@ declare const notifyMissingPushConfig: Lint;
|
|
|
4044
4062
|
* `query`/`mutation` handlers, so `action(...)` bodies never reach here.
|
|
4045
4063
|
*/
|
|
4046
4064
|
declare const notifySendOutsideAction: Lint;
|
|
4065
|
+
/**
|
|
4066
|
+
* Flags the open-shard option set to anything but a literal `false` in the app
|
|
4067
|
+
* being deployed. A shorthand, getter, method or non-boolean value has no literal
|
|
4068
|
+
* to read, so it is flagged too.
|
|
4069
|
+
*
|
|
4070
|
+
* Every template ships the flag so its demo works before auth exists, with a
|
|
4071
|
+
* "before deploying" comment beside it; the runtime only logs a warning when it
|
|
4072
|
+
* sees it. Unlike `allow_unauthenticated_shard_access_enabled` (a WARN that fires
|
|
4073
|
+
* only when the schema also has an RLS gap), this is the deploy-time stop: open
|
|
4074
|
+
* shard access is a setting nobody should ship by accident, so it is an ERROR
|
|
4075
|
+
* whatever the schema says, and `lunora deploy` refuses it unless
|
|
4076
|
+
* `--allow-open-shards` says the open posture is deliberate.
|
|
4077
|
+
*
|
|
4078
|
+
* **Evidence**: `context.openShardAccess`, supplied by `lunora deploy`'s own
|
|
4079
|
+
* project scan. Codegen does not supply it — a codegen-fed ERROR would fail every
|
|
4080
|
+
* template's CI build — so `lunora advisor` and the Studio never show it.
|
|
4081
|
+
*/
|
|
4082
|
+
declare const openShardAccess: Lint;
|
|
4047
4083
|
/**
|
|
4048
4084
|
* Nudges a `.public()` `query` whose handler returns raw table rows — with no
|
|
4049
4085
|
* `.output(...)` projection and no `.use(mask(...))` — when that table carries
|
|
@@ -5270,4 +5306,4 @@ interface RunAdvisorOptions {
|
|
|
5270
5306
|
* `static` lints at build time and defer `runtime` lints to a live shard.
|
|
5271
5307
|
*/
|
|
5272
5308
|
declare const runAdvisor: (context: LintContext, options?: RunAdvisorOptions) => Finding[];
|
|
5273
|
-
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorCallEdge, type AdvisorCallSiteScope, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, type AdvisorCountRead, type AdvisorCron, type AdvisorExportSink, type AdvisorFailOpenGuard, type AdvisorFlagRead, type AdvisorFlagSecurityDefault, type AdvisorGeoIndexUsage, type AdvisorHttpActionGuard, type AdvisorHttpHeaderWrite, type AdvisorHyperdriveCall, type AdvisorIdentityClaimRead, type AdvisorImageDeliveryUrlAccess, type AdvisorIndex, type AdvisorIndexHit, type AdvisorInsertWrite, type AdvisorKeyedRelation, type AdvisorKvKeyAccess, type AdvisorMailRecipientAccess, type AdvisorMap, type AdvisorMaskProcedure, type AdvisorMaskStrategy, type AdvisorModule, type AdvisorMutatorDeclaration, type AdvisorMutatorWrite, type AdvisorNondeterministicCall, type AdvisorNormalizeIdAuthorization, type AdvisorNotifyCall, type AdvisorNotifyConfig, type AdvisorOwnerFieldWrite, type AdvisorPaymentWebhook, type AdvisorPrivilegedDispatch, type AdvisorProcedureProtection, type AdvisorQueryRead, type AdvisorQueue, type AdvisorQueueTuning, type AdvisorR2sqlCall, type AdvisorRatelimitKeySelector, type AdvisorRawRowReturn, type AdvisorRelation, type AdvisorRelationLoad, type AdvisorRlsProcedure, type AdvisorRowEffect, type AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, type AdvisorThroughRelation, type AdvisorUnboundedLoop, type AdvisorVectorNamespaceAccess, type AdvisorWorkflow, type AdvisorWorkflowCall, type AdvisorWranglerVariable, type AnalyticsMetricsOptions, type AnalyticsMetricsSource, type AnalyticsRuntimeMetrics, type BaselineComparison, type CallSiteMetadata, type Category, type CheckResult, type Coverage, type Facing, type Finding, type Grade, type Level, type Lint, type LintContext, type LintSource, MAP_VERSION, type MapSummary, type ProcedureDelta, type ProcedureScore, type ProjectScore, RUNTIME_LINTS, RunAdvisorOptions, STATIC_LINTS, type ScoreAdvisorOptions, type Sensitivity, type SensitivityLevel, actionFetchSsrf, actionWithoutErrorHandling, adminRouteWithoutGuard, aiRawRunEscapeHatch, aiRunWithoutLogging, aiToolSideEffectPromptInjection, aiUnboundedGenerationPublic, allowUnauthenticatedShardAccessEnabled, authApiCallWithoutHeaders, authCsrfCheckDisabled, authEmailVerificationDisabled, authScimWithoutTransactions, authSecureCookiesDisabled, authSessionFreshageZero, authTrustedOriginsWildcard, browserAllowPrivateTargets, browserUserUrlWithoutAllowlist, byCodepoint, callSiteCallers, callSiteDescription, callSiteLabel, callSiteMetadata, circularFk, classifySensitivity, commitOrderedHardDelete, compareToBaseline, containerInstanceKeyFromUserInput, containerLongSleepAfter, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, countWithoutIndex, cronEveryMinute, crossModuleTableWrite, dedupeCacheKeys, dispatchCycle, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, filterAfterIndexScan, filterOnPrimaryKey, filterWithoutIndex, flagGatesSecurityWithUnsafeDefault, flagReadInSubscription, fromServerSchema, geoIndexFieldNotGeopoint, geoIndexUnused, globalTableNearColumnLimit, gradeFromScore, hardcodedSecret, helperRole, hotShard, httpActionMissingAuthGuard, httpActionResponseHeaderInjection, hyperdriveOutsideAction, identityUndeclaredClaimTrusted, imagesUrlSourceFromUserInput, indexReferencesUnknownField, indexUtilization, insertManyUnsafeUserData, isReachableSite, kvUnscopedUserKeyIdor, mailInboundDispatchWithoutVerify, mailRecipientFromRequestInput, maskUncoveredPiiColumn, maskWeakHashStrategyOnPii, maskedRelationLeakViaWith, mutatorFullRowReplace, mutatorWithoutOwnerScope, nondeterministicQueryMutation, normalizeIdUsedAsAuthorization, notifyMissingPushConfig, notifySendOutsideAction, outputProjectionMissingOnPublicRead, ownerFieldFromArgsNotAuth, parseAdvisorMap, paymentCreateWithoutAuthorize, paymentWebhookWideTolerance, plaintextSecretInWranglerVariables, policyReferencesUnknownTable, privilegedDispatchUnvalidatedPayload, privilegedFanoutFromPublicProcedure, procedureWithoutStructuredEvent, publicArgumentUsesAny, publicMutationWithoutRatelimit, publicTableRlsOptoutConfusion, queueDispatchCycle, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, readCallSiteCallers, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, selfRescheduleWithoutProgress, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, throughRelationMissingUniqueIndex, topicTooManySubscriptions, ttlFieldNotTimestamp, unboundedCollectOnOpenRange, unboundedLoop, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|
|
5309
|
+
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorCallEdge, type AdvisorCallSiteScope, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, type AdvisorCountRead, type AdvisorCron, type AdvisorExportSink, type AdvisorFailOpenGuard, type AdvisorFlagRead, type AdvisorFlagSecurityDefault, type AdvisorGeoIndexUsage, type AdvisorHttpActionGuard, type AdvisorHttpHeaderWrite, type AdvisorHyperdriveCall, type AdvisorIdentityClaimRead, type AdvisorImageDeliveryUrlAccess, type AdvisorIndex, type AdvisorIndexHit, type AdvisorInsertWrite, type AdvisorKeyedRelation, type AdvisorKvKeyAccess, type AdvisorMailRecipientAccess, type AdvisorMap, type AdvisorMaskProcedure, type AdvisorMaskStrategy, type AdvisorModule, type AdvisorMutatorDeclaration, type AdvisorMutatorWrite, type AdvisorNondeterministicCall, type AdvisorNormalizeIdAuthorization, type AdvisorNotifyCall, type AdvisorNotifyConfig, type AdvisorOpenShardAccess, type AdvisorOwnerFieldWrite, type AdvisorPaymentWebhook, type AdvisorPrivilegedDispatch, type AdvisorProcedureProtection, type AdvisorQueryRead, type AdvisorQueue, type AdvisorQueueTuning, type AdvisorR2sqlCall, type AdvisorRatelimitKeySelector, type AdvisorRawRowReturn, type AdvisorRelation, type AdvisorRelationLoad, type AdvisorRlsProcedure, type AdvisorRowEffect, type AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, type AdvisorThroughRelation, type AdvisorUnboundedLoop, type AdvisorVectorNamespaceAccess, type AdvisorWorkflow, type AdvisorWorkflowCall, type AdvisorWranglerVariable, type AnalyticsMetricsOptions, type AnalyticsMetricsSource, type AnalyticsRuntimeMetrics, type BaselineComparison, type CallSiteMetadata, type Category, type CheckResult, type Coverage, type Facing, type Finding, type Grade, type Level, type Lint, type LintContext, type LintSource, MAP_VERSION, type MapSummary, type ProcedureDelta, type ProcedureScore, type ProjectScore, RUNTIME_LINTS, RunAdvisorOptions, STATIC_LINTS, type ScoreAdvisorOptions, type Sensitivity, type SensitivityLevel, actionFetchSsrf, actionWithoutErrorHandling, adminRouteWithoutGuard, aiRawRunEscapeHatch, aiRunWithoutLogging, aiToolSideEffectPromptInjection, aiUnboundedGenerationPublic, allowUnauthenticatedShardAccessEnabled, authApiCallWithoutHeaders, authCsrfCheckDisabled, authEmailVerificationDisabled, authScimWithoutTransactions, authSecureCookiesDisabled, authSessionFreshageZero, authTrustedOriginsWildcard, browserAllowPrivateTargets, browserUserUrlWithoutAllowlist, byCodepoint, callSiteCallers, callSiteDescription, callSiteLabel, callSiteMetadata, circularFk, classifySensitivity, commitOrderedHardDelete, compareToBaseline, containerInstanceKeyFromUserInput, containerLongSleepAfter, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, countWithoutIndex, cronEveryMinute, crossModuleTableWrite, dedupeCacheKeys, dispatchCycle, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, filterAfterIndexScan, filterOnPrimaryKey, filterWithoutIndex, flagGatesSecurityWithUnsafeDefault, flagReadInSubscription, fromServerSchema, geoIndexFieldNotGeopoint, geoIndexUnused, globalTableNearColumnLimit, gradeFromScore, hardcodedSecret, helperRole, hotShard, httpActionMissingAuthGuard, httpActionResponseHeaderInjection, hyperdriveOutsideAction, identityUndeclaredClaimTrusted, imagesUrlSourceFromUserInput, indexReferencesUnknownField, indexUtilization, insertManyUnsafeUserData, isReachableSite, kvUnscopedUserKeyIdor, mailInboundDispatchWithoutVerify, mailRecipientFromRequestInput, maskUncoveredPiiColumn, maskWeakHashStrategyOnPii, maskedRelationLeakViaWith, mutatorFullRowReplace, mutatorWithoutOwnerScope, nondeterministicQueryMutation, normalizeIdUsedAsAuthorization, notifyMissingPushConfig, notifySendOutsideAction, openShardAccess, outputProjectionMissingOnPublicRead, ownerFieldFromArgsNotAuth, parseAdvisorMap, paymentCreateWithoutAuthorize, paymentWebhookWideTolerance, plaintextSecretInWranglerVariables, policyReferencesUnknownTable, privilegedDispatchUnvalidatedPayload, privilegedFanoutFromPublicProcedure, procedureWithoutStructuredEvent, publicArgumentUsesAny, publicMutationWithoutRatelimit, publicTableRlsOptoutConfusion, queueDispatchCycle, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, readCallSiteCallers, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, selfRescheduleWithoutProgress, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, throughRelationMissingUniqueIndex, topicTooManySubscriptions, ttlFieldNotTimestamp, unboundedCollectOnOpenRange, unboundedLoop, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|
package/dist/index.d.ts
CHANGED
|
@@ -1047,6 +1047,18 @@ interface AdvisorNotifyConfig {
|
|
|
1047
1047
|
/** Whether any handler sends a push (`ctx.push.send` / `ctx.push.broadcast`). */
|
|
1048
1048
|
usesPush: boolean;
|
|
1049
1049
|
}
|
|
1050
|
+
/**
|
|
1051
|
+
* One literal `allowUnauthenticatedShardAccess: true` in an app's source — the
|
|
1052
|
+
* input the `open_shard_access` lint consumes. Supplied by `lunora deploy`, which
|
|
1053
|
+
* scans the project before shipping; codegen and runtime callers don't supply it,
|
|
1054
|
+
* so the lint finds nothing there.
|
|
1055
|
+
*/
|
|
1056
|
+
interface AdvisorOpenShardAccess {
|
|
1057
|
+
/** Source file relative to the project root. */
|
|
1058
|
+
file: string;
|
|
1059
|
+
/** 1-based line of the property. */
|
|
1060
|
+
line: number;
|
|
1061
|
+
}
|
|
1050
1062
|
/**
|
|
1051
1063
|
* One `ctx.db` write (`insert` / `replace` / `patch` / `insertManyUnsafe`) that
|
|
1052
1064
|
* sets an ownership / identity column — `userId`, `ownerId`, `tenantId`, and the
|
|
@@ -2434,6 +2446,12 @@ interface LintContext {
|
|
|
2434
2446
|
* callers, where the lint finds nothing.
|
|
2435
2447
|
*/
|
|
2436
2448
|
notifyConfig?: AdvisorNotifyConfig;
|
|
2449
|
+
/**
|
|
2450
|
+
* Literal `allowUnauthenticatedShardAccess: true` sites in the app — the
|
|
2451
|
+
* `open_shard_access` input. Supplied by `lunora deploy`'s project scan only;
|
|
2452
|
+
* absent for codegen and runtime callers, where the lint finds nothing.
|
|
2453
|
+
*/
|
|
2454
|
+
openShardAccess?: ReadonlyArray<AdvisorOpenShardAccess>;
|
|
2437
2455
|
/**
|
|
2438
2456
|
* `ctx.db` writes (`insert` / `replace` / `patch` / `insertManyUnsafe`) that set
|
|
2439
2457
|
* an ownership / identity column (`userId`, `ownerId`, `tenantId`, …) from the
|
|
@@ -4044,6 +4062,24 @@ declare const notifyMissingPushConfig: Lint;
|
|
|
4044
4062
|
* `query`/`mutation` handlers, so `action(...)` bodies never reach here.
|
|
4045
4063
|
*/
|
|
4046
4064
|
declare const notifySendOutsideAction: Lint;
|
|
4065
|
+
/**
|
|
4066
|
+
* Flags the open-shard option set to anything but a literal `false` in the app
|
|
4067
|
+
* being deployed. A shorthand, getter, method or non-boolean value has no literal
|
|
4068
|
+
* to read, so it is flagged too.
|
|
4069
|
+
*
|
|
4070
|
+
* Every template ships the flag so its demo works before auth exists, with a
|
|
4071
|
+
* "before deploying" comment beside it; the runtime only logs a warning when it
|
|
4072
|
+
* sees it. Unlike `allow_unauthenticated_shard_access_enabled` (a WARN that fires
|
|
4073
|
+
* only when the schema also has an RLS gap), this is the deploy-time stop: open
|
|
4074
|
+
* shard access is a setting nobody should ship by accident, so it is an ERROR
|
|
4075
|
+
* whatever the schema says, and `lunora deploy` refuses it unless
|
|
4076
|
+
* `--allow-open-shards` says the open posture is deliberate.
|
|
4077
|
+
*
|
|
4078
|
+
* **Evidence**: `context.openShardAccess`, supplied by `lunora deploy`'s own
|
|
4079
|
+
* project scan. Codegen does not supply it — a codegen-fed ERROR would fail every
|
|
4080
|
+
* template's CI build — so `lunora advisor` and the Studio never show it.
|
|
4081
|
+
*/
|
|
4082
|
+
declare const openShardAccess: Lint;
|
|
4047
4083
|
/**
|
|
4048
4084
|
* Nudges a `.public()` `query` whose handler returns raw table rows — with no
|
|
4049
4085
|
* `.output(...)` projection and no `.use(mask(...))` — when that table carries
|
|
@@ -5270,4 +5306,4 @@ interface RunAdvisorOptions {
|
|
|
5270
5306
|
* `static` lints at build time and defer `runtime` lints to a live shard.
|
|
5271
5307
|
*/
|
|
5272
5308
|
declare const runAdvisor: (context: LintContext, options?: RunAdvisorOptions) => Finding[];
|
|
5273
|
-
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorCallEdge, type AdvisorCallSiteScope, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, type AdvisorCountRead, type AdvisorCron, type AdvisorExportSink, type AdvisorFailOpenGuard, type AdvisorFlagRead, type AdvisorFlagSecurityDefault, type AdvisorGeoIndexUsage, type AdvisorHttpActionGuard, type AdvisorHttpHeaderWrite, type AdvisorHyperdriveCall, type AdvisorIdentityClaimRead, type AdvisorImageDeliveryUrlAccess, type AdvisorIndex, type AdvisorIndexHit, type AdvisorInsertWrite, type AdvisorKeyedRelation, type AdvisorKvKeyAccess, type AdvisorMailRecipientAccess, type AdvisorMap, type AdvisorMaskProcedure, type AdvisorMaskStrategy, type AdvisorModule, type AdvisorMutatorDeclaration, type AdvisorMutatorWrite, type AdvisorNondeterministicCall, type AdvisorNormalizeIdAuthorization, type AdvisorNotifyCall, type AdvisorNotifyConfig, type AdvisorOwnerFieldWrite, type AdvisorPaymentWebhook, type AdvisorPrivilegedDispatch, type AdvisorProcedureProtection, type AdvisorQueryRead, type AdvisorQueue, type AdvisorQueueTuning, type AdvisorR2sqlCall, type AdvisorRatelimitKeySelector, type AdvisorRawRowReturn, type AdvisorRelation, type AdvisorRelationLoad, type AdvisorRlsProcedure, type AdvisorRowEffect, type AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, type AdvisorThroughRelation, type AdvisorUnboundedLoop, type AdvisorVectorNamespaceAccess, type AdvisorWorkflow, type AdvisorWorkflowCall, type AdvisorWranglerVariable, type AnalyticsMetricsOptions, type AnalyticsMetricsSource, type AnalyticsRuntimeMetrics, type BaselineComparison, type CallSiteMetadata, type Category, type CheckResult, type Coverage, type Facing, type Finding, type Grade, type Level, type Lint, type LintContext, type LintSource, MAP_VERSION, type MapSummary, type ProcedureDelta, type ProcedureScore, type ProjectScore, RUNTIME_LINTS, RunAdvisorOptions, STATIC_LINTS, type ScoreAdvisorOptions, type Sensitivity, type SensitivityLevel, actionFetchSsrf, actionWithoutErrorHandling, adminRouteWithoutGuard, aiRawRunEscapeHatch, aiRunWithoutLogging, aiToolSideEffectPromptInjection, aiUnboundedGenerationPublic, allowUnauthenticatedShardAccessEnabled, authApiCallWithoutHeaders, authCsrfCheckDisabled, authEmailVerificationDisabled, authScimWithoutTransactions, authSecureCookiesDisabled, authSessionFreshageZero, authTrustedOriginsWildcard, browserAllowPrivateTargets, browserUserUrlWithoutAllowlist, byCodepoint, callSiteCallers, callSiteDescription, callSiteLabel, callSiteMetadata, circularFk, classifySensitivity, commitOrderedHardDelete, compareToBaseline, containerInstanceKeyFromUserInput, containerLongSleepAfter, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, countWithoutIndex, cronEveryMinute, crossModuleTableWrite, dedupeCacheKeys, dispatchCycle, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, filterAfterIndexScan, filterOnPrimaryKey, filterWithoutIndex, flagGatesSecurityWithUnsafeDefault, flagReadInSubscription, fromServerSchema, geoIndexFieldNotGeopoint, geoIndexUnused, globalTableNearColumnLimit, gradeFromScore, hardcodedSecret, helperRole, hotShard, httpActionMissingAuthGuard, httpActionResponseHeaderInjection, hyperdriveOutsideAction, identityUndeclaredClaimTrusted, imagesUrlSourceFromUserInput, indexReferencesUnknownField, indexUtilization, insertManyUnsafeUserData, isReachableSite, kvUnscopedUserKeyIdor, mailInboundDispatchWithoutVerify, mailRecipientFromRequestInput, maskUncoveredPiiColumn, maskWeakHashStrategyOnPii, maskedRelationLeakViaWith, mutatorFullRowReplace, mutatorWithoutOwnerScope, nondeterministicQueryMutation, normalizeIdUsedAsAuthorization, notifyMissingPushConfig, notifySendOutsideAction, outputProjectionMissingOnPublicRead, ownerFieldFromArgsNotAuth, parseAdvisorMap, paymentCreateWithoutAuthorize, paymentWebhookWideTolerance, plaintextSecretInWranglerVariables, policyReferencesUnknownTable, privilegedDispatchUnvalidatedPayload, privilegedFanoutFromPublicProcedure, procedureWithoutStructuredEvent, publicArgumentUsesAny, publicMutationWithoutRatelimit, publicTableRlsOptoutConfusion, queueDispatchCycle, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, readCallSiteCallers, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, selfRescheduleWithoutProgress, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, throughRelationMissingUniqueIndex, topicTooManySubscriptions, ttlFieldNotTimestamp, unboundedCollectOnOpenRange, unboundedLoop, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|
|
5309
|
+
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorCallEdge, type AdvisorCallSiteScope, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, type AdvisorCountRead, type AdvisorCron, type AdvisorExportSink, type AdvisorFailOpenGuard, type AdvisorFlagRead, type AdvisorFlagSecurityDefault, type AdvisorGeoIndexUsage, type AdvisorHttpActionGuard, type AdvisorHttpHeaderWrite, type AdvisorHyperdriveCall, type AdvisorIdentityClaimRead, type AdvisorImageDeliveryUrlAccess, type AdvisorIndex, type AdvisorIndexHit, type AdvisorInsertWrite, type AdvisorKeyedRelation, type AdvisorKvKeyAccess, type AdvisorMailRecipientAccess, type AdvisorMap, type AdvisorMaskProcedure, type AdvisorMaskStrategy, type AdvisorModule, type AdvisorMutatorDeclaration, type AdvisorMutatorWrite, type AdvisorNondeterministicCall, type AdvisorNormalizeIdAuthorization, type AdvisorNotifyCall, type AdvisorNotifyConfig, type AdvisorOpenShardAccess, type AdvisorOwnerFieldWrite, type AdvisorPaymentWebhook, type AdvisorPrivilegedDispatch, type AdvisorProcedureProtection, type AdvisorQueryRead, type AdvisorQueue, type AdvisorQueueTuning, type AdvisorR2sqlCall, type AdvisorRatelimitKeySelector, type AdvisorRawRowReturn, type AdvisorRelation, type AdvisorRelationLoad, type AdvisorRlsProcedure, type AdvisorRowEffect, type AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, type AdvisorThroughRelation, type AdvisorUnboundedLoop, type AdvisorVectorNamespaceAccess, type AdvisorWorkflow, type AdvisorWorkflowCall, type AdvisorWranglerVariable, type AnalyticsMetricsOptions, type AnalyticsMetricsSource, type AnalyticsRuntimeMetrics, type BaselineComparison, type CallSiteMetadata, type Category, type CheckResult, type Coverage, type Facing, type Finding, type Grade, type Level, type Lint, type LintContext, type LintSource, MAP_VERSION, type MapSummary, type ProcedureDelta, type ProcedureScore, type ProjectScore, RUNTIME_LINTS, RunAdvisorOptions, STATIC_LINTS, type ScoreAdvisorOptions, type Sensitivity, type SensitivityLevel, actionFetchSsrf, actionWithoutErrorHandling, adminRouteWithoutGuard, aiRawRunEscapeHatch, aiRunWithoutLogging, aiToolSideEffectPromptInjection, aiUnboundedGenerationPublic, allowUnauthenticatedShardAccessEnabled, authApiCallWithoutHeaders, authCsrfCheckDisabled, authEmailVerificationDisabled, authScimWithoutTransactions, authSecureCookiesDisabled, authSessionFreshageZero, authTrustedOriginsWildcard, browserAllowPrivateTargets, browserUserUrlWithoutAllowlist, byCodepoint, callSiteCallers, callSiteDescription, callSiteLabel, callSiteMetadata, circularFk, classifySensitivity, commitOrderedHardDelete, compareToBaseline, containerInstanceKeyFromUserInput, containerLongSleepAfter, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, countWithoutIndex, cronEveryMinute, crossModuleTableWrite, dedupeCacheKeys, dispatchCycle, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, filterAfterIndexScan, filterOnPrimaryKey, filterWithoutIndex, flagGatesSecurityWithUnsafeDefault, flagReadInSubscription, fromServerSchema, geoIndexFieldNotGeopoint, geoIndexUnused, globalTableNearColumnLimit, gradeFromScore, hardcodedSecret, helperRole, hotShard, httpActionMissingAuthGuard, httpActionResponseHeaderInjection, hyperdriveOutsideAction, identityUndeclaredClaimTrusted, imagesUrlSourceFromUserInput, indexReferencesUnknownField, indexUtilization, insertManyUnsafeUserData, isReachableSite, kvUnscopedUserKeyIdor, mailInboundDispatchWithoutVerify, mailRecipientFromRequestInput, maskUncoveredPiiColumn, maskWeakHashStrategyOnPii, maskedRelationLeakViaWith, mutatorFullRowReplace, mutatorWithoutOwnerScope, nondeterministicQueryMutation, normalizeIdUsedAsAuthorization, notifyMissingPushConfig, notifySendOutsideAction, openShardAccess, outputProjectionMissingOnPublicRead, ownerFieldFromArgsNotAuth, parseAdvisorMap, paymentCreateWithoutAuthorize, paymentWebhookWideTolerance, plaintextSecretInWranglerVariables, policyReferencesUnknownTable, privilegedDispatchUnvalidatedPayload, privilegedFanoutFromPublicProcedure, procedureWithoutStructuredEvent, publicArgumentUsesAny, publicMutationWithoutRatelimit, publicTableRlsOptoutConfusion, queueDispatchCycle, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, readCallSiteCallers, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, selfRescheduleWithoutProgress, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, throughRelationMissingUniqueIndex, topicTooManySubscriptions, ttlFieldNotTimestamp, unboundedCollectOnOpenRange, unboundedLoop, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|
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-CkVPZcVe.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 W from"./packem_shared/authCsrfCheckDisabled-CRIVsvb9.mjs";import I from"./packem_shared/authEmailVerificationDisabled-BjFlnHr2.mjs";import T from"./packem_shared/authScimWithoutTransactions-B5ATiz5A.mjs";import x from"./packem_shared/authSecureCookiesDisabled-By8PVum3.mjs";import C from"./packem_shared/authSessionFreshageZero-DuxX3Ln9.mjs";import k from"./packem_shared/authTrustedOriginsWildcard-BKIh6788.mjs";import N 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 D from"./packem_shared/containerInstanceKeyFromUserInput-Bl-tAzKV.mjs";import E from"./packem_shared/containerLongSleepAfter-CVvHEGYC.mjs";import P from"./packem_shared/containerOversizedInstance-Bx89uR7E.mjs";import $ from"./packem_shared/containerPublicInternet-BFfZf_P4.mjs";import q from"./packem_shared/containerRuntimeEgressRelaxation-4tMrhq1k.mjs";import L from"./packem_shared/containerStartEnableInternetOverride-mN_kuRtk.mjs";import K from"./packem_shared/countWithoutIndex-DjQFNBrw.mjs";import G from"./packem_shared/cronEveryMinute-CtpEAbxs.mjs";import _ from"./packem_shared/crossModuleTableWrite-DjiVTAwK.mjs";import z from"./packem_shared/dispatchCycle-BwuXRDiL.mjs";import H from"./packem_shared/duplicateIndex-Cip6-Rpu.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-BeHVg4w3.mjs";import oo from"./packem_shared/filterWithoutIndex-BGv3jbgg.mjs";import eo from"./packem_shared/flagGatesSecurityWithUnsafeDefault-B5FBDF8c.mjs";import ro from"./packem_shared/flagReadInSubscription-DabIhYGD.mjs";import to from"./packem_shared/geoIndexFieldNotGeopoint-BMQuok2-.mjs";import io from"./packem_shared/geoIndexUnused-D7C9Qr4U.mjs";import no from"./packem_shared/globalTableNearColumnLimit-BFbBBd6A.mjs";import ao from"./packem_shared/hardcodedSecret-Bw_4FYrs.mjs";import mo from"./packem_shared/httpActionMissingAuthGuard-DhMIs1EI.mjs";import lo from"./packem_shared/httpActionResponseHeaderInjection-mcRYd3Zw.mjs";import so from"./packem_shared/hyperdriveOutsideAction-CPDdGP2g.mjs";import po from"./packem_shared/identityUndeclaredClaimTrusted-D1sEd5lr.mjs";import fo from"./packem_shared/imagesUrlSourceFromUserInput-BJXotuyO.mjs";import co from"./packem_shared/indexReferencesUnknownField-DKz4-bla.mjs";import uo from"./packem_shared/insertManyUnsafeUserData-DWE8d_DF.mjs";import ho from"./packem_shared/kvUnscopedUserKeyIdor-DhymglIq.mjs";import go from"./packem_shared/mailInboundDispatchWithoutVerify-CWwqXyPX.mjs";import bo from"./packem_shared/mailRecipientFromRequestInput-BVXsZ4Xf.mjs";import yo from"./packem_shared/maskUncoveredPiiColumn-axEka4nd.mjs";import So from"./packem_shared/maskWeakHashStrategyOnPii-DJasagzX.mjs";import wo from"./packem_shared/maskedRelationLeakViaWith-CIFij6vE.mjs";import{e as a}from"./packem_shared/finding-NrKO8idM.mjs";import vo from"./packem_shared/mutatorFullRowReplace-BzRpZ47r.mjs";import Ao from"./packem_shared/mutatorWithoutOwnerScope-BoS81ns0.mjs";import Ro from"./packem_shared/nondeterministicQueryMutation-Bbb-AGOS.mjs";import Uo from"./packem_shared/normalizeIdUsedAsAuthorization-BXN-Can6.mjs";import Wo from"./packem_shared/notifyMissingPushConfig-DeQMoNwm.mjs";import Io from"./packem_shared/notifySendOutsideAction-BJrDkr4h.mjs";import To from"./packem_shared/outputProjectionMissingOnPublicRead-DWSeo7oC.mjs";import xo from"./packem_shared/ownerFieldFromArgsNotAuth-J8Xbz5uI.mjs";import Co from"./packem_shared/paymentCreateWithoutAuthorize-CdenWpXD.mjs";import ko from"./packem_shared/paymentWebhookWideTolerance-DVhJB0Ip.mjs";import No from"./packem_shared/plaintextSecretInWranglerVariables-bNkqmNqV.mjs";import Fo from"./packem_shared/policyReferencesUnknownTable-CIKuRZ5Y.mjs";import Mo from"./packem_shared/privilegedDispatchUnvalidatedPayload-BM3NtT57.mjs";import Oo from"./packem_shared/privilegedFanoutFromPublicProcedure-DV188gHQ.mjs";import Do from"./packem_shared/procedureWithoutStructuredEvent-BcOE0mFx.mjs";import Eo from"./packem_shared/publicArgumentUsesAny-BDEvMA8Q.mjs";import Po from"./packem_shared/publicMutationWithoutRatelimit-Bd-rRxnz.mjs";import $o from"./packem_shared/publicTableRlsOptoutConfusion-CbNk75Xo.mjs";import qo from"./packem_shared/queueDispatchCycle-84yt1IR-.mjs";import Lo from"./packem_shared/queueWithoutDlq-BvHz3Opg.mjs";import Ko from"./packem_shared/r2sqlOutsideAction-BdLiLOAX.mjs";import Go from"./packem_shared/ratelimitDefaultMemoryStore-Dj0Kk7t9.mjs";import _o from"./packem_shared/ratelimitKeySpoofableOrGlobal-DHMl74hR.mjs";import zo from"./packem_shared/ratelimitMiddlewareFailOpen-Di2t8pDc.mjs";import Ho from"./packem_shared/relationReferencesUnknownField-Cl6mik8w.mjs";import Bo from"./packem_shared/relationReferencesUnknownTable-vYjirSxf.mjs";import jo from"./packem_shared/rlsUncoveredTable-CZ4ie4gX.mjs";import Vo from"./packem_shared/selfRescheduleWithoutProgress-CQNZI4FA.mjs";import Qo from"./packem_shared/shapeTargetsGlobalTable-Bu3eEDic.mjs";import Xo from"./packem_shared/shapeUnknownTable-CREfNnWi.mjs";import Zo from"./packem_shared/signupMutationWithoutDisposableGating-BdKwtxDP.mjs";import Jo from"./packem_shared/softDeleteIncludeDeletedFromArgs-C7Ugg4zb.mjs";import Yo from"./packem_shared/sqlInjectionRisk-BYRllgPV.mjs";import oe from"./packem_shared/storageGenerateUploadUrlNoContentTypePin-CrwFuo83.mjs";import ee from"./packem_shared/storageKeyFromUserArgs-3vkxmI3v.mjs";import re from"./packem_shared/storagePresignedUrlForPrivateContent-C3KeV5tV.mjs";import te from"./packem_shared/storageUploadWithoutContentTypeAllowlist-BXoK_QWE.mjs";import ie from"./packem_shared/storageUploadWithoutMaxSize-CW7uKvSi.mjs";import ne from"./packem_shared/tableWithoutInsert-ClJp_jDr.mjs";import ae from"./packem_shared/throughRelationMissingUniqueIndex-Cg5e3GkS.mjs";import me from"./packem_shared/topicTooManySubscriptions-CiZhFm9r.mjs";import le from"./packem_shared/ttlFieldNotTimestamp-lnb5nmM6.mjs";import{s as se,q as pe,c as fe}from"./packem_shared/helpers-DdZ_pyR3.mjs";import ce from"./packem_shared/unboundedCollectOnOpenRange-DHy2RUL7.mjs";import de from"./packem_shared/unboundedLoop-DxN3_apu.mjs";import ue from"./packem_shared/unboundedStringArgument-jZnCbwB0.mjs";import he from"./packem_shared/unindexedForeignKey-Dypgn8uH.mjs";import ge from"./packem_shared/unindexedRelationTarget-Dj2_NOCm.mjs";import be from"./packem_shared/unrestrictedWhereBranch-CcIBmHik.mjs";import ye from"./packem_shared/userCreatingMutationWithoutCaptcha-D4TZEpgz.mjs";import Se from"./packem_shared/vectorsNamespaceFromUserInput-CFa2qhFU.mjs";import we from"./packem_shared/workflowDuplicateStepName-B6eAJzwA.mjs";import ve from"./packem_shared/workflowUnknownTarget-DEKB5H0g.mjs";import Ae from"./packem_shared/workflowUnused-DHwwE-1P.mjs";import{callSiteCallers as Kt,callSiteDescription as Gt,callSiteLabel as _t,callSiteMetadata as zt,helperRole as Ht,isReachableSite as Bt,readCallSiteCallers as jt}from"./packem_shared/callSiteCallers-DArHfQSU.mjs";import{compareToBaseline as Qt,parseAdvisorMap as Xt}from"./packem_shared/compareToBaseline-CUG59IOy.mjs";import{gradeFromScore as Jt}from"./packem_shared/gradeFromScore-KSt58rj1.mjs";import{MAP_VERSION as oi,byCodepoint as ei,scoreAdvisor as ri}from"./packem_shared/MAP_VERSION-MQ5W2B6n.mjs";import{default as ii}from"./packem_shared/classifySensitivity-JnjaTGYi.mjs";import{fromServerSchema as ai}from"./packem_shared/fromServerSchema-KWJd4PLE.mjs";const Re={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(o=>a(m,{cacheKey:`migration_stale_import:${o.file}:${o.line.toString()}:${o.moduleSpecifier}`,detail:`\`${o.file}\` (line ${o.line.toString()}) still imports \`${o.moduleSpecifier}\`. Finish the port — see \`${Re[o.platform]}\` — or move the import out of \`lunora/\` if you genuinely still read from ${o.platform}.`,metadata:{file:o.file,line:o.line,moduleSpecifier:o.moduleSpecifier,platform:o.platform}})),source:"static",title:"Stale migration import"},Ue=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`}]]),We={level:"WARN",scope:r=>`it loads every row of "${r}"`},l={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 o=[],i=se(r.schema);for(const e of r.queries??[]){if(e.terminal!=="collect"||e.hasIndex||e.table===""||e.hasFilter)continue;const t=i.get(e.table),{level:n,scope:s}=Ue.get(t??"")??We,p=pe(e),f=n==="WARN"?` A live subscription over this query records a whole-table dependency, so every write to "${e.table}" re-runs it and re-sends the full result to each subscribed socket.`:" Cap it with `.take(n)` if that count can grow.";o.push(a(l,{cacheKey:`unbounded_collect:${e.file}:${e.line.toString()}:${e.table}`,detail:`Query on "${e.table}" at ${p} calls .collect() with no index and no filter — ${s(e.table)}.${f}`,level:n,metadata:{...fe(e),shardKind:t??"unknown",table:e.table}}))}return o},source:"static",title:"Unbounded collect"},Ie=[co,Bo,Ho,ve,we,Xo,Q,X,Z,B,no,j,to,io,V,le,O,M,K,_,he,ge,ae,H,ne,Ae,qo,Lo,G,me,Y,oo,J,l,ce,de,z,Vo,Qo,vo,Ao,Ro,so,Ko,U,Fo,jo,yo,So,E,P,$,Po,be,ye,Zo,Eo,ue,ao,Yo,y,Co,go,Go,N,Oo,Do,uo,A,g,b,xo,ee,ho,D,S,w,Se,bo,F,Mo,L,q,T,k,W,x,I,C,fo,_o,$o,R,te,ie,oe,re,mo,lo,zo,eo,ro,v,po,ko,Jo,wo,To,Uo,Io,Wo,No,m],Te=[u,h,d],xe=[...Ie,...Te],$t=(r,o={})=>{const i=o.lints??xe,e=[];for(const t of i)o.source!==void 0&&t.source!==o.source||e.push(...t.run(r));return c(e)};export{xe as ALL_LINTS,oi as MAP_VERSION,Te as RUNTIME_LINTS,Ie 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,W as authCsrfCheckDisabled,I as authEmailVerificationDisabled,T as authScimWithoutTransactions,x as authSecureCookiesDisabled,C as authSessionFreshageZero,k as authTrustedOriginsWildcard,N as browserAllowPrivateTargets,F as browserUserUrlWithoutAllowlist,ei as byCodepoint,Kt as callSiteCallers,Gt as callSiteDescription,_t as callSiteLabel,zt as callSiteMetadata,M as circularFk,ii as classifySensitivity,O as commitOrderedHardDelete,Qt as compareToBaseline,D as containerInstanceKeyFromUserInput,E as containerLongSleepAfter,P as containerOversizedInstance,$ as containerPublicInternet,q as containerRuntimeEgressRelaxation,L as containerStartEnableInternetOverride,K as countWithoutIndex,G as cronEveryMinute,_ 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,oo as filterWithoutIndex,eo as flagGatesSecurityWithUnsafeDefault,ro as flagReadInSubscription,ai as fromServerSchema,to as geoIndexFieldNotGeopoint,io as geoIndexUnused,no as globalTableNearColumnLimit,Jt as gradeFromScore,ao as hardcodedSecret,Ht as helperRole,u as hotShard,mo as httpActionMissingAuthGuard,lo as httpActionResponseHeaderInjection,so as hyperdriveOutsideAction,po as identityUndeclaredClaimTrusted,fo as imagesUrlSourceFromUserInput,co as indexReferencesUnknownField,h as indexUtilization,uo as insertManyUnsafeUserData,Bt as isReachableSite,ho as kvUnscopedUserKeyIdor,go as mailInboundDispatchWithoutVerify,bo as mailRecipientFromRequestInput,yo as maskUncoveredPiiColumn,So as maskWeakHashStrategyOnPii,wo as maskedRelationLeakViaWith,vo as mutatorFullRowReplace,Ao as mutatorWithoutOwnerScope,Ro as nondeterministicQueryMutation,Uo as normalizeIdUsedAsAuthorization,Wo as notifyMissingPushConfig,Io as notifySendOutsideAction,To as outputProjectionMissingOnPublicRead,xo as ownerFieldFromArgsNotAuth,Xt as parseAdvisorMap,Co as paymentCreateWithoutAuthorize,ko as paymentWebhookWideTolerance,No as plaintextSecretInWranglerVariables,Fo as policyReferencesUnknownTable,Mo as privilegedDispatchUnvalidatedPayload,Oo as privilegedFanoutFromPublicProcedure,Do as procedureWithoutStructuredEvent,Eo as publicArgumentUsesAny,Po as publicMutationWithoutRatelimit,$o as publicTableRlsOptoutConfusion,qo as queueDispatchCycle,Lo as queueWithoutDlq,Ko as r2sqlOutsideAction,Go as ratelimitDefaultMemoryStore,_o as ratelimitKeySpoofableOrGlobal,zo as ratelimitMiddlewareFailOpen,jt as readCallSiteCallers,Ho as relationReferencesUnknownField,Bo as relationReferencesUnknownTable,jo as rlsUncoveredTable,$t as runAdvisor,ri as scoreAdvisor,Vo as selfRescheduleWithoutProgress,Qo as shapeTargetsGlobalTable,Xo as shapeUnknownTable,Zo as signupMutationWithoutDisposableGating,Jo as softDeleteIncludeDeletedFromArgs,Yo as sqlInjectionRisk,oe as storageGenerateUploadUrlNoContentTypePin,ee as storageKeyFromUserArgs,re as storagePresignedUrlForPrivateContent,te as storageUploadWithoutContentTypeAllowlist,ie as storageUploadWithoutMaxSize,ne as tableWithoutInsert,ae as throughRelationMissingUniqueIndex,me as topicTooManySubscriptions,le as ttlFieldNotTimestamp,ce as unboundedCollectOnOpenRange,de as unboundedLoop,ue as unboundedStringArgument,he as unindexedForeignKey,ge as unindexedRelationTarget,be as unrestrictedWhereBranch,ye as userCreatingMutationWithoutCaptcha,Se as vectorsNamespaceFromUserInput,we as workflowDuplicateStepName,ve as workflowUnknownTarget,Ae 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-CkVPZcVe.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 W from"./packem_shared/authCsrfCheckDisabled-CRIVsvb9.mjs";import I from"./packem_shared/authEmailVerificationDisabled-BjFlnHr2.mjs";import T from"./packem_shared/authScimWithoutTransactions-B5ATiz5A.mjs";import x from"./packem_shared/authSecureCookiesDisabled-By8PVum3.mjs";import C from"./packem_shared/authSessionFreshageZero-DuxX3Ln9.mjs";import k from"./packem_shared/authTrustedOriginsWildcard-BKIh6788.mjs";import N 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 D from"./packem_shared/containerInstanceKeyFromUserInput-Bl-tAzKV.mjs";import E from"./packem_shared/containerLongSleepAfter-CVvHEGYC.mjs";import P from"./packem_shared/containerOversizedInstance-Bx89uR7E.mjs";import $ from"./packem_shared/containerPublicInternet-BFfZf_P4.mjs";import q from"./packem_shared/containerRuntimeEgressRelaxation-4tMrhq1k.mjs";import L from"./packem_shared/containerStartEnableInternetOverride-mN_kuRtk.mjs";import K from"./packem_shared/countWithoutIndex-DjQFNBrw.mjs";import G from"./packem_shared/cronEveryMinute-CtpEAbxs.mjs";import _ from"./packem_shared/crossModuleTableWrite-DjiVTAwK.mjs";import z from"./packem_shared/dispatchCycle-BwuXRDiL.mjs";import H from"./packem_shared/duplicateIndex-Cip6-Rpu.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-BeHVg4w3.mjs";import oo from"./packem_shared/filterWithoutIndex-BGv3jbgg.mjs";import eo from"./packem_shared/flagGatesSecurityWithUnsafeDefault-B5FBDF8c.mjs";import ro from"./packem_shared/flagReadInSubscription-DabIhYGD.mjs";import to from"./packem_shared/geoIndexFieldNotGeopoint-BMQuok2-.mjs";import io from"./packem_shared/geoIndexUnused-D7C9Qr4U.mjs";import no from"./packem_shared/globalTableNearColumnLimit-BFbBBd6A.mjs";import ao from"./packem_shared/hardcodedSecret-Bw_4FYrs.mjs";import mo from"./packem_shared/httpActionMissingAuthGuard-DhMIs1EI.mjs";import lo from"./packem_shared/httpActionResponseHeaderInjection-mcRYd3Zw.mjs";import so from"./packem_shared/hyperdriveOutsideAction-CPDdGP2g.mjs";import po from"./packem_shared/identityUndeclaredClaimTrusted-D1sEd5lr.mjs";import fo from"./packem_shared/imagesUrlSourceFromUserInput-BJXotuyO.mjs";import co from"./packem_shared/indexReferencesUnknownField-DKz4-bla.mjs";import uo from"./packem_shared/insertManyUnsafeUserData-DWE8d_DF.mjs";import ho from"./packem_shared/kvUnscopedUserKeyIdor-DhymglIq.mjs";import go from"./packem_shared/mailInboundDispatchWithoutVerify-CWwqXyPX.mjs";import bo from"./packem_shared/mailRecipientFromRequestInput-BVXsZ4Xf.mjs";import yo from"./packem_shared/maskUncoveredPiiColumn-axEka4nd.mjs";import So from"./packem_shared/maskWeakHashStrategyOnPii-DJasagzX.mjs";import wo from"./packem_shared/maskedRelationLeakViaWith-CIFij6vE.mjs";import{e as a}from"./packem_shared/finding-NrKO8idM.mjs";import vo from"./packem_shared/mutatorFullRowReplace-BzRpZ47r.mjs";import Ao from"./packem_shared/mutatorWithoutOwnerScope-BoS81ns0.mjs";import Ro from"./packem_shared/nondeterministicQueryMutation-Bbb-AGOS.mjs";import Uo from"./packem_shared/normalizeIdUsedAsAuthorization-BXN-Can6.mjs";import Wo from"./packem_shared/notifyMissingPushConfig-DeQMoNwm.mjs";import Io from"./packem_shared/notifySendOutsideAction-BJrDkr4h.mjs";import To from"./packem_shared/openShardAccess-CVMAgmmY.mjs";import xo from"./packem_shared/outputProjectionMissingOnPublicRead-DWSeo7oC.mjs";import Co from"./packem_shared/ownerFieldFromArgsNotAuth-J8Xbz5uI.mjs";import ko from"./packem_shared/paymentCreateWithoutAuthorize-CdenWpXD.mjs";import No from"./packem_shared/paymentWebhookWideTolerance-DVhJB0Ip.mjs";import Fo from"./packem_shared/plaintextSecretInWranglerVariables-bNkqmNqV.mjs";import Mo from"./packem_shared/policyReferencesUnknownTable-CIKuRZ5Y.mjs";import Oo from"./packem_shared/privilegedDispatchUnvalidatedPayload-BM3NtT57.mjs";import Do from"./packem_shared/privilegedFanoutFromPublicProcedure-DV188gHQ.mjs";import Eo from"./packem_shared/procedureWithoutStructuredEvent-BcOE0mFx.mjs";import Po from"./packem_shared/publicArgumentUsesAny-BDEvMA8Q.mjs";import $o from"./packem_shared/publicMutationWithoutRatelimit-Bd-rRxnz.mjs";import qo from"./packem_shared/publicTableRlsOptoutConfusion-CbNk75Xo.mjs";import Lo from"./packem_shared/queueDispatchCycle-84yt1IR-.mjs";import Ko from"./packem_shared/queueWithoutDlq-BvHz3Opg.mjs";import Go from"./packem_shared/r2sqlOutsideAction-BdLiLOAX.mjs";import _o from"./packem_shared/ratelimitDefaultMemoryStore-Dj0Kk7t9.mjs";import zo from"./packem_shared/ratelimitKeySpoofableOrGlobal-DHMl74hR.mjs";import Ho from"./packem_shared/ratelimitMiddlewareFailOpen-Di2t8pDc.mjs";import Bo from"./packem_shared/relationReferencesUnknownField-Cl6mik8w.mjs";import jo from"./packem_shared/relationReferencesUnknownTable-vYjirSxf.mjs";import Vo from"./packem_shared/rlsUncoveredTable-CZ4ie4gX.mjs";import Qo from"./packem_shared/selfRescheduleWithoutProgress-CQNZI4FA.mjs";import Xo from"./packem_shared/shapeTargetsGlobalTable-Bu3eEDic.mjs";import Zo from"./packem_shared/shapeUnknownTable-CREfNnWi.mjs";import Jo from"./packem_shared/signupMutationWithoutDisposableGating-BdKwtxDP.mjs";import Yo from"./packem_shared/softDeleteIncludeDeletedFromArgs-C7Ugg4zb.mjs";import oe from"./packem_shared/sqlInjectionRisk-BYRllgPV.mjs";import ee from"./packem_shared/storageGenerateUploadUrlNoContentTypePin-CrwFuo83.mjs";import re from"./packem_shared/storageKeyFromUserArgs-3vkxmI3v.mjs";import te from"./packem_shared/storagePresignedUrlForPrivateContent-C3KeV5tV.mjs";import ie from"./packem_shared/storageUploadWithoutContentTypeAllowlist-BXoK_QWE.mjs";import ne from"./packem_shared/storageUploadWithoutMaxSize-CW7uKvSi.mjs";import ae from"./packem_shared/tableWithoutInsert-ClJp_jDr.mjs";import me from"./packem_shared/throughRelationMissingUniqueIndex-Cg5e3GkS.mjs";import le from"./packem_shared/topicTooManySubscriptions-CiZhFm9r.mjs";import se from"./packem_shared/ttlFieldNotTimestamp-lnb5nmM6.mjs";import{s as pe,q as fe,c as ce}from"./packem_shared/helpers-DdZ_pyR3.mjs";import de from"./packem_shared/unboundedCollectOnOpenRange-DHy2RUL7.mjs";import ue from"./packem_shared/unboundedLoop-DxN3_apu.mjs";import he from"./packem_shared/unboundedStringArgument-jZnCbwB0.mjs";import ge from"./packem_shared/unindexedForeignKey-Dypgn8uH.mjs";import be from"./packem_shared/unindexedRelationTarget-Dj2_NOCm.mjs";import ye from"./packem_shared/unrestrictedWhereBranch-CcIBmHik.mjs";import Se from"./packem_shared/userCreatingMutationWithoutCaptcha-D4TZEpgz.mjs";import we from"./packem_shared/vectorsNamespaceFromUserInput-CFa2qhFU.mjs";import ve from"./packem_shared/workflowDuplicateStepName-B6eAJzwA.mjs";import Ae from"./packem_shared/workflowUnknownTarget-DEKB5H0g.mjs";import Re from"./packem_shared/workflowUnused-DHwwE-1P.mjs";import{callSiteCallers as _t,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 oi}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 li}from"./packem_shared/fromServerSchema-KWJd4PLE.mjs";const Ue={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(o=>a(m,{cacheKey:`migration_stale_import:${o.file}:${o.line.toString()}:${o.moduleSpecifier}`,detail:`\`${o.file}\` (line ${o.line.toString()}) still imports \`${o.moduleSpecifier}\`. Finish the port — see \`${Ue[o.platform]}\` — or move the import out of \`lunora/\` if you genuinely still read from ${o.platform}.`,metadata:{file:o.file,line:o.line,moduleSpecifier:o.moduleSpecifier,platform:o.platform}})),source:"static",title:"Stale migration import"},We=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`}]]),Ie={level:"WARN",scope:r=>`it loads every row of "${r}"`},l={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 o=[],i=pe(r.schema);for(const e of r.queries??[]){if(e.terminal!=="collect"||e.hasIndex||e.table===""||e.hasFilter)continue;const t=i.get(e.table),{level:n,scope:s}=We.get(t??"")??Ie,p=fe(e),f=n==="WARN"?` A live subscription over this query records a whole-table dependency, so every write to "${e.table}" re-runs it and re-sends the full result to each subscribed socket.`:" Cap it with `.take(n)` if that count can grow.";o.push(a(l,{cacheKey:`unbounded_collect:${e.file}:${e.line.toString()}:${e.table}`,detail:`Query on "${e.table}" at ${p} calls .collect() with no index and no filter — ${s(e.table)}.${f}`,level:n,metadata:{...ce(e),shardKind:t??"unknown",table:e.table}}))}return o},source:"static",title:"Unbounded collect"},Te=[co,jo,Bo,Ae,ve,Zo,Q,X,Z,B,no,j,to,io,V,se,O,M,K,_,ge,be,me,H,ae,Re,Lo,Ko,G,le,Y,oo,J,l,de,ue,z,Qo,Xo,vo,Ao,Ro,so,Go,U,Mo,Vo,yo,So,E,P,$,$o,ye,Se,Jo,Po,he,ao,oe,y,ko,go,_o,N,Do,Eo,uo,A,g,b,Co,re,ho,D,S,w,we,bo,F,Oo,L,q,T,k,W,x,I,C,fo,zo,qo,R,To,ie,ne,ee,te,mo,lo,Ho,eo,ro,v,po,No,Yo,wo,xo,Uo,Io,Wo,Fo,m],xe=[u,h,d],Ce=[...Te,...xe],Lt=(r,o={})=>{const i=o.lints??Ce,e=[];for(const t of i)o.source!==void 0&&t.source!==o.source||e.push(...t.run(r));return c(e)};export{Ce as ALL_LINTS,ri as MAP_VERSION,xe as RUNTIME_LINTS,Te 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,W as authCsrfCheckDisabled,I as authEmailVerificationDisabled,T as authScimWithoutTransactions,x as authSecureCookiesDisabled,C as authSessionFreshageZero,k as authTrustedOriginsWildcard,N as browserAllowPrivateTargets,F as browserUserUrlWithoutAllowlist,ti as byCodepoint,_t as callSiteCallers,zt as callSiteDescription,Ht as callSiteLabel,Bt as callSiteMetadata,M as circularFk,ai as classifySensitivity,O as commitOrderedHardDelete,Zt as compareToBaseline,D as containerInstanceKeyFromUserInput,E as containerLongSleepAfter,P as containerOversizedInstance,$ as containerPublicInternet,q as containerRuntimeEgressRelaxation,L as containerStartEnableInternetOverride,K as countWithoutIndex,G as cronEveryMinute,_ 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,oo as filterWithoutIndex,eo as flagGatesSecurityWithUnsafeDefault,ro as flagReadInSubscription,li as fromServerSchema,to as geoIndexFieldNotGeopoint,io as geoIndexUnused,no as globalTableNearColumnLimit,oi as gradeFromScore,ao as hardcodedSecret,jt as helperRole,u as hotShard,mo as httpActionMissingAuthGuard,lo as httpActionResponseHeaderInjection,so as hyperdriveOutsideAction,po as identityUndeclaredClaimTrusted,fo as imagesUrlSourceFromUserInput,co as indexReferencesUnknownField,h as indexUtilization,uo as insertManyUnsafeUserData,Vt as isReachableSite,ho as kvUnscopedUserKeyIdor,go as mailInboundDispatchWithoutVerify,bo as mailRecipientFromRequestInput,yo as maskUncoveredPiiColumn,So as maskWeakHashStrategyOnPii,wo as maskedRelationLeakViaWith,vo as mutatorFullRowReplace,Ao as mutatorWithoutOwnerScope,Ro as nondeterministicQueryMutation,Uo as normalizeIdUsedAsAuthorization,Wo as notifyMissingPushConfig,Io as notifySendOutsideAction,To as openShardAccess,xo as outputProjectionMissingOnPublicRead,Co as ownerFieldFromArgsNotAuth,Jt as parseAdvisorMap,ko as paymentCreateWithoutAuthorize,No as paymentWebhookWideTolerance,Fo as plaintextSecretInWranglerVariables,Mo as policyReferencesUnknownTable,Oo as privilegedDispatchUnvalidatedPayload,Do as privilegedFanoutFromPublicProcedure,Eo as procedureWithoutStructuredEvent,Po as publicArgumentUsesAny,$o as publicMutationWithoutRatelimit,qo as publicTableRlsOptoutConfusion,Lo as queueDispatchCycle,Ko as queueWithoutDlq,Go as r2sqlOutsideAction,_o as ratelimitDefaultMemoryStore,zo as ratelimitKeySpoofableOrGlobal,Ho as ratelimitMiddlewareFailOpen,Qt as readCallSiteCallers,Bo as relationReferencesUnknownField,jo as relationReferencesUnknownTable,Vo as rlsUncoveredTable,Lt as runAdvisor,ii as scoreAdvisor,Qo as selfRescheduleWithoutProgress,Xo as shapeTargetsGlobalTable,Zo as shapeUnknownTable,Jo as signupMutationWithoutDisposableGating,Yo as softDeleteIncludeDeletedFromArgs,oe as sqlInjectionRisk,ee as storageGenerateUploadUrlNoContentTypePin,re as storageKeyFromUserArgs,te as storagePresignedUrlForPrivateContent,ie as storageUploadWithoutContentTypeAllowlist,ne as storageUploadWithoutMaxSize,ae as tableWithoutInsert,me as throughRelationMissingUniqueIndex,le as topicTooManySubscriptions,se as ttlFieldNotTimestamp,de as unboundedCollectOnOpenRange,ue as unboundedLoop,he as unboundedStringArgument,ge as unindexedForeignKey,be as unindexedRelationTarget,ye as unrestrictedWhereBranch,Se as userCreatingMutationWithoutCaptcha,we as vectorsNamespaceFromUserInput,ve as workflowDuplicateStepName,Ae as workflowUnknownTarget,Re as workflowUnused};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as t}from"./finding-NrKO8idM.mjs";const n={categories:["SECURITY"],description:"The app enables, or may enable, `allowUnauthenticatedShardAccess`, so any caller — signed in or not — may target any shard. The templates ship it for the local demo; it must not reach production by accident.",facing:"EXTERNAL",level:"ERROR",name:"open_shard_access",remediation:'Add auth and replace the flag with a shard gate: `.extend(() => ({ authorizeShard: ({ identity, shardKey }) => shardKey === "__root__" || identity?.userId === ownerOf(shardKey) }))`. If open access is genuinely intended, deploy with `--allow-open-shards`.',run:a=>(a.openShardAccess??[]).map(e=>t(n,{cacheKey:`open_shard_access:${e.file}:${e.line.toString()}`,detail:`${e.file}:${e.line.toString()} enables the open-shard option (any value but false) — any caller may target any shard. Gate shards with \`authorizeShard\` before deploying.`,metadata:{file:e.file,line:e.line}})),source:"static",title:"Open shard access"};export{n as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/advisor",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.246",
|
|
4
4
|
"description": "Schema & query lints (splinter-style advisors) for Lunora, feeding the Studio Advisors view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@lunora/errors": ">=1.0.0-alpha.51 <2.0.0-0",
|
|
50
|
-
"@lunora/server": "1.0.0-alpha.
|
|
50
|
+
"@lunora/server": "1.0.0-alpha.227",
|
|
51
51
|
"@visulima/cron-parser": "2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|