nolo-cli 0.210.0-alpha.2 → 0.212.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 (158) hide show
  1. package/{_executeModel-VVQEOY3D.js → _executeModel-KE6MBNUJ.js} +51 -48
  2. package/{action-U235TV4P.js → action-DF5UYSJF.js} +4 -4
  3. package/{addContentAction-7C76J7ST.js → addContentAction-N2YC5IL3.js} +8 -8
  4. package/{addDialogAgentAction-KTYANUEC.js → addDialogAgentAction-3NKVQCEC.js} +15 -12
  5. package/{agentDeleteCommand-WHRU6VDJ.js → agentDeleteCommand-NWK7VU4N.js} +71 -67
  6. package/{agentEmailCommands-ALLHXPW3.js → agentEmailCommands-UZ4DHEX2.js} +77 -72
  7. package/{agentListCommands-POKMEKMS.js → agentListCommands-HE7L2A6L.js} +190 -77
  8. package/{agentMachineCommands-WJLZLBPI.js → agentMachineCommands-6TE4MBMP.js} +30 -29
  9. package/{agentProviderCommands-MN3ABDME.js → agentProviderCommands-Q5O33MED.js} +33 -4
  10. package/{agentRecordCommands-OULZW3KM.js → agentRecordCommands-L3QQ7HZ4.js} +66 -61
  11. package/{agentRunCommand-ZNG4LGNQ.js → agentRunCommand-2IFGQHCO.js} +68 -64
  12. package/{agentRunControl-AF7BMR22.js → agentRunControl-OI3LOENH.js} +7 -6
  13. package/{agentRuntimeLocal-YMUHFV5M.js → agentRuntimeLocal-HL526DNQ.js} +28 -25
  14. package/{agentSlice-WNGUIMQZ.js → agentSlice-TMYP2UEA.js} +12 -12
  15. package/{appDeleteCommands-6MXPLAVF.js → appDeleteCommands-ZERW4AXY.js} +30 -29
  16. package/{appDeployCommands-ERRSVASW.js → appDeployCommands-DUWSMYHL.js} +30 -29
  17. package/{appDeployStatusCommands-ULICISLI.js → appDeployStatusCommands-N2KIE4BF.js} +30 -29
  18. package/{appGetCommands-WYYYWROF.js → appGetCommands-YVR4NPVY.js} +30 -29
  19. package/{appListCommands-DFCUCRCV.js → appListCommands-JS6HOHZS.js} +30 -29
  20. package/{authCommand-ZJMWXFMA.js → authCommand-FE2C3ZUM.js} +14 -14
  21. package/{authCommands-WK6E42L2.js → authCommands-HV3EAU3V.js} +2 -2
  22. package/{builtinSkillRegistry-HH75G5J3.js → builtinSkillRegistry-3YOIGEF6.js} +5 -4
  23. package/{chunk-JKW6LERJ.js → chunk-22CIEBYO.js} +14 -14
  24. package/{chunk-6HVBI6TI.js → chunk-25JZEIXN.js} +1 -218
  25. package/{chunk-TRZP7JZ7.js → chunk-2QHFH3DR.js} +1 -0
  26. package/{chunk-4LEGTOSR.js → chunk-3AKFVZ2I.js} +1 -1
  27. package/{chunk-XE4Q46FF.js → chunk-3CGG2PAL.js} +1 -1
  28. package/{chunk-25M2K6OA.js → chunk-3FOQHGHN.js} +3 -3
  29. package/{chunk-BSISWVB4.js → chunk-4I7ERB7F.js} +1 -1
  30. package/{chunk-TCTSYFDM.js → chunk-4KH4J3G5.js} +19 -6
  31. package/{chunk-NEZGPBL7.js → chunk-5AQR3DGV.js} +2 -2
  32. package/{chunk-YLTLB5A7.js → chunk-5RYBGBQH.js} +7 -6
  33. package/{chunk-RIALQUSF.js → chunk-6NSSLV67.js} +5 -5
  34. package/{chunk-RXCCWVA2.js → chunk-6OQUPIQF.js} +3 -3
  35. package/chunk-6VLJ6YA7.js +11751 -0
  36. package/{chunk-27E2CBBY.js → chunk-7OCO4TDT.js} +1 -1
  37. package/chunk-7RFNTILS.js +2213 -0
  38. package/{chunk-4WCEC56C.js → chunk-AVTVGMDY.js} +1 -1
  39. package/{chunk-3J3U3KXB.js → chunk-B7NJ3T4A.js} +4 -4
  40. package/{chunk-UMEGDH6A.js → chunk-BFM34N54.js} +7 -7
  41. package/chunk-CJEIOP3E.js +0 -0
  42. package/{chunk-YXOBCDNW.js → chunk-CJRONOYL.js} +5 -5
  43. package/{chunk-LT3EAHJY.js → chunk-CQ46IRNN.js} +38 -36
  44. package/{chunk-NTSRCTUX.js → chunk-CTPXME7U.js} +2 -2
  45. package/{chunk-M4NTDZG3.js → chunk-D5RCRX4A.js} +134 -141
  46. package/{chunk-25OB36GU.js → chunk-DM6UMOEL.js} +4 -4
  47. package/{chunk-TPCDYNJK.js → chunk-EYUBHHFB.js} +1 -1
  48. package/{chunk-Y6M7KJOA.js → chunk-EZFQ6XRV.js} +2 -2
  49. package/{chunk-ZOO3WJIE.js → chunk-FHU44LN3.js} +711 -40
  50. package/chunk-FY7F4Q6X.js +127 -0
  51. package/chunk-G7MLNNEX.js +84 -0
  52. package/{chunk-RYWO5AKN.js → chunk-GNDJKC4B.js} +10 -10
  53. package/{chunk-V3M6IXQI.js → chunk-GPO7FCEZ.js} +187 -36
  54. package/{chunk-RQ22OZD7.js → chunk-H2TJUNCH.js} +1 -1
  55. package/{chunk-C2XZM3K4.js → chunk-HIRC32DV.js} +5 -24
  56. package/{chunk-QQM464AL.js → chunk-HPFCI4SK.js} +3 -3
  57. package/chunk-HRMJUN5J.js +26 -0
  58. package/{chunk-HD3WR3TD.js → chunk-IAPCBNEE.js} +1 -1
  59. package/{chunk-XDMGY5IU.js → chunk-IF45XG7K.js} +220 -9
  60. package/{chunk-NLT32XBZ.js → chunk-IIQ6JGRI.js} +2 -2
  61. package/{chunk-OP7PTBAJ.js → chunk-IJXYFTV7.js} +8 -8
  62. package/{chunk-IIHY4ZAI.js → chunk-INSBKSBB.js} +8 -4
  63. package/{chunk-PAFTGNWA.js → chunk-JIT6FSXJ.js} +1 -1
  64. package/{chunk-WTKYP6QO.js → chunk-JTDORD5P.js} +5 -5
  65. package/{chunk-ECX3NKRD.js → chunk-JY5NGFFH.js} +11 -0
  66. package/chunk-KC4XDTT3.js +227 -0
  67. package/{chunk-PLYWH7XM.js → chunk-KIM6CLW5.js} +7 -7
  68. package/{chunk-SCYQJPGA.js → chunk-M6RL5JCD.js} +147 -20
  69. package/chunk-MMA3LZ3W.js +105 -0
  70. package/{chunk-I5PBXF7O.js → chunk-MMNYUVLW.js} +1 -1
  71. package/{chunk-NHQKWPLP.js → chunk-NJR3WKVP.js} +24 -22
  72. package/{chunk-W5VC7F7V.js → chunk-NOMIGOST.js} +59 -60
  73. package/{chunk-WI6OGHXJ.js → chunk-NRFKLKRU.js} +5 -5
  74. package/{chunk-NXCGNS4N.js → chunk-OHNELDTO.js} +1 -1
  75. package/{chunk-7IYBN7IA.js → chunk-OOF4UPC5.js} +22 -13
  76. package/{chunk-UIOEHFF6.js → chunk-OQHIVPG4.js} +1 -0
  77. package/{chunk-X4F26D5K.js → chunk-P5L7CXOC.js} +58 -33
  78. package/{chunk-5ORJGHTL.js → chunk-PDGKOTO7.js} +5 -5
  79. package/{chunk-UCPAVEQB.js → chunk-PYRUW7XN.js} +1 -1
  80. package/{chunk-SU3QL7YG.js → chunk-QT6PKHYJ.js} +1 -1
  81. package/{chunk-SN5XE6GQ.js → chunk-RPQXPZZF.js} +4 -4
  82. package/{chunk-ZN5AH4BY.js → chunk-RU4SD66C.js} +6 -6
  83. package/{chunk-YKFP6UGT.js → chunk-SOHTHFV2.js} +14 -14
  84. package/{chunk-CKOO42G5.js → chunk-UHJGXRJ4.js} +4 -4
  85. package/{chunk-CVCRAO6Q.js → chunk-UTV2AYEG.js} +9 -7
  86. package/{chunk-DQLB4NQ3.js → chunk-VPAZOH2D.js} +2 -2
  87. package/{chunk-MBS6CTZB.js → chunk-VZKUKCA6.js} +236 -1993
  88. package/{chunk-LNYHAKBP.js → chunk-W4S457LU.js} +1 -1
  89. package/chunk-WPORQFYN.js +74 -0
  90. package/{chunk-ET2CWLIJ.js → chunk-WXYLV624.js} +3 -3
  91. package/chunk-XFYFMTOM.js +92 -0
  92. package/{chunk-NV572QM3.js → chunk-YJMRHHGY.js} +15 -15
  93. package/{chunk-JBOUVTZX.js → chunk-YOIW77S2.js} +13 -2
  94. package/{chunk-ADBWFYJD.js → chunk-YPD3VJZW.js} +9 -9
  95. package/{chunk-DA7CTWT4.js → chunk-YWSEPJ7C.js} +5 -5
  96. package/{chunk-3V2QMRNN.js → chunk-ZL5RAEEB.js} +3 -3
  97. package/cliAgentConfigHelpers-WJBZQTLW.js +41 -0
  98. package/{commandRegistry-FI2IOQ3U.js → commandRegistry-VVMTPFAX.js} +85 -81
  99. package/{contentThunks-5LKNNDGY.js → contentThunks-N52O67MI.js} +25 -24
  100. package/{createAgentAutomationAction-TI4QG4CY.js → createAgentAutomationAction-ZC57YRSV.js} +25 -24
  101. package/{createDialogAction-TJ3JKLO4.js → createDialogAction-VQW5WDYX.js} +27 -26
  102. package/{createPageAction-GKXT6WEH.js → createPageAction-M5VDA7SC.js} +26 -25
  103. package/{dbSlice-LPMZ2DGJ.js → dbSlice-HP7G4LX3.js} +7 -7
  104. package/{deleteFile-EPUQHKPA.js → deleteFile-7VQGLK2V.js} +3 -3
  105. package/{dialogCommands-IWPXIZ5P.js → dialogCommands-JHMR2N2Y.js} +32 -30
  106. package/{dialogSlice-ZWNNS7GZ.js → dialogSlice-GRSVGDTF.js} +23 -22
  107. package/{dialogUsageCommand-ZCPPHPJ5.js → dialogUsageCommand-7KCPYGHG.js} +1 -1
  108. package/{docCreateCommands-HFSPKJSI.js → docCreateCommands-F2K3UPSQ.js} +28 -27
  109. package/{docDeleteCommands-CRL62POH.js → docDeleteCommands-XGXB5RFT.js} +29 -28
  110. package/{docReadCommands-QOTOX3XW.js → docReadCommands-7HWZZV6J.js} +28 -27
  111. package/{docStore-WYLRB7ED.js → docStore-KNZK6Y2G.js} +10 -10
  112. package/{docUpdateCommands-7BMH4MCA.js → docUpdateCommands-OZZ7NQII.js} +28 -27
  113. package/{fetchMessages-YY4SATNR.js → fetchMessages-M3QU7ZCQ.js} +1 -1
  114. package/{getPricing-OQXBJ6VZ.js → getPricing-2MNMXEVG.js} +3 -3
  115. package/{handleSendMessageAction-P27YP2DQ.js → handleSendMessageAction-SHIH74GJ.js} +46 -44
  116. package/hostCredentialCreate-X64WK4JD.js +357 -0
  117. package/index.js +5 -5
  118. package/{keys-P4ZDOVJW.js → keys-BEGDOTRL.js} +3 -1
  119. package/{localDialogRead-5VCMQQZF.js → localDialogRead-XRLAH4CZ.js} +1 -1
  120. package/{localRuntimeAdapter-GP6ZSSO3.js → localRuntimeAdapter-A7K3ABA6.js} +73 -66
  121. package/{machineCommands-6Z6H4BFX.js → machineCommands-DE3MR7CJ.js} +65 -60
  122. package/{machineWsRunDispatch-F2ZIXMYM.js → machineWsRunDispatch-R26P5V36.js} +65 -60
  123. package/{memberThunks-YSEFJF47.js → memberThunks-7WJAY5V6.js} +8 -8
  124. package/package.json +1 -1
  125. package/{projectArchive-PIGEOX3D.js → projectArchive-GGL5HLMD.js} +26 -25
  126. package/{providerPresetApply-ZYMLQA46.js → providerPresetApply-YXGV6NXB.js} +4 -4
  127. package/{providerRegistry-E34XWDLJ.js → providerRegistry-S6UL6UNA.js} +4 -4
  128. package/{read-DIIQBOOO.js → read-4VZQODSN.js} +3 -3
  129. package/{readDocTool-HXYGOEA7.js → readDocTool-AVD32RUJ.js} +1 -1
  130. package/{readlineWorkspace-UG25G7KC.js → readlineWorkspace-XKYKNL2I.js} +157 -100
  131. package/{removeDialogAgentAction-ALJDUJ2E.js → removeDialogAgentAction-FKL4BYMR.js} +17 -14
  132. package/{runAgentClientLoop-IO5F7TCZ.js → runAgentClientLoop-V7E2WBVM.js} +49 -46
  133. package/{runtimeDoctorCommands-PGAA47G5.js → runtimeDoctorCommands-QAI3MBKQ.js} +6 -6
  134. package/{secretCommands-ZCZ4KVET.js → secretCommands-4QS3HCA2.js} +3 -3
  135. package/{setDialogExtraReferencesAction-O3SVMD5A.js → setDialogExtraReferencesAction-TLIOLWWI.js} +10 -10
  136. package/{setPrimaryDialogAgentAction-HE7RVFFF.js → setPrimaryDialogAgentAction-2OLWRFYR.js} +18 -15
  137. package/{settingThunks-BWWJQG4L.js → settingThunks-UGBPCNYF.js} +12 -11
  138. package/{spaceCommands-UAELIFEI.js → spaceCommands-4KSLKVNF.js} +28 -27
  139. package/{streamAgentChatTurn-VUKZQYJR.js → streamAgentChatTurn-7FR7X2NU.js} +57 -54
  140. package/{switchDialogAgentAction-3VZS7SOS.js → switchDialogAgentAction-UZSAG2N5.js} +15 -12
  141. package/{tools-VRXJAVYI.js → tools-ZLKCC25W.js} +43 -40
  142. package/{tuiSummaryLlmCaller-TGCHZLSW.js → tuiSummaryLlmCaller-WC54MVGP.js} +10 -10
  143. package/{updateCommands-Q6CYAEYJ.js → updateCommands-4744PL3P.js} +3 -1
  144. package/{updateDialogTitleAction-MULWCJCW.js → updateDialogTitleAction-U53ZT7PJ.js} +38 -70
  145. package/usageCommand-F4IPVMIZ.js +32 -0
  146. package/usageRebuildCommand-HAW2AD5N.js +626 -0
  147. package/chunk-4LCOCOR5.js +0 -50
  148. package/chunk-7AUQ3WCW.js +0 -51
  149. package/chunk-ZRAU6T47.js +0 -56
  150. package/{agentFavoriteCommands-GAFEXKKP.js → agentFavoriteCommands-EDK743YA.js} +1 -1
  151. package/{agentGrantCommands-V5FOQKFD.js → agentGrantCommands-RQWK2TEV.js} +1 -1
  152. package/{agentPullCommand-2JMJP5BS.js → agentPullCommand-6EM3URVK.js} +1 -1
  153. package/{chunk-BTYQAODF.js → chunk-CZM5YTZ7.js} +3 -3
  154. package/{chunk-A2ZMIRLN.js → chunk-INN4LTAJ.js} +5 -5
  155. package/{chunk-XPHZK3PJ.js → chunk-JNKSDZFS.js} +3 -3
  156. package/{chunk-PV6JJAUB.js → chunk-TCZHTTUU.js} +8 -8
  157. package/{chunk-AKE53VMW.js → chunk-ZCWRMUWT.js} +0 -0
  158. package/{tableCommands-D7WR4QSM.js → tableCommands-MP6VFSVT.js} +3 -3
