@lunora/advisor 1.0.0-alpha.186 → 1.0.0-alpha.188
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 +144 -64
- package/dist/index.d.ts +144 -64
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/MAP_VERSION-MQ5W2B6n.mjs +1 -0
- package/dist/packem_shared/actionFetchSsrf-B4ZaOBlW.mjs +1 -0
- package/dist/packem_shared/aiRawRunEscapeHatch-B5980eT9.mjs +1 -0
- package/dist/packem_shared/aiToolSideEffectPromptInjection-_3MrX9Ul.mjs +1 -0
- package/dist/packem_shared/authApiCallWithoutHeaders-D8U1hv8s.mjs +1 -0
- package/dist/packem_shared/authCsrfCheckDisabled-C6bxME5y.mjs +1 -0
- package/dist/packem_shared/authEmailVerificationDisabled-yROPDgn-.mjs +1 -0
- package/dist/packem_shared/authScimWithoutTransactions-w9qb3iBe.mjs +1 -0
- package/dist/packem_shared/authSecureCookiesDisabled-qrCktlch.mjs +1 -0
- package/dist/packem_shared/authSessionFreshageZero-BMisjIIS.mjs +1 -0
- package/dist/packem_shared/authTrustedOriginsWildcard-DFDpfN84.mjs +1 -0
- package/dist/packem_shared/browserUserUrlWithoutAllowlist-DDNC_W-2.mjs +1 -0
- package/dist/packem_shared/callSiteCallers-DArHfQSU.mjs +1 -0
- package/dist/packem_shared/{compareToBaseline-Dfc50M_I.mjs → compareToBaseline-CUG59IOy.mjs} +1 -1
- package/dist/packem_shared/containerInstanceKeyFromUserInput-DBdjUnQb.mjs +1 -0
- package/dist/packem_shared/containerRuntimeEgressRelaxation-CioCA2zY.mjs +1 -0
- package/dist/packem_shared/containerStartEnableInternetOverride-C6dbznku.mjs +1 -0
- package/dist/packem_shared/crossModuleTableWrite-DjiVTAwK.mjs +1 -0
- package/dist/packem_shared/filterOnPrimaryKey-DbFriOZA.mjs +1 -0
- package/dist/packem_shared/filterWithoutIndex-Dc7Nn0y2.mjs +1 -0
- package/dist/packem_shared/flagGatesSecurityWithUnsafeDefault-DB9M6hLM.mjs +1 -0
- package/dist/packem_shared/geoIndexFieldNotGeopoint-CDMNbAfp.mjs +1 -0
- package/dist/packem_shared/helpers-BmppB5nL.mjs +1 -0
- package/dist/packem_shared/httpActionMissingAuthGuard-BhvcmkwW.mjs +1 -0
- package/dist/packem_shared/httpActionResponseHeaderInjection-DKz2SlCa.mjs +1 -0
- package/dist/packem_shared/identityUndeclaredClaimTrusted-CAUagXkJ.mjs +1 -0
- package/dist/packem_shared/imagesUrlSourceFromUserInput-C2CJTTCI.mjs +1 -0
- package/dist/packem_shared/{indexReferencesUnknownField-BzbcslgO.mjs → indexReferencesUnknownField-Dm8SL4Tp.mjs} +1 -1
- package/dist/packem_shared/kvUnscopedUserKeyIdor-CXFKAyM2.mjs +1 -0
- package/dist/packem_shared/mailRecipientFromRequestInput-CQZeOsP9.mjs +1 -0
- package/dist/packem_shared/{maskWeakHashStrategyOnPii-X8t2Di6K.mjs → maskWeakHashStrategyOnPii-njstapQY.mjs} +1 -1
- package/dist/packem_shared/{outputProjectionMissingOnPublicRead-DvLW-xDo.mjs → outputProjectionMissingOnPublicRead-DHivs_73.mjs} +1 -1
- package/dist/packem_shared/ownerFieldFromArgsNotAuth-CWOURWOe.mjs +1 -0
- package/dist/packem_shared/paymentWebhookWideTolerance-CtZb2AVA.mjs +1 -0
- package/dist/packem_shared/privilegedDispatchUnvalidatedPayload-BJNC9DrB.mjs +1 -0
- package/dist/packem_shared/{publicMutationWithoutRatelimit-ClCa_SbX.mjs → publicMutationWithoutRatelimit-BeYapu1F.mjs} +1 -1
- package/dist/packem_shared/{publicTableRlsOptoutConfusion-CTruz7SK.mjs → publicTableRlsOptoutConfusion-BFmh1kH0.mjs} +1 -1
- package/dist/packem_shared/ratelimitKeySpoofableOrGlobal-DlvJfSXs.mjs +1 -0
- package/dist/packem_shared/ratelimitMiddlewareFailOpen-DGtyt-pc.mjs +1 -0
- package/dist/packem_shared/{relationReferencesUnknownField-CVRobvU2.mjs → relationReferencesUnknownField-CqGEJD57.mjs} +1 -1
- package/dist/packem_shared/{signupMutationWithoutDisposableGating-Crmw9jOF.mjs → signupMutationWithoutDisposableGating-CFtFMJz8.mjs} +1 -1
- package/dist/packem_shared/sqlInjectionRisk-y-7c46LJ.mjs +1 -0
- package/dist/packem_shared/storageGenerateUploadUrlNoContentTypePin-Bx9oGOjM.mjs +1 -0
- package/dist/packem_shared/storageKeyFromUserArgs-BryKJJM-.mjs +1 -0
- package/dist/packem_shared/storagePresignedUrlForPrivateContent-lqE6LvNu.mjs +1 -0
- package/dist/packem_shared/storageUploadWithoutContentTypeAllowlist-DMr7w29r.mjs +1 -0
- package/dist/packem_shared/storageUploadWithoutMaxSize-rSNFNb2l.mjs +1 -0
- package/dist/packem_shared/tableWithoutInsert-ClJp_jDr.mjs +1 -0
- package/dist/packem_shared/{ttlFieldNotTimestamp-CmoElS84.mjs → ttlFieldNotTimestamp-Dxa-6RfM.mjs} +1 -1
- package/dist/packem_shared/{userCreatingMutationWithoutCaptcha-DsSNNv8v.mjs → userCreatingMutationWithoutCaptcha-C8yaqIIj.mjs} +1 -1
- package/dist/packem_shared/vectorsNamespaceFromUserInput-7I_Kwxvp.mjs +1 -0
- package/dist/packem_shared/{workflowDuplicateStepName-C5IQIX8s.mjs → workflowDuplicateStepName-B6eAJzwA.mjs} +1 -1
- package/dist/packem_shared/workflowUnknownTarget-Cm1hfTTs.mjs +1 -0
- package/dist/packem_shared/workflowUnused-DHwwE-1P.mjs +1 -0
- package/package.json +2 -2
- package/dist/packem_shared/MAP_VERSION-Bnr7lVVy.mjs +0 -1
- package/dist/packem_shared/actionFetchSsrf-Z61P0o8U.mjs +0 -1
- package/dist/packem_shared/aiRawRunEscapeHatch-Dq43DVD9.mjs +0 -1
- package/dist/packem_shared/aiToolSideEffectPromptInjection-K42X3QzJ.mjs +0 -1
- package/dist/packem_shared/authApiCallWithoutHeaders-C1OOWML5.mjs +0 -1
- package/dist/packem_shared/authCsrfCheckDisabled-Dz27bDzp.mjs +0 -1
- package/dist/packem_shared/authEmailVerificationDisabled-QTDD7TAU.mjs +0 -1
- package/dist/packem_shared/authScimWithoutTransactions-FqdTmUJs.mjs +0 -1
- package/dist/packem_shared/authSecureCookiesDisabled-CrGYulfJ.mjs +0 -1
- package/dist/packem_shared/authSessionFreshageZero-yWE6CGYP.mjs +0 -1
- package/dist/packem_shared/authTrustedOriginsWildcard-xpeRXfGF.mjs +0 -1
- package/dist/packem_shared/browserUserUrlWithoutAllowlist-Bg8Irfy6.mjs +0 -1
- package/dist/packem_shared/containerInstanceKeyFromUserInput-uEQQVsEz.mjs +0 -1
- package/dist/packem_shared/containerRuntimeEgressRelaxation-pkpyXNou.mjs +0 -1
- package/dist/packem_shared/containerStartEnableInternetOverride-BBY4PMG1.mjs +0 -1
- package/dist/packem_shared/crossModuleTableWrite-GEwGT90N.mjs +0 -1
- package/dist/packem_shared/filterOnPrimaryKey-Dua4MIhF.mjs +0 -1
- package/dist/packem_shared/filterWithoutIndex-CdpLV-3C.mjs +0 -1
- package/dist/packem_shared/flagGatesSecurityWithUnsafeDefault-CcOU6_tc.mjs +0 -1
- package/dist/packem_shared/geoIndexFieldNotGeopoint-Cs8_0j76.mjs +0 -1
- package/dist/packem_shared/helpers-08ptUl2L.mjs +0 -1
- package/dist/packem_shared/httpActionMissingAuthGuard-BS3JZgaz.mjs +0 -1
- package/dist/packem_shared/httpActionResponseHeaderInjection-DHnc8c9f.mjs +0 -1
- package/dist/packem_shared/identityUndeclaredClaimTrusted-BDFqB7Dw.mjs +0 -1
- package/dist/packem_shared/imagesUrlSourceFromUserInput-DizsRh3M.mjs +0 -1
- package/dist/packem_shared/kvUnscopedUserKeyIdor-BbKx1xPL.mjs +0 -1
- package/dist/packem_shared/mailRecipientFromRequestInput-SDCchLP7.mjs +0 -1
- package/dist/packem_shared/ownerFieldFromArgsNotAuth-liwR6z-A.mjs +0 -1
- package/dist/packem_shared/paymentWebhookWideTolerance-B-F5jOeA.mjs +0 -1
- package/dist/packem_shared/privilegedDispatchUnvalidatedPayload-C6Qtc8aT.mjs +0 -1
- package/dist/packem_shared/ratelimitKeySpoofableOrGlobal-BzDzxnXm.mjs +0 -1
- package/dist/packem_shared/ratelimitMiddlewareFailOpen-09hwPZ7B.mjs +0 -1
- package/dist/packem_shared/sqlInjectionRisk-CslaRBxz.mjs +0 -1
- package/dist/packem_shared/storageGenerateUploadUrlNoContentTypePin-DBq_DeHO.mjs +0 -1
- package/dist/packem_shared/storageKeyFromUserArgs-C-QUcdJ3.mjs +0 -1
- package/dist/packem_shared/storagePresignedUrlForPrivateContent-DZdUkDdW.mjs +0 -1
- package/dist/packem_shared/storageUploadWithoutContentTypeAllowlist-KSRG81Iu.mjs +0 -1
- package/dist/packem_shared/storageUploadWithoutMaxSize-dG0OOopg.mjs +0 -1
- package/dist/packem_shared/tableWithoutInsert-DQ-GxjFF.mjs +0 -1
- package/dist/packem_shared/vectorsNamespaceFromUserInput-Bmvigr6W.mjs +0 -1
- package/dist/packem_shared/workflowUnknownTarget-B8H7jwnH.mjs +0 -1
- package/dist/packem_shared/workflowUnused-Cog-2sf5.mjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,78 @@ interface AdvisorAdminRoute {
|
|
|
17
17
|
/** `true` when the handler references an auth/session/admin guard. */
|
|
18
18
|
usesGuard: boolean;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Who a discovered call site runs on behalf of — the attribution every
|
|
22
|
+
* per-call-site feeder row carries, and the one place that turns it into finding
|
|
23
|
+
* text, cache keys and finding metadata (and reads that metadata back).
|
|
24
|
+
* Codegen's `CallSiteScope` is this type, so the feeder passes its rows straight
|
|
25
|
+
* through.
|
|
26
|
+
*
|
|
27
|
+
* `export`: inside an exported declaration; `name` is the exported name.
|
|
28
|
+
*
|
|
29
|
+
* `helper`: inside a top-level, non-exported helper of the same file; `callers`
|
|
30
|
+
* are the exports reaching it (sorted). `untracked` is set when the helper is
|
|
31
|
+
* also reached from code that is not an export or helper — module scope (an
|
|
32
|
+
* inline `http.route({ handler })`), a class body, a destructured declaration —
|
|
33
|
+
* so `callers` is not the whole story and a caller-folding rule must not trust it.
|
|
34
|
+
*
|
|
35
|
+
* `module`: at module scope.
|
|
36
|
+
*/
|
|
37
|
+
type AdvisorCallSiteScope = {
|
|
38
|
+
callers: ReadonlyArray<string>;
|
|
39
|
+
kind: "helper";
|
|
40
|
+
name: string;
|
|
41
|
+
untracked?: true;
|
|
42
|
+
} | {
|
|
43
|
+
kind: "export";
|
|
44
|
+
name: string;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "module";
|
|
47
|
+
};
|
|
48
|
+
/** The exported functions a site runs on behalf of: its export, its helper's known callers, or none. */
|
|
49
|
+
declare const callSiteCallers: (scope: AdvisorCallSiteScope) => ReadonlyArray<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether anything reaches the site — an export, or code outside any export
|
|
52
|
+
* (`untracked`). An orphan helper or module-scope code is dead for a usage lint.
|
|
53
|
+
*/
|
|
54
|
+
declare const isReachableSite: (scope: AdvisorCallSiteScope) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The name a call-site finding's CACHE KEY gives the code it sits in — the
|
|
57
|
+
* export, the helper, or `<module>` at module scope. Line-free, so a dismissal
|
|
58
|
+
* saved against the key survives the code moving; an export's label is its
|
|
59
|
+
* name, exactly as before helpers were attributed.
|
|
60
|
+
*/
|
|
61
|
+
declare const callSiteLabel: (scope: AdvisorCallSiteScope) => string;
|
|
62
|
+
/** How a helper site is reached — the clause both a description and a location name it by. */
|
|
63
|
+
declare const helperRole: (scope: Extract<AdvisorCallSiteScope, {
|
|
64
|
+
kind: "helper";
|
|
65
|
+
}>) => string;
|
|
66
|
+
/**
|
|
67
|
+
* How a finding's detail names a site's code: `` `send` `` for an export,
|
|
68
|
+
* `` `openInvoice` (a helper called by `a`, `b`) `` for a helper, and
|
|
69
|
+
* `module scope` at module scope.
|
|
70
|
+
*/
|
|
71
|
+
declare const callSiteDescription: (scope: AdvisorCallSiteScope) => string;
|
|
72
|
+
/**
|
|
73
|
+
* The finding metadata naming a site's code — the contract between the lints
|
|
74
|
+
* that write it ({@link callSiteMetadata}) and the advisor map that reads it
|
|
75
|
+
* ({@link readCallSiteCallers}): `exportName` for an export, `helper` plus its
|
|
76
|
+
* `callers` (and `untracked`) for a helper, nothing at module scope.
|
|
77
|
+
*/
|
|
78
|
+
type CallSiteMetadata = {
|
|
79
|
+
callers: ReadonlyArray<string>;
|
|
80
|
+
helper: string;
|
|
81
|
+
untracked?: true;
|
|
82
|
+
} | {
|
|
83
|
+
exportName: string;
|
|
84
|
+
} | Record<never, never>;
|
|
85
|
+
/** The {@link CallSiteMetadata} of a scope. */
|
|
86
|
+
declare const callSiteMetadata: (scope: AdvisorCallSiteScope) => CallSiteMetadata;
|
|
87
|
+
/**
|
|
88
|
+
* The procedures a finding names, read back from its {@link CallSiteMetadata}:
|
|
89
|
+
* its `exportName`, or — for a finding in a shared helper — each of its `callers`.
|
|
90
|
+
*/
|
|
91
|
+
declare const readCallSiteCallers: (metadata: Readonly<Record<string, unknown>>) => string[];
|
|
20
92
|
/**
|
|
21
93
|
* One `ctx.ai.run(model, …)` call whose model-id argument is derived from the
|
|
22
94
|
* handler's `args` with no server-side scoping — the input the
|
|
@@ -31,12 +103,12 @@ interface AdvisorAdminRoute {
|
|
|
31
103
|
* so the lint finds nothing there.
|
|
32
104
|
*/
|
|
33
105
|
interface AdvisorAiRawRun {
|
|
34
|
-
/** The exported binding name of the procedure performing the `ctx.ai.run` call. */
|
|
35
|
-
exportName: string;
|
|
36
106
|
/** Source file relative to the lunora dir, no extension. */
|
|
37
107
|
file: string;
|
|
38
108
|
/** 1-based line of the `ctx.ai.run` call, or `0` when unknown. */
|
|
39
109
|
line: number;
|
|
110
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
111
|
+
scope: AdvisorCallSiteScope;
|
|
40
112
|
}
|
|
41
113
|
/**
|
|
42
114
|
* One `generateText` / `streamText` call whose `tools` reach a privileged side
|
|
@@ -49,14 +121,14 @@ interface AdvisorAiRawRun {
|
|
|
49
121
|
* callers don't supply it, so the lint finds nothing there.
|
|
50
122
|
*/
|
|
51
123
|
interface AdvisorAiToolSideEffect {
|
|
52
|
-
/** The exported binding name of the procedure performing the call. */
|
|
53
|
-
exportName: string;
|
|
54
124
|
/** Source file relative to the lunora dir, no extension. */
|
|
55
125
|
file: string;
|
|
56
126
|
/** 1-based line of the generation call, or `0` when unknown. */
|
|
57
127
|
line: number;
|
|
58
128
|
/** The generation entrypoint invoked. */
|
|
59
129
|
method: "generateText" | "streamText";
|
|
130
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
131
|
+
scope: AdvisorCallSiteScope;
|
|
60
132
|
/** The privileged side-effect sink a model-callable tool reaches (`ctx.db.insert`, `ctx.run`, `ctx.fetch`, …). */
|
|
61
133
|
sideEffect: string;
|
|
62
134
|
/** `true` when a model-input option is derived from the handler's `args` (a bare `args.x`, or a name destructured from `args`). */
|
|
@@ -73,12 +145,12 @@ interface AdvisorAiToolSideEffect {
|
|
|
73
145
|
* it, so the lint finds nothing there.
|
|
74
146
|
*/
|
|
75
147
|
interface AdvisorArgumentDerivedFetch {
|
|
76
|
-
/** The exported binding name of the action performing the `ctx.fetch` call. */
|
|
77
|
-
exportName: string;
|
|
78
148
|
/** Source file relative to the lunora dir, no extension. */
|
|
79
149
|
file: string;
|
|
80
150
|
/** 1-based line of the `ctx.fetch` call, or `0` when unknown. */
|
|
81
151
|
line: number;
|
|
152
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
153
|
+
scope: AdvisorCallSiteScope;
|
|
82
154
|
}
|
|
83
155
|
/**
|
|
84
156
|
* One public procedure's argument validators reduced to the input-safety facts
|
|
@@ -125,8 +197,6 @@ interface AdvisorAuthConfig {
|
|
|
125
197
|
disableCsrfCheck: boolean;
|
|
126
198
|
/** `emailAndPassword.enabled === true`. */
|
|
127
199
|
emailPasswordEnabled: boolean;
|
|
128
|
-
/** The exported binding name enclosing the `createAuth(...)` call. */
|
|
129
|
-
exportName: string;
|
|
130
200
|
/** Source file relative to the lunora dir, no extension. */
|
|
131
201
|
file: string;
|
|
132
202
|
/** 1-based line of the `createAuth(...)` call, or `0` when unknown. */
|
|
@@ -139,6 +209,8 @@ interface AdvisorAuthConfig {
|
|
|
139
209
|
* refuses to serve without.
|
|
140
210
|
*/
|
|
141
211
|
scimOnNonTransactionalAdapter: boolean;
|
|
212
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
213
|
+
scope: AdvisorCallSiteScope;
|
|
142
214
|
/** `advanced.useSecureCookies === false`. */
|
|
143
215
|
secureCookiesDisabled: boolean;
|
|
144
216
|
/** `session.freshAge === 0` (explicit literal). */
|
|
@@ -152,8 +224,6 @@ interface AdvisorAuthConfig {
|
|
|
152
224
|
* feeder; runtime callers don't supply it, so the lint finds nothing there.
|
|
153
225
|
*/
|
|
154
226
|
interface AdvisorAuthApiCall {
|
|
155
|
-
/** The exported function performing the call (e.g. `createOrg`). */
|
|
156
|
-
exportName: string;
|
|
157
227
|
/** Source file the call appears in (relative to the lunora dir, no extension). */
|
|
158
228
|
file: string;
|
|
159
229
|
/** True when the call's argument object includes a `headers` property. */
|
|
@@ -162,6 +232,8 @@ interface AdvisorAuthApiCall {
|
|
|
162
232
|
line: number;
|
|
163
233
|
/** The better-auth method invoked (e.g. `banUser`); empty when not statically known. */
|
|
164
234
|
method: string;
|
|
235
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
236
|
+
scope: AdvisorCallSiteScope;
|
|
165
237
|
}
|
|
166
238
|
/**
|
|
167
239
|
* One `ctx.browser.<method>(url, …)` call whose navigation URL (`arguments[0]`)
|
|
@@ -176,14 +248,14 @@ interface AdvisorAuthApiCall {
|
|
|
176
248
|
* there.
|
|
177
249
|
*/
|
|
178
250
|
interface AdvisorBrowserUrlAccess {
|
|
179
|
-
/** The exported binding name of the procedure performing the `ctx.browser` call. */
|
|
180
|
-
exportName: string;
|
|
181
251
|
/** Source file relative to the lunora dir, no extension. */
|
|
182
252
|
file: string;
|
|
183
253
|
/** 1-based line of the `ctx.browser` call, or `0` when unknown. */
|
|
184
254
|
line: number;
|
|
185
255
|
/** The browser method invoked: `content` / `pdf` / `scrape` / `screenshot`. */
|
|
186
256
|
method: string;
|
|
257
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
258
|
+
scope: AdvisorCallSiteScope;
|
|
187
259
|
}
|
|
188
260
|
/**
|
|
189
261
|
* One factory/constructor call in `lunora/` whose configuration object literal a
|
|
@@ -228,14 +300,14 @@ interface AdvisorConfigCall {
|
|
|
228
300
|
* runtime callers don't supply it, so the lint finds nothing there.
|
|
229
301
|
*/
|
|
230
302
|
interface AdvisorContainerKeyAccess {
|
|
231
|
-
/** The exported binding name of the procedure performing the `ctx.containers` access. */
|
|
232
|
-
exportName: string;
|
|
233
303
|
/** Source file relative to the lunora dir, no extension. */
|
|
234
304
|
file: string;
|
|
235
305
|
/** 1-based line of the `ctx.containers.*.get` call, or `0` when unknown. */
|
|
236
306
|
line: number;
|
|
237
307
|
/** The container accessor method invoked — always `get` (the only per-instance-key sink). */
|
|
238
308
|
method: string;
|
|
309
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
310
|
+
scope: AdvisorCallSiteScope;
|
|
239
311
|
}
|
|
240
312
|
/**
|
|
241
313
|
* One runtime container-override call: a `<handle>.start({ enableInternet: true, … })`
|
|
@@ -248,14 +320,14 @@ interface AdvisorContainerKeyAccess {
|
|
|
248
320
|
interface AdvisorContainerOverride {
|
|
249
321
|
/** e.g. the egress method name, or `"enableInternet: true"`. */
|
|
250
322
|
detail: string;
|
|
251
|
-
/** Export binding name of the procedure performing the call. */
|
|
252
|
-
exportName: string;
|
|
253
323
|
/** Source file relative to the lunora dir, no extension. */
|
|
254
324
|
file: string;
|
|
255
325
|
/** Which override shape matched. */
|
|
256
326
|
kind: "egress_relaxation" | "enable_internet";
|
|
257
327
|
/** 1-based line of the call, or `0` when unknown. */
|
|
258
328
|
line: number;
|
|
329
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
330
|
+
scope: AdvisorCallSiteScope;
|
|
259
331
|
}
|
|
260
332
|
/**
|
|
261
333
|
* One container declaration discovered in `lunora/containers.ts` — the input
|
|
@@ -333,8 +405,6 @@ interface AdvisorExportSink {
|
|
|
333
405
|
interface AdvisorFailOpenGuard {
|
|
334
406
|
/** The middleware factory at the call site: `rateLimit` / `dbRateLimit` / `verifyTurnstileMiddleware`. */
|
|
335
407
|
callee: string;
|
|
336
|
-
/** The exported binding name of the procedure the guard is attached to, or `"<module>"` at file scope. */
|
|
337
|
-
exportName: string;
|
|
338
408
|
/** `true` only when the options literal set `failOpen: true` as a boolean literal; a non-literal or absent option is treated as fail-closed. */
|
|
339
409
|
failOpen: boolean;
|
|
340
410
|
/** Source file relative to the lunora dir, no extension. */
|
|
@@ -343,6 +413,8 @@ interface AdvisorFailOpenGuard {
|
|
|
343
413
|
limitName: string;
|
|
344
414
|
/** 1-based line of the middleware call, or `0` when unknown. */
|
|
345
415
|
line: number;
|
|
416
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
417
|
+
scope: AdvisorCallSiteScope;
|
|
346
418
|
}
|
|
347
419
|
/**
|
|
348
420
|
* One `ctx.flags` read discovered lexically inside a `query(...)` handler body —
|
|
@@ -387,14 +459,14 @@ interface AdvisorFlagRead {
|
|
|
387
459
|
interface AdvisorFlagSecurityDefault {
|
|
388
460
|
/** The boolean-literal default returned on a provider outage (fail-open value). */
|
|
389
461
|
defaultValue: boolean;
|
|
390
|
-
/** The exported binding name of the procedure performing the flag read, or `"<module>"` at file scope. */
|
|
391
|
-
exportName: string;
|
|
392
462
|
/** Source file relative to the lunora dir, no extension. */
|
|
393
463
|
file: string;
|
|
394
464
|
/** The flag key — the first string-literal argument of `ctx.flags.boolean`. */
|
|
395
465
|
key: string;
|
|
396
466
|
/** 1-based line of the `ctx.flags.boolean` call, or `0` when unknown. */
|
|
397
467
|
line: number;
|
|
468
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
469
|
+
scope: AdvisorCallSiteScope;
|
|
398
470
|
}
|
|
399
471
|
/**
|
|
400
472
|
* One `withGeoIndex("name", …)` read discovered in a function body — the use-side
|
|
@@ -433,8 +505,6 @@ interface AdvisorGeoIndexUsage {
|
|
|
433
505
|
* there.
|
|
434
506
|
*/
|
|
435
507
|
interface AdvisorHttpActionGuard {
|
|
436
|
-
/** The exported binding name of the handler (or `"<module>"` when mounted inline / not a named binding). */
|
|
437
|
-
exportName: string;
|
|
438
508
|
/** Source file relative to the lunora dir, no extension. */
|
|
439
509
|
file: string;
|
|
440
510
|
/** Which HTTP surface the handler is: a raw `httpAction` or a typed `httpRoute` route. */
|
|
@@ -445,6 +515,8 @@ interface AdvisorHttpActionGuard {
|
|
|
445
515
|
method?: string;
|
|
446
516
|
/** `true` when the handler reads `ctx.auth` (a direct member access or a `const { auth } = ctx` destructure). */
|
|
447
517
|
readsAuth: boolean;
|
|
518
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
519
|
+
scope: AdvisorCallSiteScope;
|
|
448
520
|
/** The first side effect found, as a stable label: `runMutation`, `runAction`, or `db.<method>`. */
|
|
449
521
|
sideEffect: string;
|
|
450
522
|
}
|
|
@@ -462,14 +534,14 @@ interface AdvisorHttpActionGuard {
|
|
|
462
534
|
* to `HttpHeaderWriteIR`.
|
|
463
535
|
*/
|
|
464
536
|
interface AdvisorHttpHeaderWrite {
|
|
465
|
-
/** The exported binding name of the enclosing handler, or `"<module>"` when mounted inline. */
|
|
466
|
-
exportName: string;
|
|
467
537
|
/** Source file relative to the lunora dir, no extension. */
|
|
468
538
|
file: string;
|
|
469
539
|
/** The header name being written (`"location"`), or `""` when the key is not a string literal. */
|
|
470
540
|
headerName: string;
|
|
471
541
|
/** 1-based line of the request-tainted header value. */
|
|
472
542
|
line: number;
|
|
543
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
544
|
+
scope: AdvisorCallSiteScope;
|
|
473
545
|
/** How the header was written. */
|
|
474
546
|
via: "headers-append" | "headers-ctor" | "headers-set" | "response-init";
|
|
475
547
|
}
|
|
@@ -514,14 +586,14 @@ interface AdvisorHyperdriveCall {
|
|
|
514
586
|
interface AdvisorIdentityClaimRead {
|
|
515
587
|
/** `true` when `key` is a declared claim (in the `defineIdentity` contract, or the always-present `userId`). */
|
|
516
588
|
declared: boolean;
|
|
517
|
-
/** The exported binding name of the enclosing declaration (`<module>` at file scope). */
|
|
518
|
-
exportName: string;
|
|
519
589
|
/** Source file relative to the lunora dir, no extension. */
|
|
520
590
|
file: string;
|
|
521
591
|
/** The claim key read off the identity bag. */
|
|
522
592
|
key: string;
|
|
523
593
|
/** 1-based line of the read, or `0` when unknown. */
|
|
524
594
|
line: number;
|
|
595
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
596
|
+
scope: AdvisorCallSiteScope;
|
|
525
597
|
}
|
|
526
598
|
/**
|
|
527
599
|
* One `buildImageDeliveryUrl({ key, … })` call (`@lunora/bindings/images`) whose
|
|
@@ -530,9 +602,10 @@ interface AdvisorIdentityClaimRead {
|
|
|
530
602
|
* server-side scoping — the `images_url_source_from_user_input` lint input.
|
|
531
603
|
*/
|
|
532
604
|
interface AdvisorImageDeliveryUrlAccess {
|
|
533
|
-
exportName: string;
|
|
534
605
|
file: string;
|
|
535
606
|
line: number;
|
|
607
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
608
|
+
scope: AdvisorCallSiteScope;
|
|
536
609
|
}
|
|
537
610
|
/**
|
|
538
611
|
* Observed read signal over a table — the input the `index_utilization` runtime
|
|
@@ -587,17 +660,17 @@ interface AdvisorIndexHit {
|
|
|
587
660
|
/**
|
|
588
661
|
* One `ctx.db.insert("table", …)` write discovered in a function body — the
|
|
589
662
|
* write-side analog of `AdvisorQueryRead`, the input the
|
|
590
|
-
* `table_without_insert` lint consumes. Produced by the codegen feeder (
|
|
591
|
-
*
|
|
663
|
+
* `table_without_insert` lint consumes. Produced by the codegen feeder (one row
|
|
664
|
+
* per insert site, with its {@link AdvisorCallSiteScope}); runtime callers
|
|
592
665
|
* don't supply it, so the lint simply finds nothing there.
|
|
593
666
|
*/
|
|
594
667
|
interface AdvisorInsertWrite {
|
|
595
|
-
/** The exported function performing the insert (e.g. `send`). */
|
|
596
|
-
exportName: string;
|
|
597
668
|
/** Source file the insert appears in (relative to the lunora dir, no extension). */
|
|
598
669
|
file: string;
|
|
599
670
|
/** 1-based line of the `insert(...)` call, or `0` when unknown. */
|
|
600
671
|
line: number;
|
|
672
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
673
|
+
scope: AdvisorCallSiteScope;
|
|
601
674
|
/** The inserted table; empty when the `insert(...)` argument is not a string literal. */
|
|
602
675
|
table: string;
|
|
603
676
|
}
|
|
@@ -624,14 +697,14 @@ interface AdvisorTableWrite extends AdvisorInsertWrite {
|
|
|
624
697
|
* there.
|
|
625
698
|
*/
|
|
626
699
|
interface AdvisorKvKeyAccess {
|
|
627
|
-
/** The exported binding name of the procedure performing the `ctx.kv` access. */
|
|
628
|
-
exportName: string;
|
|
629
700
|
/** Source file relative to the lunora dir, no extension. */
|
|
630
701
|
file: string;
|
|
631
702
|
/** 1-based line of the `ctx.kv` call, or `0` when unknown. */
|
|
632
703
|
line: number;
|
|
633
704
|
/** The `ctx.kv` method invoked: `get` / `getRaw` / `getWithMetadata` / `put` / `delete`. */
|
|
634
705
|
method: string;
|
|
706
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
707
|
+
scope: AdvisorCallSiteScope;
|
|
635
708
|
/**
|
|
636
709
|
* Visibility of the enclosing procedure. `internal` procedures are not
|
|
637
710
|
* reachable by a caller, so the "any caller can read/overwrite/delete
|
|
@@ -654,14 +727,14 @@ interface AdvisorKvKeyAccess {
|
|
|
654
727
|
* feeder; runtime callers don't supply it, so the lint finds nothing there.
|
|
655
728
|
*/
|
|
656
729
|
interface AdvisorMailRecipientAccess {
|
|
657
|
-
/** The exported binding name of the procedure performing the `ctx.mail`/`ctx.email` call. */
|
|
658
|
-
exportName: string;
|
|
659
730
|
/** Source file relative to the lunora dir, no extension. */
|
|
660
731
|
file: string;
|
|
661
732
|
/** 1-based line of the `ctx.mail`/`ctx.email` call, or `0` when unknown. */
|
|
662
733
|
line: number;
|
|
663
734
|
/** The mailer method invoked: `send` / `queue`. */
|
|
664
735
|
method: string;
|
|
736
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
737
|
+
scope: AdvisorCallSiteScope;
|
|
665
738
|
}
|
|
666
739
|
/**
|
|
667
740
|
* One procedure (query / mutation / action) discovered in the lunora source,
|
|
@@ -887,8 +960,6 @@ interface AdvisorNotifyConfig {
|
|
|
887
960
|
* finds nothing there. Structurally identical to `OwnerFieldWriteIR`.
|
|
888
961
|
*/
|
|
889
962
|
interface AdvisorOwnerFieldWrite {
|
|
890
|
-
/** The exported binding name of the procedure performing the write. */
|
|
891
|
-
exportName: string;
|
|
892
963
|
/** The identity column being written from `args` (e.g. `userId`). */
|
|
893
964
|
field: string;
|
|
894
965
|
/** Source file relative to the lunora dir, no extension. */
|
|
@@ -899,7 +970,9 @@ interface AdvisorOwnerFieldWrite {
|
|
|
899
970
|
method: string;
|
|
900
971
|
/**
|
|
901
972
|
* The enclosing `defineMutator` declared this very column as its `owner`, AND
|
|
902
|
-
* the value written resolves to that same `args[owner]
|
|
973
|
+
* the value written resolves, by symbol, to that same `args[owner]` of the
|
|
974
|
+
* `server` impl's own 2nd parameter. A nested closure's or a helper's own
|
|
975
|
+
* `args` (or any binding shadowing it) never qualifies.
|
|
903
976
|
*
|
|
904
977
|
* `applyOwnerScope` requires a verified identity, rejects a client-supplied
|
|
905
978
|
* value that disagrees with it, and overwrites the column with the verified
|
|
@@ -914,6 +987,8 @@ interface AdvisorOwnerFieldWrite {
|
|
|
914
987
|
* is a real IDOR and stays reportable.
|
|
915
988
|
*/
|
|
916
989
|
ownerScoped?: true;
|
|
990
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
991
|
+
scope: AdvisorCallSiteScope;
|
|
917
992
|
/**
|
|
918
993
|
* Visibility of the enclosing procedure. `internal` procedures are not
|
|
919
994
|
* reachable by a caller, so the "any caller can act as any user" premise
|
|
@@ -937,12 +1012,12 @@ interface AdvisorOwnerFieldWrite {
|
|
|
937
1012
|
interface AdvisorPaymentWebhook {
|
|
938
1013
|
/** The adapter factory invoked. */
|
|
939
1014
|
callee: "createAutumnAdapter" | "createDodoPaymentsAdapter" | "createPolarAdapter" | "createStripeAdapter";
|
|
940
|
-
/** The exported binding name of the enclosing declaration (`<module>` at file scope). */
|
|
941
|
-
exportName: string;
|
|
942
1015
|
/** Source file relative to the lunora dir, no extension. */
|
|
943
1016
|
file: string;
|
|
944
1017
|
/** 1-based line of the construction, or `0` when unknown. */
|
|
945
1018
|
line: number;
|
|
1019
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1020
|
+
scope: AdvisorCallSiteScope;
|
|
946
1021
|
/** Statically-known `webhookToleranceSeconds` literal, when present and a plain numeric literal. */
|
|
947
1022
|
toleranceSeconds?: number;
|
|
948
1023
|
}
|
|
@@ -963,10 +1038,10 @@ interface AdvisorPrivilegedDispatch {
|
|
|
963
1038
|
dispatchKind: "queue" | "workflow";
|
|
964
1039
|
/** Source file relative to the lunora dir, no extension. */
|
|
965
1040
|
file: string;
|
|
966
|
-
/** The exported handler binding performing the dispatch. */
|
|
967
|
-
handlerExport: string;
|
|
968
1041
|
/** 1-based line of the dispatch call, or `0` when unknown. */
|
|
969
1042
|
line: number;
|
|
1043
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1044
|
+
scope: AdvisorCallSiteScope;
|
|
970
1045
|
/** Export name of the dispatched target (`send` in `api.messages.send`). */
|
|
971
1046
|
targetExport: string;
|
|
972
1047
|
/** File path of the dispatched target relative to the lunora dir (`messages` in `api.messages.send`). */
|
|
@@ -1087,16 +1162,6 @@ interface AdvisorProcedureProtection {
|
|
|
1087
1162
|
* find nothing there.
|
|
1088
1163
|
*/
|
|
1089
1164
|
interface AdvisorQueryRead {
|
|
1090
|
-
/**
|
|
1091
|
-
* The exported procedure the read sits in, when the feeder could resolve one.
|
|
1092
|
-
* Carried so the advisor map can attribute the finding to that procedure's row
|
|
1093
|
-
* rather than to the project bucket; a read outside any export (module scope)
|
|
1094
|
-
* legitimately has none.
|
|
1095
|
-
*
|
|
1096
|
-
* Optional so a feeder predating this field still typechecks — such a run
|
|
1097
|
-
* simply attributes project-wide, exactly as before.
|
|
1098
|
-
*/
|
|
1099
|
-
exportName?: string;
|
|
1100
1165
|
/** Source file the read appears in (relative to the lunora dir, no extension). */
|
|
1101
1166
|
file: string;
|
|
1102
1167
|
/**
|
|
@@ -1112,6 +1177,8 @@ interface AdvisorQueryRead {
|
|
|
1112
1177
|
hasIndex: boolean;
|
|
1113
1178
|
/** 1-based line of the `query(...)` call, or `0` when unknown. */
|
|
1114
1179
|
line: number;
|
|
1180
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1181
|
+
scope: AdvisorCallSiteScope;
|
|
1115
1182
|
/** The queried table; empty when the `query(...)` argument is not a string literal. */
|
|
1116
1183
|
table: string;
|
|
1117
1184
|
/**
|
|
@@ -1200,10 +1267,11 @@ interface AdvisorR2sqlCall {
|
|
|
1200
1267
|
*/
|
|
1201
1268
|
interface AdvisorRatelimitKeySelector {
|
|
1202
1269
|
callee: string;
|
|
1203
|
-
exportName: string;
|
|
1204
1270
|
file: string;
|
|
1205
1271
|
limitName: string;
|
|
1206
1272
|
line: number;
|
|
1273
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1274
|
+
scope: AdvisorCallSiteScope;
|
|
1207
1275
|
}
|
|
1208
1276
|
/**
|
|
1209
1277
|
* One `query` handler whose `return` hands back the raw rows of a table — the
|
|
@@ -1556,12 +1624,12 @@ interface AdvisorSoftDeleteRead {
|
|
|
1556
1624
|
* there.
|
|
1557
1625
|
*/
|
|
1558
1626
|
interface AdvisorSqlInterpolation {
|
|
1559
|
-
/** The exported binding name of the procedure performing the `ctx.sql` call. */
|
|
1560
|
-
exportName: string;
|
|
1561
1627
|
/** Source file relative to the lunora dir, no extension. */
|
|
1562
1628
|
file: string;
|
|
1563
1629
|
/** 1-based line of the interpolation, or `0` when unknown. */
|
|
1564
1630
|
line: number;
|
|
1631
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1632
|
+
scope: AdvisorCallSiteScope;
|
|
1565
1633
|
}
|
|
1566
1634
|
/**
|
|
1567
1635
|
* One import of a migrated-away platform's SDK still present in `lunora/`
|
|
@@ -1594,14 +1662,14 @@ interface AdvisorStaleMigrationImport {
|
|
|
1594
1662
|
* codegen feeder; runtime callers don't supply it, so the lint finds nothing there.
|
|
1595
1663
|
*/
|
|
1596
1664
|
interface AdvisorStorageKeyAccess {
|
|
1597
|
-
/** The exported binding name of the procedure performing the storage call. */
|
|
1598
|
-
exportName: string;
|
|
1599
1665
|
/** Source file relative to the lunora dir, no extension. */
|
|
1600
1666
|
file: string;
|
|
1601
1667
|
/** 1-based line of the storage call, or `0` when unknown. */
|
|
1602
1668
|
line: number;
|
|
1603
1669
|
/** The bucket method invoked with the arg-derived key, e.g. `get` / `put` / `delete` / `download`. */
|
|
1604
1670
|
method: string;
|
|
1671
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1672
|
+
scope: AdvisorCallSiteScope;
|
|
1605
1673
|
/**
|
|
1606
1674
|
* Visibility of the enclosing procedure. `internal` procedures are not
|
|
1607
1675
|
* reachable by a caller, so the "any caller can read/overwrite/delete
|
|
@@ -1629,8 +1697,6 @@ interface AdvisorStorageUpload {
|
|
|
1629
1697
|
analyzable: boolean;
|
|
1630
1698
|
/** Numeric literal value of an `expiresInSeconds` option, when statically known (`getSignedUrl` / `getPresignedUrl` only). */
|
|
1631
1699
|
expiresInSeconds?: number;
|
|
1632
|
-
/** The exported binding name of the procedure performing the call. */
|
|
1633
|
-
exportName: string;
|
|
1634
1700
|
/** Source file relative to the lunora dir, no extension. */
|
|
1635
1701
|
file: string;
|
|
1636
1702
|
/** 1-based line of the call, or `0` when unknown. */
|
|
@@ -1639,6 +1705,8 @@ interface AdvisorStorageUpload {
|
|
|
1639
1705
|
method: "generateUploadUrl" | "getPresignedUrl" | "getSignedUrl" | "store" | "upload";
|
|
1640
1706
|
/** Options-object keys present at the call site (empty when not `analyzable`, or when no options argument was passed). */
|
|
1641
1707
|
presentKeys: string[];
|
|
1708
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1709
|
+
scope: AdvisorCallSiteScope;
|
|
1642
1710
|
}
|
|
1643
1711
|
/**
|
|
1644
1712
|
* One branching `defineShape({ where })` / `definePolicy({ when })` predicate arm
|
|
@@ -1683,14 +1751,14 @@ interface AdvisorUnrestrictedWhereBranch {
|
|
|
1683
1751
|
* the lint finds nothing there.
|
|
1684
1752
|
*/
|
|
1685
1753
|
interface AdvisorVectorNamespaceAccess {
|
|
1686
|
-
/** The exported binding name of the procedure performing the `ctx.vectors` access. */
|
|
1687
|
-
exportName: string;
|
|
1688
1754
|
/** Source file relative to the lunora dir, no extension. */
|
|
1689
1755
|
file: string;
|
|
1690
1756
|
/** 1-based line of the `ctx.vectors` call, or `0` when unknown. */
|
|
1691
1757
|
line: number;
|
|
1692
1758
|
/** The `ctx.vectors` method invoked: `query` / `upsert` / `upsertNow`. */
|
|
1693
1759
|
method: string;
|
|
1760
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1761
|
+
scope: AdvisorCallSiteScope;
|
|
1694
1762
|
}
|
|
1695
1763
|
/**
|
|
1696
1764
|
* The two workflow-shaped inputs the `workflow_*` lints consume, produced by the
|
|
@@ -1718,6 +1786,12 @@ interface AdvisorWorkflowStep {
|
|
|
1718
1786
|
interface AdvisorWorkflow {
|
|
1719
1787
|
/** The `lunora/workflows.ts` export name, e.g. `orderPipeline`. */
|
|
1720
1788
|
exportName: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* The file declaring the handler when it is passed by reference from another
|
|
1791
|
+
* file (`handler: onboard`) — the file the {@link AdvisorWorkflow.steps} lines
|
|
1792
|
+
* are in. Lunora-relative inside `lunora/`, project-relative outside it.
|
|
1793
|
+
*/
|
|
1794
|
+
handlerFile?: string;
|
|
1721
1795
|
/**
|
|
1722
1796
|
* The durable step labels discovered in the handler body, in source order —
|
|
1723
1797
|
* the duplicate-step-name input. Cloudflare memoizes a step by its name, so a
|
|
@@ -1729,12 +1803,12 @@ interface AdvisorWorkflow {
|
|
|
1729
1803
|
}
|
|
1730
1804
|
/** One `ctx.workflows.get("name")` call discovered in a function body. */
|
|
1731
1805
|
interface AdvisorWorkflowCall {
|
|
1732
|
-
/** The exported function performing the call (e.g. `create`). */
|
|
1733
|
-
exportName: string;
|
|
1734
1806
|
/** Source file the call appears in (relative to the lunora dir, no extension). */
|
|
1735
1807
|
file: string;
|
|
1736
1808
|
/** 1-based line of the `get(...)` call, or `0` when unknown. */
|
|
1737
1809
|
line: number;
|
|
1810
|
+
/** Who the site runs on behalf of — see {@link AdvisorCallSiteScope}. */
|
|
1811
|
+
scope: AdvisorCallSiteScope;
|
|
1738
1812
|
/** The referenced workflow export name; empty when the `get(...)` argument is not a string literal. */
|
|
1739
1813
|
workflow: string;
|
|
1740
1814
|
}
|
|
@@ -2936,6 +3010,12 @@ declare const containerStartEnableInternetOverride: Lint;
|
|
|
2936
3010
|
* by-id writes (`patch`/`replace`/`delete`, the table read off the id's type),
|
|
2937
3011
|
* batch writes and facade writes all count; a write whose table is unreadable
|
|
2938
3012
|
* (an untyped id) is skipped.
|
|
3013
|
+
*
|
|
3014
|
+
* A write inside a same-file helper is reported once, named by the helper and
|
|
3015
|
+
* listing the exports calling it, so moving the write into a helper does not hide
|
|
3016
|
+
* it — and one in a helper no export calls is still flagged. The fix that does satisfy the lint is putting the write in the
|
|
3017
|
+
* owner's files: an exported owner-module helper taking the caller's `ctx`, or a
|
|
3018
|
+
* registered owner mutation called through `ctx.runMutation`.
|
|
2939
3019
|
*/
|
|
2940
3020
|
declare const crossModuleTableWrite: Lint;
|
|
2941
3021
|
/**
|
|
@@ -4770,4 +4850,4 @@ interface RunAdvisorOptions {
|
|
|
4770
4850
|
* `static` lints at build time and defer `runtime` lints to a live shard.
|
|
4771
4851
|
*/
|
|
4772
4852
|
declare const runAdvisor: (context: LintContext, options?: RunAdvisorOptions) => Finding[];
|
|
4773
|
-
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, 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 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 AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, type AdvisorVectorNamespaceAccess, type AdvisorWorkflow, type AdvisorWorkflowCall, type AdvisorWranglerVariable, type AnalyticsMetricsOptions, type AnalyticsMetricsSource, type AnalyticsRuntimeMetrics, type BaselineComparison, 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, circularFk, classifySensitivity, commitOrderedHardDelete, compareToBaseline, containerInstanceKeyFromUserInput, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, crossModuleTableWrite, dedupeCacheKeys, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, filterOnPrimaryKey, filterWithoutIndex, flagGatesSecurityWithUnsafeDefault, flagReadInSubscription, fromServerSchema, geoIndexFieldNotGeopoint, geoIndexUnused, globalTableNearColumnLimit, gradeFromScore, hardcodedSecret, hotShard, httpActionMissingAuthGuard, httpActionResponseHeaderInjection, hyperdriveOutsideAction, identityUndeclaredClaimTrusted, imagesUrlSourceFromUserInput, indexReferencesUnknownField, indexUtilization, insertManyUnsafeUserData, 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, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, ttlFieldNotTimestamp, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|
|
4853
|
+
export { ALL_LINTS, type AdvisorAdminRoute, type AdvisorAiRawRun, type AdvisorAiToolSideEffect, type AdvisorArgumentDerivedFetch, type AdvisorArgumentValidator, type AdvisorAuthApiCall, type AdvisorAuthConfig, type AdvisorBrowserUrlAccess, type AdvisorCallSiteScope, type AdvisorConfigCall, type AdvisorContainer, type AdvisorContainerKeyAccess, type AdvisorContainerOverride, 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 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 AdvisorSchema, type AdvisorSecretLiteral, type AdvisorShape, type AdvisorShardTraffic, type AdvisorSoftDeleteRead, type AdvisorSqlInterpolation, type AdvisorStaleMigrationImport, type AdvisorStorageKeyAccess, type AdvisorStorageUpload, type AdvisorTable, type AdvisorTableScan, type AdvisorTableWrite, 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, containerOversizedInstance, containerPublicInternet, containerRuntimeEgressRelaxation, containerStartEnableInternetOverride, crossModuleTableWrite, dedupeCacheKeys, duplicateIndex, emptyIndex, errorWithoutCatalog, exportSinkMisconfigured, externalSourceIncrementalNoDeletePath, externalSourceOnGlobal, externalSourceUnscoped, fanOutBreadth, 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, queueWithoutDlq, r2sqlOutsideAction, ratelimitDefaultMemoryStore, ratelimitKeySpoofableOrGlobal, ratelimitMiddlewareFailOpen, readCallSiteCallers, relationReferencesUnknownField, relationReferencesUnknownTable, rlsUncoveredTable, runAdvisor, scoreAdvisor, shapeTargetsGlobalTable, shapeUnknownTable, signupMutationWithoutDisposableGating, softDeleteIncludeDeletedFromArgs, sqlInjectionRisk, storageGenerateUploadUrlNoContentTypePin, storageKeyFromUserArgs, storagePresignedUrlForPrivateContent, storageUploadWithoutContentTypeAllowlist, storageUploadWithoutMaxSize, tableWithoutInsert, ttlFieldNotTimestamp, unboundedStringArgument, unindexedForeignKey, unindexedRelationTarget, unrestrictedWhereBranch, userCreatingMutationWithoutCaptcha, vectorsNamespaceFromUserInput, workflowDuplicateStepName, workflowUnknownTarget, workflowUnused };
|