# chunks_content

c0: pnpm test
c3: command
c5: 2026-08-03T15:00:25.638934867+00:00
c1:
   RUN  v3.2.7 /home/user/builds/wt-pz-e58c98f822bb/backend/api
   ✓ src/routes/plugin.test.ts (19 tests) 22049ms
     ✓ createPluginRoute > debits credits once and returns downstream data on the happy path  1483ms
     ✓ createPluginRoute > returns 402 without recording a debit when credits are insufficient  1182ms
     ✓ createPluginRoute > retains a charged intent as pending when downstream execution is uncertain  1164ms
     ✓ createPluginRoute > never expires a charged pending intent into another debit or execution  1134ms
     ✓ createPluginRoute > binds the account before access runs and never debits when access blocks the request  1138ms
     ✓ createPluginRoute > requires a client idempotency key before charging or executing  1149ms
     ✓ createPluginRoute > rejects an oversized client idempotency key before charging or executing  1301ms
     ✓ createPluginRoute > rejects an oversized request body before charging or executing  1222ms
     ✓ createPluginRoute > replays a persisted result without another debit or execution  1106ms
     ✓ createPluginRoute > replays the same request when its host changes between retries  1119ms
     ✓ createPluginRoute > scopes a reused client key to its billing period  1104ms
     ✓ createPluginRoute > rejects reusing an idempotency key for a different request payload  1123ms
     ✓ createPluginRoute > replays a persisted BigInt result with the same JSON response  1092ms
     ✓ createPluginRoute > reconciles an uncertain result without executing downstream work again  1123ms
     ✓ createPluginRoute > keeps a pending intent when reconciliation returns a different request hash  1147ms
     ✓ createPluginRoute > replays one persisted reconciliation result when retries race  1150ms
     ✓ createPluginRoute > does not let a late execution writer overwrite a reconciled result  1105ms
     ✓ createPluginRoute > replays reconciliation when late execution becomes uncertain after settlement  1124ms
     ✓ createPluginRoute > exposes the requireAuth -> bindAccount -> requirePluginAccess guard chain for mounting  1079ms
   ✓ src/routes/oauth.test.ts (8 tests) 8726ms
     ✓ oauthRoute > returns an authorization code envelope from /oauth/authorize  1089ms
     ✓ oauthRoute > rejects an unauthenticated /oauth/authorize request  1087ms
     ✓ oauthRoute > exchanges a code, returns a bearer token, and stores a site credential link  1118ms
     ✓ oauthRoute > returns a 400 OAUTH_INVALID envelope when the PKCE verifier does not match  1093ms
     ✓ oauthRoute > rejects a token exchange whose redirect_uri differs from the authorization request  1065ms
     ✓ oauthRoute > rejects a token exchange that omits redirect_uri  1076ms
     ✓ oauthRoute > binds the credential to the account on the code, ignoring any caller-supplied account_id  1100ms
     ✓ oauthRoute > rejects a token exchange for a code that carries no account binding  1097ms
   ✓ src/index.test.ts (11 tests) 9258ms
     ✓ createApp integration mounts > mounts public and authenticated groups with the required auth boundaries  1367ms
     ✓ listStaffAccounts > filters account summaries and returns their subscription state within the requested limit  1151ms
     ✓ reserveRefund > derives durable reservation facts from the settlement instead of a client customer payload  1112ms
     ✓ reserveRefund > ignores a client-provided partial amount and reserves the durable full settlement  1119ms
     ✓ reserveRefund > rejects a refund when any settlement credit was used  1128ms
     ✓ reserveRefund > persists one full-refund reservation and reuses it across retry  1114ms
     ✓ reserveRefund > confirms an untouched settlement once with a zero balance, reversal, audit, and credit note  1131ms
     ✓ reserveRefund > flags a provider fact mismatch while retaining the reservation and all financial state  1118ms
   ✓ src/routes/webhooks.test.ts (7 tests) 7850ms
     ✓ createWebhookRoute > rejects a settlement amount mismatch before any financial effect  1142ms
     ✓ createWebhookRoute > rejects a settlement key-component mismatch before any financial eff
  [truncated]


