nolo-cli 0.108.0-alpha.2 → 0.108.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/README.md +1 -1
- package/{_executeModel-BY3P5LBB.js → _executeModel-T7PIVJIW.js} +128 -83
- package/action-RHUT4OHH.js +23 -0
- package/{addContentAction-MB2HHMDZ.js → addContentAction-BQ3LJLUW.js} +19 -13
- package/{addDialogAgentAction-MCEABSBA.js → addDialogAgentAction-B6X7BXR4.js} +24 -20
- package/{agentDeleteCommand-66KXCSRR.js → agentDeleteCommand-VIDCZAFG.js} +154 -68
- package/{agentEmailCommands-63UTONDK.js → agentEmailCommands-PCHDY4ZP.js} +125 -105
- package/{agentGrantCommands-M3XFO6EN.js → agentGrantCommands-HOJ3JBBQ.js} +3 -3
- package/agentListCommands-QNUAN3YH.js +800 -0
- package/{agentMachineCommands-Z6RGPZSG.js → agentMachineCommands-C2TMTQNU.js} +54 -58
- package/{agentProviderCommands-X3UNW77C.js → agentProviderCommands-7PCGR77I.js} +97 -2
- package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-7GCDM4BK.js} +7 -7
- package/agentRecordCommands-T4XAUFF5.js +149 -0
- package/agentRunCommand-T3AW43I6.js +179 -0
- package/{agentRunControl-AVJR4JW4.js → agentRunControl-2CDZNHXV.js} +10 -2
- package/{agentRuntimeLocal-E67CTV45.js → agentRuntimeLocal-SQUDRZWE.js} +41 -46
- package/{agentSlice-DG5TIQHE.js → agentSlice-HBGFNXUG.js} +22 -16
- package/{appDeleteCommands-Z36CLGUK.js → appDeleteCommands-CLLYGEBC.js} +55 -56
- package/{appDeployCommands-ECMUWG6S.js → appDeployCommands-HY2NBNDQ.js} +64 -60
- package/{appDeployStatusCommands-CL24TDMA.js → appDeployStatusCommands-SGO5GEXH.js} +53 -53
- package/{appGetCommands-ITHGOYGJ.js → appGetCommands-ZPYK2N5D.js} +53 -53
- package/{appListCommands-EEOSI6RC.js → appListCommands-O2BHIMKS.js} +54 -56
- package/{authCommand-HGP2XTKC.js → authCommand-GUIREPHK.js} +132 -83
- package/{authCommands-RGOGCPP6.js → authCommands-K3BDSTJ4.js} +10 -7
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-MUOUTRNJ.js} +13 -10
- package/{chromeCommands-FZYAU75D.js → chromeCommands-Z2WRJB7O.js} +290 -38
- package/{chromeOpsCommands-62P2Q2YB.js → chromeOpsCommands-YWYXZTIR.js} +157 -23
- package/{chunk-2F7RJC6L.js → chunk-2C47W7IJ.js} +1 -1
- package/chunk-2DRYS3G3.js +13941 -0
- package/{chunk-VLTIYV3X.js → chunk-2ECUZDEL.js} +37 -11
- package/{chunk-LPIYPEME.js → chunk-2FY3GHBV.js} +1449 -1094
- package/{chunk-ALXHV7NK.js → chunk-2GGXHQIW.js} +43 -4
- package/{chunk-AHAHBQMU.js → chunk-2OMUAIKR.js} +2 -2
- package/{chunk-DHDMC6FO.js → chunk-3CZM6HGQ.js} +53 -23
- package/{chunk-BNGW5ASC.js → chunk-3LI5UCTU.js} +23 -3
- package/{chunk-FDTR4QJ6.js → chunk-3MZAGMYY.js} +48 -1
- package/chunk-3PVYUPXK.js +40 -0
- package/{chunk-FV3JEYR3.js → chunk-3SK3J3IF.js} +69 -10
- package/chunk-4LCOCOR5.js +50 -0
- package/{chunk-V7E4PXQD.js → chunk-4MSYSHZD.js} +15 -7
- package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
- package/{chunk-MP64VFGD.js → chunk-4XEYAFLY.js} +60 -18
- package/chunk-4YRTZIVN.js +871 -0
- package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
- package/{chunk-N7J63Q6C.js → chunk-56GBUMO5.js} +10 -1
- package/chunk-5MMAK75Q.js +15 -0
- package/{chunk-KZJP33ZK.js → chunk-5WLADF62.js} +90 -36
- package/chunk-5XN3OSCT.js +164 -0
- package/{chunk-T3GEOSRJ.js → chunk-5YJWHTKD.js} +69 -57
- package/chunk-6CCAXGFK.js +1712 -0
- package/{chunk-42V6BK2E.js → chunk-6MXDOUMH.js} +18 -36
- package/{chunk-QOKAKDPE.js → chunk-6Q7UTJKR.js} +6 -94
- package/{chunk-J4MOO56S.js → chunk-6VRWNU5J.js} +10 -2
- package/{chunk-IQPFGYO3.js → chunk-726TCFLQ.js} +5 -5
- package/{chunk-CW67PN7L.js → chunk-7B3BVGU3.js} +61 -11
- package/chunk-7DPNBQSV.js +9 -0
- package/{chunk-LWKP7AWH.js → chunk-A337PRRR.js} +41 -17
- package/chunk-AGIM7IMJ.js +147 -0
- package/chunk-AI7XJMMQ.js +1858 -0
- package/{chunk-ABQYVJBJ.js → chunk-AIZE5TDM.js} +3 -3
- package/{chunk-LJ5VW2UJ.js → chunk-ALKCVCA5.js} +4 -4
- package/{chunk-5UTFL4QJ.js → chunk-APO5TOXO.js} +1 -1
- package/{chunk-E4MARS3Q.js → chunk-AU7AXHUL.js} +1 -1
- package/{chunk-DOTZ5GTO.js → chunk-AWYWIWTU.js} +310 -95
- package/chunk-B77W7P7J.js +95 -0
- package/{chunk-PBA4UJBK.js → chunk-BFYDNHYW.js} +12 -12
- package/{chunk-QTGQ2LTL.js → chunk-BIAETTOB.js} +5 -9
- package/{chunk-OIVSQH2O.js → chunk-CGEK73JN.js} +311 -12
- package/chunk-CHOZJMJS.js +78 -0
- package/{chunk-GBRG75BQ.js → chunk-D2MDMY2M.js} +1 -0
- package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
- package/chunk-EYLGAEB4.js +784 -0
- package/{chunk-3BMYXEUW.js → chunk-F2UJW3EK.js} +1 -1
- package/{chunk-RVE4DCV3.js → chunk-FBLRSLZH.js} +26 -31
- package/{chunk-P5EVSOPA.js → chunk-FWY6BHIJ.js} +363 -248
- package/{chunk-4MK3I7Y4.js → chunk-G23MQWLJ.js} +7 -128
- package/chunk-G6OOUQWJ.js +417 -0
- package/{chunk-WV42OMV7.js → chunk-GHZ2H2HJ.js} +11 -15
- package/chunk-I42VC5KR.js +15 -0
- package/{chunk-H4AHY5BU.js → chunk-IFALJPEX.js} +69 -20
- package/{chunk-O6OSWFZQ.js → chunk-IHPDK6UD.js} +6 -0
- package/{chunk-UKWGR5SS.js → chunk-IJERIUXS.js} +242 -1146
- package/chunk-IN5UVHHP.js +843 -0
- package/{chunk-QDSINZM3.js → chunk-IXH3HKY2.js} +1 -22
- package/{chunk-SYXOBWOC.js → chunk-JGLKZGGZ.js} +124 -703
- package/chunk-JJM3WS6W.js +132 -0
- package/{chunk-TR22GEUU.js → chunk-JKDL7BRF.js} +20 -11
- package/chunk-JONVI6DK.js +593 -0
- package/{chunk-SH43IESU.js → chunk-KQ7DAEZ7.js} +202 -32
- package/chunk-KWEDNOZZ.js +7546 -0
- package/{chunk-6OZ36FXI.js → chunk-KY6GPQ7O.js} +36 -12
- package/{chunk-RZGLXO2B.js → chunk-L5YKEQLD.js} +1715 -451
- package/{chunk-MRIHM22T.js → chunk-LAVSW2C2.js} +77 -144
- package/{chunk-HSSRGGXJ.js → chunk-LNEKN523.js} +10 -7
- package/chunk-LWLNLZC5.js +265 -0
- package/{chunk-YTLRHRH3.js → chunk-MDOZSLDE.js} +17 -15
- package/{chunk-I3TQJXQ7.js → chunk-MHD5JBSS.js} +131 -10
- package/{chunk-QU7KDSZX.js → chunk-MW533QT3.js} +190 -8
- package/{chunk-4NNTATRH.js → chunk-NLEJWKF5.js} +10394 -8549
- package/{chunk-BFU6C242.js → chunk-NMFV26UG.js} +1 -1
- package/{chunk-GQBOR3G6.js → chunk-NN4UUYGB.js} +18 -4
- package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
- package/chunk-OKARGYFT.js +15 -0
- package/{chunk-KQHGZWSV.js → chunk-OXME3PEE.js} +1 -1
- package/{chunk-Z5625XML.js → chunk-OYBAT7RT.js} +113 -17
- package/chunk-P3SFAHIL.js +134 -0
- package/{chunk-XD2MJFUG.js → chunk-PBGO5AFD.js} +1 -1
- package/{chunk-EYAQT56M.js → chunk-PFEK4SA2.js} +13 -10
- package/{chunk-Z77CRGTW.js → chunk-PHHFVGOJ.js} +1 -1
- package/{chunk-3VNWWVKB.js → chunk-PJNFNEJE.js} +114 -28
- package/{chunk-HVURBGF3.js → chunk-PWRS2SU2.js} +27 -9
- package/chunk-QFEW2ULV.js +42 -0
- package/{chunk-IIVGDG4I.js → chunk-QLQ573SU.js} +124 -77
- package/chunk-QQ56R7KS.js +88 -0
- package/{chunk-PWBDVI4R.js → chunk-QRFI5NHO.js} +269 -141
- package/chunk-QYPE3TS3.js +43 -0
- package/{chunk-VMFTFOWF.js → chunk-RLRYVSCD.js} +31 -14
- package/{chunk-VRTTFDBM.js → chunk-RNNWTMKT.js} +56 -63
- package/{chunk-JRQFUXY7.js → chunk-RRQQAG7W.js} +93 -24
- package/chunk-SJ3QFSQS.js +1147 -0
- package/{chunk-Q67DOFOO.js → chunk-SZC4REES.js} +212 -105
- package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
- package/{chunk-GNCCNNZD.js → chunk-TSBCYK5F.js} +7 -7
- package/chunk-TY3TIUJK.js +89 -0
- package/chunk-U4STABYN.js +81 -0
- package/chunk-UEILX4EV.js +15 -0
- package/{chunk-AODJ7WSF.js → chunk-UIYVU3S4.js} +90 -79
- package/{chunk-YYLHWIW6.js → chunk-UKZX3NHN.js} +1 -1
- package/{chunk-7S4YWN7P.js → chunk-V2UPLOXT.js} +4 -4
- package/{chunk-LS2ZANRJ.js → chunk-V6WXGTUJ.js} +1 -1
- package/{chunk-6YTOJY35.js → chunk-VBG7GWWR.js} +253 -8
- package/{chunk-DVINR3PL.js → chunk-VEA7H5FG.js} +3 -3
- package/chunk-VIWDGTDA.js +8 -0
- package/chunk-VJVNU77E.js +83 -0
- package/{chunk-EADNWBAZ.js → chunk-VP3BINY7.js} +13 -0
- package/{chunk-HKNXJGEC.js → chunk-VSPO4S33.js} +47 -192
- package/{chunk-PHXD6JTX.js → chunk-W2N3ZC4P.js} +7 -7
- package/{chunk-EOARMOVD.js → chunk-W4S6OTSC.js} +6 -3
- package/{chunk-6Z7MY3V7.js → chunk-WCQNEMXG.js} +3 -3
- package/chunk-WJZOQR2J.js +151 -0
- package/{chunk-BFDFRLLQ.js → chunk-WW2USJ3C.js} +3 -3
- package/chunk-X5BIY654.js +29 -0
- package/{chunk-Q554LLSI.js → chunk-XETG4RIX.js} +5 -5
- package/{chunk-3L2WKC3W.js → chunk-XPWGOTBQ.js} +8 -1
- package/{chunk-2OASQKU2.js → chunk-XRXYRHE5.js} +187 -16
- package/{chunk-JEDZAO7L.js → chunk-YBNHPX4S.js} +257 -37
- package/{chunk-JPGCXHNM.js → chunk-YLMMECCH.js} +1 -1
- package/{chunk-6D6VBVEW.js → chunk-YVTZMLXZ.js} +96 -25
- package/{chunk-G4VIHCGJ.js → chunk-ZR5RAAVI.js} +35 -30
- package/chunk-ZRAU6T47.js +56 -0
- package/{chunk-ONXOABJR.js → chunk-ZWQUWF6W.js} +36 -1
- package/{cliExecutor-HG3S345O.js → cliExecutor-AWYR3T33.js} +1 -1
- package/commandRegistry-3XWUYELA.js +839 -0
- package/contentThunks-ALRPUDRE.js +83 -0
- package/{cooldownCommands-REAWYVTY.js → cooldownCommands-JFKTYS2D.js} +2 -2
- package/{createAgentAutomationAction-7HX7KBES.js → createAgentAutomationAction-XXRXCDFJ.js} +51 -43
- package/createDialogAction-FVSAW7WZ.js +75 -0
- package/{createPageAction-QWNMGO3O.js → createPageAction-RT6DPYP5.js} +60 -51
- package/{chunk-UDIIVXKA.js → cursorProvider-YGGNMVWX.js} +2822 -10269
- package/{dbSlice-A6C6H32X.js → dbSlice-JQFBMJ55.js} +18 -12
- package/{deleteFile-YG6QMJLU.js → deleteFile-6JWDDRVP.js} +9 -5
- package/dialogCommands-K734RXEQ.js +108 -0
- package/{dialogSlice-P2K47T3P.js → dialogSlice-GFCT74GI.js} +66 -41
- package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
- package/{docCreateCommands-43JKQEIH.js → docCreateCommands-N3KPGP4A.js} +51 -54
- package/{docDeleteCommands-RL6D46XE.js → docDeleteCommands-4CR4TXZ7.js} +53 -55
- package/{docReadCommands-TOEUEQDG.js → docReadCommands-62XK57VS.js} +50 -53
- package/{docStore-3AHKTJRI.js → docStore-Z7KBPFXX.js} +24 -15
- package/{docUpdateCommands-FWU5G2XB.js → docUpdateCommands-DRAAWIDC.js} +51 -54
- package/{fetchMessages-EIU7UFFK.js → fetchMessages-LM6OMMQQ.js} +5 -4
- package/{getPricing-LUSEABA6.js → getPricing-XDF4OLTC.js} +6 -6
- package/handleSendMessageAction-NRKUSHK2.js +1849 -0
- package/index.js +91 -884
- package/{lib-FRRS27KN.js → lib-PU2G2MSO.js} +523 -191
- package/{localDialogRead-BTFJ4V2I.js → localDialogRead-BOETO2TD.js} +2 -2
- package/localRuntimeAdapter-S6UEEOSA.js +239 -0
- package/{localRuntimeAuthority-6IR6BBXE.js → localRuntimeAuthority-YSE6NH7B.js} +12 -9
- package/{localRuntimeDb-SYQGUF4U.js → localRuntimeDb-7FBKDEQY.js} +1 -1
- package/{machineCommands-TTKK4F7C.js → machineCommands-IQYHOOVH.js} +493 -152
- package/machineWsRunDispatch-3ZUMZUGP.js +164 -0
- package/{memberThunks-P2ECUJ56.js → memberThunks-Y3Q7GZTG.js} +24 -17
- package/{models-T3SG6MJ5.js → models-6V4ZCHEE.js} +2 -2
- package/node_modules/abstract-level/CHANGELOG.md +150 -0
- package/node_modules/abstract-level/LICENSE +21 -0
- package/node_modules/abstract-level/README.md +1957 -0
- package/node_modules/abstract-level/UPGRADING.md +669 -0
- package/node_modules/abstract-level/abstract-chained-batch.js +397 -0
- package/node_modules/abstract-level/abstract-iterator.js +404 -0
- package/node_modules/abstract-level/abstract-level.js +1127 -0
- package/node_modules/abstract-level/abstract-snapshot.js +84 -0
- package/node_modules/abstract-level/index.d.ts +52 -0
- package/node_modules/abstract-level/index.js +9 -0
- package/node_modules/abstract-level/lib/abstract-sublevel-iterator.js +141 -0
- package/node_modules/abstract-level/lib/abstract-sublevel.js +290 -0
- package/node_modules/abstract-level/lib/common.js +33 -0
- package/node_modules/abstract-level/lib/default-chained-batch.js +29 -0
- package/node_modules/abstract-level/lib/default-kv-iterator.js +74 -0
- package/node_modules/abstract-level/lib/deferred-iterator.js +110 -0
- package/node_modules/abstract-level/lib/deferred-queue.js +84 -0
- package/node_modules/abstract-level/lib/errors.js +21 -0
- package/node_modules/abstract-level/lib/event-monitor.js +30 -0
- package/node_modules/abstract-level/lib/hooks.js +78 -0
- package/node_modules/abstract-level/lib/prefixes.js +21 -0
- package/node_modules/abstract-level/lib/prewrite-batch.js +96 -0
- package/node_modules/abstract-level/lib/range-options.js +26 -0
- package/node_modules/abstract-level/package.json +66 -0
- package/node_modules/abstract-level/test/async-iterator-test.js +132 -0
- package/node_modules/abstract-level/test/batch-test.js +214 -0
- package/node_modules/abstract-level/test/chained-batch-test.js +315 -0
- package/node_modules/abstract-level/test/clear-range-test.js +262 -0
- package/node_modules/abstract-level/test/clear-test.js +110 -0
- package/node_modules/abstract-level/test/common.js +90 -0
- package/node_modules/abstract-level/test/deferred-open-test.js +209 -0
- package/node_modules/abstract-level/test/del-test.js +65 -0
- package/node_modules/abstract-level/test/encoding-buffer-test.js +336 -0
- package/node_modules/abstract-level/test/encoding-custom-test.js +92 -0
- package/node_modules/abstract-level/test/encoding-decode-error-test.js +85 -0
- package/node_modules/abstract-level/test/encoding-json-test.js +75 -0
- package/node_modules/abstract-level/test/encoding-test.js +130 -0
- package/node_modules/abstract-level/test/events/write.js +132 -0
- package/node_modules/abstract-level/test/factory-test.js +36 -0
- package/node_modules/abstract-level/test/get-many-test.js +157 -0
- package/node_modules/abstract-level/test/get-sync-test.js +61 -0
- package/node_modules/abstract-level/test/get-test.js +83 -0
- package/node_modules/abstract-level/test/has-many-test.js +144 -0
- package/node_modules/abstract-level/test/has-test.js +81 -0
- package/node_modules/abstract-level/test/hooks/newsub.js +57 -0
- package/node_modules/abstract-level/test/hooks/postopen.js +229 -0
- package/node_modules/abstract-level/test/hooks/prewrite.js +816 -0
- package/node_modules/abstract-level/test/hooks/shared.js +38 -0
- package/node_modules/abstract-level/test/index.js +86 -0
- package/node_modules/abstract-level/test/iterator-explicit-snapshot-test.js +393 -0
- package/node_modules/abstract-level/test/iterator-no-snapshot-test.js +49 -0
- package/node_modules/abstract-level/test/iterator-range-test.js +277 -0
- package/node_modules/abstract-level/test/iterator-seek-test.js +335 -0
- package/node_modules/abstract-level/test/iterator-snapshot-test.js +56 -0
- package/node_modules/abstract-level/test/iterator-test.js +621 -0
- package/node_modules/abstract-level/test/manifest-test.js +21 -0
- package/node_modules/abstract-level/test/open-create-if-missing-test.js +39 -0
- package/node_modules/abstract-level/test/open-error-if-exists-test.js +25 -0
- package/node_modules/abstract-level/test/open-test.js +263 -0
- package/node_modules/abstract-level/test/put-get-del-test.js +97 -0
- package/node_modules/abstract-level/test/put-test.js +70 -0
- package/node_modules/abstract-level/test/self/abstract-iterator-test.js +182 -0
- package/node_modules/abstract-level/test/self/async-iterator-test.js +242 -0
- package/node_modules/abstract-level/test/self/attach-resource-test.js +74 -0
- package/node_modules/abstract-level/test/self/defer-test.js +140 -0
- package/node_modules/abstract-level/test/self/deferred-iterator-test.js +314 -0
- package/node_modules/abstract-level/test/self/deferred-operations-test.js +86 -0
- package/node_modules/abstract-level/test/self/deferred-queue-test.js +93 -0
- package/node_modules/abstract-level/test/self/encoding-test.js +391 -0
- package/node_modules/abstract-level/test/self/errors-test.js +11 -0
- package/node_modules/abstract-level/test/self/iterator-test.js +1050 -0
- package/node_modules/abstract-level/test/self/sublevel-test.js +1039 -0
- package/node_modules/abstract-level/test/self.js +905 -0
- package/node_modules/abstract-level/test/sublevel-test.js +209 -0
- package/node_modules/abstract-level/test/traits/closed.js +42 -0
- package/node_modules/abstract-level/test/traits/index.js +4 -0
- package/node_modules/abstract-level/test/traits/open.js +62 -0
- package/node_modules/abstract-level/test/util.js +275 -0
- package/node_modules/abstract-level/types/abstract-chained-batch.d.ts +124 -0
- package/node_modules/abstract-level/types/abstract-iterator.d.ts +241 -0
- package/node_modules/abstract-level/types/abstract-level.d.ts +636 -0
- package/node_modules/abstract-level/types/abstract-snapshot.d.ts +30 -0
- package/node_modules/abstract-level/types/abstract-sublevel.d.ts +76 -0
- package/node_modules/abstract-level/types/interfaces.d.ts +43 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/browser-level/CHANGELOG.md +44 -0
- package/node_modules/browser-level/LICENSE +21 -0
- package/node_modules/browser-level/README.md +124 -0
- package/node_modules/browser-level/UPGRADING.md +143 -0
- package/node_modules/browser-level/index.d.ts +108 -0
- package/node_modules/browser-level/index.js +323 -0
- package/node_modules/browser-level/iterator.js +239 -0
- package/node_modules/browser-level/package.json +48 -0
- package/node_modules/browser-level/util/clear.js +38 -0
- package/node_modules/browser-level/util/deserialize.js +17 -0
- package/node_modules/browser-level/util/key-range.js +20 -0
- package/node_modules/buffer/AUTHORS.md +73 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +194 -0
- package/node_modules/buffer/index.js +2106 -0
- package/node_modules/buffer/package.json +93 -0
- package/node_modules/classic-level/CHANGELOG.md +115 -0
- package/node_modules/classic-level/LICENSE +21 -0
- package/node_modules/classic-level/README.md +274 -0
- package/node_modules/classic-level/UPGRADING.md +131 -0
- package/node_modules/classic-level/binding.cc +2652 -0
- package/node_modules/classic-level/binding.gyp +71 -0
- package/node_modules/classic-level/binding.js +1 -0
- package/node_modules/classic-level/chained-batch.js +35 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/LICENSE +27 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/Makefile +424 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/build_detect_platform +256 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/autocompact_test.cc +118 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.cc +88 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/builder.h +34 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c.cc +595 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/c_test.c +390 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/corruption_test.cc +374 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_bench.cc +1020 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.cc +1568 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_impl.h +212 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.cc +317 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_iter.h +28 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/db_test.cc +2158 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.cc +140 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat.h +230 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dbformat_test.cc +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/dumpfile.cc +225 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/fault_injection_test.cc +554 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.cc +144 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename.h +85 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/filename_test.cc +123 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/leveldbutil.cc +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_format.h +35 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.cc +284 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_reader.h +113 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_test.cc +591 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.cc +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/log_writer.h +54 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.cc +145 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/memtable.h +89 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/recovery_test.cc +324 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/repair.cc +461 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist.h +384 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/skiplist_test.cc +378 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/snapshot.h +67 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.cc +127 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/table_cache.h +61 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.cc +266 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit.h +107 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_edit_test.cc +46 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.cc +1535 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set.h +399 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/version_set_test.cc +179 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch.cc +147 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_internal.h +50 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/db/write_batch_test.cc +120 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.cc +398 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv.h +20 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/helpers/memenv/memenv_test.cc +241 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/c.h +290 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/cache.h +110 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/comparator.h +63 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/db.h +164 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/dumpfile.h +25 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/env.h +351 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/filter_policy.h +70 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/iterator.h +100 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/options.h +213 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/slice.h +109 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/status.h +112 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table.h +85 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/table_builder.h +92 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/value_sink.h +26 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/include/leveldb/write_batch.h +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue178_test.cc +92 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/issues/issue200_test.cc +59 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/atomic_pointer.h +242 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port.h +21 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_example.h +141 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.cc +53 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix.h +156 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/port_posix_sse.cc +129 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/thread_annotations.h +60 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/port/win/stdint.h +24 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.cc +268 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block.h +44 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.cc +109 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/block_builder.h +57 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.cc +111 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block.h +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/filter_block_test.cc +128 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.cc +144 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/format.h +108 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator.cc +67 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/iterator_wrapper.h +66 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.cc +197 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/merger.h +26 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table.cc +285 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_builder.cc +270 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/table_test.cc +876 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.cc +182 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/table/two_level_iterator.h +34 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.cc +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena.h +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/arena_test.cc +68 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom.cc +95 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/bloom_test.cc +162 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache.cc +405 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/cache_test.cc +226 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.cc +194 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding.h +104 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/coding_test.cc +196 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/comparator.cc +81 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.cc +350 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c.h +45 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/crc32c_test.cc +72 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env.cc +100 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix.cc +695 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test.cc +66 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_posix_test_helper.h +28 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/env_test.cc +106 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/filter_policy.cc +11 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.cc +52 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash.h +19 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/hash_test.cc +54 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.cc +139 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/histogram.h +42 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.cc +72 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/logging.h +43 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/mutexlock.h +41 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/options.cc +30 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/posix_logger.h +98 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/random.h +64 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/status.cc +75 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.cc +77 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testharness.h +138 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.cc +51 -0
- package/node_modules/classic-level/deps/leveldb/leveldb-1.20/util/testutil.h +63 -0
- package/node_modules/classic-level/deps/leveldb/leveldb.gyp +282 -0
- package/node_modules/classic-level/deps/leveldb/patches/001-value-sink.patch +164 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/atomic_pointer_win.h +48 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/env_win.cc +692 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.cc +36 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h +157 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/port_uv.h.bak +153 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/stdint-msvc2008.h +247 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar.h +45 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/uv_condvar_posix.cc +139 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.cc +79 -0
- package/node_modules/classic-level/deps/leveldb/port-libuv/win_logger.h +28 -0
- package/node_modules/classic-level/deps/snappy/freebsd/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/freebsd/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/linux/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/linux/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/mac/config.h +137 -0
- package/node_modules/classic-level/deps/snappy/mac/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/openbsd/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/openbsd/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/snappy/COPYING +54 -0
- package/node_modules/classic-level/deps/snappy/snappy/cmake/SnappyConfig.cmake +1 -0
- package/node_modules/classic-level/deps/snappy/snappy/cmake/config.h.in +62 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-c.cc +90 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-c.h +138 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-internal.h +224 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.cc +104 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-sinksource.h +182 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.cc +42 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-internal.h +561 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-stubs-public.h.in +94 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-test.cc +612 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy-test.h +573 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy.cc +1515 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy.h +203 -0
- package/node_modules/classic-level/deps/snappy/snappy/snappy_unittest.cc +1410 -0
- package/node_modules/classic-level/deps/snappy/snappy.gyp +119 -0
- package/node_modules/classic-level/deps/snappy/solaris/config.h +135 -0
- package/node_modules/classic-level/deps/snappy/solaris/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/deps/snappy/win32/config.h +29 -0
- package/node_modules/classic-level/deps/snappy/win32/snappy-stubs-public.h +100 -0
- package/node_modules/classic-level/index.d.ts +343 -0
- package/node_modules/classic-level/index.js +311 -0
- package/node_modules/classic-level/iterator.js +122 -0
- package/node_modules/classic-level/package.json +70 -0
- package/node_modules/classic-level/prebuilds/android-arm/classic-level.armv7.node +0 -0
- package/node_modules/classic-level/prebuilds/android-arm64/classic-level.armv8.node +0 -0
- package/node_modules/classic-level/prebuilds/darwin-x64+arm64/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv6.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm/classic-level.armv7.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-arm64/classic-level.armv8.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-x64/classic-level.musl.node +0 -0
- package/node_modules/classic-level/prebuilds/linux-x64/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/win32-ia32/classic-level.node +0 -0
- package/node_modules/classic-level/prebuilds/win32-x64/classic-level.node +0 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/is-buffer/LICENSE +21 -0
- package/node_modules/is-buffer/README.md +54 -0
- package/node_modules/is-buffer/index.d.ts +2 -0
- package/node_modules/is-buffer/index.js +11 -0
- package/node_modules/is-buffer/package.json +65 -0
- package/node_modules/level/CHANGELOG.md +532 -0
- package/node_modules/level/LICENSE +21 -0
- package/node_modules/level/README.md +107 -0
- package/node_modules/level/UPGRADING.md +413 -0
- package/node_modules/level/browser.js +1 -0
- package/node_modules/level/index.d.ts +75 -0
- package/node_modules/level/index.js +1 -0
- package/node_modules/level/package.json +62 -0
- package/node_modules/level-supports/CHANGELOG.md +140 -0
- package/node_modules/level-supports/LICENSE +21 -0
- package/node_modules/level-supports/README.md +276 -0
- package/node_modules/level-supports/index.d.ts +137 -0
- package/node_modules/level-supports/index.js +26 -0
- package/node_modules/level-supports/package.json +46 -0
- package/node_modules/level-supports/test/cloneable.js +26 -0
- package/node_modules/level-supports/test/index.js +24 -0
- package/node_modules/level-supports/test/self.js +86 -0
- package/node_modules/level-supports/test/shape.js +23 -0
- package/node_modules/level-transcoder/CHANGELOG.md +15 -0
- package/node_modules/level-transcoder/LICENSE +21 -0
- package/node_modules/level-transcoder/README.md +214 -0
- package/node_modules/level-transcoder/UPGRADING.md +13 -0
- package/node_modules/level-transcoder/index.d.ts +27 -0
- package/node_modules/level-transcoder/index.js +158 -0
- package/node_modules/level-transcoder/lib/encoding.d.ts +158 -0
- package/node_modules/level-transcoder/lib/encoding.js +105 -0
- package/node_modules/level-transcoder/lib/encodings.d.ts +9 -0
- package/node_modules/level-transcoder/lib/encodings.js +135 -0
- package/node_modules/level-transcoder/lib/formats.d.ts +13 -0
- package/node_modules/level-transcoder/lib/formats.js +111 -0
- package/node_modules/level-transcoder/lib/text-endec.d.ts +6 -0
- package/node_modules/level-transcoder/lib/text-endec.js +19 -0
- package/node_modules/level-transcoder/package.json +46 -0
- package/node_modules/maybe-combine-errors/LICENSE.md +21 -0
- package/node_modules/maybe-combine-errors/README.md +94 -0
- package/node_modules/maybe-combine-errors/index.js +60 -0
- package/node_modules/maybe-combine-errors/package.json +33 -0
- package/node_modules/module-error/CHANGELOG.md +23 -0
- package/node_modules/module-error/LICENSE +21 -0
- package/node_modules/module-error/README.md +89 -0
- package/node_modules/module-error/index.d.ts +18 -0
- package/node_modules/module-error/index.js +22 -0
- package/node_modules/module-error/package.json +36 -0
- package/node_modules/napi-macros/LICENSE +21 -0
- package/node_modules/napi-macros/README.md +277 -0
- package/node_modules/napi-macros/index.js +1 -0
- package/node_modules/napi-macros/napi-macros.h +255 -0
- package/node_modules/napi-macros/package.json +22 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/SECURITY.md +5 -0
- package/node_modules/node-gyp-build/bin.js +84 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +6 -0
- package/node_modules/node-gyp-build/node-gyp-build.js +207 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +43 -0
- package/oauthTokenStore-PADKLNOC.js +23 -0
- package/package.json +6 -3
- package/processSpawn-SOAV3FEV.js +11 -0
- package/profileConfig-ZGOFORWV.js +43 -0
- package/{providerPresetApply-XI3WUPTI.js → providerPresetApply-HIPK67DU.js} +9 -9
- package/{providerRegistry-KEPWWGXD.js → providerRegistry-AI4U2FNM.js} +13 -9
- package/{read-COE3ZYR6.js → read-RNUQ7F34.js} +11 -7
- package/{readDocTool-5USN4A6V.js → readDocTool-6WIZHE6O.js} +5 -3
- package/{readlineWorkspace-KIMUDPPV.js → readlineWorkspace-BCDVMOR5.js} +6947 -3879
- package/{removeDialogAgentAction-J6X5QMTA.js → removeDialogAgentAction-EFQ4O2IQ.js} +27 -26
- package/{runAgentClientLoop-AN4WIRPQ.js → runAgentClientLoop-5RBD3DE6.js} +150 -90
- package/{runtimeDoctorCommands-X6WDBEQX.js → runtimeDoctorCommands-5CIWJEZ3.js} +36 -8
- package/runtimeModeArgs-2Y7BALTO.js +31 -0
- package/setDialogExtraReferencesAction-MXAH2KPV.js +37 -0
- package/{setPrimaryDialogAgentAction-FN22THHT.js → setPrimaryDialogAgentAction-7OPVNK4M.js} +28 -27
- package/{chunk-GP5LKBUZ.js → settingThunks-GHVLHABJ.js} +240 -945
- package/{skillDiscovery-CYUCJMAG.js → skillDiscovery-QC35EQY4.js} +3 -3
- package/{slateUtils-RIZES3PV.js → slateUtils-NGV2NMKM.js} +1 -1
- package/{spaceCommands-NA4JMIGT.js → spaceCommands-WZCLRGBO.js} +56 -56
- package/{streamAgentChatTurn-3TYTHZPJ.js → streamAgentChatTurn-YJTEHUH7.js} +371 -1556
- package/{switchDialogAgentAction-LVTEV3FR.js → switchDialogAgentAction-4PANDG3L.js} +24 -20
- package/{tableCommands-O6NWHFKV.js → tableCommands-U3QDY4L6.js} +19 -17
- package/{toolApiClient-QVJ6HDNN.js → toolApiClient-54CXTU7C.js} +5 -4
- package/tools-ZT4GXXDQ.js +122 -0
- package/{tuiSummaryLlmCaller-UFGFOIIW.js → tuiSummaryLlmCaller-ISODIW2O.js} +14 -29
- package/{updateCommands-2M74UL7P.js → updateCommands-NQXAGFM7.js} +3 -3
- package/{updateDialogTitleAction-RDHNT265.js → updateDialogTitleAction-2PQTFUUV.js} +101 -57
- package/action-P4TNFGAD.js +0 -31
- package/agentListCommands-NXCOTTZL.js +0 -411
- package/agentRecordCommands-JP54ZWND.js +0 -129
- package/agentRunCommand-RMQWWSHF.js +0 -157
- package/browser-image-compression-MFDTD7K6.js +0 -1763
- package/chatQueueReduxAdapter-DKLWTT3G.js +0 -186
- package/chunk-ACTMNVHM.js +0 -93
- package/chunk-CQ3WA2NE.js +0 -299
- package/chunk-M76ECQRD.js +0 -13658
- package/chunk-MEYIRKDN.js +0 -8967
- package/chunk-N4G4PKQ6.js +0 -23
- package/chunk-P3GYTNDF.js +0 -34
- package/chunk-PUOC4YRO.js +0 -394
- package/chunk-S7Z2HMCN.js +0 -25
- package/chunk-Y5GCAMGP.js +0 -9
- package/chunk-YPREESF4.js +0 -225
- package/chunk-YWIEQS6H.js +0 -21409
- package/contentThunks-JHK6X2KU.js +0 -73
- package/createDialogAction-VUUUZL54.js +0 -65
- package/dialogCommands-EN7TYD3I.js +0 -100
- package/handleSendMessageAction-ID5IKXUE.js +0 -633
- package/machineWsRunDispatch-RX64L3ET.js +0 -145
- package/setDialogExtraReferencesAction-WX5VTY6O.js +0 -30
- package/settingSlice-P4ZW7K5X.js +0 -204
- package/syncMapping-N6RGXGBW.js +0 -437
- package/tools-34SEJSLQ.js +0 -110
- package/{chunk-SV5IJK6K.js → chunk-NBTY7YJF.js} +3 -3
- package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
- package/{db-WK5MDZVN.js → db-VQSAOWAO.js} +1 -1
- package/{offlineMarxistsAgentCommand-HGXZV4XJ.js → offlineMarxistsAgentCommand-2QTHJCHV.js} +4 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRuntimeServerContext,
|
|
3
3
|
scheduleDeleteReplication
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4YRTZIVN.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchFromClientDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6Q7UTJKR.js";
|
|
8
8
|
import {
|
|
9
9
|
selectIdentityToken
|
|
10
10
|
} from "./chunk-SEJ5OS6F.js";
|
|
11
11
|
import {
|
|
12
12
|
buildTombstoneRecord
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D2MDMY2M.js";
|
|
14
14
|
|
|
15
15
|
// packages/database/fileStorage.ts
|
|
16
16
|
var DB_NAME = "nolo-file-storage";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generatePkcePair,
|
|
3
3
|
startCallbackServer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
toErrorMessage
|
|
7
|
-
} from "./chunk-HNMXYYJR.js";
|
|
4
|
+
} from "./chunk-OYBAT7RT.js";
|
|
8
5
|
import {
|
|
9
6
|
asOptionalFiniteNumber
|
|
10
7
|
} from "./chunk-WWC7I6TA.js";
|
|
8
|
+
import {
|
|
9
|
+
toErrorMessage
|
|
10
|
+
} from "./chunk-HNMXYYJR.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/oauth/flows/cloudflare.ts
|
|
13
13
|
var CLOUDFLARE_OAUTH_AUTH_ENDPOINT = "https://dash.cloudflare.com/oauth2/auth";
|
|
@@ -5,29 +5,21 @@ import {
|
|
|
5
5
|
} from "./chunk-ZJ7UHBJS.js";
|
|
6
6
|
import {
|
|
7
7
|
deleteDialog,
|
|
8
|
-
|
|
9
|
-
initReactI18next,
|
|
10
|
-
instance,
|
|
8
|
+
runtime_default,
|
|
11
9
|
toast
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2DRYS3G3.js";
|
|
13
11
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./chunk-
|
|
12
|
+
formatISO
|
|
13
|
+
} from "./chunk-ZRAU6T47.js";
|
|
16
14
|
import {
|
|
17
15
|
require_react
|
|
18
16
|
} from "./chunk-YDH3FDFQ.js";
|
|
19
|
-
import {
|
|
20
|
-
isSystemAdmin
|
|
21
|
-
} from "./chunk-QDSINZM3.js";
|
|
22
|
-
import {
|
|
23
|
-
asRecordOrEmpty
|
|
24
|
-
} from "./chunk-KX6YBIHG.js";
|
|
25
17
|
import {
|
|
26
18
|
UNCATEGORIZED_ID,
|
|
27
19
|
addContentAction,
|
|
28
20
|
checkSpaceMembership,
|
|
29
21
|
localSpaceAuthorityPatchStamp
|
|
30
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2OMUAIKR.js";
|
|
31
23
|
import {
|
|
32
24
|
createSpaceKey,
|
|
33
25
|
normalizeSpaceId
|
|
@@ -37,57 +29,71 @@ import {
|
|
|
37
29
|
read,
|
|
38
30
|
readAndWait,
|
|
39
31
|
remove,
|
|
40
|
-
resolveFileCategory,
|
|
41
32
|
uploadFileAction,
|
|
42
33
|
upsertSSREntity,
|
|
43
34
|
write
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import {
|
|
46
|
-
SEPARATOR,
|
|
47
|
-
asTrimmedNonEmptyStringArray,
|
|
48
|
-
createKey,
|
|
49
|
-
fileKey,
|
|
50
|
-
isAgentKey,
|
|
51
|
-
isPageKey,
|
|
52
|
-
metaKey,
|
|
53
|
-
rowKey,
|
|
54
|
-
splitKey,
|
|
55
|
-
ulid
|
|
56
|
-
} from "./chunk-VMFTFOWF.js";
|
|
57
|
-
import {
|
|
58
|
-
asOptionalFiniteNumber
|
|
59
|
-
} from "./chunk-WWC7I6TA.js";
|
|
35
|
+
} from "./chunk-RNNWTMKT.js";
|
|
60
36
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
37
|
+
resolveFileCategory
|
|
38
|
+
} from "./chunk-3PVYUPXK.js";
|
|
63
39
|
import {
|
|
64
40
|
DEVICE_LOCAL_OWNER_ID,
|
|
65
|
-
createAsyncThunk,
|
|
66
41
|
getRuntimeServerContext,
|
|
67
42
|
isDeviceLocalSpaceBody,
|
|
68
43
|
resolveReplicationServers,
|
|
69
44
|
scheduleDeleteReplication,
|
|
70
45
|
scheduleWriteReplication
|
|
71
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-4YRTZIVN.js";
|
|
72
47
|
import {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
48
|
+
createAsyncThunk
|
|
49
|
+
} from "./chunk-IJERIUXS.js";
|
|
50
|
+
import {
|
|
51
|
+
createClientLogger
|
|
52
|
+
} from "./chunk-QQ56R7KS.js";
|
|
76
53
|
import {
|
|
77
54
|
selectIdentityUserId
|
|
78
55
|
} from "./chunk-SEJ5OS6F.js";
|
|
79
56
|
import {
|
|
80
57
|
buildTombstoneRecord
|
|
81
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-D2MDMY2M.js";
|
|
59
|
+
import {
|
|
60
|
+
isSystemAdmin
|
|
61
|
+
} from "./chunk-OKARGYFT.js";
|
|
62
|
+
import {
|
|
63
|
+
asRecordOrEmpty
|
|
64
|
+
} from "./chunk-KX6YBIHG.js";
|
|
65
|
+
import {
|
|
66
|
+
isAbortError
|
|
67
|
+
} from "./chunk-7DPNBQSV.js";
|
|
68
|
+
import {
|
|
69
|
+
extractUserId
|
|
70
|
+
} from "./chunk-M2EJHDJP.js";
|
|
71
|
+
import {
|
|
72
|
+
SEPARATOR,
|
|
73
|
+
createKey,
|
|
74
|
+
fileKey,
|
|
75
|
+
isAgentKey,
|
|
76
|
+
isPageKey,
|
|
77
|
+
metaKey,
|
|
78
|
+
rowKey,
|
|
79
|
+
splitKey,
|
|
80
|
+
ulid
|
|
81
|
+
} from "./chunk-RLRYVSCD.js";
|
|
82
|
+
import {
|
|
83
|
+
asTrimmedNonEmptyStringArray
|
|
84
|
+
} from "./chunk-I42VC5KR.js";
|
|
85
|
+
import {
|
|
86
|
+
asOptionalPositiveFiniteNumber
|
|
87
|
+
} from "./chunk-U6VC4MU4.js";
|
|
88
|
+
import {
|
|
89
|
+
asOptionalFiniteNumber
|
|
90
|
+
} from "./chunk-WWC7I6TA.js";
|
|
82
91
|
import {
|
|
83
92
|
isRecord
|
|
84
93
|
} from "./chunk-KUG52IAP.js";
|
|
85
94
|
import {
|
|
86
95
|
asTrimmedString
|
|
87
96
|
} from "./chunk-3EUW3WEO.js";
|
|
88
|
-
import {
|
|
89
|
-
asOptionalPositiveFiniteNumber
|
|
90
|
-
} from "./chunk-U6VC4MU4.js";
|
|
91
97
|
import {
|
|
92
98
|
asOptionalTrimmedString
|
|
93
99
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -97,7 +103,6 @@ import {
|
|
|
97
103
|
|
|
98
104
|
// packages/render/table/tableStore.ts
|
|
99
105
|
var import_react = __toESM(require_react(), 1);
|
|
100
|
-
var import_date_fns2 = __toESM(require_date_fns(), 1);
|
|
101
106
|
import { ulid as ulid3 } from "ulid";
|
|
102
107
|
|
|
103
108
|
// packages/render/table/fetchAndCacheTableRows.ts
|
|
@@ -434,25 +439,7 @@ function addColumnOptionInMeta(meta, input, deps) {
|
|
|
434
439
|
}
|
|
435
440
|
|
|
436
441
|
// packages/render/table/createTableAction.ts
|
|
437
|
-
var import_date_fns = __toESM(require_date_fns(), 1);
|
|
438
442
|
import { ulid as ulid2 } from "ulid";
|
|
439
|
-
|
|
440
|
-
// packages/app/i18n/client.ts
|
|
441
|
-
instance.use(initReactI18next).init({
|
|
442
|
-
...i18nBaseConfig,
|
|
443
|
-
lng: "zh-CN" /* ZH_CN */,
|
|
444
|
-
fallbackLng: {
|
|
445
|
-
["en" /* EN */]: ["en" /* EN */],
|
|
446
|
-
["zh-CN" /* ZH_CN */]: ["zh-CN" /* ZH_CN */, "en" /* EN */],
|
|
447
|
-
["zh-Hant" /* ZH_HANT */]: ["zh-Hant" /* ZH_HANT */, "zh-CN" /* ZH_CN */, "en" /* EN */],
|
|
448
|
-
["ja" /* JA */]: ["ja" /* JA */, "en" /* EN */],
|
|
449
|
-
default: ["en" /* EN */]
|
|
450
|
-
},
|
|
451
|
-
compatibilityJSON: "v3"
|
|
452
|
-
});
|
|
453
|
-
var client_default = instance;
|
|
454
|
-
|
|
455
|
-
// packages/render/table/createTableAction.ts
|
|
456
443
|
var DEFAULT_COLUMNS = [
|
|
457
444
|
{
|
|
458
445
|
name: "title",
|
|
@@ -554,9 +541,9 @@ var createTableAction = async ({
|
|
|
554
541
|
const spaceId = customSpaceId ?? getCurrentSpaceId();
|
|
555
542
|
const tableId = ulid2();
|
|
556
543
|
const now = /* @__PURE__ */ new Date();
|
|
557
|
-
const nowIso =
|
|
544
|
+
const nowIso = formatISO(now);
|
|
558
545
|
const dbKey = metaKey(userId, tableId);
|
|
559
|
-
const defaultTitle =
|
|
546
|
+
const defaultTitle = runtime_default.t("space:newTable", {
|
|
560
547
|
defaultValue: "\u65B0\u5EFA\u8868\u683C"
|
|
561
548
|
});
|
|
562
549
|
const title = asOptionalTrimmedString(customTitle) ?? defaultTitle;
|
|
@@ -924,7 +911,7 @@ var addRow = createTableCommand(
|
|
|
924
911
|
});
|
|
925
912
|
try {
|
|
926
913
|
const { dbKey, rowId } = rowKey.create(tenantId, tableId);
|
|
927
|
-
const nowIso =
|
|
914
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
928
915
|
const row = {
|
|
929
916
|
dbKey,
|
|
930
917
|
tenantId,
|
|
@@ -985,7 +972,7 @@ var deleteRow = createTableCommand(
|
|
|
985
972
|
if (!row) {
|
|
986
973
|
throw new Error(`\u5F53\u524D\u8868\u4E2D\u627E\u4E0D\u5230\u8981\u5220\u9664\u7684\u884C\uFF1A${dbKey}`);
|
|
987
974
|
}
|
|
988
|
-
const nowIso =
|
|
975
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
989
976
|
const tombstoneRow = {
|
|
990
977
|
...row,
|
|
991
978
|
deletedAt: nowIso,
|
|
@@ -1063,7 +1050,7 @@ var addColumn = createTableCommand(
|
|
|
1063
1050
|
const result = addColumnToMeta(
|
|
1064
1051
|
meta,
|
|
1065
1052
|
{ columnName },
|
|
1066
|
-
{ id: ulid3(), nowIso:
|
|
1053
|
+
{ id: ulid3(), nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1067
1054
|
);
|
|
1068
1055
|
if (!result.ok) {
|
|
1069
1056
|
throw new Error(result.error);
|
|
@@ -1104,7 +1091,7 @@ var deleteColumn = createTableCommand(
|
|
|
1104
1091
|
meta,
|
|
1105
1092
|
state.rows,
|
|
1106
1093
|
{ columnName },
|
|
1107
|
-
{ nowIso:
|
|
1094
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1108
1095
|
);
|
|
1109
1096
|
if (!result.ok) {
|
|
1110
1097
|
throw new Error(result.error);
|
|
@@ -1146,7 +1133,7 @@ var reorderColumn = createTableCommand(
|
|
|
1146
1133
|
const result = reorderColumnInMeta(
|
|
1147
1134
|
meta,
|
|
1148
1135
|
{ fromIndex, toIndex },
|
|
1149
|
-
{ nowIso:
|
|
1136
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1150
1137
|
);
|
|
1151
1138
|
if (!result.ok) {
|
|
1152
1139
|
throw new Error(result.error);
|
|
@@ -1187,7 +1174,7 @@ var renameColumnLabel = createTableCommand(
|
|
|
1187
1174
|
const result = renameColumnLabelInMeta(
|
|
1188
1175
|
meta,
|
|
1189
1176
|
{ columnId, label: newLabel },
|
|
1190
|
-
{ nowIso:
|
|
1177
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1191
1178
|
);
|
|
1192
1179
|
if (!result.ok) {
|
|
1193
1180
|
throw new Error(result.error);
|
|
@@ -1225,7 +1212,7 @@ var updateColumnWidth = createTableCommand(
|
|
|
1225
1212
|
const result = updateColumnWidthInMeta(
|
|
1226
1213
|
meta,
|
|
1227
1214
|
{ columnId, width },
|
|
1228
|
-
{ nowIso:
|
|
1215
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1229
1216
|
);
|
|
1230
1217
|
if (!result.ok) {
|
|
1231
1218
|
throw new Error(result.error);
|
|
@@ -1263,7 +1250,7 @@ var addColumnOption = createTableCommand(
|
|
|
1263
1250
|
const result = addColumnOptionInMeta(
|
|
1264
1251
|
meta,
|
|
1265
1252
|
{ columnId, option },
|
|
1266
|
-
{ nowIso:
|
|
1253
|
+
{ nowIso: formatISO(/* @__PURE__ */ new Date()) }
|
|
1267
1254
|
);
|
|
1268
1255
|
if (!result.ok) {
|
|
1269
1256
|
throw new Error(result.error);
|
|
@@ -1305,7 +1292,7 @@ var renameTable = createTableCommand(
|
|
|
1305
1292
|
if (!meta || meta.tenantId !== tenantId || meta.tableId !== tableId) {
|
|
1306
1293
|
throw new Error("\u5F53\u524D\u6CA1\u6709\u52A0\u8F7D\u5BF9\u5E94\u7684\u8868\u5B9A\u4E49");
|
|
1307
1294
|
}
|
|
1308
|
-
const nowIso =
|
|
1295
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1309
1296
|
setState((s) => ({ ...s, error: null }));
|
|
1310
1297
|
try {
|
|
1311
1298
|
if (dispatch) {
|
|
@@ -1346,7 +1333,7 @@ var updateTableIcon = createTableCommand(
|
|
|
1346
1333
|
if (!meta || meta.tenantId !== tenantId || meta.tableId !== tableId) {
|
|
1347
1334
|
throw new Error("\u5F53\u524D\u6CA1\u6709\u52A0\u8F7D\u5BF9\u5E94\u7684\u8868\u5B9A\u4E49");
|
|
1348
1335
|
}
|
|
1349
|
-
const nowIso =
|
|
1336
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1350
1337
|
setState((s) => ({ ...s, error: null }));
|
|
1351
1338
|
try {
|
|
1352
1339
|
if (dispatch) {
|
|
@@ -1384,7 +1371,7 @@ var updateCell = createTableCommand(
|
|
|
1384
1371
|
const { dbKey, columnName, value } = args;
|
|
1385
1372
|
setState((s) => ({ ...s, error: null }));
|
|
1386
1373
|
try {
|
|
1387
|
-
const nowIso =
|
|
1374
|
+
const nowIso = formatISO(/* @__PURE__ */ new Date());
|
|
1388
1375
|
if (dispatch) {
|
|
1389
1376
|
await safeDispatch(
|
|
1390
1377
|
dispatch,
|
|
@@ -1453,11 +1440,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1453
1440
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1454
1441
|
},
|
|
1455
1442
|
file: async (key, { thunkAPI }) => {
|
|
1456
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1443
|
+
const { deleteFileAction } = await import("./deleteFile-6JWDDRVP.js");
|
|
1457
1444
|
await deleteFileAction(key, thunkAPI);
|
|
1458
1445
|
},
|
|
1459
1446
|
image: async (key, { thunkAPI }) => {
|
|
1460
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1447
|
+
const { deleteFileAction } = await import("./deleteFile-6JWDDRVP.js");
|
|
1461
1448
|
await deleteFileAction(key, thunkAPI);
|
|
1462
1449
|
},
|
|
1463
1450
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -2090,18 +2077,191 @@ var deleteMultipleContentAction = async (input, thunkAPI) => {
|
|
|
2090
2077
|
};
|
|
2091
2078
|
};
|
|
2092
2079
|
|
|
2080
|
+
// packages/create/space/content/spaceFileVersions.ts
|
|
2081
|
+
var normalizeFileName = (name) => typeof name === "string" ? name.trim().normalize("NFC") : "";
|
|
2082
|
+
var versionsOf = (entryKey, entry) => {
|
|
2083
|
+
if (Array.isArray(entry.versions) && entry.versions.length > 0) {
|
|
2084
|
+
return entry.versions.filter((v) => v && typeof v.fileKey === "string");
|
|
2085
|
+
}
|
|
2086
|
+
return [
|
|
2087
|
+
{
|
|
2088
|
+
fileKey: entry.contentKey || entryKey,
|
|
2089
|
+
sha256: entry.sha256 || "",
|
|
2090
|
+
size: typeof entry.fileSize === "number" ? entry.fileSize : 0,
|
|
2091
|
+
uploadedAt: typeof entry.createdAt === "number" ? entry.createdAt : 0
|
|
2092
|
+
}
|
|
2093
|
+
];
|
|
2094
|
+
};
|
|
2095
|
+
var findSameNameFileEntries = (contents, originalName) => {
|
|
2096
|
+
const target = normalizeFileName(originalName);
|
|
2097
|
+
if (!target || !contents) return [];
|
|
2098
|
+
return Object.entries(contents).filter(([, value]) => Boolean(value)).map(([entryKey, value]) => ({ entryKey, entry: value })).filter(
|
|
2099
|
+
({ entry }) => entry.type === "file" && normalizeFileName(entry.originalName ?? entry.title) === target
|
|
2100
|
+
);
|
|
2101
|
+
};
|
|
2102
|
+
var sortVersions = (versions) => [...versions].sort(
|
|
2103
|
+
(a, b) => a.uploadedAt - b.uploadedAt || a.fileKey.localeCompare(b.fileKey)
|
|
2104
|
+
);
|
|
2105
|
+
var mergeVersions = (groups) => {
|
|
2106
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
2107
|
+
for (const { entryKey, entry } of groups) {
|
|
2108
|
+
for (const v of versionsOf(entryKey, entry)) {
|
|
2109
|
+
const prev = byKey.get(v.fileKey);
|
|
2110
|
+
if (!prev || !prev.sha256 && v.sha256) byKey.set(v.fileKey, v);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
return sortVersions([...byKey.values()]);
|
|
2114
|
+
};
|
|
2115
|
+
var planSpaceFileUpload = (contents, originalName, sha256) => {
|
|
2116
|
+
const same = findSameNameFileEntries(contents, originalName);
|
|
2117
|
+
if (same.length === 0) return { kind: "new_file" };
|
|
2118
|
+
const primary = pickPrimary(same);
|
|
2119
|
+
const current = primary.entry.contentKey || primary.entryKey;
|
|
2120
|
+
const versions = mergeVersions(same);
|
|
2121
|
+
const currentVersion = versions.find((v) => v.fileKey === current);
|
|
2122
|
+
if (currentVersion?.sha256 && currentVersion.sha256 === sha256) {
|
|
2123
|
+
return { kind: "unchanged", entryKey: primary.entryKey, currentKey: current };
|
|
2124
|
+
}
|
|
2125
|
+
const older = versions.find((v) => v.sha256 && v.sha256 === sha256);
|
|
2126
|
+
if (older) {
|
|
2127
|
+
return { kind: "restore_existing", entryKey: primary.entryKey, versionKey: older.fileKey };
|
|
2128
|
+
}
|
|
2129
|
+
return { kind: "new_version", entryKey: primary.entryKey };
|
|
2130
|
+
};
|
|
2131
|
+
var pickPrimary = (same) => [...same].sort((a, b) => {
|
|
2132
|
+
const at = Math.max(...versionsOf(a.entryKey, a.entry).map((v) => v.uploadedAt));
|
|
2133
|
+
const bt = Math.max(...versionsOf(b.entryKey, b.entry).map((v) => v.uploadedAt));
|
|
2134
|
+
return bt - at || b.entryKey.localeCompare(a.entryKey);
|
|
2135
|
+
})[0];
|
|
2136
|
+
var buildVersionedEntryPatch = (input) => {
|
|
2137
|
+
const { same, extraVersion, now } = input;
|
|
2138
|
+
const versions = mergeVersions(
|
|
2139
|
+
extraVersion ? [...same, { entryKey: extraVersion.fileKey, entry: { versions: [extraVersion] } }] : same
|
|
2140
|
+
);
|
|
2141
|
+
const currentKey = input.currentKey ?? versions[versions.length - 1].fileKey;
|
|
2142
|
+
const current = versions.find((v) => v.fileKey === currentKey);
|
|
2143
|
+
if (!current) throw new Error(`Version ${currentKey} not found for this file.`);
|
|
2144
|
+
const template = same.length > 0 ? pickPrimary(same).entry : {};
|
|
2145
|
+
const patch2 = {};
|
|
2146
|
+
for (const { entryKey } of same) {
|
|
2147
|
+
if (entryKey !== currentKey) patch2[entryKey] = null;
|
|
2148
|
+
}
|
|
2149
|
+
patch2[currentKey] = {
|
|
2150
|
+
...template,
|
|
2151
|
+
contentKey: currentKey,
|
|
2152
|
+
currentVersionKey: currentKey,
|
|
2153
|
+
fileSize: current.size,
|
|
2154
|
+
versions,
|
|
2155
|
+
updatedAt: now,
|
|
2156
|
+
...input.restoredFrom ? { restoredFromVersionKey: input.restoredFrom } : {}
|
|
2157
|
+
};
|
|
2158
|
+
return patch2;
|
|
2159
|
+
};
|
|
2160
|
+
var sha256Hex = async (file) => {
|
|
2161
|
+
const digest = await crypto.subtle.digest("SHA-256", await file.arrayBuffer());
|
|
2162
|
+
return Array.from(new Uint8Array(digest)).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2093
2165
|
// packages/create/space/content/uploadAndAddFileToSpaceAction.ts
|
|
2094
|
-
var
|
|
2095
|
-
|
|
2166
|
+
var uploadQueues = /* @__PURE__ */ new Map();
|
|
2167
|
+
var serialize = (key, task) => {
|
|
2168
|
+
const prev = uploadQueues.get(key) ?? Promise.resolve();
|
|
2169
|
+
const next = prev.catch(() => void 0).then(task);
|
|
2170
|
+
uploadQueues.set(key, next);
|
|
2171
|
+
void next.finally(() => {
|
|
2172
|
+
if (uploadQueues.get(key) === next) uploadQueues.delete(key);
|
|
2173
|
+
}).catch(() => void 0);
|
|
2174
|
+
return next;
|
|
2175
|
+
};
|
|
2176
|
+
var readSpaceOrNull = async (dispatch, spaceId) => {
|
|
2177
|
+
try {
|
|
2178
|
+
return await dispatch(read({ dbKey: createSpaceKey.space(spaceId) })).unwrap() ?? null;
|
|
2179
|
+
} catch {
|
|
2180
|
+
return null;
|
|
2181
|
+
}
|
|
2182
|
+
};
|
|
2183
|
+
var reconcileSameNameEntries = async (thunkAPI, spaceId, originalName, options = {}) => {
|
|
2184
|
+
let updated = await reconcileOnce(thunkAPI, spaceId, originalName, options);
|
|
2185
|
+
for (let attempt = 0; attempt < 2 && updated; attempt += 1) {
|
|
2186
|
+
const same = findSameNameFileEntries(updated.contents, originalName);
|
|
2187
|
+
const keys = new Set(mergeVersions(same).map((v) => v.fileKey));
|
|
2188
|
+
const missingOwn = options.extraVersion && !keys.has(options.extraVersion.fileKey);
|
|
2189
|
+
if (same.length <= 1 && !missingOwn) break;
|
|
2190
|
+
const fresh = await readSpaceOrNull(thunkAPI.dispatch, spaceId);
|
|
2191
|
+
const freshSame = findSameNameFileEntries(fresh?.contents, originalName);
|
|
2192
|
+
const freshKeys = new Set(mergeVersions(freshSame).map((v) => v.fileKey));
|
|
2193
|
+
const stillMissing = options.extraVersion && !freshKeys.has(options.extraVersion.fileKey);
|
|
2194
|
+
if (freshSame.length <= 1 && !stillMissing) {
|
|
2195
|
+
updated = fresh;
|
|
2196
|
+
break;
|
|
2197
|
+
}
|
|
2198
|
+
updated = await reconcileOnce(thunkAPI, spaceId, originalName, {
|
|
2199
|
+
...stillMissing ? { extraVersion: options.extraVersion } : {}
|
|
2200
|
+
});
|
|
2201
|
+
}
|
|
2202
|
+
return updated;
|
|
2203
|
+
};
|
|
2204
|
+
var reconcileOnce = async (thunkAPI, spaceId, originalName, options = {}) => {
|
|
2096
2205
|
const { dispatch, getState } = thunkAPI;
|
|
2097
|
-
const
|
|
2098
|
-
|
|
2206
|
+
const spaceData = await readSpaceOrNull(dispatch, spaceId);
|
|
2207
|
+
if (!spaceData) return null;
|
|
2208
|
+
checkSpaceMembership(spaceData, selectIdentityUserId(getState()));
|
|
2209
|
+
const same = findSameNameFileEntries(spaceData.contents, originalName);
|
|
2210
|
+
if (same.length === 0 && !options.extraVersion) return spaceData;
|
|
2211
|
+
const contentsPatch = buildVersionedEntryPatch({ same, now: Date.now(), ...options });
|
|
2212
|
+
return await dispatch(
|
|
2213
|
+
patch({
|
|
2214
|
+
dbKey: createSpaceKey.space(spaceId),
|
|
2215
|
+
changes: {
|
|
2216
|
+
contents: contentsPatch,
|
|
2217
|
+
updatedAt: Date.now(),
|
|
2218
|
+
...localSpaceAuthorityPatchStamp(spaceData)
|
|
2219
|
+
}
|
|
2220
|
+
})
|
|
2221
|
+
).unwrap();
|
|
2222
|
+
};
|
|
2223
|
+
var uploadAndAddFileToSpaceAction = async (payload, thunkAPI) => {
|
|
2224
|
+
const { spaceId, file } = payload;
|
|
2225
|
+
const userId = selectIdentityUserId(thunkAPI.getState());
|
|
2099
2226
|
if (!userId) {
|
|
2100
|
-
|
|
2227
|
+
throw new Error("Cannot upload a file to a space without an authenticated user.");
|
|
2101
2228
|
}
|
|
2229
|
+
return serialize(
|
|
2230
|
+
`${spaceId}\0${file.name}`,
|
|
2231
|
+
() => uploadOnce(payload, thunkAPI, userId)
|
|
2232
|
+
);
|
|
2233
|
+
};
|
|
2234
|
+
var uploadOnce = async (payload, thunkAPI, userId) => {
|
|
2235
|
+
const { spaceId, file, categoryId } = payload;
|
|
2236
|
+
const { dispatch } = thunkAPI;
|
|
2102
2237
|
try {
|
|
2238
|
+
const sha256 = await sha256Hex(file);
|
|
2239
|
+
const existingSpace = await readSpaceOrNull(dispatch, spaceId);
|
|
2240
|
+
const plan = existingSpace ? planSpaceFileUpload(existingSpace.contents, file.name, sha256) : { kind: "new_file" };
|
|
2241
|
+
if (plan.kind === "unchanged") {
|
|
2242
|
+
return {
|
|
2243
|
+
spaceId,
|
|
2244
|
+
updatedSpaceData: existingSpace,
|
|
2245
|
+
contentKey: plan.currentKey,
|
|
2246
|
+
fileId: plan.currentKey.split("-").slice(2).join("-"),
|
|
2247
|
+
outcome: "unchanged"
|
|
2248
|
+
};
|
|
2249
|
+
}
|
|
2250
|
+
if (plan.kind === "restore_existing") {
|
|
2251
|
+
const updated = await reconcileSameNameEntries(thunkAPI, spaceId, file.name, {
|
|
2252
|
+
currentKey: plan.versionKey,
|
|
2253
|
+
restoredFrom: plan.entryKey
|
|
2254
|
+
});
|
|
2255
|
+
return {
|
|
2256
|
+
spaceId,
|
|
2257
|
+
updatedSpaceData: updated ?? existingSpace,
|
|
2258
|
+
contentKey: plan.versionKey,
|
|
2259
|
+
fileId: plan.versionKey.split("-").slice(2).join("-"),
|
|
2260
|
+
outcome: "restored_existing"
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2103
2263
|
const id = ulid();
|
|
2104
|
-
const dbKey = fileKey.single(userId
|
|
2264
|
+
const dbKey = fileKey.single(userId, id);
|
|
2105
2265
|
const contentType = "file" /* FILE */;
|
|
2106
2266
|
const fileCategory = resolveFileCategory({
|
|
2107
2267
|
mimeType: file.type,
|
|
@@ -2116,17 +2276,28 @@ var uploadAndAddFileToSpaceAction = async (payload, thunkAPI) => {
|
|
|
2116
2276
|
}
|
|
2117
2277
|
const contentKey = fileMetadata.dbKey || dbKey;
|
|
2118
2278
|
const title = file.name;
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2121
|
-
contentKey,
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2279
|
+
const fileSize = asOptionalFiniteNumber(file.size);
|
|
2280
|
+
const version3 = {
|
|
2281
|
+
fileKey: contentKey,
|
|
2282
|
+
sha256,
|
|
2283
|
+
size: fileSize ?? 0,
|
|
2284
|
+
uploadedAt: Date.now()
|
|
2285
|
+
};
|
|
2286
|
+
const addAsNewFile = async () => {
|
|
2287
|
+
const result2 = await addContentAction({
|
|
2288
|
+
spaceId,
|
|
2289
|
+
contentKey,
|
|
2290
|
+
title,
|
|
2291
|
+
type: contentType,
|
|
2292
|
+
fileCategory,
|
|
2293
|
+
mimeType: file.type || void 0,
|
|
2294
|
+
fileSize,
|
|
2295
|
+
originalName: file.name,
|
|
2296
|
+
categoryId
|
|
2297
|
+
}, thunkAPI);
|
|
2298
|
+
return result2;
|
|
2299
|
+
};
|
|
2300
|
+
const result = plan.kind === "new_file" ? await addAsNewFile() : { spaceId, updatedSpaceData: existingSpace };
|
|
2130
2301
|
await dispatch(
|
|
2131
2302
|
patch({
|
|
2132
2303
|
dbKey: contentKey,
|
|
@@ -2135,20 +2306,54 @@ var uploadAndAddFileToSpaceAction = async (payload, thunkAPI) => {
|
|
|
2135
2306
|
spaceId,
|
|
2136
2307
|
fileCategory,
|
|
2137
2308
|
mimeType: file.type || void 0,
|
|
2138
|
-
fileSize
|
|
2309
|
+
fileSize,
|
|
2139
2310
|
originalName: file.name
|
|
2140
2311
|
}
|
|
2141
2312
|
})
|
|
2142
2313
|
).unwrap();
|
|
2314
|
+
const reconciled = await reconcileSameNameEntries(thunkAPI, spaceId, file.name, {
|
|
2315
|
+
extraVersion: version3,
|
|
2316
|
+
currentKey: contentKey
|
|
2317
|
+
}).catch((error) => {
|
|
2318
|
+
if (plan.kind === "new_version") throw error;
|
|
2319
|
+
console.warn("[uploadAndAddFileToSpace] version reconcile failed", error);
|
|
2320
|
+
return null;
|
|
2321
|
+
});
|
|
2143
2322
|
if (typeof window !== "undefined") {
|
|
2144
2323
|
window.dispatchEvent(new Event("nolo-user-data-updated"));
|
|
2145
2324
|
}
|
|
2146
|
-
return {
|
|
2325
|
+
return {
|
|
2326
|
+
...result,
|
|
2327
|
+
...reconciled ? { updatedSpaceData: reconciled } : {},
|
|
2328
|
+
contentKey,
|
|
2329
|
+
fileId: fileMetadata.id,
|
|
2330
|
+
outcome: plan.kind === "new_file" ? "new_file" : "new_version"
|
|
2331
|
+
};
|
|
2147
2332
|
} catch (error) {
|
|
2148
2333
|
console.error("Upload and add file error:", error);
|
|
2149
2334
|
throw error;
|
|
2150
2335
|
}
|
|
2151
2336
|
};
|
|
2337
|
+
var restoreSpaceFileVersionAction = async (input, thunkAPI) => {
|
|
2338
|
+
const { spaceId, contentKey, versionKey } = input;
|
|
2339
|
+
const spaceData = await readSpaceOrNull(thunkAPI.dispatch, spaceId);
|
|
2340
|
+
if (!spaceData) throw new Error(`\u65E0\u6CD5\u52A0\u8F7D\u7A7A\u95F4\u6570\u636E: ${spaceId}`);
|
|
2341
|
+
const entry = spaceData.contents?.[contentKey];
|
|
2342
|
+
if (!entry || entry.type !== "file" /* FILE */) throw new Error("File not found in space");
|
|
2343
|
+
const versions = Array.isArray(entry.versions) ? entry.versions : [];
|
|
2344
|
+
if (!versions.some((v) => v.fileKey === versionKey)) {
|
|
2345
|
+
throw new Error("Version not found for this file");
|
|
2346
|
+
}
|
|
2347
|
+
const name = entry.originalName ?? entry.title;
|
|
2348
|
+
const updated = await serialize(
|
|
2349
|
+
`${spaceId}\0${name}`,
|
|
2350
|
+
() => reconcileSameNameEntries(thunkAPI, spaceId, name, {
|
|
2351
|
+
currentKey: versionKey,
|
|
2352
|
+
restoredFrom: contentKey
|
|
2353
|
+
})
|
|
2354
|
+
);
|
|
2355
|
+
return { spaceId, updatedSpaceData: updated ?? spaceData, contentKey: versionKey };
|
|
2356
|
+
};
|
|
2152
2357
|
|
|
2153
2358
|
// packages/create/space/spaceCollapsedState.ts
|
|
2154
2359
|
var SPACE_COLLAPSE_STORAGE_PREFIX = "space-collapsed-categories:";
|
|
@@ -2343,6 +2548,16 @@ var uploadAndAddFileToSpace = createAsyncThunk(
|
|
|
2343
2548
|
return payload;
|
|
2344
2549
|
}
|
|
2345
2550
|
);
|
|
2551
|
+
var restoreSpaceFileVersion = createAsyncThunk(
|
|
2552
|
+
"space/restoreSpaceFileVersion",
|
|
2553
|
+
async (arg, thunkAPI) => {
|
|
2554
|
+
const payload = await restoreSpaceFileVersionAction(arg, thunkAPI);
|
|
2555
|
+
if (getCurrentSpaceIdRaw() === payload.spaceId) {
|
|
2556
|
+
updateCurrentSpaceIfMatch(payload.spaceId, payload.updatedSpaceData);
|
|
2557
|
+
}
|
|
2558
|
+
return payload;
|
|
2559
|
+
}
|
|
2560
|
+
);
|
|
2346
2561
|
var updateContentTitle = createAsyncThunk(
|
|
2347
2562
|
"space/updateContentTitle",
|
|
2348
2563
|
async (arg, thunkAPI) => {
|
|
@@ -2391,7 +2606,6 @@ var updateContentCategory = createAsyncThunk(
|
|
|
2391
2606
|
|
|
2392
2607
|
export {
|
|
2393
2608
|
fetchAndCacheTableRows,
|
|
2394
|
-
client_default,
|
|
2395
2609
|
getTableState,
|
|
2396
2610
|
loadTableRows,
|
|
2397
2611
|
addRow,
|
|
@@ -2409,6 +2623,7 @@ export {
|
|
|
2409
2623
|
deleteContentFromSpace,
|
|
2410
2624
|
deleteMultipleContent,
|
|
2411
2625
|
uploadAndAddFileToSpace,
|
|
2626
|
+
restoreSpaceFileVersion,
|
|
2412
2627
|
updateContentTitle,
|
|
2413
2628
|
updateContentPinned,
|
|
2414
2629
|
updateContentCategory
|