nolo-cli 0.226.0-alpha.1 → 0.226.0
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 +3 -5
- package/{_executeModel-UE2NJPZD.js → _executeModel-IZ2MCXHO.js} +89 -83
- package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
- package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
- package/{agentDeleteCommand-SOI25WK7.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
- package/{agentEmailCommands-UGWQQNKM.js → agentEmailCommands-OFS477PV.js} +144 -133
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/agentListCommands-IQQHJSXP.js +644 -0
- package/{agentMachineCommands-M6IKO7XE.js → agentMachineCommands-NS65BEW7.js} +75 -66
- package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
- package/agentRecordCommands-4VE7CNLC.js +188 -0
- package/agentRunCommand-2MUXHKNW.js +223 -0
- package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
- package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
- package/{agentSlice-7PTNWEED.js → agentSlice-5VTAFG43.js} +19 -18
- package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
- package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
- package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
- package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
- package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
- package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
- package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
- package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
- package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
- package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
- package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-GSAS72AN.js → chunk-2T5BHLID.js} +2871 -1565
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
- package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
- package/{chunk-OWH2BLNU.js → chunk-3UNAGTBW.js} +32 -95
- package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
- package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
- package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
- package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
- package/chunk-4ZCTKB27.js +31 -0
- package/chunk-53W5BXLN.js +340 -0
- package/{chunk-TD6QCQ5G.js → chunk-5GRWWUB4.js} +4 -4
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
- package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
- package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
- package/chunk-6RSNVJGO.js +279 -0
- package/{chunk-BRW24CTE.js → chunk-6S6CZUXK.js} +42 -33
- package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
- package/{chunk-CVS5IMJ5.js → chunk-6XLWUNZB.js} +25 -25
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
- package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
- package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
- package/{chunk-FS3RA7D2.js → chunk-7HUHOCIY.js} +147 -162
- package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-VTW7VKZX.js → chunk-C4KX626C.js} +15 -15
- package/chunk-C5A54QS7.js +108 -0
- package/{chunk-4PMZVBDU.js → chunk-CHYYSFFM.js} +6 -6
- package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
- package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
- package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
- package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
- package/{chunk-5NC6A2RZ.js → chunk-DPAIQLAL.js} +105 -102
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
- package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
- package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
- package/chunk-FDZ2GBWO.js +166 -0
- package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
- package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
- package/{chunk-HYHIAM6T.js → chunk-HQVNO7FH.js} +66 -35
- package/chunk-HSWEFHFS.js +103 -0
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
- package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
- package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
- package/{chunk-TUIWP2LF.js → chunk-J2XZZXIH.js} +4 -4
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
- package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
- package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
- package/chunk-KK3FCYZM.js +647 -0
- package/{chunk-ZZ4M2I3R.js → chunk-KLD7K5FD.js} +349 -16
- package/{chunk-JIADJPUV.js → chunk-KMW5CRRM.js} +1564 -2955
- package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
- package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
- package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
- package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
- package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
- package/chunk-MFXJY44K.js +133 -0
- package/chunk-MVOZ22RZ.js +26 -0
- package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
- package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
- package/{chunk-HJAO2NAL.js → chunk-ODGSLWLO.js} +593 -370
- package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
- package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
- package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
- package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
- package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
- package/chunk-P27E22MA.js +203 -0
- package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
- package/{chunk-EVPIBQ5I.js → chunk-QUJKDFZW.js} +17 -17
- package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
- package/{chunk-X4OVEYPX.js → chunk-QYNABNNQ.js} +13 -13
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
- package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
- package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
- package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
- package/{chunk-X7YC2OHB.js → chunk-SBRJOYND.js} +723 -355
- package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
- package/chunk-SR4FE5VD.js +9 -0
- package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
- package/chunk-T3WSFTBS.js +62 -0
- package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
- package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
- package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
- package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
- package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
- package/{chunk-GS4OTYCH.js → chunk-UR7555FE.js} +9 -9
- package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
- package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
- package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
- package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
- package/chunk-VNALJT32.js +33394 -0
- package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
- package/chunk-WBSJAIZP.js +170 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/chunk-WVOZ35E4.js +1438 -0
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
- package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
- package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
- package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
- package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
- package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
- package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
- package/chunk-YUZ2DAIH.js +34 -0
- package/chunk-Z6YTCDU4.js +24 -0
- package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
- package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
- package/{commandRegistry-XSMTI5PG.js → commandRegistry-OKIWAJIS.js} +113 -101
- package/{contentThunks-S4NNC7R2.js → contentThunks-VF2DCU46.js} +41 -38
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
- package/{createAgentAutomationAction-TH7ZEACJ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
- package/{createDialogAction-SYZAYIIQ.js → createDialogAction-XYDQZETK.js} +42 -40
- package/{createPageAction-7Y4U6TXO.js → createPageAction-74S5RO7U.js} +46 -43
- package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
- package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
- package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
- package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
- package/{dialogSlice-O3RHDAWK.js → dialogSlice-XAUKSWZ4.js} +41 -38
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
- package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
- package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
- package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
- package/{docStore-PYNEODAH.js → docStore-ZZT2BEBU.js} +16 -15
- package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
- package/fetchMessages-TQEUZD7H.js +2 -2
- package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
- package/{handleSendMessageAction-Z43FP2E2.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
- package/{hostCredentialCreate-Y7YIGKP4.js → hostCredentialCreate-SNQT73H4.js} +131 -119
- package/index.js +56 -18
- package/keys-RWF7UCB4.js +1 -1
- package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
- package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
- package/{localRuntimeAdapter-ZLJONQZS.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
- package/{machineCommands-4ZLMRIA3.js → machineCommands-3O6Y27R4.js} +283 -348
- package/machineWsRunDispatch-5PFLR5XC.js +203 -0
- package/markdownToSlate-KIYM7B3P.js +8 -0
- package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-JBX6HNK6.js → projectArchive-X2EVXU3N.js} +47 -44
- package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
- package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
- package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
- package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
- package/{readlineWorkspace-WFPIAAAT.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
- package/rememberExplicit-CPAPONSI.js +15 -0
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
- package/{runAgentClientLoop-STI5TKDJ.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
- package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
- package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-A2WL5OOF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
- package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
- package/{tools-6NU5E6BN.js → tools-MIOCXKMG.js} +72 -68
- package/tuiRestart-ET3QISZ5.js +41 -0
- package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
- package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
- package/{updateDialogTitleAction-VMKU2Y67.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
- package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
- package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
- package/workContext-Y3ADAPZU.js +14 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
- package/agentListCommands-YBNOQ5T3.js +0 -991
- package/agentRecordCommands-3HL7Z4X6.js +0 -177
- package/agentRunCommand-C64A6MPL.js +0 -208
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-5ZMIIR23.js +0 -265
- package/chunk-652XYZGP.js +0 -352
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-QVBXJNZ2.js +0 -81
- package/chunk-QZI44GWV.js +0 -776
- package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
- package/machineWsRunDispatch-L7Z3ULDF.js +0 -192
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
- package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
- package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
- package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
- package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalizeToolName
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YLAHYLDQ.js";
|
|
4
4
|
|
|
5
5
|
// packages/ai/tools/toolExecutionSemantics.ts
|
|
6
6
|
var UNKNOWN_TOOL_EXECUTION_CONTRACT = {
|
|
@@ -38,6 +38,34 @@ var serverConfirmedHandoffStep = () => ({
|
|
|
38
38
|
durableWebForeground: false
|
|
39
39
|
});
|
|
40
40
|
var TOOL_EXECUTION_CONTRACT = Object.freeze({
|
|
41
|
+
listPlugins: serverPureRead(false),
|
|
42
|
+
configurePlugin: serverPureRead(false),
|
|
43
|
+
diagnosePlugin: serverPureRead(false),
|
|
44
|
+
setPluginEnabled: {
|
|
45
|
+
replay: "unsafe",
|
|
46
|
+
sideEffects: "mutation",
|
|
47
|
+
locality: "server",
|
|
48
|
+
interaction: "none",
|
|
49
|
+
concurrency: "exclusive",
|
|
50
|
+
durableWebForeground: false
|
|
51
|
+
},
|
|
52
|
+
listMcpConnections: serverPureRead(false),
|
|
53
|
+
listMcpTools: {
|
|
54
|
+
replay: "unsafe",
|
|
55
|
+
sideEffects: "observable",
|
|
56
|
+
locality: "server",
|
|
57
|
+
interaction: "none",
|
|
58
|
+
concurrency: "exclusive",
|
|
59
|
+
durableWebForeground: false
|
|
60
|
+
},
|
|
61
|
+
callMcpTool: {
|
|
62
|
+
replay: "unsafe",
|
|
63
|
+
sideEffects: "unknown",
|
|
64
|
+
locality: "server",
|
|
65
|
+
interaction: "confirm",
|
|
66
|
+
concurrency: "exclusive",
|
|
67
|
+
durableWebForeground: false
|
|
68
|
+
},
|
|
41
69
|
// Proven durable network reads. They execute on the server but touch external
|
|
42
70
|
// systems, so replay/cost semantics are intentionally not called "pure".
|
|
43
71
|
exa_search: serverExternalRead("read-only"),
|
|
@@ -125,6 +153,14 @@ var TOOL_EXECUTION_CONTRACT = Object.freeze({
|
|
|
125
153
|
concurrency: "safe",
|
|
126
154
|
durableWebForeground: false
|
|
127
155
|
},
|
|
156
|
+
searchFiles: {
|
|
157
|
+
replay: "idempotent",
|
|
158
|
+
sideEffects: "none",
|
|
159
|
+
locality: "device",
|
|
160
|
+
interaction: "none",
|
|
161
|
+
concurrency: "safe",
|
|
162
|
+
durableWebForeground: false
|
|
163
|
+
},
|
|
128
164
|
createDoc: {
|
|
129
165
|
replay: "unsafe",
|
|
130
166
|
sideEffects: "mutation",
|
|
@@ -1,57 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
|
|
3
|
-
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
4
|
-
normalizeAgentUpdateFieldList,
|
|
5
|
-
normalizePolicyLevelSetting,
|
|
6
|
-
normalizeSystemBuiltinSkills,
|
|
7
|
-
normalizeTonePresetSetting,
|
|
8
|
-
resolveUserEnabledSkills
|
|
9
|
-
} from "./chunk-GGKNJ42M.js";
|
|
10
1
|
import {
|
|
11
2
|
isSkillSummaryMarker
|
|
12
3
|
} from "./chunk-VF4K2QE6.js";
|
|
13
4
|
import {
|
|
14
5
|
setDialogExtraReferencesAction
|
|
15
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XDNXKFWF.js";
|
|
16
7
|
import {
|
|
17
8
|
fetchAndCacheTableRows
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
getActiveDialogKey
|
|
21
|
-
} from "./chunk-S2NTVGA2.js";
|
|
9
|
+
} from "./chunk-6XLWUNZB.js";
|
|
22
10
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunk-
|
|
11
|
+
resolveDialogRuntimeAgentKey
|
|
12
|
+
} from "./chunk-ODGSLWLO.js";
|
|
25
13
|
import {
|
|
26
14
|
createSpaceKey
|
|
27
15
|
} from "./chunk-UAD2WT54.js";
|
|
28
16
|
import {
|
|
29
17
|
selectById
|
|
30
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6MQWGA5F.js";
|
|
19
|
+
import {
|
|
20
|
+
require_react
|
|
21
|
+
} from "./chunk-RD3QLZQV.js";
|
|
31
22
|
import {
|
|
32
23
|
selectRuntimeSnapshot
|
|
33
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-OKPC4QNX.js";
|
|
34
25
|
import {
|
|
35
|
-
createAsyncThunk
|
|
36
|
-
|
|
37
|
-
} from "./chunk-7Z6EW7AH.js";
|
|
26
|
+
createAsyncThunk
|
|
27
|
+
} from "./chunk-247AAJRK.js";
|
|
38
28
|
import {
|
|
39
29
|
selectIdentityUserId
|
|
40
30
|
} from "./chunk-PXYBUFDB.js";
|
|
41
31
|
import {
|
|
42
32
|
isAgentSkillDisabled
|
|
43
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-DOK7GDRU.js";
|
|
44
34
|
import {
|
|
45
|
-
DEFAULT_SYSTEM_AGENT_CAPABILITIES,
|
|
46
35
|
listBuiltinSkills,
|
|
47
36
|
resolveBuiltinSkillByName
|
|
48
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RIMFTQMC.js";
|
|
49
38
|
import {
|
|
50
39
|
parseSkillDocProtocol
|
|
51
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AETZ7AD6.js";
|
|
52
41
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
isDialogRecordKeyForId,
|
|
43
|
+
parseDialogKey
|
|
44
|
+
} from "./chunk-OJKUU3LP.js";
|
|
55
45
|
import {
|
|
56
46
|
toErrorMessage
|
|
57
47
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -150,46 +140,73 @@ function waitForAbortableDelay(ms, signal) {
|
|
|
150
140
|
});
|
|
151
141
|
}
|
|
152
142
|
|
|
153
|
-
// packages/
|
|
154
|
-
var
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
[
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
)
|
|
161
|
-
|
|
162
|
-
(
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
const preferences = hasOwnEnabledSkills ? { enabledSkills, enabledPromptSkills } : { enabledPromptSkills };
|
|
166
|
-
return resolveUserEnabledSkills(preferences);
|
|
143
|
+
// packages/ai/tools/memoryToolContext.ts
|
|
144
|
+
var trimmed = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
|
|
145
|
+
function findLoadedDialogs(state, dialogId, exactKey) {
|
|
146
|
+
const entities = state?.db?.entities;
|
|
147
|
+
if (!entities || typeof entities !== "object") return [];
|
|
148
|
+
const matches = [];
|
|
149
|
+
for (const key of Object.keys(entities)) {
|
|
150
|
+
if (!isDialogRecordKeyForId(key, dialogId)) continue;
|
|
151
|
+
const record = entities[key];
|
|
152
|
+
if (!record || trimmed(record.id) !== dialogId) continue;
|
|
153
|
+
if (exactKey && key !== exactKey) continue;
|
|
154
|
+
matches.push({ key, record });
|
|
167
155
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
state
|
|
172
|
-
|
|
173
|
-
)
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
);
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
)
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
);
|
|
156
|
+
return matches;
|
|
157
|
+
}
|
|
158
|
+
function resolveMemoryToolContext(state, context) {
|
|
159
|
+
return resolveToolAttributionContext(state, context);
|
|
160
|
+
}
|
|
161
|
+
function resolveToolAttributionContext(state, context, options) {
|
|
162
|
+
const UNRESOLVED = options?.errorLabel ?? "\u65E0\u6CD5\u786E\u5B9A\u8BB0\u5FC6\u5F52\u5C5E";
|
|
163
|
+
const agentKey = trimmed(context?.agentKey);
|
|
164
|
+
if (options?.requireAgentKey && !agentKey) {
|
|
165
|
+
throw new Error(`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u7F3A\u5C11 agentKey\uFF0C\u4E0D\u4F1A\u4ECE\u5F53\u524D\u5BF9\u8BDD\u63A8\u65AD\u3002`);
|
|
166
|
+
}
|
|
167
|
+
const contextDialogId = trimmed(context?.dialogId);
|
|
168
|
+
const contextDialogKey = trimmed(context?.dialogKey);
|
|
169
|
+
let keyIdentity = null;
|
|
170
|
+
if (contextDialogKey) {
|
|
171
|
+
keyIdentity = parseDialogKey(contextDialogKey);
|
|
172
|
+
if (!keyIdentity) {
|
|
173
|
+
throw new Error(
|
|
174
|
+
`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u91CC\u7684\u5BF9\u8BDD\u952E ${contextDialogKey} \u4E0D\u662F\u53EF\u89E3\u6790\u7684 dialog-<owner>-<id>\uFF0C\u4E0D\u4F1A\u6309 id \u731C\u5F52\u5C5E\u3002`
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
if (contextDialogId && keyIdentity.dialogId !== contextDialogId) {
|
|
178
|
+
throw new Error(
|
|
179
|
+
`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u81EA\u76F8\u77DB\u76FE\u2014\u2014\u5BF9\u8BDD\u952E ${contextDialogKey} \u6307\u5411 ${keyIdentity.dialogId}\uFF0C\u4F46 dialogId \u662F ${contextDialogId}\u3002`
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
const dialogId = keyIdentity?.dialogId ?? contextDialogId;
|
|
184
|
+
if (!dialogId) {
|
|
185
|
+
throw new Error(
|
|
186
|
+
`${UNRESOLVED}\uFF1A\u672C\u6B21\u5DE5\u5177\u8C03\u7528\u7F3A\u5C11\u6240\u5C5E\u5BF9\u8BDD\uFF08dialogId\uFF09\uFF0C\u4E0D\u4F1A\u6539\u7528\u5F53\u524D\u6253\u5F00\u7684\u5BF9\u8BDD\u6216\u89C6\u56FE Space\u3002`
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
const matches = findLoadedDialogs(state, dialogId, contextDialogKey);
|
|
190
|
+
if (matches.length === 0) {
|
|
191
|
+
throw new Error(
|
|
192
|
+
`${UNRESOLVED}\uFF1A\u5BF9\u8BDD ${dialogId} \u672A\u52A0\u8F7D\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5B83\u7684 Space \u5F52\u5C5E\u3002`
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
if (matches.length > 1) {
|
|
196
|
+
throw new Error(
|
|
197
|
+
`${UNRESOLVED}\uFF1A\u52A0\u8F7D\u4E2D\u6709 ${matches.length} \u4E2A\u540C id \u7684\u5BF9\u8BDD\uFF08${matches.map((m) => m.key).join(" / ")}\uFF09\uFF0C\u4EC5\u51ED dialogId \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E\uFF1B\u6267\u884C\u4E0A\u4E0B\u6587\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u5BF9\u8BDD\u952E\u3002`
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
const [dialog] = matches;
|
|
201
|
+
return {
|
|
202
|
+
dialogId,
|
|
203
|
+
agentKey: resolveDialogRuntimeAgentKey(
|
|
204
|
+
dialog.record,
|
|
205
|
+
agentKey
|
|
206
|
+
),
|
|
207
|
+
spaceId: trimmed(dialog.record.spaceId)
|
|
208
|
+
};
|
|
209
|
+
}
|
|
193
210
|
|
|
194
211
|
// packages/ai/tools/loadSkillTool.ts
|
|
195
212
|
var loadSkillFunctionSchema = {
|
|
@@ -323,23 +340,7 @@ async function listSkillCandidates(thunkApi) {
|
|
|
323
340
|
}
|
|
324
341
|
return candidates;
|
|
325
342
|
}
|
|
326
|
-
var
|
|
327
|
-
try {
|
|
328
|
-
const state = thunkApi?.getState?.();
|
|
329
|
-
if (!state) return null;
|
|
330
|
-
const currentDialogKey = getActiveDialogKey();
|
|
331
|
-
if (!currentDialogKey) return null;
|
|
332
|
-
const dialogConfig = selectById(
|
|
333
|
-
state,
|
|
334
|
-
currentDialogKey
|
|
335
|
-
);
|
|
336
|
-
return asTrimmedNonEmptyStringArray(dialogConfig?.cybots)[0] ?? null;
|
|
337
|
-
} catch {
|
|
338
|
-
return null;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
var readCurrentAgentSkillSource = async (thunkApi) => {
|
|
342
|
-
const agentKey = resolveCurrentAgentKeyForSkillGate(thunkApi);
|
|
343
|
+
var readCurrentAgentSkillSource = async (thunkApi, agentKey) => {
|
|
343
344
|
if (!agentKey) return null;
|
|
344
345
|
const db = thunkApi?.extra?.db;
|
|
345
346
|
if (!db) return null;
|
|
@@ -364,6 +365,14 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
364
365
|
}
|
|
365
366
|
let requestedName = asTrimmedString(exact ? source === "space" ? args.dbKey : args.slug : args?.name);
|
|
366
367
|
if (!requestedName) throw new Error("loadSkill \u9700\u8981\u63D0\u4F9B name\u3002");
|
|
368
|
+
const state = thunkApi.getState();
|
|
369
|
+
const attribution = resolveToolAttributionContext(state, context, {
|
|
370
|
+
requireAgentKey: false,
|
|
371
|
+
errorLabel: "loadSkill: \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E"
|
|
372
|
+
});
|
|
373
|
+
const dialogKey = context?.dialogKey?.trim() || Object.keys(state.db.entities).find(
|
|
374
|
+
(key) => isDialogRecordKeyForId(key, attribution.dialogId) && state.db.entities[key]?.id?.trim() === attribution.dialogId
|
|
375
|
+
);
|
|
367
376
|
const candidates = await listSkillCandidates(thunkApi);
|
|
368
377
|
let resolution;
|
|
369
378
|
if (!exact) {
|
|
@@ -380,7 +389,7 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
380
389
|
const builtinEntry = resolution?.kind === "builtin" ? resolution.entry : null;
|
|
381
390
|
const resolvedSlug = builtinEntry?.slug ?? matched?.skillId ?? null;
|
|
382
391
|
if (resolvedSlug) {
|
|
383
|
-
const agentSkillSource = await readCurrentAgentSkillSource(thunkApi);
|
|
392
|
+
const agentSkillSource = await readCurrentAgentSkillSource(thunkApi, attribution.agentKey);
|
|
384
393
|
if (agentSkillSource && isAgentSkillDisabled(agentSkillSource, resolvedSlug)) {
|
|
385
394
|
return {
|
|
386
395
|
rawData: {
|
|
@@ -397,7 +406,7 @@ async function loadSkillFunc(args, thunkApi, context) {
|
|
|
397
406
|
const body2 = builtinEntry.content;
|
|
398
407
|
const dbKey = builtinEntry.slug;
|
|
399
408
|
if (context?.skipSkillReferencePersist !== true) {
|
|
400
|
-
await persistLoadedSkillReference(thunkApi, dbKey, requestedName);
|
|
409
|
+
await persistLoadedSkillReference(thunkApi, dialogKey, dbKey, requestedName);
|
|
401
410
|
}
|
|
402
411
|
return {
|
|
403
412
|
rawData: {
|
|
@@ -437,7 +446,7 @@ ${body2}`
|
|
|
437
446
|
}
|
|
438
447
|
const body = extractSkillBody(page);
|
|
439
448
|
if (context?.skipSkillReferencePersist !== true) {
|
|
440
|
-
await persistLoadedSkillReference(thunkApi, matched.dbKey, requestedName);
|
|
449
|
+
await persistLoadedSkillReference(thunkApi, dialogKey, matched.dbKey, requestedName);
|
|
441
450
|
}
|
|
442
451
|
return {
|
|
443
452
|
rawData: {
|
|
@@ -451,10 +460,9 @@ ${body2}`
|
|
|
451
460
|
${body}`
|
|
452
461
|
};
|
|
453
462
|
}
|
|
454
|
-
async function persistLoadedSkillReference(thunkApi, dbKey, name) {
|
|
463
|
+
async function persistLoadedSkillReference(thunkApi, currentDialogKey, dbKey, name) {
|
|
455
464
|
try {
|
|
456
465
|
const state = thunkApi?.getState?.();
|
|
457
|
-
const currentDialogKey = getActiveDialogKey();
|
|
458
466
|
if (!state || !currentDialogKey) return;
|
|
459
467
|
const dialogConfig = selectById(
|
|
460
468
|
state,
|
|
@@ -468,7 +476,7 @@ async function persistLoadedSkillReference(thunkApi, dbKey, name) {
|
|
|
468
476
|
title: name,
|
|
469
477
|
type: "instruction"
|
|
470
478
|
};
|
|
471
|
-
await setDialogExtraReferencesAction([...existing, newRef], thunkApi);
|
|
479
|
+
await setDialogExtraReferencesAction([...existing, newRef], thunkApi, currentDialogKey);
|
|
472
480
|
} catch {
|
|
473
481
|
}
|
|
474
482
|
}
|
|
@@ -607,10 +615,10 @@ ${block.question.choices.map((item) => `- ${item.label}${item.detail ? ` \u2014
|
|
|
607
615
|
|
|
608
616
|
// packages/core/clipMultilineText.ts
|
|
609
617
|
function clipMultilineText(value, max) {
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
return `${
|
|
613
|
-
...[truncated ${
|
|
618
|
+
const trimmed2 = value.trim();
|
|
619
|
+
if (trimmed2.length <= max) return trimmed2;
|
|
620
|
+
return `${trimmed2.slice(0, max)}
|
|
621
|
+
...[truncated ${trimmed2.length - max} chars]`;
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
// packages/render/table/utils/tableSerialization.ts
|
|
@@ -783,7 +791,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
783
791
|
if (!executionInput) {
|
|
784
792
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
785
793
|
}
|
|
786
|
-
const { findToolExecutor } = await import("./tools-
|
|
794
|
+
const { findToolExecutor } = await import("./tools-MIOCXKMG.js");
|
|
787
795
|
const { executor } = findToolExecutor(run.toolName);
|
|
788
796
|
toolRunStarted({
|
|
789
797
|
id: run.id,
|
|
@@ -807,7 +815,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
807
815
|
const latestState = thunkApi.getState();
|
|
808
816
|
const userId = selectIdentityUserId(latestState);
|
|
809
817
|
if (userId) {
|
|
810
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
818
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-TU6A6OBV.js");
|
|
811
819
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
812
820
|
}
|
|
813
821
|
}
|
|
@@ -837,13 +845,6 @@ export {
|
|
|
837
845
|
waitForAbortableDelay,
|
|
838
846
|
clipMultilineText,
|
|
839
847
|
fetchAndSerializeTable,
|
|
840
|
-
selectMaxExecutionTime,
|
|
841
|
-
selectGlobalPrompt,
|
|
842
|
-
selectUserTonePreset,
|
|
843
|
-
selectKnowledgeCaptureLevel,
|
|
844
|
-
selectSpaceContextLevel,
|
|
845
|
-
selectAutoApproveSelfUpdateFields,
|
|
846
|
-
selectAiRecentContentLimit,
|
|
847
848
|
ToolResultError,
|
|
848
849
|
getToolResultErrorData,
|
|
849
850
|
createToolRunId,
|
|
@@ -853,6 +854,8 @@ export {
|
|
|
853
854
|
toolRunUpdated,
|
|
854
855
|
toolRunFailed,
|
|
855
856
|
getAllToolRuns,
|
|
857
|
+
resolveMemoryToolContext,
|
|
858
|
+
resolveToolAttributionContext,
|
|
856
859
|
loadSkillFunctionSchema,
|
|
857
860
|
loadSkillFunc
|
|
858
861
|
};
|
|
@@ -4,9 +4,18 @@ import {
|
|
|
4
4
|
normalizeNonNegativeMs,
|
|
5
5
|
parseRetryAfterHeaderMs
|
|
6
6
|
} from "./chunk-3L2WKC3W.js";
|
|
7
|
+
import {
|
|
8
|
+
dialogMessageKey
|
|
9
|
+
} from "./chunk-OJKUU3LP.js";
|
|
7
10
|
import {
|
|
8
11
|
toErrorMessage
|
|
9
12
|
} from "./chunk-HNMXYYJR.js";
|
|
13
|
+
import {
|
|
14
|
+
asOptionalFiniteNumber
|
|
15
|
+
} from "./chunk-WWC7I6TA.js";
|
|
16
|
+
import {
|
|
17
|
+
asOptionalTrimmedString
|
|
18
|
+
} from "./chunk-G3SUCT4W.js";
|
|
10
19
|
import {
|
|
11
20
|
isLoopbackHostname
|
|
12
21
|
} from "./chunk-4SN6J65J.js";
|
|
@@ -124,7 +133,86 @@ async function fetchWithTransientRetry(fetchImpl, input, init, options = {}) {
|
|
|
124
133
|
throw lastError;
|
|
125
134
|
}
|
|
126
135
|
|
|
136
|
+
// packages/core/chat/dialogAttachmentCleanup.ts
|
|
137
|
+
var FILE_CONTENT_RE = /(?:https?:\/\/[^/"'\s]+)?\/api\/v1\/db\/file\/content\/([^?#"'\s)]+)/g;
|
|
138
|
+
function extractFileContentIds(value) {
|
|
139
|
+
const ids = /* @__PURE__ */ new Set();
|
|
140
|
+
const visit = (input) => {
|
|
141
|
+
if (typeof input === "string") {
|
|
142
|
+
for (const match of input.matchAll(FILE_CONTENT_RE)) {
|
|
143
|
+
const fileId = decodeURIComponent(match[1] ?? "").trim();
|
|
144
|
+
if (fileId) ids.add(fileId);
|
|
145
|
+
}
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (Array.isArray(input)) {
|
|
149
|
+
for (const item of input) visit(item);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (input && typeof input === "object") {
|
|
153
|
+
for (const item of Object.values(input)) visit(item);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
visit(value);
|
|
157
|
+
return [...ids];
|
|
158
|
+
}
|
|
159
|
+
function messageDbKey(dialogId, message) {
|
|
160
|
+
const dbKey = asOptionalTrimmedString(message.dbKey);
|
|
161
|
+
if (dbKey) return dbKey;
|
|
162
|
+
const id = asOptionalTrimmedString(message.id);
|
|
163
|
+
if (id) return dialogMessageKey(dialogId, id);
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
function asText(value) {
|
|
167
|
+
return asOptionalTrimmedString(value) ?? null;
|
|
168
|
+
}
|
|
169
|
+
function buildDialogAttachmentPlan(args) {
|
|
170
|
+
const messageKeys = new Set(
|
|
171
|
+
args.messages.map((message) => messageDbKey(args.dialogId, message)).filter((key) => Boolean(key))
|
|
172
|
+
);
|
|
173
|
+
const referencedFileIds = [
|
|
174
|
+
...new Set(args.messages.flatMap((message) => extractFileContentIds(message)))
|
|
175
|
+
];
|
|
176
|
+
const candidates = referencedFileIds.map((fileId) => {
|
|
177
|
+
const metadata = args.metadataByFileId[fileId];
|
|
178
|
+
const ownerType = asText(metadata?.ownerType);
|
|
179
|
+
const ownerId = asText(metadata?.ownerId);
|
|
180
|
+
const ownerDbKey = asText(metadata?.ownerDbKey);
|
|
181
|
+
const fileDbKey = asText(metadata?.dbKey);
|
|
182
|
+
const source = asText(metadata?.source);
|
|
183
|
+
const ownedByDialog = ownerType === "dialog" && ownerId === args.dialogId;
|
|
184
|
+
const ownedByMessage = Boolean(ownerDbKey && messageKeys.has(ownerDbKey));
|
|
185
|
+
const userOwnedReferenced = args.includeUserOwnedReferenced === true && Boolean(args.ownerId) && ownerType === "user" && ownerId === args.ownerId;
|
|
186
|
+
const canDelete = Boolean(fileDbKey && (ownedByDialog || ownedByMessage || userOwnedReferenced));
|
|
187
|
+
return {
|
|
188
|
+
fileId,
|
|
189
|
+
fileDbKey,
|
|
190
|
+
size: asOptionalFiniteNumber(metadata?.size) ?? null,
|
|
191
|
+
ownerType,
|
|
192
|
+
ownerId,
|
|
193
|
+
ownerDbKey,
|
|
194
|
+
source,
|
|
195
|
+
status: canDelete ? "delete" : "retain",
|
|
196
|
+
reason: canDelete ? ownedByMessage ? "ownerDbKey matches a message in this dialog" : userOwnedReferenced ? "user-owned file is referenced by this dialog and explicit referenced-attachment deletion is enabled" : "ownerType/ownerId matches this dialog" : fileDbKey ? "file ownership is not exclusive to this dialog" : "file metadata not found"
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
const deleteCandidates = candidates.filter((candidate) => candidate.status === "delete");
|
|
200
|
+
const retainedCandidates = candidates.filter((candidate) => candidate.status === "retain");
|
|
201
|
+
return {
|
|
202
|
+
dialogId: args.dialogId,
|
|
203
|
+
messageCount: args.messages.length,
|
|
204
|
+
referencedFileIds,
|
|
205
|
+
candidates,
|
|
206
|
+
deleteCandidates,
|
|
207
|
+
retainedCandidates,
|
|
208
|
+
bytesToDelete: deleteCandidates.reduce((sum, candidate) => sum + (candidate.size ?? 0), 0),
|
|
209
|
+
metadataReadFailures: args.metadataReadFailures ?? []
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
|
|
127
213
|
export {
|
|
128
214
|
isTransientFetchError,
|
|
129
|
-
fetchWithTransientRetry
|
|
215
|
+
fetchWithTransientRetry,
|
|
216
|
+
extractFileContentIds,
|
|
217
|
+
buildDialogAttachmentPlan
|
|
130
218
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
deriveCredentialGroup
|
|
3
|
+
} from "./chunk-WVOZ35E4.js";
|
|
1
4
|
import {
|
|
2
5
|
listUserRecordsFromServers,
|
|
3
6
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VMWY7TUA.js";
|
|
5
8
|
import {
|
|
6
9
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-QZI44GWV.js";
|
|
10
|
+
} from "./chunk-J25ESVUW.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -110,6 +110,9 @@ function parseAgentListArgs(args) {
|
|
|
110
110
|
// --verbose 拿回完整字段集排障。
|
|
111
111
|
verbose: args.includes("--verbose"),
|
|
112
112
|
compact: args.includes("--compact"),
|
|
113
|
+
fragmentOffset: readArgValue(args, "--fragment-offset"),
|
|
114
|
+
fragmentAgentKey: readArgValue(args, "--fragment-agent-key"),
|
|
115
|
+
fragmentDigest: readArgValue(args, "--fragment-digest"),
|
|
113
116
|
limit: readArgValue(args, "--limit") ?? void 0,
|
|
114
117
|
offset: readArgValue(args, "--offset") ?? void 0
|
|
115
118
|
};
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
6
6
|
isAntigravityCloudCodeBaseUrl,
|
|
7
7
|
isAntigravityOAuthAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y22P6ASC.js";
|
|
9
9
|
import {
|
|
10
10
|
isOpenAiResponsesModel,
|
|
11
11
|
resolvePlatformChatCompletionsEndpoint,
|
|
12
12
|
resolvePlatformResponsesEndpoint
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XNEDFWT4.js";
|
|
14
14
|
import {
|
|
15
15
|
findModelConfig
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
asTrimmedLowercaseString
|
|
19
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
16
|
+
} from "./chunk-OJRTTERA.js";
|
|
20
17
|
import {
|
|
21
18
|
asOptionalTrimmedString
|
|
22
19
|
} from "./chunk-G3SUCT4W.js";
|
|
20
|
+
import {
|
|
21
|
+
asTrimmedLowercaseString
|
|
22
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
23
23
|
|
|
24
24
|
// packages/agent-runtime/agentCallPlan.ts
|
|
25
25
|
var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
|