chore(connect): provider-host ratchet in check:guards, drop the dead Arcim gateway client (#2178)
* chore(connect): provider-host ratchet in check:guards, drop the dead Arcim gateway client Two boundary chores from the Connect plan. (1) A per-file ratchet in scripts/checks/no-new-antipatterns.mjs over files under lib/, app/ and extensions/ that name a provider API host (Enable Banking, Skatteverket, Qvalia, Fortnox, Visma, Briox, Bjorn Lunden, Bokio, Bolagsverket, TIC, Meta, Gmail). The 22 files that do so today are grandfathered in the baseline; a new one fails the guard with the connector routing as the remedy, and the set may only shrink as upstreams move behind the connector. (2) The client for the retired Arcim Sync gateway (extensions/general/arcim-migration/lib/ arcim-client.ts) is deleted with its test: provider-client.ts replaced it and nothing else imported it. The --update rewrite also locks in the lower naive-ore-round count (620 to 617) that main already reached. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01MMUUom4fUk6zi4xYZSSfat Signed-off-by: Jakob Wennberg <[email protected]> * chore(guards): provider-host ratchet is case-insensitive and skips colocated .test.tsx; document the own-credentials exception Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: Jakob Wennberg <[email protected]> --------- Signed-off-by: Jakob Wennberg <[email protected]> Co-authored-by: Jakob Wennberg <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
Jakob Wennberg
parent
c0ecf2fa3b
commit
8c8996773f
@@ -7,7 +7,7 @@
|
||||
]
|
||||
},
|
||||
"naiveOreRound": {
|
||||
"count": 620
|
||||
"count": 617
|
||||
},
|
||||
"handRolledInvariants": {
|
||||
"count": 113
|
||||
@@ -36,5 +36,32 @@
|
||||
"rawReferenceFetch": {
|
||||
"count": 0,
|
||||
"files": []
|
||||
},
|
||||
"providerHosts": {
|
||||
"count": 22,
|
||||
"files": [
|
||||
"app/api/connect/bank/[...path]/route.ts",
|
||||
"extensions/general/bolagsverket/lib/client.ts",
|
||||
"extensions/general/enable-banking/index.ts",
|
||||
"extensions/general/enable-banking/lib/api-client.ts",
|
||||
"extensions/general/mail/lib/gmail-client.ts",
|
||||
"extensions/general/skatteverket/index.ts",
|
||||
"extensions/general/skatteverket/lib/connector-mode.ts",
|
||||
"extensions/general/skatteverket/lib/ombud-client.ts",
|
||||
"extensions/general/skatteverket/lib/skattekonto-client.ts",
|
||||
"extensions/general/tic/index.ts",
|
||||
"extensions/general/tic/lib/bankid-client.ts",
|
||||
"extensions/general/tic/lib/bankid-types.ts",
|
||||
"extensions/general/whatsapp-inbox/lib/graph-api.ts",
|
||||
"lib/connect/upstreams/enable-banking-jwt.ts",
|
||||
"lib/invoices/transports/qvalia.ts",
|
||||
"lib/providers/bjornlunden/config.ts",
|
||||
"lib/providers/bjornlunden/oauth.ts",
|
||||
"lib/providers/bokio/client.ts",
|
||||
"lib/providers/bokio/config.ts",
|
||||
"lib/providers/briox/config.ts",
|
||||
"lib/providers/fortnox/config.ts",
|
||||
"lib/providers/visma/config.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user