@@ -1279,7 +1279,7 @@ function createAction(type, prepareAction) {
1279
1279
  }
1280
1280
  actionCreator.toString = () => `${type}`;
1281
1281
  actionCreator.type = type;
1282
- actionCreator.match = (action) => isAction(action) && action.type === type;
1282
+ actionCreator.match = (action) => action != null && action.type === type && isAction(action);
1283
1283
  return actionCreator;
1284
1284
  }
1285
1285
  function isFSA(action) {
@@ -1369,28 +1369,30 @@ function createReducer(initialState, mapOrBuilderCallback) {
1369
1369
  const frozenInitialState = freezeDraftable(initialState);
1370
1370
  getInitialState = () => frozenInitialState;
1371
1371
  }
1372
- function reducer(state = getInitialState(), action) {
1373
- let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({ matcher }) => matcher(action)).map(({ reducer: reducer2 }) => reducer2)];
1374
- if (caseReducers.filter((cr) => !!cr).length === 0) caseReducers = [finalDefaultCaseReducer];
1375
- return caseReducers.reduce((previousState, caseReducer) => {
1376
- if (caseReducer) {
1377
- if (isDraft(previousState)) {
1378
- const result = caseReducer(previousState, action);
1379
- if (result === void 0) return previousState;
1380
- return result;
1381
- } else if (!isDraftable(previousState)) {
1382
- const result = caseReducer(previousState, action);
1383
- if (result === void 0) {
1384
- if (previousState === null) return previousState;
1385
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : "A case reducer on a non-draftable value must not return undefined");
1386
- }
1387
- return result;
1388
- } else return produce(previousState, (draft) => {
1389
- return caseReducer(draft, action);
1390
- });
1372
+ function applyCaseReducer(previousState, caseReducer, action) {
1373
+ if (isDraft(previousState)) {
1374
+ const result = caseReducer(previousState, action);
1375
+ if (result === void 0) return previousState;
1376
+ return result;
1377
+ } else if (!isDraftable(previousState)) {
1378
+ const result = caseReducer(previousState, action);
1379
+ if (result === void 0) {
1380
+ if (previousState === null) return previousState;
1381
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(9) : "A case reducer on a non-draftable value must not return undefined");
1391
1382
  }
1392
- return previousState;
1393
- }, state);
1383
+ return result;
1384
+ } else return produce(previousState, (draft) => {
1385
+ return caseReducer(draft, action);
1386
+ });
1387
+ }
1388
+ function reducer(state = getInitialState(), action) {
1389
+ const caseReducer = actionsMap[action.type];
1390
+ let matchedReducers;
1391
+ for (const { matcher, reducer: reducer2 } of finalActionMatchers) if (matcher(action) && reducer2) (matchedReducers ??= []).push(reducer2);
1392
+ if (!caseReducer && !matchedReducers) return finalDefaultCaseReducer ? applyCaseReducer(state, finalDefaultCaseReducer, action) : state;
1393
+ if (caseReducer) state = applyCaseReducer(state, caseReducer, action);
1394
+ if (matchedReducers) for (const matchedReducer of matchedReducers) state = applyCaseReducer(state, matchedReducer, action);
1395
+ return state;
1394
1396
  }
