nolo-cli 0.251.0-alpha.1 → 0.252.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-55PHWQWB.js → _executeModel-D6G3B45S.js} +44 -44
- package/{action-WZTKEF5H.js → action-QQOQ2LP3.js} +3 -3
- package/{addContentAction-LBVAQUF7.js → addContentAction-MB22YIDV.js} +6 -6
- package/{addDialogAgentAction-6WAUSUSZ.js → addDialogAgentAction-KNTBVVGY.js} +5 -5
- package/{agentDeleteCommand-KEO3KDK3.js → agentDeleteCommand-YCWDGJSF.js} +66 -65
- package/{agentEmailCommands-RWJQQRNT.js → agentEmailCommands-DTWD5FWC.js} +66 -65
- package/{agentListCommands-L3TLPLNH.js → agentListCommands-JTOONLYL.js} +224 -37
- package/{agentMachineCommands-EZWWXWDH.js → agentMachineCommands-25X7OTLQ.js} +29 -27
- package/{agentProviderCommands-C5T7C5KZ.js → agentProviderCommands-QLTABYR7.js} +2 -2
- package/{agentRecordCommands-7W2CGHJJ.js → agentRecordCommands-SXE3WV2X.js} +65 -64
- package/{agentRunCommand-POL6B6BO.js → agentRunCommand-QSIED54S.js} +65 -64
- package/{agentRunControl-FKSXBUAF.js → agentRunControl-KNNDEEDI.js} +8 -6
- package/{agentRuntimeLocal-WSHWNIMF.js → agentRuntimeLocal-HVJJMB4W.js} +24 -23
- package/{agentSlice-3G2YLTA4.js → agentSlice-NBUJJVRI.js} +6 -6
- package/{appDeleteCommands-DZZQCVYH.js → appDeleteCommands-YU6TT6VN.js} +31 -29
- package/{appDeployCommands-NJJBVNH5.js → appDeployCommands-4DEIX7YP.js} +31 -29
- package/{appDeployStatusCommands-GBOAFEYG.js → appDeployStatusCommands-3VKS6GBQ.js} +31 -29
- package/{appGetCommands-GOOKYMKO.js → appGetCommands-22FNNROT.js} +31 -29
- package/{appListCommands-OBCGUG3S.js → appListCommands-FVGMLHVU.js} +31 -29
- package/{authCommand-77CRN332.js → authCommand-5DC3ES4Q.js} +12 -12
- package/{chromeOpsCommands-6RLEBBJJ.js → chromeOpsCommands-AA555ANS.js} +1 -1
- package/{chunk-MAA42MMV.js → chunk-2FZVXOFX.js} +4 -4
- package/chunk-2GAUJDA5.js +594 -0
- package/{chunk-ESN4WNWU.js → chunk-2JHGUL5K.js} +2 -2
- package/{chunk-222CJNC2.js → chunk-2LANL4B5.js} +3 -3
- package/{chunk-PKMDYRAM.js → chunk-2PB653F5.js} +171 -237
- package/{chunk-GMWZRXRM.js → chunk-3272HU62.js} +1 -1
- package/{chunk-3ZWJVKFB.js → chunk-3N3JPQBQ.js} +82 -38
- package/{chunk-LXKK7QFI.js → chunk-4HAOOY6G.js} +53 -23
- package/{chunk-ZQ6K57FJ.js → chunk-4YPH5KRA.js} +1 -1
- package/{chunk-T4V6C3J3.js → chunk-52M4RYVP.js} +1 -1
- package/{chunk-6UNJ6JGR.js → chunk-5IN2NBDX.js} +4 -4
- 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-N3SEV3CG.js → chunk-7ZOVFB2H.js} +79 -30
- package/{chunk-UR4ZMRV3.js → chunk-A5F6DYP2.js} +1 -1
- package/{chunk-FAFDIQJG.js → chunk-A6VIMCWI.js} +3 -3
- package/{chunk-SX6AWTNK.js → chunk-BZLGPM5B.js} +3 -3
- package/{chunk-LTVEOOZL.js → chunk-CIAV4WK2.js} +14 -1
- package/{chunk-IFJ6OTI6.js → chunk-CO2NXG2J.js} +32 -10
- 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-PLS2MJVW.js → chunk-DU3DJYVA.js} +4 -4
- package/{chunk-MTS5DCL2.js → chunk-EG3JTV7H.js} +2 -2
- package/{chunk-6ASGEP5D.js → chunk-EJQE5HB7.js} +1 -1
- package/{chunk-CD64YXRB.js → chunk-F6Q64KRV.js} +1 -1
- package/{chunk-L5HV76QT.js → chunk-FRC2DNTN.js} +1 -1
- package/{chunk-W3HSD32M.js → chunk-FXEPZKNJ.js} +2 -2
- package/{chunk-D35TOEMM.js → chunk-FZI2P64R.js} +137 -53
- package/{chunk-WWTSEBDF.js → chunk-GIXWVN2W.js} +1 -1
- package/{chunk-CUYFRVJF.js → chunk-GO7UC5VH.js} +5 -5
- package/{chunk-KZVRPCOR.js → chunk-GVH2IP2M.js} +4 -4
- package/{chunk-KGOBJAWC.js → chunk-GWS2X7TX.js} +206 -93
- package/{chunk-KHVTT4WW.js → chunk-HF4C5WIU.js} +81 -542
- package/{chunk-Q5KZ6F55.js → chunk-HMREADP6.js} +19 -17
- package/{chunk-X337N4D6.js → chunk-ITCOQAHS.js} +3 -3
- package/{chunk-BQ4CZEVZ.js → chunk-ITMBFT35.js} +1 -1
- package/chunk-IVK2KT3H.js +209 -0
- package/{chunk-IXAGRTAR.js → chunk-JAYPSNGR.js} +1 -1
- package/{chunk-LOXR4TQN.js → chunk-JF5QT3YY.js} +2 -2
- package/{chunk-QLGL43SI.js → chunk-JKALGWDL.js} +2 -2
- package/{chunk-PQ63BDV3.js → chunk-JPXACKSW.js} +9 -1
- package/{chunk-HS7MLR74.js → chunk-KZ4A7EIV.js} +3 -5
- package/{chunk-3KWJPTVP.js → chunk-LAQC5FAP.js} +4 -4
- package/{chunk-NTNX77FI.js → chunk-LNIA5JVX.js} +6 -6
- package/{chunk-QJTZ76CP.js → chunk-LS5KAVFQ.js} +1 -0
- package/{chunk-K26XPZRB.js → chunk-LVZVSLKO.js} +29 -9
- package/{chunk-ZSRR6HCH.js → chunk-N2ZAY2DK.js} +1 -1
- package/{chunk-MTM4LRVG.js → chunk-NNUIVAC2.js} +1 -1
- package/{chunk-HD5EKSLF.js → chunk-NPUHKEOB.js} +2 -2
- package/{chunk-OARYOLF3.js → chunk-O6LPLIRS.js} +11 -11
- 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-AS6L5KSD.js → chunk-P4R5KXU7.js} +2 -2
- package/{chunk-K5CIMK3R.js → chunk-P6HMEKLL.js} +114 -56
- package/{chunk-VTHWBTRE.js → chunk-PENRYZ4D.js} +1 -1
- package/{chunk-WZPG63Q4.js → chunk-PIVTQRX6.js} +43 -13
- package/{chunk-KJDN2YRH.js → chunk-QMKWSKWA.js} +4 -4
- package/{chunk-XC5RPSXK.js → chunk-QV32GSVO.js} +2 -2
- package/{chunk-XJSEST7D.js → chunk-SMCKJJXI.js} +2 -2
- package/{chunk-KRAPKTAS.js → chunk-SMZFWEMX.js} +1 -1
- package/{chunk-43VT5PLM.js → chunk-T4VVQHSE.js} +1 -1
- package/{chunk-W2N4OAKM.js → chunk-TDI7ARZO.js} +3 -3
- package/{chunk-TGKAUEV3.js → chunk-TDLZA6LJ.js} +13 -10
- package/{chunk-LMMRWGGJ.js → chunk-TTUIM3PJ.js} +2 -2
- package/{chunk-5IKKSJYX.js → chunk-TTWNTFTO.js} +35 -2
- package/{chunk-ZM5AZTQG.js → chunk-U7BP25PE.js} +18 -6
- package/{chunk-X3OZ655T.js → chunk-UI3Z3HDK.js} +1 -1
- package/{chunk-GX6DITLQ.js → chunk-UUCYUN6Y.js} +1 -1
- package/{chunk-U2OWDHDE.js → chunk-VH7AQEEF.js} +2 -2
- package/{chunk-ZKKJZBNO.js → chunk-WAOHK3NJ.js} +9 -9
- package/{chunk-2FK2KZSL.js → chunk-WLHUANWZ.js} +1 -1
- package/{chunk-JUYI2D7J.js → chunk-WNIBQBOR.js} +1 -1
- package/{chunk-SLUZ6FBJ.js → chunk-XBCADGK2.js} +1 -1
- package/{chunk-6XVPMGXK.js → chunk-YB5D2GK4.js} +9 -3
- package/{chunk-QJ5YDTEF.js → chunk-YQYYYATY.js} +42 -24
- package/{chunk-WQDTSK5U.js → chunk-ZMFA2TLE.js} +1 -1
- package/{chunk-CFDOIIOZ.js → chunk-ZMXO5G3E.js} +29 -23
- package/{chunk-A55E2OCP.js → chunk-ZNOXY73P.js} +632 -124
- package/{cliAgentConfigHelpers-N6LTB7UY.js → cliAgentConfigHelpers-FKBPFPKR.js} +6 -6
- package/{cliLocalAgentRecordReader-NFNGYOOW.js → cliLocalAgentRecordReader-DWU3LBO2.js} +28 -27
- package/{commandRegistry-OM5DU4DS.js → commandRegistry-7FVATZS2.js} +70 -70
- package/{contentThunks-7URM43ET.js → contentThunks-25XCB7VY.js} +18 -18
- package/{cooldownCommands-JEEV75B7.js → cooldownCommands-PT5L4LNB.js} +3 -3
- package/{createAgentAutomationAction-GGEXIKMC.js → createAgentAutomationAction-FC5RI2LW.js} +18 -18
- package/{createDialogAction-IXXEMFRQ.js → createDialogAction-IL3ISSQQ.js} +19 -19
- package/{createPageAction-IXIVLIOO.js → createPageAction-RVYBEYZV.js} +19 -19
- package/{db-J5KE7XRI.js → db-JMGVD4TB.js} +2 -1
- package/{dbSlice-IE4ADINL.js → dbSlice-WG3ZG6PZ.js} +5 -5
- package/{deleteFile-ZCQESEEQ.js → deleteFile-4TIG54YN.js} +3 -3
- package/{dialogCommands-RPBHOZB6.js → dialogCommands-VUJISJZF.js} +33 -31
- package/{dialogNotifyCommand-ECKI5MMA.js → dialogNotifyCommand-JKYVSR6K.js} +7 -7
- package/{dialogSlice-5FQB2TNN.js → dialogSlice-UMP55UAW.js} +16 -16
- package/{docCreateCommands-XJ2X57DW.js → docCreateCommands-S46F6GKP.js} +30 -28
- package/{docDeleteCommands-45WGFFEB.js → docDeleteCommands-LJG4NK6J.js} +31 -29
- package/{docReadCommands-LRRVDS46.js → docReadCommands-YPAYGHNM.js} +30 -28
- package/{docStore-SUAVM24F.js → docStore-VK3MVJ5Q.js} +6 -6
- package/{docUpdateCommands-QUYX6BVR.js → docUpdateCommands-MPTM6267.js} +30 -28
- package/{getPricing-FCHYVRJU.js → getPricing-5BLZRPTM.js} +3 -3
- package/{handleSendMessageAction-FDIWBQUB.js → handleSendMessageAction-VPKVNKBU.js} +33 -33
- package/{hostCredentialCreate-CEXQHYT4.js → hostCredentialCreate-K56HWPNY.js} +65 -64
- package/index.js +8 -8
- package/{localDialogRead-USDZXKIL.js → localDialogRead-NXILOV3T.js} +1 -1
- package/{localRuntimeAdapter-O3JBRK6S.js → localRuntimeAdapter-KVU72FWT.js} +64 -63
- package/{machineCommands-I3YA7TNC.js → machineCommands-C3O5RKNJ.js} +65 -64
- package/{machineWsRunDispatch-E5CIE2OJ.js → machineWsRunDispatch-ZLART7ZA.js} +65 -64
- package/{mcpLocalAuthorizeCommand-K5J2VMG6.js → mcpLocalAuthorizeCommand-LO7E4VQ5.js} +6 -6
- package/{memberThunks-T7EAZE6A.js → memberThunks-7DNR6DRD.js} +7 -7
- package/{models-EP7VG6N2.js → models-ZX2BYIMB.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-A7E65AZO.js → projectArchive-UBJFYRL7.js} +19 -19
- package/{providerPresetApply-4H7YP5D7.js → providerPresetApply-NTJUINI6.js} +35 -16
- package/{providerRegistry-F3UPOTIY.js → providerRegistry-W45SLUV6.js} +5 -5
- package/{read-BRZHXUJ6.js → read-Z2JOK6F6.js} +3 -3
- package/{readDocTool-N7RVFQEE.js → readDocTool-3QYSVWBT.js} +1 -1
- package/{readlineWorkspace-2O65NBFG.js → readlineWorkspace-TSIYF7C6.js} +610 -206
- package/{removeDialogAgentAction-GRT72HLK.js → removeDialogAgentAction-LRKDU4RI.js} +7 -7
- package/{runAgentClientLoop-NWCZIXCG.js → runAgentClientLoop-YAHGOWXN.js} +41 -41
- package/{runtimeDoctorCommands-26HYHFTK.js → runtimeDoctorCommands-QGZSKNSE.js} +5 -5
- package/{secretCommands-XR72SHLK.js → secretCommands-BXAQEOES.js} +2 -2
- package/{setDialogExtraReferencesAction-CBG3X46B.js → setDialogExtraReferencesAction-KIITOCFP.js} +6 -6
- package/{setPrimaryDialogAgentAction-EWTDZOAX.js → setPrimaryDialogAgentAction-Y36PKFFB.js} +7 -7
- package/{settingThunks-X4PT66J2.js → settingThunks-YQNG5L6K.js} +5 -5
- package/{spaceCommands-EVSNTGRS.js → spaceCommands-P644AAZZ.js} +29 -27
- package/{streamAgentChatTurn-SYP3OEM5.js → streamAgentChatTurn-5CSYAUAY.js} +54 -50
- package/{switchDialogAgentAction-YHPZ7K6E.js → switchDialogAgentAction-U2VLPPVO.js} +5 -5
- package/{tools-2AO2SK4L.js → tools-UZ3CDIR2.js} +34 -34
- 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-53XCCDK2.js} +18 -18
- 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-CDIRKCPD.js → chunk-6HL6E7ZD.js} +152 -152
- package/{dialogUsageCommand-TBIA2QAF.js → dialogUsageCommand-IHAXS7DW.js} +3 -3
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveServerUrl,
|
|
34
34
|
validateInstaboxWorkspaceSelection,
|
|
35
35
|
writeUsage
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GWS2X7TX.js";
|
|
37
37
|
import {
|
|
38
38
|
boxGlyphs,
|
|
39
39
|
displayWidth,
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
stripAnsi,
|
|
44
44
|
tokenizeAnsiLine,
|
|
45
45
|
visibleWidth
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-QV32GSVO.js";
|
|
47
47
|
import {
|
|
48
48
|
clearCredentialAvailability,
|
|
49
49
|
readEffectiveCredentialEntry
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GIXWVN2W.js";
|
|
51
51
|
import {
|
|
52
52
|
rankMemoryCandidates,
|
|
53
53
|
recallMemoryVNextLocal
|
|
@@ -89,11 +89,11 @@ import {
|
|
|
89
89
|
} from "./chunk-BMQ2MJUK.js";
|
|
90
90
|
import {
|
|
91
91
|
resolveCliLocalRuntimeKeyCapability
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-3N3JPQBQ.js";
|
|
93
93
|
import {
|
|
94
94
|
parseUiCard,
|
|
95
95
|
uiCardFallback
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-WAOHK3NJ.js";
|
|
97
97
|
import {
|
|
98
98
|
isGatewayHttpStatus
|
|
99
99
|
} from "./chunk-NF64D32W.js";
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
loadOwnerItemsFromDb,
|
|
105
105
|
parseUiAskChoiceContent,
|
|
106
106
|
resolveAgentMemoryPolicy
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-ITCOQAHS.js";
|
|
108
108
|
import {
|
|
109
109
|
API_REPORTED_COST_MULTIPLIER,
|
|
110
110
|
estimateMessagesTokens,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
resolveAgentContextWindow,
|
|
114
114
|
resolveOccupancy,
|
|
115
115
|
resolveOccupancyWindow
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-ZNOXY73P.js";
|
|
117
117
|
import {
|
|
118
118
|
getDefaultCliLocalRuntimeDb
|
|
119
119
|
} from "./chunk-7RYODZDD.js";
|
|
@@ -123,7 +123,11 @@ import {
|
|
|
123
123
|
import {
|
|
124
124
|
readDbRecord,
|
|
125
125
|
resolveAgentRecordFromHybridStore
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-QMKWSKWA.js";
|
|
127
|
+
import {
|
|
128
|
+
resolveEffectiveReasoningEffortOverride,
|
|
129
|
+
withReasoningEffortOverride
|
|
130
|
+
} from "./chunk-2GAUJDA5.js";
|
|
127
131
|
import {
|
|
128
132
|
isTransientFetchError
|
|
129
133
|
} from "./chunk-DXWGFL2Z.js";
|
|
@@ -147,7 +151,7 @@ import {
|
|
|
147
151
|
settleRunTerminalAuthoritatively,
|
|
148
152
|
spawnLocalBackgroundRun,
|
|
149
153
|
transitionRunToTerminal
|
|
150
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-7XO73H5X.js";
|
|
151
155
|
import {
|
|
152
156
|
formatAgentListCard,
|
|
153
157
|
formatFinishedRunCard,
|
|
@@ -178,13 +182,13 @@ import {
|
|
|
178
182
|
readActionGate,
|
|
179
183
|
readAgentsMdLayerFromDisk,
|
|
180
184
|
registerDialogOwner
|
|
181
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-2PB653F5.js";
|
|
182
186
|
import {
|
|
183
187
|
resolveAgentRuntimeConfigFromRecord
|
|
184
|
-
} from "./chunk-
|
|
188
|
+
} from "./chunk-TTUIM3PJ.js";
|
|
185
189
|
import {
|
|
186
190
|
resolveAgentImageInputSupport
|
|
187
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-BZLGPM5B.js";
|
|
188
192
|
import {
|
|
189
193
|
createThinkParserState,
|
|
190
194
|
flushThinkParser,
|
|
@@ -196,7 +200,7 @@ import {
|
|
|
196
200
|
isQuotaExhaustedText,
|
|
197
201
|
resolveAvailabilityAction,
|
|
198
202
|
resolveCredentialKeyWithFallback
|
|
199
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-LS5KAVFQ.js";
|
|
200
204
|
import {
|
|
201
205
|
isContextOverflowText
|
|
202
206
|
} from "./chunk-TLE77UJ5.js";
|
|
@@ -205,12 +209,12 @@ import {
|
|
|
205
209
|
ATTACHMENT_PART_VERSION,
|
|
206
210
|
describeAttachmentForModel,
|
|
207
211
|
normalizeAttachmentPart
|
|
208
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-CIAV4WK2.js";
|
|
209
213
|
import {
|
|
210
214
|
findCodexOAuthPinnedContextWindow,
|
|
211
215
|
normalizeUsage,
|
|
212
216
|
readCacheReadInputTokensOrNull
|
|
213
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-2FZVXOFX.js";
|
|
214
218
|
import {
|
|
215
219
|
isOAuthApiKeyRef
|
|
216
220
|
} from "./chunk-UKZX3NHN.js";
|
|
@@ -255,7 +259,7 @@ import {
|
|
|
255
259
|
import {
|
|
256
260
|
isBuiltinNoloAgentRef,
|
|
257
261
|
resolveLocalUserId
|
|
258
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-OMIXG25B.js";
|
|
259
263
|
import {
|
|
260
264
|
isLocalCliAgentKey
|
|
261
265
|
} from "./chunk-BR3GT6MR.js";
|
|
@@ -295,22 +299,22 @@ import {
|
|
|
295
299
|
toolIcon,
|
|
296
300
|
toolLabel,
|
|
297
301
|
toolLabelVariants
|
|
298
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-5UYDG6HP.js";
|
|
299
303
|
import {
|
|
300
304
|
isAntigravityOAuthAgent
|
|
301
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-6SOWMEAY.js";
|
|
302
306
|
import {
|
|
303
307
|
toErrorMessage
|
|
304
308
|
} from "./chunk-HNMXYYJR.js";
|
|
305
309
|
import {
|
|
306
310
|
resolveClientVersion
|
|
307
|
-
} from "./chunk-
|
|
311
|
+
} from "./chunk-LVZVSLKO.js";
|
|
308
312
|
import {
|
|
309
313
|
asTrimmedString
|
|
310
314
|
} from "./chunk-3EUW3WEO.js";
|
|
311
315
|
import {
|
|
312
316
|
findModelConfig
|
|
313
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-OKH74FML.js";
|
|
314
318
|
import {
|
|
315
319
|
asOptionalTrimmedString
|
|
316
320
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -318,7 +322,7 @@ import {
|
|
|
318
322
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
319
323
|
NOLO_CLIENT_VERSION_HEADER,
|
|
320
324
|
buildClientVersionUpgradeMessage
|
|
321
|
-
} from "./chunk-
|
|
325
|
+
} from "./chunk-JPXACKSW.js";
|
|
322
326
|
import {
|
|
323
327
|
asTrimmedLowercaseString
|
|
324
328
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1623,6 +1627,7 @@ function setActiveThemeMode(mode, options) {
|
|
|
1623
1627
|
activeThemeMode = mode;
|
|
1624
1628
|
if (mode === "terminal") {
|
|
1625
1629
|
resolvedBrightness = null;
|
|
1630
|
+
trustedCanvasBrightness = null;
|
|
1626
1631
|
terminalModeExplicit = options?.explicit === true;
|
|
1627
1632
|
} else {
|
|
1628
1633
|
terminalModeExplicit = false;
|
|
@@ -1792,13 +1797,16 @@ function pushToContrast(rawHex, canvasHex, target, floor) {
|
|
|
1792
1797
|
}
|
|
1793
1798
|
return best;
|
|
1794
1799
|
}
|
|
1800
|
+
function hasTrustedCanvasEvidence(env) {
|
|
1801
|
+
return activeTerminalBaseHex !== null || trustedCanvasBrightness !== null || detectColorFgBgBrightness(env) !== null;
|
|
1802
|
+
}
|
|
1795
1803
|
function shouldUseTruecolorTokens(env) {
|
|
1796
1804
|
if (!supportsTruecolor(env)) return false;
|
|
1797
1805
|
const explicit = (env.NOLO_TUI_THEME ?? "").trim().toLowerCase();
|
|
1798
1806
|
if (explicit === "terminal" || explicit === "ansi") return false;
|
|
1799
1807
|
if (resolveTuiThemeMode(env) !== "terminal") return true;
|
|
1800
1808
|
if (terminalModeExplicit) return false;
|
|
1801
|
-
return
|
|
1809
|
+
return hasTrustedCanvasEvidence(env);
|
|
1802
1810
|
}
|
|
1803
1811
|
function themeSgrParams(token, env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1804
1812
|
const palette = THEME_PALETTES[activeThemeName] ?? THEME_PALETTES.nature;
|
|
@@ -1826,7 +1834,9 @@ var TERMINAL_BASE = {
|
|
|
1826
1834
|
light: "FFFFFF"
|
|
1827
1835
|
};
|
|
1828
1836
|
var activeTerminalBaseHex = null;
|
|
1837
|
+
var trustedCanvasBrightness = null;
|
|
1829
1838
|
function setActiveTerminalBaseHex(hex) {
|
|
1839
|
+
trustedCanvasBrightness = null;
|
|
1830
1840
|
if (hex === null) {
|
|
1831
1841
|
activeTerminalBaseHex = null;
|
|
1832
1842
|
return;
|
|
@@ -1840,10 +1850,14 @@ function resetWorkspaceThemeState() {
|
|
|
1840
1850
|
}
|
|
1841
1851
|
function applyDetectedBackground(detected) {
|
|
1842
1852
|
const normalizedHex = detected.hex.replace(/^#/, "").toUpperCase();
|
|
1853
|
+
const validHex = Boolean(readHexChannels(normalizedHex));
|
|
1854
|
+
const nextTrustedCanvas = !validHex && detected.trustedCanvas === true ? detected.brightness : null;
|
|
1843
1855
|
const hexChanged = normalizedHex !== "" && normalizedHex !== activeTerminalBaseHex;
|
|
1844
|
-
const
|
|
1856
|
+
const trustedChanged = nextTrustedCanvas !== trustedCanvasBrightness;
|
|
1857
|
+
const changed = detected.brightness !== resolvedBrightness || hexChanged || trustedChanged;
|
|
1845
1858
|
resolvedBrightness = detected.brightness;
|
|
1846
1859
|
setActiveTerminalBaseHex(detected.hex);
|
|
1860
|
+
trustedCanvasBrightness = nextTrustedCanvas;
|
|
1847
1861
|
return changed;
|
|
1848
1862
|
}
|
|
1849
1863
|
function resolveTerminalBaseHex(brightness) {
|
|
@@ -1963,12 +1977,12 @@ function surfaceBackgroundSequence(env = process.env, brightness = resolveTuiBri
|
|
|
1963
1977
|
return hexToBgSgr((SURFACE_HEX[activeThemeName] ?? SURFACE_HEX.trail)[brightness]);
|
|
1964
1978
|
}
|
|
1965
1979
|
function resolveSurfaceWashFallback(env) {
|
|
1966
|
-
if (!supportsTruecolor(env) ||
|
|
1980
|
+
if (!supportsTruecolor(env) || !hasTrustedCanvasEvidence(env) && resolveTuiThemeMode(env) === "terminal") {
|
|
1967
1981
|
return "\x1B[100m";
|
|
1968
1982
|
}
|
|
1969
1983
|
return null;
|
|
1970
1984
|
}
|
|
1971
|
-
function
|
|
1985
|
+
function neutralSurfaceBackgroundSequence(env, brightness, darkWeight, lightWeight) {
|
|
1972
1986
|
const fallback = resolveSurfaceWashFallback(env);
|
|
1973
1987
|
if (fallback !== null) return fallback;
|
|
1974
1988
|
const base = resolveTerminalBaseHex(brightness);
|
|
@@ -1976,9 +1990,15 @@ function composerSurfaceBackgroundSequence(env = process.env, brightness = resol
|
|
|
1976
1990
|
const baseLuma = channels ? (0.299 * channels[0] + 0.587 * channels[1] + 0.114 * channels[2]) / 255 : null;
|
|
1977
1991
|
const darkCanvas = baseLuma === null ? brightness === "dark" : baseLuma < 0.5;
|
|
1978
1992
|
const tint = darkCanvas ? "FFFFFF" : "000000";
|
|
1979
|
-
const weight = darkCanvas ?
|
|
1993
|
+
const weight = darkCanvas ? darkWeight : lightWeight;
|
|
1980
1994
|
return hexToBgSgr(blendHex(tint, base, weight));
|
|
1981
1995
|
}
|
|
1996
|
+
function composerSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1997
|
+
return neutralSurfaceBackgroundSequence(env, brightness, 0.1, 0.07);
|
|
1998
|
+
}
|
|
1999
|
+
function userBubbleSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
2000
|
+
return neutralSurfaceBackgroundSequence(env, brightness, 0.13, 0.08);
|
|
2001
|
+
}
|
|
1982
2002
|
function userSurfaceBackgroundSequence(env = process.env, brightness = resolveTuiBrightness(env)) {
|
|
1983
2003
|
const fallback = resolveSurfaceWashFallback(env);
|
|
1984
2004
|
if (fallback !== null) return fallback;
|
|
@@ -1995,7 +2015,8 @@ function tuiRenderThemeFingerprint(colorEnabled, env = process.env) {
|
|
|
1995
2015
|
const mode = resolveTuiThemeMode(env);
|
|
1996
2016
|
const colorKind = !colorEnabled ? "plain" : shouldUseTruecolorTokens(env) ? "truecolor" : "ansi";
|
|
1997
2017
|
const surface = colorEnabled ? userSurfaceBackgroundSequence(env) : "";
|
|
1998
|
-
|
|
2018
|
+
const bubbleSurface = colorEnabled ? userBubbleSurfaceBackgroundSequence(env) : "";
|
|
2019
|
+
return `${activeThemeName}|${mode}|${colorKind}|${resolveTuiBrightness(env)}|${activeTerminalBaseHex ?? ""}|${env.COLORFGBG ?? ""}|${surface}|${bubbleSurface}`;
|
|
1999
2020
|
}
|
|
2000
2021
|
function classifyDiffLine(line) {
|
|
2001
2022
|
if (line.startsWith("@@")) return "hunk";
|
|
@@ -13066,7 +13087,7 @@ function isBalanceExhaustedError(error) {
|
|
|
13066
13087
|
|
|
13067
13088
|
// packages/cli/client/agentRun.ts
|
|
13068
13089
|
async function loadRunLocalAgentTurn() {
|
|
13069
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
13090
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-HVJJMB4W.js");
|
|
13070
13091
|
return runLocalAgentTurn;
|
|
13071
13092
|
}
|
|
13072
13093
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -13205,6 +13226,22 @@ function wrapLoadAgentConfigWithModelOverride(adapter, targetAgentKey, override)
|
|
|
13205
13226
|
}
|
|
13206
13227
|
};
|
|
13207
13228
|
}
|
|
13229
|
+
function wrapLoadAgentConfigWithReasoningEffortOverride(adapter, targetAgentKey, override) {
|
|
13230
|
+
return {
|
|
13231
|
+
...adapter,
|
|
13232
|
+
loadAgentConfig: async (agentRef) => {
|
|
13233
|
+
const config = await adapter.loadAgentConfig(agentRef);
|
|
13234
|
+
if (!config || agentRef !== targetAgentKey) return config;
|
|
13235
|
+
const effective = resolveEffectiveReasoningEffortOverride({
|
|
13236
|
+
override,
|
|
13237
|
+
provider: config.provider,
|
|
13238
|
+
model: config.model,
|
|
13239
|
+
recordReasoningEffort: config.reasoning_effort
|
|
13240
|
+
});
|
|
13241
|
+
return withReasoningEffortOverride(config, effective);
|
|
13242
|
+
}
|
|
13243
|
+
};
|
|
13244
|
+
}
|
|
13208
13245
|
var oauthChannelSkipReportedAgentKeys = /* @__PURE__ */ new Set();
|
|
13209
13246
|
function resolveOAuthChannelOwnerSkip(agentConfig, options) {
|
|
13210
13247
|
if (!agentConfig) return null;
|
|
@@ -14232,6 +14269,13 @@ async function executeLocalAgentTurnForCliWithAdapter(options, settings, resolve
|
|
|
14232
14269
|
options.agentKey,
|
|
14233
14270
|
options.modelOverride
|
|
14234
14271
|
) : resolvedBaseAdapter;
|
|
14272
|
+
if (adapter2 && options.reasoningEffortOverride) {
|
|
14273
|
+
adapter2 = wrapLoadAgentConfigWithReasoningEffortOverride(
|
|
14274
|
+
adapter2,
|
|
14275
|
+
options.agentKey,
|
|
14276
|
+
options.reasoningEffortOverride
|
|
14277
|
+
);
|
|
14278
|
+
}
|
|
14235
14279
|
if (adapter2) adapter2 = applyEphemeralIfRequested(options, adapter2);
|
|
14236
14280
|
if (adapter2 && options.imageUrls?.length) {
|
|
14237
14281
|
const imageAdapter = adapter2;
|
|
@@ -17903,7 +17947,9 @@ async function runAgentRunCommandImpl(args, deps) {
|
|
|
17903
17947
|
runner({
|
|
17904
17948
|
...buildRunOptions(effectiveAgentKey),
|
|
17905
17949
|
...parsed.freshDialog ? { freshDialog: true } : {},
|
|
17906
|
-
...modelOverride ? { modelOverride } : {}
|
|
17950
|
+
...modelOverride ? { modelOverride } : {},
|
|
17951
|
+
// `--reasoning-effort`:本次 run 的有效推理档覆盖(内存生效,不写回记录)。
|
|
17952
|
+
...parsed.reasoningEffort ? { reasoningEffortOverride: parsed.reasoningEffort } : {}
|
|
17907
17953
|
})
|
|
17908
17954
|
);
|
|
17909
17955
|
clearWatchdogs();
|
|
@@ -17972,7 +18018,9 @@ async function runAgentRunCommandImpl(args, deps) {
|
|
|
17972
18018
|
runner({
|
|
17973
18019
|
...buildRunOptions(effectiveAgentKey, nextEntry.text),
|
|
17974
18020
|
continueDialogId: result.dialogId,
|
|
17975
|
-
...modelOverride ? { modelOverride } : {}
|
|
18021
|
+
...modelOverride ? { modelOverride } : {},
|
|
18022
|
+
// `--reasoning-effort`:本次 run 的有效推理档覆盖(内存生效,不写回记录)。
|
|
18023
|
+
...parsed.reasoningEffort ? { reasoningEffortOverride: parsed.reasoningEffort } : {}
|
|
17976
18024
|
})
|
|
17977
18025
|
);
|
|
17978
18026
|
clearWatchdogs();
|
|
@@ -18192,6 +18240,7 @@ export {
|
|
|
18192
18240
|
applyDetectedBackground,
|
|
18193
18241
|
renderSurfaceLine,
|
|
18194
18242
|
surfaceBackgroundSequence,
|
|
18243
|
+
userBubbleSurfaceBackgroundSequence,
|
|
18195
18244
|
themeText,
|
|
18196
18245
|
tuiRenderThemeFingerprint,
|
|
18197
18246
|
MAX_URL_LENGTH,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
patch,
|
|
6
6
|
readAndWait
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CO2NXG2J.js";
|
|
8
8
|
import {
|
|
9
9
|
require_react
|
|
10
10
|
} from "./chunk-RD3QLZQV.js";
|
|
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
335
335
|
).unwrap();
|
|
336
336
|
if (dbSpaceId) {
|
|
337
337
|
try {
|
|
338
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
338
|
+
const { updateContentTitle } = await import("./contentThunks-25XCB7VY.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-RVYBEYZV.js");
|
|
382
382
|
return createPageAction(args, thunkApi);
|
|
383
383
|
}
|
|
384
384
|
function subscribe(listener) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DNNPARJK.js";
|
|
4
4
|
import {
|
|
5
5
|
CUSTOM_API_KEY_TEMPLATES,
|
|
6
6
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6SOWMEAY.js";
|
|
8
8
|
import {
|
|
9
9
|
findModelConfig,
|
|
10
10
|
getProviderByModelName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OKH74FML.js";
|
|
12
12
|
import {
|
|
13
13
|
asOptionalTrimmedString
|
|
14
14
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5ZUL4CUO.js";
|
|
4
4
|
import {
|
|
5
5
|
getModelContextWindow
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2FZVXOFX.js";
|
|
7
7
|
import {
|
|
8
8
|
isPageKey,
|
|
9
9
|
isTableMetaKey
|
|
@@ -23,6 +23,14 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
asOptionalTrimmedString
|
|
25
25
|
} from "./chunk-G3SUCT4W.js";
|
|
26
|
+
import {
|
|
27
|
+
asTrimmedLowercaseString
|
|
28
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
29
|
+
|
|
30
|
+
// packages/integrations/openai/responsesPromptLayout.ts
|
|
31
|
+
function isGpt62DeveloperPrefixModel(model) {
|
|
32
|
+
return /^gpt-6\.2-(astra|sol)$/.test(model);
|
|
33
|
+
}
|
|
26
34
|
|
|
27
35
|
// packages/agent-runtime/codexOAuthPure.ts
|
|
28
36
|
function isCodexOAuthAgent(agent) {
|
|
@@ -30,6 +38,9 @@ function isCodexOAuthAgent(agent) {
|
|
|
30
38
|
const ref = agent.apiKeyRef?.trim().toLowerCase();
|
|
31
39
|
return ref === "chatgpt";
|
|
32
40
|
}
|
|
41
|
+
function usesCodexDeveloperPrefix(agent, model) {
|
|
42
|
+
return !agent.customProviderUrl && isGpt62DeveloperPrefixModel(asTrimmedLowercaseString(model).replace(/^openai\//, ""));
|
|
43
|
+
}
|
|
33
44
|
|
|
34
45
|
// packages/agent-runtime/codexOAuthModelAliases.ts
|
|
35
46
|
var CODEX_OAUTH_MODEL_ALIASES = {
|
|
@@ -506,7 +517,9 @@ function resolveTruncatedReasoningTailLog(reason, reasoning_content) {
|
|
|
506
517
|
}
|
|
507
518
|
|
|
508
519
|
export {
|
|
520
|
+
isGpt62DeveloperPrefixModel,
|
|
509
521
|
isCodexOAuthAgent,
|
|
522
|
+
usesCodexDeveloperPrefix,
|
|
510
523
|
resolveCodexOAuthEffectiveModel,
|
|
511
524
|
CODEX_OAUTH_CATALOG_TTL_MS,
|
|
512
525
|
CODEX_OAUTH_CATALOG_RETRY_FLOOR_MS,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
loadFileFromIndexedDb,
|
|
7
7
|
removeAction,
|
|
8
8
|
saveFileToIndexedDb
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UI3Z3HDK.js";
|
|
10
10
|
import {
|
|
11
11
|
readAction,
|
|
12
12
|
readRequestManager,
|
|
13
13
|
resolveAgentReadServers
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U7BP25PE.js";
|
|
15
15
|
import {
|
|
16
16
|
beginWriteAck,
|
|
17
17
|
compareRemoteRecordsByComparableTime,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
shouldReplaceLocalWithRemoteRecord,
|
|
30
30
|
shouldReplicateLocalRecord,
|
|
31
31
|
uploadToCurrentServer
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ZMFA2TLE.js";
|
|
33
33
|
import {
|
|
34
34
|
asyncThunkCreator,
|
|
35
35
|
buildCreateSlice,
|
|
36
36
|
createEntityAdapter,
|
|
37
37
|
noloDeleteRequest
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YB5D2GK4.js";
|
|
39
39
|
import {
|
|
40
40
|
fetchFromClientDb,
|
|
41
41
|
fetchFromServer,
|
|
@@ -1265,6 +1265,15 @@ var upsertAction = async (upsertConfig, thunkApi) => {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
};
|
|
1267
1267
|
|
|
1268
|
+
// packages/database/spaceUploadFileMapping.ts
|
|
1269
|
+
function mappings(db) {
|
|
1270
|
+
return db?.sublevel?.("web-space-upload-file-ids", { valueEncoding: "utf8" });
|
|
1271
|
+
}
|
|
1272
|
+
var mappingKey = (userId, pageKey) => JSON.stringify([userId, pageKey]);
|
|
1273
|
+
async function recordWebSpaceUploadFileId(db, userId, pageKey, fileId) {
|
|
1274
|
+
await mappings(db)?.put(mappingKey(userId, pageKey), fileId);
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1268
1277
|
// packages/database/actions/upload.ts
|
|
1269
1278
|
var saveToClientDb2 = async (clientDb, dbKey, metadata) => {
|
|
1270
1279
|
if (!clientDb) {
|
|
@@ -1289,7 +1298,7 @@ var uploadFileAction = async (uploadConfig, thunkApi) => {
|
|
|
1289
1298
|
const { db: clientDb } = thunkApi.extra;
|
|
1290
1299
|
const state = thunkApi.getState();
|
|
1291
1300
|
const { currentServer, syncServers, currentUserId } = getRuntimeServerContext(state);
|
|
1292
|
-
const { file, customKey, onProgress, signal } = uploadConfig;
|
|
1301
|
+
const { file, customKey, onProgress, signal, ownerType, spaceId } = uploadConfig;
|
|
1293
1302
|
const userId = uploadConfig.userId || currentUserId;
|
|
1294
1303
|
if (!file) {
|
|
1295
1304
|
const errorMsg = "Invalid arguments for uploadFileAction: file is required.";
|
|
@@ -1344,7 +1353,11 @@ var uploadFileAction = async (uploadConfig, thunkApi) => {
|
|
|
1344
1353
|
file,
|
|
1345
1354
|
metadata: fileMetadata,
|
|
1346
1355
|
customKey: finalDbKey,
|
|
1347
|
-
userId
|
|
1356
|
+
userId,
|
|
1357
|
+
// 归属声明一律由调用方显式给出(例如 Space 上传传 ownerType:"space");
|
|
1358
|
+
// 服务端 uploadOwnership.ts 会重新校验,声明本身不构成授权。
|
|
1359
|
+
...ownerType ? { ownerType } : {},
|
|
1360
|
+
...spaceId ? { spaceId } : {}
|
|
1348
1361
|
};
|
|
1349
1362
|
const uploadServers = resolveUploadReplicationServers({
|
|
1350
1363
|
currentServer,
|
|
@@ -1365,8 +1378,16 @@ var uploadFileAction = async (uploadConfig, thunkApi) => {
|
|
|
1365
1378
|
await localCachePromise;
|
|
1366
1379
|
}
|
|
1367
1380
|
if (primaryUploadServer && !primaryUploadSucceeded) {
|
|
1381
|
+
if (ownerType === "space") {
|
|
1382
|
+
throw new Error(
|
|
1383
|
+
`Upload into Space "${spaceId}" failed on ${primaryUploadServer}: the Space may not be synced to that server, or you are not allowed to upload into it there. Sync the Space to ${primaryUploadServer} (or use another upload server) and retry. Ownership is server-decided and is never downgraded to a personal file.`
|
|
1384
|
+
);
|
|
1385
|
+
}
|
|
1368
1386
|
throw new Error(`Primary upload failed on authority server ${primaryUploadServer}`);
|
|
1369
1387
|
}
|
|
1388
|
+
if (ownerType === "space" && userId && finalDbKey === customKey) {
|
|
1389
|
+
await recordWebSpaceUploadFileId(clientDb, userId, finalDbKey, fileId);
|
|
1390
|
+
}
|
|
1370
1391
|
const serversToUse = scheduleUploadReplication({
|
|
1371
1392
|
currentServer,
|
|
1372
1393
|
syncServers,
|
|
@@ -1403,12 +1424,13 @@ var resolveLocalFileId = (fileId) => {
|
|
|
1403
1424
|
};
|
|
1404
1425
|
var readFileContentAction = async ({
|
|
1405
1426
|
fileId,
|
|
1406
|
-
useServerFallback = true
|
|
1427
|
+
useServerFallback = true,
|
|
1428
|
+
localFileId
|
|
1407
1429
|
}, thunkApi) => {
|
|
1408
1430
|
if (!fileId || typeof fileId !== "string") {
|
|
1409
1431
|
throw new Error("readFileContentAction requires a valid fileId string.");
|
|
1410
1432
|
}
|
|
1411
|
-
const localId = resolveLocalFileId(fileId);
|
|
1433
|
+
const localId = localFileId || resolveLocalFileId(fileId);
|
|
1412
1434
|
const localRecord = await loadFileFromIndexedDb(localId);
|
|
1413
1435
|
if (localRecord) {
|
|
1414
1436
|
return {
|
|
@@ -1494,7 +1516,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1494
1516
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
1495
1517
|
read: create.asyncThunk(
|
|
1496
1518
|
async (payload, thunkApi) => {
|
|
1497
|
-
const { readAction: readAction2 } = await import("./read-
|
|
1519
|
+
const { readAction: readAction2 } = await import("./read-Z2JOK6F6.js");
|
|
1498
1520
|
return readAction2(payload, thunkApi);
|
|
1499
1521
|
},
|
|
1500
1522
|
{
|
|
@@ -1568,7 +1590,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
1568
1590
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
1569
1591
|
share: create.asyncThunk(
|
|
1570
1592
|
async (config, thunkApi) => {
|
|
1571
|
-
const { shareResourceAction } = await import("./action-
|
|
1593
|
+
const { shareResourceAction } = await import("./action-QQOQ2LP3.js");
|
|
1572
1594
|
return shareResourceAction(config, thunkApi);
|
|
1573
1595
|
}
|
|
1574
1596
|
),
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
} from "./chunk-M2EJHDJP.js";
|
|
21
21
|
import {
|
|
22
22
|
getModelPricing
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P4R5KXU7.js";
|
|
24
24
|
import {
|
|
25
25
|
getModelConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OKH74FML.js";
|
|
27
27
|
import {
|
|
28
28
|
isRecord
|
|
29
29
|
} from "./chunk-KUG52IAP.js";
|
|
30
30
|
import {
|
|
31
31
|
isNoloHostedProvider,
|
|
32
32
|
isPlatformHostedImageModel
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-JPXACKSW.js";
|
|
34
34
|
|
|
35
35
|
// packages/core/publicAgentSeeds.ts
|
|
36
36
|
var AGENT_SEED_DEFAULTS = {
|
|
@@ -5,15 +5,18 @@ import {
|
|
|
5
5
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
6
6
|
isAntigravityCloudCodeBaseUrl,
|
|
7
7
|
isAntigravityOAuthAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6SOWMEAY.js";
|
|
9
|
+
import {
|
|
10
|
+
isAgentCredentialShared
|
|
11
|
+
} from "./chunk-LVZVSLKO.js";
|
|
9
12
|
import {
|
|
10
13
|
isOpenAiResponsesModel,
|
|
11
14
|
resolvePlatformChatCompletionsEndpoint,
|
|
12
15
|
resolvePlatformResponsesEndpoint
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2JHGUL5K.js";
|
|
14
17
|
import {
|
|
15
18
|
findModelConfig
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OKH74FML.js";
|
|
17
20
|
import {
|
|
18
21
|
asOptionalTrimmedString
|
|
19
22
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -67,7 +70,7 @@ function hasOwnCustomProviderKey(agentConfig) {
|
|
|
67
70
|
if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
|
|
68
71
|
return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
|
|
69
72
|
}
|
|
70
|
-
function resolveAgentCallPlan(agentConfig, _env) {
|
|
73
|
+
function resolveAgentCallPlan(agentConfig, _env, capabilities) {
|
|
71
74
|
const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
|
|
72
75
|
const provider = asTrimmedLowercaseString(
|
|
73
76
|
agentConfig.provider ?? agentConfig.apiSource
|
|
@@ -149,7 +152,8 @@ function resolveAgentCallPlan(agentConfig, _env) {
|
|
|
149
152
|
};
|
|
150
153
|
}
|
|
151
154
|
if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
|
|
152
|
-
const
|
|
155
|
+
const useLocalCredential = capabilities?.canResolveLocalCredential === true && agentConfig.apiSource === "custom" && agentConfig.useServerProxy === false && !isAgentCredentialShared(agentConfig) && Boolean(asOptionalTrimmedString(agentConfig.credentialRef) || asOptionalTrimmedString(agentConfig.apiKey));
|
|
156
|
+
const transport2 = !useLocalCredential && agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
|
|
153
157
|
const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
|
|
154
158
|
const upstreamWire2 = resolveCustomUpstreamWire(
|
|
155
159
|
endpoint2,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GWS2X7TX.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WAOHK3NJ.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2PB653F5.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-USGHJSGO.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-4O22PGNQ.js";
|
|
39
39
|
import {
|
|
40
40
|
t
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-5UYDG6HP.js";
|
|
42
42
|
import {
|
|
43
43
|
toErrorMessage
|
|
44
44
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-4O22PGNQ.js";
|
|
13
13
|
import {
|
|
14
14
|
scheduleWindowsSelfUpdate
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FRC2DNTN.js";
|
|
16
16
|
import {
|
|
17
17
|
t
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5UYDG6HP.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeServerOrigin
|
|
21
21
|
} from "./chunk-CF7PE763.js";
|
|
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
|
|
|
206
206
|
throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
|
|
207
207
|
}
|
|
208
208
|
try {
|
|
209
|
-
const { readAction } = await import("./read-
|
|
209
|
+
const { readAction } = await import("./read-Z2JOK6F6.js");
|
|
210
210
|
const pageData = await readAction({ dbKey: id }, thunkApi);
|
|
211
211
|
if (!pageData) {
|
|
212
212
|
throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
|