Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -10,21 +10,23 @@ import { spawn } from "node:child_process";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(__dirname, "..");
export const reportPath = path.join(repoRoot, ".tc/baselines/billing-boundary/baseline-health.md");
const pnpmCommand = process.platform === "win32" ? "pnpm.cmd" : "pnpm";
const billingInventoryPatterns = [
{ id: "plan-equality", pattern: /\bplan\s*===/g },
{ id: "trial-days", pattern: /\btrialDays\b/g },
{ id: "trial-free-autosubscribe", pattern: /\bautosubscribeToTrialOrFreePlan\b/g },
{ id: "stripe-price-product-lookup", pattern: /\b(?:stripePriceId|stripeProductId|getSubscriptionPriceByStripeId|getSubscriptionProductByStripeId|price\.stripeId|product\.stripeId|stripe\.prices|stripe\.products)\b/g },
{ id: "billing-price-product-lookup", pattern: /\b(?:billingProviderPriceId|billingProviderProductId|getSubscriptionPriceByBillingProviderId|getSubscriptionProductByBillingProviderId|price\.billingProviderId|product\.billingProviderId|billing\.prices|billing\.products)\b/g },
{ id: "direct-subscription-model-access", pattern: /\bdb\.(?:subscriptionProduct|subscriptionPrice|subscriptionFeature|subscriptionUsageBasedPrice|subscriptionUsageBasedTier|tenantSubscription|tenantSubscriptionProduct|tenantSubscriptionProductPrice|tenantSubscriptionUsageRecord|checkoutSessionStatus)\b/g },
];
export const gates = [
{ id: "typecheck", command: "pnpm", args: ["run", "typecheck"] },
{ id: "lint", command: "pnpm", args: ["run", "lint"] },
{ id: "typecheck", command: pnpmCommand, displayCommand: "pnpm", args: ["run", "typecheck"] },
{ id: "lint", command: pnpmCommand, displayCommand: "pnpm", args: ["run", "lint"] },
{
id: "vitest-billing-boundary",
command: "pnpm",
command: pnpmCommand,
displayCommand: "pnpm",
args: [
"exec",
"vitest",
@@ -39,7 +41,7 @@ export const gates = [
function shellCommand(gate) {
if (gate.type === "billing-inventory") return "read-only billing inventory";
return [gate.command, ...gate.args].join(" ");
return [gate.displayCommand ?? gate.command, ...gate.args].join(" ");
}
function outputFingerprint(output) {
@@ -106,7 +108,7 @@ function runShellGate(gate) {
const child = spawn(gate.command, gate.args, {
cwd: repoRoot,
env: { ...process.env, CI: "1" },
shell: false,
shell: process.platform === "win32",
});
let stdout = "";
@@ -211,7 +213,7 @@ export function renderReport(results) {
`Generated: ${new Date().toISOString()}`,
"",
"This report captures non-E2E baseline gates for Billing Boundary baseline. The runner exits 0 when every gate was executed and this report was written, even if individual gates fail.",
"The billing inventory gate is read-only and fingerprints known plan, trial, Stripe lookup, and direct subscription model access hot spots without failing on legacy findings.",
"The billing inventory gate is read-only and fingerprints known plan, trial, billing provider lookup, and direct subscription model access hot spots without failing on legacy findings.",
"",
];