nolo-cli 0.252.0-alpha.3 → 0.254.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-RXHY2BDR.js → _executeModel-OMDET3E2.js} +29 -29
- package/{addContentAction-F4XO3VRF.js → addContentAction-MT4BECXT.js} +6 -6
- package/{addDialogAgentAction-NSCVHTZJ.js → addDialogAgentAction-ZZTJ5GBD.js} +5 -5
- package/{agentDeleteCommand-OKR6IDGK.js → agentDeleteCommand-5WXEECFH.js} +36 -36
- package/{agentEmailCommands-UKPURCCI.js → agentEmailCommands-3QWBB2JL.js} +36 -36
- package/{agentListCommands-CTY7WAMN.js → agentListCommands-WTEF5RKJ.js} +16 -16
- package/{agentMachineCommands-WTCQHXHZ.js → agentMachineCommands-DP44GKA6.js} +12 -11
- package/{agentRecordCommands-IM2WIFKB.js → agentRecordCommands-4I7P34GJ.js} +36 -36
- package/{agentRunCommand-7MCCRUJY.js → agentRunCommand-VAKWFXJV.js} +36 -36
- package/{agentRunControl-KNNDEEDI.js → agentRunControl-5ABAIBQT.js} +2 -2
- package/{agentRuntimeLocal-EOW6FFXL.js → agentRuntimeLocal-IO3GGTCJ.js} +7 -7
- package/{agentSlice-PVFGBJXB.js → agentSlice-5ZSVWJHV.js} +6 -6
- package/{appDeleteCommands-3VCRRWUX.js → appDeleteCommands-ZQ4ZEKTC.js} +13 -12
- package/{appDeployCommands-XN6IEMYK.js → appDeployCommands-4XT7PFW5.js} +13 -12
- package/{appDeployStatusCommands-ZSJJXMVR.js → appDeployStatusCommands-5RVMRYQW.js} +13 -12
- package/{appGetCommands-DJ7YQCEE.js → appGetCommands-VH5W3RFK.js} +13 -12
- package/{appListCommands-4KU5CV5H.js → appListCommands-TAHZLAL3.js} +13 -12
- package/{builtinSkillRegistry-PQWEXSFW.js → builtinSkillRegistry-66PEOD4Y.js} +1 -1
- package/{chunk-25GCVHBZ.js → chunk-25BDZGD7.js} +1 -1
- package/chunk-2G3XMM3O.js +336 -0
- package/{chunk-VZWYP7LD.js → chunk-2RCMFPUZ.js} +2 -2
- package/{chunk-OQOXDQLB.js → chunk-2VYX3ZCR.js} +3 -3
- package/{chunk-UDQZ5JT7.js → chunk-3SEBCWLD.js} +17394 -17306
- package/{chunk-YWLMUFZ5.js → chunk-4GWNEPY6.js} +1 -1
- package/{chunk-SE7UURHT.js → chunk-4Z7Q4QZF.js} +12 -12
- package/{chunk-GJ4UTSAW.js → chunk-53UOBNTI.js} +4 -4
- package/{chunk-RGWYRTSY.js → chunk-6WI4PFPP.js} +21 -23
- package/{chunk-V644LXPC.js → chunk-7STRX24O.js} +3 -3
- package/chunk-AIHNB5QH.js +1394 -0
- package/{chunk-FJPVVLP3.js → chunk-AX63ZU2W.js} +4 -4
- package/{chunk-EQJK6LSN.js → chunk-D4CUS6NT.js} +3 -3
- package/{chunk-SBBSUBY3.js → chunk-DNY33GGQ.js} +1 -1
- package/{chunk-N2ZAY2DK.js → chunk-GFXPPQZN.js} +1 -1
- package/{chunk-GUFTHWDO.js → chunk-GJKEOBCV.js} +9 -9
- package/{chunk-BTQU2PRC.js → chunk-GK772DEV.js} +1 -1
- package/{chunk-N7UXTVAR.js → chunk-HEQJ5XND.js} +1 -1
- package/{chunk-BLBGVSLB.js → chunk-HEUHCHAR.js} +5 -5
- package/{chunk-MOAVLCCM.js → chunk-HKPIFK7F.js} +3 -3
- package/{chunk-WNIBQBOR.js → chunk-HS4JGZQH.js} +1 -1
- package/{chunk-BVCCRSGK.js → chunk-IDCGMZLC.js} +5 -5
- package/{chunk-KO6JNZCF.js → chunk-IGK4OXAO.js} +21 -8
- package/{chunk-64ACTEAE.js → chunk-JKO32CCL.js} +1 -1
- package/{chunk-ZMXO5G3E.js → chunk-K4LLTJUO.js} +4 -2
- package/{chunk-CSTCYYCR.js → chunk-KR4W72OK.js} +9 -9
- package/{chunk-MDWHMQON.js → chunk-M7GMJBQJ.js} +1 -1
- package/{chunk-EPBEZKYK.js → chunk-MCQXBKC6.js} +2 -2
- package/{chunk-26KL6533.js → chunk-MICGEDCN.js} +18 -18
- package/{chunk-RE32BIKY.js → chunk-MR72IIX5.js} +3 -3
- package/{chunk-WJOC3AEM.js → chunk-MRYKRL2V.js} +1 -1
- package/{chunk-2HF6DINU.js → chunk-MW3XUUYS.js} +6 -6
- package/{chunk-4KBKOG2L.js → chunk-NEDBPW44.js} +2 -2
- package/{chunk-Z47UZT27.js → chunk-NMGG3NUB.js} +1 -1
- package/{chunk-N2MDL5AZ.js → chunk-NXNHG3QT.js} +9 -9
- package/{chunk-3LL5HRIJ.js → chunk-OLS2J3WE.js} +1 -1
- package/{chunk-7XO73H5X.js → chunk-P4JX7YMQ.js} +1 -1
- package/{chunk-Q5M27DUE.js → chunk-PR25J652.js} +1 -1
- package/{chunk-JX2IG37T.js → chunk-PTY2VZM5.js} +1 -1
- package/{chunk-OTNPEE4G.js → chunk-SID2TFMV.js} +87 -63
- package/{chunk-NWZRCUHM.js → chunk-TA2JQUWA.js} +101 -192
- package/{chunk-UGHNYYOE.js → chunk-VPSPVLCM.js} +2 -2
- package/{chunk-OTOPQXP5.js → chunk-XWR2YD4L.js} +1 -1
- package/{chunk-K7RWY7JH.js → chunk-YW5L3XOO.js} +7 -7
- package/{chunk-IQXMWBI6.js → chunk-YYHWEVBI.js} +2 -2
- package/{chunk-ZMWDHPNG.js → chunk-Z2ZCKNKX.js} +1 -5
- package/{chunk-U3ZK2MXG.js → chunk-ZAKWT4XQ.js} +3 -3
- package/{cliLocalAgentRecordReader-OHAC4JTY.js → cliLocalAgentRecordReader-2WBUVRVD.js} +9 -9
- package/{commandRegistry-YSV6ZWPO.js → commandRegistry-DONNI3FW.js} +46 -117
- package/{contentThunks-GSMUNWBA.js → contentThunks-THSXC6WQ.js} +11 -11
- package/{createAgentAutomationAction-RMADR4LG.js → createAgentAutomationAction-WNQOJ4DG.js} +11 -11
- package/{createDialogAction-CM5CBQVH.js → createDialogAction-YORDQFFC.js} +12 -12
- package/{createPageAction-JMGVMCTH.js → createPageAction-2S7V5OCW.js} +12 -12
- package/{dbSlice-Q637QR4L.js → dbSlice-HXFRXGI3.js} +5 -5
- package/{deleteFile-TP6MKFUX.js → deleteFile-QDSZVTUJ.js} +3 -3
- package/{dialogCommands-IZSD4CQM.js → dialogCommands-MEH4CVRL.js} +15 -14
- package/{dialogSlice-ARQKXXTD.js → dialogSlice-JOICDGQU.js} +9 -9
- package/{docCreateCommands-ZJFHCZV4.js → docCreateCommands-MVAYVGQ5.js} +12 -11
- package/{docDeleteCommands-LY5MF2BI.js → docDeleteCommands-TKXPRA3O.js} +13 -12
- package/{docReadCommands-4X2DHCNZ.js → docReadCommands-MR2YKCZP.js} +12 -11
- package/{docStore-QWRVKIRI.js → docStore-NKVLWCXX.js} +6 -6
- package/{docUpdateCommands-5TIT7DAJ.js → docUpdateCommands-VJ6A6F7F.js} +12 -11
- package/{handleSendMessageAction-TVR55KVT.js → handleSendMessageAction-SNNYOQ4P.js} +22 -22
- package/{hostCredentialCreate-T33O7WLA.js → hostCredentialCreate-SDQUFL23.js} +36 -36
- package/index.js +4 -4
- package/{localRuntimeAdapter-CNFP7ZEP.js → localRuntimeAdapter-JHYH5ZIR.js} +35 -35
- package/{machineCommands-TGA5EH2G.js → machineCommands-BXSBRM7L.js} +36 -36
- package/{machineWsRunDispatch-LMJPGTTZ.js → machineWsRunDispatch-KEXSHGSD.js} +36 -36
- package/{memberThunks-IGYRMEQC.js → memberThunks-ZXEUM6DH.js} +7 -7
- package/package.json +1 -1
- package/{projectArchive-Q46BYZQ6.js → projectArchive-FDYE7VNC.js} +12 -12
- package/{read-MPPXZHAO.js → read-T5WPCAY7.js} +3 -3
- package/{readDocTool-PKZ35PCR.js → readDocTool-DW4DCRQG.js} +1 -1
- package/{readlineWorkspace-HA6DWK4N.js → readlineWorkspace-ME2C64XI.js} +46 -64
- package/{removeDialogAgentAction-H6S7VLNA.js → removeDialogAgentAction-MXJEB77K.js} +6 -6
- package/{runAgentClientLoop-WZJ4HXOH.js → runAgentClientLoop-UAGXVYW5.js} +27 -27
- package/{setDialogExtraReferencesAction-CARUTAWS.js → setDialogExtraReferencesAction-BILVMHM7.js} +6 -6
- package/{setPrimaryDialogAgentAction-VRV56MLG.js → setPrimaryDialogAgentAction-CUBBWACR.js} +6 -6
- package/{settingThunks-4FC4HXGN.js → settingThunks-BRBBAGEK.js} +5 -5
- package/{spaceCommands-27Z5JAU3.js → spaceCommands-K4HHG7OO.js} +12 -11
- package/{streamAgentChatTurn-JKMBFM2O.js → streamAgentChatTurn-RZUB6JTH.js} +35 -35
- package/{switchDialogAgentAction-O236K6HB.js → switchDialogAgentAction-SSI2CSNE.js} +5 -5
- package/{tools-4RFLNHUW.js → tools-23F5EEVM.js} +23 -23
- package/{tuiRestart-GF4DGAAN.js → tuiRestart-7IKI6JZK.js} +3 -3
- package/{updateDialogTitleAction-F3ONQM3N.js → updateDialogTitleAction-TJWT4LXL.js} +11 -11
- package/chunk-CGSIW2KI.js +0 -594
- package/chunk-HF4C5WIU.js +0 -980
- package/chunk-U5LOKQ2R.js +0 -176
- package/{chunk-REINTCQF.js → chunk-4CL6QIQZ.js} +3 -3
- package/{chunk-5BRVDQTX.js → chunk-KWARDHBI.js} +7 -7
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
resolveCreationSpaceId
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YW5L3XOO.js";
|
|
18
18
|
import {
|
|
19
19
|
runtime_default
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MICGEDCN.js";
|
|
21
21
|
import {
|
|
22
22
|
getCurrentSpaceId
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DNY33GGQ.js";
|
|
24
24
|
import {
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-53UOBNTI.js";
|
|
27
27
|
import {
|
|
28
28
|
selectIdentityUserId
|
|
29
29
|
} from "./chunk-PXYBUFDB.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultReasoningEffort
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AIHNB5QH.js";
|
|
4
4
|
import {
|
|
5
5
|
buildLocalAgentLookupKeys,
|
|
6
6
|
shouldReadAgentKeyRemotely
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JKO32CCL.js";
|
|
8
8
|
import {
|
|
9
9
|
createHostCredentialBrokerChain,
|
|
10
10
|
createStrictHostCredentialBroker
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
formatInvalidAgentSkillModeMessage,
|
|
15
15
|
formatInvalidAgentSkillModesFieldMessage,
|
|
16
16
|
isAgentSkillModesFieldShapeValid
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PTY2VZM5.js";
|
|
18
18
|
import {
|
|
19
19
|
buildAgentApiKeyCredentialRef,
|
|
20
20
|
migrateAgentSecrets
|
|
@@ -3,25 +3,25 @@ import {
|
|
|
3
3
|
} from "./chunk-VF4K2QE6.js";
|
|
4
4
|
import {
|
|
5
5
|
setDialogExtraReferencesAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OLS2J3WE.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAndCacheTableRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YW5L3XOO.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveDialogRuntimeAgentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MICGEDCN.js";
|
|
13
13
|
import {
|
|
14
14
|
createSpaceKey
|
|
15
15
|
} from "./chunk-UAD2WT54.js";
|
|
16
16
|
import {
|
|
17
17
|
selectById
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-53UOBNTI.js";
|
|
19
19
|
import {
|
|
20
20
|
require_react
|
|
21
21
|
} from "./chunk-RD3QLZQV.js";
|
|
22
22
|
import {
|
|
23
23
|
selectRuntimeSnapshot
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-4CL6QIQZ.js";
|
|
25
25
|
import {
|
|
26
26
|
createAsyncThunk
|
|
27
27
|
} from "./chunk-W4S5FQWQ.js";
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
} from "./chunk-PXYBUFDB.js";
|
|
31
31
|
import {
|
|
32
32
|
isAgentSkillDisabled
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PTY2VZM5.js";
|
|
34
34
|
import {
|
|
35
35
|
listBuiltinSkills,
|
|
36
36
|
resolveBuiltinSkillByName
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-Z2ZCKNKX.js";
|
|
38
38
|
import {
|
|
39
39
|
parseSkillDocProtocol
|
|
40
40
|
} from "./chunk-AETZ7AD6.js";
|
|
@@ -791,7 +791,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
791
791
|
if (!executionInput) {
|
|
792
792
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
793
793
|
}
|
|
794
|
-
const { findToolExecutor } = await import("./tools-
|
|
794
|
+
const { findToolExecutor } = await import("./tools-23F5EEVM.js");
|
|
795
795
|
const { executor } = findToolExecutor(run.toolName);
|
|
796
796
|
toolRunStarted({
|
|
797
797
|
id: run.id,
|
|
@@ -815,7 +815,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
815
815
|
const latestState = thunkApi.getState();
|
|
816
816
|
const userId = selectIdentityUserId(latestState);
|
|
817
817
|
if (userId) {
|
|
818
|
-
const { fetchUserSpaceMemberships } = await import("./memberThunks-
|
|
818
|
+
const { fetchUserSpaceMemberships } = await import("./memberThunks-ZXEUM6DH.js");
|
|
819
819
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
820
820
|
}
|
|
821
821
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
deriveCredentialGroup
|
|
3
|
-
} from "./chunk-HF4C5WIU.js";
|
|
4
1
|
import {
|
|
5
2
|
listUserRecordsFromServers,
|
|
6
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
7
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4GWNEPY6.js";
|
|
8
5
|
import {
|
|
9
6
|
agentRecordHasConfiguredCredential
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D4CUS6NT.js";
|
|
8
|
+
import {
|
|
9
|
+
deriveCredentialGroup
|
|
10
|
+
} from "./chunk-AIHNB5QH.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-BV3FLP2L.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YW5L3XOO.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MICGEDCN.js";
|
|
7
7
|
import {
|
|
8
8
|
require_format
|
|
9
9
|
} from "./chunk-BUDVRYES.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
removeCachedEntity,
|
|
17
17
|
upsertSSREntity,
|
|
18
18
|
write
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-53UOBNTI.js";
|
|
20
20
|
import {
|
|
21
21
|
isDevelopment
|
|
22
22
|
} from "./chunk-VYRTLHIT.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
upsertSSREntity,
|
|
3
3
|
write
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-53UOBNTI.js";
|
|
5
5
|
import {
|
|
6
6
|
getRuntimeServerContext,
|
|
7
7
|
resolveRecordAuthority
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4CL6QIQZ.js";
|
|
9
9
|
import {
|
|
10
10
|
TIMEOUT,
|
|
11
11
|
asyncThunkCreator,
|
|
@@ -471,7 +471,7 @@ var slice = createSliceWithThunks({
|
|
|
471
471
|
const overrides = {};
|
|
472
472
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
473
473
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
474
|
-
const { _executeModel } = await import("./_executeModel-
|
|
474
|
+
const { _executeModel } = await import("./_executeModel-OMDET3E2.js");
|
|
475
475
|
return _executeModel(
|
|
476
476
|
{
|
|
477
477
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -492,7 +492,7 @@ var slice = createSliceWithThunks({
|
|
|
492
492
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
493
493
|
*/
|
|
494
494
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
495
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
495
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-UAGXVYW5.js");
|
|
496
496
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
497
497
|
{
|
|
498
498
|
agentKey: args.agentKey,
|
|
@@ -508,7 +508,7 @@ var slice = createSliceWithThunks({
|
|
|
508
508
|
* 聊天轮次流式 Agent 调用
|
|
509
509
|
*/
|
|
510
510
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
511
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
511
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-RZUB6JTH.js");
|
|
512
512
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
513
513
|
}),
|
|
514
514
|
/**
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-KZ4A7EIV.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MW3XUUYS.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IDCGMZLC.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-SID2TFMV.js";
|
|
19
19
|
import {
|
|
20
20
|
convertMessagesToResponsesInput,
|
|
21
21
|
getUsageRequestOptions,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
} from "./chunk-2SXN7LAY.js";
|
|
46
46
|
import {
|
|
47
47
|
buildSkillGuidancePromptBlock
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-Z2ZCKNKX.js";
|
|
49
49
|
import {
|
|
50
50
|
canonicalizeToolNames
|
|
51
51
|
} from "./chunk-YLAHYLDQ.js";
|
|
@@ -342,7 +342,13 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
|
|
|
342
342
|
if (!contexts && !agentConfig.prompt) return messages;
|
|
343
343
|
const dispatchIntent = detectDispatchIntentFromMessages(messages);
|
|
344
344
|
if (isClaudeModel(resolvedModel)) {
|
|
345
|
-
const compiled = buildSystemPromptContext({
|
|
345
|
+
const compiled = buildSystemPromptContext({
|
|
346
|
+
agentConfig,
|
|
347
|
+
language,
|
|
348
|
+
contexts,
|
|
349
|
+
dispatchIntent,
|
|
350
|
+
callerModel: agentConfig?.model
|
|
351
|
+
});
|
|
346
352
|
if (!compiled.content.trim()) return messages;
|
|
347
353
|
const content = applyClaudeCache(
|
|
348
354
|
compiled.stablePrefixContent,
|
|
@@ -353,7 +359,13 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
|
|
|
353
359
|
}
|
|
354
360
|
const promptProvenance = preservePromptProvenance && agentConfig.prompt?.trim() ? { agent_prompt_in_messages: true } : {};
|
|
355
361
|
if (preservePromptBoundary) {
|
|
356
|
-
const compiled = buildSystemPromptContext({
|
|
362
|
+
const compiled = buildSystemPromptContext({
|
|
363
|
+
agentConfig,
|
|
364
|
+
language,
|
|
365
|
+
contexts,
|
|
366
|
+
dispatchIntent,
|
|
367
|
+
callerModel: agentConfig?.model
|
|
368
|
+
});
|
|
357
369
|
if (!compiled.content.trim()) return messages;
|
|
358
370
|
return [{
|
|
359
371
|
role: "system",
|
|
@@ -362,7 +374,7 @@ var prependPromptMessage = (messages, agentConfig, resolvedModel, language, cont
|
|
|
362
374
|
...promptProvenance
|
|
363
375
|
}, ...messages];
|
|
364
376
|
}
|
|
365
|
-
const promptContent = buildSystemPrompt({ agentConfig, language, contexts, dispatchIntent });
|
|
377
|
+
const promptContent = buildSystemPrompt({ agentConfig, language, contexts, dispatchIntent, callerModel: agentConfig?.model });
|
|
366
378
|
if (!promptContent.trim()) return messages;
|
|
367
379
|
const systemMessage = { role: "system", content: promptContent, ...promptProvenance };
|
|
368
380
|
return [systemMessage, ...messages];
|
|
@@ -608,7 +620,8 @@ function generateResponseRequestBody(agentConfig, msgs, contexts, prependSystemP
|
|
|
608
620
|
language,
|
|
609
621
|
contexts,
|
|
610
622
|
// 按当前用户输入检测派发意图:无意图只注入最小派发协议(安全硬门常在)。
|
|
611
|
-
dispatchIntent: detectDispatchIntentFromMessages(msgs)
|
|
623
|
+
dispatchIntent: detectDispatchIntentFromMessages(msgs),
|
|
624
|
+
callerModel: agentConfig?.model
|
|
612
625
|
});
|
|
613
626
|
const legacyContinuation = supportsServerState && responsesState === void 0 && agentConfig.previous_response_id !== void 0;
|
|
614
627
|
if (!stateful && !legacyContinuation && usesGpt62DeveloperPrefix(agentConfig)) {
|
|
@@ -795,6 +795,8 @@ var CLOSED_OBJECT_SCHEMA_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
|
795
795
|
function stringToolParam(description) {
|
|
796
796
|
return { type: "string", description };
|
|
797
797
|
}
|
|
798
|
+
var READ_DIALOG_TOOL_DESCRIPTION = `Read a persisted dialog (meta + messages) by full dbKey (dialog-<userId>-<id>) or dialog URL; use listDialogs when unclear. A bare id only resolves for the currently logged-in user \u2014 pass user/server. For runs, do not poll a running dialog's full transcript: prefer controlAgentRun, else mode="status" for a compact snapshot; read the transcript only after done/failed/cancelled. Response is budgeted: reasoning_content, tool_calls, tool results and metadata are head-truncated (truncated, messagesTotal/messagesReturned, estimatedOriginalChars/omittedChars). For review or verification, read mode="status" plus the final verdict and take diffs from the worktree instead of pulling the full execution transcript.`;
|
|
799
|
+
var LIST_AGENTS_TOOL_DESCRIPTION = "List agents for delegation. Default scope='all' dedupes the user's own/favorite agents (owned, OAuth, custom-API, local) with the public marketplace; scope='public' discovers shared/marketplace agents only. Public agents may consume platform credits \u2014 check billingSource. Each entry's agentKey is runnable (agent-<userId>-<id> / agent-pub-<id>): Copy the agentKey verbatim; use the runnable agentKey exactly and do not infer it from the display name. Copy `agentKey` verbatim into startAgentRun. Returns planningRecommendation (reason, currentTier, requiresPaidApproval): advice when planning is needed, not authorization. Rate-limited agents are listed too: availabilityStatus/availabilityReason/nextAvailableAt are reference info \u2014 advisory annotations, not dispatch gates; unavailableCount counts them. Fan-out guard limits only same-batch concurrency (sharing a credential alone is not a dependency) unless allowUnknownCredential confirms.";
|
|
798
800
|
function buildNoloWorkspaceOpenAiTools(args) {
|
|
799
801
|
const toolNames = new Set(args.toolNames ?? []);
|
|
800
802
|
const tools = [];
|
|
@@ -820,7 +822,7 @@ function buildNoloWorkspaceOpenAiTools(args) {
|
|
|
820
822
|
limit: { type: "integer", description: "Maximum dialogs to return." },
|
|
821
823
|
space: stringToolParam("Optional space id or URL.")
|
|
822
824
|
});
|
|
823
|
-
add("readDialog",
|
|
825
|
+
add("readDialog", READ_DIALOG_TOOL_DESCRIPTION, {
|
|
824
826
|
dialog: stringToolParam("Dialog dbKey (dialog-<userId>-<id>), dialog URL, or bare id (resolved against user/current account)."),
|
|
825
827
|
mode: {
|
|
826
828
|
type: "string",
|
|
@@ -855,7 +857,7 @@ function buildNoloWorkspaceOpenAiTools(args) {
|
|
|
855
857
|
description: "Confirmed dialog ids or dbKeys to delete."
|
|
856
858
|
}
|
|
857
859
|
}, ["query"]);
|
|
858
|
-
add("listAgents",
|
|
860
|
+
add("listAgents", LIST_AGENTS_TOOL_DESCRIPTION, {
|
|
859
861
|
query: stringToolParam("Optional case-insensitive search substring matching agent name, model, provider, handle, or agentKey."),
|
|
860
862
|
scope: { type: "string", enum: ["all", "public"], description: "Discovery scope; all is the default and includes the public marketplace." },
|
|
861
863
|
publicOnly: { type: "boolean", description: "Deprecated compatibility alias for scope='public'." },
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MCQXBKC6.js";
|
|
9
9
|
import {
|
|
10
10
|
CONFIRMATION_INPUT_KEYS,
|
|
11
11
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
performFetchRequest,
|
|
15
15
|
sanitizeOutboundMessages,
|
|
16
16
|
stripModelToolArgs
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IGK4OXAO.js";
|
|
18
18
|
import {
|
|
19
19
|
findToolExecutor,
|
|
20
20
|
toolDefinitionsByName
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TA2JQUWA.js";
|
|
22
22
|
import {
|
|
23
23
|
createSSEParser,
|
|
24
24
|
createToolRunId,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
toolRunSetPending,
|
|
28
28
|
toolRunStarted,
|
|
29
29
|
toolRunSucceeded
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GJKEOBCV.js";
|
|
31
31
|
import {
|
|
32
32
|
addToolMessage,
|
|
33
33
|
messageStreamEnd,
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
toast,
|
|
36
36
|
toolResultNeedsUserConfirmation,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-MICGEDCN.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-IDCGMZLC.js";
|
|
42
42
|
import {
|
|
43
43
|
getCurrentSpaceId
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-DNY33GGQ.js";
|
|
45
45
|
import {
|
|
46
46
|
selectCurrentServer
|
|
47
47
|
} from "./chunk-SCY2O7CU.js";
|
|
48
48
|
import {
|
|
49
49
|
write
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-53UOBNTI.js";
|
|
51
51
|
import {
|
|
52
52
|
addActiveController,
|
|
53
53
|
getActiveDialogKey,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
isCompleteInstructionOutput,
|
|
94
94
|
sanitizeToolOutputText,
|
|
95
95
|
scrubSecrets
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-PTY2VZM5.js";
|
|
97
97
|
import {
|
|
98
98
|
EMPTY_ASSISTANT_REPAIR_PROMPT
|
|
99
99
|
} from "./chunk-CIAV4WK2.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TA2JQUWA.js";
|
|
4
4
|
import {
|
|
5
5
|
INLINE_IMAGE_MAX_BYTES,
|
|
6
6
|
INLINE_IMAGE_TOTAL_MAX_BYTES,
|
|
7
7
|
runtime_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MICGEDCN.js";
|
|
9
9
|
import {
|
|
10
10
|
canonicalizeToolNames
|
|
11
11
|
} from "./chunk-YLAHYLDQ.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./chunk-523DITKR.js";
|
|
11
11
|
import {
|
|
12
12
|
runLlm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IDCGMZLC.js";
|
|
14
14
|
import {
|
|
15
15
|
cleanupCliSessionForDialog
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-M7GMJBQJ.js";
|
|
17
17
|
import {
|
|
18
18
|
getActiveDialogAgentId,
|
|
19
19
|
getDialogAgentIds,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-5RGU3J7P.js";
|
|
22
22
|
import {
|
|
23
23
|
addContentAction
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2RCMFPUZ.js";
|
|
25
25
|
import {
|
|
26
26
|
patch,
|
|
27
27
|
read,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
selectById,
|
|
30
30
|
upload,
|
|
31
31
|
write
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-53UOBNTI.js";
|
|
33
33
|
import {
|
|
34
34
|
fetchMessages
|
|
35
35
|
} from "./chunk-HXER7YJF.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
resolveUserAuthorityServer,
|
|
67
67
|
scheduleDeleteReplication,
|
|
68
68
|
waitForWriteAck
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-4CL6QIQZ.js";
|
|
70
70
|
import {
|
|
71
71
|
asyncThunkCreator,
|
|
72
72
|
buildCreateSlice,
|
|
@@ -15192,7 +15192,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
15192
15192
|
runtimeOptions: args.runtimeOptions
|
|
15193
15193
|
});
|
|
15194
15194
|
if (agentKeyToUse) {
|
|
15195
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
15195
|
+
const { streamAgentChatTurn } = await import("./agentSlice-5ZSVWJHV.js");
|
|
15196
15196
|
await dispatch(
|
|
15197
15197
|
streamAgentChatTurn({
|
|
15198
15198
|
agentKey: agentKeyToUse,
|
|
@@ -16276,7 +16276,7 @@ var deleteOwnedDialogAttachments = async (args) => {
|
|
|
16276
16276
|
metadataReadFailures
|
|
16277
16277
|
});
|
|
16278
16278
|
if (!plan.deleteCandidates.length) return plan;
|
|
16279
|
-
const { deleteFileAction } = await import("./deleteFile-
|
|
16279
|
+
const { deleteFileAction } = await import("./deleteFile-QDSZVTUJ.js");
|
|
16280
16280
|
for (const candidate of plan.deleteCandidates) {
|
|
16281
16281
|
if (candidate.fileDbKey) {
|
|
16282
16282
|
await deleteFileAction(candidate.fileDbKey, args.thunkApi);
|
|
@@ -16338,7 +16338,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
16338
16338
|
}
|
|
16339
16339
|
if (isCurrentDialog) {
|
|
16340
16340
|
await thunkApi.dispatch(resetMsgs());
|
|
16341
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
16341
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-JOICDGQU.js");
|
|
16342
16342
|
dispatch(clearPendingAttachments2());
|
|
16343
16343
|
}
|
|
16344
16344
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -16346,39 +16346,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
16346
16346
|
|
|
16347
16347
|
// packages/chat/dialog/dialogSlice.ts
|
|
16348
16348
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
16349
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
16349
|
+
const { createDialogAction } = await import("./createDialogAction-YORDQFFC.js");
|
|
16350
16350
|
return createDialogAction(args, thunkApi);
|
|
16351
16351
|
};
|
|
16352
16352
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
16353
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
16353
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-WNQOJ4DG.js");
|
|
16354
16354
|
return createAgentAutomationAction(args, thunkApi);
|
|
16355
16355
|
};
|
|
16356
16356
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
16357
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
16357
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-TJWT4LXL.js");
|
|
16358
16358
|
return updateDialogTitleAction(args, thunkApi);
|
|
16359
16359
|
};
|
|
16360
16360
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
16361
|
-
const { addDialogAgentAction } = await import("./addDialogAgentAction-
|
|
16361
|
+
const { addDialogAgentAction } = await import("./addDialogAgentAction-ZZTJ5GBD.js");
|
|
16362
16362
|
return addDialogAgentAction(args, thunkApi);
|
|
16363
16363
|
};
|
|
16364
16364
|
var runRemoveDialogAgentAction = async (args, thunkApi) => {
|
|
16365
|
-
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-
|
|
16365
|
+
const { removeDialogAgentAction } = await import("./removeDialogAgentAction-MXJEB77K.js");
|
|
16366
16366
|
return removeDialogAgentAction(args, thunkApi);
|
|
16367
16367
|
};
|
|
16368
16368
|
var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
|
|
16369
|
-
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-
|
|
16369
|
+
const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-CUBBWACR.js");
|
|
16370
16370
|
return setPrimaryDialogAgentAction(args, thunkApi);
|
|
16371
16371
|
};
|
|
16372
16372
|
var runSwitchDialogAgentAction = async (args, thunkApi) => {
|
|
16373
|
-
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-
|
|
16373
|
+
const { switchDialogAgentAction } = await import("./switchDialogAgentAction-SSI2CSNE.js");
|
|
16374
16374
|
return switchDialogAgentAction(args, thunkApi);
|
|
16375
16375
|
};
|
|
16376
16376
|
var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
16377
|
-
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-
|
|
16377
|
+
const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-BILVMHM7.js");
|
|
16378
16378
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
16379
16379
|
};
|
|
16380
16380
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
16381
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
16381
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-SNNYOQ4P.js");
|
|
16382
16382
|
return handleSendMessageAction(args, thunkApi);
|
|
16383
16383
|
};
|
|
16384
16384
|
function clearDialogState() {
|
|
@@ -16391,7 +16391,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
16391
16391
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
16392
16392
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
16393
16393
|
try {
|
|
16394
|
-
const { createDocState } = await import("./docStore-
|
|
16394
|
+
const { createDocState } = await import("./docStore-NKVLWCXX.js");
|
|
16395
16395
|
const pageKey = await createDocState(
|
|
16396
16396
|
{ slateData, title },
|
|
16397
16397
|
{ dispatch, getState }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6WI4PFPP.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GJKEOBCV.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3SEBCWLD.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveLocalRuntimeEnvFromPolicy
|
|
13
13
|
} from "./chunk-USGHJSGO.js";
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
clipMultilineText,
|
|
3
3
|
fetchAndSerializeTable,
|
|
4
4
|
waitForAbortableDelay
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GJKEOBCV.js";
|
|
6
6
|
import {
|
|
7
7
|
isGatewayHttpStatus
|
|
8
8
|
} from "./chunk-NF64D32W.js";
|
|
9
9
|
import {
|
|
10
10
|
resolvePageReadMarkdown,
|
|
11
11
|
slateToSimplifiedMarkdown
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NMGG3NUB.js";
|
|
13
13
|
import {
|
|
14
14
|
extractCategorizedMentions
|
|
15
15
|
} from "./chunk-AGIM7IMJ.js";
|
|
16
16
|
import {
|
|
17
17
|
fetchAndCacheMessages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MICGEDCN.js";
|
|
19
19
|
import {
|
|
20
20
|
createSpaceKey
|
|
21
21
|
} from "./chunk-UAD2WT54.js";
|
|
22
22
|
import {
|
|
23
23
|
read
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-53UOBNTI.js";
|
|
25
25
|
import {
|
|
26
26
|
createDrainExhaustedResponse,
|
|
27
27
|
isCoreDrainingBody,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-3L2WKC3W.js";
|
|
31
31
|
import {
|
|
32
32
|
getRuntimeServerContext
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4CL6QIQZ.js";
|
|
34
34
|
import {
|
|
35
35
|
classifyGenerationError
|
|
36
36
|
} from "./chunk-TLE77UJ5.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
resolveBuiltinSkillEntry,
|
|
50
50
|
resolveBuiltinSkillPage,
|
|
51
51
|
resolveSkillGraphFromRoots
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Z2ZCKNKX.js";
|
|
53
53
|
import {
|
|
54
54
|
resolvePageSkillMetadata
|
|
55
55
|
} from "./chunk-AETZ7AD6.js";
|