nolo-cli 0.226.0 → 0.227.0
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-IZ2MCXHO.js → _executeModel-CXOFYVHC.js} +51 -51
- package/{action-VDEW6WLI.js → action-R2EIXR7I.js} +5 -5
- package/{addContentAction-7YVXHIPQ.js → addContentAction-W6JVLQ6H.js} +8 -8
- package/{addDialogAgentAction-BX7B47HF.js → addDialogAgentAction-LVNKMXKZ.js} +8 -8
- package/{agentDeleteCommand-N7ELXPLD.js → agentDeleteCommand-VFSZPEQ5.js} +69 -69
- package/{agentEmailCommands-OFS477PV.js → agentEmailCommands-KRUIF4EH.js} +70 -70
- package/{agentListCommands-IQQHJSXP.js → agentListCommands-TDFOLWN3.js} +33 -33
- package/{agentMachineCommands-NS65BEW7.js → agentMachineCommands-PSH7Q5PF.js} +30 -30
- package/{agentProviderCommands-SS6M6VGY.js → agentProviderCommands-C5T7C5KZ.js} +2 -2
- package/{agentRecordCommands-4VE7CNLC.js → agentRecordCommands-KCKCW2QU.js} +69 -69
- package/{agentRunCommand-2MUXHKNW.js → agentRunCommand-EF2T2QWD.js} +69 -69
- package/{agentRunControl-55GL6Q3M.js → agentRunControl-CSMSJFFB.js} +6 -6
- package/{agentRuntimeLocal-5DB2P4MU.js → agentRuntimeLocal-6QXQS3TS.js} +26 -26
- package/{agentSlice-5VTAFG43.js → agentSlice-IZ5ANAF7.js} +9 -9
- package/{appDeleteCommands-EDKUPHJM.js → appDeleteCommands-4M7ETEEG.js} +31 -31
- package/{appDeployCommands-JO74GW4L.js → appDeployCommands-2VJ2NDW5.js} +31 -31
- package/{appDeployStatusCommands-U77ZUHX7.js → appDeployStatusCommands-LDFSWOPQ.js} +31 -31
- package/{appGetCommands-QCMHBYPX.js → appGetCommands-RHVNOPT4.js} +31 -31
- package/{appListCommands-ZQJYEXI6.js → appListCommands-U3XEVTL4.js} +31 -31
- package/{authCommand-W4KXRZLI.js → authCommand-PVZ45QRO.js} +11 -11
- package/{builtinSkillRegistry-GHE3RD3V.js → builtinSkillRegistry-LRVAQCPW.js} +3 -3
- package/{chunk-QYNABNNQ.js → chunk-22YUCKMK.js} +7 -7
- package/{chunk-5GRWWUB4.js → chunk-2COM7SAH.js} +4 -4
- package/{chunk-ONFFUQYM.js → chunk-2FK2KZSL.js} +1 -1
- package/{chunk-V2V5Q6DU.js → chunk-2IPR4PBB.js} +2 -2
- package/{chunk-HQVNO7FH.js → chunk-3YYFU6H7.js} +16 -16
- package/{chunk-SBRSXY67.js → chunk-4OXPN3WC.js} +1 -1
- package/{chunk-T3WSFTBS.js → chunk-4TVOZGOS.js} +1 -1
- package/{chunk-VNALJT32.js → chunk-53AEDFBL.js} +1 -1
- package/{chunk-PK7VT4ZU.js → chunk-56O2J2Y4.js} +2 -2
- package/{chunk-UR7555FE.js → chunk-56PB7FEN.js} +4 -4
- package/{chunk-BH7CEVOH.js → chunk-5PASH2MB.js} +1 -1
- package/{chunk-VMWY7TUA.js → chunk-5UAKGCQG.js} +1 -1
- package/{chunk-UWOCASVL.js → chunk-5VVP7DW3.js} +3 -3
- package/chunk-6ASGEP5D.js +21 -0
- package/{chunk-HSWEFHFS.js → chunk-6PXFEPHL.js} +1 -1
- package/{chunk-GES5GIAU.js → chunk-6YYTTLJV.js} +5 -5
- package/{chunk-CJTB3OYB.js → chunk-76HAJUOJ.js} +2 -2
- package/{chunk-KMW5CRRM.js → chunk-7DXFOL5B.js} +40 -40
- package/{chunk-CHYYSFFM.js → chunk-AKPKOI5Z.js} +3 -3
- package/{chunk-WVOZ35E4.js → chunk-AO6T7U62.js} +12 -9
- package/{chunk-Y3DOUQQQ.js → chunk-AS6L5KSD.js} +2 -2
- package/{chunk-UQXOORR3.js → chunk-AVSZ6PBM.js} +3 -3
- package/{chunk-OJRTTERA.js → chunk-CD2DK5JA.js} +59 -13
- package/{chunk-YTEY27GN.js → chunk-CJQBWHNM.js} +2 -2
- package/{chunk-ZVOL2MAJ.js → chunk-CO6E7YK6.js} +1 -1
- package/{chunk-QUJKDFZW.js → chunk-CT5JXREL.js} +3 -3
- package/{chunk-Y22P6ASC.js → chunk-CTWCZKNS.js} +13 -3
- package/{chunk-ZCZLTJEW.js → chunk-CX2LYFZQ.js} +3 -3
- package/{chunk-OQHIVPG4.js → chunk-E6A5NHDH.js} +4 -1
- package/{chunk-M5EA44QU.js → chunk-EDT65EUE.js} +4 -4
- package/{chunk-TOK555CQ.js → chunk-EQZZASCD.js} +1 -1
- package/{chunk-XNEDFWT4.js → chunk-ESN4WNWU.js} +3 -2
- package/{chunk-RGUWOMXU.js → chunk-F4XIS5DL.js} +19 -19
- package/{chunk-YUZ2DAIH.js → chunk-FGHEF6WI.js} +1 -1
- package/{chunk-OKPC4QNX.js → chunk-FMYNIAI6.js} +2 -2
- package/{chunk-C4KX626C.js → chunk-FNT5VENS.js} +3 -3
- package/{chunk-DPAIQLAL.js → chunk-GVTFSLNI.js} +10 -10
- package/{chunk-4FE3IWRE.js → chunk-GX6DITLQ.js} +1 -1
- package/{chunk-ER3P6MBT.js → chunk-HIDVLMZC.js} +4 -4
- package/{chunk-J25ESVUW.js → chunk-IDFGIROZ.js} +6 -6
- package/{chunk-3ORFJP2Z.js → chunk-IFWXH7LH.js} +1 -1
- package/{chunk-SBRJOYND.js → chunk-J45ACAOQ.js} +138 -40
- package/{chunk-JBWXPACD.js → chunk-JP2BH4NC.js} +1 -1
- package/{chunk-DOK7GDRU.js → chunk-JV5FHHF7.js} +1 -1
- package/{chunk-LMFMV5UC.js → chunk-K26XPZRB.js} +2 -2
- package/{chunk-6326DRQY.js → chunk-KB5RQRSJ.js} +1 -1
- package/{chunk-Y5EBOURK.js → chunk-KMDHRVS7.js} +21 -2
- package/{chunk-4YFC3DWW.js → chunk-KQHEGELM.js} +1 -1
- package/{chunk-2T5BHLID.js → chunk-KW72WVHO.js} +20 -20
- package/{chunk-WRKMXMU7.js → chunk-KZAT2M2V.js} +12 -8
- package/{chunk-7AWKDRXG.js → chunk-KZKMH374.js} +1 -1
- package/{chunk-6S6CZUXK.js → chunk-L6BLA6BT.js} +6 -6
- package/{chunk-IZJFTY4R.js → chunk-LC5CVWP2.js} +3 -3
- package/{chunk-BEM6LPD2.js → chunk-LHCGKAFO.js} +18 -13
- package/{chunk-QXUVCIPB.js → chunk-LOF2EFUE.js} +1 -1
- package/{chunk-4F7SWSWO.js → chunk-LTVEOOZL.js} +2 -2
- package/{chunk-RH44TIHX.js → chunk-MAA42MMV.js} +71 -4
- package/{chunk-7GTXPS3D.js → chunk-MECW2HJG.js} +3 -3
- package/{chunk-3OQFXODL.js → chunk-MYYNZG2M.js} +11 -2
- package/{chunk-4UK6UBXF.js → chunk-MZVCFV3T.js} +17 -13
- package/{chunk-XLN2GD6Z.js → chunk-N7MXFYLU.js} +1 -1
- package/{chunk-MFXJY44K.js → chunk-NJJK3PDA.js} +3 -3
- package/{chunk-6MX6S6TE.js → chunk-OHUYN3YU.js} +1 -1
- package/{chunk-6MQWGA5F.js → chunk-PDAXMBLW.js} +8 -8
- package/{chunk-U4VSBDO5.js → chunk-PQ63BDV3.js} +122 -51
- package/{chunk-2N4UBHUU.js → chunk-QIVE5WJE.js} +4 -4
- package/{chunk-247AAJRK.js → chunk-QOURTDZL.js} +85 -6
- package/{chunk-EKXPHL7M.js → chunk-QWSH3UAQ.js} +3 -3
- package/{chunk-KLD7K5FD.js → chunk-RDPAIR67.js} +4 -4
- package/{chunk-ZCVBIIUE.js → chunk-RXTZB2DH.js} +1 -1
- package/{chunk-XDNXKFWF.js → chunk-SESKIWB4.js} +2 -2
- package/{chunk-UDT4SI37.js → chunk-SF4GMDZO.js} +2 -2
- package/{chunk-6XLWUNZB.js → chunk-SQRKAYQW.js} +10 -10
- package/{chunk-P244EH4W.js → chunk-SX6AWTNK.js} +3 -3
- package/{chunk-VCU5GV42.js → chunk-T4QY3HZ5.js} +1 -1
- package/{chunk-RIMFTQMC.js → chunk-TKE4OJ4B.js} +1 -1
- package/{chunk-I2OYPD3Y.js → chunk-U35UUM5K.js} +1 -0
- package/{chunk-LZOOUQAZ.js → chunk-UPOW5HTG.js} +2 -2
- package/{chunk-JVJ53XCH.js → chunk-VEVLLBFK.js} +1 -1
- package/{chunk-ENYTIRIO.js → chunk-VUHKG4KS.js} +3 -3
- package/{chunk-F4MCAOWN.js → chunk-W3HSD32M.js} +13 -6
- package/{chunk-J2XZZXIH.js → chunk-W5OJBZLZ.js} +3 -3
- package/{chunk-KF2DWSAH.js → chunk-XGWRH3OF.js} +1 -1
- package/{chunk-IIG3TT73.js → chunk-XKV53E4E.js} +1 -1
- package/{chunk-7HUHOCIY.js → chunk-XYRTC2Y3.js} +14 -14
- package/{chunk-3UNAGTBW.js → chunk-YHWMKGOX.js} +51 -14
- package/{chunk-ODGSLWLO.js → chunk-ZP26NIZE.js} +72 -35
- package/{chunk-N6EN3HK3.js → chunk-ZQ6K57FJ.js} +1 -1
- package/{cliAgentConfigHelpers-6OFDHJFT.js → cliAgentConfigHelpers-37ZNEY5Y.js} +7 -7
- package/{cliLocalAgentRecordReader-FHIMCBUK.js → cliLocalAgentRecordReader-53773JID.js} +31 -31
- package/{commandRegistry-OKIWAJIS.js → commandRegistry-RJUO2VOD.js} +71 -71
- package/{contentThunks-VF2DCU46.js → contentThunks-4EFHLUTB.js} +24 -24
- package/{createAgentAutomationAction-BGET7Q6K.js → createAgentAutomationAction-ZFFGJ7CZ.js} +24 -24
- package/{createDialogAction-XYDQZETK.js → createDialogAction-SDUGVTPS.js} +25 -25
- package/{createPageAction-74S5RO7U.js → createPageAction-NNM3OFLY.js} +25 -25
- package/{dbSlice-FI7VNDR5.js → dbSlice-5MQ3ELID.js} +7 -7
- package/{deleteFile-GD62MPZW.js → deleteFile-VCCHS72Y.js} +5 -5
- package/{dialogCommands-Y6DHZUAM.js → dialogCommands-SJK5KWXU.js} +33 -33
- package/{dialogNotifyCommand-MKXL4NGL.js → dialogNotifyCommand-PST75COP.js} +8 -8
- package/{dialogSlice-XAUKSWZ4.js → dialogSlice-2KLMHECR.js} +22 -22
- package/{docCreateCommands-PHDFOQBM.js → docCreateCommands-K7CDL2HY.js} +30 -30
- package/{docDeleteCommands-OSHJM67Y.js → docDeleteCommands-ZEY5YCSP.js} +31 -31
- package/{docReadCommands-E6QYCFMS.js → docReadCommands-A4ROLIQG.js} +30 -30
- package/{docStore-ZZT2BEBU.js → docStore-A4O6YJAM.js} +8 -8
- package/{docUpdateCommands-DHIOPK2C.js → docUpdateCommands-6HTFQY4O.js} +30 -30
- package/{getPricing-RNRITFOP.js → getPricing-FCHYVRJU.js} +3 -3
- package/{handleSendMessageAction-ARUU6CNF.js → handleSendMessageAction-6WEFYBUC.js} +42 -42
- package/{hostCredentialCreate-SNQT73H4.js → hostCredentialCreate-WOWCNOYM.js} +69 -69
- package/index.js +5 -5
- package/{localRuntimeAdapter-MHI6Y2IZ.js → localRuntimeAdapter-7EDBDRYW.js} +68 -68
- package/{machineCommands-3O6Y27R4.js → machineCommands-XRPC67LL.js} +69 -69
- package/{machineWsRunDispatch-5PFLR5XC.js → machineWsRunDispatch-SOGFW472.js} +69 -69
- package/{mcpLocalAuthorizeCommand-BQCQ2KRJ.js → mcpLocalAuthorizeCommand-VOJARP3M.js} +10 -10
- package/{memberThunks-TU6A6OBV.js → memberThunks-KC3WJGL3.js} +9 -9
- package/{models-CINY5UZR.js → models-EP7VG6N2.js} +2 -2
- package/package.json +1 -1
- package/{projectArchive-X2EVXU3N.js → projectArchive-GDVPIZX2.js} +25 -25
- package/{providerPresetApply-HUWNV2NI.js → providerPresetApply-4H7YP5D7.js} +5 -5
- package/{providerRegistry-7FWKDKZJ.js → providerRegistry-F3UPOTIY.js} +5 -5
- package/{read-QAHEQID5.js → read-T7VU2IMO.js} +5 -5
- package/{readDocTool-KG5DP6EM.js → readDocTool-BPQ3QJSD.js} +1 -1
- package/{readlineWorkspace-SO3APHVP.js → readlineWorkspace-OWQIIUGH.js} +112 -91
- package/{removeDialogAgentAction-QZCCVK2G.js → removeDialogAgentAction-FEUUVMYC.js} +10 -10
- package/{runAgentClientLoop-FLHHCOVH.js → runAgentClientLoop-SJREK2B7.js} +48 -48
- package/{runtimeDoctorCommands-DN3I52C6.js → runtimeDoctorCommands-XQD4MN4I.js} +5 -5
- package/{secretCommands-36BCE3UE.js → secretCommands-LH7QTJO2.js} +2 -2
- package/{setDialogExtraReferencesAction-PDPTYSEW.js → setDialogExtraReferencesAction-JSTQJPXL.js} +9 -9
- package/{setPrimaryDialogAgentAction-DOUIPR66.js → setPrimaryDialogAgentAction-Z2BQE3IY.js} +10 -10
- package/{settingThunks-MHGGP6UE.js → settingThunks-C2YWCNYI.js} +12 -12
- package/{spaceCommands-JH7UYE3K.js → spaceCommands-YRBQ52PG.js} +30 -30
- package/{streamAgentChatTurn-VDDA2TX6.js → streamAgentChatTurn-NCA4BKDZ.js} +99 -84
- package/{switchDialogAgentAction-7USK3DAP.js → switchDialogAgentAction-G7XVAOGH.js} +8 -8
- package/{tableCommands-UONBFC7L.js → tableCommands-UHEA5QNL.js} +2 -2
- package/{toolApiClient-53YMJ2G6.js → toolApiClient-N5PYW2R3.js} +2 -2
- package/{tools-MIOCXKMG.js → tools-6WQVUGKV.js} +42 -42
- package/{tuiRestart-ET3QISZ5.js → tuiRestart-3J7LRMPR.js} +7 -7
- package/{tuiSummaryLlmCaller-MSINBP3M.js → tuiSummaryLlmCaller-2J6NG53N.js} +12 -12
- package/{updateDialogTitleAction-2L4CC4YO.js → updateDialogTitleAction-QCSN3RYO.js} +24 -24
- package/{usageCommand-JTKDAG6I.js → usageCommand-SK7JTEPC.js} +1 -1
- package/{usageRebuildCommand-4TFZCKXM.js → usageRebuildCommand-DF3HUP6F.js} +2 -2
- package/{webapi-24RZDIIQ.js → webapi-QVV65DQF.js} +12 -13
- package/chunk-776CXKMX.js +0 -134
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
deleteDialog,
|
|
3
3
|
runtime_default,
|
|
4
4
|
toast
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZP26NIZE.js";
|
|
6
6
|
import {
|
|
7
7
|
getAllMemberSpaces,
|
|
8
8
|
getCurrentSpaceId,
|
|
9
9
|
getCurrentSpaceIdRaw,
|
|
10
10
|
updateCurrentSpaceIfMatch
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RXTZB2DH.js";
|
|
12
12
|
import {
|
|
13
13
|
require_formatISO
|
|
14
14
|
} from "./chunk-UVLYNWIE.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
patchIndividualContentRecord,
|
|
24
24
|
readContentRecordForSpaceSync,
|
|
25
25
|
syncContentRecordSpaceId
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-CJQBWHNM.js";
|
|
27
27
|
import {
|
|
28
28
|
createSpaceKey,
|
|
29
29
|
normalizeSpaceId
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
uploadFileAction,
|
|
37
37
|
upsertSSREntity,
|
|
38
38
|
write
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-PDAXMBLW.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveFileCategory
|
|
42
42
|
} from "./chunk-3PVYUPXK.js";
|
|
@@ -50,13 +50,13 @@ import {
|
|
|
50
50
|
resolveReplicationServers,
|
|
51
51
|
scheduleDeleteReplication,
|
|
52
52
|
scheduleWriteReplication
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-FMYNIAI6.js";
|
|
54
54
|
import {
|
|
55
55
|
createAsyncThunk
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-QOURTDZL.js";
|
|
57
57
|
import {
|
|
58
58
|
getIsDesktopApp
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-5PASH2MB.js";
|
|
60
60
|
import {
|
|
61
61
|
createClientLogger
|
|
62
62
|
} from "./chunk-QQ56R7KS.js";
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
} from "./chunk-BV3FLP2L.js";
|
|
75
75
|
import {
|
|
76
76
|
isSystemAdmin
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-CO6E7YK6.js";
|
|
78
78
|
import {
|
|
79
79
|
SEPARATOR,
|
|
80
80
|
createKey,
|
|
@@ -1513,11 +1513,11 @@ var ENTITY_DELETE_STRATEGIES = {
|
|
|
1513
1513
|
await dispatch(deleteTable({ dbKey: key })).unwrap();
|
|
1514
1514
|
},
|
|
1515
1515
|
file: async (key, { thunkAPI }) => {
|
|
1516
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1516
|
+
const { deleteFileAction } = await import("./deleteFile-VCCHS72Y.js");
|
|
1517
1517
|
await deleteFileAction(key, thunkAPI);
|
|
1518
1518
|
},
|
|
1519
1519
|
image: async (key, { thunkAPI }) => {
|
|
1520
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
1520
|
+
const { deleteFileAction } = await import("./deleteFile-VCCHS72Y.js");
|
|
1521
1521
|
await deleteFileAction(key, thunkAPI);
|
|
1522
1522
|
},
|
|
1523
1523
|
agent: async (key, { dispatch, userId, sourceServerOrigin }) => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveAgentCallPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VUHKG4KS.js";
|
|
4
4
|
import {
|
|
5
5
|
CUSTOM_API_KEY_TEMPLATES,
|
|
6
6
|
SUBSCRIPTION_OAUTH_PROVIDERS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CTWCZKNS.js";
|
|
8
8
|
import {
|
|
9
9
|
findModelConfig,
|
|
10
10
|
getProviderByModelName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CD2DK5JA.js";
|
|
12
12
|
import {
|
|
13
13
|
asOptionalTrimmedString
|
|
14
14
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -177,6 +177,7 @@ var ensureDialogRuntimeState = (dialogKey) => {
|
|
|
177
177
|
};
|
|
178
178
|
function resetDialogRuntimeSessionState(dialogKey) {
|
|
179
179
|
const runtime = ensureDialogRuntimeState(dialogKey);
|
|
180
|
+
if (Object.values(runtime.activeControllers).some((controller) => !controller.signal.aborted)) return;
|
|
180
181
|
runtime.tokens = createEmptyTokenStats();
|
|
181
182
|
runtime.loopStopReason = null;
|
|
182
183
|
runtime.turnPhase = null;
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-NEG5LYK5.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveRuntimeAuthToken
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GX6DITLQ.js";
|
|
11
11
|
import {
|
|
12
12
|
isSystemBuiltinTrustedAgentKey
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KZAT2M2V.js";
|
|
14
14
|
import {
|
|
15
15
|
parseUserIdFromAuthToken
|
|
16
16
|
} from "./chunk-BIDSIRTS.js";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ANTIGRAVITY_CLOUD_CODE_BASE_URL,
|
|
6
6
|
isAntigravityCloudCodeBaseUrl,
|
|
7
7
|
isAntigravityOAuthAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CTWCZKNS.js";
|
|
9
9
|
import {
|
|
10
10
|
isOpenAiResponsesModel,
|
|
11
11
|
resolvePlatformChatCompletionsEndpoint,
|
|
12
12
|
resolvePlatformResponsesEndpoint
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ESN4WNWU.js";
|
|
14
14
|
import {
|
|
15
15
|
findModelConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CD2DK5JA.js";
|
|
17
17
|
import {
|
|
18
18
|
asOptionalTrimmedString
|
|
19
19
|
} from "./chunk-G3SUCT4W.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-X4O7FJF5.js";
|
|
11
11
|
import {
|
|
12
12
|
getModelContextWindow
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MAA42MMV.js";
|
|
14
14
|
import {
|
|
15
15
|
isRecord
|
|
16
16
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
asOptionalTrimmedString
|
|
19
19
|
} from "./chunk-G3SUCT4W.js";
|
|
20
20
|
import {
|
|
21
|
-
PLATFORM_HOSTED_KIMI_K3_MODEL,
|
|
22
21
|
isFireworksKimiModel,
|
|
23
|
-
isNoloHostedProvider
|
|
24
|
-
|
|
22
|
+
isNoloHostedProvider,
|
|
23
|
+
resolvePlatformEffectiveModel
|
|
24
|
+
} from "./chunk-PQ63BDV3.js";
|
|
25
25
|
import {
|
|
26
26
|
asTrimmedLowercaseString
|
|
27
27
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -1165,12 +1165,19 @@ function stablePromptCacheKey(parts, namespace) {
|
|
|
1165
1165
|
|
|
1166
1166
|
// packages/integrations/openai/providerBodyCompatibility.ts
|
|
1167
1167
|
var MOONSHOT_KIMI_K3_MODEL = "kimi-k3";
|
|
1168
|
+
var MOONSHOT_KIMI_K31_PRO_MODEL = "kimi-k3.1-pro";
|
|
1168
1169
|
var isKimiK3ProviderModel = (provider, model) => {
|
|
1169
1170
|
const normalizedModel = asTrimmedLowercaseString(model);
|
|
1171
|
+
const isFamilyId = (id) => id === MOONSHOT_KIMI_K3_MODEL || id === MOONSHOT_KIMI_K31_PRO_MODEL;
|
|
1170
1172
|
if (asTrimmedLowercaseString(provider) === "moonshot") {
|
|
1171
|
-
return normalizedModel
|
|
1173
|
+
return isFamilyId(normalizedModel);
|
|
1172
1174
|
}
|
|
1173
|
-
|
|
1175
|
+
if (!isNoloHostedProvider(provider)) return false;
|
|
1176
|
+
if (isFamilyId(normalizedModel)) return true;
|
|
1177
|
+
const effectiveModel = asTrimmedLowercaseString(
|
|
1178
|
+
resolvePlatformEffectiveModel(model) ?? model
|
|
1179
|
+
);
|
|
1180
|
+
return isFamilyId(effectiveModel);
|
|
1174
1181
|
};
|
|
1175
1182
|
var isOllamaProviderOrEndpoint = (provider, endpoint) => {
|
|
1176
1183
|
const p = asTrimmedLowercaseString(provider);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J45ACAOQ.js";
|
|
4
4
|
import {
|
|
5
5
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZP26NIZE.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalizeToolNames
|
|
9
9
|
} from "./chunk-YLAHYLDQ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-KUG52IAP.js";
|
|
13
13
|
import {
|
|
14
14
|
isNoloHostedProvider
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PQ63BDV3.js";
|
|
16
16
|
import {
|
|
17
17
|
asTrimmedLowercaseString
|
|
18
18
|
} from "./chunk-QSJ3HFEF.js";
|
|
@@ -3,35 +3,35 @@ import {
|
|
|
3
3
|
mergeReferences,
|
|
4
4
|
resolveReferenceAssets,
|
|
5
5
|
resolveToolsFromKeys
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L6BLA6BT.js";
|
|
7
7
|
import {
|
|
8
8
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
9
9
|
getAllToolRuns,
|
|
10
10
|
parseUiCard,
|
|
11
11
|
uiCardFallback
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GVTFSLNI.js";
|
|
13
13
|
import {
|
|
14
14
|
getDocState
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AKPKOI5Z.js";
|
|
16
16
|
import {
|
|
17
17
|
getTableState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SQRKAYQW.js";
|
|
19
19
|
import {
|
|
20
20
|
selectAllMsgs
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZP26NIZE.js";
|
|
22
22
|
import {
|
|
23
23
|
getCurrentSpaceIdRaw,
|
|
24
24
|
getViewMode
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RXTZB2DH.js";
|
|
26
26
|
import {
|
|
27
27
|
selectById
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PDAXMBLW.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveToolBaseUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KQHEGELM.js";
|
|
32
32
|
import {
|
|
33
33
|
selectPendingFiles
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-U35UUM5K.js";
|
|
35
35
|
import {
|
|
36
36
|
getSessionSnapshotForState,
|
|
37
37
|
selectIdentityUserBalance,
|
|
@@ -43,12 +43,12 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
resolveAgentRecommendedSkillNames,
|
|
45
45
|
resolveAgentRequiredPackIds
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-JV5FHHF7.js";
|
|
47
47
|
import {
|
|
48
48
|
attachmentKind,
|
|
49
49
|
extractReferenceKeysFromMessage,
|
|
50
50
|
normalizeAttachmentPart
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LTVEOOZL.js";
|
|
52
52
|
import {
|
|
53
53
|
asRecordOrEmpty
|
|
54
54
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
expandEnabledPackPromptPatches,
|
|
66
66
|
expandEnabledPacks,
|
|
67
67
|
resolveEffectiveEnabledPacks
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-TKE4OJ4B.js";
|
|
69
69
|
import {
|
|
70
70
|
metaKey
|
|
71
71
|
} from "./chunk-SYTHYBMI.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
getModelPricing,
|
|
85
85
|
getPrices,
|
|
86
86
|
hasExplicitAgentPricing
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-AS6L5KSD.js";
|
|
88
88
|
import {
|
|
89
89
|
asTrimmedString
|
|
90
90
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
getModelConfig,
|
|
96
96
|
getProviderByModelName
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-CD2DK5JA.js";
|
|
98
98
|
import {
|
|
99
99
|
isRecord
|
|
100
100
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L6BLA6BT.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-22YUCKMK.js";
|
|
10
10
|
import {
|
|
11
11
|
buildIdentityBlock,
|
|
12
12
|
buildPlatformStaticContextLayers,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
compileContextLayers,
|
|
16
16
|
detectDispatchIntentFromMessages,
|
|
17
17
|
resolveToolGuidedSections
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HIDVLMZC.js";
|
|
19
19
|
import {
|
|
20
20
|
convertMessagesToResponsesInput,
|
|
21
21
|
getUsageRequestOptions,
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
resolveReasoningReplayOptions,
|
|
25
25
|
shouldStripReasoningContentForOutbound,
|
|
26
26
|
stablePromptCacheKey
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-W3HSD32M.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveAgentCallPlan,
|
|
30
30
|
resolveClientWire
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VUHKG4KS.js";
|
|
32
32
|
import {
|
|
33
33
|
createFileCredentialBroker
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-E6A5NHDH.js";
|
|
35
35
|
import {
|
|
36
36
|
MEMORY_USE_GUIDANCE,
|
|
37
37
|
buildUserResponseLanguageContext
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-2SXN7LAY.js";
|
|
42
42
|
import {
|
|
43
43
|
buildSkillGuidancePromptBlock
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TKE4OJ4B.js";
|
|
45
45
|
import {
|
|
46
46
|
canonicalizeToolNames
|
|
47
47
|
} from "./chunk-YLAHYLDQ.js";
|
|
@@ -53,7 +53,10 @@ import {
|
|
|
53
53
|
} from "./chunk-HNMXYYJR.js";
|
|
54
54
|
import {
|
|
55
55
|
buildProviderAuthHeaders
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-K26XPZRB.js";
|
|
57
|
+
import {
|
|
58
|
+
OPENAI_RESPONSES_ENDPOINT
|
|
59
|
+
} from "./chunk-ESN4WNWU.js";
|
|
57
60
|
import {
|
|
58
61
|
asTrimmedString
|
|
59
62
|
} from "./chunk-3EUW3WEO.js";
|
|
@@ -61,7 +64,7 @@ import {
|
|
|
61
64
|
clampReasoningEffort,
|
|
62
65
|
getModelConfig,
|
|
63
66
|
isModelSupportReasoningEffort
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CD2DK5JA.js";
|
|
65
68
|
import {
|
|
66
69
|
isRecord
|
|
67
70
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -75,8 +78,12 @@ import {
|
|
|
75
78
|
isDeepInfraKimiModel,
|
|
76
79
|
isFireworksKimiModel,
|
|
77
80
|
isPlatformMimoProviderModel,
|
|
78
|
-
resolveFireworksKimiModel
|
|
79
|
-
|
|
81
|
+
resolveFireworksKimiModel,
|
|
82
|
+
resolvePlatformHostedRouting
|
|
83
|
+
} from "./chunk-PQ63BDV3.js";
|
|
84
|
+
import {
|
|
85
|
+
asTrimmedLowercaseString
|
|
86
|
+
} from "./chunk-QSJ3HFEF.js";
|
|
80
87
|
|
|
81
88
|
// packages/agent-runtime/responsesConversationState.ts
|
|
82
89
|
function supportsResponsesConversationState(agent) {
|
|
@@ -507,6 +514,21 @@ var generateOpenAIRequestBody = (agentConfig, providerName, messages, contexts,
|
|
|
507
514
|
|
|
508
515
|
// packages/integrations/openai/generateResponseRequestBody.ts
|
|
509
516
|
var DEFAULT_RESPONSES_COMPACTION_THRESHOLD = 2e5;
|
|
517
|
+
function usesGpt62DeveloperPrefix(agentConfig) {
|
|
518
|
+
const provider = asTrimmedLowercaseString(agentConfig.provider);
|
|
519
|
+
if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") return false;
|
|
520
|
+
let model = asTrimmedLowercaseString(agentConfig.model).replace(/^openai\//, "");
|
|
521
|
+
if (provider === "nolo") {
|
|
522
|
+
const route = resolvePlatformHostedRouting(agentConfig.model);
|
|
523
|
+
if (route?.wire !== "responses" || route.endpoint !== OPENAI_RESPONSES_ENDPOINT) {
|
|
524
|
+
return false;
|
|
525
|
+
}
|
|
526
|
+
model = route.upstreamModelId ?? model;
|
|
527
|
+
} else if (provider !== "openai") {
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
return /^gpt-6\.2-(astra|sol)$/.test(model);
|
|
531
|
+
}
|
|
510
532
|
function resolveResponsesCompactionThreshold(agentConfig) {
|
|
511
533
|
const configured = Number(
|
|
512
534
|
agentConfig.responsesCompactionThreshold ?? agentConfig.responses_compaction_threshold
|
|
@@ -526,7 +548,10 @@ function selectResponsesContinuationMessages(msgs) {
|
|
|
526
548
|
}
|
|
527
549
|
function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemPrompt = true, responsesState) {
|
|
528
550
|
const language = typeof navigator !== "undefined" && navigator.language ? navigator.language : "zh-CN";
|
|
529
|
-
const state =
|
|
551
|
+
const state = selectResponsesConversationState(
|
|
552
|
+
responsesState === void 0 ? agentConfig.responsesState : responsesState,
|
|
553
|
+
agentConfig
|
|
554
|
+
);
|
|
530
555
|
const supportsServerState = supportsResponsesConversationState(agentConfig);
|
|
531
556
|
const stateful = supportsServerState && state && agentConfig.store !== false ? state : null;
|
|
532
557
|
const input = convertMessagesToResponsesInput(
|
|
@@ -539,14 +564,26 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
|
|
|
539
564
|
...getUsageRequestOptions(agentConfig.provider, { api: "responses" })
|
|
540
565
|
};
|
|
541
566
|
if (prependSystemPrompt) {
|
|
542
|
-
const
|
|
567
|
+
const compiled = buildSystemPromptContext({
|
|
543
568
|
agentConfig,
|
|
544
569
|
language,
|
|
545
570
|
contexts,
|
|
546
571
|
// 按当前用户输入检测派发意图:无意图只注入最小派发协议(安全硬门常在)。
|
|
547
572
|
dispatchIntent: detectDispatchIntentFromMessages(msgs)
|
|
548
573
|
});
|
|
549
|
-
|
|
574
|
+
const legacyContinuation = supportsServerState && responsesState === void 0 && agentConfig.previous_response_id !== void 0;
|
|
575
|
+
if (!stateful && !legacyContinuation && usesGpt62DeveloperPrefix(agentConfig)) {
|
|
576
|
+
if (compiled.stablePrefixContent) {
|
|
577
|
+
input.unshift({
|
|
578
|
+
type: "message",
|
|
579
|
+
role: "developer",
|
|
580
|
+
content: [{ type: "input_text", text: compiled.stablePrefixContent }]
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
if (compiled.dynamicContent) body.instructions = compiled.dynamicContent;
|
|
584
|
+
} else {
|
|
585
|
+
body.instructions = compiled.content;
|
|
586
|
+
}
|
|
550
587
|
}
|
|
551
588
|
if (agentConfig.temperature !== void 0) {
|
|
552
589
|
body.temperature = agentConfig.temperature;
|