nolo-cli 0.16.0-alpha.21 → 0.16.0-alpha.22
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-GRCQXT5R.js → _executeModel-KZWX5QIN.js} +9 -9
- package/{agentEmailCommands-MPEUMRAS.js → agentEmailCommands-XSXSLPCX.js} +8 -8
- package/{agentMachineCommands-WYM6YRYJ.js → agentMachineCommands-PT36QT26.js} +1 -1
- package/{agentRecordCommands-BVWSHMIY.js → agentRecordCommands-OVA55AXA.js} +8 -8
- package/{agentRunCommand-E3ZI6RSF.js → agentRunCommand-NMFBM2GG.js} +8 -8
- package/{agentSlice-D33GU3JL.js → agentSlice-XG7L7VOZ.js} +1 -1
- package/{chunk-N2HYIBLH.js → chunk-ADBZ6EHB.js} +2 -2
- package/{chunk-RUTSBLDM.js → chunk-B7B7VU3F.js} +4 -4
- package/{chunk-ENP2ELIL.js → chunk-D7LV3CZW.js} +1 -1
- package/{chunk-E5KQTMMJ.js → chunk-H4I7UQN4.js} +18 -4
- package/{chunk-GMZZ5EKJ.js → chunk-ICE32NXZ.js} +2 -2
- package/{chunk-5PGGCJGV.js → chunk-KTVQYCNL.js} +3 -3
- package/{chunk-RIDWN7AP.js → chunk-S3I45ULW.js} +1 -1
- package/{chunk-HQNPCMWL.js → chunk-T25IBGAU.js} +1 -1
- package/{chunk-J67FKTTY.js → chunk-TJ2QT3CA.js} +8 -8
- package/{chunk-JFE7XW4D.js → chunk-TMVLHNQE.js} +1 -1
- package/{chunk-L2RRMXNJ.js → chunk-TXSSZAT3.js} +1 -1
- package/{chunk-EXAEHRLI.js → chunk-U4FIJOFW.js} +3 -3
- package/{chunk-UIOYWBU7.js → chunk-VSKCDWDT.js} +78 -8
- package/{chunk-MUIT5AAM.js → chunk-ZJAJKQJT.js} +5 -5
- package/{createAgentAutomationAction-ONKZ46XE.js → createAgentAutomationAction-FNQGBMEW.js} +2 -2
- package/{createDialogAction-7QWJEBKU.js → createDialogAction-VZWTWUOB.js} +3 -3
- package/{createPageAction-PB3KXZIA.js → createPageAction-IV7XMARF.js} +2 -2
- package/{db-HCJ5PRB5.js → db-W3O47YGF.js} +38 -12
- package/{dialogCommands-YZFU4Q26.js → dialogCommands-NX3OPPVH.js} +1 -1
- package/{dialogSlice-53B5ISGQ.js → dialogSlice-LLWBTA75.js} +2 -2
- package/{docStore-LJXXRB5W.js → docStore-KBF5KT2W.js} +3 -3
- package/{handleSendMessageAction-ICGX4QCM.js → handleSendMessageAction-TORIOP76.js} +2 -2
- package/index.js +20 -20
- package/{localDialogRead-HQZPVIE3.js → localDialogRead-4H3QJFLW.js} +1 -1
- package/{machineCommands-YLDZXK4D.js → machineCommands-YNHOEIST.js} +8 -8
- package/{machineWsRunDispatch-LTQL3DRE.js → machineWsRunDispatch-YTUQAHDL.js} +8 -8
- package/package.json +1 -1
- package/{readlineWorkspace-OSPVWNAT.js → readlineWorkspace-BEQTOIU7.js} +31 -14
- package/{runAgentClientLoop-76SUKKPX.js → runAgentClientLoop-V4TNS6WA.js} +7 -7
- package/{spaceSlice-M4PVN5PO.js → spaceSlice-LKORHAMY.js} +2 -2
- package/{streamAgentChatTurn-GCKTFSHQ.js → streamAgentChatTurn-C26LGVZ7.js} +8 -8
- package/{tools-RJVFXOLR.js → tools-RM4ZJGGN.js} +5 -5
- package/{updateDialogTitleAction-PSR67DLV.js → updateDialogTitleAction-NXN45FGL.js} +2 -2
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
filterAndCleanMessages,
|
|
3
3
|
sendOpenAICompletionsRequest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZJAJKQJT.js";
|
|
5
5
|
import "./chunk-JEXVIMYZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-TXSSZAT3.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchAgentContexts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TMVLHNQE.js";
|
|
10
10
|
import {
|
|
11
11
|
generateRequestBody,
|
|
12
12
|
mergeReferences,
|
|
13
13
|
performFetchRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-U4FIJOFW.js";
|
|
15
15
|
import "./chunk-L6NVTGI7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-TJ2QT3CA.js";
|
|
17
17
|
import "./chunk-RQSOAMPJ.js";
|
|
18
18
|
import "./chunk-JP7REMYP.js";
|
|
19
19
|
import "./chunk-KQHGZWSV.js";
|
|
20
20
|
import "./chunk-4T5F7YZQ.js";
|
|
21
21
|
import "./chunk-3LY4F7SV.js";
|
|
22
22
|
import "./chunk-VF4K2QE6.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-ADBZ6EHB.js";
|
|
24
24
|
import "./chunk-VIDPVFP3.js";
|
|
25
25
|
import "./chunk-JLA4FXYC.js";
|
|
26
26
|
import "./chunk-VP4WJWKW.js";
|
|
27
27
|
import "./chunk-63W5N6P3.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-S3I45ULW.js";
|
|
29
29
|
import {
|
|
30
30
|
selectAllMsgs,
|
|
31
31
|
selectCurrentDialogConfig,
|
|
32
32
|
updateTokensAction
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-VSKCDWDT.js";
|
|
34
34
|
import "./chunk-XOIF2TNF.js";
|
|
35
35
|
import "./chunk-B5TOXZAK.js";
|
|
36
36
|
import "./chunk-MRC4Q34M.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-KTVQYCNL.js";
|
|
38
38
|
import "./chunk-CWMSB67P.js";
|
|
39
39
|
import "./chunk-XHG22OEX.js";
|
|
40
40
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-RG2U2MTJ.js";
|
|
5
5
|
import {
|
|
6
6
|
runAgentCreateCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D7LV3CZW.js";
|
|
8
8
|
import {
|
|
9
9
|
positionalArgs,
|
|
10
10
|
readFlagValue
|
|
@@ -16,35 +16,35 @@ import {
|
|
|
16
16
|
fetchWithTransportFallback,
|
|
17
17
|
resolveAgentRecordFromHybridStore
|
|
18
18
|
} from "./chunk-IQZ6TGVW.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-B7B7VU3F.js";
|
|
20
20
|
import "./chunk-UB4RYYNQ.js";
|
|
21
21
|
import "./chunk-BE2GNT5E.js";
|
|
22
22
|
import {
|
|
23
23
|
resolveCliAgentKeyInput
|
|
24
24
|
} from "./chunk-VHBWHNVT.js";
|
|
25
25
|
import "./chunk-MVQ4TBSD.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-TXSSZAT3.js";
|
|
27
27
|
import "./chunk-L6NVTGI7.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-TJ2QT3CA.js";
|
|
29
29
|
import "./chunk-RQSOAMPJ.js";
|
|
30
30
|
import "./chunk-JP7REMYP.js";
|
|
31
31
|
import "./chunk-KQHGZWSV.js";
|
|
32
32
|
import "./chunk-4T5F7YZQ.js";
|
|
33
33
|
import "./chunk-3LY4F7SV.js";
|
|
34
34
|
import "./chunk-VF4K2QE6.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-ADBZ6EHB.js";
|
|
36
36
|
import "./chunk-OWOHNGCN.js";
|
|
37
37
|
import "./chunk-JLA4FXYC.js";
|
|
38
38
|
import "./chunk-VP4WJWKW.js";
|
|
39
39
|
import "./chunk-63W5N6P3.js";
|
|
40
40
|
import "./chunk-WJRJDX2W.js";
|
|
41
41
|
import "./chunk-LM6IYQ3F.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-S3I45ULW.js";
|
|
43
|
+
import "./chunk-VSKCDWDT.js";
|
|
44
44
|
import "./chunk-XOIF2TNF.js";
|
|
45
45
|
import "./chunk-B5TOXZAK.js";
|
|
46
46
|
import "./chunk-MRC4Q34M.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-KTVQYCNL.js";
|
|
48
48
|
import "./chunk-CWMSB67P.js";
|
|
49
49
|
import "./chunk-XHG22OEX.js";
|
|
50
50
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -79,7 +79,7 @@ async function defaultExecuteCli(provider, prompt, options) {
|
|
|
79
79
|
return executeCli(provider, prompt, options);
|
|
80
80
|
}
|
|
81
81
|
async function forwardConnectorRunMessage(machine, message, pushMessage, executeCli, env, fetchImpl) {
|
|
82
|
-
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-
|
|
82
|
+
const { handleConnectorRunMessage } = await import("./machineWsRunDispatch-YTUQAHDL.js");
|
|
83
83
|
return handleConnectorRunMessage(message, pushMessage, executeCli, env, fetchImpl);
|
|
84
84
|
}
|
|
85
85
|
async function detectLaunchableMachineInfo() {
|
|
@@ -2,36 +2,36 @@ import {
|
|
|
2
2
|
runAgentCreateCommand,
|
|
3
3
|
runAgentReadCommand,
|
|
4
4
|
runAgentUpdateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-D7LV3CZW.js";
|
|
6
6
|
import "./chunk-WFHXMLHZ.js";
|
|
7
7
|
import "./chunk-IQZ6TGVW.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-B7B7VU3F.js";
|
|
9
9
|
import "./chunk-UB4RYYNQ.js";
|
|
10
10
|
import "./chunk-BE2GNT5E.js";
|
|
11
11
|
import "./chunk-VHBWHNVT.js";
|
|
12
12
|
import "./chunk-MVQ4TBSD.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-TXSSZAT3.js";
|
|
14
14
|
import "./chunk-L6NVTGI7.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-TJ2QT3CA.js";
|
|
16
16
|
import "./chunk-RQSOAMPJ.js";
|
|
17
17
|
import "./chunk-JP7REMYP.js";
|
|
18
18
|
import "./chunk-KQHGZWSV.js";
|
|
19
19
|
import "./chunk-4T5F7YZQ.js";
|
|
20
20
|
import "./chunk-3LY4F7SV.js";
|
|
21
21
|
import "./chunk-VF4K2QE6.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-ADBZ6EHB.js";
|
|
23
23
|
import "./chunk-OWOHNGCN.js";
|
|
24
24
|
import "./chunk-JLA4FXYC.js";
|
|
25
25
|
import "./chunk-VP4WJWKW.js";
|
|
26
26
|
import "./chunk-63W5N6P3.js";
|
|
27
27
|
import "./chunk-WJRJDX2W.js";
|
|
28
28
|
import "./chunk-LM6IYQ3F.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-S3I45ULW.js";
|
|
30
|
+
import "./chunk-VSKCDWDT.js";
|
|
31
31
|
import "./chunk-XOIF2TNF.js";
|
|
32
32
|
import "./chunk-B5TOXZAK.js";
|
|
33
33
|
import "./chunk-MRC4Q34M.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-KTVQYCNL.js";
|
|
35
35
|
import "./chunk-CWMSB67P.js";
|
|
36
36
|
import "./chunk-XHG22OEX.js";
|
|
37
37
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
prependSubjectDialogMarker,
|
|
6
6
|
resolveWorkflowReference,
|
|
7
7
|
runAgentRunCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-H4I7UQN4.js";
|
|
9
9
|
import {
|
|
10
10
|
parseAgentRunArgs
|
|
11
11
|
} from "./chunk-DZ3XJVET.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-IQZ6TGVW.js";
|
|
|
14
14
|
import {
|
|
15
15
|
QUOTA_ERROR_PATTERNS,
|
|
16
16
|
isQuotaExhaustedError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B7B7VU3F.js";
|
|
18
18
|
import "./chunk-UB4RYYNQ.js";
|
|
19
19
|
import "./chunk-BE2GNT5E.js";
|
|
20
20
|
import "./chunk-VHBWHNVT.js";
|
|
@@ -22,28 +22,28 @@ import "./chunk-LTRXGFMS.js";
|
|
|
22
22
|
import "./chunk-MVQ4TBSD.js";
|
|
23
23
|
import "./chunk-6HYVJV7B.js";
|
|
24
24
|
import "./chunk-JEXVIMYZ.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-TXSSZAT3.js";
|
|
26
26
|
import "./chunk-L6NVTGI7.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-TJ2QT3CA.js";
|
|
28
28
|
import "./chunk-RQSOAMPJ.js";
|
|
29
29
|
import "./chunk-JP7REMYP.js";
|
|
30
30
|
import "./chunk-KQHGZWSV.js";
|
|
31
31
|
import "./chunk-4T5F7YZQ.js";
|
|
32
32
|
import "./chunk-3LY4F7SV.js";
|
|
33
33
|
import "./chunk-VF4K2QE6.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-ADBZ6EHB.js";
|
|
35
35
|
import "./chunk-OWOHNGCN.js";
|
|
36
36
|
import "./chunk-JLA4FXYC.js";
|
|
37
37
|
import "./chunk-VP4WJWKW.js";
|
|
38
38
|
import "./chunk-63W5N6P3.js";
|
|
39
39
|
import "./chunk-WJRJDX2W.js";
|
|
40
40
|
import "./chunk-LM6IYQ3F.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-S3I45ULW.js";
|
|
42
|
+
import "./chunk-VSKCDWDT.js";
|
|
43
43
|
import "./chunk-XOIF2TNF.js";
|
|
44
44
|
import "./chunk-B5TOXZAK.js";
|
|
45
45
|
import "./chunk-MRC4Q34M.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-KTVQYCNL.js";
|
|
47
47
|
import "./chunk-CWMSB67P.js";
|
|
48
48
|
import "./chunk-XHG22OEX.js";
|
|
49
49
|
import "./chunk-Z4NR32XR.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VSKCDWDT.js";
|
|
4
4
|
import {
|
|
5
5
|
require_date_fns
|
|
6
6
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -367,7 +367,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
async function createDocState(args, thunkApi) {
|
|
370
|
-
const { createPageAction } = await import("./createPageAction-
|
|
370
|
+
const { createPageAction } = await import("./createPageAction-IV7XMARF.js");
|
|
371
371
|
return createPageAction(args, thunkApi);
|
|
372
372
|
}
|
|
373
373
|
function subscribe(listener) {
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
inlineImageUrlsForCustomProvider,
|
|
22
22
|
prepareTools
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TXSSZAT3.js";
|
|
24
24
|
import {
|
|
25
25
|
getAntigravityUserAgent,
|
|
26
26
|
isAntigravityOAuthAgent,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
readXhsProfileFunctionSchema,
|
|
42
42
|
rememberMemoryFunctionSchema,
|
|
43
43
|
resolveEffectiveEnabledPacks
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-TJ2QT3CA.js";
|
|
45
45
|
import {
|
|
46
46
|
createDrainExhaustedResponse,
|
|
47
47
|
isCoreDrainingBody,
|
|
@@ -56,13 +56,13 @@ import {
|
|
|
56
56
|
} from "./chunk-WJRJDX2W.js";
|
|
57
57
|
import {
|
|
58
58
|
prepareTokenUsageData
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-VSKCDWDT.js";
|
|
60
60
|
import {
|
|
61
61
|
BUILTIN_TITLE_LLM_CONFIG
|
|
62
62
|
} from "./chunk-XOIF2TNF.js";
|
|
63
63
|
import {
|
|
64
64
|
fetchServerSyncedCredential
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-KTVQYCNL.js";
|
|
66
66
|
import {
|
|
67
67
|
buildAgentRuntimeDialogWritePlan,
|
|
68
68
|
buildLocalWorkspaceOpenAiTools,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
parseAgentRunEvent,
|
|
26
26
|
t,
|
|
27
27
|
toolLabel
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-B7B7VU3F.js";
|
|
29
29
|
import {
|
|
30
30
|
NOLO_PROJECT_MANAGER_AGENT_KEY,
|
|
31
31
|
isLocalCliAgentKey
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
} from "./chunk-6HYVJV7B.js";
|
|
40
40
|
import {
|
|
41
41
|
formatAgentListCard
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-TJ2QT3CA.js";
|
|
43
43
|
import {
|
|
44
44
|
isGatewayHttpStatus
|
|
45
45
|
} from "./chunk-RQSOAMPJ.js";
|
|
@@ -51,12 +51,12 @@ import {
|
|
|
51
51
|
chooseMemoryOwners,
|
|
52
52
|
loadMemoryCandidatesFromDb,
|
|
53
53
|
resolveAgentMemoryPolicy
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-S3I45ULW.js";
|
|
55
55
|
import {
|
|
56
56
|
API_REPORTED_COST_MULTIPLIER,
|
|
57
57
|
normalizeUsage,
|
|
58
58
|
parseUiAskChoiceContent
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-VSKCDWDT.js";
|
|
60
60
|
import {
|
|
61
61
|
buildSkillDiscoveryContextBlock
|
|
62
62
|
} from "./chunk-7OBMZCRD.js";
|
|
@@ -758,6 +758,19 @@ function wrapTranscriptLine(line, columns, hangingIndent = "") {
|
|
|
758
758
|
}
|
|
759
759
|
return result.length > 0 ? result : [""];
|
|
760
760
|
}
|
|
761
|
+
function buildWindowTitle(title) {
|
|
762
|
+
const plain = stripAnsi(title).replace(/[\x00-\x1f\x7f]+/g, " ");
|
|
763
|
+
let truncated = "";
|
|
764
|
+
let width = 0;
|
|
765
|
+
const maxCols = 80;
|
|
766
|
+
for (const char of plain) {
|
|
767
|
+
const charWidth = displayWidth(char);
|
|
768
|
+
if (width + charWidth > maxCols) break;
|
|
769
|
+
truncated += char;
|
|
770
|
+
width += charWidth;
|
|
771
|
+
}
|
|
772
|
+
return `\x1B]0;${truncated}\x07\x1B]2;${truncated}\x07`;
|
|
773
|
+
}
|
|
761
774
|
function wrapTextToLines(text, columns) {
|
|
762
775
|
const result = [];
|
|
763
776
|
for (const logicalLine of text.split("\n")) {
|
|
@@ -5295,6 +5308,7 @@ export {
|
|
|
5295
5308
|
takeDisplayWidth,
|
|
5296
5309
|
padOrTruncateToWidth,
|
|
5297
5310
|
wrapTranscriptLine,
|
|
5311
|
+
buildWindowTitle,
|
|
5298
5312
|
wrapTextToLines,
|
|
5299
5313
|
THEME_PALETTES,
|
|
5300
5314
|
getActiveThemeName,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCliLocalRuntimeAdapter,
|
|
3
3
|
summarizeEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B7B7VU3F.js";
|
|
5
5
|
import {
|
|
6
6
|
clipMultilineText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TJ2QT3CA.js";
|
|
8
8
|
import {
|
|
9
9
|
runLocalAgentTurn
|
|
10
10
|
} from "./chunk-VVKQFITN.js";
|
|
@@ -300,7 +300,7 @@ var slice = createSliceWithThunks({
|
|
|
300
300
|
const overrides = {};
|
|
301
301
|
if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
|
|
302
302
|
if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
|
|
303
|
-
const { _executeModel } = await import("./_executeModel-
|
|
303
|
+
const { _executeModel } = await import("./_executeModel-KZWX5QIN.js");
|
|
304
304
|
return _executeModel(
|
|
305
305
|
{
|
|
306
306
|
isStreaming: args.isStreaming ?? false,
|
|
@@ -321,7 +321,7 @@ var slice = createSliceWithThunks({
|
|
|
321
321
|
* - 循环直到无工具调用或触发其他运行时停止条件
|
|
322
322
|
*/
|
|
323
323
|
runAgent: create.asyncThunk(async (args, thunkApi) => {
|
|
324
|
-
const { runAgentClientLoop } = await import("./runAgentClientLoop-
|
|
324
|
+
const { runAgentClientLoop } = await import("./runAgentClientLoop-V4TNS6WA.js");
|
|
325
325
|
const { content: loopContent, toolCallCount } = await runAgentClientLoop(
|
|
326
326
|
{
|
|
327
327
|
agentKey: args.agentKey,
|
|
@@ -337,7 +337,7 @@ var slice = createSliceWithThunks({
|
|
|
337
337
|
* 聊天轮次流式 Agent 调用
|
|
338
338
|
*/
|
|
339
339
|
streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
|
|
340
|
-
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-
|
|
340
|
+
const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-C26LGVZ7.js");
|
|
341
341
|
return streamAgentChatTurnHandler(args, thunkApi);
|
|
342
342
|
}),
|
|
343
343
|
/**
|
|
@@ -625,7 +625,7 @@ async function tryHttpDialogCandidates(args) {
|
|
|
625
625
|
throw Object.assign(new Error("All HTTP dialog reads failed"), { attempts });
|
|
626
626
|
}
|
|
627
627
|
async function readDialogFromLocalDb(dialogKey, dialogId, limit) {
|
|
628
|
-
const { readDialogFromLocalDb: readLocalDialog } = await import("./localDialogRead-
|
|
628
|
+
const { readDialogFromLocalDb: readLocalDialog } = await import("./localDialogRead-4H3QJFLW.js");
|
|
629
629
|
const result = await readLocalDialog({ dialogKey, dialogId, limit });
|
|
630
630
|
return {
|
|
631
631
|
...result,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./chunk-VF4K2QE6.js";
|
|
29
29
|
import {
|
|
30
30
|
createDocState
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ADBZ6EHB.js";
|
|
32
32
|
import {
|
|
33
33
|
setDialogExtraReferencesAction
|
|
34
34
|
} from "./chunk-JLA4FXYC.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-63W5N6P3.js";
|
|
41
41
|
import {
|
|
42
42
|
createDialogAction
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-S3I45ULW.js";
|
|
44
44
|
import {
|
|
45
45
|
addCategory,
|
|
46
46
|
addContentToSpace,
|
|
@@ -71,13 +71,13 @@ import {
|
|
|
71
71
|
updateContentCategory,
|
|
72
72
|
updateContentTitle,
|
|
73
73
|
updateStep
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-VSKCDWDT.js";
|
|
75
75
|
import {
|
|
76
76
|
createAgent,
|
|
77
77
|
runLlm,
|
|
78
78
|
streamAgentChatTurn,
|
|
79
79
|
updateAgent
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-KTVQYCNL.js";
|
|
81
81
|
import {
|
|
82
82
|
buildCodingSkillContentBySlug,
|
|
83
83
|
buildCodingSkillPageKey,
|
|
@@ -14252,7 +14252,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
14252
14252
|
const deletedDialogIds = [];
|
|
14253
14253
|
const deletedDialogKeys = [];
|
|
14254
14254
|
const failures = [];
|
|
14255
|
-
const { deleteDialog } = await import("./dialogSlice-
|
|
14255
|
+
const { deleteDialog } = await import("./dialogSlice-LLWBTA75.js");
|
|
14256
14256
|
for (const target of targets) {
|
|
14257
14257
|
try {
|
|
14258
14258
|
await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
|
|
@@ -23516,7 +23516,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23516
23516
|
if (!executionInput) {
|
|
23517
23517
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
23518
23518
|
}
|
|
23519
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
23519
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-RM4ZJGGN.js");
|
|
23520
23520
|
const { executor } = findToolExecutor2(run.toolName);
|
|
23521
23521
|
toolRunStarted({
|
|
23522
23522
|
id: run.id,
|
|
@@ -23540,7 +23540,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
23540
23540
|
const latestState = thunkApi.getState();
|
|
23541
23541
|
const userId = latestState.auth?.currentUser?.userId;
|
|
23542
23542
|
if (userId) {
|
|
23543
|
-
const { fetchUserSpaceMemberships } = await import("./spaceSlice-
|
|
23543
|
+
const { fetchUserSpaceMemberships } = await import("./spaceSlice-LKORHAMY.js");
|
|
23544
23544
|
await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
|
|
23545
23545
|
}
|
|
23546
23546
|
}
|
|
@@ -26023,7 +26023,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
26023
26023
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
26024
26024
|
};
|
|
26025
26025
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
26026
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
26026
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-KBF5KT2W.js");
|
|
26027
26027
|
if (getDocState().pageKey === id) {
|
|
26028
26028
|
applyExternalDocUpdate({
|
|
26029
26029
|
slateData: finalSlateData,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
clipMultilineText,
|
|
7
7
|
fetchAndSerializeTable,
|
|
8
8
|
waitForAbortableDelay
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TJ2QT3CA.js";
|
|
10
10
|
import {
|
|
11
11
|
createDrainExhaustedResponse,
|
|
12
12
|
isCoreDrainingBody,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
fetchAndCacheMessages,
|
|
25
25
|
shouldUseServerProxy
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VSKCDWDT.js";
|
|
27
27
|
import {
|
|
28
28
|
fetchServerSyncedCredential
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-KTVQYCNL.js";
|
|
30
30
|
import {
|
|
31
31
|
buildSkillGuidancePromptBlock,
|
|
32
32
|
extractRuntimePageCapabilities,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
deleteServerSyncedCredential,
|
|
14
14
|
runLlm
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KTVQYCNL.js";
|
|
16
16
|
import {
|
|
17
17
|
getApproxPricePerImage
|
|
18
18
|
} from "./chunk-CWMSB67P.js";
|
|
@@ -5592,7 +5592,7 @@ var messageSlice = createSliceWithThunks({
|
|
|
5592
5592
|
runtimeOptions: args.runtimeOptions
|
|
5593
5593
|
});
|
|
5594
5594
|
if (agentKeyToUse) {
|
|
5595
|
-
const { streamAgentChatTurn } = await import("./agentSlice-
|
|
5595
|
+
const { streamAgentChatTurn } = await import("./agentSlice-XG7L7VOZ.js");
|
|
5596
5596
|
await dispatch(
|
|
5597
5597
|
streamAgentChatTurn({
|
|
5598
5598
|
agentKey: agentKeyToUse,
|
|
@@ -8313,7 +8313,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
if (isCurrentDialog) {
|
|
8315
8315
|
await thunkApi.dispatch(resetMsgs());
|
|
8316
|
-
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-
|
|
8316
|
+
const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-LLWBTA75.js");
|
|
8317
8317
|
dispatch(clearPendingAttachments2());
|
|
8318
8318
|
clearWorkflow();
|
|
8319
8319
|
}
|
|
@@ -8322,15 +8322,15 @@ var deleteDialogThunk = async (payload, thunkApi) => {
|
|
|
8322
8322
|
|
|
8323
8323
|
// packages/chat/dialog/dialogSlice.ts
|
|
8324
8324
|
var runCreateDialogAction = async (args, thunkApi) => {
|
|
8325
|
-
const { createDialogAction } = await import("./createDialogAction-
|
|
8325
|
+
const { createDialogAction } = await import("./createDialogAction-VZWTWUOB.js");
|
|
8326
8326
|
return createDialogAction(args, thunkApi);
|
|
8327
8327
|
};
|
|
8328
8328
|
var runCreateAgentAutomationAction = async (args, thunkApi) => {
|
|
8329
|
-
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-
|
|
8329
|
+
const { createAgentAutomationAction } = await import("./createAgentAutomationAction-FNQGBMEW.js");
|
|
8330
8330
|
return createAgentAutomationAction(args, thunkApi);
|
|
8331
8331
|
};
|
|
8332
8332
|
var runUpdateDialogTitleAction = async (args, thunkApi) => {
|
|
8333
|
-
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-
|
|
8333
|
+
const { updateDialogTitleAction } = await import("./updateDialogTitleAction-NXN45FGL.js");
|
|
8334
8334
|
return updateDialogTitleAction(args, thunkApi);
|
|
8335
8335
|
};
|
|
8336
8336
|
var runAddDialogAgentAction = async (args, thunkApi) => {
|
|
@@ -8350,7 +8350,7 @@ var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
|
|
|
8350
8350
|
return setDialogExtraReferencesAction(args, thunkApi);
|
|
8351
8351
|
};
|
|
8352
8352
|
var runHandleSendMessageAction = async (args, thunkApi) => {
|
|
8353
|
-
const { handleSendMessageAction } = await import("./handleSendMessageAction-
|
|
8353
|
+
const { handleSendMessageAction } = await import("./handleSendMessageAction-TORIOP76.js");
|
|
8354
8354
|
return handleSendMessageAction(args, thunkApi);
|
|
8355
8355
|
};
|
|
8356
8356
|
function clearDialogState() {
|
|
@@ -8363,7 +8363,7 @@ var createPageAndAddReference = createAsyncThunk(
|
|
|
8363
8363
|
async (payload, { dispatch, getState, rejectWithValue }) => {
|
|
8364
8364
|
const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
|
|
8365
8365
|
try {
|
|
8366
|
-
const { createDocState } = await import("./docStore-
|
|
8366
|
+
const { createDocState } = await import("./docStore-KBF5KT2W.js");
|
|
8367
8367
|
const pageKey = await createDocState(
|
|
8368
8368
|
{ slateData, title },
|
|
8369
8369
|
{ dispatch, getState }
|
|
@@ -8851,6 +8851,28 @@ function updateColumnWidthInMeta(meta, input, deps) {
|
|
|
8851
8851
|
);
|
|
8852
8852
|
return ok(buildMeta(meta, newColumns, deps.nowIso));
|
|
8853
8853
|
}
|
|
8854
|
+
function addColumnOptionInMeta(meta, input, deps) {
|
|
8855
|
+
const { columnId } = input;
|
|
8856
|
+
const option = input.option.trim();
|
|
8857
|
+
if (!option) {
|
|
8858
|
+
return err("\u9009\u9879\u540D\u4E0D\u80FD\u4E3A\u7A7A");
|
|
8859
|
+
}
|
|
8860
|
+
const column = meta.columns.find((c) => c.id === columnId);
|
|
8861
|
+
if (!column) {
|
|
8862
|
+
return err("\u8981\u65B0\u589E\u9009\u9879\u7684\u5B57\u6BB5\u4E0D\u5B58\u5728");
|
|
8863
|
+
}
|
|
8864
|
+
if ((column.options ?? []).some((o) => o.trim() === option)) {
|
|
8865
|
+
return ok({
|
|
8866
|
+
meta,
|
|
8867
|
+
metaChanges: { columns: meta.columns, updatedAt: meta.updatedAt },
|
|
8868
|
+
noop: true
|
|
8869
|
+
});
|
|
8870
|
+
}
|
|
8871
|
+
const newColumns = meta.columns.map(
|
|
8872
|
+
(c) => c.id === columnId ? { ...c, options: [...c.options ?? [], option] } : c
|
|
8873
|
+
);
|
|
8874
|
+
return ok(buildMeta(meta, newColumns, deps.nowIso));
|
|
8875
|
+
}
|
|
8854
8876
|
|
|
8855
8877
|
// packages/render/table/createTableAction.ts
|
|
8856
8878
|
var import_date_fns2 = __toESM(require_date_fns(), 1);
|
|
@@ -12109,6 +12131,53 @@ var tableSlice = createSliceWithThunks3({
|
|
|
12109
12131
|
}
|
|
12110
12132
|
}
|
|
12111
12133
|
),
|
|
12134
|
+
/* --------------------------------------
|
|
12135
|
+
* 4.2-quater 新增 select 选项:addColumnOption
|
|
12136
|
+
* 说明:把新选项追加到 columns[].options(select 弹层「+ 新建选项」入口),
|
|
12137
|
+
* 重复选项为 no-op:跳过 patch 直接返回原 meta,fulfilled 照常刷新 currentTable。
|
|
12138
|
+
* ------------------------------------*/
|
|
12139
|
+
addColumnOption: create.asyncThunk(
|
|
12140
|
+
async (args, { dispatch, getState, rejectWithValue }) => {
|
|
12141
|
+
const { tenantId, tableId, columnId, option } = args;
|
|
12142
|
+
const state3 = getState().table;
|
|
12143
|
+
const meta = state3.currentTable;
|
|
12144
|
+
if (!meta || meta.tenantId !== tenantId || meta.tableId !== tableId) {
|
|
12145
|
+
return rejectWithValue("\u5F53\u524D\u6CA1\u6709\u52A0\u8F7D\u5BF9\u5E94\u7684\u8868\u5B9A\u4E49");
|
|
12146
|
+
}
|
|
12147
|
+
const result = addColumnOptionInMeta(
|
|
12148
|
+
meta,
|
|
12149
|
+
{ columnId, option },
|
|
12150
|
+
{ nowIso: (0, import_date_fns3.formatISO)(/* @__PURE__ */ new Date()) }
|
|
12151
|
+
);
|
|
12152
|
+
if (!result.ok) {
|
|
12153
|
+
return rejectWithValue(result.error);
|
|
12154
|
+
}
|
|
12155
|
+
if (result.value.noop) {
|
|
12156
|
+
return meta;
|
|
12157
|
+
}
|
|
12158
|
+
const { meta: nextMeta, metaChanges } = result.value;
|
|
12159
|
+
try {
|
|
12160
|
+
await dispatch(
|
|
12161
|
+
patch({ dbKey: meta.dbKey, changes: metaChanges })
|
|
12162
|
+
).unwrap();
|
|
12163
|
+
return nextMeta;
|
|
12164
|
+
} catch (e) {
|
|
12165
|
+
return rejectWithValue(e.message || "\u65B0\u589E\u9009\u9879\u5931\u8D25");
|
|
12166
|
+
}
|
|
12167
|
+
},
|
|
12168
|
+
{
|
|
12169
|
+
pending: (state3) => {
|
|
12170
|
+
state3.error = null;
|
|
12171
|
+
},
|
|
12172
|
+
fulfilled: (state3, action2) => {
|
|
12173
|
+
state3.currentTable = action2.payload;
|
|
12174
|
+
state3.isInitialized = true;
|
|
12175
|
+
},
|
|
12176
|
+
rejected: (state3, action2) => {
|
|
12177
|
+
state3.error = action2.payload || action2.error.message || "\u65B0\u589E\u9009\u9879\u65F6\u53D1\u751F\u672A\u77E5\u9519\u8BEF";
|
|
12178
|
+
}
|
|
12179
|
+
}
|
|
12180
|
+
),
|
|
12112
12181
|
/* --------------------------------------
|
|
12113
12182
|
* 4.3 重命名表:renameTable(仅修改显示名称)
|
|
12114
12183
|
* ------------------------------------*/
|
|
@@ -12276,6 +12345,7 @@ var {
|
|
|
12276
12345
|
updateCell,
|
|
12277
12346
|
reorderColumn,
|
|
12278
12347
|
updateColumnWidth,
|
|
12348
|
+
addColumnOption,
|
|
12279
12349
|
setTableFocusContext
|
|
12280
12350
|
} = tableSlice.actions;
|
|
12281
12351
|
var {
|