mcard-js 2.1.41 → 2.1.43
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/{CardCollection-MXTUJV4J.js → CardCollection-7DKJWKAG.js} +3 -2
- package/dist/CardCollection-S4RE3RXP.js +10 -0
- package/dist/CardCollection-VPN7AAAX.js +10 -0
- package/dist/{IndexedDBEngine-2G5KCISA.js → IndexedDBEngine-7JOGM2MM.js} +3 -2
- package/dist/IndexedDBEngine-BGZHJK5L.js +12 -0
- package/dist/IndexedDBEngine-ZJ442GI7.js +12 -0
- package/dist/{LLMRuntime-GIGDMDEZ.js → LLMRuntime-OZNVAPXJ.js} +4 -3
- package/dist/{LLMRuntime-LBWUJ7ON.js → LLMRuntime-UPSEDSIK.js} +2 -2
- package/dist/{LambdaRuntime-B6D6IQKZ.js → LambdaRuntime-JZ4Q56TI.js} +6 -5
- package/dist/LambdaRuntime-PM3OUFHU.js +19 -0
- package/dist/LambdaRuntime-WBEK37AF.js +19 -0
- package/dist/LambdaRuntime-YKSBAT65.js +19 -0
- package/dist/{Loader-3LSJXJQG.js → Loader-7HQVYDPA.js} +2 -2
- package/dist/{Loader-BM56B2TX.js → Loader-NYWTV7CQ.js} +4 -3
- package/dist/{Loader-CYLAA4XU.js → Loader-OLKPY6HT.js} +3 -3
- package/dist/{MCard-H56VOJLR.js → MCard-OYI73CUI.js} +1 -1
- package/dist/{MCard-5LIREV2B.js → MCard-XHG3BZC7.js} +2 -2
- package/dist/{NetworkRuntime-IAFHPQSX.js → NetworkRuntime-VYCC5HSY.js} +16 -11
- package/dist/{NetworkRuntime-JNGKW3DY.js → NetworkRuntime-XQX3LDDI.js} +61 -33
- package/dist/{NetworkRuntime-CXPKIAOQ.js → NetworkRuntime-XZR733M5.js} +17 -12
- package/dist/{OllamaProvider-QPX2JXL2.js → OllamaProvider-FBZ5WW72.js} +1 -1
- package/dist/OllamaProvider-W6TPZNHD.js +9 -0
- package/dist/chunk-2NFGZ6PA.js +170 -0
- package/dist/{chunk-VXV35I5J.js → chunk-4TYRTQ4V.js} +48 -17
- package/dist/chunk-4VWWTGRW.js +497 -0
- package/dist/{chunk-4PDYHPR6.js → chunk-5GHZP7E5.js} +4 -2
- package/dist/{chunk-42VF42KH.js → chunk-5HZNWJFT.js} +4 -2
- package/dist/{chunk-DEYMHG5A.js → chunk-6MG5ZHAP.js} +58 -22
- package/dist/{chunk-7V37AAPK.js → chunk-7B4PABOL.js} +16 -7
- package/dist/chunk-A5S2PI37.js +47 -0
- package/dist/chunk-BFD4WSWU.js +497 -0
- package/dist/chunk-BSEFN25Q.js +32 -0
- package/dist/{chunk-3LPY36OG.js → chunk-CBEVE7RG.js} +20 -15
- package/dist/{chunk-A5AB4WQN.js → chunk-DPA3ZK4Q.js} +30 -21
- package/dist/{chunk-5FA54AMM.js → chunk-EJHX3VZL.js} +54 -21
- package/dist/{chunk-QXPHMSPA.js → chunk-GNF4WAPV.js} +22 -9
- package/dist/{chunk-XPG6B5IW.js → chunk-JHIA2BQK.js} +26 -13
- package/dist/{chunk-4I5IZILN.js → chunk-KGPICAQW.js} +10 -7
- package/dist/{chunk-4WBJPHZP.js → chunk-MST5AZXJ.js} +17 -8
- package/dist/{chunk-K35KFTEA.js → chunk-N6KDHCBC.js} +58 -33
- package/dist/{chunk-2R4ESMZB.js → chunk-NFO5NU6B.js} +5 -3
- package/dist/chunk-OKWBHCKC.js +170 -0
- package/dist/{chunk-FIE4LAJG.js → chunk-OX3K6UZJ.js} +5 -3
- package/dist/{chunk-6SEX42H2.js → chunk-R3K7DG7O.js} +21 -16
- package/dist/chunk-RB35Z35T.js +44 -0
- package/dist/{chunk-AWGFLRLI.js → chunk-SP4YPKPR.js} +51 -318
- package/dist/chunk-U7TSFDKX.js +217 -0
- package/dist/chunk-UP3SQX56.js +112 -0
- package/dist/{chunk-4EUEU4SM.js → chunk-VGIRC3HX.js} +13 -110
- package/dist/chunk-WGG7526Z.js +112 -0
- package/dist/{chunk-3JBSRALP.js → chunk-WNKP66IR.js} +10 -7
- package/dist/{chunk-DOC55MPG.js → chunk-WR6ISHCS.js} +11 -3
- package/dist/{chunk-52UNWVOD.js → chunk-ZVOPQ5BM.js} +54 -21
- package/dist/chunk-ZZMOPQER.js +217 -0
- package/dist/index.browser.cjs +79 -1454
- package/dist/index.browser.d.cts +2 -17
- package/dist/index.browser.d.ts +2 -17
- package/dist/index.browser.js +7 -6
- package/dist/index.cjs +306 -1631
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +49 -35
- package/dist/storage/SqliteNodeEngine.cjs +59 -1335
- package/dist/storage/SqliteNodeEngine.js +4 -3
- package/dist/storage/SqliteWasmEngine.cjs +57 -1335
- package/dist/storage/SqliteWasmEngine.js +4 -3
- package/package.json +12 -8
- package/dist/CardCollection-4OFJ6XQJ.js +0 -9
- package/dist/CardCollection-7PDWM24F.js +0 -9
- package/dist/CardCollection-CEFQ5PA6.js +0 -9
- package/dist/CardCollection-GUEYGN2Y.js +0 -9
- package/dist/CardCollection-KDO4CQ4B.js +0 -9
- package/dist/CardCollection-PB7ZY73E.js +0 -9
- package/dist/CardCollection-RK4DVH63.js +0 -9
- package/dist/CardCollection-T376E3TS.js +0 -9
- package/dist/CardCollection-WGCKKUOD.js +0 -9
- package/dist/CardCollection-XON2IWDU.js +0 -9
- package/dist/CardCollection-ZEI6FMP3.js +0 -9
- package/dist/EventProducer-MW6QF4IO.js +0 -47
- package/dist/EventProducer-V7RY2KKR.js +0 -47
- package/dist/FileIO.d.ts +0 -44
- package/dist/FileIO.d.ts.map +0 -1
- package/dist/FileIO.js +0 -203
- package/dist/FileIO.js.map +0 -1
- package/dist/IndexedDBEngine-7JI2CL32.js +0 -10
- package/dist/IndexedDBEngine-7OHQIRTI.js +0 -10
- package/dist/IndexedDBEngine-E5YJQG4U.js +0 -10
- package/dist/IndexedDBEngine-NV625E7L.js +0 -10
- package/dist/IndexedDBEngine-RPQS7ILF.js +0 -10
- package/dist/IndexedDBEngine-S3ZWCSI7.js +0 -10
- package/dist/IndexedDBEngine-T7OC5GRR.js +0 -10
- package/dist/LLMRuntime-BKB3CLXM.js +0 -16
- package/dist/LLMRuntime-BQUUFLAB.js +0 -16
- package/dist/LLMRuntime-TNBC4JCB.js +0 -16
- package/dist/LambdaRuntime-4YILF3G7.js +0 -15
- package/dist/LambdaRuntime-53TPVENI.js +0 -16
- package/dist/LambdaRuntime-73BSWP2G.js +0 -16
- package/dist/LambdaRuntime-AL5SBDCA.js +0 -17
- package/dist/LambdaRuntime-BYBUI7H5.js +0 -17
- package/dist/LambdaRuntime-JDZP3HIQ.js +0 -17
- package/dist/LambdaRuntime-JEI7RVWG.js +0 -16
- package/dist/LambdaRuntime-LCTHBYMV.js +0 -17
- package/dist/LambdaRuntime-LDA3G7IR.js +0 -16
- package/dist/LambdaRuntime-LF4FR6YA.js +0 -16
- package/dist/LambdaRuntime-O7JBVHO2.js +0 -16
- package/dist/LambdaRuntime-OFOTT464.js +0 -17
- package/dist/LambdaRuntime-Q6ISCHAD.js +0 -16
- package/dist/LambdaRuntime-TCZ42XCB.js +0 -16
- package/dist/LambdaRuntime-UKUOKJIW.js +0 -17
- package/dist/LambdaRuntime-VKLON4IB.js +0 -17
- package/dist/LambdaRuntime-WNYDBTS6.js +0 -16
- package/dist/LambdaRuntime-WPTX76CX.js +0 -17
- package/dist/Loader-4P7PEBCL.js +0 -11
- package/dist/Loader-HQ3QKMYM.js +0 -11
- package/dist/Loader-NCATGB67.js +0 -11
- package/dist/Loader-NRHGDQBD.js +0 -11
- package/dist/Loader-RT4NI6AT.js +0 -11
- package/dist/Loader-SSRY57SS.js +0 -11
- package/dist/Loader-W72QZ3T7.js +0 -11
- package/dist/Loader-WECRIXQW.js +0 -11
- package/dist/Loader-XFBIHCQF.js +0 -11
- package/dist/Loader.d.ts +0 -34
- package/dist/Loader.d.ts.map +0 -1
- package/dist/Loader.js +0 -190
- package/dist/Loader.js.map +0 -1
- package/dist/MCard-4J6WSBRF.js +0 -8
- package/dist/MCard-E3MRPTJF.js +0 -8
- package/dist/MCard-FCOIB6BP.js +0 -8
- package/dist/MCard-G4HUWHY5.js +0 -8
- package/dist/MCard-HFL7AFIH.js +0 -8
- package/dist/MCard-JOW6RBSO.js +0 -8
- package/dist/MCard-M4LKN4U2.js +0 -8
- package/dist/MCard-VB7UDUTN.js +0 -8
- package/dist/MCard-WOHE6SX6.js +0 -8
- package/dist/NetworkRuntime-2H7AQITA.js +0 -1571
- package/dist/NetworkRuntime-3MIUBNOF.js +0 -1571
- package/dist/NetworkRuntime-AOE2EJIM.js +0 -1571
- package/dist/NetworkRuntime-BQMDBUDO.js +0 -1570
- package/dist/NetworkRuntime-GMANLCAB.js +0 -1542
- package/dist/NetworkRuntime-L7P4VCGK.js +0 -1542
- package/dist/NetworkRuntime-LC7SUAOF.js +0 -1542
- package/dist/NetworkRuntime-OJWCWPBI.js +0 -1570
- package/dist/NetworkRuntime-ZJ3B4T3A.js +0 -1542
- package/dist/OllamaProvider-32RC36HD.js +0 -8
- package/dist/OllamaProvider-MQXSXLCA.js +0 -8
- package/dist/OllamaProvider-Q45BMOVN.js +0 -8
- package/dist/SqliteNodeEngine-WKVFWBNH.js +0 -9
- package/dist/StorageAdapter-DdDUiIvH.d.cts +0 -391
- package/dist/StorageAdapter-DdDUiIvH.d.ts +0 -391
- package/dist/StorageAdapter-Dw1BeOam.d.cts +0 -380
- package/dist/StorageAdapter-Dw1BeOam.d.ts +0 -380
- package/dist/chunk-23GCCCXB.js +0 -402
- package/dist/chunk-2ECISK2I.js +0 -354
- package/dist/chunk-2MRBTM72.js +0 -354
- package/dist/chunk-2THXO6FH.js +0 -2313
- package/dist/chunk-2VNRWIBZ.js +0 -389
- package/dist/chunk-2VOQRXWH.js +0 -296
- package/dist/chunk-34AYBZRO.js +0 -920
- package/dist/chunk-37EEYISR.js +0 -372
- package/dist/chunk-3E2TKOCZ.js +0 -354
- package/dist/chunk-3MMMJ7NH.js +0 -1068
- package/dist/chunk-437JTYVP.js +0 -292
- package/dist/chunk-4MQINOOG.js +0 -1218
- package/dist/chunk-4UIWXZHY.js +0 -1049
- package/dist/chunk-53S2EZCY.js +0 -290
- package/dist/chunk-5BIDGXA6.js +0 -987
- package/dist/chunk-5HXLTWYN.js +0 -296
- package/dist/chunk-5W2FDGUF.js +0 -371
- package/dist/chunk-6R4ERZMG.js +0 -1136
- package/dist/chunk-74YSNHEM.js +0 -2309
- package/dist/chunk-7H2BQZDK.js +0 -270
- package/dist/chunk-7KEWCCES.js +0 -1136
- package/dist/chunk-7PN2BUYF.js +0 -371
- package/dist/chunk-A2ZJA2EV.js +0 -389
- package/dist/chunk-ARPIBGRP.js +0 -1236
- package/dist/chunk-ATHNEEAG.js +0 -2309
- package/dist/chunk-AVXJOPUE.js +0 -354
- package/dist/chunk-B7VEU4S2.js +0 -204
- package/dist/chunk-C2TKISBR.js +0 -1213
- package/dist/chunk-CBH4YKB4.js +0 -2309
- package/dist/chunk-DP7HBRDL.js +0 -2309
- package/dist/chunk-DV7ZSH4W.js +0 -2309
- package/dist/chunk-DWXNZ5AJ.js +0 -642
- package/dist/chunk-EFKMZTT2.js +0 -270
- package/dist/chunk-FXJYXHG6.js +0 -266
- package/dist/chunk-G466I6RT.js +0 -229
- package/dist/chunk-GATPBTHL.js +0 -1142
- package/dist/chunk-GMQAHPBC.js +0 -292
- package/dist/chunk-GMWA2IJJ.js +0 -1105
- package/dist/chunk-GVX5LDLH.js +0 -371
- package/dist/chunk-HGENNKOJ.js +0 -355
- package/dist/chunk-HM2NBYHU.js +0 -292
- package/dist/chunk-IZWB5GCG.js +0 -389
- package/dist/chunk-J4HOFUKM.js +0 -2309
- package/dist/chunk-JIK2G3EH.js +0 -2313
- package/dist/chunk-JRXNWGSW.js +0 -1136
- package/dist/chunk-KRKK3KP6.js +0 -1081
- package/dist/chunk-KYXZHRUG.js +0 -389
- package/dist/chunk-L36L2VDL.js +0 -371
- package/dist/chunk-L5PZCES6.js +0 -204
- package/dist/chunk-L5U77ZEM.js +0 -1142
- package/dist/chunk-LQEKGX2T.js +0 -204
- package/dist/chunk-LWMUDMMQ.js +0 -1144
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-NZ6OQ7UT.js +0 -92
- package/dist/chunk-O2UMNZGF.js +0 -903
- package/dist/chunk-OFHDMLNM.js +0 -355
- package/dist/chunk-PDBMNUMB.js +0 -316
- package/dist/chunk-PW4XS7M3.js +0 -850
- package/dist/chunk-QA2XQMMJ.js +0 -2313
- package/dist/chunk-QL2JFNA7.js +0 -389
- package/dist/chunk-QPZ2HNSU.js +0 -912
- package/dist/chunk-QVGVU6OS.js +0 -296
- package/dist/chunk-RCEU7PFH.js +0 -270
- package/dist/chunk-RSTKX7WM.js +0 -907
- package/dist/chunk-RXL2CW64.js +0 -266
- package/dist/chunk-RXUF6Y43.js +0 -2309
- package/dist/chunk-SIAA4J6H.js +0 -21
- package/dist/chunk-SOJ2UMO2.js +0 -986
- package/dist/chunk-T3AG6DXY.js +0 -296
- package/dist/chunk-TPCNKMGZ.js +0 -355
- package/dist/chunk-TPT3S5AX.js +0 -204
- package/dist/chunk-TXWGIEVH.js +0 -2313
- package/dist/chunk-TZFI54AU.js +0 -2313
- package/dist/chunk-U3FWUPD3.js +0 -717
- package/dist/chunk-UFW2VW2D.js +0 -266
- package/dist/chunk-UTAOS5Y7.js +0 -2313
- package/dist/chunk-V7VX5OJ6.js +0 -389
- package/dist/chunk-W2XGNMYB.js +0 -355
- package/dist/chunk-W3M4HJ4U.js +0 -2309
- package/dist/chunk-WMJGGREP.js +0 -296
- package/dist/chunk-WTNVQ5WS.js +0 -732
- package/dist/chunk-WVFWNVT2.js +0 -1050
- package/dist/chunk-WY7EYSYC.js +0 -1236
- package/dist/chunk-X42F7DE3.js +0 -373
- package/dist/chunk-XC7Y4I7L.js +0 -290
- package/dist/chunk-YFULZTKP.js +0 -270
- package/dist/chunk-YSVHXKSZ.js +0 -373
- package/dist/chunk-YWGVK5OS.js +0 -292
- package/dist/chunk-Z4BRNTO5.js +0 -2313
- package/dist/chunk-ZDUXDKPD.js +0 -292
- package/dist/chunk-ZXQ2W7LO.js +0 -355
- package/dist/chunk-ZXQELXXO.js +0 -378
- package/dist/index.browser.d.ts.map +0 -1
- package/dist/index.browser.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib-4XS34IPZ.js +0 -778
- package/dist/model/CardCollection.d.ts +0 -147
- package/dist/model/CardCollection.d.ts.map +0 -1
- package/dist/model/CardCollection.js +0 -272
- package/dist/model/CardCollection.js.map +0 -1
- package/dist/model/ContentTypeInterpreter.d.ts +0 -28
- package/dist/model/ContentTypeInterpreter.d.ts.map +0 -1
- package/dist/model/ContentTypeInterpreter.js +0 -147
- package/dist/model/ContentTypeInterpreter.js.map +0 -1
- package/dist/model/EventProducer.d.ts +0 -10
- package/dist/model/EventProducer.d.ts.map +0 -1
- package/dist/model/EventProducer.js +0 -46
- package/dist/model/EventProducer.js.map +0 -1
- package/dist/model/GTime.d.ts +0 -44
- package/dist/model/GTime.d.ts.map +0 -1
- package/dist/model/GTime.js +0 -91
- package/dist/model/GTime.js.map +0 -1
- package/dist/model/Handle.d.ts +0 -37
- package/dist/model/Handle.d.ts.map +0 -1
- package/dist/model/Handle.js +0 -90
- package/dist/model/Handle.js.map +0 -1
- package/dist/model/MCard.d.ts +0 -145
- package/dist/model/MCard.d.ts.map +0 -1
- package/dist/model/MCard.js +0 -180
- package/dist/model/MCard.js.map +0 -1
- package/dist/model/PCard.d.ts +0 -271
- package/dist/model/PCard.d.ts.map +0 -1
- package/dist/model/PCard.js +0 -558
- package/dist/model/PCard.js.map +0 -1
- package/dist/model/VCard.d.ts +0 -277
- package/dist/model/VCard.d.ts.map +0 -1
- package/dist/model/VCard.js +0 -573
- package/dist/model/VCard.js.map +0 -1
- package/dist/model/constants.d.ts +0 -45
- package/dist/model/constants.d.ts.map +0 -1
- package/dist/model/constants.js +0 -27
- package/dist/model/constants.js.map +0 -1
- package/dist/model/vcard_vocabulary.d.ts +0 -174
- package/dist/model/vcard_vocabulary.d.ts.map +0 -1
- package/dist/model/vcard_vocabulary.js +0 -187
- package/dist/model/vcard_vocabulary.js.map +0 -1
- package/dist/monads/Either.d.ts +0 -51
- package/dist/monads/Either.d.ts.map +0 -1
- package/dist/monads/Either.js +0 -82
- package/dist/monads/Either.js.map +0 -1
- package/dist/monads/IO.d.ts +0 -38
- package/dist/monads/IO.d.ts.map +0 -1
- package/dist/monads/IO.js +0 -66
- package/dist/monads/IO.js.map +0 -1
- package/dist/monads/Maybe.d.ts +0 -45
- package/dist/monads/Maybe.d.ts.map +0 -1
- package/dist/monads/Maybe.js +0 -73
- package/dist/monads/Maybe.js.map +0 -1
- package/dist/monads/Reader.d.ts +0 -29
- package/dist/monads/Reader.d.ts.map +0 -1
- package/dist/monads/Reader.js +0 -44
- package/dist/monads/Reader.js.map +0 -1
- package/dist/monads/State.d.ts +0 -33
- package/dist/monads/State.d.ts.map +0 -1
- package/dist/monads/State.js +0 -50
- package/dist/monads/State.js.map +0 -1
- package/dist/monads/Writer.d.ts +0 -29
- package/dist/monads/Writer.d.ts.map +0 -1
- package/dist/monads/Writer.js +0 -46
- package/dist/monads/Writer.js.map +0 -1
- package/dist/ptr/Bridgelet.d.ts +0 -180
- package/dist/ptr/Bridgelet.d.ts.map +0 -1
- package/dist/ptr/Bridgelet.js +0 -296
- package/dist/ptr/Bridgelet.js.map +0 -1
- package/dist/ptr/CLMIntrospection.d.ts +0 -169
- package/dist/ptr/CLMIntrospection.d.ts.map +0 -1
- package/dist/ptr/CLMIntrospection.js +0 -329
- package/dist/ptr/CLMIntrospection.js.map +0 -1
- package/dist/ptr/FaroSidecar.d.ts +0 -56
- package/dist/ptr/FaroSidecar.d.ts.map +0 -1
- package/dist/ptr/FaroSidecar.js +0 -102
- package/dist/ptr/FaroSidecar.js.map +0 -1
- package/dist/ptr/LensProtocol.d.ts +0 -84
- package/dist/ptr/LensProtocol.d.ts.map +0 -1
- package/dist/ptr/LensProtocol.js +0 -98
- package/dist/ptr/LensProtocol.js.map +0 -1
- package/dist/ptr/OpenTelemetrySidecar.d.ts +0 -144
- package/dist/ptr/OpenTelemetrySidecar.d.ts.map +0 -1
- package/dist/ptr/OpenTelemetrySidecar.js +0 -232
- package/dist/ptr/OpenTelemetrySidecar.js.map +0 -1
- package/dist/ptr/SandboxWorker.d.ts +0 -79
- package/dist/ptr/SandboxWorker.d.ts.map +0 -1
- package/dist/ptr/SandboxWorker.js +0 -298
- package/dist/ptr/SandboxWorker.js.map +0 -1
- package/dist/ptr/common_types.d.ts +0 -39
- package/dist/ptr/common_types.d.ts.map +0 -1
- package/dist/ptr/common_types.js +0 -12
- package/dist/ptr/common_types.js.map +0 -1
- package/dist/rag/GraphRAGEngine.d.ts +0 -26
- package/dist/rag/GraphRAGEngine.d.ts.map +0 -1
- package/dist/rag/GraphRAGEngine.js +0 -166
- package/dist/rag/GraphRAGEngine.js.map +0 -1
- package/dist/rag/HandleVectorStore.d.ts +0 -201
- package/dist/rag/HandleVectorStore.d.ts.map +0 -1
- package/dist/rag/HandleVectorStore.js +0 -527
- package/dist/rag/HandleVectorStore.js.map +0 -1
- package/dist/rag/PersistentIndexer.d.ts +0 -148
- package/dist/rag/PersistentIndexer.d.ts.map +0 -1
- package/dist/rag/PersistentIndexer.js +0 -302
- package/dist/rag/PersistentIndexer.js.map +0 -1
- package/dist/rag/index.d.ts +0 -20
- package/dist/rag/index.d.ts.map +0 -1
- package/dist/rag/index.js +0 -26
- package/dist/rag/index.js.map +0 -1
- package/dist/rag/semanticVersioning.d.ts +0 -187
- package/dist/rag/semanticVersioning.d.ts.map +0 -1
- package/dist/rag/semanticVersioning.js +0 -253
- package/dist/rag/semanticVersioning.js.map +0 -1
- package/dist/storage/IndexedDBEngine.d.ts +0 -33
- package/dist/storage/IndexedDBEngine.d.ts.map +0 -1
- package/dist/storage/IndexedDBEngine.js +0 -198
- package/dist/storage/IndexedDBEngine.js.map +0 -1
- package/dist/storage/SqliteNodeEngine.d.ts.map +0 -1
- package/dist/storage/SqliteNodeEngine.js.map +0 -1
- package/dist/storage/SqliteWasmEngine.d.ts.map +0 -1
- package/dist/storage/SqliteWasmEngine.js.map +0 -1
- package/dist/storage/StorageAdapter.d.ts +0 -42
- package/dist/storage/StorageAdapter.d.ts.map +0 -1
- package/dist/storage/StorageAdapter.js +0 -2
- package/dist/storage/StorageAdapter.js.map +0 -1
- package/dist/storage/VectorStore.d.ts +0 -202
- package/dist/storage/VectorStore.d.ts.map +0 -1
- package/dist/storage/VectorStore.js +0 -557
- package/dist/storage/VectorStore.js.map +0 -1
- package/dist/storage/schema.d.ts +0 -162
- package/dist/storage/schema.d.ts.map +0 -1
- package/dist/storage/schema.js +0 -335
- package/dist/storage/schema.js.map +0 -1
- package/dist/storage/schema_constants.d.ts +0 -7
- package/dist/storage/schema_constants.d.ts.map +0 -1
- package/dist/storage/schema_constants.js +0 -415
- package/dist/storage/schema_constants.js.map +0 -1
- package/dist/types/dots.d.ts +0 -206
- package/dist/types/dots.d.ts.map +0 -1
- package/dist/types/dots.js +0 -201
- package/dist/types/dots.js.map +0 -1
package/dist/model/PCard.js
DELETED
|
@@ -1,558 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PCard Model (Control Plane) - Petri Net TRANSITION
|
|
3
|
-
*
|
|
4
|
-
* This module defines PCard, the execution unit in the MVP Cards architecture.
|
|
5
|
-
* PCards are MCards containing a valid CLM (Cubical Logic Model) specification.
|
|
6
|
-
*
|
|
7
|
-
* ## Categorical Foundation: STRONG PROFUNCTOR
|
|
8
|
-
*
|
|
9
|
-
* PCard implements the Strong Profunctor pattern from category theory:
|
|
10
|
-
*
|
|
11
|
-
* P: A^op × B → Set
|
|
12
|
-
*
|
|
13
|
-
* Where:
|
|
14
|
-
* - A^op denotes contravariance in input types (accepts MORE general)
|
|
15
|
-
* - B denotes covariance in output types (produces MORE specific)
|
|
16
|
-
* - Set is the category of sets (our value space)
|
|
17
|
-
*
|
|
18
|
-
* The "Strong" property means PCard supports:
|
|
19
|
-
* - first: P(A, B) → P(C × A, C × B) (threading context through)
|
|
20
|
-
* - second: P(A, B) → P(A × C, B × C) (preserving additional structure)
|
|
21
|
-
*
|
|
22
|
-
* ## Composition via Coend
|
|
23
|
-
*
|
|
24
|
-
* Two PCards compose via the Coend (categorical integral):
|
|
25
|
-
*
|
|
26
|
-
* (P ⨾ Q)(A, C) = ∫ᴮ P(A, B) × Q(B, C)
|
|
27
|
-
*
|
|
28
|
-
* Where:
|
|
29
|
-
* - ∫ᴮ is the Coend over the intermediate type B
|
|
30
|
-
* - P(A, B) is the first PCard (input A, output B)
|
|
31
|
-
* - Q(B, C) is the second PCard (input B, output C)
|
|
32
|
-
* - Result is a new PCard from A to C
|
|
33
|
-
*
|
|
34
|
-
* The `andThen()` method implements this Coend composition.
|
|
35
|
-
*
|
|
36
|
-
* ## SMC Structure (Symmetric Monoidal Category)
|
|
37
|
-
*
|
|
38
|
-
* PCard composition forms a Symmetric Monoidal Category:
|
|
39
|
-
* - **Identity**: The "pass-through" PCard
|
|
40
|
-
* - **Composition**: Sequential chaining via `andThen()` (;)
|
|
41
|
-
* - **Tensor Product**: Parallel composition via `andAlso()` (⊗)
|
|
42
|
-
* - **Symmetry**: Port swapping via `swap()` (σ)
|
|
43
|
-
*
|
|
44
|
-
* ## Functor Role in MVP Cards Hierarchy
|
|
45
|
-
*
|
|
46
|
-
* PCard is the **Functor** in the categorical hierarchy:
|
|
47
|
-
* - **MCard (Monad)**: Data container
|
|
48
|
-
* - **PCard (Functor)**: Pure transformation `fmap :: (a -> b) -> F a -> F b`
|
|
49
|
-
* - **VCard (Applicative)**: Context-aware application
|
|
50
|
-
*
|
|
51
|
-
* ## Petri Net Role: TRANSITION
|
|
52
|
-
*
|
|
53
|
-
* In the Categorical Petri Net model, PCard is the **Transition**:
|
|
54
|
-
* - Consumes input VCards (Tokens) from input Places
|
|
55
|
-
* - Executes CLM logic (Abstract → Concrete transformation)
|
|
56
|
-
* - Produces output VCards (Tokens) for output Places
|
|
57
|
-
*
|
|
58
|
-
* ### The Firing Rule
|
|
59
|
-
*
|
|
60
|
-
* M' = M - •t + t•
|
|
61
|
-
*
|
|
62
|
-
* Where:
|
|
63
|
-
* - M = Current marking (token distribution)
|
|
64
|
-
* - •t = Pre-set (input VCards required)
|
|
65
|
-
* - t• = Post-set (output VCards produced)
|
|
66
|
-
*
|
|
67
|
-
* ## CLM Triad: Abstract, Concrete, Balanced
|
|
68
|
-
*
|
|
69
|
-
* PCard content encodes the three dimensions:
|
|
70
|
-
* - **Abstract (A)**: WHY - Specification, intent, type signature
|
|
71
|
-
* - **Concrete (C)**: HOW - Implementation, runtime logic
|
|
72
|
-
* - **Balanced (B)**: WHAT - Tests, verification expectations
|
|
73
|
-
*
|
|
74
|
-
* ## DOTS Vocabulary Role: LENS + CHART
|
|
75
|
-
*
|
|
76
|
-
* - **Lens**: Tight morphism (Abstract ↔ Concrete coherence)
|
|
77
|
-
* - **Chart**: Loose morphism (Balanced expectations wiring)
|
|
78
|
-
*
|
|
79
|
-
* @see docs/PCard_Impl.md for full implementation specification
|
|
80
|
-
*/
|
|
81
|
-
import { parse } from 'yaml';
|
|
82
|
-
import { MCard } from './MCard';
|
|
83
|
-
import { HashValidator } from './hash/HashValidator';
|
|
84
|
-
import { GTime } from './GTime';
|
|
85
|
-
import { ContentTypeInterpreter } from './ContentTypeInterpreter';
|
|
86
|
-
import { createPCardDOTSMetadata } from '../types/dots';
|
|
87
|
-
/**
|
|
88
|
-
* PCard - The Control Plane unit (Petri Net Transition)
|
|
89
|
-
*
|
|
90
|
-
* A PCard is an MCard whose content is a valid CLM specification.
|
|
91
|
-
* It represents a transformation (Lens) with a specific interaction pattern (Chart).
|
|
92
|
-
*/
|
|
93
|
-
export class PCard extends MCard {
|
|
94
|
-
parsedClm;
|
|
95
|
-
isLens;
|
|
96
|
-
constructor(content, hash, g_time, contentType, hashFunction, parsedClm, isLens) {
|
|
97
|
-
super(content, hash, g_time, contentType, hashFunction);
|
|
98
|
-
this.parsedClm = parsedClm;
|
|
99
|
-
this.isLens = isLens;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Create a new PCard from CLM content
|
|
103
|
-
*
|
|
104
|
-
* @param content - The CLM YAML string or bytes
|
|
105
|
-
* @param hashAlgorithm - Hash algorithm to use
|
|
106
|
-
* @param isLens - Whether this acts primarily as a Lens (default true)
|
|
107
|
-
*/
|
|
108
|
-
static async create(content, hashAlgorithm = 'sha256', isLens = true) {
|
|
109
|
-
let textContent;
|
|
110
|
-
let bytes;
|
|
111
|
-
// Ensure we have both text and bytes
|
|
112
|
-
if (typeof content === 'string') {
|
|
113
|
-
textContent = content;
|
|
114
|
-
bytes = new TextEncoder().encode(content);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
bytes = content;
|
|
118
|
-
textContent = new TextDecoder().decode(content);
|
|
119
|
-
}
|
|
120
|
-
// Validate YAML and CLM structure
|
|
121
|
-
let parsedClm;
|
|
122
|
-
try {
|
|
123
|
-
parsedClm = parse(textContent);
|
|
124
|
-
if (typeof parsedClm !== 'object' || parsedClm === null) {
|
|
125
|
-
throw new Error('PCard content must be a YAML dictionary');
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
catch (e) {
|
|
129
|
-
throw new Error(`Invalid YAML content for PCard: ${e.message}`);
|
|
130
|
-
}
|
|
131
|
-
const hash = await HashValidator.computeHash(bytes, hashAlgorithm);
|
|
132
|
-
const g_time = GTime.stampNow(hashAlgorithm);
|
|
133
|
-
const contentType = ContentTypeInterpreter.detect(bytes);
|
|
134
|
-
return new PCard(bytes, hash, g_time, contentType, hashAlgorithm, parsedClm, isLens);
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* Get DOTS vocabulary metadata for this PCard
|
|
138
|
-
*
|
|
139
|
-
* Automatically extracts dependencies from the CLM structure if available.
|
|
140
|
-
*/
|
|
141
|
-
getDOTSMetadata() {
|
|
142
|
-
const tightRefs = [];
|
|
143
|
-
const looseRefs = [];
|
|
144
|
-
// Extract dependencies from standard CLM fields
|
|
145
|
-
if (Array.isArray(this.parsedClm.tight_deps)) {
|
|
146
|
-
tightRefs.push(...this.parsedClm.tight_deps);
|
|
147
|
-
}
|
|
148
|
-
if (Array.isArray(this.parsedClm.dependencies)) {
|
|
149
|
-
tightRefs.push(...this.parsedClm.dependencies);
|
|
150
|
-
}
|
|
151
|
-
if (Array.isArray(this.parsedClm.loose_deps)) {
|
|
152
|
-
looseRefs.push(...this.parsedClm.loose_deps);
|
|
153
|
-
}
|
|
154
|
-
if (Array.isArray(this.parsedClm.alternatives)) {
|
|
155
|
-
looseRefs.push(...this.parsedClm.alternatives);
|
|
156
|
-
}
|
|
157
|
-
return createPCardDOTSMetadata(this.isLens, tightRefs, looseRefs);
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Get the parsed CLM object
|
|
161
|
-
*/
|
|
162
|
-
get clm() {
|
|
163
|
-
return this.parsedClm;
|
|
164
|
-
}
|
|
165
|
-
// =========================================================================
|
|
166
|
-
// Legacy Aliases and Recursive Accessors
|
|
167
|
-
// =========================================================================
|
|
168
|
-
getSection(sectionName, aliases) {
|
|
169
|
-
// 1. Check root
|
|
170
|
-
let val = this.parsedClm[sectionName];
|
|
171
|
-
if (val)
|
|
172
|
-
return val;
|
|
173
|
-
// 2. Check aliases at root
|
|
174
|
-
for (const alias of aliases) {
|
|
175
|
-
val = this.parsedClm[alias];
|
|
176
|
-
if (val)
|
|
177
|
-
return val;
|
|
178
|
-
}
|
|
179
|
-
// 3. Check inside 'clm' dict (nested structure)
|
|
180
|
-
const clmInner = this.parsedClm.clm;
|
|
181
|
-
if (typeof clmInner === 'object' && clmInner !== null) {
|
|
182
|
-
val = clmInner[sectionName];
|
|
183
|
-
if (val)
|
|
184
|
-
return val;
|
|
185
|
-
for (const alias of aliases) {
|
|
186
|
-
val = clmInner[alias];
|
|
187
|
-
if (val)
|
|
188
|
-
return val;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
return undefined;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Get the Abstract Specification section (UPTV Role: Abstract)
|
|
195
|
-
*/
|
|
196
|
-
get abstract() {
|
|
197
|
-
return this.getSection('abstract', ['abstract_spec']);
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Get the Concrete Implementation section (UPTV Role: Concrete)
|
|
201
|
-
*/
|
|
202
|
-
get concrete() {
|
|
203
|
-
return this.getSection('concrete', ['concrete_impl', 'impl']);
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Get the Balanced Expectations (tests) section (UPTV Role: Balanced)
|
|
207
|
-
*/
|
|
208
|
-
get balanced() {
|
|
209
|
-
return this.getSection('balanced', ['balanced_expectations', 'expectations']);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Get the Abstract Specification section (Legacy)
|
|
213
|
-
*/
|
|
214
|
-
get abstractSpec() {
|
|
215
|
-
return this.abstract;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Get the Concrete Implementation section (Legacy)
|
|
219
|
-
*/
|
|
220
|
-
get concreteImpl() {
|
|
221
|
-
return this.concrete;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Get the Balanced Expectations (tests) section (Legacy)
|
|
225
|
-
*/
|
|
226
|
-
get balancedExpectations() {
|
|
227
|
-
return this.balanced;
|
|
228
|
-
}
|
|
229
|
-
// =========================================================================
|
|
230
|
-
// SMC ALGEBRAIC COMBINATORS (Profunctor Composition)
|
|
231
|
-
// =========================================================================
|
|
232
|
-
//
|
|
233
|
-
// These methods implement the Symmetric Monoidal Category structure,
|
|
234
|
-
// enabling algebraic composition of PCards as profunctors.
|
|
235
|
-
//
|
|
236
|
-
// Composition Laws (Categorical Coherence):
|
|
237
|
-
// - Associativity: (f.andThen(g)).andThen(h) ≡ f.andThen(g.andThen(h))
|
|
238
|
-
// - Identity: id.andThen(f) ≡ f ≡ f.andThen(id)
|
|
239
|
-
// - Tensor Associativity: (A ⊗ B) ⊗ C ≅ A ⊗ (B ⊗ C)
|
|
240
|
-
// - Symmetry Involution: swap().swap() ≡ id
|
|
241
|
-
// =========================================================================
|
|
242
|
-
/**
|
|
243
|
-
* Sequential Composition via Coend (P ⨾ Q)
|
|
244
|
-
*
|
|
245
|
-
* Implements profunctor composition using the Coend formula:
|
|
246
|
-
*
|
|
247
|
-
* (P ⨾ Q)(A, C) = ∫ᴮ P(A, B) × Q(B, C)
|
|
248
|
-
*
|
|
249
|
-
* Where:
|
|
250
|
-
* - this is P: A → B
|
|
251
|
-
* - otherPCard is Q: B → C
|
|
252
|
-
* - Result is P ⨾ Q: A → C
|
|
253
|
-
*
|
|
254
|
-
* The Coend (∫ᴮ) "integrates out" the intermediate type B by:
|
|
255
|
-
* 1. Matching P's output type with Q's input type
|
|
256
|
-
* 2. Creating a chain where P's result feeds into Q
|
|
257
|
-
* 3. The composition is associative: (P ⨾ Q) ⨾ R = P ⨾ (Q ⨾ R)
|
|
258
|
-
*
|
|
259
|
-
* In PTR execution:
|
|
260
|
-
* - P is executed first (prep → exec → post)
|
|
261
|
-
* - P's output VCard becomes Q's input VCard
|
|
262
|
-
* - Q is executed second
|
|
263
|
-
* - Final result is Q's output VCard
|
|
264
|
-
*
|
|
265
|
-
* Note: Named 'andThen' to avoid conflict with Promise.then (Thenable).
|
|
266
|
-
*
|
|
267
|
-
* @param otherPCard - The PCard to execute after this one (Q in P ⨾ Q)
|
|
268
|
-
* @returns A new PCard representing the composed profunctor (P ⨾ Q)
|
|
269
|
-
*/
|
|
270
|
-
async andThen(otherPCard) {
|
|
271
|
-
const newClm = {
|
|
272
|
-
chapter: {
|
|
273
|
-
id: `composed_${this.hash.substring(0, 8)}_${otherPCard.hash.substring(0, 8)}`,
|
|
274
|
-
title: "Sequentially Composed Function",
|
|
275
|
-
goal: `Compose ${this.hash} then ${otherPCard.hash}`
|
|
276
|
-
},
|
|
277
|
-
clm: {
|
|
278
|
-
abstract: {
|
|
279
|
-
type: "sequential_composition",
|
|
280
|
-
coend_formula: "∫ᴮ P(A,B) × Q(B,C)",
|
|
281
|
-
steps: [this.hash, otherPCard.hash]
|
|
282
|
-
},
|
|
283
|
-
concrete: {
|
|
284
|
-
runtime: "ptr",
|
|
285
|
-
operation: "compose_sequential",
|
|
286
|
-
steps: [this.hash, otherPCard.hash]
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
// Need to import stringify usually, assume global or imported at top
|
|
291
|
-
const { stringify } = await import('yaml');
|
|
292
|
-
return PCard.create(stringify(newClm), this.hashFunction);
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Tensor Product ($A \otimes B$)
|
|
296
|
-
*
|
|
297
|
-
* Runs this PCard and otherPCard in parallel.
|
|
298
|
-
*/
|
|
299
|
-
async andAlso(otherPCard) {
|
|
300
|
-
const newClm = {
|
|
301
|
-
chapter: {
|
|
302
|
-
id: `parallel_${this.hash.substring(0, 8)}_${otherPCard.hash.substring(0, 8)}`,
|
|
303
|
-
title: "Parallel Function",
|
|
304
|
-
goal: `Run ${this.hash} and ${otherPCard.hash} in parallel`
|
|
305
|
-
},
|
|
306
|
-
clm: {
|
|
307
|
-
abstract: {
|
|
308
|
-
type: "tensor_product",
|
|
309
|
-
left: this.hash,
|
|
310
|
-
right: otherPCard.hash
|
|
311
|
-
},
|
|
312
|
-
concrete: {
|
|
313
|
-
runtime: "ptr",
|
|
314
|
-
operation: "compose_parallel",
|
|
315
|
-
components: [this.hash, otherPCard.hash]
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
const { stringify } = await import('yaml');
|
|
320
|
-
return PCard.create(stringify(newClm), this.hashFunction);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* Symmetry ($\sigma$)
|
|
324
|
-
*
|
|
325
|
-
* Swaps the input/output ports of a tensor product.
|
|
326
|
-
*/
|
|
327
|
-
async swap() {
|
|
328
|
-
const newClm = {
|
|
329
|
-
chapter: {
|
|
330
|
-
id: `swapped_${this.hash.substring(0, 8)}`,
|
|
331
|
-
title: "Swapped Function",
|
|
332
|
-
goal: `Swap inputs/outputs of ${this.hash}`
|
|
333
|
-
},
|
|
334
|
-
clm: {
|
|
335
|
-
abstract: {
|
|
336
|
-
type: "symmetry_swap",
|
|
337
|
-
target: this.hash
|
|
338
|
-
},
|
|
339
|
-
concrete: {
|
|
340
|
-
runtime: "ptr",
|
|
341
|
-
operation: "apply_symmetry",
|
|
342
|
-
target: this.hash
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
const { stringify } = await import('yaml');
|
|
347
|
-
return PCard.create(stringify(newClm), this.hashFunction);
|
|
348
|
-
}
|
|
349
|
-
// =========================================================================
|
|
350
|
-
// Universal Tooling Interface
|
|
351
|
-
// =========================================================================
|
|
352
|
-
/**
|
|
353
|
-
* Run the Balanced Expectations (Proof)
|
|
354
|
-
*/
|
|
355
|
-
verify() {
|
|
356
|
-
return {
|
|
357
|
-
status: "pending_verification",
|
|
358
|
-
proof_plan: this.balanced,
|
|
359
|
-
target: this.hash
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Run with instrumentation (eBPF/Tracing)
|
|
364
|
-
*/
|
|
365
|
-
profile() {
|
|
366
|
-
return {
|
|
367
|
-
status: "profiling_ready",
|
|
368
|
-
target: this.hash,
|
|
369
|
-
instrumentation: "standard"
|
|
370
|
-
};
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Run in Operative mode (Step-by-step)
|
|
374
|
-
*/
|
|
375
|
-
debug() {
|
|
376
|
-
return {
|
|
377
|
-
status: "debug_session_created",
|
|
378
|
-
mode: "operative",
|
|
379
|
-
target: this.hash
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Return documentation/explanation
|
|
384
|
-
*/
|
|
385
|
-
explain() {
|
|
386
|
-
return {
|
|
387
|
-
abstract: this.abstract,
|
|
388
|
-
narrative: this.parsedClm.chapter,
|
|
389
|
-
dots_metadata: this.getDOTSMetadata()
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
// =========================================================================
|
|
393
|
-
// Petri Net Transition Semantics
|
|
394
|
-
// =========================================================================
|
|
395
|
-
/**
|
|
396
|
-
* Get input VCard references (Pre-set: •t)
|
|
397
|
-
*
|
|
398
|
-
* These represent the preconditions that must be satisfied before
|
|
399
|
-
* this PCard (Transition) can fire.
|
|
400
|
-
*
|
|
401
|
-
* @returns Array of input VCard references from CLM specification
|
|
402
|
-
*/
|
|
403
|
-
getInputVCardRefs() {
|
|
404
|
-
const refs = [];
|
|
405
|
-
// Helper to get field from root or nested 'clm'
|
|
406
|
-
const getField = (key) => {
|
|
407
|
-
return this.parsedClm[key] || this.parsedClm.clm?.[key];
|
|
408
|
-
};
|
|
409
|
-
// Check for explicit input_vcards in CLM
|
|
410
|
-
const inputVCards = getField('input_vcards') ||
|
|
411
|
-
getField('preconditions') ||
|
|
412
|
-
getField('requires');
|
|
413
|
-
if (Array.isArray(inputVCards)) {
|
|
414
|
-
for (const ref of inputVCards) {
|
|
415
|
-
if (typeof ref === 'string') {
|
|
416
|
-
refs.push({ handle: ref });
|
|
417
|
-
}
|
|
418
|
-
else if (ref.handle) {
|
|
419
|
-
refs.push({
|
|
420
|
-
handle: ref.handle,
|
|
421
|
-
expectedHash: ref.hash || ref.expected_hash,
|
|
422
|
-
purpose: ref.purpose
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
// Also check verification.pcard_refs for authentication requirements
|
|
428
|
-
const verification = getField('verification');
|
|
429
|
-
const verificationRefs = verification?.pcard_refs || [];
|
|
430
|
-
for (const ref of verificationRefs) {
|
|
431
|
-
if (typeof ref === 'string') {
|
|
432
|
-
refs.push({ handle: `auth://${ref}`, purpose: 'authenticate' });
|
|
433
|
-
}
|
|
434
|
-
else if (ref.hash) {
|
|
435
|
-
refs.push({
|
|
436
|
-
handle: `auth://${ref.hash}`,
|
|
437
|
-
expectedHash: ref.hash,
|
|
438
|
-
purpose: ref.purpose || 'authenticate'
|
|
439
|
-
});
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
return refs;
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Get output VCard specifications (Post-set: t•)
|
|
446
|
-
*
|
|
447
|
-
* These define what VCards (Tokens) this PCard produces when fired.
|
|
448
|
-
*
|
|
449
|
-
* @returns Array of output VCard specifications
|
|
450
|
-
*/
|
|
451
|
-
getOutputVCardSpecs() {
|
|
452
|
-
const specs = [];
|
|
453
|
-
const getField = (key) => {
|
|
454
|
-
return this.parsedClm[key] || this.parsedClm.clm?.[key];
|
|
455
|
-
};
|
|
456
|
-
// Check for explicit output_vcards in CLM
|
|
457
|
-
const outputVCards = getField('output_vcards') ||
|
|
458
|
-
getField('postconditions') ||
|
|
459
|
-
getField('produces');
|
|
460
|
-
if (Array.isArray(outputVCards)) {
|
|
461
|
-
for (const spec of outputVCards) {
|
|
462
|
-
if (typeof spec === 'string') {
|
|
463
|
-
specs.push({ handle: spec, type: 'result' });
|
|
464
|
-
}
|
|
465
|
-
else if (spec.handle) {
|
|
466
|
-
specs.push({
|
|
467
|
-
handle: spec.handle,
|
|
468
|
-
type: spec.type || 'result',
|
|
469
|
-
metadata: spec.metadata
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
// Default: produce a verification VCard at balanced handle
|
|
475
|
-
if (specs.length === 0) {
|
|
476
|
-
const chapter = this.parsedClm.chapter;
|
|
477
|
-
if (chapter?.title) {
|
|
478
|
-
const safeName = chapter.title.toLowerCase().replace(/[^a-z0-9]/g, '_');
|
|
479
|
-
specs.push({
|
|
480
|
-
handle: `clm://${safeName}/balanced`,
|
|
481
|
-
type: 'verification'
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return specs;
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* Get the canonical handle for this PCard (Transition)
|
|
489
|
-
*
|
|
490
|
-
* @returns Handle string in form `clm://{module}/{function}/spec`
|
|
491
|
-
*/
|
|
492
|
-
getTransitionHandle() {
|
|
493
|
-
const chapter = this.parsedClm.chapter;
|
|
494
|
-
if (chapter?.id !== undefined) {
|
|
495
|
-
const safeName = chapter.title?.toLowerCase().replace(/[^a-z0-9]/g, '_') || `chapter_${chapter.id}`;
|
|
496
|
-
return `clm://${safeName}/spec`;
|
|
497
|
-
}
|
|
498
|
-
// Fallback to hash-based handle
|
|
499
|
-
return `clm://hash/${this.hash.substring(0, 16)}/spec`;
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* Get the balanced expectations handle for this PCard
|
|
503
|
-
*
|
|
504
|
-
* This is where verification history is tracked in handle_history.
|
|
505
|
-
*
|
|
506
|
-
* @returns Handle string for balanced expectations
|
|
507
|
-
*/
|
|
508
|
-
getBalancedHandle() {
|
|
509
|
-
const specHandle = this.getTransitionHandle();
|
|
510
|
-
return specHandle.replace('/spec', '/balanced');
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* Check if this PCard (Transition) can fire given the available VCards
|
|
514
|
-
*
|
|
515
|
-
* A transition can fire when all input VCards (preconditions) are present.
|
|
516
|
-
*
|
|
517
|
-
* @param availableVCards - Map of handle → VCard hash
|
|
518
|
-
* @returns Object with canFire boolean and missing preconditions
|
|
519
|
-
*/
|
|
520
|
-
canFire(availableVCards) {
|
|
521
|
-
const inputRefs = this.getInputVCardRefs();
|
|
522
|
-
const missing = [];
|
|
523
|
-
for (const ref of inputRefs) {
|
|
524
|
-
const vCardHash = availableVCards.get(ref.handle);
|
|
525
|
-
if (!vCardHash) {
|
|
526
|
-
missing.push(ref.handle);
|
|
527
|
-
}
|
|
528
|
-
else if (ref.expectedHash && vCardHash !== ref.expectedHash) {
|
|
529
|
-
// Hash mismatch - treat as missing
|
|
530
|
-
missing.push(`${ref.handle} (hash mismatch)`);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
return {
|
|
534
|
-
canFire: missing.length === 0,
|
|
535
|
-
missing
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Get the runtime required for this PCard
|
|
540
|
-
*
|
|
541
|
-
* @returns Runtime name (e.g., 'javascript', 'python', 'lean')
|
|
542
|
-
*/
|
|
543
|
-
getRuntime() {
|
|
544
|
-
return this.parsedClm.clm?.concrete?.runtime ||
|
|
545
|
-
this.parsedClm.concrete?.runtime ||
|
|
546
|
-
'javascript';
|
|
547
|
-
}
|
|
548
|
-
/**
|
|
549
|
-
* Check if this is a multi-runtime PCard
|
|
550
|
-
*
|
|
551
|
-
* @returns True if this PCard supports multiple runtimes
|
|
552
|
-
*/
|
|
553
|
-
isMultiRuntime() {
|
|
554
|
-
const config = this.parsedClm.clm?.concrete || this.parsedClm.concrete;
|
|
555
|
-
return Array.isArray(config?.runtimes_config) && config.runtimes_config.length > 1;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
//# sourceMappingURL=PCard.js.map
|
package/dist/model/PCard.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PCard.js","sourceRoot":"","sources":["../../src/model/PCard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0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