IntentiAI

Sample reports

These are real outputs of the IntentiAI CLI: a cost audit of the open-source roomGPT app, and a Ship Check of a test repo where a change with 13 planted mistakes was left uncommitted. Nothing on this page was written by hand or edited afterwards.

Cost audit of roomGPT

From npx intentiai audit <repo> --local on Nutlope/roomGPT. A cost report upload holds no files and no lines of code: file and line, rule, the explanation, and the estimate with its assumptions.

AI cost report for roomGPT

Checked Nov 30, 2026, 1:10 PM UTC · TypeScript/JavaScript · commit 611398c

We found 5 ways your app could run up an AI bill. 3 have no ceiling: anyone could run up your bill without limit.

  • 3Fix now
  • 2Fix soon

Checked 1 AI call in your app. Its model is not named in the code (it comes from a setting or a variable), so no dollar figures are shown. Only the built-in checks ran. Claude Code, Codex or Gemini CLI, when installed, also reviews the code. On a subscription this costs nothing extra; with an API key it uses your API credits.

What to fix most urgent first

  1. Fix now
    Nothing caps how much your app can spend on AI
    What could happen
    If something goes wrong, like a loop, a burst of traffic or someone abusing a page, the app keeps paying for AI calls until you notice the bill.
    What it could cost

    No ceiling

    Nothing limits how often this runs, and each request is billed by your provider.

    How to fix it

    Add a daily spending limit per user and for the whole app, and stop calling the AI once it is reached.

    Paste it into your AI coding tool.
    More details
    Where
    app/generate/route.ts:40
    Found by
    The built-in check "No spending cap". IntentiAI is confident about this.
    In technical terms
    No dollar/token budget guard or circuit breaker found anywhere; LLM spend is unbounded.
    Why it costs money
    A runaway loop, retry storm, or traffic spike keeps calling the API with nothing to halt spend. 1 AI call is exposed.
    Technical fix
    Add a per-run token/dollar budget that halts LLM calls when exceeded.
    Research
    When Agents Do Not Stop: Uncovering Infinite Agentic Loops in LLM Agents (arXiv:2607.01641): Cost exhaustion is a core agentic-loop harm; a spend guard is the backstop.
    Fix prompt
    My app has no spending limit on AI calls. Near the code that calls the AI, starting with app/generate/route.ts (around line 40), add a daily limit per user and an overall daily limit (count tokens or requests from each response), and refuse further AI calls with a clear message once a limit is reached. Make the limits easy to change in one place. Keep everything else working the same, and tell me what you changed.
  2. Fix now
    Your rate limit switches off when a setting is missing
    What could happen
    The limit only works when certain settings are filled in. On a new deploy or a preview where they are missing, anyone can call the AI as often as they like.
    What it could cost

    No ceiling

    How to fix it

    Make the app refuse to serve the AI feature when the limit is not set up, instead of skipping it.

    Paste it into your AI coding tool.
    More details
    Where
    app/generate/route.ts:8
    Found by
    The built-in check "Rate limit that depends on a setting".
    In technical terms
    The spend/abuse guard is constructed only when its env vars are set, and the request path skips it when they are not. The default deployment is unguarded.
    Why it costs money
    Whether anything limits spend depends on deployment configuration, not on this code. If the env vars are missing (a fresh deploy, a preview environment, a fork), every request reaches the paid call with no quota, which is a Denial-of-Wallet opening on a public endpoint.
    Technical fix
    Fail closed: in production, refuse to serve (503) when the limiter cannot be constructed, rather than silently skipping it. Add the guard's env vars to the documented deploy configuration so the default deployment is protected.
    Research
    OWASP LLM10:2025 Unbounded Consumption / Denial of Wallet (genai.owasp.org): A per-user quota that is absent in the default configuration provides no protection: unbounded consumption is governed by the deployed configuration, not by the presence of guard code.
    Fix prompt
    In app/generate/route.ts (around line 8), the rate limit is skipped when its settings are missing. Change it so the AI feature refuses requests (with a clear error) when the rate limit is not configured in production, instead of running without a limit, and list the required settings in the README. Keep everything else working the same, and tell me what you changed.
  3. Fix now
    Paid AI jobs keep running after nobody is waiting
    What could happen
    If the page times out or the user closes the tab, the image or video job keeps running and billing. When they try again you pay twice.
    How to fix it

    Give the wait a time limit and cancel the job with the provider when it is reached.

    Paste it into your AI coding tool.
    More details
    Where
    app/generate/route.ts:69
    Found by
    The built-in check "Paid job nobody waits for".
    In technical terms
    A billable async job is polled to completion with no deadline and no cancel path. If the poller dies the job keeps billing with nobody reading the result.
    Why it costs money
    Generation jobs are billed by the provider from the moment they are submitted, for the whole run. If this poll loop is killed (serverless timeout, client disconnect, restart) the job is never cancelled: you pay in full for a result nobody receives, and the user retries and pays again.
    Technical fix
    Bound the wait with a deadline, and on timeout or client abort call the provider's cancel endpoint before returning. Better: use the provider's wait/webhook mode so there is no poll loop to abandon.
    Research
    Replicate / OpenAI / Azure async job APIs (primary provider docs) (replicate.com): Async generation jobs bill for the full run once submitted, independent of whether the result is ever fetched; providers expose an explicit cancel endpoint precisely so an abandoned job can be stopped.
    Fix prompt
    In app/generate/route.ts (around line 69), the code waits for a paid AI job with no time limit and never cancels it. Add a deadline shorter than the platform's request timeout, cancel the job through the provider's cancel option when the deadline passes or the user disconnects, and return a clear timeout message. Keep everything else working the same, and tell me what you changed.
  4. Fix soon
    Visitors can send anything they want to your AI
    What could happen
    The page passes what the visitor sends straight to the AI. Someone could send huge texts or their own prompts and use your account as a free AI service.
    What it could cost

    No ceiling

    Nothing limits how long a request can be, and each request is billed by your provider.

    How to fix it

    Check the request first: allow only the fields you expect, with length limits.

    Paste it into your AI coding tool.
    More details
    Where
    app/generate/route.ts:40
    Found by
    The built-in check "Unchecked input sent to the AI".
    In technical terms
    Request-body fields reach a paid generation call with no schema or allowlist validation in the handler.
    Why it costs money
    Without a check on what the body may contain, the endpoint serves any workload a caller submits, not just your product's. Every abusive request is a full billed generation, and the volume is set by the attacker rather than by your users.
    Technical fix
    Validate the body before the paid call: check each field against its allowed set (or parse with a schema), and reject early, ideally before consuming any rate-limit quota.
    Research
    OWASP LLM10:2025 Unbounded Consumption / Denial of Wallet (genai.owasp.org): Unrestricted user input to a model endpoint enables resource-consumption abuse: attackers drive paid inference with inputs the application never intended to serve.
    Fix prompt
    In app/generate/route.ts (around line 40), the request is passed to the AI without checking it. Validate the request first with a schema: allow only the fields this feature needs, limit text lengths, allow only known values for options, and reject anything else with a clear error before any AI call is made. Keep everything else working the same, and tell me what you changed.
  5. Fix soon
    You pay again for AI results you already have
    What could happen
    The same input gives the same result here, but the app asks the AI again every time, so repeats, refreshes and popular searches are paid for over and over.
    How to fix it

    Save results by their input and reuse them instead of calling the AI again.

    Paste it into your AI coding tool.
    More details
    Where
    app/generate/route.ts:40
    Found by
    The built-in check "Same result paid for again".
    In technical terms
    A deterministic image call is served from a request handler with no result cache: identical inputs are recomputed and re-billed.
    Why it costs money
    The same input returns the same output, so every repeat (a retry, a refresh, two users asking for the same thing) is a second full charge for a result you already paid for.
    Technical fix
    Key a cache on a hash of the inputs that determine the output and read it before calling the provider; store the result with a TTL. A cache store already present in the repo is usually enough.
    Research
    GPTCache: An Open-Source Semantic Cache for LLM Applications (Bang, 2023) (aclanthology.org): Caching model responses keyed on input similarity removes redundant paid calls; repeated or near-identical requests are a large fraction of production traffic.
    Fix prompt
    In app/generate/route.ts (around line 40), the app pays for the same AI result again for identical input. Add a cache keyed on the model name plus a hash of the input, check it before calling the AI, and store new results with a sensible expiry. Keep everything else working the same, and tell me what you changed.

