hot-updater 1.0.0-rc.8 → 1.0.0
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/agent/verify-server.mjs +381 -0
- package/dist/config.d.mts +1 -16
- package/dist/config.mjs +2 -2
- package/dist/{keyGeneration-BKMUY8Y4.mjs → fingerprint-D0Q1Sl5G.mjs} +102 -129
- package/dist/index.mjs +3322 -2154
- package/dist/infra-templates/aws/COMMON.md +233 -88
- package/dist/infra-templates/aws/ENVIRONMENT.md +9 -7
- package/dist/infra-templates/aws/SETUP.md +146 -54
- package/dist/infra-templates/aws/app/hot-updater.config.bare.ts +6 -2
- package/dist/infra-templates/aws/app/hot-updater.config.expo.ts +6 -2
- package/dist/infra-templates/aws/app/hot-updater.config.rock.ts +6 -2
- package/dist/infra-templates/aws/app/hotUpdater.ts +28 -0
- package/dist/infra-templates/aws/app/provision-client-credential.mjs +87 -0
- package/dist/infra-templates/aws/app/verify-server.mjs +381 -0
- package/dist/infra-templates/aws/cloudfront/catalog-cache-policy.json +1 -1
- package/dist/infra-templates/aws/cloudfront/distribution.json +42 -1
- package/dist/infra-templates/aws/cloudfront/origin-request-policy.json +1 -1
- package/dist/infra-templates/aws/dynamodb/create-table.json +29 -0
- package/dist/infra-templates/aws/dynamodb/enable-pitr.json +6 -0
- package/dist/infra-templates/aws/dynamodb/enable-ttl.json +7 -0
- package/dist/infra-templates/aws/dynamodb/schema-settings.json +111 -0
- package/dist/infra-templates/aws/iam/dynamodb-policy.json +92 -0
- package/dist/infra-templates/aws/iam/s3-policy.json +23 -0
- package/dist/infra-templates/aws/iam/ssm-policy.json +12 -0
- package/dist/infra-templates/aws/iam/trust-policy.json +15 -0
- package/dist/infra-templates/aws/lambda/index.cjs +10513 -6407
- package/dist/infra-templates/aws/lambda/index.d.cts +344 -1
- package/dist/infra-templates/aws/lambda/package.json +1 -1
- package/dist/infra-templates/aws/reference/dynamodb.ts +104 -45
- package/dist/infra-templates/aws/reference/iam.ts +110 -91
- package/dist/infra-templates/aws/template.json +77 -11
- package/dist/infra-templates/aws/upgrades/1.0.0.md +152 -69
- package/dist/infra-templates/aws/upgrades/README.md +2 -2
- package/dist/infra-templates/cloudflare/COMMON.md +233 -88
- package/dist/infra-templates/cloudflare/ENVIRONMENT.md +9 -6
- package/dist/infra-templates/cloudflare/SETUP.md +83 -39
- package/dist/infra-templates/cloudflare/app/hot-updater.config.bare.ts +6 -3
- package/dist/infra-templates/cloudflare/app/hot-updater.config.expo.ts +6 -3
- package/dist/infra-templates/cloudflare/app/hot-updater.config.rock.ts +6 -3
- package/dist/infra-templates/cloudflare/app/hotUpdater.ts +26 -0
- package/dist/infra-templates/cloudflare/app/provision-client-credential.mjs +87 -0
- package/dist/infra-templates/cloudflare/app/verify-server.mjs +381 -0
- package/dist/infra-templates/cloudflare/template.json +65 -11
- package/dist/infra-templates/cloudflare/upgrades/1.0.0.md +152 -69
- package/dist/infra-templates/cloudflare/upgrades/README.md +2 -2
- package/dist/infra-templates/cloudflare/worker/dist/README.md +1 -1
- package/dist/infra-templates/cloudflare/worker/dist/index.js +9859 -5696
- package/dist/infra-templates/cloudflare/worker/dist/index.js.map +4 -4
- package/dist/infra-templates/cloudflare/worker/migrations/0001_hot-updater_1.0.0.sql +121 -222
- package/dist/infra-templates/cloudflare/worker/wrangler.json +1 -0
- package/dist/infra-templates/firebase/COMMON.md +233 -88
- package/dist/infra-templates/firebase/ENVIRONMENT.md +4 -4
- package/dist/infra-templates/firebase/SETUP.md +107 -47
- package/dist/infra-templates/firebase/app/hot-updater.config.bare.ts +6 -2
- package/dist/infra-templates/firebase/app/hot-updater.config.expo.ts +6 -2
- package/dist/infra-templates/firebase/app/hot-updater.config.rock.ts +6 -2
- package/dist/infra-templates/firebase/app/hotUpdater.ts +29 -0
- package/dist/infra-templates/firebase/app/migrate.ts +16 -0
- package/dist/infra-templates/firebase/app/provision-client-credential.mjs +87 -0
- package/dist/infra-templates/firebase/app/verify-server.mjs +381 -0
- package/dist/infra-templates/firebase/firebase/firestore.indexes.json +29 -58
- package/dist/infra-templates/firebase/firebase/functions/index.cjs +10209 -5182
- package/dist/infra-templates/firebase/firebase/functions/package.json +1 -1
- package/dist/infra-templates/firebase/template.json +44 -12
- package/dist/infra-templates/firebase/upgrades/1.0.0.md +152 -69
- package/dist/infra-templates/firebase/upgrades/README.md +2 -2
- package/dist/infra-templates/supabase/COMMON.md +233 -88
- package/dist/infra-templates/supabase/ENVIRONMENT.md +5 -5
- package/dist/infra-templates/supabase/SETUP.md +85 -33
- package/dist/infra-templates/supabase/app/hot-updater.config.bare.ts +6 -3
- package/dist/infra-templates/supabase/app/hot-updater.config.expo.ts +6 -3
- package/dist/infra-templates/supabase/app/hot-updater.config.rock.ts +6 -3
- package/dist/infra-templates/supabase/app/hotUpdater.ts +22 -0
- package/dist/infra-templates/supabase/app/provision-client-credential.mjs +87 -0
- package/dist/infra-templates/supabase/app/verify-server.mjs +381 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist → hot-updater-plugin-api-keys/dist/server}/apiKeys.cjs +3 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist → hot-updater-plugin-api-keys/dist/server}/apiKeys.d.cts +3 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist → hot-updater-plugin-api-keys/dist/server}/apiKeys.d.mts +3 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist → hot-updater-plugin-api-keys/dist/server}/apiKeys.mjs +3 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/cli.cjs +22 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/cli.mjs +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/index.cjs +55 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/index.d.cts +81 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/index.d.mts +81 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/index.mjs +51 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/model.cjs +58 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/model.d.cts +26 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/model.d.mts +26 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/model.mjs +58 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/official.cjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/official.mjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/schema.cjs +38 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/schema.d.cts +42 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/schema.d.mts +42 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-api-keys/dist/server/schema.mjs +39 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/baseCandidateKey.cjs +50 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/baseCandidateKey.d.cts +27 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/baseCandidateKey.d.mts +27 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/baseCandidateKey.mjs +49 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/bundleStorageLayout.cjs +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/bundleStorageLayout.d.cts +5 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/bundleStorageLayout.d.mts +5 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/bundleStorageLayout.mjs +7 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/contentType.cjs +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/contentType.d.cts +4 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/contentType.d.mts +4 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/contentType.mjs +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/coreApi.d.cts +131 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/coreApi.d.mts +131 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStorageAdapter.cjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStorageAdapter.d.cts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStorageAdapter.d.mts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStorageAdapter.mjs +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/adapter.cjs +61 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/adapter.d.cts +200 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/adapter.d.mts +200 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/adapter.mjs +55 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/distinct.cjs +88 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/distinct.d.cts +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/distinct.d.mts +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/distinct.mjs +85 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/memoryAdapter.cjs +107 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/memoryAdapter.d.cts +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/memoryAdapter.d.mts +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/memoryAdapter.mjs +107 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/values.cjs +114 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/values.d.cts +17 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/values.d.mts +17 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/values.mjs +104 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/verifyAdapter.cjs +137 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/verifyAdapter.d.cts +37 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/verifyAdapter.d.mts +37 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/database/verifyAdapter.mjs +136 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseErrors.cjs +30 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseErrors.d.cts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseErrors.d.mts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseErrors.mjs +28 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseJsonValue.cjs +6 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseJsonValue.d.cts +9 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseJsonValue.d.mts +9 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseJsonValue.mjs +6 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseMetadata.cjs +4 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseMetadata.mjs +4 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseRows.cjs +6 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseRows.d.cts +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseRows.d.mts +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseRows.mjs +2 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/core/schema.cjs +279 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/core/schema.d.cts +312 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/core/schema.d.mts +312 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/core/schema.mjs +277 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/createEngine.cjs +72 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/createEngine.d.cts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/createEngine.d.mts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/createEngine.mjs +72 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/aggregateBatching.cjs +627 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/aggregateBatching.mjs +626 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/cursor.cjs +42 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/cursor.mjs +38 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/database.cjs +68 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/database.mjs +68 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engine.cjs +37 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engine.mjs +37 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineAggregates.cjs +120 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineAggregates.mjs +117 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineReads.cjs +182 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineReads.d.cts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineReads.d.mts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineReads.mjs +181 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineTransaction.cjs +399 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineTransaction.d.cts +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineTransaction.d.mts +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/engineTransaction.mjs +398 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/fence.cjs +156 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/fence.d.cts +41 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/fence.d.mts +41 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/fence.mjs +149 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/kv/kvAdapter.cjs +293 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/kv/kvAdapter.d.cts +116 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/kv/kvAdapter.d.mts +116 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/kv/kvAdapter.mjs +292 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/readMeter.cjs +80 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/readMeter.d.cts +34 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/readMeter.d.mts +34 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/readMeter.mjs +79 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/resolveSchema.cjs +197 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/resolveSchema.d.cts +35 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/resolveSchema.d.mts +35 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/resolveSchema.mjs +195 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/retention.cjs +100 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/retention.mjs +98 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlAdapter.cjs +290 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlAdapter.d.cts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlAdapter.d.mts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlAdapter.mjs +288 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlSchema.cjs +175 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlSchema.d.cts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlSchema.d.mts +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/database/sql/sqlSchema.mjs +169 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/coreDatabase.cjs +94 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/coreDatabase.d.cts +78 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/coreDatabase.d.mts +78 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/coreDatabase.mjs +86 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineMigrator.cjs +52 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineMigrator.mjs +52 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSql.cjs +26 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSql.d.cts +16 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSql.d.mts +16 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSql.mjs +25 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSqlMigrator.cjs +66 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSqlMigrator.d.cts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSqlMigrator.d.mts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/engineSqlMigrator.mjs +66 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/fixedMigratorShared.cjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/fixedMigratorShared.mjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/schemaSettings.cjs +42 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/schemaSettings.d.cts +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/schemaSettings.d.mts +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/schemaSettings.mjs +41 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/settingsMigrator.cjs +91 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/settingsMigrator.d.cts +24 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/settingsMigrator.d.mts +24 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/settingsMigrator.mjs +88 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/types.d.cts +77 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/engine/db/types.d.mts +77 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/index.cjs +98 -56
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/index.d.cts +46 -24
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/index.d.mts +46 -24
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/index.mjs +33 -20
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/comparison-DenM3wCn.cjs +0 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/comparison-DenM3wCn.mjs +1 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/range-DvX-Y6iv.cjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/range-DvX-Y6iv.mjs +9 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/set-CC5YeoYX.cjs +4 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/set-CC5YeoYX.mjs +4 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/version-CQ98ZBpL.cjs +0 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/node_modules/.pnpm/verkit@0.4.0/node_modules/verkit/dist/version-CQ98ZBpL.mjs +2 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogCompiler.cjs +35 -47
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogCompiler.d.cts +1 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogCompiler.d.mts +2 -3
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogCompiler.mjs +13 -30
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogMutation.cjs +0 -292
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogMutation.d.cts +4 -45
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogMutation.d.mts +4 -45
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseCatalogMutation.mjs +1 -288
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseManagement.cjs +0 -221
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseManagement.d.cts +4 -28
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseManagement.d.mts +4 -28
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/releaseManagement.mjs +1 -216
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/remoteBundleSigning.d.cts +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/remoteBundleSigning.d.mts +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/busy.cjs +36 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/busy.d.cts +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/busy.d.mts +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/busy.mjs +36 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/configError.cjs +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/configError.d.cts +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/configError.d.mts +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/configError.mjs +7 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/coreReads.d.cts +48 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/coreReads.d.mts +48 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/databaseHandle.d.cts +105 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/databaseHandle.d.mts +105 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definePlugin.cjs +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definePlugin.d.cts +128 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definePlugin.d.mts +128 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definePlugin.mjs +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definitions.d.cts +76 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/definitions.d.mts +76 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/errors.cjs +37 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/errors.d.cts +29 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/errors.d.mts +29 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/errors.mjs +32 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/schema.cjs +24 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/schema.d.cts +90 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/schema.d.mts +90 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/serverPlugin/schema.mjs +23 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseConfig.cjs +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseConfig.d.cts +72 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseConfig.d.mts +72 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseConfig.mjs +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseOperations.d.cts +5 -180
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseOperations.d.mts +5 -180
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseRows.d.cts +6 -57
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseRows.d.mts +6 -57
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/index.cjs +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/index.d.cts +31 -97
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/index.d.mts +31 -97
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/index.mjs +2 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/models.d.cts +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/models.d.mts +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/public.d.cts +4 -3
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/public.d.mts +4 -3
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/uuidv7.cjs +3 -3
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/uuidv7.d.cts +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/uuidv7.d.mts +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/uuidv7.mjs +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/errorDetails.cjs +35 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/errorDetails.mjs +34 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/eventId.cjs +181 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/eventId.mjs +179 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/index.cjs +248 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/index.d.cts +41 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/index.d.mts +41 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/index.mjs +247 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/sender.cjs +102 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/sender.mjs +102 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/state.cjs +139 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/client/state.mjs +137 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/adminReads.cjs +78 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/adminReads.d.cts +30 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/adminReads.d.mts +30 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/adminReads.mjs +77 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/contract.cjs +199 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/contract.mjs +195 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/domain.d.cts +193 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/domain.d.mts +193 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/errors.cjs +5 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/errors.d.cts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/errors.d.mts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/errors.mjs +5 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventInput.cjs +302 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventInput.mjs +300 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventRow.cjs +71 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventRow.d.cts +106 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventRow.d.mts +106 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/eventRow.mjs +68 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/index.cjs +133 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/index.d.cts +426 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/index.d.mts +426 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/index.mjs +123 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/model.cjs +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/model.d.cts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/model.d.mts +10 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/model.mjs +18 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/modelTypes.d.cts +190 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/modelTypes.d.mts +190 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/official.cjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/official.mjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/overview.cjs +105 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/overview.d.cts +15 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/overview.d.mts +15 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/overview.mjs +103 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/provider.cjs +135 -49
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/provider.d.cts +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/provider.d.mts +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/provider.mjs +132 -47
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/queryInput.cjs +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/queryInput.mjs +2 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/reads.cjs +680 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/reads.d.cts +49 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/reads.d.mts +49 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/reads.mjs +672 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/recordEvent.cjs +444 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/recordEvent.d.cts +17 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/recordEvent.d.mts +17 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/recordEvent.mjs +441 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/routes.cjs +53 -15
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/routes.mjs +53 -14
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/schema.cjs +575 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/schema.d.cts +751 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/schema.d.mts +751 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-insights/dist/server/schema.mjs +565 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/types.d.cts +3 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-server/dist/insights → hot-updater-plugin-insights/dist/server}/types.d.mts +3 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/client/index.cjs +208 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/client/index.d.cts +123 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/client/index.d.mts +123 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/client/index.mjs +207 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/admin.cjs +96 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/admin.d.cts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/admin.d.mts +21 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/admin.mjs +96 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/api.cjs +175 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/api.d.cts +85 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/api.d.mts +85 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/api.mjs +174 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/index.cjs +50 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/index.d.cts +64 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/index.d.mts +64 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/index.mjs +36 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/official.cjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/official.mjs +12 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/routes.cjs +157 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/routes.mjs +157 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/schema.cjs +46 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/schema.d.cts +57 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/schema.d.mts +57 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/schema.mjs +46 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/template.cjs +396 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/template.d.cts +134 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/template.d.mts +134 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/server/template.mjs +387 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/ownEntry.cjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/ownEntry.mjs +8 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/wire.cjs +48 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/wire.d.cts +24 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/wire.d.mts +24 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-remote-config/dist/shared/wire.mjs +45 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/{hot-updater-core → hot-updater-protocol}/dist/index.cjs +384 -15
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-protocol/dist/index.d.cts +581 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-protocol/dist/index.d.mts +581 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-protocol/dist/index.mjs +771 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzle.cjs +32 -75
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzle.d.cts +12 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzle.d.mts +12 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzle.mjs +32 -77
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleExecutor.cjs +114 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleExecutor.d.cts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleExecutor.d.mts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleExecutor.mjs +112 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kysely.cjs +22 -31
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kysely.d.cts +10 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kysely.d.mts +10 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kysely.mjs +23 -33
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyExecutor.cjs +32 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyExecutor.d.cts +11 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyExecutor.d.mts +11 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyExecutor.mjs +32 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodb.cjs +18 -54
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodb.d.cts +10 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodb.d.mts +10 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodb.mjs +19 -56
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbAdapter.cjs +192 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbAdapter.d.cts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbAdapter.d.mts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbAdapter.mjs +191 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prisma.cjs +35 -267
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prisma.d.cts +12 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prisma.d.mts +12 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prisma.mjs +36 -268
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaExecutor.cjs +63 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaExecutor.mjs +63 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/sqlProviders.cjs +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/sqlProviders.mjs +14 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/assemblePlugins.cjs +143 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/assemblePlugins.d.cts +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/assemblePlugins.d.mts +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/assemblePlugins.mjs +138 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/clientPlugins.cjs +88 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/clientPlugins.mjs +88 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/configError.d.cts +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/configError.d.mts +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/assembly/configError.mjs +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/api.cjs +51 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/api.d.cts +54 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/api.d.mts +54 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/api.mjs +51 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/baseCandidates.cjs +28 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/baseCandidates.mjs +28 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/operations.cjs +351 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/operations.mjs +351 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/reads.cjs +273 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/reads.d.cts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/reads.d.mts +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/reads.mjs +267 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/releases.cjs +193 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/releases.mjs +190 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/writes.cjs +96 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/core/writes.mjs +91 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/createHotUpdaterCore.cjs +76 -92
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/createHotUpdaterCore.d.cts +98 -39
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/createHotUpdaterCore.d.mts +98 -39
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/createHotUpdaterCore.mjs +78 -90
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/engineDrizzleSchema.cjs +53 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/engineDrizzleSchema.mjs +53 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/enginePrismaSchema.cjs +84 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/enginePrismaSchema.d.cts +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/enginePrismaSchema.d.mts +5 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/enginePrismaSchema.mjs +83 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/releaseCatalog.cjs +24 -47
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/releaseCatalog.mjs +20 -44
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/updateArtifacts.cjs +43 -72
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/updateArtifacts.mjs +40 -69
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handler.cjs +59 -59
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handler.d.cts +3 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handler.d.mts +3 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handler.mjs +61 -59
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerAdminRoutes.cjs +374 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerAdminRoutes.mjs +372 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerParameters.cjs +6 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerParameters.mjs +6 -10
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerReleaseCatalogRoutes.cjs +72 -19
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerReleaseCatalogRoutes.mjs +72 -19
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerTypes.d.cts +2 -55
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerTypes.d.mts +2 -55
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerVersionRoutes.cjs +20 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerVersionRoutes.mjs +20 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/index.cjs +9 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/index.d.cts +7 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/index.d.mts +7 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/index.mjs +3 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/node.cjs +1 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/node.d.cts +2 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/node.d.mts +2 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/node.mjs +2 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/package.cjs +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/package.mjs +1 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/api-keys/index.cjs +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/api-keys/index.d.cts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/api-keys/index.d.mts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/api-keys/index.mjs +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/definePlugin.d.cts +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/definePlugin.d.mts +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/index.cjs +27 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/index.d.cts +6 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/index.d.mts +6 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/index.mjs +4 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/insights/index.cjs +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/insights/index.d.cts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/insights/index.d.mts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/insights/index.mjs +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/official.cjs +34 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/official.mjs +33 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/remote-config/index.cjs +9 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/remote-config/index.d.cts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/remote-config/index.d.mts +1 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/plugins/remote-config/index.mjs +2 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/storageAccess.cjs +20 -54
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/storageAccess.mjs +20 -54
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/edge.cjs +2 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/edge.d.cts +2 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/edge.d.mts +2 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/edge.mjs +2 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/index.cjs +141 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/index.d.cts +11 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/index.d.mts +11 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/index.mjs +140 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/init/index.cjs +7577 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/init/index.d.cts +96 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/init/index.d.mts +96 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/init/index.mjs +7563 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-BryXQ72m.d.cts +28 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-BryXQ72m.d.mts +28 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-C8xQ3nyM.mjs +231 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-DAl3pyb7.cjs +254 -0
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/deno.json +6 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/index.ts +8 -3
- package/dist/infra-templates/supabase/supabase/migrations/0001_hot-updater_1.0.0.sql +221 -0
- package/dist/infra-templates/supabase/template.json +65 -11
- package/dist/infra-templates/supabase/upgrades/1.0.0.md +152 -69
- package/dist/infra-templates/supabase/upgrades/README.md +2 -2
- package/dist/plugins.d.mts +2 -0
- package/dist/plugins.mjs +2 -0
- package/dist/signing.d.mts +3 -3
- package/package.json +26 -20
- package/dist/infra-templates/aws/app/api-key.config.bare.ts +0 -16
- package/dist/infra-templates/aws/app/api-key.config.expo.ts +0 -16
- package/dist/infra-templates/aws/app/api-key.config.rock.ts +0 -16
- package/dist/infra-templates/aws/app/provision-api-key.mjs +0 -34
- package/dist/infra-templates/aws/reference/dynamodb-constants.json +0 -12
- package/dist/infra-templates/cloudflare/app/api-key.config.bare.ts +0 -12
- package/dist/infra-templates/cloudflare/app/api-key.config.expo.ts +0 -12
- package/dist/infra-templates/cloudflare/app/api-key.config.rock.ts +0 -12
- package/dist/infra-templates/cloudflare/app/provision-api-key.mjs +0 -34
- package/dist/infra-templates/firebase/app/api-key.config.bare.ts +0 -16
- package/dist/infra-templates/firebase/app/api-key.config.expo.ts +0 -16
- package/dist/infra-templates/firebase/app/api-key.config.rock.ts +0 -16
- package/dist/infra-templates/firebase/app/provision-api-key.mjs +0 -34
- package/dist/infra-templates/supabase/app/api-key.config.bare.ts +0 -11
- package/dist/infra-templates/supabase/app/api-key.config.expo.ts +0 -11
- package/dist/infra-templates/supabase/app/api-key.config.rock.ts +0 -11
- package/dist/infra-templates/supabase/app/provision-api-key.mjs +0 -34
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-core/dist/index.d.cts +0 -275
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-core/dist/index.d.mts +0 -275
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-core/dist/index.mjs +0 -411
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/calculatePagination.cjs +0 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/calculatePagination.d.cts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/calculatePagination.d.mts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/calculatePagination.mjs +0 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/compressionFormat.cjs +0 -62
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/compressionFormat.d.cts +0 -33
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/compressionFormat.d.mts +0 -33
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/compressionFormat.mjs +0 -58
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createDatabasePlugin.cjs +0 -920
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createDatabasePlugin.d.cts +0 -28
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createDatabasePlugin.d.mts +0 -28
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createDatabasePlugin.mjs +0 -916
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStoragePlugin.cjs +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStoragePlugin.d.cts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStoragePlugin.d.mts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/createStoragePlugin.mjs +0 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClient.cjs +0 -117
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClient.d.cts +0 -32
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClient.d.mts +0 -32
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClient.mjs +0 -114
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientReads.cjs +0 -115
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientReads.mjs +0 -113
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientUpdates.cjs +0 -40
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientUpdates.d.cts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientUpdates.d.mts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databaseClientUpdates.mjs +0 -38
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrud.cjs +0 -88
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrud.d.cts +0 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrud.d.mts +0 -4
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrud.mjs +0 -87
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidation.d.cts +0 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidation.d.mts +0 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationErrors.cjs +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationErrors.d.cts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationErrors.d.mts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationErrors.mjs +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationFields.cjs +0 -321
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationFields.d.cts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationFields.d.mts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationFields.mjs +0 -309
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationMutations.cjs +0 -107
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationMutations.d.cts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationMutations.d.mts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationMutations.mjs +0 -100
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationQueries.cjs +0 -103
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationQueries.d.cts +0 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationQueries.d.mts +0 -2
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationQueries.mjs +0 -97
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationRows.cjs +0 -55
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationRows.d.cts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationRows.d.mts +0 -1
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginCrudValidationRows.mjs +0 -53
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginTransaction.cjs +0 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/databasePluginTransaction.mjs +0 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/filterCompatibleAppVersions.cjs +0 -15
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/filterCompatibleAppVersions.d.cts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/filterCompatibleAppVersions.d.mts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/filterCompatibleAppVersions.mjs +0 -15
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/insightsContract.cjs +0 -157
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/insightsContract.d.cts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/insightsContract.d.mts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/insightsContract.mjs +0 -153
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/internal.cjs +0 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/internal.d.cts +0 -10
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/internal.d.mts +0 -10
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/internal.mjs +0 -3
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/paginateBundles.cjs +0 -53
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/paginateBundles.d.cts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/paginateBundles.d.mts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/paginateBundles.mjs +0 -53
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/queryBundles.cjs +0 -34
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/queryBundles.d.cts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/queryBundles.d.mts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/queryBundles.mjs +0 -32
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/requestBundleCache.cjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/requestBundleCache.d.cts +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/requestBundleCache.d.mts +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/requestBundleCache.mjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/storageDownloadPath.cjs +0 -49
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/storageDownloadPath.d.cts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/storageDownloadPath.d.mts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/storageDownloadPath.mjs +0 -47
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/database.d.cts +0 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/database.d.mts +0 -5
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseFields.cjs +0 -105
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseFields.d.cts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseFields.d.mts +0 -13
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseFields.mjs +0 -105
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databasePlugin.d.cts +0 -298
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databasePlugin.d.mts +0 -298
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseQuery.d.cts +0 -46
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/databaseQuery.d.mts +0 -46
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/internal.d.cts +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-plugin-core/dist/types/internal.d.mts +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/_virtual/_rolldown/runtime.cjs +0 -23
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/databaseConstraintErrors.cjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/databaseConstraintErrors.mjs +0 -21
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/databasePluginUtils.cjs +0 -116
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/databasePluginUtils.mjs +0 -106
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleCrud.cjs +0 -311
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleCrud.mjs +0 -308
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleLazyDB.cjs +0 -106
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleLazyDB.mjs +0 -106
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleQuery.cjs +0 -69
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/drizzleQuery.mjs +0 -69
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/insightsTransaction.cjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/insightsTransaction.mjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyCrud.cjs +0 -305
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyCrud.mjs +0 -304
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyQuery.cjs +0 -56
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/kyselyQuery.mjs +0 -56
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbCollections.cjs +0 -38
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbCollections.mjs +0 -32
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbQuery.cjs +0 -94
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbQuery.mjs +0 -86
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbReads.cjs +0 -210
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbReads.mjs +0 -210
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbWrites.cjs +0 -148
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/mongodbWrites.mjs +0 -148
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaQuery.cjs +0 -57
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaQuery.mjs +0 -56
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaRows.cjs +0 -219
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/adapters/prismaRows.mjs +0 -209
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/createBundleDiff.cjs +0 -144
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/createBundleDiff.d.cts +0 -16
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/createBundleDiff.d.mts +0 -16
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/createBundleDiff.mjs +0 -141
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/databasePluginCore.cjs +0 -137
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/databasePluginCore.mjs +0 -137
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigrator.cjs +0 -79
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigrator.mjs +0 -78
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigratorMongo.cjs +0 -321
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigratorMongo.mjs +0 -321
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigratorShared.cjs +0 -23
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/fixedMigratorShared.mjs +0 -18
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/index.cjs +0 -27
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/index.d.cts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/index.d.mts +0 -12
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/index.mjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/mongoMigrationExecution.cjs +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/mongoMigrationExecution.mjs +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/releaseCatalog.d.cts +0 -16
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/releaseCatalog.d.mts +0 -16
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/insightsCollation.cjs +0 -14
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/insightsCollation.mjs +0 -14
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/mongodb.cjs +0 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/mongodb.mjs +0 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/registry.cjs +0 -21
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/registry.mjs +0 -17
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/sql.cjs +0 -105
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/sql.mjs +0 -97
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/sqlOperations.cjs +0 -27
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schema/sqlOperations.mjs +0 -26
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaGenerators.cjs +0 -275
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaGenerators.mjs +0 -273
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaReadiness.cjs +0 -26
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaReadiness.d.cts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaReadiness.d.mts +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/schemaReadiness.mjs +0 -25
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/sqlMigrationExecution.cjs +0 -67
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/sqlMigrationExecution.mjs +0 -67
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/types.cjs +0 -22
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/types.d.cts +0 -118
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/types.d.mts +0 -118
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/db/types.mjs +0 -19
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerBundleRoutes.cjs +0 -155
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerBundleRoutes.mjs +0 -155
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerReleaseManagementRoutes.cjs +0 -124
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/handlerReleaseManagementRoutes.mjs +0 -124
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/insights/domain.d.cts +0 -89
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/insights/domain.d.mts +0 -89
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/insights/eventInput.cjs +0 -153
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/insights/eventInput.mjs +0 -151
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/dsl.cjs +0 -103
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/dsl.mjs +0 -87
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/index.cjs +0 -20
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/index.mjs +0 -7
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/settings.cjs +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/settings.mjs +0 -9
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/types.cjs +0 -8
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/types.mjs +0 -6
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/v1_0_0.cjs +0 -406
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/schema/v1_0_0.mjs +0 -398
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/types/index.d.cts +0 -29
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-server/dist/types/index.d.mts +0 -29
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/iac/index.cjs +0 -8101
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/iac/index.d.cts +0 -102
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/iac/index.d.mts +0 -102
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/iac/index.mjs +0 -8084
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseDatabase-3d90EtUD.d.cts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseDatabase-3d90EtUD.d.mts +0 -11
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-CbzHzqCa.cjs +0 -622
- package/dist/infra-templates/supabase/supabase/functions/hot-updater-v1/_hot-updater/hot-updater-supabase/dist/supabaseStorage-CjteZ2zX.mjs +0 -611
- package/dist/infra-templates/supabase/supabase/migrations/20260818000000_hot-updater_1.0.0.sql +0 -617
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { parseArgs, parseEnv } from "node:util";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
//#region ../protocol/dist/index.mjs
|
|
6
|
+
const LETTER_DASH_NUMBER = "[a-zA-Z0-9-]";
|
|
7
|
+
const NUMERIC_IDENTIFIER = String.raw`0|[1-9]\d*`;
|
|
8
|
+
const NUMERIC_IDENTIFIER_LOOSE = String.raw`\d+`;
|
|
9
|
+
const NON_NUMERIC_IDENTIFIER = String.raw`\d*[a-zA-Z-]${LETTER_DASH_NUMBER}*`;
|
|
10
|
+
const MAIN_VERSION = String.raw`(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})\.(${NUMERIC_IDENTIFIER})`;
|
|
11
|
+
const MAIN_VERSION_LOOSE = String.raw`(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})\.(${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
12
|
+
const PRERELEASE_IDENTIFIER = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER})`;
|
|
13
|
+
const PRERELEASE_IDENTIFIER_LOOSE = `(?:${NON_NUMERIC_IDENTIFIER}|${NUMERIC_IDENTIFIER_LOOSE})`;
|
|
14
|
+
const PRERELEASE = String.raw`(?:-(${PRERELEASE_IDENTIFIER}(?:\.${PRERELEASE_IDENTIFIER})*))`;
|
|
15
|
+
const PRERELEASE_LOOSE = String.raw`(?:-?(${PRERELEASE_IDENTIFIER_LOOSE}(?:\.${PRERELEASE_IDENTIFIER_LOOSE})*))`;
|
|
16
|
+
const BUILD_IDENTIFIER = `${LETTER_DASH_NUMBER}+`;
|
|
17
|
+
const BUILD = String.raw`(?:\+(${BUILD_IDENTIFIER}(?:\.${BUILD_IDENTIFIER})*))`;
|
|
18
|
+
const FULL_PLAIN = `v?${MAIN_VERSION}${PRERELEASE}?${BUILD}?`;
|
|
19
|
+
const LOOSE_PLAIN = String.raw`[v=\s]*${MAIN_VERSION_LOOSE}${PRERELEASE_LOOSE}?${BUILD}?`;
|
|
20
|
+
const XRANGE_IDENTIFIER = String.raw`${NUMERIC_IDENTIFIER}|x|X|\*`;
|
|
21
|
+
const XRANGE_IDENTIFIER_LOOSE = String.raw`${NUMERIC_IDENTIFIER_LOOSE}|x|X|\*`;
|
|
22
|
+
String.raw`[v=\s]*(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:\.(${XRANGE_IDENTIFIER})(?:${PRERELEASE})?${BUILD}?)?)?`;
|
|
23
|
+
String.raw`[v=\s]*(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:\.(${XRANGE_IDENTIFIER_LOOSE})(?:${PRERELEASE_LOOSE})?${BUILD}?)?)?`;
|
|
24
|
+
String.raw`(?:\^)`;
|
|
25
|
+
const COERCE_PLAIN = String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`;
|
|
26
|
+
const COERCE = String.raw`${COERCE_PLAIN}(?:$|[^\d])`;
|
|
27
|
+
const COERCE_FULL = String.raw`${COERCE_PLAIN}(?:${PRERELEASE})?(?:${BUILD})?(?:$|[^\d])`;
|
|
28
|
+
function makeSafeRegexSource(source) {
|
|
29
|
+
const replacements = [
|
|
30
|
+
[String.raw`\s`, 1],
|
|
31
|
+
[String.raw`\d`, 256],
|
|
32
|
+
[LETTER_DASH_NUMBER, 250]
|
|
33
|
+
];
|
|
34
|
+
for (const [token, maximum] of replacements) source = source.split(`${token}*`).join(`${token}{0,${maximum}}`).split(`${token}+`).join(`${token}{1,${maximum}}`);
|
|
35
|
+
return source;
|
|
36
|
+
}
|
|
37
|
+
function safeRegex(source, flags) {
|
|
38
|
+
return new RegExp(makeSafeRegexSource(source), flags);
|
|
39
|
+
}
|
|
40
|
+
safeRegex(`^${FULL_PLAIN}$`);
|
|
41
|
+
safeRegex(`^${LOOSE_PLAIN}$`);
|
|
42
|
+
safeRegex(COERCE);
|
|
43
|
+
safeRegex(COERCE_FULL);
|
|
44
|
+
safeRegex(`^${PRERELEASE}$`);
|
|
45
|
+
safeRegex(`^${PRERELEASE_LOOSE}$`);
|
|
46
|
+
const BASE64URL_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
47
|
+
const MAX_CATALOG_SEGMENT_LENGTH = 255;
|
|
48
|
+
function assertCatalogSegment(value, name) {
|
|
49
|
+
if (value.length === 0 || value.length > MAX_CATALOG_SEGMENT_LENGTH || !/^[A-Za-z0-9._~-]+$/.test(value)) throw new Error(`${name} must be 1-${MAX_CATALOG_SEGMENT_LENGTH} URL-safe ASCII characters`);
|
|
50
|
+
}
|
|
51
|
+
function encodeUtf8(value) {
|
|
52
|
+
const bytes = [];
|
|
53
|
+
for (const codePointText of value) {
|
|
54
|
+
const codePoint = codePointText.codePointAt(0);
|
|
55
|
+
if (codePoint <= 127) bytes.push(codePoint);
|
|
56
|
+
else if (codePoint <= 2047) bytes.push(192 | codePoint >> 6, 128 | codePoint & 63);
|
|
57
|
+
else if (codePoint <= 65535) bytes.push(224 | codePoint >> 12, 128 | codePoint >> 6 & 63, 128 | codePoint & 63);
|
|
58
|
+
else bytes.push(240 | codePoint >> 18, 128 | codePoint >> 12 & 63, 128 | codePoint >> 6 & 63, 128 | codePoint & 63);
|
|
59
|
+
}
|
|
60
|
+
return bytes;
|
|
61
|
+
}
|
|
62
|
+
function decodeUtf8(bytes) {
|
|
63
|
+
let result = "";
|
|
64
|
+
for (let index = 0; index < bytes.length;) {
|
|
65
|
+
const first = bytes[index++];
|
|
66
|
+
let codePoint;
|
|
67
|
+
let continuationCount;
|
|
68
|
+
if (first <= 127) {
|
|
69
|
+
codePoint = first;
|
|
70
|
+
continuationCount = 0;
|
|
71
|
+
} else if ((first & 224) === 192) {
|
|
72
|
+
codePoint = first & 31;
|
|
73
|
+
continuationCount = 1;
|
|
74
|
+
} else if ((first & 240) === 224) {
|
|
75
|
+
codePoint = first & 15;
|
|
76
|
+
continuationCount = 2;
|
|
77
|
+
} else if ((first & 248) === 240) {
|
|
78
|
+
codePoint = first & 7;
|
|
79
|
+
continuationCount = 3;
|
|
80
|
+
} else throw new Error("Invalid UTF-8 channel key");
|
|
81
|
+
for (let offset = 0; offset < continuationCount; offset += 1) {
|
|
82
|
+
const continuation = bytes[index++];
|
|
83
|
+
if (continuation === void 0 || (continuation & 192) !== 128) throw new Error("Invalid UTF-8 channel key");
|
|
84
|
+
codePoint = codePoint << 6 | continuation & 63;
|
|
85
|
+
}
|
|
86
|
+
if (codePoint > 1114111 || codePoint >= 55296 && codePoint <= 57343 || continuationCount === 1 && codePoint < 128 || continuationCount === 2 && codePoint < 2048 || continuationCount === 3 && codePoint < 65536) throw new Error("Invalid UTF-8 channel key");
|
|
87
|
+
result += String.fromCodePoint(codePoint);
|
|
88
|
+
}
|
|
89
|
+
return result;
|
|
90
|
+
}
|
|
91
|
+
function base64UrlEncode(bytes) {
|
|
92
|
+
let result = "";
|
|
93
|
+
for (let index = 0; index < bytes.length; index += 3) {
|
|
94
|
+
const first = bytes[index];
|
|
95
|
+
const second = bytes[index + 1];
|
|
96
|
+
const third = bytes[index + 2];
|
|
97
|
+
const value = first << 16 | (second ?? 0) << 8 | (third ?? 0);
|
|
98
|
+
result += BASE64URL_ALPHABET[value >> 18 & 63];
|
|
99
|
+
result += BASE64URL_ALPHABET[value >> 12 & 63];
|
|
100
|
+
if (second !== void 0) result += BASE64URL_ALPHABET[value >> 6 & 63];
|
|
101
|
+
if (third !== void 0) result += BASE64URL_ALPHABET[value & 63];
|
|
102
|
+
}
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
function base64UrlDecode(value) {
|
|
106
|
+
if (!/^[A-Za-z0-9_-]*$/.test(value) || value.length % 4 === 1) throw new Error("Invalid channel key");
|
|
107
|
+
const bytes = [];
|
|
108
|
+
for (let index = 0; index < value.length; index += 4) {
|
|
109
|
+
const chunk = value.slice(index, index + 4);
|
|
110
|
+
const encoded = [...chunk].map((character) => BASE64URL_ALPHABET.indexOf(character));
|
|
111
|
+
if (encoded.some((part) => part < 0)) throw new Error("Invalid channel key");
|
|
112
|
+
const bits = encoded[0] << 18 | encoded[1] << 12 | (encoded[2] ?? 0) << 6 | (encoded[3] ?? 0);
|
|
113
|
+
bytes.push(bits >> 16 & 255);
|
|
114
|
+
if (chunk.length >= 3) bytes.push(bits >> 8 & 255);
|
|
115
|
+
if (chunk.length === 4) bytes.push(bits & 255);
|
|
116
|
+
}
|
|
117
|
+
return bytes;
|
|
118
|
+
}
|
|
119
|
+
function normalizeChannelName(channel) {
|
|
120
|
+
return channel.trim().normalize("NFC");
|
|
121
|
+
}
|
|
122
|
+
function assertCanonicalChannelName(channel) {
|
|
123
|
+
const normalized = normalizeChannelName(channel);
|
|
124
|
+
if (normalized.length === 0 || normalized !== channel) throw new Error("Channel name must be non-empty, trimmed, and NFC-normalized");
|
|
125
|
+
let codePointCount = 0;
|
|
126
|
+
for (const _codePoint of normalized) {
|
|
127
|
+
codePointCount += 1;
|
|
128
|
+
if (codePointCount > 255) throw new Error("Channel name must not exceed 255 characters");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function encodeChannelKey(channel) {
|
|
132
|
+
assertCanonicalChannelName(channel);
|
|
133
|
+
return base64UrlEncode(encodeUtf8(channel));
|
|
134
|
+
}
|
|
135
|
+
function decodeChannelKey(channelKey) {
|
|
136
|
+
const channel = decodeUtf8(base64UrlDecode(channelKey));
|
|
137
|
+
assertCanonicalChannelName(channel);
|
|
138
|
+
if (encodeChannelKey(channel) !== channelKey) throw new Error("Channel key is not canonically encoded");
|
|
139
|
+
return channel;
|
|
140
|
+
}
|
|
141
|
+
function createReleaseCatalogScopeKey(input) {
|
|
142
|
+
decodeChannelKey(input.channelKey);
|
|
143
|
+
if (input.strategy === "APP_VERSION") return `v1:app-version:${input.platform}:${input.channelKey}`;
|
|
144
|
+
assertCatalogSegment(input.fingerprintHash, "Fingerprint hash");
|
|
145
|
+
return `v1:fingerprint:${input.platform}:${input.channelKey}:${input.fingerprintHash}`;
|
|
146
|
+
}
|
|
147
|
+
function parseReleaseCatalogScopeKey(scopeKey) {
|
|
148
|
+
const segments = scopeKey.split(":");
|
|
149
|
+
const [version, strategy, platform, channelKey] = segments;
|
|
150
|
+
if (version !== "v1" || platform !== "ios" && platform !== "android" || channelKey === void 0) throw new Error("Invalid release catalog scope key");
|
|
151
|
+
const input = strategy === "app-version" && segments.length === 4 ? {
|
|
152
|
+
channelKey,
|
|
153
|
+
platform,
|
|
154
|
+
strategy: "APP_VERSION"
|
|
155
|
+
} : strategy === "fingerprint" && segments.length === 5 && segments[4] !== void 0 ? {
|
|
156
|
+
channelKey,
|
|
157
|
+
fingerprintHash: segments[4],
|
|
158
|
+
platform,
|
|
159
|
+
strategy: "FINGERPRINT"
|
|
160
|
+
} : (() => {
|
|
161
|
+
throw new Error("Invalid release catalog scope key");
|
|
162
|
+
})();
|
|
163
|
+
if (createReleaseCatalogScopeKey(input) !== scopeKey) throw new Error("Release catalog scope key is not canonical");
|
|
164
|
+
return input;
|
|
165
|
+
}
|
|
166
|
+
const UUID_V7_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/;
|
|
167
|
+
const isUUIDv7 = (value) => typeof value === "string" && UUID_V7_PATTERN.test(value);
|
|
168
|
+
/** The largest release catalog response body a client accepts, in UTF-8 bytes. */
|
|
169
|
+
const MAX_RELEASE_CATALOG_WIRE_BYTES = 528384;
|
|
170
|
+
/** The length of `value` in UTF-8 bytes, without an encoder the device may lack. */
|
|
171
|
+
const getUtf8ByteLength = (value) => {
|
|
172
|
+
let bytes = 0;
|
|
173
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
174
|
+
const code = value.charCodeAt(index);
|
|
175
|
+
if (code <= 127) bytes += 1;
|
|
176
|
+
else if (code <= 2047) bytes += 2;
|
|
177
|
+
else if (code >= 55296 && code <= 56319 && index + 1 < value.length && value.charCodeAt(index + 1) >= 56320 && value.charCodeAt(index + 1) <= 57343) {
|
|
178
|
+
bytes += 4;
|
|
179
|
+
index += 1;
|
|
180
|
+
} else bytes += 3;
|
|
181
|
+
}
|
|
182
|
+
return bytes;
|
|
183
|
+
};
|
|
184
|
+
const isStringArray = (value) => Array.isArray(value) && value.every((entry) => typeof entry === "string");
|
|
185
|
+
const isValidReleaseDescriptor = (value) => {
|
|
186
|
+
if (value === null || typeof value !== "object") return false;
|
|
187
|
+
const descriptor = value;
|
|
188
|
+
return isUUIDv7(descriptor.releaseId) && descriptor.kind === "BUNDLE" && typeof descriptor.bundleId === "string" && Number.isSafeInteger(descriptor.rolloutCohortCount) && descriptor.rolloutCohortCount >= 0 && descriptor.rolloutCohortCount <= 1e3 && isStringArray(descriptor.targetCohorts) && descriptor.targetCohorts.length <= 100 && typeof descriptor.shouldForceUpdate === "boolean" && (descriptor.message === null || typeof descriptor.message === "string");
|
|
189
|
+
};
|
|
190
|
+
/** Whether the catalog is the expected scope's. */
|
|
191
|
+
const hasExpectedReleaseCatalogScope = (catalog, expected) => {
|
|
192
|
+
try {
|
|
193
|
+
const parsed = parseReleaseCatalogScopeKey(catalog.scopeKey);
|
|
194
|
+
return parsed.channelKey === expected.channelKey && parsed.platform === expected.platform && parsed.strategy === expected.strategy && (parsed.strategy === "APP_VERSION" || expected.strategy === "FINGERPRINT" && parsed.fingerprintHash === expected.fingerprintHash);
|
|
195
|
+
} catch {
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Parses a release catalog response body as a client accepts it: within the
|
|
201
|
+
* wire limit, in the schema's shape, for the expected scope, and within the
|
|
202
|
+
* cohort limits. Any other body is null. The device's update client and
|
|
203
|
+
* doctor's server checks both run this, so they accept the same catalogs.
|
|
204
|
+
*/
|
|
205
|
+
const parseReleaseCatalog = (body, expectedScope) => {
|
|
206
|
+
if (getUtf8ByteLength(body) > 528384) return null;
|
|
207
|
+
try {
|
|
208
|
+
const catalog = JSON.parse(body);
|
|
209
|
+
if (catalog.schemaVersion !== 1 || typeof catalog.catalogId !== "string" || catalog.catalogId.length === 0 || typeof catalog.scopeKey !== "string" || !Number.isSafeInteger(catalog.generation) || (catalog.generation ?? 0) < 1 || typeof catalog.catalogHash !== "string" || !/^sha256:[0-9a-f]{64}$/.test(catalog.catalogHash) || catalog.fallbackPolicy !== "BUILTIN_IF_ACTIVE_INELIGIBLE" || !Array.isArray(catalog.releases) || !catalog.releases.every(isValidReleaseDescriptor) || !Array.isArray(catalog.rollbackReleases) || !catalog.rollbackReleases.every(isValidReleaseDescriptor)) return null;
|
|
210
|
+
if (!hasExpectedReleaseCatalogScope(catalog, expectedScope)) return null;
|
|
211
|
+
if (new Set([...catalog.releases, ...catalog.rollbackReleases].flatMap((release) => release.targetCohorts)).size > 512) return null;
|
|
212
|
+
return catalog;
|
|
213
|
+
} catch {
|
|
214
|
+
return null;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/commands/infra/clientAuth.ts
|
|
219
|
+
/** Where the script keeps the credential it generated, before registering it. */
|
|
220
|
+
const CLIENT_CREDENTIAL_FILE = "client-credential.local";
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region src/commands/doctor/server.ts
|
|
223
|
+
var VerificationError = class extends Error {};
|
|
224
|
+
const requireCheck = (condition, message) => {
|
|
225
|
+
if (!condition) throw new VerificationError(message);
|
|
226
|
+
};
|
|
227
|
+
const isObject = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
|
|
228
|
+
const isText = (value) => typeof value === "string" && value.length > 0;
|
|
229
|
+
const parseJson = (body) => {
|
|
230
|
+
try {
|
|
231
|
+
return JSON.parse(body);
|
|
232
|
+
} catch {
|
|
233
|
+
throw new VerificationError("Server did not return valid JSON.");
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
async function verifyServer(options) {
|
|
237
|
+
const { clientAuth } = options;
|
|
238
|
+
const request = async (url, credential) => {
|
|
239
|
+
const response = await (options.fetch ?? fetch)(url, {
|
|
240
|
+
headers: credential && clientAuth ? { [clientAuth.credential.header]: credential } : {},
|
|
241
|
+
redirect: "error",
|
|
242
|
+
signal: AbortSignal.timeout(1e4)
|
|
243
|
+
});
|
|
244
|
+
let body = "";
|
|
245
|
+
let size = 0;
|
|
246
|
+
const decoder = new TextDecoder();
|
|
247
|
+
for await (const chunk of response.body ?? []) {
|
|
248
|
+
size += chunk.byteLength;
|
|
249
|
+
requireCheck(size <= MAX_RELEASE_CATALOG_WIRE_BYTES, "Server response exceeds the probe limit.");
|
|
250
|
+
body += decoder.decode(chunk, { stream: true });
|
|
251
|
+
}
|
|
252
|
+
body += decoder.decode();
|
|
253
|
+
return {
|
|
254
|
+
response,
|
|
255
|
+
body
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
let check = "inputs";
|
|
259
|
+
try {
|
|
260
|
+
const values = {
|
|
261
|
+
"base-url": options.baseUrl,
|
|
262
|
+
platform: options.platform,
|
|
263
|
+
channel: options.channel,
|
|
264
|
+
"app-version": options.appVersion,
|
|
265
|
+
fingerprint: options.fingerprint
|
|
266
|
+
};
|
|
267
|
+
requireCheck(isText(values["base-url"]) && (values.platform === "ios" || values.platform === "android") && isText(values.channel) && isText(values["app-version"] ?? values.fingerprint) && values["app-version"] === void 0 !== (values.fingerprint === void 0), "Provide --base-url, --platform, --channel and exactly one of --app-version or --fingerprint.");
|
|
268
|
+
const baseUrl = new URL(values["base-url"]);
|
|
269
|
+
requireCheck(["http:", "https:"].includes(baseUrl.protocol) && !baseUrl.username && !baseUrl.password && !baseUrl.search && !baseUrl.hash, "Use an HTTP(S) server base URL without credentials, query or fragment.");
|
|
270
|
+
const environmentText = await readFile(path.join(options.cwd, ".env.hotupdater"), "utf8").catch((error) => {
|
|
271
|
+
if (error.code === "ENOENT") return "";
|
|
272
|
+
throw error;
|
|
273
|
+
});
|
|
274
|
+
const environment = parseEnv(environmentText.replace(/^\uFEFF/, ""));
|
|
275
|
+
let credential;
|
|
276
|
+
if (clientAuth) {
|
|
277
|
+
const { env, label } = clientAuth.credential;
|
|
278
|
+
const saved = (await readFile(path.join(options.infraDir, "app", CLIENT_CREDENTIAL_FILE), "utf8").catch((error) => {
|
|
279
|
+
if (error.code === "ENOENT") return "";
|
|
280
|
+
throw error;
|
|
281
|
+
})).trim();
|
|
282
|
+
const fromEnvironment = (process.env[env] ?? environment[env])?.trim();
|
|
283
|
+
requireCheck(!saved || !fromEnvironment || saved === fromEnvironment, `Saved client ${label}s differ. Resolve the target ${label} before verification.`);
|
|
284
|
+
credential = fromEnvironment || saved;
|
|
285
|
+
requireCheck(credential, `Store the client ${label} locally before verification.`);
|
|
286
|
+
}
|
|
287
|
+
const strategy = values["app-version"] ? "app-version" : "fingerprint";
|
|
288
|
+
const target = values["app-version"] || values.fingerprint;
|
|
289
|
+
requireCheck(isText(target), "An update target is required.");
|
|
290
|
+
requireCheck(target !== "." && target !== ".." && (strategy !== "fingerprint" || /^[A-Za-z0-9._~-]{1,255}$/.test(target)) && values.channel === values.channel.trim().normalize("NFC") && [...values.channel].length <= 255, "Use the app's canonical channel and version or fingerprint as the catalog target.");
|
|
291
|
+
const channelKey = Buffer.from(values.channel).toString("base64url");
|
|
292
|
+
const expectedScope = strategy === "fingerprint" ? {
|
|
293
|
+
channelKey,
|
|
294
|
+
platform: values.platform,
|
|
295
|
+
strategy: "FINGERPRINT",
|
|
296
|
+
fingerprintHash: target
|
|
297
|
+
} : {
|
|
298
|
+
channelKey,
|
|
299
|
+
platform: values.platform,
|
|
300
|
+
strategy: "APP_VERSION"
|
|
301
|
+
};
|
|
302
|
+
const routeUrl = (route) => {
|
|
303
|
+
const url = new URL(baseUrl);
|
|
304
|
+
url.pathname = `${url.pathname.replace(/\/+$/, "")}/${route}`;
|
|
305
|
+
return url;
|
|
306
|
+
};
|
|
307
|
+
const catalogUrl = routeUrl(`release-catalogs/${strategy}/${values.platform}/${channelKey}/${encodeURIComponent(target)}`);
|
|
308
|
+
check = "version";
|
|
309
|
+
const version = await request(routeUrl("version"));
|
|
310
|
+
requireCheck(version.response.status === 200, "The version probe failed.");
|
|
311
|
+
const versionBody = parseJson(version.body);
|
|
312
|
+
requireCheck(isObject(versionBody) && versionBody["version"] === options.serverVersion && versionBody["infrastructureGeneration"] === options.infrastructureGeneration, "Server version or infrastructure generation does not match the scaffold.");
|
|
313
|
+
check = "anonymous-catalog";
|
|
314
|
+
if (clientAuth) {
|
|
315
|
+
const anonymous = await request(catalogUrl);
|
|
316
|
+
requireCheck(anonymous.response.status === 401, `The catalog must reject a request without the client ${clientAuth.credential.label} with HTTP 401.`);
|
|
317
|
+
}
|
|
318
|
+
check = "authenticated-catalog";
|
|
319
|
+
const authenticated = await request(catalogUrl, credential);
|
|
320
|
+
const catalog = parseJson(authenticated.body);
|
|
321
|
+
const contentType = authenticated.response.headers.get("content-type") ?? "";
|
|
322
|
+
const empty = authenticated.response.status === 404;
|
|
323
|
+
if (empty) requireCheck(/^application\/json(?:;|$)/i.test(contentType) && isObject(catalog) && Object.keys(catalog).length === 1 && catalog["error"] === "Not found" && authenticated.response.headers.get("x-hot-updater-catalog") === "none", "HTTP 404 must be the empty-catalog response marked x-hot-updater-catalog: none.");
|
|
324
|
+
else requireCheck(authenticated.response.status === 200 && /^application\/vnd\.hot-updater\.release-catalog\+json;\s*version=1(?:;|$)/i.test(contentType) && parseReleaseCatalog(authenticated.body, expectedScope) !== null, clientAuth ? "The authenticated request must return a valid release catalog for the requested scope." : "The request must return a valid release catalog for the requested scope.");
|
|
325
|
+
return {
|
|
326
|
+
status: "verified",
|
|
327
|
+
checks: {
|
|
328
|
+
version: "matches-manifest",
|
|
329
|
+
anonymousCatalog: clientAuth ? 401 : "public",
|
|
330
|
+
authenticatedCatalog: authenticated.response.status,
|
|
331
|
+
catalog: empty ? "empty" : "available"
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
} catch (error) {
|
|
335
|
+
return {
|
|
336
|
+
status: "failed",
|
|
337
|
+
check,
|
|
338
|
+
error: error instanceof VerificationError ? error.message : "Verification failed. Check local configuration, server access and response time."
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region agent/verify-server.mjs
|
|
344
|
+
try {
|
|
345
|
+
const { values } = parseArgs({
|
|
346
|
+
options: {
|
|
347
|
+
"base-url": { type: "string" },
|
|
348
|
+
platform: { type: "string" },
|
|
349
|
+
channel: { type: "string" },
|
|
350
|
+
"app-version": { type: "string" },
|
|
351
|
+
fingerprint: { type: "string" }
|
|
352
|
+
},
|
|
353
|
+
strict: true,
|
|
354
|
+
allowPositionals: false
|
|
355
|
+
});
|
|
356
|
+
const manifest = JSON.parse(await readFile(new URL("../manifest.json", import.meta.url), "utf8"));
|
|
357
|
+
if (typeof manifest.serverVersion !== "string" || !Number.isInteger(manifest.infrastructureGeneration) || manifest.clientAuth === void 0) throw new Error("Invalid manifest");
|
|
358
|
+
const result = await verifyServer({
|
|
359
|
+
cwd: process.cwd(),
|
|
360
|
+
infraDir: fileURLToPath(new URL("..", import.meta.url)),
|
|
361
|
+
baseUrl: values["base-url"],
|
|
362
|
+
platform: values.platform,
|
|
363
|
+
channel: values.channel,
|
|
364
|
+
appVersion: values["app-version"],
|
|
365
|
+
fingerprint: values.fingerprint,
|
|
366
|
+
serverVersion: manifest.serverVersion,
|
|
367
|
+
infrastructureGeneration: manifest.infrastructureGeneration,
|
|
368
|
+
clientAuth: manifest.clientAuth
|
|
369
|
+
});
|
|
370
|
+
console.log(JSON.stringify(result));
|
|
371
|
+
if (result.status !== "verified") process.exitCode = 1;
|
|
372
|
+
} catch {
|
|
373
|
+
console.log(JSON.stringify({
|
|
374
|
+
status: "failed",
|
|
375
|
+
check: "inputs",
|
|
376
|
+
error: "Cannot read verification inputs or scaffold manifest."
|
|
377
|
+
}));
|
|
378
|
+
process.exitCode = 1;
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
export {};
|
package/dist/config.d.mts
CHANGED
|
@@ -49,22 +49,7 @@ declare const readLocalFingerprint: () => Promise<{
|
|
|
49
49
|
android: FingerprintResult | null;
|
|
50
50
|
} | null>;
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region src/utils/signing/keyGeneration.d.ts
|
|
53
|
-
/**
|
|
54
|
-
* Load private key from PEM file.
|
|
55
|
-
* @param privateKeyPath Path to private key file
|
|
56
|
-
* @returns Private key in PEM format
|
|
57
|
-
* @throws Error if file not found or invalid format
|
|
58
|
-
*/
|
|
59
|
-
declare function loadPrivateKey(privateKeyPath: string): Promise<string>;
|
|
60
|
-
/**
|
|
61
|
-
* Extract public key from private key.
|
|
62
|
-
* @param privateKeyPEM Private key in PEM format
|
|
63
|
-
* @returns Public key in PEM format
|
|
64
|
-
*/
|
|
65
|
-
declare function getPublicKeyFromPrivate(privateKeyPEM: string): string;
|
|
66
|
-
//#endregion
|
|
67
52
|
//#region src/config.d.ts
|
|
68
53
|
declare const defineConfig: (config: ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput)) => ConfigInput | ((options: HotUpdaterConfigOptions) => ConfigInput);
|
|
69
54
|
//#endregion
|
|
70
|
-
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints,
|
|
55
|
+
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as generateFingerprints, n as createFingerprintJSON, o as readLocalFingerprint, r as generateFingerprint, t as createAndInjectFingerprintFiles } from "./fingerprint-D0Q1Sl5G.mjs";
|
|
2
2
|
//#region src/config.ts
|
|
3
3
|
const defineConfig = (config) => {
|
|
4
4
|
return config;
|
|
5
5
|
};
|
|
6
6
|
//#endregion
|
|
7
|
-
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints,
|
|
7
|
+
export { createAndInjectFingerprintFiles, createFingerprintJSON, defineConfig, generateFingerprint, generateFingerprints, readLocalFingerprint };
|