nolo-cli 0.90.0-alpha.1 → 0.91.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-W26HVI75.js → _executeModel-U5V7LOJX.js} +33 -33
- package/{action-6DXQGJMX.js → action-EXQVY3UO.js} +6 -6
- package/{addContentAction-I7VX5SAC.js → addContentAction-6IXQSRD2.js} +4 -4
- package/{addDialogAgentAction-OJSFV7DZ.js → addDialogAgentAction-FZOB4BYM.js} +3 -3
- package/{agentDeleteCommand-XNFWCKBH.js → agentDeleteCommand-4MIJFQQB.js} +18 -18
- package/{agentEmailCommands-W3X3EJ3V.js → agentEmailCommands-JUXT36BY.js} +39 -39
- package/{agentListCommands-DFWFU6XO.js → agentListCommands-MUVKMMZ5.js} +20 -20
- package/{agentMachineCommands-LMFOAEL4.js → agentMachineCommands-56FTZLYV.js} +18 -18
- package/{agentProviderCommands-ZBYHGTGY.js → agentProviderCommands-TOMVKJOV.js} +1 -1
- package/{agentRecordCommands-FVVVCQFM.js → agentRecordCommands-FST3KAKG.js} +38 -38
- package/{agentRunCommand-HTBVIBGV.js → agentRunCommand-UMUEVIY2.js} +38 -38
- package/{agentRuntimeLocal-2JFG4HDU.js → agentRuntimeLocal-NH6GSGAJ.js} +16 -16
- package/{agentSlice-ZNLGFUB5.js → agentSlice-YZK6KG73.js} +4 -4
- package/{appDeleteCommands-2UN4N2NR.js → appDeleteCommands-U45KXYX7.js} +19 -19
- package/{appDeployCommands-37D74KRR.js → appDeployCommands-LWQIQCFX.js} +19 -19
- package/{appDeployStatusCommands-QBLWL2IA.js → appDeployStatusCommands-LZO33PGD.js} +19 -19
- package/{appGetCommands-6KXIDF2T.js → appGetCommands-OJSO6BCF.js} +19 -19
- package/{appListCommands-G2WFGEWQ.js → appListCommands-NE56V7DI.js} +19 -19
- package/{authCommand-V2DJ7DB7.js → authCommand-U5LA6H4Y.js} +7 -7
- package/{builtinSkillRegistry-WBGYKIAZ.js → builtinSkillRegistry-4NB7PCOF.js} +4 -4
- package/{chatQueueReduxAdapter-XCJHIY3R.js → chatQueueReduxAdapter-FRMSYX7N.js} +15 -15
- package/{chunk-7MYYE7WX.js → chunk-377KM42Z.js} +12 -12
- package/{chunk-A2C4AKKM.js → chunk-3XMOAYRC.js} +1 -1
- package/{chunk-VRLI2WNW.js → chunk-4CAPEGHN.js} +11 -7
- package/{chunk-3R5PH4IP.js → chunk-4JBZUECA.js} +1 -1
- package/{chunk-WS22FPWT.js → chunk-4QKBQHPQ.js} +1 -1
- package/{chunk-RZANZZL2.js → chunk-546FPOW3.js} +1 -1
- package/{chunk-NFMHIUY3.js → chunk-7IBK6MYW.js} +16 -16
- package/{chunk-576IMUGH.js → chunk-AQDH76OK.js} +1 -1
- package/{chunk-XTUY5EL4.js → chunk-B4S7MR5S.js} +3 -3
- package/{chunk-VHJLQHPQ.js → chunk-BF2K6MRF.js} +2 -2
- package/{chunk-5NMZNPTN.js → chunk-BKP7CFUD.js} +3 -3
- package/{chunk-XKQJJK4F.js → chunk-COM7GG76.js} +1 -1
- package/{chunk-PH5J5VUY.js → chunk-DM4UNXPK.js} +2 -2
- package/{chunk-N3OAPEZE.js → chunk-DSX6K7C2.js} +2 -2
- package/{chunk-UTCCPWB2.js → chunk-E2NP7ZQU.js} +1 -1
- package/{chunk-GRYGRGPS.js → chunk-E3VQ6S3A.js} +1 -1
- package/{chunk-UA5S3LQQ.js → chunk-F3UTRUDO.js} +3 -3
- package/{chunk-QHETQ3KI.js → chunk-G5X57NDE.js} +2 -2
- package/{chunk-F2CGG72C.js → chunk-GRDSMV4V.js} +4 -4
- package/{chunk-3CMTBX3X.js → chunk-HGRDL36J.js} +3 -3
- package/{chunk-SMZSWB44.js → chunk-HWZAXNO7.js} +3 -3
- package/{chunk-ASGDO77C.js → chunk-JTYPAMGP.js} +33 -0
- package/{chunk-ZBT3WNBK.js → chunk-KR3YI36B.js} +1 -1
- package/{chunk-XMGHGEN6.js → chunk-LSSBA2TN.js} +1 -1
- package/{chunk-K7M3MWCE.js → chunk-MBEEYLGL.js} +2 -2
- package/{chunk-MJHQ3NRV.js → chunk-NKIH4Q7W.js} +1 -1
- package/{chunk-2AYMFHUG.js → chunk-OH7H6LPC.js} +2 -2
- package/{chunk-L2ICPOAL.js → chunk-OOLWKQSM.js} +1 -1
- package/{chunk-FQYMLZ6C.js → chunk-QMASIHYZ.js} +4 -4
- package/{chunk-4BYPU626.js → chunk-R2YY6MWV.js} +8 -8
- package/{chunk-ZAB3A45K.js → chunk-RLEWGSM5.js} +3 -3
- package/{chunk-DNQPPRHY.js → chunk-RZYQMSQA.js} +1 -1
- package/{chunk-AQZRTHDZ.js → chunk-S3UI4IUJ.js} +15 -15
- package/{chunk-5DFFKASO.js → chunk-SASGLNUD.js} +3 -3
- package/{chunk-HMEMJ7GH.js → chunk-SUERPXJZ.js} +25 -22
- package/{chunk-DPQ2WVBY.js → chunk-TMAZ3VHN.js} +1 -1
- package/{chunk-6BEA566T.js → chunk-U47DH2WO.js} +2 -2
- package/{chunk-WXPVOQD7.js → chunk-UBNV6CS6.js} +28 -28
- package/{chunk-2F4VYGFW.js → chunk-UDEFS2PV.js} +4 -3
- package/{chunk-JTK3TJYV.js → chunk-VOOTT7HA.js} +1 -1
- package/{chunk-3CR2LC6X.js → chunk-W2E6HIIK.js} +1 -1
- package/{chunk-2ADBVBEM.js → chunk-WKEUHK57.js} +2 -2
- package/{chunk-Z33ARZCP.js → chunk-WON762L4.js} +1 -1
- package/{chunk-JBBZ5KUM.js → chunk-WP6BC7OF.js} +9 -9
- package/{chunk-TVNI5FLG.js → chunk-X2ZTVRXP.js} +4 -4
- package/{chunk-CLI4LFSM.js → chunk-XAQAF25W.js} +1 -1
- package/{chunk-TL6L5XUT.js → chunk-XGJAR4T5.js} +30 -13
- package/{chunk-4DRWWIOL.js → chunk-XLGHBHGP.js} +1 -1
- package/{chunk-HYZHJ5GW.js → chunk-YPYMGGPJ.js} +3 -3
- package/{chunk-ND2J3NRB.js → chunk-ZHUTWJ3N.js} +2 -2
- package/{chunk-5V4NJHRM.js → chunk-ZKMYGRO7.js} +5 -5
- package/{contentThunks-VURN3DFW.js → contentThunks-TC3AENBY.js} +16 -16
- package/{createAgentAutomationAction-QZAAY77R.js → createAgentAutomationAction-67EOD3WK.js} +16 -16
- package/{createDialogAction-CHGXVTAC.js → createDialogAction-4OCQC5MW.js} +18 -18
- package/{createPageAction-IOGAFIN7.js → createPageAction-JLGVP57B.js} +16 -16
- package/{dbSlice-YXQ6RYIH.js → dbSlice-RDGCE5MU.js} +3 -3
- package/{dialogCommands-XREAP6WQ.js → dialogCommands-JHSDKCR5.js} +19 -19
- package/{dialogSlice-DOPGWGS4.js → dialogSlice-I2DK32ZT.js} +15 -15
- package/{docCreateCommands-3PYZGSCL.js → docCreateCommands-QUL6VWK2.js} +18 -18
- package/{docDeleteCommands-3Y6MU44Q.js → docDeleteCommands-DMQ2MU6I.js} +19 -19
- package/{docReadCommands-UBANMAFR.js → docReadCommands-FVHENBU6.js} +18 -18
- package/{docStore-SYYFBENY.js → docStore-OLC6MD7B.js} +4 -4
- package/{docUpdateCommands-4GK2X6BN.js → docUpdateCommands-VA6V5C6L.js} +18 -18
- package/{getPricing-F2C65RIX.js → getPricing-YYXTEPBP.js} +3 -3
- package/{handleSendMessageAction-NPVTY2GE.js → handleSendMessageAction-GRDIRXAK.js} +15 -15
- package/index.js +50 -50
- package/{machineCommands-I66X2XB7.js → machineCommands-IJJ66MYU.js} +37 -37
- package/{machineWsRunDispatch-W4FVBOUM.js → machineWsRunDispatch-PP2ZBS6D.js} +37 -37
- package/{memberThunks-5T4J6KXQ.js → memberThunks-WQGQWYYT.js} +4 -4
- package/{models-WW7VFNXB.js → models-UN7YGMPM.js} +2 -2
- package/package.json +1 -1
- package/{providerPresetApply-OCWWKBSD.js → providerPresetApply-NO73BG45.js} +6 -6
- package/{providerRegistry-ZJQU7AJ7.js → providerRegistry-OVY4VKNN.js} +6 -6
- package/{read-M2Q6WEKB.js → read-S4WC2OUK.js} +2 -2
- package/{readDocTool-T37P3YPB.js → readDocTool-PQNM63KV.js} +1 -1
- package/{readlineWorkspace-VY5AMOGR.js → readlineWorkspace-ASJECDJD.js} +41 -41
- package/{removeDialogAgentAction-HB3JBVAI.js → removeDialogAgentAction-YJZ6XJV6.js} +6 -6
- package/{runAgentClientLoop-3NDADLVE.js → runAgentClientLoop-KIOQSDRC.js} +31 -31
- package/{setDialogExtraReferencesAction-4XLHRV37.js → setDialogExtraReferencesAction-E6A3WL4E.js} +4 -4
- package/{setPrimaryDialogAgentAction-C3JOFC4W.js → setPrimaryDialogAgentAction-WBLIVICQ.js} +6 -6
- package/{settingSlice-CZRURSTH.js → settingSlice-JR6S7TRD.js} +5 -5
- package/{spaceCommands-ENYCUUZH.js → spaceCommands-WDUNCAK5.js} +18 -18
- package/{streamAgentChatTurn-634OFUSR.js → streamAgentChatTurn-EGQDPMAO.js} +35 -35
- package/{switchDialogAgentAction-C6KVUKJP.js → switchDialogAgentAction-DTR36ZY2.js} +3 -3
- package/{tools-ILBLCF7D.js → tools-AOVE5LKM.js} +28 -28
- package/{tuiSummaryLlmCaller-LFUBZKXK.js → tuiSummaryLlmCaller-XRQCSNYQ.js} +10 -10
- package/{updateDialogTitleAction-RKFET73N.js → updateDialogTitleAction-T66TXHIR.js} +16 -16
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./chunk-AGGIDPCZ.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-X2ZTVRXP.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-U47DH2WO.js";
|
|
21
21
|
import {
|
|
22
22
|
getActiveDialogAgentId,
|
|
23
23
|
getDialogAgentIds,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
getModelInfo,
|
|
56
56
|
normalizeUsage,
|
|
57
57
|
resolveAutoExecutionProfile
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-GRDSMV4V.js";
|
|
59
59
|
import {
|
|
60
60
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
61
61
|
buildCompactionMetricsFromPlan,
|
|
@@ -66,11 +66,11 @@ import {
|
|
|
66
66
|
normalizeAssistantContentBuffer,
|
|
67
67
|
planCompression,
|
|
68
68
|
serializeMessageContent
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-BF2K6MRF.js";
|
|
70
70
|
import {
|
|
71
71
|
findModelConfig,
|
|
72
72
|
getModelConfig
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-4CAPEGHN.js";
|
|
74
74
|
import {
|
|
75
75
|
toErrorMessage
|
|
76
76
|
} from "./chunk-HNMXYYJR.js";
|
|
@@ -85,10 +85,10 @@ import {
|
|
|
85
85
|
isPlatformHostedDeepSeekV4Model,
|
|
86
86
|
isPlatformHostedImageModel,
|
|
87
87
|
isPlatformHostedOpenAIImageModel
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-JTYPAMGP.js";
|
|
89
89
|
import {
|
|
90
90
|
nolotusId
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-546FPOW3.js";
|
|
92
92
|
import {
|
|
93
93
|
asRecordOrEmpty
|
|
94
94
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
remove,
|
|
99
99
|
selectById,
|
|
100
100
|
write
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-F3UTRUDO.js";
|
|
102
102
|
import {
|
|
103
103
|
buildDialogAgentListIndexDeleteOps,
|
|
104
104
|
createDialogMessageKeyAndId,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
builtinAgentCatalogEntryById,
|
|
121
121
|
builtinRuntimeFallbackEntries,
|
|
122
122
|
isBuiltinPlatformAgentKey
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-XGJAR4T5.js";
|
|
124
124
|
import {
|
|
125
125
|
extractCustomId,
|
|
126
126
|
extractUserId,
|
|
@@ -17466,7 +17466,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
17466
17466
|
runtimeOptions: args.runtimeOptions
|
|
17467
17467
|
});
|
|
17468
17468
|
if (agentKeyToUse) {
|
|
17469
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
17469
|
+
const { streamAgentChatTurn } = await import("./agentSlice-YZK6KG73.js");
|
|
17470
17470
|
await dispatch(
|
|
17471
17471
|
streamAgentChatTurn({
|
|
17472
17472
|
agentKey: agentKeyToUse,
|
|
@@ -17572,6 +17572,9 @@ var sanitizeCost = (raw) => {
|
|
|
17572
17572
|
};
|
|
17573
17573
|
var resolveModelPrice = (model, usage) => {
|
|
17574
17574
|
let activePrice = { ...model.price };
|
|
17575
|
+
if (typeof activePrice.inputCacheHit !== "number" && typeof activePrice.cachingRead === "number") {
|
|
17576
|
+
activePrice = { ...activePrice, inputCacheHit: activePrice.cachingRead };
|
|
17577
|
+
}
|
|
17575
17578
|
if (model.pricingStrategy?.type === "tiered_context") {
|
|
17576
17579
|
const contextSize = usage.input_tokens || 0;
|
|
17577
17580
|
const tiers = model.pricingStrategy.tiers || [];
|
|
@@ -17932,7 +17935,7 @@ var calculatePrice = ({
|
|
|
17932
17935
|
billingServiceTier,
|
|
17933
17936
|
nowMs
|
|
17934
17937
|
);
|
|
17935
|
-
const openAIImageSurcharge = provider === "openai" ? resolveOpenAIBuiltInImageSurcharge(model, usage) : 0;
|
|
17938
|
+
const openAIImageSurcharge = provider === "openai" || isPlatformHostedOpenAIImageModel(modelName) ? resolveOpenAIBuiltInImageSurcharge(model, usage) : 0;
|
|
17936
17939
|
const adjustedCosts = openAIImageSurcharge > 0 ? {
|
|
17937
17940
|
...costs,
|
|
17938
17941
|
regular: costs.regular + openAIImageSurcharge,
|
|
@@ -18599,7 +18602,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18599
18602
|
}
|
|
18600
18603
|
if (isCurrentDialog) {
|
|
18601
18604
|
await thunkApi.dispatch(resetMsgs());
|
|
18602
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
18605
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-I2DK32ZT.js");
|
|
18603
18606
|
dispatch(clearPendingAttachments2());
|
|
18604
18607
|
}
|
|
18605
18608
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -18607,39 +18610,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
18607
18610
|
|
|
18608
18611
|
// packages/chat/dialog/dialogSlice.ts
|
|
18609
18612
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
18610
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
18613
|
+
const { createDialogAction } = await import("./createDialogAction-4OCQC5MW.js");
|
|
18611
18614
|
return createDialogAction(args, thunkApi);
|
|
18612
18615
|
};
|
|
18613
18616
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
18614
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
18617
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-67EOD3WK.js");
|
|
18615
18618
|
return createAgentAutomationAction(args, thunkApi);
|
|
18616
18619
|
};
|
|
18617
18620
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
18618
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
18621
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-T66TXHIR.js");
|
|
18619
18622
|
return updateDialogTitleAction(args, thunkApi);
|
|
18620
18623
|
};
|
|
18621
18624
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
18622
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
18625
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-FZOB4BYM.js");
|
|
18623
18626
|
return addDialogAgentAction(args, thunkApi);
|
|
18624
18627
|
};
|
|
18625
18628
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
18626
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
18629
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-YJZ6XJV6.js");
|
|
18627
18630
|
return removeDialogAgentAction(args, thunkApi);
|
|
18628
18631
|
};
|
|
18629
18632
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
18630
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
18633
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-WBLIVICQ.js");
|
|
18631
18634
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
18632
18635
|
};
|
|
18633
18636
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
18634
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
18637
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-DTR36ZY2.js");
|
|
18635
18638
|
return switchDialogAgentAction(args, thunkApi);
|
|
18636
18639
|
};
|
|
18637
18640
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
18638
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
18641
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-E6A3WL4E.js");
|
|
18639
18642
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
18640
18643
|
};
|
|
18641
18644
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
18642
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
18645
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-GRDIRXAK.js");
|
|
18643
18646
|
return handleSendMessageAction(args, thunkApi);
|
|
18644
18647
|
};
|
|
18645
18648
|
function clearDialogState() {
|
|
@@ -18652,7 +18655,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
18652
18655
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
18653
18656
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
18654
18657
|
try {
|
|
18655
|
-
const { createDocState } = await import("./docStore-
|
|
18658
|
+
const { createDocState } = await import("./docStore-OLC6MD7B.js");
|
|
18656
18659
|
const pageKey = await createDocState(
|
|
18657
18660
|
{ slateData, title },
|
|
18658
18661
|
{ dispatch, getState }
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
toCompactAgentSummary,
|
|
30
30
|
toSafeAgentSummary,
|
|
31
31
|
toUnavailableAgentSummary
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OH7H6LPC.js";
|
|
33
33
|
import {
|
|
34
34
|
getUserDataItemTimestamp,
|
|
35
35
|
mergeAndDedupUserData
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
readPageFunc,
|
|
41
41
|
readPageFunctionSchema,
|
|
42
42
|
slateToSimplifiedMarkdown
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KR3YI36B.js";
|
|
44
44
|
import {
|
|
45
45
|
addMemberSpace,
|
|
46
46
|
fetchAuthoritativeRemoteSpace,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
setMembershipRejected,
|
|
53
53
|
setSpaceInitialized,
|
|
54
54
|
updateMemberSpaceName
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-W2E6HIIK.js";
|
|
56
56
|
import {
|
|
57
57
|
ToolApiError,
|
|
58
58
|
buildToolRequestHeaders,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
} from "./chunk-HQCSU3DI.js";
|
|
64
64
|
import {
|
|
65
65
|
setDialogExtraReferencesAction
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VOOTT7HA.js";
|
|
67
67
|
import {
|
|
68
68
|
waitForAbortableDelay
|
|
69
69
|
} from "./chunk-N4G4PKQ6.js";
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
} from "./chunk-VF4K2QE6.js";
|
|
82
82
|
import {
|
|
83
83
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-SASGLNUD.js";
|
|
85
85
|
import {
|
|
86
86
|
createDialogAction
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-ZKMYGRO7.js";
|
|
88
88
|
import {
|
|
89
89
|
DEFAULT_COLLAPSED_CATEGORIES,
|
|
90
90
|
addContentToSpace,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-QMASIHYZ.js";
|
|
106
106
|
import {
|
|
107
107
|
getCurrentSpaceId,
|
|
108
108
|
getCurrentSpaceIdRaw,
|
|
@@ -124,14 +124,14 @@ import {
|
|
|
124
124
|
selectMsgById,
|
|
125
125
|
uiAskChoiceFunc,
|
|
126
126
|
uiAskChoiceFunctionSchema
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-SUERPXJZ.js";
|
|
128
128
|
import {
|
|
129
129
|
createAgent,
|
|
130
130
|
deleteServerSyncedCredential,
|
|
131
131
|
runLlm,
|
|
132
132
|
streamAgentChatTurn,
|
|
133
133
|
updateAgent
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-X2ZTVRXP.js";
|
|
135
135
|
import {
|
|
136
136
|
getActiveDialogKey,
|
|
137
137
|
selectCurrentDialogKey,
|
|
@@ -145,10 +145,10 @@ import {
|
|
|
145
145
|
resolveBuiltinCapability,
|
|
146
146
|
resolveBuiltinSkillByName,
|
|
147
147
|
resolveBuiltinSkillEntry
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-WKEUHK57.js";
|
|
149
149
|
import {
|
|
150
150
|
CAPABILITY_PACKS
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-XAQAF25W.js";
|
|
152
152
|
import {
|
|
153
153
|
buildSkillDocMarkdown,
|
|
154
154
|
normalizeSkillModalities,
|
|
@@ -179,10 +179,10 @@ import {
|
|
|
179
179
|
} from "./chunk-CJCJF5XB.js";
|
|
180
180
|
import {
|
|
181
181
|
buildDatabaseFileContentUrl
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-BF2K6MRF.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULT_MODEL
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-4CAPEGHN.js";
|
|
186
186
|
import {
|
|
187
187
|
compactWhitespace
|
|
188
188
|
} from "./chunk-DWLEOOGR.js";
|
|
@@ -198,14 +198,14 @@ import {
|
|
|
198
198
|
} from "./chunk-O6OSWFZQ.js";
|
|
199
199
|
import {
|
|
200
200
|
shareResourceAction
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-LSSBA2TN.js";
|
|
202
202
|
import {
|
|
203
203
|
AGENT_UPDATE_FIELD_NAMES,
|
|
204
204
|
normalizeAgentUpdateFieldList,
|
|
205
205
|
selectAutoApproveSelfUpdateFields,
|
|
206
206
|
selectCurrentServer,
|
|
207
207
|
selectSyncServers
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-DM4UNXPK.js";
|
|
209
209
|
import {
|
|
210
210
|
asRecordOrEmpty
|
|
211
211
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -213,7 +213,7 @@ import {
|
|
|
213
213
|
UNCATEGORIZED_ID,
|
|
214
214
|
addContentAction,
|
|
215
215
|
checkSpaceMembership
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-XLGHBHGP.js";
|
|
217
217
|
import {
|
|
218
218
|
createSpaceKey,
|
|
219
219
|
normalizeSpaceId
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
selectEntities,
|
|
229
229
|
toTimestampMs,
|
|
230
230
|
write
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-F3UTRUDO.js";
|
|
232
232
|
import {
|
|
233
233
|
SEPARATOR,
|
|
234
234
|
TYPE_STORAGE_PREFIXES,
|
|
@@ -258,7 +258,7 @@ import {
|
|
|
258
258
|
} from "./chunk-QSJ3HFEF.js";
|
|
259
259
|
import {
|
|
260
260
|
readAction
|
|
261
|
-
} from "./chunk-
|
|
261
|
+
} from "./chunk-OOLWKQSM.js";
|
|
262
262
|
import {
|
|
263
263
|
extractCustomId
|
|
264
264
|
} from "./chunk-GII32WZW.js";
|
|
@@ -911,7 +911,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
|
|
|
911
911
|
workspace: { mode: "lease" }
|
|
912
912
|
};
|
|
913
913
|
var findModelConfig = async (modelName, provider) => {
|
|
914
|
-
const { ALL_MODELS } = await import("./models-
|
|
914
|
+
const { ALL_MODELS } = await import("./models-UN7YGMPM.js");
|
|
915
915
|
const name = toTrimmedString(modelName);
|
|
916
916
|
const prov = toTrimmedString(provider ?? "");
|
|
917
917
|
if (!name) return null;
|
|
@@ -1156,7 +1156,7 @@ var buildPlatformFormDataFromArgs = async (args) => {
|
|
|
1156
1156
|
const trimmedModel = toTrimmedString(model);
|
|
1157
1157
|
const trimmedProvider = toTrimmedString(provider);
|
|
1158
1158
|
const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
|
|
1159
|
-
const { getModelPricing } = await import("./getPricing-
|
|
1159
|
+
const { getModelPricing } = await import("./getPricing-YYXTEPBP.js");
|
|
1160
1160
|
const normalizedTools = tools ?? [];
|
|
1161
1161
|
const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
|
|
1162
1162
|
const formData = {
|
|
@@ -3945,7 +3945,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3945
3945
|
const deletedDialogIds = [];
|
|
3946
3946
|
const deletedDialogKeys = [];
|
|
3947
3947
|
const failures = [];
|
|
3948
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3948
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-I2DK32ZT.js");
|
|
3949
3949
|
for (const target of targets) {
|
|
3950
3950
|
try {
|
|
3951
3951
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -4254,7 +4254,7 @@ var readSkillDocFunctionSchema = {
|
|
|
4254
4254
|
}
|
|
4255
4255
|
};
|
|
4256
4256
|
async function readSkillDocFunc(args, thunkApi) {
|
|
4257
|
-
const { buildReadDocResult } = await import("./readDocTool-
|
|
4257
|
+
const { buildReadDocResult } = await import("./readDocTool-PQNM63KV.js");
|
|
4258
4258
|
const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
|
|
4259
4259
|
if (typeof id !== "string" || !id.trim()) {
|
|
4260
4260
|
throw new Error("readSkillDoc requires id or doc.");
|
|
@@ -5057,7 +5057,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
|
|
|
5057
5057
|
const spaceKey = createSpaceKey.space(spaceId);
|
|
5058
5058
|
const readSpace = async (dbKey) => {
|
|
5059
5059
|
try {
|
|
5060
|
-
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-
|
|
5060
|
+
const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-RDGCE5MU.js");
|
|
5061
5061
|
if (fresh) {
|
|
5062
5062
|
return await dispatch(readAndWait2(dbKey)).unwrap();
|
|
5063
5063
|
}
|
|
@@ -10900,7 +10900,7 @@ var selectUserIdFromState = (state2) => {
|
|
|
10900
10900
|
var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
|
|
10901
10901
|
async function addImageContentToSpace(input) {
|
|
10902
10902
|
const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
|
|
10903
|
-
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-
|
|
10903
|
+
const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-6IXQSRD2.js")).addContentAction;
|
|
10904
10904
|
await addContentAction2(
|
|
10905
10905
|
{
|
|
10906
10906
|
spaceId: input.spaceId,
|
|
@@ -14821,7 +14821,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14821
14821
|
if (!executionInput) {
|
|
14822
14822
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
14823
14823
|
}
|
|
14824
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
14824
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-AOVE5LKM.js");
|
|
14825
14825
|
const { executor } = findToolExecutor2(run.toolName);
|
|
14826
14826
|
toolRunStarted({
|
|
14827
14827
|
id: run.id,
|
|
@@ -14845,7 +14845,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14845
14845
|
const latestState = thunkApi.getState();
|
|
14846
14846
|
const userId = selectIdentityUserId(latestState);
|
|
14847
14847
|
if (userId) {
|
|
14848
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
14848
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-WQGQWYYT.js");
|
|
14849
14849
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
14850
14850
|
}
|
|
14851
14851
|
}
|
|
@@ -17328,7 +17328,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17328
17328
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17329
17329
|
};
|
|
17330
17330
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17331
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17331
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-OLC6MD7B.js");
|
|
17332
17332
|
if (getDocState().pageKey === id) {
|
|
17333
17333
|
applyExternalDocUpdate({
|
|
17334
17334
|
slateData: finalSlateData,
|
|
@@ -17353,7 +17353,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17353
17353
|
// packages/ai/tools/updateUserPreferenceProfileTool.ts
|
|
17354
17354
|
async function dispatchSetSettings(thunkApi, changes) {
|
|
17355
17355
|
const injectedSetSettings = thunkApi?.extra?.setSettings;
|
|
17356
|
-
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-
|
|
17356
|
+
const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-JR6S7TRD.js")).setSettings;
|
|
17357
17357
|
await thunkApi.dispatch(setSettings(changes)).unwrap();
|
|
17358
17358
|
}
|
|
17359
17359
|
var updateUserPreferenceProfileFunctionSchema = {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-AGGIDPCZ.js";
|
|
7
7
|
import {
|
|
8
8
|
getModelConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4CAPEGHN.js";
|
|
10
10
|
import {
|
|
11
11
|
isPlatformHostedImageModel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JTYPAMGP.js";
|
|
13
13
|
import {
|
|
14
14
|
asOptionalFiniteNumber
|
|
15
15
|
} from "./chunk-WWC7I6TA.js";
|
|
@@ -31,9 +31,10 @@ var getModelPricing = (provider, modelName, _requestedServiceTier) => {
|
|
|
31
31
|
};
|
|
32
32
|
var getModelPricingForModel = (provider, modelName, model) => {
|
|
33
33
|
if (!model.price) return null;
|
|
34
|
+
const rawCacheHit = typeof model.price.inputCacheHit === "number" ? model.price.inputCacheHit : model.price.cachingRead;
|
|
34
35
|
return {
|
|
35
36
|
inputPrice: model.price.input,
|
|
36
|
-
inputCacheHitPrice: typeof
|
|
37
|
+
inputCacheHitPrice: typeof rawCacheHit === "number" ? rawCacheHit : 0,
|
|
37
38
|
outputPrice: model.price.output
|
|
38
39
|
};
|
|
39
40
|
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
buildBuiltinObjectSkillDbKey,
|
|
7
7
|
buildBuiltinObjectSkillPageContent,
|
|
8
8
|
buildCodeWorkDiscipline
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XAQAF25W.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillDocMarkdown,
|
|
12
12
|
resolvePageSkillMetadata
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-O6OSWFZQ.js";
|
|
17
17
|
import {
|
|
18
18
|
nolotusId
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-546FPOW3.js";
|
|
20
20
|
import {
|
|
21
21
|
asNonEmptyStringArray
|
|
22
22
|
} from "./chunk-VMFTFOWF.js";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YPYMGGPJ.js";
|
|
9
9
|
import {
|
|
10
10
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
11
11
|
buildInvalidToolCallSelfHealResult,
|
|
12
12
|
parseToolCallArguments,
|
|
13
13
|
performFetchRequest,
|
|
14
14
|
sanitizeOutboundMessages
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-377KM42Z.js";
|
|
16
16
|
import {
|
|
17
17
|
createSSEParser,
|
|
18
18
|
createToolRunId,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolRunSetPending,
|
|
24
24
|
toolRunStarted,
|
|
25
25
|
toolRunSucceeded
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UBNV6CS6.js";
|
|
27
27
|
import {
|
|
28
28
|
getPublicImageAgentMode
|
|
29
29
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
messageStreamEnd,
|
|
36
36
|
messageStreaming,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-SUERPXJZ.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-X2ZTVRXP.js";
|
|
42
42
|
import {
|
|
43
43
|
addActiveController,
|
|
44
44
|
removeActiveController,
|
|
@@ -56,19 +56,19 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
58
58
|
getModelInfo
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-GRDSMV4V.js";
|
|
60
60
|
import {
|
|
61
61
|
getApiEndpoint
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4CAPEGHN.js";
|
|
63
63
|
import {
|
|
64
64
|
toErrorMessage
|
|
65
65
|
} from "./chunk-HNMXYYJR.js";
|
|
66
66
|
import {
|
|
67
67
|
selectCurrentServer
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-DM4UNXPK.js";
|
|
69
69
|
import {
|
|
70
70
|
write
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-F3UTRUDO.js";
|
|
72
72
|
import {
|
|
73
73
|
createDialogMessageKeyAndId,
|
|
74
74
|
dialogMessageKey,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
patch,
|
|
12
12
|
remove,
|
|
13
13
|
write
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F3UTRUDO.js";
|
|
15
15
|
import {
|
|
16
16
|
createAgentKey,
|
|
17
17
|
toTrimmedString
|
|
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
|
|
|
304
304
|
const overrides = {};
|
|
305
305
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
306
306
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
307
|
-
const { _executeModel } = await import("./_executeModel-
|
|
307
|
+
const { _executeModel } = await import("./_executeModel-U5V7LOJX.js");
|
|
308
308
|
return _executeModel(
|
|
309
309
|
{
|
|
310
310
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
|
|
|
325
325
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
326
326
|
*/
|
|
327
327
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
328
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
328
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-KIOQSDRC.js");
|
|
329
329
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
330
330
|
{
|
|
331
331
|
agentKey: args.agentKey,
|
|
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
|
|
|
341
341
|
* 聊天轮次流式 Agent 调用
|
|
342
342
|
*/
|
|
343
343
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
344
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
344
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-EGQDPMAO.js");
|
|
345
345
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
346
346
|
}),
|
|
347
347
|
/**
|