nolo-cli 0.30.0-alpha.2 → 0.30.0-alpha.20

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 (102) hide show
  1. package/{_executeModel-VBHHG7LT.js → _executeModel-LW6XMEQD.js} +29 -28
  2. package/{action-FENWPT3C.js → action-HI3VRQLP.js} +7 -7
  3. package/{addContentAction-Z5S5ZQ7I.js → addContentAction-NCURJ6PK.js} +6 -6
  4. package/{addDialogAgentAction-VUNVD2XR.js → addDialogAgentAction-RCY4ECF4.js} +5 -5
  5. package/{agentDeleteCommand-LLGZXUYJ.js → agentDeleteCommand-QQPG6AQH.js} +23 -22
  6. package/{agentEmailCommands-LC2FPN6G.js → agentEmailCommands-A2B3LAYP.js} +35 -34
  7. package/{agentListCommands-A6OBQ3QX.js → agentListCommands-W7I62AVC.js} +25 -24
  8. package/{agentMachineCommands-4O4Q5B5X.js → agentMachineCommands-JKL7NOXS.js} +23 -22
  9. package/{agentRecordCommands-W22RIQRV.js → agentRecordCommands-AIAB73R4.js} +34 -33
  10. package/{agentRunCommand-V4OBU4FB.js → agentRunCommand-C4AYZUAT.js} +34 -33
  11. package/{agentRunControl-AKBN2366.js → agentRunControl-SCIVRZWX.js} +9 -1
  12. package/{agentRuntimeLocal-I57YSGH4.js → agentRuntimeLocal-DA4COW6A.js} +20 -19
  13. package/{agentSlice-3ZHY7RAO.js → agentSlice-DSOHD3MB.js} +6 -6
  14. package/{appDeleteCommands-DJJF466K.js → appDeleteCommands-EYCHHGBM.js} +24 -23
  15. package/{appDeployCommands-WJZGIOEZ.js → appDeployCommands-AA6N3ZVV.js} +24 -23
  16. package/{appDeployStatusCommands-ICYXUJNO.js → appDeployStatusCommands-2DO4AB5S.js} +24 -23
  17. package/{appGetCommands-UOCWYJPV.js → appGetCommands-JZ5UFPSO.js} +24 -23
  18. package/{appListCommands-EOKWTXPW.js → appListCommands-4DJRONNU.js} +24 -23
  19. package/{authCommand-H5KE7K7K.js → authCommand-3GQR43KB.js} +5 -5
  20. package/{chunk-ZFTCLBEX.js → chunk-2IJAKBK2.js} +3 -1
  21. package/chunk-2K4NDPT5.js +1524 -0
  22. package/{chunk-3RIWR23B.js → chunk-3SCONADU.js} +1 -1
  23. package/{chunk-Q24P6TUS.js → chunk-43EPBPZ2.js} +1 -1
  24. package/{chunk-R5V5G73M.js → chunk-5RDLGLAP.js} +0 -1
  25. package/{chunk-KWKD3BCC.js → chunk-64LVM22D.js} +12 -12
  26. package/{chunk-MEUZFIAJ.js → chunk-65677FXQ.js} +1 -1
  27. package/{chunk-G6VITLCZ.js → chunk-6EWJFERV.js} +2 -2
  28. package/{chunk-HI7QZNWX.js → chunk-6M5ICJPJ.js} +4 -4
  29. package/{chunk-4SAV7BD7.js → chunk-7KNERA53.js} +53 -15
  30. package/{chunk-DCWBP2O7.js → chunk-7WNY3WEK.js} +10 -10
  31. package/{chunk-FS5TTXPS.js → chunk-AK7XNO3W.js} +3 -3
  32. package/{chunk-IZ3CBMD5.js → chunk-ATK5WJOA.js} +4 -4
  33. package/{chunk-HLG6GAUD.js → chunk-E2N2B4V4.js} +1 -1
  34. package/{chunk-YWGSCF37.js → chunk-E3APEOIM.js} +1 -1
  35. package/{chunk-GAGUBI42.js → chunk-EKVRQQWQ.js} +5 -5
  36. package/{chunk-MMCVBEAD.js → chunk-EUTKGPCR.js} +41 -31
  37. package/{chunk-G5JHHUAK.js → chunk-F3MP7CP6.js} +1 -1
  38. package/{chunk-446VANPP.js → chunk-G5GVZAXF.js} +4 -4
  39. package/{chunk-QLV2GKU5.js → chunk-HF5JU6H6.js} +7 -5
  40. package/{chunk-UTQZ73QQ.js → chunk-JSE3MHSM.js} +1 -1
  41. package/{chunk-DKRT67FG.js → chunk-KGEVMUMI.js} +3 -3
  42. package/{chunk-66O5MZYH.js → chunk-KVT5HYP4.js} +1 -1
  43. package/{chunk-56IUA7RU.js → chunk-L5K5RQSD.js} +1 -1
  44. package/{chunk-A4JDTA5T.js → chunk-LAXMH7JY.js} +6 -6
  45. package/chunk-MZWET5XZ.js +7889 -0
  46. package/{chunk-SZ5CBYMZ.js → chunk-O2C4C6KG.js} +2 -2
  47. package/{chunk-SWOTB2TX.js → chunk-OISWAB2K.js} +47 -33
  48. package/{chunk-2XM5KUNE.js → chunk-P554G7UT.js} +2 -2
  49. package/{chunk-GVKTKT3O.js → chunk-PDOJZ63B.js} +3 -3
  50. package/{chunk-L3VQOVKK.js → chunk-PDXNQKOK.js} +4 -4
  51. package/{chunk-CV6I4HBA.js → chunk-PTHDLIRB.js} +1 -1
  52. package/{chunk-T3Y5EMJS.js → chunk-SFWZUTCI.js} +1 -1
  53. package/{chunk-W2YKDXT7.js → chunk-T42XB7CG.js} +1 -1
  54. package/{chunk-XD5NQEOH.js → chunk-UDA3ZYLW.js} +1 -1
  55. package/{chunk-OYK7PA5U.js → chunk-UNTKW3PH.js} +6 -6
  56. package/{chunk-7CD24PU4.js → chunk-UPXS3PUC.js} +5 -5
  57. package/{chunk-YLADSPDU.js → chunk-V54H24CQ.js} +2 -2
  58. package/{chunk-UKC5HU2C.js → chunk-W4UIMWYV.js} +5 -5
  59. package/chunk-WJBS5LLH.js +5558 -0
  60. package/{chunk-DI6MXJK5.js → chunk-X4H5KOUK.js} +16 -14
  61. package/{chunk-KW47OSRJ.js → chunk-XAJUBTKJ.js} +50 -70
  62. package/{chunk-TJYWZ3LO.js → chunk-YHGHADBQ.js} +2 -2
  63. package/{chunk-BOL2D2JW.js → chunk-ZJ2WITOO.js} +2 -2
  64. package/{chunk-DWQNDGO7.js → chunk-ZJH3LKEW.js} +2 -2
  65. package/{createAgentAutomationAction-3GMH6ORX.js → createAgentAutomationAction-3IA4MYO3.js} +12 -11
  66. package/{createDialogAction-R5MCL4RE.js → createDialogAction-45X273ND.js} +13 -12
  67. package/{createPageAction-QYTG656R.js → createPageAction-2B2R7D77.js} +12 -11
  68. package/{db-IPCJ43PW.js → db-6DPSJ6WT.js} +4 -2
  69. package/{dbSlice-OBV7VFCF.js → dbSlice-BBL3PEVW.js} +5 -5
  70. package/{deleteFile-AC45HYSM.js → deleteFile-RJTEPOT4.js} +3 -3
  71. package/{dialogCommands-NUQGIXVZ.js → dialogCommands-5M2Z7QVJ.js} +24 -23
  72. package/{dialogSlice-CFDECXEU.js → dialogSlice-KYF3FAOK.js} +11 -11
  73. package/{docCreateCommands-UNFCXB5N.js → docCreateCommands-LBOVRLYF.js} +23 -22
  74. package/{docDeleteCommands-NG5IVKE5.js → docDeleteCommands-VK5GIBEA.js} +24 -23
  75. package/{docReadCommands-6J7MUUX6.js → docReadCommands-E3SQN6LN.js} +23 -22
  76. package/{docStore-MZZWJM4F.js → docStore-2RB2S465.js} +13 -12
  77. package/{docUpdateCommands-6AW3VZOX.js → docUpdateCommands-YF6YOQDR.js} +23 -22
  78. package/{getPricing-XQYSSVV6.js → getPricing-QO5TYNCK.js} +2 -2
  79. package/{handleSendMessageAction-IU2QNTLM.js → handleSendMessageAction-XCOWKRQF.js} +11 -11
  80. package/index.js +63 -63
  81. package/{localDialogRead-P72W2U2R.js → localDialogRead-3DBXVYXS.js} +1 -1
  82. package/{machineCommands-Z2QEWTHZ.js → machineCommands-75YQ7FO3.js} +33 -32
  83. package/{machineWsRunDispatch-SJTYHZHN.js → machineWsRunDispatch-NS37M6VP.js} +33 -32
  84. package/package.json +1 -1
  85. package/{read-QK7ZRX6G.js → read-64OQDO3I.js} +3 -3
  86. package/{readDocTool-EYDMVRBL.js → readDocTool-MXM3T6PE.js} +1 -1
  87. package/{readlineWorkspace-BGKPABK4.js → readlineWorkspace-MJMNMSOD.js} +37 -36
  88. package/{removeDialogAgentAction-TBW3UZJW.js → removeDialogAgentAction-NEKVAMSH.js} +7 -7
  89. package/{runAgentClientLoop-N3YDLTMS.js → runAgentClientLoop-JPLRHUUZ.js} +25 -24
  90. package/{setDialogExtraReferencesAction-Q3ANF2NR.js → setDialogExtraReferencesAction-WTOHQDIV.js} +6 -6
  91. package/{setPrimaryDialogAgentAction-FQ5R3EFJ.js → setPrimaryDialogAgentAction-LDJOYC4F.js} +7 -7
  92. package/{settingSlice-JKKV2T7O.js → settingSlice-4M37TN7V.js} +6 -6
  93. package/{spaceCommands-R6AEQNLG.js → spaceCommands-RNJYLPTF.js} +207 -25
  94. package/{spaceSlice-MCH7RLLP.js → spaceSlice-C4QIRTSA.js} +12 -11
  95. package/{streamAgentChatTurn-Q4U2CVMI.js → streamAgentChatTurn-TP7XSPS2.js} +30 -28
  96. package/{switchDialogAgentAction-QQGVE4SL.js → switchDialogAgentAction-XVWGKR2Z.js} +5 -5
  97. package/{tableCommands-PRJNWN6Q.js → tableCommands-RJZ3V4TF.js} +1 -1
  98. package/{tools-Y3UBLLYW.js → tools-N6DZQQXE.js} +20 -19
  99. package/{tuiSummaryLlmCaller-4474IBTI.js → tuiSummaryLlmCaller-LBL5NS77.js} +3 -3
  100. package/{updateDialogTitleAction-3J7GH67I.js → updateDialogTitleAction-ANZ4DQ5T.js} +15 -13
  101. package/chunk-THTAR67C.js +0 -16338
  102. package/chunk-VSTUQGLT.js +0 -4937
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  readDbRecord,
3
3
  writeAgentRecord
