nolo-cli 0.224.0-alpha.1 → 0.224.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-WW57SJN4.js → _executeModel-5NA4USGG.js} +77 -70
- package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
- package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
- package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
- package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-2RFGKFAB.js} +127 -118
- package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-GQCQKKOR.js} +126 -113
- package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
- package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
- package/{agentListCommands-5UNM7CGG.js → agentListCommands-HSGLDPDQ.js} +110 -495
- package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-BISF6PVV.js} +63 -57
- package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
- package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
- package/agentRecordCommands-AOXPGYAJ.js +189 -0
- package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-AFAIP7U7.js} +129 -113
- package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
- package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
- package/{agentSlice-ACZGTZVW.js → agentSlice-XJNKE3PG.js} +18 -17
- package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
- package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
- package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
- package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
- package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
- package/{authCommand-4FDPL7WG.js → authCommand-4CVBDADE.js} +29 -24
- package/{authCommands-GAJ3NIXO.js → authCommands-EHU2BHOX.js} +12 -7
- package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
- package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
- package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
- package/chunk-2SXN7LAY.js +15 -0
- package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
- package/{chunk-S7SB7L2I.js → chunk-3FBAVU2Y.js} +24 -22
- package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
- package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
- package/{chunk-MKQ2UTTX.js → chunk-4IQVE43Z.js} +63 -32
- package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
- package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
- package/chunk-4ZCTKB27.js +31 -0
- package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
- package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
- package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
- package/chunk-6D25V6CB.js +133 -0
- package/chunk-6WOLPIPY.js +379 -0
- package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-KO63FPG3.js → chunk-7AJRJGSQ.js} +1049 -2860
- package/chunk-7NIBQ4HY.js +138 -0
- package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
- package/{chunk-7WPAI5JJ.js → chunk-A3LUWRQK.js} +15 -15
- package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
- package/{chunk-O2CYENYJ.js → chunk-A74QP4FI.js} +2614 -1374
- package/{chunk-N3J4VDGV.js → chunk-AEQMKYZN.js} +15 -15
- package/{chunk-DVQH4BTR.js → chunk-AH5R7BYW.js} +26 -176
- package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
- package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
- package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
- package/{chunk-FVZW66K4.js → chunk-B7DE5XJW.js} +387 -347
- package/chunk-BEM6LPD2.js +734 -0
- package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
- package/{chunk-T3O6BLYU.js → chunk-BGGV6B5O.js} +555 -328
- package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
- package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
- package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
- package/{chunk-3ESU44FG.js → chunk-CVJRVBJL.js} +3 -3
- package/chunk-D374I563.js +62 -0
- package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
- package/chunk-DVYAFH2Q.js +103 -0
- package/{chunk-N7HVLYOY.js → chunk-DXW5WDHZ.js} +4 -4
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-65XXHYZ5.js → chunk-E5KJOZWY.js} +4 -4
- package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
- package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
- package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
- package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
- package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
- package/{chunk-VHPAA6MT.js → chunk-FFYE5ATM.js} +6 -6
- package/{chunk-F3TQURKK.js → chunk-FZKA3XFA.js} +21 -21
- package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
- package/{chunk-4NMHE7CX.js → chunk-GDUC4VS2.js} +12 -12
- package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
- package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
- package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
- package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
- package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
- package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
- package/{chunk-QWYFFHCJ.js → chunk-IJTXNLQE.js} +13 -13
- package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
- package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
- package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
- package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
- package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
- package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
- package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
- package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
- package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
- package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
- package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
- package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
- package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
- package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
- package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
- package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
- package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
- package/{chunk-7UH3DGV6.js → chunk-PRMEU7BT.js} +232 -10
- package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
- package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
- package/chunk-RETQOQ4D.js +33394 -0
- package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
- package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
- package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
- package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
- package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
- package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
- package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
- package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
- package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
- package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
- package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
- package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
- package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
- package/{chunk-3N4ASIP6.js → chunk-VREG6ANQ.js} +103 -100
- package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
- package/chunk-VSRISJXZ.js +107 -0
- package/chunk-WDWZPASX.js +29 -0
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/chunk-X7IA2B7R.js +166 -0
- package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
- package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
- package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
- package/{chunk-KAVGK4ES.js → chunk-Y5OWZQMJ.js} +39 -30
- package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
- package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
- package/{chunk-XFJ4ZPFC.js → chunk-Z2WZAE4P.js} +128 -149
- package/chunk-Z6YTCDU4.js +24 -0
- package/chunk-ZEKUFJLW.js +1438 -0
- package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
- package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
- package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
- package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
- package/{commandRegistry-SDSYBKMC.js → commandRegistry-TME7INFU.js} +98 -94
- package/{contentThunks-G3TRPEAU.js → contentThunks-U6OC4R2N.js} +37 -35
- package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
- package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
- package/{createDialogAction-KWSBNAPJ.js → createDialogAction-IAGQJ3LH.js} +38 -36
- package/{createPageAction-HXKJ7OFG.js → createPageAction-AZ3UIFKA.js} +38 -36
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
- package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
- package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
- package/dialogMessageRecord-OAV77LT7.js +7 -0
- package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
- package/{dialogSlice-HXPKFGRL.js → dialogSlice-QAKYN4DE.js} +35 -33
- package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
- package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
- package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
- package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
- package/{docStore-A2B3GH33.js → docStore-GIVRT7TQ.js} +15 -14
- package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
- package/fetchMessages-TQEUZD7H.js +1 -1
- package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
- package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
- package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-6VDJFNDO.js} +118 -104
- 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-AV2VKKPG.js} +1 -1
- package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
- package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -107
- package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
- package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
- package/{machineCommands-WFWV25IR.js → machineCommands-K6XIGOAD.js} +142 -114
- package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -101
- package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
- package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
- package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
- package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
- package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
- package/package.json +1 -1
- package/{projectArchive-ULJDLUA6.js → projectArchive-G7AOQPRW.js} +43 -41
- package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
- package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
- package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
- package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
- package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4277
- package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
- package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-HQJPDFGQ.js} +95 -69
- package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
- package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
- package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
- package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
- package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
- package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-E3XH2KFD.js} +160 -154
- package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
- package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
- package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
- package/{tools-JVOJ5HC4.js → tools-7RSX22FT.js} +64 -58
- package/tuiRestart-KAAA7TND.js +41 -0
- package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
- package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
- package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-SEWV252V.js} +37 -35
- package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
- package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
- package/webapi-24RZDIIQ.js +2488 -0
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
- package/workContext-MM3P5GP5.js +13 -0
- package/workContextAccess-UZHDLBUR.js +11 -0
- package/workContextWriteNotice-YCSSMHN4.js +7 -0
- package/agentRecordCommands-DX2WE6BH.js +0 -176
- package/chunk-2THCNKE4.js +0 -147
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-652XYZGP.js +0 -352
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-OXKUPBAQ.js +0 -776
- 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/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-JEGPITEW.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_NOLO_SERVER_URL
|
|
3
|
+
} from "./chunk-OLZBQWZU.js";
|
|
4
|
+
import {
|
|
5
|
+
NOLO_CLUSTER_SERVERS
|
|
6
|
+
} from "./chunk-LCBAMY2M.js";
|
|
7
|
+
import {
|
|
8
|
+
asOptionalTrimmedString
|
|
9
|
+
} from "./chunk-G3SUCT4W.js";
|
|
10
|
+
import {
|
|
11
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
12
|
+
} from "./chunk-4SN6J65J.js";
|
|
13
|
+
import {
|
|
14
|
+
normalizeServerOrigin
|
|
15
|
+
} from "./chunk-CF7PE763.js";
|
|
16
|
+
|
|
17
|
+
// packages/cli/agentRunProtocol.ts
|
|
18
|
+
import { createHash } from "node:crypto";
|
|
19
|
+
import { existsSync, lstatSync, statSync, readFileSync, readdirSync, realpathSync } from "node:fs";
|
|
20
|
+
import { dirname, extname, join, relative } from "node:path";
|
|
21
|
+
import { fileURLToPath } from "node:url";
|
|
22
|
+
var AGENT_RUN_PROTOCOL = "nolo-agent-run/2";
|
|
23
|
+
var RuntimeProtocolMismatchError = class extends Error {
|
|
24
|
+
code = "runtime_protocol_mismatch";
|
|
25
|
+
constructor() {
|
|
26
|
+
super("runtime_protocol_mismatch: parent and child agent-run protocols differ");
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function validateAgentRunProtocol(expected) {
|
|
30
|
+
if (expected !== AGENT_RUN_PROTOCOL) throw new RuntimeProtocolMismatchError();
|
|
31
|
+
}
|
|
32
|
+
var RuntimeVersionMismatchError = class extends Error {
|
|
33
|
+
code = "runtime_version_mismatch";
|
|
34
|
+
constructor(detail) {
|
|
35
|
+
super(`runtime_version_mismatch: ${detail}; restart CLI/desktop before retrying`);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var ignoredDirectories = /* @__PURE__ */ new Set([
|
|
39
|
+
"node_modules",
|
|
40
|
+
".git",
|
|
41
|
+
".nolo",
|
|
42
|
+
".worktrees",
|
|
43
|
+
"data",
|
|
44
|
+
"nolodata",
|
|
45
|
+
"credentials",
|
|
46
|
+
"dist",
|
|
47
|
+
"build",
|
|
48
|
+
"public",
|
|
49
|
+
"assets",
|
|
50
|
+
"docs",
|
|
51
|
+
"logs",
|
|
52
|
+
"artifacts",
|
|
53
|
+
"coverage",
|
|
54
|
+
"__tests__",
|
|
55
|
+
"__fixtures__",
|
|
56
|
+
"fixtures",
|
|
57
|
+
"testHelpers",
|
|
58
|
+
"test-helpers"
|
|
59
|
+
]);
|
|
60
|
+
var codeFile = /\.[cm]?[jt]sx?$/;
|
|
61
|
+
var testFile = /(?:\.(?:test|spec)\.[^.]+$|^tsconfig\.)/;
|
|
62
|
+
function captureRuntimeContent(root, source) {
|
|
63
|
+
const hash = createHash("sha256");
|
|
64
|
+
const active = /* @__PURE__ */ new Set();
|
|
65
|
+
const visit = (directory) => {
|
|
66
|
+
const canonical = realpathSync(directory);
|
|
67
|
+
if (active.has(canonical)) throw new RuntimeVersionMismatchError("runtime code contains a symlink cycle");
|
|
68
|
+
active.add(canonical);
|
|
69
|
+
for (const name of readdirSync(directory).sort()) {
|
|
70
|
+
if (name.startsWith(".") || ignoredDirectories.has(name)) continue;
|
|
71
|
+
const path = join(directory, name);
|
|
72
|
+
let stat = lstatSync(path);
|
|
73
|
+
if (stat.isSymbolicLink()) {
|
|
74
|
+
try {
|
|
75
|
+
stat = statSync(path);
|
|
76
|
+
} catch {
|
|
77
|
+
if (codeFile.test(name) || name === "package.json") throw new RuntimeVersionMismatchError("runtime code link is unreadable");
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (stat.isDirectory()) visit(path);
|
|
82
|
+
else if (codeFile.test(name) && !testFile.test(name) || name === "package.json") {
|
|
83
|
+
const bytes = readFileSync(path);
|
|
84
|
+
hash.update(JSON.stringify([relative(root, path), bytes.length]));
|
|
85
|
+
hash.update(bytes);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
active.delete(canonical);
|
|
89
|
+
};
|
|
90
|
+
if (source) {
|
|
91
|
+
visit(join(root, "packages"));
|
|
92
|
+
for (const name of ["package.json", "bun.lock", "bun.lockb", "bunfig.toml", "tsconfig.json"]) {
|
|
93
|
+
hash.update(name);
|
|
94
|
+
const path = join(root, name);
|
|
95
|
+
hash.update(existsSync(path) ? readFileSync(path) : "<absent>");
|
|
96
|
+
}
|
|
97
|
+
} else visit(root);
|
|
98
|
+
return hash.digest("hex");
|
|
99
|
+
}
|
|
100
|
+
function createRuntimeContentGuard(root, source) {
|
|
101
|
+
const canonical = realpathSync(root);
|
|
102
|
+
const startupContent = captureRuntimeContent(canonical, source);
|
|
103
|
+
return Object.assign(() => {
|
|
104
|
+
try {
|
|
105
|
+
if (captureRuntimeContent(canonical, source) !== startupContent) {
|
|
106
|
+
throw new RuntimeVersionMismatchError("runtime content changed since host startup");
|
|
107
|
+
}
|
|
108
|
+
} catch (error) {
|
|
109
|
+
if (error instanceof RuntimeVersionMismatchError) throw error;
|
|
110
|
+
throw new RuntimeVersionMismatchError("startup runtime content is no longer readable");
|
|
111
|
+
}
|
|
112
|
+
}, { identity: startupContent });
|
|
113
|
+
}
|
|
114
|
+
function captureHostRuntimeGuard() {
|
|
115
|
+
try {
|
|
116
|
+
const url = import.meta.url;
|
|
117
|
+
if (url.includes("/$bunfs/")) {
|
|
118
|
+
const executable = getHostRuntimeExecutable();
|
|
119
|
+
const digest = createHash("sha256").update(readFileSync(executable)).digest("hex");
|
|
120
|
+
return Object.assign(() => {
|
|
121
|
+
try {
|
|
122
|
+
if (createHash("sha256").update(readFileSync(executable)).digest("hex") !== digest) {
|
|
123
|
+
throw new RuntimeVersionMismatchError("host executable changed since startup");
|
|
124
|
+
}
|
|
125
|
+
} catch (error) {
|
|
126
|
+
if (error instanceof RuntimeVersionMismatchError) throw error;
|
|
127
|
+
throw new RuntimeVersionMismatchError("startup executable is no longer readable");
|
|
128
|
+
}
|
|
129
|
+
}, { identity: digest });
|
|
130
|
+
}
|
|
131
|
+
const modulePath = fileURLToPath(url);
|
|
132
|
+
const source = extname(modulePath) === ".ts";
|
|
133
|
+
return createRuntimeContentGuard(source ? dirname(dirname(dirname(modulePath))) : dirname(modulePath), source);
|
|
134
|
+
} catch {
|
|
135
|
+
return Object.assign(() => {
|
|
136
|
+
throw new RuntimeVersionMismatchError("host startup identity unavailable");
|
|
137
|
+
}, { identity: "unavailable" });
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
var hostExecutable;
|
|
141
|
+
function getHostRuntimeExecutable() {
|
|
142
|
+
return hostExecutable ?? realpathSync(process.execPath);
|
|
143
|
+
}
|
|
144
|
+
var hostGuard;
|
|
145
|
+
var HOST_RUNTIME_CONTENT_IDENTITY = "uninitialized";
|
|
146
|
+
function initializeHostRuntimeIdentity() {
|
|
147
|
+
if (hostGuard) return;
|
|
148
|
+
hostExecutable = realpathSync(process.execPath);
|
|
149
|
+
hostGuard = captureHostRuntimeGuard();
|
|
150
|
+
HOST_RUNTIME_CONTENT_IDENTITY = hostGuard.identity;
|
|
151
|
+
}
|
|
152
|
+
function isAgentRuntimeHostCommand(args, interactive) {
|
|
153
|
+
if (args.some((arg) => ["--help", "-h", "--version", "-v"].includes(arg))) return false;
|
|
154
|
+
if (!args.length) return interactive;
|
|
155
|
+
return args[0] === "chat" || args[0] === "tui" || args[0] === "connect" || args[0] === "agent" && ["run", "continue", "smoke-current"].includes(args[1]);
|
|
156
|
+
}
|
|
157
|
+
function resolveExactRuntimeEntrypoint(path) {
|
|
158
|
+
try {
|
|
159
|
+
if (!existsSync(path)) throw new Error("missing");
|
|
160
|
+
return realpathSync(path);
|
|
161
|
+
} catch {
|
|
162
|
+
throw new RuntimeVersionMismatchError("explicit runtime entrypoint is missing or unreadable");
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// packages/cli/cliEnvHelpers.ts
|
|
167
|
+
import { dirname as dirname2, extname as extname2, join as join2 } from "node:path";
|
|
168
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
169
|
+
import { existsSync as existsSync2, realpathSync as realpathSync2 } from "node:fs";
|
|
170
|
+
function resolveServerUrlFromEnv(env) {
|
|
171
|
+
return normalizeServerOrigin(
|
|
172
|
+
env.NOLO_SERVER || env.BASE_URL || DEFAULT_NOLO_SERVER_URL
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
function isCliArgs(value) {
|
|
176
|
+
return Array.isArray(value);
|
|
177
|
+
}
|
|
178
|
+
function buildServerCandidates(values) {
|
|
179
|
+
return [...new Set(
|
|
180
|
+
values.filter((value) => typeof value === "string" && value.trim().length > 0).map((value) => normalizeServerOrigin(value))
|
|
181
|
+
)];
|
|
182
|
+
}
|
|
183
|
+
function resolveServerUrl(input, env) {
|
|
184
|
+
if (isCliArgs(input)) {
|
|
185
|
+
const explicit = readOption(input, "--server-url") || readOption(input, "--server");
|
|
186
|
+
return normalizeServerOrigin(explicit) || resolveServerUrlFromEnv(env ?? {});
|
|
187
|
+
}
|
|
188
|
+
return resolveServerUrlFromEnv(input);
|
|
189
|
+
}
|
|
190
|
+
function resolveServerCandidates(input, envOrPreferred, preferred) {
|
|
191
|
+
if (isCliArgs(input)) {
|
|
192
|
+
const env2 = envOrPreferred ?? {};
|
|
193
|
+
const explicitServer = resolveServerUrl(input, env2);
|
|
194
|
+
return buildServerCandidates([
|
|
195
|
+
explicitServer,
|
|
196
|
+
preferred?.trim(),
|
|
197
|
+
env2.NOLO_SERVER,
|
|
198
|
+
env2.BASE_URL,
|
|
199
|
+
env2.NOLO_SERVER_URL,
|
|
200
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
201
|
+
...NOLO_CLUSTER_SERVERS
|
|
202
|
+
]);
|
|
203
|
+
}
|
|
204
|
+
const env = input;
|
|
205
|
+
return buildServerCandidates([
|
|
206
|
+
asOptionalTrimmedString(envOrPreferred),
|
|
207
|
+
env.NOLO_SERVER,
|
|
208
|
+
env.BASE_URL,
|
|
209
|
+
env.NOLO_SERVER_URL,
|
|
210
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
211
|
+
...NOLO_CLUSTER_SERVERS
|
|
212
|
+
]);
|
|
213
|
+
}
|
|
214
|
+
function resolveDeleteServerCandidatesFromEnv(env, ...preferredValues) {
|
|
215
|
+
return buildServerCandidates([
|
|
216
|
+
...preferredValues,
|
|
217
|
+
env.NOLO_SERVER,
|
|
218
|
+
env.BASE_URL,
|
|
219
|
+
env.NOLO_SERVER_URL,
|
|
220
|
+
env.READ_DIALOG_BASE,
|
|
221
|
+
DEFAULT_NOLO_SERVER_URL,
|
|
222
|
+
...NOLO_CLUSTER_SERVERS,
|
|
223
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
224
|
+
]);
|
|
225
|
+
}
|
|
226
|
+
function resolveDeleteServerCandidates(input, envOrPreferred, preferred) {
|
|
227
|
+
if (isCliArgs(input)) {
|
|
228
|
+
const env2 = envOrPreferred ?? {};
|
|
229
|
+
const explicitServer = resolveServerUrl(input, env2);
|
|
230
|
+
return resolveDeleteServerCandidatesFromEnv(env2, explicitServer, preferred?.trim());
|
|
231
|
+
}
|
|
232
|
+
const env = input;
|
|
233
|
+
return resolveDeleteServerCandidatesFromEnv(
|
|
234
|
+
env,
|
|
235
|
+
asOptionalTrimmedString(envOrPreferred)
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
function resolveAuthTokenFromEnv(env, extraEnvKeys = []) {
|
|
239
|
+
for (const key of ["AUTH_TOKEN", "AUTH", "NOLO_MACHINE_API_KEY", ...extraEnvKeys]) {
|
|
240
|
+
const value = env[key];
|
|
241
|
+
if (typeof value === "string" && value.trim()) return value;
|
|
242
|
+
}
|
|
243
|
+
return "";
|
|
244
|
+
}
|
|
245
|
+
function resolveAuthToken(input, envOrExtraEnvKeys, extraEnvKeys = []) {
|
|
246
|
+
if (isCliArgs(input)) {
|
|
247
|
+
const env = envOrExtraEnvKeys ?? {};
|
|
248
|
+
return readOption(input, "--token") || readOption(input, "--machine-key") || resolveAuthTokenFromEnv(env, extraEnvKeys);
|
|
249
|
+
}
|
|
250
|
+
return resolveAuthTokenFromEnv(input, envOrExtraEnvKeys ?? []);
|
|
251
|
+
}
|
|
252
|
+
function parseUserIdFromAuthToken(token) {
|
|
253
|
+
const parts = token.trim().split(".").filter(Boolean);
|
|
254
|
+
const payloadCandidates = parts.length >= 3 ? [parts[1], parts[0]] : [parts[0]];
|
|
255
|
+
for (const payload of payloadCandidates) {
|
|
256
|
+
if (!payload) continue;
|
|
257
|
+
try {
|
|
258
|
+
const parsed = JSON.parse(Buffer.from(payload, "base64").toString("utf8"));
|
|
259
|
+
if (typeof parsed?.userId === "string") return parsed.userId;
|
|
260
|
+
} catch {
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return "";
|
|
264
|
+
}
|
|
265
|
+
function readOption(args, flag) {
|
|
266
|
+
const index = args.indexOf(flag);
|
|
267
|
+
return index >= 0 ? args[index + 1] : void 0;
|
|
268
|
+
}
|
|
269
|
+
function isCompiledBinary() {
|
|
270
|
+
try {
|
|
271
|
+
const url = import.meta.url;
|
|
272
|
+
return url.startsWith("file:///$bunfs/root/") || url.startsWith("/$bunfs/root/");
|
|
273
|
+
} catch {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
function resolveCliEntrypointPath(fromModuleUrl = import.meta.url) {
|
|
278
|
+
if (isCompiledBinary()) {
|
|
279
|
+
return getHostRuntimeExecutable();
|
|
280
|
+
}
|
|
281
|
+
const modulePath = fileURLToPath2(fromModuleUrl);
|
|
282
|
+
const sourcePath = existsSync2(modulePath) ? realpathSync2(modulePath) : modulePath;
|
|
283
|
+
const ext = extname2(sourcePath) || ".ts";
|
|
284
|
+
return join2(dirname2(sourcePath), `index${ext}`);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export {
|
|
288
|
+
AGENT_RUN_PROTOCOL,
|
|
289
|
+
RuntimeProtocolMismatchError,
|
|
290
|
+
validateAgentRunProtocol,
|
|
291
|
+
RuntimeVersionMismatchError,
|
|
292
|
+
getHostRuntimeExecutable,
|
|
293
|
+
HOST_RUNTIME_CONTENT_IDENTITY,
|
|
294
|
+
initializeHostRuntimeIdentity,
|
|
295
|
+
isAgentRuntimeHostCommand,
|
|
296
|
+
resolveExactRuntimeEntrypoint,
|
|
297
|
+
resolveServerUrlFromEnv,
|
|
298
|
+
resolveServerUrl,
|
|
299
|
+
resolveServerCandidates,
|
|
300
|
+
resolveDeleteServerCandidates,
|
|
301
|
+
resolveAuthTokenFromEnv,
|
|
302
|
+
resolveAuthToken,
|
|
303
|
+
parseUserIdFromAuthToken,
|
|
304
|
+
readOption,
|
|
305
|
+
isCompiledBinary,
|
|
306
|
+
resolveCliEntrypointPath
|
|
307
|
+
};
|
|
@@ -1,34 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveDefaultReasoningEffort
|
|
3
|
+
} from "./chunk-5ZUOVCKT.js";
|
|
1
4
|
import {
|
|
2
5
|
buildRestorePatch
|
|
3
6
|
} from "./chunk-BV3FLP2L.js";
|
|
4
7
|
import {
|
|
5
8
|
buildLocalAgentLookupKeys,
|
|
6
9
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PROOOQZ3.js";
|
|
8
11
|
import {
|
|
9
12
|
resolveCliAgentKeyInput
|
|
10
13
|
} from "./chunk-BR3GT6MR.js";
|
|
11
14
|
import {
|
|
12
15
|
createHostCredentialBrokerChain,
|
|
13
16
|
createStrictHostCredentialBroker
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BEM6LPD2.js";
|
|
15
18
|
import {
|
|
16
19
|
collectInvalidAgentSkillModes,
|
|
17
20
|
formatInvalidAgentSkillModeMessage,
|
|
18
21
|
formatInvalidAgentSkillModesFieldMessage,
|
|
19
22
|
isAgentSkillModesFieldShapeValid
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MM73SP4K.js";
|
|
21
24
|
import {
|
|
22
25
|
buildAgentApiKeyCredentialRef,
|
|
23
26
|
migrateAgentSecrets
|
|
24
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-USGHJSGO.js";
|
|
25
28
|
import {
|
|
26
29
|
assertCredentialRef,
|
|
27
30
|
createFileCredentialBroker
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OQHIVPG4.js";
|
|
29
32
|
import {
|
|
30
33
|
createAgentKey
|
|
31
34
|
} from "./chunk-SYTHYBMI.js";
|
|
35
|
+
import {
|
|
36
|
+
parseUserIdFromAuthToken,
|
|
37
|
+
readOption,
|
|
38
|
+
resolveAuthToken,
|
|
39
|
+
resolveServerCandidates,
|
|
40
|
+
resolveServerUrl
|
|
41
|
+
} from "./chunk-BIDSIRTS.js";
|
|
32
42
|
import {
|
|
33
43
|
readPipeText,
|
|
34
44
|
spawnProcess
|
|
@@ -36,13 +46,6 @@ import {
|
|
|
36
46
|
import {
|
|
37
47
|
toErrorMessage
|
|
38
48
|
} from "./chunk-HNMXYYJR.js";
|
|
39
|
-
import {
|
|
40
|
-
parseUserIdFromAuthToken,
|
|
41
|
-
readOption,
|
|
42
|
-
resolveAuthToken,
|
|
43
|
-
resolveServerCandidates,
|
|
44
|
-
resolveServerUrl
|
|
45
|
-
} from "./chunk-2THCNKE4.js";
|
|
46
49
|
|
|
47
50
|
// packages/agent-runtime/sessionCredentialBroker.ts
|
|
48
51
|
function createSessionMemoryCredentialBroker() {
|
|
@@ -763,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
763
766
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
764
767
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
765
768
|
if (args.parsed.presetId) {
|
|
766
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
769
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-OPBCAONX.js");
|
|
767
770
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
768
771
|
if (fields.kind === "manual") {
|
|
769
772
|
throw new Error(
|
|
@@ -784,7 +787,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
784
787
|
}
|
|
785
788
|
if (!u.model && fields.model) u.model = fields.model;
|
|
786
789
|
if (fields.defaultReasoningEffort && u.reasoning_effort == null) {
|
|
787
|
-
u.reasoning_effort = fields.defaultReasoningEffort;
|
|
790
|
+
u.reasoning_effort = resolveDefaultReasoningEffort({ provider: typeof u.provider === "string" ? u.provider : void 0, model: typeof u.model === "string" ? u.model : void 0, fallback: fields.defaultReasoningEffort });
|
|
788
791
|
}
|
|
789
792
|
}
|
|
790
793
|
if (args.parsed.copyProviderFrom) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolvePlatformAuthToken
|
|
3
|
-
} from "./chunk-2OLYKYNY.js";
|
|
4
1
|
import {
|
|
5
2
|
getCredentialsDir
|
|
6
3
|
} from "./chunk-G7Y4GXTY.js";
|
|
4
|
+
import {
|
|
5
|
+
resolvePlatformAuthToken
|
|
6
|
+
} from "./chunk-RTHFJZ6M.js";
|
|
7
7
|
|
|
8
8
|
// packages/cli/client/authGuidance.ts
|
|
9
9
|
import { readdirSync } from "node:fs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolvePlatformEffectiveModel,
|
|
11
11
|
toCnyCredits,
|
|
12
12
|
zaiModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OBSEKCVK.js";
|
|
14
14
|
|
|
15
15
|
// packages/integrations/qwen/models.ts
|
|
16
16
|
var qwenModels = [
|
|
@@ -3027,6 +3027,15 @@ function getCachedOpenRouterModelReasoning(modelId) {
|
|
|
3027
3027
|
var GATEWAY_PROVIDERS = /* @__PURE__ */ new Set(["openrouter", "nolo"]);
|
|
3028
3028
|
var THINKING_MECHANISM_PROVIDERS = /* @__PURE__ */ new Set(["anthropic", "google"]);
|
|
3029
3029
|
var MODEL_REASONING_OVERRIDES = [
|
|
3030
|
+
// Platform GPT models accept medium even though the nolo provider fallback
|
|
3031
|
+
// describes DeepSeek's narrower low/high/max scale.
|
|
3032
|
+
...["gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-luna", "gpt-6-astra"].map((prefix) => ({
|
|
3033
|
+
providers: ["openai"],
|
|
3034
|
+
prefix,
|
|
3035
|
+
exact: true,
|
|
3036
|
+
efforts: ["none", "low", "medium", "high", "xhigh", "max"],
|
|
3037
|
+
note: "GPT-6 model-specific reasoning scale (platformHosted.ts model metadata)"
|
|
3038
|
+
})),
|
|
3030
3039
|
// ---- OpenAI ----
|
|
3031
3040
|
{
|
|
3032
3041
|
providers: ["openai"],
|
|
@@ -3228,6 +3237,8 @@ function resolveModelReasoningCapabilityWithCache(provider, model) {
|
|
|
3228
3237
|
// packages/ai/llm/reasoningModels.ts
|
|
3229
3238
|
var REASONING_MODEL_NAMES = /* @__PURE__ */ new Set([
|
|
3230
3239
|
"deepseek-flash",
|
|
3240
|
+
"deepseek-v4-flash",
|
|
3241
|
+
"deepseek-v4.1-flash",
|
|
3231
3242
|
"deepseek-v4-pro",
|
|
3232
3243
|
"gemini-3.7-flash",
|
|
3233
3244
|
"gemini-3.8-flash",
|
|
@@ -3266,7 +3277,10 @@ var isModelSupportReasoningEffort = (model, provider) => {
|
|
|
3266
3277
|
if (provider && provider.toLowerCase() === "openrouter") {
|
|
3267
3278
|
return true;
|
|
3268
3279
|
}
|
|
3269
|
-
|
|
3280
|
+
const p = provider?.toLowerCase();
|
|
3281
|
+
const base = model.toLowerCase().split("/").pop() ?? "";
|
|
3282
|
+
const deepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(base);
|
|
3283
|
+
return REASONING_MODEL_NAMES.has(model) || deepseekFlash && ["commandcode", "opendesign", "ollama-cloud", "lithosai"].includes(p ?? "");
|
|
3270
3284
|
};
|
|
3271
3285
|
var supportedReasoningModels = Array.from(REASONING_MODEL_NAMES);
|
|
3272
3286
|
var EFFORT_ORDER = [
|
|
@@ -3612,6 +3626,7 @@ export {
|
|
|
3612
3626
|
commandCodeModels,
|
|
3613
3627
|
opencodeGoModels,
|
|
3614
3628
|
DEFAULT_REASONING_EFFORT,
|
|
3629
|
+
resolveModelReasoningCapability,
|
|
3615
3630
|
resolveModelReasoningCapabilityWithCache,
|
|
3616
3631
|
isModelSupportReasoningEffort,
|
|
3617
3632
|
clampReasoningEffort,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O6IPRAVV.js";
|
|
4
4
|
import {
|
|
5
5
|
patch
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RM4UMFY4.js";
|
|
7
7
|
import {
|
|
8
8
|
getIsDesktopApp
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ULLHVDTZ.js";
|
|
10
10
|
import {
|
|
11
11
|
selectIdentityToken
|
|
12
12
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BGGV6B5O.js";
|
|
4
4
|
import {
|
|
5
5
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B7DE5XJW.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalizeToolNames
|
|
9
9
|
} from "./chunk-6OVNSQHN.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-KUG52IAP.js";
|
|
13
13
|
import {
|
|
14
14
|
isNoloHostedProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OBSEKCVK.js";
|
|
16
16
|
import {
|
|
17
17
|
asTrimmedLowercaseString
|
|
18
18
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isPidGone
|
|
3
|
+
} from "./chunk-MECDGHLK.js";
|
|
4
|
+
|
|
5
|
+
// packages/cli/tui/tuiRestart.ts
|
|
6
|
+
import { realpathSync } from "node:fs";
|
|
7
|
+
import { isAbsolute, resolve } from "node:path";
|
|
8
|
+
function getRestartBlocker(state, checks) {
|
|
9
|
+
if (!checks.supported) return "\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u539F\u5730\u91CD\u542F\u3002";
|
|
10
|
+
if (checks.activeProcesses || checks.activeRuns) return "\u540E\u53F0\u4EFB\u52A1\u4ECD\u5728\u8FD0\u884C\u6216\u72B6\u6001\u672A\u786E\u8BA4\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u7B49\u5F85\u4EFB\u52A1\u7ED3\u675F\u3002";
|
|
11
|
+
if (state.attachedImages.length || state.attachedDocs.length || state.attachedSkills.length || state.pendingCwdNotice || state.pendingTranscripts?.length || state.pendingChildRunNotices?.length || state.pendingProcessNotices?.length) {
|
|
12
|
+
return "\u6709\u672A\u53D1\u9001\u9644\u4EF6\u6216\u5F85\u5904\u7406\u901A\u77E5\uFF0C\u4E0D\u80FD\u91CD\u542F\uFF1B\u8BF7\u5148\u5904\u7406\u3002";
|
|
13
|
+
}
|
|
14
|
+
return void 0;
|
|
15
|
+
}
|
|
16
|
+
function buildRestartEnv(env, state) {
|
|
17
|
+
return {
|
|
18
|
+
...env,
|
|
19
|
+
// Override the startup snapshot, including an empty value after revocation.
|
|
20
|
+
// Omitting the key would let the next process inherit stale grants.
|
|
21
|
+
NOLO_PERMISSION_GRANTS: ["local", "remote"].filter((bucket) => state.permissionGrants?.[bucket] === true).join(","),
|
|
22
|
+
NOLO_CWD: state.cwd,
|
|
23
|
+
NOLO_AGENT: state.agentKey,
|
|
24
|
+
NOLO_AGENT_NAME: state.agentName,
|
|
25
|
+
NOLO_SERVER: state.serverUrl,
|
|
26
|
+
NOLO_RUNTIME_MODE: state.runtimeMode,
|
|
27
|
+
NOLO_DIALOG_ID: state.dialogId ?? "",
|
|
28
|
+
NOLO_DIALOG_KEY: state.dialogKey ?? "",
|
|
29
|
+
NOLO_DIALOG: state.dialogLabel,
|
|
30
|
+
NOLO_TUI_RESTART: "1"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function hasRestartBlockingRuns(records, pidGone = isPidGone) {
|
|
34
|
+
return records.some((run) => run.status === "running" && (typeof run.pid !== "number" || run.pid <= 0 || !pidGone(run.pid)));
|
|
35
|
+
}
|
|
36
|
+
function buildRestartArgv(args) {
|
|
37
|
+
return args.compiled ? [args.executable, "tui"] : [args.executable, ...args.execArgv, args.entrypoint, "tui"];
|
|
38
|
+
}
|
|
39
|
+
function replaceTuiProcess(executable, argv, env, execve = process.execve) {
|
|
40
|
+
try {
|
|
41
|
+
execve(executable, argv, env);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
throw new Error(`\u539F\u5730\u91CD\u542F\u5931\u8D25\uFF1B\u672A\u542F\u52A8\u65B0\u8FDB\u7A0B\u3002\u5BF9\u8BDD ${env.NOLO_DIALOG_ID || "(new)"}\uFF1Bcwd ${env.NOLO_CWD}\uFF1B${String(error)}`, { cause: error });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function captureRestartExecutable(executable, invocation, lookup = (name) => Bun.which(name), realpath = realpathSync) {
|
|
47
|
+
const candidate = isAbsolute(invocation) ? invocation : invocation.includes("/") ? resolve(invocation) : lookup(invocation);
|
|
48
|
+
try {
|
|
49
|
+
if (candidate && realpath(candidate) === realpath(executable)) return candidate;
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
return executable;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
getRestartBlocker,
|
|
57
|
+
buildRestartEnv,
|
|
58
|
+
hasRestartBlockingRuns,
|
|
59
|
+
buildRestartArgv,
|
|
60
|
+
replaceTuiProcess,
|
|
61
|
+
captureRestartExecutable
|
|
62
|
+
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZUL4CUO.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelContextWindow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L32W3PRP.js";
|
|
7
7
|
import {
|
|
8
8
|
BUILTIN_NOLO_AGENT_KEY
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WRKMXMU7.js";
|
|
10
10
|
import {
|
|
11
11
|
isPageKey,
|
|
12
12
|
isTableMetaKey
|
|
@@ -493,13 +493,6 @@ function resolveTruncatedReasoningTailLog(reason, reasoning_content) {
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
export {
|
|
496
|
-
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
497
|
-
resolveAutoExecutionProfile,
|
|
498
|
-
ATTACHMENT_PART_TYPE,
|
|
499
|
-
ATTACHMENT_PART_VERSION,
|
|
500
|
-
normalizeAttachmentPart,
|
|
501
|
-
attachmentKind,
|
|
502
|
-
describeAttachmentForModel,
|
|
503
496
|
isCodexOAuthAgent,
|
|
504
497
|
resolveCodexOAuthEffectiveModel,
|
|
505
498
|
CODEX_OAUTH_CATALOG_TTL_MS,
|
|
@@ -511,6 +504,13 @@ export {
|
|
|
511
504
|
codexOAuthCatalogWindow,
|
|
512
505
|
devinChannelContextWindow,
|
|
513
506
|
resolveAgentContextWindow,
|
|
507
|
+
DEFAULT_AUTO_EXECUTION_PROFILE,
|
|
508
|
+
resolveAutoExecutionProfile,
|
|
509
|
+
ATTACHMENT_PART_TYPE,
|
|
510
|
+
ATTACHMENT_PART_VERSION,
|
|
511
|
+
normalizeAttachmentPart,
|
|
512
|
+
attachmentKind,
|
|
513
|
+
describeAttachmentForModel,
|
|
514
514
|
asOptionalJsonRecord,
|
|
515
515
|
extractReferenceKeysFromMessage,
|
|
516
516
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|