@seedprotocol/sdk 0.7.7-next.988.g7046e66 → 0.7.7

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.
Files changed (140) hide show
  1. package/dist/{ClientManager-DdqRofK6.js → ClientManager-2GtDWHq6.js} +21 -21
  2. package/dist/{ClientManager-DdqRofK6.js.map → ClientManager-2GtDWHq6.js.map} +1 -1
  3. package/dist/{Item-DmK1PgK9.js → Item-D6j0IvBP.js} +53 -53
  4. package/dist/{Item-DmK1PgK9.js.map → Item-D6j0IvBP.js.map} +1 -1
  5. package/dist/{ModelProperty-DaJAII87.js → ModelProperty-B52C3CQ2.js} +26 -26
  6. package/dist/{ModelProperty-DaJAII87.js.map → ModelProperty-B52C3CQ2.js.map} +1 -1
  7. package/dist/{Schema-DhlbBQs8.js → Schema-O1QLoXv6.js} +31 -31
  8. package/dist/{Schema-DhlbBQs8.js.map → Schema-O1QLoXv6.js.map} +1 -1
  9. package/dist/{SchemaValidationService-9KHQAYQ4.js → SchemaValidationService-BxCbfDaI.js} +6 -6
  10. package/dist/{SchemaValidationService-9KHQAYQ4.js.map → SchemaValidationService-BxCbfDaI.js.map} +1 -1
  11. package/dist/{backfillMetadataPropertyIds-qoVxUEEl.js → backfillMetadataPropertyIds-CzSbuucw.js} +3 -3
  12. package/dist/{backfillMetadataPropertyIds-qoVxUEEl.js.map → backfillMetadataPropertyIds-CzSbuucw.js.map} +1 -1
  13. package/dist/{configurePlatform-CazqABrK.js → configurePlatform-Bbpw_R4y.js} +2 -2
  14. package/dist/{configurePlatform-CazqABrK.js.map → configurePlatform-Bbpw_R4y.js.map} +1 -1
  15. package/dist/{detachRowsBeforeDelete-yatbnC27.js → detachRowsBeforeDelete-D1TyEMco.js} +2 -2
  16. package/dist/{detachRowsBeforeDelete-yatbnC27.js.map → detachRowsBeforeDelete-D1TyEMco.js.map} +1 -1
  17. package/dist/{discardNewDraft-q1krLqtL.js → discardNewDraft-hiVaUVjV.js} +5 -5
  18. package/dist/{discardNewDraft-q1krLqtL.js.map → discardNewDraft-hiVaUVjV.js.map} +1 -1
  19. package/dist/dist/{ClientManager-DdqRofK6.d.ts → ClientManager-2GtDWHq6.d.ts} +1 -1
  20. package/dist/dist/{ClientManager-DdqRofK6.d.ts.map → ClientManager-2GtDWHq6.d.ts.map} +1 -1
  21. package/dist/dist/{Item-DmK1PgK9.d.ts → Item-D6j0IvBP.d.ts} +1 -1
  22. package/dist/dist/{Item-DmK1PgK9.d.ts.map → Item-D6j0IvBP.d.ts.map} +1 -1
  23. package/dist/dist/{ModelProperty-DaJAII87.d.ts → ModelProperty-B52C3CQ2.d.ts} +1 -1
  24. package/dist/dist/{ModelProperty-DaJAII87.d.ts.map → ModelProperty-B52C3CQ2.d.ts.map} +1 -1
  25. package/dist/dist/{Schema-DhlbBQs8.d.ts → Schema-O1QLoXv6.d.ts} +1 -1
  26. package/dist/dist/{Schema-DhlbBQs8.d.ts.map → Schema-O1QLoXv6.d.ts.map} +1 -1
  27. package/dist/dist/{SchemaValidationService-9KHQAYQ4.d.ts → SchemaValidationService-BxCbfDaI.d.ts} +1 -1
  28. package/dist/dist/{SchemaValidationService-9KHQAYQ4.d.ts.map → SchemaValidationService-BxCbfDaI.d.ts.map} +1 -1
  29. package/dist/dist/{backfillMetadataPropertyIds-qoVxUEEl.d.ts → backfillMetadataPropertyIds-CzSbuucw.d.ts} +1 -1
  30. package/dist/dist/backfillMetadataPropertyIds-CzSbuucw.d.ts.map +1 -0
  31. package/dist/dist/{configurePlatform-CazqABrK.d.ts → configurePlatform-Bbpw_R4y.d.ts} +1 -1
  32. package/dist/dist/configurePlatform-Bbpw_R4y.d.ts.map +1 -0
  33. package/dist/dist/{detachRowsBeforeDelete-yatbnC27.d.ts → detachRowsBeforeDelete-D1TyEMco.d.ts} +1 -1
  34. package/dist/dist/detachRowsBeforeDelete-D1TyEMco.d.ts.map +1 -0
  35. package/dist/dist/{discardNewDraft-q1krLqtL.d.ts → discardNewDraft-hiVaUVjV.d.ts} +1 -1
  36. package/dist/dist/discardNewDraft-hiVaUVjV.d.ts.map +1 -0
  37. package/dist/dist/{eas-CPYt-QVJ.d.ts → eas-DOdj-EMK.d.ts} +1 -1
  38. package/dist/dist/eas-DOdj-EMK.d.ts.map +1 -0
  39. package/dist/dist/{errors-DuFqGrjo.d.ts → errors-KM-yq2MD.d.ts} +1 -1
  40. package/dist/dist/{errors-DuFqGrjo.d.ts.map → errors-KM-yq2MD.d.ts.map} +1 -1
  41. package/dist/dist/{getItem-DPapr9uy.d.ts → getItem-Bh0zv-o1.d.ts} +1 -1
  42. package/dist/dist/getItem-Bh0zv-o1.d.ts.map +1 -0
  43. package/dist/dist/{getPublishPayload-Dnv38ZW1.d.ts → getPublishPayload-oH8wJhnH.d.ts} +1 -1
  44. package/dist/dist/{getPublishPayload-Dnv38ZW1.d.ts.map → getPublishPayload-oH8wJhnH.d.ts.map} +1 -1
  45. package/dist/dist/{getPublishUploads-Dd7dCxNi.d.ts → getPublishUploads-Cex-NBe6.d.ts} +1 -1
  46. package/dist/dist/{getPublishUploads-Dd7dCxNi.d.ts.map → getPublishUploads-Cex-NBe6.d.ts.map} +1 -1
  47. package/dist/dist/{index-CTidoFhC.d.ts → index-BAao3_Po.d.ts} +5 -5
  48. package/dist/dist/index-BAao3_Po.d.ts.map +1 -0
  49. package/dist/dist/{index-PnK3Ak9Z.d.ts → index-BbFwftAv.d.ts} +1 -1
  50. package/dist/dist/{index-PnK3Ak9Z.d.ts.map → index-BbFwftAv.d.ts.map} +1 -1
  51. package/dist/dist/{index-DeUHrBqA.d.ts → index-DpgQMIRq.d.ts} +1 -1
  52. package/dist/dist/{index-DeUHrBqA.d.ts.map → index-DpgQMIRq.d.ts.map} +1 -1
  53. package/dist/dist/{index.browser-CRvkFEhl.d.ts → index.browser-nndbVM7z.d.ts} +1 -1
  54. package/dist/dist/{index.browser-CRvkFEhl.d.ts.map → index.browser-nndbVM7z.d.ts.map} +1 -1
  55. package/dist/dist/{index.node-DQTc7kEl.d.ts → index.node-BUfx-JaP.d.ts} +1 -1
  56. package/dist/dist/{index.node-DQTc7kEl.d.ts.map → index.node-BUfx-JaP.d.ts.map} +1 -1
  57. package/dist/dist/platform.browser.d.ts +2 -2
  58. package/dist/dist/platform.node.d.ts +2 -2
  59. package/dist/dist/{property-Dk_5t4-p.d.ts → property-BDBvImLs.d.ts} +3 -3
  60. package/dist/dist/property-BDBvImLs.d.ts.map +1 -0
  61. package/dist/dist/{propertyValidationRules-BtUZdfft.d.ts → propertyValidationRules-BlfLn4rP.d.ts} +1 -1
  62. package/dist/dist/propertyValidationRules-BlfLn4rP.d.ts.map +1 -0
  63. package/dist/dist/{publishDraftGraph-CN7EsPVb.d.ts → publishDraftGraph-CLO85LLz.d.ts} +1 -1
  64. package/dist/dist/{publishDraftGraph-CN7EsPVb.d.ts.map → publishDraftGraph-CLO85LLz.d.ts.map} +1 -1
  65. package/dist/dist/{resetAmbiguousLegacyItemData-DzVlhD9u.d.ts → resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts} +1 -1
  66. package/dist/dist/resetAmbiguousLegacyItemData-Cy8ik7xk.d.ts.map +1 -0
  67. package/dist/dist/{resolveModelForSyncedSeed-C_BzNN8r.d.ts → resolveModelForSyncedSeed-DFr4COc4.d.ts} +3 -3
  68. package/dist/dist/resolveModelForSyncedSeed-DFr4COc4.d.ts.map +1 -0
  69. package/dist/dist/{syncDbWithEas-BMmxPq5o.d.ts → syncDbWithEas-CAOlw3i-.d.ts} +1 -1
  70. package/dist/dist/syncDbWithEas-CAOlw3i-.d.ts.map +1 -0
  71. package/dist/dist/{tabEvents-DyGJcILs.d.ts → tabEvents-DksXwk3X.d.ts} +1 -1
  72. package/dist/dist/{tabEvents-DyGJcILs.d.ts.map → tabEvents-DksXwk3X.d.ts.map} +1 -1
  73. package/dist/dist/{tolerantWebAccess-Zxy2EUzu.d.ts → tolerantWebAccess-CEIjFGf0.d.ts} +1 -1
  74. package/dist/dist/{tolerantWebAccess-Zxy2EUzu.d.ts.map → tolerantWebAccess-CEIjFGf0.d.ts.map} +1 -1
  75. package/dist/dist/{updateSeedRevokedAt-DxhC4ABM.d.ts → updateSeedRevokedAt-Cjr35YjE.d.ts} +1 -1
  76. package/dist/dist/updateSeedRevokedAt-Cjr35YjE.d.ts.map +1 -0
  77. package/dist/{eas-CPYt-QVJ.js → eas-DOdj-EMK.js} +3 -3
  78. package/dist/{eas-CPYt-QVJ.js.map → eas-DOdj-EMK.js.map} +1 -1
  79. package/dist/{errors-DuFqGrjo.js → errors-KM-yq2MD.js} +27 -27
  80. package/dist/{errors-DuFqGrjo.js.map → errors-KM-yq2MD.js.map} +1 -1
  81. package/dist/{getItem-DPapr9uy.js → getItem-Bh0zv-o1.js} +4 -4
  82. package/dist/{getItem-DPapr9uy.js.map → getItem-Bh0zv-o1.js.map} +1 -1
  83. package/dist/{getPublishPayload-Dnv38ZW1.js → getPublishPayload-oH8wJhnH.js} +13 -13
  84. package/dist/{getPublishPayload-Dnv38ZW1.js.map → getPublishPayload-oH8wJhnH.js.map} +1 -1
  85. package/dist/{getPublishUploads-Dd7dCxNi.js → getPublishUploads-Cex-NBe6.js} +6 -6
  86. package/dist/{getPublishUploads-Dd7dCxNi.js.map → getPublishUploads-Cex-NBe6.js.map} +1 -1
  87. package/dist/{index-CTidoFhC.js → index-BAao3_Po.js} +8 -8
  88. package/dist/index-BAao3_Po.js.map +1 -0
  89. package/dist/{index-PnK3Ak9Z.js → index-BbFwftAv.js} +2 -2
  90. package/dist/index-BbFwftAv.js.map +1 -0
  91. package/dist/{index-DeUHrBqA.js → index-DpgQMIRq.js} +2 -2
  92. package/dist/{index-DeUHrBqA.js.map → index-DpgQMIRq.js.map} +1 -1
  93. package/dist/{index.browser-CRvkFEhl.js → index.browser-nndbVM7z.js} +10 -12
  94. package/dist/index.browser-nndbVM7z.js.map +1 -0
  95. package/dist/{index.node-DQTc7kEl.js → index.node-BUfx-JaP.js} +6 -6
  96. package/dist/{index.node-DQTc7kEl.js.map → index.node-BUfx-JaP.js.map} +1 -1
  97. package/dist/main.js +22 -22
  98. package/dist/node.js +12 -12
  99. package/dist/node.js.map +1 -1
  100. package/dist/platform.browser.js +5 -5
  101. package/dist/platform.node.js +4 -4
  102. package/dist/{property-Dk_5t4-p.js → property-BDBvImLs.js} +6 -6
  103. package/dist/{property-Dk_5t4-p.js.map → property-BDBvImLs.js.map} +1 -1
  104. package/dist/{propertyValidationRules-BtUZdfft.js → propertyValidationRules-BlfLn4rP.js} +6 -6
  105. package/dist/{propertyValidationRules-BtUZdfft.js.map → propertyValidationRules-BlfLn4rP.js.map} +1 -1
  106. package/dist/{publishDraftGraph-CN7EsPVb.js → publishDraftGraph-CLO85LLz.js} +6 -6
  107. package/dist/{publishDraftGraph-CN7EsPVb.js.map → publishDraftGraph-CLO85LLz.js.map} +1 -1
  108. package/dist/{resetAmbiguousLegacyItemData-DzVlhD9u.js → resetAmbiguousLegacyItemData-Cy8ik7xk.js} +2 -2
  109. package/dist/{resetAmbiguousLegacyItemData-DzVlhD9u.js.map → resetAmbiguousLegacyItemData-Cy8ik7xk.js.map} +1 -1
  110. package/dist/{resolveModelForSyncedSeed-C_BzNN8r.js → resolveModelForSyncedSeed-DFr4COc4.js} +4 -4
  111. package/dist/resolveModelForSyncedSeed-DFr4COc4.js.map +1 -0
  112. package/dist/src/browser/db/Db.d.ts.map +1 -1
  113. package/dist/src/db/read/resolveModelForSyncedSeed.d.ts +2 -2
  114. package/dist/src/node/helpers/scripts.d.ts +1 -1
  115. package/dist/{syncDbWithEas-BMmxPq5o.js → syncDbWithEas-CAOlw3i-.js} +13 -13
  116. package/dist/{syncDbWithEas-BMmxPq5o.js.map → syncDbWithEas-CAOlw3i-.js.map} +1 -1
  117. package/dist/{tabEvents-DyGJcILs.js → tabEvents-DksXwk3X.js} +4 -4
  118. package/dist/{tabEvents-DyGJcILs.js.map → tabEvents-DksXwk3X.js.map} +1 -1
  119. package/dist/{tolerantWebAccess-Zxy2EUzu.js → tolerantWebAccess-CEIjFGf0.js} +6 -6
  120. package/dist/{tolerantWebAccess-Zxy2EUzu.js.map → tolerantWebAccess-CEIjFGf0.js.map} +1 -1
  121. package/dist/{updateSeedRevokedAt-DxhC4ABM.js → updateSeedRevokedAt-Cjr35YjE.js} +3 -3
  122. package/dist/{updateSeedRevokedAt-DxhC4ABM.js.map → updateSeedRevokedAt-Cjr35YjE.js.map} +1 -1
  123. package/package.json +6 -6
  124. package/dist/dist/backfillMetadataPropertyIds-qoVxUEEl.d.ts.map +0 -1
  125. package/dist/dist/configurePlatform-CazqABrK.d.ts.map +0 -1
  126. package/dist/dist/detachRowsBeforeDelete-yatbnC27.d.ts.map +0 -1
  127. package/dist/dist/discardNewDraft-q1krLqtL.d.ts.map +0 -1
  128. package/dist/dist/eas-CPYt-QVJ.d.ts.map +0 -1
  129. package/dist/dist/getItem-DPapr9uy.d.ts.map +0 -1
  130. package/dist/dist/index-CTidoFhC.d.ts.map +0 -1
  131. package/dist/dist/property-Dk_5t4-p.d.ts.map +0 -1
  132. package/dist/dist/propertyValidationRules-BtUZdfft.d.ts.map +0 -1
  133. package/dist/dist/resetAmbiguousLegacyItemData-DzVlhD9u.d.ts.map +0 -1
  134. package/dist/dist/resolveModelForSyncedSeed-C_BzNN8r.d.ts.map +0 -1
  135. package/dist/dist/syncDbWithEas-BMmxPq5o.d.ts.map +0 -1
  136. package/dist/dist/updateSeedRevokedAt-DxhC4ABM.d.ts.map +0 -1
  137. package/dist/index-CTidoFhC.js.map +0 -1
  138. package/dist/index-PnK3Ak9Z.js.map +0 -1
  139. package/dist/index.browser-CRvkFEhl.js.map +0 -1
  140. package/dist/resolveModelForSyncedSeed-C_BzNN8r.js.map +0 -1
