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
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  OAUTH_PROVIDER_REFS,
26
26
  buildLocalAgentLookupKeys
27
- } from "./chunk-CTEEJJVR.js";
27
+ } from "./chunk-MPIAKYZ7.js";
28
28
  import {
29
29
  LOCAL_CODEX_AGENT_ID,
30
30
  LOCAL_CODEX_AGENT_KEY,
@@ -60,7 +60,7 @@ import {
60
60
  import {
61
61
  inlineImageUrlsForCustomProvider,
62
62
  prepareTools
63
- } from "./chunk-SCDJOWJT.js";
63
+ } from "./chunk-5DVM4RIR.js";
64
64
  import {
65
65
  getServerProviderSecret
66
66
  } from "./chunk-HS7MLR74.js";
@@ -82,18 +82,18 @@ import {
82
82
  resolveCliLocalRuntimeKeyCapability,
83
83
  resolveCliLocalSpawnDispatch,
84
84
  resolveStartAgentRunCwd
85
- } from "./chunk-QZRAVGW3.js";
85
+ } from "./chunk-5ROGGWPM.js";
86
86
  import {
87
87
  deriveCredentialGroup,
88
88
  deriveCustomProviderCredentialGroup
89
- } from "./chunk-2D3YKEAQ.js";
89
+ } from "./chunk-P7JNYLDW.js";
90
90
  import {
91
91
  fetchWithTransientRetry,
92
92
  isTransientFetchError
93
93
  } from "./chunk-KFHREHUQ.js";
94
94
  import {
95
95
  resolveAgentRequiredPackIds
96
- } from "./chunk-DS47C2AI.js";
96
+ } from "./chunk-HWJZEUA6.js";
97
97
  import {
98
98
  getDefaultCliLocalRuntimeDb
99
99
  } from "./chunk-FDLDMJTM.js";
@@ -105,14 +105,14 @@ import {
105
105
  resolveBuiltinPlatformAgentConfig,
106
106
  runKeyed,
107
107
  validateAskChoiceInput
108
- } from "./chunk-OC4NVQ5S.js";
108
+ } from "./chunk-WGHIT2HH.js";
109
109
  import {
110
110
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
111
111
  BUILTIN_TITLE_LLM_CONFIG
112
112
  } from "./chunk-523DITKR.js";
113
113
  import {
114
114
  fetchServerSyncedCredential
115
- } from "./chunk-5LK5OYUB.js";
115
+ } from "./chunk-MHC44FKA.js";
116
116
  import {
117
117
  isTombstoneRecord
118
118
  } from "./chunk-D2MDMY2M.js";
@@ -125,7 +125,7 @@ import {
125
125
  applySystemBuiltinSkillFilter,
126
126
  expandEnabledPacks,
127
127
  resolveEffectiveEnabledPacks
128
- } from "./chunk-SK2UMOZC.js";
128
+ } from "./chunk-NRYTWXXV.js";
129
129
  import {
130
130
  DEFAULT_HYBRID_READ_TIMEOUT_MS,
131
131
  Duration_exports,
@@ -169,7 +169,7 @@ import {
169
169
  runExecShellGates,
170
170
  validateConfiguredRootExecutionLease,
171
171
  verifyOwnerRouteAck
172
- } from "./chunk-FLX5EYLQ.js";
172
+ } from "./chunk-FO2BTDKY.js";
173
173
  import {
174
174
  accumulateGeminiChunks,
175
175
  buildGeminiGenerateContentRequest,
@@ -192,7 +192,7 @@ import {
192
192
  readPlatformChatSseCompletion,
193
193
  resolvePlatformChatProviderConfig,
194
194
  shouldUsePlatformChatProvider
195
- } from "./chunk-YO776XHS.js";
195
+ } from "./chunk-QNLRCES2.js";
196
196
  import {
197
197
  readSseDataValues,
198
198
  readSseFrames
@@ -212,7 +212,7 @@ import {
212
212
  findAgentStatePairingIssues,
213
213
  stablePromptCacheKey,
214
214
  toResponsesTools
215
- } from "./chunk-JDCX5RWD.js";
215
+ } from "./chunk-HEYJFOL6.js";
216
216
  import {
217
217
  EMPTY_TOOL_RESULT_TEXT,
218
218
  createToolImageBudget,
@@ -228,7 +228,7 @@ import {
228
228
  parseNoloWorkspaceToolArguments,
229
229
  resolveRequestToolSurface,
230
230
  resolveRuntimeToolSurfaceForAgent
231
- } from "./chunk-ZEQ6L6MZ.js";
231
+ } from "./chunk-3FTJG5NU.js";
232
232
  import {
233
233
  isCapacitySaturatedRateLimit,
234
234
  mergeAvailabilityDeadline,
@@ -242,7 +242,7 @@ import {
242
242
  } from "./chunk-2MBTWINN.js";
243
243
  import {
244
244
  normalizeUsage
245
- } from "./chunk-T7HBI3WZ.js";
245
+ } from "./chunk-NSASNKVD.js";
246
246
  import {
247
247
  isDevinOAuthAgent
248
248
  } from "./chunk-5ZUL4CUO.js";
