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,6 +1,3 @@
1
- import {
2
- isOAuthApiKeyRef
3
- } from "./chunk-UKZX3NHN.js";
4
1
  import {
5
2
  buildDialogAttachmentPlan,
6
3
  extractFileContentIds
@@ -14,13 +11,13 @@ import {
14
11
  } from "./chunk-QYPE3TS3.js";
15
12
  import {
16
13
  runLlm
17
- } from "./chunk-DWBY333O.js";
14
+ } from "./chunk-DT7EWFTY.js";
18
15
  import {
19
16
  getApproxPricePerImage
20
17
  } from "./chunk-4JH2UMJR.js";
21
18
  import {
22
19
  cleanupCliSessionForDialog
23
- } from "./chunk-IRTOYSA2.js";
20
+ } from "./chunk-ESMZW5PE.js";
24
21
  import {
25
22
  getActiveDialogAgentId,
26
23
  getDialogAgentIds,
@@ -56,7 +53,7 @@ import {
56
53
  } from "./chunk-XI7DGLUK.js";
57
54
  import {
58
55
  addContentAction
59
- } from "./chunk-M2P3OGXZ.js";
56
+ } from "./chunk-JWEXJ573.js";
60
57
  import {
61
58
  patch,
62
59
  read,
@@ -64,12 +61,12 @@ import {
64
61
  selectById,
65
62
  upload,
66
63
  write
67
- } from "./chunk-ZVQHBIWV.js";
64
+ } from "./chunk-CDLP56BS.js";
68
65
  import {
69
66
  getRuntimeServerContext,
70
67
  parseOwnerUserIdFromDbKey,
71
68
  scheduleDeleteReplication
72
- } from "./chunk-2SGAI64X.js";
69
+ } from "./chunk-43OFVLWJ.js";
73
70
  import {
74
71
  asyncThunkCreator,
75
72
  buildCreateSlice,
@@ -104,9 +101,10 @@ import {
104
101
  asOptionalJsonRecord,
105
102
  devinChannelContextWindow,
106
103
  extractReferenceKeysFromMessage,
104
+ isOAuthApiKeyRef,
107
105
  normalizeUsage,
108
106
  resolveAutoExecutionProfile
109
- } from "./chunk-ZJG7YU3I.js";
107
+ } from "./chunk-F3SOW2EU.js";
110
108
  import {
111
109
  isDevinOAuthAgent
112
110
  } from "./chunk-5ZUL4CUO.js";
@@ -123,7 +121,7 @@ import {
123
121
  getModelInfo,
124
122
  planCompression,
125
123
  serializeMessageContent
126
- } from "./chunk-TCQPBZUL.js";
124
+ } from "./chunk-QA2C5NKI.js";
127
125
  import {
128
126
  asRecordOrEmpty
129
127
  } from "./chunk-KX6YBIHG.js";
@@ -150,12 +148,15 @@ import {
150
148
  createTokenStatsKey,
151
149
  dialogMessageKey
152
150
  } from "./chunk-5EMSBTQ6.js";
153
- import {
154
- asOptionalFiniteNumber
155
- } from "./chunk-WWC7I6TA.js";
156
151
  import {
157
152
  estimateTokenCount
158
153
  } from "./chunk-PSCNXBYA.js";