1395
1397
  reducer.getInitialState = getInitialState;
1396
1398
  return reducer;
@@ -1579,7 +1581,7 @@ function isThenable(value) {
1579
1581
  return value !== null && typeof value === "object" && typeof value.then === "function";
1580
1582
  }
1581
1583
  var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
1582
- var asyncThunkCreator = { [asyncThunkSymbol]: createAsyncThunk };
1584
+ var asyncThunkCreator = /* @__PURE__ */ (() => ({ [asyncThunkSymbol]: createAsyncThunk }))();
1583
1585
  function getType(slice, actionKey) {
1584
1586
  return `${slice}/${actionKey}`;
1585
1587
  }
@@ -1801,12 +1803,22 @@ function createSelectorsFactory() {
1801
1803
  const selectId = (_, id) => id;
1802
1804
  const selectById = (entities, id) => entities[id];
1803
1805
  const selectTotal = createSelector2(selectIds, (ids) => ids.length);
1806
+ const selectIdsArg = (_, ids) => ids;
1807
+ const selectByIds = (entities, ids) => {
1808
+ const result = [];
1809
+ for (const id of ids) {
1810
+ const entity = entities[id];
1811
+ if (entity !== void 0) result.push(entity);
1812
+ }
1813
+ return result;
1814
+ };
1804
1815
  if (!selectState) return {
1805
1816
  selectIds,
1806
1817
  selectEntities,
1807
1818
  selectAll,
1808
1819
  selectTotal,
1809
- selectById: createSelector2(selectEntities, selectId, selectById)
1820
+ selectById: createSelector2(selectEntities, selectId, selectById),
1821
+ selectByIds: createSelector2(selectEntities, selectIdsArg, selectByIds)
1810
1822
  };
1811
1823
  const selectGlobalizedEntities = createSelector2(selectState, selectEntities);
1812
1824
  return {
@@ -1814,7 +1826,8 @@ function createSelectorsFactory() {
1814
1826
  selectEntities: selectGlobalizedEntities,
1815
1827
  selectAll: createSelector2(selectState, selectAll),
1816
1828
  selectTotal: createSelector2(selectState, selectTotal),
1817
- selectById: createSelector2(selectGlobalizedEntities, selectId, selectById)
1829
+ selectById: createSelector2(selectGlobalizedEntities, selectId, selectById),
1830
+ selectByIds: createSelector2(selectGlobalizedEntities, selectIdsArg, selectByIds)
1818
1831
  };
1819
1832
  }
1820
1833
  return { getSelectors };
@@ -1851,6 +1864,9 @@ function ensureEntitiesArray(entities) {
1851
1864
  if (!Array.isArray(entities)) entities = Object.values(entities);
1852
1865
  return entities;
1853
1866
  }
1867
+ function isRemoveManyFilter(keysOrFilter) {
1868
+ return !Array.isArray(keysOrFilter);
1869
+ }
1854
1870
  function getCurrent(value) {
1855
1871
  return isDraft(value) ? current(value) : value;
1856
1872
  }
@@ -1907,15 +1923,24 @@ function createUnsortedStateAdapter(selectId) {
1907
1923
  function removeOneMutably(key, state) {
1908
1924
  return removeManyMutably([key], state);
1909
1925
  }
1910
- function removeManyMutably(keys, state) {
1911
- let didMutate = false;
1912
- keys.forEach((key) => {
1913
- if (key in state.entities) {
1914
- delete state.entities[key];
1915
- didMutate = true;
1916
- }
1926
+ function removeManyMutably(keysOrFilter, state) {
1927
+ const keys = isRemoveManyFilter(keysOrFilter) ? selectMatchingIds(keysOrFilter.where, state) : keysOrFilter;
1928
+ const removedIds = /* @__PURE__ */ new Set();
1929
+ for (const key of keys) if (key in state.entities) {
1930
+ delete state.entities[key];
1931
+ removedIds.add(String(key));
1932
+ }
1933
+ if (removedIds.size > 0) state.ids = getCurrent(state.ids).filter((id) => !removedIds.has(String(id)));
1934
+ }
1935
+ function selectMatchingIds(where, state) {
1936
+ const ids = getCurrent(state.ids);
1937
+ const entities = getCurrent(state.entities);
1938
+ const whereKeys = Object.keys(where);
1939
+ if (whereKeys.length === 0) return [];
1940
+ return ids.filter((id) => {
1941
+ const entity = entities[id];
1942
+ return whereKeys.every((key) => entity[key] === where[key]);
1917
1943
  });
1918
- if (didMutate) state.ids = state.ids.filter((id) => id in state.entities);
1919
1944
  }
1920
1945
  function removeAllMutably(state) {
1921
1946
  Object.assign(state, {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-M4NTDZG3.js";
4
+ } from "./chunk-D5RCRX4A.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-RYWO5AKN.js";
7
+ } from "./chunk-GNDJKC4B.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-ZOO3WJIE.js";
10
+ } from "./chunk-FHU44LN3.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-6HVBI6TI.js";
13
+ } from "./chunk-KC4XDTT3.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
- } from "./chunk-TRZP7JZ7.js";
16
+ } from "./chunk-2QHFH3DR.js";
17
17
  import {
18
18
  asRecordOrEmpty
19
19
  } from "./chunk-KX6YBIHG.js";
@@ -8,7 +8,7 @@ import {
8
8
  noloUploadRequest,
9
9
  noloWriteRequest,
10
10
  syncWithServers
11
- } from "./chunk-X4F26D5K.js";
11
+ } from "./chunk-P5L7CXOC.js";
12
12
  import {
13
13
  getAllServers,
14
14
  getIsDesktopApp
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  requireTokenUser
3
- } from "./chunk-25OB36GU.js";
3
+ } from "./chunk-DM6UMOEL.js";
4
4
  import {
5
5
  resolveServerUrl
6
6
  } from "./chunk-WACI5I6V.js";