@@ -1,13 +1,13 @@
1
1
  import { fromCallback, setup, assign, createActor } from 'xstate';
2
- import { au as SEED_PROTOCOL_SCHEMA_NAME, B as BaseDb, A as schemas, aM as addSchemaToDb, i as isDataType, M as ModelPropertyDataTypes, ai as generateId, N as addModelsToDb, t as models, r as modelSchemas, v as properties, h as BaseFileManager, aP as loadModelsFromDbForSchema, aQ as mergeDbModelsIntoSchemaModels, aJ as isInternalSchema, aR as clearNameMatchLevels } from './index-DeUHrBqA.js';
3
- import { g as getRefValueType, J as createRowsWrittenSignal, K as createModelsFromJson, q as listCompleteSchemaFiles, L as getLatestSchemaVersion, l as loadSchemaFromFile, M as jsonPropertiesToSchemaProperties, u as loadAllSchemasFromDb, m as getClient } from './ClientManager-DdqRofK6.js';
2
+ import { au as SEED_PROTOCOL_SCHEMA_NAME, B as BaseDb, A as schemas, aM as addSchemaToDb, i as isDataType, M as ModelPropertyDataTypes, ai as generateId, N as addModelsToDb, t as models, r as modelSchemas, v as properties, h as BaseFileManager, aP as loadModelsFromDbForSchema, aQ as mergeDbModelsIntoSchemaModels, aJ as isInternalSchema, aR as clearNameMatchLevels } from './index-DpgQMIRq.js';
3
+ import { g as getRefValueType, J as createRowsWrittenSignal, K as createModelsFromJson, q as listCompleteSchemaFiles, L as getLatestSchemaVersion, l as loadSchemaFromFile, M as jsonPropertiesToSchemaProperties, u as loadAllSchemasFromDb, m as getClient } from './ClientManager-2GtDWHq6.js';
4
4
  import { eq, desc, and } from 'drizzle-orm';