154
+ import {
155
+ API_ENDPOINTS
156
+ } from "./chunk-LCBAMY2M.js";
157
+ import {
158
+ asOptionalFiniteNumber
159
+ } from "./chunk-WWC7I6TA.js";
159
160
  import {
160
161
  findModelConfig,
161
162
  getModelConfig
@@ -169,9 +170,6 @@ import {
169
170
  import {
170
171
  toErrorMessage
171
172
  } from "./chunk-HNMXYYJR.js";
172
- import {
173
- API_ENDPOINTS
174
- } from "./chunk-LCBAMY2M.js";
175
173
  import {
176
174
  normalizeServerOrigin
177
175
  } from "./chunk-CF7PE763.js";
@@ -11064,7 +11062,7 @@ var messageSlice = createSliceWithThunks({
11064
11062
  runtimeOptions: args.runtimeOptions
11065
11063
  });
11066
11064
  if (agentKeyToUse) {
11067
- const { streamAgentChatTurn } = await import("./agentSlice-MIOEV36T.js");
11065
+ const { streamAgentChatTurn } = await import("./agentSlice-YT3VCCEW.js");
11068
11066
  await dispatch(
11069
11067
  streamAgentChatTurn({
11070
11068
  agentKey: agentKeyToUse,
@@ -13819,7 +13817,7 @@ var deleteOwnedDialogAttachments = async (args) => {
13819
13817
  metadataReadFailures
13820
13818
  });
13821
13819
  if (!plan.deleteCandidates.length) return plan;
13822
- const { deleteFileAction } = await import("./deleteFile-KYWEMNFX.js");
13820
+ const { deleteFileAction } = await import("./deleteFile-YM6NDPAR.js");
13823
13821
  for (const candidate of plan.deleteCandidates) {
13824
13822
  if (candidate.fileDbKey) {
13825
13823
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -13881,7 +13879,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13881
13879
  }
13882
13880
  if (isCurrentDialog) {
13883
13881
  await thunkApi.dispatch(resetMsgs());
13884
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-QEP5EUON.js");
13882
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-GQMTD4HR.js");
13885
13883
  dispatch(clearPendingAttachments2());
13886
13884
  }
13887
13885
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -13889,39 +13887,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
13889
13887
 
13890
13888
  // packages/chat/dialog/dialogSlice.ts
13891
13889
  var runCreateDialogAction = async (args, thunkApi) => {
13892
- const { createDialogAction } = await import("./createDialogAction-AU4IWDR3.js");
13890
+ const { createDialogAction } = await import("./createDialogAction-NJ2LE7KC.js");
13893
13891
  return createDialogAction(args, thunkApi);
13894
13892
  };
13895
13893
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
13896
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-AI2HZHLE.js");
13894
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-5UWBLR2N.js");
13897
13895
  return createAgentAutomationAction(args, thunkApi);
13898
13896
  };
13899
13897
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
13900
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-WAH5KADA.js");
13898
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-AGAYHWS7.js");
13901
13899
  return updateDialogTitleAction(args, thunkApi);
13902
13900
  };
13903
13901
  var runAddDialogAgentAction = async (args, thunkApi) => {
13904
- const { addDialogAgentAction } = await import("./addDialogAgentAction-4RJYUSIK.js");
13902
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-5WZX5CAY.js");
13905
13903
  return addDialogAgentAction(args, thunkApi);
13906
13904
  };
13907
13905
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
13908
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-376XSUP2.js");
13906
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-RMVRILLK.js");
13909
13907
  return removeDialogAgentAction(args, thunkApi);
13910
13908
  };
13911
13909
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
13912
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-537QFGW3.js");
13910
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-X52JQGTJ.js");
13913
13911
  return setPrimaryDialogAgentAction(args, thunkApi);
13914
13912
  };
13915
13913
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
13916
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-CSO6AKRL.js");
13914
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-ZJ5CGU7J.js");
13917
13915
  return switchDialogAgentAction(args, thunkApi);
13918
13916
  };
13919
13917
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
13920
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-QBDSH63D.js");
13918
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-L3V7JTMG.js");
13921
13919
  return setDialogExtraReferencesAction(args, thunkApi);
13922
13920
  };
13923
13921
  var runHandleSendMessageAction = async (args, thunkApi) => {
13924
- const { handleSendMessageAction } = await import("./handleSendMessageAction-7MAFLFOD.js");
13922
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-EQ3U6K5N.js");
13925
13923
  return handleSendMessageAction(args, thunkApi);
13926
13924
  };
