nolo-cli 0.107.0-alpha.4 → 0.108.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/{_executeModel-UDCSOTD2.js → _executeModel-BY3P5LBB.js} +12 -12
  2. package/{agentDeleteCommand-OWYHN6D6.js → agentDeleteCommand-66KXCSRR.js} +7 -6
  3. package/{agentEmailCommands-AU5I4M4W.js → agentEmailCommands-63UTONDK.js} +18 -17
  4. package/{agentListCommands-B2V4YAC4.js → agentListCommands-NXCOTTZL.js} +9 -8
  5. package/{agentMachineCommands-YMNME2L6.js → agentMachineCommands-Z6RGPZSG.js} +7 -6
  6. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-X3UNW77C.js} +1 -1
  7. package/{agentRecordCommands-G4KK4R7H.js → agentRecordCommands-JP54ZWND.js} +17 -16
  8. package/{agentRunCommand-UTZJA23G.js → agentRunCommand-RMQWWSHF.js} +17 -16
  9. package/{agentRuntimeLocal-KCMC2TBD.js → agentRuntimeLocal-E67CTV45.js} +5 -4
  10. package/{agentSlice-R7PR6KYM.js → agentSlice-DG5TIQHE.js} +1 -1
  11. package/{appDeleteCommands-JEPA3EWE.js → appDeleteCommands-Z36CLGUK.js} +8 -7
  12. package/{appDeployCommands-UTB76XFM.js → appDeployCommands-ECMUWG6S.js} +8 -7
  13. package/{appDeployStatusCommands-LGHF2SBD.js → appDeployStatusCommands-CL24TDMA.js} +8 -7
  14. package/{appGetCommands-PX2BFHOB.js → appGetCommands-ITHGOYGJ.js} +8 -7
  15. package/{appListCommands-BSMPTWKC.js → appListCommands-EEOSI6RC.js} +8 -7
  16. package/{authCommand-YW42YZA4.js → authCommand-HGP2XTKC.js} +99 -7
  17. package/{chatQueueReduxAdapter-2P6NFX64.js → chatQueueReduxAdapter-DKLWTT3G.js} +2 -2
  18. package/{chunk-PQFHGD77.js → chunk-2OASQKU2.js} +1 -1
  19. package/{chunk-62CATUYY.js → chunk-4NNTATRH.js} +12 -769
  20. package/{chunk-EEGDMATE.js → chunk-AODJ7WSF.js} +3 -3
  21. package/{chunk-UVA7OYO3.js → chunk-CW67PN7L.js} +3 -3
  22. package/{chunk-4CR5I7BD.js → chunk-DOTZ5GTO.js} +1 -1
  23. package/chunk-FV3JEYR3.js +870 -0
  24. package/{chunk-MS7TSPZR.js → chunk-G4VIHCGJ.js} +3 -3
  25. package/chunk-GMZLP5DV.js +82 -0
  26. package/{chunk-UZGQNTVW.js → chunk-GNCCNNZD.js} +3 -1
  27. package/{chunk-GO3Z72MT.js → chunk-H4AHY5BU.js} +3 -80
  28. package/{chunk-NA35QHCF.js → chunk-HSSRGGXJ.js} +1 -1
  29. package/{chunk-GEPUP7OO.js → chunk-IQPFGYO3.js} +1 -1
  30. package/{chunk-XT35TTFG.js → chunk-KZJP33ZK.js} +1 -1
  31. package/{chunk-GPCZ7UXG.js → chunk-LJ5VW2UJ.js} +1 -1
  32. package/{chunk-C3M4465B.js → chunk-LPIYPEME.js} +9 -9
  33. package/{chunk-AEOE4Z6Q.js → chunk-LWKP7AWH.js} +1 -1
  34. package/{chunk-3UZPUAES.js → chunk-P3GYTNDF.js} +1 -1
  35. package/{chunk-ETI2NYVF.js → chunk-PHXD6JTX.js} +1 -1
  36. package/{chunk-W7HLWAQ7.js → chunk-PWBDVI4R.js} +5 -5
  37. package/{chunk-KQ4ONNQD.js → chunk-QU7KDSZX.js} +1 -1
  38. package/{chunk-IBOZNTG2.js → chunk-RVE4DCV3.js} +2 -2
  39. package/{chunk-IBOOZVVD.js → chunk-RZGLXO2B.js} +26 -22
  40. package/{chunk-GL3EHUR4.js → chunk-SYXOBWOC.js} +4 -4
  41. package/{chunk-ASIFZ2WY.js → chunk-T3GEOSRJ.js} +2 -2
  42. package/{chunk-JDPFV2JV.js → chunk-TR22GEUU.js} +2 -2
  43. package/{chunk-FG3HKPQP.js → chunk-UDIIVXKA.js} +41 -28
  44. package/{chunk-NOF3HDSN.js → chunk-YTLRHRH3.js} +3 -3
  45. package/{chunk-T75QD6AB.js → chunk-YWIEQS6H.js} +513 -27
  46. package/{chunk-53HEEOTT.js → chunk-Z5625XML.js} +1 -1
  47. package/{contentThunks-IV2T3EJC.js → contentThunks-JHK6X2KU.js} +3 -3
  48. package/{createAgentAutomationAction-JCOIEYY4.js → createAgentAutomationAction-7HX7KBES.js} +3 -3
  49. package/{createDialogAction-NGG7YVNU.js → createDialogAction-VUUUZL54.js} +4 -4
  50. package/{createPageAction-D2VOOLP3.js → createPageAction-QWNMGO3O.js} +3 -3
  51. package/{dialogCommands-H7FPUYUQ.js → dialogCommands-EN7TYD3I.js} +8 -7
  52. package/{dialogSlice-6JZOOTDS.js → dialogSlice-P2K47T3P.js} +2 -2
  53. package/{docCreateCommands-WRG2JLGM.js → docCreateCommands-43JKQEIH.js} +7 -6
  54. package/{docDeleteCommands-SHWJIBJS.js → docDeleteCommands-RL6D46XE.js} +8 -7
  55. package/{docReadCommands-WJN3WT6O.js → docReadCommands-TOEUEQDG.js} +7 -6
  56. package/{docStore-HUPQ2FSS.js → docStore-3AHKTJRI.js} +1 -1
  57. package/{docUpdateCommands-IE32IL6O.js → docUpdateCommands-FWU5G2XB.js} +7 -6
  58. package/{handleSendMessageAction-DFPMQ7YM.js → handleSendMessageAction-ID5IKXUE.js} +2 -2
  59. package/index.js +51 -51
  60. package/{machineCommands-M2T2I5NF.js → machineCommands-TTKK4F7C.js} +16 -15
  61. package/{machineWsRunDispatch-ISBKOOD7.js → machineWsRunDispatch-RX64L3ET.js} +16 -15
  62. package/package.json +1 -1
  63. package/{providerPresetApply-FG6NZ57W.js → providerPresetApply-XI3WUPTI.js} +2 -2
  64. package/{providerRegistry-757OWH3O.js → providerRegistry-KEPWWGXD.js} +2 -2
  65. package/{readlineWorkspace-XQRDGWRZ.js → readlineWorkspace-KIMUDPPV.js} +20 -19
  66. package/{runAgentClientLoop-5ZA62FBA.js → runAgentClientLoop-AN4WIRPQ.js} +10 -10
  67. package/{spaceCommands-5GLCWZPO.js → spaceCommands-NA4JMIGT.js} +7 -6
  68. package/{streamAgentChatTurn-6UZJMYRB.js → streamAgentChatTurn-3TYTHZPJ.js} +11 -11
  69. package/{tools-KMGFWO43.js → tools-34SEJSLQ.js} +8 -8
  70. package/{tuiSummaryLlmCaller-OHHFTHMG.js → tuiSummaryLlmCaller-UFGFOIIW.js} +2 -1
  71. package/{updateDialogTitleAction-QTKNIURB.js → updateDialogTitleAction-RDHNT265.js} +3 -3
  72. package/chunk-Q5FJJ6XI.js +0 -103