Your AI calls 1 place your app talks to an AI model

Where the scan found them. Your own AI did not trace these one by one.

  • app/generate/route.ts:40 http

Technical details for you or a developer

Estimated exposure

None of the AI calls names its model in the code (it comes from a setting or a variable), so there is no repository-wide figure.

Spend map where the calls live, by estimated cost per 1k calls
FileSitesModelsRuns inFindingsEst. per 1k calls
app/generate/route.ts1unresolvedrequest handler5not priced
Models usage and right-sizing candidates
ModelSitesEst. per callEst. per 1k calls, all sites
(not statically resolvable)1not pricednot priced

No model was flagged as larger than its task needs.

Research behind this report
  • Replicate / OpenAI / Azure async job APIs (primary provider docs) (replicate.com): Async generation jobs bill for the full run once submitted, independent of whether the result is ever fetched; providers expose an explicit cancel endpoint precisely so an abandoned job can be stopped.
    Built-in checks: Paid job nobody waits for
  • When Agents Do Not Stop: Uncovering Infinite Agentic Loops in LLM Agents (arXiv:2607.01641): Cost exhaustion is a core agentic-loop harm; a spend guard is the backstop.
    Built-in checks: No spending cap
  • OWASP LLM10:2025 Unbounded Consumption / Denial of Wallet (genai.owasp.org): A per-user quota that is absent in the default configuration provides no protection: unbounded consumption is governed by the deployed configuration, not by the presence of guard code.
    Built-in checks: Rate limit that depends on a setting, Unchecked input sent to the AI
  • GPTCache: An Open-Source Semantic Cache for LLM Applications (Bang, 2023) (aclanthology.org): Caching model responses keyed on input similarity removes redundant paid calls; repeated or near-identical requests are a large fraction of production traffic.
    Built-in checks: Same result paid for again