13927
13925
  function clearDialogState() {
@@ -13934,7 +13932,7 @@ var createPageAndAddReference = createAsyncThunk(
13934
13932
  async (payload, { dispatch, getState, rejectWithValue }) => {
13935
13933
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
13936
13934
  try {
13937
- const { createDocState } = await import("./docStore-WTXUKAQB.js");
13935
+ const { createDocState } = await import("./docStore-PM5PYKPZ.js");
13938
13936
  const pageKey = await createDocState(
13939
13937
  { slateData, title },
13940
13938
  { dispatch, getState }
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-NNE5NIW2.js";
8
+ } from "./chunk-OLVOR45M.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-CSCSMGQI.js";
17
+ } from "./chunk-HW7EBEC5.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-GCLZBOB6.js";
21
+ } from "./chunk-2ZYCNT2O.js";
22
22
  import {
23
23
  classifyApiError,
24
24
  classifyGenerationError,
25
25
  extractErrorDiagnostics
26
- } from "./chunk-QO436IJ5.js";
26
+ } from "./chunk-QZIOZDM6.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-FBSDWUOJ.js";
35
+ } from "./chunk-FCUKCVKN.js";
36
36
  import {
37
37
  getPublicImageAgentMode
38
38
  } from "./chunk-VIDPVFP3.js";
@@ -42,10 +42,10 @@ import {
42
42
  messageStreaming,
43
43
  toolResultNeedsUserConfirmation,
44
44
  updateToolMessage
45
- } from "./chunk-FZYTJOAQ.js";
45
+ } from "./chunk-F5WASHQA.js";
46
46
  import {
47
47
  streamAgentChatTurn
48
- } from "./chunk-DWBY333O.js";
48
+ } from "./chunk-DT7EWFTY.js";
49
49
  import {
50
50
  getCurrentSpaceId
51
51
  } from "./chunk-ZJ7UHBJS.js";
@@ -59,7 +59,7 @@ import {
59
59
  } from "./chunk-32ZKZET7.js";
60
60
  import {
61
61
  write
62
- } from "./chunk-ZVQHBIWV.js";
62
+ } from "./chunk-CDLP56BS.js";
63
63
  import {
64
64
  createAsyncThunk
65
65
  } from "./chunk-WRCZXJ4N.js";
@@ -85,13 +85,13 @@ import {
85
85
  } from "./chunk-56GBUMO5.js";
86
86
  import {
87
87
  normalizeChatCompletionsBodyForProvider
88
- } from "./chunk-QYAYO5JA.js";
88
+ } from "./chunk-4L4K6YR7.js";
89
89
  import {
90
90
  EMPTY_ASSISTANT_REPAIR_PROMPT
91
- } from "./chunk-ZJG7YU3I.js";
91
+ } from "./chunk-F3SOW2EU.js";
92
92
  import {
93
93
  getModelInfo
94
- } from "./chunk-TCQPBZUL.js";
94
+ } from "./chunk-QA2C5NKI.js";
95
95
  import {
96
96
  isAbortError
97
97
  } from "./chunk-7DPNBQSV.js";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VYNMQ6HW.js";
9
9
  import {
10
10
  fetchAndCacheTableRows
11
- } from "./chunk-6MH6PWVJ.js";
11
+ } from "./chunk-YR47Y7CN.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-DC3SZCRR.js";
25
+ } from "./chunk-SH3XD4E2.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-FPKQX2J6.js");
524
+ const { findToolExecutor } = await import("./tools-23VQGJOX.js");
525
525
  const { executor } = findToolExecutor(run.toolName);
526
526
  toolRunStarted({
527
527
  id: run.id,
@@ -545,7 +545,7 @@ var executeToolRun = createAsyncThunk(
545
545
  const latestState = thunkApi.getState();
546
546
  const userId = selectIdentityUserId(latestState);
547
547
  if (userId) {
548
- const { fetchUserSpaceMemberships } = await import("./memberThunks-2DWKLE6W.js");
548
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-AZINUM4S.js");
549
549
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
550
550
  }
551
551
  }
@@ -14,7 +14,7 @@ function buildCliLocalRuntimeDbEnv(env = process.env) {
14
14
  };
15
15
  }
16
16
  async function getDefaultCliLocalRuntimeDb(options = {}) {
17
- const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-JDAD7CB6.js");
17
+ const { getDefaultCliLocalRuntimeDb: getAuthorityBackedDb } = await import("./localRuntimeAuthority-BPN5OAQG.js");
18
18
  return getAuthorityBackedDb(options);
19
19
  }
20
20
 
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-NUE735UT.js";
4
+ } from "./chunk-O2IWR23M.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-O4KVUI4W.js";
7
+ } from "./chunk-KABQ74UQ.js";
8
8
  import {
9
9
  deriveCredentialGroup
10
- } from "./chunk-RE5I35J7.js";
10
+ } from "./chunk-VXS4YYJ2.js";
11
11
  import {
12
12
  isTombstoneRecord
13
13
  } from "./chunk-D2MDMY2M.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  fetchReferenceContents,
