nolo-cli 0.229.0-alpha.1 → 0.240.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/{_executeModel-VYCHHZVT.js → _executeModel-5NA4USGG.js} +56 -51
  2. package/{action-GDZDXPMB.js → action-X75O3XPH.js} +7 -4
  3. package/{addContentAction-7RO4AMRI.js → addContentAction-GVC77QSN.js} +9 -8
  4. package/{addDialogAgentAction-EVYBGTXB.js → addDialogAgentAction-KKDVAMW3.js} +12 -11
  5. package/{agentDeleteCommand-QWQKT54A.js → agentDeleteCommand-2RFGKFAB.js} +78 -70
  6. package/{agentEmailCommands-EISMBIRE.js → agentEmailCommands-GQCQKKOR.js} +85 -73
  7. package/{agentListCommands-4WLG32IW.js → agentListCommands-HSGLDPDQ.js} +40 -47
  8. package/{agentMachineCommands-DC6NKWTU.js → agentMachineCommands-BISF6PVV.js} +26 -22
  9. package/{agentProviderCommands-STI3DQ6A.js → agentProviderCommands-O3Q25PKU.js} +2 -2
  10. package/{agentPullCommand-KHV4EELF.js → agentPullCommand-G6U2LHMW.js} +1 -1
  11. package/{agentRecordCommands-IZYUVHME.js → agentRecordCommands-AOXPGYAJ.js} +80 -68
  12. package/{agentRunCommand-QM7ETUTX.js → agentRunCommand-YTZJCRAL.js} +86 -73
  13. package/{agentRunControl-MBG4U6SL.js → agentRunControl-VBL7UFSG.js} +1 -1
  14. package/{agentRuntimeLocal-HOXKWCYO.js → agentRuntimeLocal-T7BX2WGL.js} +24 -19
  15. package/{agentSlice-UG76KEBH.js → agentSlice-XJNKE3PG.js} +10 -9
  16. package/{appDeleteCommands-WWCC6WA5.js → appDeleteCommands-LURUSPY7.js} +27 -23
  17. package/{appDeployCommands-AU4IUN33.js → appDeployCommands-SMEW4AK2.js} +27 -23
  18. package/{appDeployStatusCommands-STUW7WXL.js → appDeployStatusCommands-VYPJTBJK.js} +27 -23
  19. package/{appGetCommands-BGTLIQ4K.js → appGetCommands-N4NI5GGJ.js} +27 -23
  20. package/{appListCommands-CUCPRUXW.js → appListCommands-5C6ONN3Z.js} +27 -23
  21. package/{authCommand-OZ2KTP4Z.js → authCommand-4CVBDADE.js} +15 -13
  22. package/{authCommands-55OGQGCR.js → authCommands-EHU2BHOX.js} +7 -5
  23. package/{builtinSkillRegistry-BAE2LDXF.js → builtinSkillRegistry-AYWYQVA4.js} +3 -3
  24. package/{chromeOpsCommands-WAA45NCS.js → chromeOpsCommands-CSDG2HYN.js} +1 -1
  25. package/{chunk-HHFGE2WF.js → chunk-2574ANSV.js} +1 -1
  26. package/chunk-2SXN7LAY.js +15 -0
  27. package/{chunk-S6FDXXZV.js → chunk-3EMIEC27.js} +1 -1
  28. package/{chunk-XTJKU3Z4.js → chunk-3FBAVU2Y.js} +11 -9
  29. package/{chunk-ZH3KXFHS.js → chunk-4FIO2S7Z.js} +1 -1
  30. package/{chunk-MJI3UAXN.js → chunk-4IQVE43Z.js} +30 -26
  31. package/{chunk-VQ5N5GSV.js → chunk-4Q6HQORG.js} +1 -1
  32. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  33. package/chunk-4ZCTKB27.js +31 -0
  34. package/{chunk-42OKN2LI.js → chunk-5HUO7SEX.js} +9 -107
  35. package/{chunk-QYB23WUH.js → chunk-5QZSEQSK.js} +1 -1
  36. package/{chunk-7JGMNKKG.js → chunk-6CKUO32A.js} +8 -0
  37. package/chunk-6D25V6CB.js +133 -0
  38. package/{chunk-ZOHO6MOF.js → chunk-6WOLPIPY.js} +93 -90
  39. package/{chunk-6QHKRARD.js → chunk-6WZVM33D.js} +9 -4
  40. package/{chunk-DLXMMTGM.js → chunk-7AJRJGSQ.js} +260 -359
  41. package/chunk-7NIBQ4HY.js +138 -0
  42. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  43. package/{chunk-CNMY2XM6.js → chunk-A3LUWRQK.js} +4 -4
  44. package/{chunk-4ZGPHFLE.js → chunk-A5EVA6HU.js} +2 -2
  45. package/{chunk-YVFH2MFB.js → chunk-AEQMKYZN.js} +4 -4
  46. package/{chunk-YKY4OVOX.js → chunk-AH5R7BYW.js} +13 -167
  47. package/{chunk-7FEP5USX.js → chunk-ANJRDS6U.js} +3 -3
  48. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  49. package/{chunk-HYLRQDEE.js → chunk-B5SV4H3J.js} +6 -6
  50. package/{chunk-7BCG67EI.js → chunk-B7DE5XJW.js} +137 -290
  51. package/chunk-BEM6LPD2.js +734 -0
  52. package/{chunk-DUUDXSLX.js → chunk-BGGAY6OK.js} +27 -3
  53. package/{chunk-GAYNXB6T.js → chunk-BGGV6B5O.js} +416 -232
  54. package/{chunk-BP5ZJ6B4.js → chunk-BIABIPGW.js} +1 -1
  55. package/{chunk-TQEKUOTI.js → chunk-BXSMFPTG.js} +4 -4
  56. package/{chunk-RG2DGNL6.js → chunk-CKZPMJNU.js} +3 -3
  57. package/{chunk-OTKSESZR.js → chunk-CVJRVBJL.js} +2 -2
  58. package/{chunk-BIWI5M4E.js → chunk-D374I563.js} +1 -1
  59. package/{chunk-QRGDJA4B.js → chunk-DNZ4JJ7C.js} +1 -1
  60. package/chunk-DVYAFH2Q.js +103 -0
  61. package/{chunk-LYD6C7OU.js → chunk-DXW5WDHZ.js} +4 -4
  62. package/{chunk-MZG5CETE.js → chunk-E5KJOZWY.js} +3 -3
  63. package/{chunk-45CAVC35.js → chunk-E5KY7RAY.js} +565 -103
  64. package/{chunk-G7IUT2V3.js → chunk-EBKHA63G.js} +103 -12
  65. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  66. package/{chunk-DGYCDA6W.js → chunk-F3XI6WQP.js} +17 -10
  67. package/{chunk-M3OZRQNH.js → chunk-F6YWDVIB.js} +1 -1
  68. package/{chunk-3VZLEKV2.js → chunk-FFYE5ATM.js} +4 -4
  69. package/{chunk-HXB4VDGK.js → chunk-FZKA3XFA.js} +11 -11
  70. package/{chunk-MNEZUL5S.js → chunk-G22P367E.js} +31 -14
  71. package/{chunk-WFDNADFX.js → chunk-GDUC4VS2.js} +7 -7
  72. package/{chunk-R6Z5S5GA.js → chunk-GXXY2NL3.js} +16 -14
  73. package/{chunk-U2HBB7RS.js → chunk-H7ZYKHAZ.js} +27 -7
  74. package/{chunk-3U44JB3O.js → chunk-HCNOO374.js} +1 -1
  75. package/{chunk-HSSBDZLD.js → chunk-HOM6LTEW.js} +1 -1
  76. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  77. package/{chunk-WCFFRBL5.js → chunk-IJTXNLQE.js} +9 -9
  78. package/{chunk-ALAES342.js → chunk-IUMS6F53.js} +2 -2
  79. package/{chunk-547ENH5T.js → chunk-IUTUWIKE.js} +2 -2
  80. package/{chunk-S6K5F3KP.js → chunk-JBWXPACD.js} +1 -1
  81. package/{chunk-XAG3FWBE.js → chunk-KZPEGO6D.js} +1 -1
  82. package/{chunk-RBPUNSG5.js → chunk-LYDEFPQP.js} +18 -108
  83. package/{chunk-OWKNSIXL.js → chunk-MECDGHLK.js} +271 -66
  84. package/{chunk-FJSNBZXR.js → chunk-MM73SP4K.js} +1 -1
  85. package/{chunk-XSW4EXQV.js → chunk-MYOSN6BT.js} +2 -2
  86. package/{chunk-ZEVQHCLM.js → chunk-MYPKBJJO.js} +2 -2
  87. package/{chunk-DBUR22G5.js → chunk-N2JROHD3.js} +4 -4
  88. package/{chunk-ATEKLSLR.js → chunk-O6IPRAVV.js} +14 -9
  89. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  90. package/{chunk-TSPMLCWI.js → chunk-P3IZUMIC.js} +2 -2
  91. package/{chunk-FPBJM2BW.js → chunk-PGKA77TZ.js} +26 -20
  92. package/{chunk-4QYJPWHH.js → chunk-PRMEU7BT.js} +229 -7
  93. package/{chunk-OJ45MEEI.js → chunk-PROOOQZ3.js} +1 -1
  94. package/{chunk-4I2MXV5Q.js → chunk-PVFYPUIM.js} +2 -0
  95. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  96. package/chunk-RETQOQ4D.js +33394 -0
  97. package/{chunk-CMMI3DAT.js → chunk-RM4UMFY4.js} +33 -26
  98. package/{chunk-262R3XNN.js → chunk-S2MHR4PU.js} +151 -5
  99. package/{chunk-DEA37IUY.js → chunk-T6VROBY7.js} +2 -2
  100. package/{chunk-M4SFKP5L.js → chunk-TEMLHVGX.js} +1 -1
  101. package/{chunk-3QIYD3VM.js → chunk-TRHJ4NJB.js} +61 -792
  102. package/{chunk-OBIC6EG7.js → chunk-TWTJV35S.js} +1 -1
  103. package/{chunk-TCZ2VJZQ.js → chunk-U3G7RRXJ.js} +5 -5
  104. package/{chunk-F6Z6ZCUV.js → chunk-UFC4J7OY.js} +3 -3
  105. package/{chunk-5YMA6DDZ.js → chunk-UHW6SCVK.js} +1 -1
  106. package/{chunk-4N6G2CKP.js → chunk-ULLHVDTZ.js} +46 -1
  107. package/{chunk-XFXFPUO7.js → chunk-VM72HKW2.js} +7 -7
  108. package/{chunk-HF7BLF3F.js → chunk-VREG6ANQ.js} +102 -99
  109. package/chunk-VSRISJXZ.js +107 -0
  110. package/chunk-WDWZPASX.js +29 -0
  111. package/{chunk-ILHQ2AXT.js → chunk-WRKMXMU7.js} +2 -0
  112. package/chunk-X7IA2B7R.js +166 -0
  113. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  114. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  115. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  116. package/{chunk-EGHP7KOY.js → chunk-Y5OWZQMJ.js} +28 -19
  117. package/{chunk-TI2EPRHE.js → chunk-YGCOJNFZ.js} +3 -3
  118. package/{chunk-JQZRSXS5.js → chunk-YGDYYFRX.js} +9 -13
  119. package/{chunk-X3E6EHJW.js → chunk-Z2WZAE4P.js} +128 -150
  120. package/chunk-Z6YTCDU4.js +24 -0
  121. package/{chunk-RRDRQOEC.js → chunk-ZEKUFJLW.js} +81 -66
  122. package/{chunk-EVGU5P4U.js → chunk-ZVOL2MAJ.js} +1 -1
  123. package/{cliAgentConfigHelpers-BTRHMPW2.js → cliAgentConfigHelpers-U5OAVAKQ.js} +2 -2
  124. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  125. package/{cliLocalAgentRecordReader-H3HYQRRR.js → cliLocalAgentRecordReader-HVZAQCUD.js} +29 -25
  126. package/{commandRegistry-FVYPE2IN.js → commandRegistry-FIXBZJHE.js} +89 -85
  127. package/{contentThunks-GNFPG32S.js → contentThunks-U6OC4R2N.js} +23 -22
  128. package/{cooldownCommands-YB5H5BBK.js → cooldownCommands-U7XSRVJP.js} +1 -1
  129. package/{createAgentAutomationAction-PB4QIFQ4.js → createAgentAutomationAction-IP4LFN3W.js} +23 -22
  130. package/{createDialogAction-EVTOPY7A.js → createDialogAction-IAGQJ3LH.js} +24 -23
  131. package/{createPageAction-2UYF2IDZ.js → createPageAction-AZ3UIFKA.js} +24 -23
  132. package/{dbSlice-XRUZOGSU.js → dbSlice-DKKMJJYY.js} +8 -7
  133. package/{deleteFile-6URDHYRB.js → deleteFile-TQSONMVU.js} +7 -4
  134. package/{dialogCommands-6SZD4TYP.js → dialogCommands-PCDRMBWG.js} +30 -26
  135. package/dialogMessageRecord-OAV77LT7.js +7 -0
  136. package/{dialogNotifyCommand-SHGPCU22.js → dialogNotifyCommand-O35MWMOS.js} +3 -3
  137. package/{dialogSlice-5EQ2A6LY.js → dialogSlice-QAKYN4DE.js} +22 -21
  138. package/{dialogUsageCommand-W2WCSGKF.js → dialogUsageCommand-2SSLTXKO.js} +2 -2
  139. package/{docCreateCommands-25E6PGN3.js → docCreateCommands-CFQFZOAD.js} +26 -22
  140. package/{docDeleteCommands-F7ZVGEHW.js → docDeleteCommands-5CPNTIIS.js} +27 -23
  141. package/{docReadCommands-JY2E5XEN.js → docReadCommands-XQILYSAJ.js} +26 -22
  142. package/{docStore-OKKIKLT3.js → docStore-GIVRT7TQ.js} +10 -9
  143. package/{docUpdateCommands-OZ4CUSIQ.js → docUpdateCommands-VETKSUDD.js} +26 -22
  144. package/{handleSendMessageAction-LNT7SZND.js → handleSendMessageAction-HKIW4ZNO.js} +48 -45
  145. package/{hostCredentialCreate-XUU2CSHI.js → hostCredentialCreate-6VDJFNDO.js} +82 -69
  146. package/index.js +8 -8
  147. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  148. package/{localRuntimeAdapter-IBSTMSX7.js → localRuntimeAdapter-BQ4F5PZV.js} +81 -69
  149. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  150. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  151. package/{machineCommands-HSQHDHOT.js → machineCommands-K6XIGOAD.js} +78 -66
  152. package/{machineWsRunDispatch-L6H7J66T.js → machineWsRunDispatch-4OO7Z6UM.js} +78 -66
  153. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  154. package/{memberThunks-7Y3OYSJQ.js → memberThunks-PBJPZ2JU.js} +15 -10
  155. package/{overlay-BBQZXGYI.js → overlay-JA3SPVUS.js} +5 -3
  156. package/package.json +1 -1
  157. package/{projectArchive-FQO654Z3.js → projectArchive-G7AOQPRW.js} +24 -23
  158. package/{providerPresetApply-WHAMP2D5.js → providerPresetApply-OPBCAONX.js} +1 -1
  159. package/{providerRegistry-ZI2KORJ7.js → providerRegistry-J2HCVTHE.js} +1 -1
  160. package/{read-TYMBGEXO.js → read-JEGPITEW.js} +6 -5
  161. package/{readDocTool-SKQVHBLO.js → readDocTool-TE3XIU4Y.js} +1 -1
  162. package/{readlineWorkspace-7U272DSA.js → readlineWorkspace-XMPGXR77.js} +2946 -2367
  163. package/{removeDialogAgentAction-F5QE2O2B.js → removeDialogAgentAction-CX3OAH4Y.js} +14 -13
  164. package/{runAgentClientLoop-AF4JQIJ7.js → runAgentClientLoop-HQJPDFGQ.js} +65 -45
  165. package/{runtimeDoctorCommands-RRKPBGVO.js → runtimeDoctorCommands-GUH2YGMH.js} +3 -3
  166. package/{secretCommands-KZWBZIYS.js → secretCommands-NJXFVHZU.js} +2 -2
  167. package/{setDialogExtraReferencesAction-72L27ERM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +11 -10
  168. package/{setPrimaryDialogAgentAction-GJJDUSGJ.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +14 -13
  169. package/{settingThunks-ZRGWVGZD.js → settingThunks-AY76OHYX.js} +176 -57
  170. package/{skillDiscovery-BHHPCUHZ.js → skillDiscovery-MDDKPTW3.js} +4 -3
  171. package/{spaceCommands-5VNWMDBE.js → spaceCommands-G63QGYQO.js} +26 -22
  172. package/{streamAgentChatTurn-YSPEFY4K.js → streamAgentChatTurn-E3XH2KFD.js} +127 -85
  173. package/{switchDialogAgentAction-IIJBPND3.js → switchDialogAgentAction-G6EZRKCQ.js} +12 -11
  174. package/{tableCommands-FTAOCBTX.js → tableCommands-JI75ZHDI.js} +4 -1
  175. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  176. package/{tools-M35PTIFB.js → tools-7RSX22FT.js} +41 -37
  177. package/{tuiRestart-2IL37YIB.js → tuiRestart-KAAA7TND.js} +2 -2
  178. package/{tuiSummaryLlmCaller-W2QN4VAC.js → tuiSummaryLlmCaller-BVNHMWLR.js} +6 -6
  179. package/{updateCommands-CPATDG6J.js → updateCommands-ASK5XYPH.js} +3 -3
  180. package/{updateDialogTitleAction-IMIRJRQQ.js → updateDialogTitleAction-SEWV252V.js} +23 -22
  181. package/{usageCommand-2BF74MKF.js → usageCommand-JVT5J3DC.js} +2 -2
  182. package/{usageRebuildCommand-UHB55BQM.js → usageRebuildCommand-IZYYUTEW.js} +3 -3
  183. package/webapi-24RZDIIQ.js +2488 -0
  184. package/{windowsSelfUpdate-ZFD6J5HF.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  185. package/workContext-MM3P5GP5.js +13 -0
  186. package/workContextAccess-UZHDLBUR.js +11 -0
  187. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  188. package/chunk-ZXF6D3I6.js +0 -359
  189. package/{accountResolver-QETKNC7T.js → accountResolver-EK2S4PWF.js} +3 -3
  190. package/{localDialogRead-CCOCVGAP.js → localDialogRead-AV2VKKPG.js} +0 -0
  191. package/{workloadLifecycle-HFJIN5IZ.js → workloadLifecycle-YIZ7KLUP.js} +5 -5
@@ -10,13 +10,13 @@ import {
10
10
  } from "./chunk-523DITKR.js";
11
11
  import {
12
12
  runLlm
13
- } from "./chunk-WCFFRBL5.js";
13
+ } from "./chunk-IJTXNLQE.js";
14
14
  import {
15
15
  isMediaToolConfirmation
16
16
  } from "./chunk-QYPE3TS3.js";
17
17
  import {
18
18
  cleanupCliSessionForDialog
19
- } from "./chunk-RG2DGNL6.js";
19
+ } from "./chunk-CKZPMJNU.js";
20
20
  import {
21
21
  getActiveDialogAgentId,
22
22
  getDialogAgentIds,
@@ -37,10 +37,13 @@ import {
37
37
  setActiveDialogKey,
38
38
  setDialogConfigError,
39
39
  setMediaJobRuntimeActor
40
- } from "./chunk-S2NTVGA2.js";
40
+ } from "./chunk-I2OYPD3Y.js";
41
41
  import {
42
42
  require_react
43
- } from "./chunk-5FUN7EG4.js";
43
+ } from "./chunk-RD3QLZQV.js";
44
+ import {
45
+ fetchMessages
46
+ } from "./chunk-HXER7YJF.js";
44
47
  import {
45
48
  buildDialogAttachmentPlan,
46
49
  extractFileContentIds,
@@ -48,7 +51,7 @@ import {
48
51
  } from "./chunk-DXWGFL2Z.js";
49
52
  import {
50
53
  addContentAction
51
- } from "./chunk-DEA37IUY.js";
54
+ } from "./chunk-T6VROBY7.js";
52
55
  import {
53
56
  patch,
54
57
  read,
@@ -56,24 +59,26 @@ import {
56
59
  selectById,
57
60
  upload,
58
61
  write
59
- } from "./chunk-CMMI3DAT.js";
62
+ } from "./chunk-RM4UMFY4.js";
60
63
  import {
61
64
  getRuntimeServerContext,
62
65
  parseOwnerUserIdFromDbKey,
63
66
  resolveUserAuthorityServer,
64
67
  scheduleDeleteReplication,
65
68
  waitForWriteAck
66
- } from "./chunk-R6Z5S5GA.js";
69
+ } from "./chunk-GXXY2NL3.js";
67
70
  import {
68
71
  asyncThunkCreator,
69
72
  buildCreateSlice,
70
73
  createAsyncThunk,
71
74
  createEntityAdapter,
72
75
  createSelector
73
- } from "./chunk-7Z6EW7AH.js";
76
+ } from "./chunk-7TTMMOKH.js";
74
77
  import {
78
+ googleSessionRequestToken,
79
+ isGoogleAuthoritySession,
75
80
  normalizeTimeFields
76
- } from "./chunk-4N6G2CKP.js";
81
+ } from "./chunk-ULLHVDTZ.js";
77
82
  import {
78
83
  selectIdentityToken,
79
84
  selectIdentityUser,
@@ -82,9 +87,6 @@ import {
82
87
  import {
83
88
  createClientLogger
84
89
  } from "./chunk-QQ56R7KS.js";
85
- import {
86
- fetchMessages
87
- } from "./chunk-HXER7YJF.js";
88
90
  import {
89
91
  getRecordTimestamp,
90
92
  getTombstoneTimestamp,
@@ -94,10 +96,7 @@ import {
94
96
  import {
95
97
  applyBuiltinAgentRuntimeOverride,
96
98
  resolveBuiltinPlatformAgentRecord
97
- } from "./chunk-S6K5F3KP.js";
98
- import {
99
- getApproxPricePerImage
100
- } from "./chunk-4JH2UMJR.js";
99
+ } from "./chunk-JBWXPACD.js";
101
100
  import {
102
101
  DEFAULT_AUTO_EXECUTION_PROFILE,
103
102
  EMPTY_ASSISTANT_FALLBACK_MESSAGE,
@@ -112,7 +111,7 @@ import {
112
111
  isCodexOAuthAgent,
113
112
  normalizeAttachmentPart,
114
113
  resolveAutoExecutionProfile
115
- } from "./chunk-QRGDJA4B.js";
114
+ } from "./chunk-DNZ4JJ7C.js";
116
115
  import {
117
116
  isDevinOAuthAgent
118
117
  } from "./chunk-5ZUL4CUO.js";
@@ -147,10 +146,10 @@ import {
147
146
  } from "./chunk-PSCNXBYA.js";
148
147
  import {
149
148
  nolotusId
150
- } from "./chunk-EVGU5P4U.js";
149
+ } from "./chunk-ZVOL2MAJ.js";
151
150
  import {
152
151
  isBuiltinPlatformAgentKey
153
- } from "./chunk-ILHQ2AXT.js";
152
+ } from "./chunk-WRKMXMU7.js";
154
153
  import {
155
154
  extractCustomId,
156
155
  extractUserId
@@ -165,6 +164,9 @@ import {
165
164
  createDialogMessageKeyAndId,
166
165
  dialogMessageKey
167
166
  } from "./chunk-OJKUU3LP.js";
167
+ import {
168
+ getApproxPricePerImage
169
+ } from "./chunk-4JH2UMJR.js";
168
170
  import {
169
171
  API_ENDPOINTS
170
172
  } from "./chunk-LCBAMY2M.js";
@@ -984,6 +986,7 @@ var fetchConvMsgs = async (server, token, {
984
986
  limit,
985
987
  beforeKey
986
988
  }, options = {}) => {
989
+ googleSessionRequestToken(token, server);
987
990
  const { signal: externalSignal } = options;
988
991
  const controller = new AbortController();
989
992
  const startedAt = now();
@@ -1028,6 +1031,7 @@ var fetchConvMsgs = async (server, token, {
1028
1031
  try {
1029
1032
  const response = await fetch(`${server}/rpc/getConvMsgs`, {
1030
1033
  method: "POST",
1034
+ ...isGoogleAuthoritySession(token) ? { redirect: "error", credentials: "omit" } : {},
1031
1035
  headers: {
1032
1036
  Authorization: `Bearer ${token}`,
1033
1037
  "Content-Type": "application/json"
@@ -6206,6 +6210,64 @@ var ai_locale_default = {
6206
6210
  }
6207
6211
  };
6208
6212
 
6213
+ // packages/chat/dialog/childRunObserverLabels.ts
6214
+ var childRunObserverLabels = {
6215
+ "en": {
6216
+ "openChildPage": "Open child dialog",
6217
+ "savedActiveGroup": "Last saved active \xB7 not live",
6218
+ "historyGroup": "Other tasks",
6219
+ "viewDetails": "View details",
6220
+ "persistedRuns": "Persisted subagent runs",
6221
+ "persistedSnapshot": "Saved status \xB7 not live",
6222
+ "inProgressGroup": "In progress"
6223
+ },
6224
+ "zh-CN": {
6225
+ "openChildPage": "\u6253\u5F00\u5B50\u5BF9\u8BDD",
6226
+ "savedActiveGroup": "\u4E0A\u6B21\u4FDD\u5B58\u4E3A\u6D3B\u8DC3 \xB7 \u975E\u5B9E\u65F6",
6227
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52A1",
6228
+ "viewDetails": "\u67E5\u770B\u8BE6\u60C5",
6229
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52A1",
6230
+ "persistedSnapshot": "\u5DF2\u4FDD\u5B58\u72B6\u6001 \xB7 \u975E\u5B9E\u65F6",
6231
+ "inProgressGroup": "\u8FDB\u884C\u4E2D"
6232
+ },
6233
+ "zh-Hant": {
6234
+ "openChildPage": "\u958B\u555F\u5B50\u5C0D\u8A71",
6235
+ "savedActiveGroup": "\u4E0A\u6B21\u5132\u5B58\u70BA\u6D3B\u8E8D \xB7 \u975E\u5373\u6642",
6236
+ "historyGroup": "\u5176\u4ED6\u4EFB\u52D9",
6237
+ "viewDetails": "\u67E5\u770B\u8A73\u60C5",
6238
+ "persistedRuns": "\u5DF2\u540C\u6B65\u7684\u5B50\u4EFB\u52D9",
6239
+ "persistedSnapshot": "\u5DF2\u5132\u5B58\u72C0\u614B \xB7 \u975E\u5373\u6642",
6240
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6241
+ },
6242
+ "ja": {
6243
+ "openChildPage": "\u5B50\u4F1A\u8A71\u3092\u958B\u304F",
6244
+ "savedActiveGroup": "\u6700\u7D42\u4FDD\u5B58\u6642\u306F\u5B9F\u884C\u4E2D\u30FB\u975E\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0",
6245
+ "historyGroup": "\u305D\u306E\u4ED6\u306E\u30BF\u30B9\u30AF",
6246
+ "viewDetails": "\u8A73\u7D30\u3092\u898B\u308B",
6247
+ "persistedRuns": "\u4FDD\u5B58\u6E08\u307F\u30B5\u30D6\u30BF\u30B9\u30AF",
6248
+ "persistedSnapshot": "\u4FDD\u5B58\u6E08\u307F\u72B6\u614B\u30FB\u30EA\u30A2\u30EB\u30BF\u30A4\u30E0\u3067\u306F\u3042\u308A\u307E\u305B\u3093",
6249
+ "inProgressGroup": "\u9032\u884C\u4E2D"
6250
+ },
6251
+ "de": {
6252
+ "openChildPage": "Unterdialog \xF6ffnen",
6253
+ "savedActiveGroup": "Zuletzt aktiv gespeichert \xB7 nicht live",
6254
+ "historyGroup": "Weitere Aufgaben",
6255
+ "viewDetails": "Details ansehen",
6256
+ "persistedRuns": "Gespeicherte Unteraufgaben",
6257
+ "persistedSnapshot": "Gespeicherter Status \xB7 nicht live",
6258
+ "inProgressGroup": "In Bearbeitung"
6259
+ },
6260
+ "es": {
6261
+ "openChildPage": "Abrir di\xE1logo secundario",
6262
+ "savedActiveGroup": "Activo al guardar \xB7 no en vivo",
6263
+ "historyGroup": "Otras tareas",
6264
+ "viewDetails": "Ver detalles",
6265
+ "persistedRuns": "Subtareas guardadas",
6266
+ "persistedSnapshot": "Estado guardado \xB7 no en vivo",
6267
+ "inProgressGroup": "En curso"
6268
+ }
6269
+ };
6270
+
6209
6271
  // packages/chat/chat.locale.ts
6210
6272
  var chat_locale_default = {
6211
6273
  en: {
@@ -6615,6 +6677,13 @@ var chat_locale_default = {
6615
6677
  DialogSettings: "Dialog Settings",
6616
6678
  collaborativeConversation: "Collaborative conversation",
6617
6679
  childRunObserver: {
6680
+ ...childRunObserverLabels["en"],
6681
+ workingGroup: "Working",
6682
+ mainAgent: "Main agent",
6683
+ modelUnknown: "Model unknown",
6684
+ reasoningConfigured: "Reasoning effort (configured): {{effort}}",
6685
+ reasoningUnspecified: "Reasoning effort: not specified",
6686
+ reasoningUnsupported: "Configured reasoning effort is not supported by this model/provider",
6618
6687
  panelAriaLabel: "Child runs",
6619
6688
  title: "Child runs",
6620
6689
  subtitleLoading: "Loading child runs\u2026",
@@ -7168,6 +7237,13 @@ var chat_locale_default = {
7168
7237
  DialogSettings: "\u4F1A\u8BDD\u8BBE\u7F6E",
7169
7238
  collaborativeConversation: "\u534F\u4F5C\u4F1A\u8BDD",
7170
7239
  childRunObserver: {
7240
+ ...childRunObserverLabels["zh-CN"],
7241
+ workingGroup: "\u6B63\u5728\u6267\u884C",
7242
+ mainAgent: "\u4E3B Agent",
7243
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7244
+ reasoningConfigured: "\u63A8\u7406\u5F3A\u5EA6\uFF08\u914D\u7F6E\uFF09\uFF1A{{effort}}",
7245
+ reasoningUnspecified: "\u63A8\u7406\u5F3A\u5EA6\uFF1A\u672A\u6307\u5B9A",
7246
+ reasoningUnsupported: "\u5DF2\u914D\u7F6E\u63A8\u7406\u5F3A\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u63D0\u4F9B\u65B9\u4E0D\u652F\u6301\u6B64\u53C2\u6570",
7171
7247
  panelAriaLabel: "\u5B50\u4EFB\u52A1\u8FD0\u884C",
7172
7248
  title: "\u5B50\u4EFB\u52A1",
7173
7249
  subtitleLoading: "\u52A0\u8F7D\u5B50\u8FD0\u884C\u2026",
@@ -7721,6 +7797,13 @@ var chat_locale_default = {
7721
7797
  DialogSettings: "\u6703\u8A71\u8A2D\u5B9A",
7722
7798
  collaborativeConversation: "\u5354\u4F5C\u6703\u8A71",
7723
7799
  childRunObserver: {
7800
+ ...childRunObserverLabels["zh-Hant"],
7801
+ workingGroup: "\u6B63\u5728\u57F7\u884C",
7802
+ mainAgent: "\u4E3B Agent",
7803
+ modelUnknown: "\u6A21\u578B\u672A\u77E5",
7804
+ reasoningConfigured: "\u63A8\u7406\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
7805
+ reasoningUnspecified: "\u63A8\u7406\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
7806
+ reasoningUnsupported: "\u5DF2\u8A2D\u5B9A\u63A8\u7406\u5F37\u5EA6\uFF0C\u4F46\u6B64\u6A21\u578B\u6216\u4F9B\u61C9\u5546\u4E0D\u652F\u63F4\u6B64\u53C3\u6578",
7724
7807
  panelAriaLabel: "\u5B50\u4EFB\u52D9\u904B\u884C",
7725
7808
  title: "\u5B50\u4EFB\u52D9",
7726
7809
  subtitleLoading: "\u8F09\u5165\u5B50\u904B\u884C\u2026",
@@ -8280,6 +8363,13 @@ var chat_locale_default = {
8280
8363
  DialogSettings: "\u5BFE\u8A71\u8A2D\u5B9A",
8281
8364
  collaborativeConversation: "\u5354\u8ABF\u4F1A\u8A71",
8282
8365
  childRunObserver: {
8366
+ ...childRunObserverLabels["ja"],
8367
+ workingGroup: "\u5B9F\u884C\u4E2D",
8368
+ mainAgent: "\u30E1\u30A4\u30F3 Agent",
8369
+ modelUnknown: "\u30E2\u30C7\u30EB\u4E0D\u660E",
8370
+ reasoningConfigured: "\u63A8\u8AD6\u5F37\u5EA6\uFF08\u8A2D\u5B9A\uFF09\uFF1A{{effort}}",
8371
+ reasoningUnspecified: "\u63A8\u8AD6\u5F37\u5EA6\uFF1A\u672A\u6307\u5B9A",
8372
+ reasoningUnsupported: "\u8A2D\u5B9A\u3055\u308C\u305F\u63A8\u8AD6\u5F37\u5EA6\u306F\u3053\u306E\u30E2\u30C7\u30EB\u307E\u305F\u306F\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3067\u306F\u975E\u5BFE\u5FDC\u3067\u3059",
8283
8373
  panelAriaLabel: "\u5B50\u30BF\u30B9\u30AF\u5B9F\u884C",
8284
8374
  title: "\u5B50\u30BF\u30B9\u30AF",
8285
8375
  subtitleLoading: "\u5B50\u5B9F\u884C\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",
@@ -8840,6 +8930,13 @@ var chat_locale_default = {
8840
8930
  DialogSettings: "Dialog-Einstellungen",
8841
8931
  collaborativeConversation: "Kollaborative Unterhaltung",
8842
8932
  childRunObserver: {
8933
+ ...childRunObserverLabels["de"],
8934
+ workingGroup: "In Bearbeitung",
8935
+ mainAgent: "Haupt-Agent",
8936
+ modelUnknown: "Modell unbekannt",
8937
+ reasoningConfigured: "Denkaufwand (konfiguriert): {{effort}}",
8938
+ reasoningUnspecified: "Denkaufwand: nicht angegeben",
8939
+ reasoningUnsupported: "Der konfigurierte Denkaufwand wird von diesem Modell/Anbieter nicht unterst\xFCtzt",
8843
8940
  panelAriaLabel: "Hintergrund-Subtasks",
8844
8941
  title: "Hintergrund-Subtasks",
8845
8942
  subtitleLoading: "Subtasks werden geladen\u2026",
@@ -9400,6 +9497,13 @@ var chat_locale_default = {
9400
9497
  DialogSettings: "Ajustes del di\xE1logo",
9401
9498
  collaborativeConversation: "Conversaci\xF3n colaborativa",
9402
9499
  childRunObserver: {
9500
+ ...childRunObserverLabels["es"],
9501
+ workingGroup: "En ejecuci\xF3n",
9502
+ mainAgent: "Agente principal",
9503
+ modelUnknown: "Modelo desconocido",
9504
+ reasoningConfigured: "Esfuerzo de razonamiento (configurado): {{effort}}",
9505
+ reasoningUnspecified: "Esfuerzo de razonamiento: sin especificar",
9506
+ reasoningUnsupported: "El esfuerzo configurado no es compatible con este modelo/proveedor",
9403
9507
  panelAriaLabel: "Subtareas en segundo plano",
9404
9508
  title: "Subtareas en segundo plano",
9405
9509
  subtitleLoading: "Cargando subtareas\u2026",
@@ -12093,256 +12197,6 @@ ${failureText}`;
12093
12197
  return failureText;
12094
12198
  }
12095
12199
 
12096
- // packages/create/space/contentKeyUtils.ts
12097
- var isAppContentKey = (contentKey) => typeof contentKey === "string" && contentKey.startsWith("app-");
12098
- var normalizeAppRouteId = (contentKey) => isAppContentKey(contentKey) ? contentKey : `app-${contentKey}`;
12099
-
12100
- // packages/ai/tools/uiAskChoiceTool.ts
12101
- var uiAskChoiceFunctionSchema = {
12102
- name: "ask_user",
12103
- description: "\u8BA9\u7528\u6237\u5728\u4E00\u7EC4\u9009\u9879\u4E4B\u95F4\u505A\u9009\u62E9\uFF08\u5355\u9009\u6216\u591A\u9009\uFF09\u7684\u901A\u7528\u201C\u51FA\u9009\u9879\u201D\u5DE5\u5177\uFF08\u9700\u6C42\u6A21\u7CCA\u3001\u5206\u652F\u51B3\u7B56\u3001\u95EE\u5377\u7B49\uFF09\u3002\u672C\u5DE5\u5177\u7528\u4E8E\u7EAF\u63D0\u95EE\u3001\u7B49\u5F85\u7528\u6237\u56DE\u7B54\u7684\u573A\u666F\uFF08blocking:false \u65F6\u4E0D\u6682\u505C\u7B49\u5F85\uFF09\uFF1B\u82E5\u9700\u8981\u540C\u65F6\u5C55\u793A\u7ED3\u6784\u5316\u5BF9\u6BD4/\u6307\u6807\u5E76\u8BA9\u7528\u6237\u5728\u540C\u4E00\u5757\u91CC\u9009\u62E9\uFF0C\u8D70 show_interaction\u3002\u8C03\u7528\u524D\u987B\u5148\u5728\u666E\u901A\u56DE\u590D\u6587\u672C\u91CC\u89E3\u91CA\u80CC\u666F\u4E0E\u6743\u8861\uFF08\u5148\u89E3\u91CA\uFF0C\u518D\u8C03\u7528\uFF09\u3002\u591A\u95EE\u9898\u4F20 questions\uFF0C\u5355\u95EE\u9898\u4F20 question+choices\u3002\u754C\u9762\u9ED8\u8BA4\u63D0\u4F9B\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF08\u53EF\u7528 allowOther:false \u5173\u95ED\uFF09\uFF0C\u7528\u6237\u8F93\u5165\u7684\u6587\u5B57\u4F1A\u968F\u7B54\u6848\u56DE\u4F20\uFF1B\u4E0D\u8981\u81EA\u5EFA\u201C\u5176\u4ED6/\u81EA\u5DF1\u5199\u201D\u4E4B\u7C7B\u7684\u9009\u9879\u2014\u2014\u70B9\u51FB\u666E\u901A\u9009\u9879\u53EA\u56DE\u4F20\u8BE5\u9009\u9879\u6587\u6848\uFF0C\u7528\u6237\u65E0\u5904\u586B\u5199\u3002",
12104
- parameters: {
12105
- type: "object",
12106
- properties: {
12107
- question: {
12108
- type: "string",
12109
- description: "\u5C55\u793A\u7ED9\u7528\u6237\u7684\u95EE\u9898\u6587\u6848\uFF08\u5355\u95EE\u9898\u6A21\u5F0F\uFF09\u3002\u4E0E questions \u4E8C\u9009\u4E00\u3002"
12110
- },
12111
- choices: {
12112
- type: "array",
12113
- description: "\u5907\u9009\u9879\u5217\u8868\uFF0C\u6E32\u67D3\u4E3A\u6309\u94AE\u4F9B\u7528\u6237\u70B9\u51FB\u3002",
12114
- items: {
12115
- type: "object",
12116
- properties: {
12117
- id: {
12118
- type: "string",
12119
- description: "\u9009\u9879\u6807\u8BC6\u3002"
12120
- },
12121
- label: {
12122
- type: "string",
12123
- description: "\u6309\u94AE\u6587\u5B57\uFF0C\u5982\u201C\u751F\u6210\u672C\u5468\u5468\u62A5\u201D\u3002"
12124
- },
12125
- detail: {
12126
- type: "string",
12127
- description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
12128
- },
12129
- userMessage: {
12130
- type: "string",
12131
- description: "\u70B9\u51FB\u540E\u4F5C\u4E3A\u4E0B\u4E00\u6761 user \u6D88\u606F\u53D1\u9001\u7684\u6587\u6848\uFF08\u7559\u7A7A\u9ED8\u8BA4\u7528 label\uFF09\u3002"
12132
- }
12133
- },
12134
- required: ["id", "label"]
12135
- }
12136
- },
12137
- questions: {
12138
- type: "array",
12139
- description: "\u591A\u95EE\u9898\u6A21\u5F0F\uFF08\u591A tab \u6E32\u67D3\uFF0C\u4E0E question+choices \u4E8C\u9009\u4E00\uFF09\u3002",
12140
- items: {
12141
- type: "object",
12142
- properties: {
12143
- id: {
12144
- type: "string",
12145
- description: "\u95EE\u9898\u6807\u8BC6\u3002"
12146
- },
12147
- header: {
12148
- type: "string",
12149
- description: "\u591A\u95EE\u9898 tab \u680F\u663E\u793A\u7684\u77ED\u6807\u7B7E\uFF08\u226412 \u5B57\u7B26\uFF0C\u5982\u201C\u683C\u5F0F/\u8BED\u8A00/\u8303\u56F4\u201D\uFF09\uFF0C\u7F3A\u7701\u7528 Qn\u3002"
12150
- },
12151
- question: {
12152
- type: "string",
12153
- description: "\u95EE\u9898\u6587\u6848\u3002"
12154
- },
12155
- choices: {
12156
- type: "array",
12157
- description: "\u8BE5\u95EE\u9898\u7684\u5907\u9009\u9879\u3002",
12158
- items: {
12159
- type: "object",
12160
- properties: {
12161
- id: { type: "string" },
12162
- label: { type: "string" },
12163
- detail: {
12164
- type: "string",
12165
- description: "\u7B80\u77ED\u8865\u5145\uFF08\u5EFA\u8BAE\u4E00\u53E5\u8BDD\uFF09\uFF0C\u957F\u89E3\u91CA\u5199\u8FDB\u8C03\u7528\u524D\u7684\u56DE\u590D\u6587\u672C\u3002"
12166
- },
12167
- userMessage: { type: "string" }
12168
- },
12169
- required: ["id", "label"]
12170
- }
12171
- },
12172
- multiSelect: {
12173
- type: "boolean",
12174
- description: "\u5141\u8BB8\u591A\u9009\uFF0C\u9ED8\u8BA4 false\u3002"
12175
- },
12176
- allowOther: {
12177
- type: "boolean",
12178
- description: "\u663E\u793A\u201C\u5176\u4ED6\u201D\u81EA\u7531\u8F93\u5165\u884C\uFF0C\u9ED8\u8BA4 true\u3002"
12179
- },
12180
- required: {
12181
- type: "boolean",
12182
- description: "\u662F\u5426\u5FC5\u987B\u56DE\u7B54\u624D\u80FD\u63D0\u4EA4\uFF0C\u9ED8\u8BA4 true\u3002"
12183
- }
12184
- },
12185
- required: ["id", "question", "choices"]
12186
- }
12187
- },
12188
- blocking: {
12189
- type: "boolean",
12190
- description: "\u662F\u5426\u7B49\u5F85\u7528\u6237\u9009\u62E9\u540E\u518D\u7EE7\u7EED\u6D41\u7A0B\uFF0C\u9ED8\u8BA4 true\u3002"
12191
- }
12192
- },
12193
- required: []
12194
- }
12195
- };
12196
- function validateChoiceList(choices, scopeLabel) {
12197
- const seenChoiceIds = /* @__PURE__ */ new Set();
12198
- for (let index = 0; index < choices.length; index += 1) {
12199
- const entry = choices[index];
12200
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12201
- return `${scopeLabel}.choices[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12202
- }
12203
- const choice = entry;
12204
- if (typeof choice.label !== "string" || !choice.label.trim()) {
12205
- return `${scopeLabel}.choices[${index}].label \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12206
- }
12207
- if (choice.id !== void 0 && typeof choice.id !== "string") {
12208
- return `${scopeLabel}.choices[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12209
- }
12210
- const choiceId = typeof choice.id === "string" ? choice.id.trim() : "";
12211
- if (choiceId && seenChoiceIds.has(choiceId)) {
12212
- return `${scopeLabel} \u5185\u7684\u9009\u9879 id "${choiceId}" \u91CD\u590D\u3002`;
12213
- }
12214
- if (choiceId) seenChoiceIds.add(choiceId);
12215
- }
12216
- return null;
12217
- }
12218
- function validateAskChoiceInput(raw) {
12219
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
12220
- return "ask_user \u9700\u8981\u4E00\u4E2A\u5BF9\u8C61\u53C2\u6570\u3002";
12221
- }
12222
- const args = raw;
12223
- if (args.blocking !== void 0 && typeof args.blocking !== "boolean") {
12224
- return "ask_user \u7684 blocking \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002";
12225
- }
12226
- const rawQuestions = args.questions;
12227
- if (rawQuestions !== void 0 && !Array.isArray(rawQuestions)) {
12228
- return "ask_user \u7684 questions \u5FC5\u987B\u662F\u6570\u7EC4\u3002";
12229
- }
12230
- const questions = rawQuestions;
12231
- if (questions && questions.length > 0) {
12232
- const seenQuestionIds = /* @__PURE__ */ new Set();
12233
- for (let index = 0; index < questions.length; index += 1) {
12234
- const entry = questions[index];
12235
- if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
12236
- return `questions[${index}] \u5FC5\u987B\u662F\u5BF9\u8C61\u3002`;
12237
- }
12238
- const question = entry;
12239
- if (question.id !== void 0 && typeof question.id !== "string") {
12240
- return `questions[${index}].id \u5FC5\u987B\u662F\u5B57\u7B26\u4E32\u3002`;
12241
- }
12242
- const questionId = typeof question.id === "string" ? question.id.trim() : "";
12243
- if (questionId && seenQuestionIds.has(questionId)) {
12244
- return `\u95EE\u9898 id "${questionId}" \u91CD\u590D\u3002`;
12245
- }
12246
- if (questionId) seenQuestionIds.add(questionId);
12247
- if (typeof question.question !== "string" || !question.question.trim()) {
12248
- return `questions[${index}].question \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32\u3002`;
12249
- }
12250
- for (const flag of ["multiSelect", "allowOther", "required"]) {
12251
- if (question[flag] !== void 0 && typeof question[flag] !== "boolean") {
12252
- return `questions[${index}].${flag} \u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`;
12253
- }
12254
- }
12255
- const choices = question.choices;
12256
- if (!Array.isArray(choices)) {
12257
- return `questions[${index}].choices \u5FC5\u987B\u662F\u6570\u7EC4\u3002`;
12258
- }
12259
- const choiceError = validateChoiceList(choices, `questions[${index}]`);
12260
- if (choiceError) return choiceError;
12261
- if (choices.length === 0 && question.allowOther === false) {
12262
- return `questions[${index}] \u6CA1\u6709\u4EFB\u4F55\u9009\u9879\u4E14 allowOther \u4E3A false\uFF0C\u7528\u6237\u65E0\u6CD5\u4F5C\u7B54\u3002`;
12263
- }
12264
- }
12265
- return null;
12266
- }
12267
- if (typeof args.question !== "string" || !args.question.trim()) {
12268
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12269
- }
12270
- if (!Array.isArray(args.choices) || args.choices.length === 0) {
12271
- return "ask_user \u9700\u8981 question\uFF08\u975E\u7A7A\u5B57\u7B26\u4E32\uFF09\u4E0E choices\u3002";
12272
- }
12273
- return validateChoiceList(args.choices, "ask_user");
12274
- }
12275
- async function uiAskChoiceFunc(args, _thunkApi) {
12276
- const invalid = validateAskChoiceInput(args);
12277
- if (invalid) throw new Error(invalid);
12278
- const blocking = args?.blocking !== false;
12279
- if (Array.isArray(args?.questions) && args.questions.length > 0) {
12280
- const firstQ = args.questions[0];
12281
- return {
12282
- rawData: {
12283
- type: "ask_user",
12284
- question: firstQ?.question ?? "",
12285
- choices: firstQ?.choices ?? [],
12286
- blocking,
12287
- questions: args.questions
12288
- },
12289
- displayData: args.questions.map((q) => q.question).join(" / ")
12290
- };
12291
- }
12292
- const question = String(args?.question ?? "").trim();
12293
- const choices = Array.isArray(args?.choices) ? args.choices : [];
12294
- if (!question || choices.length === 0) {
12295
- throw new Error("ask_user \u9700\u8981 question+choices \u6216 questions\u3002");
12296
- }
12297
- return {
12298
- rawData: {
12299
- type: "ask_user",
12300
- question,
12301
- choices,
12302
- blocking
12303
- },
12304
- displayData: question
12305
- };
12306
- }
12307
- function parseUiAskChoiceContent(rawContent) {
12308
- const parsed = typeof rawContent === "string" ? (() => {
12309
- try {
12310
- return JSON.parse(rawContent);
12311
- } catch {
12312
- return null;
12313
- }
12314
- })() : rawContent;
12315
- if (!parsed || typeof parsed !== "object") return null;
12316
- if (parsed.type !== "ask_user") return null;
12317
- return parsed;
12318
- }
12319
-
12320
- // packages/ai/policy/personalizationDialog.ts
12321
- var PERSONALIZATION_DIALOG_CATEGORY = "user-overlay-profile";
12322
- var PERSONALIZATION_DIALOG_EXTRA_TOOLS = [
12323
- "ask_user",
12324
- "updateUserPreferenceProfile"
12325
- ];
12326
- var buildPersonalizationRuntimeOptions = (runtimeOptions) => ({
12327
- ...runtimeOptions,
12328
- extraTools: Array.from(
12329
- /* @__PURE__ */ new Set([
12330
- ...runtimeOptions?.extraTools ?? [],
12331
- ...PERSONALIZATION_DIALOG_EXTRA_TOOLS
12332
- ])
12333
- )
12334
- });
12335
- var buildPersonalizationDialogPolicyContext = () => [
12336
- "\u5F53\u524D\u5BF9\u8BDD\u662F\u201C\u7528\u6237\u4E2A\u6027\u5316\u8BBE\u7F6E\u201D\u6A21\u5F0F\uFF0C\u4E0D\u662F\u666E\u901A\u95F2\u804A\u3002",
12337
- "\u4F60\u7684\u76EE\u6807\u662F\u7528\u7B80\u77ED\u5BF9\u8BDD\u5E2E\u52A9\u7528\u6237\u786E\u8BA4 tone\u3001knowledge_capture\u3001space_context \u8FD9\u4E09\u9879\u504F\u597D\u3002",
12338
- "\u5982\u679C\u7528\u6237\u5148\u4ECB\u7ECD\u81EA\u5DF1\u3001\u5DE5\u4F5C\u65B9\u5F0F\u6216\u957F\u671F\u6C9F\u901A\u504F\u597D\uFF0C\u8BF7\u628A\u8FD9\u4E9B\u53EF\u590D\u7528\u4FE1\u606F\u6574\u7406\u6210\u7B80\u6D01\u7684 globalPrompt \u8349\u6848\uFF0C\u5E76\u5728\u7528\u6237\u786E\u8BA4\u540E\u901A\u8FC7 updateUserPreferenceProfile \u4FDD\u5B58\u3002",
12339
- "\u4F18\u5148\u4E00\u6B21\u53EA\u95EE\u4E00\u4E2A\u95EE\u9898\uFF1B\u5F53\u5B58\u5728\u6E05\u6670\u4E92\u65A5\u9009\u9879\u65F6\uFF0C\u4F18\u5148\u8C03\u7528 ask_user\u3002",
12340
- "\u6536\u96C6\u5230\u8DB3\u591F\u4FE1\u606F\u540E\uFF0C\u8C03\u7528 updateUserPreferenceProfile \u4FDD\u5B58\u7ED3\u679C\uFF0C\u7136\u540E\u7528\u81EA\u7136\u8BED\u8A00\u603B\u7ED3\u5DF2\u4FDD\u5B58\u7684\u8BBE\u7F6E\u3002",
12341
- "\u4FDD\u5B58\u5B8C\u6210\u540E\uFF0C\u8981\u63D0\u9192\u7528\u6237\uFF1A\u4EE5\u540E\u4E5F\u53EF\u4EE5\u5728\u8BBE\u7F6E\u91CC\u4FEE\u6539 globalPrompt \u548C\u8FD9\u4E9B\u504F\u597D\uFF0C\u6216\u8005\u518D\u6B21\u6253\u5F00\u8FD9\u4E2A\u5165\u53E3\u7EE7\u7EED\u8C03\u6574\u3002",
12342
- "\u4E2A\u6027\u5316\u8BBE\u7F6E\u5B8C\u6210\u540E\uFF0C\u53EF\u987A\u624B\u5F15\u5BFC\u7528\u6237\u5C1D\u8BD5 1 \u5230 2 \u4E2A\u76F8\u5173\u529F\u80FD\uFF0C\u4F8B\u5982\u9996\u9875\u5FEB\u6377\u5BF9\u8BDD\u3001\u521B\u5EFA\u7B14\u8BB0\u3001\u521B\u5EFA AI\uFF0C\u4F46\u4E0D\u8981\u4E00\u6B21\u63A8\u8350\u592A\u591A\u3002",
12343
- "\u9664\u975E\u7528\u6237\u660E\u786E\u8981\u6C42\uFF0C\u5426\u5219\u4E0D\u8981\u521B\u5EFA\u6587\u6863\uFF0C\u4E0D\u8981\u521B\u5EFA\u6216\u4FEE\u6539\u4EFB\u4F55 agent\u3002"
12344
- ].join("\n");
12345
-
12346
12200
  // packages/chat/dialog/dialogAgentPolicy.ts
12347
12201
  var resolveDialogAgentMode = (dialog) => {
12348
12202
  if (dialog?.agentMode === "auto") return "auto";
@@ -12378,7 +12232,7 @@ function resolveHandleSendMessageContext(input) {
12378
12232
  return {
12379
12233
  agentKeyToUse: resolveDialogRuntimeAgentKey(dialogConfig, targetAgentKey),
12380
12234
  agentConfigToUse: resolveDialogRuntimeAgentConfig(dialogConfig, targetAgentKey) ?? void 0,
12381
- effectiveRuntimeOptions: dialogConfig.category === PERSONALIZATION_DIALOG_CATEGORY ? buildPersonalizationRuntimeOptions(runtimeOptions ?? {}) : runtimeOptions
12235
+ effectiveRuntimeOptions: runtimeOptions
12382
12236
  };
12383
12237
  }
12384
12238
 
@@ -14619,7 +14473,7 @@ var messageSlice = createSliceWithThunks({
14619
14473
  runtimeOptions: args.runtimeOptions
14620
14474
  });
14621
14475
  if (agentKeyToUse) {
14622
- const { streamAgentChatTurn } = await import("./agentSlice-UG76KEBH.js");
14476
+ const { streamAgentChatTurn } = await import("./agentSlice-XJNKE3PG.js");
14623
14477
  await dispatch(
14624
14478
  streamAgentChatTurn({
14625
14479
  agentKey: agentKeyToUse,
@@ -15690,7 +15544,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15690
15544
  metadataReadFailures
15691
15545
  });
15692
15546
  if (!plan.deleteCandidates.length) return plan;
15693
- const { deleteFileAction } = await import("./deleteFile-6URDHYRB.js");
15547
+ const { deleteFileAction } = await import("./deleteFile-TQSONMVU.js");
15694
15548
  for (const candidate of plan.deleteCandidates) {
15695
15549
  if (candidate.fileDbKey) {
15696
15550
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15752,7 +15606,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15752
15606
  }
15753
15607
  if (isCurrentDialog) {
15754
15608
  await thunkApi.dispatch(resetMsgs());
15755
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-5EQ2A6LY.js");
15609
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-QAKYN4DE.js");
15756
15610
  dispatch(clearPendingAttachments2());
15757
15611
  }
15758
15612
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15760,39 +15614,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15760
15614
 
15761
15615
  // packages/chat/dialog/dialogSlice.ts
15762
15616
  var runCreateDialogAction = async (args, thunkApi) => {
15763
- const { createDialogAction } = await import("./createDialogAction-EVTOPY7A.js");
15617
+ const { createDialogAction } = await import("./createDialogAction-IAGQJ3LH.js");
15764
15618
  return createDialogAction(args, thunkApi);
15765
15619
  };
15766
15620
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15767
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-PB4QIFQ4.js");
15621
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-IP4LFN3W.js");
15768
15622
  return createAgentAutomationAction(args, thunkApi);
15769
15623
  };
15770
15624
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15771
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-IMIRJRQQ.js");
15625
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-SEWV252V.js");
15772
15626
  return updateDialogTitleAction(args, thunkApi);
15773
15627
  };
15774
15628
  var runAddDialogAgentAction = async (args, thunkApi) => {
15775
- const { addDialogAgentAction } = await import("./addDialogAgentAction-EVYBGTXB.js");
15629
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-KKDVAMW3.js");
15776
15630
  return addDialogAgentAction(args, thunkApi);
15777
15631
  };
15778
15632
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15779
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5QE2O2B.js");
15633
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-CX3OAH4Y.js");
15780
15634
  return removeDialogAgentAction(args, thunkApi);
15781
15635
  };
15782
15636
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15783
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-GJJDUSGJ.js");
15637
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-3ABWPPXR.js");
15784
15638
  return setPrimaryDialogAgentAction(args, thunkApi);
15785
15639
  };
15786
15640
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15787
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-IIJBPND3.js");
15641
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-G6EZRKCQ.js");
15788
15642
  return switchDialogAgentAction(args, thunkApi);
15789
15643
  };
15790
15644
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15791
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-72L27ERM.js");
15645
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-CGM67EEQ.js");
15792
15646
  return setDialogExtraReferencesAction(args, thunkApi);
15793
15647
  };
15794
15648
  var runHandleSendMessageAction = async (args, thunkApi) => {
15795
- const { handleSendMessageAction } = await import("./handleSendMessageAction-LNT7SZND.js");
15649
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-HKIW4ZNO.js");
15796
15650
  return handleSendMessageAction(args, thunkApi);
15797
15651
  };
15798
15652
  function clearDialogState() {
@@ -15805,7 +15659,7 @@ var createPageAndAddReference = createAsyncThunk(
15805
15659
  async (payload, { dispatch, getState, rejectWithValue }) => {
15806
15660
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15807
15661
  try {
15808
- const { createDocState } = await import("./docStore-OKKIKLT3.js");
15662
+ const { createDocState } = await import("./docStore-GIVRT7TQ.js");
15809
15663
  const pageKey = await createDocState(
15810
15664
  { slateData, title },
15811
15665
  { dispatch, getState }
@@ -15978,10 +15832,6 @@ export {
15978
15832
  resolveAgentContextWindow,
15979
15833
  isAgentRunStatusNormal,
15980
15834
  isAgentRunStartFailureStatus,
15981
- uiAskChoiceFunctionSchema,
15982
- validateAskChoiceInput,
15983
- uiAskChoiceFunc,
15984
- parseUiAskChoiceContent,
15985
15835
  normalizeRunCompletionShape,
15986
15836
  createTurnRequest,
15987
15837
  runtime_default,
@@ -15997,9 +15847,6 @@ export {
15997
15847
  toast,
15998
15848
  updateDialogSummaryAction,
15999
15849
  buildDatabaseFileContentUrl,
16000
- normalizeAppRouteId,
16001
- PERSONALIZATION_DIALOG_CATEGORY,
16002
- buildPersonalizationDialogPolicyContext,
16003
15850
  resolveDialogRuntimeAgentKey,
16004
15851
  resolveHandleSendMessageContext,
16005
15852
  estimateMissingUsage,