nolo-cli 0.153.0-alpha.1 → 0.153.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-4KHFMQT4.js → _executeModel-NID5KIUZ.js} +46 -48
- package/{accountResolver-7RYB4D2P.js → accountResolver-55EDKEIK.js} +1 -1
- package/{action-SXJD5N5R.js → action-GPPJC5TI.js} +4 -4
- package/{addContentAction-ZV774PHH.js → addContentAction-BI6RDRTQ.js} +8 -8
- package/{addDialogAgentAction-A6SMKAGH.js → addDialogAgentAction-4RJYUSIK.js} +7 -7
- package/{agentDeleteCommand-EKFV5FC7.js → agentDeleteCommand-6HYGISLC.js} +59 -60
- package/{agentEmailCommands-MNV3MUH5.js → agentEmailCommands-Q7UW4SRL.js} +61 -62
- package/{agentListCommands-E6FYKXC3.js → agentListCommands-MM5OLPBY.js} +23 -23
- package/{agentMachineCommands-2GFUU7GF.js → agentMachineCommands-V5TSZ2QN.js} +22 -21
- package/{agentProviderCommands-HL6MBLCL.js → agentProviderCommands-MKG2OOEY.js} +2 -2
- package/{agentRecordCommands-LPHHTEPM.js → agentRecordCommands-P2YXZEWY.js} +59 -60
- package/{agentRunCommand-JSPW7W32.js → agentRunCommand-B2MBD56K.js} +61 -61
- package/{agentRunControl-IFM7IGMG.js → agentRunControl-2C5GM3BW.js} +5 -5
- package/{agentRuntimeLocal-ARS4TV77.js → agentRuntimeLocal-RJKTDWNN.js} +16 -16
- package/{agentSlice-IP4DZNNV.js → agentSlice-636W6M5A.js} +8 -8
- package/{appDeleteCommands-JHTLKQSX.js → appDeleteCommands-7EOM274T.js} +21 -21
- package/{appDeployCommands-5V26M2KA.js → appDeployCommands-2I3QYJ5G.js} +21 -21
- package/{appDeployStatusCommands-SBSPS627.js → appDeployStatusCommands-LEML7FPR.js} +21 -21
- package/{appGetCommands-NKPD2L45.js → appGetCommands-ZQSVHGQM.js} +21 -21
- package/{appListCommands-ZOGRZFYY.js → appListCommands-BVA7XKQO.js} +21 -21
- package/{authCommand-QYN47CQD.js → authCommand-NIV3DKPF.js} +13 -293
- package/{authCommands-77CHYBGF.js → authCommands-AMNIAKEG.js} +2 -2
- package/{builtinSkillRegistry-TDQ6JB2E.js → builtinSkillRegistry-H3AY27TR.js} +3 -3
- package/{chromeCommands-OBBNJCLS.js → chromeCommands-IY4NVSXZ.js} +17 -10
- package/{chunk-SW4S4XYB.js → chunk-2AB2HA4M.js} +84 -34
- package/{chunk-4PXHOOFA.js → chunk-2MTE2PEH.js} +3 -3
- package/{chunk-4YRTZIVN.js → chunk-2SGAI64X.js} +2 -2
- package/{chunk-QFEW2ULV.js → chunk-32ZKZET7.js} +1 -1
- package/{chunk-GQV5KHJU.js → chunk-3C2QLERX.js} +1 -1
- package/{chunk-XPWGOTBQ.js → chunk-3L2WKC3W.js} +1 -8
- package/{chunk-WD4XYDYC.js → chunk-3WIXU4XO.js} +224 -1
- package/{chunk-6LIKQYG4.js → chunk-42QZQ6QG.js} +21 -23
- package/{chunk-YBNHPX4S.js → chunk-4RJJDA57.js} +1 -1
- package/{chunk-PFBIXTFB.js → chunk-6CTXMBXD.js} +56 -30
- package/{chunk-HL3O3PCQ.js → chunk-6TF64IF2.js} +2 -2
- package/{chunk-PMYAE4OZ.js → chunk-7HVMGI5M.js} +3 -3
- package/{chunk-BNDETALN.js → chunk-7NSQJKGA.js} +45 -13
- package/{chunk-UUPR3TD7.js → chunk-7RF4O6AT.js} +1 -3
- package/{chunk-HSJPKBLC.js → chunk-ANJTRG52.js} +2 -2
- package/{chunk-2GGXHQIW.js → chunk-BLVSFYQ3.js} +4 -2
- package/{chunk-ISQL4V7C.js → chunk-C3OK72G3.js} +1 -1
- package/{chunk-CHCS6XPJ.js → chunk-CGFNDIKK.js} +65 -0
- package/{chunk-5MM7NNO6.js → chunk-CNWKLQRL.js} +8 -3
- package/{chunk-F32Z66T4.js → chunk-CON6SI7N.js} +1 -1
- package/{chunk-AHYBQP3M.js → chunk-CQFBGOKS.js} +3 -3
- package/{chunk-HIQ4GF53.js → chunk-DC3SZCRR.js} +7 -3
- package/{chunk-RVWMAFIT.js → chunk-FYYSDHVQ.js} +1 -1
- package/{chunk-TYYRSFBG.js → chunk-HB4XPBC7.js} +3 -35
- package/{chunk-6MJNEXUU.js → chunk-HGDKT2D6.js} +4 -0
- package/{chunk-KMM2X7LP.js → chunk-HHNNUPAB.js} +3 -3
- package/{chunk-JWTSWUPS.js → chunk-HSPGMGTN.js} +7 -6
- package/{chunk-UBUH2TCC.js → chunk-I2RMFLLH.js} +2 -2
- package/{chunk-VJXHL6MH.js → chunk-ICRRXBRN.js} +3 -3
- package/{chunk-XS47QOFV.js → chunk-IE5PXKVU.js} +2 -264
- package/{chunk-T5BHHWA5.js → chunk-IJVJUAHF.js} +7 -7
- package/{chunk-KFHQQ3NO.js → chunk-INFHX73M.js} +1 -1
- package/{chunk-XRUSXPCQ.js → chunk-IPAW7XLD.js} +57 -4
- package/{chunk-PLSVXHSA.js → chunk-IRTOYSA2.js} +3 -3
- package/{chunk-RQ6E3G5L.js → chunk-IUMO3L46.js} +18 -2
- package/{chunk-GCKHQECX.js → chunk-IYBIRCQV.js} +1 -1
- package/{chunk-ILU2NPWY.js → chunk-J2ATF74A.js} +2 -2
- package/{chunk-XZNCX52W.js → chunk-JGRPBIZZ.js} +1 -1
- package/{chunk-E2AKSW7L.js → chunk-JPJGMOIM.js} +2 -2
- package/{chunk-44WXLHFI.js → chunk-K43ZF2C3.js} +1 -1
- package/{chunk-I2ZMGXXF.js → chunk-KFHREHUQ.js} +1 -1
- package/{chunk-MZHOLWW5.js → chunk-KKQAAL57.js} +3 -3
- package/{chunk-JKMLSTZK.js → chunk-KLA62VVE.js} +3 -3
- package/{chunk-EHFS4XZO.js → chunk-KXFN2UYT.js} +12 -8
- package/{chunk-DYYMIUN4.js → chunk-L6EQV5OC.js} +4 -4
- package/{chunk-EZVK3N5L.js → chunk-LOEO7LRC.js} +56 -0
- package/{chunk-EDX5XSJM.js → chunk-M2P3OGXZ.js} +3 -3
- package/{chunk-LC23WBCU.js → chunk-M3KPY3TH.js} +6 -6
- package/{chunk-YVLQXTUB.js → chunk-MM3662RS.js} +1 -1
- package/{chunk-CBHGZRCE.js → chunk-MYOH447Z.js} +1 -1
- package/{chunk-A4MW3YZL.js → chunk-NDZOXXIM.js} +18 -4
- package/{chunk-I5V3V2H4.js → chunk-OAVSTXC7.js} +37 -25
- package/{chunk-36OMEXXR.js → chunk-OON4OBWI.js} +1 -1
- package/{chunk-VNP54NZL.js → chunk-P42RHYS3.js} +14 -14
- package/chunk-PLQYH5XK.js +2685 -0
- package/{chunk-SEJ5OS6F.js → chunk-PXYBUFDB.js} +4 -0
- package/{chunk-USHQX6VT.js → chunk-QPY264HO.js} +1 -1
- package/{chunk-XCA6HQGS.js → chunk-QQ72PAGR.js} +5 -5
- package/{chunk-TNIX77YM.js → chunk-R5GO3YZP.js} +34 -1
- package/{chunk-AIZE5TDM.js → chunk-SPKLALBU.js} +2 -2
- package/{chunk-PPU323UE.js → chunk-SRGKEBQ6.js} +184 -67
- package/{chunk-64PFYIAY.js → chunk-STAG2AHQ.js} +677 -640
- package/{chunk-K2AER7RX.js → chunk-SUKSWFLP.js} +2 -2
- package/{chunk-I4SN4NUQ.js → chunk-TRW43TSC.js} +1 -1
- package/{chunk-D2QN6CTI.js → chunk-UCLSOLX4.js} +8 -6
- package/{chunk-TYJ5XFEA.js → chunk-UFYBYB26.js} +1 -1
- package/{chunk-SCMHQUMK.js → chunk-US6MKPE7.js} +1 -1
- package/{chunk-ZIWPQEFU.js → chunk-VYNMQ6HW.js} +1 -28
- package/{chunk-IJERIUXS.js → chunk-WRCZXJ4N.js} +6 -3
- package/chunk-Y5GCAMGP.js +9 -0
- package/{chunk-XTWDF6RU.js → chunk-Y5NUMYMH.js} +21 -17
- package/{chunk-GKXCHNTE.js → chunk-Y6ORVLSS.js} +1 -1
- package/{chunk-RSHPU4PD.js → chunk-YANF2RR4.js} +2 -2
- package/{chunk-EYWJT7A2.js → chunk-YPG7TUQD.js} +3 -3
- package/{chunk-ZF6526IQ.js → chunk-ZEY4NJRE.js} +2 -2
- package/{chunk-74RAWNQN.js → chunk-ZVQHBIWV.js} +6 -6
- package/{chunk-DTODXBHK.js → chunk-ZWG3C7VI.js} +2 -2
- package/{commandRegistry-VBALU4Q4.js → commandRegistry-6MVZTG5Y.js} +79 -87
- package/{contentThunks-HPY2QNWZ.js → contentThunks-F7XJS5WV.js} +21 -21
- package/{createAgentAutomationAction-6ADGPGY6.js → createAgentAutomationAction-Z2AW4ZPK.js} +21 -21
- package/{createDialogAction-6ABMSEW2.js → createDialogAction-PWG7C7VG.js} +22 -22
- package/{createPageAction-OC4NNRPC.js → createPageAction-2L5Q2KOB.js} +22 -23
- package/{dbSlice-J37OGIXH.js → dbSlice-DC2J53RC.js} +7 -7
- package/{deleteFile-6JWDDRVP.js → deleteFile-KYWEMNFX.js} +4 -4
- package/{dialogCommands-EIGBRSQP.js → dialogCommands-MUFYPVMP.js} +24 -23
- package/{dialogSlice-SI45KJOH.js → dialogSlice-G5EIKHJA.js} +20 -20
- package/{docCreateCommands-3JDBBMU5.js → docCreateCommands-OPWOKG62.js} +19 -19
- package/{docDeleteCommands-5M6C7UUB.js → docDeleteCommands-IBV3WMKI.js} +20 -20
- package/{docReadCommands-DUB57F6V.js → docReadCommands-LVALHMLZ.js} +19 -19
- package/{docStore-L43MDEK4.js → docStore-CUFUJQGC.js} +8 -8
- package/{docUpdateCommands-WF7MAMPK.js → docUpdateCommands-Z5OUEAK7.js} +19 -19
- package/{getPricing-FKK3F5EJ.js → getPricing-TX35D7PI.js} +3 -3
- package/{handleSendMessageAction-BSMU7SVS.js → handleSendMessageAction-26HUY2ZV.js} +34 -34
- package/index.js +7 -7
- package/{localRuntimeAdapter-N5PDR26F.js → localRuntimeAdapter-SV22ZUP3.js} +59 -58
- package/{machineCommands-TMXJKZCE.js → machineCommands-2G5ESGDC.js} +63 -62
- package/{machineWsRunDispatch-25H63KEH.js → machineWsRunDispatch-NXKGHYPP.js} +58 -59
- package/{memberThunks-66DH6ABQ.js → memberThunks-2DWKLE6W.js} +8 -8
- package/{models-LAS4B2B5.js → models-PZQC7VV4.js} +2 -2
- package/package.json +4 -2
- package/{profileConfig-ZGOFORWV.js → profileConfig-KN3N2BLF.js} +7 -1
- package/{providerPresetApply-MY66I6NT.js → providerPresetApply-GSJI4JBJ.js} +6 -6
- package/{providerRegistry-QOE2FT57.js → providerRegistry-TSSTPGWF.js} +6 -6
- package/{read-DC4NUGN6.js → read-L7QEJETH.js} +5 -5
- package/{readDocTool-NCJ5NT25.js → readDocTool-QELXV2GW.js} +1 -1
- package/{readlineWorkspace-BS7WVCL2.js → readlineWorkspace-AYCWJVXF.js} +334 -123
- package/{removeDialogAgentAction-E2H3OZU6.js → removeDialogAgentAction-376XSUP2.js} +9 -9
- package/{runAgentClientLoop-BVKRI4SY.js → runAgentClientLoop-SJQUUBEC.js} +50 -47
- package/{runtimeDoctorCommands-GIOGC5SC.js → runtimeDoctorCommands-56NWKNON.js} +5 -5
- package/{secretCommands-ZXZRLR3R.js → secretCommands-DNY56NSU.js} +11 -1
- package/{setDialogExtraReferencesAction-SITRPMYU.js → setDialogExtraReferencesAction-QBDSH63D.js} +8 -8
- package/{setPrimaryDialogAgentAction-U7N45TGC.js → setPrimaryDialogAgentAction-537QFGW3.js} +9 -9
- package/settingThunks-4Z43ZSAT.js +923 -0
- package/{spaceCommands-5EWREUWS.js → spaceCommands-AWIIP7J5.js} +19 -19
- package/{streamAgentChatTurn-B4VFUV52.js → streamAgentChatTurn-OITCT4FF.js} +55 -106
- package/{switchDialogAgentAction-OMGBD3N2.js → switchDialogAgentAction-CSO6AKRL.js} +7 -7
- package/{tableCommands-U3QDY4L6.js → tableCommands-LBH3QPPO.js} +1 -1
- package/{toolApiClient-7WSJJJBV.js → toolApiClient-HGNO53TC.js} +2 -2
- package/{tools-5WYAUKMK.js → tools-KH4MMAFG.js} +39 -40
- package/{tuiSummaryLlmCaller-PPU7YDBG.js → tuiSummaryLlmCaller-KLK6K3Q3.js} +8 -8
- package/{updateCommands-NQXAGFM7.js → updateCommands-LXZLG44Y.js} +2 -2
- package/{updateDialogTitleAction-YJHDKHFX.js → updateDialogTitleAction-PDJUW7Z7.js} +22 -22
- package/{workloadLifecycle-36DXRZKU.js → workloadLifecycle-6O6PMISX.js} +2 -2
- package/chunk-IA7TRNNR.js +0 -11
- package/chunk-OFVFQYIE.js +0 -7012
- package/chunk-W4S6OTSC.js +0 -35
- package/clipboardy-GCO3GT3I.js +0 -11793
- package/settingThunks-Y7SVJOMZ.js +0 -1371
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
resolvePlatformHostedCredentialProvider,
|
|
5
5
|
resolvePlatformProxyChatGatewayEndpoint,
|
|
6
6
|
resolvePlatformResponsesEndpoint
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I2RMFLLH.js";
|
|
8
8
|
import {
|
|
9
9
|
CLI_PROVIDER_VALUES
|
|
10
10
|
} from "./chunk-5BHQICF2.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
CLIENT_VERSION_TOO_OLD_CODE,
|
|
22
22
|
buildClientVersionGateErrorDetail,
|
|
23
23
|
evaluatePlatformHostedClientVersionGate
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CGFNDIKK.js";
|
|
25
25
|
import {
|
|
26
26
|
asTrimmedLowercaseString
|
|
27
27
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -7,15 +7,17 @@ import {
|
|
|
7
7
|
listUserRecordsFromServers,
|
|
8
8
|
readDbRecordFromServers,
|
|
9
9
|
readLiveDbRecordAfterTombstoneMerge
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QPY264HO.js";
|
|
11
|
+
import {
|
|
12
|
+
parsePositiveFiniteNumberOrFallback
|
|
13
|
+
} from "./chunk-Y5GCAMGP.js";
|
|
11
14
|
import {
|
|
12
15
|
fetchWithTransientRetry
|
|
13
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KFHREHUQ.js";
|
|
14
17
|
import {
|
|
15
18
|
DRAIN_EXHAUSTED_USER_MESSAGE,
|
|
16
|
-
isDrainExhaustedResponse
|
|
17
|
-
|
|
18
|
-
} from "./chunk-XPWGOTBQ.js";
|
|
19
|
+
isDrainExhaustedResponse
|
|
20
|
+
} from "./chunk-3L2WKC3W.js";
|
|
19
21
|
import {
|
|
20
22
|
buildDialogAttachmentPlan,
|
|
21
23
|
extractFileContentIds
|
|
@@ -40,7 +42,7 @@ import {
|
|
|
40
42
|
} from "./chunk-I42VC5KR.js";
|
|
41
43
|
import {
|
|
42
44
|
resolveRunsDir
|
|
43
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-MM3662RS.js";
|
|
44
46
|
import {
|
|
45
47
|
isRecord
|
|
46
48
|
} from "./chunk-KUG52IAP.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-L7QEJETH.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`);
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
noloAgentId
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y6ORVLSS.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeServerOrigin
|
|
6
6
|
} from "./chunk-CF7PE763.js";
|
|
7
|
-
import {
|
|
8
|
-
asTrimmedLowercaseString
|
|
9
|
-
} from "./chunk-QSJ3HFEF.js";
|
|
10
|
-
|
|
11
|
-
// packages/app/theme/fontPreference.ts
|
|
12
|
-
var FONT_PRESET_ALIASES = {
|
|
13
|
-
system: "system",
|
|
14
|
-
default: "system",
|
|
15
|
-
hei: "hei",
|
|
16
|
-
heiti: "hei",
|
|
17
|
-
sans: "hei",
|
|
18
|
-
song: "song",
|
|
19
|
-
songti: "song",
|
|
20
|
-
serif: "song",
|
|
21
|
-
kai: "kai",
|
|
22
|
-
kaiti: "kai",
|
|
23
|
-
"kai-ti": "kai",
|
|
24
|
-
"fang-song": "fang-song",
|
|
25
|
-
fangsong: "fang-song",
|
|
26
|
-
"fang song": "fang-song"
|
|
27
|
-
};
|
|
28
|
-
var normalizeFontPreset = (value) => {
|
|
29
|
-
const normalized = asTrimmedLowercaseString(value);
|
|
30
|
-
if (!Object.hasOwn(FONT_PRESET_ALIASES, normalized)) return void 0;
|
|
31
|
-
return FONT_PRESET_ALIASES[normalized];
|
|
32
|
-
};
|
|
33
7
|
|
|
34
8
|
// packages/ai/policy/types.ts
|
|
35
9
|
var DEFAULT_AGENT_BASE_POLICY = {
|
|
@@ -147,7 +121,6 @@ var normalizeAgentUpdateFieldList = (value, fallback = DEFAULT_AUTO_APPROVED_SEL
|
|
|
147
121
|
};
|
|
148
122
|
|
|
149
123
|
export {
|
|
150
|
-
normalizeFontPreset,
|
|
151
124
|
DEFAULT_AGENT_BASE_POLICY,
|
|
152
125
|
DEFAULT_USER_PREFERENCE_PROFILE,
|
|
153
126
|
AGENT_UPDATE_FIELD_NAMES,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectIdentityToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PXYBUFDB.js";
|
|
4
4
|
import {
|
|
5
5
|
isAbortError
|
|
6
6
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -996,7 +996,7 @@ function peek(draft, prop) {
|
|
|
996
996
|
return source[prop];
|
|
997
997
|
}
|
|
998
998
|
function isRelocatedBaseRef(state, prop, value) {
|
|
999
|
-
if (state.type_ !== 1 || !state.allIndicesReassigned_ ||
|
|
999
|
+
if (state.type_ !== 1 || !state.allIndicesReassigned_ || !isDraftable(value) || value[DRAFT_STATE]) {
|
|
1000
1000
|
return false;
|
|
1001
1001
|
}
|
|
1002
1002
|
return state.baseRefs_.has(value);
|
|
@@ -1219,8 +1219,11 @@ function currentImpl(value) {
|
|
|
1219
1219
|
} else {
|
|
1220
1220
|
copy = shallowCopy(value, true);
|
|
1221
1221
|
}
|
|
1222
|
+
const source = copy;
|
|
1223
|
+
if (isSet(copy))
|
|
1224
|
+
copy = /* @__PURE__ */ new Set();
|
|
1222
1225
|
each(
|
|
1223
|
-
|
|
1226
|
+
source,
|
|
1224
1227
|
(key, childValue) => {
|
|
1225
1228
|
set(copy, key, currentImpl(childValue));
|
|
1226
1229
|
},
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// packages/core/positiveFiniteNumberOrFallback.ts
|
|
2
|
+
function parsePositiveFiniteNumberOrFallback(value, fallback) {
|
|
3
|
+
const parsed = Number(value);
|
|
4
|
+
return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export {
|
|
8
|
+
parsePositiveFiniteNumberOrFallback
|
|
9
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KKQAAL57.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-42QZQ6QG.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SRGKEBQ6.js";
|
|
22
22
|
import {
|
|
23
23
|
classifyApiError,
|
|
24
24
|
classifyGenerationError,
|
|
25
25
|
extractErrorDiagnostics
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-IJVJUAHF.js";
|
|
27
27
|
import {
|
|
28
28
|
createSSEParser,
|
|
29
29
|
createToolRunId,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunSetPending,
|
|
33
33
|
toolRunStarted,
|
|
34
34
|
toolRunSucceeded
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KXFN2UYT.js";
|
|
36
36
|
import {
|
|
37
37
|
getPublicImageAgentMode
|
|
38
38
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
messageStreaming,
|
|
43
43
|
toolResultNeedsUserConfirmation,
|
|
44
44
|
updateToolMessage
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-6CTXMBXD.js";
|
|
46
46
|
import {
|
|
47
47
|
streamAgentChatTurn
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-M3KPY3TH.js";
|
|
49
49
|
import {
|
|
50
50
|
getCurrentSpaceId
|
|
51
51
|
} from "./chunk-ZJ7UHBJS.js";
|
|
@@ -56,16 +56,16 @@ import {
|
|
|
56
56
|
} from "./chunk-OWYYDMGJ.js";
|
|
57
57
|
import {
|
|
58
58
|
selectCurrentServer
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-32ZKZET7.js";
|
|
60
60
|
import {
|
|
61
61
|
write
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ZVQHBIWV.js";
|
|
63
63
|
import {
|
|
64
64
|
createAsyncThunk
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-WRCZXJ4N.js";
|
|
66
66
|
import {
|
|
67
67
|
selectIdentityToken
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-PXYBUFDB.js";
|
|
69
69
|
import {
|
|
70
70
|
classifyOutboundErrorCategory,
|
|
71
71
|
createOutboundDiagnosticCall,
|
|
@@ -85,13 +85,13 @@ import {
|
|
|
85
85
|
} from "./chunk-56GBUMO5.js";
|
|
86
86
|
import {
|
|
87
87
|
normalizeChatCompletionsBodyForProvider
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-6TF64IF2.js";
|
|
89
89
|
import {
|
|
90
90
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-ZWG3C7VI.js";
|
|
92
92
|
import {
|
|
93
93
|
getModelInfo
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-2MTE2PEH.js";
|
|
95
95
|
import {
|
|
96
96
|
isAbortError
|
|
97
97
|
} from "./chunk-7DPNBQSV.js";
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
} from "./chunk-5EMSBTQ6.js";
|
|
106
106
|
import {
|
|
107
107
|
getApiEndpoint
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-TRW43TSC.js";
|
|
109
109
|
import {
|
|
110
110
|
isRecord
|
|
111
111
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -573,7 +573,10 @@ var processToolData = createAsyncThunk(
|
|
|
573
573
|
const toolResult = await found.executor(executionToolArgs, thunkApi, {
|
|
574
574
|
parentMessageId,
|
|
575
575
|
toolRunId,
|
|
576
|
-
agentKey
|
|
576
|
+
agentKey,
|
|
577
|
+
// 定档信号:这里是前台对话流式路径,来源恒为 chat;对话 id 用于数历史搜索。
|
|
578
|
+
...args.dialogId ? { dialogId: args.dialogId } : {},
|
|
579
|
+
origin: "chat"
|
|
577
580
|
});
|
|
578
581
|
const rawData = toolResult?.rawData ?? toolResult;
|
|
579
582
|
const llmContext = asOptionalTrimmedString(toolResult?.llmContext);
|
|
@@ -750,7 +753,8 @@ var handleToolCalls = createAsyncThunk(
|
|
|
750
753
|
toolCall: { ...toolCall, id: toolCallId },
|
|
751
754
|
parentMessageId: messageId,
|
|
752
755
|
toolRunId,
|
|
753
|
-
agentKey: agentConfig.dbKey
|
|
756
|
+
agentKey: agentConfig.dbKey,
|
|
757
|
+
dialogId
|
|
754
758
|
})
|
|
755
759
|
).unwrap();
|
|
756
760
|
const toolName = result.toolName;
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-WWC7I6TA.js";
|
|
13
13
|
import {
|
|
14
14
|
getModelConfig
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TRW43TSC.js";
|
|
16
16
|
import {
|
|
17
17
|
isPlatformHostedImageModel,
|
|
18
18
|
isPlatformManagedProvider,
|
|
19
19
|
resolvePlatformEffectiveModel
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-CGFNDIKK.js";
|
|
21
21
|
|
|
22
22
|
// packages/ai/llm/getPricing.ts
|
|
23
23
|
var MAX_OUTPUT_TOKENS = 8192;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
selectCurrentServer,
|
|
3
3
|
selectRemoteServers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-32ZKZET7.js";
|
|
5
5
|
import {
|
|
6
6
|
noloDeleteRequest,
|
|
7
7
|
noloWriteRequest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WRCZXJ4N.js";
|
|
9
9
|
import {
|
|
10
10
|
normalizeTimeFields
|
|
11
11
|
} from "./chunk-6Q7UTJKR.js";
|
|
12
12
|
import {
|
|
13
13
|
selectIdentityUser,
|
|
14
14
|
selectIdentityUserId
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PXYBUFDB.js";
|
|
16
16
|
import {
|
|
17
17
|
createUserKey,
|
|
18
18
|
extractAgentInfo,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
classifyAgentApiKeyRef,
|
|
4
4
|
formatUnsupportedAgentApiKeyRefMessage,
|
|
5
5
|
shouldReadAgentKeyRemotely
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7RF4O6AT.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveCliAgentKeyInput
|
|
9
9
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -556,7 +556,7 @@ async function buildCreatedAgentRecord(args) {
|
|
|
556
556
|
const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
|
|
557
557
|
const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
|
|
558
558
|
if (args.parsed.presetId) {
|
|
559
|
-
const { resolveProviderPresetFields } = await import("./providerPresetApply-
|
|
559
|
+
const { resolveProviderPresetFields } = await import("./providerPresetApply-GSJI4JBJ.js");
|
|
560
560
|
const fields = resolveProviderPresetFields(args.parsed.presetId);
|
|
561
561
|
if (fields.kind === "manual") {
|
|
562
562
|
throw new Error(
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
readAction,
|
|
7
7
|
readRequestManager,
|
|
8
8
|
resolveAgentReadServers
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NDZOXXIM.js";
|
|
10
10
|
import {
|
|
11
11
|
loadFileFromIndexedDb,
|
|
12
12
|
removeAction,
|
|
13
13
|
saveFileToIndexedDb
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SPKLALBU.js";
|
|
15
15
|
import {
|
|
16
16
|
beginWriteAck,
|
|
17
17
|
compareRemoteRecordsByComparableTime,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
shouldReplaceLocalWithRemoteRecord,
|
|
29
29
|
shouldReplicateLocalRecord,
|
|
30
30
|
uploadToCurrentServer
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2SGAI64X.js";
|
|
32
32
|
import {
|
|
33
33
|
asyncThunkCreator,
|
|
34
34
|
buildCreateSlice,
|
|
35
35
|
createEntityAdapter,
|
|
36
36
|
noloDeleteRequest
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-WRCZXJ4N.js";
|
|
38
38
|
import {
|
|
39
39
|
fetchFromClientDb,
|
|
40
40
|
fetchFromServer,
|
|
@@ -706,7 +706,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
706
706
|
// 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
|
|
707
707
|
read: create.asyncThunk(
|
|
708
708
|
async (payload, thunkApi) => {
|
|
709
|
-
const { readAction: readAction2 } = await import("./read-
|
|
709
|
+
const { readAction: readAction2 } = await import("./read-L7QEJETH.js");
|
|
710
710
|
return readAction2(payload, thunkApi);
|
|
711
711
|
},
|
|
712
712
|
{
|
|
@@ -780,7 +780,7 @@ var dbSlice = createSliceWithThunks({
|
|
|
780
780
|
// 这里改成动态 import,运行期才解析,彻底断开这条边。
|
|
781
781
|
share: create.asyncThunk(
|
|
782
782
|
async (config, thunkApi) => {
|
|
783
|
-
const { shareResourceAction } = await import("./action-
|
|
783
|
+
const { shareResourceAction } = await import("./action-GPPJC5TI.js");
|
|
784
784
|
return shareResourceAction(config, thunkApi);
|
|
785
785
|
}
|
|
786
786
|
),
|