@@ -252,7 +252,7 @@ import {
252
252
  observeMeaningfulProviderResponse,
253
253
  observeMeaningfulProviderResponseAt,
254
254
  withProviderCallTimingFields
255
- } from "./chunk-7ZGMQZ5D.js";
255
+ } from "./chunk-H57T64RA.js";
256
256
  import {
257
257
  isOAuthApiKeyRef
258
258
  } from "./chunk-UKZX3NHN.js";
@@ -284,11 +284,11 @@ import {
284
284
  } from "./chunk-ZWQUWF6W.js";
285
285
  import {
286
286
  canonicalizeToolNames
287
- } from "./chunk-XJBWPOIL.js";
287
+ } from "./chunk-NHBJHDVW.js";
288
288
  import {
289
289
  CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES,
290
290
  canonicalizeChromeConnectorToolNames
291
- } from "./chunk-MMKP2XWK.js";
291
+ } from "./chunk-JX5XVFVW.js";
292
292
  import {
293
293
  isSystemBuiltinTrustedAgentKey
294
294
  } from "./chunk-LOEO7LRC.js";
@@ -3,7 +3,7 @@ import {
3
3
  classifyAgentApiKeyRef,
4
4
  formatUnsupportedAgentApiKeyRefMessage,
5
5
  shouldReadAgentKeyRemotely
6
- } from "./chunk-CTEEJJVR.js";
6
+ } from "./chunk-MPIAKYZ7.js";
7
7
  import {
8
8
  resolveCliAgentKeyInput
9
9
  } from "./chunk-NBTY7YJF.js";
