nolo-cli 0.10.0 → 0.12.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-YAXYAUOK.js → _executeModel-MWAY74HA.js} +47 -44
- package/{action-TLI3V62L.js → action-RAXNQQKC.js} +9 -10
- package/{addContentAction-PLWJSCOZ.js → addContentAction-ZHI7TVV3.js} +8 -10
- package/{addDialogAgentAction-BJ6SB76X.js → addDialogAgentAction-JWXPKXNC.js} +7 -8
- package/{agentDeleteCommand-2VYX73U5.js → agentDeleteCommand-LXR5A5FV.js} +36 -26
- package/{agentEmailCommands-3GDZIX64.js → agentEmailCommands-DXRAP7BB.js} +63 -58
- package/{agentListCommands-UWVBT3LH.js → agentListCommands-ZFMS5ZLY.js} +132 -35
- package/{agentMachineCommands-WOKMUG2Y.js → agentMachineCommands-ZJLYVV52.js} +40 -29
- package/{agentPullCommand-O2MTUAFR.js → agentPullCommand-KRBRIFIY.js} +6 -6
- package/{agentRecordCommands-MVNZRH3U.js → agentRecordCommands-DFS626TB.js} +55 -50
- package/{agentRunCommand-K7THIJLA.js → agentRunCommand-GWBIE2TS.js} +60 -56
- package/{agentRunControl-K4VKNEHF.js → agentRunControl-IX4F5W2C.js} +3 -3
- package/{agentRuntimeLocal-WJIGU24U.js → agentRuntimeLocal-YNZSHMZC.js} +29 -14
- package/{agentSlice-LL5TKZEO.js → agentSlice-T2PXOEPQ.js} +9 -10
- package/{authCommand-TC2SW2CQ.js → authCommand-DMW336GT.js} +13 -13
- package/{authCommands-XPEHTKSM.js → authCommands-GH5T6RYV.js} +6 -6
- package/{chunk-5JGGZCZL.js → chunk-3HHTVM6G.js} +64 -5
- package/chunk-3QKO4EHV.js +112 -0
- package/{chunk-AUQ747NZ.js → chunk-43UD5ZP7.js} +76 -15
- package/{chunk-6SLCD4RB.js → chunk-4BTHUYMY.js} +596 -67
- package/{chunk-T7R3NGUU.js → chunk-4EH7AR52.js} +13 -13
- package/{chunk-C3RUNRHT.js → chunk-4GBNEA5B.js} +1 -1
- package/{chunk-4IJYA27C.js → chunk-4LG74DRG.js} +1 -1
- package/{chunk-2FTTDCD4.js → chunk-4ON5AV72.js} +2 -1
- package/{chunk-IWX4UW2E.js → chunk-524BDL33.js} +89 -8
- package/{chunk-EXXFGKF7.js → chunk-5ITRDSHY.js} +1400 -119
- package/{chunk-ISNCLGUZ.js → chunk-5NBHQD4D.js} +4 -3
- package/{chunk-7KNKFIRO.js → chunk-6LMFFG3K.js} +3 -3
- package/{chunk-PAKN26FP.js → chunk-6OVCRC72.js} +1 -1
- package/{chunk-CKOJQDKR.js → chunk-7JJCGV7N.js} +146 -3
- package/{chunk-KBKYAONQ.js → chunk-7MYHLZ3F.js} +2 -2
- package/{chunk-PIVFPOW6.js → chunk-AM53Q2SD.js} +175 -2541
- package/chunk-BYXBJQAS.js +0 -0
- package/{chunk-CL3IOKGK.js → chunk-DE5BA4O6.js} +20 -2
- package/{chunk-6KUOUWMP.js → chunk-DRMGJFGQ.js} +300 -89
- package/{chunk-QAALPJS7.js → chunk-EBH7G34M.js} +20 -7
- package/{chunk-HJGEVL7C.js → chunk-G3B356GF.js} +15 -17
- package/{chunk-OZMMKDBI.js → chunk-GDBCUWQ3.js} +26 -20
- package/{chunk-I5URP43I.js → chunk-GPZM7QH6.js} +9 -9
- package/chunk-IKXL2HZ3.js +70 -0
- package/{chunk-AS4PVWA4.js → chunk-IVAOVLM7.js} +1 -1
- package/{chunk-TNPIMII7.js → chunk-JUN3HFMN.js} +221 -81
- package/{chunk-HFASY3WO.js → chunk-JZDIW766.js} +1 -1
- package/{chunk-6JJWFVZ6.js → chunk-LHSJMY5V.js} +17 -17
- package/chunk-LTRXGFMS.js +83 -0
- package/{chunk-YIHFXH5Q.js → chunk-MEVCDATU.js} +3 -3
- package/{chunk-TILFE6LV.js → chunk-NCGFB7NN.js} +5 -3
- package/{chunk-BE2OOJ5P.js → chunk-NITP2JDG.js} +42 -11
- package/{chunk-YPRZSPF3.js → chunk-OCDEWRE2.js} +1 -1
- package/{chunk-VVX233PH.js → chunk-OHEKYYJF.js} +9 -9
- package/chunk-OOIN7HSO.js +146 -0
- package/{chunk-WPE4F4Z6.js → chunk-OPKKB25T.js} +1 -1
- package/{chunk-OR2XR25C.js → chunk-QCA3EPYK.js} +8 -8
- package/{chunk-SL35K7AH.js → chunk-QLUFR47U.js} +13 -83
- package/{chunk-CDTLMEB3.js → chunk-RNQ5BLR2.js} +1 -1
- package/{chunk-AVMKZHBC.js → chunk-RSEUHW6T.js} +3 -2
- package/{chunk-TYSCFY6S.js → chunk-RZ735TLX.js} +762 -167
- package/chunk-S3UTETIC.js +4885 -0
- package/chunk-S73OEOHH.js +2286 -0
- package/{chunk-JRKKFRAV.js → chunk-TSKWE74T.js} +58 -8
- package/{chunk-A67QFHAA.js → chunk-UG3WOFU6.js} +1 -1
- package/{chunk-4ZDM73SD.js → chunk-V2J635L5.js} +1 -1
- package/chunk-VC6OZXO5.js +298 -0
- package/{chunk-7U44LYTR.js → chunk-WPHL6ALY.js} +1 -1
- package/{chunk-4SIMLBEU.js → chunk-WTYKCU4W.js} +9 -9
- package/{chunk-NPVBXJY2.js → chunk-WWU275LU.js} +9 -9
- package/{chunk-ZQ2UM4KG.js → chunk-WZSRQNQG.js} +1 -292
- package/{chunk-DSZUWUYB.js → chunk-XHQWJUW4.js} +2 -2
- package/{chunk-GAKEBQD6.js → chunk-YDCZVUFP.js} +4 -0
- package/{chunk-2O4IZNTG.js → chunk-YTQLJYLB.js} +2 -2
- package/{chunk-3Y3HW5PX.js → chunk-ZPFRLGIZ.js} +1512 -935
- package/{chunk-5KLGBAAR.js → chunk-ZR4VHQ5D.js} +14 -13
- package/cliEnvHelpers-VYC2OPTB.js +30 -0
- package/{cliExecutor-DNE7TCC4.js → cliExecutor-K3F7DMRO.js} +2 -2
- package/{createAgentAutomationAction-CCE7CWGQ.js → createAgentAutomationAction-G32GKDGV.js} +22 -23
- package/{createDialogAction-QTRR4AT7.js → createDialogAction-TISANRZK.js} +25 -25
- package/{createPageAction-Y4KQOAJE.js → createPageAction-O7KOYNV4.js} +27 -27
- package/{dbSlice-WWNV2SGX.js → dbSlice-WDP2ZZHK.js} +7 -8
- package/{deleteFile-OW53A6BX.js → deleteFile-M7UNIUOO.js} +5 -5
- package/{dialogCommands-SMKIAC3Y.js → dialogCommands-6JPB3YQY.js} +33 -23
- package/{dialogSlice-PT7YBWNE.js → dialogSlice-PRHHYSP5.js} +21 -22
- package/{docCreateCommands-RFNA4HNM.js → docCreateCommands-75E6TZNN.js} +36 -25
- package/{docDeleteCommands-4YZ325M6.js → docDeleteCommands-EJHLN7LW.js} +37 -27
- package/{docReadCommands-RT6VAFFG.js → docReadCommands-RJYBC4FS.js} +36 -25
- package/{docStore-QUQZAFZF.js → docStore-H5VWKT5D.js} +22 -23
- package/{docUpdateCommands-EKKKNYPW.js → docUpdateCommands-MG4CNISV.js} +36 -25
- package/fetchMessages-KTNM7QAR.js +1 -1
- package/{getPricing-3E6UNPKL.js → getPricing-6TOZXPAU.js} +7 -3
- package/{handleSendMessageAction-5NSYAS53.js → handleSendMessageAction-QTUGICSZ.js} +22 -23
- package/index.js +77 -76
- package/{machineCommands-DOOSIUKG.js → machineCommands-MAV7M3TK.js} +67 -60
- package/{machineWsRunDispatch-PIOIQRBW.js → machineWsRunDispatch-ZOEGTKHC.js} +54 -49
- package/{memoryCommands-O4MIPIWQ.js → memoryCommands-AFMES3LN.js} +5 -5
- package/{models-4OPOOLFS.js → models-LSCRJJ6P.js} +2 -2
- package/package.json +1 -1
- package/{read-GW7ZEI23.js → read-2MIMRBZ2.js} +5 -5
- package/{readDocTool-HUFU6OCT.js → readDocTool-QHVGQHUJ.js} +1 -1
- package/{readlineWorkspace-QEAOH5EP.js → readlineWorkspace-SWQKC7ZS.js} +1126 -678
- package/{removeDialogAgentAction-OHMCNSSD.js → removeDialogAgentAction-GTX5AN54.js} +11 -11
- package/{runAgentClientLoop-AIGLXC3R.js → runAgentClientLoop-P25HACXX.js} +42 -40
- package/{runtimeDoctorCommands-LRHLPDRC.js → runtimeDoctorCommands-QNF3J3UV.js} +6 -6
- package/{setDialogExtraReferencesAction-YJUM5BWQ.js → setDialogExtraReferencesAction-WFQ63KYO.js} +7 -8
- package/{setPrimaryDialogAgentAction-EBAREZDM.js → setPrimaryDialogAgentAction-P57FXTSU.js} +11 -11
- package/{settingSlice-UW4IUI5L.js → settingSlice-CK5YZGNI.js} +8 -9
- package/skillDiscovery-ZYHSX7VD.js +16 -0
- package/{spaceCommands-BKHSPR73.js → spaceCommands-6O5EFEM5.js} +41 -33
- package/{spaceSlice-TYNWE3OC.js → spaceSlice-4EXTYXS4.js} +25 -24
- package/{streamAgentChatTurn-HRMFFA7E.js → streamAgentChatTurn-Q3FJAHG2.js} +205 -107
- package/{tableCommands-O7O2LBEG.js → tableCommands-E4SQWDOX.js} +10 -10
- package/{tools-3JNDS3WH.js → tools-AHNQE4GP.js} +33 -31
- package/{tuiSummaryLlmCaller-RV3THLZF.js → tuiSummaryLlmCaller-TXLF4MEI.js} +8 -6
- package/{updateCommands-VOSPKXFF.js → updateCommands-XZDOOYFH.js} +13 -5
- package/{updateDialogTitleAction-OCETSKCP.js → updateDialogTitleAction-XZDVLKVX.js} +25 -25
- package/chunk-5MMAK75Q.js +0 -15
- package/chunk-AZPCASRE.js +0 -36
- package/chunk-BBYVOSU2.js +0 -792
- package/chunk-DCOA4QSN.js +0 -105
- package/chunk-UAD2WT54.js +0 -64
- package/{chunk-DZ3XJVET.js → chunk-3QAF2LTL.js} +3 -3
- package/{chunk-X7W4TNB4.js → chunk-CMKUBIGW.js} +3 -3
- package/{chunk-4CQLVGRV.js → chunk-ID4G2MAR.js} +3 -3
- package/{chunk-5CS33IBL.js → chunk-PDL2AV3E.js} +3 -3
- package/{chunk-EHLHSX7R.js → chunk-TOILAPLH.js} +3 -3
- package/{chunk-UTLZINAP.js → chunk-TSUJOM6N.js} +10 -10
- package/{offlineMarxistsAgentCommand-BCPJITJL.js → offlineMarxistsAgentCommand-5OOWZLJI.js} +3 -3
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
applyModelLayerOverride
|
|
3
|
-
|
|
4
|
-
buildSpaceContextLayer
|
|
5
|
-
} from "./chunk-SL35K7AH.js";
|
|
2
|
+
applyModelLayerOverride
|
|
3
|
+
} from "./chunk-LTRXGFMS.js";
|
|
6
4
|
import {
|
|
7
5
|
buildStaticUserPolicyContext,
|
|
8
6
|
resolveSpaceContextPreloadPlan
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
getFinalPrice,
|
|
12
|
-
getModelPricing,
|
|
13
|
-
getPrices,
|
|
14
|
-
hasExplicitAgentPricing
|
|
15
|
-
} from "./chunk-YPRZSPF3.js";
|
|
7
|
+
} from "./chunk-UG3WOFU6.js";
|
|
16
8
|
import {
|
|
17
9
|
buildCliPrompt
|
|
18
10
|
} from "./chunk-ATNTHIZI.js";
|
|
@@ -28,65 +20,72 @@ import {
|
|
|
28
20
|
sanitizeOutboundResponsesInput,
|
|
29
21
|
sendOpenAICompletionsRequest,
|
|
30
22
|
updateTotalUsage
|
|
31
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GDBCUWQ3.js";
|
|
32
24
|
import "./chunk-JEXVIMYZ.js";
|
|
33
25
|
import {
|
|
34
26
|
prepareTools
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import {
|
|
37
|
-
getPublicImageAgentDefaultProfile,
|
|
38
|
-
getPublicImageAgentMode
|
|
39
|
-
} from "./chunk-VIDPVFP3.js";
|
|
27
|
+
} from "./chunk-YTQLJYLB.js";
|
|
40
28
|
import {
|
|
41
29
|
fetchReferenceContents,
|
|
42
30
|
generateRequestBody,
|
|
31
|
+
isResponsesConversationStateRejection,
|
|
43
32
|
mergeReferences,
|
|
44
33
|
performFetchRequest,
|
|
45
34
|
performServerProxyFetchWithRetry,
|
|
46
35
|
resolveAgentCallPlan,
|
|
47
36
|
resolveClientWire,
|
|
48
37
|
resolveReferenceAssets,
|
|
49
|
-
resolveToolsFromKeys
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
resolveToolsFromKeys,
|
|
39
|
+
selectResponsesConversationState,
|
|
40
|
+
updateResponsesConversationState
|
|
41
|
+
} from "./chunk-JUN3HFMN.js";
|
|
42
|
+
import "./chunk-4GBNEA5B.js";
|
|
53
43
|
import {
|
|
54
44
|
TOOL_PACKS,
|
|
55
45
|
applyDefaultWebToolPacks,
|
|
56
46
|
applyDisabledTools,
|
|
57
47
|
createSSEParser,
|
|
48
|
+
expandEnabledPackPromptPatches,
|
|
58
49
|
expandEnabledPacks,
|
|
59
50
|
getAllToolRuns,
|
|
60
|
-
shouldBlockForGptPro
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
shouldBlockForGptPro,
|
|
52
|
+
waitForAbortableDelay
|
|
53
|
+
} from "./chunk-RZ735TLX.js";
|
|
54
|
+
import "./chunk-YDCZVUFP.js";
|
|
55
|
+
import "./chunk-OOIN7HSO.js";
|
|
63
56
|
import "./chunk-KQHGZWSV.js";
|
|
64
|
-
import
|
|
57
|
+
import {
|
|
58
|
+
getFinalPrice,
|
|
59
|
+
getModelPricing,
|
|
60
|
+
getPrices,
|
|
61
|
+
hasExplicitAgentPricing
|
|
62
|
+
} from "./chunk-OCDEWRE2.js";
|
|
63
|
+
import {
|
|
64
|
+
getPublicImageAgentDefaultProfile,
|
|
65
|
+
getPublicImageAgentMode
|
|
66
|
+
} from "./chunk-VIDPVFP3.js";
|
|
67
|
+
import "./chunk-IVAOVLM7.js";
|
|
65
68
|
import "./chunk-3LY4F7SV.js";
|
|
66
69
|
import {
|
|
67
70
|
extractCategorizedMentions
|
|
68
71
|
} from "./chunk-VP4WJWKW.js";
|
|
69
72
|
import "./chunk-63W5N6P3.js";
|
|
73
|
+
import "./chunk-VF4K2QE6.js";
|
|
70
74
|
import {
|
|
71
75
|
getDocState
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-XENYHRUE.js";
|
|
76
|
+
} from "./chunk-MEVCDATU.js";
|
|
77
|
+
import "./chunk-G3B356GF.js";
|
|
78
|
+
import "./chunk-VC6OZXO5.js";
|
|
76
79
|
import {
|
|
77
80
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
78
81
|
addToolMessage,
|
|
79
82
|
addUserMessage,
|
|
80
83
|
buildPersonalizationDialogPolicyContext,
|
|
81
84
|
estimateMissingUsage,
|
|
82
|
-
estimateTokenCount,
|
|
83
85
|
extractReferenceKeysFromMessage,
|
|
84
86
|
finalizeTransientMessageOnError,
|
|
85
|
-
getModelContextWindow,
|
|
86
|
-
getModelInfo,
|
|
87
87
|
messageStreamEnd,
|
|
88
88
|
messageStreaming,
|
|
89
|
-
planContextUsage,
|
|
90
89
|
prepareAndPersistUserMessage,
|
|
91
90
|
removeTransientMessage,
|
|
92
91
|
selectAllMsgs,
|
|
@@ -98,52 +97,60 @@ import {
|
|
|
98
97
|
selectTableRows,
|
|
99
98
|
selectViewMode,
|
|
100
99
|
updateTokens
|
|
101
|
-
} from "./chunk-
|
|
102
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-AM53Q2SD.js";
|
|
101
|
+
import "./chunk-V2J635L5.js";
|
|
103
102
|
import "./chunk-MRC4Q34M.js";
|
|
104
103
|
import "./chunk-MTU75CZ2.js";
|
|
105
104
|
import "./chunk-CWMSB67P.js";
|
|
106
|
-
import "./chunk-
|
|
105
|
+
import "./chunk-GPZM7QH6.js";
|
|
107
106
|
import {
|
|
108
107
|
createCliChatTurnStream,
|
|
109
108
|
getCliChatSession,
|
|
110
109
|
startCliChatSession
|
|
111
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-6LMFFG3K.js";
|
|
112
111
|
import "./chunk-Z4NR32XR.js";
|
|
113
112
|
import "./chunk-M76ECQRD.js";
|
|
114
|
-
import "./chunk-
|
|
115
|
-
import "./chunk-5JGGZCZL.js";
|
|
116
|
-
import "./chunk-UAD2WT54.js";
|
|
117
|
-
import "./chunk-DCOA4QSN.js";
|
|
113
|
+
import "./chunk-WZSRQNQG.js";
|
|
118
114
|
import {
|
|
119
115
|
assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
|
|
120
116
|
buildDesktopAgentRuntimeAgentConfigSnapshot,
|
|
121
117
|
buildDesktopAgentRuntimeDialogHistorySnapshot
|
|
122
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-NCGFB7NN.js";
|
|
123
119
|
import {
|
|
120
|
+
projectToolMessageContent,
|
|
124
121
|
resolveAgentImageInputSupport
|
|
125
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-4BTHUYMY.js";
|
|
126
123
|
import "./chunk-OPZYGHUC.js";
|
|
127
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-6OVCRC72.js";
|
|
128
125
|
import {
|
|
129
126
|
extractImagePartsFromResponseOutput,
|
|
130
127
|
extractTextFromResponseOutput,
|
|
131
128
|
toResponsesTools
|
|
132
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-TSKWE74T.js";
|
|
133
130
|
import {
|
|
134
131
|
canonicalizeToolNames,
|
|
135
132
|
prioritizeToolNames,
|
|
136
133
|
resolveRuntimeToolSurfaceForAgent
|
|
137
|
-
} from "./chunk-
|
|
138
|
-
import
|
|
134
|
+
} from "./chunk-43UD5ZP7.js";
|
|
135
|
+
import {
|
|
136
|
+
estimateTokenCount,
|
|
137
|
+
getModelContextWindow,
|
|
138
|
+
getModelInfo,
|
|
139
|
+
planContextUsage
|
|
140
|
+
} from "./chunk-S73OEOHH.js";
|
|
139
141
|
import {
|
|
140
142
|
getApiEndpoint,
|
|
141
143
|
getModelConfig,
|
|
142
144
|
getProviderByModelName
|
|
143
|
-
} from "./chunk-
|
|
144
|
-
import "./chunk-
|
|
145
|
+
} from "./chunk-S3UTETIC.js";
|
|
146
|
+
import "./chunk-PDL2AV3E.js";
|
|
145
147
|
import "./chunk-JZPBVBIY.js";
|
|
146
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-BYXBJQAS.js";
|
|
149
|
+
import {
|
|
150
|
+
buildLinkedSpacesSection,
|
|
151
|
+
buildSpaceContextLayer
|
|
152
|
+
} from "./chunk-QLUFR47U.js";
|
|
153
|
+
import "./chunk-KKY4B2Q2.js";
|
|
147
154
|
import {
|
|
148
155
|
resolveToolBaseUrl
|
|
149
156
|
} from "./chunk-5MIDPSSK.js";
|
|
@@ -160,11 +167,15 @@ import {
|
|
|
160
167
|
selectPendingUserInputQueue,
|
|
161
168
|
tokenUsageLiveUpdate
|
|
162
169
|
} from "./chunk-3ASDTTEI.js";
|
|
163
|
-
import "./chunk-DWLEOOGR.js";
|
|
164
170
|
import {
|
|
165
171
|
toErrorMessage
|
|
166
172
|
} from "./chunk-HNMXYYJR.js";
|
|
167
|
-
import "./chunk-
|
|
173
|
+
import "./chunk-SOTZ6RDN.js";
|
|
174
|
+
import "./chunk-XENYHRUE.js";
|
|
175
|
+
import "./chunk-DWLEOOGR.js";
|
|
176
|
+
import "./chunk-IKXL2HZ3.js";
|
|
177
|
+
import "./chunk-524BDL33.js";
|
|
178
|
+
import "./chunk-7MYHLZ3F.js";
|
|
168
179
|
import {
|
|
169
180
|
selectAiRecentContentLimit,
|
|
170
181
|
selectCurrentServer,
|
|
@@ -173,19 +184,19 @@ import {
|
|
|
173
184
|
selectMaxExecutionTime,
|
|
174
185
|
selectSpaceContextLevel,
|
|
175
186
|
selectUserTonePreset
|
|
176
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-WTYKCU4W.js";
|
|
177
188
|
import "./chunk-Y5GCAMGP.js";
|
|
189
|
+
import {
|
|
190
|
+
asRecordOrEmpty
|
|
191
|
+
} from "./chunk-KX6YBIHG.js";
|
|
192
|
+
import "./chunk-3HHTVM6G.js";
|
|
178
193
|
import {
|
|
179
194
|
patch,
|
|
180
195
|
read,
|
|
181
196
|
selectById,
|
|
182
197
|
write
|
|
183
|
-
} from "./chunk-
|
|
184
|
-
import "./chunk-
|
|
185
|
-
import "./chunk-7U44LYTR.js";
|
|
186
|
-
import {
|
|
187
|
-
asRecordOrEmpty
|
|
188
|
-
} from "./chunk-KX6YBIHG.js";
|
|
198
|
+
} from "./chunk-NITP2JDG.js";
|
|
199
|
+
import "./chunk-WPHL6ALY.js";
|
|
189
200
|
import {
|
|
190
201
|
createDialogMessageKeyAndId,
|
|
191
202
|
dialogMessageKey
|
|
@@ -197,31 +208,31 @@ import {
|
|
|
197
208
|
asOptionalFiniteNumber
|
|
198
209
|
} from "./chunk-WWC7I6TA.js";
|
|
199
210
|
import "./chunk-QSJ3HFEF.js";
|
|
200
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-XHQWJUW4.js";
|
|
201
212
|
import {
|
|
202
213
|
selectIdentityToken,
|
|
203
214
|
selectIdentityUser,
|
|
204
215
|
selectIdentityUserId,
|
|
205
216
|
selectRuntimeCurrentServer
|
|
206
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-TSUJOM6N.js";
|
|
207
218
|
import {
|
|
208
219
|
getIsDesktopApp,
|
|
209
220
|
isAbortError
|
|
210
221
|
} from "./chunk-OOSFSFMA.js";
|
|
211
222
|
import "./chunk-GBRG75BQ.js";
|
|
212
|
-
import
|
|
213
|
-
|
|
223
|
+
import {
|
|
224
|
+
isRecord
|
|
225
|
+
} from "./chunk-KUG52IAP.js";
|
|
214
226
|
import {
|
|
215
227
|
asTrimmedString
|
|
216
228
|
} from "./chunk-3EUW3WEO.js";
|
|
217
229
|
import "./chunk-U6VC4MU4.js";
|
|
230
|
+
import "./chunk-LCBAMY2M.js";
|
|
231
|
+
import "./chunk-4SN6J65J.js";
|
|
218
232
|
import "./chunk-CF7PE763.js";
|
|
219
233
|
import {
|
|
220
234
|
asOptionalTrimmedString
|
|
221
235
|
} from "./chunk-G3SUCT4W.js";
|
|
222
|
-
import {
|
|
223
|
-
isRecord
|
|
224
|
-
} from "./chunk-KUG52IAP.js";
|
|
225
236
|
import "./chunk-4VNS5WPM.js";
|
|
226
237
|
|
|
227
238
|
// packages/ai/agent/isVoiceModel.ts
|
|
@@ -514,25 +525,10 @@ var isRetryableInitialStreamError = (error) => {
|
|
|
514
525
|
);
|
|
515
526
|
};
|
|
516
527
|
var waitForInitialStreamRetry = async (retryAfterMs, signal) => {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
522
|
-
await new Promise((resolve, reject) => {
|
|
523
|
-
const onAbort = () => {
|
|
524
|
-
clearTimeout(timeoutId);
|
|
525
|
-
signal?.removeEventListener("abort", onAbort);
|
|
526
|
-
const abortError = new Error("Aborted");
|
|
527
|
-
abortError.name = "AbortError";
|
|
528
|
-
reject(abortError);
|
|
529
|
-
};
|
|
530
|
-
const timeoutId = setTimeout(() => {
|
|
531
|
-
signal?.removeEventListener("abort", onAbort);
|
|
532
|
-
resolve();
|
|
533
|
-
}, normalizeInitialStreamRetryAfterMs(retryAfterMs));
|
|
534
|
-
signal?.addEventListener("abort", onAbort, { once: true });
|
|
535
|
-
});
|
|
528
|
+
await waitForAbortableDelay(
|
|
529
|
+
normalizeInitialStreamRetryAfterMs(retryAfterMs),
|
|
530
|
+
signal
|
|
531
|
+
);
|
|
536
532
|
};
|
|
537
533
|
|
|
538
534
|
// packages/ai/chat/sendOpenAIResponseRequest.ts
|
|
@@ -614,7 +610,8 @@ var sendOpenAIResponseRequest = async ({
|
|
|
614
610
|
dialogKey,
|
|
615
611
|
parentMessageId,
|
|
616
612
|
messageMetadata,
|
|
617
|
-
quickChatPerfStartedAt
|
|
613
|
+
quickChatPerfStartedAt,
|
|
614
|
+
fallbackBodyData
|
|
618
615
|
}) => {
|
|
619
616
|
const { dispatch, getState, signal: thunkSignal } = thunkApi;
|
|
620
617
|
const dialogId = extractCustomId(dialogKey);
|
|
@@ -648,7 +645,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
648
645
|
hasHandedOff,
|
|
649
646
|
finishReason,
|
|
650
647
|
messageId,
|
|
651
|
-
usage: state.usage ?? void 0
|
|
648
|
+
usage: state.usage ?? void 0,
|
|
649
|
+
responseId: typeof state.completedResponse?.id === "string" ? state.completedResponse.id : void 0,
|
|
650
|
+
...state.responsesStateFallback ? { responsesStateFallback: true } : {}
|
|
652
651
|
});
|
|
653
652
|
const resetStateForRetry = () => {
|
|
654
653
|
state.content = "";
|
|
@@ -842,6 +841,7 @@ var sendOpenAIResponseRequest = async ({
|
|
|
842
841
|
return buildMeta(result.hasPendingInteraction, result.hasHandedOff, null);
|
|
843
842
|
};
|
|
844
843
|
let reader;
|
|
844
|
+
let responsesStateFallbackUsed = false;
|
|
845
845
|
try {
|
|
846
846
|
if (!parentMessageId) {
|
|
847
847
|
dispatch(
|
|
@@ -874,13 +874,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
874
874
|
}
|
|
875
875
|
] : []
|
|
876
876
|
];
|
|
877
|
-
const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
877
|
+
const buildRequestBody = (sourceBodyData) => {
|
|
878
|
+
const sanitizedInput = Array.isArray(sourceBodyData?.input) ? sanitizeOutboundResponsesInput(sourceBodyData.input) : sourceBodyData?.input;
|
|
879
|
+
const baseBodyData = sanitizedInput !== sourceBodyData?.input ? { ...sourceBodyData, input: sanitizedInput } : sourceBodyData;
|
|
880
|
+
return {
|
|
881
|
+
...baseBodyData,
|
|
882
|
+
...tools.length ? { tools, tool_choice: baseBodyData.tool_choice ?? "auto" } : {},
|
|
883
|
+
stream: true
|
|
884
|
+
};
|
|
883
885
|
};
|
|
886
|
+
let requestBody = buildRequestBody(bodyData);
|
|
887
|
+
const fallbackRequestBody = fallbackBodyData ? buildRequestBody(fallbackBodyData) : null;
|
|
884
888
|
const api = getApiEndpoint(agentConfig);
|
|
885
889
|
const token = selectIdentityToken(getState());
|
|
886
890
|
logQuickChatPerfStage(quickChatPerfStartedAt, "openai-response-fetch-starting", {
|
|
@@ -924,6 +928,17 @@ var sendOpenAIResponseRequest = async ({
|
|
|
924
928
|
);
|
|
925
929
|
}
|
|
926
930
|
if (!response.ok) {
|
|
931
|
+
const rejectedStoredState = !!requestBody.previous_response_id && !!fallbackRequestBody && isResponsesConversationStateRejection(
|
|
932
|
+
response.status,
|
|
933
|
+
await response.clone().text().catch(() => "")
|
|
934
|
+
);
|
|
935
|
+
if (!responsesStateFallbackUsed && rejectedStoredState) {
|
|
936
|
+
responsesStateFallbackUsed = true;
|
|
937
|
+
state.responsesStateFallback = true;
|
|
938
|
+
requestBody = fallbackRequestBody;
|
|
939
|
+
resetStateForRetry();
|
|
940
|
+
continue attemptLoop;
|
|
941
|
+
}
|
|
927
942
|
const errorMessage = await parseApiError(response);
|
|
928
943
|
state.content = `[\u9519\u8BEF: ${errorMessage}]`;
|
|
929
944
|
await finalize();
|
|
@@ -1021,6 +1036,12 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1021
1036
|
flush();
|
|
1022
1037
|
}
|
|
1023
1038
|
break;
|
|
1039
|
+
case "response.reasoning_text.delta":
|
|
1040
|
+
if (typeof event.delta === "string" && event.delta) {
|
|
1041
|
+
state.reasoning += event.delta;
|
|
1042
|
+
flush();
|
|
1043
|
+
}
|
|
1044
|
+
break;
|
|
1024
1045
|
case "response.reasoning.done":
|
|
1025
1046
|
if (event.text) {
|
|
1026
1047
|
state.reasoning += event.text;
|
|
@@ -1079,6 +1100,9 @@ var sendOpenAIResponseRequest = async ({
|
|
|
1079
1100
|
}
|
|
1080
1101
|
case "response.completed":
|
|
1081
1102
|
state.completedResponse = event.response ?? null;
|
|
1103
|
+
if (responsesStateFallbackUsed) {
|
|
1104
|
+
state.responsesStateFallback = true;
|
|
1105
|
+
}
|
|
1082
1106
|
finishReason = event.response?.status === "completed" ? "stop" : event.response?.status ?? null;
|
|
1083
1107
|
if (event.response?.usage) {
|
|
1084
1108
|
state.usage = updateTotalUsage(state.usage, event.response.usage);
|
|
@@ -1662,14 +1686,15 @@ var compressOldToolResults = (messages, maxChars = 800) => {
|
|
|
1662
1686
|
}
|
|
1663
1687
|
return messages.map((msg, idx) => {
|
|
1664
1688
|
if (msg.role !== "tool") return msg;
|
|
1665
|
-
if (idx > lastToolCallAssistantIdx) return msg;
|
|
1666
1689
|
const content = typeof msg.content === "string" ? msg.content : JSON.stringify(msg.content);
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
};
|
|
1690
|
+
const projected = projectToolMessageContent({
|
|
1691
|
+
content,
|
|
1692
|
+
isFresh: idx > lastToolCallAssistantIdx,
|
|
1693
|
+
toolName: msg.name,
|
|
1694
|
+
historicalMaxChars: maxChars
|
|
1695
|
+
});
|
|
1696
|
+
if (projected === content) return msg;
|
|
1697
|
+
return { ...msg, content: projected };
|
|
1673
1698
|
});
|
|
1674
1699
|
};
|
|
1675
1700
|
var trimMessagesWithSummary = (messages, contextWindow, summaryTokenCount) => {
|
|
@@ -1706,8 +1731,8 @@ var trimMessagesWithSummary = (messages, contextWindow, summaryTokenCount) => {
|
|
|
1706
1731
|
}
|
|
1707
1732
|
let cutIndex = messages.length - keepCount;
|
|
1708
1733
|
if (cutIndex < 0) cutIndex = 0;
|
|
1709
|
-
while (cutIndex
|
|
1710
|
-
cutIndex
|
|
1734
|
+
while (cutIndex > 0 && messages[cutIndex]?.role === "tool") {
|
|
1735
|
+
cutIndex--;
|
|
1711
1736
|
}
|
|
1712
1737
|
return messages.slice(cutIndex);
|
|
1713
1738
|
};
|
|
@@ -2014,7 +2039,7 @@ var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools,
|
|
|
2014
2039
|
const rawBaseTools = Array.isArray(agentConfig.tools) ? agentConfig.tools : [];
|
|
2015
2040
|
const agentEnabledPacks = agentConfig?.enabledPacks;
|
|
2016
2041
|
const isInlineArtifact = isInlineVisualArtifactAgent(agentConfig);
|
|
2017
|
-
const effectiveEnabledPacks = Array.isArray(agentEnabledPacks) && agentEnabledPacks.length > 0 ? agentEnabledPacks : isInlineArtifact ? agentEnabledPacks ?? [] : ["long-term-memory"];
|
|
2042
|
+
const effectiveEnabledPacks = Array.isArray(agentEnabledPacks) && agentEnabledPacks.length > 0 ? agentEnabledPacks.includes("agent-orchestration") ? agentEnabledPacks : [...agentEnabledPacks, "agent-orchestration"] : isInlineArtifact ? agentEnabledPacks ?? [] : ["long-term-memory", "agent-orchestration", "skills"];
|
|
2018
2043
|
const expandedPackTools = expandEnabledPacks(
|
|
2019
2044
|
effectiveEnabledPacks,
|
|
2020
2045
|
rawBaseTools
|
|
@@ -2030,7 +2055,13 @@ var mergeAgentToolsWithRuntime = (agentConfig, referencedTools, mentionedTools,
|
|
|
2030
2055
|
...new Set(asNonEmptyStringArray(agentConfig.recommendedSkillHints))
|
|
2031
2056
|
];
|
|
2032
2057
|
const skillPromptPatches = [
|
|
2033
|
-
|
|
2058
|
+
.../* @__PURE__ */ new Set([
|
|
2059
|
+
...asNonEmptyStringArray(agentConfig.skillPromptPatches),
|
|
2060
|
+
// 能力包的 promptPatch(方法论文档)与 skill reference 的 patch 走同一条
|
|
2061
|
+
// 注入链(buildSkillGuidanceBlock → buildSkillGuidancePromptBlock),
|
|
2062
|
+
// 让「工具 + 配套纪律」作为一个能力包整体注入 system prompt。
|
|
2063
|
+
...expandEnabledPackPromptPatches(effectiveEnabledPacks)
|
|
2064
|
+
])
|
|
2034
2065
|
];
|
|
2035
2066
|
const webPadded = applyDefaultWebToolPacks({
|
|
2036
2067
|
toolNames: baseTools,
|
|
@@ -2615,7 +2646,11 @@ async function consumeAgentRunStream(handlers) {
|
|
|
2615
2646
|
|
|
2616
2647
|
// packages/ai/llm/isResponseAPIModel.ts
|
|
2617
2648
|
var isResponseAPIModel = (agentConfig) => {
|
|
2618
|
-
|
|
2649
|
+
const provider = agentConfig.provider?.trim().toLowerCase();
|
|
2650
|
+
if (provider === "deepseek") {
|
|
2651
|
+
return agentConfig.model?.trim().toLowerCase() === "deepseek-v4-flash";
|
|
2652
|
+
}
|
|
2653
|
+
if (provider !== "openai") return false;
|
|
2619
2654
|
if (agentConfig.endpointKey === "responses") return true;
|
|
2620
2655
|
if (!agentConfig.model) return false;
|
|
2621
2656
|
try {
|
|
@@ -2916,6 +2951,12 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
2916
2951
|
runtimeOptions.quickChatModelOverride
|
|
2917
2952
|
);
|
|
2918
2953
|
}
|
|
2954
|
+
if (runtimeOptions?.quickChatReasoningEffort && rawAgentConfig.model === "deepseek-v4-flash") {
|
|
2955
|
+
rawAgentConfig = {
|
|
2956
|
+
...rawAgentConfig,
|
|
2957
|
+
reasoning_effort: runtimeOptions.quickChatReasoningEffort
|
|
2958
|
+
};
|
|
2959
|
+
}
|
|
2919
2960
|
if (isLiveAudioOnlyAgent(rawAgentConfig)) {
|
|
2920
2961
|
return rejectWithValue(
|
|
2921
2962
|
"\u6B64 Agent \u4EC5\u652F\u6301\u5B9E\u65F6\u8BED\u97F3\u6A21\u5F0F\uFF0C\u8BF7\u4F7F\u7528\u8BED\u97F3\u9762\u677F\u8FDB\u884C\u5BF9\u8BDD\u3002"
|
|
@@ -3794,6 +3835,11 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
3794
3835
|
entrypoint: "chat-dialog",
|
|
3795
3836
|
capabilities: ["streaming", "dialog-ui", "tool-cards"]
|
|
3796
3837
|
},
|
|
3838
|
+
...runtimeOptions?.quickChatReasoningEffort ? {
|
|
3839
|
+
runtimeOptions: {
|
|
3840
|
+
quickChatReasoningEffort: runtimeOptions.quickChatReasoningEffort
|
|
3841
|
+
}
|
|
3842
|
+
} : {},
|
|
3797
3843
|
...currentDialog?.spaceId ? { spaceId: currentDialog.spaceId } : {}
|
|
3798
3844
|
});
|
|
3799
3845
|
const remoteRunUrl = `${explicitServerBase.replace(/\/+$/, "")}/api/agent/run`;
|
|
@@ -4015,6 +4061,19 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4015
4061
|
});
|
|
4016
4062
|
let appendTempUserInput2 = true;
|
|
4017
4063
|
let currentParentMessageId2 = parentMessageId ?? void 0;
|
|
4064
|
+
const storedResponsesState = currentDialog?.responsesState;
|
|
4065
|
+
let responsesState = selectResponsesConversationState(
|
|
4066
|
+
storedResponsesState,
|
|
4067
|
+
agentConfigForCall
|
|
4068
|
+
);
|
|
4069
|
+
if (storedResponsesState != null && !responsesState) {
|
|
4070
|
+
dispatch(
|
|
4071
|
+
patch({
|
|
4072
|
+
dbKey: dialogKey,
|
|
4073
|
+
changes: { responsesState: null }
|
|
4074
|
+
})
|
|
4075
|
+
);
|
|
4076
|
+
}
|
|
4018
4077
|
const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
|
|
4019
4078
|
if (w2) w2.__LOOP_STOP_REASON__ = null;
|
|
4020
4079
|
loopKey = `loop:${dialogId}`;
|
|
@@ -4159,8 +4218,17 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4159
4218
|
messages: dynamicMessages,
|
|
4160
4219
|
stableMessages,
|
|
4161
4220
|
userInput: userInputText,
|
|
4162
|
-
contexts
|
|
4221
|
+
contexts,
|
|
4222
|
+
responsesState
|
|
4163
4223
|
});
|
|
4224
|
+
const fallbackBodyData = responsesState ? generateRequestBody({
|
|
4225
|
+
agentConfig: effectiveAgentConfig,
|
|
4226
|
+
messages: dynamicMessages,
|
|
4227
|
+
stableMessages,
|
|
4228
|
+
userInput: userInputText,
|
|
4229
|
+
contexts,
|
|
4230
|
+
responsesState: null
|
|
4231
|
+
}) : void 0;
|
|
4164
4232
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-starting", {
|
|
4165
4233
|
responseApi: true,
|
|
4166
4234
|
dynamicMessageCount: dynamicMessages.length,
|
|
@@ -4174,7 +4242,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4174
4242
|
dialogKey,
|
|
4175
4243
|
parentMessageId: currentParentMessageId2,
|
|
4176
4244
|
messageMetadata: streamingMessageMetadata,
|
|
4177
|
-
quickChatPerfStartedAt
|
|
4245
|
+
quickChatPerfStartedAt,
|
|
4246
|
+
fallbackBodyData
|
|
4178
4247
|
});
|
|
4179
4248
|
logQuickChatPerfStage2(quickChatPerfStartedAt, "stream-agent-model-request-finished", {
|
|
4180
4249
|
responseApi: true,
|
|
@@ -4184,6 +4253,35 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
|
|
|
4184
4253
|
});
|
|
4185
4254
|
appendTempUserInput2 = false;
|
|
4186
4255
|
currentParentMessageId2 = void 0;
|
|
4256
|
+
if (meta.responseId) {
|
|
4257
|
+
responsesState = updateResponsesConversationState(
|
|
4258
|
+
agentConfigForCall,
|
|
4259
|
+
meta.responseId
|
|
4260
|
+
);
|
|
4261
|
+
if (responsesState) {
|
|
4262
|
+
dispatch(
|
|
4263
|
+
patch({
|
|
4264
|
+
dbKey: dialogKey,
|
|
4265
|
+
changes: { responsesState }
|
|
4266
|
+
})
|
|
4267
|
+
);
|
|
4268
|
+
} else if (meta.responsesStateFallback) {
|
|
4269
|
+
dispatch(
|
|
4270
|
+
patch({
|
|
4271
|
+
dbKey: dialogKey,
|
|
4272
|
+
changes: { responsesState: null }
|
|
4273
|
+
})
|
|
4274
|
+
);
|
|
4275
|
+
}
|
|
4276
|
+
} else if (meta.responsesStateFallback) {
|
|
4277
|
+
responsesState = null;
|
|
4278
|
+
dispatch(
|
|
4279
|
+
patch({
|
|
4280
|
+
dbKey: dialogKey,
|
|
4281
|
+
changes: { responsesState: null }
|
|
4282
|
+
})
|
|
4283
|
+
);
|
|
4284
|
+
}
|
|
4187
4285
|
totalTurnUsage = updateTotalUsage(totalTurnUsage, meta.usage);
|
|
4188
4286
|
if (meta.hasHandedOff) {
|
|
4189
4287
|
if (!requestParentMessageId && meta.messageId) {
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSpaceContentKeys,
|
|
3
3
|
normalizeSpaceIdInput
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ID4G2MAR.js";
|
|
5
|
+
import {
|
|
6
|
+
toErrorMessage
|
|
7
|
+
} from "./chunk-HNMXYYJR.js";
|
|
5
8
|
import {
|
|
6
9
|
getCurrentProfile,
|
|
7
10
|
getDefaultProfileConfigPath,
|
|
8
11
|
loadProfileConfig
|
|
9
12
|
} from "./chunk-ROWQEJRP.js";
|
|
10
|
-
import {
|
|
11
|
-
DEFAULT_NOLO_SERVER_URL
|
|
12
|
-
} from "./chunk-OLZBQWZU.js";
|
|
13
|
-
import {
|
|
14
|
-
toErrorMessage
|
|
15
|
-
} from "./chunk-HNMXYYJR.js";
|
|
16
13
|
import {
|
|
17
14
|
asOptionalFiniteNumber
|
|
18
15
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -22,6 +19,12 @@ import {
|
|
|
22
19
|
import {
|
|
23
20
|
getAllServers
|
|
24
21
|
} from "./chunk-OOSFSFMA.js";
|
|
22
|
+
import {
|
|
23
|
+
isRecord
|
|
24
|
+
} from "./chunk-KUG52IAP.js";
|
|
25
|
+
import {
|
|
26
|
+
DEFAULT_NOLO_SERVER_URL
|
|
27
|
+
} from "./chunk-OLZBQWZU.js";
|
|
25
28
|
import {
|
|
26
29
|
NOLO_CLUSTER_SERVERS
|
|
27
30
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -29,9 +32,6 @@ import "./chunk-CF7PE763.js";
|
|
|
29
32
|
import {
|
|
30
33
|
asOptionalTrimmedString
|
|
31
34
|
} from "./chunk-G3SUCT4W.js";
|
|
32
|
-
import {
|
|
33
|
-
isRecord
|
|
34
|
-
} from "./chunk-KUG52IAP.js";
|
|
35
35
|
import "./chunk-4VNS5WPM.js";
|
|
36
36
|
|
|
37
37
|
// packages/core/table/activityColumns.ts
|