4
- } from "./chunk-56IUA7RU.js";
4
+ } from "./chunk-L5K5RQSD.js";
5
5
  import {
6
6
  createSpaceKey
7
- } from "./chunk-YLADSPDU.js";
7
+ } from "./chunk-V54H24CQ.js";
8
8
  import {
9
9
  buildSkillSummaryMarker
10
10
  } from "./chunk-VF4K2QE6.js";
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  sortSafeAgentSummaries,
19
19
  toSafeAgentSummary
20
- } from "./chunk-UTQZ73QQ.js";
20
+ } from "./chunk-JSE3MHSM.js";
21
21
  import {
22
22
  getUserDataItemTimestamp,
23
23
  mergeAndDedupUserData
@@ -43,19 +43,19 @@ import {
43
43
  resolveNoloDialogInput,
44
44
  toolRunUpdated,
45
45
  verifyNoloDialogSubjectRefQuery
46
- } from "./chunk-OYK7PA5U.js";
46
+ } from "./chunk-UNTKW3PH.js";
47
47
  import {
48
48
  createDocState
49
- } from "./chunk-FS5TTXPS.js";
49
+ } from "./chunk-AK7XNO3W.js";
50
50
  import {
51
51
  setDialogExtraReferencesAction
52
- } from "./chunk-Q24P6TUS.js";
52
+ } from "./chunk-43EPBPZ2.js";
53
53
  import {
54
54
  readDocFunc,
55
55
  readDocFunctionSchema,
56
56
  readPageFunc,
57
57
  readPageFunctionSchema
58
- } from "./chunk-G5JHHUAK.js";
58
+ } from "./chunk-F3MP7CP6.js";
59
59
  import {
60
60
  slateToSimplifiedMarkdown
61
61
  } from "./chunk-SWYMCHM7.js";