@@ -0,0 +1,80 @@
1
+ // packages/ai/token/providerCallTiming.ts
2
+ var defaultNow = () => {
3
+ const perf = globalThis.performance;
4
+ return typeof perf?.now === "function" ? perf.now() : Date.now();
5
+ };
6
+ var normalizeTimingMs = (value) => {
7
+ if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
8
+ return void 0;
9
+ }
10
+ return Math.round(value);
11
+ };
12
+ var createProviderCallTimingTracker = (now = defaultNow) => ({
13
+ startMonotonicMs: now(),
14
+ now
15
+ });
16
+ var observeMeaningfulProviderResponseAt = (tracker, observedAt) => {
17
+ if (!tracker || tracker.firstMeaningfulMonotonicMs !== void 0) return;
18
+ tracker.firstMeaningfulMonotonicMs = observedAt;
19
+ };
20
+ var observeMeaningfulProviderResponse = (tracker) => {
21
+ if (!tracker) return;
22
+ observeMeaningfulProviderResponseAt(tracker, tracker.now());
23
+ };
24
+ var finalizeProviderCallTiming = (tracker) => {
25
+ if (!tracker) return {};
26
+ const callDurationMs = normalizeTimingMs(
27
+ Math.max(0, tracker.now() - tracker.startMonotonicMs)
28
+ );
29
+ const firstOutputMs = tracker.firstMeaningfulMonotonicMs !== void 0 ? normalizeTimingMs(
30
+ Math.max(0, tracker.firstMeaningfulMonotonicMs - tracker.startMonotonicMs)
31
+ ) : void 0;
32
+ return {
33
+ ...firstOutputMs !== void 0 ? { firstOutputMs } : {},
34
+ ...callDurationMs !== void 0 ? { callDurationMs } : {}
35
+ };
36
+ };
37
+ var withProviderCallTimingFields = (usage, timing) => {
38
+ if (!usage || typeof usage !== "object") return usage;
39
+ return {
40
+ ...usage,
41
+ ...timing.firstOutputMs !== void 0 ? { firstOutputMs: timing.firstOutputMs } : {},
42
+ ...timing.callDurationMs !== void 0 ? { callDurationMs: timing.callDurationMs } : {}
43
+ };
44
+ };
45
+ var isMeaningfulChatCompletionOutput = (delta) => {
46
+ if (!delta || typeof delta !== "object") return false;
47
+ const d = delta;
48
+ if (typeof d.content === "string" && d.content) return true;
49
+ if (typeof d.reasoning_content === "string" && d.reasoning_content) return true;
50
+ if (typeof d.reasoning === "string" && d.reasoning) return true;
51
+ return Array.isArray(d.tool_calls) && d.tool_calls.length > 0;
52
+ };
53
+ var isMeaningfulResponsesOutput = (event) => {
54
+ if (!event || typeof event !== "object") return false;
55
+ const e = event;
56
+ const type = typeof e.type === "string" ? e.type : "";
57
+ if (type.startsWith("response.") && type.endsWith(".delta")) {
58
+ const delta = e.delta;
59
+ if (typeof delta === "string" && delta.length > 0) return true;
60
+ if (delta && typeof delta === "object" && typeof delta.text === "string" && delta.text) {
61
+ return true;
62
+ }
63
+ return false;
64
+ }
65
+ if (type === "response.output_item.added" || type === "response.output_item.done") {
66
+ return e.item?.type === "function_call";
67
+ }
68
+ return false;
69
+ };
70
+
71
+ export {
72
+ normalizeTimingMs,
73
+ createProviderCallTimingTracker,
74
+ observeMeaningfulProviderResponseAt,
75
+ observeMeaningfulProviderResponse,
76
+ finalizeProviderCallTiming,
77
+ withProviderCallTimingFields,
78
+ isMeaningfulChatCompletionOutput,
79
+ isMeaningfulResponsesOutput
80
+ };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-E2BESSAW.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-7ZGMQZ5D.js";
13
+ } from "./chunk-CSINZLH7.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-MAS5KGBB.js";
11
+ } from "./chunk-7AVKDSWD.js";
12
12
  import {
13
13
  require_react
14
14
  } from "./chunk-YDH3FDFQ.js";
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  resolveBuiltinCapability,
24
24
  resolveBuiltinSkillEntry
25
- } from "./chunk-5LZBJZLT.js";
25
+ } from "./chunk-TXJZ7QXG.js";
26
26
  import {
27
27
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
28
28
  } from "./chunk-EUGTFFO6.js";
@@ -521,7 +521,7 @@ var executeToolRun = createAsyncThunk(
521
521
  if (!executionInput) {
522
522
  throw new Error(`ToolRun ${id} has no input to execute with.`);
523
523
  }
524
- const { findToolExecutor } = await import("./tools-GWQ4POVC.js");
524
+ const { findToolExecutor } = await import("./tools-R6JLL5PS.js");
525
525
  const { executor } = findToolExecutor(run.toolName);
526
526
  toolRunStarted({
527
527
  id: run.id,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-4FZUUCXQ.js";
3
+ } from "./chunk-MMSZKZWA.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-WACI5I6V.js";
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-SCDJOWJT.js";
8
+ } from "./chunk-5DVM4RIR.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,16 +14,16 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-THZHXIKZ.js";
17
+ } from "./chunk-B3BTDNEC.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-QZRAVGW3.js";
21
+ } from "./chunk-5ROGGWPM.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-UXJ7R3EP.js";
26
+ } from "./chunk-ORYQ2GDN.js";
27
27
  import {
28
28
  createSSEParser,
29
29
  createToolRunId,
@@ -32,7 +32,7 @@ import {
32
32
  toolRunSetPending,
33
33
  toolRunStarted,
34
34
  toolRunSucceeded
35
- } from "./chunk-DS47C2AI.js";
35
+ } from "./chunk-HWJZEUA6.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -45,10 +45,10 @@ import {
45
45
  messageStreaming,
