nolo-cli 0.228.0 → 0.228.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/{_executeModel-GIFVXKDT.js → _executeModel-AKCTHGMP.js} +62 -61
- package/{action-WZTKEF5H.js → action-C6IQAKN4.js} +6 -6
- package/{addContentAction-MLI6GOBV.js → addContentAction-53364YDW.js} +10 -10
- package/{addDialogAgentAction-ARGQM22H.js → addDialogAgentAction-U5DD5EN5.js} +9 -9
- package/{agentDeleteCommand-UF7XVELS.js → agentDeleteCommand-2E5FAGUO.js} +99 -93
- package/{agentEmailCommands-SFHRPQYC.js → agentEmailCommands-UGZZAH7E.js} +99 -93
- package/{agentListCommands-IXKBP3W5.js → agentListCommands-JCTW3J2K.js} +240 -52
- package/{agentMachineCommands-7NX6PWQ6.js → agentMachineCommands-QPG5ZXF4.js} +45 -41
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentPullCommand-4EQZYHU4.js → agentPullCommand-2EYJ5ENC.js} +1 -1
- package/{agentRecordCommands-IUNX6XD6.js → agentRecordCommands-4NTVR6MZ.js} +98 -92
- package/{agentRunCommand-LCR4XADM.js → agentRunCommand-VHF34PYC.js} +103 -94
- package/{agentRunControl-RN2P6AOD.js → agentRunControl-QYTXUQGY.js} +10 -7
- package/{agentRuntimeLocal-LVXPQ7QA.js → agentRuntimeLocal-U54AKHXH.js} +38 -36
- package/{agentSlice-ZGMOH6TE.js → agentSlice-4JGDEXWK.js} +10 -10
- package/{appDeleteCommands-BESCJOQM.js → appDeleteCommands-XBE5QJ6P.js} +46 -42
- package/{appDeployCommands-LPTR6IOX.js → appDeployCommands-QIYLXXGA.js} +46 -42
- package/{appDeployStatusCommands-BZ7KZ5RD.js → appDeployStatusCommands-JXS6ZQZZ.js} +46 -42
- package/{appGetCommands-EDWGJV4S.js → appGetCommands-SZS7SJPK.js} +46 -42
- package/{appListCommands-OPRWYPM6.js → appListCommands-B3GBJSNV.js} +46 -42
- package/{authCommand-3C3RN4OU.js → authCommand-V6EOMZX6.js} +15 -15
- package/{authCommands-ZMVEDCQD.js → authCommands-T5FODCEG.js} +2 -2
- package/{builtinSkillRegistry-VRCMQ77Q.js → builtinSkillRegistry-ZQC3IIO2.js} +4 -3
- package/{chromeOpsCommands-NZITLHWO.js → chromeOpsCommands-OFX7ZGKP.js} +2 -2
- package/{chunk-MZVCFV3T.js → chunk-223KZUJ6.js} +4 -4
- package/{chunk-UF6J7NXV.js → chunk-2C5VN7NH.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/chunk-3A5NNQCN.js +64 -0
- package/chunk-3F2FRLIO.js +372 -0
- package/{chunk-V4IYI3SB.js → chunk-46FETNLF.js} +2 -2
- package/{chunk-RR3MB26M.js → chunk-4GYVS4PM.js} +8 -6
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-Y4NPF2UN.js → chunk-5AYP5QBB.js} +5 -5
- package/{chunk-4OXPN3WC.js → chunk-5ISNPTQH.js} +4 -4
- package/{chunk-CO6E7YK6.js → chunk-5P3PPQVP.js} +1 -1
- package/{chunk-6TVYUQRM.js → chunk-6BMTKYAO.js} +2 -2
- package/{chunk-KLAMJNKQ.js → chunk-6PAHSSD2.js} +15 -8
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-ARFCL53U.js → chunk-6VEO7Z3Y.js} +5 -5
- package/{chunk-ZM5AZTQG.js → chunk-7BIJFGKS.js} +20 -8
- package/{chunk-BAH3BAUZ.js → chunk-7OVOZRZF.js} +5 -5
- package/{chunk-N74XL3NI.js → chunk-7PON4LBY.js} +42 -24
- package/{chunk-LTVEOOZL.js → chunk-7WHCIA5V.js} +16 -3
- package/{chunk-HZDK56EK.js → chunk-ADYWV732.js} +34 -12
- package/{chunk-2FK2KZSL.js → chunk-AIFQKNPP.js} +1 -1
- package/{chunk-VTHWBTRE.js → chunk-BPB3T5EU.js} +5 -8
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-MTM4LRVG.js → chunk-BZMDWGQQ.js} +2 -2
- package/{chunk-JP2BH4NC.js → chunk-CEKRIR22.js} +1 -1
- package/{chunk-5HUO7SEX.js → chunk-D634SL2Y.js} +1 -1
- package/{chunk-SCMYAGQE.js → chunk-DHRPLRIR.js} +294 -159
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-X22AUZKL.js → chunk-E3LSO6EI.js} +189 -88
- package/{chunk-LHCGKAFO.js → chunk-EHFBP6IK.js} +100 -48
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-2BKNICGK.js → chunk-EL5NRJHI.js} +1 -1
- package/chunk-EUGTFFO6.js +42 -0
- package/{chunk-YFW4H6DL.js → chunk-EVHTYVD2.js} +821 -131
- package/{chunk-6XRPBZRS.js → chunk-EYLGAEB4.js} +0 -134
- package/{chunk-E5RYFR7E.js → chunk-FEIVARWR.js} +49 -15
- package/{chunk-3DJJ4CFG.js → chunk-FLBJ7IJI.js} +9 -9
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-VKCPKCSS.js → chunk-FYAMUU55.js} +625 -62
- package/{chunk-JEWMQR6J.js → chunk-FZANZZ63.js} +1 -1
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-YHNUDTU4.js → chunk-HDKMVYNJ.js} +4 -4
- package/chunk-HEVRQGGH.js +106 -0
- package/{chunk-PBPXXMWZ.js → chunk-HFHJPHFK.js} +1 -1
- package/{chunk-WQDTSK5U.js → chunk-HPDLPEUG.js} +11 -5
- package/{chunk-SPU3L3OR.js → chunk-HQUGB2HM.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-73PZD7JZ.js → chunk-IYLUK67R.js} +2 -2
- package/{chunk-BFKJ2RS3.js → chunk-J55F3IEZ.js} +1 -1
- package/{chunk-ADOOL3PG.js → chunk-J7JRCOIW.js} +1 -1
- package/{chunk-AEZBAFC6.js → chunk-JAKRY74O.js} +138 -8
- package/{chunk-NEG5LYK5.js → chunk-JCQ3WCQ3.js} +3 -1
- package/{chunk-W6T4FNZP.js → chunk-JLZJL3WC.js} +219 -351
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-IIOSZAJX.js → chunk-KDBDOXOM.js} +137 -53
- package/{chunk-CIGCTSBF.js → chunk-KDDHQMSH.js} +1 -1
- package/{chunk-OAZP4TSA.js → chunk-KG27JIG4.js} +2 -2
- package/{chunk-RHBD22LV.js → chunk-KHYSFS3W.js} +80 -4
- package/{chunk-7UVVLYKC.js → chunk-KKIQAVDR.js} +5 -5
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-OLGFIQN2.js → chunk-LLUBUHNT.js} +1 -1
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-XJSEST7D.js → chunk-MNFUKRRU.js} +3 -3
- package/{chunk-R5NRFXGD.js → chunk-O3A2CHAL.js} +5 -5
- package/{chunk-4IQN6FWY.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-J2VIGDJN.js → chunk-OJSJJKHF.js} +3 -3
- package/{chunk-OHUYN3YU.js → chunk-OKAXQFON.js} +1 -1
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-MYYNZG2M.js → chunk-OOV5JN25.js} +4 -4
- package/{chunk-TMRJGSK2.js → chunk-OOVOAG4Q.js} +1 -1
- package/chunk-OQFOE4SJ.js +405 -0
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VIYVRPMJ.js → chunk-PHREU2KZ.js} +5 -3
- package/{chunk-EDT65EUE.js → chunk-PIVTQRX6.js} +45 -15
- package/{chunk-QMNVV3YM.js → chunk-PJL7OJRC.js} +12 -11
- package/{chunk-XCA4WHX5.js → chunk-PNLDLUMO.js} +315 -360
- package/{chunk-UPOW5HTG.js → chunk-QGFLVQ6E.js} +3 -3
- package/{chunk-JU7VN4LF.js → chunk-QONAOHVW.js} +6 -6
- package/{chunk-UOUMPHS5.js → chunk-R3FZHW4Q.js} +13 -13
- package/{chunk-K7VIXYTZ.js → chunk-R3MV2GII.js} +1 -45
- package/{chunk-FE7G6DSP.js → chunk-R72QWIFO.js} +14 -4
- package/{chunk-KZAT2M2V.js → chunk-RIWKZT7E.js} +22 -0
- package/{chunk-RMWDKLBE.js → chunk-S7H4KTMB.js} +1099 -71
- package/{chunk-IJZC2KIJ.js → chunk-SA356NGW.js} +1 -1
- package/{chunk-BVEDT6DM.js → chunk-SCAC3NM5.js} +3 -3
- package/{chunk-EQZQUQ33.js → chunk-SLUN7W6S.js} +5 -5
- package/{chunk-KK3FCYZM.js → chunk-SQL7YNED.js} +7 -4
- package/{chunk-LMGFVH65.js → chunk-SSOR2EDT.js} +10 -10
- package/chunk-TRRXYFTR.js +46 -0
- package/{chunk-XNTZD4AE.js → chunk-TUOHSUK5.js} +19367 -17503
- package/chunk-TYJCIA2O.js +835 -0
- package/{chunk-FTWAOKFU.js → chunk-U3BUWDUP.js} +415 -1962
- package/{chunk-CD64YXRB.js → chunk-U6QNVOR5.js} +1 -1
- package/chunk-UAF5VQCE.js +77 -0
- package/{chunk-CIUZXD5D.js → chunk-UFGUJ2IH.js} +5 -5
- package/{chunk-CTIEJRTP.js → chunk-UP7KBWLE.js} +81 -29
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-UHW6SCVK.js → chunk-UZKBVQUX.js} +1 -1
- package/{chunk-XSRSAU3O.js → chunk-V5TI7HJH.js} +3 -3
- package/{chunk-WFGNWWJI.js → chunk-VH7UO6E5.js} +252 -114
- package/{chunk-ITBX27W6.js → chunk-VJFDG3ZG.js} +30 -122
- package/{chunk-6MTVACLN.js → chunk-WC3J5SL2.js} +277 -293
- package/{chunk-HCCQEMTK.js → chunk-WD5547ZF.js} +15 -12
- package/{chunk-X3OZ655T.js → chunk-WS36XPJD.js} +2 -2
- package/{chunk-JFRJEPFI.js → chunk-WSLL7VV4.js} +2 -2
- package/chunk-XRGBJHZX.js +136 -0
- package/{chunk-KZ5OD2MO.js → chunk-Y2KWJTOZ.js} +3 -3
- package/{dialogUsageCommand-6RW2FY6K.js → chunk-Y2TCTNUD.js} +24 -17
- package/{chunk-FFFKAOJN.js → chunk-YN23INFZ.js} +1 -1
- package/{chunk-ODBYGVO2.js → chunk-YXK3GJF5.js} +5 -5
- package/{chunk-6CXQ3YNJ.js → chunk-Z2OWAYMI.js} +53 -31
- package/{chunk-6XVPMGXK.js → chunk-ZTHAJU3O.js} +10 -4
- package/{chunk-D25ONVOH.js → chunk-ZYPXOQS2.js} +1 -1
- package/{cliAgentConfigHelpers-37ZNEY5Y.js → cliAgentConfigHelpers-BXHQ3PXP.js} +8 -8
- package/{cliAuthorityBrokerClient-SFPC3WVK.js → cliAuthorityBrokerClient-TFNXJLXL.js} +1 -1
- package/cliAuthorityBrokerProcess-5ZFBTHLB.js +22 -0
- package/{cliLocalAgentRecordReader-MCQVRWBR.js → cliLocalAgentRecordReader-47PXMHPH.js} +43 -41
- package/{commandRegistry-NTH5IAN5.js → commandRegistry-CTMPAQH2.js} +93 -156
- package/{contentThunks-SPXTX5U2.js → contentThunks-CAHIIZO5.js} +25 -25
- package/{cooldownCommands-TIFCHCUN.js → cooldownCommands-WDOI5VD7.js} +3 -3
- package/{createAgentAutomationAction-KUQKCOXB.js → createAgentAutomationAction-M25XZSPD.js} +25 -25
- package/{createDialogAction-HJN5U3XS.js → createDialogAction-4SN7FKI7.js} +26 -26
- package/{createPageAction-ZAHRDOAU.js → createPageAction-N7QPDN3M.js} +28 -28
- package/{db-CMUTP3W5.js → db-VR74ADGC.js} +7 -2
- package/{dbSlice-656PMWR2.js → dbSlice-RWPSVHBC.js} +9 -9
- package/{deleteFile-ZCQESEEQ.js → deleteFile-ECU6FU5C.js} +12 -7
- package/{dialogCommands-KZTZLWPZ.js → dialogCommands-BBHWCKDP.js} +57 -47
- package/{dialogNotifyCommand-PST75COP.js → dialogNotifyCommand-IASQGEMW.js} +9 -9
- package/{dialogSlice-BXIERQHO.js → dialogSlice-JI3J22RV.js} +23 -23
- package/dialogTraceCommand-EW2KK6A4.js +961 -0
- package/dialogUsageCommand-WJ3U6KZU.js +27 -0
- package/{docCreateCommands-26HJ5NAY.js → docCreateCommands-QSX3X5U4.js} +45 -41
- package/{docDeleteCommands-UAOHH5XK.js → docDeleteCommands-63JBG2HQ.js} +46 -42
- package/{docReadCommands-4ADG7YE6.js → docReadCommands-CQFKRQUI.js} +45 -41
- package/{docStore-FZ75HWP2.js → docStore-XLBKGGNM.js} +10 -10
- package/{docUpdateCommands-OGFJZENF.js → docUpdateCommands-534LUK25.js} +45 -41
- package/ebookDownloaderAgentCommand-DYSKF5ZY.js +677 -0
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-KP6GGBFY.js → handleSendMessageAction-Q2VMEVOR.js} +90 -48
- package/{hostCredentialCreate-23TX56G7.js → hostCredentialCreate-C57T7YPE.js} +99 -93
- package/index.js +23 -11
- package/{localDialogRead-CIOTQM5T.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-MTUWOYPN.js → localRuntimeAdapter-OALZPFZU.js} +96 -90
- package/{localRuntimeAuthority-TYHQCTZN.js → localRuntimeAuthority-UF2DAQ3F.js} +13 -3
- package/{localRuntimeDb-BO7IVWAZ.js → localRuntimeDb-ZJFGNHML.js} +1 -1
- package/{machineCommands-4WJUJQHW.js → machineCommands-N6IVWRZT.js} +109 -92
- package/{machineWsRunDispatch-V3U4JM67.js → machineWsRunDispatch-PDWYB33B.js} +97 -91
- package/{markdownToSlate-KIYM7B3P.js → markdownToSlate-PXYAIBVL.js} +1 -1
- package/{mcpLocalAuthorizeCommand-TI656UWC.js → mcpLocalAuthorizeCommand-KYI4EGF5.js} +17 -13
- package/{memberThunks-JFYC4Z5L.js → memberThunks-43B7UYC5.js} +11 -11
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +2 -1
- package/{projectArchive-NU2Z5HOR.js → projectArchive-TJNW5DLM.js} +28 -28
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-KG6INYUT.js} +12 -7
- package/{readDocTool-N7RVFQEE.js → readDocTool-N3GA52JR.js} +1 -1
- package/{readlineWorkspace-T56MRMS5.js → readlineWorkspace-PJZJVGA5.js} +1296 -1056
- package/{removeDialogAgentAction-J7XU7OUX.js → removeDialogAgentAction-EEVSOQOJ.js} +11 -11
- package/{runAgentClientLoop-O2GRCGRZ.js → runAgentClientLoop-3VC5TCDW.js} +69 -58
- package/{runtimeDoctorCommands-RDRJXMXC.js → runtimeDoctorCommands-V3M3JTUV.js} +14 -11
- package/{secretCommands-2FEMRUFM.js → secretCommands-KVVZS7A6.js} +2 -2
- package/{setDialogExtraReferencesAction-Q4V2ZZW2.js → setDialogExtraReferencesAction-DNO5POHA.js} +10 -10
- package/{setPrimaryDialogAgentAction-742H5S6T.js → setPrimaryDialogAgentAction-QABBEO4C.js} +11 -11
- package/{settingThunks-T4FXSV6M.js → settingThunks-DVKG4X4S.js} +13 -17
- package/{skillDiscovery-MDDKPTW3.js → skillDiscovery-ZMJH36AK.js} +3 -3
- package/{spaceCommands-W5TAVFDT.js → spaceCommands-AGGZXPY3.js} +218 -77
- package/{streamAgentChatTurn-OWDJMU5E.js → streamAgentChatTurn-4GTLL2OF.js} +111 -95
- package/{switchDialogAgentAction-HLDLHRRA.js → switchDialogAgentAction-KYWJSGOO.js} +9 -9
- package/{tableCommands-44GC4N6J.js → tableCommands-EFA754RE.js} +3 -3
- package/{tools-O7SGGVA3.js → tools-5AGPOPLW.js} +48 -47
- package/{tuiRestart-EOGC2BYY.js → tuiRestart-77E7PL4R.js} +9 -8
- package/{tuiSummaryLlmCaller-TM5BU73J.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-FBYA5WVG.js → updateCommands-GJGRS6JK.js} +3 -3
- package/{updateDialogTitleAction-EXSZGTLL.js → updateDialogTitleAction-5OSEDGRK.js} +25 -25
- package/{usageCommand-L4OFWXEU.js → usageCommand-WI6SQOPB.js} +2 -2
- package/{usageRebuildCommand-7JR33UHS.js → usageRebuildCommand-WQRLLZAT.js} +3 -3
- package/{windowsSelfUpdate-M4V77OUB.js → windowsSelfUpdate-C7LGVWYX.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-P2SJVV3S.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/chunk-U5LOKQ2R.js +0 -176
- package/chunk-YDRRGVT5.js +0 -142
- package/chunk-YGDYYFRX.js +0 -86
- package/chunk-Z7KE4K3H.js +0 -758
- package/lib-62SWPXNF.js +0 -21042
- /package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
canUsePlatformChatProvider,
|
|
11
11
|
parsePlatformChatCompletionResponse,
|
|
12
12
|
resolvePlatformChatProviderConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PIVTQRX6.js";
|
|
14
14
|
import {
|
|
15
15
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
16
16
|
classifySummaryError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isTruncatedCompletion,
|
|
19
19
|
selectSummaryRoute,
|
|
20
20
|
summaryCompletionTokens
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2FZVXOFX.js";
|
|
22
22
|
import {
|
|
23
23
|
isAbortError
|
|
24
24
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
resolvePlatformAuthToken,
|
|
30
30
|
resolvePlatformServerUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-LVZVSLKO.js";
|
|
32
32
|
import {
|
|
33
33
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JPXACKSW.js";
|
|
35
35
|
|
|
36
36
|
// packages/core/accountSession/fetchAccountProfile.ts
|
|
37
37
|
async function fetchAccountProfile(input) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
patch,
|
|
6
6
|
readAndWait
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ADYWV732.js";
|
|
8
8
|
import {
|
|
9
9
|
require_react
|
|
10
10
|
} from "./chunk-RD3QLZQV.js";
|
|
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
335
335
|
).unwrap();
|
|
336
336
|
if (dbSpaceId) {
|
|
337
337
|
try {
|
|
338
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
338
|
+
const { updateContentTitle } = await import("./contentThunks-CAHIIZO5.js");
|
|
339
339
|
await dispatch(
|
|
340
340
|
updateContentTitle({
|
|
341
341
|
spaceId: dbSpaceId,
|
|
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
async function createDocState(args, thunkApi) {
|
|
381
|
-
const { createPageAction } = await import("./createPageAction-
|
|
381
|
+
const { createPageAction } = await import("./createPageAction-N7QPDN3M.js");
|
|
382
382
|
return createPageAction(args, thunkApi);
|
|
383
383
|
}
|
|
384
384
|
function subscribe(listener) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolvePlatformEffectiveModel,
|
|
13
13
|
toCnyCredits,
|
|
14
14
|
zaiModels
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JPXACKSW.js";
|
|
16
16
|
|
|
17
17
|
// packages/integrations/qwen/models.ts
|
|
18
18
|
var qwenModels = [
|
|
@@ -3732,6 +3732,7 @@ export {
|
|
|
3732
3732
|
commandCodeModels,
|
|
3733
3733
|
opencodeGoModels,
|
|
3734
3734
|
DEFAULT_REASONING_EFFORT,
|
|
3735
|
+
REASONING_EFFORT_OPTIONS,
|
|
3735
3736
|
resolveModelReasoningCapability,
|
|
3736
3737
|
resolveModelReasoningCapabilityWithCache,
|
|
3737
3738
|
isModelSupportReasoningEffort,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
streamSseDataValues
|
|
3
3
|
} from "./chunk-HNUWUO75.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveToolImagePolicy
|
|
6
|
+
} from "./chunk-BZLGPM5B.js";
|
|
4
7
|
import {
|
|
5
8
|
projectOpenAiToolImages
|
|
6
9
|
} from "./chunk-X4O7FJF5.js";
|
|
7
|
-
import {
|
|
8
|
-
resolveToolImagePolicy
|
|
9
|
-
} from "./chunk-SX6AWTNK.js";
|
|
10
10
|
import {
|
|
11
11
|
getAntigravityUserAgent,
|
|
12
12
|
readAntigravityProjectId,
|
|
13
13
|
resolveAntigravityCloudCodeBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6SOWMEAY.js";
|
|
15
15
|
import {
|
|
16
16
|
asOptionalTrimmedString
|
|
17
17
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createLegacyServerDb,
|
|
3
|
+
isLevelLockError
|
|
4
|
+
} from "./chunk-TRRXYFTR.js";
|
|
5
|
+
import {
|
|
6
|
+
startCliAuthorityBrokerProcess
|
|
7
|
+
} from "./chunk-JLZJL3WC.js";
|
|
8
|
+
import {
|
|
9
|
+
loadCliAuthorityBrokerTls
|
|
10
|
+
} from "./chunk-3A5NNQCN.js";
|
|
11
|
+
import {
|
|
12
|
+
createCliAuthorityBrokerClient,
|
|
13
|
+
createCliAuthorityBrokerSocketInvoker,
|
|
14
|
+
isCliAuthorityBrokerTimeoutError,
|
|
15
|
+
isCliAuthorityBrokerUnavailableError
|
|
16
|
+
} from "./chunk-SQL7YNED.js";
|
|
17
|
+
import {
|
|
18
|
+
resolveCliAuthorityBrokerEndpoint,
|
|
19
|
+
resolveCliAuthorityBrokerHealthPath,
|
|
20
|
+
resolveCliAuthorityBrokerMetadataPath
|
|
21
|
+
} from "./chunk-CVMMWN6P.js";
|
|
22
|
+
import {
|
|
23
|
+
resolveNoloHome
|
|
24
|
+
} from "./chunk-GLKOYSRU.js";
|
|
25
|
+
import {
|
|
26
|
+
toErrorMessage
|
|
27
|
+
} from "./chunk-HNMXYYJR.js";
|
|
28
|
+
|
|
29
|
+
// packages/cli/localRuntimeAuthority.ts
|
|
30
|
+
import fs from "node:fs";
|
|
31
|
+
import { randomUUID } from "node:crypto";
|
|
32
|
+
import path from "node:path";
|
|
33
|
+
function ensureDbParentDir(dbPath) {
|
|
34
|
+
fs.mkdirSync(path.dirname(dbPath), { recursive: true });
|
|
35
|
+
}
|
|
36
|
+
function findCliAuthorityCorruption(error) {
|
|
37
|
+
const seen = /* @__PURE__ */ new Set();
|
|
38
|
+
let current = error;
|
|
39
|
+
while (current && !seen.has(current)) {
|
|
40
|
+
seen.add(current);
|
|
41
|
+
if (current.code === "LEVEL_CORRUPTION" || /Corruption:|missing files/i.test(toErrorMessage(current))) return current;
|
|
42
|
+
current = current.cause;
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
}
|
|
46
|
+
function throwCliAuthorityStartupError(error) {
|
|
47
|
+
const corruption = findCliAuthorityCorruption(error);
|
|
48
|
+
if (corruption) {
|
|
49
|
+
throw new Error(`Local authority database corruption: ${toErrorMessage(corruption)}`, { cause: error });
|
|
50
|
+
}
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
function isCliAuthorityLockError(error) {
|
|
54
|
+
if (findCliAuthorityCorruption(error)) return false;
|
|
55
|
+
const seen = /* @__PURE__ */ new Set();
|
|
56
|
+
let current = error;
|
|
57
|
+
while (current && !seen.has(current)) {
|
|
58
|
+
seen.add(current);
|
|
59
|
+
if (isLevelLockError(current)) return true;
|
|
60
|
+
current = current.cause;
|
|
61
|
+
}
|
|
62
|
+
return /EADDRINUSE|Failed to listen/i.test(toErrorMessage(error));
|
|
63
|
+
}
|
|
64
|
+
async function sleep(ms) {
|
|
65
|
+
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
66
|
+
}
|
|
67
|
+
function resolveCliLocalRuntimeDbPath(options = {}) {
|
|
68
|
+
return path.join(
|
|
69
|
+
resolveNoloHome({
|
|
70
|
+
env: options.env,
|
|
71
|
+
homeDir: options.homeDir
|
|
72
|
+
}),
|
|
73
|
+
"data",
|
|
74
|
+
"leveldb"
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
var DEFAULT_ATTACH_BACKOFF_MS = [100, 200, 400, 800];
|
|
78
|
+
var DEFAULT_ATTACH_RETRY_BUDGET_MS = 9e3;
|
|
79
|
+
function findOwnerPid(error) {
|
|
80
|
+
const seen = /* @__PURE__ */ new Set();
|
|
81
|
+
let current = error;
|
|
82
|
+
while (current && typeof current === "object" && !seen.has(current)) {
|
|
83
|
+
seen.add(current);
|
|
84
|
+
const pid = current.ownerPid;
|
|
85
|
+
if (typeof pid === "number" && Number.isInteger(pid) && pid > 0) {
|
|
86
|
+
return pid;
|
|
87
|
+
}
|
|
88
|
+
current = current.cause;
|
|
89
|
+
}
|
|
90
|
+
return void 0;
|
|
91
|
+
}
|
|
92
|
+
function isTransientBrokerOpenError(error) {
|
|
93
|
+
return isCliAuthorityBrokerUnavailableError(error) || isCliAuthorityBrokerTimeoutError(error);
|
|
94
|
+
}
|
|
95
|
+
var defaultCliAuthorityBrokerConnectDeps = {
|
|
96
|
+
createClient: (options) => createCliAuthorityBrokerClient(options),
|
|
97
|
+
startBroker: startCliAuthorityBrokerProcess,
|
|
98
|
+
sleep,
|
|
99
|
+
useFastPath: true
|
|
100
|
+
};
|
|
101
|
+
function verifyBrokerDatabase(args, liveLocation) {
|
|
102
|
+
const expected = fs.existsSync(args.dbPath) ? fs.realpathSync(args.dbPath) : path.join(fs.realpathSync(path.dirname(args.dbPath)), path.basename(args.dbPath));
|
|
103
|
+
if (typeof liveLocation !== "string" || fs.realpathSync(liveLocation) !== expected) {
|
|
104
|
+
throw new Error(`Authority broker at ${args.endpoint} does not match the requested database ${args.dbPath}`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function findLegacyBrokerOwner(args) {
|
|
108
|
+
try {
|
|
109
|
+
const metadata = JSON.parse(fs.readFileSync(args.metadataPath, "utf8"));
|
|
110
|
+
const owner = JSON.parse(fs.readFileSync(`${args.dbPath}.owner`, "utf8"));
|
|
111
|
+
if (metadata.transportSecurity !== void 0 || metadata.supervisorPid !== void 0 || metadata.endpoint !== args.endpoint || !Number.isInteger(metadata.pid) || metadata.pid <= 0 || owner.pid !== metadata.pid || fs.realpathSync(metadata.location) !== fs.realpathSync(args.dbPath)) return void 0;
|
|
112
|
+
process.kill(metadata.pid, 0);
|
|
113
|
+
return metadata.pid;
|
|
114
|
+
} catch {
|
|
115
|
+
return void 0;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
async function connectCliAuthorityBroker(args) {
|
|
119
|
+
const deps = {
|
|
120
|
+
...defaultCliAuthorityBrokerConnectDeps,
|
|
121
|
+
...args.deps
|
|
122
|
+
};
|
|
123
|
+
async function connectClient() {
|
|
124
|
+
const invoke = createCliAuthorityBrokerSocketInvoker({ endpoint: args.endpoint, tls: args.tls });
|
|
125
|
+
const client2 = deps.createClient({
|
|
126
|
+
endpoint: args.endpoint,
|
|
127
|
+
invoke: async (request) => {
|
|
128
|
+
if (request.type !== "status" || !deps.verifyBroker) return invoke(request);
|
|
129
|
+
const response = await invoke({ type: "status", includeLocation: true });
|
|
130
|
+
if (response.ok && response.result.type === "status") deps.verifyBroker(args, response.result.location);
|
|
131
|
+
return response;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
const backoffSchedule = deps.attachBackoffMs?.length ? deps.attachBackoffMs : DEFAULT_ATTACH_BACKOFF_MS;
|
|
135
|
+
const retryBudgetMs = deps.attachRetryBudgetMs ?? DEFAULT_ATTACH_RETRY_BUDGET_MS;
|
|
136
|
+
let waitedMs = 0;
|
|
137
|
+
let backoffStep = 0;
|
|
138
|
+
let lastAttachError;
|
|
139
|
+
const waitBackoff = async () => {
|
|
140
|
+
if (waitedMs >= retryBudgetMs) return false;
|
|
141
|
+
const delay = backoffSchedule[Math.min(backoffStep, backoffSchedule.length - 1)];
|
|
142
|
+
if (waitedMs > 0 && waitedMs + delay > retryBudgetMs) return false;
|
|
143
|
+
backoffStep += 1;
|
|
144
|
+
const startedAt = Date.now();
|
|
145
|
+
await deps.sleep(delay);
|
|
146
|
+
waitedMs += Math.max(delay, Date.now() - startedAt);
|
|
147
|
+
return true;
|
|
148
|
+
};
|
|
149
|
+
async function attachToExistingBroker(attempts) {
|
|
150
|
+
for (let attempt = 0; attempt < attempts; attempt += 1) {
|
|
151
|
+
if (!await waitBackoff()) return false;
|
|
152
|
+
const probeStartedAt = Date.now();
|
|
153
|
+
try {
|
|
154
|
+
await client2.open();
|
|
155
|
+
return true;
|
|
156
|
+
} catch (error) {
|
|
157
|
+
waitedMs += Date.now() - probeStartedAt;
|
|
158
|
+
if (!isTransientBrokerOpenError(error)) throw error;
|
|
159
|
+
lastAttachError = error;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
if (deps.useFastPath) {
|
|
165
|
+
try {
|
|
166
|
+
await client2.open();
|
|
167
|
+
return client2;
|
|
168
|
+
} catch (error) {
|
|
169
|
+
if (!isTransientBrokerOpenError(error)) throw error;
|
|
170
|
+
lastAttachError = error;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
try {
|
|
174
|
+
await deps.startBroker({
|
|
175
|
+
endpoint: args.endpoint,
|
|
176
|
+
metadataPath: args.metadataPath,
|
|
177
|
+
healthPath: args.healthPath,
|
|
178
|
+
dbPath: args.dbPath
|
|
179
|
+
});
|
|
180
|
+
await client2.open();
|
|
181
|
+
return client2;
|
|
182
|
+
} catch (error) {
|
|
183
|
+
if (!isCliAuthorityLockError(error)) throwCliAuthorityStartupError(error);
|
|
184
|
+
if (await attachToExistingBroker(5)) {
|
|
185
|
+
return client2;
|
|
186
|
+
}
|
|
187
|
+
let lastError = error;
|
|
188
|
+
while (await waitBackoff()) {
|
|
189
|
+
try {
|
|
190
|
+
await deps.startBroker({
|
|
191
|
+
endpoint: args.endpoint,
|
|
192
|
+
metadataPath: args.metadataPath,
|
|
193
|
+
healthPath: args.healthPath,
|
|
194
|
+
dbPath: args.dbPath
|
|
195
|
+
});
|
|
196
|
+
await client2.open();
|
|
197
|
+
return client2;
|
|
198
|
+
} catch (retryError) {
|
|
199
|
+
lastError = retryError;
|
|
200
|
+
if (isCliAuthorityLockError(retryError)) {
|
|
201
|
+
if (await attachToExistingBroker(2)) {
|
|
202
|
+
return client2;
|
|
203
|
+
}
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
if (isTransientBrokerOpenError(retryError)) {
|
|
207
|
+
lastAttachError = retryError;
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
throwCliAuthorityStartupError(retryError);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const lastMessage = toErrorMessage(lastError);
|
|
214
|
+
const attachCause = lastAttachError instanceof Error ? lastAttachError.cause : void 0;
|
|
215
|
+
const attachMessage = lastAttachError ? [toErrorMessage(lastAttachError), ...attachCause ? [toErrorMessage(attachCause)] : []].join(" / ") : "";
|
|
216
|
+
const portInUse = lastError !== null && typeof lastError === "object" && "code" in lastError && lastError.code === "EADDRINUSE" || /EADDRINUSE/i.test(lastMessage);
|
|
217
|
+
const ownerPid = findOwnerPid(lastError);
|
|
218
|
+
const legacyOwner = args.tls ? findLegacyBrokerOwner(args) : void 0;
|
|
219
|
+
if (legacyOwner !== void 0) {
|
|
220
|
+
throw new Error(`CLI authority broker upgrade requires exit of the previous Nolo process (PID ${legacyOwner}). Close its Nolo window or let it finish, then retry. The new broker will reopen the same database.`, {
|
|
221
|
+
cause: lastError
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
let detail = "";
|
|
225
|
+
if (portInUse) {
|
|
226
|
+
detail = `: EADDRINUSE (${lastMessage}). The broker endpoint is already in use; check the process using it or set NOLO_CLI_AUTHORITY_BROKER_PORT to a free port for all local CLI processes`;
|
|
227
|
+
} else {
|
|
228
|
+
const parts = [
|
|
229
|
+
ownerPid !== void 0 ? `ownerPid=${ownerPid}` : void 0,
|
|
230
|
+
lastMessage || void 0,
|
|
231
|
+
attachMessage && attachMessage !== lastMessage ? `attach=${attachMessage}` : void 0
|
|
232
|
+
].filter(Boolean);
|
|
233
|
+
if (parts.length > 0) {
|
|
234
|
+
detail = `: ${parts.join("; ")}`;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
throw new Error(`CLI authority broker could not attach or take ownership for ${args.endpoint}${detail}`, {
|
|
238
|
+
cause: lastError
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
let client = await connectClient();
|
|
243
|
+
let reconnecting = null;
|
|
244
|
+
async function reconnect() {
|
|
245
|
+
reconnecting ??= connectClient();
|
|
246
|
+
try {
|
|
247
|
+
client = await reconnecting;
|
|
248
|
+
return client;
|
|
249
|
+
} finally {
|
|
250
|
+
reconnecting = null;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
async function runWithSelfHealing(operation) {
|
|
254
|
+
try {
|
|
255
|
+
return await operation(client);
|
|
256
|
+
} catch (error) {
|
|
257
|
+
if (!isCliAuthorityBrokerUnavailableError(error)) throw error;
|
|
258
|
+
const recoveredClient = await reconnect();
|
|
259
|
+
return operation(recoveredClient);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return {
|
|
263
|
+
get location() {
|
|
264
|
+
return client.location;
|
|
265
|
+
},
|
|
266
|
+
get status() {
|
|
267
|
+
return client.status;
|
|
268
|
+
},
|
|
269
|
+
open: () => runWithSelfHealing((activeClient) => activeClient.open()),
|
|
270
|
+
close: () => runWithSelfHealing((activeClient) => activeClient.close()),
|
|
271
|
+
get: (key) => runWithSelfHealing((activeClient) => activeClient.get(key)),
|
|
272
|
+
conditionalPut: (key, expectedRevision, value) => runWithSelfHealing((activeClient) => {
|
|
273
|
+
if (!activeClient.conditionalPut) {
|
|
274
|
+
throw new Error("CLI authority broker does not support conditionalPut");
|
|
275
|
+
}
|
|
276
|
+
return activeClient.conditionalPut(key, expectedRevision, value);
|
|
277
|
+
}),
|
|
278
|
+
put: (key, value) => runWithSelfHealing((activeClient) => activeClient.put(key, value)),
|
|
279
|
+
del: (key) => runWithSelfHealing((activeClient) => activeClient.del(key)),
|
|
280
|
+
batchWrite: (ops) => runWithSelfHealing((activeClient) => activeClient.batchWrite(ops)),
|
|
281
|
+
createBatch() {
|
|
282
|
+
const ops = [];
|
|
283
|
+
return {
|
|
284
|
+
put(key, value) {
|
|
285
|
+
ops.push({ type: "put", key, value });
|
|
286
|
+
},
|
|
287
|
+
del(key) {
|
|
288
|
+
ops.push({ type: "del", key });
|
|
289
|
+
},
|
|
290
|
+
write: () => runWithSelfHealing((activeClient) => activeClient.batchWrite(ops))
|
|
291
|
+
};
|
|
292
|
+
},
|
|
293
|
+
iterator(options = {}) {
|
|
294
|
+
return async function* iterate() {
|
|
295
|
+
let activeOptions = options;
|
|
296
|
+
let lastYieldedKey;
|
|
297
|
+
let skipResumeKey = false;
|
|
298
|
+
let recovered = false;
|
|
299
|
+
while (true) {
|
|
300
|
+
try {
|
|
301
|
+
for await (const entry of client.iterator(activeOptions)) {
|
|
302
|
+
if (skipResumeKey && entry[0] === lastYieldedKey) {
|
|
303
|
+
skipResumeKey = false;
|
|
304
|
+
continue;
|
|
305
|
+
}
|
|
306
|
+
skipResumeKey = false;
|
|
307
|
+
lastYieldedKey = entry[0];
|
|
308
|
+
yield entry;
|
|
309
|
+
}
|
|
310
|
+
return;
|
|
311
|
+
} catch (error) {
|
|
312
|
+
if (recovered || !isCliAuthorityBrokerUnavailableError(error)) {
|
|
313
|
+
throw error;
|
|
314
|
+
}
|
|
315
|
+
recovered = true;
|
|
316
|
+
await reconnect();
|
|
317
|
+
if (lastYieldedKey === void 0) {
|
|
318
|
+
activeOptions = options;
|
|
319
|
+
continue;
|
|
320
|
+
}
|
|
321
|
+
if (options.reverse) {
|
|
322
|
+
activeOptions = {
|
|
323
|
+
...options,
|
|
324
|
+
lt: lastYieldedKey
|
|
325
|
+
};
|
|
326
|
+
continue;
|
|
327
|
+
}
|
|
328
|
+
activeOptions = {
|
|
329
|
+
...options,
|
|
330
|
+
gte: lastYieldedKey
|
|
331
|
+
};
|
|
332
|
+
skipResumeKey = true;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}();
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
async function getDefaultCliLocalRuntimeAuthority(options = {}) {
|
|
340
|
+
const ambientNoloHome = process.env.NOLO_HOME?.trim();
|
|
341
|
+
const ambientBrokerPort = process.env.NOLO_CLI_AUTHORITY_BROKER_PORT?.trim();
|
|
342
|
+
const env = {
|
|
343
|
+
...ambientNoloHome ? { NOLO_HOME: ambientNoloHome } : {},
|
|
344
|
+
...ambientBrokerPort ? { NOLO_CLI_AUTHORITY_BROKER_PORT: ambientBrokerPort } : {},
|
|
345
|
+
...options.env ?? process.env
|
|
346
|
+
};
|
|
347
|
+
const dbPath = resolveCliLocalRuntimeDbPath({
|
|
348
|
+
env,
|
|
349
|
+
homeDir: options.homeDir
|
|
350
|
+
});
|
|
351
|
+
ensureDbParentDir(dbPath);
|
|
352
|
+
const endpoint = resolveCliAuthorityBrokerEndpoint({
|
|
353
|
+
transport: "tcp",
|
|
354
|
+
env,
|
|
355
|
+
homeDir: options.homeDir
|
|
356
|
+
});
|
|
357
|
+
const metadataPath = resolveCliAuthorityBrokerMetadataPath({
|
|
358
|
+
transport: "tcp",
|
|
359
|
+
env,
|
|
360
|
+
homeDir: options.homeDir
|
|
361
|
+
});
|
|
362
|
+
const healthPath = resolveCliAuthorityBrokerHealthPath({
|
|
363
|
+
transport: "tcp",
|
|
364
|
+
env,
|
|
365
|
+
homeDir: options.homeDir
|
|
366
|
+
});
|
|
367
|
+
return connectCliAuthorityBroker({
|
|
368
|
+
endpoint,
|
|
369
|
+
metadataPath,
|
|
370
|
+
healthPath,
|
|
371
|
+
dbPath,
|
|
372
|
+
tls: await loadCliAuthorityBrokerTls(metadataPath),
|
|
373
|
+
deps: { verifyBroker: verifyBrokerDatabase }
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
async function getDefaultCliLocalRuntimeDb(options = {}) {
|
|
377
|
+
const authorityStore = await getDefaultCliLocalRuntimeAuthority(options);
|
|
378
|
+
return createLegacyServerDb(authorityStore);
|
|
379
|
+
}
|
|
380
|
+
function createCliLocalMcpConnectionRevisionWriter(authority, authenticatedUserId) {
|
|
381
|
+
if (!authenticatedUserId) throw new Error("Local MCP connection owner is required");
|
|
382
|
+
const prefix = `mcp-private:v1:${encodeURIComponent(authenticatedUserId)}:connection:`;
|
|
383
|
+
const conditionalPut = authority.conditionalPut?.bind(authority);
|
|
384
|
+
if (!conditionalPut) throw new Error("CLI authority broker does not support conditionalPut");
|
|
385
|
+
return {
|
|
386
|
+
async create(value) {
|
|
387
|
+
const id = randomUUID();
|
|
388
|
+
const result = await conditionalPut(prefix + id, null, { ...value, revision: 1 });
|
|
389
|
+
return { id, ...result };
|
|
390
|
+
},
|
|
391
|
+
async update(id, expectedRevision, value) {
|
|
392
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(id) || !Number.isSafeInteger(expectedRevision) || expectedRevision < 1 || expectedRevision >= Number.MAX_SAFE_INTEGER) {
|
|
393
|
+
throw new Error("Invalid local MCP connection identity or revision");
|
|
394
|
+
}
|
|
395
|
+
return conditionalPut(prefix + id, expectedRevision, { ...value, revision: expectedRevision + 1 });
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export {
|
|
401
|
+
connectCliAuthorityBroker,
|
|
402
|
+
getDefaultCliLocalRuntimeAuthority,
|
|
403
|
+
getDefaultCliLocalRuntimeDb,
|
|
404
|
+
createCliLocalMcpConnectionRevisionWriter
|
|
405
|
+
};
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
13
|
import {
|
|
14
14
|
getModelConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OKH74FML.js";
|
|
16
16
|
import {
|
|
17
17
|
isPlatformHostedImageModel,
|
|
18
18
|
isPlatformManagedProvider,
|
|
19
19
|
resolvePlatformEffectiveModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JPXACKSW.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|
|
@@ -7405,9 +7405,7 @@ function findAndReplace(tree, list2, options) {
|
|
|
7405
7405
|
if (typeof value === "string") {
|
|
7406
7406
|
value = value.length > 0 ? { type: "text", value } : void 0;
|
|
7407
7407
|
}
|
|
7408
|
-
if (value
|
|
7409
|
-
find.lastIndex = position2 + 1;
|
|
7410
|
-
} else {
|
|
7408
|
+
if (value !== false) {
|
|
7411
7409
|
if (start !== position2) {
|
|
7412
7410
|
add({ type: "text", value: node2.value.slice(start, position2) });
|
|
7413
7411
|
}
|
|
@@ -7419,6 +7417,10 @@ function findAndReplace(tree, list2, options) {
|
|
|
7419
7417
|
start = position2 + match[0].length;
|
|
7420
7418
|
change = true;
|
|
7421
7419
|
}
|
|
7420
|
+
if (value === false || match[0].length === 0) {
|
|
7421
|
+
const code2 = node2.value.codePointAt(position2) || 0;
|
|
7422
|
+
find.lastIndex = position2 + (/[uv]/.test(find.flags) && code2 > 65535 ? 2 : 1);
|
|
7423
|
+
}
|
|
7422
7424
|
if (!find.global) {
|
|
7423
7425
|
break;
|
|
7424
7426
|
}
|