nolo-cli 0.151.0-alpha.3 → 0.152.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-T7ANHTUW.js → _executeModel-4KHFMQT4.js} +15 -15
- package/{agentDeleteCommand-4L5KCKFY.js → agentDeleteCommand-EKFV5FC7.js} +15 -15
- package/{agentEmailCommands-2IMMIRO2.js → agentEmailCommands-MNV3MUH5.js} +17 -17
- package/{agentListCommands-TWFLUYIZ.js → agentListCommands-E6FYKXC3.js} +6 -6
- package/{agentMachineCommands-KIWXWT6L.js → agentMachineCommands-2GFUU7GF.js} +7 -7
- package/{agentRecordCommands-727NPCRW.js → agentRecordCommands-LPHHTEPM.js} +16 -16
- package/{agentRunCommand-JASIG3FZ.js → agentRunCommand-JSPW7W32.js} +17 -17
- package/{agentRuntimeLocal-KKSQJMTE.js → agentRuntimeLocal-ARS4TV77.js} +6 -6
- package/{agentSlice-SLV57QGU.js → agentSlice-IP4DZNNV.js} +1 -1
- package/{appDeleteCommands-4PL4KYRN.js → appDeleteCommands-JHTLKQSX.js} +6 -6
- package/{appDeployCommands-EEEXCEB6.js → appDeployCommands-5V26M2KA.js} +6 -6
- package/{appDeployStatusCommands-35ZX7T66.js → appDeployStatusCommands-SBSPS627.js} +6 -6
- package/{appGetCommands-WFCHXJWF.js → appGetCommands-NKPD2L45.js} +6 -6
- package/{appListCommands-XY2U6DPF.js → appListCommands-ZOGRZFYY.js} +6 -6
- package/{chunk-BPMPOFWP.js → chunk-4PXHOOFA.js} +784 -3
- package/{chunk-PKZKOVA5.js → chunk-64PFYIAY.js} +19 -13
- package/{chunk-BJEZC5RA.js → chunk-6LIKQYG4.js} +3 -3
- package/{chunk-CYJWI3NH.js → chunk-AHYBQP3M.js} +3 -3
- package/{chunk-AUIJZACN.js → chunk-BNDETALN.js} +76 -38
- package/{chunk-6CCFTVBP.js → chunk-DTODXBHK.js} +103 -1
- package/{chunk-LGN377P3.js → chunk-DYYMIUN4.js} +2 -2
- package/{chunk-ROCUB2H2.js → chunk-EHFS4XZO.js} +2 -2
- package/{chunk-3SZA4U64.js → chunk-HL3O3PCQ.js} +1 -1
- package/{chunk-UOKFKFPO.js → chunk-HSJPKBLC.js} +1 -1
- package/{chunk-TTH4HOJD.js → chunk-I5V3V2H4.js} +13 -11
- package/{chunk-I2XLRXVX.js → chunk-JWTSWUPS.js} +3 -3
- package/{chunk-626KHJNX.js → chunk-KMM2X7LP.js} +2 -2
- package/{chunk-DFDXM2Y4.js → chunk-LC23WBCU.js} +3 -3
- package/{chunk-V4EE3D54.js → chunk-MZHOLWW5.js} +2 -2
- package/{chunk-AJ3G7X2K.js → chunk-OFVFQYIE.js} +1 -1
- package/{chunk-U5ICMAFV.js → chunk-PFBIXTFB.js} +24 -105
- package/{chunk-U5GPBQDG.js → chunk-PMYAE4OZ.js} +1 -1
- package/{chunk-3T4ZG6AC.js → chunk-PPU323UE.js} +27 -22
- package/{chunk-IK2TSJQA.js → chunk-RQ6E3G5L.js} +1 -1
- package/{chunk-RN2GPWN6.js → chunk-T5BHHWA5.js} +2 -2
- package/{chunk-PIDUNDFS.js → chunk-VNP54NZL.js} +9 -7
- package/{chunk-AG7MCDLR.js → chunk-XCA6HQGS.js} +2 -2
- package/{chunk-VWW6O2TL.js → chunk-XTWDF6RU.js} +10 -10
- package/{commandRegistry-NBLZEMCW.js → commandRegistry-VBALU4Q4.js} +40 -40
- package/{contentThunks-6AIWNSGO.js → contentThunks-HPY2QNWZ.js} +5 -5
- package/{createAgentAutomationAction-4BUS65DZ.js → createAgentAutomationAction-6ADGPGY6.js} +5 -5
- package/{createDialogAction-QAIKSCG4.js → createDialogAction-6ABMSEW2.js} +6 -6
- package/{createPageAction-DXCZ334C.js → createPageAction-OC4NNRPC.js} +5 -5
- package/{dialogCommands-YZLSJB6X.js → dialogCommands-EIGBRSQP.js} +6 -6
- package/{dialogSlice-PVUSMKFW.js → dialogSlice-SI45KJOH.js} +4 -4
- package/{docCreateCommands-JB2RRMRJ.js → docCreateCommands-3JDBBMU5.js} +6 -6
- package/{docDeleteCommands-AQENULNM.js → docDeleteCommands-5M6C7UUB.js} +6 -6
- package/{docReadCommands-DYD25YLQ.js → docReadCommands-DUB57F6V.js} +6 -6
- package/{docStore-CSEBEMKP.js → docStore-L43MDEK4.js} +1 -1
- package/{docUpdateCommands-3GVS23QL.js → docUpdateCommands-WF7MAMPK.js} +6 -6
- package/{handleSendMessageAction-G2TLYGC4.js → handleSendMessageAction-BSMU7SVS.js} +9 -9
- package/index.js +4 -4
- package/{localRuntimeAdapter-B4TAYYA7.js → localRuntimeAdapter-N5PDR26F.js} +15 -15
- package/{machineCommands-6OBFD3XF.js → machineCommands-TMXJKZCE.js} +16 -16
- package/{machineWsRunDispatch-OO7N3O3Y.js → machineWsRunDispatch-25H63KEH.js} +16 -16
- package/package.json +1 -1
- package/{readlineWorkspace-UIQN7JUR.js → readlineWorkspace-BS7WVCL2.js} +202 -57
- package/{runAgentClientLoop-GS3SGG37.js → runAgentClientLoop-BVKRI4SY.js} +13 -13
- package/{spaceCommands-ZR5BR3GX.js → spaceCommands-5EWREUWS.js} +6 -6
- package/{streamAgentChatTurn-4XYC33KE.js → streamAgentChatTurn-B4VFUV52.js} +16 -16
- package/{tools-P77EE7Q4.js → tools-5WYAUKMK.js} +9 -9
- package/{tuiSummaryLlmCaller-BM3VSTBU.js → tuiSummaryLlmCaller-PPU7YDBG.js} +45 -23
- package/{updateDialogTitleAction-CIANVPZC.js → updateDialogTitleAction-YJHDKHFX.js} +5 -5
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
toolQueryFunc,
|
|
9
9
|
toolQueryFunctionSchema,
|
|
10
10
|
toolRegistry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PPU323UE.js";
|
|
12
12
|
import "./chunk-JKMLSTZK.js";
|
|
13
13
|
import "./chunk-I2ZMGXXF.js";
|
|
14
14
|
import "./chunk-OXME3PEE.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-EHFS4XZO.js";
|
|
16
16
|
import "./chunk-NF64D32W.js";
|
|
17
17
|
import "./chunk-XPWGOTBQ.js";
|
|
18
18
|
import "./chunk-ZIWPQEFU.js";
|
|
@@ -23,18 +23,18 @@ import "./chunk-IA7TRNNR.js";
|
|
|
23
23
|
import "./chunk-AGIM7IMJ.js";
|
|
24
24
|
import "./chunk-63W5N6P3.js";
|
|
25
25
|
import "./chunk-VF4K2QE6.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-KMM2X7LP.js";
|
|
27
27
|
import "./chunk-ILU2NPWY.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-XCA6HQGS.js";
|
|
29
29
|
import "./chunk-F32Z66T4.js";
|
|
30
30
|
import "./chunk-EYWJT7A2.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-OFVFQYIE.js";
|
|
32
|
+
import "./chunk-PFBIXTFB.js";
|
|
33
33
|
import "./chunk-523DITKR.js";
|
|
34
34
|
import "./chunk-UKZX3NHN.js";
|
|
35
35
|
import "./chunk-OFFL4DCR.js";
|
|
36
36
|
import "./chunk-QYPE3TS3.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-LC23WBCU.js";
|
|
38
38
|
import "./chunk-4JH2UMJR.js";
|
|
39
39
|
import "./chunk-ZJ7UHBJS.js";
|
|
40
40
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -71,8 +71,8 @@ import "./chunk-XETG4RIX.js";
|
|
|
71
71
|
import "./chunk-GKXCHNTE.js";
|
|
72
72
|
import "./chunk-QLQ573SU.js";
|
|
73
73
|
import "./chunk-3MZAGMYY.js";
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
74
|
+
import "./chunk-DTODXBHK.js";
|
|
75
|
+
import "./chunk-4PXHOOFA.js";
|
|
76
76
|
import "./chunk-5MMAK75Q.js";
|
|
77
77
|
import "./chunk-DWLEOOGR.js";
|
|
78
78
|
import "./chunk-LIQJTQRN.js";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
canUsePlatformChatProvider,
|
|
8
8
|
parsePlatformChatCompletionResponse,
|
|
9
9
|
resolvePlatformChatProviderConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DYYMIUN4.js";
|
|
11
11
|
import "./chunk-HNUWUO75.js";
|
|
12
12
|
import "./chunk-56GBUMO5.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-HL3O3PCQ.js";
|
|
14
14
|
import {
|
|
15
15
|
COMPACTION_SUMMARY_SYSTEM_PROMPT
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4PXHOOFA.js";
|
|
17
17
|
import "./chunk-5MMAK75Q.js";
|
|
18
18
|
import "./chunk-DWLEOOGR.js";
|
|
19
19
|
import "./chunk-I42VC5KR.js";
|
|
@@ -53,11 +53,27 @@ function createTuiSummaryLlmCaller(env, options) {
|
|
|
53
53
|
const timer = setTimeout(() => controller.abort(new DOMException("Summary deadline exceeded", "TimeoutError")), remainingMs);
|
|
54
54
|
const signal = controller.signal;
|
|
55
55
|
const attemptId = callOptions?.attemptId ?? randomUUID();
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
const attempt = async (model, remainingModels) => {
|
|
57
|
+
const remaining = deadlineMs - Date.now();
|
|
58
|
+
if (signal.aborted || !(remaining > 0)) return null;
|
|
59
|
+
const attemptController = new AbortController();
|
|
60
|
+
const attemptSignal = attemptController.signal;
|
|
61
|
+
const budgetMs = remaining / remainingModels;
|
|
62
|
+
const attemptDeadlineMs = Date.now() + budgetMs;
|
|
63
|
+
const onStop = () => attemptController.abort(signal.reason);
|
|
64
|
+
signal.addEventListener("abort", onStop, { once: true });
|
|
65
|
+
if (signal.aborted) onStop();
|
|
66
|
+
const attemptTimer = setTimeout(() => attemptController.abort(
|
|
67
|
+
new DOMException("Summary attempt budget exceeded", "TimeoutError")
|
|
68
|
+
), budgetMs);
|
|
69
|
+
let onAttemptAbort = () => {
|
|
70
|
+
};
|
|
71
|
+
const stopped = new Promise((resolve) => {
|
|
72
|
+
onAttemptAbort = () => resolve(null);
|
|
73
|
+
if (attemptSignal.aborted) resolve(null);
|
|
74
|
+
else attemptSignal.addEventListener("abort", onAttemptAbort, { once: true });
|
|
75
|
+
});
|
|
76
|
+
const isStopped = () => attemptSignal.aborted || Date.now() >= attemptDeadlineMs;
|
|
61
77
|
let stage = "resolve";
|
|
62
78
|
const work = async () => {
|
|
63
79
|
try {
|
|
@@ -67,7 +83,7 @@ function createTuiSummaryLlmCaller(env, options) {
|
|
|
67
83
|
apiKeyRefResolver: options?.apiKeyRefResolver,
|
|
68
84
|
credentialBroker: options?.credentialBroker
|
|
69
85
|
});
|
|
70
|
-
if (
|
|
86
|
+
if (isStopped()) return null;
|
|
71
87
|
if (!providerConfig?.authToken) {
|
|
72
88
|
stage = "auth";
|
|
73
89
|
return null;
|
|
@@ -87,12 +103,12 @@ function createTuiSummaryLlmCaller(env, options) {
|
|
|
87
103
|
requestId: attemptId
|
|
88
104
|
});
|
|
89
105
|
stage = "http";
|
|
90
|
-
if (
|
|
91
|
-
const response = await fetchImpl(request.url, { ...request.init, signal });
|
|
92
|
-
if (
|
|
106
|
+
if (isStopped()) return null;
|
|
107
|
+
const response = await fetchImpl(request.url, { ...request.init, signal: attemptSignal });
|
|
108
|
+
if (isStopped() || !response.ok) return null;
|
|
93
109
|
stage = "body";
|
|
94
110
|
const data = JSON.parse(await response.text());
|
|
95
|
-
if (
|
|
111
|
+
if (isStopped()) return null;
|
|
96
112
|
stage = "parse";
|
|
97
113
|
if (data?.choices?.[0]?.finish_reason === "length" || data?.status === "incomplete" || data?.incomplete_details) {
|
|
98
114
|
stage = "truncated";
|
|
@@ -106,18 +122,24 @@ function createTuiSummaryLlmCaller(env, options) {
|
|
|
106
122
|
return null;
|
|
107
123
|
}
|
|
108
124
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
try {
|
|
126
|
+
const result = await Promise.race([work(), stopped]);
|
|
127
|
+
if (!result) console.warn("[tuiSummary] summary attempt failed", {
|
|
128
|
+
attemptId,
|
|
129
|
+
model,
|
|
130
|
+
stage: parentSignal?.aborted ? "cancelled" : signal.aborted || Date.now() >= deadlineMs ? "deadline" : isStopped() ? "attempt-budget" : stage
|
|
131
|
+
});
|
|
132
|
+
return result;
|
|
133
|
+
} finally {
|
|
134
|
+
clearTimeout(attemptTimer);
|
|
135
|
+
signal.removeEventListener("abort", onStop);
|
|
136
|
+
attemptSignal.removeEventListener("abort", onAttemptAbort);
|
|
137
|
+
}
|
|
116
138
|
};
|
|
117
139
|
try {
|
|
118
|
-
const primary = await attempt(BUILTIN_SUMMARY_LLM_CONFIG.model);
|
|
119
|
-
if (primary || signal.aborted || Date.now() >= deadlineMs) return primary;
|
|
120
|
-
return await attempt(BUILTIN_DIALOG_LLM_FALLBACK_MODEL);
|
|
140
|
+
const primary = await attempt(BUILTIN_SUMMARY_LLM_CONFIG.model, 2);
|
|
141
|
+
if (primary || signal.aborted || parentSignal?.aborted || Date.now() >= deadlineMs) return primary;
|
|
142
|
+
return await attempt(BUILTIN_DIALOG_LLM_FALLBACK_MODEL, 1);
|
|
121
143
|
} finally {
|
|
122
144
|
clearTimeout(timer);
|
|
123
145
|
parentSignal?.removeEventListener("abort", onAbort);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
updateContentTitle
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OFVFQYIE.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
isAssistantToolStub,
|
|
7
7
|
selectAllMsgs
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PFBIXTFB.js";
|
|
9
9
|
import {
|
|
10
10
|
BUILTIN_DIALOG_LLM_FALLBACK_MODEL,
|
|
11
11
|
BUILTIN_TITLE_LLM_CONFIG
|
|
@@ -15,7 +15,7 @@ import "./chunk-OFFL4DCR.js";
|
|
|
15
15
|
import "./chunk-QYPE3TS3.js";
|
|
16
16
|
import {
|
|
17
17
|
runLlm
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LC23WBCU.js";
|
|
19
19
|
import "./chunk-4JH2UMJR.js";
|
|
20
20
|
import "./chunk-ZJ7UHBJS.js";
|
|
21
21
|
import "./chunk-BYXBJQAS.js";
|
|
@@ -56,10 +56,10 @@ import {
|
|
|
56
56
|
buildDialogFallbackTitleFromMessages,
|
|
57
57
|
resolveDialogTitle
|
|
58
58
|
} from "./chunk-2MBTWINN.js";
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-DTODXBHK.js";
|
|
60
60
|
import {
|
|
61
61
|
serializeMessageContent
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-4PXHOOFA.js";
|
|
63
63
|
import "./chunk-5MMAK75Q.js";
|
|
64
64
|
import "./chunk-DWLEOOGR.js";
|
|
65
65
|
import "./chunk-LIQJTQRN.js";
|