@@ -1,6 +1,3 @@
1
- import {
2
- writeOAuthCredential
3
- } from "./chunk-G7Y4GXTY.js";
4
1
  import {
5
2
  ANTIGRAVITY_AUTH_URL,
6
3
  ANTIGRAVITY_CALLBACK_PATH,
@@ -14,7 +11,7 @@ import {
14
11
  getAntigravityUserAgent,
15
12
  normalizeAntigravityTokenPayload,
16
13
  refreshAntigravityToken
17
- } from "./chunk-PLYWH7XM.js";
14
+ } from "./chunk-KIM6CLW5.js";
18
15
  import {
19
16
  toErrorMessage
20
17
  } from "./chunk-HNMXYYJR.js";
@@ -25,6 +22,9 @@ import {
25
22
  buildEnvFromProfile,
26
23
  loadProfileConfig
27
24
  } from "./chunk-R5GO3YZP.js";
25
+ import {
26
+ writeOAuthCredential
27
+ } from "./chunk-G7Y4GXTY.js";
28
28
  import {
29
29
  asOptionalFiniteNumber
30
30
  } from "./chunk-WWC7I6TA.js";
@@ -2,7 +2,7 @@ import {
2
2
  clipMultilineText,
3
3
  fetchAndSerializeTable,
4
4
  waitForAbortableDelay
5
- } from "./chunk-RYWO5AKN.js";
5
+ } from "./chunk-GNDJKC4B.js";
6
6
  import {
7
7
  isGatewayHttpStatus
8
8
  } from "./chunk-NF64D32W.js";
