nolo-cli 0.16.0-alpha.2 → 0.16.0-alpha.21
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-QAUS6B7J.js → _executeModel-GRCQXT5R.js} +51 -45
- package/{action-GUOZYYGN.js → action-LT7BRFLK.js} +10 -9
- package/{addContentAction-QDGHGUBH.js → addContentAction-PL3KKBDH.js} +9 -8
- package/{addDialogAgentAction-Z4YCYZIV.js → addDialogAgentAction-FCMSKYAF.js} +8 -7
- package/{agentDeleteCommand-365DMKHW.js → agentDeleteCommand-WNL3CNQX.js} +32 -29
- package/{agentEmailCommands-TQMXL36I.js → agentEmailCommands-MPEUMRAS.js} +63 -57
- package/{agentListCommands-6B5X4RC6.js → agentListCommands-YO4AOQMS.js} +31 -28
- package/{agentMachineCommands-LOEARB6V.js → agentMachineCommands-WYM6YRYJ.js} +30 -27
- package/{agentPullCommand-6HWUT3SW.js → agentPullCommand-ZZGU5KOY.js} +4 -4
- package/agentRecordCommands-BVWSHMIY.js +105 -0
- package/{agentRunCommand-SGMH67WT.js → agentRunCommand-E3ZI6RSF.js} +64 -55
- package/{agentRunControl-6ADXVYMR.js → agentRunControl-Y5AFH5PQ.js} +24 -1
- package/{agentRuntimeLocal-YSYZ33ER.js → agentRuntimeLocal-P4VGX6H6.js} +26 -25
- package/{agentSlice-IVE735EV.js → agentSlice-D33GU3JL.js} +9 -8
- package/{appDeleteCommands-6QYOO3JB.js → appDeleteCommands-VA4R2SWX.js} +29 -26
- package/{appDeployCommands-WTCT6XO6.js → appDeployCommands-JWMWQNG6.js} +29 -26
- package/{appDeployStatusCommands-CGWGZJKB.js → appDeployStatusCommands-KYXGLZSQ.js} +29 -26
- package/{appGetCommands-O4OCAMRW.js → appGetCommands-ELOO3JG6.js} +29 -26
- package/{appListCommands-UENFP4XY.js → appListCommands-SJUW4RLW.js} +29 -26
- package/{authCommand-YFTR3347.js → authCommand-WJZPOLSS.js} +16 -9
- package/{authCommands-YXGOXNBZ.js → authCommands-XTBV7OFZ.js} +6 -5
- package/{chunk-RKM3K52F.js → chunk-34WPV75U.js} +23 -2
- package/{chunk-VPTJB4HM.js → chunk-3ND52WIL.js} +2 -5
- package/{chunk-SOTZ6RDN.js → chunk-3Q7WHGCB.js} +1 -1
- package/{chunk-KKY4B2Q2.js → chunk-4PWB7JRR.js} +4 -1
- package/{chunk-U7LEGLEB.js → chunk-4T5F7YZQ.js} +1 -1
- package/{chunk-OQMPU2ML.js → chunk-5PGGCJGV.js} +6 -6
- package/chunk-7BUYEZ6U.js +671 -0
- package/{chunk-AS3ZQ3O2.js → chunk-7OBMZCRD.js} +1 -1
- package/{chunk-WA6KZL5V.js → chunk-AAODAAUQ.js} +23 -20
- package/{chunk-GRTFNYLR.js → chunk-AKVLLMOU.js} +3 -3
- package/{chunk-QLUFR47U.js → chunk-AL2V7U3E.js} +1 -1
- package/{chunk-MTU75CZ2.js → chunk-B5TOXZAK.js} +1 -1
- package/{chunk-QZVGMD5F.js → chunk-BE2GNT5E.js} +2 -8
- package/{chunk-JKWWVF2I.js → chunk-D3HVJJIA.js} +1 -1
- package/{chunk-B4KT7RN2.js → chunk-DKZFOK24.js} +18 -89
- package/chunk-DL6EPNIK.js +50 -0
- package/{chunk-YYIRR6QC.js → chunk-E5KQTMMJ.js} +212 -250
- package/{chunk-4QQFLN5C.js → chunk-EGPCU42M.js} +58 -8
- package/{chunk-XVP3C2KY.js → chunk-ELT65PZW.js} +2 -2
- package/{chunk-EMXI3N3Z.js → chunk-ENP2ELIL.js} +5 -5
- package/{chunk-6565R2TI.js → chunk-EXAEHRLI.js} +112 -191
- package/chunk-FQZZLA3C.js +223 -0
- package/{chunk-WPN6RMDF.js → chunk-GMZZ5EKJ.js} +3 -3
- package/{chunk-RSYUDGGZ.js → chunk-HQNPCMWL.js} +3 -3
- package/{chunk-OGGHETUE.js → chunk-HQPG2PIV.js} +62 -19
- package/{chunk-4NLUNENX.js → chunk-IQZ6TGVW.js} +10 -3
- package/{chunk-VE6XMVKG.js → chunk-J67FKTTY.js} +330 -213
- package/{chunk-G2MKOQCB.js → chunk-JFE7XW4D.js} +1 -1
- package/{setDialogExtraReferencesAction-2VLGWQKG.js → chunk-JLA4FXYC.js} +2 -17
- package/{chunk-OOIN7HSO.js → chunk-JP7REMYP.js} +19 -1
- package/chunk-KFEVY3ST.js +255 -0
- package/{chunk-I66RU7P7.js → chunk-KKWJ5VPZ.js} +1 -1
- package/{chunk-WRN5EQT7.js → chunk-L2RRMXNJ.js} +13 -4
- package/{chunk-ISYE6GZB.js → chunk-L6NVTGI7.js} +1 -1
- package/{chunk-HRQCKQA5.js → chunk-MUCU6ATG.js} +8 -257
- package/{chunk-BFRVXJJJ.js → chunk-MUIT5AAM.js} +112 -27
- package/{chunk-WNLPAOIT.js → chunk-MVQ4TBSD.js} +1 -1
- package/{chunk-O53CP2QR.js → chunk-N2HYIBLH.js} +6 -6
- package/{chunk-524BDL33.js → chunk-O6W2O2DA.js} +1 -15
- package/{chunk-YC3DJILJ.js → chunk-PUSK7HXJ.js} +64 -22
- package/{chunk-OOSFSFMA.js → chunk-R5V5G73M.js} +2 -0
- package/{chunk-4IJYA27C.js → chunk-RG2U2MTJ.js} +1 -1
- package/{chunk-Z24FGIU2.js → chunk-RIDWN7AP.js} +34 -15
- package/{chunk-IKXL2HZ3.js → chunk-RK5NYQEL.js} +1 -1
- package/{chunk-QLFCNUVQ.js → chunk-RUTSBLDM.js} +1629 -261
- package/{chunk-TTGAVETO.js → chunk-RVOUXDFU.js} +5 -5
- package/{chunk-JTINRTBT.js → chunk-SKDNBYZK.js} +2 -2
- package/{chunk-KMQPSTMJ.js → chunk-TRT4I4UD.js} +2 -2
- package/{chunk-EHLHSX7R.js → chunk-UB4RYYNQ.js} +9 -2
- package/{chunk-N5424GSW.js → chunk-UGUW3FHG.js} +4 -4
- package/{chunk-YNHQIXX5.js → chunk-UIOYWBU7.js} +395 -326
- package/chunk-V5R4NZP2.js +78 -0
- package/{chunk-MYMMNKYL.js → chunk-VNAEBGDK.js} +156 -6
- package/{chunk-J55UHASN.js → chunk-VST53WEL.js} +1 -1
- package/{chunk-6MHDWKOT.js → chunk-VVKQFITN.js} +25 -12
- package/{chunk-W4NVOSFF.js → chunk-WFHXMLHZ.js} +1 -1
- package/{chunk-H33743XH.js → chunk-WJRJDX2W.js} +1 -1
- package/chunk-X4Q4UZEY.js +26 -0
- package/{chunk-E237VE6U.js → chunk-XFYDGBXL.js} +4 -4
- package/{chunk-JS33TCQ3.js → chunk-XHG22OEX.js} +4 -4
- package/{chunk-DVRHHFEA.js → chunk-XMLRJUU5.js} +1 -1
- package/{chunk-V2J635L5.js → chunk-XOIF2TNF.js} +2 -2
- package/{chunk-SFXYKGK2.js → chunk-XRZJGPFI.js} +7 -7
- package/chunk-ZHXJ6M7T.js +27 -0
- package/chunk-ZZ2MH7LE.js +84 -0
- package/{cliExecutor-K3F7DMRO.js → cliExecutor-DNE7TCC4.js} +2 -2
- package/codingSkills-36KN5NQT.js +48 -0
- package/{createAgentAutomationAction-TS6NNZ4X.js → createAgentAutomationAction-ONKZ46XE.js} +22 -21
- package/{createDialogAction-5HVQ33EX.js → createDialogAction-7QWJEBKU.js} +24 -23
- package/{createPageAction-4F3ZGQJD.js → createPageAction-PB3KXZIA.js} +28 -27
- package/{dbSlice-OP6UPXKA.js → dbSlice-CGSRFJN3.js} +8 -7
- package/{deleteFile-WPWVZE4B.js → deleteFile-WDZ3VM7B.js} +3 -3
- package/{dialogCommands-ZL6L24BS.js → dialogCommands-YZFU4Q26.js} +30 -27
- package/{dialogSlice-FAWUQDJW.js → dialogSlice-53B5ISGQ.js} +22 -21
- package/{docCreateCommands-LYROQTFH.js → docCreateCommands-LOUC5PFB.js} +28 -25
- package/{docDeleteCommands-6TWGTZNR.js → docDeleteCommands-HHPGT4BR.js} +29 -26
- package/{docReadCommands-PRULNF26.js → docReadCommands-YPSN4HEF.js} +28 -25
- package/{docStore-2UHVWLTV.js → docStore-LJXXRB5W.js} +23 -22
- package/{docUpdateCommands-NNYYWJBI.js → docUpdateCommands-CJCZO54M.js} +28 -25
- package/{fetchMessages-KTNM7QAR.js → fetchMessages-BMGVZVSE.js} +4 -3
- package/{getPricing-UGDJHI7M.js → getPricing-RYY6OBA4.js} +4 -4
- package/handleSendMessageAction-ICGX4QCM.js +402 -0
- package/index.js +68 -68
- package/{localDialogRead-2VRI24F4.js → localDialogRead-HQZPVIE3.js} +1 -1
- package/{localRuntimeDb-LGDF6FQP.js → localRuntimeDb-THJZGAOJ.js} +1 -1
- package/{machineCommands-JQPEQFSE.js → machineCommands-YLDZXK4D.js} +64 -58
- package/{machineWsRunDispatch-FFFNWVEW.js → machineWsRunDispatch-LTQL3DRE.js} +56 -50
- package/{models-LSCRJJ6P.js → models-5K5G2CZI.js} +2 -2
- package/package.json +1 -1
- package/queryRunOverlay-O4LOMMPO.js +161 -0
- package/{read-HXHAZBKH.js → read-3FMPZPER.js} +3 -3
- package/{readDocTool-VPBDTO4G.js → readDocTool-VSYHKK3V.js} +1 -1
- package/{readlineWorkspace-QSXHSBHA.js → readlineWorkspace-OSPVWNAT.js} +699 -168
- package/{removeDialogAgentAction-HUFVN35S.js → removeDialogAgentAction-OAGA2G3U.js} +11 -10
- package/{runAgentClientLoop-A75BUU6D.js → runAgentClientLoop-76SUKKPX.js} +46 -40
- package/runOverlayPresentation-ZO4VCWEU.js +11 -0
- package/{runtimeDoctorCommands-THIHX2SY.js → runtimeDoctorCommands-E2OUORHK.js} +6 -6
- package/setDialogExtraReferencesAction-JZEXA5SL.js +27 -0
- package/{setPrimaryDialogAgentAction-VB4UV2CC.js → setPrimaryDialogAgentAction-4ZUQQKDG.js} +27 -18
- package/{settingSlice-7JYPQNAC.js → settingSlice-7MNKHZ6R.js} +9 -8
- package/{skillDiscovery-6M2BZUFN.js → skillDiscovery-KJWT7JBU.js} +3 -3
- package/{spaceCommands-4LE45GB7.js → spaceCommands-GIF7MKVD.js} +31 -28
- package/{spaceSlice-444MFUP6.js → spaceSlice-M4PVN5PO.js} +22 -21
- package/{streamAgentChatTurn-DJAE7USZ.js → streamAgentChatTurn-GCKTFSHQ.js} +96 -55
- package/{tableCommands-3P7MJ3PF.js → tableCommands-BEQAGE4I.js} +1 -1
- package/{tools-YB6LXSVN.js → tools-RJVFXOLR.js} +35 -30
- package/{tuiSummaryLlmCaller-QQL3JA5I.js → tuiSummaryLlmCaller-VUNVBRX3.js} +7 -6
- package/types-ZSTJ7MPR.js +7 -0
- package/{updateDialogTitleAction-6HGFBM64.js → updateDialogTitleAction-PSR67DLV.js} +25 -24
- package/agentRecordCommands-DCH2WBL2.js +0 -99
- package/chunk-BYXBJQAS.js +0 -0
- package/handleSendMessageAction-LJPUYNOH.js +0 -215
- package/{chunk-O4BU24WZ.js → chunk-6Y7A3OQQ.js} +3 -3
- package/{chunk-CMKUBIGW.js → chunk-X7W4TNB4.js} +3 -3
- package/{localRuntimeAuthority-TEGCOWX4.js → localRuntimeAuthority-4IXJCHZ7.js} +3 -3
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
messageStreamEnd,
|
|
3
|
-
prepareAndPersistUserMessage,
|
|
4
|
-
resolveHandleSendMessageContext
|
|
5
|
-
} from "./chunk-YNHQIXX5.js";
|
|
6
|
-
import "./chunk-V2J635L5.js";
|
|
7
|
-
import "./chunk-MRC4Q34M.js";
|
|
8
|
-
import "./chunk-MTU75CZ2.js";
|
|
9
|
-
import "./chunk-CWMSB67P.js";
|
|
10
|
-
import {
|
|
11
|
-
streamAgentChatTurn
|
|
12
|
-
} from "./chunk-OQMPU2ML.js";
|
|
13
|
-
import "./chunk-JS33TCQ3.js";
|
|
14
|
-
import "./chunk-SOTZ6RDN.js";
|
|
15
|
-
import "./chunk-Z4NR32XR.js";
|
|
16
|
-
import "./chunk-M76ECQRD.js";
|
|
17
|
-
import "./chunk-4QQFLN5C.js";
|
|
18
|
-
import "./chunk-5MMAK75Q.js";
|
|
19
|
-
import "./chunk-OGGHETUE.js";
|
|
20
|
-
import "./chunk-5CS33IBL.js";
|
|
21
|
-
import "./chunk-JZPBVBIY.js";
|
|
22
|
-
import "./chunk-BYXBJQAS.js";
|
|
23
|
-
import {
|
|
24
|
-
extractCustomId
|
|
25
|
-
} from "./chunk-DFFIZ25G.js";
|
|
26
|
-
import {
|
|
27
|
-
getActiveDialogKey
|
|
28
|
-
} from "./chunk-3ASDTTEI.js";
|
|
29
|
-
import "./chunk-DWLEOOGR.js";
|
|
30
|
-
import "./chunk-HNMXYYJR.js";
|
|
31
|
-
import "./chunk-IKXL2HZ3.js";
|
|
32
|
-
import "./chunk-524BDL33.js";
|
|
33
|
-
import "./chunk-TTGAVETO.js";
|
|
34
|
-
import "./chunk-Y5GCAMGP.js";
|
|
35
|
-
import "./chunk-KX6YBIHG.js";
|
|
36
|
-
import "./chunk-XVP3C2KY.js";
|
|
37
|
-
import {
|
|
38
|
-
readAndWait,
|
|
39
|
-
selectById
|
|
40
|
-
} from "./chunk-SFXYKGK2.js";
|
|
41
|
-
import {
|
|
42
|
-
createDialogMessageKeyAndId
|
|
43
|
-
} from "./chunk-O4BU24WZ.js";
|
|
44
|
-
import "./chunk-I42VC5KR.js";
|
|
45
|
-
import "./chunk-WWC7I6TA.js";
|
|
46
|
-
import "./chunk-JTINRTBT.js";
|
|
47
|
-
import "./chunk-QSJ3HFEF.js";
|
|
48
|
-
import "./chunk-VPTJB4HM.js";
|
|
49
|
-
import "./chunk-DVRHHFEA.js";
|
|
50
|
-
import "./chunk-OOSFSFMA.js";
|
|
51
|
-
import "./chunk-GBRG75BQ.js";
|
|
52
|
-
import "./chunk-3EUW3WEO.js";
|
|
53
|
-
import "./chunk-U6VC4MU4.js";
|
|
54
|
-
import "./chunk-KUG52IAP.js";
|
|
55
|
-
import "./chunk-LCBAMY2M.js";
|
|
56
|
-
import "./chunk-4SN6J65J.js";
|
|
57
|
-
import "./chunk-CF7PE763.js";
|
|
58
|
-
import "./chunk-G3SUCT4W.js";
|
|
59
|
-
import "./chunk-4VNS5WPM.js";
|
|
60
|
-
|
|
61
|
-
// packages/chat/dialog/actions/handleSendMessageAction.ts
|
|
62
|
-
var getDialogConfig = (state, dialogKey) => {
|
|
63
|
-
const resolvedDialogKey = dialogKey ?? getActiveDialogKey();
|
|
64
|
-
if (!resolvedDialogKey) return null;
|
|
65
|
-
const dialog = selectById(state, resolvedDialogKey);
|
|
66
|
-
return dialog ?? null;
|
|
67
|
-
};
|
|
68
|
-
var ensureDialogConfig = async (dispatch, getState, dialogKey) => {
|
|
69
|
-
const state = getState();
|
|
70
|
-
const resolvedDialogKey = dialogKey ?? getActiveDialogKey();
|
|
71
|
-
if (!resolvedDialogKey) return null;
|
|
72
|
-
try {
|
|
73
|
-
const existingDialog = getDialogConfig(state, resolvedDialogKey);
|
|
74
|
-
if (existingDialog && Array.isArray(existingDialog.cybots) && existingDialog.cybots.length > 0) {
|
|
75
|
-
return existingDialog;
|
|
76
|
-
}
|
|
77
|
-
const persistedDialog = await dispatch(readAndWait(resolvedDialogKey)).unwrap();
|
|
78
|
-
if (persistedDialog) return persistedDialog;
|
|
79
|
-
return existingDialog;
|
|
80
|
-
} catch {
|
|
81
|
-
return getDialogConfig(getState(), resolvedDialogKey);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var logQuickChatPerfStage = (startedAt, stage, details = {}) => {
|
|
85
|
-
if (!startedAt) return;
|
|
86
|
-
const now = typeof performance !== "undefined" ? performance.now() : Date.now();
|
|
87
|
-
console.info("[QuickChatPerf]", {
|
|
88
|
-
stage,
|
|
89
|
-
elapsedMs: now - startedAt,
|
|
90
|
-
...typeof performance !== "undefined" ? { atMs: now } : {},
|
|
91
|
-
...details
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
var resolveBrowseContextPrefix = async (message) => {
|
|
95
|
-
try {
|
|
96
|
-
if (typeof window === "undefined" || typeof location === "undefined") return "";
|
|
97
|
-
if (typeof process !== "undefined" && (process.env?.NODE_ENV === "test" || process.env?.BUN_TEST)) return "";
|
|
98
|
-
const host = location.hostname;
|
|
99
|
-
if (host !== "127.0.0.1" && host !== "localhost") return "";
|
|
100
|
-
if (typeof fetch !== "function" || typeof AbortSignal?.timeout !== "function") return "";
|
|
101
|
-
const response = await fetch("/api/desktop/browse-context", {
|
|
102
|
-
method: "POST",
|
|
103
|
-
headers: { "Content-Type": "application/json" },
|
|
104
|
-
body: JSON.stringify({ message }),
|
|
105
|
-
signal: AbortSignal.timeout(2e3)
|
|
106
|
-
});
|
|
107
|
-
if (!response.ok) return "";
|
|
108
|
-
const payload = await response.json();
|
|
109
|
-
if (!payload.context || !payload.context.url) return "";
|
|
110
|
-
const ctx = payload.context;
|
|
111
|
-
const parts = [`[\u5F53\u524D\u6D4F\u89C8\u4E0A\u4E0B\u6587]`, `URL: ${ctx.url}`, `\u6807\u9898: ${ctx.title}`];
|
|
112
|
-
if (ctx.textSnippet) parts.push(`\u6458\u8981: ${ctx.textSnippet.slice(0, 2e3)}`);
|
|
113
|
-
return parts.join("\n");
|
|
114
|
-
} catch {
|
|
115
|
-
return "";
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
var finalizeQuickChatStreamStartupFailure = async (dispatch, dialogConfig, agentKey) => {
|
|
119
|
-
const dialogKey = dialogConfig.dbKey;
|
|
120
|
-
const dialogId = dialogConfig.id ?? (dialogKey ? extractCustomId(dialogKey) : "");
|
|
121
|
-
const { key: msgKey, messageId } = createDialogMessageKeyAndId(dialogId);
|
|
122
|
-
await dispatch(
|
|
123
|
-
messageStreamEnd({
|
|
124
|
-
finalContentBuffer: [
|
|
125
|
-
{
|
|
126
|
-
type: "text",
|
|
127
|
-
text: "[\u9519\u8BEF: \u672A\u80FD\u542F\u52A8\u6A21\u578B\u56DE\u590D\uFF0C\u8BF7\u91CD\u8BD5\u3002]"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
totalUsage: null,
|
|
131
|
-
msgKey,
|
|
132
|
-
agentConfig: {
|
|
133
|
-
dbKey: agentKey
|
|
134
|
-
},
|
|
135
|
-
dialogId,
|
|
136
|
-
dialogKey: dialogKey ?? "",
|
|
137
|
-
messageId,
|
|
138
|
-
reasoningBuffer: ""
|
|
139
|
-
})
|
|
140
|
-
).unwrap?.();
|
|
141
|
-
};
|
|
142
|
-
var handleSendMessageAction = async (args, { dispatch, getState, rejectWithValue }) => {
|
|
143
|
-
try {
|
|
144
|
-
logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-entered", {
|
|
145
|
-
dialogKey: args.dialogKey ?? null
|
|
146
|
-
});
|
|
147
|
-
const dialogConfig = await ensureDialogConfig(dispatch, getState, args.dialogKey);
|
|
148
|
-
if (!dialogConfig) {
|
|
149
|
-
throw new Error(
|
|
150
|
-
"handleSendMessage: Dialog configuration is missing."
|
|
151
|
-
);
|
|
152
|
-
}
|
|
153
|
-
logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-dialog-ready", {
|
|
154
|
-
dialogKey: dialogConfig.dbKey,
|
|
155
|
-
cybotCount: dialogConfig.cybots?.length ?? 0
|
|
156
|
-
});
|
|
157
|
-
await dispatch(
|
|
158
|
-
prepareAndPersistUserMessage({
|
|
159
|
-
userInput: args.userInput,
|
|
160
|
-
dialogConfig
|
|
161
|
-
})
|
|
162
|
-
).unwrap();
|
|
163
|
-
logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-user-persisted", {
|
|
164
|
-
dialogKey: dialogConfig.dbKey
|
|
165
|
-
});
|
|
166
|
-
const { agentKeyToUse, effectiveRuntimeOptions } = resolveHandleSendMessageContext({
|
|
167
|
-
dialogConfig,
|
|
168
|
-
targetAgentKey: args.targetAgentKey,
|
|
169
|
-
runtimeOptions: args.runtimeOptions
|
|
170
|
-
});
|
|
171
|
-
if (!agentKeyToUse) {
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
const userInputText = typeof args.userInput === "string" ? args.userInput : "";
|
|
175
|
-
const isDesktopContext = typeof window !== "undefined" && typeof location !== "undefined" && (location.hostname === "127.0.0.1" || location.hostname === "localhost");
|
|
176
|
-
const browseContextPrefix = isDesktopContext ? await resolveBrowseContextPrefix(userInputText) : "";
|
|
177
|
-
const effectiveUserInput = browseContextPrefix ? `${browseContextPrefix}
|
|
178
|
-
|
|
179
|
-
${userInputText}` : args.userInput;
|
|
180
|
-
const streamResult = await dispatch(
|
|
181
|
-
streamAgentChatTurn({
|
|
182
|
-
agentKey: agentKeyToUse,
|
|
183
|
-
userInput: effectiveUserInput,
|
|
184
|
-
dialogKey: dialogConfig.dbKey,
|
|
185
|
-
parentMessageId: void 0,
|
|
186
|
-
runtimeOptions: effectiveRuntimeOptions,
|
|
187
|
-
quickChatPerfStartedAt: args.quickChatPerfStartedAt
|
|
188
|
-
})
|
|
189
|
-
).unwrap();
|
|
190
|
-
if (args.quickChatPerfStartedAt && streamResult === void 0) {
|
|
191
|
-
logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-stream-empty", {
|
|
192
|
-
dialogKey: dialogConfig.dbKey,
|
|
193
|
-
agentKey: agentKeyToUse
|
|
194
|
-
});
|
|
195
|
-
await finalizeQuickChatStreamStartupFailure(
|
|
196
|
-
dispatch,
|
|
197
|
-
dialogConfig,
|
|
198
|
-
agentKeyToUse
|
|
199
|
-
);
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
logQuickChatPerfStage(args.quickChatPerfStartedAt, "handle-send-message-stream-finished", {
|
|
203
|
-
dialogKey: dialogConfig.dbKey,
|
|
204
|
-
agentKey: agentKeyToUse
|
|
205
|
-
});
|
|
206
|
-
return;
|
|
207
|
-
} catch (error) {
|
|
208
|
-
console.error("handleSendMessage failed:", error);
|
|
209
|
-
const errorMessage = error instanceof Error ? error.message : typeof error === "string" ? error : error?.message || error?.error || String(error);
|
|
210
|
-
return rejectWithValue(errorMessage);
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
export {
|
|
214
|
-
handleSendMessageAction
|
|
215
|
-
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asNonEmptyStringArray
|
|
3
|
-
} from "./chunk-I42VC5KR.js";
|
|
4
1
|
import {
|
|
5
2
|
asOptionalFiniteNumber
|
|
6
3
|
} from "./chunk-WWC7I6TA.js";
|
|
4
|
+
import {
|
|
5
|
+
asNonEmptyStringArray
|
|
6
|
+
} from "./chunk-I42VC5KR.js";
|
|
7
7
|
import {
|
|
8
8
|
asTrimmedString
|
|
9
9
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveLaunchableCodexCommand
|
|
3
|
-
} from "./chunk-JBTJAPUF.js";
|
|
4
1
|
import {
|
|
5
2
|
buildCliPrompt
|
|
6
3
|
} from "./chunk-ATNTHIZI.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveLaunchableCodexCommand
|
|
6
|
+
} from "./chunk-JBTJAPUF.js";
|
|
7
7
|
|
|
8
8
|
// packages/ai/agent/cliExecutor.ts
|
|
9
9
|
import { exec, execSync, spawn } from "child_process";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
isLevelLockError
|
|
13
13
|
} from "./chunk-CF2WZF4N.js";
|
|
14
14
|
import "./chunk-6WD3OOJS.js";
|
|
15
|
-
import {
|
|
16
|
-
toErrorMessage
|
|
17
|
-
} from "./chunk-HNMXYYJR.js";
|
|
18
15
|
import {
|
|
19
16
|
resolveNoloHome
|
|
20
17
|
} from "./chunk-LM6IYQ3F.js";
|
|
18
|
+
import {
|
|
19
|
+
toErrorMessage
|
|
20
|
+
} from "./chunk-HNMXYYJR.js";
|
|
21
21
|
import "./chunk-4VNS5WPM.js";
|
|
22
22
|
|
|
23
23
|
// packages/cli/localRuntimeAuthority.ts
|