nolo-cli 0.8.0-alpha.14 → 0.8.0-alpha.19

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 (98) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-KBMAUV6G.js → _executeModel-BOMQGOZC.js} +33 -30
  3. package/{action-SQGI5JY5.js → action-AEHDRQHP.js} +4 -4
  4. package/{addContentAction-ZX2PUS3X.js → addContentAction-OL5YQ6LW.js} +3 -3
  5. package/{addDialogAgentAction-ULADQX2Q.js → addDialogAgentAction-XU5Y2E2X.js} +2 -2
  6. package/{agentDeleteCommand-GNVYHOGZ.js → agentDeleteCommand-5DD2IM3J.js} +12 -11
  7. package/{agentEmailCommands-QETL62SU.js → agentEmailCommands-SE7MBTAG.js} +35 -32
  8. package/{agentListCommands-FM4OWXYT.js → agentListCommands-I6KZYCIG.js} +13 -12
  9. package/{agentMachineCommands-LDHJBWQO.js → agentMachineCommands-SBYN6EXT.js} +13 -12
  10. package/{agentRecordCommands-UW76EZ25.js → agentRecordCommands-F74NBFOZ.js} +35 -32
  11. package/{agentRunCommand-UFBOW4ZF.js → agentRunCommand-3DGDK4Y3.js} +41 -36
  12. package/{agentRuntimeLocal-XL5PLRJV.js → agentRuntimeLocal-ZYEIPTY4.js} +9 -8
  13. package/{agentSlice-2IBSFH4O.js → agentSlice-XEH6Y334.js} +3 -3
  14. package/{authCommand-PXFX6JDT.js → authCommand-EB5JSOX5.js} +3 -3
  15. package/{authCommands-356AYWEK.js → authCommands-XPEHTKSM.js} +2 -2
  16. package/{chunk-QTFSBLCF.js → chunk-2BIV3FMX.js} +25 -236
  17. package/{chunk-ZDXZSXYQ.js → chunk-2NNJ6S5U.js} +1 -1
  18. package/{chunk-6A3LI5TZ.js → chunk-2T2C6CNY.js} +2 -2
  19. package/{chunk-2IRF4LEX.js → chunk-4NDK6NWB.js} +87 -114
  20. package/{chunk-SRLZ7IVA.js → chunk-4P2MDGKS.js} +78 -211
  21. package/{chunk-MXLQWBVM.js → chunk-4QEWT7KD.js} +33 -3
  22. package/{chunk-DSNONPGW.js → chunk-5KLGBAAR.js} +1 -1
  23. package/{chunk-6CBN7GGH.js → chunk-64AAZRGY.js} +4 -4
  24. package/{chunk-QKRUUZCL.js → chunk-6RSAUKSQ.js} +24 -13
  25. package/{chunk-TWPGVS2U.js → chunk-7DAJ4AI4.js} +2 -2
  26. package/{chunk-RLCFUU46.js → chunk-7KCUSYT2.js} +4 -10
  27. package/chunk-AFON4QUU.js +112 -0
  28. package/chunk-AGFH73SK.js +239 -0
  29. package/{chunk-572EKYLF.js → chunk-BBYVOSU2.js} +1 -1
  30. package/{chunk-2MALU52L.js → chunk-C3RUNRHT.js} +1 -1
  31. package/{chunk-SL35K7AH.js → chunk-C4FTUXVF.js} +2 -82
  32. package/{chunk-JRPR5M4O.js → chunk-C77B4AFC.js} +2 -2
  33. package/{chunk-USZMK5UT.js → chunk-DCOA4QSN.js} +1 -1
  34. package/{chunk-BKPVTIEK.js → chunk-FVYY6MCS.js} +3 -3
  35. package/{chunk-3TZDXYSF.js → chunk-HNW7IJSK.js} +1 -1
  36. package/{chunk-B6DFDN4R.js → chunk-IEKTE4JQ.js} +2 -2
  37. package/{chunk-BR2WP3DF.js → chunk-IWX4UW2E.js} +9 -9
  38. package/{chunk-MMRAIO5Y.js → chunk-IX4C5TCO.js} +3 -3
  39. package/{chunk-6XKX2N2E.js → chunk-JRCUAPXX.js} +1 -1
  40. package/{chunk-XDVAYP26.js → chunk-JRKKFRAV.js} +1 -1
  41. package/{chunk-V2AISYMA.js → chunk-KPSWSDUF.js} +2 -2
  42. package/chunk-LTRXGFMS.js +83 -0
  43. package/{chunk-PCWC3JTN.js → chunk-MTU75CZ2.js} +1 -1
  44. package/{chunk-DGFWICQJ.js → chunk-N54XAP77.js} +1 -1
  45. package/{chunk-SACYB45H.js → chunk-O2ZNTTET.js} +5 -5
  46. package/{chunk-SH2CFQOH.js → chunk-O4BU24WZ.js} +2 -181
  47. package/{chunk-PFUCDPUH.js → chunk-OFM4S5P3.js} +13 -13
  48. package/{chunk-VH4YK6KZ.js → chunk-OI54SUZ7.js} +6 -6
  49. package/{chunk-QO4YO77G.js → chunk-OZNNTJM7.js} +2 -2
  50. package/{chunk-DG7AAAR3.js → chunk-P3PKED2I.js} +62 -2
  51. package/{chunk-JW43YCM5.js → chunk-PY4NLIAF.js} +1 -1
  52. package/{chunk-7IPLJUYC.js → chunk-RL776AGR.js} +1 -1
  53. package/{chunk-EQHI2AR3.js → chunk-RM7KF6OT.js} +41 -22
  54. package/{chunk-RJKDVL4L.js → chunk-SDJDLO5W.js} +2 -2
  55. package/{chunk-RTZFUR3V.js → chunk-SHAFJ4TI.js} +3 -3
  56. package/{chunk-YYUCRDOK.js → chunk-SOTZ6RDN.js} +1 -1
  57. package/chunk-VC6OZXO5.js +298 -0
  58. package/{chunk-EXTIQUCI.js → chunk-VVX233PH.js} +1 -1
  59. package/{chunk-ZQ2UM4KG.js → chunk-WZSRQNQG.js} +1 -292
  60. package/{chunk-Q2YZULBH.js → chunk-XENYHRUE.js} +1 -1
  61. package/{chunk-VQ2AJRGD.js → chunk-YPRZSPF3.js} +1 -1
  62. package/{chunk-I6DI7SGU.js → chunk-YRG2GO6E.js} +222 -63
  63. package/{cliExecutor-DNE7TCC4.js → cliExecutor-K3F7DMRO.js} +2 -2
  64. package/{createAgentAutomationAction-CSWOQOY5.js → createAgentAutomationAction-MBUL3ALA.js} +12 -12
  65. package/{createDialogAction-6VWL2TDI.js → createDialogAction-3JLD4VED.js} +16 -15
  66. package/{createPageAction-INRC4MH2.js → createPageAction-Z2AOWGIW.js} +17 -16
  67. package/{dbSlice-TO2TSMWM.js → dbSlice-LSKJDY2R.js} +2 -2
  68. package/{dialogCommands-DWSE4PMW.js → dialogCommands-4IX4XIZE.js} +14 -13
  69. package/{dialogSlice-CELFVS3F.js → dialogSlice-NRQ5WIJO.js} +12 -12
  70. package/{docCreateCommands-UFJL5PUM.js → docCreateCommands-SIL3NPGT.js} +14 -12
  71. package/{docDeleteCommands-XHEIBAB2.js → docDeleteCommands-7IOMLUS4.js} +16 -14
  72. package/{docReadCommands-PEDIC2CW.js → docReadCommands-FNFXUA5L.js} +14 -12
  73. package/{docStore-Q5AFYT6G.js → docStore-DBFNPMHU.js} +13 -13
  74. package/{docUpdateCommands-WBRODQ7P.js → docUpdateCommands-X2HNDVUC.js} +14 -12
  75. package/{fetchMessages-U6ZHN56A.js → fetchMessages-KTNM7QAR.js} +2 -2
  76. package/{getPricing-PWPJ6MNV.js → getPricing-3E6UNPKL.js} +3 -3
  77. package/{handleSendMessageAction-PPIGKCBQ.js → handleSendMessageAction-G3WLT6I7.js} +12 -12
  78. package/index.js +45 -45
  79. package/{localDialogRead-Z5UTAJPU.js → localDialogRead-2VRI24F4.js} +1 -1
  80. package/{machineCommands-3D7JMHUP.js → machineCommands-GPEWO27H.js} +37 -34
  81. package/{machineWsRunDispatch-PA5BR4AX.js → machineWsRunDispatch-2LSYCV4S.js} +34 -31
  82. package/{models-XLEOET3E.js → models-4OPOOLFS.js} +2 -2
  83. package/package.json +3 -2
  84. package/{readlineWorkspace-7WPA5OUS.js → readlineWorkspace-UL4LXWHX.js} +252 -78
  85. package/{removeDialogAgentAction-3MUQGFZX.js → removeDialogAgentAction-U3CP2M2H.js} +4 -4
  86. package/{runAgentClientLoop-DRAXPP6R.js → runAgentClientLoop-KKV7BWWC.js} +27 -24
  87. package/{setDialogExtraReferencesAction-MXHX2HPK.js → setDialogExtraReferencesAction-S7GUFLTN.js} +2 -2
  88. package/{setPrimaryDialogAgentAction-7DLDZHDT.js → setPrimaryDialogAgentAction-5SF7G5OS.js} +4 -4
  89. package/{settingSlice-PNLASZGI.js → settingSlice-EXYZ5EFP.js} +3 -3
  90. package/skillDiscovery-UGSQGX2U.js +16 -0
  91. package/{spaceCommands-ORSFAWEY.js → spaceCommands-E7VOF4LO.js} +16 -19
  92. package/{spaceSlice-5F2CDP2O.js → spaceSlice-KIDVQWOV.js} +16 -14
  93. package/{streamAgentChatTurn-ROOB5RLM.js → streamAgentChatTurn-YQH6ZGE6.js} +41 -36
  94. package/{tools-BAWXW4F6.js → tools-5C7OGJEW.js} +21 -19
  95. package/{tuiSummaryLlmCaller-JSI4GL6W.js → tuiSummaryLlmCaller-RV3THLZF.js} +4 -4
  96. package/{understanding-GQKNDDWM.js → understanding-3CUQQ6SV.js} +3 -3
  97. package/{updateDialogTitleAction-KJM65IGF.js → updateDialogTitleAction-JHAVYVIP.js} +12 -12
  98. package/{chunk-X7W4TNB4.js → chunk-CMKUBIGW.js} +3 -3