3
3
  resolveReferenceAssets
4
- } from "./chunk-QO436IJ5.js";
4
+ } from "./chunk-QZIOZDM6.js";
5
5
  import {
6
6
  updateTokensAction
7
- } from "./chunk-FZYTJOAQ.js";
7
+ } from "./chunk-F5WASHQA.js";
8
8
  import {
9
9
  applyUpdateTokensFulfilled
10
10
  } from "./chunk-OWYYDMGJ.js";
@@ -12,7 +12,7 @@ import {
12
12
  extractReasoningFromResponseOutput,
13
13
  extractTextFromResponseOutput,
14
14
  extractToolCallsFromResponseOutput
15
- } from "./chunk-QYAYO5JA.js";
15
+ } from "./chunk-4L4K6YR7.js";
16
16
  import {
17
17
  isRecord
18
18
  } from "./chunk-KUG52IAP.js";
@@ -3,16 +3,13 @@ import {
3
3
  } from "./chunk-HS7MLR74.js";
4
4
  import {
5
5
  performServerProxyFetchWithRetry
6
- } from "./chunk-QO436IJ5.js";
7
- import {
8
- shouldUseServerProxy
9
- } from "./chunk-UKZX3NHN.js";
6
+ } from "./chunk-QZIOZDM6.js";
10
7
  import {
11
8
  fetchServerSyncedCredential
12
- } from "./chunk-DWBY333O.js";
9
+ } from "./chunk-DT7EWFTY.js";
13
10
  import {
14
11
  buildSkillGuidancePromptBlock
15
- } from "./chunk-DC3SZCRR.js";
12
+ } from "./chunk-SH3XD4E2.js";
16
13
  import {
17
14
  CREDENTIAL_HYGIENE_RULE,
18
15
  DELETE_SAFETY_RED_LINE,
@@ -35,29 +32,30 @@ import {
35
32
  resolveReasoningReplayOptions,
36
33
  shouldStripReasoningContentForOutbound,
37
34
  stablePromptCacheKey
38
- } from "./chunk-QYAYO5JA.js";
35
+ } from "./chunk-4L4K6YR7.js";
36
+ import {
37
+ resolveAgentCallPlan,
38
+ resolveClientWire
39
+ } from "./chunk-TT644UJD.js";
39
40
  import {
40
41
  createFileCredentialBroker
41
42
  } from "./chunk-UHTDNB5Y.js";
43
+ import {
44
+ MEMORY_USE_GUIDANCE,
45
+ buildUserResponseLanguageContext,
46
+ wrapHistoricalSummaryWithReplayGuard
47
+ } from "./chunk-4VJAC32I.js";
42
48
  import {
43
49
  canonicalizeToolNames
44
50
  } from "./chunk-5EBLANFT.js";
45
51
  import {
46
- ANTIGRAVITY_CLOUD_CODE_BASE_URL,
47
- isAntigravityCloudCodeBaseUrl,
48
- isAntigravityOAuthAgent
49
- } from "./chunk-SQX235S2.js";
52
+ API_ENDPOINTS
53
+ } from "./chunk-LCBAMY2M.js";
50
54
  import {
51
55
  buildProviderAuthHeaders
52
56
  } from "./chunk-PIG2IUVZ.js";