All dollar figures are estimates with the assumptions stated beside them, never guarantees. A cost report upload is metadata only: file and line, rule, and plain descriptions, never source code.

Report sample-report, rules v0.1

Ship Check of an agent's change

From npx intentiai (the same as intentiai check) on a small seeded app. Of the 13 planted mistakes, 12 are found as issues (one problem in several places is one card, so they fill 8 cards) and 1, the undeclared STRIPE_WEBHOOK_SECRET setting, is a Before you push item, since the fix is outside the code. The findings come from deterministic checks only; no model was asked, so there is no agent summary on this sample. Under the tiles, “Where this change lands” shows the parts of the app the change touches on a map read from its code. The quoted lines on this sample come from the local report: a run saved to your account holds names, places and plain text only, never lines of code.

IntentiAI · Nov 30, 2026, 1:11 PM UTC · invoice-sync

Fix firstNormal review

Fix 4 things before you push. 2 more to fix soon.

5 files · +29 −5 · 2 functions · touches 1 table, 1 setting · Reviewed: changes not committed yet

Took under 1 s · No AI review ran

What to fix first

  1. Fix now
    A database change could freeze your app while it runs

    Found in 3 places

    • prisma/migrations/001_add/migration.sql:1
    • prisma/migrations/001_add/migration.sql:2
    • prisma/migrations/001_add/migration.sql:3
    What could happen

    This database change can lock a table or rewrite every row. While it runs, people using your app could get errors or pages that never load, and on a big table that can last minutes.

    How to fix it

    Split the database change in prisma/migrations/001_add/migration.sql into smaller steps that do not lock the table.

    More details
    Fix nowColumn legacy_status is dropped from users while the running app may still read it

    prisma/migrations/001_add/migration.sql:1Unsafe database changeconfidence high

    Removing legacy_status is irreversible and takes an exclusive lock on users. Any code still reading legacy_status (including the version of your app that is running right now, and anything outside this repo) starts erroring the moment the migration lands.

    Do this: Split this into two deploys. First ship the code that no longer uses legacy_status; once that is live everywhere, ship a second migration that drops it. GitLab uses a three-release process for exactly this.

    When this is not a problem: Safe when the deploy is all-at-once with downtime, or when nothing outside this repo reads the table.

    Fix nowIndex built without CONCURRENTLY on orders

    prisma/migrations/001_add/migration.sql:2Unsafe database changeconfidence high

    Building an index normally blocks every write to orders until it finishes. On a large table that is minutes, and every insert or update in that window (signups, orders, messages) waits or times out.

    Do this: Use CREATE INDEX CONCURRENTLY, and run it outside a transaction (most ORMs wrap migrations in one, so this usually needs its own migration file).

    When this is not a problem: Harmless on a new or tiny table, where the build is instant.

    Fix nowNew column on users has a computed default: rewrites the whole table

    prisma/migrations/001_add/migration.sql:3Unsafe database changeconfidence high

    A constant default is instant on modern Postgres, but a computed one like now() or gen_random_uuid() has to be evaluated for every existing row. That rewrites the table under a lock that blocks all reads and writes to users.

    Do this: Add the column with no default, backfill in batches, then set the default for new rows.

    Fix nowMigration sets no lock timeout

    prisma/migrations/001_add/migration.sql:1Unsafe database changeconfidence high

    If this migration cannot get its lock immediately it waits, and every query that arrives behind it queues too. One slow migration becomes a site-wide stall rather than a failed deploy.

    Do this: Set a short lock_timeout (a few seconds) at the top of the migration so it fails fast and retries instead of blocking traffic.

    When this is not a problem: Your migration runner may set this globally; check its configuration before acting.

  2. Fix now
    Anyone can use the admin users feature without signing in

    In src/api/admin.ts

    What could happen

    This change adds a new address your app answers without checking who is asking. Anyone who finds its address could read or change data, or run up your costs, without signing in.

    How to fix it

    Require sign-in, and the right permissions, in src/api/admin.ts before it does any work.

    More details
    Fix nowNew endpoint in admin.ts has no auth check

    src/api/admin.ts:9Missing sign-in check

    Nothing in this file identifies or limits the caller, so anyone who finds the URL can call it as often as they like. If it reads data, that data is public; if it writes or costs money, they are spending yours.

    Do this: Require an authenticated session at the top of the handler in src/api/admin.ts, check that the caller owns the record it touches, and add a rate limit. If it is genuinely meant to be public, add a comment saying so.

    When this is not a problem: Auth is often applied globally in middleware, a route group, or a gateway this check cannot see. Verify before treating it as exposed.

  3. Fix now
    Anyone could send fake payment events to your app

    In src/api/webhook.ts

    What could happen

    Your app acts on messages that claim to come from a service like Stripe without checking they are real. Someone could send a fake 'payment succeeded' message and unlock paid features for free.

    How to fix it

    In src/api/webhook.ts, check that every incoming message really comes from the provider before acting on it.

    More details
    Fix nowWebhook in webhook.ts trusts payloads without checking the signature

    src/api/webhook.ts:15Missing sign-in check

    Webhooks have to be public, so the only thing proving a request came from the provider is its signature. Without that check, anyone who finds the URL can post a fake event (a paid invoice, a completed checkout, a cancelled subscription) and this code will act on it.

    Do this: Verify the provider's signature header against the raw request body before reading the payload in src/api/webhook.ts (for Stripe, stripe.webhooks.constructEvent with the endpoint secret), and reject the request when it fails.

    When this is not a problem: Verification may happen in shared middleware this check cannot see.

  4. Fix now
    Tests were removed or made easier to pass

    Found in 2 places

    • src/pay.test.ts:7
    • src/pay.test.ts:4
    What could happen

    The checks that prove your app works were deleted, skipped or loosened. A bug could now ship without anything noticing.

    How to fix it

    Put the removed test checks back, or rewrite them to test the new behaviour just as strictly.

    More details
    Fix now3 assertions removed from pay.test.ts

    src/pay.test.ts:7Weakened testsconfidence high

    The tests still run but check 3 fewer things. A green run no longer proves what it did before this change.

    Do this: Compare src/pay.test.ts against its previous version and restore any assertion that was removed to make a failure go away, rather than because the behaviour changed.

    When this is not a problem: Correct when a test was genuinely simplified, parameterised, or moved into a helper in the same change.

    Fix nowTest run narrowed with .only in pay.test.ts

    src/pay.test.ts:4Weakened testsconfidence high

    A .only marker makes the runner execute just this test and silently ignore every other test in the file. CI will be green because almost nothing ran.

    Do this: Remove the .only marker before committing so the whole suite runs again.

    When this is not a problem: A skip may be a deliberate, documented quarantine for a known-flaky test.