@@ -15,27 +15,27 @@ import {
15
15
  import {
16
16
  resolvePageReadMarkdown,
17
17
  slateToSimplifiedMarkdown
18
- } from "./chunk-HD3WR3TD.js";
18
+ } from "./chunk-IAPCBNEE.js";
19
19
  import {
20
20
  extractCategorizedMentions
21
21
  } from "./chunk-AGIM7IMJ.js";
22
22
  import {
23
23
  fetchAndCacheMessages
24
- } from "./chunk-MBS6CTZB.js";
24
+ } from "./chunk-VZKUKCA6.js";
25
25
  import {
26
26
  createSpaceKey
27
27
  } from "./chunk-UAD2WT54.js";
28
28
  import {
29
29
  read
30
- } from "./chunk-UMEGDH6A.js";
30
+ } from "./chunk-BFM34N54.js";
31
31
  import {
32
32
  getRuntimeServerContext
33
- } from "./chunk-UCPAVEQB.js";
33
+ } from "./chunk-PYRUW7XN.js";
34
34
  import {
35
35
  extractRuntimePageCapabilities,
36
36
  resolveBuiltinSkillPage,
37
37
  resolveSkillGraphFromRoots
38
- } from "./chunk-Y6M7KJOA.js";
38
+ } from "./chunk-EZFQ6XRV.js";
39
39
  import {
40
40
  isAbortError
41
41
  } from "./chunk-7DPNBQSV.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  buildStaticUserPolicyContext,