5
5
  import debug from 'debug';
6
- import { c as currentEvictionEpoch, w as writeProcessMachine, t as trackDraftSave, M as Model, g as getDraftSaveError, C as ConflictError, r as recordSchemaDestroy, f as finishSchemaDestroy, e as setupEntityLiveQuery } from './errors-DuFqGrjo.js';
6
+ import { c as currentEvictionEpoch, w as writeProcessMachine, t as trackDraftSave, M as Model, g as getDraftSaveError, C as ConflictError, r as recordSchemaDestroy, f as finishSchemaDestroy, e as setupEntityLiveQuery } from './errors-KM-yq2MD.js';
7
7
  import 'pluralize';
8
8
  import '@seedprotocol/eas';
9
- import { SchemaValidationService } from './SchemaValidationService-9KHQAYQ4.js';
10
- import { D as DEFAULT_READY_TIMEOUT_MS, d as waitForEntityIdle, m as createReactiveProxy, n as findEntity, C as ClientManagerState, _ as clearDestroySubscriptions, o as forceRemoveFromCaches, $ as unloadEntity, q as runDestroyLifecycle } from './Item-DmK1PgK9.js';
9
+ import { SchemaValidationService } from './SchemaValidationService-BxCbfDaI.js';
10
+ import { D as DEFAULT_READY_TIMEOUT_MS, d as waitForEntityIdle, m as createReactiveProxy, n as findEntity, C as ClientManagerState, _ as clearDestroySubscriptions, o as forceRemoveFromCaches, $ as unloadEntity, q as runDestroyLifecycle } from './Item-D6j0IvBP.js';
11
11
 