Everything else (4)
  1. Fix soon
    The code uses a package that is not installed

    In src/api/webhook.ts

    What could happen

    This change imports a package your project does not list. The app may fail to build or start, and AI tools sometimes invent package names that attackers then publish.

    How to fix it

    Check the package is real and needed, then install it properly, or remove it from src/api/webhook.ts.

    More details
    Fix soonstripe-webhook-retry-helper is imported but not in any manifest

    src/api/webhook.ts:2Package not installed

    The code imports stripe-webhook-retry-helper, and nothing installs it. Either the install step was skipped (in which case this crashes on the first run in a clean environment) or the package does not exist and the agent invented the name. Invented names repeat across runs often enough that attackers register them, so installing one blindly is its own risk.

    Do this: Check each name resolves to a real, maintained package before installing it, then add stripe-webhook-retry-helper to the manifest and commit the lockfile.

    When this is not a problem: Monorepo path aliases, workspace packages and generated modules can look undeclared without being wrong.

  2. Fix soon
    A scheduled job now runs much more often

    In src/jobs/sync.ts

    What could happen

    The job will run many more times a day than before. If it calls a paid service or the database, your costs and load go up by the same amount.

    How to fix it

    Set the schedule in src/jobs/sync.ts back to how often the job really needs to run.

    More details
    Fix soonScheduled job runs 288x more often

    src/jobs/sync.ts:2Schedule, retry or time limit changeconfidence high

    This job went from about 1 to about 288 runs a day. Everything it does (database queries, API calls, any paid service it touches) multiplies by the same factor, continuously, whether or not anyone is using the app.

    Do this: Confirm the new schedule "*/5 * * * *" is intended. If the job is only meant to catch up on missed work, keep the old interval and make the job process a backlog instead.

  3. Good to know
    Errors are being silently ignored

    In src/api/webhook.ts

    What could happen

    When something goes wrong here, the error is thrown away. The app carries on as if all is well, so people see wrong results and your logs have nothing to explain why.

    How to fix it

    Log the error in src/api/webhook.ts, and stop or tell the user when it matters.

    More details
    Good to knowError caught and discarded in webhook.ts

    src/api/webhook.ts:9Errors ignored

    When this fails, the failure disappears. The request returns as if it worked, the user sees a success state built on nothing, and there is no error to find later, which is why this class of bug is usually discovered from a customer report rather than from monitoring.

    Do this: Either handle the error meaningfully or re-raise it at src/api/webhook.ts:9. If it truly is safe to ignore, say why in a comment so the next reader does not have to guess.

    When this is not a problem: Genuinely optional work (best-effort telemetry, cache warming) is fine to swallow.

  4. Good to know
    Parts of this change are unfinished

    In src/api/webhook.ts

    What could happen

    There are to-do notes, placeholder values or empty stand-in code in this change. Something may look finished but not actually work.

    How to fix it

    Finish or remove the placeholders in src/api/webhook.ts.

    More details
    Good to know1 unfinished marker left in the change

    src/api/webhook.ts:11Unfinished workconfidence high

    Something here is a placeholder rather than a working implementation. If the task was reported as complete, this is the gap between what was claimed and what exists, and it will surface as a runtime failure or a silently wrong result rather than a build error.

    Do this: Open each marker and either finish it or delete the dead path. Start with src/api/webhook.ts:11.

    When this is not a problem: A TODO can be a deliberate, tracked note rather than an unfinished edit.

