nolo-cli 0.108.0-alpha.2 → 0.109.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-BY3P5LBB.js → _executeModel-OXVCJ2BM.js} +12 -12
- package/{agentDeleteCommand-66KXCSRR.js → agentDeleteCommand-QJAHAZ4T.js} +1 -1
- package/{agentEmailCommands-63UTONDK.js → agentEmailCommands-3SCPUF33.js} +12 -12
- package/{agentListCommands-NXCOTTZL.js → agentListCommands-QXGSCIV4.js} +1 -1
- package/{agentMachineCommands-Z6RGPZSG.js → agentMachineCommands-E4NUTGI6.js} +2 -2
- package/{agentRecordCommands-JP54ZWND.js → agentRecordCommands-OMWI6OH5.js} +12 -12
- package/{agentRunCommand-RMQWWSHF.js → agentRunCommand-GMSUBYF6.js} +12 -12
- package/{agentRuntimeLocal-E67CTV45.js → agentRuntimeLocal-7MO5IJV6.js} +1 -1
- package/{agentSlice-DG5TIQHE.js → agentSlice-5H7MTCE7.js} +1 -1
- package/{appDeleteCommands-Z36CLGUK.js → appDeleteCommands-UQ5YMNLP.js} +1 -1
- package/{appDeployCommands-ECMUWG6S.js → appDeployCommands-QX6BL5XL.js} +1 -1
- package/{appDeployStatusCommands-CL24TDMA.js → appDeployStatusCommands-QHQVLR3J.js} +1 -1
- package/{appGetCommands-ITHGOYGJ.js → appGetCommands-GY4NGSF4.js} +1 -1
- package/{appListCommands-EEOSI6RC.js → appListCommands-IZCYPSKI.js} +1 -1
- package/{builtinSkillRegistry-FUAVTRVZ.js → builtinSkillRegistry-Q2VVY3SC.js} +2 -2
- package/{chatQueueReduxAdapter-DKLWTT3G.js → chatQueueReduxAdapter-LO7EUBKJ.js} +2 -2
- package/{chunk-P3GYTNDF.js → chunk-3OD2OTTR.js} +1 -1
- package/{chunk-DOTZ5GTO.js → chunk-APB6ES6B.js} +1 -1
- package/{chunk-PWBDVI4R.js → chunk-CQ5TTXPU.js} +5 -5
- package/{chunk-4NNTATRH.js → chunk-DGE5HEGA.js} +1 -1
- package/{chunk-RZGLXO2B.js → chunk-DNAF7JC6.js} +6 -6
- package/{chunk-DHDMC6FO.js → chunk-GIVFXPWK.js} +2 -0
- package/{chunk-TR22GEUU.js → chunk-HLKK4S6U.js} +2 -2
- package/{chunk-LPIYPEME.js → chunk-HQTMPHIS.js} +117 -13
- package/{chunk-G4VIHCGJ.js → chunk-HWGNS46C.js} +3 -3
- package/{chunk-UDIIVXKA.js → chunk-L6LNO27F.js} +6 -6
- package/{chunk-JRQFUXY7.js → chunk-LVIFM7VW.js} +1 -1
- package/{chunk-YTLRHRH3.js → chunk-LXATDEM7.js} +3 -3
- package/{chunk-CW67PN7L.js → chunk-PBF2K4ER.js} +1 -1
- package/{chunk-T3GEOSRJ.js → chunk-QHYC7W2Y.js} +2 -2
- package/{chunk-RVE4DCV3.js → chunk-QPPZN3AA.js} +3 -3
- package/{chunk-SYXOBWOC.js → chunk-TJOYV65D.js} +4 -4
- package/{chunk-YWIEQS6H.js → chunk-XA6KE2HD.js} +8 -8
- package/{contentThunks-JHK6X2KU.js → contentThunks-L4UB5RXR.js} +3 -3
- package/{createAgentAutomationAction-7HX7KBES.js → createAgentAutomationAction-FOXQWOJQ.js} +3 -3
- package/{createDialogAction-VUUUZL54.js → createDialogAction-YRAHHXWR.js} +5 -5
- package/{createPageAction-QWNMGO3O.js → createPageAction-MVFMLE3N.js} +3 -3
- package/{dialogCommands-EN7TYD3I.js → dialogCommands-HSLLNN4Y.js} +1 -1
- package/{dialogSlice-P2K47T3P.js → dialogSlice-VI4GR4PA.js} +2 -2
- package/{docCreateCommands-43JKQEIH.js → docCreateCommands-I2Y4IR2O.js} +1 -1
- package/{docDeleteCommands-RL6D46XE.js → docDeleteCommands-TLRPJXQ6.js} +1 -1
- package/{docReadCommands-TOEUEQDG.js → docReadCommands-6AKGK2LU.js} +1 -1
- package/{docStore-3AHKTJRI.js → docStore-X75VCYIF.js} +1 -1
- package/{docUpdateCommands-FWU5G2XB.js → docUpdateCommands-54AZTMMH.js} +1 -1
- package/{handleSendMessageAction-ID5IKXUE.js → handleSendMessageAction-E3B2YV3N.js} +2 -2
- package/index.js +41 -41
- package/{machineCommands-TTKK4F7C.js → machineCommands-MGVJGN3N.js} +12 -12
- package/{machineWsRunDispatch-RX64L3ET.js → machineWsRunDispatch-AHRZCOIG.js} +12 -12
- package/package.json +1 -1
- package/{readlineWorkspace-KIMUDPPV.js → readlineWorkspace-2G3MDALM.js} +12 -12
- package/{runAgentClientLoop-AN4WIRPQ.js → runAgentClientLoop-O4EDXPBJ.js} +10 -10
- package/{spaceCommands-NA4JMIGT.js → spaceCommands-ESJCQ5UY.js} +1 -1
- package/{streamAgentChatTurn-3TYTHZPJ.js → streamAgentChatTurn-OBSA4Z6K.js} +13 -11
- package/{tools-34SEJSLQ.js → tools-XBU2MRGG.js} +8 -8
- package/{updateDialogTitleAction-RDHNT265.js → updateDialogTitleAction-DATQ2KIC.js} +3 -3
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
} from "./chunk-VF4K2QE6.js";
|
|
82
82
|
import {
|
|
83
83
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-HLKK4S6U.js";
|
|
85
85
|
import {
|
|
86
86
|
createDialogAction
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-QPPZN3AA.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-APB6ES6B.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-XA6KE2HD.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-LXATDEM7.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-LVIFM7VW.js";
|
|
149
149
|
import {
|
|
150
150
|
CAPABILITY_PACKS
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-GIVFXPWK.js";
|
|
152
152
|
import {
|
|
153
153
|
buildSkillDocMarkdown,
|
|
154
154
|
normalizeSkillModalities,
|
|
@@ -331,9 +331,13 @@ var agentAutomationTriggerSchema = {
|
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
333
|
type: "object",
|
|
334
|
-
description: "Inbound email trigger. Cheap code-side filters are evaluated before starting an Agent run.
|
|
334
|
+
description: "Inbound email trigger. Cheap code-side filters are evaluated before starting an Agent run. Set acceptAll=true to fire on every inbound email. Otherwise provide at least one of fromContains, subjectContains, fromContainsAny, or subjectContainsAny \u2014 within a single field, *Any arrays are OR'd; across fields they are AND'd.",
|
|
335
335
|
properties: {
|
|
336
336
|
type: { type: "string", enum: ["email"] },
|
|
337
|
+
acceptAll: {
|
|
338
|
+
type: "boolean",
|
|
339
|
+
description: "When true the automation fires on every inbound email for the bound agent mailbox \u2014 no content filtering."
|
|
340
|
+
},
|
|
337
341
|
fromContains: {
|
|
338
342
|
type: "string",
|
|
339
343
|
description: "Case-insensitive substring match against sender email address."
|
|
@@ -341,12 +345,27 @@ var agentAutomationTriggerSchema = {
|
|
|
341
345
|
subjectContains: {
|
|
342
346
|
type: "string",
|
|
343
347
|
description: "Case-insensitive substring match against email subject."
|
|
348
|
+
},
|
|
349
|
+
fromContainsAny: {
|
|
350
|
+
type: "array",
|
|
351
|
+
description: "OR'd substring match against sender email \u2014 matches if ANY listed needle appears in the From header.",
|
|
352
|
+
items: { type: "string" },
|
|
353
|
+
minItems: 1
|
|
354
|
+
},
|
|
355
|
+
subjectContainsAny: {
|
|
356
|
+
type: "array",
|
|
357
|
+
description: "OR'd substring match against email subject \u2014 matches if ANY listed needle appears in the Subject.",
|
|
358
|
+
items: { type: "string" },
|
|
359
|
+
minItems: 1
|
|
344
360
|
}
|
|
345
361
|
},
|
|
346
362
|
required: ["type"],
|
|
347
363
|
anyOf: [
|
|
364
|
+
{ required: ["acceptAll"] },
|
|
348
365
|
{ required: ["fromContains"] },
|
|
349
|
-
{ required: ["subjectContains"] }
|
|
366
|
+
{ required: ["subjectContains"] },
|
|
367
|
+
{ required: ["fromContainsAny"] },
|
|
368
|
+
{ required: ["subjectContainsAny"] }
|
|
350
369
|
],
|
|
351
370
|
additionalProperties: false
|
|
352
371
|
}
|
|
@@ -477,7 +496,7 @@ var queryUserGrowthReportFunctionSchema = {
|
|
|
477
496
|
};
|
|
478
497
|
var createAgentAutomationFunctionSchema = {
|
|
479
498
|
name: "createAgentAutomation",
|
|
480
|
-
description: "\u521B\u5EFA\u957F\u671F agent automation\u3002\u652F\u6301 cron \u5B9A\u65F6\u89E6\u53D1\uFF0C\u4EE5\u53CA\u6309\u53D1\u4EF6\u4EBA/\u4E3B\u9898\
|
|
499
|
+
description: "\u521B\u5EFA\u957F\u671F agent automation\u3002\u652F\u6301 cron \u5B9A\u65F6\u89E6\u53D1\uFF0C\u4EE5\u53CA\u65B0\u90AE\u4EF6\u4E8B\u4EF6\u89E6\u53D1\uFF08\u53EF\u8BBE acceptAll \u63A5\u6536\u5168\u90E8\u90AE\u4EF6\uFF0C\u6216\u6309\u53D1\u4EF6\u4EBA/\u4E3B\u9898\u8FC7\u6EE4\uFF1B*Any \u6570\u7EC4\u5B57\u6BB5\u5185\u90E8 OR\u3001\u5B57\u6BB5\u4E4B\u95F4 AND\uFF09\u3002email \u89E6\u53D1\u53EA\u5728\u4EE3\u7801\u8FC7\u6EE4\u547D\u4E2D\u540E\u542F\u52A8\u540E\u53F0 Agent run\u3002",
|
|
481
500
|
parameters: {
|
|
482
501
|
type: "object",
|
|
483
502
|
properties: {
|
|
@@ -521,6 +540,57 @@ var createAgentAutomationFunctionSchema = {
|
|
|
521
540
|
required: ["instruction", "trigger"]
|
|
522
541
|
}
|
|
523
542
|
};
|
|
543
|
+
var updateAgentAutomationFunctionSchema = {
|
|
544
|
+
name: "updateAgentAutomation",
|
|
545
|
+
description: "\u90E8\u5206\u66F4\u65B0\u4E00\u4E2A agent automation\u3002\u53EA\u5141\u8BB8 owner user\uFF08automation \u521B\u5EFA\u8005\uFF09\u4E14 owner agent\uFF08automation \u7684 ownerAgentKey\uFF09\u8C03\u7528\u3002\u53EF\u66F4\u65B0\u5B57\u6BB5\uFF1Atitle\u3001instruction\u3001status\uFF08active/paused\uFF09\u3001trigger\uFF08email trigger \u4F1A\u88AB\u91CD\u65B0\u5F52\u4E00\u5316\uFF09\u3001spaceId\u3001subjectRefs\u3002\u4E0D\u53EF\u66F4\u65B0\uFF1Aid\u3001dbKey\u3001ownerAgentKey\u3001createdBy\u3001createdAt\u3001runStatus\u3002",
|
|
546
|
+
parameters: {
|
|
547
|
+
type: "object",
|
|
548
|
+
properties: {
|
|
549
|
+
automationKey: {
|
|
550
|
+
type: "string",
|
|
551
|
+
description: "automation \u7684 dbKey\uFF08agent-automation-{userId}-{id}\uFF09\u3002"
|
|
552
|
+
},
|
|
553
|
+
title: { type: "string", description: "\u65B0\u6807\u9898\u3002" },
|
|
554
|
+
instruction: { type: "string", description: "\u65B0 instruction\u3002" },
|
|
555
|
+
status: {
|
|
556
|
+
type: "string",
|
|
557
|
+
enum: ["active", "paused"],
|
|
558
|
+
description: "automation \u72B6\u6001\u3002paused \u65F6 dispatcher \u4E0D\u518D\u89E6\u53D1 run\u3002"
|
|
559
|
+
},
|
|
560
|
+
trigger: agentAutomationTriggerSchema,
|
|
561
|
+
spaceId: { type: "string", description: "\u65B0\u7684 spaceId\uFF1B\u4F20\u7A7A\u5B57\u7B26\u4E32\u6E05\u9664\u3002" },
|
|
562
|
+
subjectRefs: {
|
|
563
|
+
type: "array",
|
|
564
|
+
description: "\u65B0\u7684 subjectRefs\uFF1B\u4F20\u7A7A\u6570\u7EC4\u6E05\u9664\u3002",
|
|
565
|
+
items: {
|
|
566
|
+
type: "object",
|
|
567
|
+
properties: {
|
|
568
|
+
kind: { type: "string" },
|
|
569
|
+
id: { type: "string" },
|
|
570
|
+
role: { type: "string" }
|
|
571
|
+
},
|
|
572
|
+
required: ["kind", "id"],
|
|
573
|
+
additionalProperties: true
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
required: ["automationKey"]
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
var deleteAgentAutomationFunctionSchema = {
|
|
581
|
+
name: "deleteAgentAutomation",
|
|
582
|
+
description: "\u5220\u9664\u4E00\u4E2A agent automation\uFF08\u542B owner index\uFF09\u3002\u53EA\u5141\u8BB8 owner user\uFF08automation \u521B\u5EFA\u8005\uFF09\u4E14 owner agent \u8C03\u7528\u3002\u91CD\u590D\u5220\u9664\u5DF2\u4E0D\u5B58\u5728\u7684 automation \u8FD4\u56DE deleted:false, reason:not_found \u2014\u2014 \u662F\u5E42\u7B49 no-op\u3002",
|
|
583
|
+
parameters: {
|
|
584
|
+
type: "object",
|
|
585
|
+
properties: {
|
|
586
|
+
automationKey: {
|
|
587
|
+
type: "string",
|
|
588
|
+
description: "automation \u7684 dbKey\uFF08agent-automation-{userId}-{id}\uFF09\u3002"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
required: ["automationKey"]
|
|
592
|
+
}
|
|
593
|
+
};
|
|
524
594
|
var notifyUserFunctionSchema = {
|
|
525
595
|
name: "notifyUser",
|
|
526
596
|
description: "\u53D1\u9001\u4E00\u6761\u7AD9\u5185\u901A\u77E5\u7ED9\u5F53\u524D\u7528\u6237\u3002\u7B2C\u4E00\u7248\u53EA\u652F\u6301\u7AD9\u5185\u901A\u77E5\uFF0C\u540E\u7EED\u53EF\u6269\u5C55\u90AE\u4EF6\u3001\u684C\u9762\u7AEF\u3001\u7F51\u9875\u548C\u79FB\u52A8\u7AEF\u901A\u77E5\u3002",
|
|
@@ -562,6 +632,8 @@ var serverOnlyResult = (toolName) => ({
|
|
|
562
632
|
var queryModelUsageFunc = async () => serverOnlyResult("queryModelUsage");
|
|
563
633
|
var queryUserGrowthReportFunc = async () => serverOnlyResult("queryUserGrowthReport");
|
|
564
634
|
var createAgentAutomationFunc = async () => serverOnlyResult("createAgentAutomation");
|
|
635
|
+
var updateAgentAutomationFunc = async () => serverOnlyResult("updateAgentAutomation");
|
|
636
|
+
var deleteAgentAutomationFunc = async () => serverOnlyResult("deleteAgentAutomation");
|
|
565
637
|
var notifyUserFunc = async () => serverOnlyResult("notifyUser");
|
|
566
638
|
|
|
567
639
|
// packages/ai/tools/toolResultError.ts
|
|
@@ -3970,7 +4042,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3970
4042
|
const deletedDialogIds = [];
|
|
3971
4043
|
const deletedDialogKeys = [];
|
|
3972
4044
|
const failures = [];
|
|
3973
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
4045
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-VI4GR4PA.js");
|
|
3974
4046
|
for (const target of targets) {
|
|
3975
4047
|
try {
|
|
3976
4048
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -15044,7 +15116,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
15044
15116
|
if (!executionInput) {
|
|
15045
15117
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
15046
15118
|
}
|
|
15047
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
15119
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-XBU2MRGG.js");
|
|
15048
15120
|
const { executor } = findToolExecutor2(run.toolName);
|
|
15049
15121
|
toolRunStarted({
|
|
15050
15122
|
id: run.id,
|
|
@@ -17551,7 +17623,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17551
17623
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17552
17624
|
};
|
|
17553
17625
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17554
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17626
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-X75VCYIF.js");
|
|
17555
17627
|
if (getDocState().pageKey === id) {
|
|
17556
17628
|
applyExternalDocUpdate({
|
|
17557
17629
|
slateData: finalSlateData,
|
|
@@ -18299,6 +18371,38 @@ var baseToolDefinitions = [
|
|
|
18299
18371
|
costLevel: "low",
|
|
18300
18372
|
defaultConsent: "ask"
|
|
18301
18373
|
},
|
|
18374
|
+
{
|
|
18375
|
+
id: "updateAgentAutomation",
|
|
18376
|
+
schema: updateAgentAutomationFunctionSchema,
|
|
18377
|
+
executor: updateAgentAutomationFunc,
|
|
18378
|
+
description: {
|
|
18379
|
+
name: "updateAgentAutomation",
|
|
18380
|
+
description: "\u66F4\u65B0\u4E00\u4E2A agent automation \u7684\u6807\u9898\u3001instruction\u3001trigger\u3001status \u7B49\u5B57\u6BB5\u3002",
|
|
18381
|
+
category: "\u8BA1\u5212\u4E0E\u7F16\u6392"
|
|
18382
|
+
},
|
|
18383
|
+
behavior: "action",
|
|
18384
|
+
uiGroup: "general",
|
|
18385
|
+
capability: "general",
|
|
18386
|
+
riskLevel: "medium",
|
|
18387
|
+
costLevel: "low",
|
|
18388
|
+
defaultConsent: "ask"
|
|
18389
|
+
},
|
|
18390
|
+
{
|
|
18391
|
+
id: "deleteAgentAutomation",
|
|
18392
|
+
schema: deleteAgentAutomationFunctionSchema,
|
|
18393
|
+
executor: deleteAgentAutomationFunc,
|
|
18394
|
+
description: {
|
|
18395
|
+
name: "deleteAgentAutomation",
|
|
18396
|
+
description: "\u5220\u9664\u4E00\u4E2A agent automation \u53CA\u5176 owner index\u3002",
|
|
18397
|
+
category: "\u8BA1\u5212\u4E0E\u7F16\u6392"
|
|
18398
|
+
},
|
|
18399
|
+
behavior: "action",
|
|
18400
|
+
uiGroup: "general",
|
|
18401
|
+
capability: "general",
|
|
18402
|
+
riskLevel: "high",
|
|
18403
|
+
costLevel: "low",
|
|
18404
|
+
defaultConsent: "ask"
|
|
18405
|
+
},
|
|
18302
18406
|
{
|
|
18303
18407
|
id: "notifyUser",
|
|
18304
18408
|
schema: notifyUserFunctionSchema,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-L6LNO27F.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HQTMPHIS.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DGE5HEGA.js";
|
|
11
11
|
import {
|
|
12
12
|
applyToolSurfaceConstraints
|
|
13
13
|
} from "./chunk-IIVGDG4I.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
inlineImageUrlsForCustomProvider,
|
|
63
63
|
prepareTools
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-QHYC7W2Y.js";
|
|
65
65
|
import {
|
|
66
66
|
getServerProviderSecret
|
|
67
67
|
} from "./chunk-HS7MLR74.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
rememberMemoryFunctionSchema,
|
|
81
81
|
resolveAgentRequiredPackIds,
|
|
82
82
|
setTodoListFunc
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-HQTMPHIS.js";
|
|
84
84
|
import {
|
|
85
85
|
fetchWithTransientRetry,
|
|
86
86
|
isTransientFetchError
|
|
@@ -109,14 +109,14 @@ import {
|
|
|
109
109
|
prepareTokenUsageData,
|
|
110
110
|
resolveBuiltinPlatformAgentConfig,
|
|
111
111
|
runKeyed
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-XA6KE2HD.js";
|
|
113
113
|
import {
|
|
114
114
|
BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
|
|
115
115
|
BUILTIN_TITLE_LLM_CONFIG
|
|
116
116
|
} from "./chunk-MC4XLIJ7.js";
|
|
117
117
|
import {
|
|
118
118
|
fetchServerSyncedCredential
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-LXATDEM7.js";
|
|
120
120
|
import {
|
|
121
121
|
require_date_fns
|
|
122
122
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -132,7 +132,7 @@ import {
|
|
|
132
132
|
applySystemBuiltinSkillFilter,
|
|
133
133
|
expandEnabledPacks,
|
|
134
134
|
resolveEffectiveEnabledPacks
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-GIVFXPWK.js";
|
|
136
136
|
import {
|
|
137
137
|
DEFAULT_HYBRID_READ_TIMEOUT_MS,
|
|
138
138
|
Duration_exports,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
readDevinUpstreamFailure,
|
|
163
163
|
resolveOpenAiCompatibleProviderConfig,
|
|
164
164
|
summarizeToolArguments
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-DGE5HEGA.js";
|
|
166
166
|
import {
|
|
167
167
|
PlatformStreamInterruptedError,
|
|
168
168
|
buildPlatformChatCompletionRequest,
|
|
@@ -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-OXVCJ2BM.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-O4EDXPBJ.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-OBSA4Z6K.js");
|
|
345
345
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
346
346
|
}),
|
|
347
347
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APB6ES6B.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareAndPersistMessage,
|
|
6
6
|
uiAskChoiceFunc,
|
|
7
7
|
uiAskChoiceFunctionSchema
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XA6KE2HD.js";
|
|
9
9
|
import {
|
|
10
10
|
require_date_fns
|
|
11
11
|
} from "./chunk-M76ECQRD.js";
|
|
12
12
|
import {
|
|
13
13
|
buildBuiltinObjectSkillReference
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GIVFXPWK.js";
|
|
15
15
|
import {
|
|
16
16
|
PLATFORM_HOSTED_DEEPSEEK_FLASH_MODEL,
|
|
17
17
|
PLATFORM_HOSTED_KIMI_PROVIDER
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
clipMultilineText,
|
|
9
9
|
fetchAndSerializeTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HQTMPHIS.js";
|
|
11
11
|
import {
|
|
12
12
|
isGatewayHttpStatus
|
|
13
13
|
} from "./chunk-NF64D32W.js";
|
|
@@ -28,19 +28,19 @@ import {
|
|
|
28
28
|
} from "./chunk-MEYIRKDN.js";
|
|
29
29
|
import {
|
|
30
30
|
fetchAndCacheMessages
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XA6KE2HD.js";
|
|
32
32
|
import {
|
|
33
33
|
shouldUseServerProxy
|
|
34
34
|
} from "./chunk-YYLHWIW6.js";
|
|
35
35
|
import {
|
|
36
36
|
fetchServerSyncedCredential
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-LXATDEM7.js";
|
|
38
38
|
import {
|
|
39
39
|
buildSkillGuidancePromptBlock,
|
|
40
40
|
extractRuntimePageCapabilities,
|
|
41
41
|
resolveBuiltinSkillPage,
|
|
42
42
|
resolveSkillGraphFromRoots
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-LVIFM7VW.js";
|
|
44
44
|
import {
|
|
45
45
|
buildIdentityBlock,
|
|
46
46
|
buildRuntimeGuidanceBlocks,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-AGGIDPCZ.js";
|
|
15
15
|
import {
|
|
16
16
|
runLlm
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LXATDEM7.js";
|
|
18
18
|
import {
|
|
19
19
|
cleanupCliSessionForDialog
|
|
20
20
|
} from "./chunk-BFDFRLLQ.js";
|
|
@@ -19998,7 +19998,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
19998
19998
|
runtimeOptions: args.runtimeOptions
|
|
19999
19999
|
});
|
|
20000
20000
|
if (agentKeyToUse) {
|
|
20001
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
20001
|
+
const { streamAgentChatTurn } = await import("./agentSlice-5H7MTCE7.js");
|
|
20002
20002
|
await dispatch(
|
|
20003
20003
|
streamAgentChatTurn({
|
|
20004
20004
|
agentKey: agentKeyToUse,
|
|
@@ -21134,7 +21134,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
if (isCurrentDialog) {
|
|
21136
21136
|
await thunkApi.dispatch(resetMsgs());
|
|
21137
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
21137
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-VI4GR4PA.js");
|
|
21138
21138
|
dispatch(clearPendingAttachments2());
|
|
21139
21139
|
}
|
|
21140
21140
|
return { dialogKey, isCurrentDialog, attachmentPlan };
|
|
@@ -21142,15 +21142,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
21142
21142
|
|
|
21143
21143
|
// packages/chat/dialog/dialogSlice.ts
|
|
21144
21144
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
21145
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
21145
|
+
const { createDialogAction } = await import("./createDialogAction-YRAHHXWR.js");
|
|
21146
21146
|
return createDialogAction(args, thunkApi);
|
|
21147
21147
|
};
|
|
21148
21148
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
21149
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
21149
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-FOXQWOJQ.js");
|
|
21150
21150
|
return createAgentAutomationAction(args, thunkApi);
|
|
21151
21151
|
};
|
|
21152
21152
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
21153
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
21153
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-DATQ2KIC.js");
|
|
21154
21154
|
return updateDialogTitleAction(args, thunkApi);
|
|
21155
21155
|
};
|
|
21156
21156
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -21174,7 +21174,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
21174
21174
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
21175
21175
|
};
|
|
21176
21176
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
21177
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
21177
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-E3B2YV3N.js");
|
|
21178
21178
|
return handleSendMessageAction(args, thunkApi);
|
|
21179
21179
|
};
|
|
21180
21180
|
function clearDialogState() {
|
|
@@ -21187,7 +21187,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
21187
21187
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
21188
21188
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
21189
21189
|
try {
|
|
21190
|
-
const { createDocState } = await import("./docStore-
|
|
21190
|
+
const { createDocState } = await import("./docStore-X75VCYIF.js");
|
|
21191
21191
|
const pageKey = await createDocState(
|
|
21192
21192
|
{ slateData, title },
|
|
21193
21193
|
{ dispatch, getState }
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
updateContentPinned,
|
|
8
8
|
updateContentTitle,
|
|
9
9
|
uploadAndAddFileToSpace
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-APB6ES6B.js";
|
|
11
11
|
import "./chunk-ZJ7UHBJS.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-XA6KE2HD.js";
|
|
13
13
|
import "./chunk-MC4XLIJ7.js";
|
|
14
14
|
import "./chunk-3BMYXEUW.js";
|
|
15
15
|
import "./chunk-YYLHWIW6.js";
|
|
16
16
|
import "./chunk-AGGIDPCZ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LXATDEM7.js";
|
|
18
18
|
import "./chunk-BFDFRLLQ.js";
|
|
19
19
|
import "./chunk-5RGU3J7P.js";
|
|
20
20
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-APB6ES6B.js";
|
|
4
4
|
import "./chunk-ZJ7UHBJS.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-XA6KE2HD.js";
|
|
6
6
|
import "./chunk-MC4XLIJ7.js";
|
|
7
7
|
import "./chunk-3BMYXEUW.js";
|
|
8
8
|
import "./chunk-YYLHWIW6.js";
|
|
9
9
|
import "./chunk-AGGIDPCZ.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-LXATDEM7.js";
|
|
11
11
|
import "./chunk-BFDFRLLQ.js";
|
|
12
12
|
import "./chunk-5RGU3J7P.js";
|
|
13
13
|
import "./chunk-6YTOJY35.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDialogAction,
|
|
3
3
|
isLocalOwnerDialogAgents
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-QPPZN3AA.js";
|
|
5
|
+
import "./chunk-APB6ES6B.js";
|
|
6
6
|
import "./chunk-ZJ7UHBJS.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-XA6KE2HD.js";
|
|
8
8
|
import "./chunk-MC4XLIJ7.js";
|
|
9
9
|
import "./chunk-3BMYXEUW.js";
|
|
10
10
|
import "./chunk-YYLHWIW6.js";
|
|
11
11
|
import "./chunk-AGGIDPCZ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-LXATDEM7.js";
|
|
13
13
|
import "./chunk-BFDFRLLQ.js";
|
|
14
14
|
import "./chunk-5RGU3J7P.js";
|
|
15
15
|
import "./chunk-6YTOJY35.js";
|
|
16
16
|
import "./chunk-M76ECQRD.js";
|
|
17
17
|
import "./chunk-YDH3FDFQ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-GIVFXPWK.js";
|
|
19
19
|
import "./chunk-Q554LLSI.js";
|
|
20
20
|
import "./chunk-KHCLMKZZ.js";
|
|
21
21
|
import "./chunk-HKNXJGEC.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
addContentToSpace,
|
|
16
16
|
client_default
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-APB6ES6B.js";
|
|
18
18
|
import {
|
|
19
19
|
getCurrentSpaceId
|
|
20
20
|
} from "./chunk-ZJ7UHBJS.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-XA6KE2HD.js";
|
|
22
22
|
import "./chunk-MC4XLIJ7.js";
|
|
23
23
|
import "./chunk-3BMYXEUW.js";
|
|
24
24
|
import "./chunk-YYLHWIW6.js";
|
|
25
25
|
import "./chunk-AGGIDPCZ.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-LXATDEM7.js";
|
|
27
27
|
import "./chunk-BFDFRLLQ.js";
|
|
28
28
|
import "./chunk-5RGU3J7P.js";
|
|
29
29
|
import "./chunk-6YTOJY35.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-KQHGZWSV.js";
|
|
|
24
24
|
import "./chunk-3BMYXEUW.js";
|
|
25
25
|
import "./chunk-URMS4XY2.js";
|
|
26
26
|
import "./chunk-GLKOYSRU.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-DGE5HEGA.js";
|
|
28
28
|
import "./chunk-H4AHY5BU.js";
|
|
29
29
|
import "./chunk-FV3JEYR3.js";
|
|
30
30
|
import "./chunk-GMZLP5DV.js";
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
switchDialogAgent,
|
|
21
21
|
updateDialogTitle,
|
|
22
22
|
updateTokens
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-XA6KE2HD.js";
|
|
24
24
|
import "./chunk-MC4XLIJ7.js";
|
|
25
25
|
import "./chunk-3BMYXEUW.js";
|
|
26
26
|
import "./chunk-YYLHWIW6.js";
|
|
27
27
|
import "./chunk-AGGIDPCZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-LXATDEM7.js";
|
|
29
29
|
import "./chunk-BFDFRLLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
getActiveDialogAgentId
|
|
@@ -28,7 +28,7 @@ import "./chunk-SV5IJK6K.js";
|
|
|
28
28
|
import "./chunk-VF4K2QE6.js";
|
|
29
29
|
import "./chunk-Q554LLSI.js";
|
|
30
30
|
import "./chunk-KHCLMKZZ.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-DGE5HEGA.js";
|
|
32
32
|
import "./chunk-H4AHY5BU.js";
|
|
33
33
|
import "./chunk-FV3JEYR3.js";
|
|
34
34
|
import "./chunk-GMZLP5DV.js";
|
|
@@ -21,7 +21,7 @@ import "./chunk-KQHGZWSV.js";
|
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
22
|
import "./chunk-Q554LLSI.js";
|
|
23
23
|
import "./chunk-KHCLMKZZ.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-DGE5HEGA.js";
|
|
25
25
|
import "./chunk-H4AHY5BU.js";
|
|
26
26
|
import "./chunk-FV3JEYR3.js";
|
|
27
27
|
import "./chunk-GMZLP5DV.js";
|
|
@@ -16,7 +16,7 @@ import "./chunk-SV5IJK6K.js";
|
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
17
|
import "./chunk-Q554LLSI.js";
|
|
18
18
|
import "./chunk-KHCLMKZZ.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DGE5HEGA.js";
|
|
20
20
|
import "./chunk-H4AHY5BU.js";
|
|
21
21
|
import "./chunk-FV3JEYR3.js";
|
|
22
22
|
import "./chunk-GMZLP5DV.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
resolvePageSkillMetadata
|
|
31
31
|
} from "./chunk-Q554LLSI.js";
|
|
32
32
|
import "./chunk-KHCLMKZZ.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-DGE5HEGA.js";
|
|
34
34
|
import "./chunk-H4AHY5BU.js";
|
|
35
35
|
import "./chunk-FV3JEYR3.js";
|
|
36
36
|
import "./chunk-GMZLP5DV.js";
|