@@ -69,7 +69,7 @@ import {
69
69
  } from "./chunk-44HACRCK.js";
70
70
  import {
71
71
  createDialogAction
72
- } from "./chunk-QLV2GKU5.js";
72
+ } from "./chunk-HF5JU6H6.js";
73
73
  import {
74
74
  markdownToSlate
75
75
  } from "./chunk-3LY4F7SV.js";
@@ -77,39 +77,40 @@ import {
77
77
  addCategory,
78
78
  addContentToSpace,
79
79
  addRow,
80
- buildDatabaseFileContentUrl,
81
80
  createTable,
82
81
  deleteDbKey,
83
82
  deleteSpace,
84
83
  fetchUserData,
85
84
  i18nBaseConfig,
86
- incrementFailedSteps,
87
- incrementStepsExecuted,
88
85
  initReactI18next,
89
86
  instance,
90
87
  loadTableRows,
88
+ selectAllMemberSpaces,
89
+ selectCurrentSpaceId,
90
+ updateContentCategory,
91
+ updateContentTitle
92
+ } from "./chunk-MZWET5XZ.js";
93
+ import {
94
+ buildDatabaseFileContentUrl,
95
+ incrementFailedSteps,
96
+ incrementStepsExecuted,
91
97
  normalizeAppRouteId,
92
98
  resolveDialogRuntimeAgentKey,
93
- selectAllMemberSpaces,
94
99
  selectAllMsgs,
95
100
  selectCurrentDialogConfig,
96
101
  selectCurrentDialogId,
97
- selectCurrentSpaceId,
98
- selectCurrentUserBalance,
99
102
  selectMsgById,
100
103
  setWorkflow,
101
104
  uiAskChoiceFunc,
102
105
  uiAskChoiceFunctionSchema,
103
- updateContentCategory,
104
- updateContentTitle,
105
106
  updateStep
106
- } from "./chunk-THTAR67C.js";
107
+ } from "./chunk-WJBS5LLH.js";
107
108
  import {
108
109
  createAgent,
109
110
  runLlm,
110
111
  streamAgentChatTurn,
111
112
  updateAgent
112
- } from "./chunk-GAGUBI42.js";
113
+ } from "./chunk-EKVRQQWQ.js";
113
114
  import {
114
115
  toErrorMessage
115
116
  } from "./chunk-HNMXYYJR.js";
