nolo-cli 0.159.0-alpha.3 → 0.160.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 (123) hide show
  1. package/{_executeModel-SHA5BWRT.js → _executeModel-3HHZYHHB.js} +38 -37
  2. package/accountResolver-55EDKEIK.js +1 -1
  3. package/action-GPPJC5TI.js +1 -1
  4. package/{addContentAction-BI6RDRTQ.js → addContentAction-XJQEJ4XW.js} +6 -6
  5. package/{addDialogAgentAction-4RJYUSIK.js → addDialogAgentAction-5WZX5CAY.js} +5 -5
  6. package/{agentDeleteCommand-VU3BA264.js → agentDeleteCommand-ON2KVSJ5.js} +55 -55
  7. package/{agentEmailCommands-WUANEGTM.js → agentEmailCommands-2QPD5VP3.js} +55 -55
  8. package/{agentListCommands-3YNO6UP4.js → agentListCommands-L33M3I6V.js} +30 -30
  9. package/{agentMachineCommands-ONGZXXQW.js → agentMachineCommands-V44DPSED.js} +25 -23
  10. package/{agentPullCommand-FA43RBRU.js → agentPullCommand-GXXEDOSA.js} +4 -4
  11. package/{agentRecordCommands-DXXA2RET.js → agentRecordCommands-CKILCNQZ.js} +49 -49
  12. package/{agentRunCommand-WY77TJ72.js → agentRunCommand-6IN7NK7H.js} +52 -52
  13. package/{agentRunControl-PPYWJRIJ.js → agentRunControl-XBSNHHZE.js} +4 -4
  14. package/{agentRuntimeLocal-NHC5DQPJ.js → agentRuntimeLocal-XCKO5FVP.js} +13 -11
  15. package/{agentSlice-MIOEV36T.js → agentSlice-YT3VCCEW.js} +6 -6
  16. package/{appDeleteCommands-VQYCXZRF.js → appDeleteCommands-2PJFNLAJ.js} +22 -20
  17. package/{appDeployCommands-OKSJDVEY.js → appDeployCommands-AZCMCMK6.js} +22 -20
  18. package/{appDeployStatusCommands-UFGNZS6G.js → appDeployStatusCommands-HSIKPVJN.js} +22 -20
  19. package/{appGetCommands-3HNO5WLF.js → appGetCommands-IUZCPAP7.js} +22 -20
  20. package/{appListCommands-H33BIZHJ.js → appListCommands-JLFVS44M.js} +22 -20
  21. package/{authCommand-MSINEFHH.js → authCommand-3Z52KJID.js} +14 -14
  22. package/{authCommands-AMNIAKEG.js → authCommands-QOCKVPX3.js} +5 -5
  23. package/{builtinSkillRegistry-H3AY27TR.js → builtinSkillRegistry-LJV7FHNI.js} +4 -4
  24. package/{chunk-MJKKEGF5.js → chunk-2XDQAWBM.js} +12 -12
  25. package/{chunk-GCLZBOB6.js → chunk-2ZYCNT2O.js} +29 -29
  26. package/{chunk-XBLZ5IFE.js → chunk-3GTVM7NJ.js} +17 -17
  27. package/{chunk-US6MKPE7.js → chunk-3L5MSPWX.js} +1 -1
  28. package/{chunk-QYAYO5JA.js → chunk-4L4K6YR7.js} +1 -1
  29. package/{chunk-P5QACQDK.js → chunk-62TBKWTV.js} +1 -1
  30. package/{chunk-YLMMECCH.js → chunk-6XIE5ZGI.js} +1 -1
  31. package/{chunk-J2ATF74A.js → chunk-BAWAKW7X.js} +1 -1
  32. package/{chunk-ZVQHBIWV.js → chunk-CDLP56BS.js} +7 -7
  33. package/{chunk-ZIGIN5IX.js → chunk-DD2EOI6S.js} +1 -1
  34. package/{chunk-OON4OBWI.js → chunk-DLV3H464.js} +7 -7
  35. package/{chunk-DWBY333O.js → chunk-DT7EWFTY.js} +5 -5
  36. package/{chunk-IRTOYSA2.js → chunk-ESMZW5PE.js} +1 -1
  37. package/{chunk-E46SJRWA.js → chunk-EVPKKBSI.js} +13 -13
  38. package/{chunk-ZJG7YU3I.js → chunk-F3SOW2EU.js} +46 -1
  39. package/{chunk-FZYTJOAQ.js → chunk-F5WASHQA.js} +27 -29
  40. package/{chunk-BFI6JGF6.js → chunk-FB5WLEOD.js} +11 -11
  41. package/{chunk-FBSDWUOJ.js → chunk-FCUKCVKN.js} +4 -4
  42. package/{chunk-FY4SDK2E.js → chunk-FDLDMJTM.js} +1 -1
  43. package/{chunk-PKC7D6SX.js → chunk-FFHV45HO.js} +3 -3
  44. package/{chunk-TMYAT2MD.js → chunk-FZYKQFBQ.js} +3 -3
  45. package/{chunk-CSCSMGQI.js → chunk-HW7EBEC5.js} +15 -191
  46. package/{chunk-5MPS5OOY.js → chunk-I7S63QUU.js} +1 -1
  47. package/{chunk-CON6SI7N.js → chunk-IF7V3CBU.js} +1 -1
  48. package/{chunk-GSKVOMBU.js → chunk-JDKSYQQN.js} +4 -4
  49. package/{chunk-RJBHRIEL.js → chunk-JSB2OPQT.js} +107 -45
  50. package/{chunk-M2P3OGXZ.js → chunk-JWEXJ573.js} +2 -2
  51. package/{chunk-NT3LMOSE.js → chunk-K25WQPP3.js} +213 -50
  52. package/{chunk-SPKLALBU.js → chunk-MAYW6V3E.js} +1 -1
  53. package/{chunk-NDZOXXIM.js → chunk-NHEWV5FD.js} +1 -1
  54. package/{chunk-NUE735UT.js → chunk-O2IWR23M.js} +1 -1
  55. package/{chunk-NNE5NIW2.js → chunk-OLVOR45M.js} +2 -2
  56. package/{chunk-CVSKYIXX.js → chunk-QXZH5UDF.js} +2 -2
  57. package/{chunk-QO436IJ5.js → chunk-QZIOZDM6.js} +9 -9
  58. package/{chunk-V4AK4IVZ.js → chunk-R2KWTENX.js} +3 -3
  59. package/{chunk-C3WXTFRP.js → chunk-RIHQGFFA.js} +1 -1
  60. package/{chunk-DC3SZCRR.js → chunk-SH3XD4E2.js} +2 -2
  61. package/{chunk-42W7LKBM.js → chunk-SNAWGDXT.js} +263 -4
  62. package/chunk-TT644UJD.js +188 -0
  63. package/{chunk-QOYJE6NX.js → chunk-U34KT53V.js} +28 -10
  64. package/{chunk-DFWLD7WU.js → chunk-ULQAD7ZY.js} +18 -6
  65. package/{chunk-ZAB4R7LU.js → chunk-UY73HNIN.js} +40 -42
  66. package/{chunk-RE5I35J7.js → chunk-VXS4YYJ2.js} +6 -6
  67. package/{chunk-JZX2XLKC.js → chunk-YCRROBDY.js} +1 -1
  68. package/{chunk-6MH6PWVJ.js → chunk-YR47Y7CN.js} +6 -6
  69. package/{chunk-C47WM5SD.js → chunk-ZAV4YVEA.js} +1 -1
  70. package/{chunk-2NROMJBM.js → chunk-ZSLIYVIQ.js} +7 -7
  71. package/{commandRegistry-DAM7RV6E.js → commandRegistry-A4OR4B4L.js} +83 -83
  72. package/{contentThunks-WLKR5KQ6.js → contentThunks-QBL5NK2W.js} +14 -15
  73. package/{createAgentAutomationAction-AI2HZHLE.js → createAgentAutomationAction-5UWBLR2N.js} +14 -15
  74. package/{createDialogAction-AU4IWDR3.js → createDialogAction-NJ2LE7KC.js} +18 -19
  75. package/{createPageAction-CAXS6ZUJ.js → createPageAction-7T3RINS2.js} +16 -17
  76. package/{dbSlice-DC2J53RC.js → dbSlice-6PVPY44C.js} +5 -5
  77. package/{deleteFile-KYWEMNFX.js → deleteFile-YM6NDPAR.js} +3 -3
  78. package/{dialogCommands-2QMR63AY.js → dialogCommands-KMECTGCW.js} +27 -25
  79. package/{dialogSlice-QEP5EUON.js → dialogSlice-GQMTD4HR.js} +13 -14
  80. package/{docCreateCommands-EG3KFJGO.js → docCreateCommands-4IT5PUAL.js} +24 -22
  81. package/{docDeleteCommands-MAM2BLCP.js → docDeleteCommands-QS66YNZV.js} +25 -23
  82. package/{docReadCommands-XVX2VLVM.js → docReadCommands-3SAI46YC.js} +24 -22
  83. package/{docStore-WTXUKAQB.js → docStore-PM5PYKPZ.js} +6 -6
  84. package/{docUpdateCommands-JURMHPS5.js → docUpdateCommands-OGYG5BRC.js} +24 -22
  85. package/{handleSendMessageAction-7MAFLFOD.js → handleSendMessageAction-EQ3U6K5N.js} +31 -28
  86. package/index.js +7 -7
  87. package/{localRuntimeAdapter-DSO3Y5ZS.js → localRuntimeAdapter-MO64KEOS.js} +46 -46
  88. package/{localRuntimeAuthority-JDAD7CB6.js → localRuntimeAuthority-BPN5OAQG.js} +2 -2
  89. package/{localRuntimeDb-CVC62PM5.js → localRuntimeDb-QIVAXMUL.js} +1 -1
  90. package/{machineCommands-DWILXGTZ.js → machineCommands-7MBJJY4K.js} +51 -51
  91. package/{machineWsRunDispatch-NJJZ34JJ.js → machineWsRunDispatch-T4LFRJL3.js} +47 -47
  92. package/{memberThunks-2DWKLE6W.js → memberThunks-AZINUM4S.js} +8 -8
  93. package/package.json +1 -1
  94. package/{read-L7QEJETH.js → read-7JPIWRBQ.js} +3 -3
  95. package/{readDocTool-QELXV2GW.js → readDocTool-AAQTB2Y3.js} +1 -1
  96. package/{readlineWorkspace-STK57SSQ.js → readlineWorkspace-QHPB5LUC.js} +81 -118
  97. package/{removeDialogAgentAction-376XSUP2.js → removeDialogAgentAction-RMVRILLK.js} +6 -6
  98. package/{runAgentClientLoop-6OD2CTYG.js → runAgentClientLoop-EXIQDX7G.js} +36 -35
  99. package/{runtimeDoctorCommands-HEN5IPIH.js → runtimeDoctorCommands-MMCP4B4U.js} +11 -11
  100. package/{setDialogExtraReferencesAction-QBDSH63D.js → setDialogExtraReferencesAction-L3V7JTMG.js} +6 -6
  101. package/{setPrimaryDialogAgentAction-537QFGW3.js → setPrimaryDialogAgentAction-X52JQGTJ.js} +6 -6
  102. package/{settingThunks-4Z43ZSAT.js → settingThunks-N6XFWPOU.js} +5 -5
  103. package/{spaceCommands-WPCHZKEY.js → spaceCommands-WQMUCGV7.js} +24 -22
  104. package/{streamAgentChatTurn-BOATI5H3.js → streamAgentChatTurn-DI2334G3.js} +132 -72
  105. package/{switchDialogAgentAction-CSO6AKRL.js → switchDialogAgentAction-ZJ5CGU7J.js} +5 -5
  106. package/{tools-FPKQX2J6.js → tools-23VQGJOX.js} +27 -28
  107. package/{tuiSummaryLlmCaller-PEYFTAVL.js → tuiSummaryLlmCaller-FESHBDTT.js} +4 -4
  108. package/{updateCommands-LXZLG44Y.js → updateCommands-KALLBWJE.js} +3 -3
  109. package/{updateDialogTitleAction-WAH5KADA.js → updateDialogTitleAction-AGAYHWS7.js} +14 -15
  110. package/chunk-UKZX3NHN.js +0 -48
  111. package/{agentGrantCommands-HOJ3JBBQ.js → agentGrantCommands-5DPHYEKP.js} +3 -3
  112. package/{agentProviderCommands-CUBOAVPB.js → agentProviderCommands-CXBHNONN.js} +3 -3
  113. package/{chromeOpsCommands-3Z34RKSE.js → chromeOpsCommands-GZVVK7HU.js} +4 -4
  114. package/{chunk-2SGAI64X.js → chunk-43OFVLWJ.js} +4 -4
  115. package/{chunk-XETG4RIX.js → chunk-AETZ7AD6.js} +4 -4
  116. package/{chunk-YNCJYU4X.js → chunk-G3VYRPTV.js} +4 -4
  117. package/{chunk-2IXDJNZI.js → chunk-GAGGEA7D.js} +3 -3
  118. package/{chunk-O4KVUI4W.js → chunk-KABQ74UQ.js} +3 -3
  119. package/{chunk-TCQPBZUL.js → chunk-QA2C5NKI.js} +3 -3
  120. package/{chunk-4RJJDA57.js → chunk-WR37DI7R.js} +3 -3
  121. package/{memoryCommands-CUNBFRVS.js → memoryCommands-ZS3VQJAL.js} +3 -3
  122. package/{offlineMarxistsAgentCommand-2QTHJCHV.js → offlineMarxistsAgentCommand-3GLX4QQY.js} +3 -3
  123. package/{tableCommands-LBH3QPPO.js → tableCommands-IVC5S7Y3.js} +11 -11
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  assembleAgentDiscoveryResult,
3
3
  resolveDiscoveryScope
