@happyvertical/smrt-app-runtime 0.57.32 → 0.57.34

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/README.md CHANGED
@@ -127,9 +127,11 @@ VFS.
127
127
 
128
128
  Owner onboarding binds to `127.0.0.1` by default and accepts only loopback IP
129
129
  literals (`127.0.0.0/8` or `::1`), avoiding hostname-resolution ambiguity.
130
- The first valid claim creates a real global `Person`, `User`, default `Tenant`,
131
- owner `Role` / `Membership`, and server-side `Session` atomically. Startup and
132
- setup are idempotent; replayed, expired, or concurrent claims fail closed.
130
+ The first valid claim creates a tenant-bound `Person`, `User`, default `Tenant`,
131
+ owner `Role` / `Membership`, and server-side `Session` atomically. The owner
132
+ Person belongs to the actual created or adopted tenant; its shared profile type
133
+ remains global. Startup and setup are idempotent; replayed, expired, or
134
+ concurrent claims fail closed.
133
135
  `ownerTenant: { slug, name, adoptExisting }` (also accepted by the SvelteKit
134
136
  runtime) selects the bootstrap tenant; the default is a new tenant with slug
135
137
  `default`. Because `Tenant` upserts on its slug, the claim checks first and
@@ -1970,6 +1970,8 @@ async function createLocalOwnerRecords(db, input, sessionTtlSeconds, ownerTenant
1970
1970
  await tenantService.initialize();
1971
1971
  ({tenant, membership} = await tenantService.createTenantWithOwnership(userId, tenantName, { slug: ownerTenant.slug }));
1972
1972
  }
1973
+ person.tenantId = requireId(tenant.id, "Tenant");
1974
+ await person.save();
1973
1975
  const session = await (await SessionCollection.create({ db })).createSession({
1974
1976
  userId,
1975
1977
  tenantId: requireId(tenant.id, "Tenant"),
@@ -2772,4 +2774,4 @@ function isDirectoryNotEmpty(error) {
2772
2774
  //#endregion
2773
2775
  export { reclaimStaleRecord as A, deepFrozenPlainCopy as B, findInstalledPackage as C, processExists as D, lockOwnerPid as E, LOCAL_MCP_TOKEN_PRINCIPAL as F, initializeDeployedApplicationRuntime as G, resolveBoundMembershipPermissions as H, LOCAL_MCP_TOKEN_TABLE as I, isSessionTenantAuthorized as K, MAX_LOCAL_MCP_TOKEN_TTL_SECONDS as L, runtimeConfigurationFingerprint as M, DEFAULT_LOCAL_MCP_TOKEN_TTL_SECONDS as N, withOperationLock as O, LOCAL_MCP_TOKEN_PREFIX as P, isLocalMcpTokenPrincipal as R, createProviderReadinessProbe as S, isStaleOperationLock as T, DeployedRuntimeCleanupError as U, ownValue as V, DeployedRuntimeError as W, MAX_RUNTIME_DIAGNOSTIC_TOOLS as _, openLocalMcpTokenStore as a, projectRuntimeDiagnostics as b, validateApplicationId as c, readActiveWriterLease as d, ONBOARDING_HANDOFF_FILES as f, MAX_RUNTIME_DIAGNOSTIC_ERRORS as g, resolveApplicationStateRoot as h, initializeLocalApplicationRuntime as i, resolveApplicationId as j, RECLAIM_MUTEX_FILE as k, validateLocalDatabaseStorage as l, removeOnboardingHandoff as m, MIGRATION_FAILED_MESSAGE as n, prepareLocalDatabaseStorage as o, prepareApplicationStateRoot as p, encodeApplicationId as r, resolveLocalRuntimePaths as s, LocalRuntimeError as t, acquireWriterLease as u, RUNTIME_DIAGNOSTICS_SCHEMA_VERSION as v, resolveReadinessModule as w, PROVIDER_READINESS_SETTINGS as x, RUNTIME_WORKER_FRESHNESS_SECONDS as y, PlainDataError as z };
2774
2776
 
2775
- //# sourceMappingURL=src-C98Cqurb.js.map
2777
+ //# sourceMappingURL=src-C_A3ugf-.js.map