@@ -4,7 +4,7 @@ import {
4
4
  refreshAntigravityOAuthToken,
5
5
  refreshOpenAiCodexToken,
6
6
  xaiRefresh
7
- } from "./chunk-53HEEOTT.js";
7
+ } from "./chunk-Z5625XML.js";
8
8
  import {
9
9
  defaultLoopbackRequest
10
10
  } from "./chunk-EADNWBAZ.js";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  inlineImageUrlsForCustomProvider,
63
63
  prepareTools
64
- } from "./chunk-ASIFZ2WY.js";
64
+ } from "./chunk-T3GEOSRJ.js";
65
65
  import {
66
66
  getServerProviderSecret
67
67
  } from "./chunk-HS7MLR74.js";
@@ -80,7 +80,7 @@ import {
80
80
  rememberMemoryFunctionSchema,
81
81
  resolveAgentRequiredPackIds,
82
82
  setTodoListFunc
83
- } from "./chunk-C3M4465B.js";
83
+ } from "./chunk-LPIYPEME.js";
84
84
  import {
85
85
  fetchWithTransientRetry,
86
86
  isTransientFetchError
@@ -99,7 +99,7 @@ import {
99
99
  } from "./chunk-3VNWWVKB.js";
100
100
  import {
101
101
  deriveCredentialGroup
102
- } from "./chunk-PQFHGD77.js";
102
+ } from "./chunk-2OASQKU2.js";
103
103
  import {
104
104
  getModelPricing
105
105
  } from "./chunk-EYAQT56M.js";