4
- } from "./chunk-RE5I35J7.js";
4
+ } from "./chunk-VXS4YYJ2.js";
5
5
  import {
6
6
  fetchWithTransientRetry
7
7
  } from "./chunk-KFHREHUQ.js";
@@ -20,7 +20,7 @@ import {
20
20
  toolRunUpdated,
21
21
  uiCardFallback,
22
22
  waitForAbortableDelay
23
- } from "./chunk-FBSDWUOJ.js";
23
+ } from "./chunk-FCUKCVKN.js";
24
24
  import {
25
25
  isGatewayHttpStatus
26
26
  } from "./chunk-NF64D32W.js";
@@ -49,7 +49,7 @@ import {
49
49
  readPageFunc,
50
50
  readPageFunctionSchema,
51
51
  resolvePageReadMarkdown
52
- } from "./chunk-US6MKPE7.js";
52
+ } from "./chunk-3L5MSPWX.js";
53
53
  import {
54
54
  markdownToSlate
55
55
  } from "./chunk-CNWKLQRL.js";
@@ -64,7 +64,7 @@ import {
64
64
  } from "./chunk-VF4K2QE6.js";
65
65
  import {
66
66
  createDocState
67
- } from "./chunk-V4AK4IVZ.js";
67
+ } from "./chunk-R2KWTENX.js";
68
68
  import {
69
69
  addMemberSpace,
70
70
  fetchAuthoritativeRemoteSpace,
@@ -76,13 +76,13 @@ import {
76
76
  setMembershipRejected,
77
77
  setSpaceInitialized,
78
78
  updateMemberSpaceName
79
- } from "./chunk-J2ATF74A.js";
79
+ } from "./chunk-BAWAKW7X.js";
80
80
  import {
81
81
  createDialogAction
82
- } from "./chunk-GSKVOMBU.js";
82
+ } from "./chunk-JDKSYQQN.js";
83
83
  import {
84
84
  setDialogExtraReferencesAction
85
- } from "./chunk-CON6SI7N.js";
85
+ } from "./chunk-IF7V3CBU.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-6MH6PWVJ.js";
105
+ } from "./chunk-YR47Y7CN.js";
106
106
  import {
107
107
  buildDatabaseFileContentUrl,
108
108
  deleteDialog,
@@ -115,7 +115,7 @@ import {
115
115
  selectMsgById,
116
116
  uiAskChoiceFunc,
117
117
  uiAskChoiceFunctionSchema
118
- } from "./chunk-FZYTJOAQ.js";
118
+ } from "./chunk-F5WASHQA.js";
119
119
  import {
120
120
  buildMediaToolConfirmation,
121
121
  normalizeMediaConfirmExecutionRevision
@@ -126,7 +126,7 @@ import {
126
126
  runLlm,
127
127
  streamAgentChatTurn,
128
128
  updateAgent
129
- } from "./chunk-DWBY333O.js";
129
+ } from "./chunk-DT7EWFTY.js";
130
130
  import {
131
131
  getCurrentSpaceId,
132
132
  getCurrentSpaceIdRaw,
@@ -153,7 +153,7 @@ import {
153
153
  UNCATEGORIZED_ID,
154
154
  addContentAction,
155
155
  checkSpaceMembership
156
- } from "./chunk-M2P3OGXZ.js";
156
+ } from "./chunk-JWEXJ573.js";
157
157
  import {
158
158
  createSpaceKey,
159
159
  normalizeSpaceId
@@ -169,10 +169,10 @@ import {
169
169
  selectEntities,
170
170
  toTimestampMs,
171
171
  write
172
- } from "./chunk-ZVQHBIWV.js";
172
+ } from "./chunk-CDLP56BS.js";
173
173
  import {
174
174
  readAction
175
- } from "./chunk-NDZOXXIM.js";
175
+ } from "./chunk-NHEWV5FD.js";
176
176
  import {
177
177
  DEVICE_LOCAL_OWNER_ID,
178
178
  getRuntimeServerContext,
@@ -182,7 +182,7 @@ import {
182
182
  resolveEffectiveSpaceActorId,
183
183
  resolveRecordOwnerUserId,
184
184
  selectRuntimeSnapshot
185
- } from "./chunk-2SGAI64X.js";
185
+ } from "./chunk-43OFVLWJ.js";
186
186
  import {
187
187
  createAsyncThunk,
188
188
  noloWriteRequest
@@ -199,10 +199,10 @@ import {
199
199
  import {
200
200
  listBuiltinSkills,
201
201
  resolveBuiltinSkillByName
202
- } from "./chunk-DC3SZCRR.js";
202
+ } from "./chunk-SH3XD4E2.js";
203
203
  import {
204
204
  CAPABILITY_PACKS
205
- } from "./chunk-JZX2XLKC.js";
205
+ } from "./chunk-YCRROBDY.js";
206
206
  import {
207
207
  buildSkillDocMarkdown,
208
208
  normalizeSkillModalities,
@@ -210,7 +210,7 @@ import {
210
210
  parseExternalSkillMarkdown,
211
211
  parseSkillDocProtocol,
212
212
  resolvePageSkillMetadata
213
- } from "./chunk-XETG4RIX.js";
213
+ } from "./chunk-AETZ7AD6.js";
214
214
  import {
215
215
  DEFAULT_READ_DIALOG_MAX_RESPONSE_CHARS,
216
216
  NOLO_WORKSPACE_TOOL_NAMES,
@@ -281,9 +281,6 @@ import {
281
281
  asNonEmptyStringArray,
282
282
  asTrimmedNonEmptyStringArray
283
283
  } from "./chunk-I42VC5KR.js";
284
- import {
285
- asOptionalFiniteNumber
286
- } from "./chunk-WWC7I6TA.js";
287
284
  import {
288
285
  RUN_TITLE_MAX,
289
286
  TASK_PREVIEW_MAX,
@@ -298,6 +295,12 @@ import {
298
295
  normalizeRunTitle,
299
296
  resolveRunLabel
300
297
  } from "./chunk-PJNFNEJE.js";
298
+ import {
299
+ API_ENDPOINTS
300
+ } from "./chunk-LCBAMY2M.js";
301
+ import {
302
+ asOptionalFiniteNumber
303
+ } from "./chunk-WWC7I6TA.js";
301
304
  import {
302
305
  DEFAULT_MODEL,
303
306
  clampReasoningEffort,
@@ -312,9 +315,6 @@ import {
312
315
  import {
313
316
  toErrorMessage
314
317
  } from "./chunk-HNMXYYJR.js";
315
- import {
316
- API_ENDPOINTS
317
- } from "./chunk-LCBAMY2M.js";
318
318
  import {
319
319
  DEFAULT_LOCAL_API_ORIGIN
320
320
  } from "./chunk-4SN6J65J.js";
@@ -3881,7 +3881,7 @@ async function deleteDialogsFunc(args, thunkApi) {
3881
3881
  const deletedDialogIds = [];
3882
3882
  const deletedDialogKeys = [];
3883
3883
  const failures = [];
3884
- const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-QEP5EUON.js");
3884
+ const { deleteDialog: deleteDialog2 } = await import("./dialogSlice-GQMTD4HR.js");
3885
3885
  for (const target of targets) {
3886
3886
  try {
3887
3887
  await thunkApi.dispatch(deleteDialog2(target.dbKey)).unwrap();
@@ -4197,7 +4197,7 @@ var readSkillDocFunctionSchema = {
4197
4197
  }
4198
4198
  };
4199
4199
  async function readSkillDocFunc(args, thunkApi) {
4200
- const { buildReadDocResult } = await import("./readDocTool-QELXV2GW.js");
4200
+ const { buildReadDocResult } = await import("./readDocTool-AAQTB2Y3.js");
4201
4201
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
4202
4202
  if (typeof id !== "string" || !id.trim()) {
4203
4203
  throw new Error("readSkillDoc requires id or doc.");
@@ -4987,7 +4987,7 @@ var fetchSpaceAction = async (input, thunkAPI) => {
4987
4987
  const spaceKey = createSpaceKey.space(spaceId);
4988
4988
  const readSpace = async (dbKey) => {
4989
4989
  try {
4990
- const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-DC2J53RC.js");
4990
+ const { read: read2, readAndWait: readAndWait2 } = await import("./dbSlice-6PVPY44C.js");
4991
4991
  if (fresh) {
4992
4992
  return await dispatch(readAndWait2(dbKey)).unwrap();
4993
4993
  }
@@ -11634,7 +11634,7 @@ var selectUserIdFromState = (state2) => {
11634
11634
  var selectCurrentServerFromState = (state2) => typeof state2?.settings?.currentServer === "string" ? state2.settings.currentServer : null;
11635
11635
  async function addImageContentToSpace(input) {
11636
11636
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
11637
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-BI6RDRTQ.js")).addContentAction;
11637
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-XJQEJ4XW.js")).addContentAction;
11638
11638
  await addContentAction2(
11639
11639
  {
11640
11640
  spaceId: input.spaceId,
@@ -18463,7 +18463,7 @@ async function updateDocFunc(args, thunkApi) {
18463
18463
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
18464
18464
  };
18465
18465
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
18466
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-WTXUKAQB.js");
18466
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-PM5PYKPZ.js");
18467
18467
  if (getDocState().pageKey === id) {
18468
18468
  applyExternalDocUpdate({
18469
18469
  slateData: finalSlateData,
@@ -18488,7 +18488,7 @@ async function updateDocFunc(args, thunkApi) {
18488
18488
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
18489
18489
  async function dispatchSetSettings(thunkApi, changes) {
18490
18490
  const injectedSetSettings = thunkApi?.extra?.setSettings;
18491
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-4Z43ZSAT.js")).setSettings;
18491
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingThunks-N6XFWPOU.js")).setSettings;
18492
18492
  await thunkApi.dispatch(setSettings(changes)).unwrap();
18493
18493
  }
18494
18494
  var updateUserPreferenceProfileFunctionSchema = {
@@ -7,7 +7,7 @@ import {
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-QO436IJ5.js";
10
+ } from "./chunk-QZIOZDM6.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-FBSDWUOJ.js";
23
+ } from "./chunk-FCUKCVKN.js";
24
24
  import {
25
25
  resolveToolBaseUrl
26
26
  } from "./chunk-MYOH447Z.js";
@@ -32,15 +32,15 @@ import {
32
32
  } from "./chunk-ZPKUJROL.js";
33
33
  import {
34
34
  getDocState
35
- } from "./chunk-V4AK4IVZ.js";
35
+ } from "./chunk-R2KWTENX.js";
36
36
  import {
37
37
  getTableState
38
- } from "./chunk-6MH6PWVJ.js";
38
+ } from "./chunk-YR47Y7CN.js";
39
39
  import {
40
40
  PERSONALIZATION_DIALOG_CATEGORY,
41
41
  buildPersonalizationDialogPolicyContext,
42
42
  selectAllMsgs
43
- } from "./chunk-FZYTJOAQ.js";
43
+ } from "./chunk-F5WASHQA.js";
44
44
  import {
45
45
  getCurrentSpaceIdRaw,
46
46
  getViewMode
@@ -51,7 +51,7 @@ import {
51
51
  import {
52
52
  read,
53
53
  selectById
54
- } from "./chunk-ZVQHBIWV.js";
54
+ } from "./chunk-CDLP56BS.js";
55
55
  import {
56
56
  getSessionSnapshotForState,
57
57
  selectIdentityUserBalance,
@@ -66,27 +66,31 @@ import {
66
66
  expandEnabledPackPromptPatches,
67
67
  expandEnabledPacks,
68
68
  resolveEffectiveEnabledPacks
69
- } from "./chunk-JZX2XLKC.js";
69
+ } from "./chunk-YCRROBDY.js";
70
70
  import {
71
71
  projectToolMessageContent
72
- } from "./chunk-QOYJE6NX.js";
72
+ } from "./chunk-U34KT53V.js";
73
73
  import {
74
74
  attachmentKind,
75
75
  normalizeAttachmentPart
76
76
  } from "./chunk-WJZOQR2J.js";
77
77
  import {
78
78
  extractReferenceKeysFromMessage
79
- } from "./chunk-ZJG7YU3I.js";
79
+ } from "./chunk-F3SOW2EU.js";
80
80
  import {
81
81
  getModelContextWindow,
82
82
  planContextUsage
83
- } from "./chunk-TCQPBZUL.js";
83
+ } from "./chunk-QA2C5NKI.js";
84
84
  import {
85
85
  asRecordOrEmpty
86
86
  } from "./chunk-KX6YBIHG.js";
87
87
  import {
88
88
  isAbortError
89
89
  } from "./chunk-7DPNBQSV.js";
90
+ import {
91
+ buildLinkedSpacesSection,
92
+ buildSpaceContextLayer
93
+ } from "./chunk-VEA7H5FG.js";
90
94
  import {
91
95
  canonicalizeToolNames,
92
96
  prioritizeToolNames
@@ -100,12 +104,12 @@ import {
100
104
  import {
101
105
  asNonEmptyStringArray
102
106
  } from "./chunk-I42VC5KR.js";
103
- import {
104
- asOptionalFiniteNumber
105
- } from "./chunk-WWC7I6TA.js";
106
107
  import {
107
108
  estimateTokenCount
108
109
  } from "./chunk-PSCNXBYA.js";
110
+ import {
111
+ asOptionalFiniteNumber
112
+ } from "./chunk-WWC7I6TA.js";
109
113
  import {
110
114
  getModelConfig,
111
115
  getProviderByModelName
@@ -119,10 +123,6 @@ import {
119
123
  import {
120
124
  asOptionalTrimmedString
121
125
  } from "./chunk-G3SUCT4W.js";
122
- import {
123
- buildLinkedSpacesSection,
124
- buildSpaceContextLayer
125
- } from "./chunk-VEA7H5FG.js";
126
126
 
127
127
  // packages/ai/agent/foregroundTurnAdmissionFetch.ts
128
128
  var FOREGROUND_TURN_KEEPALIVE_MAX_BODY_BYTES = 60 * 1024;
@@ -206,7 +206,7 @@ async function readDocFunc(args, thunkApi) {
206
206
  throw new Error(`\u65E0\u6548\u7684\u9875\u9762 ID: ${id}\u3002\u9875\u9762 ID \u901A\u5E38\u4EE5 "page-" \u5F00\u5934\u3002`);
207
207
  }
208
208
  try {
209
- const { readAction } = await import("./read-L7QEJETH.js");
209
+ const { readAction } = await import("./read-7JPIWRBQ.js");
210
210
  const pageData = await readAction({ dbKey: id }, thunkApi);
211
211
  if (!pageData) {
212
212
  throw new Error(`\u672A\u627E\u5230 ID \u4E3A ${id} \u7684\u9875\u9762\u3002`);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelContextWindow
3
- } from "./chunk-TCQPBZUL.js";
3
+ } from "./chunk-QA2C5NKI.js";
4
4
  import {
5
5
  isRecord
6
6
  } from "./chunk-KUG52IAP.js";
@@ -4,7 +4,7 @@ import {
4
4
 
5
5
  // packages/cli/agentCommandSupport.ts
6
6
  async function getDefaultCliDb() {
7
- const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-CVC62PM5.js");
7
+ const { getDefaultCliLocalRuntimeDb } = await import("./localRuntimeDb-QIVAXMUL.js");
8
8
  return getDefaultCliLocalRuntimeDb();
9
9
  }
10
10
  function createNullCliDb() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildSkillDocMarkdown
3
- } from "./chunk-XETG4RIX.js";
3
+ } from "./chunk-AETZ7AD6.js";
4
4
 
5
5
  // packages/cli/docPageHelpers.ts
6
6
  import { readFileSync } from "node:fs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-UAD2WT54.js";
8
8
  import {
9
9
  toTimestampMs
10
- } from "./chunk-ZVQHBIWV.js";
10
+ } from "./chunk-CDLP56BS.js";
11
11
  import {
12
12
  fetchFromServer,
13
13
  getAllServers
@@ -6,12 +6,12 @@ import {
6
6
  readAction,
7
7
  readRequestManager,
8
8
  resolveAgentReadServers
9
- } from "./chunk-NDZOXXIM.js";
9
+ } from "./chunk-NHEWV5FD.js";
10
10
  import {
11
11
  loadFileFromIndexedDb,
12
12
  removeAction,
13
13
  saveFileToIndexedDb
14
- } from "./chunk-SPKLALBU.js";
14
+ } from "./chunk-MAYW6V3E.js";
15
15
  import {
16
16
  beginWriteAck,
17
17
  compareRemoteRecordsByComparableTime,
@@ -28,7 +28,7 @@ import {
28
28
  shouldReplaceLocalWithRemoteRecord,
29
29
  shouldReplicateLocalRecord,
30
30
  uploadToCurrentServer
31
- } from "./chunk-2SGAI64X.js";
31
+ } from "./chunk-43OFVLWJ.js";
32
32
  import {
33
33
  asyncThunkCreator,
34
34
  buildCreateSlice,
@@ -49,12 +49,12 @@ import {
49
49
  getFileIdFromKey,
50
50
  ulid
51
51
  } from "./chunk-5EMSBTQ6.js";
52
- import {
53
- isRecord
54
- } from "./chunk-KUG52IAP.js";
55
52
  import {
56
53
  API_ENDPOINTS
57
54
  } from "./chunk-LCBAMY2M.js";
55
+ import {
56
+ isRecord
57
+ } from "./chunk-KUG52IAP.js";
58
58
 
59
59
  // packages/database/actions/readAndWait.ts
60
60
  var hashTokenScope = (currentToken) => {
@@ -706,7 +706,7 @@ var dbSlice = createSliceWithThunks({
706
706
  // 动态 import 在调用期解析,避开 TDZ/求值顺序问题(同下方 share)。
707
707
  read: create.asyncThunk(
708
708
  async (payload, thunkApi) => {
709
- const { readAction: readAction2 } = await import("./read-L7QEJETH.js");
709
+ const { readAction: readAction2 } = await import("./read-7JPIWRBQ.js");
710
710
  return readAction2(payload, thunkApi);
711
711
  },
712
712
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-C3WXTFRP.js";
3
+ } from "./chunk-RIHQGFFA.js";
4
4
  import {
5
5
  t
6
6
  } from "./chunk-2AB2HA4M.js";
@@ -14,21 +14,15 @@ import {
14
14
  import {
15
15
  asTrimmedNonEmptyStringArray
16
16
  } from "./chunk-I42VC5KR.js";
17
- import {
18
- asTrimmedString
19
- } from "./chunk-3EUW3WEO.js";
20
17
  import {
21
18
  getDefaultCliLocalRuntimeDb
22
- } from "./chunk-FY4SDK2E.js";
19
+ } from "./chunk-FDLDMJTM.js";
23
20
  import {
24
21
  resolveAuthTokenFromEnv
25
22
  } from "./chunk-A7GB5UGH.js";
26
23
  import {
27
24
  DEFAULT_NOLO_SERVER_URL
28
25
  } from "./chunk-OLZBQWZU.js";
29
- import {
30
- normalizeServerOrigin
31
- } from "./chunk-CF7PE763.js";
32
26
  import {
33
27
  buildCliRuntimeEnv,
34
28
  clearProfileAuthToken,
@@ -38,6 +32,12 @@ import {
38
32
  loadProfileConfig,
39
33
  saveDefaultProfile
40
34
  } from "./chunk-R5GO3YZP.js";
35
+ import {
36
+ asTrimmedString
37
+ } from "./chunk-3EUW3WEO.js";
38
+ import {
39
+ normalizeServerOrigin
40
+ } from "./chunk-CF7PE763.js";
41
41
 
42
42
  // packages/cli/authCommands.ts
43
43
  import { createInterface } from "node:readline/promises";
@@ -2,10 +2,10 @@ import {
2
2
  patch,
3
3
  remove,
4
4
  write
5
- } from "./chunk-ZVQHBIWV.js";
5
+ } from "./chunk-CDLP56BS.js";
6
6
  import {
7
7
  getRuntimeServerContext
8
- } from "./chunk-2SGAI64X.js";
8
+ } from "./chunk-43OFVLWJ.js";
9
9
  import {
10
10
  asyncThunkCreator,
11
11
  buildCreateSlice
@@ -308,7 +308,7 @@ var slice = createSliceWithThunks({
308
308
  const overrides = {};
309
309
  if (args.systemPromptOverride !== void 0) overrides.prompt = args.systemPromptOverride;
310
310
  if (args.toolsOverride !== void 0) overrides.tools = args.toolsOverride;
311
- const { _executeModel } = await import("./_executeModel-SHA5BWRT.js");
311
+ const { _executeModel } = await import("./_executeModel-3HHZYHHB.js");
312
312
  return _executeModel(
313
313
  {
314
314
  isStreaming: args.isStreaming ?? false,
@@ -329,7 +329,7 @@ var slice = createSliceWithThunks({
329
329
  * - 循环直到无工具调用或触发其他运行时停止条件
330
330
  */
331
331
  runAgent: create.asyncThunk(async (args, thunkApi) => {
332
- const { runAgentClientLoop } = await import("./runAgentClientLoop-6OD2CTYG.js");
332
+ const { runAgentClientLoop } = await import("./runAgentClientLoop-EXIQDX7G.js");
333
333
  const { content: loopContent, toolCallCount } = await runAgentClientLoop(
334
334
  {
335
335
  agentKey: args.agentKey,
@@ -345,7 +345,7 @@ var slice = createSliceWithThunks({
345
345
  * 聊天轮次流式 Agent 调用
346
346
  */
347
347
  streamAgentChatTurn: create.asyncThunk(async (args, thunkApi) => {
348
- const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-BOATI5H3.js");
348
+ const { streamAgentChatTurnHandler } = await import("./streamAgentChatTurn-DI2334G3.js");
349
349
  return streamAgentChatTurnHandler(args, thunkApi);
350
350
  }),
351
351
  /**
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-32ZKZET7.js";
4
4
  import {
5
5
  patch
6
- } from "./chunk-ZVQHBIWV.js";
6
+ } from "./chunk-CDLP56BS.js";
7
7
  import {
8
8
  getIsDesktopApp
9
9
  } from "./chunk-6Q7UTJKR.js";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-ZAB4R7LU.js";
4
+ } from "./chunk-UY73HNIN.js";
5
5
  import {
6
6
  t
7
7
  } from "./chunk-2AB2HA4M.js";
8
8
  import {
9
9
  clipMultilineText
10
- } from "./chunk-FBSDWUOJ.js";
10
+ } from "./chunk-FCUKCVKN.js";
11
11
  import {
12
12
  runLocalAgentTurn
13
- } from "./chunk-NT3LMOSE.js";
13
+ } from "./chunk-K25WQPP3.js";
14
14
  import {
15
15
  applyToolSurfaceConstraints
16
16
  } from "./chunk-QLQ573SU.js";
@@ -29,6 +29,16 @@ import {
29
29
  import {
30
30
  asOptionalPositiveFiniteNumber
31
31
  } from "./chunk-U6VC4MU4.js";
32
+ import {
33
+ parseUserIdFromAuthToken
34
+ } from "./chunk-A7GB5UGH.js";
35
+ import {
36
+ DEFAULT_NOLO_SERVER_URL
37
+ } from "./chunk-OLZBQWZU.js";
38
+ import {
39
+ readPipeText,
40
+ spawnProcess
41
+ } from "./chunk-Y6ROFCZO.js";
32
42
  import {
33
43
  isRecord
34
44
  } from "./chunk-KUG52IAP.js";
@@ -38,19 +48,9 @@ import {
38
48
  import {
39
49
  toErrorMessage
40
50
  } from "./chunk-HNMXYYJR.js";
41
- import {
42
- parseUserIdFromAuthToken
43
- } from "./chunk-A7GB5UGH.js";
44
- import {
45
- DEFAULT_NOLO_SERVER_URL
46
- } from "./chunk-OLZBQWZU.js";
47
51
  import {
48
52
  asOptionalTrimmedString
49
53
  } from "./chunk-G3SUCT4W.js";
50
- import {
51
- readPipeText,
52
- spawnProcess
53
- } from "./chunk-Y6ROFCZO.js";
54
54
 
55
55
  // packages/ai/agent/machineRunPermissions.ts
56
56
  var DEFAULT_POLICY = {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getModelContextWindow,
6
6
  normalizeTimingMs
7
- } from "./chunk-TCQPBZUL.js";
7
+ } from "./chunk-QA2C5NKI.js";
8
8
  import {
9
9
  BUILTIN_NOLO_AGENT_KEY
10
10
  } from "./chunk-LOEO7LRC.js";
@@ -28,6 +28,49 @@ import {
28
28
  import {
29
29
  asOptionalTrimmedString
30
30
  } from "./chunk-G3SUCT4W.js";
31
+ import {
32
+ asTrimmedLowercaseString
33
+ } from "./chunk-QSJ3HFEF.js";
34
+
35
+ // packages/agent-runtime/serverProxyPolicy.ts
36
+ var OAUTH_APIKEY_REFS = /* @__PURE__ */ new Set([
37
+ "antigravity",
38
+ "xai",
39
+ "chatgpt",
40
+ "claude",
41
+ "cursor"
42
+ ]);
43
+ function isGoogleFamilyProvider(provider) {
44
+ const normalized = asTrimmedLowercaseString(provider);
45
+ return normalized === "google" || normalized.startsWith("google-");
46
+ }
47
+ function isOAuthApiKeyRef(value) {
48
+ const ref = asTrimmedLowercaseString(value);
49
+ return ref.length > 0 && OAUTH_APIKEY_REFS.has(ref);
50
+ }
51
+ function shouldUseServerProxy(agentConfig, requestProvider) {
52
+ const effectiveProvider = (requestProvider || agentConfig.provider || "").toLowerCase();
53
+ if (isGoogleFamilyProvider(effectiveProvider)) {
54
+ return true;
55
+ }
56
+ if (isOAuthApiKeyRef(agentConfig.apiKeyRef)) {
57
+ return true;
58
+ }
59
+ if (agentConfig.apiSource === "custom" && isRemoteCustomEndpoint(agentConfig.customProviderUrl)) {
60
+ return true;
61
+ }
62
+ return !!agentConfig.useServerProxy;
63
+ }
64
+ var LOCAL_HOSTS = /* @__PURE__ */ new Set(["127.0.0.1", "localhost", "::1", "0.0.0.0"]);
65
+ function isRemoteCustomEndpoint(url) {
66
+ if (typeof url !== "string") return false;
67
+ try {
68
+ const host = new URL(url).hostname.toLowerCase().replace(/^\[|\]$/g, "");
69
+ return !LOCAL_HOSTS.has(host);
70
+ } catch {
71
+ return false;
72
+ }
73
+ }
31
74
 
32
75
  // packages/agent-runtime/devin/devinChannelWindows.ts
33
76
  var DEVIN_CHANNEL_CONTEXT_WINDOWS = {
@@ -377,6 +420,8 @@ var extractReferenceKeysFromMessage = (msg) => {
377
420
  export {
378
421
  DEFAULT_AUTO_EXECUTION_PROFILE,
379
422
  resolveAutoExecutionProfile,
423
+ isOAuthApiKeyRef,
424
+ shouldUseServerProxy,
380
425
  readCacheReadInputTokens,
381
426
  readCacheCreationInputTokens,
382
427
  devinChannelContextWindow,