@rebasepro/server 0.29.0 → 0.29.1
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/{GCSStorageController-BrIYwK-M.js → GCSStorageController-Crdllv9A.js} +2 -2
- package/dist/{GCSStorageController-BrIYwK-M.js.map → GCSStorageController-Crdllv9A.js.map} +1 -1
- package/dist/{S3StorageController-BD2Y9fAu.js → S3StorageController-C7x2Yaiz.js} +2 -2
- package/dist/{S3StorageController-BD2Y9fAu.js.map → S3StorageController-C7x2Yaiz.js.map} +1 -1
- package/dist/{access-9uIagW6R.js → access-BNZBi9yL.js} +5 -5
- package/dist/{access-9uIagW6R.js.map → access-BNZBi9yL.js.map} +1 -1
- package/dist/{ast-schema-editor-CNfBLvr-.js → ast-schema-editor-D56sGr0L.js} +2 -2
- package/dist/{ast-schema-editor-CNfBLvr-.js.map → ast-schema-editor-D56sGr0L.js.map} +1 -1
- package/dist/{auth-Crf0K_Ex.js → auth-CV82Wvq1.js} +10 -10
- package/dist/{auth-Crf0K_Ex.js.map → auth-CV82Wvq1.js.map} +1 -1
- package/dist/{backup-Cu1Xss09.js → backup-BiAhhHKV.js} +6 -6
- package/dist/{backup-Cu1Xss09.js.map → backup-BiAhhHKV.js.map} +1 -1
- package/dist/{branch-routes-XdCv4JwV.js → branch-routes-DqKPRFtb.js} +2 -2
- package/dist/{branch-routes-XdCv4JwV.js.map → branch-routes-DqKPRFtb.js.map} +1 -1
- package/dist/{contract-routes-Dw-7TPpm.js → contract-routes-AD3hi7ad.js} +2 -2
- package/dist/{contract-routes-Dw-7TPpm.js.map → contract-routes-AD3hi7ad.js.map} +1 -1
- package/dist/{cron-loader-DIvfKXNc.js → cron-loader-D1zNARNU.js} +2 -2
- package/dist/{cron-loader-DIvfKXNc.js.map → cron-loader-D1zNARNU.js.map} +1 -1
- package/dist/{cron-routes-DU3iiBvf.js → cron-routes-BtB2VVTk.js} +3 -3
- package/dist/{cron-routes-DU3iiBvf.js.map → cron-routes-BtB2VVTk.js.map} +1 -1
- package/dist/{cron-scheduler-BpZ7mPoi.js → cron-scheduler-DEKiJh_G.js} +2 -2
- package/dist/{cron-scheduler-BpZ7mPoi.js.map → cron-scheduler-DEKiJh_G.js.map} +1 -1
- package/dist/{cron-store-DzgxrJB8.js → cron-store-DcaNQIAr.js} +5 -5
- package/dist/cron-store-DcaNQIAr.js.map +1 -0
- package/dist/data_driver-D0mg1Y_x.js.map +1 -1
- package/dist/dist-BpP9FwVH.js +19359 -0
- package/dist/dist-BpP9FwVH.js.map +1 -0
- package/dist/{field-access-wcJeaL5H.js → field-access-BHi-4uSo.js} +2 -2
- package/dist/{field-access-wcJeaL5H.js.map → field-access-BHi-4uSo.js.map} +1 -1
- package/dist/{filter-dialect-FFhZoNGh.js → filter-dialect-Cbzt7lO9.js} +2 -2
- package/dist/{filter-dialect-FFhZoNGh.js.map → filter-dialect-Cbzt7lO9.js.map} +1 -1
- package/dist/{function-routes-CQ0z3WDt.js → function-routes-CdtIKSV8.js} +28 -2
- package/dist/function-routes-CdtIKSV8.js.map +1 -0
- package/dist/functions/context.d.ts +23 -1
- package/dist/functions/index.d.ts +1 -1
- package/dist/functions/index.js +27 -1
- package/dist/functions/index.js.map +1 -1
- package/dist/{history-recorder-B1j5i1ZT.js → history-recorder-C8FBGUa9.js} +3 -3
- package/dist/{history-recorder-B1j5i1ZT.js.map → history-recorder-C8FBGUa9.js.map} +1 -1
- package/dist/{history-store-D-jDz4Nv.js → history-store-DL-ydprp.js} +2 -2
- package/dist/{history-store-D-jDz4Nv.js.map → history-store-DL-ydprp.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +126 -50
- package/dist/index.es.js.map +1 -1
- package/dist/{internal-tables-CRaBxJeE.js → internal-tables-D2IdQlUW.js} +75 -15
- package/dist/internal-tables-D2IdQlUW.js.map +1 -0
- package/dist/{jobs-CzFPOfp1.js → jobs-DK9ra01Y.js} +4 -10
- package/dist/jobs-DK9ra01Y.js.map +1 -0
- package/dist/{jwt-GIOW5uNd.js → jwt-iiP_ZZzR.js} +2 -2
- package/dist/{jwt-GIOW5uNd.js.map → jwt-iiP_ZZzR.js.map} +1 -1
- package/dist/{keys-eRFGbaeH.js → keys-krxEEEj4.js} +2 -2
- package/dist/{keys-eRFGbaeH.js.map → keys-krxEEEj4.js.map} +1 -1
- package/dist/mcp/mcp-tools.d.ts +13 -2
- package/dist/mcp/show-app-guide.d.ts +19 -0
- package/dist/{offline-Cy6woFyt-CTjHURuZ.js → offline-Cy6woFyt-CbjOQGD1.js} +4 -4
- package/dist/{offline-Cy6woFyt-CTjHURuZ.js.map → offline-Cy6woFyt-CbjOQGD1.js.map} +1 -1
- package/dist/{offline-store-C2Sy3Kwl-DFw34Y50.js → offline-store-C2Sy3Kwl-C8KIwabG.js} +3 -3
- package/dist/{offline-store-C2Sy3Kwl-DFw34Y50.js.map → offline-store-C2Sy3Kwl-C8KIwabG.js.map} +1 -1
- package/dist/{openapi-generator-CzvnvC53.js → openapi-generator-Cn-ytCH8.js} +3 -3
- package/dist/{openapi-generator-CzvnvC53.js.map → openapi-generator-Cn-ytCH8.js.map} +1 -1
- package/dist/{query-parser-B0HJPjPt.js → query-parser-CTiEg64k.js} +4 -4
- package/dist/{query-parser-B0HJPjPt.js.map → query-parser-CTiEg64k.js.map} +1 -1
- package/dist/{rls-simulator-routes-77UrbME2.js → rls-simulator-routes-5nbuDwWR.js} +3 -3
- package/dist/{rls-simulator-routes-77UrbME2.js.map → rls-simulator-routes-5nbuDwWR.js.map} +1 -1
- package/dist/{schema-editor-routes-MSrmYTCh.js → schema-editor-routes-Bi8S1gn7.js} +3 -3
- package/dist/{schema-editor-routes-MSrmYTCh.js.map → schema-editor-routes-Bi8S1gn7.js.map} +1 -1
- package/dist/{sql-export-routes-DAeT_WVm.js → sql-export-routes-XkcXbxw5.js} +2 -2
- package/dist/{sql-export-routes-DAeT_WVm.js.map → sql-export-routes-XkcXbxw5.js.map} +1 -1
- package/dist/{src-DwcwNTsc.js → src-0nCWajy7.js} +46 -13
- package/dist/{src-DwcwNTsc.js.map → src-0nCWajy7.js.map} +1 -1
- package/package.json +5 -5
- package/dist/cron-store-DzgxrJB8.js.map +0 -1
- package/dist/dist-CwBjjwfY.js +0 -19359
- package/dist/dist-CwBjjwfY.js.map +0 -1
- package/dist/function-routes-CQ0z3WDt.js.map +0 -1
- package/dist/internal-tables-CRaBxJeE.js.map +0 -1
- package/dist/jobs-CzFPOfp1.js.map +0 -1
package/dist/index.es.js
CHANGED
|
@@ -4,46 +4,46 @@ globalThis.process ??= __rebaseProcess;
|
|
|
4
4
|
__rebaseCreateRequire(import.meta.url);
|
|
5
5
|
import { r as __require, t as __commonJSMin } from "./rolldown-runtime-dW7B1o5h.js";
|
|
6
6
|
import { a as RebaseClientError, i as RebaseApiError, n as MAX_LIST_LIMIT, o as isUnsupported, s as unsupportedMethod } from "./data_driver-D0mg1Y_x.js";
|
|
7
|
-
import { C as isFieldOperation, T as EntityRelation, _ as normalizeOrderBy, b as BATCH_REF_KEY, c as collectAllPages, g as OrderBySpecError, l as paginateFind, m as normalizeInclude, p as mergeIncludeSpecs, r as deserializeFilter, t as RESERVED_QUERY_KEYS, u as resolveFindWindow, v as serializeOrderBy, x as FIELD_OPERATORS, y as withRelationReferencesOnly } from "./filter-dialect-
|
|
8
|
-
import { A as
|
|
7
|
+
import { C as isFieldOperation, T as EntityRelation, _ as normalizeOrderBy, b as BATCH_REF_KEY, c as collectAllPages, g as OrderBySpecError, l as paginateFind, m as normalizeInclude, p as mergeIncludeSpecs, r as deserializeFilter, t as RESERVED_QUERY_KEYS, u as resolveFindWindow, v as serializeOrderBy, x as FIELD_OPERATORS, y as withRelationReferencesOnly } from "./filter-dialect-Cbzt7lO9.js";
|
|
8
|
+
import { A as DEFAULT_STORAGE_SOURCE_KEY, B as RLS_ROLES_SQL, C as declaredQueueConsumers, D as resourceToStorageSource, E as resourceToDataSource, F as resourceEnvSuffix, G as isPostgresCollectionConfig, I as resourceKeyOf, J as getDataSourceCapabilities, L as resourceKind, M as DEFAULT_RESOURCE_KEY, N as buildResourceGraph, O as setQueueRuntime, P as resolveResourceRefs, R as resourceKinds, T as declaredSubscriptions, U as getCollectionDataPath, V as RLS_UID_SQL, W as getDeclaredSubcollections, Y as ALL_WHERE_FILTER_OPS, b as summarizeScopes, c as intersectScopes, g as scopeGrantsAny, h as scopeGrants, j as storageEnvSuffix, k as setTopicRuntime, nt as sortKeyToString, p as parseScope, q as DEFAULT_DATA_SOURCE_KEY, s as hasAdminRole, v as scopesForRoles, w as declaredRlsPolicyShape, z as RLS_JWT_SQL } from "./src-0nCWajy7.js";
|
|
9
9
|
import { a as nestCollectionPatchPaths, c as ADMIN_PROPERTY_KEYS, i as isCollectionPatch, n as collectionPatchProblems, r as diffCollections, s as ADMIN_COLLECTION_KEYS, t as applyCollectionPatch } from "./collection_patch-BRu-BvDv.js";
|
|
10
|
-
import { a as restoresSoftDeletedRow, c as hydrateRegExp, d as hasForeignKeyOnTarget, f as isManyToMany, l as INCLUDE_COUNT_KEY, n as buildCollectionSchema, o as softDeleteFieldOf, r as idPropertyEntry, s as buildTenantSecurityRule, t as buildCollectionInputSchema, u as JUNCTION_PIVOT_KEY } from "./openapi-generator-
|
|
10
|
+
import { a as restoresSoftDeletedRow, c as hydrateRegExp, d as hasForeignKeyOnTarget, f as isManyToMany, l as INCLUDE_COUNT_KEY, n as buildCollectionSchema, o as softDeleteFieldOf, r as idPropertyEntry, s as buildTenantSecurityRule, t as buildCollectionInputSchema, u as JUNCTION_PIVOT_KEY } from "./openapi-generator-Cn-ytCH8.js";
|
|
11
11
|
import { n as isAnonymousUid, r as policy } from "./policy-PdzX-Opd.js";
|
|
12
12
|
import { n as isSQLAdmin, r as isSchemaEditingAdmin } from "./backend-CaG_Jyso.js";
|
|
13
|
-
import { a as parseEnvBoolean, i as validateCronExpression, t as CronScheduler } from "./cron-scheduler-
|
|
13
|
+
import { a as parseEnvBoolean, i as validateCronExpression, t as CronScheduler } from "./cron-scheduler-DEKiJh_G.js";
|
|
14
14
|
import { c as simulationHeaders, t as AUTH_FLOW_HEADER } from "./auth_adapter-HFv5axIT.js";
|
|
15
15
|
import { n as isValidAppHost, r as reservedPrefixFor, t as SCHEMA_VERSION_HEADER } from "./project_manifest-R6y_KHms.js";
|
|
16
|
-
import { i as serializeCollections, n as createContractRoutes, r as computeSchemaVersion } from "./contract-routes-
|
|
17
|
-
import { A as isPublicObjectGrant, C as queryTokenAuth, D as userFromToken, E as requireAuth, F as decideImpersonation, G as isApiKeyToken, H as createApiKeyPreAuth, I as refuseUnhonouredImpersonation, J as extractBearerToken, K as resolveApiKey, M as storageObjectOfPath, N as storageRequestWildcard, O as PUBLIC_OBJECT_PRINCIPAL, Q as supportsRlsScoping, S as publicObjectAuth, T as requireAdmin, U as createFunctionScopeGuard, V as reportSimulatedContext, W as createTusScopeGuard, X as SERVICE_IDENTITY, Y as safeCompare, Z as scopeDataDriver, _ as createAuthMiddleware, at as httpMethodToOperation, b as fileTokenAuth, c as configureAccess, ct as isPublicStoragePath, d as keyOwnerResolverFor, et as isAccessTokenRevoked, f as processAccessControl, g as setDefaultAccessControl, h as requireScopeByMethod, it as refuseSimulatedWrite, j as requestedStorageObject, k as isDownloadTokenGrant, l as getAccessModel, lt as storageObjectPath, m as requireScope, n as accessModelFromCollections, ot as PUBLIC_STORAGE_PREFIX, q as validateApiKey, r as accessOf, s as callerScopes, st as isPublicStorageKey, u as hasScope, v as createRequireAuth, w as refuse$1, x as optionalAuth, y as extractUserFromToken } from "./access-
|
|
18
|
-
import { a as resolveListLimitParam, c as assertReadableFields, d as decodeCursor$1, f as reconcileCursorOrder, i as parseQueryOptions, l as requestViewer, m as toDriverAggregateGroup, n as parseAggregateSelect, o as assertNoHiddenAggregateNames, p as toDriverAggregate, r as parseGroupBy, s as assertQueryFieldsReadable, t as orderByEntriesToTuples, u as cursorToStartAfter } from "./query-parser-
|
|
16
|
+
import { i as serializeCollections, n as createContractRoutes, r as computeSchemaVersion } from "./contract-routes-AD3hi7ad.js";
|
|
17
|
+
import { A as isPublicObjectGrant, C as queryTokenAuth, D as userFromToken, E as requireAuth, F as decideImpersonation, G as isApiKeyToken, H as createApiKeyPreAuth, I as refuseUnhonouredImpersonation, J as extractBearerToken, K as resolveApiKey, M as storageObjectOfPath, N as storageRequestWildcard, O as PUBLIC_OBJECT_PRINCIPAL, Q as supportsRlsScoping, S as publicObjectAuth, T as requireAdmin, U as createFunctionScopeGuard, V as reportSimulatedContext, W as createTusScopeGuard, X as SERVICE_IDENTITY, Y as safeCompare, Z as scopeDataDriver, _ as createAuthMiddleware, at as httpMethodToOperation, b as fileTokenAuth, c as configureAccess, ct as isPublicStoragePath, d as keyOwnerResolverFor, et as isAccessTokenRevoked, f as processAccessControl, g as setDefaultAccessControl, h as requireScopeByMethod, it as refuseSimulatedWrite, j as requestedStorageObject, k as isDownloadTokenGrant, l as getAccessModel, lt as storageObjectPath, m as requireScope, n as accessModelFromCollections, ot as PUBLIC_STORAGE_PREFIX, q as validateApiKey, r as accessOf, s as callerScopes, st as isPublicStorageKey, u as hasScope, v as createRequireAuth, w as refuse$1, x as optionalAuth, y as extractUserFromToken } from "./access-BNZBi9yL.js";
|
|
18
|
+
import { a as resolveListLimitParam, c as assertReadableFields, d as decodeCursor$1, f as reconcileCursorOrder, i as parseQueryOptions, l as requestViewer, m as toDriverAggregateGroup, n as parseAggregateSelect, o as assertNoHiddenAggregateNames, p as toDriverAggregate, r as parseGroupBy, s as assertQueryFieldsReadable, t as orderByEntriesToTuples, u as cursorToStartAfter } from "./query-parser-CTiEg64k.js";
|
|
19
19
|
import { a as logger, c as setLogLevel, d as hostEnv, i as logLevelEnabled, l as setLogOutput, o as rawQueryLoggingEnabled, r as describeCauseChain, s as redactSensitiveText, t as _setLogLineHook } from "./logger-SigQ2oZJ.js";
|
|
20
20
|
import { n as suggestNearMiss, r as toSnakeCase } from "./strings.es-B7QLnHh2.js";
|
|
21
|
-
import { a as restrictedFieldNames, c as getTableName, d as relationDeclaringProperty, f as resolveCollectionRelations, l as isJunctionBackedRelation, m as toWireKey, n as canReadField, o as fieldKeyForColumn, p as resolveRelation, r as canWriteField, s as findRelation, t as apiHiddenFieldNames } from "./field-access-
|
|
22
|
-
import { c as createTransport, d as parseRebaseJson, h as unref, l as defaultCodeForStatus, m as withETag, o as createCollectionClient, p as etagOf, r as SDKQueryBuilder, u as invalidBulkBody } from "./offline-store-C2Sy3Kwl-
|
|
23
|
-
import { $ as getEmailChangeNoticeTemplate, A as createDataRateLimitCheck, B as registerDevEmailSink, C as createJwksRoutes, D as AUTH_CONFIG_LIMIT, E as isBootstrapWindowOpen, F as activeDevEmailSink, G as validatePasswordStrength, H as createEmailService, I as clearActiveDevEmailSink, J as createAdapterAuthMiddleware, K as verifyPassword, L as createDevEmailSink, M as createRateLimiter, N as setSharedRateLimitStore, O as DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT, P as MemoryRateLimitStore, Q as resolveEmailLinkBase, R as devEmailSinkFor, S as createApiKeyStore, T as configureUserPicking, U as resolveAuthHooks, V as SMTPEmailService, W as hashPassword, X as generateSecurePassword, Y as completeUserCreation, Z as assertEmailLinkBases, _ as oauthCodeFlowSchema, a as createBitbucketProvider, at as getUserInvitationTemplate, b as createApiKeyRoutes, c as createTwitterProvider, ct as RawHtml, d as createMicrosoftProvider, dt as raw, et as getEmailChangeTemplate, f as tryVerifyOidcIdToken, ft as createSqlRateLimitStore, g as createGoogleProvider, h as createLinkedinProvider, i as createSlackProvider, it as getPasswordResetTemplate, j as createDataRateLimiter, k as createAuthLimiters, l as createFacebookProvider, lt as escapeHtml, m as createGitHubProvider, mt as securityRuleToConditions, n as createCustomAuthAdapter, nt as getEmailVerificationTemplate, o as createGitLabProvider, ot as getWelcomeEmailTemplate, p as verifyOidcIdToken, pt as resolveRateLimitStoreKind, q as adapterRefusal, r as createSpotifyProvider, rt as getMagicLinkTemplate, s as createDiscordProvider, st as resolveEmailBranding, tt as getEmailOtpTemplate, u as createAppleProvider, ut as html, v as pkceTokenParams, w as createBuiltinAuthAdapter, x as createPersonalKeyRoutes, y as providerVerifiedEmail, z as extractLinks } from "./auth-
|
|
21
|
+
import { a as restrictedFieldNames, c as getTableName, d as relationDeclaringProperty, f as resolveCollectionRelations, l as isJunctionBackedRelation, m as toWireKey, n as canReadField, o as fieldKeyForColumn, p as resolveRelation, r as canWriteField, s as findRelation, t as apiHiddenFieldNames } from "./field-access-BHi-4uSo.js";
|
|
22
|
+
import { c as createTransport, d as parseRebaseJson, h as unref, l as defaultCodeForStatus, m as withETag, o as createCollectionClient, p as etagOf, r as SDKQueryBuilder, u as invalidBulkBody } from "./offline-store-C2Sy3Kwl-C8KIwabG.js";
|
|
23
|
+
import { $ as getEmailChangeNoticeTemplate, A as createDataRateLimitCheck, B as registerDevEmailSink, C as createJwksRoutes, D as AUTH_CONFIG_LIMIT, E as isBootstrapWindowOpen, F as activeDevEmailSink, G as validatePasswordStrength, H as createEmailService, I as clearActiveDevEmailSink, J as createAdapterAuthMiddleware, K as verifyPassword, L as createDevEmailSink, M as createRateLimiter, N as setSharedRateLimitStore, O as DEFAULT_FUNCTIONS_ANONYMOUS_LIMIT, P as MemoryRateLimitStore, Q as resolveEmailLinkBase, R as devEmailSinkFor, S as createApiKeyStore, T as configureUserPicking, U as resolveAuthHooks, V as SMTPEmailService, W as hashPassword, X as generateSecurePassword, Y as completeUserCreation, Z as assertEmailLinkBases, _ as oauthCodeFlowSchema, a as createBitbucketProvider, at as getUserInvitationTemplate, b as createApiKeyRoutes, c as createTwitterProvider, ct as RawHtml, d as createMicrosoftProvider, dt as raw, et as getEmailChangeTemplate, f as tryVerifyOidcIdToken, ft as createSqlRateLimitStore, g as createGoogleProvider, h as createLinkedinProvider, i as createSlackProvider, it as getPasswordResetTemplate, j as createDataRateLimiter, k as createAuthLimiters, l as createFacebookProvider, lt as escapeHtml, m as createGitHubProvider, mt as securityRuleToConditions, n as createCustomAuthAdapter, nt as getEmailVerificationTemplate, o as createGitLabProvider, ot as getWelcomeEmailTemplate, p as verifyOidcIdToken, pt as resolveRateLimitStoreKind, q as adapterRefusal, r as createSpotifyProvider, rt as getMagicLinkTemplate, s as createDiscordProvider, st as resolveEmailBranding, tt as getEmailOtpTemplate, u as createAppleProvider, ut as html, v as pkceTokenParams, w as createBuiltinAuthAdapter, x as createPersonalKeyRoutes, y as providerVerifiedEmail, z as extractLinks } from "./auth-CV82Wvq1.js";
|
|
24
24
|
import "./resumable-upload-threshold-CKv-Ry0l.js";
|
|
25
|
-
import {
|
|
25
|
+
import { i as revokeInternalTableSql, t as REBASE_INTERNAL_TABLES } from "./internal-tables-D2IdQlUW.js";
|
|
26
26
|
import { a as warnDeprecated, n as FilesFailedToLoadError } from "./dynamic-import-Bi3XK5y-.js";
|
|
27
|
-
import { C as randomHex, E as sha256Hex, S as constantTimeEqual, T as sha256Bytes, b as normalizePemFromEnv, d as hasAsymmetricSigningKey, g as setDefaultJwtService, h as processJwtService, l as getJwks, m as jwtOf, n as configureJwt, r as createJwtService, y as verifyJwt } from "./jwt-
|
|
27
|
+
import { C as randomHex, E as sha256Hex, S as constantTimeEqual, T as sha256Bytes, b as normalizePemFromEnv, d as hasAsymmetricSigningKey, g as setDefaultJwtService, h as processJwtService, l as getJwks, m as jwtOf, n as configureJwt, r as createJwtService, y as verifyJwt } from "./jwt-iiP_ZZzR.js";
|
|
28
28
|
import { a as isConcurrentDdlRace, c as provisioningExec, l as withoutLeadingComments, o as isDuplicateObjectRace, r as createDdlBootstrapper, s as isSchemaChange, t as CONCURRENT_DDL_SQLSTATES } from "./ddl-bootstrap-DhCuwhHM.js";
|
|
29
|
-
import { t as createCronStore } from "./cron-store-
|
|
29
|
+
import { t as createCronStore } from "./cron-store-DcaNQIAr.js";
|
|
30
30
|
import { a as isDataException, c as dbConnectionErrorCounts, i as errorHandler, n as DATABASE_UNAVAILABLE_MESSAGE, o as isDatabaseUnreachable, r as declaredErrorAnswer, s as schemaDriftRemedy, t as ApiError } from "./errors-DpTMfX77.js";
|
|
31
31
|
import { n as HARD_DELETE_QUERY_PARAM, r as parseHardDelete } from "./soft-delete-params-DDRmxT2z.js";
|
|
32
|
-
import { a as canonicalStorageId, i as canonicalStorageBucket, n as InvalidStorageBucketError, o as canonicalStorageKey, r as InvalidStorageKeyError, t as InvalidListOptionsError } from "./keys-
|
|
32
|
+
import { a as canonicalStorageId, i as canonicalStorageBucket, n as InvalidStorageBucketError, o as canonicalStorageKey, r as InvalidStorageKeyError, t as InvalidListOptionsError } from "./keys-krxEEEj4.js";
|
|
33
33
|
import { t as logMiddleware } from "./logs-routes-08LiyYua.js";
|
|
34
34
|
import { a as fileWebStream, d as IMAGE_MIME_TYPES, i as bytesView, l as DEFAULT_MAX_FILE_SIZE, n as ObjectTooLargeError, o as meteredChunks, s as readStreamFully, t as validateUploadedFile, u as DOCUMENT_MIME_TYPES } from "./upload-validation-B-psYLaN.js";
|
|
35
|
-
import { t as S3StorageController } from "./S3StorageController-
|
|
36
|
-
import { t as GCSStorageController } from "./GCSStorageController-
|
|
35
|
+
import { t as S3StorageController } from "./S3StorageController-C7x2Yaiz.js";
|
|
36
|
+
import { t as GCSStorageController } from "./GCSStorageController-Crdllv9A.js";
|
|
37
37
|
import { a as isHonoLike, i as loadFunctionsWithDiagnostics, n as loadFunctions, r as loadFunctionsFromDirectory } from "./function-loader-BzKo2Oiu.js";
|
|
38
|
-
import { a as getDriver, c as
|
|
38
|
+
import { a as getDriver, c as getSql, d as hasRole, f as identityResolved, h as requireDriver, i as getApiKey, l as getUser, m as isAuthenticated, o as getRequestId, p as isAdmin, r as requireRole, s as getRoles, t as createFunctionRoutes, u as getUserId } from "./function-routes-CdtIKSV8.js";
|
|
39
39
|
import "./proxy-LUsudeht.js";
|
|
40
40
|
import "./request-timeout-DW2OBWfJ.js";
|
|
41
41
|
import { t as FunctionSelectionError } from "./selection-CRpqKUbt.js";
|
|
42
|
-
import { a as loadCrons, i as loadCronJobsWithDiagnostics, n as declareCrons, r as loadCronJobsFromDirectory } from "./cron-loader-
|
|
43
|
-
import { t as createCronRoutes } from "./cron-routes-
|
|
44
|
-
import { a as listBackupObjects, c as readBackupBytes, i as backupStorageFromEnv, n as createBackupLinkRoutes, o as parseBackupDestination, r as createBackupRoutes, s as parseBackupTimestamp } from "./backup-
|
|
45
|
-
import { a as defaultBackoff, i as createJobQueue, n as createJobStore, o as currentAmbientTransaction, r as PermanentJobError } from "./jobs-
|
|
46
|
-
import { t as METRIC_SERIES } from "./history-store-
|
|
42
|
+
import { a as loadCrons, i as loadCronJobsWithDiagnostics, n as declareCrons, r as loadCronJobsFromDirectory } from "./cron-loader-D1zNARNU.js";
|
|
43
|
+
import { t as createCronRoutes } from "./cron-routes-BtB2VVTk.js";
|
|
44
|
+
import { a as listBackupObjects, c as readBackupBytes, i as backupStorageFromEnv, n as createBackupLinkRoutes, o as parseBackupDestination, r as createBackupRoutes, s as parseBackupTimestamp } from "./backup-BiAhhHKV.js";
|
|
45
|
+
import { a as defaultBackoff, i as createJobQueue, n as createJobStore, o as currentAmbientTransaction, r as PermanentJobError } from "./jobs-DK9ra01Y.js";
|
|
46
|
+
import { t as METRIC_SERIES } from "./history-store-DL-ydprp.js";
|
|
47
47
|
import { createHash, createSign, randomBytes } from "node:crypto";
|
|
48
48
|
import * as path$2 from "node:path";
|
|
49
49
|
import path from "node:path";
|
|
@@ -2100,11 +2100,21 @@ function tenantRule(collection) {
|
|
|
2100
2100
|
const rule = buildTenantSecurityRule(collection);
|
|
2101
2101
|
return rule ? [rule] : [];
|
|
2102
2102
|
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Whether a collection goes without the injected baseline: its own
|
|
2105
|
+
* `disableDefaultPolicies` when it says, otherwise the database's
|
|
2106
|
+
* `rls.defaultPolicies` (`database({ rls: { defaultPolicies: false } })`).
|
|
2107
|
+
*/
|
|
2108
|
+
function defaultPoliciesDisabled(collection) {
|
|
2109
|
+
if (!isPostgresCollectionConfig(collection)) return false;
|
|
2110
|
+
if (collection.disableDefaultPolicies !== void 0) return collection.disableDefaultPolicies;
|
|
2111
|
+
return !declaredRlsPolicyShape(collection.dataSource ?? "(default)").defaultPolicies;
|
|
2112
|
+
}
|
|
2103
2113
|
function getEffectiveSecurityRules(collection) {
|
|
2104
2114
|
const explicit = [...collection.securityRules ?? []];
|
|
2105
2115
|
const tableName = getTableName(collection);
|
|
2106
2116
|
const injected = [];
|
|
2107
|
-
if (
|
|
2117
|
+
if (defaultPoliciesDisabled(collection)) return [
|
|
2108
2118
|
...explicit,
|
|
2109
2119
|
...tenantRule(collection),
|
|
2110
2120
|
...isAuthCollection$2(collection) ? [adminWriteGate(tableName)] : []
|
|
@@ -10539,7 +10549,7 @@ var LazyOfflineManager = class {
|
|
|
10539
10549
|
keepsLastUser;
|
|
10540
10550
|
constructor(config, createInner) {
|
|
10541
10551
|
this.keepsLastUser = config.keepLastUser === true;
|
|
10542
|
-
import("./offline-Cy6woFyt-
|
|
10552
|
+
import("./offline-Cy6woFyt-CbjOQGD1.js").then(({ OfflineManager: Engine }) => {
|
|
10543
10553
|
const engine = new Engine(config, createInner);
|
|
10544
10554
|
this.engine = engine;
|
|
10545
10555
|
const queued = this.queued;
|
|
@@ -16765,12 +16775,29 @@ function defaultErrorHandler() {
|
|
|
16765
16775
|
* segment by segment, so the answer is the concrete prefix (`/acme/data`).
|
|
16766
16776
|
*/
|
|
16767
16777
|
function requestMountPath(c) {
|
|
16768
|
-
const pattern =
|
|
16778
|
+
const pattern = handlerRoutePath(c).replace(/\/?\*$/, "");
|
|
16769
16779
|
if (!/[:*{]/.test(pattern)) return pattern;
|
|
16770
16780
|
const depth = pattern.split("/").filter(Boolean).length;
|
|
16771
16781
|
return `/${c.req.path.split("/").filter(Boolean).slice(0, depth).join("/")}`;
|
|
16772
16782
|
}
|
|
16773
16783
|
/**
|
|
16784
|
+
* The path the running handler was registered under.
|
|
16785
|
+
*
|
|
16786
|
+
* `routePath(c)` reads the match result under a `Symbol()` private to the copy
|
|
16787
|
+
* of hono it came from. A host app that mounts these groups may run on another
|
|
16788
|
+
* physical copy (a linked checkout, an install pnpm could not dedupe); its
|
|
16789
|
+
* requests carry the match under that copy's symbol, the helper finds nothing
|
|
16790
|
+
* and throws, and every request through the group answered 500. The request's
|
|
16791
|
+
* own `routePath` getter reads the same value from whichever copy built it.
|
|
16792
|
+
*/
|
|
16793
|
+
function handlerRoutePath(c) {
|
|
16794
|
+
try {
|
|
16795
|
+
return routePath(c);
|
|
16796
|
+
} catch {
|
|
16797
|
+
return c.req.routePath;
|
|
16798
|
+
}
|
|
16799
|
+
}
|
|
16800
|
+
/**
|
|
16774
16801
|
* A group's first middleware: record where the group is mounted as
|
|
16775
16802
|
* `c.var.mountPath`, for everything after it in the same request.
|
|
16776
16803
|
*
|
|
@@ -20593,11 +20620,11 @@ async function createStorageController(config) {
|
|
|
20593
20620
|
switch (config.type) {
|
|
20594
20621
|
case "local": return new LocalStorageController(config);
|
|
20595
20622
|
case "s3": {
|
|
20596
|
-
const { S3StorageController } = await import("./S3StorageController-
|
|
20623
|
+
const { S3StorageController } = await import("./S3StorageController-C7x2Yaiz.js").then((n) => n.n);
|
|
20597
20624
|
return new S3StorageController(config);
|
|
20598
20625
|
}
|
|
20599
20626
|
case "gcs": {
|
|
20600
|
-
const { GCSStorageController } = await import("./GCSStorageController-
|
|
20627
|
+
const { GCSStorageController } = await import("./GCSStorageController-Crdllv9A.js").then((n) => n.n);
|
|
20601
20628
|
return new GCSStorageController(config);
|
|
20602
20629
|
}
|
|
20603
20630
|
default: throw new Error(`Unknown storage type: ${config.type}. Built-in types: local, s3, gcs. For other providers, implement the StorageController interface directly.`);
|
|
@@ -20839,7 +20866,7 @@ function noCollectionsCause(unprotected) {
|
|
|
20839
20866
|
* routes wherever and as often as the application asks.
|
|
20840
20867
|
*/
|
|
20841
20868
|
async function loadOpenApiGenerator() {
|
|
20842
|
-
const { generateOpenApiSpec } = await import("./openapi-generator-
|
|
20869
|
+
const { generateOpenApiSpec } = await import("./openapi-generator-Cn-ytCH8.js").then((n) => n.i);
|
|
20843
20870
|
return generateOpenApiSpec;
|
|
20844
20871
|
}
|
|
20845
20872
|
/**
|
|
@@ -26315,6 +26342,32 @@ function relationTargetSlug(holder) {
|
|
|
26315
26342
|
function isRecord$1(value) {
|
|
26316
26343
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
26317
26344
|
}
|
|
26345
|
+
//#endregion
|
|
26346
|
+
//#region src/mcp/show-app-guide.ts
|
|
26347
|
+
/**
|
|
26348
|
+
* How to write show_app's code: the modules an app imports, and what each
|
|
26349
|
+
* gives it. The guide is what {@link SHOW_APP_GUIDE_TOOL} returns; show_app's
|
|
26350
|
+
* own description carries only {@link SHOW_APP_ESSENTIALS}, because a host
|
|
26351
|
+
* cuts a long description short (claude.ai at about 4,000 characters, which
|
|
26352
|
+
* left the UI kit's half of the guide unread). The hosted connector serves
|
|
26353
|
+
* the same two.
|
|
26354
|
+
*
|
|
26355
|
+
* Every name it imports or documents is one the view serves
|
|
26356
|
+
* (`MCP_APP_MODULES` in `@rebasepro/types`); `test/mcp-app-guide.test.ts`
|
|
26357
|
+
* holds it to that list, both ways.
|
|
26358
|
+
*/
|
|
26359
|
+
/** The tool that returns {@link SHOW_APP_CODE_GUIDE}. */
|
|
26360
|
+
var SHOW_APP_GUIDE_TOOL = "show_app_guide";
|
|
26361
|
+
/**
|
|
26362
|
+
* What show_app's description says of the code: where the guide is, and the
|
|
26363
|
+
* mistakes an app written without it makes. Short enough to be read whole.
|
|
26364
|
+
*/
|
|
26365
|
+
var SHOW_APP_ESSENTIALS = `
|
|
26366
|
+
Call ${SHOW_APP_GUIDE_TOOL} before writing the code: it gives every hook, component and prop an app may use, with a worked example. Props guessed from other libraries draw nothing. In short:
|
|
26367
|
+
- One TSX module, default-exporting a React component with no props. Its only imports: "react"; "@rebasepro/app" (useRows, useRow, useRowCount, useAggregate, useRowWrites: the project's rows as the user); "@rebasepro/cms" (CollectionPanel, RecordForm, FormField, RecordDetail, FieldValue, useSidePanel: the admin panel's own views and forms); "@rebasepro/ui" (the UI kit: SplitView, KpiGrid, KpiTile, ChartCard, BarChart, TimeSeriesChart, Card, Button, Tabs, …).
|
|
26368
|
+
- A list and a form: <SplitView master={…} detail={…} selected={…} onClearSelection={…} /> inside a parent with a height (style={{ height: 560 }}), never grid columns side by side.
|
|
26369
|
+
- Figures and charts: KpiTile and BarChart, not drawn by hand.
|
|
26370
|
+
- Tailwind's standard utilities only: an arbitrary value (h-[560px]) does nothing.`;
|
|
26318
26371
|
var SHOW_APP_CODE_GUIDE = `
|
|
26319
26372
|
The app is one TSX module whose default export is a React component (hooks welcome, no props). It runs in the conversation inside the project's admin panel, as the user, and imports Rebase's own packages, so the same code works in the project. It may import only these names:
|
|
26320
26373
|
- "react".
|
|
@@ -26995,7 +27048,7 @@ var TOOLS = [
|
|
|
26995
27048
|
{
|
|
26996
27049
|
name: "show_app",
|
|
26997
27050
|
title: "Build an app on the project's data",
|
|
26998
|
-
description: "Build a small app for what the user is doing — a triage queue, a dashboard, a review flow — and open it in the conversation: a React component you write, running on the project's data as the user, with the admin panel's own collection views and record forms to compose. Use it when one collection or one row is not enough (show_collection and show_record open those). The code is compiled before anything opens: a mistake comes back as this call's error, with its line, to fix and call again. A runtime error, and what the user changes, reach you with their next message. In a client that renders MCP Apps this opens in the conversation; elsewhere nothing is shown. The result does not say which happened, so do not tell the user a view appeared: report what the result says. Edits the person makes there are saved as them, each through the same checks as the write tools, and you are told what they changed.\n" +
|
|
27051
|
+
description: "Build a small app for what the user is doing — a triage queue, a dashboard, a review flow — and open it in the conversation: a React component you write, running on the project's data as the user, with the admin panel's own collection views and record forms to compose. Use it when one collection or one row is not enough (show_collection and show_record open those). The code is compiled before anything opens: a mistake comes back as this call's error, with its line, to fix and call again. A runtime error, and what the user changes, reach you with their next message. In a client that renders MCP Apps this opens in the conversation; elsewhere nothing is shown. The result does not say which happened, so do not tell the user a view appeared: report what the result says. Edits the person makes there are saved as them, each through the same checks as the write tools, and you are told what they changed.\n" + SHOW_APP_ESSENTIALS,
|
|
26999
27052
|
requiredScope: "data:read",
|
|
27000
27053
|
annotations: READS,
|
|
27001
27054
|
inputSchema: {
|
|
@@ -27034,6 +27087,24 @@ var TOOLS = [
|
|
|
27034
27087
|
};
|
|
27035
27088
|
}
|
|
27036
27089
|
},
|
|
27090
|
+
{
|
|
27091
|
+
name: "show_app_guide",
|
|
27092
|
+
title: "Read show_app's guide",
|
|
27093
|
+
description: "How to write show_app's code: the modules an app imports, every hook and component with its props, and a worked example. Read it before your first show_app call in a conversation.",
|
|
27094
|
+
requiredScope: "data:read",
|
|
27095
|
+
annotations: READS,
|
|
27096
|
+
inputSchema: {
|
|
27097
|
+
type: "object",
|
|
27098
|
+
properties: {},
|
|
27099
|
+
additionalProperties: false
|
|
27100
|
+
},
|
|
27101
|
+
offeredWithView: MCP_APP_URI,
|
|
27102
|
+
ownText: true,
|
|
27103
|
+
structuredContent: false,
|
|
27104
|
+
async run() {
|
|
27105
|
+
return SHOW_APP_CODE_GUIDE.trim();
|
|
27106
|
+
}
|
|
27107
|
+
},
|
|
27037
27108
|
{
|
|
27038
27109
|
name: "count_documents",
|
|
27039
27110
|
title: "Count rows",
|
|
@@ -27544,9 +27615,10 @@ function createMcpRoutes(config) {
|
|
|
27544
27615
|
compilerLoaded ??= compilerSource();
|
|
27545
27616
|
return (await compilerLoaded)(source);
|
|
27546
27617
|
} : void 0;
|
|
27547
|
-
/** Whether the view a tool opens, if any, is served here. A tool whose view is not does not exist here. */
|
|
27618
|
+
/** Whether the view a tool opens or goes with, if any, is served here. A tool whose view is not does not exist here. */
|
|
27548
27619
|
async function viewServed(tool) {
|
|
27549
|
-
|
|
27620
|
+
const view = tool.ui?.resourceUri ?? tool.offeredWithView;
|
|
27621
|
+
return view === void 0 || await appAt(view) !== void 0;
|
|
27550
27622
|
}
|
|
27551
27623
|
/** The tools this caller is offered: their scope, and the view a tool opens being served. */
|
|
27552
27624
|
async function offeredTools(scopes) {
|
|
@@ -27784,6 +27856,10 @@ function createMcpRoutes(config) {
|
|
|
27784
27856
|
});
|
|
27785
27857
|
const source = typeof args.collection === "string" ? `${name} on collection ${JSON.stringify(args.collection)}` : name;
|
|
27786
27858
|
const read = tool.modelResult ? tool.modelResult(result) : result;
|
|
27859
|
+
if (tool.ownText && typeof read === "string") return rpcResult(id, { content: [{
|
|
27860
|
+
type: "text",
|
|
27861
|
+
text: read
|
|
27862
|
+
}] });
|
|
27787
27863
|
return rpcResult(id, {
|
|
27788
27864
|
content: [{
|
|
27789
27865
|
type: "text",
|
|
@@ -30624,7 +30700,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
30624
30700
|
const platformTokenPreAuth = createPlatformTokenPreAuth(platformTokens);
|
|
30625
30701
|
let backupLinkRouter;
|
|
30626
30702
|
if (surfaces.admin) {
|
|
30627
|
-
const { createBackupLinkRoutes, backupDestinationFromEnv } = await import("./backup-
|
|
30703
|
+
const { createBackupLinkRoutes, backupDestinationFromEnv } = await import("./backup-BiAhhHKV.js").then((n) => n.t);
|
|
30628
30704
|
backupLinkRouter = createBackupLinkRoutes({ getDestination: () => backupDestinationFromEnv(process.env) });
|
|
30629
30705
|
}
|
|
30630
30706
|
const apiKeyRouter = apiKeyStore && surfaces.admin ? createApiKeyRoutes({
|
|
@@ -30769,7 +30845,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
30769
30845
|
]) {
|
|
30770
30846
|
const providerConfig = safeAuthConfig[key];
|
|
30771
30847
|
if (providerConfig && requiredFields.every((f) => Boolean(providerConfig[f]))) {
|
|
30772
|
-
const createFn = (await import("./auth-
|
|
30848
|
+
const createFn = (await import("./auth-CV82Wvq1.js").then((n) => n.t))[factory];
|
|
30773
30849
|
oauthProviders.push(createFn(providerConfig));
|
|
30774
30850
|
}
|
|
30775
30851
|
}
|
|
@@ -31003,7 +31079,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31003
31079
|
let schemaEditorRoutes;
|
|
31004
31080
|
let schemaSourceEditor;
|
|
31005
31081
|
if (!schemaEditorOff && config.collectionsDir) try {
|
|
31006
|
-
const editorModule = await import("./schema-editor-routes-
|
|
31082
|
+
const editorModule = await import("./schema-editor-routes-Bi8S1gn7.js");
|
|
31007
31083
|
schemaSourceEditor = editorModule.createSchemaSourceEditor(config.collectionsDir);
|
|
31008
31084
|
schemaEditorRoutes = editorModule.createSchemaEditorRoutes(schemaSourceEditor);
|
|
31009
31085
|
} catch (err) {
|
|
@@ -31053,7 +31129,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31053
31129
|
let remoteEditingOff;
|
|
31054
31130
|
if (remoteRepo) {
|
|
31055
31131
|
try {
|
|
31056
|
-
remoteEditor = await import("./ast-schema-editor-
|
|
31132
|
+
remoteEditor = await import("./ast-schema-editor-D56sGr0L.js");
|
|
31057
31133
|
} catch (err) {
|
|
31058
31134
|
if (err?.code !== "ERR_MODULE_NOT_FOUND") throw err;
|
|
31059
31135
|
remoteEditingOff = {
|
|
@@ -31391,7 +31467,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31391
31467
|
const loadFailures = [];
|
|
31392
31468
|
if ((config.functionsDir || config.functions) && surfaces.functions) {
|
|
31393
31469
|
const { functionList, readFunctionsDirectory } = await import("./function-loader-BzKo2Oiu.js").then((n) => n.t);
|
|
31394
|
-
const { createFunctionRoutes } = await import("./function-routes-
|
|
31470
|
+
const { createFunctionRoutes } = await import("./function-routes-CdtIKSV8.js").then((n) => n.n);
|
|
31395
31471
|
const { createFunctionsRequestTimeout, resolveFunctionsTimeoutMs } = await import("./request-timeout-DW2OBWfJ.js").then((n) => n.t);
|
|
31396
31472
|
const { functions: functionRecord, problems, failed } = config.functions ? {
|
|
31397
31473
|
functions: config.functions,
|
|
@@ -31454,10 +31530,10 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31454
31530
|
/** How many cron jobs `start()` schedules in this process. */
|
|
31455
31531
|
let cronJobsToSchedule = 0;
|
|
31456
31532
|
if (surfaces.cron || (config.cronsDir || config.crons || storageSweepJobs.length > 0) && ownership.cronScheduler) {
|
|
31457
|
-
const { cronJobsFrom, readCronsDirectory, withHiddenPropertiesOf } = await import("./cron-loader-
|
|
31458
|
-
const { CronScheduler } = await import("./cron-scheduler-
|
|
31459
|
-
const { createCronRoutes } = await import("./cron-routes-
|
|
31460
|
-
const { createCronStore } = await import("./cron-store-
|
|
31533
|
+
const { cronJobsFrom, readCronsDirectory, withHiddenPropertiesOf } = await import("./cron-loader-D1zNARNU.js").then((n) => n.t);
|
|
31534
|
+
const { CronScheduler } = await import("./cron-scheduler-DEKiJh_G.js").then((n) => n.n);
|
|
31535
|
+
const { createCronRoutes } = await import("./cron-routes-BtB2VVTk.js").then((n) => n.n);
|
|
31536
|
+
const { createCronStore } = await import("./cron-store-DcaNQIAr.js").then((n) => n.n);
|
|
31461
31537
|
const { crons: cronRecord, problems: cronProblems, failed: cronFailures } = config.crons ? {
|
|
31462
31538
|
crons: config.crons,
|
|
31463
31539
|
problems: [],
|
|
@@ -31522,7 +31598,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31522
31598
|
}
|
|
31523
31599
|
let metricsHistory;
|
|
31524
31600
|
try {
|
|
31525
|
-
const { createMetricsHistory } = await import("./history-recorder-
|
|
31601
|
+
const { createMetricsHistory } = await import("./history-recorder-C8FBGUa9.js");
|
|
31526
31602
|
metricsHistory = createMetricsHistory(defaultDriver, { provision: provision.database });
|
|
31527
31603
|
if (metricsHistory) await metricsHistory.ensure();
|
|
31528
31604
|
} catch (err) {
|
|
@@ -31531,7 +31607,7 @@ async function buildRebaseBackend(options, announcements) {
|
|
|
31531
31607
|
}
|
|
31532
31608
|
let jobQueue;
|
|
31533
31609
|
if (jobsOptions?.enabled) {
|
|
31534
|
-
const { createJobStore, createJobQueue } = await import("./jobs-
|
|
31610
|
+
const { createJobStore, createJobQueue } = await import("./jobs-DK9ra01Y.js").then((n) => n.t);
|
|
31535
31611
|
const store = createJobStore(defaultDriver, { provision: provision.database });
|
|
31536
31612
|
if (store) {
|
|
31537
31613
|
await store.ensureTable();
|
|
@@ -31576,7 +31652,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
|
|
|
31576
31652
|
let logsSurface;
|
|
31577
31653
|
let metaSurface;
|
|
31578
31654
|
if (surfaces.admin) {
|
|
31579
|
-
const { createBackupRoutes, backupDestinationFromEnv, readBackupSchedule } = await import("./backup-
|
|
31655
|
+
const { createBackupRoutes, backupDestinationFromEnv, readBackupSchedule } = await import("./backup-BiAhhHKV.js").then((n) => n.t);
|
|
31580
31656
|
const backupRouter = new Hono();
|
|
31581
31657
|
applyAdminGate(backupRouter, "Backup", "backups:read");
|
|
31582
31658
|
const scheduler = cronScheduler;
|
|
@@ -31598,7 +31674,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
|
|
|
31598
31674
|
}
|
|
31599
31675
|
let rlsSimulatorSurface;
|
|
31600
31676
|
if (surfaces.admin) {
|
|
31601
|
-
const { createRlsSimulatorRoutes } = await import("./rls-simulator-routes-
|
|
31677
|
+
const { createRlsSimulatorRoutes } = await import("./rls-simulator-routes-5nbuDwWR.js");
|
|
31602
31678
|
const rlsSimulatorRouter = new Hono();
|
|
31603
31679
|
applyAdminGate(rlsSimulatorRouter, "RLS simulator", "schema:read");
|
|
31604
31680
|
rlsSimulatorRouter.route("/", createRlsSimulatorRoutes({
|
|
@@ -31613,14 +31689,14 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
|
|
|
31613
31689
|
rlsSimulatorSurface = rlsSimulatorRouter;
|
|
31614
31690
|
}
|
|
31615
31691
|
if (surfaces.admin) {
|
|
31616
|
-
const { createSqlExportRoutes } = await import("./sql-export-routes-
|
|
31692
|
+
const { createSqlExportRoutes } = await import("./sql-export-routes-XkcXbxw5.js");
|
|
31617
31693
|
const sqlExportRouter = new Hono();
|
|
31618
31694
|
applyAdminGate(sqlExportRouter, "SQL export", "database:write");
|
|
31619
31695
|
sqlExportRouter.route("/", createSqlExportRoutes({ getAdmin: () => defaultDriver.admin }));
|
|
31620
31696
|
sqlExportSurface = sqlExportRouter;
|
|
31621
31697
|
}
|
|
31622
31698
|
if (surfaces.admin) {
|
|
31623
|
-
const { createBranchRoutes } = await import("./branch-routes-
|
|
31699
|
+
const { createBranchRoutes } = await import("./branch-routes-DqKPRFtb.js");
|
|
31624
31700
|
const branchRouter = new Hono();
|
|
31625
31701
|
applyAdminGate(branchRouter, "Branch review", "database:write");
|
|
31626
31702
|
branchRouter.route("/", createBranchRoutes({ getAdmin: () => defaultDriver.admin }));
|
|
@@ -31659,7 +31735,7 @@ Use a driver that supports the job queue, or remove the declarations. Refusing t
|
|
|
31659
31735
|
logsSurface = logsRouter;
|
|
31660
31736
|
}
|
|
31661
31737
|
if (surfaces.meta) {
|
|
31662
|
-
const { createContractRoutes } = await import("./contract-routes-
|
|
31738
|
+
const { createContractRoutes } = await import("./contract-routes-AD3hi7ad.js").then((n) => n.t);
|
|
31663
31739
|
const contractRouter = new Hono();
|
|
31664
31740
|
if (adminSurfacesGated) contractRouter.use("/contract", ...adminGate("schema:read"));
|
|
31665
31741
|
else {
|
|
@@ -32053,7 +32129,7 @@ function realtimeSocketPath(basePath) {
|
|
|
32053
32129
|
* backend no MCP client calls never loads it.
|
|
32054
32130
|
*/
|
|
32055
32131
|
async function loadMcpApps() {
|
|
32056
|
-
const { MCP_APPS } = await import("./dist-
|
|
32132
|
+
const { MCP_APPS } = await import("./dist-BpP9FwVH.js");
|
|
32057
32133
|
return withProjectView(MCP_APPS, [...process.env.REBASE_MCP_VIEW ? [process.env.REBASE_MCP_VIEW] : [], ...servedFrontendPaths().map((frontend) => path.join(frontend, PROJECT_VIEW_FILE))], (file) => {
|
|
32058
32134
|
try {
|
|
32059
32135
|
return readFileSync(file, "utf8");
|
|
@@ -32067,7 +32143,7 @@ async function loadMcpApps() {
|
|
|
32067
32143
|
* app to the modules and names every view serves (`MCP_APP_MODULES`).
|
|
32068
32144
|
*/
|
|
32069
32145
|
async function loadAppCompiler() {
|
|
32070
|
-
const { compileApp } = await import("./dist-
|
|
32146
|
+
const { compileApp } = await import("./dist-BpP9FwVH.js");
|
|
32071
32147
|
return (source) => compileApp(source, MCP_APP_MODULES);
|
|
32072
32148
|
}
|
|
32073
32149
|
//#endregion
|
|
@@ -37409,6 +37485,6 @@ function warnOnUnusableBundleShape(bundle) {
|
|
|
37409
37485
|
logger.warn(`This bundle declares collections at "${bundle.manifest.entry.collections}", but that directory did not resolve, so no collections were loaded and no tables will be created. Rebuild with \`rebase build\`.`);
|
|
37410
37486
|
}
|
|
37411
37487
|
//#endregion
|
|
37412
|
-
export { ACCOUNT_SCOPED_STORAGE_BASES, ApiError, BATCH_REF_KEY, BlockedUrlError, BundleError, CONCURRENT_DDL_SQLSTATES, CORS_EXPOSED_HEADERS, CollectionConfigError, CronScheduler, DATABASE_UNAVAILABLE_MESSAGE, DATA_SCOPE_VOCABULARY, DEFAULT_DRIVER_ID, DEFAULT_MAX_FILE_SIZE, DEFAULT_REFERRER_POLICY, DEFAULT_STORAGE_ID, DOCUMENT_MIME_TYPES, DefaultDriverRegistry, DefaultStorageRegistry, ETAG_HEADER, FIELD_OPERATORS, GCSStorageController, IF_MATCH_HEADER, IMAGE_MIME_TYPES, LocalStorageController, MCP_APP_URI, MCP_VIEW_TOOLS, McpToolError, MetricsRegistry, ObjectTooLargeError, PermanentJobError, RUNTIME_BUNDLE_MOUNT, RUNTIME_DEFAULT_MAX_BODY_SIZE, RUNTIME_HEALTH_PATH, RUNTIME_LIVENESS_PATH, RUNTIME_MIN_TERMINATION_GRACE_SECONDS, RUNTIME_PRESTOP_DRAIN_SECONDS, RUNTIME_PROBE_PATHS, RUNTIME_STARTUP_BUDGET_SECONDS, RawHtml, S3StorageController, SHOW_APP_CODE_GUIDE, SMTPEmailService, StoragePolicyError, TOPOLOGY_ENV_VARS, TransformCache, TusHandler, UPLOAD_COLLECTION_FIELD, UPLOAD_PROPERTY_FIELD, UnknownStorageSourceError, WEBHOOK_DELIVERY_TASK, WebhookDispatcher, _resetRebaseMock, _setRebaseMock, accessModelFromCollections, activeDevEmailSink, applyCollectionDefaults, assertAllowedOutboundUrl, assertCollectionConfigs, assertDistinctSuffixes, assertEmailLinkBases, assertEveryKindBindable, assertFieldOpsValid, assertIfMatch, assertNestedWriteAllowed, assertNoFieldOpsOnCreate, assertNoUserUpsert, assertQueryFieldsReadable, assertUploadWithinPathLimits, assertUploadWithinPropertyLimits, assertUserCreationBodyValid, assertWriteRequestValid, authJwt, authRoles, authUid, backupStorageFromEnv, blockedAddressReason, bootFromBundle, callerScopes, classifySurface, cleanupDevPortFile, clearActiveDevEmailSink, compileStoragePolicies, composeCallbacks, configureAccess, configureJwt, createAppleProvider, createBackupLinkRoutes, createBackupRoutes, createBitbucketProvider, createBuiltinAuthAdapter, createCallContext, createContractRoutes, createCronRoutes, createCronStore, createCustomAuthAdapter, createDdlBootstrapper, createDevEmailSink, createDiscordProvider, createEmailService, createFacebookProvider, createFunctionRoutes, createGitHubProvider, createGitLabProvider, createGoogleProvider, createHistoryRoutes, createJobQueue, createJobStore, createJwksRoutes, createJwtService, createLinkedinProvider, createMetricsMiddleware, createMetricsRoutes, createMicrosoftProvider, createRebaseBackend, createRlsAudit, createSlackProvider, createSourceBundle, createSpotifyProvider, createStorageController, createStorageRoutes, createTwitterProvider, createUnconfiguredEmailService, createUploadConstraintResolver, createUploadPathResolver, createUserThroughAuthCollection, decideImpersonation, declareCrons, declaredErrorAnswer, declaredUniqueTargets, defaultBackoff, defineCron, defineFunction, devEmailSinkFor, drainBackgroundWork, envSuffixForKey, errorHandler, escapeHtml, extractLinks, extractUserFromToken, fileTokenAuth, findCollectionConfigProblems, generateSecurePassword, getAccessModel, getApiKey, getDriver, getEmailChangeNoticeTemplate, getEmailChangeTemplate, getEmailOtpTemplate, getEmailVerificationTemplate, getEnv, getJwks, getMagicLinkTemplate, getPasswordResetTemplate, getRequestId, getRoles, getUser, getUserId, getUserInvitationTemplate, getWelcomeEmailTemplate, hasAsymmetricSigningKey, hasFieldOps, hasRole, hasScope, hashPassword, html, httpMethodToOperation, identityResolved, implicitDeclaration, initializeDataSource, initializeDataSources, initializeRebaseBackend, installShutdownHandlers, installUnhandledRejectionHandler, isAcceptedFile, isAdmin, isApiKeyToken, isAuthAdapter, isAuthenticated, isConcurrentDdlRace, isDataException, isDatabaseAdapter, isDatabaseUnreachable, isDuplicateObjectRace, isLocalhostOrigin, isNodeRuntime, isTopologyEnvVar, isTransformableImage, isUncountedPath, lazyResource, listBackupObjects, listenWithPortRetry, loadBootEnv, loadBundle, loadBundleConfigExports, loadBundleSchema, loadCollectionsFromDirectory, loadCronJobsFromDirectory, loadCronJobsWithDiagnostics, loadCrons, loadEnv, loadFunctions, loadFunctionsFromDirectory, loadFunctionsWithDiagnostics, loadUsersCollection, logger, looksLikeFieldOp, mcpAppBaseUri, mcpViewToolInputSchema, oauthCodeFlowSchema, optionalAuth, overridableSecurityHeaders, parseBackupDestination, parseBackupTimestamp, parseFieldOp, parseTransformOptions, pendingBackgroundWork, pkceTokenParams, providerVerifiedEmail, queryTokenAuth, raw, rawQueryLoggingEnabled, readBackupBytes, readBundleManifest, readUploadPropertyContext, realtimeSocketPath, rebase, refuseUnhonouredImpersonation, registerDevEmailSink, registerResourceResolver, reportSimulatedContext, requireAdmin, requireAuth, requireDriver, requireEnv, requireRole, requireScope, resolveApiKey, resolveAuthHooks, resolveAuthOptions, resolveBatchRefs, resolveConflictTarget, resolveCorsOrigin, resolveDataSources, resolveEmailBranding, resolveEmailLinkBase, resolveEmailOptions, resolveRequireAuth, resolveStorageAccessControl, resolveStorageBackend, resolveStorageSources, resourceResolver, resourceResolvers, rowETag, runFromBundle, runtimeKey, safeCompare, schemaDriftRemedy, serveSPA, setDefaultBackend, setLogOutput, splitFieldOps, summarize as summarizeRlsScan, transformImage, tryVerifyOidcIdToken, unbindableKinds, unknownKeyPolicyFromEnv, validateApiKey, validateCronExpression, validatePasswordStrength, verifyCredential, verifyOidcIdToken, verifyPassword, versionProperty, versionedMcpAppUri, waitUntil, z };
|
|
37488
|
+
export { ACCOUNT_SCOPED_STORAGE_BASES, ApiError, BATCH_REF_KEY, BlockedUrlError, BundleError, CONCURRENT_DDL_SQLSTATES, CORS_EXPOSED_HEADERS, CollectionConfigError, CronScheduler, DATABASE_UNAVAILABLE_MESSAGE, DATA_SCOPE_VOCABULARY, DEFAULT_DRIVER_ID, DEFAULT_MAX_FILE_SIZE, DEFAULT_REFERRER_POLICY, DEFAULT_STORAGE_ID, DOCUMENT_MIME_TYPES, DefaultDriverRegistry, DefaultStorageRegistry, ETAG_HEADER, FIELD_OPERATORS, GCSStorageController, IF_MATCH_HEADER, IMAGE_MIME_TYPES, LocalStorageController, MCP_APP_URI, MCP_VIEW_TOOLS, McpToolError, MetricsRegistry, ObjectTooLargeError, PermanentJobError, RUNTIME_BUNDLE_MOUNT, RUNTIME_DEFAULT_MAX_BODY_SIZE, RUNTIME_HEALTH_PATH, RUNTIME_LIVENESS_PATH, RUNTIME_MIN_TERMINATION_GRACE_SECONDS, RUNTIME_PRESTOP_DRAIN_SECONDS, RUNTIME_PROBE_PATHS, RUNTIME_STARTUP_BUDGET_SECONDS, RawHtml, S3StorageController, SHOW_APP_CODE_GUIDE, SHOW_APP_ESSENTIALS, SHOW_APP_GUIDE_TOOL, SMTPEmailService, StoragePolicyError, TOPOLOGY_ENV_VARS, TransformCache, TusHandler, UPLOAD_COLLECTION_FIELD, UPLOAD_PROPERTY_FIELD, UnknownStorageSourceError, WEBHOOK_DELIVERY_TASK, WebhookDispatcher, _resetRebaseMock, _setRebaseMock, accessModelFromCollections, activeDevEmailSink, applyCollectionDefaults, assertAllowedOutboundUrl, assertCollectionConfigs, assertDistinctSuffixes, assertEmailLinkBases, assertEveryKindBindable, assertFieldOpsValid, assertIfMatch, assertNestedWriteAllowed, assertNoFieldOpsOnCreate, assertNoUserUpsert, assertQueryFieldsReadable, assertUploadWithinPathLimits, assertUploadWithinPropertyLimits, assertUserCreationBodyValid, assertWriteRequestValid, authJwt, authRoles, authUid, backupStorageFromEnv, blockedAddressReason, bootFromBundle, callerScopes, classifySurface, cleanupDevPortFile, clearActiveDevEmailSink, compileStoragePolicies, composeCallbacks, configureAccess, configureJwt, createAppleProvider, createBackupLinkRoutes, createBackupRoutes, createBitbucketProvider, createBuiltinAuthAdapter, createCallContext, createContractRoutes, createCronRoutes, createCronStore, createCustomAuthAdapter, createDdlBootstrapper, createDevEmailSink, createDiscordProvider, createEmailService, createFacebookProvider, createFunctionRoutes, createGitHubProvider, createGitLabProvider, createGoogleProvider, createHistoryRoutes, createJobQueue, createJobStore, createJwksRoutes, createJwtService, createLinkedinProvider, createMetricsMiddleware, createMetricsRoutes, createMicrosoftProvider, createRebaseBackend, createRlsAudit, createSlackProvider, createSourceBundle, createSpotifyProvider, createStorageController, createStorageRoutes, createTwitterProvider, createUnconfiguredEmailService, createUploadConstraintResolver, createUploadPathResolver, createUserThroughAuthCollection, decideImpersonation, declareCrons, declaredErrorAnswer, declaredUniqueTargets, defaultBackoff, defineCron, defineFunction, devEmailSinkFor, drainBackgroundWork, envSuffixForKey, errorHandler, escapeHtml, extractLinks, extractUserFromToken, fileTokenAuth, findCollectionConfigProblems, generateSecurePassword, getAccessModel, getApiKey, getDriver, getEmailChangeNoticeTemplate, getEmailChangeTemplate, getEmailOtpTemplate, getEmailVerificationTemplate, getEnv, getJwks, getMagicLinkTemplate, getPasswordResetTemplate, getRequestId, getRoles, getSql, getUser, getUserId, getUserInvitationTemplate, getWelcomeEmailTemplate, hasAsymmetricSigningKey, hasFieldOps, hasRole, hasScope, hashPassword, html, httpMethodToOperation, identityResolved, implicitDeclaration, initializeDataSource, initializeDataSources, initializeRebaseBackend, installShutdownHandlers, installUnhandledRejectionHandler, isAcceptedFile, isAdmin, isApiKeyToken, isAuthAdapter, isAuthenticated, isConcurrentDdlRace, isDataException, isDatabaseAdapter, isDatabaseUnreachable, isDuplicateObjectRace, isLocalhostOrigin, isNodeRuntime, isTopologyEnvVar, isTransformableImage, isUncountedPath, lazyResource, listBackupObjects, listenWithPortRetry, loadBootEnv, loadBundle, loadBundleConfigExports, loadBundleSchema, loadCollectionsFromDirectory, loadCronJobsFromDirectory, loadCronJobsWithDiagnostics, loadCrons, loadEnv, loadFunctions, loadFunctionsFromDirectory, loadFunctionsWithDiagnostics, loadUsersCollection, logger, looksLikeFieldOp, mcpAppBaseUri, mcpViewToolInputSchema, oauthCodeFlowSchema, optionalAuth, overridableSecurityHeaders, parseBackupDestination, parseBackupTimestamp, parseFieldOp, parseTransformOptions, pendingBackgroundWork, pkceTokenParams, providerVerifiedEmail, queryTokenAuth, raw, rawQueryLoggingEnabled, readBackupBytes, readBundleManifest, readUploadPropertyContext, realtimeSocketPath, rebase, refuseUnhonouredImpersonation, registerDevEmailSink, registerResourceResolver, reportSimulatedContext, requireAdmin, requireAuth, requireDriver, requireEnv, requireRole, requireScope, resolveApiKey, resolveAuthHooks, resolveAuthOptions, resolveBatchRefs, resolveConflictTarget, resolveCorsOrigin, resolveDataSources, resolveEmailBranding, resolveEmailLinkBase, resolveEmailOptions, resolveRequireAuth, resolveStorageAccessControl, resolveStorageBackend, resolveStorageSources, resourceResolver, resourceResolvers, rowETag, runFromBundle, runtimeKey, safeCompare, schemaDriftRemedy, serveSPA, setDefaultBackend, setLogOutput, splitFieldOps, summarize as summarizeRlsScan, transformImage, tryVerifyOidcIdToken, unbindableKinds, unknownKeyPolicyFromEnv, validateApiKey, validateCronExpression, validatePasswordStrength, verifyCredential, verifyOidcIdToken, verifyPassword, versionProperty, versionedMcpAppUri, waitUntil, z };
|
|
37413
37489
|
|
|
37414
37490
|
//# sourceMappingURL=index.es.js.map
|