What this change does

  1. Changes the database: migration.sql removes a column from users, adds an index and adds a column to users. prisma/migrations/001_add/migration.sql:1
  2. Reads 1 setting that must be set where the app runs: STRIPE_WEBHOOK_SECRET. src/api/webhook.ts:4
  3. Runs work in the background or on a schedule in sync.ts. src/jobs/sync.ts:2

Read from the change itself: the names and places are exact, the wording is ours.

Database1 migration, 1 dangerous step, 2 to be careful with, 1 new table

1 dangerous step. It cannot be undone once it runs on your live database: back up first.

  • Dangerous Deletes the column legacy_status from users and all the data in itprisma/migrations/001_add/migration.sql:1 See the issues

Other steps, in the order they run

  • Be careful Builds an index on orders(customer_id) without CONCURRENTLY, which locks writes until it finishesprisma/migrations/001_add/migration.sql:2 See the issue
  • Be careful Adds the column signup_day to users with a computed default, which rewrites the whole table while blocking itprisma/migrations/001_add/migration.sql:3 See the issue

Tables

  • users (new table): signup_day date

Deploy and config1 setting now required, 1 scheduled job

Settings

  • STRIPE_WEBHOOK_SECRETnow required: the app fails without itsrc/api/webhook.ts:4

Scheduled jobs

  • syncchangedevery 5 minutessrc/jobs/sync.ts:2