@@ -23,12 +23,15 @@ import {
23
23
  import {
24
24
  slateToRenderMarkdown
25
25
  } from "./chunk-63W5N6P3.js";
26
+ import {
27
+ isSkillSummaryMarker
28
+ } from "./chunk-VF4K2QE6.js";
26
29
  import {
27
30
  createDocState
28
- } from "./chunk-MMRAIO5Y.js";
31
+ } from "./chunk-IX4C5TCO.js";
29
32
  import {
30
33
  createDialogAction
31
- } from "./chunk-VH4YK6KZ.js";
34
+ } from "./chunk-OI54SUZ7.js";
32
35
  import {
33
36
  buildSkillDocMarkdown,
34
37
  normalizeSkillBudgetTier,
@@ -37,7 +40,10 @@ import {
37
40
  parseExternalSkillMarkdown,
38
41
  parseSkillDocProtocol,
39
42
  resolvePageSkillMetadata
40
- } from "./chunk-ZQ2UM4KG.js";
43
+ } from "./chunk-VC6OZXO5.js";
44
+ import {
45
+ shareResourceAction
46
+ } from "./chunk-OZNNTJM7.js";
41
47
  import {
42
48
  addCategory,
43
49
  addContentToSpace,
@@ -68,16 +74,16 @@ import {
68
74
  updateContentCategory,
69
75
  updateContentTitle,
70
76
  updateStep
71
- } from "./chunk-SRLZ7IVA.js";
77
+ } from "./chunk-4P2MDGKS.js";
72
78
  import {
73
79
  createAgent,
74
80
  runLlm,
75
81
  streamAgentChatTurn,
76
82
  updateAgent
77
- } from "./chunk-QKRUUZCL.js";
83
+ } from "./chunk-6RSAUKSQ.js";
78
84
  import {
79
85
  addContentAction
80
- } from "./chunk-ZDXZSXYQ.js";
86
+ } from "./chunk-2NNJ6S5U.js";
81
87
  import {
82
88
  createSpaceKey,
83
89
  normalizeSpaceId
@@ -97,10 +103,10 @@ import {
97
103
  redactAgentRecordForWorkspaceTool,
98
104
  resolveNoloDialogInput,
99
105
  verifyNoloDialogSubjectRefQuery
100
- } from "./chunk-DG7AAAR3.js";
106
+ } from "./chunk-P3PKED2I.js";
101
107
  import {
102
108
  DEFAULT_MODEL
103
- } from "./chunk-572EKYLF.js";
109
+ } from "./chunk-BBYVOSU2.js";
104
110
  import {
105
111
  ToolApiError,
106
112
  buildToolRequestHeaders,
@@ -124,16 +130,13 @@ import {
124
130
  import {
125
131
  toErrorMessage
126
132
  } from "./chunk-HNMXYYJR.js";
127
- import {
128
- shareResourceAction
129
- } from "./chunk-QO4YO77G.js";
130
133
  import {
131
134
  AGENT_UPDATE_FIELD_NAMES,
132
135
  normalizeAgentUpdateFieldList,
133
136
  selectAutoApproveSelfUpdateFields,
134
137
  selectCurrentServer,
135
138
  selectSyncServers
136
- } from "./chunk-6CBN7GGH.js";
139
+ } from "./chunk-64AAZRGY.js";
137
140
  import {
138
141
  patch,
139
142
  read,
@@ -141,7 +144,7 @@ import {
141
144
  readAndWaitAction,
142
145
  toTimestampMs,
143
146
  write
144
- } from "./chunk-V2AISYMA.js";
147
+ } from "./chunk-KPSWSDUF.js";
145
148
  import {
146
149
  asRecordOrEmpty
147
150
  } from "./chunk-KX6YBIHG.js";
@@ -156,7 +159,7 @@ import {
156
159
  rowKey,
157
160
  toTrimmedString,
158
161
  ulid
159
- } from "./chunk-SH2CFQOH.js";
162
+ } from "./chunk-O4BU24WZ.js";
160
163
  import {
161
164
  asNonEmptyStringArray,
162
165
  asTrimmedNonEmptyStringArray
@@ -2074,6 +2077,9 @@ var chat_locale_default = {
2074
2077
  messageInput: "Message input field",
2075
2078
  messageInputArea: "Message input area with file upload",
2076
2079
  messageOrFileHere: "Type a message or upload a file...",
2080
+ pastedTextChip: "Pasted text #{{id}} \xB7 {{lines}} lines \xB7 {{size}}",
2081
+ removePastedText: "Remove pasted text",
2082
+ expandPastedText: "Expand pasted text into the input",
2077
2083
  Mode: "Mode",
2078
2084
  ModeUpdateFailed: "Failed to update mode",
2079
2085
  ModeUpdatedSuccess: "Mode updated successfully",
@@ -2228,6 +2234,7 @@ var chat_locale_default = {
2228
2234
  execShell: "Run command",
2229
2235
  listAgents: "List agents",
2230
2236
  readAgent: "Read agent",
2237
+ loadSkill: "Load skill",
2231
2238
  callAgent: "Call agent"
2232
2239
  },
2233
2240
  gemini: {
@@ -2404,6 +2411,9 @@ var chat_locale_default = {
2404
2411
  messageInput: "\u6D88\u606F\u8F93\u5165\u6846",
2405
2412
  messageInputArea: "\u6D88\u606F\u8F93\u5165\u533A\uFF0C\u652F\u6301\u6587\u4EF6\u4E0A\u4F20",
2406
2413
  messageOrFileHere: "\u8F93\u5165\u6D88\u606F\u6216\u4E0A\u4F20\u6587\u4EF6...",
2414
+ pastedTextChip: "\u5DF2\u7C98\u8D34\u6587\u672C #{{id}} \xB7 {{lines}} \u884C \xB7 {{size}}",
2415
+ removePastedText: "\u79FB\u9664\u7C98\u8D34\u6587\u672C",
2416
+ expandPastedText: "\u5C55\u5F00\u7C98\u8D34\u6587\u672C\u5230\u8F93\u5165\u6846",
2407
2417
  Mode: "\u6A21\u5F0F",
2408
2418
  ModeUpdateFailed: "\u6A21\u5F0F\u66F4\u65B0\u5931\u8D25",
2409
2419
  ModeUpdatedSuccess: "\u6A21\u5F0F\u66F4\u65B0\u6210\u529F",
@@ -2552,6 +2562,7 @@ var chat_locale_default = {
2552
2562
  execShell: "\u8FD0\u884C\u547D\u4EE4",
2553
2563
  listAgents: "\u5217\u51FA\u52A9\u624B",
2554
2564
  readAgent: "\u8BFB\u53D6\u52A9\u624B",
2565
+ loadSkill: "\u52A0\u8F7D\u6280\u80FD",
2555
2566
  callAgent: "\u8C03\u7528\u52A9\u624B"
2556
2567
  },
2557
2568
  gemini: {
@@ -2728,6 +2739,9 @@ var chat_locale_default = {
2728
2739
  messageInput: "\u8A0A\u606F\u8F38\u5165\u6846",
2729
2740
  messageInputArea: "\u8A0A\u606F\u8F38\u5165\u5340\uFF0C\u652F\u6301\u6A94\u6848\u4E0A\u50B3",
2730
2741
  messageOrFileHere: "\u8F38\u5165\u8A0A\u606F\u6216\u4E0A\u50B3\u6A94\u6848...",
2742
+ pastedTextChip: "\u5DF2\u8CBC\u4E0A\u6587\u5B57 #{{id}} \xB7 {{lines}} \u884C \xB7 {{size}}",
2743
+ removePastedText: "\u79FB\u9664\u8CBC\u4E0A\u6587\u5B57",
2744
+ expandPastedText: "\u5C55\u958B\u8CBC\u4E0A\u6587\u5B57\u5230\u8F38\u5165\u6846",
2731
2745
  Mode: "\u6A21\u5F0F",
2732
2746
  ModeUpdateFailed: "\u6A21\u5F0F\u66F4\u65B0\u5931\u6557",
2733
2747
  ModeUpdatedSuccess: "\u6A21\u5F0F\u66F4\u65B0\u6210\u529F",
@@ -2866,6 +2880,7 @@ var chat_locale_default = {
2866
2880
  execShell: "\u57F7\u884C\u547D\u4EE4",
2867
2881
  listAgents: "\u5217\u51FA\u52A9\u624B",
2868
2882
  readAgent: "\u8B80\u53D6\u52A9\u624B",
2883
+ loadSkill: "\u8F09\u5165\u6280\u80FD",
2869
2884
  callAgent: "\u547C\u53EB\u52A9\u624B"
2870
2885
  },
2871
2886
  gemini: {
@@ -2980,6 +2995,9 @@ var chat_locale_default = {
2980
2995
  messageInput: "\u30E1\u30C3\u30BB\u30FC\u30B8\u5165\u529B\u6B04",
2981
2996
  messageInputArea: "\u30D5\u30A1\u30A4\u30EB\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u5BFE\u5FDC\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u5165\u529B\u30A8\u30EA\u30A2",
2982
2997
  messageOrFileHere: "\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u5165\u529B\u307E\u305F\u306F\u30D5\u30A1\u30A4\u30EB\u3092\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9...",
2998
+ pastedTextChip: "\u8CBC\u308A\u4ED8\u3051\u30C6\u30AD\u30B9\u30C8 #{{id}} \xB7 {{lines}} \u884C \xB7 {{size}}",
2999
+ removePastedText: "\u8CBC\u308A\u4ED8\u3051\u30C6\u30AD\u30B9\u30C8\u3092\u524A\u9664",
3000
+ expandPastedText: "\u8CBC\u308A\u4ED8\u3051\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u6B04\u306B\u5C55\u958B",
2983
3001
  Mode: "\u30E2\u30FC\u30C9",
2984
3002
  ModeUpdateFailed: "\u30E2\u30FC\u30C9\u306E\u66F4\u65B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
2985
3003
  ModeUpdatedSuccess: "\u30E2\u30FC\u30C9\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F",
@@ -3124,6 +3142,7 @@ var chat_locale_default = {
3124
3142
  execShell: "\u30B3\u30DE\u30F3\u30C9\u5B9F\u884C",
3125
3143
  listAgents: "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u4E00\u89A7",
3126
3144
  readAgent: "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u8AAD\u307F\u53D6\u308A",
3145
+ loadSkill: "\u30B9\u30AD\u30EB\u3092\u8AAD\u307F\u8FBC\u307F",
3127
3146
  callAgent: "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u547C\u3073\u51FA\u3057"
3128
3147
  },
3129
3148
  gemini: {
@@ -3247,12 +3266,6 @@ var space_locale_default = {
3247
3266
  discard_changes: "Discard Changes",
3248
3267
  load_error_title: "Failed to Load Space Information",
3249
3268
  no_space_data: "Space data not found",
3250
- try_repair: "Try to Repair",
3251
- repair_success: "Repair operation completed successfully",
3252
- repair_space: "Repair Space",
3253
- repair_count_warn: "This space has {{count}} content items. Repair will re-deduplicate and remove orphaned references. Continue?",
3254
- repair: "Repair",
3255
- repair_error: "Repair operation failed",
3256
3269
  try_later: "Please try again later",
3257
3270
  // === 基本信息 ===
3258
3271
  basic_info: "Basic Information",
@@ -3327,6 +3340,10 @@ var space_locale_default = {
3327
3340
  expandAll: "Expand All",
3328
3341
  collapseAll: "Collapse All",
3329
3342
  contentMoved: "Content moved successfully",
3343
+ movedToDesc: "Moved to {{space}}. Switch to continue?",
3344
+ moveSwitchPrompt: "Switch to this space to continue?",
3345
+ switchToSpaceAction: "Switch",
3346
+ switchSpaceFailed: "Failed to switch space",
3330
3347
  noOtherSpaces: "No other spaces available",
3331
3348
  unnamedSpace: "Unnamed space",
3332
3349
  moveFailed: "Move failed: {{message}}",
@@ -3558,12 +3575,6 @@ var space_locale_default = {
3558
3575
  discard_changes: "\u653E\u5F03\u66F4\u6539",
3559
3576
  load_error_title: "\u52A0\u8F7D\u7A7A\u95F4\u4FE1\u606F\u5931\u8D25",
3560
3577
  no_space_data: "\u672A\u627E\u5230\u7A7A\u95F4\u6570\u636E",
3561
- try_repair: "\u5C1D\u8BD5\u4FEE\u590D",
3562
- repair_success: "\u4FEE\u590D\u64CD\u4F5C\u6210\u529F\u5B8C\u6210",
3563
- repair_space: "\u4FEE\u590D\u7A7A\u95F4",
3564
- repair_count_warn: "\u6B64\u7A7A\u95F4\u6709 {{count}} \u9879\u5185\u5BB9\u3002\u4FEE\u590D\u5C06\u91CD\u65B0\u53BB\u91CD\u5E76\u6E05\u9664\u5B64\u7ACB\u7684\u5F15\u7528\u3002\u662F\u5426\u7EE7\u7EED\uFF1F",
3565
- repair: "\u4FEE\u590D",
3566
- repair_error: "\u4FEE\u590D\u64CD\u4F5C\u5931\u8D25",
3567
3578
  try_later: "\u8BF7\u7A0D\u540E\u91CD\u8BD5",
3568
3579
  // === 基本信息 ===
3569
3580
  basic_info: "\u57FA\u672C\u4FE1\u606F",
@@ -3638,6 +3649,10 @@ var space_locale_default = {
3638
3649
  expandAll: "\u5168\u90E8\u5C55\u5F00",
3639
3650
  collapseAll: "\u5168\u90E8\u6298\u53E0",
3640
3651
  contentMoved: "\u5185\u5BB9\u5DF2\u6210\u529F\u79FB\u52A8",
3652
+ movedToDesc: "\u5DF2\u79FB\u52A8\u5230 {{space}}\uFF0C\u662F\u5426\u5207\u6362\uFF1F",
3653
+ moveSwitchPrompt: "\u662F\u5426\u5207\u6362\u5230\u8BE5\u7A7A\u95F4\u7EE7\u7EED\u64CD\u4F5C\uFF1F",
3654
+ switchToSpaceAction: "\u5207\u6362",
3655
+ switchSpaceFailed: "\u5207\u6362\u7A7A\u95F4\u5931\u8D25",
3641
3656
  noOtherSpaces: "\u6CA1\u6709\u5176\u4ED6\u53EF\u7528\u7A7A\u95F4",
3642
3657
  titlePlaceholder: "\u65E0\u6807\u9898",
3643
3658
  moreActions: "\u66F4\u591A\u64CD\u4F5C",
@@ -3868,12 +3883,6 @@ var space_locale_default = {
3868
3883
  discard_changes: "\u653E\u68C4\u8B8A\u66F4",
3869
3884
  load_error_title: "\u8F09\u5165\u7A7A\u9593\u8CC7\u8A0A\u5931\u6557",
3870
3885
  no_space_data: "\u672A\u627E\u5230\u7A7A\u9593\u8CC7\u6599",
3871
- try_repair: "\u5617\u8A66\u4FEE\u5FA9",
3872
- repair_success: "\u4FEE\u5FA9\u64CD\u4F5C\u6210\u529F\u5B8C\u6210",
3873
- repair_space: "\u4FEE\u5FA9\u7A7A\u9593",
3874
- repair_count_warn: "\u6B64\u7A7A\u9593\u6709 {{count}} \u9805\u5167\u5BB9\u3002\u4FEE\u5FA9\u5C07\u91CD\u65B0\u53BB\u91CD\u4E26\u6E05\u9664\u5B64\u7ACB\u7684\u5F15\u7528\u3002\u662F\u5426\u7E7C\u7E8C\uFF1F",
3875
- repair: "\u4FEE\u5FA9",
3876
- repair_error: "\u4FEE\u5FA9\u64CD\u4F5C\u5931\u6557",
3877
3886
  try_later: "\u8ACB\u7A0D\u5F8C\u91CD\u8A66",
3878
3887
  // === 基本信息 ===
3879
3888
  basic_info: "\u57FA\u672C\u8CC7\u8A0A",
@@ -3948,6 +3957,10 @@ var space_locale_default = {
3948
3957
  expandAll: "\u5168\u90E8\u5C55\u958B",
3949
3958
  collapseAll: "\u5168\u90E8\u647A\u758A",
3950
3959
  contentMoved: "\u5167\u5BB9\u5DF2\u6210\u529F\u79FB\u52D5",
3960
+ movedToDesc: "\u5DF2\u79FB\u52D5\u5230 {{space}}\uFF0C\u662F\u5426\u5207\u63DB\uFF1F",
3961
+ moveSwitchPrompt: "\u662F\u5426\u5207\u63DB\u5230\u8A72\u7A7A\u9593\u7E7C\u7E8C\u64CD\u4F5C\uFF1F",
3962
+ switchToSpaceAction: "\u5207\u63DB",
3963
+ switchSpaceFailed: "\u5207\u63DB\u7A7A\u9593\u5931\u6557",
3951
3964
  noOtherSpaces: "\u6C92\u6709\u5176\u4ED6\u53EF\u7528\u7A7A\u9593",
3952
3965
  titlePlaceholder: "\u7121\u6A19\u984C",
3953
3966
  moreActions: "\u66F4\u591A\u64CD\u4F5C",
@@ -4171,12 +4184,6 @@ var space_locale_default = {
4171
4184
  discard_changes: "\u5909\u66F4\u3092\u7834\u68C4",
4172
4185
  load_error_title: "\u30B9\u30DA\u30FC\u30B9\u60C5\u5831\u306E\u8AAD\u307F\u8FBC\u307F\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
4173
4186
  no_space_data: "\u30B9\u30DA\u30FC\u30B9\u30C7\u30FC\u30BF\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
4174
- try_repair: "\u4FEE\u5FA9\u3092\u8A66\u884C",
4175
- repair_success: "\u4FEE\u5FA9\u64CD\u4F5C\u304C\u6B63\u5E38\u306B\u5B8C\u4E86\u3057\u307E\u3057\u305F",
4176
- repair_space: "\u30B9\u30DA\u30FC\u30B9\u3092\u4FEE\u5FA9",
4177
- repair_count_warn: "\u3053\u306E\u30B9\u30DA\u30FC\u30B9\u306B\u306F {{count}} \u4EF6\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u3042\u308A\u307E\u3059\u3002\u4FEE\u5FA9\u306F\u91CD\u8907\u3092\u6574\u7406\u3057\u3001\u5B64\u7ACB\u3057\u305F\u53C2\u7167\u3092\u524A\u9664\u3057\u307E\u3059\u3002\u7D9A\u884C\u3057\u307E\u3059\u304B\uFF1F",
4178
- repair: "\u4FEE\u5FA9",
4179
- repair_error: "\u4FEE\u5FA9\u64CD\u4F5C\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
4180
4187
  try_later: "\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",
4181
4188
  // === 基本情報 ===
4182
4189
  basic_info: "\u57FA\u672C\u60C5\u5831",
@@ -4251,6 +4258,10 @@ var space_locale_default = {
4251
4258
  expandAll: "\u3059\u3079\u3066\u5C55\u958B",
4252
4259
  collapseAll: "\u3059\u3079\u3066\u6298\u308A\u305F\u305F\u3080",
4253
4260
  contentMoved: "\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u6B63\u5E38\u306B\u79FB\u52D5\u3055\u308C\u307E\u3057\u305F",
4261
+ movedToDesc: "{{space}}\u306B\u79FB\u52D5\u3057\u307E\u3057\u305F\u3002\u5207\u308A\u66FF\u3048\u307E\u3059\u304B\uFF1F",
4262
+ moveSwitchPrompt: "\u3053\u306E\u30B9\u30DA\u30FC\u30B9\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u304B\uFF1F",
4263
+ switchToSpaceAction: "\u5207\u308A\u66FF\u3048",
4264
+ switchSpaceFailed: "\u30B9\u30DA\u30FC\u30B9\u306E\u5207\u308A\u66FF\u3048\u306B\u5931\u6557\u3057\u307E\u3057\u305F",
4254
4265
  noOtherSpaces: "\u4ED6\u306E\u30B9\u30DA\u30FC\u30B9\u306F\u3042\u308A\u307E\u305B\u3093",
4255
4266
  titlePlaceholder: "\u7121\u984C",
4256
4267
  moreActions: "\u305D\u306E\u4ED6\u306E\u30A2\u30AF\u30B7\u30E7\u30F3",
@@ -11024,7 +11035,7 @@ var HOSTED_EXEC_RUNTIME_TOOL_POLICY = {
11024
11035
  workspace: { mode: "lease" }
11025
11036
  };
11026
11037
  var findModelConfig = async (modelName, provider) => {
11027
- const { ALL_MODELS } = await import("./models-XLEOET3E.js");
11038
+ const { ALL_MODELS } = await import("./models-4OPOOLFS.js");
11028
11039
  const name = toTrimmedString(modelName);
11029
11040
  const prov = toTrimmedString(provider ?? "");
11030
11041
  if (!name) return null;
@@ -11265,7 +11276,7 @@ var buildFormDataFromArgs = async (args) => {
11265
11276
  const trimmedModel = toTrimmedString(model);
11266
11277
  const trimmedProvider = toTrimmedString(provider);
11267
11278
  const modelConfig = await findModelConfig(trimmedModel, trimmedProvider);
11268
- const { getModelPricing } = await import("./getPricing-PWPJ6MNV.js");
11279
+ const { getModelPricing } = await import("./getPricing-3E6UNPKL.js");
11269
11280
  const normalizedTools = tools ?? [];
11270
11281
  const resolvedRuntimeToolPolicy = runtimeToolPolicy ?? (normalizedTools.includes("execShell") ? HOSTED_EXEC_RUNTIME_TOOL_POLICY : void 0);
11271
11282
  const formData = {
@@ -12446,6 +12457,139 @@ Imported from: ${url}` : ""
12446
12457
  });
12447
12458
  }
12448
12459
 
12460
+ // packages/ai/tools/loadSkillTool.ts
12461
+ var loadSkillFunctionSchema = {
12462
+ name: "loadSkill",
12463
+ description: [
12464
+ "\u6309\u540D\u79F0\u52A0\u8F7D\u4E00\u4E2A\u5DF2\u4FDD\u5B58\u7684 skill \u6587\u6863\uFF0C\u8FD4\u56DE\u5176\u5B8C\u6574\u6307\u4EE4\u6B63\u6587\u3002",
12465
+ "name \u4F7F\u7528 skill \u4FDD\u5B58\u65F6\u5199\u5165 skill-config \u7684 name\uFF08\u4E5F\u63A5\u53D7 skillId\uFF09\u3002",
12466
+ "\u627E\u4E0D\u5230\u5BF9\u5E94 skill \u65F6\u8FD4\u56DE\u5F53\u524D\u53EF\u7528\u7684 skill \u540D\u79F0\u5217\u8868\uFF08\u4E0D\u62A5\u9519\uFF09\u3002"
12467
+ ].join("\n"),
12468
+ parameters: {
12469
+ type: "object",
12470
+ properties: {
12471
+ name: {
12472
+ type: "string",
12473
+ description: "\u8981\u52A0\u8F7D\u7684 skill \u540D\u79F0\u3002"
12474
+ }
12475
+ },
12476
+ required: ["name"]
12477
+ }
12478
+ };
12479
+ var getRuntime = (thunkApi) => {
12480
+ const state = thunkApi?.getState?.();
12481
+ return state ? selectRuntimeSnapshot(state) : null;
12482
+ };
12483
+ var authHeaders = (token) => token ? { Authorization: `Bearer ${token}` } : {};
12484
+ async function readRemoteRecord(args) {
12485
+ const serverBase = normalizeServerOrigin(args.serverBase);
12486
+ if (!serverBase || !args.token) return null;
12487
+ const response = await fetch(
12488
+ `${serverBase}/api/v1/db/read/${encodeURIComponent(args.dbKey)}?includeDeleted=true`,
12489
+ { headers: authHeaders(args.token) }
12490
+ );
12491
+ if (!response.ok) return null;
12492
+ const payload = await response.json().catch(() => null);
12493
+ return payload?.data ?? payload;
12494
+ }
12495
+ function matchSkillCandidate(candidates, requestedName) {
12496
+ return candidates.find(
12497
+ (candidate) => candidate.name === requestedName || candidate.skillId === requestedName
12498
+ );
12499
+ }
12500
+ function collectSkillCandidatesFromSpace(space) {
12501
+ if (!space?.contents || typeof space.contents !== "object") return [];
12502
+ const candidates = [];
12503
+ for (const [entryKey, value] of Object.entries(space.contents)) {
12504
+ if (!isRecord(value)) continue;
12505
+ const skillSummary = value.skillSummary;
12506
+ if (!isSkillSummaryMarker(skillSummary)) continue;
12507
+ const name = asTrimmedString(skillSummary.name);
12508
+ if (!name) continue;
12509
+ candidates.push({
12510
+ dbKey: entryKey,
12511
+ name,
12512
+ skillId: asOptionalTrimmedString(skillSummary.skillId) ?? void 0
12513
+ });
12514
+ }
12515
+ return candidates;
12516
+ }
12517
+ function extractSkillBody(page) {
12518
+ return parseSkillDocProtocol(page?.content ?? "").content;
12519
+ }
12520
+ async function listSkillCandidates(thunkApi) {
12521
+ const runtime = getRuntime(thunkApi);
12522
+ const serverBase = runtime?.currentServer;
12523
+ const token = runtime?.currentToken;
12524
+ const userId = runtime?.currentUserId;
12525
+ if (!serverBase || !token || !userId) return [];
12526
+ const membershipsResponse = await fetch(
12527
+ `${normalizeServerOrigin(serverBase)}/rpc/getUserSpaceMemberships`,
12528
+ {
12529
+ method: "POST",
12530
+ headers: {
12531
+ "Content-Type": "application/json",
12532
+ ...authHeaders(token)
12533
+ },
12534
+ body: JSON.stringify({ userId })
12535
+ }
12536
+ ).catch(() => null);
12537
+ if (!membershipsResponse?.ok) return [];
12538
+ const memberships = await membershipsResponse.json().catch(() => []);
12539
+ if (!Array.isArray(memberships)) return [];
12540
+ const candidates = [];
12541
+ for (const membership of memberships) {
12542
+ const spaceId = asTrimmedString(membership?.spaceId);
12543
+ if (!spaceId) continue;
12544
+ const space = await readRemoteRecord({
12545
+ serverBase,
12546
+ token,
12547
+ dbKey: createSpaceKey.space(spaceId)
12548
+ });
12549
+ if (!space) continue;
12550
+ candidates.push(...collectSkillCandidatesFromSpace(space));
12551
+ }
12552
+ return candidates;
12553
+ }
12554
+ async function loadSkillFunc(args, thunkApi) {
12555
+ const requestedName = asTrimmedString(args?.name);
12556
+ if (!requestedName) throw new Error("loadSkill \u9700\u8981\u63D0\u4F9B name\u3002");
12557
+ const candidates = await listSkillCandidates(thunkApi);
12558
+ const matched = matchSkillCandidate(candidates, requestedName);
12559
+ if (!matched) {
12560
+ const availableNames = Array.from(
12561
+ new Set(candidates.map((candidate) => candidate.name))
12562
+ );
12563
+ const availableText = availableNames.length ? availableNames.join(", ") : "(none)";
12564
+ return {
12565
+ rawData: {
12566
+ success: false,
12567
+ name: requestedName,
12568
+ availableSkills: availableNames
12569
+ },
12570
+ displayData: `Skill "${requestedName}" not found. Available skills: ${availableText}`
12571
+ };
12572
+ }
12573
+ const runtime = getRuntime(thunkApi);
12574
+ const page = await readRemoteRecord({
12575
+ serverBase: runtime?.currentServer,
12576
+ token: runtime?.currentToken,
12577
+ dbKey: matched.dbKey
12578
+ });
12579
+ const body = extractSkillBody(page);
12580
+ return {
12581
+ rawData: {
12582
+ success: true,
12583
+ name: requestedName,
12584
+ dbKey: matched.dbKey,
12585
+ body
12586
+ },
12587
+ displayData: `Skill "${requestedName}" loaded inline. Follow its instructions.
12588
+
12589
+ ${body}`
12590
+ };
12591
+ }
12592
+
12449
12593
  // packages/ai/tools/category/createCategoryTool.ts
12450
12594
  var createCategoryFunctionSchema = {
12451
12595
  // 已从 'create_category' 更新为 'createCategory'
@@ -13253,18 +13397,18 @@ var jsonPreview = (value, maxLength = 1800) => {
13253
13397
  return text.length <= maxLength ? text : `${text.slice(0, maxLength)}
13254
13398
  ...(truncated)`;
13255
13399
  };
13256
- var getRuntime = (thunkApi) => {
13400
+ var getRuntime2 = (thunkApi) => {
13257
13401
  const state = thunkApi?.getState?.();
13258
13402
  return state ? selectRuntimeSnapshot(state) : null;
13259
13403
  };
13260
- var authHeaders = (token) => token ? { Authorization: `Bearer ${token}` } : {};
13261
- async function readRemoteRecord(args) {
13404
+ var authHeaders2 = (token) => token ? { Authorization: `Bearer ${token}` } : {};
13405
+ async function readRemoteRecord2(args) {
13262
13406
  const serverBase = normalizeServerOrigin(args.serverBase);
13263
13407
  if (!serverBase || !args.token) return null;
13264
13408
  const query = args.includeDeleted ? "?includeDeleted=true" : "";
13265
13409
  const response = await fetch(
13266
13410
  `${serverBase}/api/v1/db/read/${encodeURIComponent(args.dbKey)}${query}`,
13267
- { headers: authHeaders(args.token) }
13411
+ { headers: authHeaders2(args.token) }
13268
13412
  );
13269
13413
  if (!response.ok) return null;
13270
13414
  const payload = await response.json().catch(() => null);
@@ -13279,7 +13423,7 @@ async function queryRemoteUserRecords(args) {
13279
13423
  method: "POST",
13280
13424
  headers: {
13281
13425
  "Content-Type": "application/json",
13282
- ...authHeaders(args.token)
13426
+ ...authHeaders2(args.token)
13283
13427
  },
13284
13428
  body: JSON.stringify({
13285
13429
  type: args.type,
@@ -13292,7 +13436,7 @@ async function queryRemoteUserRecords(args) {
13292
13436
  return Array.isArray(payload?.data?.data) ? payload.data.data : Array.isArray(payload?.data) ? payload.data : [];
13293
13437
  }
13294
13438
  async function queryBestRecords(thunkApi, type, limit) {
13295
- const runtime = getRuntime(thunkApi);
13439
+ const runtime = getRuntime2(thunkApi);
13296
13440
  const remoteRecords = await queryRemoteUserRecords({
13297
13441
  serverBase: runtime?.currentServer,
13298
13442
  token: runtime?.currentToken,
@@ -13303,8 +13447,8 @@ async function queryBestRecords(thunkApi, type, limit) {
13303
13447
  return remoteRecords;
13304
13448
  }
13305
13449
  async function readBestRecord(thunkApi, dbKey, includeDeleted = false) {
13306
- const runtime = getRuntime(thunkApi);
13307
- return readRemoteRecord({
13450
+ const runtime = getRuntime2(thunkApi);
13451
+ return readRemoteRecord2({
13308
13452
  serverBase: runtime?.currentServer,
13309
13453
  token: runtime?.currentToken,
13310
13454
  dbKey,
@@ -13405,7 +13549,7 @@ var deleteDialogsFunctionSchema = {
13405
13549
  }
13406
13550
  };
13407
13551
  async function queryDialogsBySubjectRefFunc(args, thunkApi) {
13408
- const runtime = getRuntime(thunkApi);
13552
+ const runtime = getRuntime2(thunkApi);
13409
13553
  const target = buildNoloSubjectRefQueryTarget(args ?? {});
13410
13554
  if (!target) throw new Error("queryDialogsBySubjectRef requires rowDbKey or subjectKind plus subjectId.");
13411
13555
  const queryLimit = clampNoloPositiveInteger(args?.queryLimit, 500, 500);
@@ -13451,7 +13595,7 @@ async function queryDialogsBySubjectRefFunc(args, thunkApi) {
13451
13595
  };
13452
13596
  }
13453
13597
  async function readDialogFunc(args, thunkApi) {
13454
- const runtime = getRuntime(thunkApi);
13598
+ const runtime = getRuntime2(thunkApi);
13455
13599
  const userId = runtime?.currentUserId;
13456
13600
  if (!userId) throw new Error("readDialog requires a signed-in user.");
13457
13601
  const rawDialog = asTrimmedString(args?.dialog) || asTrimmedString(args?.dialogId) || asTrimmedString(args?.id);
@@ -13466,7 +13610,7 @@ async function readDialogFunc(args, thunkApi) {
13466
13610
  method: "POST",
13467
13611
  headers: {
13468
13612
  "Content-Type": "application/json",
13469
- ...authHeaders(runtime.currentToken)
13613
+ ...authHeaders2(runtime.currentToken)
13470
13614
  },
13471
13615
  body: JSON.stringify({ dialogId: resolved.dialogId, limit })
13472
13616
  }).catch(() => null);
@@ -13516,7 +13660,7 @@ var formatDeleteDialogsPreview = (preview) => {
13516
13660
  return lines.join("\n");
13517
13661
  };
13518
13662
  var loadDeleteDialogsPreview = async (args, thunkApi) => {
13519
- const runtime = getRuntime(thunkApi);
13663
+ const runtime = getRuntime2(thunkApi);
13520
13664
  const userId = runtime?.currentUserId;
13521
13665
  if (!userId) throw new Error("deleteDialogs requires a signed-in user.");
13522
13666
  const query = asTrimmedString(args?.query);
@@ -13562,7 +13706,7 @@ async function deleteDialogsFunc(args, thunkApi) {
13562
13706
  const deletedDialogIds = [];
13563
13707
  const deletedDialogKeys = [];
13564
13708
  const failures = [];
13565
- const { deleteDialog } = await import("./dialogSlice-CELFVS3F.js");
13709
+ const { deleteDialog } = await import("./dialogSlice-NRQ5WIJO.js");
13566
13710
  for (const target of targets) {
13567
13711
  try {
13568
13712
  await thunkApi.dispatch(deleteDialog(target.dbKey)).unwrap();
@@ -13629,7 +13773,7 @@ var readAgentFunctionSchema = {
13629
13773
  }
13630
13774
  };
13631
13775
  async function readAgentFunc(args, thunkApi) {
13632
- const runtime = getRuntime(thunkApi);
13776
+ const runtime = getRuntime2(thunkApi);
13633
13777
  const userId = runtime?.currentUserId;
13634
13778
  if (!userId) throw new Error("readAgent requires a signed-in user.");
13635
13779
  const rawAgent = asTrimmedString(args?.agent) || asTrimmedString(args?.agentKey) || asTrimmedString(args?.id);
@@ -13663,14 +13807,14 @@ var listSpacesFunctionSchema = {
13663
13807
  }
13664
13808
  };
13665
13809
  async function listSpacesFunc(_args, thunkApi) {
13666
- const runtime = getRuntime(thunkApi);
13810
+ const runtime = getRuntime2(thunkApi);
13667
13811
  const serverBase = normalizeServerOrigin(runtime?.currentServer);
13668
13812
  if (serverBase && runtime?.currentToken && runtime?.currentUserId) {
13669
13813
  const response = await fetch(`${serverBase}/rpc/getUserSpaceMemberships`, {
13670
13814
  method: "POST",
13671
13815
  headers: {
13672
13816
  "Content-Type": "application/json",
13673
- ...authHeaders(runtime.currentToken)
13817
+ ...authHeaders2(runtime.currentToken)
13674
13818
  },
13675
13819
  body: JSON.stringify({ userId: runtime.currentUserId })
13676
13820
  }).catch(() => null);
@@ -13772,7 +13916,7 @@ var cliWhoamiFunctionSchema = {
13772
13916
  parameters: { type: "object", properties: {} }
13773
13917
  };
13774
13918
  async function cliWhoamiFunc(_args, thunkApi) {
13775
- const runtime = getRuntime(thunkApi);
13919
+ const runtime = getRuntime2(thunkApi);
13776
13920
  const result = {
13777
13921
  success: true,
13778
13922
  runtime: "browser",
@@ -13788,7 +13932,7 @@ var cliDoctorFunctionSchema = {
13788
13932
  parameters: { type: "object", properties: {} }
13789
13933
  };
13790
13934
  async function cliDoctorFunc(_args, thunkApi) {
13791
- const runtime = getRuntime(thunkApi);
13935
+ const runtime = getRuntime2(thunkApi);
13792
13936
  const result = {
13793
13937
  success: true,
13794
13938
  runtime: "browser",
@@ -19144,7 +19288,7 @@ var selectUserIdFromState = (state) => typeof state?.auth?.currentUser?.userId =
19144
19288
  var selectCurrentServerFromState = (state) => typeof state?.settings?.currentServer === "string" ? state.settings.currentServer : null;
19145
19289
  async function addImageContentToSpace(input) {
19146
19290
  const injectedAddContentAction = input.thunkApi?.extra?.addContentAction;
19147
- const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-ZX2PUS3X.js")).addContentAction;
19291
+ const addContentAction2 = typeof injectedAddContentAction === "function" ? injectedAddContentAction : (await import("./addContentAction-OL5YQ6LW.js")).addContentAction;
19148
19292
  await addContentAction2(
19149
19293
  {
19150
19294
  spaceId: input.spaceId,
@@ -22508,7 +22652,7 @@ var executeToolRun = createAsyncThunk(
22508
22652
  if (!executionInput) {
22509
22653
  throw new Error(`ToolRun ${id} has no input to execute with.`);
22510
22654
  }
22511
- const { findToolExecutor: findToolExecutor2 } = await import("./tools-BAWXW4F6.js");
22655
+ const { findToolExecutor: findToolExecutor2 } = await import("./tools-5C7OGJEW.js");
22512
22656
  const { executor } = findToolExecutor2(run.toolName);
22513
22657
  toolRunStarted({
22514
22658
  id: run.id,
@@ -22532,7 +22676,7 @@ var executeToolRun = createAsyncThunk(
22532
22676
  const latestState = thunkApi.getState();
22533
22677
  const userId = latestState.auth?.currentUser?.userId;
22534
22678
  if (userId) {
22535
- const { fetchUserSpaceMemberships } = await import("./spaceSlice-5F2CDP2O.js");
22679
+ const { fetchUserSpaceMemberships } = await import("./spaceSlice-KIDVQWOV.js");
22536
22680
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
22537
22681
  }
22538
22682
  }
@@ -24935,7 +25079,7 @@ async function updateDocFunc(args, thunkApi) {
24935
25079
  updated_at: (/* @__PURE__ */ new Date()).toISOString()
24936
25080
  };
24937
25081
  await dispatch(write({ data: updatedPageData, customKey: id })).unwrap();
24938
- const { getDocState, applyExternalDocUpdate } = await import("./docStore-Q5AFYT6G.js");
25082
+ const { getDocState, applyExternalDocUpdate } = await import("./docStore-DBFNPMHU.js");
24939
25083
  if (getDocState().pageKey === id) {
24940
25084
  applyExternalDocUpdate({
24941
25085
  slateData: finalSlateData,
@@ -24960,7 +25104,7 @@ async function updateDocFunc(args, thunkApi) {
24960
25104
  // packages/ai/tools/updateUserPreferenceProfileTool.ts
24961
25105
  async function dispatchSetSettings(thunkApi, changes) {
24962
25106
  const injectedSetSettings = thunkApi?.extra?.setSettings;
24963
- const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-PNLASZGI.js")).setSettings;
25107
+ const setSettings = typeof injectedSetSettings === "function" ? injectedSetSettings : (await import("./settingSlice-EXYZ5EFP.js")).setSettings;
24964
25108
  await thunkApi.dispatch(setSettings(changes)).unwrap();
24965
25109
  }
24966
25110
  var updateUserPreferenceProfileFunctionSchema = {
@@ -25767,6 +25911,21 @@ var baseToolDefinitions = [
25767
25911
  costLevel: "medium",
25768
25912
  defaultConsent: "ask"
25769
25913
  },
25914
+ {
25915
+ id: "loadSkill",
25916
+ schema: loadSkillFunctionSchema,
25917
+ executor: loadSkillFunc,
25918
+ description: {
25919
+ name: "loadSkill",
25920
+ description: "\u6309\u540D\u79F0\u52A0\u8F7D\u5DF2\u4FDD\u5B58\u7684 skill \u6587\u6863\uFF0C\u8FD4\u56DE\u5B8C\u6574\u6307\u4EE4\u6B63\u6587\u3002",
25921
+ category: "\u5185\u5BB9\u7BA1\u7406"
25922
+ },
25923
+ behavior: "data",
25924
+ uiGroup: "content",
25925
+ capability: "space_context",
25926
+ riskLevel: "low",
25927
+ costLevel: "low"
25928
+ },
25770
25929
  {
25771
25930
  id: "wereadGateway",
25772
25931
  schema: wereadGatewayFunctionSchema,
@@ -12,11 +12,11 @@ import {
12
12
  isBufferedCliStreamingProvider,
13
13
  materializeCliImageInputs,
14
14
  startCliSession
15
- } from "./chunk-X7W4TNB4.js";
15
+ } from "./chunk-CMKUBIGW.js";
16
+ import "./chunk-JBTJAPUF.js";
16
17
  import {
17
18
  buildCliPrompt
18
19
  } from "./chunk-ATNTHIZI.js";
19
- import "./chunk-JBTJAPUF.js";
20
20
  import "./chunk-4VNS5WPM.js";
21
21
  export {
22
22
  CLI_PROBE_BINARIES,