@@ -109,14 +109,14 @@ import {
109
109
  prepareTokenUsageData,
110
110
  resolveBuiltinPlatformAgentConfig,
111
111
  runKeyed
112
- } from "./chunk-T75QD6AB.js";
112
+ } from "./chunk-YWIEQS6H.js";
113
113
  import {
114
114
  BUILTIN_DIALOG_LLM_CHAT_FALLBACK_MODEL,
115
115
  BUILTIN_TITLE_LLM_CONFIG
116
116
  } from "./chunk-MC4XLIJ7.js";
117
117
  import {
118
118
  fetchServerSyncedCredential
119
- } from "./chunk-NOF3HDSN.js";
119
+ } from "./chunk-YTLRHRH3.js";
120
120
  import {
121
121
  require_date_fns
122
122
  } from "./chunk-M76ECQRD.js";
@@ -139,9 +139,7 @@ import {
139
139
  Effect_exports,
140
140
  Exit_exports,
141
141
  Option_exports,
142
- accumulateGeminiChunks,
143
142
  aggregateResponsesStream,
144
- buildGeminiGenerateContentRequest,
145
143
  buildLoadSkillExecutor,
146
144
  buildLocalDialogWritePlan,
147
145
  buildLocalWorkspaceOpenAiTools,
@@ -154,24 +152,17 @@ import {
154
152
  evaluateFileWritePolicy,
155
153
  executeLocalToolWithPolicy,
156
154
  executeOpenAiCompatibleChatCompletion,
157
- fetchAntigravityCloudCodeCompletion,
158
155
  filterRetainedLedgerRecords,
159
156
  getAgentRuntimeToolParametersIndex,
160
157
  internalListWorkspaceEntries,
161
158
  internalSearchWorkspace,
162
- isGemini3Model,
163
159
  isLineRangeCovered,
164
160
  localDialogMessageRecordToRuntimeMessage,
165
- parseSseDataLineJson,
166
- parseSseDataLineObject,
167
161
  parseSyncServersEnv,
168
- parseUpstreamErrorBody,
169
162
  readDevinUpstreamFailure,
170
- resolveAntigravityFinishReason,
171
163
  resolveOpenAiCompatibleProviderConfig,
172
- shouldUseGeminiNativeToolRoute,
173
164
  summarizeToolArguments
174
- } from "./chunk-62CATUYY.js";
165
+ } from "./chunk-4NNTATRH.js";
175
166
  import {
176
167
  PlatformStreamInterruptedError,
177
168
  buildPlatformChatCompletionRequest,
@@ -180,10 +171,23 @@ import {
180
171
  parsePlatformChatCompletionData,
181
172
  parsePlatformChatCompletionResponse,
182
173
  readPlatformChatSseCompletion,
183
- readSseDataValues,
184
174
  resolvePlatformChatProviderConfig,
185
175
  shouldUsePlatformChatProvider
186
- } from "./chunk-GO3Z72MT.js";
176
+ } from "./chunk-H4AHY5BU.js";
177
+ import {
178
+ accumulateGeminiChunks,
179
+ buildGeminiGenerateContentRequest,
180
+ fetchAntigravityCloudCodeCompletion,
181
+ isGemini3Model,
182
+ parseSseDataLineJson,
183
+ parseSseDataLineObject,
184
+ parseUpstreamErrorBody,
185
+ resolveAntigravityFinishReason,
186
+ shouldUseGeminiNativeToolRoute
187
+ } from "./chunk-FV3JEYR3.js";
188
+ import {
189
+ readSseDataValues
190
+ } from "./chunk-GMZLP5DV.js";
187
191
  import {
188
192
  resolveAgentRuntimeConfigFromRecord,
189
193
  resolveHistoricalToolContentCap
@@ -209,7 +213,7 @@ import {
209
213
  } from "./chunk-FDTR4QJ6.js";
210
214
  import {
211
215
  isAntigravityOAuthAgent
212
- } from "./chunk-UZGQNTVW.js";
216
+ } from "./chunk-GNCCNNZD.js";
213
217
  import {
214
218
  resolvePlatformAuthToken
215
219
  } from "./chunk-6OZ36FXI.js";