46
46
  toolResultNeedsUserConfirmation,
47
47
  updateToolMessage
48
- } from "./chunk-OC4NVQ5S.js";
48
+ } from "./chunk-WGHIT2HH.js";
49
49
  import {
50
50
  streamAgentChatTurn
51
- } from "./chunk-5LK5OYUB.js";
51
+ } from "./chunk-MHC44FKA.js";
52
52
  import {
53
53
  addActiveController,
54
54
  removeActiveController,
@@ -85,13 +85,13 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-JDCX5RWD.js";
88
+ } from "./chunk-HEYJFOL6.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-T7HBI3WZ.js";
91
+ } from "./chunk-NSASNKVD.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-7ZGMQZ5D.js";
94
+ } from "./chunk-CSINZLH7.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
@@ -179,7 +179,7 @@ var chromeTypeFunctionSchema = baseSchema(
179
179
  );
180
180
  var chromeSetSelectValueSchema = baseSchema(
181
181
  "browser_set_select_value",
182
- `Choose an option in a native <select> element and verify the result. Use this for real <select> controls instead of click/press: clicking a select never changes its value (type reports value_mismatch, key presses have no observable effect, and <option> elements do not appear in browser_read_page). Provide exactly one of value (matched exactly against option values) or label (the option's visible text, which must match exactly one option). When the option is missing (OPTION_NOT_FOUND), several options share the label (OPTION_AMBIGUOUS) or the option is disabled (OPTION_DISABLED), the call fails with that code instead of guessing \u2014 call browser_read_page again and pass the exact value. The result is ok only when the select reads back the requested option after input/change were dispatched (verified is true on that same read-back); SELECT_VALUE_NOT_APPLIED means the page rejected or reverted the choice. If the select cannot be read back at all \u2014 for example a change listener removed it \u2014 the call returns ok:false with effect "uncertain" and code SELECT_GONE (or SELECT_VALUE_UNVERIFIED when the read never returned), which means unverified, not success: re-read the page before reporting the choice. Custom (non-native) dropdowns still need browser_click_element. Selecting an option in a control whose accessible name indicates an irreversible external action (delete, \u652F\u4ED8, \u53D1\u9001\u2026) opens a confirmation request for the user and returns USER_APPROVAL_PENDING with an approvalId: ask the user to click "Allow once" in the Nolo window, then retry this same call with that approvalId. Do not retry without it, and do not switch to another selector or elementRef to get around the gate.`,
182
+ `Choose an option in a native <select> element and verify the result. Use this for real <select> controls instead of click/press: clicking a select never changes its value (type reports value_mismatch, key presses have no observable effect, and <option> elements do not appear in browser_read_page). Provide exactly one of value (matched exactly against option values) or label (the option's visible text, which must match exactly one option). When the option is missing (OPTION_NOT_FOUND), several options share the label (OPTION_AMBIGUOUS) or the option is disabled (OPTION_DISABLED), the call fails with that code instead of guessing \u2014 call browser_read_page again and pass the exact value. The result is ok only when the select reads back the requested option after input/change were dispatched (verified is true on that same read-back); SELECT_VALUE_NOT_APPLIED means the page rejected or reverted the choice. If the select cannot be read back at all \u2014 for example a change listener removed it \u2014 the call returns ok:false with effect "uncertain" and code SELECT_GONE (or SELECT_VALUE_UNVERIFIED when the read never returned), which means unverified, not success: re-read the page before reporting the choice. Custom (non-native) dropdowns still need browser_click_element. Selecting an option in a control whose accessible name indicates an irreversible external action (delete, \u652F\u4ED8, \u53D1\u9001\u2026) opens a confirmation request for the user and returns USER_APPROVAL_PENDING with an approvalId: ask the user to click "Allow once" in the Nolo window, then retry this same call with that approvalId. Do not retry without it, and do not switch to another selector or elementRef to get around the gate. Four further codes say the select's identity could not be proven: SELECT_TOKEN_UNAVAILABLE means this page cannot hold a select identity token at all (the value was not set), SELECT_TOKEN_REQUIRED means the target select was not marked before the set so it cannot be identified (the value was not set), and SELECT_TOKEN_FAILED means marking that token failed (the value was not set) \u2014 in all three cases the connector cannot prove which control it addressed, so call browser_read_page again and retry with a fresh selector or elementRef. TYPE_ON_SELECT_REFUSED means browser_type was aimed at a native <select>, which never chooses an option \u2014 use browser_set_select_value for that control instead.`,
183
183
  {
184
184
  tabId,
185
185
  elementRef,
@@ -347,7 +347,7 @@ var slice = createSliceWithThunks({
347
347
  const overrides = {};
348
348
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
349
349
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
350
- const { _executeModel } = await import("./_executeModel-EJUKYBFV.js");
350
+ const { _executeModel } = await import("./_executeModel-YYVG3FYU.js");
351
351
  return _executeModel(
352
352
  {
353
353
  isStreaming: args.isStreaming ?? false,
@@ -368,7 +368,7 @@ var slice = createSliceWithThunks({
368
368
  * - 循环直到无工具调用或触发其他运行时停止条件
369
369
  */
370
370
  runAgent: create.asyncThunk(async (args, thunkApi) => {
371
- const { runAgentClientLoop } = await import("./runAgentClientLoop-QJL24CN5.js");
371
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-KV6R3FSU.js");
372
372
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
373
373
  {
374
374
  agentKey: args.agentKey,
@@ -384,7 +384,7 @@ var slice = createSliceWithThunks({
384
384
  * 聊天轮次流式 Agent 调用
385
385
  */
386
386
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
387
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-4ZA46AEJ.js");
387
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-RTQ2DU4K.js");
388
388
  return streamAgentChatTurnHandler(args, thunkApi);
389
389
  }),
390
390
  /**
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-OXYSTN6B.js";
4
+ } from "./chunk-GTQKUQGF.js";
5
5
  import {
6
6
  buildSkillSummaryMarker
7
7
  } from "./chunk-VF4K2QE6.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-F55WKIWE.js";
4
+ } from "./chunk-FUW33OOI.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-DS47C2AI.js";
7
+ } from "./chunk-HWJZEUA6.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-FLX5EYLQ.js";
10
+ } from "./chunk-FO2BTDKY.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-ZEQ6L6MZ.js";
13
+ } from "./chunk-3FTJG5NU.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
16
  } from "./chunk-LIQJTQRN.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  buildAgentRuntimeAgentLookupKeys,
3
3
  shouldFetchAgentRuntimeRecordRemotely
4
- } from "./chunk-ZEQ6L6MZ.js";
4
+ } from "./chunk-3FTJG5NU.js";
5
5
 
6
6
  // packages/agent-runtime/oauthProviderRefs.ts
7
7
  var OAUTH_PROVIDER_REFS = [
@@ -9,7 +9,7 @@ import {
9
9
  resolveRawAgentInput,
10
10
  resolveServerUrl,
11
11
  writeUsage
12
- } from "./chunk-I4ZVPTAI.js";
12
+ } from "./chunk-DHMXTEM4.js";
13
13
  import {
14
14
  getReadableCliDb
15
15
  } from "./chunk-62TBKWTV.js";
@@ -31,7 +31,7 @@ import {
31
31
  resolveFileWriteGateEnabled,
32
32
  resolveLocalUserId,
33
33
  validateInstaboxWorkspaceSelection
34
- } from "./chunk-F55WKIWE.js";
34
+ } from "./chunk-FUW33OOI.js";
35
35
  import {
36
36
  clearCredentialAvailability,
37
37
  readEffectiveCredentialEntry,
@@ -57,7 +57,7 @@ import {
57
57
  import {
58
58
  readDbRecord,
59
59
  resolveAgentRecordFromHybridStore
60
- } from "./chunk-OXYSTN6B.js";
60
+ } from "./chunk-GTQKUQGF.js";
61
61
  import {
62
62
  isLocalCliAgentKey
63
63
  } from "./chunk-NBTY7YJF.js";
@@ -72,14 +72,14 @@ import {
72
72
  } from "./chunk-BMQ2MJUK.js";
73
73
  import {
74
74
  resolveCliLocalRuntimeKeyCapability
75
- } from "./chunk-QZRAVGW3.js";
75
+ } from "./chunk-5ROGGWPM.js";
76
76
  import {
77
77
  isTransientFetchError
78
78
  } from "./chunk-KFHREHUQ.js";
79
79
  import {
80
80
  parseUiCard,
81
81
  uiCardFallback
82
- } from "./chunk-DS47C2AI.js";
82
+ } from "./chunk-HWJZEUA6.js";
83
83
  import {
84
84
  isGatewayHttpStatus
85
85
  } from "./chunk-NF64D32W.js";
@@ -88,7 +88,7 @@ import {
88
88
  chooseMemoryOwners,
89
89
  loadMemoryCandidatesFromDb,
90
90
  resolveAgentMemoryPolicy
91
- } from "./chunk-CJYL3N3T.js";
91
+ } from "./chunk-3PVH6HJG.js";
92
92
  import {
93
93
  getDefaultCliLocalRuntimeDb
94
94
  } from "./chunk-FDLDMJTM.js";
@@ -99,7 +99,7 @@ import {
99
99
  resolveAgentContextWindow,
100
100
  resolveOccupancy,
101
101
  resolveOccupancyWindow
102
- } from "./chunk-OC4NVQ5S.js";
102
+ } from "./chunk-WGHIT2HH.js";
103
103
  import {
104
104
  buildSkillDiscoveryContextLayer
105
105
  } from "./chunk-AU7AXHUL.js";
@@ -111,7 +111,7 @@ import {
111
111
  LOCAL_AGENT_CONFIG_MISSING_CODE,
112
112
  LOCAL_TURN_ABORTED_CODE,
113
113
  readActionGate
114
- } from "./chunk-FLX5EYLQ.js";
114
+ } from "./chunk-FO2BTDKY.js";
115
115
  import {
116
116
  resolveAgentRuntimeConfigFromRecord
117
117
  } from "./chunk-CR5WXQX7.js";
@@ -139,7 +139,7 @@ import {
139
139
  } from "./chunk-JLR5NWP2.js";
140
140
  import {
141
141
  normalizeUsage
142
- } from "./chunk-T7HBI3WZ.js";
142
+ } from "./chunk-NSASNKVD.js";
143
143
  import {
144
144
  isOAuthApiKeyRef
145
145
  } from "./chunk-UKZX3NHN.js";
@@ -11376,7 +11376,7 @@ function isBalanceExhaustedError(error) {
11376
11376
 
11377
11377
  // packages/cli/client/agentRun.ts
11378
11378
  async function loadRunLocalAgentTurn() {
11379
- const { runLocalAgentTurn } = await import("./agentRuntimeLocal-AG7RCTM3.js");
11379
+ const { runLocalAgentTurn } = await import("./agentRuntimeLocal-ECGPI3CO.js");
11380
11380
  return runLocalAgentTurn;
11381
11381
  }
11382
11382
  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,6 +1,6 @@
1
1
  import {
2
2
  CHROME_CONNECTOR_LEGACY_TOOL_ALIASES
3
- } from "./chunk-MMKP2XWK.js";
3
+ } from "./chunk-JX5XVFVW.js";
4
4
 
5
5
  // packages/agent-runtime/toolNameAliases.ts
6
6
  var LEGACY_TOOL_NAME_ALIASES = {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-AETZ7AD6.js";
8
8
  import {
9
9
  CHROME_CONNECTOR_ACCEPTED_TOOL_NAMES
10
- } from "./chunk-MMKP2XWK.js";
10
+ } from "./chunk-JX5XVFVW.js";
11
11
  import {
12
12
  createKey
13
13
  } from "./chunk-5EMSBTQ6.js";
@@ -2,9 +2,11 @@ import {
2
2
  isDevinOAuthAgent
3
3
  } from "./chunk-5ZUL4CUO.js";
4
4
  import {
5
- getModelContextWindow,
5
+ getModelContextWindow
6
+ } from "./chunk-CSINZLH7.js";
7
+ import {
6
8
  normalizeTimingMs
7
- } from "./chunk-7ZGMQZ5D.js";
9
+ } from "./chunk-H57T64RA.js";
8
10
  import {
9
11
  BUILTIN_NOLO_AGENT_KEY
10
12
  } from "./chunk-LOEO7LRC.js";
@@ -7,7 +7,7 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-EAWOT7M6.js";
10
+ } from "./chunk-F2P6YUHC.js";
11
11
  import {
12
12
  parsePositiveFiniteNumberOrFallback
13
13
  } from "./chunk-Y5GCAMGP.js";
@@ -32,7 +32,7 @@ import {
32
32
  boundSummaryText,
33
33
  buildDialogReadEnvelope,
34
34
  projectDialogReadForAgent
35
- } from "./chunk-ZEQ6L6MZ.js";
35
+ } from "./chunk-3FTJG5NU.js";
36
36
  import {
37
37
  asRecordOrEmpty
38
38
  } from "./chunk-KX6YBIHG.js";
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-DS47C2AI.js";
5
+ } from "./chunk-HWJZEUA6.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-AGIM7IMJ.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-OC4NVQ5S.js";
24
+ } from "./chunk-WGHIT2HH.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
@@ -35,7 +35,7 @@ import {
35
35
  extractRuntimePageCapabilities,
36
36
  resolveBuiltinSkillPage,
37
37
  resolveSkillGraphFromRoots
38
- } from "./chunk-5LZBJZLT.js";
38
+ } from "./chunk-TXJZ7QXG.js";
39
39
  import {
40
40
  isAbortError
41
41
  } from "./chunk-7DPNBQSV.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-UEILX4EV.js";
4
4
  import {
5
5
  compareAgentSelection
6
- } from "./chunk-ZEQ6L6MZ.js";
6
+ } from "./chunk-3FTJG5NU.js";
7
7
  import {
8
8
  DEFAULT_PROVIDER_RETRY_MS,
9
9
  isAgentUnavailableNow,
@@ -30,11 +30,11 @@ import {
30
30
  stablePromptCacheKey,
31
31
  toOpenAiCompatibleMessages,
32
32
  toResponsesTools
33
- } from "./chunk-JDCX5RWD.js";
33
+ } from "./chunk-HEYJFOL6.js";
34
34
  import {
35
35
  isMeaningfulChatCompletionOutput,
36
36
  isMeaningfulResponsesOutput
37
- } from "./chunk-7ZGMQZ5D.js";
37
+ } from "./chunk-H57T64RA.js";
38
38
  import {
39
39
  clipCompactText
40
40
  } from "./chunk-5MMAK75Q.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_SELECTION_PRIORITY_INSTRUCTIONS
3
- } from "./chunk-ZEQ6L6MZ.js";
3
+ } from "./chunk-3FTJG5NU.js";
4
4
  import {
5
5
  canonicalizeToolNames
6
- } from "./chunk-XJBWPOIL.js";
6
+ } from "./chunk-NHBJHDVW.js";
7
7
  import {
8
8
  BUILTIN_AGENT_CATALOG
9
9
  } from "./chunk-LOEO7LRC.js";
@@ -6,7 +6,7 @@ import {
6
6
  buildBuiltinObjectSkillDbKey,
7
7
  buildBuiltinObjectSkillPageContent,
8
8
  buildCodeWorkDiscipline
9
- } from "./chunk-SK2UMOZC.js";
9
+ } from "./chunk-NRYTWXXV.js";
10
10
  import {
11
11
  buildSkillDocMarkdown,
12
12
  resolvePageSkillMetadata
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-Y6ORVLSS.js";
17
17
  import {
18
18
  canonicalizeToolNames
19
- } from "./chunk-XJBWPOIL.js";
19
+ } from "./chunk-NHBJHDVW.js";
20
20
  import {
21
21
  asNonEmptyStringArray
22
22
  } from "./chunk-I42VC5KR.js";
@@ -0,0 +1,8 @@
1
+ // packages/ai/token/usageConstants.ts
2
+ var ALL_MODELS = "\u5168\u90E8\u6A21\u578B";
3
+ var LOCAL_USER_ID = "local";
4
+
5
+ export {
6
+ ALL_MODELS,
7
+ LOCAL_USER_ID
8
+ };