nolo-cli 0.251.0-alpha.1 → 0.252.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-55PHWQWB.js → _executeModel-RXHY2BDR.js} +47 -47
- package/{action-WZTKEF5H.js → action-4MADDU52.js} +5 -5
- package/{addContentAction-LBVAQUF7.js → addContentAction-F4XO3VRF.js} +8 -8
- package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-NSCVHTZJ.js} +7 -7
- package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-EJAI2VTH.js} +69 -68
- package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-YBKHZMMZ.js} +69 -68
- package/{agentListCommands-L3TLPLNH.js → agentListCommands-M2KYLAOB.js} +226 -39
- package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-GLY6NJWZ.js} +31 -29
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-JANPX6XI.js} +68 -67
- package/{agentRunCommand-POL6B6BO.js → agentRunCommand-TNLAXLUU.js} +68 -67
- package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
- package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-EOW6FFXL.js} +26 -25
- package/{agentSlice-3G2YLTA4.js → agentSlice-PVFGBJXB.js} +8 -8
- package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-3VCRRWUX.js} +33 -31
- package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-XN6IEMYK.js} +33 -31
- package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-ZSJJXMVR.js} +33 -31
- package/{appGetCommands-GOOKYMKO.js → appGetCommands-DJ7YQCEE.js} +33 -31
- package/{appListCommands-OBCGUG3S.js → appListCommands-4KU5CV5H.js} +33 -31
- package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
- package/{builtinSkillRegistry-PFTTFPWW.js → builtinSkillRegistry-PQWEXSFW.js} +1 -1
- package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
- package/{chunk-LOXR4TQN.js → chunk-25GCVHBZ.js} +2 -2
- package/{chunk-A55E2OCP.js → chunk-26KL6533.js} +639 -125
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/{chunk-CUYFRVJF.js → chunk-2HF6DINU.js} +6 -6
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
- package/{chunk-43VT5PLM.js → chunk-3LL5HRIJ.js} +1 -1
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
- package/{chunk-OQCAHPDQ.js → chunk-5QEOTC35.js} +4 -4
- package/{chunk-R7D5SRAZ.js → chunk-5UYDG6HP.js} +17 -0
- package/{chunk-Z7A2ZQ5X.js → chunk-64ACTEAE.js} +1 -1
- package/{chunk-CTWCZKNS.js → chunk-6SOWMEAY.js} +4 -4
- package/{chunk-UCMUXZJV.js → chunk-7XO73H5X.js} +111 -1
- package/{chunk-222CJNC2.js → chunk-BLBGVSLB.js} +3 -3
- package/{chunk-ZM5AZTQG.js → chunk-BTQU2PRC.js} +19 -7
- package/{chunk-QJ5YDTEF.js → chunk-BVCCRSGK.js} +42 -24
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/chunk-CGSIW2KI.js +594 -0
- package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
- package/{chunk-Q5KZ6F55.js → chunk-CSTCYYCR.js} +19 -17
- package/{chunk-D3E5MYXO.js → chunk-CYGFNMCH.js} +1 -1
- package/{chunk-MZVCFV3T.js → chunk-D3WOFN6N.js} +3 -3
- package/{chunk-VUHKG4KS.js → chunk-DNNPARJK.js} +9 -5
- package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-D35TOEMM.js → chunk-EPBEZKYK.js} +137 -53
- package/{chunk-KJDN2YRH.js → chunk-EQJK6LSN.js} +4 -4
- package/{chunk-N3SEV3CG.js → chunk-F6GZFIGR.js} +79 -30
- package/{chunk-6UNJ6JGR.js → chunk-FJPVVLP3.js} +4 -4
- package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-IFJ6OTI6.js → chunk-GJ4UTSAW.js} +33 -11
- package/{chunk-ZKKJZBNO.js → chunk-GUFTHWDO.js} +10 -10
- package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
- package/{chunk-W2N4OAKM.js → chunk-IQXMWBI6.js} +3 -3
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-PLS2MJVW.js → chunk-J4KLOLYP.js} +4 -4
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-CDIRKCPD.js → chunk-JX2IG37T.js} +153 -153
- package/{chunk-TGKAUEV3.js → chunk-K7RWY7JH.js} +14 -11
- package/{chunk-5IKKSJYX.js → chunk-KHYSFS3W.js} +76 -2
- package/{chunk-K5CIMK3R.js → chunk-KO6JNZCF.js} +115 -57
- package/{chunk-XJSEST7D.js → chunk-KQBGXCKM.js} +3 -3
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-HD5EKSLF.js → chunk-MDWHMQON.js} +3 -3
- package/{chunk-X337N4D6.js → chunk-MOAVLCCM.js} +4 -4
- package/{chunk-OARYOLF3.js → chunk-N2MDL5AZ.js} +12 -12
- package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
- package/{chunk-X3OZ655T.js → chunk-N7UXTVAR.js} +2 -2
- package/{chunk-KGOBJAWC.js → chunk-NJDOID7N.js} +207 -94
- package/{chunk-NTNX77FI.js → chunk-NRWZHHOB.js} +6 -6
- package/{chunk-3ZWJVKFB.js → chunk-NWZRCUHM.js} +84 -40
- package/{chunk-HQLCYPL4.js → chunk-OB4FBZXJ.js} +4 -4
- package/{chunk-CD2DK5JA.js → chunk-OKH74FML.js} +2 -1
- package/{chunk-IZWGO2ZS.js → chunk-OMIXG25B.js} +1 -1
- package/{chunk-CJ2BP6V7.js → chunk-OOV5JN25.js} +2 -2
- package/{chunk-3KWJPTVP.js → chunk-OQOXDQLB.js} +4 -4
- package/{chunk-LXKK7QFI.js → chunk-OTNPEE4G.js} +54 -24
- package/{chunk-LMMRWGGJ.js → chunk-OTOPQXP5.js} +2 -2
- package/{chunk-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
- package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-SLUZ6FBJ.js → chunk-Q5M27DUE.js} +1 -1
- package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
- package/{chunk-WQDTSK5U.js → chunk-REINTCQF.js} +8 -2
- package/{chunk-IXAGRTAR.js → chunk-SBBSUBY3.js} +1 -1
- package/{chunk-MTM4LRVG.js → chunk-SCY2O7CU.js} +2 -2
- package/{chunk-FAFDIQJG.js → chunk-U3ZK2MXG.js} +3 -3
- package/{chunk-PKMDYRAM.js → chunk-UDQZ5JT7.js} +175 -241
- package/{chunk-UR4ZMRV3.js → chunk-UGHNYYOE.js} +2 -2
- package/{chunk-KZVRPCOR.js → chunk-UTFTXJU3.js} +4 -4
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
- package/{chunk-QLGL43SI.js → chunk-VZWYP7LD.js} +2 -2
- package/{chunk-6XVPMGXK.js → chunk-W4S5FQWQ.js} +10 -4
- package/{chunk-KRAPKTAS.js → chunk-WJOC3AEM.js} +2 -2
- package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
- package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
- package/{chunk-BQ4CZEVZ.js → chunk-YWLMUFZ5.js} +1 -1
- package/{chunk-CD64YXRB.js → chunk-Z47UZT27.js} +1 -1
- package/{chunk-75TXQ4GY.js → chunk-ZMWDHPNG.js} +15 -29
- package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
- package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
- package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-OHAC4JTY.js} +30 -29
- package/{commandRegistry-OM5DU4DS.js → commandRegistry-YQMAXCLP.js} +81 -81
- package/{contentThunks-7URM43ET.js → contentThunks-GSMUNWBA.js} +20 -20
- package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
- package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-RMADR4LG.js} +20 -20
- package/{createDialogAction-IXXEMFRQ.js → createDialogAction-CM5CBQVH.js} +21 -21
- package/{createPageAction-IXIVLIOO.js → createPageAction-JMGVMCTH.js} +21 -21
- package/{db-J5KE7XRI.js → db-VR74ADGC.js} +5 -1
- package/{dbSlice-IE4ADINL.js → dbSlice-Q637QR4L.js} +7 -7
- package/{deleteFile-ZCQESEEQ.js → deleteFile-TP6MKFUX.js} +10 -5
- package/{dialogCommands-RPBHOZB6.js → dialogCommands-ULWP5ASX.js} +35 -33
- package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
- package/{dialogSlice-5FQB2TNN.js → dialogSlice-ARQKXXTD.js} +18 -18
- package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-ZJFHCZV4.js} +32 -30
- package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LY5MF2BI.js} +33 -31
- package/{docReadCommands-LRRVDS46.js → docReadCommands-4X2DHCNZ.js} +32 -30
- package/{docStore-SUAVM24F.js → docStore-QWRVKIRI.js} +8 -8
- package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-5TIT7DAJ.js} +32 -30
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-TVR55KVT.js} +36 -36
- package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-SIRXPUFR.js} +68 -67
- package/index.js +8 -8
- package/{localDialogRead-USDZXKIL.js → localDialogRead-BJJT3TF5.js} +1 -1
- package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-VRB5EDDZ.js} +67 -66
- package/{machineCommands-I3YA7TNC.js → machineCommands-MG3BB6XM.js} +68 -67
- package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-3TOO3NCU.js} +68 -67
- package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
- package/{memberThunks-T7EAZE6A.js → memberThunks-IGYRMEQC.js} +9 -9
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-A7E65AZO.js → projectArchive-Q46BYZQ6.js} +21 -21
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-MPPXZHAO.js} +10 -5
- package/{readDocTool-N7RVFQEE.js → readDocTool-PKZ35PCR.js} +1 -1
- package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-RBH6PSE7.js} +613 -209
- package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-H6S7VLNA.js} +9 -9
- package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-WZJ4HXOH.js} +44 -44
- package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
- package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
- package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-CARUTAWS.js} +8 -8
- package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-VRV56MLG.js} +9 -9
- package/{settingThunks-X4PT66J2.js → settingThunks-4FC4HXGN.js} +7 -7
- package/{spaceCommands-EVSNTGRS.js → spaceCommands-27Z5JAU3.js} +31 -29
- package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-JKMBFM2O.js} +57 -53
- package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-O236K6HB.js} +7 -7
- package/{tableCommands-44GC4N6J.js → tableCommands-C3P2HHKK.js} +2 -2
- package/{tools-2AO2SK4L.js → tools-4RFLNHUW.js} +37 -37
- package/{tuiRestart-HBQDF4AE.js → tuiRestart-GF4DGAAN.js} +7 -7
- package/{tuiSummaryLlmCaller-Q2PNR63K.js → tuiSummaryLlmCaller-HROLGN4F.js} +12 -12
- package/{updateCommands-6SI7NWVC.js → updateCommands-BZ4YDHNM.js} +3 -3
- package/{updateDialogTitleAction-MWVMBIPZ.js → updateDialogTitleAction-F3ONQM3N.js} +20 -20
- package/{usageCommand-D44AOTMH.js → usageCommand-XVJ7ZUTM.js} +1 -1
- package/{usageRebuildCommand-IRIMKDI5.js → usageRebuildCommand-NK6S3D4J.js} +2 -2
- package/{windowsSelfUpdate-BJIJKKIS.js → windowsSelfUpdate-4BAXX7C3.js} +2 -2
- package/{workloadLifecycle-ZCSQCHG3.js → workloadLifecycle-DYX5ZMAT.js} +2 -2
- package/chunk-FGHEF6WI.js +0 -34
- package/{chunk-ANUP75N2.js → chunk-2E4BYAUE.js} +0 -0
- package/{chunk-YHNUDTU4.js → chunk-VYRTLHIT.js} +3 -3
- package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
resolveClaudeCodeVersion,
|
|
23
23
|
resolveServerSyncConfig,
|
|
24
24
|
xaiRefresh
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QV32GSVO.js";
|
|
26
26
|
import {
|
|
27
27
|
clearCredentialAvailability,
|
|
28
28
|
markCredentialUnavailable,
|
|
29
29
|
readCredentialEntry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GIXWVN2W.js";
|
|
31
31
|
import {
|
|
32
32
|
DialogNotifyError,
|
|
33
33
|
deliverDialogNotification,
|
|
34
34
|
sha256Hex
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-CYGFNMCH.js";
|
|
36
36
|
import {
|
|
37
37
|
SANDBOX_HELPER_PATH,
|
|
38
38
|
SANDBOX_OUTPUT_LIMITS,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
buildWorkspaceHelperSource,
|
|
42
42
|
dockerExecutionToolNames,
|
|
43
43
|
parseToolOutput
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-PENRYZ4D.js";
|
|
45
45
|
import {
|
|
46
46
|
createChromeConnectorClientResolver,
|
|
47
47
|
createVerifiedChromeConnectorClient,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
} from "./chunk-VIWDGTDA.js";
|
|
61
61
|
import {
|
|
62
62
|
createTuiSummaryLlmCaller
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-OB4FBZXJ.js";
|
|
64
64
|
import {
|
|
65
65
|
CliProviderQuotaError,
|
|
66
66
|
executeCli,
|
|
@@ -71,14 +71,14 @@ import {
|
|
|
71
71
|
} from "./chunk-ATNTHIZI.js";
|
|
72
72
|
import {
|
|
73
73
|
resolveUserSkillRuntime
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-UGHNYYOE.js";
|
|
75
75
|
import {
|
|
76
76
|
inlineImageUrlsForCustomProvider,
|
|
77
77
|
prepareTools
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-EPBEZKYK.js";
|
|
79
79
|
import {
|
|
80
80
|
getServerProviderSecret
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-KZ4A7EIV.js";
|
|
82
82
|
import {
|
|
83
83
|
CONTROL_AGENT_RUN_ACTIONS,
|
|
84
84
|
buildCliLocalRuntimeForwardArgs,
|
|
@@ -98,22 +98,22 @@ import {
|
|
|
98
98
|
resolveCliLocalSpawnDispatch,
|
|
99
99
|
resolveRunContextFacts,
|
|
100
100
|
resolveStartAgentRunCwd
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-NWZRCUHM.js";
|
|
102
102
|
import {
|
|
103
103
|
deriveCredentialGroup,
|
|
104
104
|
deriveCustomProviderCredentialGroup
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-HF4C5WIU.js";
|
|
106
106
|
import {
|
|
107
107
|
normalizeEnabledPromptSkills,
|
|
108
108
|
resolveUserEnabledSkills
|
|
109
109
|
} from "./chunk-WMMKHEGQ.js";
|
|
110
110
|
import {
|
|
111
111
|
validateAskChoiceInput
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-MOAVLCCM.js";
|
|
113
113
|
import {
|
|
114
114
|
prepareTokenUsageData,
|
|
115
115
|
runKeyed
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-26KL6533.js";
|
|
117
117
|
import {
|
|
118
118
|
applyTokenUsageToDayStats,
|
|
119
119
|
require_format
|
|
@@ -124,19 +124,22 @@ import {
|
|
|
124
124
|
} from "./chunk-523DITKR.js";
|
|
125
125
|
import {
|
|
126
126
|
fetchServerSyncedCredential
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-BVCCRSGK.js";
|
|
128
128
|
import {
|
|
129
129
|
getDefaultCliLocalRuntimeDb
|
|
130
130
|
} from "./chunk-7RYODZDD.js";
|
|
131
131
|
import {
|
|
132
132
|
defaultLoopbackRequest,
|
|
133
133
|
loadLocalRunChildDialogIds
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-N2ZAY2DK.js";
|
|
135
135
|
import {
|
|
136
136
|
CREDENTIAL_STORE_SESSION_FALLBACK_WARNING,
|
|
137
137
|
OAUTH_PROVIDER_REFS,
|
|
138
138
|
getSharedSessionCredentialBroker
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-EQJK6LSN.js";
|
|
140
|
+
import {
|
|
141
|
+
resolveDispatchReasoningEffort
|
|
142
|
+
} from "./chunk-CGSIW2KI.js";
|
|
140
143
|
import {
|
|
141
144
|
fetchWithTransientRetry,
|
|
142
145
|
isTransientFetchError
|
|
@@ -166,7 +169,7 @@ import {
|
|
|
166
169
|
terminateRunProcess,
|
|
167
170
|
transitionRunToTerminal,
|
|
168
171
|
withQueueLock
|
|
169
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-7XO73H5X.js";
|
|
170
173
|
import {
|
|
171
174
|
TASK_PREVIEW_MAX,
|
|
172
175
|
formatControlRunMessageCard,
|
|
@@ -189,10 +192,10 @@ import {
|
|
|
189
192
|
readDialogMessageRecords,
|
|
190
193
|
readDialogMessages,
|
|
191
194
|
resolveBuiltinLocalCliAgentConfig
|
|
192
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-OQOXDQLB.js";
|
|
193
196
|
import {
|
|
194
197
|
applyPublicAgentCatalogOverride
|
|
195
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-D3WOFN6N.js";
|
|
196
199
|
import {
|
|
197
200
|
applyBuiltinAgentRuntimeOverride
|
|
198
201
|
} from "./chunk-JP2BH4NC.js";
|
|
@@ -246,12 +249,13 @@ import {
|
|
|
246
249
|
runExecShellGates,
|
|
247
250
|
validateConfiguredRootExecutionLease,
|
|
248
251
|
verifyOwnerRouteAck
|
|
249
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-UDQZ5JT7.js";
|
|
250
253
|
import {
|
|
251
254
|
createHostCredentialBrokerChain,
|
|
252
255
|
createStrictHostCredentialBroker
|
|
253
256
|
} from "./chunk-LHCGKAFO.js";
|
|
254
257
|
import {
|
|
258
|
+
AGENT_PROMPT_IN_MESSAGES,
|
|
255
259
|
accumulateGeminiChunks,
|
|
256
260
|
buildGeminiGenerateContentRequest,
|
|
257
261
|
fetchAntigravityCloudCodeCompletion,
|
|
@@ -263,7 +267,7 @@ import {
|
|
|
263
267
|
resolveAntigravityFinishReason,
|
|
264
268
|
resolveGeminiModelQuirks,
|
|
265
269
|
shouldUseGeminiNativeToolRoute
|
|
266
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-OOV5JN25.js";
|
|
267
271
|
import {
|
|
268
272
|
readLocalImage
|
|
269
273
|
} from "./chunk-AL3TYDIF.js";
|
|
@@ -278,40 +282,40 @@ import {
|
|
|
278
282
|
readPlatformChatSseCompletion,
|
|
279
283
|
resolvePlatformChatProviderConfig,
|
|
280
284
|
shouldUsePlatformChatProvider
|
|
281
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-PIVTQRX6.js";
|
|
282
286
|
import {
|
|
283
287
|
readSseDataValues,
|
|
284
288
|
readSseFrames
|
|
285
289
|
} from "./chunk-HNUWUO75.js";
|
|
286
290
|
import {
|
|
287
291
|
resolveAgentRuntimeConfigFromRecord
|
|
288
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-OTOPQXP5.js";
|
|
289
293
|
import {
|
|
290
294
|
resolveAgentImageInputSupport,
|
|
291
295
|
resolveCatalogImageSupport,
|
|
292
296
|
resolveToolImagePolicy,
|
|
293
297
|
withLiveImageSupport
|
|
294
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-BZLGPM5B.js";
|
|
295
299
|
import {
|
|
296
300
|
assertDispatchSelectionAdmission,
|
|
297
301
|
buildNoloWorkspaceOpenAiTools,
|
|
298
302
|
filterClientNoloWorkspaceToolNames,
|
|
299
303
|
parseNoloWorkspaceToolArguments
|
|
300
|
-
} from "./chunk-
|
|
304
|
+
} from "./chunk-ZMXO5G3E.js";
|
|
301
305
|
import {
|
|
302
306
|
extractQuotaSnapshot,
|
|
303
307
|
isCapacitySaturatedRateLimit,
|
|
304
308
|
mergeAvailabilityDeadline,
|
|
305
309
|
resolveAvailabilityAction,
|
|
306
310
|
resolveCredentialKeyWithFallback
|
|
307
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-LS5KAVFQ.js";
|
|
308
312
|
import {
|
|
309
313
|
collectStablePromptPrefix,
|
|
310
314
|
convertMessagesToResponsesInput,
|
|
311
315
|
findAgentStatePairingIssues,
|
|
312
316
|
stablePromptCacheKey,
|
|
313
317
|
toResponsesTools
|
|
314
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-FXEPZKNJ.js";
|
|
315
319
|
import {
|
|
316
320
|
EMPTY_TOOL_RESULT_TEXT,
|
|
317
321
|
MAX_TOOL_IMAGES_PER_REQUEST,
|
|
@@ -327,13 +331,13 @@ import {
|
|
|
327
331
|
resolveAgentRequiredPackIds,
|
|
328
332
|
resolveAgentSkillConfig,
|
|
329
333
|
resolveHistoricalToolContentCap
|
|
330
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-JX2IG37T.js";
|
|
331
335
|
import {
|
|
332
336
|
MCP_TOOL_NAMES
|
|
333
337
|
} from "./chunk-KXOPLLFP.js";
|
|
334
338
|
import {
|
|
335
339
|
resolveAgentCallPlan
|
|
336
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-DNNPARJK.js";
|
|
337
341
|
import {
|
|
338
342
|
buildDialogFallbackTitleFromUserInput,
|
|
339
343
|
normalizeDialogTitle
|
|
@@ -346,15 +350,16 @@ import {
|
|
|
346
350
|
commitCodexOAuthCatalogWindows,
|
|
347
351
|
isCodexOAuthAgent,
|
|
348
352
|
markCodexOAuthCatalogFailure,
|
|
349
|
-
resolveCodexOAuthEffectiveModel
|
|
350
|
-
|
|
353
|
+
resolveCodexOAuthEffectiveModel,
|
|
354
|
+
usesCodexDeveloperPrefix
|
|
355
|
+
} from "./chunk-CIAV4WK2.js";
|
|
351
356
|
import {
|
|
352
357
|
isDevinOAuthAgent
|
|
353
358
|
} from "./chunk-5ZUL4CUO.js";
|
|
354
359
|
import {
|
|
355
360
|
normalizeUsage,
|
|
356
361
|
sanitizeSummarySourceSegments
|
|
357
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-2FZVXOFX.js";
|
|
358
363
|
import {
|
|
359
364
|
createProviderCallTimingTracker,
|
|
360
365
|
finalizeProviderCallTiming,
|
|
@@ -411,7 +416,7 @@ import {
|
|
|
411
416
|
expandEnabledPacks,
|
|
412
417
|
resolveBuiltinSkillEntry,
|
|
413
418
|
resolveEffectiveEnabledPacks
|
|
414
|
-
} from "./chunk-
|
|
419
|
+
} from "./chunk-ZMWDHPNG.js";
|
|
415
420
|
import {
|
|
416
421
|
DIALOG_AGENT_LIST_INDEX_PREFIX,
|
|
417
422
|
TOKEN_DIALOG_INDEX_PREFIX,
|
|
@@ -432,7 +437,7 @@ import {
|
|
|
432
437
|
localTurnHasSubjectRefs,
|
|
433
438
|
resolveLocalUserId,
|
|
434
439
|
withResolvedRuntimeToolSurface
|
|
435
|
-
} from "./chunk-
|
|
440
|
+
} from "./chunk-OMIXG25B.js";
|
|
436
441
|
import {
|
|
437
442
|
LOCAL_CODEX_AGENT_KEY,
|
|
438
443
|
isLocalCliAgentKey,
|
|
@@ -446,7 +451,7 @@ import {
|
|
|
446
451
|
remoteDialogSyncTimeout,
|
|
447
452
|
resolveRuntimeAuthToken,
|
|
448
453
|
resolveRuntimeServerUrl
|
|
449
|
-
} from "./chunk-
|
|
454
|
+
} from "./chunk-UUCYUN6Y.js";
|
|
450
455
|
import {
|
|
451
456
|
CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
|
|
452
457
|
canonicalizeChromeConnectorToolNames,
|
|
@@ -478,25 +483,26 @@ import {
|
|
|
478
483
|
import {
|
|
479
484
|
agentRunCardLabels,
|
|
480
485
|
t
|
|
481
|
-
} from "./chunk-
|
|
486
|
+
} from "./chunk-5UYDG6HP.js";
|
|
482
487
|
import {
|
|
483
488
|
isAntigravityOAuthAgent
|
|
484
|
-
} from "./chunk-
|
|
489
|
+
} from "./chunk-6SOWMEAY.js";
|
|
485
490
|
import {
|
|
486
491
|
toErrorMessage
|
|
487
492
|
} from "./chunk-HNMXYYJR.js";
|
|
488
493
|
import {
|
|
489
494
|
buildProviderSessionHeaders,
|
|
490
495
|
resolvePlatformAuthToken
|
|
491
|
-
} from "./chunk-
|
|
496
|
+
} from "./chunk-LVZVSLKO.js";
|
|
492
497
|
import {
|
|
493
498
|
asTrimmedString
|
|
494
499
|
} from "./chunk-3EUW3WEO.js";
|
|
495
500
|
import {
|
|
501
|
+
REASONING_EFFORT_OPTIONS,
|
|
496
502
|
anthropicOAuthModelMaxOutputTokens,
|
|
497
503
|
findModelConfig,
|
|
498
504
|
isAdaptiveThinkingModelId
|
|
499
|
-
} from "./chunk-
|
|
505
|
+
} from "./chunk-OKH74FML.js";
|
|
500
506
|
import {
|
|
501
507
|
CLI_PROVIDER_VALUES,
|
|
502
508
|
isCliProvider
|
|
@@ -770,7 +776,7 @@ function resolveThinkingSpec(input) {
|
|
|
770
776
|
let finalMaxTokens = maxTokens;
|
|
771
777
|
let finalTemperature = input.temperature;
|
|
772
778
|
if (isAdaptiveThinkingModelId(model)) {
|
|
773
|
-
if (effortDisabled) {
|
|
779
|
+
if (effortDisabled || normalizedEffort === void 0 && input.enableThinking === false) {
|
|
774
780
|
thinkingBlock = { type: "disabled" };
|
|
775
781
|
} else {
|
|
776
782
|
thinkingBlock = { type: "adaptive", display: "summarized" };
|
|
@@ -780,7 +786,7 @@ function resolveThinkingSpec(input) {
|
|
|
780
786
|
const injected = input.injectedThinking;
|
|
781
787
|
const injectedBudget = injected?.type === "enabled" && typeof injected.budget_tokens === "number" ? injected.budget_tokens : void 0;
|
|
782
788
|
const effortBudget = resolveThinkingBudget(input.reasoningEffort);
|
|
783
|
-
const fallbackBudget = input.reasoningEffort === void 0 ? injectedBudget ?? (input.enableThinking === true ? typeof input.thinkingBudget === "number" ? input.thinkingBudget : DEFAULT_ENABLE_THINKING_BUDGET : DEFAULT_ENABLED_BUDGET) : void 0;
|
|
789
|
+
const fallbackBudget = input.reasoningEffort === void 0 && input.enableThinking !== false ? injectedBudget ?? (input.enableThinking === true ? typeof input.thinkingBudget === "number" ? input.thinkingBudget : DEFAULT_ENABLE_THINKING_BUDGET : DEFAULT_ENABLED_BUDGET) : void 0;
|
|
784
790
|
const thinkingBudget = effortBudget ?? fallbackBudget;
|
|
785
791
|
if (thinkingBudget !== void 0) {
|
|
786
792
|
thinkingBlock = { type: "enabled", budget_tokens: thinkingBudget };
|
|
@@ -2578,26 +2584,50 @@ function buildCodexCompatibilityHeaders(identity, accountId) {
|
|
|
2578
2584
|
"x-codex-turn-metadata": identity.turnMetadataJson
|
|
2579
2585
|
};
|
|
2580
2586
|
}
|
|
2581
|
-
function
|
|
2587
|
+
function getInstructionText(content) {
|
|
2588
|
+
if (!Array.isArray(content)) return asOptionalTrimmedString(content);
|
|
2589
|
+
const text = content.filter(
|
|
2590
|
+
(part) => part?.type === "text" && typeof part.text === "string"
|
|
2591
|
+
).map((part) => part.text).join("\n");
|
|
2592
|
+
return asOptionalTrimmedString(text);
|
|
2593
|
+
}
|
|
2594
|
+
function hasCodexAssembledPrompt(messages) {
|
|
2595
|
+
return messages.some((raw) => {
|
|
2596
|
+
if (!raw || typeof raw !== "object") return false;
|
|
2597
|
+
const message = raw;
|
|
2598
|
+
return message.role === "system" && (message[AGENT_PROMPT_IN_MESSAGES] === true || message.agent_prompt_in_messages === true) && getInstructionText(message.content) !== void 0;
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
function collectInstructions(messages, agentPrompt, splitPrefix) {
|
|
2582
2602
|
const systemTexts = [];
|
|
2603
|
+
let messageTexts = 0;
|
|
2604
|
+
let prefixEnd;
|
|
2583
2605
|
const prompt = agentPrompt?.trim();
|
|
2584
2606
|
if (prompt) systemTexts.push(prompt);
|
|
2585
2607
|
for (const raw of messages) {
|
|
2586
2608
|
if (!raw || typeof raw !== "object") continue;
|
|
2587
2609
|
const role = String(raw.role ?? "");
|
|
2588
2610
|
if (role !== "system" && role !== "developer") continue;
|
|
2589
|
-
const content = raw
|
|
2590
|
-
const
|
|
2591
|
-
if (
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2611
|
+
const { content, stable_prefix_chars: boundary } = raw;
|
|
2612
|
+
const text = getInstructionText(content);
|
|
2613
|
+
if (text) {
|
|
2614
|
+
if (splitPrefix && prefixEnd === void 0 && messageTexts === 0 && typeof content === "string" && typeof boundary === "number" && Number.isInteger(boundary) && boundary >= 0 && boundary <= content.length) {
|
|
2615
|
+
const stable = content.slice(0, boundary).trim();
|
|
2616
|
+
if (stable) systemTexts.push(stable);
|
|
2617
|
+
prefixEnd = systemTexts.length;
|
|
2618
|
+
const dynamic = content.slice(boundary).trim();
|
|
2619
|
+
if (dynamic) systemTexts.push(dynamic);
|
|
2620
|
+
} else {
|
|
2621
|
+
systemTexts.push(text);
|
|
2622
|
+
messageTexts += 1;
|
|
2623
|
+
}
|
|
2598
2624
|
}
|
|
2599
2625
|
}
|
|
2600
|
-
|
|
2626
|
+
const split = splitPrefix ? prefixEnd ?? 0 : 0;
|
|
2627
|
+
return {
|
|
2628
|
+
developerPrefix: systemTexts.slice(0, split).join("\n\n"),
|
|
2629
|
+
instructions: systemTexts.slice(split).join("\n\n")
|
|
2630
|
+
};
|
|
2601
2631
|
}
|
|
2602
2632
|
function convertMessagesToCodexInput(messages, supportsToolImages = false) {
|
|
2603
2633
|
const normalizedToolImages = typeof supportsToolImages === "boolean" ? supportsToolImages : supportsToolImages.supportsToolImages === true;
|
|
@@ -2626,8 +2656,16 @@ function buildCodexRequestBody(args, identity = createCodexRequestIdentity(), se
|
|
|
2626
2656
|
routeKind: "codex/responses",
|
|
2627
2657
|
legacySupportsToolImages: false
|
|
2628
2658
|
}));
|
|
2629
|
-
const fallbackPrompt =
|
|
2630
|
-
const
|
|
2659
|
+
const fallbackPrompt = hasCodexAssembledPrompt(rawMessages) ? void 0 : args.agentConfig.prompt;
|
|
2660
|
+
const splitPrefix = usesCodexDeveloperPrefix(args.agentConfig, model);
|
|
2661
|
+
const { instructions, developerPrefix } = collectInstructions(rawMessages, fallbackPrompt, splitPrefix);
|
|
2662
|
+
if (developerPrefix) {
|
|
2663
|
+
input.unshift({
|
|
2664
|
+
type: "message",
|
|
2665
|
+
role: "developer",
|
|
2666
|
+
content: [{ type: "input_text", text: developerPrefix }]
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2631
2669
|
const stableInstructions = collectStablePromptPrefix(rawMessages, fallbackPrompt);
|
|
2632
2670
|
const tools = toResponsesTools(
|
|
2633
2671
|
Array.isArray(args.openAiBody.tools) ? args.openAiBody.tools : void 0
|
|
@@ -3128,7 +3166,7 @@ function createCustomNativeProvider(args) {
|
|
|
3128
3166
|
}
|
|
3129
3167
|
}
|
|
3130
3168
|
function buildGeminiCustomNativeProvider(p) {
|
|
3131
|
-
const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl,
|
|
3169
|
+
const { model, endpoint, nativeEndpoint, apiKey, apiKeyHeader, agentConfig, tools, fetchImpl, fallbackSessionId, requestedToolNames, serverUrl, transport, log, recordAvailability } = p;
|
|
3132
3170
|
const budgetBody = buildGeminiGenerateContentRequest({
|
|
3133
3171
|
messages: [],
|
|
3134
3172
|
tools,
|
|
@@ -3144,18 +3182,9 @@ function buildGeminiCustomNativeProvider(p) {
|
|
|
3144
3182
|
complete: async (messages, options) => {
|
|
3145
3183
|
const inlineResult = await inlineImageUrlsForCustomProvider({ messages }, {
|
|
3146
3184
|
shouldInline: true,
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
} catch {
|
|
3151
|
-
return false;
|
|
3152
|
-
}
|
|
3153
|
-
},
|
|
3154
|
-
fetchImage: async (url) => {
|
|
3155
|
-
const image = await fetchImpl(url, { headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0, signal: options?.signal });
|
|
3156
|
-
if (!image.ok) return { ok: false, error: `HTTP ${image.status}` };
|
|
3157
|
-
return { ok: true, mimeType: image.headers.get("content-type") ?? "application/octet-stream", bytes: new Uint8Array(await image.arrayBuffer()) };
|
|
3158
|
-
}
|
|
3185
|
+
serverUrl,
|
|
3186
|
+
request: fetchImpl,
|
|
3187
|
+
signal: options?.signal
|
|
3159
3188
|
});
|
|
3160
3189
|
const toolImagePolicy = {
|
|
3161
3190
|
routeKind: "gemini-native",
|
|
@@ -3583,7 +3612,7 @@ var resolveDevinTransport = async (ctx) => {
|
|
|
3583
3612
|
|
|
3584
3613
|
// packages/cli/client/providerResolution/directOpenAiCompatibleTransport.ts
|
|
3585
3614
|
var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
|
|
3586
|
-
const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl
|
|
3615
|
+
const { agentConfig, deps, fetchImpl, loopbackRequest, additionalToolNames, buildProviderOpenAiTools, recordLocalAvailability, apiKeyRefResolver, credentialBroker, syncFetcher, serverUrl } = ctx;
|
|
3587
3616
|
const providerConfig = await resolveOpenAiCompatibleProviderConfig({
|
|
3588
3617
|
agentConfig,
|
|
3589
3618
|
env: deps.env,
|
|
@@ -3621,26 +3650,9 @@ var resolveDirectOpenAiCompatibleTransport = async (ctx) => {
|
|
|
3621
3650
|
{ messages },
|
|
3622
3651
|
{
|
|
3623
3652
|
shouldInline: true,
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
} catch {
|
|
3628
|
-
return false;
|
|
3629
|
-
}
|
|
3630
|
-
},
|
|
3631
|
-
fetchImage: async (url) => {
|
|
3632
|
-
const response = await fetchImpl(url, {
|
|
3633
|
-
headers: authToken ? { Authorization: `Bearer ${authToken}` } : void 0
|
|
3634
|
-
});
|
|
3635
|
-
if (!response.ok) {
|
|
3636
|
-
return { ok: false, error: `HTTP ${response.status}` };
|
|
3637
|
-
}
|
|
3638
|
-
return {
|
|
3639
|
-
ok: true,
|
|
3640
|
-
mimeType: response.headers.get("content-type") ?? "application/octet-stream",
|
|
3641
|
-
bytes: new Uint8Array(await response.arrayBuffer())
|
|
3642
|
-
};
|
|
3643
|
-
}
|
|
3653
|
+
serverUrl,
|
|
3654
|
+
request: fetchImpl,
|
|
3655
|
+
signal: options?.signal
|
|
3644
3656
|
}
|
|
3645
3657
|
)).messages;
|
|
3646
3658
|
logLocalRuntimeDiagnostic("provider.request.start", {
|
|
@@ -6744,7 +6756,7 @@ function buildServerPlatformToolExecutors(args) {
|
|
|
6744
6756
|
}
|
|
6745
6757
|
const ctx = await localMemoryContext();
|
|
6746
6758
|
if (!ctx) throw new Error("local work memory unavailable");
|
|
6747
|
-
const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-
|
|
6759
|
+
const { resolveLocalUserId: resolveLocalUserId2 } = await import("./cliAgentConfigHelpers-FKBPFPKR.js");
|
|
6748
6760
|
const localUserId = resolveLocalUserId2(args.env);
|
|
6749
6761
|
const { resolveWorkContextAccess } = await import("./workContextAccess-VU5I4LKZ.js");
|
|
6750
6762
|
const { updateWorkContext, readWorkContexts } = await import("./workContext-Y3ADAPZU.js");
|
|
@@ -7228,9 +7240,13 @@ var VALUELESS_FLAGS = {
|
|
|
7228
7240
|
"--local": true,
|
|
7229
7241
|
"--server": true,
|
|
7230
7242
|
"--auto": true,
|
|
7243
|
+
"--auto-route": true,
|
|
7244
|
+
"--allow-host-writes": true,
|
|
7231
7245
|
"--dangerously-allow-shell": true,
|
|
7232
7246
|
"--trace-tools": true,
|
|
7233
7247
|
"--bg": true,
|
|
7248
|
+
"--fresh": true,
|
|
7249
|
+
"--fresh-dialog": true,
|
|
7234
7250
|
"--strict-continue-history": true,
|
|
7235
7251
|
"--no-stream": true,
|
|
7236
7252
|
"--debug": true,
|
|
@@ -7238,7 +7254,8 @@ var VALUELESS_FLAGS = {
|
|
|
7238
7254
|
"--memory-only": true,
|
|
7239
7255
|
"--read-only": true,
|
|
7240
7256
|
"--machine-shell": true,
|
|
7241
|
-
"--instabox-allow-remote-release": true
|
|
7257
|
+
"--instabox-allow-remote-release": true,
|
|
7258
|
+
"--instabox-allow-paid": true
|
|
7242
7259
|
};
|
|
7243
7260
|
function isValuelessFlag(arg) {
|
|
7244
7261
|
return Object.prototype.hasOwnProperty.call(VALUELESS_FLAGS, arg);
|
|
@@ -7414,6 +7431,27 @@ function parseAgentRunArgs(args, options = {}) {
|
|
|
7414
7431
|
const allowedToolNames = readRepeatedFlagValues(args, "--allowed-tool").map((value) => value.trim()).filter(Boolean);
|
|
7415
7432
|
const cwd = readFlagValue(args, "--cwd");
|
|
7416
7433
|
const timeoutMs = parsePositiveInteger(readFlagValue(args, "--timeout-ms"));
|
|
7434
|
+
const reasoningEffortHits = [];
|
|
7435
|
+
for (let index = 0; index < args.length; index += 1) {
|
|
7436
|
+
const arg = args[index];
|
|
7437
|
+
if (isValuelessFlag(arg)) continue;
|
|
7438
|
+
if (arg === "--reasoning-effort") {
|
|
7439
|
+
reasoningEffortHits.push({ index, value: args[index + 1] });
|
|
7440
|
+
index += 1;
|
|
7441
|
+
continue;
|
|
7442
|
+
}
|
|
7443
|
+
if (arg.startsWith("--")) index += 1;
|
|
7444
|
+
}
|
|
7445
|
+
if (reasoningEffortHits.length > 1) {
|
|
7446
|
+
throw new Error("--reasoning-effort \u53EA\u80FD\u51FA\u73B0\u4E00\u6B21\uFF08\u91CD\u590D\u53C2\u6570\u4E0D\u4F1A\u88AB\u9759\u9ED8\u53D6\u7B2C\u4E00\u4E2A\uFF09");
|
|
7447
|
+
}
|
|
7448
|
+
const rawReasoningEffort = reasoningEffortHits[0]?.value?.trim().toLowerCase();
|
|
7449
|
+
if (reasoningEffortHits.length === 1 && !REASONING_EFFORT_OPTIONS.includes(rawReasoningEffort ?? "")) {
|
|
7450
|
+
throw new Error(
|
|
7451
|
+
`--reasoning-effort \u5FC5\u987B\u662F ${REASONING_EFFORT_OPTIONS.join("|")} \u4E4B\u4E00`
|
|
7452
|
+
);
|
|
7453
|
+
}
|
|
7454
|
+
const reasoningEffort = rawReasoningEffort ? rawReasoningEffort : void 0;
|
|
7417
7455
|
const rawEventsMode = readFlagValue(args, "--events");
|
|
7418
7456
|
const eventsMode = rawEventsMode === "jsonl" ? "jsonl" : void 0;
|
|
7419
7457
|
const inheritedRef = inheritedFromDialog ? parseDialogReference(inheritedFromDialog) : void 0;
|
|
@@ -7481,6 +7519,7 @@ function parseAgentRunArgs(args, options = {}) {
|
|
|
7481
7519
|
...blockedToolNames.length ? { blockedToolNames } : {},
|
|
7482
7520
|
...dodCommands.length ? { dodCommands } : {},
|
|
7483
7521
|
...typeof timeoutMs === "number" ? { timeoutMs } : {},
|
|
7522
|
+
...reasoningEffort ? { reasoningEffort } : {},
|
|
7484
7523
|
...queueFile ? { queueFile } : {}
|
|
7485
7524
|
};
|
|
7486
7525
|
}
|
|
@@ -9613,6 +9652,8 @@ async function assertAutoInstaboxPlacementAvailable(readEvidence, options) {
|
|
|
9613
9652
|
}
|
|
9614
9653
|
|
|
9615
9654
|
// packages/cli/client/cliAgentRunToolExecutors.ts
|
|
9655
|
+
var normalizeNonEmptyString = (value) => typeof value === "string" && value.trim() ? value.trim() : "";
|
|
9656
|
+
var resolveHostCallerAgentKey = (deps) => normalizeNonEmptyString(deps.currentAgentKey) || normalizeNonEmptyString(deps.source?.agentKey);
|
|
9616
9657
|
var noopOutput = { write: () => {
|
|
9617
9658
|
} };
|
|
9618
9659
|
var parseCallArgs = (call) => {
|
|
@@ -9699,6 +9740,11 @@ function buildRunStatusPayload(reconciled, deps, opts = {}) {
|
|
|
9699
9740
|
// 结构化失败分类 + 可重试性:编排者据此决策,不再肉读 logTail。
|
|
9700
9741
|
...reconciled.failureClass ? { failureClass: reconciled.failureClass } : {},
|
|
9701
9742
|
...typeof reconciled.retryable === "boolean" ? { retryable: reconciled.retryable } : {},
|
|
9743
|
+
// 只读观测:本 run 实际跑的模型 / 熔断升级标记 / 正文里明确的 review 结论。
|
|
9744
|
+
// 三者缺省即「未观察到」,不回填猜测值。
|
|
9745
|
+
...reconciled.model ? { model: reconciled.model } : {},
|
|
9746
|
+
...reconciled.escalated === true ? { escalated: true } : {},
|
|
9747
|
+
...reconciled.reviewVerdict ? { reviewVerdict: reconciled.reviewVerdict } : {},
|
|
9702
9748
|
// 日志落盘路径始终暴露:stalled/failed 且 dialogId 缺失(如 ephemeral)
|
|
9703
9749
|
// 时 logTail 只能靠它读,不能只留在进程内存。
|
|
9704
9750
|
...reconciled.logPath ? { logPath: reconciled.logPath } : {},
|
|
@@ -9849,6 +9895,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
|
|
|
9849
9895
|
} : {};
|
|
9850
9896
|
const rawAgentKey = typeof args.agentKey === "string" ? args.agentKey.trim() : "";
|
|
9851
9897
|
const agentKey = !rawAgentKey || rawAgentKey.toLowerCase() === "self" ? deps.currentAgentKey ?? rawAgentKey : rawAgentKey;
|
|
9898
|
+
const callerAgentKey = resolveHostCallerAgentKey(deps);
|
|
9852
9899
|
const contextFacts = resolveRunContextFacts(continuedRecord ? typeof continuedRecord === "object" ? continuedRecord : {} : void 0, agentKey);
|
|
9853
9900
|
const bindingMachineId = agentKey && deps.resolveAgentRuntimeBindingMachineId ? await deps.resolveAgentRuntimeBindingMachineId(agentKey) : void 0;
|
|
9854
9901
|
const localMachineId = deps.resolveLocalMachineId ? await deps.resolveLocalMachineId() : void 0;
|
|
@@ -9947,6 +9994,12 @@ function createCliStartAgentRunExecutor(deps = {}) {
|
|
|
9947
9994
|
if (args.instaboxAllowRemoteRelease === true) instaboxArgs.push("--instabox-allow-remote-release");
|
|
9948
9995
|
if (args.instaboxAllowPaid === true) instaboxArgs.push("--instabox-allow-paid");
|
|
9949
9996
|
}
|
|
9997
|
+
const dispatchReasoningEffort = await resolveRunDispatchReasoningEffort({
|
|
9998
|
+
deps,
|
|
9999
|
+
agentKey,
|
|
10000
|
+
difficulty: args.difficulty,
|
|
10001
|
+
model: selectedModel
|
|
10002
|
+
});
|
|
9950
10003
|
const rawArgs = [
|
|
9951
10004
|
"--agent",
|
|
9952
10005
|
agentKey,
|
|
@@ -9963,7 +10016,8 @@ function createCliStartAgentRunExecutor(deps = {}) {
|
|
|
9963
10016
|
// 的地方,成对不变式在 buildCliLocalRuntimeForwardArgs 内机械断言。
|
|
9964
10017
|
...buildCliLocalRuntimeForwardArgs(dispatch),
|
|
9965
10018
|
...instaboxArgs,
|
|
9966
|
-
...imagePaths.flatMap((path) => ["--image", path])
|
|
10019
|
+
...imagePaths.flatMap((path) => ["--image", path]),
|
|
10020
|
+
...dispatchReasoningEffort ? ["--reasoning-effort", dispatchReasoningEffort] : []
|
|
9967
10021
|
];
|
|
9968
10022
|
const agentName = await resolveAgentRunName(
|
|
9969
10023
|
agentKey,
|
|
@@ -10009,6 +10063,7 @@ function createCliStartAgentRunExecutor(deps = {}) {
|
|
|
10009
10063
|
cliEntrypointPath: deps.cliEntrypoint,
|
|
10010
10064
|
agentKey,
|
|
10011
10065
|
...agentName ? { agentName } : {},
|
|
10066
|
+
...callerAgentKey ? { callerAgentKey } : {},
|
|
10012
10067
|
...runTitle ? { title: runTitle } : {},
|
|
10013
10068
|
...batchId ? { batchId } : {},
|
|
10014
10069
|
...credentialGroup ? { credentialGroup } : {},
|
|
@@ -10101,6 +10156,28 @@ function createCliStartAgentRunExecutor(deps = {}) {
|
|
|
10101
10156
|
};
|
|
10102
10157
|
};
|
|
10103
10158
|
}
|
|
10159
|
+
async function resolveRunDispatchReasoningEffort(args) {
|
|
10160
|
+
try {
|
|
10161
|
+
const profile = await args.deps.resolveAgentReasoningProfile?.(args.agentKey);
|
|
10162
|
+
if (!profile) return void 0;
|
|
10163
|
+
let model = args.model;
|
|
10164
|
+
if (!model) {
|
|
10165
|
+
try {
|
|
10166
|
+
model = await args.deps.resolveAgentModel?.(args.agentKey);
|
|
10167
|
+
} catch {
|
|
10168
|
+
model = void 0;
|
|
10169
|
+
}
|
|
10170
|
+
}
|
|
10171
|
+
return resolveDispatchReasoningEffort({
|
|
10172
|
+
difficulty: typeof args.difficulty === "string" ? args.difficulty : void 0,
|
|
10173
|
+
provider: profile.provider,
|
|
10174
|
+
model,
|
|
10175
|
+
agentReasoningEffort: profile.reasoningEffort
|
|
10176
|
+
});
|
|
10177
|
+
} catch {
|
|
10178
|
+
return void 0;
|
|
10179
|
+
}
|
|
10180
|
+
}
|
|
10104
10181
|
function controlMessageLabels(queuedCount) {
|
|
10105
10182
|
const labels = agentRunCardLabels().controlMessage;
|
|
10106
10183
|
return { ...labels, queued: queuedCount === void 0 ? labels.queued : labels.enqueued(queuedCount) };
|
|
@@ -10112,6 +10189,12 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
|
|
|
10112
10189
|
const continuation = resolveLocalContinuation(reconciled, deps);
|
|
10113
10190
|
const agentKey = reconciled.agentKey;
|
|
10114
10191
|
const agentName = reconciled.agentName;
|
|
10192
|
+
const callerAgentKey = resolveHostCallerAgentKey(deps);
|
|
10193
|
+
const continuationReasoningEffort = await resolveRunDispatchReasoningEffort({
|
|
10194
|
+
deps,
|
|
10195
|
+
agentKey,
|
|
10196
|
+
difficulty: reconciled.selectionCheck?.difficulty
|
|
10197
|
+
});
|
|
10115
10198
|
const rawArgs = [
|
|
10116
10199
|
"--agent",
|
|
10117
10200
|
agentKey,
|
|
@@ -10123,6 +10206,7 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
|
|
|
10123
10206
|
"PLACEHOLDER",
|
|
10124
10207
|
"--bg",
|
|
10125
10208
|
...reconciled.ephemeral ? ["--ephemeral"] : [],
|
|
10209
|
+
...continuationReasoningEffort ? ["--reasoning-effort", continuationReasoningEffort] : [],
|
|
10126
10210
|
...continuation.rawArgs
|
|
10127
10211
|
];
|
|
10128
10212
|
const continuedFrom = reconciled.runId;
|
|
@@ -10134,11 +10218,15 @@ async function spawnContinuationRun(reconciled, message, userInput, deps) {
|
|
|
10134
10218
|
cliEntrypointPath: deps.cliEntrypoint,
|
|
10135
10219
|
agentKey,
|
|
10136
10220
|
...agentName ? { agentName } : {},
|
|
10221
|
+
...callerAgentKey ? { callerAgentKey } : {},
|
|
10137
10222
|
...continuedTitle ? { title: continuedTitle } : {},
|
|
10138
10223
|
...reconciled.batchId ? { batchId: reconciled.batchId } : {},
|
|
10139
10224
|
// 续跑也要在 running 阶段就带上目标对话,否则"开着那条对话的 TUI"看不到它。
|
|
10140
10225
|
...reconciled.dialogId ? { dialogId: reconciled.dialogId } : {},
|
|
10141
10226
|
...reconciled.parentDialogId ? { parentDialogId: reconciled.parentDialogId } : {},
|
|
10227
|
+
// 续跑继承原 run 的难度判定:不传的话第 2 次、第 N 次终态续跑都会丢掉
|
|
10228
|
+
// 原任务的 difficulty,自动联动推理档随之掉回 normal 档。
|
|
10229
|
+
...reconciled.selectionCheck ? { selectionCheck: reconciled.selectionCheck } : {},
|
|
10142
10230
|
// 续跑继承原 run 的凭证组(同一 agent),供并发扇出守卫判定。
|
|
10143
10231
|
...reconciled.credentialGroup ? { credentialGroup: reconciled.credentialGroup } : {},
|
|
10144
10232
|
cwd: continuation.cwd,
|
|
@@ -10725,7 +10813,8 @@ function pickAgentRunResolverDeps(args) {
|
|
|
10725
10813
|
...args.resolveAgentModel ? { resolveAgentModel: args.resolveAgentModel } : {},
|
|
10726
10814
|
...args.resolveAgentDisplayName ? { resolveAgentDisplayName: args.resolveAgentDisplayName } : {},
|
|
10727
10815
|
...args.resolveAgentRuntimeBindingMachineId ? { resolveAgentRuntimeBindingMachineId: args.resolveAgentRuntimeBindingMachineId } : {},
|
|
10728
|
-
...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {}
|
|
10816
|
+
...args.resolveLocalMachineId ? { resolveLocalMachineId: args.resolveLocalMachineId } : {},
|
|
10817
|
+
...args.resolveAgentReasoningProfile ? { resolveAgentReasoningProfile: args.resolveAgentReasoningProfile } : {}
|
|
10729
10818
|
};
|
|
10730
10819
|
}
|
|
10731
10820
|
function buildCliWorkspaceToolExecutors(args) {
|
|
@@ -10928,6 +11017,11 @@ function buildLocalToolExecutors(args) {
|
|
|
10928
11017
|
}),
|
|
10929
11018
|
controlAgentRun: createCliControlAgentRunExecutor({
|
|
10930
11019
|
source: { parentDialogId: args.sourceParentDialogId, agentKey: args.agentKey },
|
|
11020
|
+
// 终态续跑(append)要按原 run 的 difficulty 重新算档,因此与 startAgentRun
|
|
11021
|
+
// 共用同一套可信解析器:漏转发会让续跑静默掉回记录默认档。
|
|
11022
|
+
...pickAgentRunResolverDeps(args),
|
|
11023
|
+
// 派发者身份同样只由宿主注入(controlAgentRun 触发的续跑也要落 callerAgentKey)。
|
|
11024
|
+
currentAgentKey: args.agentKey,
|
|
10931
11025
|
shellApprovalHostForAgent: args.shellApprovalHostForAgent,
|
|
10932
11026
|
mcpApprovalHostForAgent: args.mcpApprovalHostForAgent,
|
|
10933
11027
|
cwd: args.workspaceRoot,
|
|
@@ -12537,7 +12631,7 @@ async function createLocalDockerWorkload(args) {
|
|
|
12537
12631
|
}
|
|
12538
12632
|
const createLifecycle = args.createLifecycle ?? (async () => {
|
|
12539
12633
|
const [{ DockerWorkloadLifecycle, createDockerBindingAuthorizer }, accounts] = await Promise.all([
|
|
12540
|
-
import("./workloadLifecycle-
|
|
12634
|
+
import("./workloadLifecycle-DYX5ZMAT.js"),
|
|
12541
12635
|
import("./accountResolver-NGICIMEE.js")
|
|
12542
12636
|
]);
|
|
12543
12637
|
const resolveAccount = args.resolveAccount ?? accounts.createDockerAccountResolver({
|
|
@@ -15250,6 +15344,24 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
15250
15344
|
return void 0;
|
|
15251
15345
|
}
|
|
15252
15346
|
};
|
|
15347
|
+
const resolveAgentReasoningProfile = async (agentRef) => {
|
|
15348
|
+
try {
|
|
15349
|
+
const record = await readAgentFromStore({
|
|
15350
|
+
agentRef,
|
|
15351
|
+
store: await getOrCreateSharedStore(deps),
|
|
15352
|
+
userId
|
|
15353
|
+
});
|
|
15354
|
+
if (!record) return void 0;
|
|
15355
|
+
const provider = typeof record.provider === "string" ? record.provider.trim() : "";
|
|
15356
|
+
const reasoningEffort = typeof record.reasoning_effort === "string" ? record.reasoning_effort.trim() : "";
|
|
15357
|
+
return {
|
|
15358
|
+
...provider ? { provider } : {},
|
|
15359
|
+
...reasoningEffort ? { reasoningEffort } : {}
|
|
15360
|
+
};
|
|
15361
|
+
} catch {
|
|
15362
|
+
return void 0;
|
|
15363
|
+
}
|
|
15364
|
+
};
|
|
15253
15365
|
const resolveAgentDisplayName = async (agentRef) => {
|
|
15254
15366
|
try {
|
|
15255
15367
|
const record = await readAgentFromStore({
|
|
@@ -15385,7 +15497,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
15385
15497
|
emitRunIsolationNotice(fact, { runId });
|
|
15386
15498
|
try {
|
|
15387
15499
|
const { writeFileSync: writeFileSync4, mkdirSync: mkdirSync5 } = await import("node:fs");
|
|
15388
|
-
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-
|
|
15500
|
+
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
|
|
15389
15501
|
recordLocalRunExecutionIsolation({
|
|
15390
15502
|
runId,
|
|
15391
15503
|
runsDir: resolveRunsDir2(deps.env),
|
|
@@ -15410,7 +15522,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
15410
15522
|
dockerWorkloadReleased = true;
|
|
15411
15523
|
dockerWorkloadLoad = null;
|
|
15412
15524
|
if (loaded) {
|
|
15413
|
-
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-
|
|
15525
|
+
const { resolveRunsDir: resolveRunsDir2 } = await import("./agentRunControl-KNNDEEDI.js");
|
|
15414
15526
|
const exportRunDiff = deps.exportDockerRunDiffArtifact ?? exportDockerRunDiffArtifact;
|
|
15415
15527
|
const warn = (message) => process.stderr.write(`[nolo] ${message}
|
|
15416
15528
|
`);
|
|
@@ -15533,6 +15645,7 @@ function createCliLocalRuntimeAdapter(deps) {
|
|
|
15533
15645
|
return !!record && resolveAgentImageInputSupport(await resolveLiveImageSupport({ ...record, hasVision: record.hasVision ?? false }));
|
|
15534
15646
|
},
|
|
15535
15647
|
resolveAgentModel,
|
|
15648
|
+
resolveAgentReasoningProfile,
|
|
15536
15649
|
dialogExistsForCurrentUser: async (dialogId) => {
|
|
15537
15650
|
const store = await getOrCreateSharedStore(deps);
|
|
15538
15651
|
const record = await store.read(`dialog-${userId}-${dialogId}`);
|