mcard-studio 0.0.2 → 0.0.3

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 (196) hide show
  1. package/README.md +3 -0
  2. package/astro.config.mjs +41 -2
  3. package/cli/lib/runtimeContext.mjs +6 -3
  4. package/dist/client/_astro/{ChartAnalyticsViewlet.jrwIemvb.js → ChartAnalyticsViewlet.CBW-JyA3.js} +1 -1
  5. package/dist/client/_astro/{ClmPcardViewlet.C-fU7oZf.js → ClmPcardViewlet.cvKsR2ng.js} +2 -2
  6. package/dist/client/_astro/{D3GraphViewlet.BCZl0b2U.js → D3GraphViewlet.8YEIrCGL.js} +1 -1
  7. package/dist/client/_astro/DockviewSpatialWorkbench.BTd66LPl.js +12 -0
  8. package/dist/client/_astro/DocumentViewlets.KY1HcNka.js +2 -0
  9. package/dist/client/_astro/DxfViewlet.B3N5zpZR.js +1 -0
  10. package/dist/client/_astro/{ExcalidrawWhiteboardViewlet.CFpPYSdn.js → ExcalidrawWhiteboardViewlet.CMJGCQN4.js} +1 -1
  11. package/dist/client/_astro/{FaroVCardSpanInstrumenter.un8kDMWv.js → FaroVCardSpanInstrumenter.ClIqZujq.js} +1 -1
  12. package/dist/client/_astro/{FontSpecimenViewlet.D7Aw2xBZ.js → FontSpecimenViewlet.ChIyr0B8.js} +1 -1
  13. package/dist/client/_astro/HeadMeta.astro_astro_type_script_index_0_lang.D3FSc061.js +1 -0
  14. package/dist/client/_astro/{ImageViewlet.D4FN87n_.js → ImageViewlet.Cs-u7-wt.js} +1 -1
  15. package/dist/client/_astro/{KatexFormulaViewlet.CzhdIOw8.js → KatexFormulaViewlet.0nOzV_qD.js} +1 -1
  16. package/dist/client/_astro/{KoishiChatViewlet.5mepQvLX.js → KoishiChatViewlet.DLsMmwdb.js} +4 -4
  17. package/dist/client/_astro/{MCardLibraryHarness.DE8KeghO.js → MCardLibraryHarness.WBT9W10S.js} +1 -1
  18. package/dist/client/_astro/{MarkdownViewlet.CRuuXXmF.js → MarkdownViewlet.BIolkNXf.js} +25 -25
  19. package/dist/client/_astro/{MermaidDiagramViewlet.eW6sk-rF.js → MermaidDiagramViewlet.CkRk7QsS.js} +1 -1
  20. package/dist/client/_astro/PCardRendererBridge.DhaRSprd.js +1 -0
  21. package/dist/client/_astro/RendererPCardRegistry.brM2KiQs.js +1 -0
  22. package/dist/client/_astro/{SchemaYamlViewlet.ZJBvxItR.js → SchemaYamlViewlet.Bc7nkK4M.js} +1 -1
  23. package/dist/client/_astro/{ShellContainer.astro_astro_type_script_index_0_lang.j_ELcN5d.js → ShellContainer.astro_astro_type_script_index_0_lang.5q1gCLvf.js} +1 -1
  24. package/dist/client/_astro/{Spatial3dViewlet.DnVMBENJ.js → Spatial3dViewlet.C-jjhr0A.js} +1 -1
  25. package/dist/client/_astro/{StudioLayout.CBgiVbeb.css → StudioLayout.CX8XGtZV.css} +1 -1
  26. package/dist/client/_astro/StudioWorkbench.B1QwGHWM.js +7 -0
  27. package/dist/client/_astro/{SvgViewlet.BCje7Qqb.js → SvgViewlet.uGxvb06H.js} +1 -1
  28. package/dist/client/_astro/{TerminalView.C_Ksz6lT.js → TerminalView.DP7G7E1m.js} +1 -1
  29. package/dist/client/_astro/{ThemeSettingsViewlet.DJpjQQ0Z.js → ThemeSettingsViewlet.UaTHcGnF.js} +1 -1
  30. package/dist/client/_astro/{TikzDiagramViewlet.CXb1A8nf.js → TikzDiagramViewlet.O8MJyXfT.js} +1 -1
  31. package/dist/client/_astro/VideoPlayerViewlet.-ycmo3kY.js +1 -0
  32. package/dist/client/_astro/WebappZenViewlet.PNce4u2T.js +1 -0
  33. package/dist/client/_astro/{WelcomeViewport.BiYwLh6l.js → WelcomeViewport.CZ6RxGSw.js} +1 -1
  34. package/dist/client/_astro/{agentIdentityCredentialService.UzMMwBwv.js → agentIdentityCredentialService.BEtZzBlO.js} +1 -1
  35. package/dist/client/_astro/cardTypeDetector.C2HH5RnU.js +1 -0
  36. package/dist/client/_astro/disposable.BmlxZrDf.js +1 -0
  37. package/dist/client/_astro/{markdownService.BgWjyJ57.js → markdownService.CpuKl0vp.js} +1 -1
  38. package/dist/client/_astro/{mcardStore.CT-ollfl.js → mcardStore.nSWnzeLg.js} +1 -1
  39. package/dist/client/_astro/mcardVfs.BSdys1Y7.js +3 -0
  40. package/dist/client/_astro/pathsConfig.CSBBSzwH.js +2 -0
  41. package/dist/client/_astro/{polyfills._3wYPjZf.js → polyfills.Bi7kO8cu.js} +1 -1
  42. package/dist/client/_astro/rendererEventBus.DirFDmGw.js +1 -0
  43. package/dist/client/_astro/themeStore.BajxvCga.js +1 -0
  44. package/dist/client/_astro/{tikzCompiler.fe3qomFY.js → tikzCompiler.-fXMNQpz.js} +1 -1
  45. package/dist/client/_astro/{useMCardHydration.7Z-HfBh5.js → useMCardHydration.Bjj_N5Gv.js} +1 -1
  46. package/dist/client/_astro/vendor-clm-kernel.B0kxq3g4.js +108 -0
  47. package/dist/client/_astro/{vfsHandles.IX_wTpw_.js → vfsHandles.D4Pq18pW.js} +1 -1
  48. package/dist/client/_astro/vfsPersistence.DVrd1BZj.js +1 -0
  49. package/dist/client/_astro/{vfsTransactions.C_IQQg0s.js → vfsTransactions.DBNtFuRz.js} +1 -1
  50. package/dist/client/_astro/{workspaceStore.CD0kAVAl.js → workspaceStore.DUHW2YBc.js} +1 -1
  51. package/dist/server/chunks/{_.._5gPhVOLM.mjs → _.._CoQKwo62.mjs} +137 -91
  52. package/dist/server/chunks/{_handle__D_cIJYrU.mjs → _handle__D8dKQPUS.mjs} +3 -3
  53. package/dist/server/chunks/{cardTypeDetector_CyW1Xnmy.mjs → cardTypeDetector_C55M_HWS.mjs} +9 -0
  54. package/dist/server/chunks/{cards_B89BvF6W.mjs → cards_rVOc8K6H.mjs} +2 -2
  55. package/dist/server/chunks/cas_DTxlZ4Le.mjs +68 -0
  56. package/dist/server/chunks/{dispatch_DOwSKukU.mjs → dispatch_BTW4E_BJ.mjs} +8 -7
  57. package/dist/server/chunks/{dispatch_CxWKiHpn.mjs → dispatch_MbkljUxD.mjs} +8 -8
  58. package/dist/server/chunks/{export_DRouradA.mjs → export_DkEwDE2T.mjs} +3 -3
  59. package/dist/server/chunks/{health_Dfa5I0-X.mjs → health_cRt0M0yu.mjs} +1 -1
  60. package/dist/server/chunks/{mcard-library_7Wzoihkm.mjs → mcard-library_CLHvyslV.mjs} +1 -1
  61. package/dist/server/chunks/{mcardVfs_CeezzRvt.mjs → mcardVfs_DvNburKb.mjs} +5 -30
  62. package/dist/server/chunks/{move__RFvIDkq.mjs → move_DYcaXBLV.mjs} +6 -6
  63. package/dist/server/chunks/{pathsConfig_CgNYYLVm.mjs → pathsConfig_Dack-p2f.mjs} +13 -3
  64. package/dist/server/chunks/{proxy_CrWJQIBe.mjs → proxy_CMbbdBPW.mjs} +2 -2
  65. package/dist/server/chunks/{raw_DzNDaDVP.mjs → raw_C97sJWhg.mjs} +59 -26
  66. package/dist/server/chunks/{serverBootstrap_XKo2s6Ha.mjs → serverBootstrap_BDdSRIu5.mjs} +2 -2
  67. package/dist/server/chunks/tree_BwmO-pTe.mjs +186 -0
  68. package/dist/server/chunks/vfsCore_DIKpk-pk.mjs +98 -0
  69. package/dist/server/chunks/{vfsTreeScan_CKp7kMt9.mjs → vfsTreeScan_CRoCluPB.mjs} +18 -10
  70. package/dist/server/chunks/workspaceRoot_CRx3taID.mjs +157 -0
  71. package/dist/server/chunks/{write_popiFsO7.mjs → write_BLsmsTIx.mjs} +6 -5
  72. package/dist/server/chunks/{ws-server-init_DUjuR2-o.mjs → ws-server-init_Cfft7U5u.mjs} +343 -298
  73. package/dist/server/entry.mjs +1 -1
  74. package/dist/server/entry2.mjs +67 -28
  75. package/dist/server/virtual_astro_middleware.mjs +2 -2
  76. package/package.json +2 -2
  77. package/src/components/studio/views/cardViewlets/ClmRegistryComponentViewlet.tsx +133 -0
  78. package/src/components/studio/views/cardViewlets/DxfViewlet.tsx +230 -0
  79. package/src/components/studio/views/cardViewlets/VideoPlayerViewlet.tsx +4 -4
  80. package/src/components/studio/views/cardViewlets/coreViewletDefs.ts +2 -2
  81. package/src/components/studio/views/cardViewlets/documents/AudioPlayerViewlet.tsx +15 -3
  82. package/src/components/studio/views/cardViewlets/documents/PdfViewlet.tsx +25 -7
  83. package/src/components/studio/views/cardViewlets/markdown/stages/wikilinkStage.ts +2 -1
  84. package/src/components/studio/views/cardViewlets/mediaViewletDefs.ts +21 -1
  85. package/src/components/studio/views/cardViewlets/webapp/WebappCanvas.tsx +40 -15
  86. package/src/components/studio/views/cardViewlets/webapp/WebappDevicePresetBar.tsx +108 -0
  87. package/src/components/studio/views/cardViewlets/webapp/WebappZenViewlet.tsx +23 -30
  88. package/src/components/studio/views/fileTree/MCardFileTree.tsx +71 -54
  89. package/src/components/studio/views/fileTree/hooks/useFileTreeSync.ts +0 -1
  90. package/src/components/studio/views/fileTree/hooks/usePartitionedTrees.ts +68 -23
  91. package/src/components/studio/views/fileTree/hooks/useSectionAccordion.ts +21 -11
  92. package/src/components/studio/views/functions/UnifiedFunctionExplorerViewlet.tsx +168 -0
  93. package/src/components/studio/views/history/HistoryPanel.tsx +110 -0
  94. package/src/components/studio/views/lineage/LineagePanel.tsx +152 -0
  95. package/src/components/studio/views/navigation/HandleLineageDrawer.tsx +89 -0
  96. package/src/components/studio/views/navigation/MultiCardCollectionBrowser.tsx +154 -0
  97. package/src/components/studio/views/pills/HashPill.tsx +101 -0
  98. package/src/components/studio/views/residency/ResidencyIndicator.tsx +82 -0
  99. package/src/config/app_config.json +3 -3
  100. package/src/core/projection/catalog.ts +105 -0
  101. package/src/core/projection/collection.ts +148 -0
  102. package/src/core/projection/handleSubscription.ts +132 -0
  103. package/src/core/projection/index.ts +4 -0
  104. package/src/core/projection/selectors.ts +29 -0
  105. package/src/core/projection/views.ts +242 -0
  106. package/src/core/refinement/designMetrics.ts +104 -0
  107. package/src/core/refinement/fibrationProjector.ts +142 -0
  108. package/src/core/refinement/lagrangianEngine.ts +137 -0
  109. package/src/core/refinement/refinementCommands.ts +82 -0
  110. package/src/core/viewport/deviceArchetypeRegistry.ts +177 -0
  111. package/src/core/viewport/viewportAudit.ts +150 -0
  112. package/src/edge/storeFilter.d.ts +4 -0
  113. package/src/edge/storeFilter.js +54 -0
  114. package/src/edge/storeFilter.ts +52 -0
  115. package/src/lib/cryptoPolyfill.js +77 -1
  116. package/src/lib/fsPolyfill.js +65 -0
  117. package/src/lib/urlPolyfill.js +21 -0
  118. package/src/lib/zlibPolyfill.js +35 -0
  119. package/src/packages/mcard-studio/package.json +2 -2
  120. package/src/packages/mcard-studio/type/legacyMapping.ts +5 -0
  121. package/src/packages/mcard-studio/viewlets/manifests.ts +2 -0
  122. package/src/packages/mcard-studio/viewlets/moduleMap.ts +12 -0
  123. package/src/packages/mcard-studio/viewlets/refinementManifests.ts +114 -0
  124. package/src/pages/api/dispatch.ts +3 -2
  125. package/src/pages/api/vfs/cas.ts +114 -0
  126. package/src/pages/api/vfs/move.ts +5 -5
  127. package/src/pages/api/vfs/raw.ts +72 -27
  128. package/src/pages/api/vfs/tree.ts +130 -11
  129. package/src/pages/api/vfs/write.ts +5 -4
  130. package/src/server/api/kernelDispatch.ts +8 -8
  131. package/src/server/artifactCollectionService.ts +4 -7
  132. package/src/server/artifactRepository.ts +4 -3
  133. package/src/server/clmRunner.mjs +1 -1
  134. package/src/server/collectionOwner.mjs +5 -5
  135. package/src/server/effects/executionPersistenceService.mjs +11 -11
  136. package/src/server/effects/resultSealingService.mjs +2 -2
  137. package/src/server/fileIngestService.mjs +21 -9
  138. package/src/server/fileWatcherService.mjs +4 -1
  139. package/src/server/handlers/fileChangeHandler.mjs +18 -10
  140. package/src/server/handlers/saveExecutionLogHandler.mjs +6 -6
  141. package/src/server/notificationService.mjs +14 -1
  142. package/src/server/scripts/buildSeedingMemory.mjs +3 -3
  143. package/src/server/serverMemoryRepository.ts +41 -59
  144. package/src/server/vfsTreeScan.ts +16 -10
  145. package/src/server/workspaceRoot.ts +143 -5
  146. package/src/services/cardTypeDetector.ts +4 -0
  147. package/src/services/databaseSyncService.ts +30 -46
  148. package/src/services/namespaceProtocolClient.ts +221 -0
  149. package/src/services/renderers/pcard/RendererPCardRegistry.ts +4 -66
  150. package/src/services/renderers/pcard/modalitySpecs.ts +125 -0
  151. package/src/services/renderers/pcard/types.ts +7 -1
  152. package/src/services/renderers/rendererEventBus.ts +5 -3
  153. package/src/services/unifiedFunctionExecutionService.ts +145 -0
  154. package/src/services/vfs/vfsCore.ts +12 -1
  155. package/src/services/vfs/vfsMigration.ts +95 -0
  156. package/src/services/vfs/vfsMutations.ts +17 -35
  157. package/src/services/vfs/vfsPersistence.ts +19 -24
  158. package/src/services/vfs/vfsSync.ts +55 -17
  159. package/src/services/vfs/vfsVersions.ts +23 -34
  160. package/src/services/workbenchExecutionPolicy.ts +183 -0
  161. package/src/stores/mcardCollectionStore.ts +2 -0
  162. package/src/styles/dockview.css +34 -0
  163. package/src/ui/viewlets/FibrationRefinementViewlet.tsx +155 -0
  164. package/src/ui/viewlets/PetriConformanceViewlet.tsx +166 -0
  165. package/src/ui/viewlets/ResponsiveViewportLabViewlet.tsx +175 -0
  166. package/src/ui/viewlets/SprintGovernanceViewlet.tsx +176 -0
  167. package/src/ui/viewlets/viewletFocus.ts +35 -0
  168. package/src/ui/viewlets/viewportLabParts.tsx +190 -0
  169. package/dist/client/_astro/DockviewSpatialWorkbench.B_I1GJHw.js +0 -12
  170. package/dist/client/_astro/DocumentViewlets.B53IqmpY.js +0 -2
  171. package/dist/client/_astro/HeadMeta.astro_astro_type_script_index_0_lang.VDRYJCM-.js +0 -1
  172. package/dist/client/_astro/PCardRendererBridge.oxVKc0gN.js +0 -1
  173. package/dist/client/_astro/RendererPCardRegistry.CWjYZs2H.js +0 -1
  174. package/dist/client/_astro/StudioWorkbench.Blo5oSIw.js +0 -7
  175. package/dist/client/_astro/VideoPlayerViewlet.CmECt7yT.js +0 -1
  176. package/dist/client/_astro/WebappZenViewlet.whCmGVHR.js +0 -1
  177. package/dist/client/_astro/__vite-browser-external.CQZnr-r3.js +0 -1
  178. package/dist/client/_astro/cardTypeDetector.Ci4APwhX.js +0 -1
  179. package/dist/client/_astro/disposable.Dsb0sbRP.js +0 -1
  180. package/dist/client/_astro/mcardVfs.2UOw9Z-r.js +0 -3
  181. package/dist/client/_astro/pathsConfig.D0hV34p7.js +0 -2
  182. package/dist/client/_astro/rendererEventBus.DMH9afq9.js +0 -1
  183. package/dist/client/_astro/themeStore.CEt0e54l.js +0 -1
  184. package/dist/client/_astro/vendor-clm-kernel.Bvk3XHk2.js +0 -116
  185. package/dist/client/_astro/vfsPersistence.BuhXYeSb.js +0 -1
  186. package/dist/server/chunks/cryptoPolyfill_99rxUwYC.mjs +0 -180
  187. package/dist/server/chunks/kernelHash_DRaj51hY.mjs +0 -5
  188. package/dist/server/chunks/tree_CE2BhvyJ.mjs +0 -76
  189. package/dist/server/chunks/vfsCore_B6nCiBl5.mjs +0 -21
  190. package/dist/server/chunks/workspaceRoot_DVSUbYkd.mjs +0 -71
  191. package/src/server/kernelHash.ts +0 -22
  192. package/src/server/storage/cardCollection.ts +0 -94
  193. package/src/server/storage/index.ts +0 -3
  194. package/src/server/storage/mcard.ts +0 -99
  195. package/src/server/storage/sqliteNodeEngine.ts +0 -121
  196. /package/dist/server/chunks/{StudioLayout_B5ZnlqjF.mjs → StudioLayout_taayQJ5b.mjs} +0 -0
