nolo-cli 0.181.0-alpha.1 → 0.183.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-EJUKYBFV.js → _executeModel-YYVG3FYU.js} +31 -23
- package/{agentDeleteCommand-OWDZDREL.js → agentDeleteCommand-EOU67KBO.js} +26 -24
- package/{agentEmailCommands-RJGVOJXD.js → agentEmailCommands-HEQLXSP6.js} +27 -25
- package/{agentListCommands-GRJAY5ZE.js → agentListCommands-4QUON7JZ.js} +30 -70
- package/{agentMachineCommands-FNYZSZQ4.js → agentMachineCommands-53GH4CDQ.js} +13 -12
- package/{agentRecordCommands-EBDTISRS.js → agentRecordCommands-XXN5V3AX.js} +26 -24
- package/{agentRunCommand-GIBVOCOK.js → agentRunCommand-ZUM5E3UV.js} +27 -25
- package/{agentRuntimeLocal-AG7RCTM3.js → agentRuntimeLocal-ECGPI3CO.js} +10 -9
- package/{agentSlice-LD6SEBSP.js → agentSlice-MS5G7UCC.js} +1 -1
- package/{appDeleteCommands-DXF3IOFE.js → appDeleteCommands-UHH52BCJ.js} +14 -13
- package/{appDeployCommands-JVKZ3ATD.js → appDeployCommands-Z42ILX24.js} +14 -13
- package/{appDeployStatusCommands-VLGEMFV6.js → appDeployStatusCommands-COYNEUSI.js} +14 -13
- package/{appGetCommands-JQN7RPBD.js → appGetCommands-35XXIRZJ.js} +14 -13
- package/{appListCommands-MFPVNCVT.js → appListCommands-CIUEMKRJ.js} +14 -13
- package/{builtinSkillRegistry-MRI4FNCR.js → builtinSkillRegistry-HJCSXMKS.js} +4 -4
- package/{chunk-ZEQ6L6MZ.js → chunk-3FTJG5NU.js} +1 -1
- package/{chunk-CJYL3N3T.js → chunk-3PVH6HJG.js} +3 -3
- package/{chunk-SCDJOWJT.js → chunk-5DVM4RIR.js} +3 -3
- package/{chunk-QZRAVGW3.js → chunk-5ROGGWPM.js} +14 -14
- package/{chunk-MAS5KGBB.js → chunk-7AVKDSWD.js} +1 -1
- package/{chunk-UCE66MIJ.js → chunk-ADF4RAQS.js} +2 -2
- package/chunk-AMWMV56B.js +73 -0
- package/{chunk-KUGOIFXV.js → chunk-AWFDDOVW.js} +3 -3
- package/{chunk-THZHXIKZ.js → chunk-B3BTDNEC.js} +6 -6
- package/{chunk-CFW7JLTH.js → chunk-C3BYVRTJ.js} +2 -2
- package/{chunk-7ZGMQZ5D.js → chunk-CSINZLH7.js} +0 -78
- package/{chunk-I4ZVPTAI.js → chunk-DHMXTEM4.js} +2 -2
- package/{chunk-EAWOT7M6.js → chunk-F2P6YUHC.js} +1 -1
- package/{chunk-WQ4M3IYD.js → chunk-FAFNPFGS.js} +9 -9
- package/{chunk-FLX5EYLQ.js → chunk-FO2BTDKY.js} +15 -13
- package/{chunk-F55WKIWE.js → chunk-FUW33OOI.js} +16 -16
- package/{chunk-OXYSTN6B.js → chunk-GTQKUQGF.js} +1 -1
- package/chunk-H57T64RA.js +80 -0
- package/{chunk-JDCX5RWD.js → chunk-HEYJFOL6.js} +1 -1
- package/{chunk-DS47C2AI.js → chunk-HWJZEUA6.js} +3 -3
- package/{chunk-HZG23JG6.js → chunk-J2EVUNED.js} +1 -1
- package/{chunk-5AIXW7RW.js → chunk-JWSHARJM.js} +10 -10
- package/{chunk-MMKP2XWK.js → chunk-JX5XVFVW.js} +1 -1
- package/{chunk-5LK5OYUB.js → chunk-MHC44FKA.js} +3 -3
- package/{chunk-4FZUUCXQ.js → chunk-MMSZKZWA.js} +1 -1
- package/{chunk-7O6YJN4K.js → chunk-MO6NDG3O.js} +4 -4
- package/{chunk-CTEEJJVR.js → chunk-MPIAKYZ7.js} +1 -1
- package/{chunk-EP2L3JUM.js → chunk-NCVSRB7F.js} +10 -10
- package/{chunk-XJBWPOIL.js → chunk-NHBJHDVW.js} +1 -1
- package/{chunk-SK2UMOZC.js → chunk-NRYTWXXV.js} +1 -1
- package/{chunk-T7HBI3WZ.js → chunk-NSASNKVD.js} +4 -2
- package/{chunk-6PHS6ADB.js → chunk-ONFC3RLP.js} +2 -2
- package/{chunk-UXJ7R3EP.js → chunk-ORYQ2GDN.js} +3 -3
- package/{chunk-2D3YKEAQ.js → chunk-P7JNYLDW.js} +1 -1
- package/{chunk-YO776XHS.js → chunk-QNLRCES2.js} +2 -2
- package/{chunk-POYXVOYU.js → chunk-TQU64H2A.js} +2 -2
- package/{chunk-5LZBJZLT.js → chunk-TXJZ7QXG.js} +2 -2
- package/chunk-TZXPT53C.js +8 -0
- package/{chunk-OC4NVQ5S.js → chunk-WGHIT2HH.js} +13 -13
- package/{chunk-OES4RYIG.js → chunk-WPWAD6NT.js} +3 -3
- package/{commandRegistry-XRHKJCWS.js → commandRegistry-VVY2YPUI.js} +44 -40
- package/{contentThunks-FBGQIS5J.js → contentThunks-EWOORWBS.js} +7 -5
- package/{createAgentAutomationAction-ASIS3C6Q.js → createAgentAutomationAction-TRIAQUAK.js} +7 -5
- package/{createDialogAction-XJGVTBWO.js → createDialogAction-FXPXXDRR.js} +10 -8
- package/{createPageAction-2IWTNKUE.js → createPageAction-HHFPJKBD.js} +7 -5
- package/{dialogCommands-VKBNO7EI.js → dialogCommands-6Z27OC2B.js} +14 -13
- package/{dialogSlice-BE76QRR4.js → dialogSlice-4W7DJJC2.js} +6 -4
- package/dialogUsageCommand-ZPESQB6W.js +136 -0
- package/{docCreateCommands-HFDVOS2K.js → docCreateCommands-EBLE6KZA.js} +13 -12
- package/{docDeleteCommands-DMKHPD5R.js → docDeleteCommands-7JONZ5PW.js} +14 -13
- package/{docReadCommands-VAUSL2N7.js → docReadCommands-NI4LTXAV.js} +13 -12
- package/{docStore-FOTFZMVS.js → docStore-VBINJLRX.js} +1 -1
- package/{docUpdateCommands-6QQUX2IN.js → docUpdateCommands-QF4J5XQI.js} +13 -12
- package/{handleSendMessageAction-U6DQUBLF.js → handleSendMessageAction-FJKTVMCA.js} +15 -13
- package/index.js +4 -4
- package/{localRuntimeAdapter-DM7ERZ6Z.js → localRuntimeAdapter-QZNQNL2X.js} +24 -22
- package/{machineCommands-OJPPEMNZ.js → machineCommands-53PSUEW7.js} +25 -23
- package/{machineWsRunDispatch-I5WWJ2EY.js → machineWsRunDispatch-JNNSLAOT.js} +25 -23
- package/package.json +1 -1
- package/{readlineWorkspace-RMG27VY3.js → readlineWorkspace-46TGVQQ7.js} +30 -28
- package/{runAgentClientLoop-QJL24CN5.js → runAgentClientLoop-KV6R3FSU.js} +22 -20
- package/{spaceCommands-Z325DDJU.js → spaceCommands-CIXBPVEY.js} +13 -12
- package/{streamAgentChatTurn-4ZA46AEJ.js → streamAgentChatTurn-RTQ2DU4K.js} +24 -22
- package/{tools-GWQ4POVC.js → tools-R6JLL5PS.js} +17 -15
- package/{tuiSummaryLlmCaller-A6T54UJ3.js → tuiSummaryLlmCaller-5D3XCH2C.js} +4 -3
- package/{updateDialogTitleAction-VTE36JGF.js → updateDialogTitleAction-2QNU4T4I.js} +7 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addContentToSpace
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7AVKDSWD.js";
|
|
4
4
|
import {
|
|
5
5
|
format,
|
|
6
6
|
prepareAndPersistMessage,
|
|
7
7
|
uiAskChoiceFunc,
|
|
8
8
|
uiAskChoiceFunctionSchema
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WGHIT2HH.js";
|
|
10
10
|
import {
|
|
11
11
|
formatISO
|
|
12
12
|
} from "./chunk-ZRAU6T47.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-PXYBUFDB.js";
|
|
26
26
|
import {
|
|
27
27
|
buildBuiltinObjectSkillReference
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NRYTWXXV.js";
|
|
29
29
|
import {
|
|
30
30
|
extractCustomId
|
|
31
31
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ROGGWPM.js";
|
|
4
4
|
import {
|
|
5
5
|
runtime_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WGHIT2HH.js";
|
|
7
7
|
import {
|
|
8
8
|
canonicalizeToolNames
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NHBJHDVW.js";
|
|
10
10
|
import {
|
|
11
11
|
isRecord
|
|
12
12
|
} from "./chunk-KUG52IAP.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assembleAgentDiscoveryResult,
|
|
3
3
|
resolveDiscoveryScope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P7JNYLDW.js";
|
|
5
5
|
import {
|
|
6
6
|
fetchWithTransientRetry
|
|
7
7
|
} from "./chunk-KFHREHUQ.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
toolRunUpdated,
|
|
33
33
|
uiCardFallback,
|
|
34
34
|
waitForAbortableDelay
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HWJZEUA6.js";
|
|
36
36
|
import {
|
|
37
37
|
isGatewayHttpStatus
|
|
38
38
|
} from "./chunk-NF64D32W.js";
|
|
@@ -79,10 +79,10 @@ import {
|
|
|
79
79
|
} from "./chunk-VF4K2QE6.js";
|
|
80
80
|
import {
|
|
81
81
|
createDocState
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-C3BYVRTJ.js";
|
|
83
83
|
import {
|
|
84
84
|
createDialogAction
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-3PVH6HJG.js";
|
|
86
86
|
import {
|
|
87
87
|
shareResourceAction
|
|
88
88
|
} from "./chunk-YPG7TUQD.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
updateContentCategory,
|
|
103
103
|
updateContentTitle,
|
|
104
104
|
writeStoredCollapsedCategories
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-7AVKDSWD.js";
|
|
106
106
|
import {
|
|
107
107
|
getCurrentSpaceId,
|
|
108
108
|
getCurrentSpaceIdRaw,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
selectMsgById,
|
|
126
126
|
uiAskChoiceFunc,
|
|
127
127
|
uiAskChoiceFunctionSchema
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-WGHIT2HH.js";
|
|
129
129
|
import {
|
|
130
130
|
buildMediaToolConfirmation,
|
|
131
131
|
normalizeMediaConfirmExecutionRevision
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
runLlm,
|
|
137
137
|
streamAgentChatTurn,
|
|
138
138
|
updateAgent
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-MHC44FKA.js";
|
|
140
140
|
import {
|
|
141
141
|
getActiveDialogKey,
|
|
142
142
|
selectCurrentDialogKey,
|
|
@@ -199,10 +199,10 @@ import {
|
|
|
199
199
|
import {
|
|
200
200
|
listBuiltinSkills,
|
|
201
201
|
resolveBuiltinSkillByName
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-TXJZ7QXG.js";
|
|
203
203
|
import {
|
|
204
204
|
CAPABILITY_PACKS
|
|
205
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-NRYTWXXV.js";
|
|
206
206
|
import {
|
|
207
207
|
buildSkillDocMarkdown,
|
|
208
208
|
normalizeSkillModalities,
|
|
@@ -229,7 +229,7 @@ import {
|
|
|
229
229
|
resolveNoloDialogInput,
|
|
230
230
|
resolveReadOnlyToolConstraints,
|
|
231
231
|
verifyNoloDialogSubjectRefQuery
|
|
232
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-3FTJG5NU.js";
|
|
233
233
|
import {
|
|
234
234
|
clipCompactText
|
|
235
235
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -248,14 +248,14 @@ import {
|
|
|
248
248
|
import {
|
|
249
249
|
canonicalizeToolName,
|
|
250
250
|
canonicalizeToolNames
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-NHBJHDVW.js";
|
|
252
252
|
import {
|
|
253
253
|
CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
|
|
254
254
|
chromeConnectorToolSchemas,
|
|
255
255
|
chromeConnectorUnavailableFunc,
|
|
256
256
|
getChromeConnectorToolBehavior,
|
|
257
257
|
getChromeConnectorToolDefaultConsent
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-JX5XVFVW.js";
|
|
259
259
|
import {
|
|
260
260
|
extractCustomId
|
|
261
261
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -3882,7 +3882,7 @@ async function deleteDialogsFunc(args, thunkApi) {
|
|
|
3882
3882
|
const deletedDialogIds = [];
|
|
3883
3883
|
const deletedDialogKeys = [];
|
|
3884
3884
|
const failures = [];
|
|
3885
|
-
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-
|
|
3885
|
+
const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-4W7DJJC2.js");
|
|
3886
3886
|
for (const target of targets) {
|
|
3887
3887
|
try {
|
|
3888
3888
|
await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
|
|
@@ -18563,7 +18563,7 @@ async function updateDocFunc(args, thunkApi) {
|
|
|
18563
18563
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
18564
18564
|
};
|
|
18565
18565
|
await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
|
|
18566
|
-
const { getDocState, applyExternalDocUpdate } = await import("./docStore-
|
|
18566
|
+
const { getDocState, applyExternalDocUpdate } = await import("./docStore-VBINJLRX.js");
|
|
18567
18567
|
if (getDocState().pageKey === id) {
|
|
18568
18568
|
applyExternalDocUpdate({
|
|
18569
18569
|
slateData: finalSlateData,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-62TBKWTV.js";
|
|
7
7
|
import {
|
|
8
8
|
clearCliLocalRuntimePreparedAgentCache
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FUW33OOI.js";
|
|
10
10
|
import {
|
|
11
11
|
readCredentialAvailability
|
|
12
12
|
} from "./chunk-R4BMKAR5.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveAgentRecordFromHybridStore,
|
|
20
20
|
sanitizeAgentRecordForCliOutput,
|
|
21
21
|
writeAgentRecord
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GTQKUQGF.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveCliAgentKeyInput
|
|
25
25
|
} from "./chunk-NBTY7YJF.js";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeTimingMs
|
|
3
|
+
} from "./chunk-H57T64RA.js";
|
|
4
|
+
|
|
5
|
+
// packages/ai/token/observedSpeedResolver.ts
|
|
6
|
+
var DEFAULT_OBSERVED_SPEED_SAMPLE_SIZE = 20;
|
|
7
|
+
var MIN_THROUGHPUT_WINDOW_MS = 200;
|
|
8
|
+
var MAX_PLAUSIBLE_OUTPUT_TPS = 3e3;
|
|
9
|
+
var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
|
|
10
|
+
var medianOf = (values) => {
|
|
11
|
+
if (values.length === 0) return void 0;
|
|
12
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
13
|
+
const middle = Math.floor(sorted.length / 2);
|
|
14
|
+
return sorted.length % 2 === 1 ? sorted[middle] : (sorted[middle - 1] + sorted[middle]) / 2;
|
|
15
|
+
};
|
|
16
|
+
function resolveObservedSpeed(records, options = {}) {
|
|
17
|
+
const limit = isFiniteNumber(options.limit) ? Math.max(0, Math.floor(options.limit)) : DEFAULT_OBSERVED_SPEED_SAMPLE_SIZE;
|
|
18
|
+
const sample = Array.isArray(records) ? records.slice(0, limit) : [];
|
|
19
|
+
const firstOutputSamples = [];
|
|
20
|
+
const tpsSamples = [];
|
|
21
|
+
const endToEndSamples = [];
|
|
22
|
+
for (const record of sample) {
|
|
23
|
+
if (!record || typeof record !== "object") continue;
|
|
24
|
+
const { firstOutputMs, callDurationMs, output_tokens: outputTokens } = record;
|
|
25
|
+
const firstOutput = normalizeTimingMs(firstOutputMs);
|
|
26
|
+
const callDuration = normalizeTimingMs(callDurationMs);
|
|
27
|
+
if (firstOutput !== void 0) {
|
|
28
|
+
firstOutputSamples.push(firstOutput);
|
|
29
|
+
}
|
|
30
|
+
if (firstOutputMs === void 0 && callDuration !== void 0 && callDuration >= MIN_THROUGHPUT_WINDOW_MS && isFiniteNumber(outputTokens) && outputTokens > 0) {
|
|
31
|
+
const endToEndTps = outputTokens / (callDuration / 1e3);
|
|
32
|
+
if (isFiniteNumber(endToEndTps) && endToEndTps <= MAX_PLAUSIBLE_OUTPUT_TPS) {
|
|
33
|
+
endToEndSamples.push(endToEndTps);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (firstOutput !== void 0 && callDuration !== void 0 && callDuration - firstOutput >= MIN_THROUGHPUT_WINDOW_MS && isFiniteNumber(outputTokens) && outputTokens > 0) {
|
|
37
|
+
const seconds = (callDuration - firstOutput) / 1e3;
|
|
38
|
+
const tokensPerSecond = outputTokens / seconds;
|
|
39
|
+
if (isFiniteNumber(tokensPerSecond) && tokensPerSecond <= MAX_PLAUSIBLE_OUTPUT_TPS) {
|
|
40
|
+
tpsSamples.push(tokensPerSecond);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const medianFirstOutputMs = medianOf(firstOutputSamples);
|
|
45
|
+
const medianTps = medianOf(tpsSamples);
|
|
46
|
+
const throughputGroups = [];
|
|
47
|
+
for (const [basis, samples] of [
|
|
48
|
+
["generation", tpsSamples],
|
|
49
|
+
["end-to-end", endToEndSamples]
|
|
50
|
+
]) {
|
|
51
|
+
const median = medianOf([...samples]);
|
|
52
|
+
if (median === void 0) continue;
|
|
53
|
+
const tps = Math.round(median * 100) / 100;
|
|
54
|
+
throughputGroups.push({
|
|
55
|
+
basis,
|
|
56
|
+
throughputSampleCount: samples.length,
|
|
57
|
+
medianOutputTokensPerSecond: tps,
|
|
58
|
+
...basis === "end-to-end" ? { endToEndTps: tps } : {}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
basis: "generation",
|
|
63
|
+
throughputGroups,
|
|
64
|
+
firstOutputSampleCount: firstOutputSamples.length,
|
|
65
|
+
throughputSampleCount: tpsSamples.length,
|
|
66
|
+
...medianFirstOutputMs !== void 0 ? { medianFirstOutputMs: Math.round(medianFirstOutputMs) } : {},
|
|
67
|
+
...medianTps !== void 0 ? { medianOutputTokensPerSecond: Math.round(medianTps * 100) / 100 } : {}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
resolveObservedSpeed
|
|
73
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listUserRecordsFromServers,
|
|
3
3
|
readLiveDbRecordAfterTombstoneMerge
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F2P6YUHC.js";
|
|
5
5
|
import {
|
|
6
6
|
agentRecordHasConfiguredCredential
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GTQKUQGF.js";
|
|
8
8
|
import {
|
|
9
9
|
deriveCredentialGroup
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-P7JNYLDW.js";
|
|
11
11
|
import {
|
|
12
12
|
isTombstoneRecord
|
|
13
13
|
} from "./chunk-D2MDMY2M.js";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-HS7MLR74.js";
|
|
4
4
|
import {
|
|
5
5
|
performServerProxyFetchWithRetry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ORYQ2GDN.js";
|
|
7
7
|
import {
|
|
8
8
|
fetchServerSyncedCredential
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MHC44FKA.js";
|
|
10
10
|
import {
|
|
11
11
|
buildSkillGuidancePromptBlock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TXJZ7QXG.js";
|
|
13
13
|
import {
|
|
14
14
|
CREDENTIAL_HYGIENE_RULE,
|
|
15
15
|
DELETE_SAFETY_RED_LINE,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
compileContextLayers,
|
|
24
24
|
detectDispatchIntentFromMessages,
|
|
25
25
|
resolveToolGuidedSections
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TQU64H2A.js";
|
|
27
27
|
import {
|
|
28
28
|
convertMessagesToResponsesInput,
|
|
29
29
|
getUsageRequestOptions,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
resolveReasoningReplayOptions,
|
|
33
33
|
shouldStripReasoningContentForOutbound,
|
|
34
34
|
stablePromptCacheKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HEYJFOL6.js";
|
|
36
36
|
import {
|
|
37
37
|
resolveAgentCallPlan,
|
|
38
38
|
resolveClientWire
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-4VJAC32I.js";
|
|
48
48
|
import {
|
|
49
49
|
canonicalizeToolNames
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-NHBJHDVW.js";
|
|
51
51
|
import {
|
|
52
52
|
API_ENDPOINTS
|
|
53
53
|
} from "./chunk-LCBAMY2M.js";
|
|
@@ -333,7 +333,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
333
333
|
).unwrap();
|
|
334
334
|
if (dbSpaceId) {
|
|
335
335
|
try {
|
|
336
|
-
const { updateContentTitle } = await import("./contentThunks-
|
|
336
|
+
const { updateContentTitle } = await import("./contentThunks-EWOORWBS.js");
|
|
337
337
|
await dispatch(
|
|
338
338
|
updateContentTitle({
|
|
339
339
|
spaceId: dbSpaceId,
|
|
@@ -372,7 +372,7 @@ async function saveDocState(arg, { dispatch, getState }) {
|
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
async function createDocState(args, thunkApi) {
|
|
375
|
-
const { createPageAction } = await import("./createPageAction-
|
|
375
|
+
const { createPageAction } = await import("./createPageAction-HHFPJKBD.js");
|
|
376
376
|
return createPageAction(args, thunkApi);
|
|
377
377
|
}
|
|
378
378
|
function subscribe(listener) {
|
|
@@ -765,76 +765,6 @@ function computeSummarySourceMetadata(messagesWithIds, summarizedBeforeId) {
|
|
|
765
765
|
};
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
// packages/ai/token/providerCallTiming.ts
|
|
769
|
-
var defaultNow = () => {
|
|
770
|
-
const perf = globalThis.performance;
|
|
771
|
-
return typeof perf?.now === "function" ? perf.now() : Date.now();
|
|
772
|
-
};
|
|
773
|
-
var normalizeTimingMs = (value) => {
|
|
774
|
-
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
|
|
775
|
-
return void 0;
|
|
776
|
-
}
|
|
777
|
-
return Math.round(value);
|
|
778
|
-
};
|
|
779
|
-
var createProviderCallTimingTracker = (now = defaultNow) => ({
|
|
780
|
-
startMonotonicMs: now(),
|
|
781
|
-
now
|
|
782
|
-
});
|
|
783
|
-
var observeMeaningfulProviderResponseAt = (tracker, observedAt) => {
|
|
784
|
-
if (!tracker || tracker.firstMeaningfulMonotonicMs !== void 0) return;
|
|
785
|
-
tracker.firstMeaningfulMonotonicMs = observedAt;
|
|
786
|
-
};
|
|
787
|
-
var observeMeaningfulProviderResponse = (tracker) => {
|
|
788
|
-
if (!tracker) return;
|
|
789
|
-
observeMeaningfulProviderResponseAt(tracker, tracker.now());
|
|
790
|
-
};
|
|
791
|
-
var finalizeProviderCallTiming = (tracker) => {
|
|
792
|
-
if (!tracker) return {};
|
|
793
|
-
const callDurationMs = normalizeTimingMs(
|
|
794
|
-
Math.max(0, tracker.now() - tracker.startMonotonicMs)
|
|
795
|
-
);
|
|
796
|
-
const firstOutputMs = tracker.firstMeaningfulMonotonicMs !== void 0 ? normalizeTimingMs(
|
|
797
|
-
Math.max(0, tracker.firstMeaningfulMonotonicMs - tracker.startMonotonicMs)
|
|
798
|
-
) : void 0;
|
|
799
|
-
return {
|
|
800
|
-
...firstOutputMs !== void 0 ? { firstOutputMs } : {},
|
|
801
|
-
...callDurationMs !== void 0 ? { callDurationMs } : {}
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
var withProviderCallTimingFields = (usage, timing) => {
|
|
805
|
-
if (!usage || typeof usage !== "object") return usage;
|
|
806
|
-
return {
|
|
807
|
-
...usage,
|
|
808
|
-
...timing.firstOutputMs !== void 0 ? { firstOutputMs: timing.firstOutputMs } : {},
|
|
809
|
-
...timing.callDurationMs !== void 0 ? { callDurationMs: timing.callDurationMs } : {}
|
|
810
|
-
};
|
|
811
|
-
};
|
|
812
|
-
var isMeaningfulChatCompletionOutput = (delta) => {
|
|
813
|
-
if (!delta || typeof delta !== "object") return false;
|
|
814
|
-
const d = delta;
|
|
815
|
-
if (typeof d.content === "string" && d.content) return true;
|
|
816
|
-
if (typeof d.reasoning_content === "string" && d.reasoning_content) return true;
|
|
817
|
-
if (typeof d.reasoning === "string" && d.reasoning) return true;
|
|
818
|
-
return Array.isArray(d.tool_calls) && d.tool_calls.length > 0;
|
|
819
|
-
};
|
|
820
|
-
var isMeaningfulResponsesOutput = (event) => {
|
|
821
|
-
if (!event || typeof event !== "object") return false;
|
|
822
|
-
const e = event;
|
|
823
|
-
const type = typeof e.type === "string" ? e.type : "";
|
|
824
|
-
if (type.startsWith("response.") && type.endsWith(".delta")) {
|
|
825
|
-
const delta = e.delta;
|
|
826
|
-
if (typeof delta === "string" && delta.length > 0) return true;
|
|
827
|
-
if (delta && typeof delta === "object" && typeof delta.text === "string" && delta.text) {
|
|
828
|
-
return true;
|
|
829
|
-
}
|
|
830
|
-
return false;
|
|
831
|
-
}
|
|
832
|
-
if (type === "response.output_item.added" || type === "response.output_item.done") {
|
|
833
|
-
return e.item?.type === "function_call";
|
|
834
|
-
}
|
|
835
|
-
return false;
|
|
836
|
-
};
|
|
837
|
-
|
|
838
768
|
// packages/ai/llm/getModelContextWindow.ts
|
|
839
769
|
var DEFAULT_CONTEXT_WINDOW = 256e3;
|
|
840
770
|
var QWEN_3_6_CONTEXT_WINDOW = 262144;
|
|
@@ -1006,14 +936,6 @@ var getModelInfo = (modelName) => {
|
|
|
1006
936
|
};
|
|
1007
937
|
|
|
1008
938
|
export {
|
|
1009
|
-
normalizeTimingMs,
|
|
1010
|
-
createProviderCallTimingTracker,
|
|
1011
|
-
observeMeaningfulProviderResponseAt,
|
|
1012
|
-
observeMeaningfulProviderResponse,
|
|
1013
|
-
finalizeProviderCallTiming,
|
|
1014
|
-
withProviderCallTimingFields,
|
|
1015
|
-
isMeaningfulChatCompletionOutput,
|
|
1016
|
-
isMeaningfulResponsesOutput,
|
|
1017
939
|
planContextUsage,
|
|
1018
940
|
DEFAULT_CONTEXT_WINDOW,
|
|
1019
941
|
findModelContextWindow,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk-NBTY7YJF.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveCliLocalRuntimeKeyCapability
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5ROGGWPM.js";
|
|
9
9
|
import {
|
|
10
10
|
HIGH_RISK_MUTATION_TOOL_NAMES
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3FTJG5NU.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_NOLO_SERVER_URL
|
|
14
14
|
} from "./chunk-OLZBQWZU.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeReferences,
|
|
8
8
|
resolveReferenceAssets,
|
|
9
9
|
resolveToolsFromKeys
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ORYQ2GDN.js";
|
|
11
11
|
import {
|
|
12
12
|
UI_CARD_ENVELOPE_MAX_BYTES,
|
|
13
13
|
getAllToolRuns,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
selectSpaceContextLevel,
|
|
21
21
|
selectUserTonePreset,
|
|
22
22
|
uiCardFallback
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HWJZEUA6.js";
|
|
24
24
|
import {
|
|
25
25
|
resolveToolBaseUrl
|
|
26
26
|
} from "./chunk-MYOH447Z.js";
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
} from "./chunk-TDNAAXUQ.js";
|
|
33
33
|
import {
|
|
34
34
|
getDocState
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-C3BYVRTJ.js";
|
|
36
36
|
import {
|
|
37
37
|
getTableState
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-7AVKDSWD.js";
|
|
39
39
|
import {
|
|
40
40
|
getCurrentSpaceIdRaw,
|
|
41
41
|
getViewMode
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
PERSONALIZATION_DIALOG_CATEGORY,
|
|
45
45
|
buildPersonalizationDialogPolicyContext,
|
|
46
46
|
selectAllMsgs
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-WGHIT2HH.js";
|
|
48
48
|
import {
|
|
49
49
|
selectPendingFiles
|
|
50
50
|
} from "./chunk-OWYYDMGJ.js";
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
expandEnabledPackPromptPatches,
|
|
67
67
|
expandEnabledPacks,
|
|
68
68
|
resolveEffectiveEnabledPacks
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-NRYTWXXV.js";
|
|
70
70
|
import {
|
|
71
71
|
projectToolMessageContent
|
|
72
72
|
} from "./chunk-2WZXXAQD.js";
|
|
@@ -76,11 +76,11 @@ import {
|
|
|
76
76
|
} from "./chunk-WJZOQR2J.js";
|
|
77
77
|
import {
|
|
78
78
|
extractReferenceKeysFromMessage
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-NSASNKVD.js";
|
|
80
80
|
import {
|
|
81
81
|
getModelContextWindow,
|
|
82
82
|
planContextUsage
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-CSINZLH7.js";
|
|
84
84
|
import {
|
|
85
85
|
asRecordOrEmpty
|
|
86
86
|
} from "./chunk-KX6YBIHG.js";
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
import {
|
|
95
95
|
canonicalizeToolNames,
|
|
96
96
|
prioritizeToolNames
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-NHBJHDVW.js";
|
|
98
98
|
import {
|
|
99
99
|
extractCustomId
|
|
100
100
|
} from "./chunk-M2EJHDJP.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
flushChatCompletionStream,
|
|
12
12
|
providerHttpFailure,
|
|
13
13
|
throwIfChatCompletionStreamFailed
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QNLRCES2.js";
|
|
15
15
|
import {
|
|
16
16
|
readSseFrames
|
|
17
17
|
} from "./chunk-HNUWUO75.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
hashStablePrefixContent,
|
|
74
74
|
resolveResponseGuidelines,
|
|
75
75
|
resolveToolGuidedSections
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-TQU64H2A.js";
|
|
77
77
|
import {
|
|
78
78
|
classifyUnparsableToolArgs,
|
|
79
79
|
collectStablePromptPrefix,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
toOpenAiCompatibleMessages,
|
|
98
98
|
toResponsesTools,
|
|
99
99
|
transferDowngradedToolTurnOrigin
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-HEYJFOL6.js";
|
|
101
101
|
import {
|
|
102
102
|
TOOL_HAD_IMAGES,
|
|
103
103
|
TOOL_IMAGES,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
parseNoloWorkspaceToolArguments,
|
|
131
131
|
readTextStreamUpToChars,
|
|
132
132
|
resolveNoloDialogInput
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-3FTJG5NU.js";
|
|
134
134
|
import {
|
|
135
135
|
buildDialogFallbackTitleFromUserInput
|
|
136
136
|
} from "./chunk-2MBTWINN.js";
|
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
resolveEmptyAssistantFallbackMessage,
|
|
146
146
|
resolveEmptyAssistantOutcome,
|
|
147
147
|
resolveTruncatedReasoningTailLog
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-NSASNKVD.js";
|
|
149
149
|
import {
|
|
150
150
|
COMPACTION_SUMMARY_SCHEMA_VERSION,
|
|
151
151
|
COMPACTION_SUMMARY_SYSTEM_PROMPT,
|
|
@@ -154,21 +154,23 @@ import {
|
|
|
154
154
|
buildCompactionUserContent,
|
|
155
155
|
computeSummaryInputTokenCap,
|
|
156
156
|
computeSummarySourceMetadata,
|
|
157
|
-
createProviderCallTimingTracker,
|
|
158
|
-
finalizeProviderCallTiming,
|
|
159
157
|
formatCompactionMetricsLog,
|
|
160
158
|
formatFileOperationsFromMessages,
|
|
161
159
|
formatMessagesForSummaryWithTruncation,
|
|
162
160
|
getModelContextWindow,
|
|
163
|
-
isMeaningfulResponsesOutput,
|
|
164
|
-
observeMeaningfulProviderResponse,
|
|
165
161
|
planCompression,
|
|
166
162
|
planContextUsage,
|
|
167
163
|
resolveCompressionTriggerRatio,
|
|
168
164
|
sha256Hex,
|
|
169
|
-
truncateToolOutputForContext
|
|
165
|
+
truncateToolOutputForContext
|
|
166
|
+
} from "./chunk-CSINZLH7.js";
|
|
167
|
+
import {
|
|
168
|
+
createProviderCallTimingTracker,
|
|
169
|
+
finalizeProviderCallTiming,
|
|
170
|
+
isMeaningfulResponsesOutput,
|
|
171
|
+
observeMeaningfulProviderResponse,
|
|
170
172
|
withProviderCallTimingFields
|
|
171
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-H57T64RA.js";
|
|
172
174
|
import {
|
|
173
175
|
clipCompactText
|
|
174
176
|
} from "./chunk-5MMAK75Q.js";
|
|
@@ -190,7 +192,7 @@ import {
|
|
|
190
192
|
import {
|
|
191
193
|
canonicalizeToolName,
|
|
192
194
|
canonicalizeToolNames
|
|
193
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-NHBJHDVW.js";
|
|
194
196
|
import {
|
|
195
197
|
dialogMessageKey,
|
|
196
198
|
dialogMessageRange
|
|
@@ -22355,7 +22357,7 @@ function buildLoadSkillExecutor(args2) {
|
|
|
22355
22357
|
const { resolveSkillByName } = await import("./skillDiscovery-QC35EQY4.js");
|
|
22356
22358
|
const resolved = resolveSkillByName(args2.cwd, name);
|
|
22357
22359
|
if (!resolved) {
|
|
22358
|
-
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-
|
|
22360
|
+
const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-HJCSXMKS.js");
|
|
22359
22361
|
const builtin = resolveBuiltinSkillByName(name);
|
|
22360
22362
|
if (builtin) {
|
|
22361
22363
|
return {
|