nolo-cli 0.227.0-alpha.1 → 0.228.0-alpha.2
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-JKQGZ3HU.js → _executeModel-VYCHHZVT.js} +78 -77
- package/{action-CK64LS6S.js → action-GDZDXPMB.js} +9 -9
- package/{addContentAction-CARFID6E.js → addContentAction-7RO4AMRI.js} +14 -14
- package/{addDialogAgentAction-APLZLFW5.js → addDialogAgentAction-EVYBGTXB.js} +16 -16
- package/{agentDeleteCommand-NVR2V2HH.js → agentDeleteCommand-QWQKT54A.js} +116 -115
- package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-EISMBIRE.js} +119 -118
- package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
- package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
- package/{agentListCommands-C65UESYM.js → agentListCommands-4WLG32IW.js} +79 -470
- package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-DC6NKWTU.js} +59 -57
- package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-STI3DQ6A.js} +7 -7
- package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-KHV4EELF.js} +6 -6
- package/{agentRecordCommands-6RCJS2EY.js → agentRecordCommands-IZYUVHME.js} +107 -106
- package/{agentRunCommand-P3GRKXKS.js → agentRunCommand-QM7ETUTX.js} +113 -112
- package/{agentRunControl-SNZZ5XP4.js → agentRunControl-MBG4U6SL.js} +23 -17
- package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-HOXKWCYO.js} +46 -45
- package/{agentSlice-N7H2FRJA.js → agentSlice-UG76KEBH.js} +17 -17
- package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-WWCC6WA5.js} +54 -52
- package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-AU4IUN33.js} +54 -52
- package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-STUW7WXL.js} +54 -52
- package/{appGetCommands-NAKVDVD4.js → appGetCommands-BGTLIQ4K.js} +54 -52
- package/{appListCommands-KL56RN73.js → appListCommands-CUCPRUXW.js} +54 -52
- package/{authCommand-AUN5MXV2.js → authCommand-OZ2KTP4Z.js} +30 -31
- package/{authCommands-D2IPS6ES.js → authCommands-55OGQGCR.js} +12 -13
- package/{builtinSkillRegistry-UQGLKRYP.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
- package/{chromeOpsCommands-UJWN5HWH.js → chromeOpsCommands-WAA45NCS.js} +8 -8
- package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
- package/{chunk-UN7HIYMH.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-CVERLOJM.js → chunk-3QIYD3VM.js} +639 -513
- package/{chunk-RU6DULV4.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-IAJJYHIB.js → chunk-3VZLEKV2.js} +7 -7
- package/{chunk-JWXITTQB.js → chunk-42OKN2LI.js} +1 -1
- package/{chunk-UAPNPNSG.js → chunk-45CAVC35.js} +1072 -859
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-SW6OD4KE.js → chunk-4QYJPWHH.js} +123 -12
- package/{chunk-PLPLH2XZ.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-NO3VBWTL.js → chunk-547ENH5T.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-5YMA6DDZ.js} +1 -1
- package/chunk-5ZUOVCKT.js +32 -0
- package/{chunk-XZODOEKU.js → chunk-6QHKRARD.js} +2 -2
- package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
- package/{chunk-PVAWNHP5.js → chunk-7BCG67EI.js} +295 -102
- package/{chunk-VZW34YUL.js → chunk-7FEP5USX.js} +8 -5
- package/{chunk-VPAZ6BEN.js → chunk-7JGMNKKG.js} +18 -14
- package/{chunk-5HL4KC4A.js → chunk-ALAES342.js} +57 -86
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-UCFPVYP7.js → chunk-BP5ZJ6B4.js} +1 -1
- package/{chunk-2G3YSVO6.js → chunk-CBUZ6DKA.js} +3 -3
- package/{chunk-KYH7XW3K.js → chunk-CD3RU7XL.js} +16 -1
- package/{chunk-SFTTXGPM.js → chunk-CMMI3DAT.js} +16 -16
- package/{chunk-VIHDJ3FK.js → chunk-CNMY2XM6.js} +14 -14
- package/{chunk-UVUVQVZ6.js → chunk-DBUR22G5.js} +2 -2
- package/{chunk-G6HJUMST.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-5RKRXQ2H.js → chunk-DGYCDA6W.js} +2 -2
- package/{chunk-FKEZOMIF.js → chunk-DLXMMTGM.js} +523 -202
- package/{chunk-3HTP4WZQ.js → chunk-DUUDXSLX.js} +21 -7
- package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
- package/{chunk-TOKPHZ55.js → chunk-EEOOBRA7.js} +5 -5
- package/{chunk-ZI5SZ3MV.js → chunk-EGHP7KOY.js} +20 -20
- package/{chunk-OXA5GWHU.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-X2KRQP7V.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-3VFYQH3I.js → chunk-FPBJM2BW.js} +17 -39
- package/{chunk-KRRE4A7D.js → chunk-G7IUT2V3.js} +3 -2
- package/{chunk-LXTC53TN.js → chunk-GAYNXB6T.js} +184 -153
- package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
- package/{chunk-GRXSJR2Z.js → chunk-HF7BLF3F.js} +21 -21
- package/{chunk-T5N6NHAT.js → chunk-HHFGE2WF.js} +3 -3
- package/{chunk-IX2BXN2K.js → chunk-HSSBDZLD.js} +3 -3
- package/{chunk-TINJKQSO.js → chunk-HXB4VDGK.js} +20 -20
- package/{chunk-MWHOH4RJ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-L5I543VB.js → chunk-JQZRSXS5.js} +23 -23
- package/{chunk-T2BEPTAG.js → chunk-L32W3PRP.js} +47 -17
- package/{chunk-LA7JYAKF.js → chunk-LYD6C7OU.js} +3 -3
- package/{chunk-PHOSZT3E.js → chunk-M3OZRQNH.js} +1 -1
- package/{chunk-M3Y4IBIR.js → chunk-M4SFKP5L.js} +4 -4
- package/{chunk-7Z3WUZ4Q.js → chunk-MJI3UAXN.js} +52 -28
- package/{chunk-YOT437BH.js → chunk-MNEZUL5S.js} +137 -118
- package/{chunk-GOLPOTG5.js → chunk-MZG5CETE.js} +3 -3
- package/{chunk-KJAAPGBE.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-CLCXHIBS.js → chunk-OJ45MEEI.js} +1 -1
- package/{chunk-AXYH4734.js → chunk-OOJNQK6V.js} +13 -13
- package/{chunk-2SKTCNWO.js → chunk-OTKSESZR.js} +2 -2
- package/{chunk-XIEYGCN6.js → chunk-OWKNSIXL.js} +149 -48
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
- package/{chunk-YQETUZ5V.js → chunk-QRGDJA4B.js} +11 -11
- package/{chunk-ULAQPRHX.js → chunk-QYB23WUH.js} +1 -1
- package/{chunk-CSW7IPVD.js → chunk-R6Z5S5GA.js} +11 -11
- package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
- package/{chunk-GUVXQSFZ.js → chunk-RBPUNSG5.js} +1 -1
- package/{chunk-GOQ6ZVTN.js → chunk-RG2DGNL6.js} +3 -3
- package/{chunk-F5AY2UZL.js → chunk-RRDRQOEC.js} +515 -9
- package/{chunk-6EDAMVG6.js → chunk-RTHFJZ6M.js} +10 -10
- package/{chunk-WJP4TH6U.js → chunk-S6FDXXZV.js} +1 -1
- package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
- package/{chunk-KMRKZNGT.js → chunk-TCZ2VJZQ.js} +13 -12
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-5LQDHFBN.js → chunk-TQEKUOTI.js} +14 -11
- package/{chunk-SRG5CNLC.js → chunk-TSPMLCWI.js} +6 -6
- package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-YPPKC6FL.js → chunk-U2HBB7RS.js} +17 -17
- package/{chunk-HVUDBOQG.js → chunk-VMJVAJ6W.js} +9 -6
- package/{chunk-CQVGR3MX.js → chunk-VQ5N5GSV.js} +8 -8
- package/{chunk-ABGULE7H.js → chunk-WCFFRBL5.js} +12 -12
- package/{chunk-NAOO4PVX.js → chunk-WFDNADFX.js} +16 -16
- package/chunk-WFGNWWJI.js +326 -0
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-JHF6VLVL.js → chunk-X3E6EHJW.js} +32 -31
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-C2B7M567.js → chunk-XAG3FWBE.js} +15 -4
- package/{chunk-4OKTPFNX.js → chunk-XFXFPUO7.js} +105 -37
- package/{chunk-HYKGIXNO.js → chunk-XSW4EXQV.js} +85 -21
- package/{chunk-ZADGPNTV.js → chunk-XTJKU3Z4.js} +29 -29
- package/{chunk-T43K75CK.js → chunk-YKY4OVOX.js} +15 -15
- package/{chunk-ZYA2YDB6.js → chunk-YVFH2MFB.js} +16 -16
- package/{chunk-L42CBKBZ.js → chunk-ZEVQHCLM.js} +3 -3
- package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
- package/chunk-ZOHO6MOF.js +376 -0
- package/{chunk-PXKF5CV4.js → chunk-ZXF6D3I6.js} +10 -8
- package/{cliAgentConfigHelpers-QVSQYTKC.js → cliAgentConfigHelpers-BTRHMPW2.js} +14 -14
- package/{cliEnvHelpers-D6HMC46Z.js → cliEnvHelpers-CNMP3RDX.js} +2 -2
- package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
- package/{cliLocalAgentRecordReader-SPKAJYME.js → cliLocalAgentRecordReader-H3HYQRRR.js} +48 -47
- package/{commandRegistry-TKR6OWXP.js → commandRegistry-FVYPE2IN.js} +93 -93
- package/{contentThunks-BQWRPCTM.js → contentThunks-GNFPG32S.js} +36 -35
- package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-YB5H5BBK.js} +3 -3
- package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-PB4QIFQ4.js} +36 -35
- package/{createDialogAction-MMBIHFFU.js → createDialogAction-EVTOPY7A.js} +37 -37
- package/{createPageAction-EEYUE5FB.js → createPageAction-2UYF2IDZ.js} +39 -38
- package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
- package/{dbSlice-X4Z4E4QU.js → dbSlice-XRUZOGSU.js} +13 -13
- package/{deleteFile-QOOP2UK7.js → deleteFile-6URDHYRB.js} +9 -9
- package/{dialogCommands-OXBQ73DD.js → dialogCommands-6SZD4TYP.js} +58 -57
- package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-SHGPCU22.js} +17 -17
- package/{dialogSlice-KGYIABDY.js → dialogSlice-5EQ2A6LY.js} +34 -33
- package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-W2WCSGKF.js} +6 -6
- package/{docCreateCommands-LS32VKY3.js → docCreateCommands-25E6PGN3.js} +53 -51
- package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-F7ZVGEHW.js} +55 -53
- package/{docReadCommands-E5LTVKWN.js → docReadCommands-JY2E5XEN.js} +53 -51
- package/{docStore-TVS2FNER.js → docStore-OKKIKLT3.js} +15 -15
- package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-OZ4CUSIQ.js} +53 -51
- package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
- package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +6 -6
- package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-LNT7SZND.js} +68 -67
- package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-XUU2CSHI.js} +107 -106
- package/index.js +54 -16
- package/keys-RWF7UCB4.js +1 -1
- package/{localDialogRead-V36DX2Q2.js → localDialogRead-CCOCVGAP.js} +2 -2
- package/{localRuntimeAdapter-MI2JGXSF.js → localRuntimeAdapter-IBSTMSX7.js} +114 -113
- package/{machineCommands-3LROJZDK.js → machineCommands-HSQHDHOT.js} +135 -119
- package/{machineWsRunDispatch-BUUJRUUB.js → machineWsRunDispatch-L6H7J66T.js} +105 -104
- package/{memberThunks-CFEPHAND.js → memberThunks-7Y3OYSJQ.js} +17 -17
- package/{memoryCommands-JQMEJO7J.js → memoryCommands-BC6REPQB.js} +6 -6
- package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
- package/package.json +1 -1
- package/{projectArchive-3X54XFVN.js → projectArchive-FQO654Z3.js} +44 -43
- package/{providerPresetApply-FO36N5TX.js → providerPresetApply-WHAMP2D5.js} +9 -9
- package/{providerRegistry-U2BSFE6K.js → providerRegistry-ZI2KORJ7.js} +9 -9
- package/{read-KA3L2V7O.js → read-TYMBGEXO.js} +9 -9
- package/{readDocTool-AMAZAPAW.js → readDocTool-SKQVHBLO.js} +1 -1
- package/{readlineWorkspace-Z3YUH4SX.js → readlineWorkspace-7U272DSA.js} +4398 -4165
- package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-F5QE2O2B.js} +19 -19
- package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-AF4JQIJ7.js} +72 -71
- package/{runtimeDoctorCommands-CXOCVDPU.js → runtimeDoctorCommands-RRKPBGVO.js} +16 -16
- package/{secretCommands-GGUAWAE7.js → secretCommands-KZWBZIYS.js} +2 -2
- package/{setDialogExtraReferencesAction-YXQTGXIN.js → setDialogExtraReferencesAction-72L27ERM.js} +15 -15
- package/{setPrimaryDialogAgentAction-YNLB66WE.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +19 -19
- package/{settingThunks-E6N7RSSS.js → settingThunks-ZRGWVGZD.js} +18 -18
- package/{skillDiscovery-B5V23AXP.js → skillDiscovery-BHHPCUHZ.js} +3 -3
- package/{spaceCommands-DB5DKC2J.js → spaceCommands-5VNWMDBE.js} +55 -53
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-YSPEFY4K.js} +97 -95
- package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-IIJBPND3.js} +16 -16
- package/{tableCommands-VNSXHAMG.js → tableCommands-FTAOCBTX.js} +12 -12
- package/{tools-6JD36D6K.js → tools-M35PTIFB.js} +61 -60
- package/tuiRestart-2IL37YIB.js +41 -0
- package/{tuiSummaryLlmCaller-UHZIPGAX.js → tuiSummaryLlmCaller-W2QN4VAC.js} +21 -21
- package/{updateCommands-KZ54HCU5.js → updateCommands-CPATDG6J.js} +8 -6
- package/{updateDialogTitleAction-RV3EUEN3.js → updateDialogTitleAction-IMIRJRQQ.js} +36 -35
- package/{usageCommand-KFVV6UL3.js → usageCommand-2BF74MKF.js} +2 -2
- package/{usageRebuildCommand-HHFSNK46.js → usageRebuildCommand-UHB55BQM.js} +3 -3
- package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
- package/chunk-2WZXXAQD.js +0 -57
- package/chunk-BJF2MHJ3.js +0 -118
- package/chunk-KEPOVMF4.js +0 -91
- package/chunk-PMDVQBGA.js +0 -100
- package/chunk-WACI5I6V.js +0 -147
- package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +4 -4
- package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
- package/{chunk-VXL2FZTP.js → chunk-HXER7YJF.js} +3 -3
- package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
- package/{chunk-SSGTV4FC.js → chunk-USGHJSGO.js} +5 -5
- package/{chunk-IC2I373Q.js → chunk-VS276URX.js} +3 -3
- package/{chunk-AETZ7AD6.js → chunk-W6RFEDN4.js} +3 -3
- package/{offlineMarxistsAgentCommand-AGA2X5E4.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +5 -5
- package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
|
@@ -7,24 +7,22 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M3OZRQNH.js";
|
|
11
11
|
import {
|
|
12
12
|
parsePositiveFiniteNumberOrFallback
|
|
13
13
|
} from "./chunk-Y5GCAMGP.js";
|
|
14
14
|
import {
|
|
15
|
+
buildDialogAttachmentPlan,
|
|
16
|
+
extractFileContentIds,
|
|
15
17
|
fetchWithTransientRetry
|
|
16
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DXWGFL2Z.js";
|
|
17
19
|
import {
|
|
18
20
|
DRAIN_EXHAUSTED_USER_MESSAGE,
|
|
19
21
|
isDrainExhaustedResponse
|
|
20
22
|
} from "./chunk-3L2WKC3W.js";
|
|
21
23
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./chunk-KEPOVMF4.js";
|
|
25
|
-
import {
|
|
26
|
-
resolveRunsDir
|
|
27
|
-
} from "./chunk-XIEYGCN6.js";
|
|
24
|
+
createClientLogger
|
|
25
|
+
} from "./chunk-QQ56R7KS.js";
|
|
28
26
|
import {
|
|
29
27
|
getDefaultCliLocalRuntimeDb
|
|
30
28
|
} from "./chunk-P2ZLUIW2.js";
|
|
@@ -37,13 +35,13 @@ import {
|
|
|
37
35
|
resolveServerDbPath
|
|
38
36
|
} from "./chunk-GLKOYSRU.js";
|
|
39
37
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./chunk-
|
|
38
|
+
resolveRunsDir
|
|
39
|
+
} from "./chunk-OWKNSIXL.js";
|
|
42
40
|
import {
|
|
43
41
|
boundSummaryText,
|
|
44
42
|
buildDialogReadEnvelope,
|
|
45
43
|
projectDialogReadForAgent
|
|
46
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MNEZUL5S.js";
|
|
47
45
|
import {
|
|
48
46
|
asRecordOrEmpty
|
|
49
47
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -51,11 +49,15 @@ import {
|
|
|
51
49
|
isLevelNotFoundError
|
|
52
50
|
} from "./chunk-OW765XBU.js";
|
|
53
51
|
import {
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
dialogIdFromKey,
|
|
53
|
+
isSupportedDialogId,
|
|
54
|
+
parseDialogPathIdentity,
|
|
55
|
+
splitDialogKeyIdentity
|
|
56
|
+
} from "./chunk-YZMNK53S.js";
|
|
56
57
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
58
|
+
asNonEmptyStringArray,
|
|
59
|
+
asTrimmedNonEmptyStringArray
|
|
60
|
+
} from "./chunk-I42VC5KR.js";
|
|
59
61
|
import {
|
|
60
62
|
parseUserIdFromAuthToken,
|
|
61
63
|
readOption,
|
|
@@ -63,29 +65,29 @@ import {
|
|
|
63
65
|
resolveDeleteServerCandidates,
|
|
64
66
|
resolveServerCandidates,
|
|
65
67
|
resolveServerUrl
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
import {
|
|
68
|
-
DEFAULT_LOCAL_API_ORIGIN
|
|
69
|
-
} from "./chunk-4SN6J65J.js";
|
|
68
|
+
} from "./chunk-BIDSIRTS.js";
|
|
70
69
|
import {
|
|
71
70
|
t
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import {
|
|
74
|
-
dialogIdFromKey,
|
|
75
|
-
isSupportedDialogId,
|
|
76
|
-
parseDialogPathIdentity,
|
|
77
|
-
splitDialogKeyIdentity
|
|
78
|
-
} from "./chunk-YZMNK53S.js";
|
|
71
|
+
} from "./chunk-262R3XNN.js";
|
|
79
72
|
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} from "./chunk-I42VC5KR.js";
|
|
73
|
+
toErrorMessage
|
|
74
|
+
} from "./chunk-HNMXYYJR.js";
|
|
83
75
|
import {
|
|
84
76
|
asTrimmedString
|
|
85
77
|
} from "./chunk-3EUW3WEO.js";
|
|
78
|
+
import {
|
|
79
|
+
isRecord
|
|
80
|
+
} from "./chunk-KUG52IAP.js";
|
|
86
81
|
import {
|
|
87
82
|
asOptionalTrimmedString
|
|
88
83
|
} from "./chunk-G3SUCT4W.js";
|
|
84
|
+
import {
|
|
85
|
+
DEFAULT_LOCAL_API_ORIGIN
|
|
86
|
+
} from "./chunk-4SN6J65J.js";
|
|
87
|
+
|
|
88
|
+
// packages/cli/dialogCommands.ts
|
|
89
|
+
import { write as writeFd } from "node:fs";
|
|
90
|
+
import { Writable } from "node:stream";
|
|
89
91
|
|
|
90
92
|
// packages/cli/dialogAttachmentCleanup.ts
|
|
91
93
|
function asText(value) {
|
|
@@ -344,6 +346,73 @@ ${indented}`);
|
|
|
344
346
|
output.write(`${JSON.stringify(value, null, 2)}
|
|
345
347
|
`);
|
|
346
348
|
}
|
|
349
|
+
async function writeDialogReadJson(output, json) {
|
|
350
|
+
const text = `${json}
|
|
351
|
+
`;
|
|
352
|
+
if (output === process.stdout) {
|
|
353
|
+
const bytes = Buffer.from(text, "utf8");
|
|
354
|
+
let offset = 0;
|
|
355
|
+
while (offset < bytes.length) {
|
|
356
|
+
const written = await new Promise((resolve, reject) => {
|
|
357
|
+
const attempt = () => writeFd(1, bytes, offset, Math.min(16384, bytes.length - offset), null, (error, count) => {
|
|
358
|
+
if (error?.code === "EAGAIN" || error?.code === "EWOULDBLOCK") {
|
|
359
|
+
setTimeout(attempt, 1);
|
|
360
|
+
} else if (error) reject(error);
|
|
361
|
+
else resolve(count);
|
|
362
|
+
});
|
|
363
|
+
attempt();
|
|
364
|
+
});
|
|
365
|
+
if (written <= 0) throw new Error("stdout write made no progress");
|
|
366
|
+
offset += written;
|
|
367
|
+
}
|
|
368
|
+
} else if (output instanceof Writable) {
|
|
369
|
+
await new Promise((resolve, reject) => {
|
|
370
|
+
let settled = false;
|
|
371
|
+
let writeStarted = false;
|
|
372
|
+
let stateCheck;
|
|
373
|
+
const cleanup = () => {
|
|
374
|
+
clearInterval(stateCheck);
|
|
375
|
+
output.off("error", onError);
|
|
376
|
+
output.off("close", checkState);
|
|
377
|
+
output.off("finish", checkState);
|
|
378
|
+
};
|
|
379
|
+
const settle = (error) => {
|
|
380
|
+
if (settled) return;
|
|
381
|
+
settled = true;
|
|
382
|
+
if (error) setTimeout(() => {
|
|
383
|
+
cleanup();
|
|
384
|
+
reject(error);
|
|
385
|
+
}, 0);
|
|
386
|
+
else {
|
|
387
|
+
cleanup();
|
|
388
|
+
resolve();
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
const onError = (error) => settle(error);
|
|
392
|
+
const checkState = () => {
|
|
393
|
+
if (output.errored) settle(output.errored);
|
|
394
|
+
else if (output.destroyed || output.closed || output.writableFinished || !writeStarted && output.writableEnded) {
|
|
395
|
+
settle(new Error("stdout Writable closed before write completion"));
|
|
396
|
+
}
|
|
397
|
+
};
|
|
398
|
+
output.on("error", onError);
|
|
399
|
+
output.on("close", checkState);
|
|
400
|
+
output.on("finish", checkState);
|
|
401
|
+
checkState();
|
|
402
|
+
if (settled) return;
|
|
403
|
+
stateCheck = setInterval(checkState, 10);
|
|
404
|
+
try {
|
|
405
|
+
writeStarted = true;
|
|
406
|
+
output.write(text, (error) => settle(error));
|
|
407
|
+
checkState();
|
|
408
|
+
} catch (error) {
|
|
409
|
+
settle(error instanceof Error ? error : new Error(String(error)));
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
} else {
|
|
413
|
+
output.write(text);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
347
416
|
function writeJsonlStream(output, items) {
|
|
348
417
|
for (const item of items) {
|
|
349
418
|
output.write(`${JSON.stringify(item)}
|
|
@@ -782,7 +851,7 @@ function isExplicitDialogIdMismatch(meta, dialogId) {
|
|
|
782
851
|
return meta && typeof meta === "object" && "id" in meta && meta.id != null && String(meta.id) !== dialogId;
|
|
783
852
|
}
|
|
784
853
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
|
|
785
|
-
const reader = readLocalDialog ?? (await import("./localDialogRead-
|
|
854
|
+
const reader = readLocalDialog ?? (await import("./localDialogRead-CCOCVGAP.js")).readDialogFromLocalDb;
|
|
786
855
|
const result = await reader({ dialogKey, dialogId, limit });
|
|
787
856
|
return {
|
|
788
857
|
...result,
|
|
@@ -797,7 +866,7 @@ async function readLocalDialogAtDbPathDefault(args) {
|
|
|
797
866
|
);
|
|
798
867
|
}
|
|
799
868
|
const db = await getDefaultCliLocalRuntimeDb();
|
|
800
|
-
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-
|
|
869
|
+
const { readDialogFromLocalDb: reader } = await import("./localDialogRead-CCOCVGAP.js");
|
|
801
870
|
return reader({ ...args, db });
|
|
802
871
|
}
|
|
803
872
|
async function readDialogFromLocalDbWithFallback(args) {
|
|
@@ -1355,11 +1424,10 @@ async function runDialogReadCommand(args, deps = {}) {
|
|
|
1355
1424
|
},
|
|
1356
1425
|
options: { maxResponseChars: agentMaxResponseChars }
|
|
1357
1426
|
});
|
|
1358
|
-
output
|
|
1359
|
-
output.write("\n");
|
|
1427
|
+
await writeDialogReadJson(output, built.serialized);
|
|
1360
1428
|
return 0;
|
|
1361
1429
|
}
|
|
1362
|
-
output
|
|
1430
|
+
await writeDialogReadJson(output, JSON.stringify({
|
|
1363
1431
|
source: read.source,
|
|
1364
1432
|
base: read.resolvedBase,
|
|
1365
1433
|
triedBases: read.candidateBases,
|
|
@@ -1408,11 +1476,11 @@ async function runDialogReadCommand(args, deps = {}) {
|
|
|
1408
1476
|
lastAssistantMessage,
|
|
1409
1477
|
messages: outputMsgs
|
|
1410
1478
|
}, null, 2));
|
|
1411
|
-
output.write("\n");
|
|
1412
1479
|
return 0;
|
|
1413
1480
|
} catch (error) {
|
|
1414
|
-
|
|
1415
|
-
|
|
1481
|
+
const diagnostic = `${formatDialogReadFailure(error, target.dialogId)}
|
|
1482
|
+
`;
|
|
1483
|
+
(deps.error ?? (output instanceof Writable ? process.stderr : output)).write(diagnostic);
|
|
1416
1484
|
return 1;
|
|
1417
1485
|
}
|
|
1418
1486
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
writeOAuthCredential
|
|
3
|
+
} from "./chunk-G7Y4GXTY.js";
|
|
4
|
+
import {
|
|
5
|
+
buildEnvFromProfile,
|
|
6
|
+
loadProfileConfig
|
|
7
|
+
} from "./chunk-R5GO3YZP.js";
|
|
8
|
+
import {
|
|
9
|
+
getCliLocale
|
|
10
|
+
} from "./chunk-262R3XNN.js";
|
|
1
11
|
import {
|
|
2
12
|
ANTIGRAVITY_AUTH_URL,
|
|
3
13
|
ANTIGRAVITY_CALLBACK_PATH,
|
|
@@ -11,26 +21,16 @@ import {
|
|
|
11
21
|
getAntigravityUserAgent,
|
|
12
22
|
normalizeAntigravityTokenPayload,
|
|
13
23
|
refreshAntigravityToken
|
|
14
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7JGMNKKG.js";
|
|
15
25
|
import {
|
|
16
26
|
toErrorMessage
|
|
17
27
|
} from "./chunk-HNMXYYJR.js";
|
|
18
|
-
import {
|
|
19
|
-
isRecord
|
|
20
|
-
} from "./chunk-KUG52IAP.js";
|
|
21
|
-
import {
|
|
22
|
-
buildEnvFromProfile,
|
|
23
|
-
loadProfileConfig
|
|
24
|
-
} from "./chunk-R5GO3YZP.js";
|
|
25
|
-
import {
|
|
26
|
-
getCliLocale
|
|
27
|
-
} from "./chunk-OB6DVWPF.js";
|
|
28
|
-
import {
|
|
29
|
-
writeOAuthCredential
|
|
30
|
-
} from "./chunk-G7Y4GXTY.js";
|
|
31
28
|
import {
|
|
32
29
|
asTrimmedString
|
|
33
30
|
} from "./chunk-3EUW3WEO.js";
|
|
31
|
+
import {
|
|
32
|
+
isRecord
|
|
33
|
+
} from "./chunk-KUG52IAP.js";
|
|
34
34
|
import {
|
|
35
35
|
asOptionalFiniteNumber
|
|
36
36
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -767,6 +767,25 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
767
767
|
break;
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
+
const CJK_CLOSING_OR_SEP_REGEX = /^[,。!?;:、)》】」』]$/;
|
|
771
|
+
let listMarkerEndToken = 0;
|
|
772
|
+
{
|
|
773
|
+
let plainPrefix = "";
|
|
774
|
+
let probe = 0;
|
|
775
|
+
while (probe < tokens.length && plainPrefix.length < 24) {
|
|
776
|
+
const tok = tokens[probe];
|
|
777
|
+
if (tok.kind === "char") {
|
|
778
|
+
plainPrefix += tok.value;
|
|
779
|
+
if (plainPrefix.length >= 2 && !/^(?:◈ ?)?\s*(?:\d*[.)]?|[•*+-])?\s*$/.test(plainPrefix)) {
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
if (/^(?:◈\s+)?\s*(?:\d+[.)]|[•*+-])\s+$/.test(plainPrefix)) {
|
|
783
|
+
listMarkerEndToken = probe + 1;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
probe += 1;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
770
789
|
let plainCharIndexAtStart = 0;
|
|
771
790
|
let start = 0;
|
|
772
791
|
while (start < tokens.length) {
|
|
@@ -776,6 +795,10 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
776
795
|
const currentPrefixWidth = isContinuation ? visibleWidth(hangingIndent) : prefixWidth;
|
|
777
796
|
const indentWidth = isContinuation ? visibleWidth(hangingIndent) : 0;
|
|
778
797
|
const maxSegmentWidth = Math.max(1, columns - indentWidth);
|
|
798
|
+
const nextContent = (from) => {
|
|
799
|
+
while (from < tokens.length && tokens[from].kind === "sgr") from += 1;
|
|
800
|
+
return tokens[from];
|
|
801
|
+
};
|
|
779
802
|
let width = 0;
|
|
780
803
|
let end = start;
|
|
781
804
|
let lastBreak = -1;
|
|
@@ -788,17 +811,40 @@ function wrapTranscriptLineWithLayout(line, columns, hangingIndent = "", lineSou
|
|
|
788
811
|
if (width + token.width > maxSegmentWidth && width > 0) break;
|
|
789
812
|
width += token.width;
|
|
790
813
|
end += 1;
|
|
791
|
-
if (
|
|
792
|
-
|
|
814
|
+
if (token.charIndex >= prefixCharCount && (isContinuation || end > listMarkerEndToken)) {
|
|
815
|
+
if (token.value === " " || token.value === " " || CJK_CLOSING_OR_SEP_REGEX.test(token.value) || token.value === "/") {
|
|
816
|
+
lastBreak = end;
|
|
817
|
+
}
|
|
793
818
|
}
|
|
794
819
|
}
|
|
795
820
|
let segmentEnd = end;
|
|
796
821
|
if (end < tokens.length && lastBreak > start) {
|
|
797
822
|
const overflowToken = tokens[end];
|
|
798
|
-
if (overflowToken.kind === "char" && overflowToken.value !== " " && overflowToken.width === 1) {
|
|
823
|
+
if (overflowToken.kind === "char" && overflowToken.value !== " " && (overflowToken.width === 1 || CJK_CLOSING_OR_SEP_REGEX.test(overflowToken.value)) && nextContent(lastBreak) !== overflowToken) {
|
|
799
824
|
segmentEnd = lastBreak;
|
|
800
825
|
}
|
|
801
826
|
}
|
|
827
|
+
const next = nextContent(segmentEnd);
|
|
828
|
+
if (next?.kind === "char" && CJK_CLOSING_OR_SEP_REGEX.test(next.value)) {
|
|
829
|
+
const minBacktrack = isContinuation ? start : Math.max(start, listMarkerEndToken);
|
|
830
|
+
let previous = segmentEnd - 1;
|
|
831
|
+
while (previous > minBacktrack) {
|
|
832
|
+
const tok = tokens[previous];
|
|
833
|
+
if (tok.kind === "sgr") {
|
|
834
|
+
previous -= 1;
|
|
835
|
+
continue;
|
|
836
|
+
}
|
|
837
|
+
if (CJK_CLOSING_OR_SEP_REGEX.test(tok.value)) {
|
|
838
|
+
previous -= 1;
|
|
839
|
+
continue;
|
|
840
|
+
}
|
|
841
|
+
break;
|
|
842
|
+
}
|
|
843
|
+
const preceding = tokens[previous];
|
|
844
|
+
if (previous > minBacktrack && preceding?.kind === "char" && preceding.value !== " " && preceding.value !== " ") {
|
|
845
|
+
segmentEnd = previous;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
802
848
|
if (segmentEnd === start) segmentEnd = start + 1;
|
|
803
849
|
let segment = "";
|
|
804
850
|
let sawStyle = openingStyles.length > 0;
|
|
@@ -879,7 +925,7 @@ function wrapTranscriptLine(line, columns, hangingIndent = "") {
|
|
|
879
925
|
return wrapTranscriptLineWithLayout(line, columns, hangingIndent).map((r) => r.rendered);
|
|
880
926
|
}
|
|
881
927
|
function buildWindowTitle(title) {
|
|
882
|
-
const plain = stripAnsi2(title).replace(/[\x00-\x1f\x7f]+/g, " ");
|
|
928
|
+
const plain = stripAnsi2(title).replace(/[\x00-\x1f\x7f-\x9f]+/g, " ");
|
|
883
929
|
let truncated = "";
|
|
884
930
|
let width = 0;
|
|
885
931
|
const maxCols = 80;
|
|
@@ -1026,6 +1072,23 @@ async function startCallbackServer(options) {
|
|
|
1026
1072
|
var TIER_LEGACY = "legacy-tier";
|
|
1027
1073
|
var PROJECT_ONBOARD_MAX_ATTEMPTS = 5;
|
|
1028
1074
|
var PROJECT_ONBOARD_INTERVAL_MS = 2e3;
|
|
1075
|
+
async function fetchAntigravityAvailableModels(fetchImpl, accessToken) {
|
|
1076
|
+
const response = await fetchImpl(`${ANTIGRAVITY_CLOUD_CODE_BASE_URL}/v1internal:fetchAvailableModels`, {
|
|
1077
|
+
method: "POST",
|
|
1078
|
+
headers: {
|
|
1079
|
+
Authorization: `Bearer ${accessToken}`,
|
|
1080
|
+
"Content-Type": "application/json",
|
|
1081
|
+
"User-Agent": getAntigravityUserAgent()
|
|
1082
|
+
},
|
|
1083
|
+
body: "{}"
|
|
1084
|
+
});
|
|
1085
|
+
if (!response.ok) {
|
|
1086
|
+
const body = await response.text();
|
|
1087
|
+
throw new Error(`fetchAvailableModels failed: ${response.status} ${response.statusText}: ${body}`);
|
|
1088
|
+
}
|
|
1089
|
+
const payload = await response.json();
|
|
1090
|
+
return payload.models && typeof payload.models === "object" && !Array.isArray(payload.models) ? payload.models : {};
|
|
1091
|
+
}
|
|
1029
1092
|
var ANTIGRAVITY_LOAD_CODE_ASSIST_METADATA = Object.freeze({
|
|
1030
1093
|
ideType: "ANTIGRAVITY",
|
|
1031
1094
|
platform: "PLATFORM_UNSPECIFIED",
|
|
@@ -2363,12 +2426,13 @@ export {
|
|
|
2363
2426
|
wrapTranscriptLine,
|
|
2364
2427
|
buildWindowTitle,
|
|
2365
2428
|
wrapTextToLines,
|
|
2366
|
-
resolveClaudeCodeVersion,
|
|
2367
|
-
getClaudeCodeUserAgent,
|
|
2368
|
-
adoptRequiredClaudeCodeVersion,
|
|
2369
2429
|
startCallbackServer,
|
|
2430
|
+
fetchAntigravityAvailableModels,
|
|
2370
2431
|
runAntigravityOAuthLogin,
|
|
2371
2432
|
refreshAntigravityOAuthToken,
|
|
2433
|
+
resolveClaudeCodeVersion,
|
|
2434
|
+
getClaudeCodeUserAgent,
|
|
2435
|
+
adoptRequiredClaudeCodeVersion,
|
|
2372
2436
|
renderDeviceCodeDisplay,
|
|
2373
2437
|
generatePkcePair,
|
|
2374
2438
|
runOpenAiCodexDeviceCode,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EGHP7KOY.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WCFFRBL5.js";
|
|
10
10
|
import {
|
|
11
11
|
CREDENTIAL_HYGIENE_RULE,
|
|
12
12
|
DELETE_SAFETY_RED_LINE,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
compileContextLayers,
|
|
23
23
|
detectDispatchIntentFromMessages,
|
|
24
24
|
resolveToolGuidedSections
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-FPBJM2BW.js";
|
|
26
26
|
import {
|
|
27
27
|
convertMessagesToResponsesInput,
|
|
28
28
|
getUsageRequestOptions,
|
|
@@ -31,58 +31,58 @@ import {
|
|
|
31
31
|
resolveReasoningReplayOptions,
|
|
32
32
|
shouldStripReasoningContentForOutbound,
|
|
33
33
|
stablePromptCacheKey
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EEOOBRA7.js";
|
|
35
35
|
import {
|
|
36
36
|
resolveAgentCallPlan,
|
|
37
37
|
resolveClientWire
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OBIC6EG7.js";
|
|
39
39
|
import {
|
|
40
40
|
createFileCredentialBroker
|
|
41
41
|
} from "./chunk-OQHIVPG4.js";
|
|
42
|
-
import {
|
|
43
|
-
buildProviderAuthHeaders
|
|
44
|
-
} from "./chunk-6EDAMVG6.js";
|
|
45
|
-
import {
|
|
46
|
-
toErrorMessage
|
|
47
|
-
} from "./chunk-HNMXYYJR.js";
|
|
48
42
|
import {
|
|
49
43
|
WORKTREE_ISOLATION_PRELUDE,
|
|
50
44
|
buildSkillGuidancePromptBlock
|
|
51
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-G7IUT2V3.js";
|
|
52
46
|
import {
|
|
53
47
|
canonicalizeToolNames
|
|
54
48
|
} from "./chunk-6OVNSQHN.js";
|
|
55
|
-
import {
|
|
56
|
-
clampReasoningEffort,
|
|
57
|
-
getModelConfig,
|
|
58
|
-
isModelSupportReasoningEffort
|
|
59
|
-
} from "./chunk-KYH7XW3K.js";
|
|
60
|
-
import {
|
|
61
|
-
isRecord
|
|
62
|
-
} from "./chunk-KUG52IAP.js";
|
|
63
|
-
import {
|
|
64
|
-
isDeepInfraKimiModel,
|
|
65
|
-
isFireworksKimiModel,
|
|
66
|
-
isPlatformMimoProviderModel,
|
|
67
|
-
resolveFireworksKimiModel
|
|
68
|
-
} from "./chunk-OBSEKCVK.js";
|
|
69
49
|
import {
|
|
70
50
|
MEMORY_USE_GUIDANCE,
|
|
71
51
|
buildUserResponseLanguageContext,
|
|
72
52
|
wrapHistoricalSummaryWithReplayGuard
|
|
73
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-JQZRSXS5.js";
|
|
74
54
|
import {
|
|
75
55
|
API_ENDPOINTS
|
|
76
56
|
} from "./chunk-LCBAMY2M.js";
|
|
77
57
|
import {
|
|
78
|
-
|
|
79
|
-
} from "./chunk-
|
|
58
|
+
buildProviderAuthHeaders
|
|
59
|
+
} from "./chunk-RTHFJZ6M.js";
|
|
60
|
+
import {
|
|
61
|
+
toErrorMessage
|
|
62
|
+
} from "./chunk-HNMXYYJR.js";
|
|
80
63
|
import {
|
|
81
64
|
asTrimmedString
|
|
82
65
|
} from "./chunk-3EUW3WEO.js";
|
|
66
|
+
import {
|
|
67
|
+
clampReasoningEffort,
|
|
68
|
+
getModelConfig,
|
|
69
|
+
isModelSupportReasoningEffort
|
|
70
|
+
} from "./chunk-CD3RU7XL.js";
|
|
71
|
+
import {
|
|
72
|
+
isRecord
|
|
73
|
+
} from "./chunk-KUG52IAP.js";
|
|
83
74
|
import {
|
|
84
75
|
asOptionalTrimmedString
|
|
85
76
|
} from "./chunk-G3SUCT4W.js";
|
|
77
|
+
import {
|
|
78
|
+
isLoopbackUrl
|
|
79
|
+
} from "./chunk-4SN6J65J.js";
|
|
80
|
+
import {
|
|
81
|
+
isDeepInfraKimiModel,
|
|
82
|
+
isFireworksKimiModel,
|
|
83
|
+
isPlatformMimoProviderModel,
|
|
84
|
+
resolveFireworksKimiModel
|
|
85
|
+
} from "./chunk-OBSEKCVK.js";
|
|
86
86
|
|
|
87
87
|
// packages/agent-runtime/responsesConversationState.ts
|
|
88
88
|
function supportsResponsesConversationState(agent) {
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
deriveStateResident
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
_appendRetiredStateBatch,
|
|
6
|
-
loadMemoryVNextCatalog
|
|
7
|
-
} from "./chunk-XI2BWJM5.js";
|
|
3
|
+
} from "./chunk-ZOHO6MOF.js";
|
|
8
4
|
import {
|
|
9
5
|
resolveMachineId
|
|
10
6
|
} from "./chunk-S73EPYNC.js";
|
|
7
|
+
import {
|
|
8
|
+
_appendRetiredStateBatch,
|
|
9
|
+
loadMemoryVNextCatalog
|
|
10
|
+
} from "./chunk-324FWHUA.js";
|
|
11
11
|
import {
|
|
12
12
|
getDefaultCliLocalRuntimeDb
|
|
13
13
|
} from "./chunk-N5Z2V73W.js";
|
|
14
|
+
import {
|
|
15
|
+
createMemoryKey,
|
|
16
|
+
createMemoryOwnerIndexKey,
|
|
17
|
+
createMemorySubjectKindIndexKey,
|
|
18
|
+
memoryOwnerRange
|
|
19
|
+
} from "./chunk-SYTHYBMI.js";
|
|
20
|
+
import {
|
|
21
|
+
asTrimmedNonEmptyStringArray
|
|
22
|
+
} from "./chunk-I42VC5KR.js";
|
|
14
23
|
import {
|
|
15
24
|
resolveAuthTokenFromEnv
|
|
16
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BIDSIRTS.js";
|
|
17
26
|
import {
|
|
18
27
|
DEFAULT_NOLO_SERVER_URL
|
|
19
28
|
} from "./chunk-OLZBQWZU.js";
|
|
@@ -26,15 +35,6 @@ import {
|
|
|
26
35
|
loadProfileConfig,
|
|
27
36
|
saveDefaultProfile
|
|
28
37
|
} from "./chunk-R5GO3YZP.js";
|
|
29
|
-
import {
|
|
30
|
-
createMemoryKey,
|
|
31
|
-
createMemoryOwnerIndexKey,
|
|
32
|
-
createMemorySubjectKindIndexKey,
|
|
33
|
-
memoryOwnerRange
|
|
34
|
-
} from "./chunk-SYTHYBMI.js";
|
|
35
|
-
import {
|
|
36
|
-
asTrimmedNonEmptyStringArray
|
|
37
|
-
} from "./chunk-I42VC5KR.js";
|
|
38
38
|
import {
|
|
39
39
|
asTrimmedString
|
|
40
40
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DLXMMTGM.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HF7BLF3F.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3QIYD3VM.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VS276URX.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveLocalRuntimeEnvFromPolicy
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-USGHJSGO.js";
|
|
17
17
|
import {
|
|
18
18
|
asRecordOrEmpty
|
|
19
19
|
} from "./chunk-KX6YBIHG.js";
|
|
20
|
-
import {
|
|
21
|
-
toErrorMessage
|
|
22
|
-
} from "./chunk-HNMXYYJR.js";
|
|
23
20
|
import {
|
|
24
21
|
ownedAgentKey
|
|
25
22
|
} from "./chunk-M2EJHDJP.js";
|
|
26
23
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./chunk-
|
|
24
|
+
asTrimmedNonEmptyStringArray
|
|
25
|
+
} from "./chunk-I42VC5KR.js";
|
|
26
|
+
import {
|
|
27
|
+
asOptionalPositiveFiniteNumber
|
|
28
|
+
} from "./chunk-U6VC4MU4.js";
|
|
29
29
|
import {
|
|
30
30
|
parseUserIdFromAuthToken
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-BIDSIRTS.js";
|
|
32
32
|
import {
|
|
33
33
|
DEFAULT_NOLO_SERVER_URL
|
|
34
34
|
} from "./chunk-OLZBQWZU.js";
|
|
@@ -38,16 +38,16 @@ import {
|
|
|
38
38
|
} from "./chunk-4O22PGNQ.js";
|
|
39
39
|
import {
|
|
40
40
|
t
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-262R3XNN.js";
|
|
42
42
|
import {
|
|
43
|
-
|
|
44
|
-
} from "./chunk-
|
|
43
|
+
toErrorMessage
|
|
44
|
+
} from "./chunk-HNMXYYJR.js";
|
|
45
45
|
import {
|
|
46
46
|
asTrimmedString
|
|
47
47
|
} from "./chunk-3EUW3WEO.js";
|
|
48
48
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
isRecord
|
|
50
|
+
} from "./chunk-KUG52IAP.js";
|
|
51
51
|
import {
|
|
52
52
|
asOptionalTrimmedString
|
|
53
53
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTokenUser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VQ5N5GSV.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveServerUrl
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BIDSIRTS.js";
|
|
7
7
|
import {
|
|
8
8
|
t
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-262R3XNN.js";
|
|
10
10
|
|
|
11
11
|
// packages/cli/cliApiClient.ts
|
|
12
12
|
var CliApiError = class extends Error {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
t
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-262R3XNN.js";
|
|
4
4
|
|
|
5
5
|
// packages/cli/windowsSelfUpdate.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -304,11 +304,12 @@ const switchWindowsShims = (shimDir, entrypoint) => {
|
|
|
304
304
|
throw new Error("Refusing to downgrade " + payload.currentVersion + " to " + targetVersion);
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
if (compare(targetVersion, payload.currentVersion)
|
|
307
|
+
if (compare(targetVersion, payload.currentVersion) >= 0) {
|
|
308
308
|
log("phase: install-target");
|
|
309
309
|
const versionPrefix = join(payload.managedRoot, targetVersion + "-" + payload.updateId);
|
|
310
310
|
uncommittedVersionPrefix = versionPrefix;
|
|
311
|
-
mkdirSync(
|
|
311
|
+
mkdirSync(payload.managedRoot, { recursive: true });
|
|
312
|
+
mkdirSync(versionPrefix);
|
|
312
313
|
// Install the exact version resolved from the dist-tag above — never the
|
|
313
314
|
// floating channel tag — so the staged package is the verified one.
|
|
314
315
|
const install = runNpm(["install", "-g", "--prefix", versionPrefix, "nolo-cli@" + targetVersion, "--force", "--progress"]);
|
|
@@ -320,6 +321,13 @@ const switchWindowsShims = (shimDir, entrypoint) => {
|
|
|
320
321
|
}
|
|
321
322
|
const stagedEntrypoint = join(versionPrefix, "node_modules", "nolo-cli", "index.js");
|
|
322
323
|
if (!existsSync(stagedEntrypoint)) throw new Error("Staged nolo entrypoint is missing");
|
|
324
|
+
const preflight = spawnSync(payload.nodePath, [stagedEntrypoint, "-v"], {
|
|
325
|
+
encoding: "utf8", windowsHide: true, env: process.env,
|
|
326
|
+
cwd: payload.updateDir, timeout: 30 * 1000,
|
|
327
|
+
});
|
|
328
|
+
if (preflight.error || preflight.status !== 0 || String(preflight.stdout || "").trim() !== "nolo-cli " + targetVersion) {
|
|
329
|
+
throw new Error("The staged CLI failed its pre-switch version check");
|
|
330
|
+
}
|
|
323
331
|
assertLockOwnership();
|
|
324
332
|
log("phase: switch-shims");
|
|
325
333
|
const switchedShims = switchWindowsShims(prefix, stagedEntrypoint);
|