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,124 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildResponseGuidelines
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W4S6OTSC.js";
|
|
4
4
|
import {
|
|
5
5
|
getLocalProviderSecret
|
|
6
6
|
} from "./chunk-HS7MLR74.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-LPIYPEME.js";
|
|
11
|
-
import {
|
|
12
|
-
isGatewayHttpStatus
|
|
13
|
-
} from "./chunk-NF64D32W.js";
|
|
14
|
-
import {
|
|
15
|
-
createDrainExhaustedResponse,
|
|
16
|
-
isCoreDrainingBody,
|
|
17
|
-
normalizeNonNegativeMs,
|
|
18
|
-
parseRetryAfterHeaderMs
|
|
19
|
-
} from "./chunk-3L2WKC3W.js";
|
|
20
|
-
import {
|
|
21
|
-
slateToSimplifiedMarkdown
|
|
22
|
-
} from "./chunk-J4MOO56S.js";
|
|
23
|
-
import {
|
|
24
|
-
waitForAbortableDelay
|
|
25
|
-
} from "./chunk-N4G4PKQ6.js";
|
|
26
|
-
import {
|
|
27
|
-
extractCategorizedMentions
|
|
28
|
-
} from "./chunk-MEYIRKDN.js";
|
|
29
|
-
import {
|
|
30
|
-
fetchAndCacheMessages
|
|
31
|
-
} from "./chunk-YWIEQS6H.js";
|
|
8
|
+
performServerProxyFetchWithRetry
|
|
9
|
+
} from "./chunk-IN5UVHHP.js";
|
|
32
10
|
import {
|
|
33
11
|
shouldUseServerProxy
|
|
34
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UKZX3NHN.js";
|
|
35
13
|
import {
|
|
36
14
|
fetchServerSyncedCredential
|
|
37
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MDOZSLDE.js";
|
|
38
16
|
import {
|
|
39
|
-
buildSkillGuidancePromptBlock
|
|
40
|
-
|
|
41
|
-
resolveBuiltinSkillPage,
|
|
42
|
-
resolveSkillGraphFromRoots
|
|
43
|
-
} from "./chunk-JRQFUXY7.js";
|
|
17
|
+
buildSkillGuidancePromptBlock
|
|
18
|
+
} from "./chunk-RRQQAG7W.js";
|
|
44
19
|
import {
|
|
20
|
+
DELETE_SAFETY_RED_LINE,
|
|
45
21
|
buildIdentityBlock,
|
|
46
22
|
buildRuntimeGuidanceBlocks,
|
|
47
23
|
compileContextLayers,
|
|
48
24
|
detectDispatchIntentFromMessages,
|
|
49
|
-
normalizeChatCompletionsBodyForProvider,
|
|
50
25
|
resolveToolGuidedSections
|
|
51
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LAVSW2C2.js";
|
|
52
27
|
import {
|
|
53
28
|
convertMessagesToResponsesInput,
|
|
54
29
|
getUsageRequestOptions,
|
|
30
|
+
normalizeChatCompletionsBodyForProvider,
|
|
55
31
|
preserveAgentStateFields,
|
|
32
|
+
resolveReasoningReplayOptions,
|
|
33
|
+
shouldStripReasoningContentForOutbound,
|
|
56
34
|
stablePromptCacheKey
|
|
57
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-SJ3QFSQS.js";
|
|
36
|
+
import {
|
|
37
|
+
createFileCredentialBroker
|
|
38
|
+
} from "./chunk-PWRS2SU2.js";
|
|
39
|
+
import {
|
|
40
|
+
canonicalizeToolNames
|
|
41
|
+
} from "./chunk-IHPDK6UD.js";
|
|
58
42
|
import {
|
|
59
43
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
60
44
|
isAntigravityOAuthAgent
|
|
61
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TSBCYK5F.js";
|
|
62
46
|
import {
|
|
63
47
|
buildProviderAuthHeaders
|
|
64
|
-
} from "./chunk-
|
|
65
|
-
import {
|
|
66
|
-
estimateTokenCount
|
|
67
|
-
} from "./chunk-PSCNXBYA.js";
|
|
48
|
+
} from "./chunk-KY6GPQ7O.js";
|
|
68
49
|
import {
|
|
69
50
|
isOpenAiResponsesModel,
|
|
70
51
|
resolvePlatformChatCompletionsEndpoint,
|
|
71
52
|
resolvePlatformResponsesEndpoint
|
|
72
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-NN4UUYGB.js";
|
|
73
54
|
import {
|
|
74
55
|
clampReasoningEffort,
|
|
75
56
|
getModelConfig,
|
|
76
57
|
isModelSupportReasoningEffort
|
|
77
|
-
} from "./chunk-
|
|
78
|
-
import {
|
|
79
|
-
createFileCredentialBroker
|
|
80
|
-
} from "./chunk-HVURBGF3.js";
|
|
81
|
-
import {
|
|
82
|
-
toErrorMessage
|
|
83
|
-
} from "./chunk-HNMXYYJR.js";
|
|
84
|
-
import {
|
|
85
|
-
MEMORY_USE_GUIDANCE,
|
|
86
|
-
buildUserResponseLanguageContext,
|
|
87
|
-
wrapHistoricalSummaryWithReplayGuard
|
|
88
|
-
} from "./chunk-2GRGFCF6.js";
|
|
89
|
-
import {
|
|
90
|
-
canonicalizeToolNames
|
|
91
|
-
} from "./chunk-O6OSWFZQ.js";
|
|
92
|
-
import {
|
|
93
|
-
isDeepInfraKimiModel,
|
|
94
|
-
isFireworksKimiModel,
|
|
95
|
-
isPlatformMimoProviderModel,
|
|
96
|
-
resolveFireworksKimiModel
|
|
97
|
-
} from "./chunk-Q67DOFOO.js";
|
|
98
|
-
import {
|
|
99
|
-
createSpaceKey
|
|
100
|
-
} from "./chunk-UAD2WT54.js";
|
|
101
|
-
import {
|
|
102
|
-
read
|
|
103
|
-
} from "./chunk-VRTTFDBM.js";
|
|
104
|
-
import {
|
|
105
|
-
asTrimmedLowercaseString
|
|
106
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
107
|
-
import {
|
|
108
|
-
extractCustomId
|
|
109
|
-
} from "./chunk-M2EJHDJP.js";
|
|
110
|
-
import {
|
|
111
|
-
getRuntimeServerContext
|
|
112
|
-
} from "./chunk-UKWGR5SS.js";
|
|
113
|
-
import {
|
|
114
|
-
isAbortError
|
|
115
|
-
} from "./chunk-QOKAKDPE.js";
|
|
58
|
+
} from "./chunk-CGEK73JN.js";
|
|
116
59
|
import {
|
|
117
60
|
isRecord
|
|
118
61
|
} from "./chunk-KUG52IAP.js";
|
|
119
62
|
import {
|
|
120
63
|
asTrimmedString
|
|
121
64
|
} from "./chunk-3EUW3WEO.js";
|
|
65
|
+
import {
|
|
66
|
+
toErrorMessage
|
|
67
|
+
} from "./chunk-HNMXYYJR.js";
|
|
122
68
|
import {
|
|
123
69
|
API_ENDPOINTS
|
|
124
70
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -128,204 +74,20 @@ import {
|
|
|
128
74
|
import {
|
|
129
75
|
asOptionalTrimmedString
|
|
130
76
|
} from "./chunk-G3SUCT4W.js";
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
var loadContentsByKeys = async (keys, dispatch, preloaded) => {
|
|
147
|
-
const contentByKey = /* @__PURE__ */ new Map();
|
|
148
|
-
const uniqueKeys = Array.from(new Set(keys.filter(Boolean)));
|
|
149
|
-
await Promise.all(
|
|
150
|
-
uniqueKeys.map(async (dbKey) => {
|
|
151
|
-
if (preloaded?.has(dbKey)) {
|
|
152
|
-
const content = preloaded.get(dbKey);
|
|
153
|
-
if (content) contentByKey.set(dbKey, content);
|
|
154
|
-
return;
|
|
155
|
-
}
|
|
156
|
-
const builtin = resolveBuiltinSkillPage(dbKey);
|
|
157
|
-
if (builtin) {
|
|
158
|
-
contentByKey.set(dbKey, builtin);
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
try {
|
|
162
|
-
const content = await dispatch(read({ dbKey })).unwrap();
|
|
163
|
-
if (content) contentByKey.set(dbKey, content);
|
|
164
|
-
} catch {
|
|
165
|
-
}
|
|
166
|
-
})
|
|
167
|
-
);
|
|
168
|
-
return contentByKey;
|
|
169
|
-
};
|
|
170
|
-
var resolveReferenceAssets = async (references, dispatch) => {
|
|
171
|
-
if (!Array.isArray(references) || references.length === 0) {
|
|
172
|
-
return {
|
|
173
|
-
references: [],
|
|
174
|
-
referencedTools: [],
|
|
175
|
-
recommendedSkillTools: [],
|
|
176
|
-
recommendedSkillHints: [],
|
|
177
|
-
skillPromptPatches: [],
|
|
178
|
-
contentByKey: /* @__PURE__ */ new Map()
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
const entries = await Promise.all(
|
|
182
|
-
references.filter((ref) => ref?.dbKey).map(async (ref) => {
|
|
183
|
-
const builtin = resolveBuiltinSkillPage(ref.dbKey);
|
|
184
|
-
if (builtin) return { ref, content: builtin };
|
|
185
|
-
try {
|
|
186
|
-
const content = await dispatch(read({ dbKey: ref.dbKey })).unwrap();
|
|
187
|
-
return { ref, content };
|
|
188
|
-
} catch {
|
|
189
|
-
return { ref, content: null };
|
|
190
|
-
}
|
|
191
|
-
})
|
|
192
|
-
);
|
|
193
|
-
const contentByKey = /* @__PURE__ */ new Map();
|
|
194
|
-
const toolSet = /* @__PURE__ */ new Set();
|
|
195
|
-
const recommendedToolSet = /* @__PURE__ */ new Set();
|
|
196
|
-
const recommendedSkillHints = /* @__PURE__ */ new Set();
|
|
197
|
-
const skillPromptPatches = /* @__PURE__ */ new Set();
|
|
198
|
-
const normalizedReferences = [];
|
|
199
|
-
const hardSkillKeys = /* @__PURE__ */ new Set();
|
|
200
|
-
const softSkillKeys = /* @__PURE__ */ new Set();
|
|
201
|
-
for (const { ref, content } of entries) {
|
|
202
|
-
if (content) {
|
|
203
|
-
contentByKey.set(ref.dbKey, content);
|
|
204
|
-
}
|
|
205
|
-
const capabilities = extractRuntimePageCapabilities(content);
|
|
206
|
-
for (const tool of capabilities.directTools) {
|
|
207
|
-
toolSet.add(tool);
|
|
208
|
-
}
|
|
209
|
-
for (const tool of capabilities.hardSkillTools) {
|
|
210
|
-
toolSet.add(tool);
|
|
211
|
-
}
|
|
212
|
-
for (const hint of capabilities.softSkillHints) {
|
|
213
|
-
recommendedSkillHints.add(hint);
|
|
214
|
-
}
|
|
215
|
-
for (const patch of capabilities.promptPatches) {
|
|
216
|
-
skillPromptPatches.add(patch);
|
|
217
|
-
}
|
|
218
|
-
for (const skillKey of capabilities.hardSkillKeys) {
|
|
219
|
-
hardSkillKeys.add(skillKey);
|
|
220
|
-
}
|
|
221
|
-
for (const skillKey of capabilities.softSkillKeys) {
|
|
222
|
-
softSkillKeys.add(skillKey);
|
|
223
|
-
}
|
|
224
|
-
normalizedReferences.push({
|
|
225
|
-
...ref,
|
|
226
|
-
type: capabilities.shouldUpgradeReference ? "instruction" : ref.type
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
const resolvedSkillLinks = await resolveSkillGraphFromRoots({
|
|
230
|
-
roots: [
|
|
231
|
-
...Array.from(hardSkillKeys).map((identifier) => ({ identifier, mode: "required" })),
|
|
232
|
-
...Array.from(softSkillKeys).map((identifier) => ({ identifier, mode: "recommended" }))
|
|
233
|
-
],
|
|
234
|
-
loadPage: async (identifier) => {
|
|
235
|
-
const loaded = await loadContentsByKeys([identifier], dispatch, contentByKey);
|
|
236
|
-
return loaded.get(identifier) ?? null;
|
|
237
|
-
},
|
|
238
|
-
contentByKey
|
|
239
|
-
});
|
|
240
|
-
resolvedSkillLinks.contentByKey.forEach((value, key) => contentByKey.set(key, value));
|
|
241
|
-
for (const tool of resolvedSkillLinks.requiredTools) {
|
|
242
|
-
toolSet.add(tool);
|
|
243
|
-
}
|
|
244
|
-
for (const tool of resolvedSkillLinks.recommendedTools) {
|
|
245
|
-
recommendedToolSet.add(tool);
|
|
246
|
-
}
|
|
247
|
-
for (const hint of resolvedSkillLinks.recommendedSkillHints) {
|
|
248
|
-
recommendedSkillHints.add(hint);
|
|
249
|
-
}
|
|
250
|
-
for (const patch of resolvedSkillLinks.skillPromptPatches) {
|
|
251
|
-
skillPromptPatches.add(patch);
|
|
252
|
-
}
|
|
253
|
-
return {
|
|
254
|
-
references: normalizedReferences,
|
|
255
|
-
referencedTools: Array.from(toolSet),
|
|
256
|
-
recommendedSkillTools: Array.from(recommendedToolSet),
|
|
257
|
-
recommendedSkillHints: Array.from(recommendedSkillHints),
|
|
258
|
-
skillPromptPatches: Array.from(skillPromptPatches),
|
|
259
|
-
contentByKey
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
var resolveToolsFromKeys = async (keys, dispatch, preloaded) => {
|
|
263
|
-
if (!Array.isArray(keys) || keys.length === 0) {
|
|
264
|
-
return {
|
|
265
|
-
tools: [],
|
|
266
|
-
recommendedSkillTools: [],
|
|
267
|
-
recommendedSkillHints: [],
|
|
268
|
-
skillPromptPatches: [],
|
|
269
|
-
contentByKey: /* @__PURE__ */ new Map()
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
const contentByKey = await loadContentsByKeys(keys, dispatch, preloaded);
|
|
273
|
-
const toolSet = /* @__PURE__ */ new Set();
|
|
274
|
-
const recommendedToolSet = /* @__PURE__ */ new Set();
|
|
275
|
-
const recommendedSkillHints = /* @__PURE__ */ new Set();
|
|
276
|
-
const skillPromptPatches = /* @__PURE__ */ new Set();
|
|
277
|
-
const hardSkillKeys = /* @__PURE__ */ new Set();
|
|
278
|
-
const softSkillKeys = /* @__PURE__ */ new Set();
|
|
279
|
-
for (const content of contentByKey.values()) {
|
|
280
|
-
const capabilities = extractRuntimePageCapabilities(content);
|
|
281
|
-
for (const tool of [...capabilities.directTools, ...capabilities.hardSkillTools]) {
|
|
282
|
-
toolSet.add(tool);
|
|
283
|
-
}
|
|
284
|
-
for (const hint of capabilities.softSkillHints) {
|
|
285
|
-
recommendedSkillHints.add(hint);
|
|
286
|
-
}
|
|
287
|
-
for (const patch of capabilities.promptPatches) {
|
|
288
|
-
skillPromptPatches.add(patch);
|
|
289
|
-
}
|
|
290
|
-
for (const skillKey of capabilities.hardSkillKeys) {
|
|
291
|
-
hardSkillKeys.add(skillKey);
|
|
292
|
-
}
|
|
293
|
-
for (const skillKey of capabilities.softSkillKeys) {
|
|
294
|
-
softSkillKeys.add(skillKey);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
const resolvedSkillLinks = await resolveSkillGraphFromRoots({
|
|
298
|
-
roots: [
|
|
299
|
-
...Array.from(hardSkillKeys).map((identifier) => ({ identifier, mode: "required" })),
|
|
300
|
-
...Array.from(softSkillKeys).map((identifier) => ({ identifier, mode: "recommended" }))
|
|
301
|
-
],
|
|
302
|
-
loadPage: async (identifier) => {
|
|
303
|
-
const loaded = await loadContentsByKeys([identifier], dispatch, contentByKey);
|
|
304
|
-
return loaded.get(identifier) ?? null;
|
|
305
|
-
},
|
|
306
|
-
contentByKey
|
|
307
|
-
});
|
|
308
|
-
resolvedSkillLinks.contentByKey.forEach((value, key) => contentByKey.set(key, value));
|
|
309
|
-
for (const tool of resolvedSkillLinks.requiredTools) {
|
|
310
|
-
toolSet.add(tool);
|
|
311
|
-
}
|
|
312
|
-
for (const tool of resolvedSkillLinks.recommendedTools) {
|
|
313
|
-
recommendedToolSet.add(tool);
|
|
314
|
-
}
|
|
315
|
-
for (const hint of resolvedSkillLinks.recommendedSkillHints) {
|
|
316
|
-
recommendedSkillHints.add(hint);
|
|
317
|
-
}
|
|
318
|
-
for (const patch of resolvedSkillLinks.skillPromptPatches) {
|
|
319
|
-
skillPromptPatches.add(patch);
|
|
320
|
-
}
|
|
321
|
-
return {
|
|
322
|
-
tools: Array.from(toolSet),
|
|
323
|
-
recommendedSkillTools: Array.from(recommendedToolSet),
|
|
324
|
-
recommendedSkillHints: Array.from(recommendedSkillHints),
|
|
325
|
-
skillPromptPatches: Array.from(skillPromptPatches),
|
|
326
|
-
contentByKey
|
|
327
|
-
};
|
|
328
|
-
};
|
|
77
|
+
import {
|
|
78
|
+
isDeepInfraKimiModel,
|
|
79
|
+
isFireworksKimiModel,
|
|
80
|
+
isPlatformMimoProviderModel,
|
|
81
|
+
resolveFireworksKimiModel
|
|
82
|
+
} from "./chunk-SZC4REES.js";
|
|
83
|
+
import {
|
|
84
|
+
asTrimmedLowercaseString
|
|
85
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
86
|
+
import {
|
|
87
|
+
MEMORY_USE_GUIDANCE,
|
|
88
|
+
buildUserResponseLanguageContext,
|
|
89
|
+
wrapHistoricalSummaryWithReplayGuard
|
|
90
|
+
} from "./chunk-4VJAC32I.js";
|
|
329
91
|
|
|
330
92
|
// packages/agent-runtime/responsesConversationState.ts
|
|
331
93
|
function supportsResponsesConversationState(agent) {
|
|
@@ -648,6 +410,14 @@ ${contexts.userGlobalPrompt.trim()} ` : "";
|
|
|
648
410
|
const dialogSummarySection = contexts.dialogSummary?.trim() ? `--- \u5386\u53F2\u5BF9\u8BDD\u6458\u8981 ---
|
|
649
411
|
${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
650
412
|
return compileContextLayers([
|
|
413
|
+
// 删除安全红线:系统层最高优先级约束,位于所有层之前(含身份信息),
|
|
414
|
+
// owner 要求常驻「根本提示词」的最顶部(2026-09-26 批量误删事故)。
|
|
415
|
+
{
|
|
416
|
+
id: "delete-safety-red-line",
|
|
417
|
+
owner: "platform",
|
|
418
|
+
cacheScope: "static",
|
|
419
|
+
content: DELETE_SAFETY_RED_LINE
|
|
420
|
+
},
|
|
651
421
|
{ id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
|
|
652
422
|
{ id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
|
|
653
423
|
{ id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
|
|
@@ -659,6 +429,7 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
659
429
|
{ id: "agent-collaboration", owner: "platform", cacheScope: "session", content: toolSections.agentCollaboration },
|
|
660
430
|
{ id: "web-access", owner: "platform", cacheScope: "session", content: toolSections.webAccess },
|
|
661
431
|
{ id: "menu-usage", owner: "platform", cacheScope: "session", content: toolSections.menuUsage },
|
|
432
|
+
{ id: "show-interaction", owner: "platform", cacheScope: "session", content: toolSections.showInteraction },
|
|
662
433
|
{ id: "clarification-mode", owner: "platform", cacheScope: "session", content: clarifyingSection },
|
|
663
434
|
{ id: "knowledge-management", owner: "platform", cacheScope: "session", content: toolSections.knowledgeManagement },
|
|
664
435
|
{ id: "memory-capture", owner: "platform", cacheScope: "session", content: toolSections.memoryCapture },
|
|
@@ -741,14 +512,28 @@ var normalizeChatCompletionsContent = (content) => {
|
|
|
741
512
|
if (content == null) return null;
|
|
742
513
|
return JSON.stringify(content);
|
|
743
514
|
};
|
|
744
|
-
var sanitizeChatCompletionsMessage = (message) => {
|
|
515
|
+
var sanitizeChatCompletionsMessage = (message, options) => {
|
|
745
516
|
const sanitized = {
|
|
746
517
|
role: message.role,
|
|
747
518
|
content: normalizeChatCompletionsContent(message.content)
|
|
748
519
|
};
|
|
749
520
|
const name = asOptionalTrimmedString(message.name);
|
|
750
521
|
if (name) sanitized.name = name;
|
|
751
|
-
|
|
522
|
+
const shouldStripReasoning = shouldStripReasoningContentForOutbound(
|
|
523
|
+
options?.provider,
|
|
524
|
+
options?.model
|
|
525
|
+
);
|
|
526
|
+
return preserveAgentStateFields(message, sanitized, {
|
|
527
|
+
targetProvider: options?.provider,
|
|
528
|
+
targetModel: options?.model,
|
|
529
|
+
stripReasoningContent: shouldStripReasoning,
|
|
530
|
+
...options?.shapingCounts ? { shapingCounts: options.shapingCounts } : {},
|
|
531
|
+
...resolveReasoningReplayOptions(
|
|
532
|
+
options?.provider,
|
|
533
|
+
options?.model,
|
|
534
|
+
shouldStripReasoning
|
|
535
|
+
)
|
|
536
|
+
});
|
|
752
537
|
};
|
|
753
538
|
var buildRequestBody = (options) => {
|
|
754
539
|
const {
|
|
@@ -761,10 +546,15 @@ var buildRequestBody = (options) => {
|
|
|
761
546
|
frequency_penalty,
|
|
762
547
|
presence_penalty,
|
|
763
548
|
max_tokens,
|
|
764
|
-
reasoning_effort
|
|
549
|
+
reasoning_effort,
|
|
550
|
+
shapingCounts
|
|
765
551
|
} = options;
|
|
766
552
|
const cleanedMessages = messages.map(
|
|
767
|
-
(message) => sanitizeChatCompletionsMessage(message
|
|
553
|
+
(message) => sanitizeChatCompletionsMessage(message, {
|
|
554
|
+
provider: providerName,
|
|
555
|
+
model,
|
|
556
|
+
...shapingCounts ? { shapingCounts } : {}
|
|
557
|
+
})
|
|
768
558
|
);
|
|
769
559
|
const bodyData = {
|
|
770
560
|
model,
|
|
@@ -776,8 +566,13 @@ var buildRequestBody = (options) => {
|
|
|
776
566
|
endpoint: customProviderUrl
|
|
777
567
|
});
|
|
778
568
|
Object.assign(bodyData, usageRequestOptions);
|
|
779
|
-
|
|
780
|
-
|
|
569
|
+
const effectiveProviderForReasoning = providerName?.toLowerCase() === "openrouter" || customProviderUrl?.toLowerCase().includes("openrouter.ai") ? "openrouter" : providerName;
|
|
570
|
+
if (reasoning_effort && isModelSupportReasoningEffort(model, effectiveProviderForReasoning)) {
|
|
571
|
+
const clamped = clampReasoningEffort(
|
|
572
|
+
reasoning_effort,
|
|
573
|
+
effectiveProviderForReasoning,
|
|
574
|
+
model
|
|
575
|
+
);
|
|
781
576
|
if (clamped) {
|
|
782
577
|
bodyData.reasoning_effort = clamped;
|
|
783
578
|
}
|
|
@@ -791,7 +586,7 @@ var buildRequestBody = (options) => {
|
|
|
791
586
|
if (typeof max_tokens === "number") bodyData.max_tokens = max_tokens;
|
|
792
587
|
return bodyData;
|
|
793
588
|
};
|
|
794
|
-
var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts, stableMessages = [], prependSystemPrompt = true) => {
|
|
589
|
+
var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts, stableMessages = [], prependSystemPrompt = true, shapingCounts) => {
|
|
795
590
|
const resolvedModel = providerName === "fireworks" ? resolveFireworksKimiModel(agentConfig.model) : agentConfig.model ?? "";
|
|
796
591
|
let processedStable = [...stableMessages];
|
|
797
592
|
if (isClaudeModel(resolvedModel) && processedStable.length > 0) {
|
|
@@ -835,7 +630,8 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
|
|
|
835
630
|
frequency_penalty: agentConfig.frequency_penalty,
|
|
836
631
|
presence_penalty: agentConfig.presence_penalty,
|
|
837
632
|
max_tokens: agentConfig.max_tokens,
|
|
838
|
-
reasoning_effort: agentConfig.reasoning_effort
|
|
633
|
+
reasoning_effort: agentConfig.reasoning_effort,
|
|
634
|
+
...shapingCounts ? { shapingCounts } : {}
|
|
839
635
|
});
|
|
840
636
|
if (shouldInjectLlamaCppThinkingToggle(agentConfig)) {
|
|
841
637
|
requestBody.chat_template_kwargs = {
|
|
@@ -1057,94 +853,6 @@ var generateRequestBody = ({
|
|
|
1057
853
|
return applyImageConfigIfNeeded(baseBody, agentConfigForRequest, provider);
|
|
1058
854
|
};
|
|
1059
855
|
|
|
1060
|
-
// packages/ai/chat/serverProxyRetry.ts
|
|
1061
|
-
var DEFAULT_SERVER_PROXY_RETRY_AFTER_MS = 1500;
|
|
1062
|
-
var MAX_SERVER_PROXY_RETRIES = 2;
|
|
1063
|
-
var MAX_STATUS_RETRIES = 3;
|
|
1064
|
-
var MAX_SERVER_DRAIN_STATUS_RETRIES = 30;
|
|
1065
|
-
var readRetryableResponseBody = async (response) => {
|
|
1066
|
-
try {
|
|
1067
|
-
return await response.clone().json();
|
|
1068
|
-
} catch {
|
|
1069
|
-
return null;
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
var resolveServerProxyRetryAfterMs = (response, body) => parseRetryAfterHeaderMs(response.headers.get("Retry-After")) ?? normalizeNonNegativeMs(
|
|
1073
|
-
body?.retryAfterMs,
|
|
1074
|
-
DEFAULT_SERVER_PROXY_RETRY_AFTER_MS
|
|
1075
|
-
);
|
|
1076
|
-
var isRetryableServerProxyFetchError = (error) => {
|
|
1077
|
-
if (!error || isAbortError(error)) return false;
|
|
1078
|
-
const message = typeof error?.message === "string" ? error.message : String(error);
|
|
1079
|
-
return /ECONNREFUSED|ECONNRESET|EPIPE|socket hang up|network error|failed to fetch|fetch failed|connection closed|load failed|502|503|504/i.test(
|
|
1080
|
-
message
|
|
1081
|
-
);
|
|
1082
|
-
};
|
|
1083
|
-
var waitForServerProxyRetry = async (retryAfterMs, signal) => {
|
|
1084
|
-
const delayMs = normalizeNonNegativeMs(
|
|
1085
|
-
retryAfterMs,
|
|
1086
|
-
DEFAULT_SERVER_PROXY_RETRY_AFTER_MS
|
|
1087
|
-
);
|
|
1088
|
-
if (delayMs <= 0) return;
|
|
1089
|
-
await waitForAbortableDelay(delayMs, signal);
|
|
1090
|
-
};
|
|
1091
|
-
var performServerProxyFetchWithRetry = async ({
|
|
1092
|
-
execute,
|
|
1093
|
-
signal,
|
|
1094
|
-
logPrefix = "[fetchWithServerProxy]",
|
|
1095
|
-
onRetry
|
|
1096
|
-
}) => {
|
|
1097
|
-
let networkRetries = 0;
|
|
1098
|
-
let statusRetries = 0;
|
|
1099
|
-
while (true) {
|
|
1100
|
-
try {
|
|
1101
|
-
const response = await execute();
|
|
1102
|
-
const responseBody = response.status === 503 ? await readRetryableResponseBody(response) : null;
|
|
1103
|
-
const isCoreDraining = response.status === 503 && isCoreDrainingBody(responseBody);
|
|
1104
|
-
const maxStatusRetries = isCoreDraining ? MAX_SERVER_DRAIN_STATUS_RETRIES : MAX_STATUS_RETRIES;
|
|
1105
|
-
if (statusRetries < maxStatusRetries && isGatewayHttpStatus(response.status)) {
|
|
1106
|
-
statusRetries += 1;
|
|
1107
|
-
const retryAfterMs = resolveServerProxyRetryAfterMs(
|
|
1108
|
-
response,
|
|
1109
|
-
responseBody
|
|
1110
|
-
);
|
|
1111
|
-
console.warn(
|
|
1112
|
-
`${logPrefix} \u68C0\u6D4B\u5230${response.status}\u72B6\u6001\uFF0C${retryAfterMs}ms\u540E\u91CD\u8BD5...`
|
|
1113
|
-
);
|
|
1114
|
-
onRetry?.({
|
|
1115
|
-
attempt: statusRetries,
|
|
1116
|
-
maxAttempts: maxStatusRetries,
|
|
1117
|
-
delayMs: retryAfterMs
|
|
1118
|
-
});
|
|
1119
|
-
await waitForServerProxyRetry(retryAfterMs, signal);
|
|
1120
|
-
continue;
|
|
1121
|
-
}
|
|
1122
|
-
if (isCoreDraining) {
|
|
1123
|
-
console.warn(`${logPrefix} core_draining \u91CD\u8BD5\u8017\u5C3D\uFF0C\u8FD4\u56DE\u53CB\u597D\u63D0\u793A`);
|
|
1124
|
-
return createDrainExhaustedResponse(response);
|
|
1125
|
-
}
|
|
1126
|
-
return response;
|
|
1127
|
-
} catch (error) {
|
|
1128
|
-
if (networkRetries < MAX_SERVER_PROXY_RETRIES && isRetryableServerProxyFetchError(error)) {
|
|
1129
|
-
networkRetries += 1;
|
|
1130
|
-
const retryDelay = networkRetries * 1e3;
|
|
1131
|
-
console.warn(
|
|
1132
|
-
`${logPrefix} \u68C0\u6D4B\u5230\u7F51\u7EDC\u77AC\u65AD\uFF0C${retryDelay}ms\u540E\u91CD\u8BD5(\u7B2C${networkRetries}\u6B21)...`,
|
|
1133
|
-
error
|
|
1134
|
-
);
|
|
1135
|
-
onRetry?.({
|
|
1136
|
-
attempt: networkRetries,
|
|
1137
|
-
maxAttempts: MAX_SERVER_PROXY_RETRIES,
|
|
1138
|
-
delayMs: retryDelay
|
|
1139
|
-
});
|
|
1140
|
-
await waitForServerProxyRetry(retryDelay, signal);
|
|
1141
|
-
continue;
|
|
1142
|
-
}
|
|
1143
|
-
throw error;
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
856
|
// packages/ai/chat/resolveDirectRequestApiKey.ts
|
|
1149
857
|
var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\u65E0\u6CD5\u52A0\u8F7D\u672C\u5730 API \u5BC6\u94A5\u3002\u8BF7\u5728 Agent \u8BBE\u7F6E\u4E2D\u91CD\u65B0\u586B\u5199\u5BC6\u94A5\uFF0C\u6216\u786E\u8BA4\u672C\u673A\u51ED\u636E\u53EF\u7528\u3002";
|
|
1150
858
|
var DirectApiKeyResolutionError = class extends Error {
|
|
@@ -1208,7 +916,7 @@ var buildProxyPayload = (bodyData, api, agentConfig, dialogId) => {
|
|
|
1208
916
|
};
|
|
1209
917
|
};
|
|
1210
918
|
var fetchDirectly = async (params) => {
|
|
1211
|
-
const { api, agentConfig, bodyData, signal, currentServer, token } = params;
|
|
919
|
+
const { api, agentConfig, bodyData, signal, currentServer, token, dialogId } = params;
|
|
1212
920
|
try {
|
|
1213
921
|
const apiKey = await resolveDirectRequestApiKey(agentConfig, {
|
|
1214
922
|
syncFetcher: currentServer && token ? (ref) => fetchServerSyncedCredential({ currentServer, authToken: token }, ref) : void 0,
|
|
@@ -1228,7 +936,8 @@ var fetchDirectly = async (params) => {
|
|
|
1228
936
|
const authHeaders = buildProviderAuthHeaders({
|
|
1229
937
|
endpoint: api,
|
|
1230
938
|
apiKey: apiKey ?? "",
|
|
1231
|
-
apiKeyHeader: agentConfig.apiKeyHeader
|
|
939
|
+
apiKeyHeader: agentConfig.apiKeyHeader,
|
|
940
|
+
sessionId: dialogId || agentConfig.dbKey || agentConfig.key
|
|
1232
941
|
});
|
|
1233
942
|
return await fetch(api, {
|
|
1234
943
|
method: "POST",
|
|
@@ -1543,346 +1252,58 @@ function sanitizeOutboundBody(body) {
|
|
|
1543
1252
|
return next;
|
|
1544
1253
|
}
|
|
1545
1254
|
|
|
1546
|
-
// packages/
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
if (node.children && Array.isArray(node.children)) {
|
|
1552
|
-
return node.children.map(getNodeText).join("\n");
|
|
1553
|
-
}
|
|
1554
|
-
return "";
|
|
1555
|
-
}
|
|
1556
|
-
function slateToText(nodes) {
|
|
1557
|
-
if (!nodes || nodes.length === 0) {
|
|
1558
|
-
return "";
|
|
1559
|
-
}
|
|
1560
|
-
return nodes.map(getNodeText).join("\n\n");
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
// packages/ai/context/buildReferenceContext.ts
|
|
1564
|
-
var MAX_META_TEXT_LENGTH = 80;
|
|
1565
|
-
var DIALOG_REFERENCE_MESSAGE_LIMIT = 20;
|
|
1566
|
-
var DIALOG_REFERENCE_SNIPPET_CHARS = 1200;
|
|
1567
|
-
var DIALOG_HANDOFF_SNIPPET_CHARS = 360;
|
|
1568
|
-
var truncateMetaText = (value, max = MAX_META_TEXT_LENGTH) => {
|
|
1569
|
-
if (!value) return "";
|
|
1570
|
-
if (value.length <= max) return value;
|
|
1571
|
-
return `${value.slice(0, max - 3)}...`;
|
|
1255
|
+
// packages/ai/tools/stripModelConfirmationFlags.ts
|
|
1256
|
+
var CONFIRMATION_INPUT_KEYS = {
|
|
1257
|
+
self_evolution_requires_confirmation: "__confirmedSelfEvolution",
|
|
1258
|
+
agent_update_requires_confirmation: "__confirmedSelfEvolution",
|
|
1259
|
+
media_job_start_requires_confirmation: "__confirmedMediaJobStart"
|
|
1572
1260
|
};
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
return null;
|
|
1580
|
-
}
|
|
1581
|
-
};
|
|
1582
|
-
var buildMentionMetaMap = async (slateData, dispatch) => {
|
|
1583
|
-
const metaMap = /* @__PURE__ */ new Map();
|
|
1584
|
-
const mentions = extractCategorizedMentions(slateData);
|
|
1585
|
-
if (!mentions) return metaMap;
|
|
1586
|
-
const pageEntries = await Promise.all(
|
|
1587
|
-
(mentions.pages || []).map(async (pageId) => {
|
|
1588
|
-
const pageData = await readSafe(dispatch, pageId);
|
|
1589
|
-
if (!pageData) {
|
|
1590
|
-
return [`page:${pageId}`, { displayType: "page", metaParts: [] }];
|
|
1591
|
-
}
|
|
1592
|
-
if (pageData.type === "dialog" /* DIALOG */) {
|
|
1593
|
-
const agentCount = Array.isArray(pageData.cybots) ? pageData.cybots.length : 0;
|
|
1594
|
-
return [
|
|
1595
|
-
`page:${pageId}`,
|
|
1596
|
-
{
|
|
1597
|
-
displayType: "dialog",
|
|
1598
|
-
title: pageData.title,
|
|
1599
|
-
metaParts: [
|
|
1600
|
-
`agents=${agentCount}`,
|
|
1601
|
-
`updated=${pageData.updatedAt || pageData.updated_at || pageData.updated || "Unknown"}`
|
|
1602
|
-
]
|
|
1603
|
-
}
|
|
1604
|
-
];
|
|
1605
|
-
}
|
|
1606
|
-
const tags = pageData.tags && pageData.tags.length > 0 ? pageData.tags.slice(0, 5).join(", ") : "";
|
|
1607
|
-
return [
|
|
1608
|
-
`page:${pageId}`,
|
|
1609
|
-
{
|
|
1610
|
-
displayType: "page",
|
|
1611
|
-
title: pageData.title,
|
|
1612
|
-
metaParts: [
|
|
1613
|
-
pageData.spaceId ? `space=${pageData.spaceId}` : "",
|
|
1614
|
-
tags ? `tags=${tags}` : "",
|
|
1615
|
-
`updated=${pageData.updatedAt || pageData.updated_at || pageData.updated || "Unknown"}`
|
|
1616
|
-
].filter(Boolean)
|
|
1617
|
-
}
|
|
1618
|
-
];
|
|
1619
|
-
})
|
|
1620
|
-
);
|
|
1621
|
-
pageEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
|
|
1622
|
-
const agentEntries = await Promise.all(
|
|
1623
|
-
(mentions.agents || []).map(async (agentId) => {
|
|
1624
|
-
const agentData = await readSafe(dispatch, agentId);
|
|
1625
|
-
if (!agentData) {
|
|
1626
|
-
return [`agent:${agentId}`, { displayType: "agent", metaParts: [] }];
|
|
1627
|
-
}
|
|
1628
|
-
const desc = truncateMetaText(
|
|
1629
|
-
agentData.description || agentData.introduction || ""
|
|
1630
|
-
);
|
|
1631
|
-
return [
|
|
1632
|
-
`agent:${agentId}`,
|
|
1633
|
-
{
|
|
1634
|
-
displayType: "agent",
|
|
1635
|
-
title: agentData.name,
|
|
1636
|
-
metaParts: [
|
|
1637
|
-
`public=${agentData.isPublic ? "yes" : "no"}`,
|
|
1638
|
-
desc ? `desc=${desc}` : ""
|
|
1639
|
-
].filter(Boolean)
|
|
1640
|
-
}
|
|
1641
|
-
];
|
|
1642
|
-
})
|
|
1643
|
-
);
|
|
1644
|
-
agentEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
|
|
1645
|
-
const spaceEntries = await Promise.all(
|
|
1646
|
-
(mentions.spaces || []).map(async (spaceId) => {
|
|
1647
|
-
const spaceKey = createSpaceKey.space(spaceId);
|
|
1648
|
-
const spaceData = await readSafe(dispatch, spaceKey);
|
|
1649
|
-
if (!spaceData) {
|
|
1650
|
-
return [`space:${spaceId}`, { displayType: "space", metaParts: [] }];
|
|
1651
|
-
}
|
|
1652
|
-
const desc = truncateMetaText(spaceData.description || "");
|
|
1653
|
-
const categoriesCount = Object.keys(spaceData.categories || {}).length;
|
|
1654
|
-
const contentsCount = Object.keys(spaceData.contents || {}).length;
|
|
1655
|
-
return [
|
|
1656
|
-
`space:${spaceId}`,
|
|
1657
|
-
{
|
|
1658
|
-
displayType: "space",
|
|
1659
|
-
title: spaceData.name,
|
|
1660
|
-
metaParts: [
|
|
1661
|
-
desc ? `desc=${desc}` : "",
|
|
1662
|
-
`categories=${categoriesCount}`,
|
|
1663
|
-
`contents=${contentsCount}`
|
|
1664
|
-
].filter(Boolean)
|
|
1665
|
-
}
|
|
1666
|
-
];
|
|
1667
|
-
})
|
|
1668
|
-
);
|
|
1669
|
-
spaceEntries.forEach((entry) => metaMap.set(entry[0], entry[1]));
|
|
1670
|
-
return metaMap;
|
|
1671
|
-
};
|
|
1672
|
-
var buildInlineMention = (node, metaMap) => {
|
|
1673
|
-
const resourceType = node.resourceType || "unknown";
|
|
1674
|
-
const resourceId = node.resourceId || "unknown";
|
|
1675
|
-
const key = `${resourceType}:${resourceId}`;
|
|
1676
|
-
const meta = metaMap.get(key);
|
|
1677
|
-
const label = meta?.title || node.label || resourceId || "mention";
|
|
1678
|
-
const displayType = meta?.displayType || resourceType;
|
|
1679
|
-
const metaParts = meta?.metaParts ?? [];
|
|
1680
|
-
const idPart = resourceType === "tool" ? `tool=${resourceId}` : `dbkey=${resourceId}`;
|
|
1681
|
-
const metaSuffix = metaParts.length ? ` | ${metaParts.join(" | ")}` : "";
|
|
1682
|
-
return `@${label}(${displayType} | ${idPart}${metaSuffix})`;
|
|
1683
|
-
};
|
|
1684
|
-
var clipReferenceText = (value, max) => {
|
|
1685
|
-
const raw = typeof value === "string" ? value : value == null ? "" : JSON.stringify(value);
|
|
1686
|
-
return clipMultilineText(raw, max);
|
|
1687
|
-
};
|
|
1688
|
-
var fetchDialogReference = async (dbKey, refContent, dispatch) => {
|
|
1689
|
-
const dialogConfig = refContent;
|
|
1690
|
-
const dialogTitle = dialogConfig.title || `Untitled Dialog (${dbKey})`;
|
|
1691
|
-
const dialogId = extractCustomId(dbKey) || dbKey.replace(/^dialog-/, "");
|
|
1692
|
-
const checkpoint = dialogConfig.runtimeCheckpoint || null;
|
|
1693
|
-
const summary = asTrimmedString(dialogConfig.summary);
|
|
1694
|
-
const messages = await dispatch(
|
|
1695
|
-
async (_dispatch, getState, { db }) => {
|
|
1696
|
-
const state = getState();
|
|
1697
|
-
const { currentToken: token, remoteServers } = getRuntimeServerContext(state);
|
|
1698
|
-
return await fetchAndCacheMessages({
|
|
1699
|
-
db,
|
|
1700
|
-
dialogId,
|
|
1701
|
-
limit: DIALOG_REFERENCE_MESSAGE_LIMIT,
|
|
1702
|
-
token,
|
|
1703
|
-
remoteServers: remoteServers.length > 0 ? remoteServers : void 0
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1261
|
+
function stripModelConfirmationFlags(value) {
|
|
1262
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) return value;
|
|
1263
|
+
return Object.fromEntries(
|
|
1264
|
+
Object.entries(value).filter(
|
|
1265
|
+
([key]) => !key.startsWith("__confirmed")
|
|
1266
|
+
)
|
|
1706
1267
|
);
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
if (Array.isArray(checkpoint.lastToolNames) && checkpoint.lastToolNames.length) {
|
|
1724
|
-
checkpointLines.push(`- lastToolNames: ${checkpoint.lastToolNames.join(", ")}`);
|
|
1725
|
-
}
|
|
1726
|
-
if (Array.isArray(checkpoint.toolSurface?.finalToolNames) && checkpoint.toolSurface.finalToolNames.length) {
|
|
1727
|
-
checkpointLines.push(`- availableToolNames: ${checkpoint.toolSurface.finalToolNames.join(", ")}`);
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
const recentToolEvidence = sortedMessages.filter((msg) => msg.role === "tool" || msg.toolName).slice(-3).map((msg) => {
|
|
1731
|
-
const label = msg.toolName ? `${msg.toolName}` : "tool";
|
|
1732
|
-
return `- ${label} id=${msg.id || "unknown"}: ${clipReferenceText(msg.content, DIALOG_HANDOFF_SNIPPET_CHARS) || "[empty]"}`;
|
|
1733
|
-
});
|
|
1734
|
-
const handoffLines = [
|
|
1735
|
-
`- Use this when continuing work, transferring to another Agent, comparing with the current task, or preparing a document/plan from the prior discussion.`,
|
|
1736
|
-
`- Current state source: ${checkpointLines.length ? "Runtime Checkpoint" : "summaries and recent transcript"}.`,
|
|
1737
|
-
summary ? `- Compressed background: passive summary is available below; treat it as lossy, not original wording.` : "",
|
|
1738
|
-
recentToolEvidence.length ? `- Recent tool evidence:
|
|
1739
|
-
${recentToolEvidence.join("\n")}` : `- Recent tool evidence: none loaded in the latest ${DIALOG_REFERENCE_MESSAGE_LIMIT} messages.`,
|
|
1740
|
-
`- For exact claims, old decisions, original wording, files/tools mentioned earlier, or anything not visible in the recent transcript, call searchDialogMessages with DB Key ${dbKey}.`
|
|
1741
|
-
].filter(Boolean);
|
|
1742
|
-
const referenceBody = [
|
|
1743
|
-
`Conversation Reference:`,
|
|
1744
|
-
`DB Key: ${dbKey}`,
|
|
1745
|
-
`Title: ${dialogTitle}`,
|
|
1746
|
-
`Status: ${dialogConfig.status || "unknown"}`,
|
|
1747
|
-
`Loaded Recent Messages: ${sortedMessages.length}`,
|
|
1748
|
-
`Conversation Handoff:
|
|
1749
|
-
${handoffLines.join("\n")}`,
|
|
1750
|
-
checkpointLines.length ? `Runtime Checkpoint:
|
|
1751
|
-
${checkpointLines.join("\n")}` : "",
|
|
1752
|
-
summary ? `Passive Summary (compressed history, not original wording):
|
|
1753
|
-
${wrapHistoricalSummaryWithReplayGuard(summary)}` : "",
|
|
1754
|
-
`Recent Transcript (original message excerpts, oldest to newest):
|
|
1755
|
-
${transcript || "[no recent messages loaded]"}`,
|
|
1756
|
-
[
|
|
1757
|
-
`Coverage Note: This reference intentionally loads only the latest ${DIALOG_REFERENCE_MESSAGE_LIMIT} messages plus summaries/checkpoint to control token load.`,
|
|
1758
|
-
`Original Message Lookup Policy: If the user asks for an exact old message, original wording, who said what, why a decision was made, early-history detail, file/tool evidence, failed attempts, or a comparison with prior work, use searchDialogMessages({ dialogKey: "${dbKey}", query: "..." }) before making a factual claim from this referenced conversation.`
|
|
1759
|
-
].join("\n")
|
|
1760
|
-
].filter(Boolean).join("\n\n");
|
|
1761
|
-
const tokenEstimate = estimateTokenCount(referenceBody);
|
|
1762
|
-
return `${referenceBody}
|
|
1763
|
-
|
|
1764
|
-
Token Load Estimate: ${tokenEstimate} tokens for this conversation reference.
|
|
1765
|
-
---
|
|
1766
|
-
|
|
1767
|
-
`;
|
|
1768
|
-
};
|
|
1769
|
-
var fetchTableReference = async (dbKey, refContent, dispatch) => {
|
|
1770
|
-
const tableMeta = refContent;
|
|
1771
|
-
const title = tableMeta.displayName || tableMeta.description || `Untitled Table (${dbKey})`;
|
|
1772
|
-
const { markdown: tableMd } = await dispatch(
|
|
1773
|
-
async (_dispatch, getState, { db }) => {
|
|
1774
|
-
const state = getState();
|
|
1775
|
-
const { currentToken: token, remoteServers } = getRuntimeServerContext(state);
|
|
1776
|
-
return await fetchAndSerializeTable(tableMeta, db, {
|
|
1777
|
-
token,
|
|
1778
|
-
remoteServers
|
|
1779
|
-
});
|
|
1780
|
-
}
|
|
1268
|
+
}
|
|
1269
|
+
var MODEL_DIALOG_BINDING_STRIPPED_TOOLS = /* @__PURE__ */ new Set([
|
|
1270
|
+
"mediaJobTool",
|
|
1271
|
+
"transcribe",
|
|
1272
|
+
"translate",
|
|
1273
|
+
"exportDocument",
|
|
1274
|
+
"readArtifact"
|
|
1275
|
+
]);
|
|
1276
|
+
var TRUSTED_ONLY_MODEL_INPUT_KEYS = /* @__PURE__ */ new Set(["confirmationToken", "expectedExecutionRevision"]);
|
|
1277
|
+
function stripModelToolArgs(canonicalToolName, value) {
|
|
1278
|
+
const base = stripModelConfirmationFlags(value);
|
|
1279
|
+
if (!base || typeof base !== "object" || Array.isArray(base)) return base;
|
|
1280
|
+
const withoutTrustedOnlyKeys = Object.fromEntries(
|
|
1281
|
+
Object.entries(base).filter(
|
|
1282
|
+
([key]) => !TRUSTED_ONLY_MODEL_INPUT_KEYS.has(key)
|
|
1283
|
+
)
|
|
1781
1284
|
);
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
return `Reference Item (Table):
|
|
1785
|
-
DB Key: ${dbKey}
|
|
1786
|
-
Title: ${title}
|
|
1787
|
-
Description: ${description}
|
|
1788
|
-
Tags: ${tags}
|
|
1789
|
-
Content (Markdown Table):
|
|
1790
|
-
|
|
1791
|
-
${tableMd}
|
|
1792
|
-
---
|
|
1793
|
-
|
|
1794
|
-
`;
|
|
1795
|
-
};
|
|
1796
|
-
var fetchSlateReference = async (dbKey, refContent, dispatch, options) => {
|
|
1797
|
-
if (!refContent?.slateData) return null;
|
|
1798
|
-
const title = refContent.title || `Untitled (${dbKey})`;
|
|
1799
|
-
let contentString;
|
|
1800
|
-
let contentType;
|
|
1801
|
-
const inlineMentionMeta = options.inlineMentionMeta ?? options.format === "simplified_markdown";
|
|
1802
|
-
switch (options.format) {
|
|
1803
|
-
case "text":
|
|
1804
|
-
contentType = "Plain Text";
|
|
1805
|
-
contentString = slateToText(refContent.slateData);
|
|
1806
|
-
break;
|
|
1807
|
-
case "simplified_markdown":
|
|
1808
|
-
contentType = "Simplified Markdown";
|
|
1809
|
-
if (inlineMentionMeta) {
|
|
1810
|
-
const metaMap = await buildMentionMetaMap(refContent.slateData, dispatch);
|
|
1811
|
-
contentString = slateToSimplifiedMarkdown(refContent.slateData, {
|
|
1812
|
-
mentionResolver: (node) => buildInlineMention(node, metaMap)
|
|
1813
|
-
});
|
|
1814
|
-
} else {
|
|
1815
|
-
contentString = slateToSimplifiedMarkdown(refContent.slateData);
|
|
1816
|
-
}
|
|
1817
|
-
break;
|
|
1818
|
-
case "json":
|
|
1819
|
-
default:
|
|
1820
|
-
contentType = "Slate JSON";
|
|
1821
|
-
contentString = JSON.stringify(refContent.slateData, null, 2);
|
|
1822
|
-
break;
|
|
1285
|
+
if (!MODEL_DIALOG_BINDING_STRIPPED_TOOLS.has(canonicalToolName)) {
|
|
1286
|
+
return withoutTrustedOnlyKeys;
|
|
1823
1287
|
}
|
|
1824
|
-
if (!
|
|
1825
|
-
return
|
|
1288
|
+
if (!withoutTrustedOnlyKeys || typeof withoutTrustedOnlyKeys !== "object" || Array.isArray(withoutTrustedOnlyKeys)) {
|
|
1289
|
+
return withoutTrustedOnlyKeys;
|
|
1826
1290
|
}
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
Content (${contentType}):
|
|
1834
|
-
${contentString}
|
|
1835
|
-
Tags: ${tags}
|
|
1836
|
-
Created At: ${createdAt}
|
|
1837
|
-
Updated At: ${updatedAt}
|
|
1838
|
-
---
|
|
1839
|
-
|
|
1840
|
-
`;
|
|
1841
|
-
};
|
|
1842
|
-
var fetchReferenceContents = async (references, dispatch, options = { format: "simplified_markdown" }) => {
|
|
1843
|
-
const result = /* @__PURE__ */ new Map();
|
|
1844
|
-
if (!references || references.length === 0) return result;
|
|
1845
|
-
const referencePromises = references.map(async (dbKey) => {
|
|
1846
|
-
try {
|
|
1847
|
-
const hasPreloaded = options.preloaded?.has(dbKey);
|
|
1848
|
-
const refContent = hasPreloaded ? options.preloaded?.get(dbKey) : await dispatch(read({
|
|
1849
|
-
dbKey
|
|
1850
|
-
})).unwrap();
|
|
1851
|
-
if (!refContent) return null;
|
|
1852
|
-
let formatted = null;
|
|
1853
|
-
if (refContent.type === "dialog" /* DIALOG */) {
|
|
1854
|
-
formatted = await fetchDialogReference(dbKey, refContent, dispatch);
|
|
1855
|
-
} else if (refContent.type === "table" /* TABLE */) {
|
|
1856
|
-
formatted = await fetchTableReference(dbKey, refContent, dispatch);
|
|
1857
|
-
} else {
|
|
1858
|
-
formatted = await fetchSlateReference(dbKey, refContent, dispatch, options);
|
|
1859
|
-
}
|
|
1860
|
-
if (formatted) return [dbKey, formatted];
|
|
1861
|
-
return null;
|
|
1862
|
-
} catch (error) {
|
|
1863
|
-
console.error(`Error fetching reference ${dbKey}:`, error);
|
|
1864
|
-
return null;
|
|
1865
|
-
}
|
|
1866
|
-
});
|
|
1867
|
-
const resolved = await Promise.all(referencePromises);
|
|
1868
|
-
resolved.forEach((item) => {
|
|
1869
|
-
if (item) result.set(item[0], item[1]);
|
|
1870
|
-
});
|
|
1871
|
-
return result;
|
|
1872
|
-
};
|
|
1291
|
+
return Object.fromEntries(
|
|
1292
|
+
Object.entries(withoutTrustedOnlyKeys).filter(
|
|
1293
|
+
([key]) => key !== "dialogId" && key !== "autoApproveCredits"
|
|
1294
|
+
)
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1873
1297
|
|
|
1874
1298
|
export {
|
|
1875
|
-
fetchReferenceContents,
|
|
1876
|
-
mergeReferences,
|
|
1877
|
-
resolveReferenceAssets,
|
|
1878
|
-
resolveToolsFromKeys,
|
|
1879
1299
|
selectResponsesConversationState,
|
|
1880
1300
|
updateResponsesConversationState,
|
|
1881
1301
|
isResponsesConversationStateRejection,
|
|
1882
1302
|
resolveClientWire,
|
|
1883
1303
|
resolveAgentCallPlan,
|
|
1884
1304
|
generateRequestBody,
|
|
1885
|
-
|
|
1305
|
+
CONFIRMATION_INPUT_KEYS,
|
|
1306
|
+
stripModelToolArgs,
|
|
1886
1307
|
performFetchRequest,
|
|
1887
1308
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
1888
1309
|
parseToolCallArguments,
|