AI settingsno AI calls added, removed or changed

Before you push 3 things to do

Database
  • Run migration 001_add/migration.sql in every environment before the code that depends on it is deployed, after fixing its risky step (see "A database change could freeze your app while it runs"). prisma/migrations/001_add/migration.sql:1
Environment
  • Your app needs STRIPE_WEBHOOK_SECRET where it runs. Already added it on your host? Then you are done. Otherwise add it wherever your app is hosted (its Environment Variables or Secrets page) and to .env.local for local runs. Optional: list its name in .env.example so the next person knows it is needed. src/api/webhook.ts:4Get the key at dashboard.stripe.com/webhooks.
Infrastructure
  • sync.ts adds a scheduled or background job. Confirm your host actually runs it (a cron entry or a worker process; serverless functions do not keep timers alive) and that it is safe if it runs twice at the same time. src/jobs/sync.ts:2

Read from the change itself. Each item is something to do outside the code before you push, or a test worth doing by hand.

Where this change lands

This change adds the admin users address, the Stripe webhook address, the users table and the STRIPE_WEBHOOK_SECRET setting and touches the sync background job.

  • Changed by this change
  • New in this change
  • Not touched
  • Solid line: we saw this connection in your code
Where this change lands9 boxes in 5 lanes, read left to right: who uses the app, its pages, its server, its data, and the outside services it relies on. Touched by this change: Sync (changed), Admin users (server) (new), Stripe webhook (server) (new), Users (new), Stripe webhook secret (new).VisitorsanyoneChanged1 issueSyncsrc/jobs/sync.tsNew1 issueAdmin users (server)DELETE /api/admin/users/:…!No sign-in checkHealth (server)GET /healthNew1 issueStripe webhook (server)POST /api/webhooks/stripeNew1 issueUsersusersNewStripe webhook secretSTRIPE_WEBHOOK_SECRETDatabase URLDATABASE_URLStripe secret keySTRIPE_SECRET_KEY

Click or tab to a part to see what it connects to. Press Esc to clear.

Tap a connection to jump to that part.

Touched by this change 5

Server address

New1 issue
Admin users (server)
DELETE /api/admin/users/:idNo sign-in check

Your server answers at /api/admin/users/:id. Anyone can use it: it has no sign-in check.

What changed
  • New address
  • Deletes from Users

Usesdeletes from Users

More about this
Connections
  • Deletes from Users (src/api/admin.ts:5)
  • Visitors can call this (src/api/admin.ts:9)
