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.
Files changed (81) hide show
  1. package/{_executeModel-EJUKYBFV.js → _executeModel-YYVG3FYU.js} +31 -23
  2. package/{agentDeleteCommand-OWDZDREL.js → agentDeleteCommand-EOU67KBO.js} +26 -24
  3. package/{agentEmailCommands-RJGVOJXD.js → agentEmailCommands-HEQLXSP6.js} +27 -25
  4. package/{agentListCommands-GRJAY5ZE.js → agentListCommands-4QUON7JZ.js} +30 -70
  5. package/{agentMachineCommands-FNYZSZQ4.js → agentMachineCommands-53GH4CDQ.js} +13 -12
  6. package/{agentRecordCommands-EBDTISRS.js → agentRecordCommands-XXN5V3AX.js} +26 -24
  7. package/{agentRunCommand-GIBVOCOK.js → agentRunCommand-ZUM5E3UV.js} +27 -25
  8. package/{agentRuntimeLocal-AG7RCTM3.js → agentRuntimeLocal-ECGPI3CO.js} +10 -9
  9. package/{agentSlice-LD6SEBSP.js → agentSlice-MS5G7UCC.js} +1 -1
  10. package/{appDeleteCommands-DXF3IOFE.js → appDeleteCommands-UHH52BCJ.js} +14 -13
  11. package/{appDeployCommands-JVKZ3ATD.js → appDeployCommands-Z42ILX24.js} +14 -13
  12. package/{appDeployStatusCommands-VLGEMFV6.js → appDeployStatusCommands-COYNEUSI.js} +14 -13
  13. package/{appGetCommands-JQN7RPBD.js → appGetCommands-35XXIRZJ.js} +14 -13
  14. package/{appListCommands-MFPVNCVT.js → appListCommands-CIUEMKRJ.js} +14 -13
  15. package/{builtinSkillRegistry-MRI4FNCR.js → builtinSkillRegistry-HJCSXMKS.js} +4 -4
  16. package/{chunk-ZEQ6L6MZ.js → chunk-3FTJG5NU.js} +1 -1
  17. package/{chunk-CJYL3N3T.js → chunk-3PVH6HJG.js} +3 -3
  18. package/{chunk-SCDJOWJT.js → chunk-5DVM4RIR.js} +3 -3
  19. package/{chunk-QZRAVGW3.js → chunk-5ROGGWPM.js} +14 -14
  20. package/{chunk-MAS5KGBB.js → chunk-7AVKDSWD.js} +1 -1
  21. package/{chunk-UCE66MIJ.js → chunk-ADF4RAQS.js} +2 -2
  22. package/chunk-AMWMV56B.js +73 -0
  23. package/{chunk-KUGOIFXV.js → chunk-AWFDDOVW.js} +3 -3
  24. package/{chunk-THZHXIKZ.js → chunk-B3BTDNEC.js} +6 -6
  25. package/{chunk-CFW7JLTH.js → chunk-C3BYVRTJ.js} +2 -2
  26. package/{chunk-7ZGMQZ5D.js → chunk-CSINZLH7.js} +0 -78
  27. package/{chunk-I4ZVPTAI.js → chunk-DHMXTEM4.js} +2 -2
  28. package/{chunk-EAWOT7M6.js → chunk-F2P6YUHC.js} +1 -1
  29. package/{chunk-WQ4M3IYD.js → chunk-FAFNPFGS.js} +9 -9
  30. package/{chunk-FLX5EYLQ.js → chunk-FO2BTDKY.js} +15 -13
  31. package/{chunk-F55WKIWE.js → chunk-FUW33OOI.js} +16 -16
  32. package/{chunk-OXYSTN6B.js → chunk-GTQKUQGF.js} +1 -1
  33. package/chunk-H57T64RA.js +80 -0
  34. package/{chunk-JDCX5RWD.js → chunk-HEYJFOL6.js} +1 -1
  35. package/{chunk-DS47C2AI.js → chunk-HWJZEUA6.js} +3 -3
  36. package/{chunk-HZG23JG6.js → chunk-J2EVUNED.js} +1 -1
  37. package/{chunk-5AIXW7RW.js → chunk-JWSHARJM.js} +10 -10
  38. package/{chunk-MMKP2XWK.js → chunk-JX5XVFVW.js} +1 -1
  39. package/{chunk-5LK5OYUB.js → chunk-MHC44FKA.js} +3 -3
  40. package/{chunk-4FZUUCXQ.js → chunk-MMSZKZWA.js} +1 -1
  41. package/{chunk-7O6YJN4K.js → chunk-MO6NDG3O.js} +4 -4
  42. package/{chunk-CTEEJJVR.js → chunk-MPIAKYZ7.js} +1 -1
  43. package/{chunk-EP2L3JUM.js → chunk-NCVSRB7F.js} +10 -10
  44. package/{chunk-XJBWPOIL.js → chunk-NHBJHDVW.js} +1 -1
  45. package/{chunk-SK2UMOZC.js → chunk-NRYTWXXV.js} +1 -1
  46. package/{chunk-T7HBI3WZ.js → chunk-NSASNKVD.js} +4 -2
  47. package/{chunk-6PHS6ADB.js → chunk-ONFC3RLP.js} +2 -2
  48. package/{chunk-UXJ7R3EP.js → chunk-ORYQ2GDN.js} +3 -3
  49. package/{chunk-2D3YKEAQ.js → chunk-P7JNYLDW.js} +1 -1
  50. package/{chunk-YO776XHS.js → chunk-QNLRCES2.js} +2 -2
  51. package/{chunk-POYXVOYU.js → chunk-TQU64H2A.js} +2 -2
  52. package/{chunk-5LZBJZLT.js → chunk-TXJZ7QXG.js} +2 -2
  53. package/chunk-TZXPT53C.js +8 -0
  54. package/{chunk-OC4NVQ5S.js → chunk-WGHIT2HH.js} +13 -13
  55. package/{chunk-OES4RYIG.js → chunk-WPWAD6NT.js} +3 -3
  56. package/{commandRegistry-XRHKJCWS.js → commandRegistry-VVY2YPUI.js} +44 -40
  57. package/{contentThunks-FBGQIS5J.js → contentThunks-EWOORWBS.js} +7 -5
  58. package/{createAgentAutomationAction-ASIS3C6Q.js → createAgentAutomationAction-TRIAQUAK.js} +7 -5
  59. package/{createDialogAction-XJGVTBWO.js → createDialogAction-FXPXXDRR.js} +10 -8
  60. package/{createPageAction-2IWTNKUE.js → createPageAction-HHFPJKBD.js} +7 -5
  61. package/{dialogCommands-VKBNO7EI.js → dialogCommands-6Z27OC2B.js} +14 -13
  62. package/{dialogSlice-BE76QRR4.js → dialogSlice-4W7DJJC2.js} +6 -4
  63. package/dialogUsageCommand-ZPESQB6W.js +136 -0
  64. package/{docCreateCommands-HFDVOS2K.js → docCreateCommands-EBLE6KZA.js} +13 -12
  65. package/{docDeleteCommands-DMKHPD5R.js → docDeleteCommands-7JONZ5PW.js} +14 -13
  66. package/{docReadCommands-VAUSL2N7.js → docReadCommands-NI4LTXAV.js} +13 -12
  67. package/{docStore-FOTFZMVS.js → docStore-VBINJLRX.js} +1 -1
  68. package/{docUpdateCommands-6QQUX2IN.js → docUpdateCommands-QF4J5XQI.js} +13 -12
  69. package/{handleSendMessageAction-U6DQUBLF.js → handleSendMessageAction-FJKTVMCA.js} +15 -13
  70. package/index.js +4 -4
  71. package/{localRuntimeAdapter-DM7ERZ6Z.js → localRuntimeAdapter-QZNQNL2X.js} +24 -22
  72. package/{machineCommands-OJPPEMNZ.js → machineCommands-53PSUEW7.js} +25 -23
  73. package/{machineWsRunDispatch-I5WWJ2EY.js → machineWsRunDispatch-JNNSLAOT.js} +25 -23
  74. package/package.json +1 -1
  75. package/{readlineWorkspace-RMG27VY3.js → readlineWorkspace-46TGVQQ7.js} +30 -28
  76. package/{runAgentClientLoop-QJL24CN5.js → runAgentClientLoop-KV6R3FSU.js} +22 -20
  77. package/{spaceCommands-Z325DDJU.js → spaceCommands-CIXBPVEY.js} +13 -12
  78. package/{streamAgentChatTurn-4ZA46AEJ.js → streamAgentChatTurn-RTQ2DU4K.js} +24 -22
  79. package/{tools-GWQ4POVC.js → tools-R6JLL5PS.js} +17 -15
  80. package/{tuiSummaryLlmCaller-A6T54UJ3.js → tuiSummaryLlmCaller-5D3XCH2C.js} +4 -3
  81. package/{updateDialogTitleAction-VTE36JGF.js → updateDialogTitleAction-2QNU4T4I.js} +7 -5
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-MAS5KGBB.js";
3
+ } from "./chunk-7AVKDSWD.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-OC4NVQ5S.js";
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-SK2UMOZC.js";
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-QZRAVGW3.js";
3
+ } from "./chunk-5ROGGWPM.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-OC4NVQ5S.js";
6
+ } from "./chunk-WGHIT2HH.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
- } from "./chunk-XJBWPOIL.js";
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-2D3YKEAQ.js";
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-DS47C2AI.js";
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-CFW7JLTH.js";
82
+ } from "./chunk-C3BYVRTJ.js";
83
83
  import {
84
84
  createDialogAction
85
- } from "./chunk-CJYL3N3T.js";
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-MAS5KGBB.js";
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-OC4NVQ5S.js";
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-5LK5OYUB.js";
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-5LZBJZLT.js";
202
+ } from "./chunk-TXJZ7QXG.js";
203
203
  import {
204
204
  CAPABILITY_PACKS
205
- } from "./chunk-SK2UMOZC.js";
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-ZEQ6L6MZ.js";
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-XJBWPOIL.js";
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-MMKP2XWK.js";
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-BE76QRR4.js");
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-FOTFZMVS.js");
18566
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-VBINJLRX.js");
18567
18567
  if (getDocState().pageKey === id) {
18568
18568
  applyExternalDocUpdate({
18569
18569
  slateData: finalSlateData,
@@ -7,7 +7,7 @@ import {
7
7
  deleteDialog,
8
8
  runtime_default,
9
9
  toast
10
- } from "./chunk-OC4NVQ5S.js";
10
+ } from "./chunk-WGHIT2HH.js";
11
11
  import {
12
12
  formatISO
13
13
  } from "./chunk-ZRAU6T47.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-62TBKWTV.js";
7
7
  import {
8
8
  clearCliLocalRuntimePreparedAgentCache
9
- } from "./chunk-F55WKIWE.js";
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-OXYSTN6B.js";
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-EAWOT7M6.js";
4
+ } from "./chunk-F2P6YUHC.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-OXYSTN6B.js";
7
+ } from "./chunk-GTQKUQGF.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-2D3YKEAQ.js";
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-UXJ7R3EP.js";
6
+ } from "./chunk-ORYQ2GDN.js";
7
7
  import {
8
8
  fetchServerSyncedCredential
9
- } from "./chunk-5LK5OYUB.js";
9
+ } from "./chunk-MHC44FKA.js";
10
10
  import {
11
11
  buildSkillGuidancePromptBlock
12
- } from "./chunk-5LZBJZLT.js";
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-POYXVOYU.js";
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-JDCX5RWD.js";
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-XJBWPOIL.js";
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-FBGQIS5J.js");
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-2IWTNKUE.js");
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-QZRAVGW3.js";
8
+ } from "./chunk-5ROGGWPM.js";
9
9
  import {
10
10
  HIGH_RISK_MUTATION_TOOL_NAMES
11
- } from "./chunk-ZEQ6L6MZ.js";
11
+ } from "./chunk-3FTJG5NU.js";
12
12
  import {
13
13
  DEFAULT_NOLO_SERVER_URL
14
14
  } from "./chunk-OLZBQWZU.js";