@@ -125,10 +126,10 @@ import {
125
126
  addContentAction,
126
127
  createSpaceKey,
127
128
  normalizeSpaceId
128
- } from "./chunk-YLADSPDU.js";
129
+ } from "./chunk-V54H24CQ.js";
129
130
  import {
130
131
  DEFAULT_MODEL
131
- } from "./chunk-VSTUQGLT.js";
132
+ } from "./chunk-2K4NDPT5.js";
132
133
  import {
133
134
  slateToRenderMarkdown
134
135
  } from "./chunk-63W5N6P3.js";
@@ -137,14 +138,14 @@ import {
137
138
  } from "./chunk-VF4K2QE6.js";
138
139
  import {
139
140
  shareResourceAction
140
- } from "./chunk-DKRT67FG.js";
141
+ } from "./chunk-KGEVMUMI.js";
141
142
  import {
142
143
  AGENT_UPDATE_FIELD_NAMES,
143
144
  normalizeAgentUpdateFieldList,
144
145
  selectAutoApproveSelfUpdateFields,
145
146
  selectCurrentServer,
146
147
  selectSyncServers
147
- } from "./chunk-446VANPP.js";
148
+ } from "./chunk-G5GVZAXF.js";
148
149
  import {
149
150
  asRecordOrEmpty
150
151
  } from "./chunk-KX6YBIHG.js";
@@ -156,13 +157,13 @@ import {
156
157
  selectById,
157
158
  toTimestampMs,
158
159
  write
159
- } from "./chunk-A4JDTA5T.js";
160
+ } from "./chunk-LAXMH7JY.js";
160
161
  import {
161
162
  asTrimmedLowercaseString
162
163
  } from "./chunk-QSJ3HFEF.js";
163
164
  import {
164
165
  readAction
165
- } from "./chunk-DWQNDGO7.js";
166
+ } from "./chunk-ZJH3LKEW.js";
166
167
  import {
167
168
  extractCustomId
168
169
  } from "./chunk-TOW4E763.js";
@@ -171,12 +172,13 @@ import {
171
172
  getRuntimeServerContext,
172
173
  noloWriteRequest,
173
174
  selectIdentityToken,
175
+ selectIdentityUserBalance,
174
176
  selectIdentityUserId,
175
177
  selectRuntimeSnapshot
176
- } from "./chunk-ZFTCLBEX.js";
178
+ } from "./chunk-2IJAKBK2.js";
177
179
  import {
178
180
  isAbortError
179
- } from "./chunk-R5V5G73M.js";
181
+ } from "./chunk-5RDLGLAP.js";
180
182
  import {
181
183
  API_ENDPOINTS
182
184
  } from "./chunk-LCBAMY2M.js";
