nolo-cli 0.213.0 → 0.219.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 -2
- package/{_executeModel-CUJLCFWR.js → _executeModel-WW57SJN4.js} +111 -82
- package/{accountResolver-4LKIHEKL.js → accountResolver-EK2S4PWF.js} +6 -6
- package/{action-DF5UYSJF.js → action-CK64LS6S.js} +12 -11
- package/{addContentAction-WERAONNY.js → addContentAction-EQXMFNPR.js} +18 -17
- package/{addDialogAgentAction-7VI7YRML.js → addDialogAgentAction-RSDZDASD.js} +21 -20
- package/{agentDeleteCommand-XJORXPGU.js → agentDeleteCommand-X2VWEKUA.js} +127 -118
- package/{agentEmailCommands-XTYYFR6Z.js → agentEmailCommands-6IE773VW.js} +132 -124
- package/{agentFavoriteCommands-EDK743YA.js → agentFavoriteCommands-2LKGKSUD.js} +7 -8
- package/{agentGrantCommands-RQWK2TEV.js → agentGrantCommands-QQV4N4JW.js} +5 -5
- package/{agentListCommands-OBLRBLHS.js → agentListCommands-5UNM7CGG.js} +155 -92
- package/{agentMachineCommands-5FMT3OT5.js → agentMachineCommands-EVWFKK6Q.js} +62 -54
- package/{agentProviderCommands-Q5O33MED.js → agentProviderCommands-ZCH37KAL.js} +5 -5
- package/{agentPullCommand-6EM3URVK.js → agentPullCommand-XN6ZPBUW.js} +7 -7
- package/agentRecordCommands-DX2WE6BH.js +176 -0
- package/agentRunCommand-KGOT2AFB.js +206 -0
- package/{agentRunControl-TAMHJQSR.js → agentRunControl-QDFW5P2T.js} +30 -15
- package/{agentRuntimeLocal-SOO2OPJG.js → agentRuntimeLocal-SD7U2EGY.js} +52 -45
- package/{agentSlice-CHR6KOZN.js → agentSlice-ACZGTZVW.js} +20 -19
- package/{appDeleteCommands-GUP6P5YE.js → appDeleteCommands-NE3NQQJL.js} +61 -53
- package/{appDeployCommands-MH2FX4O5.js → appDeployCommands-2BAHY522.js} +61 -53
- package/{appDeployStatusCommands-SUHN3HPJ.js → appDeployStatusCommands-JTW6LZNC.js} +61 -53
- package/{appGetCommands-YWDEX6Z4.js → appGetCommands-WKFEJO6A.js} +61 -53
- package/{appListCommands-ZQVMLPAY.js → appListCommands-HNAZZLFX.js} +61 -53
- package/{authCommand-PWX2ZNUP.js → authCommand-4FDPL7WG.js} +29 -28
- package/{authCommands-HV3EAU3V.js → authCommands-GAJ3NIXO.js} +14 -13
- package/{builtinSkillRegistry-2QETTQPM.js → builtinSkillRegistry-PXH7EGQB.js} +11 -13
- package/{chromeCommands-REEAH4SX.js → chromeCommands-G5UDKVSV.js} +3 -3
- package/{chromeOpsCommands-DIVM2K3T.js → chromeOpsCommands-YKX2QX3A.js} +20 -10
- package/chunk-2KTUDBG7.js +675 -0
- package/{chunk-TCZHTTUU.js → chunk-2OLYKYNY.js} +8 -8
- package/{chunk-PYRUW7XN.js → chunk-2VUZSVAS.js} +136 -54
- package/{chunk-YB3YZK56.js → chunk-2WZXXAQD.js} +1 -67
- package/chunk-2YGBI2XB.js +30 -0
- package/chunk-2ZKFCIJJ.js +13 -0
- package/{chunk-G2BQWAVT.js → chunk-3ESU44FG.js} +4 -4
- package/{chunk-HUBHAQK2.js → chunk-3N4ASIP6.js} +29 -29
- package/{chunk-4KB6WQUL.js → chunk-4A2JIXR2.js} +1 -1
- package/{chunk-MYOH447Z.js → chunk-4JVNURX4.js} +1 -1
- package/{chunk-H7PPIYWP.js → chunk-4NMHE7CX.js} +20 -20
- package/{chunk-YDH3FDFQ.js → chunk-5FUN7EG4.js} +1 -1
- package/chunk-5OZC7R7Y.js +97 -0
- package/chunk-5R63B62U.js +364 -0
- package/{chunk-INUFILG6.js → chunk-5RKUPJYL.js} +1 -1
- package/{chunk-ZNWI6OVT.js → chunk-652XYZGP.js} +80 -11
- package/{chunk-QHPRUL4O.js → chunk-65XXHYZ5.js} +4 -4
- package/{chunk-MOIJOHA5.js → chunk-6D7NVU66.js} +36 -25
- package/{chunk-CRHOO2ZR.js → chunk-6NKA6RKF.js} +2 -2
- package/{chunk-ZC3CMUKU.js → chunk-6OVNSQHN.js} +84 -2
- package/{chunk-H2TJUNCH.js → chunk-6RQFZCKH.js} +18 -18
- package/{chunk-LLRPJECG.js → chunk-7UH3DGV6.js} +17 -159
- package/{chunk-X7SDOJUM.js → chunk-7WPAI5JJ.js} +14 -14
- package/{chunk-P5L7CXOC.js → chunk-7Z6EW7AH.js} +3 -2
- package/{chunk-VO4WSAVP.js → chunk-AFHOCBSP.js} +3 -3
- package/{chunk-HPFCI4SK.js → chunk-AK5O76CC.js} +3 -3
- package/{chunk-Y63ZSOR6.js → chunk-AL3TYDIF.js} +1 -1
- package/{chunk-ALQ3657A.js → chunk-AMEOV5VZ.js} +32 -12
- package/chunk-AVHRSJUH.js +1621 -0
- package/{chunk-RLBNLZVC.js → chunk-BGGHA5DV.js} +1 -1
- package/{chunk-NBTY7YJF.js → chunk-BR3GT6MR.js} +1 -0
- package/{chunk-7RFNTILS.js → chunk-BUDVRYES.js} +2 -2
- package/{chunk-SVYO6AO7.js → chunk-BV3FLP2L.js} +41 -1
- package/{chunk-RZOV7OMV.js → chunk-C4VAR65S.js} +83 -141
- package/{chunk-COFEN36Z.js → chunk-C4WTX5TU.js} +2 -2
- package/{chunk-F6UUQOG6.js → chunk-CKT6QUE2.js} +4 -4
- package/{chunk-6VLJ6YA7.js → chunk-CXDPIPZ4.js} +9 -9
- package/{secretCommands-LXDWOLZ6.js → chunk-D726I5AZ.js} +191 -16
- package/{chunk-OQPKUBPB.js → chunk-DJSTBAOU.js} +19 -7
- package/chunk-DVQH4BTR.js +1137 -0
- package/{chunk-7OCO4TDT.js → chunk-EGXPAWLG.js} +1 -1
- package/chunk-EOWLBDY6.js +142 -0
- package/chunk-EUCFKKDM.js +247 -0
- package/chunk-EWQ3HGNZ.js +90 -0
- package/{chunk-7Y4YTDQF.js → chunk-F3TQURKK.js} +281 -159
- package/{chunk-YTF4WH7J.js → chunk-FIYSMXHY.js} +1 -1
- package/{chunk-75XIDFBW.js → chunk-FJ23FZXF.js} +72 -28
- package/{chunk-5MQRBSMW.js → chunk-FRSBYNWI.js} +111 -113
- package/{chunk-ZXOUUDCG.js → chunk-FVZW66K4.js} +3657 -233
- package/{chunk-YUA6OAH5.js → chunk-G2EJ7NL4.js} +2 -2
- package/{chunk-PCLE46CE.js → chunk-GBWGPTA7.js} +2 -1
- package/{chunk-R5O4QAWG.js → chunk-GGKNJ42M.js} +11 -77
- package/{chunk-TAKB25RM.js → chunk-GIABSSWQ.js} +4 -4
- package/{chunk-WRYQ35LQ.js → chunk-GNHMRBYZ.js} +859 -57
- package/{chunk-NJLL224W.js → chunk-GVGOEMNV.js} +2 -2
- package/{chunk-J2NHJ7WX.js → chunk-H7R3365N.js} +4 -4
- package/{chunk-7BT37FK3.js → chunk-HCJFGH6Y.js} +648 -131
- package/{chunk-3UKL3HPD.js → chunk-HOCHUZQ7.js} +8 -78
- package/{chunk-EHSZD5OI.js → chunk-HXER7YJF.js} +4 -4
- package/{chunk-CTPXME7U.js → chunk-IWH5SOU4.js} +29 -6
- package/{chunk-INN4LTAJ.js → chunk-IWQAOW2X.js} +2 -2
- package/{chunk-RPQXPZZF.js → chunk-J6T25AJ6.js} +908 -13
- package/{chunk-KIM6CLW5.js → chunk-JC5XLWZK.js} +42 -15
- package/chunk-JVRQ6YVK.js +99 -0
- package/{chunk-ZRSNONOB.js → chunk-JWXITTQB.js} +8 -3
- package/{chunk-NSAPDIN2.js → chunk-K5FNYHZC.js} +541 -31
- package/{chunk-TX5EYMGT.js → chunk-KAVGK4ES.js} +30 -254
- package/{chunk-H4UOTUOX.js → chunk-KEN3N2TN.js} +148 -18
- package/{chunk-LEC5ALIN.js → chunk-KEPOVMF4.js} +1 -1
- package/{chunk-Y6ORVLSS.js → chunk-KN3HEZIQ.js} +1 -1
- package/{chunk-UYD5HQ6T.js → chunk-KO63FPG3.js} +5429 -1752
- package/{chunk-IXNGOHV5.js → chunk-KOXKKHFE.js} +11 -152
- package/{chunk-4VJAC32I.js → chunk-L5I543VB.js} +3 -2
- package/{chunk-SM3NSZJV.js → chunk-LE6LGAJE.js} +20 -1
- package/chunk-LKA64WH4.js +227 -0
- package/{chunk-VL5KOY2C.js → chunk-MK2Q7ZJD.js} +67 -5
- package/{chunk-YJAFKXMU.js → chunk-MKQ2UTTX.js} +50 -48
- package/chunk-MOMR7NMG.js +226 -0
- package/{chunk-4T2WNOY7.js → chunk-N3J4VDGV.js} +33 -22
- package/{chunk-AZMYUSVF.js → chunk-N5Z2V73W.js} +1 -1
- package/{chunk-6DWMYIUY.js → chunk-N7HVLYOY.js} +14 -9
- package/{chunk-7QTZCMKL.js → chunk-O2CYENYJ.js} +1204 -1651
- package/{chunk-VNYYOX3V.js → chunk-OB6DVWPF.js} +141 -48
- package/{chunk-HRMJUN5J.js → chunk-OGHP3CTL.js} +1 -1
- package/{chunk-XJWWBO34.js → chunk-OJKUU3LP.js} +5 -7
- package/{chunk-G7MLNNEX.js → chunk-OOF7XDZF.js} +5 -5
- package/{chunk-QG4AOSON.js → chunk-OXKUPBAQ.js} +13 -32
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-H5HF7TJA.js → chunk-PFJNLBRU.js} +2 -2
- package/{chunk-A7TFUNZO.js → chunk-PPJYZRSQ.js} +6 -2
- package/chunk-PVZY6P3S.js +271 -0
- package/{chunk-ZL5RAEEB.js → chunk-Q6HOUF4O.js} +1 -1
- package/{chunk-FUGMREBO.js → chunk-Q7WP5RPC.js} +5 -5
- package/chunk-QHEN7NZ7.js +46 -0
- package/{chunk-O2TZF4AI.js → chunk-QLFCTYRH.js} +3 -3
- package/{chunk-YGILMZ7N.js → chunk-QVBXJNZ2.js} +1 -1
- package/{chunk-KFLT5KAD.js → chunk-QWYFFHCJ.js} +20 -20
- package/{chunk-C6KNNXWU.js → chunk-RGQ4UUWZ.js} +25 -2
- package/{chunk-OWYYDMGJ.js → chunk-S2NTVGA2.js} +4 -2
- package/{chunk-BBJ22CLB.js → chunk-S7SB7L2I.js} +60 -30
- package/{chunk-W4S457LU.js → chunk-SASHAZ67.js} +41 -5
- package/{chunk-KC4XDTT3.js → chunk-SOF4OWDM.js} +6 -4
- package/{chunk-YWSEPJ7C.js → chunk-SRL56PI2.js} +3 -3
- package/{chunk-WMTBPBMP.js → chunk-SYQR7FQS.js} +52 -50
- package/{chunk-JY5NGFFH.js → chunk-SYTHYBMI.js} +5 -5
- package/{chunk-XHQC4PXX.js → chunk-T3O6BLYU.js} +426 -196
- package/chunk-TLE77UJ5.js +230 -0
- package/{chunk-T43B7LB2.js → chunk-TRWT3EE3.js} +1 -1
- package/{chunk-RSHTSUEG.js → chunk-TVFRV3UQ.js} +2060 -602
- package/{chunk-4VNS5WPM.js → chunk-U67V476Y.js} +1 -8
- package/{chunk-F7CI2ZC5.js → chunk-UAIHKQIA.js} +2 -1
- package/{chunk-LOEO7LRC.js → chunk-UJKTI5PG.js} +10 -7
- package/{chunk-UHJGXRJ4.js → chunk-UMRI2IRY.js} +3 -3
- package/{chunk-WPORQFYN.js → chunk-UVLYNWIE.js} +2 -2
- package/{chunk-NOKUNJON.js → chunk-UYOICCYG.js} +29 -19
- package/{chunk-GOO6G4PY.js → chunk-VALBGPM6.js} +106 -50
- package/{chunk-MDB67IWP.js → chunk-VHPAA6MT.js} +10 -10
- package/{chunk-4I7ERB7F.js → chunk-VREDDN25.js} +1 -1
- package/{chunk-WYDI6TGM.js → chunk-XFJ4ZPFC.js} +91 -132
- package/{chunk-TY3TIUJK.js → chunk-XI2BWJM5.js} +65 -0
- package/{chunk-V5Y3R6BT.js → chunk-XWGDCWXY.js} +213 -210
- package/{chunk-J5JTMQIA.js → chunk-YFLVRVYK.js} +1 -1
- package/{chunk-EYLGAEB4.js → chunk-YGMBIXCF.js} +132 -0
- package/chunk-YL3EFYL3.js +199 -0
- package/{chunk-MMA3LZ3W.js → chunk-YNIYE47Z.js} +1 -1
- package/chunk-YZMNK53S.js +68 -0
- package/{chunk-FY7F4Q6X.js → chunk-Z4PCXPUE.js} +2 -2
- package/{cliAgentConfigHelpers-WJBZQTLW.js → cliAgentConfigHelpers-PO3MVDME.js} +15 -16
- package/{cliAuthorityBrokerClient-PM3U6Q6J.js → cliAuthorityBrokerClient-XHH7MH2P.js} +1 -1
- package/{cliAuthorityStoreDriver-TKLXNNTG.js → cliAuthorityStoreDriver-6FE3BJNB.js} +1 -1
- package/{cliEnvHelpers-BVYTMUPJ.js → cliEnvHelpers-VPSJ4XWC.js} +3 -3
- package/{cliExecutor-BWBF2MTI.js → cliExecutor-4MAX3PZL.js} +2 -2
- package/cliLocalAgentRecordReader-Z7CH4K4R.js +90 -0
- package/{commandRegistry-W63CYRZJ.js → commandRegistry-SDSYBKMC.js} +105 -97
- package/{contentThunks-U7PL5MQD.js → contentThunks-G3TRPEAU.js} +47 -43
- package/{cooldownCommands-TIGUHXTD.js → cooldownCommands-X7P5M2V5.js} +5 -4
- package/{createAgentAutomationAction-OLBQDD6R.js → createAgentAutomationAction-KHA4MXUJ.js} +51 -49
- package/{createDialogAction-SVH6B3SB.js → createDialogAction-KWSBNAPJ.js} +46 -48
- package/{createPageAction-F4DIWZ2Z.js → createPageAction-HXKJ7OFG.js} +50 -48
- package/{cursorProvider-YGGNMVWX.js → cursorProvider-2RACMEMF.js} +1 -1
- package/{db-HUCI5R4G.js → db-CS4ZJQKV.js} +1 -1
- package/{dbSlice-BVH2YZPQ.js → dbSlice-ZJPDIFER.js} +17 -16
- package/{deleteFile-5YOEKV4U.js → deleteFile-Q3YDB4ML.js} +9 -9
- package/{desktopFolderProjects-SFY5EZS3.js → desktopFolderProjects-4POAMVJN.js} +2 -2
- package/{dialogCommands-KHIEPY3M.js → dialogCommands-6KQEBHSG.js} +64 -57
- package/dialogNotifyCommand-WIZFFEY3.js +36 -0
- package/{dialogSlice-ZCTDV2PZ.js → dialogSlice-HXPKFGRL.js} +42 -40
- package/{dialogUsageCommand-7KCPYGHG.js → dialogUsageCommand-HTVPR2CX.js} +11 -10
- package/{docCreateCommands-DPMZI7G5.js → docCreateCommands-XZOLWBRC.js} +61 -55
- package/{docDeleteCommands-IRQQLUBT.js → docDeleteCommands-ZSO4LGWE.js} +63 -57
- package/{docReadCommands-LK37XH6L.js → docReadCommands-TTMXCDER.js} +61 -55
- package/{docStore-V2KECILA.js → docStore-A2B3GH33.js} +21 -20
- package/{docUpdateCommands-O6T3HJHH.js → docUpdateCommands-PRG6WOXL.js} +64 -58
- package/{fetchMessages-NR4KNQLO.js → fetchMessages-TQEUZD7H.js} +8 -7
- package/{getPricing-2MNMXEVG.js → getPricing-YH3VMSVU.js} +6 -6
- package/{handleSendMessageAction-2PE25WM3.js → handleSendMessageAction-NWYG3Q72.js} +194 -302
- package/{hostCredentialCreate-S233UMAP.js → hostCredentialCreate-WS6D3EHT.js} +123 -114
- package/index.js +29 -29
- package/{keys-BEGDOTRL.js → keys-RWF7UCB4.js} +5 -4
- package/legacyMigration-TF4SYJCZ.js +19 -0
- package/{lib-5KKIBFIT.js → lib-OT5OTXRU.js} +7087 -6664
- package/{localDialogRead-7NNDVVF7.js → localDialogRead-SVTPA5GY.js} +3 -3
- package/{localFirstLog-DHNOY2NA.js → localFirstLog-OIETGK66.js} +1 -1
- package/localRecall-2J6QPOK2.js +15 -0
- package/{localRuntimeAdapter-KY6WXNBR.js → localRuntimeAdapter-TFYOA6YE.js} +119 -110
- package/{localRuntimeAuthority-OYH4AE4G.js → localRuntimeAuthority-IBJAT62G.js} +1 -1
- package/{localRuntimeDb-VBIMCWUC.js → localRuntimeDb-N7KHDXS2.js} +2 -2
- package/{machineCommands-Q6HA3IXF.js → machineCommands-WFWV25IR.js} +128 -119
- package/{machineInfo-UKPTZO5Y.js → machineInfo-LWHTEBHJ.js} +1 -1
- package/machineWsRunDispatch-ZGXC3F2R.js +191 -0
- package/{memberThunks-7EDJADWU.js → memberThunks-JRYNONYV.js} +29 -28
- package/{memoryCommands-ASCE5STX.js → memoryCommands-5WC3T66U.js} +4 -4
- package/models-CXINDUJA.js +9 -0
- package/{oauthTokenStore-OEERZFUC.js → oauthTokenStore-RUYNYALS.js} +1 -1
- package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-4IC3Y4C6.js} +4 -4
- package/overlay-THLKYIWY.js +11 -0
- package/package.json +2 -2
- package/{pdf-U6KSUEZZ.js → pdf-KE3QI2V7.js} +1 -1
- package/{processSpawn-ZU5QFM43.js → processSpawn-6GEO77KV.js} +1 -1
- package/{profileConfig-KN3N2BLF.js → profileConfig-KOWK4HOG.js} +1 -1
- package/{projectArchive-DRTDIMEV.js → projectArchive-ULJDLUA6.js} +52 -50
- package/{providerPresetApply-YXGV6NXB.js → providerPresetApply-SHT2SUVB.js} +19 -12
- package/{providerRegistry-S6UL6UNA.js → providerRegistry-TA7EGCVZ.js} +10 -10
- package/{read-4V2RMG7N.js → read-Q7GOHGNP.js} +10 -10
- package/{readDocTool-BH6ATGQO.js → readDocTool-Z5OQ6422.js} +2 -2
- package/{readlineWorkspace-2W4WRCOU.js → readlineWorkspace-LTCV2BFW.js} +7982 -6274
- package/{removeDialogAgentAction-LYAZGNKW.js → removeDialogAgentAction-U3F2MNAY.js} +23 -22
- package/{runAgentClientLoop-J2VQBS2Z.js → runAgentClientLoop-BVIEQUB3.js} +81 -79
- package/{runtimeDoctorCommands-QAI3MBKQ.js → runtimeDoctorCommands-I47JN4HS.js} +12 -12
- package/{runtimeModeArgs-2Y7BALTO.js → runtimeModeArgs-X7DL7PUN.js} +1 -1
- package/secretCommands-LJXOOYA7.js +24 -0
- package/{setDialogExtraReferencesAction-OCRPGPYH.js → setDialogExtraReferencesAction-G3WSJ7EM.js} +22 -21
- package/{setPrimaryDialogAgentAction-HFJDQIBU.js → setPrimaryDialogAgentAction-6FHAHZBB.js} +23 -22
- package/{settingThunks-RAMHMTGM.js → settingThunks-AXTBX3Q5.js} +97 -88
- package/{skillDiscovery-XKHROSH2.js → skillDiscovery-B5V23AXP.js} +4 -4
- package/{skillSummaryMarker-42HKSXYY.js → skillSummaryMarker-62UW7HI7.js} +1 -1
- package/{slateToRenderMarkdown-Y5IYN73U.js → slateToRenderMarkdown-R3X74MCX.js} +1 -1
- package/{slateUtils-NGV2NMKM.js → slateUtils-ESQAJ6RN.js} +1 -1
- package/{spaceCommands-KVJZVKVO.js → spaceCommands-IB6FKWIC.js} +61 -53
- package/store-JRVN62NM.js +46 -0
- package/{streamAgentChatTurn-GHBMJJ6S.js → streamAgentChatTurn-DNYFHBJM.js} +875 -618
- package/{switchDialogAgentAction-EBRMW3RA.js → switchDialogAgentAction-UOFIAGPL.js} +21 -20
- package/{tableCommands-MP6VFSVT.js → tableCommands-HITDSLHS.js} +10 -10
- package/tombstones-FQQMEDOW.js +32 -0
- package/{toolApiClient-HGNO53TC.js → toolApiClient-OGQEBQVX.js} +4 -4
- package/{tools-EWKCPKMS.js → tools-JVOJ5HC4.js} +75 -74
- package/tuiSummaryLlmCaller-7LWYTHLM.js +44 -0
- package/{updateCommands-ZQYU6SCI.js → updateCommands-RJVCRSBP.js} +10 -8
- package/{updateDialogTitleAction-5GGMBTDF.js → updateDialogTitleAction-Q57BOSXG.js} +48 -46
- package/{usageCommand-F4IPVMIZ.js → usageCommand-RVKHEPLU.js} +11 -10
- package/{usageRebuildCommand-HAW2AD5N.js → usageRebuildCommand-GRAFOZF2.js} +12 -11
- package/userDataMerge-HT2ZVHBJ.js +13 -0
- package/{windowsSelfUpdate-257DV2T6.js → windowsSelfUpdate-KERHIAB4.js} +3 -3
- package/{workloadLifecycle-4C42SVBD.js → workloadLifecycle-O2I3NZ2Q.js} +6 -6
- package/agentRecordCommands-ZQ7SVYGG.js +0 -167
- package/agentRunCommand-WS7IGO2W.js +0 -196
- package/chunk-3CGG2PAL.js +0 -594
- package/chunk-5XBUWM6I.js +0 -89
- package/chunk-CJEIOP3E.js +0 -0
- package/chunk-EHGEOAHI.js +0 -636
- package/chunk-FW6YHHLI.js +0 -842
- package/chunk-GPVRUGGY.js +0 -115
- package/chunk-HSVBJRF4.js +0 -339
- package/chunk-WJZOQR2J.js +0 -151
- package/chunk-ZCWRMUWT.js +0 -89
- package/dist-M676ULYG.js +0 -7314
- package/machineWsRunDispatch-WWJQ6WR3.js +0 -182
- package/models-PJBE6JDV.js +0 -9
- package/tuiSummaryLlmCaller-ALQYUUWB.js +0 -189
- package/{chunk-WACI5I6V.js → chunk-2THCNKE4.js} +3 -3
- package/{chunk-2QHFH3DR.js → chunk-47ITIXO7.js} +6 -6
- package/{chunk-OQHIVPG4.js → chunk-SNBZZPYH.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
|
@@ -3,13 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KAVGK4ES.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
buildSkillGuidancePromptBlock
|
|
12
|
-
} from "./chunk-WRYQ35LQ.js";
|
|
9
|
+
} from "./chunk-QWYFFHCJ.js";
|
|
13
10
|
import {
|
|
14
11
|
CREDENTIAL_HYGIENE_RULE,
|
|
15
12
|
DELETE_SAFETY_RED_LINE,
|
|
@@ -25,7 +22,7 @@ import {
|
|
|
25
22
|
compileContextLayers,
|
|
26
23
|
detectDispatchIntentFromMessages,
|
|
27
24
|
resolveToolGuidedSections
|
|
28
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FRSBYNWI.js";
|
|
29
26
|
import {
|
|
30
27
|
convertMessagesToResponsesInput,
|
|
31
28
|
getUsageRequestOptions,
|
|
@@ -34,33 +31,40 @@ import {
|
|
|
34
31
|
resolveReasoningReplayOptions,
|
|
35
32
|
shouldStripReasoningContentForOutbound,
|
|
36
33
|
stablePromptCacheKey
|
|
37
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-PFJNLBRU.js";
|
|
38
35
|
import {
|
|
39
36
|
resolveAgentCallPlan,
|
|
40
37
|
resolveClientWire
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UMRI2IRY.js";
|
|
42
39
|
import {
|
|
43
40
|
createFileCredentialBroker
|
|
44
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SNBZZPYH.js";
|
|
42
|
+
import {
|
|
43
|
+
WORKTREE_ISOLATION_PRELUDE,
|
|
44
|
+
buildSkillGuidancePromptBlock
|
|
45
|
+
} from "./chunk-GNHMRBYZ.js";
|
|
46
|
+
import {
|
|
47
|
+
canonicalizeToolNames
|
|
48
|
+
} from "./chunk-6OVNSQHN.js";
|
|
45
49
|
import {
|
|
46
50
|
MEMORY_USE_GUIDANCE,
|
|
47
51
|
buildUserResponseLanguageContext,
|
|
48
52
|
wrapHistoricalSummaryWithReplayGuard
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
canonicalizeToolNames
|
|
52
|
-
} from "./chunk-ZCWRMUWT.js";
|
|
53
|
+
} from "./chunk-L5I543VB.js";
|
|
53
54
|
import {
|
|
54
55
|
buildProviderAuthHeaders
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-2OLYKYNY.js";
|
|
57
|
+
import {
|
|
58
|
+
toErrorMessage
|
|
59
|
+
} from "./chunk-HNMXYYJR.js";
|
|
60
|
+
import {
|
|
61
|
+
asTrimmedString
|
|
62
|
+
} from "./chunk-3EUW3WEO.js";
|
|
56
63
|
import {
|
|
57
64
|
clampReasoningEffort,
|
|
58
65
|
getModelConfig,
|
|
59
66
|
isModelSupportReasoningEffort
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import {
|
|
62
|
-
toErrorMessage
|
|
63
|
-
} from "./chunk-HNMXYYJR.js";
|
|
67
|
+
} from "./chunk-LE6LGAJE.js";
|
|
64
68
|
import {
|
|
65
69
|
isRecord
|
|
66
70
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -69,19 +73,16 @@ import {
|
|
|
69
73
|
isFireworksKimiModel,
|
|
70
74
|
isPlatformMimoProviderModel,
|
|
71
75
|
resolveFireworksKimiModel
|
|
72
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-VALBGPM6.js";
|
|
73
77
|
import {
|
|
74
78
|
API_ENDPOINTS
|
|
75
79
|
} from "./chunk-LCBAMY2M.js";
|
|
76
|
-
import {
|
|
77
|
-
isLoopbackUrl
|
|
78
|
-
} from "./chunk-4SN6J65J.js";
|
|
79
|
-
import {
|
|
80
|
-
asTrimmedString
|
|
81
|
-
} from "./chunk-3EUW3WEO.js";
|
|
82
80
|
import {
|
|
83
81
|
asOptionalTrimmedString
|
|
84
82
|
} from "./chunk-G3SUCT4W.js";
|
|
83
|
+
import {
|
|
84
|
+
isLoopbackUrl
|
|
85
|
+
} from "./chunk-4SN6J65J.js";
|
|
85
86
|
|
|
86
87
|
// packages/agent-runtime/responsesConversationState.ts
|
|
87
88
|
function supportsResponsesConversationState(agent) {
|
|
@@ -317,6 +318,14 @@ ${wrapHistoricalSummaryWithReplayGuard(contexts.dialogSummary)}` : "";
|
|
|
317
318
|
content: PLATFORM_RISK_CONTROL_RULE
|
|
318
319
|
},
|
|
319
320
|
{ id: "consultation-mode", owner: "platform", cacheScope: "static", content: buildConsultationModeBlock() },
|
|
321
|
+
// Git 任务隔离:仓库改动前置,系统层固定块(原 worktree-isolation skill 上移,
|
|
322
|
+
// 不受 skill 配置 disabled 影响)。排在既有平台块之后,不扰动其顺序契约。
|
|
323
|
+
{
|
|
324
|
+
id: "worktree-isolation-prelude",
|
|
325
|
+
owner: "platform",
|
|
326
|
+
cacheScope: "static",
|
|
327
|
+
content: WORKTREE_ISOLATION_PRELUDE
|
|
328
|
+
},
|
|
320
329
|
{ id: "identity", owner: "platform", cacheScope: "session", content: identitySection },
|
|
321
330
|
{ id: "user-response-language", owner: "platform", cacheScope: "session", content: buildUserResponseLanguageContext({ language: safeLanguage }) },
|
|
322
331
|
{ id: "startup-protocol", owner: "platform", cacheScope: "static", content: startupProtocol },
|
|
@@ -805,11 +814,25 @@ var generateRequestBody = ({
|
|
|
805
814
|
};
|
|
806
815
|
|
|
807
816
|
// packages/ai/chat/resolveDirectRequestApiKey.ts
|
|
808
|
-
var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\
|
|
817
|
+
var DIRECT_API_KEY_UNAVAILABLE_MESSAGE = "\u5F53\u524D\u6B65\u9AA4\u9700\u8981\u63D0\u4F9B API \u51ED\u636E\uFF0C\u8BF7\u91CD\u65B0\u63D0\u4F9B\u5BC6\u94A5\uFF0C\u6216\u786E\u8BA4\u672C\u673A\u51ED\u636E\u53EF\u7528\u3002";
|
|
809
818
|
var DirectApiKeyResolutionError = class extends Error {
|
|
810
|
-
|
|
811
|
-
|
|
819
|
+
kind = "credential_missing";
|
|
820
|
+
credentialRef;
|
|
821
|
+
constructor(credentialRefOrOptions, message = DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
|
|
822
|
+
let resolvedRef;
|
|
823
|
+
let resolvedMessage = DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
|
|
824
|
+
if (typeof credentialRefOrOptions === "string") {
|
|
825
|
+
resolvedRef = credentialRefOrOptions;
|
|
826
|
+
if (message !== DIRECT_API_KEY_UNAVAILABLE_MESSAGE) {
|
|
827
|
+
resolvedMessage = message;
|
|
828
|
+
}
|
|
829
|
+
} else if (credentialRefOrOptions && typeof credentialRefOrOptions === "object") {
|
|
830
|
+
resolvedRef = credentialRefOrOptions.credentialRef;
|
|
831
|
+
resolvedMessage = credentialRefOrOptions.message ?? DIRECT_API_KEY_UNAVAILABLE_MESSAGE;
|
|
832
|
+
}
|
|
833
|
+
super(resolvedMessage);
|
|
812
834
|
this.name = "DirectApiKeyResolutionError";
|
|
835
|
+
this.credentialRef = resolvedRef;
|
|
813
836
|
}
|
|
814
837
|
};
|
|
815
838
|
var createDirectCredentialBroker = createFileCredentialBroker;
|
|
@@ -840,7 +863,7 @@ async function resolveDirectRequestApiKey(agentConfig, options) {
|
|
|
840
863
|
return trimmed;
|
|
841
864
|
}
|
|
842
865
|
}
|
|
843
|
-
throw new DirectApiKeyResolutionError();
|
|
866
|
+
throw new DirectApiKeyResolutionError(credentialRef);
|
|
844
867
|
}
|
|
845
868
|
async function safeBrokerGet(broker, ref) {
|
|
846
869
|
try {
|
|
@@ -905,7 +928,9 @@ var fetchDirectly = async (params) => {
|
|
|
905
928
|
// 可选参数,直接传递
|
|
906
929
|
});
|
|
907
930
|
} catch (error) {
|
|
908
|
-
|
|
931
|
+
if (!(error instanceof DirectApiKeyResolutionError) && error?.kind !== "credential_missing") {
|
|
932
|
+
console.error("[fetchDirectly] \u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25:", error);
|
|
933
|
+
}
|
|
909
934
|
throw error;
|
|
910
935
|
}
|
|
911
936
|
};
|
|
@@ -960,7 +985,11 @@ var performFetchRequest = async (params) => {
|
|
|
960
985
|
};
|
|
961
986
|
return resolveAgentCallPlan(planConfig, {}).transport === "server-proxy" ? await fetchWithServerProxy(params) : await fetchDirectly(params);
|
|
962
987
|
} catch (error) {
|
|
988
|
+
if (error instanceof DirectApiKeyResolutionError || error?.kind === "credential_missing") {
|
|
989
|
+
throw error;
|
|
990
|
+
}
|
|
963
991
|
console.error("[performFetchRequest] \u8BF7\u6C42\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF:", error);
|
|
992
|
+
if (params.preserveStructuredError) throw error;
|
|
964
993
|
const friendlyMsg = formatFriendlyNetworkErrorMessage(error);
|
|
965
994
|
throw new Error(
|
|
966
995
|
friendlyMsg.startsWith("\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25") ? friendlyMsg : `\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25: ${friendlyMsg}`
|
|
@@ -1253,6 +1282,7 @@ export {
|
|
|
1253
1282
|
generateRequestBody,
|
|
1254
1283
|
CONFIRMATION_INPUT_KEYS,
|
|
1255
1284
|
stripModelToolArgs,
|
|
1285
|
+
DirectApiKeyResolutionError,
|
|
1256
1286
|
performFetchRequest,
|
|
1257
1287
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
1258
1288
|
parseToolCallArguments,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveAgentImageInputSupport
|
|
3
|
+
} from "./chunk-SRL56PI2.js";
|
|
1
4
|
import {
|
|
2
5
|
TOOL_HAD_IMAGES,
|
|
3
6
|
hadToolImages
|
|
4
7
|
} from "./chunk-E2BESSAW.js";
|
|
5
8
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./chunk-
|
|
9
|
+
asTrimmedString
|
|
10
|
+
} from "./chunk-3EUW3WEO.js";
|
|
8
11
|
import {
|
|
9
12
|
isRecord
|
|
10
13
|
} from "./chunk-KUG52IAP.js";
|
|
11
14
|
import {
|
|
12
15
|
asOptionalFiniteNumber
|
|
13
16
|
} from "./chunk-WWC7I6TA.js";
|
|
14
|
-
import {
|
|
15
|
-
asTrimmedString
|
|
16
|
-
} from "./chunk-3EUW3WEO.js";
|
|
17
17
|
import {
|
|
18
18
|
asOptionalTrimmedString
|
|
19
19
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -151,6 +151,41 @@ function resolveAgentRuntimeConfigFromRecord(key, record) {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
+
// packages/ai/context/requestBudget.ts
|
|
155
|
+
function evaluateRequestBudget(input) {
|
|
156
|
+
const outputReserveTokens = input.output.semantics === "shared-window" ? input.output.finalWireCapTokens : input.output.semantics === "unknown" ? input.output.fallbackReserveTokens : 0;
|
|
157
|
+
const basis = input.output.semantics === "unknown" ? "heuristic" : input.output.semantics;
|
|
158
|
+
const costs = [
|
|
159
|
+
input.messageTokens,
|
|
160
|
+
input.toolSchemaTokens,
|
|
161
|
+
input.otherInputTokens ?? 0,
|
|
162
|
+
input.protocolReserveTokens,
|
|
163
|
+
outputReserveTokens
|
|
164
|
+
];
|
|
165
|
+
if (!Number.isFinite(input.contextWindow) || input.contextWindow <= 0 || costs.some((value) => !Number.isFinite(value) || value < 0)) {
|
|
166
|
+
return {
|
|
167
|
+
estimatedInputTokens: 0,
|
|
168
|
+
outputReserveTokens: 0,
|
|
169
|
+
availableInputTokens: 0,
|
|
170
|
+
fitsEstimate: false,
|
|
171
|
+
basis,
|
|
172
|
+
reason: "invalid-budget"
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
const estimatedInputTokens = Math.ceil(input.messageTokens) + Math.ceil(input.toolSchemaTokens) + Math.ceil(input.otherInputTokens ?? 0);
|
|
176
|
+
const reserve = Math.ceil(outputReserveTokens);
|
|
177
|
+
const availableInputTokens = Math.floor(input.contextWindow) - Math.ceil(input.protocolReserveTokens) - reserve;
|
|
178
|
+
const fitsEstimate = availableInputTokens >= 0 && estimatedInputTokens <= availableInputTokens;
|
|
179
|
+
return {
|
|
180
|
+
estimatedInputTokens,
|
|
181
|
+
outputReserveTokens: reserve,
|
|
182
|
+
availableInputTokens,
|
|
183
|
+
fitsEstimate,
|
|
184
|
+
basis,
|
|
185
|
+
reason: fitsEstimate ? "fits" : "over-budget"
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
|
|
154
189
|
// packages/agent-runtime/desktopRequestSnapshot.ts
|
|
155
190
|
var DESKTOP_AGENT_CONFIG_SNAPSHOT_STRING_FIELDS = [
|
|
156
191
|
"name",
|
|
@@ -434,6 +469,7 @@ function assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets(body) {
|
|
|
434
469
|
}
|
|
435
470
|
|
|
436
471
|
export {
|
|
472
|
+
evaluateRequestBudget,
|
|
437
473
|
extractImageUrlsFromMessages,
|
|
438
474
|
hasImageInRuntimeMessages,
|
|
439
475
|
stripImagePartsFromMessages,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalizeToolName
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6OVNSQHN.js";
|
|
4
4
|
import {
|
|
5
5
|
isOwnedAgentKey
|
|
6
6
|
} from "./chunk-M2EJHDJP.js";
|
|
7
|
-
import {
|
|
8
|
-
isRecord
|
|
9
|
-
} from "./chunk-KUG52IAP.js";
|
|
10
7
|
import {
|
|
11
8
|
asTrimmedNonEmptyStringArray
|
|
12
9
|
} from "./chunk-I42VC5KR.js";
|
|
10
|
+
import {
|
|
11
|
+
isRecord
|
|
12
|
+
} from "./chunk-KUG52IAP.js";
|
|
13
13
|
|
|
14
14
|
// packages/agent-runtime/runtimeToolSurface.ts
|
|
15
15
|
var DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS = [
|
|
@@ -67,6 +67,8 @@ var HIGH_RISK_MUTATION_TOOL_NAMES = [
|
|
|
67
67
|
// 编排副作用:startAgentRun 会另起一次 run(子 run 的只读与否由调用方参数决定),
|
|
68
68
|
// controlAgentRun 能追加指令/停止它;只读 run 不应拿到这两个(review A-1)。
|
|
69
69
|
"startAgentRun",
|
|
70
|
+
"requestTaskReview",
|
|
71
|
+
"recordTaskReviewDecision",
|
|
70
72
|
"controlAgentRun",
|
|
71
73
|
// 受控云端执行:在用户拥有的云资源上跑任意命令,不可重放、副作用在云端。
|
|
72
74
|
// 硬边界:它永不进 DEFAULT_PRIVATE_NOLO_WORKSPACE_TOOLS(见该清单注释),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UMRI2IRY.js";
|
|
4
4
|
import {
|
|
5
5
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JC5XLWZK.js";
|
|
7
7
|
import {
|
|
8
8
|
findModelConfig,
|
|
9
9
|
getProviderByModelName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LE6LGAJE.js";
|
|
11
11
|
import {
|
|
12
12
|
asTrimmedLowercaseString
|
|
13
13
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AFHOCBSP.js";
|
|
11
11
|
import {
|
|
12
12
|
parsePositiveFiniteNumberOrFallback
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
buildDialogAttachmentPlan,
|
|
23
23
|
extractFileContentIds
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KEPOVMF4.js";
|
|
25
25
|
import {
|
|
26
26
|
getDefaultCliLocalRuntimeDb
|
|
27
27
|
} from "./chunk-P2ZLUIW2.js";
|
|
@@ -36,23 +36,39 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
createClientLogger
|
|
38
38
|
} from "./chunk-QQ56R7KS.js";
|
|
39
|
-
import {
|
|
40
|
-
isLevelNotFoundError
|
|
41
|
-
} from "./chunk-OW765XBU.js";
|
|
42
39
|
import {
|
|
43
40
|
boundSummaryText,
|
|
44
41
|
buildDialogReadEnvelope,
|
|
45
42
|
projectDialogReadForAgent
|
|
46
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-C4VAR65S.js";
|
|
47
44
|
import {
|
|
48
45
|
asRecordOrEmpty
|
|
49
46
|
} from "./chunk-KX6YBIHG.js";
|
|
47
|
+
import {
|
|
48
|
+
isLevelNotFoundError
|
|
49
|
+
} from "./chunk-OW765XBU.js";
|
|
50
|
+
import {
|
|
51
|
+
dialogIdFromKey,
|
|
52
|
+
isSupportedDialogId,
|
|
53
|
+
parseDialogPathIdentity,
|
|
54
|
+
splitDialogKeyIdentity
|
|
55
|
+
} from "./chunk-YZMNK53S.js";
|
|
56
|
+
import {
|
|
57
|
+
asNonEmptyStringArray,
|
|
58
|
+
asTrimmedNonEmptyStringArray
|
|
59
|
+
} from "./chunk-I42VC5KR.js";
|
|
60
|
+
import {
|
|
61
|
+
t
|
|
62
|
+
} from "./chunk-OB6DVWPF.js";
|
|
50
63
|
import {
|
|
51
64
|
resolveRunsDir
|
|
52
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-K5FNYHZC.js";
|
|
53
66
|
import {
|
|
54
67
|
toErrorMessage
|
|
55
68
|
} from "./chunk-HNMXYYJR.js";
|
|
69
|
+
import {
|
|
70
|
+
asTrimmedString
|
|
71
|
+
} from "./chunk-3EUW3WEO.js";
|
|
56
72
|
import {
|
|
57
73
|
isRecord
|
|
58
74
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -63,23 +79,13 @@ import {
|
|
|
63
79
|
resolveDeleteServerCandidates,
|
|
64
80
|
resolveServerCandidates,
|
|
65
81
|
resolveServerUrl
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import {
|
|
68
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
69
|
-
} from "./chunk-4SN6J65J.js";
|
|
70
|
-
import {
|
|
71
|
-
t
|
|
72
|
-
} from "./chunk-VNYYOX3V.js";
|
|
73
|
-
import {
|
|
74
|
-
asNonEmptyStringArray,
|
|
75
|
-
asTrimmedNonEmptyStringArray
|
|
76
|
-
} from "./chunk-I42VC5KR.js";
|
|
77
|
-
import {
|
|
78
|
-
asTrimmedString
|
|
79
|
-
} from "./chunk-3EUW3WEO.js";
|
|
82
|
+
} from "./chunk-2THCNKE4.js";
|
|
80
83
|
import {
|
|
81
84
|
asOptionalTrimmedString
|
|
82
85
|
} from "./chunk-G3SUCT4W.js";
|
|
86
|
+
import {
|
|
87
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
88
|
+
} from "./chunk-4SN6J65J.js";
|
|
83
89
|
|
|
84
90
|
// packages/cli/dialogAttachmentCleanup.ts
|
|
85
91
|
function asText(value) {
|
|
@@ -227,8 +233,6 @@ function loadLocalRunChildDialogIds(args = {}) {
|
|
|
227
233
|
|
|
228
234
|
// packages/cli/dialogCommands.ts
|
|
229
235
|
var logger = createClientLogger("cli:dialog");
|
|
230
|
-
var DIALOG_ID_RE = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
231
|
-
var DIALOG_PATH_RE = /^\/(?:space\/([^/]+)\/)?dialog-(.+)-([0-9A-HJKMNP-TV-Z]{26})\/?$/i;
|
|
232
236
|
var DEFAULT_DIALOG_LIST_LIMIT = 50;
|
|
233
237
|
var DEFAULT_DIALOG_QUERY_LIMIT = 50;
|
|
234
238
|
var UNBOUNDED_DIALOG_CAP = 1e5;
|
|
@@ -347,35 +351,34 @@ function writeJsonlStream(output, items) {
|
|
|
347
351
|
}
|
|
348
352
|
}
|
|
349
353
|
function getDialogIdFromKey(dbKey) {
|
|
350
|
-
|
|
351
|
-
return index >= 0 ? dbKey.slice(index + 1) : dbKey;
|
|
354
|
+
return dialogIdFromKey(dbKey);
|
|
352
355
|
}
|
|
353
356
|
function resolveDialogInput(rawInput, userId) {
|
|
354
357
|
const raw = rawInput.trim();
|
|
355
358
|
if (raw.startsWith("http://") || raw.startsWith("https://")) {
|
|
356
359
|
const url = new URL(raw);
|
|
357
|
-
const
|
|
358
|
-
if (!
|
|
360
|
+
const identity = parseDialogPathIdentity(url.pathname);
|
|
361
|
+
if (!identity) {
|
|
359
362
|
throw new Error(`Unsupported dialog URL path: ${url.pathname}`);
|
|
360
363
|
}
|
|
361
|
-
const [, spaceId, ownerId, dialogId] = match;
|
|
362
364
|
return {
|
|
363
|
-
dbKey: `dialog-${ownerId}-${dialogId}`,
|
|
364
|
-
dialogId,
|
|
365
|
-
ownerId,
|
|
366
|
-
spaceId: spaceId
|
|
365
|
+
dbKey: `dialog-${identity.ownerId}-${identity.dialogId}`,
|
|
366
|
+
dialogId: identity.dialogId,
|
|
367
|
+
ownerId: identity.ownerId,
|
|
368
|
+
spaceId: identity.spaceId
|
|
367
369
|
};
|
|
368
370
|
}
|
|
369
371
|
if (raw.startsWith("dialog-")) {
|
|
370
|
-
const
|
|
372
|
+
const identity = splitDialogKeyIdentity(raw);
|
|
373
|
+
if (!identity) throw new Error(`Unsupported dialog key: ${raw}`);
|
|
371
374
|
return {
|
|
372
375
|
dbKey: raw,
|
|
373
|
-
dialogId,
|
|
374
|
-
ownerId:
|
|
376
|
+
dialogId: identity.dialogId,
|
|
377
|
+
ownerId: identity.userId,
|
|
375
378
|
spaceId: null
|
|
376
379
|
};
|
|
377
380
|
}
|
|
378
|
-
if (!
|
|
381
|
+
if (!isSupportedDialogId(raw)) {
|
|
379
382
|
throw new Error(`Unsupported dialog id: ${raw}`);
|
|
380
383
|
}
|
|
381
384
|
return {
|
|
@@ -550,29 +553,28 @@ function resolveDialogReadTarget(args, env, authToken) {
|
|
|
550
553
|
const raw = rawInput.trim();
|
|
551
554
|
if (raw.startsWith("http://") || raw.startsWith("https://")) {
|
|
552
555
|
const url = new URL(raw);
|
|
553
|
-
const
|
|
554
|
-
if (!
|
|
555
|
-
const [, spaceId, ownerId, dialogId] = match;
|
|
556
|
+
const identity = parseDialogPathIdentity(url.pathname);
|
|
557
|
+
if (!identity) throw new Error(`Unsupported dialog URL path: ${url.pathname}`);
|
|
556
558
|
const base = preferredServer ?? env.READ_DIALOG_BASE ?? url.origin;
|
|
557
559
|
return {
|
|
558
560
|
base,
|
|
559
|
-
dialogId,
|
|
560
|
-
dialogKey: `dialog-${ownerId}-${dialogId}`,
|
|
561
|
-
userId: ownerId,
|
|
562
|
-
spaceId: spaceId
|
|
561
|
+
dialogId: identity.dialogId,
|
|
562
|
+
dialogKey: `dialog-${identity.ownerId}-${identity.dialogId}`,
|
|
563
|
+
userId: identity.ownerId,
|
|
564
|
+
spaceId: identity.spaceId ?? void 0
|
|
563
565
|
};
|
|
564
566
|
}
|
|
565
567
|
if (raw.startsWith("dialog-")) {
|
|
566
|
-
const
|
|
567
|
-
|
|
568
|
+
const identity = splitDialogKeyIdentity(raw);
|
|
569
|
+
if (!identity) throw new Error(`Unsupported dialog key: ${raw}`);
|
|
568
570
|
return {
|
|
569
571
|
base: preferredServer ?? env.READ_DIALOG_BASE ?? resolveServerUrl(args, env),
|
|
570
|
-
dialogId,
|
|
572
|
+
dialogId: identity.dialogId,
|
|
571
573
|
dialogKey: raw,
|
|
572
|
-
userId:
|
|
574
|
+
userId: identity.userId
|
|
573
575
|
};
|
|
574
576
|
}
|
|
575
|
-
if (!
|
|
577
|
+
if (!isSupportedDialogId(raw)) {
|
|
576
578
|
throw new Error(`Unsupported dialog id: ${raw}`);
|
|
577
579
|
}
|
|
578
580
|
if (!ownerFallback) {
|
|
@@ -780,7 +782,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
780
782
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
781
783
|
}
|
|
782
784
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
783
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
785
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-SVTPA5GY.js")).readDialogFromLocalDb;
|
|
784
786
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
785
787
|
return {
|
|
786
788
|
...result,
|
|
@@ -795,7 +797,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
795
797
|
);
|
|
796
798
|
}
|
|
797
799
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
798
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
800
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-SVTPA5GY.js");
|
|
799
801
|
return reader({ ...args, db });
|
|
800
802
|
}
|
|
801
803
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ulid
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OJKUU3LP.js";
|
|
4
4
|
import {
|
|
5
5
|
asNonEmptyStringArray
|
|
6
6
|
} from "./chunk-I42VC5KR.js";
|
|
7
|
-
import {
|
|
8
|
-
asOptionalFiniteNumber
|
|
9
|
-
} from "./chunk-WWC7I6TA.js";
|
|
10
7
|
import {
|
|
11
8
|
asTrimmedString
|
|
12
9
|
} from "./chunk-3EUW3WEO.js";
|
|
10
|
+
import {
|
|
11
|
+
asOptionalFiniteNumber
|
|
12
|
+
} from "./chunk-WWC7I6TA.js";
|
|
13
13
|
import {
|
|
14
14
|
asOptionalTrimmedString
|
|
15
15
|
} from "./chunk-G3SUCT4W.js";
|
|
16
16
|
import {
|
|
17
17
|
__commonJS,
|
|
18
18
|
__toESM
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U67V476Y.js";
|
|
20
20
|
|
|
21
21
|
// node_modules/rambda/dist/rambda.js
|
|
22
22
|
var require_rambda = __commonJS({
|