3
3
  resolveSpaceContextPreloadPlan
4
- } from "./chunk-NEZGPBL7.js";
4
+ } from "./chunk-5AQR3DGV.js";
5
5
  import {
6
6
  fetchReferenceContents,
7
7
  mergeReferences,
8
8
  resolveReferenceAssets,
9
9
  resolveToolsFromKeys
10
- } from "./chunk-ZN5AH4BY.js";
10
+ } from "./chunk-RU4SD66C.js";
11
11
  import {
12
12
  UI_CARD_ENVELOPE_MAX_BYTES,
13
13
  getAllToolRuns,
@@ -18,14 +18,14 @@ import {
18
18
  selectSpaceContextLevel,
19
19
  selectUserTonePreset,
20
20
  uiCardFallback
21
- } from "./chunk-RYWO5AKN.js";
21
+ } from "./chunk-GNDJKC4B.js";
22
22
  import {
23
23
  resolveAgentRecommendedSkillNames,
24
24
  resolveAgentRequiredPackIds
25
- } from "./chunk-I5PBXF7O.js";
25
+ } from "./chunk-MMNYUVLW.js";
26
26
  import {
27
27
  getDocState
28
- } from "./chunk-YLTLB5A7.js";
28
+ } from "./chunk-5RYBGBQH.js";
29
29
  import {
30
30
  resolveToolBaseUrl
31
31
  } from "./chunk-MYOH447Z.js";