@@ -818,6 +820,7 @@ var ai_locale_default = {
818
820
  basicInfo: "Basic Info",
819
821
  references: "References",
820
822
  toolSelection: "Skills & Tools",
823
+ knowledgeTools: "Knowledge & Tools",
821
824
  publishSettings: "Publish Settings",
822
825
  advancedSettings: "Model Settings",
823
826
  memory: "Memory"
@@ -1208,6 +1211,7 @@ var ai_locale_default = {
1208
1211
  basicInfo: "\u57FA\u672C\u4FE1\u606F",
1209
1212
  references: "\u77E5\u8BC6\u4E0E\u6307\u4EE4",
1210
1213
  toolSelection: "\u6280\u80FD\u4E0E\u5DE5\u5177",
1214
+ knowledgeTools: "\u77E5\u8BC6\u4E0E\u5DE5\u5177",
1211
1215
  publishSettings: "\u53D1\u5E03\u8BBE\u7F6E",
1212
1216
  advancedSettings: "\u6A21\u578B\u8BBE\u7F6E",
1213
1217
  memory: "\u8BB0\u5FC6"
@@ -1224,6 +1228,7 @@ var ai_locale_default = {
1224
1228
  customProviderUrlPlaceholder: "\u4F8B\u5982\uFF1Ahttps://api.example.com/v1/chat/completions",
1225
1229
  apiKey: "API\u5BC6\u94A5",
1226
1230
  crossDeviceKey: "\u8DE8\u8BBE\u5907\u4F7F\u7528\u6B64\u5BC6\u94A5",
1231
+ prompt: "\u7CFB\u7EDF\u63D0\u793A\u8BCD",
1227
1232
  promptPlaceholder: "\u5B9A\u4E49AI\u7684\u884C\u4E3A\u3001\u89D2\u8272\u548C\u4E2A\u6027...",
1228
1233
  greeting: "\u95EE\u5019\u8BED",
1229
1234
  introduction: "\u81EA\u6211\u4ECB\u7ECD",
@@ -1597,6 +1602,7 @@ var ai_locale_default = {
1597
1602
  basicInfo: "\u57FA\u672C\u8CC7\u8A0A",
1598
1603
  references: "\u77E5\u8B58\u8207\u6307\u4EE4",
1599
1604
  toolSelection: "\u6280\u80FD\u8207\u5DE5\u5177",
1605
+ knowledgeTools: "\u77E5\u8B58\u8207\u5DE5\u5177",
1600
1606
  publishSettings: "\u767C\u5E03\u8A2D\u5B9A",
1601
1607
  advancedSettings: "\u6A21\u578B\u8A2D\u5B9A",
1602
1608
  memory: "\u8A18\u61B6"
@@ -1613,6 +1619,7 @@ var ai_locale_default = {
1613
1619
  customProviderUrlPlaceholder: "\u4F8B\u5982\uFF1Ahttps://api.example.com/v1/chat/completions",
1614
1620
  apiKey: "API\u91D1\u9470",
1615
1621
  crossDeviceKey: "\u8DE8\u88DD\u7F6E\u4F7F\u7528\u6B64\u91D1\u9470",
1622
+ prompt: "\u7CFB\u7D71\u63D0\u793A\u8A5E",
1616
1623
  promptPlaceholder: "\u5B9A\u7FA9AI\u7684\u884C\u70BA\u3001\u89D2\u8272\u548C\u500B\u6027...",
1617
1624
  greeting: "\u554F\u5019\u8A9E",
1618
1625
  introduction: "\u81EA\u6211\u4ECB\u7D39",
@@ -1908,6 +1915,7 @@ var ai_locale_default = {
1908
1915
  basicInfo: "\u57FA\u672C\u60C5\u5831",
1909
1916
  references: "\u77E5\u8B58\u3068\u6307\u793A",
1910
1917
  toolSelection: "\u6280\u80FD\u3068\u30C4\u30FC\u30EB",
1918
+ knowledgeTools: "\u77E5\u8B58\u3068\u30C4\u30FC\u30EB",
1911
1919
  publishSettings: "\u516C\u958B\u8A2D\u5B9A",
1912
1920
  advancedSettings: "\u30E2\u30C7\u30EB\u8A2D\u5B9A",
1913
1921
  memory: "\u30E1\u30E2\u30EA\u30FC"
@@ -1924,6 +1932,7 @@ var ai_locale_default = {
1924
1932
  customProviderUrlPlaceholder: "\u4F8B\uFF1Ahttps://api.example.com/v1/chat/completions",
1925
1933
  apiKey: "API\u30AD\u30FC",
1926
1934
  crossDeviceKey: "\u4ED6\u30C7\u30D0\u30A4\u30B9\u3067\u4F7F\u7528",
1935
+ prompt: "\u30B7\u30B9\u30C6\u30E0\u30D7\u30ED\u30F3\u30D7\u30C8",
1927
1936
  promptPlaceholder: "AI\u306E\u884C\u52D5\u3001\u5F79\u5272\u3001\u6027\u683C\u3092\u5B9A\u7FA9\u3057\u307E\u3059...",
1928
1937
  greeting: "\u6328\u62F6\u30E1\u30C3\u30BB\u30FC\u30B8",
1929
1938
  introduction: "\u81EA\u5DF1\u7D39\u4ECB",
@@ -10182,7 +10191,7 @@ var appBuilder_locale_default = {
10182
10191
  }
10183
10192
  };
10184
10193
 
10185
- // packages/auth/gptProTier.ts
10194
+ // packages/core/gptProTier.ts
10186
10195
  var ADVANCED_FEATURE_MIN_BALANCE = 19;
10187
10196
  var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
10188
10197
  function isGptProModel(provider, model) {
@@ -11478,7 +11487,7 @@ var buildFormDataFromArgs = async (args) => {
11478
11487
  const trimmedModel = toTrimmedString(model);
11479
11488
  const trimmedProvider = toTrimmedString(provider);
11480
11489
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11481
- const { getModelPricing } = await import("./getPricing-XQYSSVV6.js");
11490
+ const { getModelPricing } = await import("./getPricing-QO5TYNCK.js");
11482
11491
  const normalizedTools = tools ?? [];
11483
11492
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11484
11493
  const formData = {
@@ -11539,7 +11548,7 @@ var findSpaceConfig = (nameOrId, allSpaces) => {
11539
11548
  async function createAgentToolFunc(args, thunkApi) {
11540
11549
  const state = thunkApi.getState();
11541
11550
  const currentUserId = selectIdentityUserId(state);
11542
- const currentBalance = selectCurrentUserBalance(state);
11551
+ const currentBalance = selectIdentityUserBalance(state);
11543
11552
  const allSpaces = selectAllMemberSpaces(state);
11544
11553
  if (!currentUserId) {
11545
11554
  throw new Error("\u521B\u5EFA Agent \u5931\u8D25\uFF1A\u5F53\u524D\u672A\u767B\u5F55\u6216\u7F3A\u5C11 userId\u3002");
@@ -13918,7 +13927,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13918
13927
  const deletedDialogIds = [];
13919
13928
  const deletedDialogKeys = [];
13920
13929
  const failures = [];
13921
- const { deleteDialog } = await import("./dialogSlice-CFDECXEU.js");
13930
+ const { deleteDialog } = await import("./dialogSlice-KYF3FAOK.js");
13922
13931
  for (const target of targets) {
13923
13932
  try {
13924
13933
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -14187,7 +14196,7 @@ var readSkillDocFunctionSchema = {
14187
14196
  }
14188
14197
  };
14189
14198
  async function readSkillDocFunc(args, thunkApi) {
14190
- const { buildReadDocResult } = await import("./readDocTool-EYDMVRBL.js");
14199
+ const { buildReadDocResult } = await import("./readDocTool-MXM3T6PE.js");
14191
14200
  const id = args?.id ?? args?.doc ?? args?.docKey ?? args?.pageKey;
14192
14201
  if (typeof id !== "string" || !id.trim()) {
14193
14202
  throw new Error("readSkillDoc requires id or doc.");
@@ -16747,7 +16756,12 @@ var inlineCssUrlAssets = async (args) => {
16747
16756
  const assetUrl = new URL(rawRef, args.cssUrl).toString();
16748
16757
  if (!replacements.has(rawRef)) {
16749
16758
  const bytes = await fetchBytes(assetUrl, args.fetchImpl);
16750
- const base64 = Buffer.from(bytes).toString("base64");
16759
+ const chunkSize = 32766;
16760
+ let base64 = "";
16761
+ const u8 = new Uint8Array(bytes);
16762
+ for (let i = 0; i < u8.length; i += chunkSize) {
16763
+ base64 += btoa(String.fromCharCode(...u8.subarray(i, i + chunkSize)));
16764
+ }
16751
16765
  replacements.set(
16752
16766
  rawRef,
16753
16767
  `data:${guessMimeType(assetUrl)};base64,${base64}`
@@ -19637,7 +19651,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19637
19651
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19638
19652
  async function addImageContentToSpace(input) {
19639
19653
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19640
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-Z5S5ZQ7I.js")).addContentAction;
19654
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-NCURJ6PK.js")).addContentAction;
19641
19655
  await addContentAction2(
19642
19656
  {
19643
19657
  spaceId: input.spaceId,
@@ -25663,7 +25677,7 @@ async function updateDocFunc(args, thunkApi) {
25663
25677
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
25664
25678
  };
25665
25679
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
25666
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-MZZWJM4F.js");
25680
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-2RB2S465.js");
25667
25681
  if (getDocState().pageKey === id) {
25668
25682
  applyExternalDocUpdate({
25669
25683
  slateData: finalSlateData,
@@ -25688,7 +25702,7 @@ async function updateDocFunc(args, thunkApi) {
25688
25702
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
25689
25703
  async function dispatchSetSettings(thunkApi, changes) {
25690
25704
  const injectedSetSettings = thunkApi?.extra?.setSettings;
25691
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-JKKV2T7O.js")).setSettings;
25705
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-4M37TN7V.js")).setSettings;
25692
25706
  await thunkApi.dispatch(setSettings(changes)).unwrap();
25693
25707
  }
25694
25708
  var updateUserPreferenceProfileFunctionSchema = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveReferenceAssets
3
- } from "./chunk-DCWBP2O7.js";
3
+ } from "./chunk-7WNY3WEK.js";
4
4
  import {
5
5
  fetchReferenceContents
6
- } from "./chunk-7CD24PU4.js";
6
+ } from "./chunk-UPXS3PUC.js";
7
7
 
8
8
  // packages/ai/agent/fetchAgentContexts.ts
9
9
  async function fetchAgentContexts(references, dispatch) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  listUserRecordsFromServers,
3
3
  readLiveDbRecordAfterTombstoneMerge
4
- } from "./chunk-HLG6GAUD.js";
4
+ } from "./chunk-E2N2B4V4.js";
5
5
  import {
6
6
  agentRecordHasConfiguredCredential
7
- } from "./chunk-56IUA7RU.js";
7
+ } from "./chunk-L5K5RQSD.js";
8
8
  import {
9
9
  toSafeAgentSummary
10
- } from "./chunk-UTQZ73QQ.js";
10
+ } from "./chunk-JSE3MHSM.js";
11
11
  import {
12
12
  PUBLIC_AGENT_KEY_PREFIX,
13
13
  isOwnedAgentKey,
@@ -7,11 +7,11 @@ import {
7
7
  listUserRecordsFromServers,
8
8
  readDbRecordFromServers,
9
9
  readLiveDbRecordAfterTombstoneMerge
10
- } from "./chunk-HLG6GAUD.js";
10
+ } from "./chunk-E2N2B4V4.js";
11
11
  import {
12
12
  buildDialogAttachmentPlan,
13
13
  extractFileContentIds
14
- } from "./chunk-THTAR67C.js";
14
+ } from "./chunk-WJBS5LLH.js";
15
15
  import {
16
16
  toErrorMessage
17
17
  } from "./chunk-HNMXYYJR.js";
@@ -25,7 +25,7 @@ import {
25
25
  } from "./chunk-A7GB5UGH.js";
26
26
  import {
27
27
  parsePositiveFiniteNumberOrFallback
28
- } from "./chunk-446VANPP.js";
28
+ } from "./chunk-G5GVZAXF.js";
29
29
  import {
30
30
  asRecordOrEmpty
31
31
  } from "./chunk-KX6YBIHG.js";
@@ -625,7 +625,7 @@ async function tryHttpDialogCandidates(args) {
625
625
  throw Object.assign(new Error("All HTTP dialog reads failed"), { attempts });
626
626
  }
627
627
  async function readDialogFromLocalDb(dialogKey, dialogId, limit, readLocalDialog) {
628
- const reader = readLocalDialog ?? (await import("./localDialogRead-P72W2U2R.js")).readDialogFromLocalDb;
628
+ const reader = readLocalDialog ?? (await import("./localDialogRead-3DBXVYXS.js")).readDialogFromLocalDb;
629
629
  const result = await reader({ dialogKey, dialogId, limit });
630
630
  return {
631
631
  ...result,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  generatePkcePair,
3
3
  startCallbackServer
4
- } from "./chunk-T3Y5EMJS.js";
4
+ } from "./chunk-SFWZUTCI.js";
5
5
  import {
6
6
  toErrorMessage
7
7
  } from "./chunk-HNMXYYJR.js";
@@ -11,7 +11,7 @@ import {
11
11
  getAntigravityUserAgent,
12
12
  normalizeAntigravityTokenPayload,
13
13
  refreshAntigravityToken
14
- } from "./chunk-TJYWZ3LO.js";
14
+ } from "./chunk-YHGHADBQ.js";
15
15
  import {
16
16
  writeOAuthCredential
17
17
  } from "./chunk-JZPBVBIY.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  i18n_default,
3
3
  toolRegistry
4
- } from "./chunk-SWOTB2TX.js";
4
+ } from "./chunk-OISWAB2K.js";
5
5
  import {
6
6
  isNoloHostedProvider
7
7
  } from "./chunk-CAENRKNJ.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-VSTUQGLT.js";
3
+ } from "./chunk-2K4NDPT5.js";
4
4
  import {
5
5
  isPlatformHostedClaudeModel,
6
6
  isPlatformHostedGrokModel
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-DCDL3GC4.js";
7
7
  import {
8
8
  fetchAndCacheTableRows
9
- } from "./chunk-THTAR67C.js";
9
+ } from "./chunk-MZWET5XZ.js";
10
10
  import {
11
11
  toErrorMessage
12
12
  } from "./chunk-HNMXYYJR.js";
@@ -15,13 +15,13 @@ import {
15
15
  } from "./chunk-3ASDTTEI.js";
16
16
  import {
17
17
  nolotusId
18
- } from "./chunk-446VANPP.js";
18
+ } from "./chunk-G5GVZAXF.js";
19
19
  import {
20
20
  asRecordOrEmpty
21
21
  } from "./chunk-KX6YBIHG.js";
22
22
  import {
23
23
  DEFAULT_CODE_PLANNER_EXECUTOR_CANDIDATE_KEYS
24
- } from "./chunk-DWQNDGO7.js";
24
+ } from "./chunk-ZJH3LKEW.js";
25
25
  import {
26
26
  isOwnedAgentKey,
27
27
  ownedAgentKey,
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-TOW4E763.js";
30
30
  import {
31
31
  createAsyncThunk
32
- } from "./chunk-ZFTCLBEX.js";
32
+ } from "./chunk-2IJAKBK2.js";
33
33
  import {
34
34
  asOptionalFiniteNumber
35
35
  } from "./chunk-WWC7I6TA.js";
@@ -1621,7 +1621,7 @@ var executeToolRun = createAsyncThunk(
1621
1621
  if (!executionInput) {
1622
1622
  throw new Error(`ToolRun ${id} has no input to execute with.`);
1623
1623
  }
1624
- const { findToolExecutor } = await import("./tools-Y3UBLLYW.js");
1624
+ const { findToolExecutor } = await import("./tools-N6DZQQXE.js");
1625
1625
  const { executor } = findToolExecutor(run.toolName);
1626
1626
  toolRunStarted({
1627
1627
  id: run.id,
@@ -1645,7 +1645,7 @@ var executeToolRun = createAsyncThunk(
1645
1645
  const latestState = thunkApi.getState();
1646
1646
  const userId = latestState.auth?.currentUser?.userId;
1647
1647
  if (userId) {
1648
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-MCH7RLLP.js");
1648
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-C4QIRTSA.js");
1649
1649
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
1650
1650
  }
1651
1651
  }
@@ -7,20 +7,20 @@ import {
7
7
  import {
8
8
  clipMultilineText,
9
9
  fetchAndSerializeTable
10
- } from "./chunk-OYK7PA5U.js";
10
+ } from "./chunk-UNTKW3PH.js";
11
11
  import {
12
12
  slateToSimplifiedMarkdown
13
13
  } from "./chunk-SWYMCHM7.js";
14
14
  import {
15
15
  estimateTokenCount,
16
16
  fetchAndCacheMessages
17
- } from "./chunk-THTAR67C.js";
17
+ } from "./chunk-WJBS5LLH.js";
18
18
  import {
19
19
  createSpaceKey
20
- } from "./chunk-YLADSPDU.js";
20
+ } from "./chunk-V54H24CQ.js";
21
21
  import {
22
22
  read
23
- } from "./chunk-A4JDTA5T.js";
23
+ } from "./chunk-LAXMH7JY.js";
24
24
  import {
25
25
  asTrimmedLowercaseString
26
26
  } from "./chunk-QSJ3HFEF.js";
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-TOW4E763.js";
30
30
  import {
31
31
  getRuntimeServerContext
32
- } from "./chunk-ZFTCLBEX.js";
32
+ } from "./chunk-2IJAKBK2.js";
33
33
  import {
34
34
  extractCategorizedMentions
35
35
  } from "./chunk-VP4WJWKW.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  patch,
3
3
  read
4
- } from "./chunk-A4JDTA5T.js";
4
+ } from "./chunk-LAXMH7JY.js";
5
5
  import {
6
6
  DEVICE_LOCAL_OWNER_ID,
7
7
  isDeviceLocalSpaceBody,
8
8
  selectIdentityUserId
9
- } from "./chunk-ZFTCLBEX.js";
9
+ } from "./chunk-2IJAKBK2.js";
10
10
 
11
11
  // packages/create/space/spaceKeys.ts
12
12
  var SEPARATOR = "-";
@@ -4,14 +4,14 @@ import {
4
4
  providerHttpFailure,
5
5
  readSseFrames,
6
6
  throwIfChatCompletionStreamFailed
7
- } from "./chunk-MEUZFIAJ.js";
7
+ } from "./chunk-65677FXQ.js";
8
8
  import {
9
9
  sanitizeForOutbound
10
10
  } from "./chunk-T27IEBNQ.js";
11
11
  import {
12
12
  parseToolArgumentsJson,
13
13
  resolveHistoricalToolContentCap
14
- } from "./chunk-KW47OSRJ.js";
14
+ } from "./chunk-XAJUBTKJ.js";
15
15
  import {
16
16
  createThinkParserState,
17
17
  createToolCallAccumulator,
@@ -22,7 +22,7 @@ import {
22
22
  import {
23
23
  requiresBareImageUrl,
24
24
  toBareImageUrlMessages
25
- } from "./chunk-7CD24PU4.js";
25
+ } from "./chunk-UPXS3PUC.js";
26
26
  import {
27
27
  shouldStripReasoningContentForOutbound,
28
28
  toOpenAiCompatibleMessages
@@ -30,7 +30,7 @@ import {
30
30
  import {
31
31
  buildProviderAuthHeaders,
32
32
  buildProviderExecutionPlan
33
- } from "./chunk-XD5NQEOH.js";
33
+ } from "./chunk-UDA3ZYLW.js";
34
34
  import {
35
35
  buildDialogFallbackTitleFromUserInput
36
36
  } from "./chunk-2MBTWINN.js";
@@ -39,7 +39,7 @@ import {
39
39
  buildNoloWorkspaceCommandArgs,
40
40
  noloStringArg,
41
41
  parseNoloWorkspaceToolArguments
42
- } from "./chunk-OYK7PA5U.js";
42
+ } from "./chunk-UNTKW3PH.js";
43
43
  import {
44
44
  toErrorMessage
45
45
  } from "./chunk-HNMXYYJR.js";