@@ -2,7 +2,7 @@ import {
2
2
  deleteDbRecord,
3
3
  queryUserRecords,
4
4
  readDbRecord
5
- } from "./chunk-OXYSTN6B.js";
5
+ } from "./chunk-GTQKUQGF.js";
6
6
  import {
7
7
  mergeAndDedupUserData
8
8
  } from "./chunk-OXME3PEE.js";
@@ -7,7 +7,7 @@ import {
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-UXJ7R3EP.js";
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-DS47C2AI.js";
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-CFW7JLTH.js";
35
+ } from "./chunk-C3BYVRTJ.js";
36
36
  import {
37
37
  getTableState
38
- } from "./chunk-MAS5KGBB.js";
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-OC4NVQ5S.js";
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-SK2UMOZC.js";
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-T7HBI3WZ.js";
79
+ } from "./chunk-NSASNKVD.js";
80
80
  import {
81
81
  getModelContextWindow,
82
82
  planContextUsage
83
- } from "./chunk-7ZGMQZ5D.js";
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-XJBWPOIL.js";
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-YO776XHS.js";
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-POYXVOYU.js";
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-JDCX5RWD.js";
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-ZEQ6L6MZ.js";
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-T7HBI3WZ.js";
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-7ZGMQZ5D.js";
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-XJBWPOIL.js";
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-MRI4FNCR.js");
22360
+ const { resolveBuiltinSkillByName } = await import("./builtinSkillRegistry-HJCSXMKS.js");
22359
22361
  const builtin = resolveBuiltinSkillByName(name);
22360
22362
  if (builtin) {
22361
22363
  return {