@@ -34,15 +34,15 @@ import {
34
34
  getModelPricing,
35
35
  getPrices,
36
36
  hasExplicitAgentPricing
37
- } from "./chunk-A2ZMIRLN.js";
37
+ } from "./chunk-INN4LTAJ.js";
38
38
  import {
39
39
  getTableState
40
- } from "./chunk-NHQKWPLP.js";
40
+ } from "./chunk-NJR3WKVP.js";
41
41
  import {
42
42
  PERSONALIZATION_DIALOG_CATEGORY,
43
43
  buildPersonalizationDialogPolicyContext,
44
44
  selectAllMsgs
45
- } from "./chunk-MBS6CTZB.js";
45
+ } from "./chunk-VZKUKCA6.js";
46
46
  import {
47
47
  getCurrentSpaceIdRaw,
48
48
  getViewMode
@@ -53,7 +53,7 @@ import {
53
53
  import {
54
54
  read,
55
55
  selectById
56
- } from "./chunk-UMEGDH6A.js";
56
+ } from "./chunk-BFM34N54.js";
57
57
  import {
58
58
  getSessionSnapshotForState,
59
59
  selectIdentityUserBalance,
@@ -68,7 +68,7 @@ import {
68
68
  expandEnabledPackPromptPatches,
69
69
  expandEnabledPacks,
70
70
  resolveEffectiveEnabledPacks
71
- } from "./chunk-TPCDYNJK.js";
71
+ } from "./chunk-EYUBHHFB.js";
72
72
  import {
73
73
  projectToolMessageContent
74
74
  } from "./chunk-2WZXXAQD.js";
@@ -78,11 +78,11 @@ import {
78
78
  } from "./chunk-WJZOQR2J.js";
79
79
  import {
80
80
  extractReferenceKeysFromMessage
81
- } from "./chunk-WTKYP6QO.js";
81
+ } from "./chunk-JTDORD5P.js";
82
82
  import {
83
83
  getModelContextWindow,
84
84
  planContextUsage
85
- } from "./chunk-BTYQAODF.js";
85
+ } from "./chunk-CZM5YTZ7.js";
86
86
  import {
87
87
  asRecordOrEmpty
88
88
  } from "./chunk-KX6YBIHG.js";
@@ -96,7 +96,7 @@ import {
96
96
  import {
97
97
  canonicalizeToolNames,
98
98
  prioritizeToolNames
99
- } from "./chunk-AKE53VMW.js";
99
+ } from "./chunk-ZCWRMUWT.js";
100
100
  import {
101
101
  extractCustomId
102
102
  } from "./chunk-M2EJHDJP.js";