Where it is in your code
  • src/api/admin.ts:9

Name in the code: DELETE /api/admin/users/:id

Background job

Changed1 issue
Sync
src/jobs/sync.ts

Runs on a schedule.

What changed
  • The code behind it changed
More about this
Where it is in your code
  • src/jobs/sync.ts:2

Name in the code: src/jobs/sync.ts

Setting

New
Stripe webhook secret
STRIPE_WEBHOOK_SECRET

A secret setting your app reads. Keep its value out of the code.

What changed
  • New setting
More about this
Connections
Where it is in your code
  • src/api/webhook.ts:4

Name in the code: STRIPE_WEBHOOK_SECRET
This looks like a secret key. Keep it out of your code.

Who uses it 1

Who opens your app.

Server 1

Addresses your app answers on its server.

Health (server)
GET /health

Your server answers at /health.

More about this
Where it is in your code
  • src/api/health.ts:2

Name in the code: GET /health

Settings 2

Values set where your app runs, such as keys.

Database URL
DATABASE_URL

Listed in .env.example; the code does not read it.

More about this
Where it is in your code
  • .env.example:1

Name in the code: DATABASE_URL
This looks like a secret key. Keep it out of your code.

Stripe secret key
STRIPE_SECRET_KEY

Listed in .env.example; the code does not read it.

More about this
Where it is in your code
  • .env.example:2

Name in the code: STRIPE_SECRET_KEY
This looks like a secret key. Keep it out of your code.

Files, ordered by risk open a file to see the functions it changes

  • src/api/webhook.ts+15 -04 issuesNew code fileSTRIPE_WEBHOOK_SECRET
    Functions changed (1)
    • handleStripeWebhook
    Issues in this file
    • Fix now Anyone could send fake payment events to your app line 15
    • Fix soon The code uses a package that is not installed line 2
    • Good to know Errors are being silently ignored line 9
    • Good to know Parts of this change are unfinished line 11
    Before you push
    • Your app needs `STRIPE_WEBHOOK_SECRET` where it runs. Already added it on your host? Then you are done. Otherwise add it wherever your app is hosted (its Environment Variables or Secrets page) and to `.env.local` for local runs. Optional: list its name in `.env.example` so the next person knows it is needed. line 4
    Technical detail

    Kind: source · Status: added · Touches: setting STRIPE_WEBHOOK_SECRET

  • prisma/migrations/001_add/migration.sql+3 -01 issueNew database migrationusers table
    Functions changed

    No function names could be read from this file's change.

    Issues in this file
    • Fix now A database change could freeze your app while it runs lines 1, 2, 3
    Before you push
    • Run migration 001_add/migration.sql in every environment before the code that depends on it is deployed, after fixing its risky step (see "A database change could freeze your app while it runs"). line 1
    Technical detail

    Kind: migration · Status: added · Touches: table users

  • src/pay.test.ts+1 -41 issueEdited test file
    Functions changed

    No function names could be read from this file's change.

    Issues in this file
    • Fix now Tests were removed or made easier to pass lines 7, 4
    Technical detail

    Kind: test · Status: modified

  • src/api/admin.ts+9 -01 issueNew code file
    Functions changed (1)
    • deleteUser
    Issues in this file
    • Fix now Anyone can use the admin users feature without signing in line 9
    Technical detail

    Kind: source · Status: added

  • src/jobs/sync.ts+1 -11 issueEdited code filesync.ts
    Functions changed

    No function names could be read from this file's change.

    Issues in this file
    • Fix soon A scheduled job now runs much more often line 2
    Before you push
    • sync.ts adds a scheduled or background job. Confirm your host actually runs it (a cron entry or a worker process; serverless functions do not keep timers alive) and that it is safe if it runs twice at the same time. line 2
    Technical detail

    Kind: source · Status: modified · Touches: background job sync.ts

Fixed checks only, no AI model involved. Uploaded by intentiai: names, file paths, line numbers, plain text and counts. No lines of code and no command output; those stay in the local report.

Check sample-check

More sample reports | IntentiAI