12
12
  const logger$d = debug('seedSdk:schema:actors:loadOrCreateSchema');
13
13
  /**
@@ -51,7 +51,7 @@ const createModelInstances$2 = async (modelIds, evictionEpoch) => {
51
51
  return;
52
52
  }
53
53
  try {
54
- const _mod_0 = await import('./errors-DuFqGrjo.js');
54
+ const _mod_0 = await import('./errors-KM-yq2MD.js');
55
55
  const _ns_0 = _mod_0.j;
56
56
  const modelMod = _ns_0;
57
57
  const { Model } = modelMod;
@@ -168,7 +168,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
168
168
  // For Seed Protocol, always load from internal file, never create new
169
169
  logger$d(`Loading internal Seed Protocol schema from SDK`);
170
170
  try {
171
- const _mod_1 = await import('./ClientManager-DdqRofK6.js');
171
+ const _mod_1 = await import('./ClientManager-2GtDWHq6.js');
172
172
  const _ns_1 = _mod_1.S;
173
173
  const internalSchema = _ns_1;
174
174
  const schemaFile = internalSchema.default;
@@ -667,7 +667,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
667
667
  // Ensure models are populated (fallback for seed-protocol if missing)
668
668
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
669
669
  try {
670
- const _mod_2 = await import('./ClientManager-DdqRofK6.js');
670
+ const _mod_2 = await import('./ClientManager-2GtDWHq6.js');
671
671
  const _ns_2 = _mod_2.S;
672
672
  const internalSchema = _ns_2;
673
673
  const internalSchemaFile = internalSchema.default;
@@ -832,7 +832,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
832
832
  // Ensure models are populated (fallback for seed-protocol if missing)
833
833
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
834
834
  try {
835
- const _mod_3 = await import('./ClientManager-DdqRofK6.js');
835
+ const _mod_3 = await import('./ClientManager-2GtDWHq6.js');
836
836
  const _ns_3 = _mod_3.S;
837
837
  const internalSchema = _ns_3;
838
838
  const internalSchemaFile = internalSchema.default;
@@ -887,7 +887,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
887
887
  // Ensure models are populated (fallback for seed-protocol if missing)
888
888
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
889
889
  try {
890
- const _mod_4 = await import('./ClientManager-DdqRofK6.js');
890
+ const _mod_4 = await import('./ClientManager-2GtDWHq6.js');
891
891
  const _ns_4 = _mod_4.S;
892
892
  const internalSchema = _ns_4;
893
893
  const internalSchemaFile = internalSchema.default;
@@ -937,7 +937,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
937
937
  // If schemaData is missing, try to load from internal schema file for seed-protocol
938
938
  if (!dbSchema.schemaData && schemaName === 'Seed Protocol') {
939
939
  try {
940
- const _mod_5 = await import('./ClientManager-DdqRofK6.js');
940
+ const _mod_5 = await import('./ClientManager-2GtDWHq6.js');
941
941
  const _ns_5 = _mod_5.S;
942
942
  const internalSchema = _ns_5;
943
943
  const schemaFile = internalSchema.default;
@@ -1048,7 +1048,7 @@ const loadOrCreateSchema = fromCallback(({ sendBack, input: { context } }) => {
1048
1048
  // Ensure models are populated (fallback for seed-protocol if missing)
1049
1049
  if ((!mergedModels || Object.keys(mergedModels).length === 0) && schemaName === 'Seed Protocol') {
1050
1050
  try {
1051
- const _mod_6 = await import('./ClientManager-DdqRofK6.js');
1051
+ const _mod_6 = await import('./ClientManager-2GtDWHq6.js');
1052
1052
  const _ns_6 = _mod_6.S;
1053
1053
  const internalSchema = _ns_6;
1054
1054
  const internalSchemaFile = internalSchema.default;
@@ -1375,7 +1375,7 @@ const createModelInstances$1 = async (modelIds, evictionEpoch) => {
1375
1375
  return;
1376
1376
  }
1377
1377
  try {
1378
- const _mod_7 = await import('./errors-DuFqGrjo.js');
1378
+ const _mod_7 = await import('./errors-KM-yq2MD.js');
1379
1379
  const _ns_7 = _mod_7.j;
1380
1380
  const mod = _ns_7;
1381
1381
  const Model = mod?.Model ?? mod?.default;
@@ -1424,7 +1424,7 @@ const checkExistingSchema = fromCallback(({ sendBack, input: { context } }) => {
1424
1424
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
1425
1425
  // For Seed Protocol, check if it exists in database
1426
1426
  try {
1427
- const _mod_8 = await import('./ClientManager-DdqRofK6.js');
1427
+ const _mod_8 = await import('./ClientManager-2GtDWHq6.js');
1428
1428
  const _ns_8 = _mod_8.S;
1429
1429
  const internalSchema = _ns_8;
1430
1430
  const schemaFile = internalSchema.default;
@@ -1760,7 +1760,7 @@ const writeSchemaToDb = fromCallback(({ sendBack, input }) => {
1760
1760
  if (isInternal && schemaName === SEED_PROTOCOL_SCHEMA_NAME) {
1761
1761
  // For Seed Protocol, load from internal file
1762
1762
  logger$b(`Loading internal Seed Protocol schema from SDK`);
1763
- const _mod_9 = await import('./ClientManager-DdqRofK6.js');
1763
+ const _mod_9 = await import('./ClientManager-2GtDWHq6.js');
1764
1764
  const _ns_9 = _mod_9.S;
1765
1765
  const internalSchema = _ns_9;
1766
1766
  finalSchema = internalSchema.default;
@@ -2233,7 +2233,7 @@ const createModelInstances = fromCallback(({ sendBack, input }) => {
2233
2233
  return;
2234
2234
  }
2235
2235
  try {
2236
- const _mod_10 = await import('./errors-DuFqGrjo.js');
2236
+ const _mod_10 = await import('./errors-KM-yq2MD.js');
2237
2237
  const _ns_10 = _mod_10.j;
2238
2238
  const modelMod = _ns_10;
2239
2239
  const { Model } = modelMod;
@@ -2322,7 +2322,7 @@ const verifyModelInstancesInCache = fromCallback(({ sendBack, input }) => {
2322
2322
  }
2323
2323
  try {
2324
2324
  const result = await verifyWithRetry$2(async () => {
2325
- const _mod_11 = await import('./errors-DuFqGrjo.js');
2325
+ const _mod_11 = await import('./errors-KM-yq2MD.js');
2326
2326
  const _ns_11 = _mod_11.j;
2327
2327
  const modelMod = _ns_11;
2328
2328
  const { Model } = modelMod;
@@ -2381,7 +2381,7 @@ const writePropertiesToDb = fromCallback(({ sendBack, input }) => {
2381
2381
  const _write = async () => {
2382
2382
  const { modelIds } = input;
2383
2383
  try {
2384
- const _mod_12 = await import('./index-DeUHrBqA.js');
2384
+ const _mod_12 = await import('./index-DpgQMIRq.js');
2385
2385
  const _ns_12 = _mod_12.bd;
2386
2386
  const modelSchemaMod = _ns_12;
2387
2387
  const { models: modelsTable, properties: propertiesTable } = modelSchemaMod;
@@ -2571,9 +2571,9 @@ const createPropertyInstances = fromCallback(({ sendBack, input }) => {
2571
2571
  return;
2572
2572
  }
2573
2573
  try {
2574
- const modProp = await import('./ModelProperty-DaJAII87.js');
2574
+ const modProp = await import('./ModelProperty-B52C3CQ2.js');
2575
2575
  const ModelProperty = modProp?.ModelProperty ?? modProp?.default;
2576
- const _mod_13 = await import('./errors-DuFqGrjo.js');
2576
+ const _mod_13 = await import('./errors-KM-yq2MD.js');
2577
2577
  const _ns_13 = _mod_13.j;
2578
2578
  const modModel = _ns_13;
2579
2579
  const Model = modModel?.Model ?? modModel?.default;
@@ -2680,7 +2680,7 @@ const verifyPropertyInstancesInCache = fromCallback(({ sendBack, input }) => {
2680
2680
  }
2681
2681
  try {
2682
2682
  const result = await verifyWithRetry(async () => {
2683
- const mod = await import('./ModelProperty-DaJAII87.js');
2683
+ const mod = await import('./ModelProperty-B52C3CQ2.js');
2684
2684
  const ModelProperty = mod?.ModelProperty ?? mod?.default;
2685
2685
  if (!ModelProperty) {
2686
2686
  throw new Error('ModelProperty not available from dynamic import');
@@ -3700,7 +3700,7 @@ async function loadSchemaWithRenames(schemaFilePath, modelRenames) {
3700
3700
  updatedAt: new Date(schemaFile.metadata.updatedAt).getTime(),
3701
3701
  };
3702
3702
  // Use dynamic import to break circular dependency
3703
- const _mod_14 = await import('./index-DeUHrBqA.js');
3703
+ const _mod_14 = await import('./index-DpgQMIRq.js');
3704
3704
  const _ns_14 = _mod_14.bi;
3705
3705
  const dbMod = _ns_14;
3706
3706
  const { addSchemaToDb, addModelsToDb } = dbMod;
@@ -3824,7 +3824,7 @@ async function renameModelProperty(schemaName, modelName, oldPropertyName, newPr
3824
3824
  await BaseFileManager.waitForFileWithContent(newFilePath);
3825
3825
  logger$1(`Renamed property ${oldPropertyName} to ${newPropertyName} in schema ${schemaName} v${newVersion}`);
3826
3826
  // Migrate metadata rows so ItemProperty values follow the new name (prevents duplicate ItemProperties)
3827
- const _mod_15 = await import('./index-DeUHrBqA.js');
3827
+ const _mod_15 = await import('./index-DpgQMIRq.js');
3828
3828
  const _ns_15 = _mod_15.bi;
3829
3829
  const { migrateMetadataForPropertyRename } = _ns_15;
3830
3830
  const migratedCount = await migrateMetadataForPropertyRename(modelName, oldPropertyName, newPropertyName, oldProperty.id, { schemaName });
@@ -4821,7 +4821,7 @@ class Schema {
4821
4821
  const modelDbId = modelInstance.getService().getSnapshot().context._dbId;
4822
4822
  const db = BaseDb.getAppDb();
4823
4823
  if (propertyContexts.length === 0 && modelDbId && db) {
4824
- const { ModelProperty } = await import('./ModelProperty-DaJAII87.js');
4824
+ const { ModelProperty } = await import('./ModelProperty-B52C3CQ2.js');
4825
4825
  const rows = await db.select().from(properties).where(eq(properties.modelId, modelDbId));
4826
4826
  propertyContexts = rows.map((row) => {
4827
4827
  const cached = row.schemaFileId ? ModelProperty.getById(row.schemaFileId) : undefined;
@@ -4987,7 +4987,7 @@ class Schema {
4987
4987
  savedSchema: publishedSchema,
4988
4988
  });
4989
4989
  // Clear edited flags on all ModelProperty instances and in database
4990
- const modelPropertyMod = await import('./ModelProperty-DaJAII87.js');
4990
+ const modelPropertyMod = await import('./ModelProperty-B52C3CQ2.js');
4991
4991
  const { ModelProperty } = modelPropertyMod;
4992
4992
  for (const propertyKey of context._editedProperties) {
4993
4993
  const [modelName, propertyName] = propertyKey.split(':');
@@ -5010,7 +5010,7 @@ class Schema {
5010
5010
  try {
5011
5011
  if (db && modelName && propertyName) {
5012
5012
  // Find this schema's model by name
5013
- const _mod_16 = await import('./index-DeUHrBqA.js');
5013
+ const _mod_16 = await import('./index-DpgQMIRq.js');
5014
5014
  const _ns_16 = _mod_16.bh;
5015
5015
  const { resolveModelRecord } = _ns_16;
5016
5016
  const modelRecord = await resolveModelRecord(modelName, { schemaName: thisSchemaName }, db);
@@ -5640,10 +5640,10 @@ class Schema {
5640
5640
  // instances too, or a re-import would get them back with dangling _dbIds.
5641
5641
  if (schemaName) {
5642
5642
  const evictedModelNames = Model.evictForSchema(schemaName);
5643
- const { ModelProperty } = await import('./ModelProperty-DaJAII87.js');
5643
+ const { ModelProperty } = await import('./ModelProperty-B52C3CQ2.js');
5644
5644
  ModelProperty.evictForModels(evictedModelNames, schemaName);
5645
5645
  // Evicting stops new writes but not ones already running; let those land before deleting their rows
5646
- const _mod_17 = await import('./errors-DuFqGrjo.js');
5646
+ const _mod_17 = await import('./errors-KM-yq2MD.js');
5647
5647
  const _ns_17 = _mod_17.h;
5648
5648
  const { waitForInFlightWrites } = _ns_17;
5649
5649
  await waitForInFlightWrites();
@@ -5676,7 +5676,7 @@ class Schema {
5676
5676
  .map((r) => r.modelId)
5677
5677
  .filter((id) => id != null)),
5678
5678
  ];
5679
- const { detachModelRows } = await import('./detachRowsBeforeDelete-yatbnC27.js');
5679
+ const { detachModelRows } = await import('./detachRowsBeforeDelete-D1TyEMco.js');
5680
5680
  await detachModelRows(db, modelIds);
5681
5681
  await db.delete(modelSchemas).where(inArray(modelSchemas.schemaId, schemaIds));
5682
5682
  for (const modelId of modelIds) {
@@ -5691,7 +5691,7 @@ class Schema {
5691
5691
  // the destroyed schema back on the next Schema.all().
5692
5692
  // Match on name as well as id: versions imported from complete schema files can each
5693
5693
  // have their own id, and any version left behind would bring the schema back.
5694
- const _mod_18 = await import('./ClientManager-DdqRofK6.js');
5694
+ const _mod_18 = await import('./ClientManager-2GtDWHq6.js');
5695
5695
  const _ns_18 = _mod_18.N;
5696
5696
  const { listCompleteSchemaFiles } = _ns_18;
5697
5697
  const files = await listCompleteSchemaFiles().catch(() => []);
@@ -5887,4 +5887,4 @@ var Schema$1 = /*#__PURE__*/Object.freeze({
5887
5887
  });
5888
5888
 
5889
5889
  export { Schema as S, deletePropertyFromModel as a, Schema$1 as b, deleteModelFromSchema as d, renameModelProperty as r, schemaMachine as s, updateModelProperties as u };
5890
- //# sourceMappingURL=Schema-DhlbBQs8.js.map
5890
+ //# sourceMappingURL=Schema-O1QLoXv6.js.map