@@ -1,121 +0,0 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
3
- import { DatabaseSync } from 'node:sqlite';
4
- import { NodeSqliteBackend } from 'clm-kernel';
5
- import { MCard } from './mcard.ts';
6
-
7
- /**
8
- * Sovereign Native SQLite Engine for Node.js
9
- * Backed by canonical clm-kernel NodeSqliteBackend over Node 22 DatabaseSync.
10
- */
11
- export class SqliteNodeEngine {
12
- private backend: NodeSqliteBackend;
13
- private rawDb: DatabaseSync;
14
- private dbPath: string;
15
-
16
- constructor(dbPath: string = ':memory:', dbInstance?: DatabaseSync) {
17
- this.dbPath = dbPath;
18
- if (dbInstance) {
19
- this.rawDb = dbInstance;
20
- } else {
21
- if (dbPath !== ':memory:') {
22
- const dir = path.dirname(dbPath);
23
- if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
24
- }
25
- this.rawDb = new DatabaseSync(dbPath);
26
- }
27
- this.backend = new NodeSqliteBackend(this.rawDb);
28
- }
29
-
30
- static async create(dbPath: string = ':memory:'): Promise<SqliteNodeEngine> {
31
- return new SqliteNodeEngine(dbPath);
32
- }
33
-
34
- getDbPath(): string { return this.dbPath; }
35
- getBackend(): NodeSqliteBackend { return this.backend; }
36
- getRawDb(): DatabaseSync { return this.rawDb; }
37
-
38
- async add(card: MCard): Promise<string> {
39
- const content = card.content instanceof Uint8Array ? card.content : Buffer.from(card.content);
40
- const gTime = card.g_time || new Date().toISOString();
41
- this.rawDb.prepare('INSERT OR REPLACE INTO card (hash, content, g_time) VALUES (?, ?, ?)').run(card.hash, content, gTime);
42
- return card.hash;
43
- }
44
-
45
- async get(hash: string): Promise<MCard | null> {
46
- const row = this.rawDb.prepare('SELECT hash, content, g_time FROM card WHERE hash = ?').get(hash) as Record<string, unknown> | undefined;
47
- if (!row) return null;
48
- const raw = row.content;
49
- const bytes = Buffer.isBuffer(raw) ? new Uint8Array(raw.buffer, raw.byteOffset, raw.byteLength) : (raw as Uint8Array);
50
- return MCard.fromData(bytes, String(row.hash), String(row.g_time));
51
- }
52
-
53
- async delete(hash: string): Promise<void> {
54
- this.rawDb.prepare('DELETE FROM card WHERE hash = ?').run(hash);
55
- }
56
-
57
- async count(): Promise<number> {
58
- return this.backend.count();
59
- }
60
-
61
- async registerHandle(handle: string, hash: string): Promise<void> {
62
- this.backend.registerHandle(handle, hash);
63
- }
64
-
65
- async resolveHandle(handle: string): Promise<string | null> {
66
- const resolved = this.backend.resolveHandle(handle);
67
- return resolved ? (resolved.asHex ? resolved.asHex() : String(resolved)) : null;
68
- }
69
-
70
- async getByHandle(handle: string): Promise<MCard | null> {
71
- const hash = await this.resolveHandle(handle);
72
- return hash ? this.get(hash) : null;
73
- }
74
-
75
- async updateHandle(handle: string, newHashOrCard: string | MCard): Promise<string> {
76
- let newHash: string;
77
- if (typeof newHashOrCard === 'string') {
78
- newHash = newHashOrCard;
79
- } else {
80
- newHash = newHashOrCard.hash;
81
- await this.add(newHashOrCard);
82
- }
83
- this.backend.registerHandle(handle, newHash);
84
- return newHash;
85
- }
86
-
87
- async removeHandle(handle: string): Promise<void> {
88
- this.rawDb.prepare('DELETE FROM handle_history WHERE handle = ?').run(handle);
89
- this.rawDb.prepare('DELETE FROM handle_registry WHERE handle = ?').run(handle);
90
- }
91
-
92
- async getAllHandles(): Promise<{ handle: string; hash: string }[]> {
93
- const rows = this.rawDb.prepare('SELECT handle, current_hash as hash FROM handle_registry').all() as Record<string, unknown>[];
94
- return rows.map(r => ({ handle: String(r.handle), hash: String(r.hash) }));
95
- }
96
-
97
- async getHandleHistory(handle: string): Promise<{ previousHash: string; changedAt: string }[]> {
98
- const rows = this.rawDb.prepare('SELECT previous_hash as previousHash, changed_at as changedAt FROM handle_history WHERE handle = ? ORDER BY changed_at DESC').all(handle) as Record<string, unknown>[];
99
- return rows.map(r => ({ previousHash: String(r.previousHash), changedAt: String(r.changedAt) }));
100
- }
101
-
102
- async deleteHistoryEntry(handle: string, previousHash: string): Promise<void> {
103
- this.rawDb.prepare('DELETE FROM handle_history WHERE rowid IN (SELECT rowid FROM handle_history WHERE handle = ? AND previous_hash = ? ORDER BY changed_at DESC LIMIT 1)').run(handle, previousHash);
104
- }
105
-
106
- async renameHandle(oldHandle: string, newHandle: string): Promise<void> {
107
- this.rawDb.exec('BEGIN TRANSACTION;');
108
- try {
109
- this.rawDb.prepare('UPDATE handle_registry SET handle = ? WHERE handle = ?').run(newHandle, oldHandle);
110
- this.rawDb.prepare('UPDATE handle_history SET handle = ? WHERE handle = ?').run(newHandle, oldHandle);
111
- this.rawDb.exec('COMMIT;');
112
- } catch (err) {
113
- this.rawDb.exec('ROLLBACK;');
114
- throw err;
115
- }
116
- }
117
-
118
- close(): void {
119
- this.backend.close();
120
- }
121
- }