nolo-cli 0.227.0-alpha.1 → 0.228.0-alpha.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-JKQGZ3HU.js → _executeModel-WZKT6XEU.js} +76 -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-PZWRHNXY.js} +113 -114
- package/{agentEmailCommands-UCVOWD3S.js → agentEmailCommands-QTKMEICX.js} +116 -117
- package/{agentFavoriteCommands-4PDOP3GW.js → agentFavoriteCommands-7LOP3HUD.js} +6 -6
- package/{agentGrantCommands-FLCEXLUH.js → agentGrantCommands-L6O2HVJI.js} +7 -7
- package/{agentListCommands-C65UESYM.js → agentListCommands-GUGMORTK.js} +72 -71
- package/{agentMachineCommands-V3DGEJU4.js → agentMachineCommands-7QGICJLM.js} +57 -56
- package/{agentProviderCommands-7QBFRFRK.js → agentProviderCommands-STI3DQ6A.js} +7 -7
- package/{agentPullCommand-E6JBGBVG.js → agentPullCommand-KHV4EELF.js} +6 -6
- package/{agentRecordCommands-6RCJS2EY.js → agentRecordCommands-SLLADS5C.js} +104 -105
- package/{agentRunCommand-P3GRKXKS.js → agentRunCommand-OFQLOF5Y.js} +110 -111
- package/{agentRunControl-SNZZ5XP4.js → agentRunControl-MBG4U6SL.js} +23 -17
- package/{agentRuntimeLocal-GOX2DIY7.js → agentRuntimeLocal-TU4LA353.js} +44 -44
- package/{agentSlice-N7H2FRJA.js → agentSlice-L4SBGWTB.js} +17 -17
- package/{appDeleteCommands-LZDN26FU.js → appDeleteCommands-JWP3XPUA.js} +52 -51
- package/{appDeployCommands-6IO6TTZH.js → appDeployCommands-6E4TQCWI.js} +52 -51
- package/{appDeployStatusCommands-FG3LX24J.js → appDeployStatusCommands-ALU4SADG.js} +52 -51
- package/{appGetCommands-NAKVDVD4.js → appGetCommands-JEY4L6L4.js} +52 -51
- package/{appListCommands-KL56RN73.js → appListCommands-PCAVHU7M.js} +52 -51
- package/{authCommand-AUN5MXV2.js → authCommand-CGRIIOOV.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-KMRKZNGT.js → chunk-2MCB7CD7.js} +13 -12
- package/{chunk-YPPKC6FL.js → chunk-2NPD3FTX.js} +3 -3
- package/{chunk-UN7HIYMH.js → chunk-2X7WFDT6.js} +1 -1
- package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
- package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
- package/{chunk-RU6DULV4.js → chunk-3U44JB3O.js} +1 -1
- package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
- package/{chunk-PLPLH2XZ.js → chunk-4ZGPHFLE.js} +2 -2
- package/{chunk-NO3VBWTL.js → chunk-547ENH5T.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-VPAZ6BEN.js → chunk-7JGMNKKG.js} +18 -14
- package/{chunk-3VFYQH3I.js → chunk-AGYPUBFW.js} +14 -39
- package/{chunk-5HL4KC4A.js → chunk-ALAES342.js} +57 -86
- package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
- package/{chunk-CQVGR3MX.js → chunk-AUAJTAFM.js} +8 -8
- package/chunk-BIDSIRTS.js +307 -0
- package/chunk-BIWI5M4E.js +62 -0
- package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
- 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-VZW34YUL.js → chunk-CYWNWA77.js} +5 -5
- package/{chunk-5LQDHFBN.js → chunk-D6YNCNM6.js} +14 -11
- package/{chunk-UVUVQVZ6.js → chunk-DBUR22G5.js} +2 -2
- package/{chunk-7Z3WUZ4Q.js → chunk-DDC6P6EH.js} +24 -24
- package/{chunk-G6HJUMST.js → chunk-DEA37IUY.js} +2 -2
- package/{chunk-5RKRXQ2H.js → chunk-DGYCDA6W.js} +2 -2
- 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-UAPNPNSG.js → chunk-EXJK7TQO.js} +1040 -582
- package/{chunk-OXA5GWHU.js → chunk-F6Z6ZCUV.js} +2 -2
- package/{chunk-X2KRQP7V.js → chunk-FJSNBZXR.js} +1 -1
- package/{chunk-KRRE4A7D.js → chunk-G7IUT2V3.js} +3 -2
- package/{chunk-VIHDJ3FK.js → chunk-GACR7H6T.js} +14 -14
- package/{chunk-GOLPOTG5.js → chunk-GOCSSER3.js} +3 -3
- package/{chunk-NAOO4PVX.js → chunk-GPOV42YM.js} +16 -16
- package/{chunk-C2B7M567.js → chunk-GUXZK7SE.js} +5 -5
- package/{chunk-TINJKQSO.js → chunk-GYS5FUYR.js} +20 -20
- package/{chunk-IAJJYHIB.js → chunk-H6L2NFHY.js} +7 -7
- package/{chunk-45LZIYXB.js → chunk-HBRDSQ3M.js} +1 -1
- package/{chunk-T5N6NHAT.js → chunk-HHFGE2WF.js} +3 -3
- package/{chunk-IX2BXN2K.js → chunk-HSSBDZLD.js} +3 -3
- package/{chunk-MWHOH4RJ.js → chunk-HYLRQDEE.js} +4 -4
- package/{chunk-ZYA2YDB6.js → chunk-IAAIUH64.js} +16 -16
- package/{chunk-LXTC53TN.js → chunk-IXG6YXQM.js} +143 -123
- package/{chunk-CVERLOJM.js → chunk-JUSHVFNF.js} +236 -182
- package/{chunk-ABGULE7H.js → chunk-K67C2JUC.js} +12 -12
- package/{chunk-T2BEPTAG.js → chunk-L32W3PRP.js} +47 -17
- package/{chunk-M3Y4IBIR.js → chunk-M4SFKP5L.js} +4 -4
- package/{chunk-ZI5SZ3MV.js → chunk-MDZWUD3R.js} +20 -20
- package/{chunk-F5AY2UZL.js → chunk-NHY322ZU.js} +8 -8
- package/{chunk-KJAAPGBE.js → chunk-OBIC6EG7.js} +6 -6
- package/{chunk-4OKTPFNX.js → chunk-OG6MQOQG.js} +105 -37
- package/{chunk-AXYH4734.js → chunk-OOJNQK6V.js} +13 -13
- package/{chunk-XIEYGCN6.js → chunk-OWKNSIXL.js} +149 -48
- package/{chunk-JHF6VLVL.js → chunk-OYU2MA5S.js} +29 -29
- package/{chunk-6XIE5ZGI.js → chunk-PDCV7P5W.js} +1 -1
- package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
- package/{chunk-PHOSZT3E.js → chunk-QBZCGP34.js} +1 -1
- package/{chunk-CLCXHIBS.js → chunk-QCB42576.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-PVAWNHP5.js → chunk-R3NEQZ53.js} +295 -102
- 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-6EDAMVG6.js → chunk-RTHFJZ6M.js} +10 -10
- package/{chunk-YOT437BH.js → chunk-RYOLWYBK.js} +122 -118
- package/{chunk-WJP4TH6U.js → chunk-S6FDXXZV.js} +1 -1
- package/{chunk-SW6OD4KE.js → chunk-SMJEXX2S.js} +123 -12
- package/{chunk-LJSNEV7M.js → chunk-SRCCSTIM.js} +7 -7
- package/{chunk-FKEZOMIF.js → chunk-STJ6LSQE.js} +453 -193
- package/{chunk-L42CBKBZ.js → chunk-TGNIKIHR.js} +3 -3
- package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
- package/{chunk-SRG5CNLC.js → chunk-TSPMLCWI.js} +6 -6
- package/{chunk-YGILMZ7N.js → chunk-TUSTONB3.js} +1 -1
- package/{chunk-2SKTCNWO.js → chunk-UE2EVEYS.js} +2 -2
- package/{chunk-ZADGPNTV.js → chunk-UWAIJOF2.js} +29 -29
- package/{chunk-HVUDBOQG.js → chunk-VMJVAJ6W.js} +9 -6
- package/{chunk-LA7JYAKF.js → chunk-VSYTM22R.js} +3 -3
- package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
- package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
- package/{chunk-GRXSJR2Z.js → chunk-XJPLSAPJ.js} +21 -21
- package/{chunk-HYKGIXNO.js → chunk-XSW4EXQV.js} +85 -21
- package/{chunk-T43K75CK.js → chunk-YKY4OVOX.js} +15 -15
- 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-M3F76NIP.js} +46 -46
- package/{commandRegistry-TKR6OWXP.js → commandRegistry-ZLWHQVAI.js} +93 -93
- package/{contentThunks-BQWRPCTM.js → contentThunks-4ZX2TO7C.js} +36 -35
- package/{cooldownCommands-FZYQOWI5.js → cooldownCommands-YB5H5BBK.js} +3 -3
- package/{createAgentAutomationAction-GFI6SJZV.js → createAgentAutomationAction-L4CYUZJG.js} +36 -35
- package/{createDialogAction-MMBIHFFU.js → createDialogAction-QTU2R2Q3.js} +37 -37
- package/{createPageAction-EEYUE5FB.js → createPageAction-F3GJTHW2.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-NRLCOPJR.js} +56 -56
- package/{dialogNotifyCommand-VWS5G4OO.js → dialogNotifyCommand-SHGPCU22.js} +17 -17
- package/{dialogSlice-KGYIABDY.js → dialogSlice-P2S4LXQD.js} +34 -33
- package/{dialogUsageCommand-FEWCN7IA.js → dialogUsageCommand-W2WCSGKF.js} +6 -6
- package/{docCreateCommands-LS32VKY3.js → docCreateCommands-YJRDA3RX.js} +51 -50
- package/{docDeleteCommands-JTYR5RPH.js → docDeleteCommands-A5QIHZNF.js} +53 -52
- package/{docReadCommands-E5LTVKWN.js → docReadCommands-CF2LTMYH.js} +51 -50
- package/{docStore-TVS2FNER.js → docStore-6O7NYL6A.js} +15 -15
- package/{docUpdateCommands-I3J3JDZ2.js → docUpdateCommands-QRKV4ZXE.js} +51 -50
- package/{fetchMessages-Q3INLN5F.js → fetchMessages-TQEUZD7H.js} +3 -3
- package/{getPricing-VNGFM4PN.js → getPricing-LF5C4XSI.js} +6 -6
- package/{handleSendMessageAction-SSON36TJ.js → handleSendMessageAction-7IHLR37A.js} +66 -66
- package/{hostCredentialCreate-WTW4THJF.js → hostCredentialCreate-VNCQUAFT.js} +104 -105
- 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-FOWVNMIK.js} +111 -112
- package/{machineCommands-3LROJZDK.js → machineCommands-ZGC3J4JB.js} +115 -116
- package/{machineWsRunDispatch-BUUJRUUB.js → machineWsRunDispatch-KK5U4M3G.js} +102 -103
- 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-7ZDYBXAX.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-YHT4SX2C.js} +4391 -4161
- package/{removeDialogAgentAction-JQOJSUM7.js → removeDialogAgentAction-F5QE2O2B.js} +19 -19
- package/{runAgentClientLoop-4FCFLMDJ.js → runAgentClientLoop-H4ED5V3K.js} +70 -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-I37M5KJC.js} +3 -3
- package/{spaceCommands-DB5DKC2J.js → spaceCommands-MEH3HJBC.js} +53 -52
- package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
- package/{streamAgentChatTurn-FCBGMD4D.js → streamAgentChatTurn-ZXPOXU33.js} +91 -92
- package/{switchDialogAgentAction-LAHLUECU.js → switchDialogAgentAction-IIJBPND3.js} +16 -16
- package/{tableCommands-VNSXHAMG.js → tableCommands-FTAOCBTX.js} +12 -12
- package/{tools-6JD36D6K.js → tools-2MRWA2PP.js} +59 -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-RZ3KZSGQ.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-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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requireTokenUser
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AUAJTAFM.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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ATEKLSLR.js";
|
|
5
5
|
import {
|
|
6
6
|
noloDeleteRequest,
|
|
7
7
|
noloWriteRequest
|
|
8
8
|
} from "./chunk-7Z6EW7AH.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeTimeFields
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4N6G2CKP.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUser,
|
|
14
14
|
selectIdentityUserId
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
canUsePlatformChatProvider,
|
|
11
11
|
parsePlatformChatCompletionResponse,
|
|
12
12
|
resolvePlatformChatProviderConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HSSBDZLD.js";
|
|
14
14
|
import {
|
|
15
15
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
16
16
|
classifySummaryError,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
isTruncatedCompletion,
|
|
19
19
|
selectSummaryRoute,
|
|
20
20
|
summaryCompletionTokens
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-L32W3PRP.js";
|
|
22
22
|
import {
|
|
23
23
|
isAbortError
|
|
24
24
|
} from "./chunk-7DPNBQSV.js";
|
|
25
|
+
import {
|
|
26
|
+
parseUserIdFromAuthToken
|
|
27
|
+
} from "./chunk-BIDSIRTS.js";
|
|
25
28
|
import {
|
|
26
29
|
resolvePlatformAuthToken,
|
|
27
30
|
resolvePlatformServerUrl
|
|
28
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RTHFJZ6M.js";
|
|
29
32
|
import {
|
|
30
33
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL
|
|
31
34
|
} from "./chunk-OBSEKCVK.js";
|
|
32
|
-
import {
|
|
33
|
-
parseUserIdFromAuthToken
|
|
34
|
-
} from "./chunk-WACI5I6V.js";
|
|
35
35
|
|
|
36
36
|
// packages/core/accountSession/fetchAccountProfile.ts
|
|
37
37
|
async function fetchAccountProfile(input) {
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MDZWUD3R.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K67C2JUC.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-AGYPUBFW.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-BNMPUQW6.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,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
toErrorMessage
|
|
3
|
-
} from "./chunk-HNMXYYJR.js";
|
|
4
|
-
import {
|
|
5
|
-
isRecord
|
|
6
|
-
} from "./chunk-KUG52IAP.js";
|
|
7
1
|
import {
|
|
8
2
|
resolveNoloStateDir
|
|
9
3
|
} from "./chunk-6UBGXX2W.js";
|
|
10
4
|
import {
|
|
11
5
|
asOptionalPositiveFiniteNumber
|
|
12
6
|
} from "./chunk-U6VC4MU4.js";
|
|
7
|
+
import {
|
|
8
|
+
toErrorMessage
|
|
9
|
+
} from "./chunk-HNMXYYJR.js";
|
|
10
|
+
import {
|
|
11
|
+
isRecord
|
|
12
|
+
} from "./chunk-KUG52IAP.js";
|
|
13
13
|
import {
|
|
14
14
|
asOptionalFiniteNumber
|
|
15
15
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -2082,8 +2082,11 @@ ${stderr.trim()}` : "",
|
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
2084
|
export {
|
|
2085
|
+
countLines,
|
|
2085
2086
|
spillToolOutput,
|
|
2086
2087
|
formatToolOverflowMarker,
|
|
2088
|
+
TOOL_OUTPUT_SPILL_BYTES,
|
|
2089
|
+
TOOL_OUTPUT_SPILL_LINES,
|
|
2087
2090
|
isSpilledToolOutput,
|
|
2088
2091
|
spillLargeToolOutput,
|
|
2089
2092
|
resolveExecutableOnPath,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
patch,
|
|
9
9
|
readAndWait
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CMMI3DAT.js";
|
|
11
11
|
import {
|
|
12
12
|
toErrorMessage
|
|
13
13
|
} from "./chunk-HNMXYYJR.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-4ZX2TO7C.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-F3GJTHW2.js");
|
|
382
382
|
return createPageAction(args, thunkApi);
|
|
383
383
|
}
|
|
384
384
|
function subscribe(listener) {
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
normalizeSystemBuiltinSkills,
|
|
7
7
|
normalizeTonePresetSetting,
|
|
8
8
|
resolveUserEnabledSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RBPUNSG5.js";
|
|
10
|
+
import {
|
|
11
|
+
setDialogExtraReferencesAction
|
|
12
|
+
} from "./chunk-HYLRQDEE.js";
|
|
10
13
|
import {
|
|
11
14
|
isSkillSummaryMarker
|
|
12
15
|
} from "./chunk-VF4K2QE6.js";
|
|
13
|
-
import {
|
|
14
|
-
setDialogExtraReferencesAction
|
|
15
|
-
} from "./chunk-MWHOH4RJ.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchAndCacheTableRows
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GYS5FUYR.js";
|
|
19
19
|
import {
|
|
20
20
|
getActiveDialogKey
|
|
21
21
|
} from "./chunk-S2NTVGA2.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
} from "./chunk-UAD2WT54.js";
|
|
28
28
|
import {
|
|
29
29
|
selectById
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-CMMI3DAT.js";
|
|
31
31
|
import {
|
|
32
32
|
selectRuntimeSnapshot
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-R6Z5S5GA.js";
|
|
34
34
|
import {
|
|
35
35
|
createAsyncThunk,
|
|
36
36
|
createSelector
|
|
@@ -40,33 +40,33 @@ import {
|
|
|
40
40
|
} from "./chunk-PXYBUFDB.js";
|
|
41
41
|
import {
|
|
42
42
|
isAgentSkillDisabled
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
toErrorMessage
|
|
46
|
-
} from "./chunk-HNMXYYJR.js";
|
|
43
|
+
} from "./chunk-FJSNBZXR.js";
|
|
47
44
|
import {
|
|
48
45
|
DEFAULT_SYSTEM_AGENT_CAPABILITIES,
|
|
49
46
|
listBuiltinSkills,
|
|
50
47
|
resolveBuiltinSkillByName
|
|
51
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-G7IUT2V3.js";
|
|
52
49
|
import {
|
|
53
50
|
parseSkillDocProtocol
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
isRecord
|
|
57
|
-
} from "./chunk-KUG52IAP.js";
|
|
58
|
-
import {
|
|
59
|
-
normalizeServerOrigin
|
|
60
|
-
} from "./chunk-CF7PE763.js";
|
|
51
|
+
} from "./chunk-W6RFEDN4.js";
|
|
61
52
|
import {
|
|
62
53
|
asTrimmedNonEmptyStringArray
|
|
63
54
|
} from "./chunk-I42VC5KR.js";
|
|
55
|
+
import {
|
|
56
|
+
toErrorMessage
|
|
57
|
+
} from "./chunk-HNMXYYJR.js";
|
|
64
58
|
import {
|
|
65
59
|
asTrimmedString
|
|
66
60
|
} from "./chunk-3EUW3WEO.js";
|
|
61
|
+
import {
|
|
62
|
+
isRecord
|
|
63
|
+
} from "./chunk-KUG52IAP.js";
|
|
67
64
|
import {
|
|
68
65
|
asOptionalTrimmedString
|
|
69
66
|
} from "./chunk-G3SUCT4W.js";
|
|
67
|
+
import {
|
|
68
|
+
normalizeServerOrigin
|
|
69
|
+
} from "./chunk-CF7PE763.js";
|
|
70
70
|
import {
|
|
71
71
|
__toESM
|
|
72
72
|
} from "./chunk-U67V476Y.js";
|
|
@@ -783,7 +783,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
783
783
|
if (!executionInput) {
|
|
784
784
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
785
785
|
}
|
|
786
|
-
const { findToolExecutor } = await import("./tools-
|
|
786
|
+
const { findToolExecutor } = await import("./tools-2MRWA2PP.js");
|
|
787
787
|
const { executor } = findToolExecutor(run.toolName);
|
|
788
788
|
toolRunStarted({
|
|
789
789
|
id: run.id,
|
|
@@ -807,7 +807,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
807
807
|
const latestState = thunkApi.getState();
|
|
808
808
|
const userId = selectIdentityUserId(latestState);
|
|
809
809
|
if (userId) {
|
|
810
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
810
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-7Y3OYSJQ.js");
|
|
811
811
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
812
812
|
}
|
|
813
813
|
}
|
|
@@ -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,
|
|
@@ -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,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);
|