53
- import {
54
- isOpenAiResponsesModel,
55
- resolvePlatformChatCompletionsEndpoint,
56
- resolvePlatformResponsesEndpoint
57
- } from "./chunk-V7PCFWX3.js";
58
57
  import {
59
58
  clampReasoningEffort,
60
- findModelConfig,
61
59
  getModelConfig,
62
60
  isModelSupportReasoningEffort
63
61
  } from "./chunk-6EQD4AQL.js";
@@ -70,9 +68,6 @@ import {
70
68
  import {
71
69
  toErrorMessage
72
70
  } from "./chunk-HNMXYYJR.js";
73
- import {
74
- API_ENDPOINTS
75
- } from "./chunk-LCBAMY2M.js";
76
71
  import {
77
72
  isLoopbackUrl
78
73
  } from "./chunk-4SN6J65J.js";
@@ -85,14 +80,6 @@ import {
85
80
  isPlatformMimoProviderModel,
86
81
  resolveFireworksKimiModel
87
82
  } from "./chunk-CGFNDIKK.js";
88
- import {
89
- asTrimmedLowercaseString
90
- } from "./chunk-QSJ3HFEF.js";
91
- import {
92
- MEMORY_USE_GUIDANCE,
93
- buildUserResponseLanguageContext,
94
- wrapHistoricalSummaryWithReplayGuard
95
- } from "./chunk-4VJAC32I.js";
96
83
 
97
84
  // packages/agent-runtime/responsesConversationState.ts
98
85
  function supportsResponsesConversationState(agent) {
@@ -133,167 +120,6 @@ function isResponsesConversationStateRejection(status, responseBody) {
133
120
  return mentionsResponseState && rejectsState;
134
121
  }
135
122
 
136
- // packages/agent-runtime/agentCallPlan.ts
137
- var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
138
- var CURSOR_AGENT_URL = "https://api2.cursor.sh/agent.v1.AgentService/Run";
139
- var DEVIN_CONNECT_URL = "https://server.codeium.com/exa.api_server_pb.ApiServerService/GetChatMessage";
140
- function resolveClientWire(plan) {
141
- if (plan.upstreamWire === "gemini-cca") return "chat.completions";
142
- if (plan.upstreamWire === "anthropic-messages") return "chat.completions";
143
- if (plan.upstreamWire === "cursor-connect") return "chat.completions";
144
- if (plan.upstreamWire === "devin-connect") return "chat.completions";
145
- if (plan.upstreamWire === "custom-gemini") return "chat.completions";
146
- if (plan.upstreamWire === "custom-openai-responses") return "chat.completions";
147
- if (plan.upstreamWire === "custom-anthropic-messages") return "chat.completions";
148
- if (plan.upstreamWire === "responses" && plan.authMethod.kind === "oauth" && plan.authMethod.ref === "chatgpt") {
149
- return "chat.completions";
150
- }
151
- return plan.upstreamWire;
152
- }
153
- var XAI_CHAT_COMPLETIONS_URL = "https://api.x.ai/v1/chat/completions";
154
- var ANTHROPIC_MESSAGES_URL = "https://api.anthropic.com/v1/messages";
155
- var CODEX_REQUIRED_HEADERS = [
156
- "chatgpt-account-id",
157
- "OpenAI-Beta",
158
- "originator",
159
- "version"
160
- ];
161
- var ANTIGRAVITY_REQUIRED_HEADERS = [
162
- "User-Agent"
163
- // antigravity-specific UA (matches getAntigravityUserAgent)
164
- ];
165
- function agentShouldUseServerProxy(agentConfig) {
166
- return shouldUseServerProxy(agentConfig);
167
- }
168
- function resolveCustomUpstreamWire(endpoint, nativeProtocol) {
169
- const responsesEndpoint = endpoint.includes("/responses");
170
- if (nativeProtocol === "openai-responses" && responsesEndpoint) return "responses";
171
- if (nativeProtocol === "gemini") return "custom-gemini";
172
- if (nativeProtocol === "openai-responses") return "custom-openai-responses";
173
- if (nativeProtocol === "anthropic-messages") return "custom-anthropic-messages";
174
- return responsesEndpoint ? "responses" : "chat.completions";
175
- }
176
- function hasOwnCustomProviderKey(agentConfig) {
177
- const endpoint = asOptionalTrimmedString(agentConfig.customProviderUrl);
178
- if (!endpoint) return false;
179
- if (isAntigravityCloudCodeBaseUrl(endpoint)) return false;
180
- return Boolean(asOptionalTrimmedString(agentConfig.apiKey));
181
- }
182
- function resolveAgentCallPlan(agentConfig, _env) {
183
- const apiKeyRef = asTrimmedLowercaseString(agentConfig.apiKeyRef);
184
- const provider = asTrimmedLowercaseString(
185
- agentConfig.provider ?? agentConfig.apiSource
186
- );
187
- const ownCustomKeyWins = hasOwnCustomProviderKey(agentConfig);
188
- const oauthApiKeyRef = ownCustomKeyWins ? "" : apiKeyRef;
189
- if (!ownCustomKeyWins && isAntigravityOAuthAgent(agentConfig)) {
190
- return {
191
- authMethod: { kind: "oauth", ref: "antigravity" },
192
- transport: "server-proxy",
193
- upstreamWire: "gemini-cca",
194
- endpoint: ANTIGRAVITY_CLOUD_CODE_BASE_URL,
195
- requiredHeaders: [...ANTIGRAVITY_REQUIRED_HEADERS],
196
- vendor: provider || "google-antigravity"
197
- };
198
- }
199
- if (oauthApiKeyRef === "chatgpt") {
200
- return {
201
- authMethod: { kind: "oauth", ref: "chatgpt" },
202
- transport: "server-proxy",
203
- upstreamWire: "responses",
204
- endpoint: CODEX_RESPONSES_URL,
205
- requiredHeaders: [...CODEX_REQUIRED_HEADERS],
206
- vendor: provider || "openai"
207
- };
208
- }
209
- if (oauthApiKeyRef === "claude") {
210
- return {
211
- authMethod: { kind: "oauth", ref: "claude" },
212
- transport: "server-proxy",
213
- upstreamWire: "anthropic-messages",
214
- endpoint: ANTHROPIC_MESSAGES_URL,
215
- requiredHeaders: ["anthropic-version", "anthropic-beta"],
216
- vendor: provider || "anthropic"
217
- };
218
- }
219
- if (oauthApiKeyRef === "xai") {
220
- return {
221
- authMethod: { kind: "oauth", ref: "xai" },
222
- transport: "server-proxy",
223
- upstreamWire: "chat.completions",
224
- endpoint: XAI_CHAT_COMPLETIONS_URL,
225
- requiredHeaders: [],
226
- vendor: provider || "xai"
227
- };
228
- }
229
- if (oauthApiKeyRef === "cursor") {
230
- return {
231
- authMethod: { kind: "oauth", ref: "cursor" },
232
- transport: "server-proxy",
233
- upstreamWire: "cursor-connect",
234
- endpoint: CURSOR_AGENT_URL,
235
- requiredHeaders: [
236
- "x-cursor-client-version",
237
- "x-cursor-client-type",
238
- "x-ghost-mode"
239
- ],
240
- vendor: provider || "cursor"
241
- };
242
- }
243
- if (oauthApiKeyRef === "devin" || !ownCustomKeyWins && provider === "devin") {
244
- return {
245
- authMethod: { kind: "oauth", ref: "devin" },
246
- transport: "server-proxy",
247
- upstreamWire: "devin-connect",
248
- endpoint: DEVIN_CONNECT_URL,
249
- requiredHeaders: ["connect-protocol-version"],
250
- vendor: provider || "devin"
251
- };
252
- }
253
- if (agentConfig.cliProvider || agentConfig.apiSource === "cli" || provider === "cli") {
254
- return {
255
- authMethod: { kind: "cli", provider: agentConfig.cliProvider || provider || "codex" },
256
- transport: "direct",
257
- upstreamWire: "cli",
258
- endpoint: "",
259
- requiredHeaders: [],
260
- vendor: provider || "cli"
261
- };
262
- }
263
- if (agentConfig.customProviderUrl || agentConfig.apiSource === "custom") {
264
- const transport2 = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
265
- const endpoint2 = asOptionalTrimmedString(agentConfig.customProviderUrl) ?? "";
266
- const upstreamWire2 = resolveCustomUpstreamWire(
267
- endpoint2,
268
- findModelConfig(provider, agentConfig.model ?? "")?.nativeProtocol
269
- );
270
- return {
271
- authMethod: { kind: "custom-key" },
272
- transport: transport2,
273
- upstreamWire: upstreamWire2,
274
- endpoint: endpoint2,
275
- requiredHeaders: [],
276
- vendor: provider || "custom"
277
- };
278
- }
279
- const transport = agentShouldUseServerProxy(agentConfig) ? "server-proxy" : "direct";
280
- const useResponses = isOpenAiResponsesModel({
281
- provider,
282
- model: agentConfig.model,
283
- endpointKey: agentConfig.endpointKey
284
- });
285
- const upstreamWire = useResponses ? "responses" : "chat.completions";
286
- const endpoint = upstreamWire === "responses" ? resolvePlatformResponsesEndpoint(provider, agentConfig.model) ?? "" : resolvePlatformChatCompletionsEndpoint(provider, agentConfig.model) ?? "";
287
- return {
288
- authMethod: { kind: "platform-key" },
289
- transport,
290
- upstreamWire,
291
- endpoint,
292
- requiredHeaders: [],
293
- vendor: provider || "openai"
294
- };
295
- }
296
-
297
123
  // packages/ai/agent/buildSystemPrompt.ts
298
124
  var CLARIFICATION_MODE_INSTRUCTIONS = `\u5728\u4F60\u8FD8\u4E0D\u4E86\u89E3\u7528\u6237\u610F\u56FE\u65F6\uFF0C\u901A\u8FC7\u63D0\u95EE\u6765\u6F84\u6E05\u9700\u6C42\uFF0C\u800C\u4E0D\u662F\u4ED3\u4FC3\u7ED9\u51FA\u7B54\u6848\u3002`;
299
125
  var isBrowser = typeof window !== "undefined";
@@ -1401,8 +1227,6 @@ export {
1401
1227
  selectResponsesConversationState,
1402
1228
  updateResponsesConversationState,
1403
1229
  isResponsesConversationStateRejection,
1404
- resolveClientWire,
1405
- resolveAgentCallPlan,
1406
1230
  generateRequestBody,
1407
1231
  CONFIRMATION_INPUT_KEYS,
1408
1232
  stripModelToolArgs,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-YNCJYU4X.js";
4
+ } from "./chunk-G3VYRPTV.js";
5
5
  import {
6
6
  asOptionalFiniteNumber
7
7
  } from "./chunk-WWC7I6TA.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-ZVQHBIWV.js";
10
+ } from "./chunk-CDLP56BS.js";
11
11
 
12
12
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
13
13
  var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  addContentToSpace
3
- } from "./chunk-6MH6PWVJ.js";
3
+ } from "./chunk-YR47Y7CN.js";
4
4
  import {
5
5
  format,
6
6
  prepareAndPersistMessage,
7
7
  uiAskChoiceFunc,
8
8
  uiAskChoiceFunctionSchema
9
- } from "./chunk-FZYTJOAQ.js";
9
+ } from "./chunk-F5WASHQA.js";
10
10
  import {
11
11
  formatISO
12
12
  } from "./chunk-ZRAU6T47.js";
@@ -16,7 +16,7 @@ import {
16
16
  removeCachedEntity,
17
17
  upsertSSREntity,
18
18
  write
19
- } from "./chunk-ZVQHBIWV.js";
19
+ } from "./chunk-CDLP56BS.js";
20
20
  import {
21
21
  isDevelopment
22
22
  } from "./chunk-6Q7UTJKR.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-PXYBUFDB.js";
26
26
  import {
27
27
  buildBuiltinObjectSkillReference
28
- } from "./chunk-JZX2XLKC.js";
28
+ } from "./chunk-YCRROBDY.js";
29
29
  import {
30
30
  extractCustomId
31
31
  } from "./chunk-M2EJHDJP.js";