nolo-cli 0.82.0 → 0.82.2
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-FHVQOYWX.js → _executeModel-HYZ4NXRJ.js} +13 -13
- package/{agentDeleteCommand-4427YKQF.js → agentDeleteCommand-2YAHAZFJ.js} +8 -8
- package/{agentEmailCommands-LYDIAUOP.js → agentEmailCommands-SLEQANTK.js} +17 -17
- package/{agentListCommands-O4AEMQVV.js → agentListCommands-KMS675GZ.js} +9 -9
- package/{agentMachineCommands-F6IHXMPD.js → agentMachineCommands-KBI77S35.js} +8 -8
- package/{agentRecordCommands-BDLFOU7E.js → agentRecordCommands-IPPPUHG4.js} +17 -17
- package/{agentRunCommand-HSSYFGMC.js → agentRunCommand-24XO4RDT.js} +17 -17
- package/{agentRunControl-WCTKX5VL.js → agentRunControl-AVJR4JW4.js} +1 -1
- package/{agentRuntimeLocal-IW3IM5P6.js → agentRuntimeLocal-VXZSDIGT.js} +6 -6
- package/{agentSlice-G54NT6PX.js → agentSlice-ZOYISPZD.js} +1 -1
- package/{appDeleteCommands-ZXLXNRHF.js → appDeleteCommands-32MHLR4L.js} +9 -9
- package/{appDeployCommands-PWB4YERK.js → appDeployCommands-WCQOUSOB.js} +9 -9
- package/{appDeployStatusCommands-2EZKZP7Y.js → appDeployStatusCommands-6QKB7DYN.js} +9 -9
- package/{appGetCommands-JNUKOWHO.js → appGetCommands-SFAPP5PB.js} +9 -9
- package/{appListCommands-6X3H67SS.js → appListCommands-EKUBDRUO.js} +9 -9
- package/{chatQueueReduxAdapter-VJXYSZ2D.js → chatQueueReduxAdapter-PMAMSHG7.js} +4 -4
- package/{chunk-VQW3EKYS.js → chunk-2D66PZ54.js} +6 -6
- package/{chunk-F5OE5KSJ.js → chunk-34BLIAHQ.js} +1 -1
- package/{chunk-FEEHCOBD.js → chunk-37NKTC3Q.js} +1 -1
- package/{chunk-NEDZDG3M.js → chunk-4OEFYTWL.js} +1 -1
- package/{chunk-4EZHSKTB.js → chunk-5H7KJX7J.js} +1 -1
- package/{chunk-HOBJGHLD.js → chunk-5ZYCLPXL.js} +11 -11
- package/{chunk-TDRTS7QW.js → chunk-6IG4XSS6.js} +2 -2
- package/{chunk-SDTTBMBU.js → chunk-6VFARHZW.js} +5 -5
- package/{chunk-76WEAXJB.js → chunk-AEOE4Z6Q.js} +7 -2
- package/{chunk-SL4QHSPQ.js → chunk-AJ3A3445.js} +14 -11
- package/{chunk-ASQYTZTR.js → chunk-DNCEALKX.js} +48 -9
- package/{chunk-QIAVMDHY.js → chunk-ETI2NYVF.js} +1 -1
- package/{chunk-GGMVRZRO.js → chunk-G4EBXCWF.js} +9 -9
- package/{chunk-BLJWCTRL.js → chunk-GEPUP7OO.js} +1 -1
- package/{chunk-WGR3J4Q6.js → chunk-I3TQJXQ7.js} +8 -2
- package/{chunk-XTAZCQUT.js → chunk-ITM7D3UQ.js} +3 -3
- package/{chunk-L7I247DF.js → chunk-L5UXH3B2.js} +1 -1
- package/{chunk-YQTQQX2H.js → chunk-NA35QHCF.js} +1 -1
- package/{chunk-STHU4Y5X.js → chunk-OCSGDPAT.js} +14 -14
- package/{chunk-SNPMM7H3.js → chunk-OEVAY4J6.js} +1 -1
- package/{chunk-SPUTJ4DW.js → chunk-PDIBG2WC.js} +4 -4
- package/{chunk-IIBAPOTQ.js → chunk-PKUGW3X6.js} +2 -2
- package/{chunk-DL2LVM5E.js → chunk-T37GTQYU.js} +2 -2
- package/{chunk-AVV3M6CX.js → chunk-V7BKTIF6.js} +3 -3
- package/{chunk-RTUYRRBM.js → chunk-XDJFSBVV.js} +2 -2
- package/{chunk-7REEVK4I.js → chunk-YRPASJCG.js} +2 -2
- package/{chunk-2YMRWISD.js → chunk-ZCYXJSTU.js} +1 -1
- package/{contentThunks-D6QQKIPF.js → contentThunks-G55OKUFE.js} +5 -5
- package/{createAgentAutomationAction-UIPWW4DG.js → createAgentAutomationAction-D2J2O5GS.js} +5 -5
- package/{createDialogAction-573VVP3X.js → createDialogAction-E2EVICIE.js} +6 -6
- package/{createPageAction-LRFSS6TD.js → createPageAction-FHZBN7DJ.js} +5 -5
- package/{dialogCommands-KFK2FF5B.js → dialogCommands-5J56DFWN.js} +9 -9
- package/{dialogSlice-EXLC5XTD.js → dialogSlice-D4V3HURH.js} +4 -4
- package/{docCreateCommands-V777WOZ7.js → docCreateCommands-KYI2DC2U.js} +8 -8
- package/{docDeleteCommands-5KHT7Z5Q.js → docDeleteCommands-67REUSRY.js} +9 -9
- package/{docReadCommands-BLROGWP3.js → docReadCommands-HOSVSBDJ.js} +8 -8
- package/{docStore-DZNGJXX7.js → docStore-5LROPEEP.js} +1 -1
- package/{docUpdateCommands-QXOZHQ5H.js → docUpdateCommands-EMGCSMXY.js} +8 -8
- package/{handleSendMessageAction-OROTZBPO.js → handleSendMessageAction-QBPDYSLZ.js} +4 -4
- package/index.js +47 -47
- package/{machineCommands-IJWERHRH.js → machineCommands-4ISPVTPN.js} +16 -16
- package/{machineWsRunDispatch-XQ36M4L7.js → machineWsRunDispatch-L4MKXQAO.js} +16 -16
- package/package.json +1 -1
- package/{readlineWorkspace-EB3362L3.js → readlineWorkspace-JFADM567.js} +20 -20
- package/{runAgentClientLoop-3MR2NPWR.js → runAgentClientLoop-JFFIFP7N.js} +11 -11
- package/{spaceCommands-TIDVUPDV.js → spaceCommands-NKJVJCQQ.js} +8 -8
- package/{streamAgentChatTurn-CLP2JWCQ.js → streamAgentChatTurn-HFVTDCFD.js} +13 -13
- package/{tools-OXEEBABR.js → tools-BBBCUOUZ.js} +8 -8
- package/{tuiSummaryLlmCaller-VJY3YD2Q.js → tuiSummaryLlmCaller-WFRWERGK.js} +2 -2
- package/{updateDialogTitleAction-4YWKF2OE.js → updateDialogTitleAction-PER2C6MR.js} +5 -5
|
@@ -4,32 +4,32 @@ import {
|
|
|
4
4
|
outputResult,
|
|
5
5
|
printCliError,
|
|
6
6
|
resolveCliContext
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NA35QHCF.js";
|
|
8
8
|
import {
|
|
9
9
|
hasFlag,
|
|
10
10
|
hasHelpArg
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ETI2NYVF.js";
|
|
12
|
+
import "./chunk-AEOE4Z6Q.js";
|
|
13
13
|
import "./chunk-Z77CRGTW.js";
|
|
14
14
|
import "./chunk-SV5IJK6K.js";
|
|
15
15
|
import "./chunk-VF4K2QE6.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6VFARHZW.js";
|
|
17
|
+
import "./chunk-ZCYXJSTU.js";
|
|
18
18
|
import "./chunk-Q5FJJ6XI.js";
|
|
19
19
|
import "./chunk-ZNFJWEN4.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5H7KJX7J.js";
|
|
21
21
|
import "./chunk-CQ3WA2NE.js";
|
|
22
22
|
import "./chunk-5ZUL4CUO.js";
|
|
23
23
|
import "./chunk-N7J63Q6C.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-L5UXH3B2.js";
|
|
25
25
|
import "./chunk-PUOC4YRO.js";
|
|
26
26
|
import "./chunk-IIVGDG4I.js";
|
|
27
27
|
import "./chunk-FDTR4QJ6.js";
|
|
28
28
|
import "./chunk-UZGQNTVW.js";
|
|
29
29
|
import "./chunk-6OZ36FXI.js";
|
|
30
30
|
import "./chunk-2MBTWINN.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-4OEFYTWL.js";
|
|
32
|
+
import "./chunk-DNCEALKX.js";
|
|
33
33
|
import "./chunk-PSCNXBYA.js";
|
|
34
34
|
import "./chunk-GQBOR3G6.js";
|
|
35
35
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -5,32 +5,32 @@ import {
|
|
|
5
5
|
pickDefined,
|
|
6
6
|
printCliError,
|
|
7
7
|
resolveCliContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NA35QHCF.js";
|
|
9
9
|
import {
|
|
10
10
|
hasFlag,
|
|
11
11
|
hasHelpArg
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ETI2NYVF.js";
|
|
13
|
+
import "./chunk-AEOE4Z6Q.js";
|
|
14
14
|
import "./chunk-Z77CRGTW.js";
|
|
15
15
|
import "./chunk-SV5IJK6K.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6VFARHZW.js";
|
|
18
|
+
import "./chunk-ZCYXJSTU.js";
|
|
19
19
|
import "./chunk-Q5FJJ6XI.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-5H7KJX7J.js";
|
|
22
22
|
import "./chunk-CQ3WA2NE.js";
|
|
23
23
|
import "./chunk-5ZUL4CUO.js";
|
|
24
24
|
import "./chunk-N7J63Q6C.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-L5UXH3B2.js";
|
|
26
26
|
import "./chunk-PUOC4YRO.js";
|
|
27
27
|
import "./chunk-IIVGDG4I.js";
|
|
28
28
|
import "./chunk-FDTR4QJ6.js";
|
|
29
29
|
import "./chunk-UZGQNTVW.js";
|
|
30
30
|
import "./chunk-6OZ36FXI.js";
|
|
31
31
|
import "./chunk-2MBTWINN.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-4OEFYTWL.js";
|
|
33
|
+
import "./chunk-DNCEALKX.js";
|
|
34
34
|
import "./chunk-PSCNXBYA.js";
|
|
35
35
|
import "./chunk-GQBOR3G6.js";
|
|
36
36
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -5,32 +5,32 @@ import {
|
|
|
5
5
|
pickDefined,
|
|
6
6
|
printCliError,
|
|
7
7
|
resolveCliContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NA35QHCF.js";
|
|
9
9
|
import {
|
|
10
10
|
hasFlag,
|
|
11
11
|
hasHelpArg
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ETI2NYVF.js";
|
|
13
|
+
import "./chunk-AEOE4Z6Q.js";
|
|
14
14
|
import "./chunk-Z77CRGTW.js";
|
|
15
15
|
import "./chunk-SV5IJK6K.js";
|
|
16
16
|
import "./chunk-VF4K2QE6.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-6VFARHZW.js";
|
|
18
|
+
import "./chunk-ZCYXJSTU.js";
|
|
19
19
|
import "./chunk-Q5FJJ6XI.js";
|
|
20
20
|
import "./chunk-ZNFJWEN4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-5H7KJX7J.js";
|
|
22
22
|
import "./chunk-CQ3WA2NE.js";
|
|
23
23
|
import "./chunk-5ZUL4CUO.js";
|
|
24
24
|
import "./chunk-N7J63Q6C.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-L5UXH3B2.js";
|
|
26
26
|
import "./chunk-PUOC4YRO.js";
|
|
27
27
|
import "./chunk-IIVGDG4I.js";
|
|
28
28
|
import "./chunk-FDTR4QJ6.js";
|
|
29
29
|
import "./chunk-UZGQNTVW.js";
|
|
30
30
|
import "./chunk-6OZ36FXI.js";
|
|
31
31
|
import "./chunk-2MBTWINN.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-4OEFYTWL.js";
|
|
33
|
+
import "./chunk-DNCEALKX.js";
|
|
34
34
|
import "./chunk-PSCNXBYA.js";
|
|
35
35
|
import "./chunk-GQBOR3G6.js";
|
|
36
36
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./chunk-YPREESF4.js";
|
|
5
5
|
import {
|
|
6
6
|
handleSendMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OCSGDPAT.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-ITM7D3UQ.js";
|
|
13
13
|
import "./chunk-TOP2VXOR.js";
|
|
14
14
|
import "./chunk-5RGU3J7P.js";
|
|
15
15
|
import {
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
} from "./chunk-6YTOJY35.js";
|
|
22
22
|
import "./chunk-M76ECQRD.js";
|
|
23
23
|
import "./chunk-YDH3FDFQ.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-4OEFYTWL.js";
|
|
25
|
+
import "./chunk-DNCEALKX.js";
|
|
26
26
|
import "./chunk-PSCNXBYA.js";
|
|
27
27
|
import "./chunk-GQBOR3G6.js";
|
|
28
28
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
inlineImageUrlsForCustomProvider,
|
|
6
6
|
prepareTools,
|
|
7
7
|
shouldInlineImageUrlsForAgent
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YRPASJCG.js";
|
|
9
9
|
import {
|
|
10
10
|
INVALID_TOOL_ARGS_REPLACEMENT,
|
|
11
11
|
buildInvalidToolCallSelfHealResult,
|
|
12
12
|
parseToolCallArguments,
|
|
13
13
|
performFetchRequest,
|
|
14
14
|
sanitizeOutboundMessages
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PDIBG2WC.js";
|
|
16
16
|
import {
|
|
17
17
|
createSSEParser,
|
|
18
18
|
createToolRunId,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolRunSetPending,
|
|
24
24
|
toolRunStarted,
|
|
25
25
|
toolRunSucceeded
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-G4EBXCWF.js";
|
|
27
27
|
import {
|
|
28
28
|
getPublicImageAgentMode
|
|
29
29
|
} from "./chunk-VIDPVFP3.js";
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
messageStreamEnd,
|
|
36
36
|
messageStreaming,
|
|
37
37
|
updateToolMessage
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OCSGDPAT.js";
|
|
39
39
|
import {
|
|
40
40
|
streamAgentChatTurn
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-ITM7D3UQ.js";
|
|
42
42
|
import {
|
|
43
43
|
addActiveController,
|
|
44
44
|
removeActiveController,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
EMPTY_ASSISTANT_REPAIR_PROMPT,
|
|
58
58
|
getModelInfo
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-4OEFYTWL.js";
|
|
60
60
|
import {
|
|
61
61
|
getApiEndpoint
|
|
62
62
|
} from "./chunk-OIVSQH2O.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
resolveLocalUserId,
|
|
28
28
|
t,
|
|
29
29
|
toolLabel
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-AJ3A3445.js";
|
|
31
31
|
import {
|
|
32
32
|
createRunActivityTracker,
|
|
33
33
|
popSingleQueueMessage,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
resolveRunQueuePath,
|
|
36
36
|
settleRunTerminalAuthoritatively,
|
|
37
37
|
spawnLocalBackgroundRun
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-I3TQJXQ7.js";
|
|
39
39
|
import {
|
|
40
40
|
clearCredentialAvailability,
|
|
41
41
|
readCredentialEntry,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
readDbRecord,
|
|
50
50
|
resolveAgentRecordFromHybridStore
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AEOE4Z6Q.js";
|
|
52
52
|
import {
|
|
53
53
|
isLocalCliAgentKey
|
|
54
54
|
} from "./chunk-SV5IJK6K.js";
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
} from "./chunk-LTRXGFMS.js";
|
|
65
65
|
import {
|
|
66
66
|
formatAgentListCard
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-G4EBXCWF.js";
|
|
68
68
|
import {
|
|
69
69
|
isTransientFetchError
|
|
70
70
|
} from "./chunk-5UTFL4QJ.js";
|
|
@@ -85,11 +85,11 @@ import {
|
|
|
85
85
|
chooseMemoryOwners,
|
|
86
86
|
loadMemoryCandidatesFromDb,
|
|
87
87
|
resolveAgentMemoryPolicy
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-PKUGW3X6.js";
|
|
89
89
|
import {
|
|
90
90
|
API_REPORTED_COST_MULTIPLIER,
|
|
91
91
|
parseUiAskChoiceContent
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-OCSGDPAT.js";
|
|
93
93
|
import {
|
|
94
94
|
isOAuthApiKeyRef
|
|
95
95
|
} from "./chunk-YYLHWIW6.js";
|
|
@@ -112,10 +112,10 @@ import {
|
|
|
112
112
|
LOCAL_AGENT_CONFIG_MISSING_CODE,
|
|
113
113
|
LOCAL_TURN_ABORTED_CODE,
|
|
114
114
|
readActionGate
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-6VFARHZW.js";
|
|
116
116
|
import {
|
|
117
117
|
resolveAgentRuntimeConfigFromRecord
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-5H7KJX7J.js";
|
|
119
119
|
import {
|
|
120
120
|
createThinkParserState,
|
|
121
121
|
flushThinkParser,
|
|
@@ -138,10 +138,10 @@ import {
|
|
|
138
138
|
DEFAULT_CONTEXT_WINDOW,
|
|
139
139
|
getModelContextWindow,
|
|
140
140
|
normalizeUsage
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-4OEFYTWL.js";
|
|
142
142
|
import {
|
|
143
143
|
clipCompactText
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-DNCEALKX.js";
|
|
145
145
|
import {
|
|
146
146
|
findModelConfig
|
|
147
147
|
} from "./chunk-OIVSQH2O.js";
|
|
@@ -10433,7 +10433,7 @@ function findCollapsedPasteSpanAt(buffer, pos, opts = {}) {
|
|
|
10433
10433
|
// packages/cli/client/agentRun.ts
|
|
10434
10434
|
import { ulid as ulid2 } from "ulid";
|
|
10435
10435
|
async function loadRunLocalAgentTurn() {
|
|
10436
|
-
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-
|
|
10436
|
+
const { runLocalAgentTurn } = await import("./agentRuntimeLocal-VXZSDIGT.js");
|
|
10437
10437
|
return runLocalAgentTurn;
|
|
10438
10438
|
}
|
|
10439
10439
|
var stripDebugNoise = (s) => s.replace(/\s*raw="[\s\S]*"/g, "").replace(/\s*raw=\S+/g, "").replace(/\s*headers=\[[^\]]*\]/g, "").replace(/\s*headers=\S+/g, "").trim();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GEPUP7OO.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AEOE4Z6Q.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup,
|
|
10
10
|
toSafeAgentSummary
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
readSseFrames,
|
|
9
9
|
streamSseDataValues,
|
|
10
10
|
throwIfChatCompletionStreamFailed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZCYXJSTU.js";
|
|
12
12
|
import {
|
|
13
13
|
DEVIN_CONNECT_URL
|
|
14
14
|
} from "./chunk-Q5FJJ6XI.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
resolveHistoricalToolContentCap,
|
|
21
21
|
resolveToolOutputProfile,
|
|
22
22
|
stripImagePartsFromMessages
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5H7KJX7J.js";
|
|
24
24
|
import {
|
|
25
25
|
downgradeUnparsableToolCalls,
|
|
26
26
|
hasParsableObjectArguments,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
requiresBareImageUrl,
|
|
47
47
|
resolveToolGuidedSections,
|
|
48
48
|
toBareImageUrlMessages
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-L5UXH3B2.js";
|
|
50
50
|
import {
|
|
51
51
|
convertMessagesToResponsesInput,
|
|
52
52
|
extractReasoningFromResponseOutput,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
resolveEmptyAssistantFallbackMessage,
|
|
94
94
|
resolveEmptyAssistantOutcome,
|
|
95
95
|
resolveTruncatedReasoningTailLog
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-4OEFYTWL.js";
|
|
97
97
|
import {
|
|
98
98
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
99
99
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
resolveCompressionTriggerRatio,
|
|
113
113
|
truncateToolOutputForContext,
|
|
114
114
|
withProviderCallTimingFields
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-DNCEALKX.js";
|
|
116
116
|
import {
|
|
117
117
|
estimateTokenCount
|
|
118
118
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -277,12 +277,17 @@ async function resolveAgentRecordFromHybridStore(args) {
|
|
|
277
277
|
});
|
|
278
278
|
if (fresh) {
|
|
279
279
|
try {
|
|
280
|
-
await args.db.put(key, {
|
|
280
|
+
await args.db.put(key, {
|
|
281
|
+
...fresh,
|
|
282
|
+
dbKey: key,
|
|
283
|
+
serverOrigin: record.serverOrigin,
|
|
284
|
+
cachedAt: Date.now()
|
|
285
|
+
});
|
|
281
286
|
} catch {
|
|
282
287
|
}
|
|
283
288
|
return {
|
|
284
289
|
agentKey: key,
|
|
285
|
-
record: fresh,
|
|
290
|
+
record: { ...fresh, serverOrigin: record.serverOrigin },
|
|
286
291
|
source: record?.serverOrigin ? "remote-cache" : "local-cache",
|
|
287
292
|
cacheHit: false
|
|
288
293
|
};
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
terminateRunProcess,
|
|
31
31
|
transitionRunToTerminal,
|
|
32
32
|
withQueueLock
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-I3TQJXQ7.js";
|
|
34
34
|
import {
|
|
35
35
|
clearCredentialAvailability,
|
|
36
36
|
markCredentialUnavailable,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
import {
|
|
62
62
|
inlineImageUrlsForCustomProvider,
|
|
63
63
|
prepareTools
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-YRPASJCG.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-G4EBXCWF.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-OCSGDPAT.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-ITM7D3UQ.js";
|
|
120
120
|
import {
|
|
121
121
|
require_date_fns
|
|
122
122
|
} from "./chunk-M76ECQRD.js";
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
resolveOpenAiCompatibleProviderConfig,
|
|
171
171
|
shouldUseGeminiNativeToolRoute,
|
|
172
172
|
summarizeToolArguments
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-6VFARHZW.js";
|
|
174
174
|
import {
|
|
175
175
|
PlatformStreamInterruptedError,
|
|
176
176
|
buildPlatformChatCompletionRequest,
|
|
@@ -182,11 +182,11 @@ import {
|
|
|
182
182
|
readSseDataValues,
|
|
183
183
|
resolvePlatformChatProviderConfig,
|
|
184
184
|
shouldUsePlatformChatProvider
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-ZCYXJSTU.js";
|
|
186
186
|
import {
|
|
187
187
|
resolveAgentRuntimeConfigFromRecord,
|
|
188
188
|
resolveHistoricalToolContentCap
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-5H7KJX7J.js";
|
|
190
190
|
import {
|
|
191
191
|
isDevinOAuthAgent
|
|
192
192
|
} from "./chunk-5ZUL4CUO.js";
|
|
@@ -218,14 +218,14 @@ import {
|
|
|
218
218
|
} from "./chunk-2MBTWINN.js";
|
|
219
219
|
import {
|
|
220
220
|
normalizeUsage
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-4OEFYTWL.js";
|
|
222
222
|
import {
|
|
223
223
|
clipCompactText,
|
|
224
224
|
createProviderCallTimingTracker,
|
|
225
225
|
finalizeProviderCallTiming,
|
|
226
226
|
observeMeaningfulProviderResponseAt,
|
|
227
227
|
withProviderCallTimingFields
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-DNCEALKX.js";
|
|
229
229
|
import {
|
|
230
230
|
estimateTokenCount
|
|
231
231
|
} from "./chunk-PSCNXBYA.js";
|
|
@@ -11040,6 +11040,8 @@ function waitForRunTerminal(args) {
|
|
|
11040
11040
|
const loop = Effect_exports.gen(function* () {
|
|
11041
11041
|
token = args.claim?.acquire() ?? null;
|
|
11042
11042
|
const deadline = Date.now() + args.timeoutMs;
|
|
11043
|
+
const maxIterations = Math.ceil(args.timeoutMs / Math.max(1, args.pollIntervalMs)) + 1;
|
|
11044
|
+
let iterations = 0;
|
|
11043
11045
|
while (true) {
|
|
11044
11046
|
const state = yield* readEffect(args.read);
|
|
11045
11047
|
lastState = state;
|
|
@@ -11050,7 +11052,8 @@ function waitForRunTerminal(args) {
|
|
|
11050
11052
|
}
|
|
11051
11053
|
return { kind: "terminal", state };
|
|
11052
11054
|
}
|
|
11053
|
-
|
|
11055
|
+
iterations += 1;
|
|
11056
|
+
if (Date.now() >= deadline || iterations >= maxIterations) {
|
|
11054
11057
|
return { kind: "timeout", waitedMs: args.timeoutMs, lastState };
|
|
11055
11058
|
}
|
|
11056
11059
|
const slept = yield* sleep(args.pollIntervalMs);
|
|
@@ -367,6 +367,7 @@ var truncateToolOutputForContext = (text, contextWindow) => {
|
|
|
367
367
|
// packages/ai/context/planCompression.ts
|
|
368
368
|
var MIN_COMPRESS_COUNT = 5;
|
|
369
369
|
var ACTIVE_SUMMARY_TAIL_KEEP_COUNT = 2;
|
|
370
|
+
var COMPACTION_RETENTION_CUSHION_RATIO = 0.18;
|
|
370
371
|
var MIN_TRIGGER_PENDING_COUNT = MIN_COMPRESS_COUNT + ACTIVE_SUMMARY_TAIL_KEEP_COUNT;
|
|
371
372
|
var getMessageTokenCount = (msg) => {
|
|
372
373
|
const content = serializeMessageContent(msg.content) || "";
|
|
@@ -465,15 +466,42 @@ function calculateCompressCount(pendingMsgs, rawMessageBudget, opts) {
|
|
|
465
466
|
}
|
|
466
467
|
return pendingMsgs.length - keepCount;
|
|
467
468
|
}
|
|
469
|
+
function resolveEffectiveCompactionBudgets(args) {
|
|
470
|
+
const {
|
|
471
|
+
contextWindow,
|
|
472
|
+
triggerRatio,
|
|
473
|
+
historyBudget,
|
|
474
|
+
rawMessageBudget,
|
|
475
|
+
summaryTokens,
|
|
476
|
+
cushionRatio = COMPACTION_RETENTION_CUSHION_RATIO
|
|
477
|
+
} = args;
|
|
478
|
+
const maxRetainedRatio = Math.max(
|
|
479
|
+
0.2,
|
|
480
|
+
Number((triggerRatio - cushionRatio).toFixed(4))
|
|
481
|
+
);
|
|
482
|
+
const maxRetainedHistoryBudget = Math.floor(contextWindow * maxRetainedRatio);
|
|
483
|
+
const effectiveHistoryBudget = Math.min(historyBudget, maxRetainedHistoryBudget);
|
|
484
|
+
const effectiveRawMessageBudget = Math.min(
|
|
485
|
+
rawMessageBudget,
|
|
486
|
+
Math.max(0, effectiveHistoryBudget - summaryTokens)
|
|
487
|
+
);
|
|
488
|
+
return {
|
|
489
|
+
effectiveHistoryBudget,
|
|
490
|
+
effectiveRawMessageBudget,
|
|
491
|
+
maxRetainedRatio
|
|
492
|
+
};
|
|
493
|
+
}
|
|
468
494
|
function guardToolChainBoundary(pendingMsgs, compressCount) {
|
|
469
495
|
let count = compressCount;
|
|
470
|
-
while (count
|
|
471
|
-
count
|
|
496
|
+
while (count < pendingMsgs.length && pendingMsgs[count].role === "tool") {
|
|
497
|
+
count++;
|
|
472
498
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
499
|
+
while (count > 0 && hasOpenEndedToolCall(pendingMsgs[count - 1])) {
|
|
500
|
+
if (count < pendingMsgs.length && pendingMsgs[count].role === "tool") {
|
|
501
|
+
count++;
|
|
502
|
+
} else {
|
|
476
503
|
count--;
|
|
504
|
+
break;
|
|
477
505
|
}
|
|
478
506
|
}
|
|
479
507
|
return count;
|
|
@@ -548,11 +576,22 @@ function planCompression(input) {
|
|
|
548
576
|
emptyReason: "not-triggered"
|
|
549
577
|
});
|
|
550
578
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
historyBudget
|
|
579
|
+
const { effectiveHistoryBudget, effectiveRawMessageBudget } = resolveEffectiveCompactionBudgets({
|
|
580
|
+
contextWindow,
|
|
581
|
+
triggerRatio,
|
|
582
|
+
historyBudget,
|
|
583
|
+
rawMessageBudget,
|
|
584
|
+
summaryTokens
|
|
555
585
|
});
|
|
586
|
+
let compressCount = calculateCompressCount(
|
|
587
|
+
pendingMsgs,
|
|
588
|
+
effectiveRawMessageBudget,
|
|
589
|
+
{
|
|
590
|
+
keepTailCount: shouldRunActiveSummary || triggeredByRealUsage || triggeredByColdResume,
|
|
591
|
+
totalUsed,
|
|
592
|
+
historyBudget: effectiveHistoryBudget
|
|
593
|
+
}
|
|
594
|
+
);
|
|
556
595
|
compressCount = guardToolChainBoundary(pendingMsgs, compressCount);
|
|
557
596
|
if (compressCount < MIN_COMPRESS_COUNT) {
|
|
558
597
|
return emptyPlan(startIndex, {
|
|
@@ -81,10 +81,10 @@ import {
|
|
|
81
81
|
} from "./chunk-VF4K2QE6.js";
|
|
82
82
|
import {
|
|
83
83
|
createDocState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-T37GTQYU.js";
|
|
85
85
|
import {
|
|
86
86
|
createDialogAction
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-PKUGW3X6.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-34BLIAHQ.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-OCSGDPAT.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-ITM7D3UQ.js";
|
|
135
135
|
import {
|
|
136
136
|
getActiveDialogKey,
|
|
137
137
|
selectCurrentDialogKey,
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
} from "./chunk-FDTR4QJ6.js";
|
|
180
180
|
import {
|
|
181
181
|
buildDatabaseFileContentUrl
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-DNCEALKX.js";
|
|
183
183
|
import {
|
|
184
184
|
DEFAULT_MODEL
|
|
185
185
|
} from "./chunk-OIVSQH2O.js";
|
|
@@ -3945,7 +3945,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3945
3945
|
const deletedDialogIds = [];
|
|
3946
3946
|
const deletedDialogKeys = [];
|
|
3947
3947
|
const failures = [];
|
|
3948
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3948
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-D4V3HURH.js");
|
|
3949
3949
|
for (const target of targets) {
|
|
3950
3950
|
try {
|
|
3951
3951
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -14906,7 +14906,7 @@ var executeToolRun = createAsyncThunk(
|
|
|
14906
14906
|
if (!executionInput) {
|
|
14907
14907
|
throw new Error(`ToolRun ${id} has no input to execute with.`);
|
|
14908
14908
|
}
|
|
14909
|
-
const { findToolExecutor: findToolExecutor2 } = await import("./tools-
|
|
14909
|
+
const { findToolExecutor: findToolExecutor2 } = await import("./tools-BBBCUOUZ.js");
|
|
14910
14910
|
const { executor } = findToolExecutor2(run.toolName);
|
|
14911
14911
|
toolRunStarted({
|
|
14912
14912
|
id: run.id,
|
|
@@ -17413,7 +17413,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
17413
17413
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
17414
17414
|
};
|
|
17415
17415
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
17416
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
17416
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-5LROPEEP.js");
|
|
17417
17417
|
if (getDocState().pageKey === id) {
|
|
17418
17418
|
applyExternalDocUpdate({
|
|
17419
17419
|
slateData: finalSlateData,
|