@@ -2469,14 +2473,19 @@ var resolveAntigravityTransport = async (ctx) => {
2469
2473
  requestedToolNames,
2470
2474
  openAiToolNames: summarizeOpenAiToolNames(tools)
2471
2475
  });
2472
- const resolveLocalCredential = async ({ forceRefresh }) => resolveLocalAntigravityCredential({
2473
- credentialOwnerUserId,
2474
- apiKeyRefResolver,
2475
- apiKeyRef: agentConfig.apiKeyRef,
2476
- readCredential: () => readOAuthCredential("antigravity", void 0, legacyCredentialMigration),
2477
- migration: legacyCredentialMigration,
2478
- forceRefresh
2479
- });
2476
+ let lastUsedCredential = initialCredential;
2477
+ const resolveLocalCredential = async ({ forceRefresh }) => {
2478
+ const resolved = await resolveLocalAntigravityCredential({
2479
+ credentialOwnerUserId,
2480
+ apiKeyRefResolver,
2481
+ apiKeyRef: agentConfig.apiKeyRef,
2482
+ readCredential: () => readOAuthCredential("antigravity", void 0, legacyCredentialMigration),
2483
+ migration: legacyCredentialMigration,
2484
+ forceRefresh
2485
+ });
2486
+ lastUsedCredential = resolved;
2487
+ return resolved;
2488
+ };
2480
2489
  let result;
2481
2490
  try {
2482
2491
  result = await invokeAntigravity({
@@ -2544,9 +2553,13 @@ var resolveAntigravityTransport = async (ctx) => {
2544
2553
  // keep the old shape so existing output stays unchanged.
2545
2554
  upstreamError && Array.isArray(upstreamError.details) ? `${typeof upstreamError.message === "string" ? upstreamError.message : ""} details=${JSON.stringify(upstreamError.details)}`.trim() : typeof upstreamError?.message === "string" ? upstreamError.message : JSON.stringify(result.body)
2546
2555
  );
2547
- throw new Error(
2556
+ const failure = new Error(
2548
2557
  `local antigravity provider failed: HTTP ${result.status} ${errMsg}`
2549
2558
  );
2559
+ if (lastUsedCredential?.accountId) {
2560
+ failure.credentialAccountId = lastUsedCredential.accountId;
2561
+ }
2562
+ throw failure;
2550
2563
  }
2551
2564
  const choice = Array.isArray(result.body?.choices) ? result.body.choices[0] : void 0;
2552
2565
  const message = choice?.message ?? {};
@@ -304,7 +304,7 @@ var slice = createSliceWithThunks({
304
304
  const overrides = {};
305
305
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
306
306
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
307
- const { _executeModel } = await import("./_executeModel-UDCSOTD2.js");
307
+ const { _executeModel } = await import("./_executeModel-BY3P5LBB.js");
308
308
  return _executeModel(
309
309
  {
310
310
  isStreaming: args.isStreaming ?? false,
@@ -325,7 +325,7 @@ var slice = createSliceWithThunks({
325
325
  * - 循环直到无工具调用或触发其他运行时停止条件
326
326
  */
327
327
  runAgent: create.asyncThunk(async (args, thunkApi) => {
328
- const { runAgentClientLoop } = await import("./runAgentClientLoop-5ZA62FBA.js");
328
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-AN4WIRPQ.js");
329
329
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
330
330
  {
331
331
  agentKey: args.agentKey,
@@ -341,7 +341,7 @@ var slice = createSliceWithThunks({
341
341
  * 聊天轮次流式 Agent 调用
342
342
  */
343
343
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
344
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-6UZJMYRB.js");
344
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-3TYTHZPJ.js");
345
345
  return streamAgentChatTurnHandler(args, thunkApi);
346
346
  }),
347
347
  /**