@@ -112,7 +112,7 @@ import {
112
112
  } from "./chunk-KUG52IAP.js";
113
113
  import {
114
114
  metaKey
115
- } from "./chunk-ECX3NKRD.js";
115
+ } from "./chunk-JY5NGFFH.js";
116
116
  import {
117
117
  asNonEmptyStringArray
118
118
  } from "./chunk-I42VC5KR.js";
@@ -5,7 +5,7 @@ import {
5
5
  ANTIGRAVITY_CLOUD_CODE_BASE_URL,
6
6
  isAntigravityCloudCodeBaseUrl,
7
7
  isAntigravityOAuthAgent
8
- } from "./chunk-PLYWH7XM.js";
8
+ } from "./chunk-KIM6CLW5.js";
9
9
  import {
10
10
  isOpenAiResponsesModel,
11
11
  resolvePlatformChatCompletionsEndpoint,
@@ -14,12 +14,12 @@ import {
14
14
  import {
15
15
  findModelConfig
16
16
  } from "./chunk-SM3NSZJV.js";
17
- import {
18
- asOptionalTrimmedString
19
- } from "./chunk-G3SUCT4W.js";
20
17
  import {
21
18
  asTrimmedLowercaseString
22
19
  } from "./chunk-QSJ3HFEF.js";
20
+ import {
21
+ asOptionalTrimmedString
22
+ } from "./chunk-G3SUCT4W.js";
23
23
 
24
24
  // packages/agent-runtime/agentCallPlan.ts
25
25
  var CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
@@ -10,13 +10,10 @@ import {
10
10
  } from "./chunk-E2BESSAW.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-BTYQAODF.js";
13
+ } from "./chunk-CZM5YTZ7.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
17
- import {
18
- asOptionalTrimmedString
19
- } from "./chunk-G3SUCT4W.js";
20
17
  import {
21
18
  PLATFORM_HOSTED_KIMI_K3_MODEL,
22
19
  isFireworksKimiModel,
@@ -25,6 +22,9 @@ import {
25
22
  import {
26
23
  asTrimmedLowercaseString
27
24
  } from "./chunk-QSJ3HFEF.js";
25
+ import {
26
+ asOptionalTrimmedString
27
+ } from "./chunk-G3SUCT4W.js";
28
28
 
29
29
  // packages/integrations/openai/responsesHelpers.ts
30
30
  var RESPONSES_TOP_LEVEL_SCHEMA_KEYS = ["anyOf", "oneOf", "allOf", "enum", "not"];
@@ -154,11 +154,13 @@ var convertMessagesToResponsesInput = (messages, options) => {
154
154
  continue;
155
155
  }
156
156
  const role = message.role;
157
- if (role === "assistant" && !options?.stripReasoningContent && typeof message.reasoning_content === "string" && message.reasoning_content) {
157
+ const hasReplayableToolCalls = Array.isArray(message.tool_calls) && message.tool_calls.length > 0;
158
+ const reasoningText = typeof message.reasoning_content === "string" && message.reasoning_content.trim() ? message.reasoning_content : hasReplayableToolCalls && options?.replayReasoningPlaceholder?.trim() ? options.replayReasoningPlaceholder : void 0;
159
+ if (role === "assistant" && !options?.stripReasoningContent && reasoningText) {
158
160
  input.push({
159
161
  type: "reasoning",
160
162
  content: [
161
- { type: "reasoning_text", text: message.reasoning_content }
163
+ { type: "reasoning_text", text: reasoningText }
162
164
  ]
163
165
  });
164
166
  }
@@ -1127,7 +1129,7 @@ function shouldReplayReasoningContentForOutbound(provider, model) {
1127
1129
  const p = provider?.trim().toLowerCase();
1128
1130
  const m = model?.trim().toLowerCase();
1129
1131
  if (!p || !m) return false;
1130
- return (p === "opencode-go" || p === "opencode") && m.includes("deepseek");
1132
+ return shouldStripReasoningContentForOutbound(p, m) || (p === "opencode-go" || p === "opencode") && m.includes("deepseek");
1131
1133
  }
1132
1134
  function resolveReasoningReplayOptions(provider, model, stripReasoningContent) {
1133
1135
  if (stripReasoningContent) return {};
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  patch,
6
6
  read
7
- } from "./chunk-UMEGDH6A.js";
7
+ } from "./chunk-BFM34N54.js";
8
8
  import {
9
9
  DEVICE_LOCAL_OWNER_ID,
10
10
  isDeviceLocalSpaceBody
11
- } from "./chunk-UCPAVEQB.js";
11
+ } from "./chunk-PYRUW7XN.js";
12
12
  import {
13
13
  selectIdentityUserId
14
14
  } from "./chunk-PXYBUFDB.js";