@downcity/agent 1.1.25 → 1.1.35

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 (2766) hide show
  1. package/README.md +26 -84
  2. package/bin/config/Defaults.js +1 -1
  3. package/bin/config/Defaults.js.map +1 -1
  4. package/bin/config/DowncitySchema.d.ts.map +1 -1
  5. package/bin/config/DowncitySchema.js +2 -8
  6. package/bin/config/DowncitySchema.js.map +1 -1
  7. package/bin/config/Paths.d.ts +12 -10
  8. package/bin/config/Paths.d.ts.map +1 -1
  9. package/bin/config/Paths.js +23 -17
  10. package/bin/config/Paths.js.map +1 -1
  11. package/bin/config/project/AgentInitializer.d.ts.map +1 -1
  12. package/bin/config/project/AgentInitializer.js +4 -4
  13. package/bin/config/project/AgentInitializer.js.map +1 -1
  14. package/bin/core/AgentContextTypes.d.ts +21 -55
  15. package/bin/core/AgentContextTypes.d.ts.map +1 -1
  16. package/bin/core/AgentContextTypes.js +1 -1
  17. package/bin/core/AgentCore.d.ts +17 -16
  18. package/bin/core/AgentCore.d.ts.map +1 -1
  19. package/bin/core/AgentCore.js +90 -126
  20. package/bin/core/AgentCore.js.map +1 -1
  21. package/bin/core/AgentCoreTypes.d.ts +5 -5
  22. package/bin/core/AgentCoreTypes.d.ts.map +1 -1
  23. package/bin/core/AgentCoreTypes.js +1 -1
  24. package/bin/executor/Executor.d.ts +172 -0
  25. package/bin/executor/Executor.d.ts.map +1 -0
  26. package/bin/executor/Executor.js.map +1 -0
  27. package/bin/executor/SessionRunScope.d.ts +84 -0
  28. package/bin/executor/SessionRunScope.d.ts.map +1 -0
  29. package/bin/executor/SessionRunScope.js +82 -0
  30. package/bin/executor/SessionRunScope.js.map +1 -0
  31. package/bin/executor/composer/compaction/SessionCompactionComposer.d.ts +55 -0
  32. package/bin/executor/composer/compaction/SessionCompactionComposer.d.ts.map +1 -0
  33. package/bin/executor/composer/compaction/SessionCompactionComposer.js.map +1 -0
  34. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +1 -0
  35. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +1 -0
  36. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +46 -0
  37. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +1 -0
  38. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +1 -0
  39. package/bin/executor/composer/context/LocalSessionContextComposer.d.ts +48 -0
  40. package/bin/executor/composer/context/LocalSessionContextComposer.d.ts.map +1 -0
  41. package/bin/executor/composer/context/LocalSessionContextComposer.js.map +1 -0
  42. package/bin/executor/composer/context/SessionContextComposer.d.ts +62 -0
  43. package/bin/executor/composer/context/SessionContextComposer.d.ts.map +1 -0
  44. package/bin/executor/composer/context/SessionContextComposer.js.map +1 -0
  45. package/bin/executor/composer/history/SessionHistoryComposer.d.ts +54 -0
  46. package/bin/executor/composer/history/SessionHistoryComposer.d.ts.map +1 -0
  47. package/bin/executor/composer/history/SessionHistoryComposer.js.map +1 -0
  48. package/bin/executor/composer/history/SessionHistoryWriter.d.ts +56 -0
  49. package/bin/executor/composer/history/SessionHistoryWriter.d.ts.map +1 -0
  50. package/bin/executor/composer/history/SessionHistoryWriter.js.map +1 -0
  51. package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +35 -0
  52. package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +1 -0
  53. package/bin/executor/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +1 -0
  54. package/bin/executor/composer/system/SessionSystemComposer.d.ts.map +1 -0
  55. package/bin/executor/composer/system/SessionSystemComposer.js.map +1 -0
  56. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts +42 -0
  57. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts.map +1 -0
  58. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.js.map +1 -0
  59. package/bin/executor/composer/system/default/InitPromptAssets.d.ts.map +1 -0
  60. package/bin/executor/composer/system/default/InitPromptAssets.js.map +1 -0
  61. package/bin/executor/composer/system/default/InitPrompts.d.ts.map +1 -0
  62. package/bin/executor/composer/system/default/InitPrompts.js.map +1 -0
  63. package/bin/executor/composer/system/default/PromptRenderer.d.ts.map +1 -0
  64. package/bin/executor/composer/system/default/PromptRenderer.js.map +1 -0
  65. package/bin/executor/composer/system/default/StaticPromptCatalog.d.ts.map +1 -0
  66. package/bin/executor/composer/system/default/StaticPromptCatalog.js.map +1 -0
  67. package/bin/executor/composer/system/default/SystemDomain.d.ts +169 -0
  68. package/bin/executor/composer/system/default/SystemDomain.d.ts.map +1 -0
  69. package/bin/executor/composer/system/default/SystemDomain.js +221 -0
  70. package/bin/executor/composer/system/default/SystemDomain.js.map +1 -0
  71. package/bin/executor/composer/system/default/SystemPromptAssets.d.ts +20 -0
  72. package/bin/executor/composer/system/default/SystemPromptAssets.d.ts.map +1 -0
  73. package/bin/executor/composer/system/default/SystemPromptAssets.js +23 -0
  74. package/bin/executor/composer/system/default/SystemPromptAssets.js.map +1 -0
  75. package/bin/executor/composer/system/default/assets/core.prompt.d.ts +7 -0
  76. package/bin/executor/composer/system/default/assets/core.prompt.d.ts.map +1 -0
  77. package/bin/executor/composer/system/default/assets/core.prompt.js +8 -0
  78. package/bin/executor/composer/system/default/assets/core.prompt.js.map +1 -0
  79. package/bin/executor/composer/system/default/assets/init/PROFILE.md.d.ts.map +1 -0
  80. package/bin/executor/composer/system/default/assets/init/PROFILE.md.js +8 -0
  81. package/bin/executor/composer/system/default/assets/init/PROFILE.md.js.map +1 -0
  82. package/bin/executor/composer/system/default/assets/init/SOUL.md.d.ts.map +1 -0
  83. package/bin/executor/composer/system/default/assets/init/SOUL.md.js +8 -0
  84. package/bin/executor/composer/system/default/assets/init/SOUL.md.js.map +1 -0
  85. package/bin/executor/composer/system/default/assets/plugin.prompt.d.ts +7 -0
  86. package/bin/executor/composer/system/default/assets/plugin.prompt.d.ts.map +1 -0
  87. package/bin/executor/composer/system/default/assets/plugin.prompt.js +8 -0
  88. package/bin/executor/composer/system/default/assets/plugin.prompt.js.map +1 -0
  89. package/bin/executor/composer/system/default/assets/task.prompt.d.ts.map +1 -0
  90. package/bin/executor/composer/system/default/assets/task.prompt.js +8 -0
  91. package/bin/executor/composer/system/default/assets/task.prompt.js.map +1 -0
  92. package/bin/executor/composer/system/default/variables/GeoContext.d.ts.map +1 -0
  93. package/bin/executor/composer/system/default/variables/GeoContext.js.map +1 -0
  94. package/bin/executor/composer/system/default/variables/PromptTypes.d.ts.map +1 -0
  95. package/bin/executor/composer/system/default/variables/PromptTypes.js.map +1 -0
  96. package/bin/executor/composer/system/default/variables/VariableReplacer.d.ts.map +1 -0
  97. package/bin/executor/composer/system/default/variables/VariableReplacer.js.map +1 -0
  98. package/bin/executor/core-engine/CoreEngineError.d.ts.map +1 -0
  99. package/bin/executor/core-engine/CoreEngineError.js.map +1 -0
  100. package/bin/executor/core-engine/CoreEngineLoopDecision.d.ts +27 -0
  101. package/bin/executor/core-engine/CoreEngineLoopDecision.d.ts.map +1 -0
  102. package/bin/executor/core-engine/CoreEngineLoopDecision.js.map +1 -0
  103. package/bin/executor/core-engine/CoreEngineMessageState.d.ts +63 -0
  104. package/bin/executor/core-engine/CoreEngineMessageState.d.ts.map +1 -0
  105. package/bin/executor/core-engine/CoreEngineMessageState.js.map +1 -0
  106. package/bin/executor/core-engine/CoreEngineSignals.d.ts +72 -0
  107. package/bin/executor/core-engine/CoreEngineSignals.d.ts.map +1 -0
  108. package/bin/executor/core-engine/CoreEngineSignals.js.map +1 -0
  109. package/bin/executor/core-engine/CoreEngineUiStreamCollector.d.ts +33 -0
  110. package/bin/executor/core-engine/CoreEngineUiStreamCollector.d.ts.map +1 -0
  111. package/bin/executor/core-engine/CoreEngineUiStreamCollector.js.map +1 -0
  112. package/bin/executor/ids/resolveSessionId.d.ts.map +1 -0
  113. package/bin/executor/ids/resolveSessionId.js.map +1 -0
  114. package/bin/executor/messages/AssistantResultPersistence.d.ts +66 -0
  115. package/bin/executor/messages/AssistantResultPersistence.d.ts.map +1 -0
  116. package/bin/executor/messages/AssistantResultPersistence.js +48 -0
  117. package/bin/executor/messages/AssistantResultPersistence.js.map +1 -0
  118. package/bin/executor/messages/SessionAttachmentMapper.d.ts +14 -0
  119. package/bin/executor/messages/SessionAttachmentMapper.d.ts.map +1 -0
  120. package/bin/executor/messages/SessionAttachmentMapper.js +145 -0
  121. package/bin/executor/messages/SessionAttachmentMapper.js.map +1 -0
  122. package/bin/executor/messages/SessionMessageCodec.d.ts +41 -0
  123. package/bin/executor/messages/SessionMessageCodec.d.ts.map +1 -0
  124. package/bin/executor/messages/SessionMessageCodec.js.map +1 -0
  125. package/bin/executor/messages/SessionMessageLog.d.ts +19 -0
  126. package/bin/executor/messages/SessionMessageLog.d.ts.map +1 -0
  127. package/bin/executor/messages/SessionMessageLog.js.map +1 -0
  128. package/bin/executor/messages/SessionStepEventMapper.d.ts +20 -0
  129. package/bin/executor/messages/SessionStepEventMapper.d.ts.map +1 -0
  130. package/bin/executor/messages/SessionStepEventMapper.js.map +1 -0
  131. package/bin/executor/store/history/SessionHistoryStore.d.ts +119 -0
  132. package/bin/executor/store/history/SessionHistoryStore.d.ts.map +1 -0
  133. package/bin/executor/store/history/SessionHistoryStore.js.map +1 -0
  134. package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.d.ts +85 -0
  135. package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.d.ts.map +1 -0
  136. package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.js +382 -0
  137. package/bin/executor/store/history/jsonl/JsonlSessionHistoryStore.js.map +1 -0
  138. package/bin/executor/tools/shell/ShellToolBridge.d.ts +79 -0
  139. package/bin/executor/tools/shell/ShellToolBridge.d.ts.map +1 -0
  140. package/bin/executor/tools/shell/ShellToolBridge.js +288 -0
  141. package/bin/executor/tools/shell/ShellToolBridge.js.map +1 -0
  142. package/bin/executor/tools/shell/ShellToolDefinition.d.ts +114 -0
  143. package/bin/executor/tools/shell/ShellToolDefinition.d.ts.map +1 -0
  144. package/bin/executor/tools/shell/ShellToolDefinition.js +359 -0
  145. package/bin/executor/tools/shell/ShellToolDefinition.js.map +1 -0
  146. package/bin/executor/tools/shell/ShellToolFormatting.d.ts +26 -0
  147. package/bin/executor/tools/shell/ShellToolFormatting.d.ts.map +1 -0
  148. package/bin/executor/tools/shell/ShellToolFormatting.js +74 -0
  149. package/bin/executor/tools/shell/ShellToolFormatting.js.map +1 -0
  150. package/bin/executor/tools/shell/ShellToolSchemas.d.ts.map +1 -0
  151. package/bin/executor/tools/shell/ShellToolSchemas.js +113 -0
  152. package/bin/executor/tools/shell/ShellToolSchemas.js.map +1 -0
  153. package/bin/executor/types/SessionExecutor.d.ts +18 -0
  154. package/bin/executor/types/SessionExecutor.d.ts.map +1 -0
  155. package/bin/executor/types/SessionExecutor.js.map +1 -0
  156. package/bin/executor/types/SessionHistoryMeta.d.ts +45 -0
  157. package/bin/executor/types/SessionHistoryMeta.d.ts.map +1 -0
  158. package/bin/executor/types/SessionHistoryMeta.js +9 -0
  159. package/bin/executor/types/SessionHistoryMeta.js.map +1 -0
  160. package/bin/executor/types/SessionHistoryPaths.d.ts +30 -0
  161. package/bin/executor/types/SessionHistoryPaths.d.ts.map +1 -0
  162. package/bin/executor/types/SessionHistoryPaths.js.map +1 -0
  163. package/bin/executor/types/SessionLoop.d.ts.map +1 -0
  164. package/bin/executor/types/SessionLoop.js.map +1 -0
  165. package/bin/executor/types/SessionMessages.d.ts +83 -0
  166. package/bin/executor/types/SessionMessages.d.ts.map +1 -0
  167. package/bin/executor/types/SessionMessages.js.map +1 -0
  168. package/bin/executor/types/SessionPrompts.d.ts.map +1 -0
  169. package/bin/executor/types/SessionPrompts.js.map +1 -0
  170. package/bin/executor/types/SessionRun.d.ts +112 -0
  171. package/bin/executor/types/SessionRun.d.ts.map +1 -0
  172. package/bin/executor/types/SessionRun.js.map +1 -0
  173. package/bin/index.d.ts +40 -40
  174. package/bin/index.d.ts.map +1 -1
  175. package/bin/index.js +29 -29
  176. package/bin/index.js.map +1 -1
  177. package/bin/plugin/builtins/asr/Plugin.d.ts +7 -3
  178. package/bin/plugin/builtins/asr/Plugin.d.ts.map +1 -1
  179. package/bin/plugin/builtins/asr/Plugin.js +405 -395
  180. package/bin/plugin/builtins/asr/Plugin.js.map +1 -1
  181. package/bin/plugin/builtins/auth/Plugin.d.ts +7 -3
  182. package/bin/plugin/builtins/auth/Plugin.d.ts.map +1 -1
  183. package/bin/plugin/builtins/auth/Plugin.js +134 -124
  184. package/bin/plugin/builtins/auth/Plugin.js.map +1 -1
  185. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts +1 -1
  186. package/bin/plugin/builtins/auth/runtime/AuthorizationStore.d.ts.map +1 -1
  187. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts +1 -1
  188. package/bin/plugin/builtins/auth/types/AuthPlugin.d.ts.map +1 -1
  189. package/bin/plugin/builtins/auth/types/AuthPlugin.js +1 -1
  190. package/bin/plugin/builtins/auth/types/AuthPlugin.js.map +1 -1
  191. package/bin/plugin/builtins/chat/Action.d.ts +125 -0
  192. package/bin/plugin/builtins/chat/Action.d.ts.map +1 -0
  193. package/bin/plugin/builtins/chat/Action.js +376 -0
  194. package/bin/plugin/builtins/chat/Action.js.map +1 -0
  195. package/bin/plugin/builtins/chat/ChatPlugin.d.ts +89 -0
  196. package/bin/plugin/builtins/chat/ChatPlugin.d.ts.map +1 -0
  197. package/bin/plugin/builtins/chat/ChatPlugin.js +212 -0
  198. package/bin/plugin/builtins/chat/ChatPlugin.js.map +1 -0
  199. package/bin/plugin/builtins/chat/ChatPluginTypes.d.ts +159 -0
  200. package/bin/plugin/builtins/chat/ChatPluginTypes.d.ts.map +1 -0
  201. package/bin/plugin/builtins/chat/ChatPluginTypes.js +10 -0
  202. package/bin/plugin/builtins/chat/ChatPluginTypes.js.map +1 -0
  203. package/bin/plugin/builtins/chat/Index.d.ts +9 -0
  204. package/bin/plugin/builtins/chat/Index.d.ts.map +1 -0
  205. package/bin/plugin/builtins/chat/Index.js +9 -0
  206. package/bin/plugin/builtins/chat/Index.js.map +1 -0
  207. package/bin/plugin/builtins/chat/PROMPT.direct.d.ts +7 -0
  208. package/bin/plugin/builtins/chat/PROMPT.direct.d.ts.map +1 -0
  209. package/bin/plugin/builtins/chat/PROMPT.direct.js +8 -0
  210. package/bin/plugin/builtins/chat/PROMPT.direct.js.map +1 -0
  211. package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.d.ts +63 -0
  212. package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.d.ts.map +1 -0
  213. package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.js +258 -0
  214. package/bin/plugin/builtins/chat/accounts/ChannelAccountManager.js.map +1 -0
  215. package/bin/plugin/builtins/chat/channels/BaseChatChannel.d.ts +201 -0
  216. package/bin/plugin/builtins/chat/channels/BaseChatChannel.d.ts.map +1 -0
  217. package/bin/plugin/builtins/chat/channels/BaseChatChannel.js +294 -0
  218. package/bin/plugin/builtins/chat/channels/BaseChatChannel.js.map +1 -0
  219. package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.d.ts +73 -0
  220. package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +1 -0
  221. package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.js +237 -0
  222. package/bin/plugin/builtins/chat/channels/BaseChatChannelQueue.js.map +1 -0
  223. package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.d.ts +189 -0
  224. package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +1 -0
  225. package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.js +141 -0
  226. package/bin/plugin/builtins/chat/channels/BaseChatChannelSupport.js.map +1 -0
  227. package/bin/plugin/builtins/chat/channels/BotInfoProvider.d.ts +18 -0
  228. package/bin/plugin/builtins/chat/channels/BotInfoProvider.d.ts.map +1 -0
  229. package/bin/plugin/builtins/chat/channels/BotInfoProvider.js +32 -0
  230. package/bin/plugin/builtins/chat/channels/BotInfoProvider.js.map +1 -0
  231. package/bin/plugin/builtins/chat/channels/Configuration.d.ts +27 -0
  232. package/bin/plugin/builtins/chat/channels/Configuration.d.ts.map +1 -0
  233. package/bin/plugin/builtins/chat/channels/Configuration.js.map +1 -0
  234. package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.d.ts +18 -0
  235. package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.d.ts.map +1 -0
  236. package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.js +31 -0
  237. package/bin/plugin/builtins/chat/channels/ConfigurationRegistry.js.map +1 -0
  238. package/bin/plugin/builtins/chat/channels/feishu/BotInfo.d.ts +20 -0
  239. package/bin/plugin/builtins/chat/channels/feishu/BotInfo.d.ts.map +1 -0
  240. package/bin/plugin/builtins/chat/channels/feishu/BotInfo.js.map +1 -0
  241. package/bin/plugin/builtins/chat/channels/feishu/Configuration.d.ts +17 -0
  242. package/bin/plugin/builtins/chat/channels/feishu/Configuration.d.ts.map +1 -0
  243. package/bin/plugin/builtins/chat/channels/feishu/Configuration.js +59 -0
  244. package/bin/plugin/builtins/chat/channels/feishu/Configuration.js.map +1 -0
  245. package/bin/plugin/builtins/chat/channels/feishu/Feishu.d.ts +116 -0
  246. package/bin/plugin/builtins/chat/channels/feishu/Feishu.d.ts.map +1 -0
  247. package/bin/plugin/builtins/chat/channels/feishu/Feishu.js +326 -0
  248. package/bin/plugin/builtins/chat/channels/feishu/Feishu.js.map +1 -0
  249. package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.d.ts +21 -0
  250. package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +1 -0
  251. package/bin/plugin/builtins/chat/channels/feishu/FeishuInbound.js.map +1 -0
  252. package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts +155 -0
  253. package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts.map +1 -0
  254. package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.js +247 -0
  255. package/bin/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.js.map +1 -0
  256. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +130 -0
  257. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +1 -0
  258. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +1 -0
  259. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +102 -0
  260. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +1 -0
  261. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +1 -0
  262. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +49 -0
  263. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +1 -0
  264. package/bin/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +1 -0
  265. package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.d.ts +31 -0
  266. package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +1 -0
  267. package/bin/plugin/builtins/chat/channels/feishu/InboundAttachment.js.map +1 -0
  268. package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +1 -0
  269. package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.js +8 -0
  270. package/bin/plugin/builtins/chat/channels/feishu/PROMPT.direct.js.map +1 -0
  271. package/bin/plugin/builtins/chat/channels/feishu/PostMessage.d.ts +48 -0
  272. package/bin/plugin/builtins/chat/channels/feishu/PostMessage.d.ts.map +1 -0
  273. package/bin/plugin/builtins/chat/channels/feishu/PostMessage.js.map +1 -0
  274. package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.d.ts +18 -0
  275. package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.d.ts.map +1 -0
  276. package/bin/plugin/builtins/chat/channels/feishu/ReplyContext.js.map +1 -0
  277. package/bin/plugin/builtins/chat/channels/feishu/Shared.d.ts +21 -0
  278. package/bin/plugin/builtins/chat/channels/feishu/Shared.d.ts.map +1 -0
  279. package/bin/plugin/builtins/chat/channels/feishu/Shared.js +69 -0
  280. package/bin/plugin/builtins/chat/channels/feishu/Shared.js.map +1 -0
  281. package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.d.ts +127 -0
  282. package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +1 -0
  283. package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.js +9 -0
  284. package/bin/plugin/builtins/chat/channels/feishu/types/FeishuChannel.js.map +1 -0
  285. package/bin/plugin/builtins/chat/channels/qq/BotInfo.d.ts +19 -0
  286. package/bin/plugin/builtins/chat/channels/qq/BotInfo.d.ts.map +1 -0
  287. package/bin/plugin/builtins/chat/channels/qq/BotInfo.js.map +1 -0
  288. package/bin/plugin/builtins/chat/channels/qq/Configuration.d.ts +17 -0
  289. package/bin/plugin/builtins/chat/channels/qq/Configuration.d.ts.map +1 -0
  290. package/bin/plugin/builtins/chat/channels/qq/Configuration.js +59 -0
  291. package/bin/plugin/builtins/chat/channels/qq/Configuration.js.map +1 -0
  292. package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.d.ts +7 -0
  293. package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +1 -0
  294. package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.js +8 -0
  295. package/bin/plugin/builtins/chat/channels/qq/PROMPT.direct.js.map +1 -0
  296. package/bin/plugin/builtins/chat/channels/qq/QQ.d.ts +92 -0
  297. package/bin/plugin/builtins/chat/channels/qq/QQ.d.ts.map +1 -0
  298. package/bin/plugin/builtins/chat/channels/qq/QQ.js +287 -0
  299. package/bin/plugin/builtins/chat/channels/qq/QQ.js.map +1 -0
  300. package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.d.ts +22 -0
  301. package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.d.ts.map +1 -0
  302. package/bin/plugin/builtins/chat/channels/qq/QQEventCapture.js.map +1 -0
  303. package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.d.ts +119 -0
  304. package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +1 -0
  305. package/bin/plugin/builtins/chat/channels/qq/QQGatewayAuth.js.map +1 -0
  306. package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.d.ts +155 -0
  307. package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +1 -0
  308. package/bin/plugin/builtins/chat/channels/qq/QQGatewayClient.js.map +1 -0
  309. package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.d.ts +65 -0
  310. package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.d.ts.map +1 -0
  311. package/bin/plugin/builtins/chat/channels/qq/QQGatewayConnection.js.map +1 -0
  312. package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +1 -0
  313. package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.js +58 -0
  314. package/bin/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.js.map +1 -0
  315. package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.d.ts +86 -0
  316. package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.d.ts.map +1 -0
  317. package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.js +93 -0
  318. package/bin/plugin/builtins/chat/channels/qq/QQGatewayProtocol.js.map +1 -0
  319. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.d.ts +84 -0
  320. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +1 -0
  321. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySend.js.map +1 -0
  322. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.d.ts +39 -0
  323. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +1 -0
  324. package/bin/plugin/builtins/chat/channels/qq/QQGatewaySupport.js.map +1 -0
  325. package/bin/plugin/builtins/chat/channels/qq/QQInbound.d.ts +47 -0
  326. package/bin/plugin/builtins/chat/channels/qq/QQInbound.d.ts.map +1 -0
  327. package/bin/plugin/builtins/chat/channels/qq/QQInbound.js.map +1 -0
  328. package/bin/plugin/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +1 -0
  329. package/bin/plugin/builtins/chat/channels/qq/QQInboundDedupe.js.map +1 -0
  330. package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.d.ts +129 -0
  331. package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.d.ts.map +1 -0
  332. package/bin/plugin/builtins/chat/channels/qq/QQMessageHandler.js.map +1 -0
  333. package/bin/plugin/builtins/chat/channels/qq/QQSendSupport.d.ts.map +1 -0
  334. package/bin/plugin/builtins/chat/channels/qq/QQSendSupport.js.map +1 -0
  335. package/bin/plugin/builtins/chat/channels/qq/QQSupport.d.ts +102 -0
  336. package/bin/plugin/builtins/chat/channels/qq/QQSupport.d.ts.map +1 -0
  337. package/bin/plugin/builtins/chat/channels/qq/QQSupport.js +172 -0
  338. package/bin/plugin/builtins/chat/channels/qq/QQSupport.js.map +1 -0
  339. package/bin/plugin/builtins/chat/channels/qq/VoiceInput.d.ts +64 -0
  340. package/bin/plugin/builtins/chat/channels/qq/VoiceInput.d.ts.map +1 -0
  341. package/bin/plugin/builtins/chat/channels/qq/VoiceInput.js.map +1 -0
  342. package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.d.ts +485 -0
  343. package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.d.ts.map +1 -0
  344. package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.js +42 -0
  345. package/bin/plugin/builtins/chat/channels/qq/types/QqChannel.js.map +1 -0
  346. package/bin/plugin/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +1 -0
  347. package/bin/plugin/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +1 -0
  348. package/bin/plugin/builtins/chat/channels/telegram/ApiClient.d.ts.map +1 -0
  349. package/bin/plugin/builtins/chat/channels/telegram/ApiClient.js.map +1 -0
  350. package/bin/plugin/builtins/chat/channels/telegram/Bot.d.ts +97 -0
  351. package/bin/plugin/builtins/chat/channels/telegram/Bot.d.ts.map +1 -0
  352. package/bin/plugin/builtins/chat/channels/telegram/Bot.js +246 -0
  353. package/bin/plugin/builtins/chat/channels/telegram/Bot.js.map +1 -0
  354. package/bin/plugin/builtins/chat/channels/telegram/BotInfo.d.ts +19 -0
  355. package/bin/plugin/builtins/chat/channels/telegram/BotInfo.d.ts.map +1 -0
  356. package/bin/plugin/builtins/chat/channels/telegram/BotInfo.js.map +1 -0
  357. package/bin/plugin/builtins/chat/channels/telegram/Configuration.d.ts +17 -0
  358. package/bin/plugin/builtins/chat/channels/telegram/Configuration.d.ts.map +1 -0
  359. package/bin/plugin/builtins/chat/channels/telegram/Configuration.js +59 -0
  360. package/bin/plugin/builtins/chat/channels/telegram/Configuration.js.map +1 -0
  361. package/bin/plugin/builtins/chat/channels/telegram/Handlers.d.ts.map +1 -0
  362. package/bin/plugin/builtins/chat/channels/telegram/Handlers.js.map +1 -0
  363. package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +1 -0
  364. package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.js +8 -0
  365. package/bin/plugin/builtins/chat/channels/telegram/PROMPT.direct.js.map +1 -0
  366. package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.d.ts +14 -0
  367. package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.d.ts.map +1 -0
  368. package/bin/plugin/builtins/chat/channels/telegram/ReplyContext.js.map +1 -0
  369. package/bin/plugin/builtins/chat/channels/telegram/Shared.d.ts.map +1 -0
  370. package/bin/plugin/builtins/chat/channels/telegram/Shared.js +171 -0
  371. package/bin/plugin/builtins/chat/channels/telegram/Shared.js.map +1 -0
  372. package/bin/plugin/builtins/chat/channels/telegram/StateStore.d.ts.map +1 -0
  373. package/bin/plugin/builtins/chat/channels/telegram/StateStore.js.map +1 -0
  374. package/bin/plugin/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +1 -0
  375. package/bin/plugin/builtins/chat/channels/telegram/TelegramInbound.js.map +1 -0
  376. package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts +142 -0
  377. package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts.map +1 -0
  378. package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.js +267 -0
  379. package/bin/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.js.map +1 -0
  380. package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts +55 -0
  381. package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +1 -0
  382. package/bin/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.js.map +1 -0
  383. package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +161 -0
  384. package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +1 -0
  385. package/bin/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +1 -0
  386. package/bin/plugin/builtins/chat/runtime/ChannelContextStore.d.ts +78 -0
  387. package/bin/plugin/builtins/chat/runtime/ChannelContextStore.d.ts.map +1 -0
  388. package/bin/plugin/builtins/chat/runtime/ChannelContextStore.js.map +1 -0
  389. package/bin/plugin/builtins/chat/runtime/ChatActionExecution.d.ts +145 -0
  390. package/bin/plugin/builtins/chat/runtime/ChatActionExecution.d.ts.map +1 -0
  391. package/bin/plugin/builtins/chat/runtime/ChatActionExecution.js +287 -0
  392. package/bin/plugin/builtins/chat/runtime/ChatActionExecution.js.map +1 -0
  393. package/bin/plugin/builtins/chat/runtime/ChatActionInput.d.ts +22 -0
  394. package/bin/plugin/builtins/chat/runtime/ChatActionInput.d.ts.map +1 -0
  395. package/bin/plugin/builtins/chat/runtime/ChatActionInput.js +114 -0
  396. package/bin/plugin/builtins/chat/runtime/ChatActionInput.js.map +1 -0
  397. package/bin/plugin/builtins/chat/runtime/ChatActionInputSupport.d.ts.map +1 -0
  398. package/bin/plugin/builtins/chat/runtime/ChatActionInputSupport.js.map +1 -0
  399. package/bin/plugin/builtins/chat/runtime/ChatChannelActions.d.ts +122 -0
  400. package/bin/plugin/builtins/chat/runtime/ChatChannelActions.d.ts.map +1 -0
  401. package/bin/plugin/builtins/chat/runtime/ChatChannelActions.js +230 -0
  402. package/bin/plugin/builtins/chat/runtime/ChatChannelActions.js.map +1 -0
  403. package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.d.ts +61 -0
  404. package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.d.ts.map +1 -0
  405. package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.js +260 -0
  406. package/bin/plugin/builtins/chat/runtime/ChatChannelConfig.js.map +1 -0
  407. package/bin/plugin/builtins/chat/runtime/ChatChannelCore.d.ts +45 -0
  408. package/bin/plugin/builtins/chat/runtime/ChatChannelCore.d.ts.map +1 -0
  409. package/bin/plugin/builtins/chat/runtime/ChatChannelCore.js +106 -0
  410. package/bin/plugin/builtins/chat/runtime/ChatChannelCore.js.map +1 -0
  411. package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.d.ts +12 -0
  412. package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.d.ts.map +1 -0
  413. package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.js +12 -0
  414. package/bin/plugin/builtins/chat/runtime/ChatChannelFacade.js.map +1 -0
  415. package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.d.ts +28 -0
  416. package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +1 -0
  417. package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.js +132 -0
  418. package/bin/plugin/builtins/chat/runtime/ChatChannelLifecycle.js.map +1 -0
  419. package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.d.ts +72 -0
  420. package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.d.ts.map +1 -0
  421. package/bin/plugin/builtins/chat/runtime/ChatHistoryStore.js.map +1 -0
  422. package/bin/plugin/builtins/chat/runtime/ChatIngressStore.d.ts +44 -0
  423. package/bin/plugin/builtins/chat/runtime/ChatIngressStore.d.ts.map +1 -0
  424. package/bin/plugin/builtins/chat/runtime/ChatIngressStore.js +51 -0
  425. package/bin/plugin/builtins/chat/runtime/ChatIngressStore.js.map +1 -0
  426. package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.d.ts +54 -0
  427. package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +1 -0
  428. package/bin/plugin/builtins/chat/runtime/ChatMessageMarkup.js.map +1 -0
  429. package/bin/plugin/builtins/chat/runtime/ChatMetaStore.d.ts +68 -0
  430. package/bin/plugin/builtins/chat/runtime/ChatMetaStore.d.ts.map +1 -0
  431. package/bin/plugin/builtins/chat/runtime/ChatMetaStore.js +143 -0
  432. package/bin/plugin/builtins/chat/runtime/ChatMetaStore.js.map +1 -0
  433. package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.d.ts +17 -0
  434. package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.d.ts.map +1 -0
  435. package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.js +304 -0
  436. package/bin/plugin/builtins/chat/runtime/ChatPluginActionRegistry.js.map +1 -0
  437. package/bin/plugin/builtins/chat/runtime/ChatPluginActions.d.ts +5 -0
  438. package/bin/plugin/builtins/chat/runtime/ChatPluginActions.d.ts.map +1 -0
  439. package/bin/plugin/builtins/chat/runtime/ChatPluginActions.js +5 -0
  440. package/bin/plugin/builtins/chat/runtime/ChatPluginActions.js.map +1 -0
  441. package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.d.ts +22 -0
  442. package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.d.ts.map +1 -0
  443. package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.js +44 -0
  444. package/bin/plugin/builtins/chat/runtime/ChatPluginSystem.js.map +1 -0
  445. package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.d.ts +24 -0
  446. package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.d.ts.map +1 -0
  447. package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.js +28 -0
  448. package/bin/plugin/builtins/chat/runtime/ChatPromptAssets.js.map +1 -0
  449. package/bin/plugin/builtins/chat/runtime/ChatQueue.d.ts +40 -0
  450. package/bin/plugin/builtins/chat/runtime/ChatQueue.d.ts.map +1 -0
  451. package/bin/plugin/builtins/chat/runtime/ChatQueue.js.map +1 -0
  452. package/bin/plugin/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +1 -0
  453. package/bin/plugin/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +1 -0
  454. package/bin/plugin/builtins/chat/runtime/ChatQueueStore.d.ts +85 -0
  455. package/bin/plugin/builtins/chat/runtime/ChatQueueStore.d.ts.map +1 -0
  456. package/bin/plugin/builtins/chat/runtime/ChatQueueStore.js +130 -0
  457. package/bin/plugin/builtins/chat/runtime/ChatQueueStore.js.map +1 -0
  458. package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.d.ts +83 -0
  459. package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.d.ts.map +1 -0
  460. package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.js +406 -0
  461. package/bin/plugin/builtins/chat/runtime/ChatQueueWorker.js.map +1 -0
  462. package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +36 -0
  463. package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +1 -0
  464. package/bin/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +1 -0
  465. package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.d.ts +23 -0
  466. package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.d.ts.map +1 -0
  467. package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.js +205 -0
  468. package/bin/plugin/builtins/chat/runtime/ChatSendActionInput.js.map +1 -0
  469. package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.d.ts +20 -0
  470. package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.d.ts.map +1 -0
  471. package/bin/plugin/builtins/chat/runtime/ChatSendMetadata.js.map +1 -0
  472. package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.d.ts +27 -0
  473. package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.d.ts.map +1 -0
  474. package/bin/plugin/builtins/chat/runtime/ChatSendRegistry.js.map +1 -0
  475. package/bin/plugin/builtins/chat/runtime/ChatSession.d.ts +97 -0
  476. package/bin/plugin/builtins/chat/runtime/ChatSession.d.ts.map +1 -0
  477. package/bin/plugin/builtins/chat/runtime/ChatSession.js +84 -0
  478. package/bin/plugin/builtins/chat/runtime/ChatSession.js.map +1 -0
  479. package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.d.ts +45 -0
  480. package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.d.ts.map +1 -0
  481. package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.js +60 -0
  482. package/bin/plugin/builtins/chat/runtime/ChatSessionContextComposer.js.map +1 -0
  483. package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.d.ts +29 -0
  484. package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.d.ts.map +1 -0
  485. package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.js +76 -0
  486. package/bin/plugin/builtins/chat/runtime/ChatSessionDelete.js.map +1 -0
  487. package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.d.ts +30 -0
  488. package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.d.ts.map +1 -0
  489. package/bin/plugin/builtins/chat/runtime/ChatSessionTypes.js.map +1 -0
  490. package/bin/plugin/builtins/chat/runtime/ChatkeySend.d.ts +67 -0
  491. package/bin/plugin/builtins/chat/runtime/ChatkeySend.d.ts.map +1 -0
  492. package/bin/plugin/builtins/chat/runtime/ChatkeySend.js +147 -0
  493. package/bin/plugin/builtins/chat/runtime/ChatkeySend.js.map +1 -0
  494. package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.d.ts +22 -0
  495. package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.d.ts.map +1 -0
  496. package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.js +133 -0
  497. package/bin/plugin/builtins/chat/runtime/DirectDispatchParser.js.map +1 -0
  498. package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.d.ts +24 -0
  499. package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.d.ts.map +1 -0
  500. package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.js +28 -0
  501. package/bin/plugin/builtins/chat/runtime/EnqueueDispatch.js.map +1 -0
  502. package/bin/plugin/builtins/chat/runtime/InboundAugment.d.ts +21 -0
  503. package/bin/plugin/builtins/chat/runtime/InboundAugment.d.ts.map +1 -0
  504. package/bin/plugin/builtins/chat/runtime/InboundAugment.js +50 -0
  505. package/bin/plugin/builtins/chat/runtime/InboundAugment.js.map +1 -0
  506. package/bin/plugin/builtins/chat/runtime/PluginDispatch.d.ts +43 -0
  507. package/bin/plugin/builtins/chat/runtime/PluginDispatch.d.ts.map +1 -0
  508. package/bin/plugin/builtins/chat/runtime/PluginDispatch.js +57 -0
  509. package/bin/plugin/builtins/chat/runtime/PluginDispatch.js.map +1 -0
  510. package/bin/plugin/builtins/chat/runtime/PluginPoints.d.ts +78 -0
  511. package/bin/plugin/builtins/chat/runtime/PluginPoints.d.ts.map +1 -0
  512. package/bin/plugin/builtins/chat/runtime/PluginPoints.js +78 -0
  513. package/bin/plugin/builtins/chat/runtime/PluginPoints.js.map +1 -0
  514. package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.d.ts +20 -0
  515. package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.d.ts.map +1 -0
  516. package/bin/plugin/builtins/chat/runtime/QueuedUserMessage.js.map +1 -0
  517. package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.d.ts +29 -0
  518. package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +1 -0
  519. package/bin/plugin/builtins/chat/runtime/ReplyContextFormatter.js.map +1 -0
  520. package/bin/plugin/builtins/chat/runtime/ReplyDispatch.d.ts +36 -0
  521. package/bin/plugin/builtins/chat/runtime/ReplyDispatch.d.ts.map +1 -0
  522. package/bin/plugin/builtins/chat/runtime/ReplyDispatch.js +51 -0
  523. package/bin/plugin/builtins/chat/runtime/ReplyDispatch.js.map +1 -0
  524. package/bin/plugin/builtins/chat/runtime/SystemPrompt.d.ts +26 -0
  525. package/bin/plugin/builtins/chat/runtime/SystemPrompt.d.ts.map +1 -0
  526. package/bin/plugin/builtins/chat/runtime/SystemPrompt.js +70 -0
  527. package/bin/plugin/builtins/chat/runtime/SystemPrompt.js.map +1 -0
  528. package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.d.ts +24 -0
  529. package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.d.ts.map +1 -0
  530. package/bin/plugin/builtins/chat/runtime/UIMessageTransformer.js.map +1 -0
  531. package/bin/plugin/builtins/chat/runtime/UserVisibleText.d.ts +34 -0
  532. package/bin/plugin/builtins/chat/runtime/UserVisibleText.d.ts.map +1 -0
  533. package/bin/plugin/builtins/chat/runtime/UserVisibleText.js.map +1 -0
  534. package/bin/plugin/builtins/chat/types/BotInfo.d.ts +97 -0
  535. package/bin/plugin/builtins/chat/types/BotInfo.d.ts.map +1 -0
  536. package/bin/plugin/builtins/chat/types/BotInfo.js.map +1 -0
  537. package/bin/plugin/builtins/chat/types/ChannelAccount.d.ts.map +1 -0
  538. package/bin/plugin/builtins/chat/types/ChannelAccount.js.map +1 -0
  539. package/bin/plugin/builtins/chat/types/ChannelConfiguration.d.ts +146 -0
  540. package/bin/plugin/builtins/chat/types/ChannelConfiguration.d.ts.map +1 -0
  541. package/bin/plugin/builtins/chat/types/ChannelConfiguration.js.map +1 -0
  542. package/bin/plugin/builtins/chat/types/ChannelContext.d.ts +107 -0
  543. package/bin/plugin/builtins/chat/types/ChannelContext.d.ts.map +1 -0
  544. package/bin/plugin/builtins/chat/types/ChannelContext.js +9 -0
  545. package/bin/plugin/builtins/chat/types/ChannelContext.js.map +1 -0
  546. package/bin/plugin/builtins/chat/types/ChannelStatus.d.ts +88 -0
  547. package/bin/plugin/builtins/chat/types/ChannelStatus.d.ts.map +1 -0
  548. package/bin/plugin/builtins/chat/types/ChannelStatus.js.map +1 -0
  549. package/bin/plugin/builtins/chat/types/ChatCommand.d.ts.map +1 -0
  550. package/bin/plugin/builtins/chat/types/ChatCommand.js.map +1 -0
  551. package/bin/plugin/builtins/chat/types/ChatDispatcher.d.ts.map +1 -0
  552. package/bin/plugin/builtins/chat/types/ChatDispatcher.js.map +1 -0
  553. package/bin/plugin/builtins/chat/types/ChatHistory.d.ts +36 -0
  554. package/bin/plugin/builtins/chat/types/ChatHistory.d.ts.map +1 -0
  555. package/bin/plugin/builtins/chat/types/ChatHistory.js.map +1 -0
  556. package/bin/plugin/builtins/chat/types/ChatMessageMarkup.d.ts +144 -0
  557. package/bin/plugin/builtins/chat/types/ChatMessageMarkup.d.ts.map +1 -0
  558. package/bin/plugin/builtins/chat/types/ChatMessageMarkup.js +9 -0
  559. package/bin/plugin/builtins/chat/types/ChatMessageMarkup.js.map +1 -0
  560. package/bin/plugin/builtins/chat/types/ChatMeta.d.ts +34 -0
  561. package/bin/plugin/builtins/chat/types/ChatMeta.d.ts.map +1 -0
  562. package/bin/plugin/builtins/chat/types/ChatMeta.js +10 -0
  563. package/bin/plugin/builtins/chat/types/ChatMeta.js.map +1 -0
  564. package/bin/plugin/builtins/chat/types/ChatPlugin.d.ts +238 -0
  565. package/bin/plugin/builtins/chat/types/ChatPlugin.d.ts.map +1 -0
  566. package/bin/plugin/builtins/chat/types/ChatPlugin.js +10 -0
  567. package/bin/plugin/builtins/chat/types/ChatPlugin.js.map +1 -0
  568. package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.d.ts +145 -0
  569. package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.d.ts.map +1 -0
  570. package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.js +10 -0
  571. package/bin/plugin/builtins/chat/types/ChatPluginActionPayload.js.map +1 -0
  572. package/bin/plugin/builtins/chat/types/ChatPromptContext.d.ts +125 -0
  573. package/bin/plugin/builtins/chat/types/ChatPromptContext.d.ts.map +1 -0
  574. package/bin/plugin/builtins/chat/types/ChatPromptContext.js.map +1 -0
  575. package/bin/plugin/builtins/chat/types/ChatQueue.d.ts +36 -0
  576. package/bin/plugin/builtins/chat/types/ChatQueue.d.ts.map +1 -0
  577. package/bin/plugin/builtins/chat/types/ChatQueue.js.map +1 -0
  578. package/bin/plugin/builtins/chat/types/ChatQueueWorker.d.ts.map +1 -0
  579. package/bin/plugin/builtins/chat/types/ChatQueueWorker.js.map +1 -0
  580. package/bin/plugin/builtins/chat/types/ChatRuntime.d.ts +32 -0
  581. package/bin/plugin/builtins/chat/types/ChatRuntime.d.ts.map +1 -0
  582. package/bin/plugin/builtins/chat/types/ChatRuntime.js +9 -0
  583. package/bin/plugin/builtins/chat/types/ChatRuntime.js.map +1 -0
  584. package/bin/plugin/builtins/chat/types/DirectDispatch.d.ts +115 -0
  585. package/bin/plugin/builtins/chat/types/DirectDispatch.d.ts.map +1 -0
  586. package/bin/plugin/builtins/chat/types/DirectDispatch.js.map +1 -0
  587. package/bin/plugin/builtins/chat/types/FeishuAttachment.d.ts.map +1 -0
  588. package/bin/plugin/builtins/chat/types/FeishuAttachment.js.map +1 -0
  589. package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.d.ts +114 -0
  590. package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.d.ts.map +1 -0
  591. package/bin/plugin/builtins/chat/types/FeishuInboundAttachment.js.map +1 -0
  592. package/bin/plugin/builtins/chat/types/FeishuPost.d.ts.map +1 -0
  593. package/bin/plugin/builtins/chat/types/FeishuPost.js.map +1 -0
  594. package/bin/plugin/builtins/chat/types/QqInboundDedupe.d.ts.map +1 -0
  595. package/bin/plugin/builtins/chat/types/QqInboundDedupe.js.map +1 -0
  596. package/bin/plugin/builtins/chat/types/QqVoice.d.ts.map +1 -0
  597. package/bin/plugin/builtins/chat/types/QqVoice.js.map +1 -0
  598. package/bin/plugin/builtins/chat/types/ReplyContext.d.ts.map +1 -0
  599. package/bin/plugin/builtins/chat/types/ReplyContext.js.map +1 -0
  600. package/bin/plugin/builtins/contact/Action.d.ts +62 -0
  601. package/bin/plugin/builtins/contact/Action.d.ts.map +1 -0
  602. package/bin/plugin/builtins/contact/Action.js +221 -0
  603. package/bin/plugin/builtins/contact/Action.js.map +1 -0
  604. package/bin/plugin/builtins/contact/ContactPlugin.d.ts +39 -0
  605. package/bin/plugin/builtins/contact/ContactPlugin.d.ts.map +1 -0
  606. package/bin/plugin/builtins/contact/ContactPlugin.js +409 -0
  607. package/bin/plugin/builtins/contact/ContactPlugin.js.map +1 -0
  608. package/bin/plugin/builtins/contact/Index.d.ts +8 -0
  609. package/bin/plugin/builtins/contact/Index.d.ts.map +1 -0
  610. package/bin/plugin/builtins/contact/Index.js +8 -0
  611. package/bin/plugin/builtins/contact/Index.js.map +1 -0
  612. package/bin/plugin/builtins/contact/PROMPT.d.ts +7 -0
  613. package/bin/plugin/builtins/contact/PROMPT.d.ts.map +1 -0
  614. package/bin/plugin/builtins/contact/PROMPT.js +8 -0
  615. package/bin/plugin/builtins/contact/PROMPT.js.map +1 -0
  616. package/bin/plugin/builtins/contact/runtime/ApproveCallback.d.ts +23 -0
  617. package/bin/plugin/builtins/contact/runtime/ApproveCallback.d.ts.map +1 -0
  618. package/bin/plugin/builtins/contact/runtime/ApproveCallback.js.map +1 -0
  619. package/bin/plugin/builtins/contact/runtime/ChatRuntime.d.ts +27 -0
  620. package/bin/plugin/builtins/contact/runtime/ChatRuntime.d.ts.map +1 -0
  621. package/bin/plugin/builtins/contact/runtime/ChatRuntime.js +60 -0
  622. package/bin/plugin/builtins/contact/runtime/ChatRuntime.js.map +1 -0
  623. package/bin/plugin/builtins/contact/runtime/ContactPayload.d.ts.map +1 -0
  624. package/bin/plugin/builtins/contact/runtime/ContactPayload.js.map +1 -0
  625. package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.d.ts +12 -0
  626. package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.d.ts.map +1 -0
  627. package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.js +13 -0
  628. package/bin/plugin/builtins/contact/runtime/ContactPromptAssets.js.map +1 -0
  629. package/bin/plugin/builtins/contact/runtime/ContactStore.d.ts +49 -0
  630. package/bin/plugin/builtins/contact/runtime/ContactStore.d.ts.map +1 -0
  631. package/bin/plugin/builtins/contact/runtime/ContactStore.js.map +1 -0
  632. package/bin/plugin/builtins/contact/runtime/EndpointNotice.d.ts +39 -0
  633. package/bin/plugin/builtins/contact/runtime/EndpointNotice.d.ts.map +1 -0
  634. package/bin/plugin/builtins/contact/runtime/EndpointNotice.js.map +1 -0
  635. package/bin/plugin/builtins/contact/runtime/EndpointResolver.d.ts.map +1 -0
  636. package/bin/plugin/builtins/contact/runtime/EndpointResolver.js.map +1 -0
  637. package/bin/plugin/builtins/contact/runtime/InboxStore.d.ts +33 -0
  638. package/bin/plugin/builtins/contact/runtime/InboxStore.d.ts.map +1 -0
  639. package/bin/plugin/builtins/contact/runtime/InboxStore.js.map +1 -0
  640. package/bin/plugin/builtins/contact/runtime/LinkApproval.d.ts +20 -0
  641. package/bin/plugin/builtins/contact/runtime/LinkApproval.d.ts.map +1 -0
  642. package/bin/plugin/builtins/contact/runtime/LinkApproval.js.map +1 -0
  643. package/bin/plugin/builtins/contact/runtime/LinkCode.d.ts +21 -0
  644. package/bin/plugin/builtins/contact/runtime/LinkCode.d.ts.map +1 -0
  645. package/bin/plugin/builtins/contact/runtime/LinkCode.js.map +1 -0
  646. package/bin/plugin/builtins/contact/runtime/LinkStore.d.ts +17 -0
  647. package/bin/plugin/builtins/contact/runtime/LinkStore.d.ts.map +1 -0
  648. package/bin/plugin/builtins/contact/runtime/LinkStore.js.map +1 -0
  649. package/bin/plugin/builtins/contact/runtime/Paths.d.ts +64 -0
  650. package/bin/plugin/builtins/contact/runtime/Paths.d.ts.map +1 -0
  651. package/bin/plugin/builtins/contact/runtime/Paths.js +103 -0
  652. package/bin/plugin/builtins/contact/runtime/Paths.js.map +1 -0
  653. package/bin/plugin/builtins/contact/runtime/RemoteClient.d.ts +46 -0
  654. package/bin/plugin/builtins/contact/runtime/RemoteClient.d.ts.map +1 -0
  655. package/bin/plugin/builtins/contact/runtime/RemoteClient.js +120 -0
  656. package/bin/plugin/builtins/contact/runtime/RemoteClient.js.map +1 -0
  657. package/bin/plugin/builtins/contact/runtime/ShareBundle.d.ts +65 -0
  658. package/bin/plugin/builtins/contact/runtime/ShareBundle.d.ts.map +1 -0
  659. package/bin/plugin/builtins/contact/runtime/ShareBundle.js.map +1 -0
  660. package/bin/plugin/builtins/contact/runtime/SystemProvider.d.ts +5 -0
  661. package/bin/plugin/builtins/contact/runtime/SystemProvider.d.ts.map +1 -0
  662. package/bin/plugin/builtins/contact/runtime/SystemProvider.js +15 -0
  663. package/bin/plugin/builtins/contact/runtime/SystemProvider.js.map +1 -0
  664. package/bin/plugin/builtins/contact/runtime/Token.d.ts.map +1 -0
  665. package/bin/plugin/builtins/contact/runtime/Token.js.map +1 -0
  666. package/bin/plugin/builtins/contact/types/Contact.d.ts.map +1 -0
  667. package/bin/plugin/builtins/contact/types/Contact.js.map +1 -0
  668. package/bin/plugin/builtins/contact/types/ContactApproval.d.ts.map +1 -0
  669. package/bin/plugin/builtins/contact/types/ContactApproval.js.map +1 -0
  670. package/bin/plugin/builtins/contact/types/ContactChat.d.ts.map +1 -0
  671. package/bin/plugin/builtins/contact/types/ContactChat.js.map +1 -0
  672. package/bin/plugin/builtins/contact/types/ContactCheck.d.ts +66 -0
  673. package/bin/plugin/builtins/contact/types/ContactCheck.d.ts.map +1 -0
  674. package/bin/plugin/builtins/contact/types/ContactCheck.js.map +1 -0
  675. package/bin/plugin/builtins/contact/types/ContactCommand.d.ts +93 -0
  676. package/bin/plugin/builtins/contact/types/ContactCommand.d.ts.map +1 -0
  677. package/bin/plugin/builtins/contact/types/ContactCommand.js +8 -0
  678. package/bin/plugin/builtins/contact/types/ContactCommand.js.map +1 -0
  679. package/bin/plugin/builtins/contact/types/ContactEndpoint.d.ts.map +1 -0
  680. package/bin/plugin/builtins/contact/types/ContactEndpoint.js.map +1 -0
  681. package/bin/plugin/builtins/contact/types/ContactLink.d.ts.map +1 -0
  682. package/bin/plugin/builtins/contact/types/ContactLink.js.map +1 -0
  683. package/bin/plugin/builtins/contact/types/ContactShare.d.ts.map +1 -0
  684. package/bin/plugin/builtins/contact/types/ContactShare.js.map +1 -0
  685. package/bin/plugin/builtins/memory/Action.d.ts +37 -0
  686. package/bin/plugin/builtins/memory/Action.d.ts.map +1 -0
  687. package/bin/plugin/builtins/memory/Action.js.map +1 -0
  688. package/bin/plugin/builtins/memory/Index.d.ts +9 -0
  689. package/bin/plugin/builtins/memory/Index.d.ts.map +1 -0
  690. package/bin/plugin/builtins/memory/Index.js +9 -0
  691. package/bin/plugin/builtins/memory/Index.js.map +1 -0
  692. package/bin/plugin/builtins/memory/MemoryPlugin.d.ts +45 -0
  693. package/bin/plugin/builtins/memory/MemoryPlugin.d.ts.map +1 -0
  694. package/bin/plugin/builtins/memory/MemoryPlugin.js +242 -0
  695. package/bin/plugin/builtins/memory/MemoryPlugin.js.map +1 -0
  696. package/bin/plugin/builtins/memory/runtime/Flush.d.ts +15 -0
  697. package/bin/plugin/builtins/memory/runtime/Flush.d.ts.map +1 -0
  698. package/bin/plugin/builtins/memory/runtime/Flush.js.map +1 -0
  699. package/bin/plugin/builtins/memory/runtime/Search.d.ts +19 -0
  700. package/bin/plugin/builtins/memory/runtime/Search.d.ts.map +1 -0
  701. package/bin/plugin/builtins/memory/runtime/Search.js +268 -0
  702. package/bin/plugin/builtins/memory/runtime/Search.js.map +1 -0
  703. package/bin/plugin/builtins/memory/runtime/Store.d.ts +65 -0
  704. package/bin/plugin/builtins/memory/runtime/Store.d.ts.map +1 -0
  705. package/bin/plugin/builtins/memory/runtime/Store.js +142 -0
  706. package/bin/plugin/builtins/memory/runtime/Store.js.map +1 -0
  707. package/bin/plugin/builtins/memory/runtime/SystemProvider.d.ts +22 -0
  708. package/bin/plugin/builtins/memory/runtime/SystemProvider.d.ts.map +1 -0
  709. package/bin/plugin/builtins/memory/runtime/SystemProvider.js +126 -0
  710. package/bin/plugin/builtins/memory/runtime/SystemProvider.js.map +1 -0
  711. package/bin/plugin/builtins/memory/runtime/Writer.d.ts +23 -0
  712. package/bin/plugin/builtins/memory/runtime/Writer.d.ts.map +1 -0
  713. package/bin/plugin/builtins/memory/runtime/Writer.js +139 -0
  714. package/bin/plugin/builtins/memory/runtime/Writer.js.map +1 -0
  715. package/bin/plugin/builtins/memory/types/Memory.d.ts.map +1 -0
  716. package/bin/plugin/builtins/memory/types/Memory.js.map +1 -0
  717. package/bin/plugin/builtins/schedule/SchedulePlugin.d.ts +39 -0
  718. package/bin/plugin/builtins/schedule/SchedulePlugin.d.ts.map +1 -0
  719. package/bin/plugin/builtins/schedule/SchedulePlugin.js +106 -0
  720. package/bin/plugin/builtins/schedule/SchedulePlugin.js.map +1 -0
  721. package/bin/plugin/builtins/shell/Index.d.ts +9 -0
  722. package/bin/plugin/builtins/shell/Index.d.ts.map +1 -0
  723. package/bin/plugin/builtins/shell/Index.js +9 -0
  724. package/bin/plugin/builtins/shell/Index.js.map +1 -0
  725. package/bin/plugin/builtins/shell/ShellPlugin.d.ts +65 -0
  726. package/bin/plugin/builtins/shell/ShellPlugin.d.ts.map +1 -0
  727. package/bin/plugin/builtins/shell/ShellPlugin.js +138 -0
  728. package/bin/plugin/builtins/shell/ShellPlugin.js.map +1 -0
  729. package/bin/plugin/builtins/shell/ShellRuntimeTypes.d.ts +91 -0
  730. package/bin/plugin/builtins/shell/ShellRuntimeTypes.d.ts.map +1 -0
  731. package/bin/plugin/builtins/shell/ShellRuntimeTypes.js +10 -0
  732. package/bin/plugin/builtins/shell/ShellRuntimeTypes.js.map +1 -0
  733. package/bin/plugin/builtins/shell/runtime/Paths.d.ts.map +1 -0
  734. package/bin/plugin/builtins/shell/runtime/Paths.js.map +1 -0
  735. package/bin/plugin/builtins/shell/runtime/ShellActionResponse.d.ts +52 -0
  736. package/bin/plugin/builtins/shell/runtime/ShellActionResponse.d.ts.map +1 -0
  737. package/bin/plugin/builtins/shell/runtime/ShellActionResponse.js.map +1 -0
  738. package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.d.ts +49 -0
  739. package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.d.ts.map +1 -0
  740. package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.js +440 -0
  741. package/bin/plugin/builtins/shell/runtime/ShellActionRuntime.js.map +1 -0
  742. package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +79 -0
  743. package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +1 -0
  744. package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.js +312 -0
  745. package/bin/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +1 -0
  746. package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.d.ts +22 -0
  747. package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.d.ts.map +1 -0
  748. package/bin/plugin/builtins/shell/runtime/ShellProcessEvents.js.map +1 -0
  749. package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts.map +1 -0
  750. package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.js +75 -0
  751. package/bin/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.js.map +1 -0
  752. package/bin/plugin/builtins/shell/types/Shell.d.ts.map +1 -0
  753. package/bin/plugin/builtins/shell/types/Shell.js.map +1 -0
  754. package/bin/plugin/builtins/shell/types/ShellPlugin.d.ts +216 -0
  755. package/bin/plugin/builtins/shell/types/ShellPlugin.d.ts.map +1 -0
  756. package/bin/plugin/builtins/shell/types/ShellPlugin.js +9 -0
  757. package/bin/plugin/builtins/shell/types/ShellPlugin.js.map +1 -0
  758. package/bin/plugin/builtins/skill/Plugin.d.ts +8 -4
  759. package/bin/plugin/builtins/skill/Plugin.d.ts.map +1 -1
  760. package/bin/plugin/builtins/skill/Plugin.js +215 -205
  761. package/bin/plugin/builtins/skill/Plugin.js.map +1 -1
  762. package/bin/plugin/builtins/skill/runtime/SystemProvider.js +1 -1
  763. package/bin/plugin/builtins/skill/runtime/SystemProvider.js.map +1 -1
  764. package/bin/plugin/builtins/task/Action.d.ts.map +1 -0
  765. package/bin/plugin/builtins/task/Action.js.map +1 -0
  766. package/bin/plugin/builtins/task/Index.d.ts +9 -0
  767. package/bin/plugin/builtins/task/Index.d.ts.map +1 -0
  768. package/bin/plugin/builtins/task/Index.js +9 -0
  769. package/bin/plugin/builtins/task/Index.js.map +1 -0
  770. package/bin/plugin/builtins/task/PROMPT.d.ts +7 -0
  771. package/bin/plugin/builtins/task/PROMPT.d.ts.map +1 -0
  772. package/bin/plugin/builtins/task/PROMPT.js +8 -0
  773. package/bin/plugin/builtins/task/PROMPT.js.map +1 -0
  774. package/bin/plugin/builtins/task/Scheduler.d.ts +17 -0
  775. package/bin/plugin/builtins/task/Scheduler.d.ts.map +1 -0
  776. package/bin/plugin/builtins/task/Scheduler.js +231 -0
  777. package/bin/plugin/builtins/task/Scheduler.js.map +1 -0
  778. package/bin/plugin/builtins/task/TaskPlugin.d.ts +57 -0
  779. package/bin/plugin/builtins/task/TaskPlugin.d.ts.map +1 -0
  780. package/bin/plugin/builtins/task/TaskPlugin.js +126 -0
  781. package/bin/plugin/builtins/task/TaskPlugin.js.map +1 -0
  782. package/bin/plugin/builtins/task/runtime/CronTrigger.d.ts +19 -0
  783. package/bin/plugin/builtins/task/runtime/CronTrigger.d.ts.map +1 -0
  784. package/bin/plugin/builtins/task/runtime/CronTrigger.js +93 -0
  785. package/bin/plugin/builtins/task/runtime/CronTrigger.js.map +1 -0
  786. package/bin/plugin/builtins/task/runtime/Frontmatter.d.ts.map +1 -0
  787. package/bin/plugin/builtins/task/runtime/Frontmatter.js.map +1 -0
  788. package/bin/plugin/builtins/task/runtime/Model.d.ts +73 -0
  789. package/bin/plugin/builtins/task/runtime/Model.d.ts.map +1 -0
  790. package/bin/plugin/builtins/task/runtime/Model.js.map +1 -0
  791. package/bin/plugin/builtins/task/runtime/Paths.d.ts.map +1 -0
  792. package/bin/plugin/builtins/task/runtime/Paths.js.map +1 -0
  793. package/bin/plugin/builtins/task/runtime/Runner.d.ts +43 -0
  794. package/bin/plugin/builtins/task/runtime/Runner.d.ts.map +1 -0
  795. package/bin/plugin/builtins/task/runtime/Runner.js.map +1 -0
  796. package/bin/plugin/builtins/task/runtime/Store.d.ts +89 -0
  797. package/bin/plugin/builtins/task/runtime/Store.d.ts.map +1 -0
  798. package/bin/plugin/builtins/task/runtime/Store.js.map +1 -0
  799. package/bin/plugin/builtins/task/runtime/TaskActionExecution.d.ts +160 -0
  800. package/bin/plugin/builtins/task/runtime/TaskActionExecution.d.ts.map +1 -0
  801. package/bin/plugin/builtins/task/runtime/TaskActionExecution.js +192 -0
  802. package/bin/plugin/builtins/task/runtime/TaskActionExecution.js.map +1 -0
  803. package/bin/plugin/builtins/task/runtime/TaskActionInput.d.ts +19 -0
  804. package/bin/plugin/builtins/task/runtime/TaskActionInput.d.ts.map +1 -0
  805. package/bin/plugin/builtins/task/runtime/TaskActionInput.js +218 -0
  806. package/bin/plugin/builtins/task/runtime/TaskActionInput.js.map +1 -0
  807. package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.d.ts +16 -0
  808. package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.d.ts.map +1 -0
  809. package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.js +167 -0
  810. package/bin/plugin/builtins/task/runtime/TaskPluginActionRegistry.js.map +1 -0
  811. package/bin/plugin/builtins/task/runtime/TaskPluginActions.d.ts +5 -0
  812. package/bin/plugin/builtins/task/runtime/TaskPluginActions.d.ts.map +1 -0
  813. package/bin/plugin/builtins/task/runtime/TaskPluginActions.js +5 -0
  814. package/bin/plugin/builtins/task/runtime/TaskPluginActions.js.map +1 -0
  815. package/bin/plugin/builtins/task/runtime/TaskPluginSystem.d.ts +9 -0
  816. package/bin/plugin/builtins/task/runtime/TaskPluginSystem.d.ts.map +1 -0
  817. package/bin/plugin/builtins/task/runtime/TaskPluginSystem.js +9 -0
  818. package/bin/plugin/builtins/task/runtime/TaskPluginSystem.js.map +1 -0
  819. package/bin/plugin/builtins/task/runtime/TaskPromptAssets.d.ts +12 -0
  820. package/bin/plugin/builtins/task/runtime/TaskPromptAssets.d.ts.map +1 -0
  821. package/bin/plugin/builtins/task/runtime/TaskPromptAssets.js +13 -0
  822. package/bin/plugin/builtins/task/runtime/TaskPromptAssets.js.map +1 -0
  823. package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.d.ts +189 -0
  824. package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.d.ts.map +1 -0
  825. package/bin/plugin/builtins/task/runtime/TaskRunArtifacts.js.map +1 -0
  826. package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.d.ts +22 -0
  827. package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +1 -0
  828. package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.js +66 -0
  829. package/bin/plugin/builtins/task/runtime/TaskRunChatDispatch.js.map +1 -0
  830. package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.d.ts +35 -0
  831. package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.d.ts.map +1 -0
  832. package/bin/plugin/builtins/task/runtime/TaskRunnerProgress.js.map +1 -0
  833. package/bin/plugin/builtins/task/runtime/TaskRunnerRound.d.ts +80 -0
  834. package/bin/plugin/builtins/task/runtime/TaskRunnerRound.d.ts.map +1 -0
  835. package/bin/plugin/builtins/task/runtime/TaskRunnerRound.js +272 -0
  836. package/bin/plugin/builtins/task/runtime/TaskRunnerRound.js.map +1 -0
  837. package/bin/plugin/builtins/task/runtime/TaskRunnerScript.d.ts +81 -0
  838. package/bin/plugin/builtins/task/runtime/TaskRunnerScript.d.ts.map +1 -0
  839. package/bin/plugin/builtins/task/runtime/TaskRunnerScript.js.map +1 -0
  840. package/bin/plugin/builtins/task/runtime/TaskRunnerSession.d.ts +48 -0
  841. package/bin/plugin/builtins/task/runtime/TaskRunnerSession.d.ts.map +1 -0
  842. package/bin/plugin/builtins/task/runtime/TaskRunnerSession.js +153 -0
  843. package/bin/plugin/builtins/task/runtime/TaskRunnerSession.js.map +1 -0
  844. package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.d.ts +186 -0
  845. package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.d.ts.map +1 -0
  846. package/bin/plugin/builtins/task/runtime/TaskRunnerTypes.js.map +1 -0
  847. package/bin/plugin/builtins/task/types/Cron.d.ts +16 -0
  848. package/bin/plugin/builtins/task/types/Cron.d.ts.map +1 -0
  849. package/bin/plugin/builtins/task/types/Cron.js.map +1 -0
  850. package/bin/plugin/builtins/task/types/Task.d.ts.map +1 -0
  851. package/bin/plugin/builtins/task/types/Task.js.map +1 -0
  852. package/bin/plugin/builtins/task/types/TaskCommand.d.ts.map +1 -0
  853. package/bin/plugin/builtins/task/types/TaskCommand.js.map +1 -0
  854. package/bin/plugin/builtins/task/types/TaskPluginTypes.d.ts +52 -0
  855. package/bin/plugin/builtins/task/types/TaskPluginTypes.d.ts.map +1 -0
  856. package/bin/plugin/builtins/task/types/TaskPluginTypes.js +9 -0
  857. package/bin/plugin/builtins/task/types/TaskPluginTypes.js.map +1 -0
  858. package/bin/plugin/builtins/tts/Plugin.d.ts +7 -3
  859. package/bin/plugin/builtins/tts/Plugin.d.ts.map +1 -1
  860. package/bin/plugin/builtins/tts/Plugin.js +419 -409
  861. package/bin/plugin/builtins/tts/Plugin.js.map +1 -1
  862. package/bin/plugin/builtins/tts/runtime/Synthesizer.js +1 -1
  863. package/bin/plugin/builtins/tts/runtime/Synthesizer.js.map +1 -1
  864. package/bin/plugin/builtins/web/Plugin.d.ts +7 -3
  865. package/bin/plugin/builtins/web/Plugin.d.ts.map +1 -1
  866. package/bin/plugin/builtins/web/Plugin.js +380 -370
  867. package/bin/plugin/builtins/web/Plugin.js.map +1 -1
  868. package/bin/plugin/builtins/workboard/Plugin.d.ts +7 -3
  869. package/bin/plugin/builtins/workboard/Plugin.d.ts.map +1 -1
  870. package/bin/plugin/builtins/workboard/Plugin.js +64 -54
  871. package/bin/plugin/builtins/workboard/Plugin.js.map +1 -1
  872. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts +1 -1
  873. package/bin/plugin/builtins/workboard/runtime/Collector.d.ts.map +1 -1
  874. package/bin/plugin/builtins/workboard/runtime/Collector.js +7 -6
  875. package/bin/plugin/builtins/workboard/runtime/Collector.js.map +1 -1
  876. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts +3 -3
  877. package/bin/plugin/builtins/workboard/runtime/Normalizer.d.ts.map +1 -1
  878. package/bin/plugin/builtins/workboard/runtime/Normalizer.js +1 -1
  879. package/bin/plugin/builtins/workboard/runtime/Normalizer.js.map +1 -1
  880. package/bin/plugin/core/BasePlugin.d.ts +87 -0
  881. package/bin/plugin/core/BasePlugin.d.ts.map +1 -0
  882. package/bin/plugin/core/BasePlugin.js +84 -0
  883. package/bin/plugin/core/BasePlugin.js.map +1 -0
  884. package/bin/plugin/core/BuiltinPluginClasses.d.ts +19 -0
  885. package/bin/plugin/core/BuiltinPluginClasses.d.ts.map +1 -0
  886. package/bin/plugin/core/BuiltinPluginClasses.js +38 -0
  887. package/bin/plugin/core/BuiltinPluginClasses.js.map +1 -0
  888. package/bin/plugin/core/Catalog.d.ts +4 -3
  889. package/bin/plugin/core/Catalog.d.ts.map +1 -1
  890. package/bin/plugin/core/Catalog.js +3 -3
  891. package/bin/plugin/core/Catalog.js.map +1 -1
  892. package/bin/plugin/core/HttpRoutes.d.ts +2 -2
  893. package/bin/plugin/core/HttpRoutes.d.ts.map +1 -1
  894. package/bin/plugin/core/HttpRoutes.js +6 -6
  895. package/bin/plugin/core/HttpRoutes.js.map +1 -1
  896. package/bin/plugin/core/LocalExecution.d.ts.map +1 -1
  897. package/bin/plugin/core/LocalExecution.js +17 -2
  898. package/bin/plugin/core/LocalExecution.js.map +1 -1
  899. package/bin/plugin/core/Manager.d.ts +7 -0
  900. package/bin/plugin/core/Manager.d.ts.map +1 -0
  901. package/bin/plugin/core/Manager.js +6 -0
  902. package/bin/plugin/core/Manager.js.map +1 -0
  903. package/bin/plugin/core/PluginActionRunner.d.ts +34 -0
  904. package/bin/plugin/core/PluginActionRunner.d.ts.map +1 -0
  905. package/bin/plugin/core/PluginActionRunner.js +207 -0
  906. package/bin/plugin/core/PluginActionRunner.js.map +1 -0
  907. package/bin/plugin/core/PluginClassRegistry.d.ts +42 -0
  908. package/bin/plugin/core/PluginClassRegistry.d.ts.map +1 -0
  909. package/bin/plugin/core/PluginClassRegistry.js +73 -0
  910. package/bin/plugin/core/PluginClassRegistry.js.map +1 -0
  911. package/bin/plugin/core/PluginCommand.d.ts +2 -2
  912. package/bin/plugin/core/PluginCommand.js +4 -4
  913. package/bin/plugin/core/PluginCommand.js.map +1 -1
  914. package/bin/plugin/core/PluginCommandRequest.d.ts +36 -0
  915. package/bin/plugin/core/PluginCommandRequest.d.ts.map +1 -0
  916. package/bin/plugin/core/PluginCommandRequest.js +53 -0
  917. package/bin/plugin/core/PluginCommandRequest.js.map +1 -0
  918. package/bin/plugin/core/PluginStateController.d.ts +82 -0
  919. package/bin/plugin/core/PluginStateController.d.ts.map +1 -0
  920. package/bin/plugin/core/PluginStateController.js +240 -0
  921. package/bin/plugin/core/PluginStateController.js.map +1 -0
  922. package/bin/plugin/core/PluginSystemProviders.d.ts +27 -0
  923. package/bin/plugin/core/PluginSystemProviders.d.ts.map +1 -0
  924. package/bin/plugin/core/PluginSystemProviders.js +34 -0
  925. package/bin/plugin/core/PluginSystemProviders.js.map +1 -0
  926. package/bin/plugin/core/schedule/Executor.d.ts +17 -0
  927. package/bin/plugin/core/schedule/Executor.d.ts.map +1 -0
  928. package/bin/plugin/core/schedule/Executor.js +48 -0
  929. package/bin/plugin/core/schedule/Executor.js.map +1 -0
  930. package/bin/plugin/core/schedule/Store.d.ts +91 -0
  931. package/bin/plugin/core/schedule/Store.d.ts.map +1 -0
  932. package/bin/plugin/core/schedule/Store.js +284 -0
  933. package/bin/plugin/core/schedule/Store.js.map +1 -0
  934. package/bin/plugin/core/schedule/Time.d.ts +31 -0
  935. package/bin/plugin/core/schedule/Time.d.ts.map +1 -0
  936. package/bin/plugin/core/schedule/Time.js +107 -0
  937. package/bin/plugin/core/schedule/Time.js.map +1 -0
  938. package/bin/plugin/types/Plugin.d.ts +171 -17
  939. package/bin/plugin/types/Plugin.d.ts.map +1 -1
  940. package/bin/plugin/types/PluginApi.d.ts +3 -3
  941. package/bin/plugin/types/PluginApi.d.ts.map +1 -1
  942. package/bin/plugin/types/PluginApi.js +1 -1
  943. package/bin/plugin/types/PluginSchedule.d.ts +80 -0
  944. package/bin/plugin/types/PluginSchedule.d.ts.map +1 -0
  945. package/bin/plugin/types/PluginSchedule.js +5 -0
  946. package/bin/plugin/types/PluginSchedule.js.map +1 -0
  947. package/bin/plugin/types/PluginState.d.ts +5 -0
  948. package/bin/plugin/types/PluginState.d.ts.map +1 -0
  949. package/bin/plugin/types/PluginState.js +5 -0
  950. package/bin/plugin/types/PluginState.js.map +1 -0
  951. package/bin/plugin/types/Plugins.d.ts +61 -0
  952. package/bin/plugin/types/Plugins.d.ts.map +1 -0
  953. package/bin/plugin/types/Plugins.js +5 -0
  954. package/bin/plugin/types/Plugins.js.map +1 -0
  955. package/bin/runtime/host/AgentHostRuntime.d.ts +1 -1
  956. package/bin/runtime/host/AgentHostRuntime.d.ts.map +1 -1
  957. package/bin/runtime/host/AgentHostRuntime.js +6 -4
  958. package/bin/runtime/host/AgentHostRuntime.js.map +1 -1
  959. package/bin/runtime/host/daemon/Api.d.ts +2 -2
  960. package/bin/runtime/host/daemon/Api.js +1 -1
  961. package/bin/runtime/host/daemon/ProjectSetup.js +2 -2
  962. package/bin/runtime/host/daemon/ProjectSetup.js.map +1 -1
  963. package/bin/runtime/sandbox/types/SandboxRuntime.d.ts +1 -1
  964. package/bin/runtime/sandbox/types/SandboxRuntime.js +1 -1
  965. package/bin/runtime/server/http/Server.d.ts +8 -8
  966. package/bin/runtime/server/http/Server.d.ts.map +1 -1
  967. package/bin/runtime/server/http/Server.js +8 -30
  968. package/bin/runtime/server/http/Server.js.map +1 -1
  969. package/bin/runtime/server/http/control/ExecuteBySession.d.ts +2 -2
  970. package/bin/runtime/server/http/control/ExecuteBySession.d.ts.map +1 -1
  971. package/bin/runtime/server/http/control/ExecuteBySession.js +10 -36
  972. package/bin/runtime/server/http/control/ExecuteBySession.js.map +1 -1
  973. package/bin/runtime/server/http/control/ExecuteInput.js +1 -1
  974. package/bin/runtime/server/http/control/ExecuteInput.js.map +1 -1
  975. package/bin/runtime/server/http/control/MessageTimeline.d.ts +1 -1
  976. package/bin/runtime/server/http/control/MessageTimeline.d.ts.map +1 -1
  977. package/bin/runtime/server/http/control/MessageTimeline.js +2 -2
  978. package/bin/runtime/server/http/control/MessageTimeline.js.map +1 -1
  979. package/bin/runtime/server/http/control/OverviewRoutes.d.ts +2 -2
  980. package/bin/runtime/server/http/control/OverviewRoutes.d.ts.map +1 -1
  981. package/bin/runtime/server/http/control/OverviewRoutes.js +9 -8
  982. package/bin/runtime/server/http/control/OverviewRoutes.js.map +1 -1
  983. package/bin/runtime/server/http/control/SessionRoutes.d.ts.map +1 -1
  984. package/bin/runtime/server/http/control/SessionRoutes.js +7 -6
  985. package/bin/runtime/server/http/control/SessionRoutes.js.map +1 -1
  986. package/bin/runtime/server/http/control/SessionSummaryStore.d.ts +1 -0
  987. package/bin/runtime/server/http/control/SessionSummaryStore.d.ts.map +1 -1
  988. package/bin/runtime/server/http/control/SessionSummaryStore.js +3 -3
  989. package/bin/runtime/server/http/control/SessionSummaryStore.js.map +1 -1
  990. package/bin/runtime/server/http/control/TaskRoutes.d.ts +1 -1
  991. package/bin/runtime/server/http/control/TaskRoutes.js +10 -10
  992. package/bin/runtime/server/http/control/TaskRoutes.js.map +1 -1
  993. package/bin/runtime/server/http/control/TaskStore.js +1 -1
  994. package/bin/runtime/server/http/control/TaskStore.js.map +1 -1
  995. package/bin/runtime/server/http/execute/execute.d.ts.map +1 -1
  996. package/bin/runtime/server/http/execute/execute.js +7 -36
  997. package/bin/runtime/server/http/execute/execute.js.map +1 -1
  998. package/bin/runtime/server/http/plugins/plugins.d.ts +3 -3
  999. package/bin/runtime/server/http/plugins/plugins.d.ts.map +1 -1
  1000. package/bin/runtime/server/http/plugins/plugins.js +61 -4
  1001. package/bin/runtime/server/http/plugins/plugins.js.map +1 -1
  1002. package/bin/runtime/server/http/sdk/Router.d.ts +2 -2
  1003. package/bin/runtime/server/http/sdk/Router.d.ts.map +1 -1
  1004. package/bin/runtime/server/http/sdk/Router.js +2 -2
  1005. package/bin/runtime/server/http/sdk/Router.js.map +1 -1
  1006. package/bin/runtime/server/http/sdk/SessionRoutes.d.ts +2 -2
  1007. package/bin/runtime/server/http/sdk/SessionRoutes.d.ts.map +1 -1
  1008. package/bin/runtime/server/http/sdk/SessionRoutes.js +72 -13
  1009. package/bin/runtime/server/http/sdk/SessionRoutes.js.map +1 -1
  1010. package/bin/runtime/server/rpc/Server.d.ts +2 -4
  1011. package/bin/runtime/server/rpc/Server.d.ts.map +1 -1
  1012. package/bin/runtime/server/rpc/Server.js +31 -33
  1013. package/bin/runtime/server/rpc/Server.js.map +1 -1
  1014. package/bin/sdk/Agent.d.ts +21 -20
  1015. package/bin/sdk/Agent.d.ts.map +1 -1
  1016. package/bin/sdk/Agent.js +47 -34
  1017. package/bin/sdk/Agent.js.map +1 -1
  1018. package/bin/sdk/AgentSdkTypes.d.ts +313 -41
  1019. package/bin/sdk/AgentSdkTypes.d.ts.map +1 -1
  1020. package/bin/sdk/AgentSdkTypes.js +1 -1
  1021. package/bin/sdk/RemoteAgent.d.ts +9 -57
  1022. package/bin/sdk/RemoteAgent.d.ts.map +1 -1
  1023. package/bin/sdk/RemoteAgent.js +63 -14
  1024. package/bin/sdk/RemoteAgent.js.map +1 -1
  1025. package/bin/sdk/Session.d.ts +18 -23
  1026. package/bin/sdk/Session.d.ts.map +1 -1
  1027. package/bin/sdk/Session.js +85 -100
  1028. package/bin/sdk/Session.js.map +1 -1
  1029. package/bin/sdk/SessionSystemBuilder.d.ts +8 -8
  1030. package/bin/sdk/SessionSystemBuilder.d.ts.map +1 -1
  1031. package/bin/sdk/SessionSystemBuilder.js +6 -7
  1032. package/bin/sdk/SessionSystemBuilder.js.map +1 -1
  1033. package/bin/sdk/session/Browse.d.ts +76 -0
  1034. package/bin/sdk/session/Browse.d.ts.map +1 -0
  1035. package/bin/sdk/session/Browse.js +418 -0
  1036. package/bin/sdk/session/Browse.js.map +1 -0
  1037. package/bin/sdk/session/Metadata.d.ts +1 -1
  1038. package/bin/sdk/session/Metadata.d.ts.map +1 -1
  1039. package/bin/sdk/session/Paths.d.ts +2 -2
  1040. package/bin/sdk/session/Paths.js +2 -2
  1041. package/bin/sdk/session/Persistence.d.ts +1 -1
  1042. package/bin/sdk/session/Persistence.d.ts.map +1 -1
  1043. package/bin/sdk/session/Persistence.js +5 -5
  1044. package/bin/sdk/session/Persistence.js.map +1 -1
  1045. package/bin/sdk/session/RuntimeSessionPort.d.ts +70 -0
  1046. package/bin/sdk/session/RuntimeSessionPort.d.ts.map +1 -0
  1047. package/bin/sdk/session/RuntimeSessionPort.js +40 -0
  1048. package/bin/sdk/session/RuntimeSessionPort.js.map +1 -0
  1049. package/bin/sdk/session/index.d.ts +3 -2
  1050. package/bin/sdk/session/index.d.ts.map +1 -1
  1051. package/bin/sdk/session/index.js +3 -2
  1052. package/bin/sdk/session/index.js.map +1 -1
  1053. package/bin/sdk/session/runtime/SessionPromptRuntime.d.ts +7 -4
  1054. package/bin/sdk/session/runtime/SessionPromptRuntime.d.ts.map +1 -1
  1055. package/bin/sdk/session/runtime/SessionPromptRuntime.js +29 -5
  1056. package/bin/sdk/session/runtime/SessionPromptRuntime.js.map +1 -1
  1057. package/bin/types/config/DowncityConfig.d.ts +133 -97
  1058. package/bin/types/config/DowncityConfig.d.ts.map +1 -1
  1059. package/bin/types/runtime/auth/AuthPermission.d.ts +1 -1
  1060. package/bin/types/runtime/auth/AuthPermission.d.ts.map +1 -1
  1061. package/bin/types/runtime/auth/AuthPermission.js +0 -5
  1062. package/bin/types/runtime/auth/AuthPermission.js.map +1 -1
  1063. package/bin/types/runtime/host/AgentHost.d.ts +9 -5
  1064. package/bin/types/runtime/host/AgentHost.d.ts.map +1 -1
  1065. package/bin/types/runtime/host/AgentHost.js +1 -1
  1066. package/bin/types/runtime/http/InlineInstant.d.ts +2 -2
  1067. package/bin/types/runtime/http/InlineInstant.d.ts.map +1 -1
  1068. package/bin/types/runtime/platform/PlatformGateway.d.ts +10 -10
  1069. package/bin/types/runtime/platform/PlatformGateway.d.ts.map +1 -1
  1070. package/bin/types/sdk/AgentSessionEvent.d.ts +27 -1
  1071. package/bin/types/sdk/AgentSessionEvent.d.ts.map +1 -1
  1072. package/bin/types/sdk/AgentSessionTurn.d.ts +9 -0
  1073. package/bin/types/sdk/AgentSessionTurn.d.ts.map +1 -1
  1074. package/package.json +3 -11
  1075. package/scripts/session-prompt-runtime.test.mjs +30 -10
  1076. package/src/config/Defaults.ts +1 -1
  1077. package/src/config/DowncitySchema.ts +2 -8
  1078. package/src/config/Paths.ts +55 -14
  1079. package/src/config/project/AgentInitializer.ts +6 -7
  1080. package/src/core/AgentContextTypes.ts +20 -56
  1081. package/src/core/AgentCore.ts +115 -131
  1082. package/src/core/AgentCoreTypes.ts +5 -5
  1083. package/src/executor/Executor.ts +732 -0
  1084. package/src/executor/README.md +108 -0
  1085. package/src/executor/SessionRunScope.ts +146 -0
  1086. package/src/executor/composer/compaction/SessionCompactionComposer.ts +62 -0
  1087. package/src/executor/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +101 -0
  1088. package/src/executor/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +261 -0
  1089. package/src/executor/composer/context/LocalSessionContextComposer.ts +168 -0
  1090. package/src/executor/composer/context/SessionContextComposer.ts +70 -0
  1091. package/src/executor/composer/history/SessionHistoryComposer.ts +62 -0
  1092. package/src/executor/composer/history/SessionHistoryWriter.ts +131 -0
  1093. package/src/executor/composer/history/jsonl/JsonlSessionHistoryComposer.ts +126 -0
  1094. package/src/executor/composer/system/default/DefaultSessionSystemComposer.ts +77 -0
  1095. package/src/executor/composer/system/default/InitPromptAssets.ts +20 -0
  1096. package/src/executor/composer/system/default/InitPrompts.ts +11 -0
  1097. package/src/executor/composer/system/default/PromptRenderer.ts +52 -0
  1098. package/src/executor/composer/system/default/StaticPromptCatalog.ts +287 -0
  1099. package/src/executor/composer/system/default/SystemDomain.ts +377 -0
  1100. package/src/executor/composer/system/default/SystemPromptAssets.ts +26 -0
  1101. package/src/executor/composer/system/default/assets/core.prompt.ts +9 -0
  1102. package/src/executor/composer/system/default/assets/core.prompt.ts.txt +39 -0
  1103. package/src/executor/composer/system/default/assets/init/PROFILE.md.ts +9 -0
  1104. package/src/executor/composer/system/default/assets/init/SOUL.md.ts +9 -0
  1105. package/src/executor/composer/system/default/assets/plugin.prompt.ts +9 -0
  1106. package/src/executor/composer/system/default/assets/plugin.prompt.ts.txt +28 -0
  1107. package/src/executor/composer/system/default/assets/task.prompt.ts +9 -0
  1108. package/src/executor/composer/system/default/variables/GeoContext.ts +180 -0
  1109. package/src/executor/composer/system/default/variables/VariableReplacer.ts +154 -0
  1110. package/src/executor/core-engine/CoreEngineLoopDecision.ts +80 -0
  1111. package/src/executor/core-engine/CoreEngineMessageState.ts +133 -0
  1112. package/src/executor/core-engine/CoreEngineSignals.ts +416 -0
  1113. package/src/executor/core-engine/CoreEngineUiStreamCollector.ts +96 -0
  1114. package/src/executor/messages/AssistantResultPersistence.ts +111 -0
  1115. package/src/executor/messages/SessionAttachmentMapper.ts +155 -0
  1116. package/src/executor/messages/SessionMessageCodec.ts +116 -0
  1117. package/src/executor/messages/SessionMessageLog.ts +39 -0
  1118. package/src/executor/messages/SessionStepEventMapper.ts +233 -0
  1119. package/src/executor/store/history/SessionHistoryStore.ts +145 -0
  1120. package/src/executor/store/history/jsonl/JsonlSessionHistoryStore.ts +500 -0
  1121. package/src/executor/tools/shell/ShellToolBridge.ts +378 -0
  1122. package/src/executor/tools/shell/ShellToolDefinition.ts +509 -0
  1123. package/src/executor/tools/shell/ShellToolFormatting.ts +83 -0
  1124. package/src/executor/tools/shell/ShellToolSchemas.ts +120 -0
  1125. package/src/executor/types/SessionExecutor.ts +33 -0
  1126. package/src/executor/types/SessionHistoryMeta.ts +46 -0
  1127. package/src/executor/types/SessionHistoryPaths.ts +33 -0
  1128. package/src/executor/types/SessionMessages.ts +90 -0
  1129. package/src/executor/types/SessionRun.ts +132 -0
  1130. package/src/index.ts +80 -73
  1131. package/src/plugin/builtins/asr/InboundAugment.ts +1 -1
  1132. package/src/plugin/builtins/asr/Plugin.ts +25 -12
  1133. package/src/plugin/builtins/auth/Plugin.ts +21 -8
  1134. package/src/plugin/builtins/auth/runtime/AuthorizationStore.ts +1 -1
  1135. package/src/plugin/builtins/auth/types/AuthPlugin.ts +2 -2
  1136. package/src/plugin/builtins/chat/Action.ts +477 -0
  1137. package/src/plugin/builtins/chat/ChatPlugin.ts +255 -0
  1138. package/src/plugin/builtins/chat/ChatPluginTypes.ts +164 -0
  1139. package/src/plugin/builtins/chat/Index.ts +8 -0
  1140. package/src/plugin/builtins/chat/PROMPT.direct.ts +9 -0
  1141. package/src/plugin/builtins/chat/PROMPT.direct.ts.txt +55 -0
  1142. package/src/plugin/builtins/chat/accounts/ChannelAccountManager.ts +297 -0
  1143. package/src/plugin/builtins/chat/channels/BaseChatChannel.ts +450 -0
  1144. package/src/plugin/builtins/chat/channels/BaseChatChannelQueue.ts +320 -0
  1145. package/src/plugin/builtins/chat/channels/BaseChatChannelSupport.ts +321 -0
  1146. package/src/plugin/builtins/chat/channels/BotInfoProvider.ts +49 -0
  1147. package/src/plugin/builtins/chat/channels/Configuration.ts +35 -0
  1148. package/src/plugin/builtins/chat/channels/ConfigurationRegistry.ts +43 -0
  1149. package/src/plugin/builtins/chat/channels/feishu/BotInfo.ts +199 -0
  1150. package/src/plugin/builtins/chat/channels/feishu/Configuration.ts +65 -0
  1151. package/src/plugin/builtins/chat/channels/feishu/Feishu.ts +467 -0
  1152. package/src/plugin/builtins/chat/channels/feishu/FeishuInbound.ts +51 -0
  1153. package/src/plugin/builtins/chat/channels/feishu/FeishuMessageHandler.ts +483 -0
  1154. package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformClient.ts +421 -0
  1155. package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +523 -0
  1156. package/src/plugin/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +219 -0
  1157. package/src/plugin/builtins/chat/channels/feishu/InboundAttachment.ts +261 -0
  1158. package/src/plugin/builtins/chat/channels/feishu/PROMPT.direct.ts +9 -0
  1159. package/src/plugin/builtins/chat/channels/feishu/PostMessage.ts +492 -0
  1160. package/src/plugin/builtins/chat/channels/feishu/ReplyContext.ts +68 -0
  1161. package/src/plugin/builtins/chat/channels/feishu/Shared.ts +94 -0
  1162. package/src/plugin/builtins/chat/channels/feishu/types/FeishuChannel.ts +131 -0
  1163. package/src/plugin/builtins/chat/channels/qq/BotInfo.ts +137 -0
  1164. package/src/plugin/builtins/chat/channels/qq/Configuration.ts +64 -0
  1165. package/src/plugin/builtins/chat/channels/qq/PROMPT.direct.ts +9 -0
  1166. package/src/plugin/builtins/chat/channels/qq/PROMPT.direct.ts.txt +11 -0
  1167. package/src/plugin/builtins/chat/channels/qq/QQ.ts +398 -0
  1168. package/src/plugin/builtins/chat/channels/qq/QQEventCapture.ts +88 -0
  1169. package/src/plugin/builtins/chat/channels/qq/QQGatewayAuth.ts +318 -0
  1170. package/src/plugin/builtins/chat/channels/qq/QQGatewayClient.ts +467 -0
  1171. package/src/plugin/builtins/chat/channels/qq/QQGatewayConnection.ts +175 -0
  1172. package/src/plugin/builtins/chat/channels/qq/QQGatewayHeartbeat.ts +114 -0
  1173. package/src/plugin/builtins/chat/channels/qq/QQGatewayProtocol.ts +176 -0
  1174. package/src/plugin/builtins/chat/channels/qq/QQGatewaySend.ts +258 -0
  1175. package/src/plugin/builtins/chat/channels/qq/QQGatewaySupport.ts +159 -0
  1176. package/src/plugin/builtins/chat/channels/qq/QQInbound.ts +262 -0
  1177. package/src/plugin/builtins/chat/channels/qq/QQInboundDedupe.ts +126 -0
  1178. package/src/plugin/builtins/chat/channels/qq/QQMessageHandler.ts +465 -0
  1179. package/src/plugin/builtins/chat/channels/qq/QQSupport.ts +263 -0
  1180. package/src/plugin/builtins/chat/channels/qq/VoiceInput.ts +381 -0
  1181. package/src/plugin/builtins/chat/channels/qq/types/QqChannel.ts +501 -0
  1182. package/src/plugin/builtins/chat/channels/telegram/Bot.ts +357 -0
  1183. package/src/plugin/builtins/chat/channels/telegram/BotInfo.ts +92 -0
  1184. package/src/plugin/builtins/chat/channels/telegram/Configuration.ts +65 -0
  1185. package/src/plugin/builtins/chat/channels/telegram/PROMPT.direct.ts +9 -0
  1186. package/src/plugin/builtins/chat/channels/telegram/ReplyContext.ts +76 -0
  1187. package/src/plugin/builtins/chat/channels/telegram/Shared.ts +404 -0
  1188. package/src/plugin/builtins/chat/channels/telegram/TelegramMessageHandler.ts +485 -0
  1189. package/src/plugin/builtins/chat/channels/telegram/TelegramPendingUpdates.ts +204 -0
  1190. package/src/plugin/builtins/chat/channels/telegram/TelegramPlatformClient.ts +482 -0
  1191. package/src/plugin/builtins/chat/runtime/ChannelContextStore.ts +395 -0
  1192. package/src/plugin/builtins/chat/runtime/ChatActionExecution.ts +362 -0
  1193. package/src/plugin/builtins/chat/runtime/ChatActionInput.ts +167 -0
  1194. package/src/plugin/builtins/chat/runtime/ChatChannelActions.ts +307 -0
  1195. package/src/plugin/builtins/chat/runtime/ChatChannelConfig.ts +330 -0
  1196. package/src/plugin/builtins/chat/runtime/ChatChannelCore.ts +145 -0
  1197. package/src/plugin/builtins/chat/runtime/ChatChannelFacade.ts +23 -0
  1198. package/src/plugin/builtins/chat/runtime/ChatChannelLifecycle.ts +169 -0
  1199. package/src/plugin/builtins/chat/runtime/ChatHistoryStore.ts +289 -0
  1200. package/src/plugin/builtins/chat/runtime/ChatIngressStore.ts +68 -0
  1201. package/src/plugin/builtins/chat/runtime/ChatMessageMarkup.ts +263 -0
  1202. package/src/plugin/builtins/chat/runtime/ChatMetaStore.ts +186 -0
  1203. package/src/plugin/builtins/chat/runtime/ChatPluginActionRegistry.ts +367 -0
  1204. package/src/plugin/builtins/chat/runtime/ChatPluginActions.ts +5 -0
  1205. package/src/plugin/builtins/chat/runtime/ChatPluginSystem.ts +70 -0
  1206. package/src/plugin/builtins/chat/runtime/ChatPromptAssets.ts +32 -0
  1207. package/src/plugin/builtins/chat/runtime/ChatQueue.ts +77 -0
  1208. package/src/plugin/builtins/chat/runtime/ChatQueueStore.ts +185 -0
  1209. package/src/plugin/builtins/chat/runtime/ChatQueueWorker.ts +485 -0
  1210. package/src/plugin/builtins/chat/runtime/ChatQueueWorkerSupport.ts +137 -0
  1211. package/src/plugin/builtins/chat/runtime/ChatSendActionInput.ts +255 -0
  1212. package/src/plugin/builtins/chat/runtime/ChatSendMetadata.ts +170 -0
  1213. package/src/plugin/builtins/chat/runtime/ChatSendRegistry.ts +43 -0
  1214. package/src/plugin/builtins/chat/runtime/ChatSession.ts +156 -0
  1215. package/src/plugin/builtins/chat/runtime/ChatSessionContextComposer.ts +106 -0
  1216. package/src/plugin/builtins/chat/runtime/ChatSessionDelete.ts +95 -0
  1217. package/src/plugin/builtins/chat/runtime/ChatSessionTypes.ts +32 -0
  1218. package/src/plugin/builtins/chat/runtime/ChatkeySend.ts +187 -0
  1219. package/src/plugin/builtins/chat/runtime/DirectDispatchParser.ts +158 -0
  1220. package/src/plugin/builtins/chat/runtime/EnqueueDispatch.ts +49 -0
  1221. package/src/plugin/builtins/chat/runtime/InboundAugment.ts +63 -0
  1222. package/src/plugin/builtins/chat/runtime/PluginDispatch.ts +89 -0
  1223. package/src/plugin/builtins/chat/runtime/PluginPoints.ts +78 -0
  1224. package/src/plugin/builtins/chat/runtime/QueuedUserMessage.ts +43 -0
  1225. package/src/plugin/builtins/chat/runtime/ReplyContextFormatter.ts +85 -0
  1226. package/src/plugin/builtins/chat/runtime/ReplyDispatch.ts +78 -0
  1227. package/src/plugin/builtins/chat/runtime/SystemPrompt.ts +84 -0
  1228. package/src/plugin/builtins/chat/runtime/UIMessageTransformer.ts +141 -0
  1229. package/src/plugin/builtins/chat/runtime/UserVisibleText.ts +84 -0
  1230. package/src/plugin/builtins/chat/types/BotInfo.ts +101 -0
  1231. package/src/plugin/builtins/chat/types/ChannelConfiguration.ts +161 -0
  1232. package/src/plugin/builtins/chat/types/ChannelContext.ts +110 -0
  1233. package/src/plugin/builtins/chat/types/ChannelStatus.ts +98 -0
  1234. package/src/plugin/builtins/chat/types/ChatHistory.ts +42 -0
  1235. package/src/plugin/builtins/chat/types/ChatMessageMarkup.ts +168 -0
  1236. package/src/plugin/builtins/chat/types/ChatMeta.ts +35 -0
  1237. package/src/plugin/builtins/chat/types/ChatPlugin.ts +251 -0
  1238. package/src/plugin/builtins/chat/types/ChatPluginActionPayload.ts +165 -0
  1239. package/src/plugin/builtins/chat/types/ChatPromptContext.ts +139 -0
  1240. package/src/plugin/builtins/chat/types/ChatQueue.ts +41 -0
  1241. package/src/plugin/builtins/chat/types/ChatRuntime.ts +33 -0
  1242. package/src/plugin/builtins/chat/types/DirectDispatch.ts +133 -0
  1243. package/src/plugin/builtins/chat/types/FeishuInboundAttachment.ts +138 -0
  1244. package/src/plugin/builtins/contact/Action.ts +316 -0
  1245. package/src/plugin/builtins/contact/ContactPlugin.ts +505 -0
  1246. package/src/plugin/builtins/contact/Index.ts +8 -0
  1247. package/src/plugin/builtins/contact/PROMPT.ts +9 -0
  1248. package/src/plugin/builtins/contact/PROMPT.ts.txt +25 -0
  1249. package/src/plugin/builtins/contact/runtime/ApproveCallback.ts +97 -0
  1250. package/src/plugin/builtins/contact/runtime/ChatRuntime.ts +83 -0
  1251. package/src/plugin/builtins/contact/runtime/ContactPromptAssets.ts +14 -0
  1252. package/src/plugin/builtins/contact/runtime/ContactStore.ts +299 -0
  1253. package/src/plugin/builtins/contact/runtime/EndpointNotice.ts +125 -0
  1254. package/src/plugin/builtins/contact/runtime/InboxStore.ts +178 -0
  1255. package/src/plugin/builtins/contact/runtime/LinkApproval.ts +387 -0
  1256. package/src/plugin/builtins/contact/runtime/LinkCode.ts +70 -0
  1257. package/src/plugin/builtins/contact/runtime/LinkStore.ts +50 -0
  1258. package/src/plugin/builtins/contact/runtime/Paths.ts +139 -0
  1259. package/src/plugin/builtins/contact/runtime/RemoteClient.ts +158 -0
  1260. package/src/plugin/builtins/contact/runtime/ShareBundle.ts +286 -0
  1261. package/src/plugin/builtins/contact/runtime/SystemProvider.ts +15 -0
  1262. package/src/plugin/builtins/contact/types/ContactCheck.ts +67 -0
  1263. package/src/plugin/builtins/contact/types/ContactCommand.ts +98 -0
  1264. package/src/plugin/builtins/memory/Action.ts +147 -0
  1265. package/src/plugin/builtins/memory/Index.ts +9 -0
  1266. package/src/plugin/builtins/memory/MemoryPlugin.ts +270 -0
  1267. package/src/plugin/builtins/memory/runtime/Flush.ts +83 -0
  1268. package/src/plugin/builtins/memory/runtime/Search.ts +330 -0
  1269. package/src/plugin/builtins/memory/runtime/Store.ts +198 -0
  1270. package/src/plugin/builtins/memory/runtime/SystemProvider.ts +145 -0
  1271. package/src/plugin/builtins/memory/runtime/Writer.ts +173 -0
  1272. package/src/plugin/builtins/schedule/SchedulePlugin.ts +131 -0
  1273. package/src/plugin/builtins/shell/Index.ts +9 -0
  1274. package/src/plugin/builtins/shell/ShellPlugin.ts +199 -0
  1275. package/src/plugin/builtins/shell/ShellRuntimeTypes.ts +94 -0
  1276. package/src/plugin/builtins/shell/runtime/ShellActionResponse.ts +135 -0
  1277. package/src/plugin/builtins/shell/runtime/ShellActionRuntime.ts +544 -0
  1278. package/src/plugin/builtins/shell/runtime/ShellActionRuntimeSupport.ts +384 -0
  1279. package/src/plugin/builtins/shell/runtime/ShellProcessEvents.ts +65 -0
  1280. package/src/plugin/builtins/shell/runtime/ShellRuntimeEnvironment.ts +75 -0
  1281. package/src/plugin/builtins/shell/types/ShellPlugin.ts +233 -0
  1282. package/src/plugin/builtins/skill/Plugin.ts +21 -8
  1283. package/src/plugin/builtins/skill/runtime/SystemProvider.ts +1 -1
  1284. package/src/plugin/builtins/task/Index.ts +8 -0
  1285. package/src/plugin/builtins/task/PROMPT.ts +9 -0
  1286. package/src/plugin/builtins/task/PROMPT.ts.txt +237 -0
  1287. package/src/plugin/builtins/task/Scheduler.ts +245 -0
  1288. package/src/plugin/builtins/task/TaskPlugin.ts +167 -0
  1289. package/src/plugin/builtins/task/runtime/CronTrigger.ts +110 -0
  1290. package/src/plugin/builtins/task/runtime/Model.ts +347 -0
  1291. package/src/plugin/builtins/task/runtime/Runner.ts +519 -0
  1292. package/src/plugin/builtins/task/runtime/Store.ts +253 -0
  1293. package/src/plugin/builtins/task/runtime/TaskActionExecution.ts +276 -0
  1294. package/src/plugin/builtins/task/runtime/TaskActionInput.ts +281 -0
  1295. package/src/plugin/builtins/task/runtime/TaskPluginActionRegistry.ts +214 -0
  1296. package/src/plugin/builtins/task/runtime/TaskPluginActions.ts +5 -0
  1297. package/src/plugin/builtins/task/runtime/TaskPluginSystem.ts +8 -0
  1298. package/src/plugin/builtins/task/runtime/TaskPromptAssets.ts +14 -0
  1299. package/src/plugin/builtins/task/runtime/TaskRunArtifacts.ts +493 -0
  1300. package/src/plugin/builtins/task/runtime/TaskRunChatDispatch.ts +81 -0
  1301. package/src/plugin/builtins/task/runtime/TaskRunnerProgress.ts +112 -0
  1302. package/src/plugin/builtins/task/runtime/TaskRunnerRound.ts +337 -0
  1303. package/src/plugin/builtins/task/runtime/TaskRunnerScript.ts +175 -0
  1304. package/src/plugin/builtins/task/runtime/TaskRunnerSession.ts +190 -0
  1305. package/src/plugin/builtins/task/runtime/TaskRunnerTypes.ts +199 -0
  1306. package/src/plugin/builtins/task/types/Cron.ts +16 -0
  1307. package/src/plugin/builtins/task/types/TaskPluginTypes.ts +55 -0
  1308. package/src/plugin/builtins/tts/Plugin.ts +23 -10
  1309. package/src/plugin/builtins/tts/runtime/Synthesizer.ts +1 -1
  1310. package/src/plugin/builtins/voice/InboundAugment.ts +1 -1
  1311. package/src/plugin/builtins/web/Plugin.ts +23 -10
  1312. package/src/plugin/builtins/workboard/Plugin.ts +71 -58
  1313. package/src/plugin/builtins/workboard/runtime/Collector.ts +7 -6
  1314. package/src/plugin/builtins/workboard/runtime/Normalizer.ts +4 -4
  1315. package/src/plugin/core/BasePlugin.ts +134 -0
  1316. package/src/plugin/core/BuiltinPluginClasses.ts +48 -0
  1317. package/src/plugin/core/Catalog.ts +6 -5
  1318. package/src/plugin/core/HttpRoutes.ts +6 -6
  1319. package/src/plugin/core/LocalExecution.ts +21 -2
  1320. package/src/plugin/core/Manager.ts +21 -0
  1321. package/src/plugin/core/PluginActionRunner.ts +267 -0
  1322. package/src/plugin/core/PluginClassRegistry.ts +88 -0
  1323. package/src/plugin/core/PluginCommand.ts +4 -4
  1324. package/src/plugin/core/PluginCommandRequest.ts +93 -0
  1325. package/src/plugin/core/PluginStateController.ts +328 -0
  1326. package/src/plugin/core/PluginSystemProviders.ts +50 -0
  1327. package/src/plugin/core/schedule/Executor.ts +54 -0
  1328. package/src/plugin/core/schedule/Store.ts +358 -0
  1329. package/src/plugin/core/schedule/Time.ts +131 -0
  1330. package/src/plugin/types/Plugin.ts +191 -18
  1331. package/src/plugin/types/PluginApi.ts +3 -3
  1332. package/src/plugin/types/PluginSchedule.ts +89 -0
  1333. package/src/plugin/types/PluginState.ts +11 -0
  1334. package/src/plugin/types/Plugins.ts +67 -0
  1335. package/src/runtime/host/AgentHostRuntime.ts +10 -4
  1336. package/src/runtime/host/daemon/Api.ts +2 -2
  1337. package/src/runtime/host/daemon/ProjectSetup.ts +2 -2
  1338. package/src/runtime/sandbox/types/SandboxRuntime.ts +1 -1
  1339. package/src/runtime/server/http/Server.ts +19 -51
  1340. package/src/runtime/server/http/control/ExecuteBySession.ts +10 -44
  1341. package/src/runtime/server/http/control/ExecuteInput.ts +1 -1
  1342. package/src/runtime/server/http/control/MessageTimeline.ts +3 -3
  1343. package/src/runtime/server/http/control/OverviewRoutes.ts +9 -8
  1344. package/src/runtime/server/http/control/SessionRoutes.ts +15 -3
  1345. package/src/runtime/server/http/control/SessionSummaryStore.ts +11 -3
  1346. package/src/runtime/server/http/control/TaskRoutes.ts +10 -10
  1347. package/src/runtime/server/http/control/TaskStore.ts +1 -1
  1348. package/src/runtime/server/http/execute/execute.ts +7 -46
  1349. package/src/runtime/server/http/plugins/plugins.ts +71 -4
  1350. package/src/runtime/server/http/sdk/Router.ts +3 -3
  1351. package/src/runtime/server/http/sdk/SessionRoutes.ts +82 -14
  1352. package/src/runtime/server/rpc/Server.ts +50 -48
  1353. package/src/sdk/Agent.ts +59 -41
  1354. package/src/sdk/AgentSdkTypes.ts +360 -43
  1355. package/src/sdk/RemoteAgent.ts +94 -21
  1356. package/src/sdk/Session.ts +101 -126
  1357. package/src/sdk/SessionSystemBuilder.ts +12 -13
  1358. package/src/sdk/session/Browse.ts +519 -0
  1359. package/src/sdk/session/Metadata.ts +1 -1
  1360. package/src/sdk/session/Paths.ts +2 -2
  1361. package/src/sdk/session/Persistence.ts +7 -7
  1362. package/src/sdk/session/RuntimeSessionPort.ts +107 -0
  1363. package/src/sdk/session/index.ts +12 -3
  1364. package/src/sdk/session/runtime/SessionPromptRuntime.ts +48 -15
  1365. package/src/types/config/DowncityConfig.ts +144 -97
  1366. package/src/types/runtime/auth/AuthPermission.ts +0 -6
  1367. package/src/types/runtime/host/AgentHost.ts +9 -5
  1368. package/src/types/runtime/http/InlineInstant.ts +2 -2
  1369. package/src/types/runtime/platform/PlatformGateway.ts +10 -10
  1370. package/src/types/sdk/AgentSessionEvent.ts +32 -0
  1371. package/src/types/sdk/AgentSessionTurn.ts +11 -0
  1372. package/tsconfig.json +1 -2
  1373. package/tsconfig.tsbuildinfo +1 -1
  1374. package/bin/plugin/builtins/voice/Plugin.d.ts +0 -14
  1375. package/bin/plugin/builtins/voice/Plugin.d.ts.map +0 -1
  1376. package/bin/plugin/builtins/voice/Plugin.js +0 -426
  1377. package/bin/plugin/builtins/voice/Plugin.js.map +0 -1
  1378. package/bin/plugin/core/PluginManager.d.ts +0 -24
  1379. package/bin/plugin/core/PluginManager.d.ts.map +0 -1
  1380. package/bin/plugin/core/PluginManager.js +0 -62
  1381. package/bin/plugin/core/PluginManager.js.map +0 -1
  1382. package/bin/plugin/core/Plugins.d.ts +0 -20
  1383. package/bin/plugin/core/Plugins.d.ts.map +0 -1
  1384. package/bin/plugin/core/Plugins.js +0 -33
  1385. package/bin/plugin/core/Plugins.js.map +0 -1
  1386. package/bin/runtime/host/PluginRuntime.d.ts +0 -24
  1387. package/bin/runtime/host/PluginRuntime.d.ts.map +0 -1
  1388. package/bin/runtime/host/PluginRuntime.js +0 -31
  1389. package/bin/runtime/host/PluginRuntime.js.map +0 -1
  1390. package/bin/runtime/server/http/auth/AuthError.d.ts +0 -22
  1391. package/bin/runtime/server/http/auth/AuthError.d.ts.map +0 -1
  1392. package/bin/runtime/server/http/auth/AuthError.js +0 -28
  1393. package/bin/runtime/server/http/auth/AuthError.js.map +0 -1
  1394. package/bin/runtime/server/http/auth/PasswordHasher.d.ts +0 -16
  1395. package/bin/runtime/server/http/auth/PasswordHasher.d.ts.map +0 -1
  1396. package/bin/runtime/server/http/auth/PasswordHasher.js +0 -37
  1397. package/bin/runtime/server/http/auth/PasswordHasher.js.map +0 -1
  1398. package/bin/runtime/server/http/auth/TokenService.d.ts +0 -20
  1399. package/bin/runtime/server/http/auth/TokenService.d.ts.map +0 -1
  1400. package/bin/runtime/server/http/auth/TokenService.js +0 -34
  1401. package/bin/runtime/server/http/auth/TokenService.js.map +0 -1
  1402. package/bin/runtime/server/http/services/services.d.ts +0 -25
  1403. package/bin/runtime/server/http/services/services.d.ts.map +0 -1
  1404. package/bin/runtime/server/http/services/services.js +0 -72
  1405. package/bin/runtime/server/http/services/services.js.map +0 -1
  1406. package/bin/sdk/session/ServicePort.d.ts +0 -86
  1407. package/bin/sdk/session/ServicePort.d.ts.map +0 -1
  1408. package/bin/sdk/session/ServicePort.js +0 -44
  1409. package/bin/sdk/session/ServicePort.js.map +0 -1
  1410. package/bin/service/builtins/BaseService.d.ts +0 -70
  1411. package/bin/service/builtins/BaseService.d.ts.map +0 -1
  1412. package/bin/service/builtins/BaseService.js +0 -67
  1413. package/bin/service/builtins/BaseService.js.map +0 -1
  1414. package/bin/service/builtins/chat/Action.d.ts +0 -125
  1415. package/bin/service/builtins/chat/Action.d.ts.map +0 -1
  1416. package/bin/service/builtins/chat/Action.js +0 -376
  1417. package/bin/service/builtins/chat/Action.js.map +0 -1
  1418. package/bin/service/builtins/chat/ChatService.d.ts +0 -89
  1419. package/bin/service/builtins/chat/ChatService.d.ts.map +0 -1
  1420. package/bin/service/builtins/chat/ChatService.js +0 -212
  1421. package/bin/service/builtins/chat/ChatService.js.map +0 -1
  1422. package/bin/service/builtins/chat/ChatServiceTypes.d.ts +0 -159
  1423. package/bin/service/builtins/chat/ChatServiceTypes.d.ts.map +0 -1
  1424. package/bin/service/builtins/chat/ChatServiceTypes.js +0 -10
  1425. package/bin/service/builtins/chat/ChatServiceTypes.js.map +0 -1
  1426. package/bin/service/builtins/chat/Index.d.ts +0 -9
  1427. package/bin/service/builtins/chat/Index.d.ts.map +0 -1
  1428. package/bin/service/builtins/chat/Index.js +0 -9
  1429. package/bin/service/builtins/chat/Index.js.map +0 -1
  1430. package/bin/service/builtins/chat/PROMPT.direct.d.ts +0 -7
  1431. package/bin/service/builtins/chat/PROMPT.direct.d.ts.map +0 -1
  1432. package/bin/service/builtins/chat/PROMPT.direct.js +0 -8
  1433. package/bin/service/builtins/chat/PROMPT.direct.js.map +0 -1
  1434. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts +0 -63
  1435. package/bin/service/builtins/chat/accounts/ChannelAccountService.d.ts.map +0 -1
  1436. package/bin/service/builtins/chat/accounts/ChannelAccountService.js +0 -258
  1437. package/bin/service/builtins/chat/accounts/ChannelAccountService.js.map +0 -1
  1438. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts +0 -201
  1439. package/bin/service/builtins/chat/channels/BaseChatChannel.d.ts.map +0 -1
  1440. package/bin/service/builtins/chat/channels/BaseChatChannel.js +0 -294
  1441. package/bin/service/builtins/chat/channels/BaseChatChannel.js.map +0 -1
  1442. package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts +0 -73
  1443. package/bin/service/builtins/chat/channels/BaseChatChannelQueue.d.ts.map +0 -1
  1444. package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js +0 -238
  1445. package/bin/service/builtins/chat/channels/BaseChatChannelQueue.js.map +0 -1
  1446. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts +0 -189
  1447. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.d.ts.map +0 -1
  1448. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js +0 -141
  1449. package/bin/service/builtins/chat/channels/BaseChatChannelSupport.js.map +0 -1
  1450. package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts +0 -18
  1451. package/bin/service/builtins/chat/channels/BotInfoProvider.d.ts.map +0 -1
  1452. package/bin/service/builtins/chat/channels/BotInfoProvider.js +0 -32
  1453. package/bin/service/builtins/chat/channels/BotInfoProvider.js.map +0 -1
  1454. package/bin/service/builtins/chat/channels/Configuration.d.ts +0 -27
  1455. package/bin/service/builtins/chat/channels/Configuration.d.ts.map +0 -1
  1456. package/bin/service/builtins/chat/channels/Configuration.js.map +0 -1
  1457. package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts +0 -18
  1458. package/bin/service/builtins/chat/channels/ConfigurationRegistry.d.ts.map +0 -1
  1459. package/bin/service/builtins/chat/channels/ConfigurationRegistry.js +0 -31
  1460. package/bin/service/builtins/chat/channels/ConfigurationRegistry.js.map +0 -1
  1461. package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts +0 -20
  1462. package/bin/service/builtins/chat/channels/feishu/BotInfo.d.ts.map +0 -1
  1463. package/bin/service/builtins/chat/channels/feishu/BotInfo.js.map +0 -1
  1464. package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts +0 -17
  1465. package/bin/service/builtins/chat/channels/feishu/Configuration.d.ts.map +0 -1
  1466. package/bin/service/builtins/chat/channels/feishu/Configuration.js +0 -59
  1467. package/bin/service/builtins/chat/channels/feishu/Configuration.js.map +0 -1
  1468. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts +0 -116
  1469. package/bin/service/builtins/chat/channels/feishu/Feishu.d.ts.map +0 -1
  1470. package/bin/service/builtins/chat/channels/feishu/Feishu.js +0 -326
  1471. package/bin/service/builtins/chat/channels/feishu/Feishu.js.map +0 -1
  1472. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts +0 -21
  1473. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.d.ts.map +0 -1
  1474. package/bin/service/builtins/chat/channels/feishu/FeishuInbound.js.map +0 -1
  1475. package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts +0 -155
  1476. package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.d.ts.map +0 -1
  1477. package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js +0 -247
  1478. package/bin/service/builtins/chat/channels/feishu/FeishuMessageHandler.js.map +0 -1
  1479. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts +0 -130
  1480. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.d.ts.map +0 -1
  1481. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformClient.js.map +0 -1
  1482. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts +0 -102
  1483. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.d.ts.map +0 -1
  1484. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformLookup.js.map +0 -1
  1485. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts +0 -49
  1486. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.d.ts.map +0 -1
  1487. package/bin/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.js.map +0 -1
  1488. package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts +0 -31
  1489. package/bin/service/builtins/chat/channels/feishu/InboundAttachment.d.ts.map +0 -1
  1490. package/bin/service/builtins/chat/channels/feishu/InboundAttachment.js.map +0 -1
  1491. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.d.ts.map +0 -1
  1492. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js +0 -8
  1493. package/bin/service/builtins/chat/channels/feishu/PROMPT.direct.js.map +0 -1
  1494. package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts +0 -48
  1495. package/bin/service/builtins/chat/channels/feishu/PostMessage.d.ts.map +0 -1
  1496. package/bin/service/builtins/chat/channels/feishu/PostMessage.js.map +0 -1
  1497. package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts +0 -18
  1498. package/bin/service/builtins/chat/channels/feishu/ReplyContext.d.ts.map +0 -1
  1499. package/bin/service/builtins/chat/channels/feishu/ReplyContext.js.map +0 -1
  1500. package/bin/service/builtins/chat/channels/feishu/Shared.d.ts +0 -21
  1501. package/bin/service/builtins/chat/channels/feishu/Shared.d.ts.map +0 -1
  1502. package/bin/service/builtins/chat/channels/feishu/Shared.js +0 -69
  1503. package/bin/service/builtins/chat/channels/feishu/Shared.js.map +0 -1
  1504. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts +0 -127
  1505. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.d.ts.map +0 -1
  1506. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js +0 -9
  1507. package/bin/service/builtins/chat/channels/feishu/types/FeishuChannel.js.map +0 -1
  1508. package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts +0 -19
  1509. package/bin/service/builtins/chat/channels/qq/BotInfo.d.ts.map +0 -1
  1510. package/bin/service/builtins/chat/channels/qq/BotInfo.js.map +0 -1
  1511. package/bin/service/builtins/chat/channels/qq/Configuration.d.ts +0 -17
  1512. package/bin/service/builtins/chat/channels/qq/Configuration.d.ts.map +0 -1
  1513. package/bin/service/builtins/chat/channels/qq/Configuration.js +0 -59
  1514. package/bin/service/builtins/chat/channels/qq/Configuration.js.map +0 -1
  1515. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts +0 -7
  1516. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.d.ts.map +0 -1
  1517. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js +0 -8
  1518. package/bin/service/builtins/chat/channels/qq/PROMPT.direct.js.map +0 -1
  1519. package/bin/service/builtins/chat/channels/qq/QQ.d.ts +0 -92
  1520. package/bin/service/builtins/chat/channels/qq/QQ.d.ts.map +0 -1
  1521. package/bin/service/builtins/chat/channels/qq/QQ.js +0 -287
  1522. package/bin/service/builtins/chat/channels/qq/QQ.js.map +0 -1
  1523. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts +0 -22
  1524. package/bin/service/builtins/chat/channels/qq/QQEventCapture.d.ts.map +0 -1
  1525. package/bin/service/builtins/chat/channels/qq/QQEventCapture.js.map +0 -1
  1526. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts +0 -119
  1527. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.d.ts.map +0 -1
  1528. package/bin/service/builtins/chat/channels/qq/QQGatewayAuth.js.map +0 -1
  1529. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts +0 -155
  1530. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.d.ts.map +0 -1
  1531. package/bin/service/builtins/chat/channels/qq/QQGatewayClient.js.map +0 -1
  1532. package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts +0 -65
  1533. package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.d.ts.map +0 -1
  1534. package/bin/service/builtins/chat/channels/qq/QQGatewayConnection.js.map +0 -1
  1535. package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts.map +0 -1
  1536. package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js +0 -58
  1537. package/bin/service/builtins/chat/channels/qq/QQGatewayHeartbeat.js.map +0 -1
  1538. package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts +0 -86
  1539. package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.d.ts.map +0 -1
  1540. package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js +0 -93
  1541. package/bin/service/builtins/chat/channels/qq/QQGatewayProtocol.js.map +0 -1
  1542. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts +0 -84
  1543. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.d.ts.map +0 -1
  1544. package/bin/service/builtins/chat/channels/qq/QQGatewaySend.js.map +0 -1
  1545. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts +0 -39
  1546. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.d.ts.map +0 -1
  1547. package/bin/service/builtins/chat/channels/qq/QQGatewaySupport.js.map +0 -1
  1548. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts +0 -47
  1549. package/bin/service/builtins/chat/channels/qq/QQInbound.d.ts.map +0 -1
  1550. package/bin/service/builtins/chat/channels/qq/QQInbound.js.map +0 -1
  1551. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.d.ts.map +0 -1
  1552. package/bin/service/builtins/chat/channels/qq/QQInboundDedupe.js.map +0 -1
  1553. package/bin/service/builtins/chat/channels/qq/QQMessageHandler.d.ts +0 -129
  1554. package/bin/service/builtins/chat/channels/qq/QQMessageHandler.d.ts.map +0 -1
  1555. package/bin/service/builtins/chat/channels/qq/QQMessageHandler.js.map +0 -1
  1556. package/bin/service/builtins/chat/channels/qq/QQSendSupport.d.ts.map +0 -1
  1557. package/bin/service/builtins/chat/channels/qq/QQSendSupport.js.map +0 -1
  1558. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts +0 -102
  1559. package/bin/service/builtins/chat/channels/qq/QQSupport.d.ts.map +0 -1
  1560. package/bin/service/builtins/chat/channels/qq/QQSupport.js +0 -172
  1561. package/bin/service/builtins/chat/channels/qq/QQSupport.js.map +0 -1
  1562. package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts +0 -64
  1563. package/bin/service/builtins/chat/channels/qq/VoiceInput.d.ts.map +0 -1
  1564. package/bin/service/builtins/chat/channels/qq/VoiceInput.js.map +0 -1
  1565. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts +0 -485
  1566. package/bin/service/builtins/chat/channels/qq/types/QqChannel.d.ts.map +0 -1
  1567. package/bin/service/builtins/chat/channels/qq/types/QqChannel.js +0 -42
  1568. package/bin/service/builtins/chat/channels/qq/types/QqChannel.js.map +0 -1
  1569. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts.map +0 -1
  1570. package/bin/service/builtins/chat/channels/qq/types/QqGatewaySupport.js.map +0 -1
  1571. package/bin/service/builtins/chat/channels/telegram/ApiClient.d.ts.map +0 -1
  1572. package/bin/service/builtins/chat/channels/telegram/ApiClient.js.map +0 -1
  1573. package/bin/service/builtins/chat/channels/telegram/Bot.d.ts +0 -97
  1574. package/bin/service/builtins/chat/channels/telegram/Bot.d.ts.map +0 -1
  1575. package/bin/service/builtins/chat/channels/telegram/Bot.js +0 -246
  1576. package/bin/service/builtins/chat/channels/telegram/Bot.js.map +0 -1
  1577. package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts +0 -19
  1578. package/bin/service/builtins/chat/channels/telegram/BotInfo.d.ts.map +0 -1
  1579. package/bin/service/builtins/chat/channels/telegram/BotInfo.js.map +0 -1
  1580. package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts +0 -17
  1581. package/bin/service/builtins/chat/channels/telegram/Configuration.d.ts.map +0 -1
  1582. package/bin/service/builtins/chat/channels/telegram/Configuration.js +0 -59
  1583. package/bin/service/builtins/chat/channels/telegram/Configuration.js.map +0 -1
  1584. package/bin/service/builtins/chat/channels/telegram/Handlers.d.ts.map +0 -1
  1585. package/bin/service/builtins/chat/channels/telegram/Handlers.js.map +0 -1
  1586. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.d.ts.map +0 -1
  1587. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js +0 -8
  1588. package/bin/service/builtins/chat/channels/telegram/PROMPT.direct.js.map +0 -1
  1589. package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts +0 -14
  1590. package/bin/service/builtins/chat/channels/telegram/ReplyContext.d.ts.map +0 -1
  1591. package/bin/service/builtins/chat/channels/telegram/ReplyContext.js.map +0 -1
  1592. package/bin/service/builtins/chat/channels/telegram/Shared.d.ts.map +0 -1
  1593. package/bin/service/builtins/chat/channels/telegram/Shared.js +0 -171
  1594. package/bin/service/builtins/chat/channels/telegram/Shared.js.map +0 -1
  1595. package/bin/service/builtins/chat/channels/telegram/StateStore.d.ts.map +0 -1
  1596. package/bin/service/builtins/chat/channels/telegram/StateStore.js.map +0 -1
  1597. package/bin/service/builtins/chat/channels/telegram/TelegramInbound.d.ts.map +0 -1
  1598. package/bin/service/builtins/chat/channels/telegram/TelegramInbound.js.map +0 -1
  1599. package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts +0 -142
  1600. package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.d.ts.map +0 -1
  1601. package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js +0 -267
  1602. package/bin/service/builtins/chat/channels/telegram/TelegramMessageHandler.js.map +0 -1
  1603. package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts +0 -55
  1604. package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.d.ts.map +0 -1
  1605. package/bin/service/builtins/chat/channels/telegram/TelegramPendingUpdates.js.map +0 -1
  1606. package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts +0 -161
  1607. package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.d.ts.map +0 -1
  1608. package/bin/service/builtins/chat/channels/telegram/TelegramPlatformClient.js.map +0 -1
  1609. package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts +0 -78
  1610. package/bin/service/builtins/chat/runtime/ChannelContextStore.d.ts.map +0 -1
  1611. package/bin/service/builtins/chat/runtime/ChannelContextStore.js.map +0 -1
  1612. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts +0 -145
  1613. package/bin/service/builtins/chat/runtime/ChatActionExecution.d.ts.map +0 -1
  1614. package/bin/service/builtins/chat/runtime/ChatActionExecution.js +0 -287
  1615. package/bin/service/builtins/chat/runtime/ChatActionExecution.js.map +0 -1
  1616. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts +0 -22
  1617. package/bin/service/builtins/chat/runtime/ChatActionInput.d.ts.map +0 -1
  1618. package/bin/service/builtins/chat/runtime/ChatActionInput.js +0 -114
  1619. package/bin/service/builtins/chat/runtime/ChatActionInput.js.map +0 -1
  1620. package/bin/service/builtins/chat/runtime/ChatActionInputSupport.d.ts.map +0 -1
  1621. package/bin/service/builtins/chat/runtime/ChatActionInputSupport.js.map +0 -1
  1622. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts +0 -122
  1623. package/bin/service/builtins/chat/runtime/ChatChannelActions.d.ts.map +0 -1
  1624. package/bin/service/builtins/chat/runtime/ChatChannelActions.js +0 -230
  1625. package/bin/service/builtins/chat/runtime/ChatChannelActions.js.map +0 -1
  1626. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts +0 -61
  1627. package/bin/service/builtins/chat/runtime/ChatChannelConfig.d.ts.map +0 -1
  1628. package/bin/service/builtins/chat/runtime/ChatChannelConfig.js +0 -260
  1629. package/bin/service/builtins/chat/runtime/ChatChannelConfig.js.map +0 -1
  1630. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts +0 -45
  1631. package/bin/service/builtins/chat/runtime/ChatChannelCore.d.ts.map +0 -1
  1632. package/bin/service/builtins/chat/runtime/ChatChannelCore.js +0 -106
  1633. package/bin/service/builtins/chat/runtime/ChatChannelCore.js.map +0 -1
  1634. package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts +0 -12
  1635. package/bin/service/builtins/chat/runtime/ChatChannelFacade.d.ts.map +0 -1
  1636. package/bin/service/builtins/chat/runtime/ChatChannelFacade.js +0 -12
  1637. package/bin/service/builtins/chat/runtime/ChatChannelFacade.js.map +0 -1
  1638. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts +0 -28
  1639. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.d.ts.map +0 -1
  1640. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js +0 -132
  1641. package/bin/service/builtins/chat/runtime/ChatChannelLifecycle.js.map +0 -1
  1642. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts +0 -72
  1643. package/bin/service/builtins/chat/runtime/ChatHistoryStore.d.ts.map +0 -1
  1644. package/bin/service/builtins/chat/runtime/ChatHistoryStore.js.map +0 -1
  1645. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts +0 -52
  1646. package/bin/service/builtins/chat/runtime/ChatIngressStore.d.ts.map +0 -1
  1647. package/bin/service/builtins/chat/runtime/ChatIngressStore.js +0 -65
  1648. package/bin/service/builtins/chat/runtime/ChatIngressStore.js.map +0 -1
  1649. package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts +0 -54
  1650. package/bin/service/builtins/chat/runtime/ChatMessageMarkup.d.ts.map +0 -1
  1651. package/bin/service/builtins/chat/runtime/ChatMessageMarkup.js.map +0 -1
  1652. package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts +0 -68
  1653. package/bin/service/builtins/chat/runtime/ChatMetaStore.d.ts.map +0 -1
  1654. package/bin/service/builtins/chat/runtime/ChatMetaStore.js +0 -143
  1655. package/bin/service/builtins/chat/runtime/ChatMetaStore.js.map +0 -1
  1656. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts +0 -24
  1657. package/bin/service/builtins/chat/runtime/ChatPromptAssets.d.ts.map +0 -1
  1658. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js +0 -28
  1659. package/bin/service/builtins/chat/runtime/ChatPromptAssets.js.map +0 -1
  1660. package/bin/service/builtins/chat/runtime/ChatQueue.d.ts +0 -40
  1661. package/bin/service/builtins/chat/runtime/ChatQueue.d.ts.map +0 -1
  1662. package/bin/service/builtins/chat/runtime/ChatQueue.js.map +0 -1
  1663. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts.map +0 -1
  1664. package/bin/service/builtins/chat/runtime/ChatQueueReplyDispatch.js.map +0 -1
  1665. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts +0 -55
  1666. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.d.ts.map +0 -1
  1667. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js +0 -98
  1668. package/bin/service/builtins/chat/runtime/ChatQueueSessionBridge.js.map +0 -1
  1669. package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts +0 -85
  1670. package/bin/service/builtins/chat/runtime/ChatQueueStore.d.ts.map +0 -1
  1671. package/bin/service/builtins/chat/runtime/ChatQueueStore.js +0 -130
  1672. package/bin/service/builtins/chat/runtime/ChatQueueStore.js.map +0 -1
  1673. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts +0 -88
  1674. package/bin/service/builtins/chat/runtime/ChatQueueWorker.d.ts.map +0 -1
  1675. package/bin/service/builtins/chat/runtime/ChatQueueWorker.js +0 -435
  1676. package/bin/service/builtins/chat/runtime/ChatQueueWorker.js.map +0 -1
  1677. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts +0 -36
  1678. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.d.ts.map +0 -1
  1679. package/bin/service/builtins/chat/runtime/ChatQueueWorkerSupport.js.map +0 -1
  1680. package/bin/service/builtins/chat/runtime/ChatSendActionInput.d.ts +0 -23
  1681. package/bin/service/builtins/chat/runtime/ChatSendActionInput.d.ts.map +0 -1
  1682. package/bin/service/builtins/chat/runtime/ChatSendActionInput.js +0 -205
  1683. package/bin/service/builtins/chat/runtime/ChatSendActionInput.js.map +0 -1
  1684. package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts +0 -20
  1685. package/bin/service/builtins/chat/runtime/ChatSendMetadata.d.ts.map +0 -1
  1686. package/bin/service/builtins/chat/runtime/ChatSendMetadata.js.map +0 -1
  1687. package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts +0 -27
  1688. package/bin/service/builtins/chat/runtime/ChatSendRegistry.d.ts.map +0 -1
  1689. package/bin/service/builtins/chat/runtime/ChatSendRegistry.js.map +0 -1
  1690. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts +0 -17
  1691. package/bin/service/builtins/chat/runtime/ChatServiceActions.d.ts.map +0 -1
  1692. package/bin/service/builtins/chat/runtime/ChatServiceActions.js +0 -304
  1693. package/bin/service/builtins/chat/runtime/ChatServiceActions.js.map +0 -1
  1694. package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts +0 -22
  1695. package/bin/service/builtins/chat/runtime/ChatServiceSystem.d.ts.map +0 -1
  1696. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js +0 -44
  1697. package/bin/service/builtins/chat/runtime/ChatServiceSystem.js.map +0 -1
  1698. package/bin/service/builtins/chat/runtime/ChatSession.d.ts +0 -97
  1699. package/bin/service/builtins/chat/runtime/ChatSession.d.ts.map +0 -1
  1700. package/bin/service/builtins/chat/runtime/ChatSession.js +0 -84
  1701. package/bin/service/builtins/chat/runtime/ChatSession.js.map +0 -1
  1702. package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.d.ts +0 -45
  1703. package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.d.ts.map +0 -1
  1704. package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.js +0 -60
  1705. package/bin/service/builtins/chat/runtime/ChatSessionContextComposer.js.map +0 -1
  1706. package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts +0 -29
  1707. package/bin/service/builtins/chat/runtime/ChatSessionDelete.d.ts.map +0 -1
  1708. package/bin/service/builtins/chat/runtime/ChatSessionDelete.js +0 -76
  1709. package/bin/service/builtins/chat/runtime/ChatSessionDelete.js.map +0 -1
  1710. package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts +0 -30
  1711. package/bin/service/builtins/chat/runtime/ChatSessionTypes.d.ts.map +0 -1
  1712. package/bin/service/builtins/chat/runtime/ChatSessionTypes.js.map +0 -1
  1713. package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts +0 -67
  1714. package/bin/service/builtins/chat/runtime/ChatkeySend.d.ts.map +0 -1
  1715. package/bin/service/builtins/chat/runtime/ChatkeySend.js +0 -147
  1716. package/bin/service/builtins/chat/runtime/ChatkeySend.js.map +0 -1
  1717. package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts +0 -22
  1718. package/bin/service/builtins/chat/runtime/DirectDispatchParser.d.ts.map +0 -1
  1719. package/bin/service/builtins/chat/runtime/DirectDispatchParser.js +0 -133
  1720. package/bin/service/builtins/chat/runtime/DirectDispatchParser.js.map +0 -1
  1721. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts +0 -24
  1722. package/bin/service/builtins/chat/runtime/EnqueueDispatch.d.ts.map +0 -1
  1723. package/bin/service/builtins/chat/runtime/EnqueueDispatch.js +0 -28
  1724. package/bin/service/builtins/chat/runtime/EnqueueDispatch.js.map +0 -1
  1725. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts +0 -21
  1726. package/bin/service/builtins/chat/runtime/InboundAugment.d.ts.map +0 -1
  1727. package/bin/service/builtins/chat/runtime/InboundAugment.js +0 -50
  1728. package/bin/service/builtins/chat/runtime/InboundAugment.js.map +0 -1
  1729. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts +0 -43
  1730. package/bin/service/builtins/chat/runtime/PluginDispatch.d.ts.map +0 -1
  1731. package/bin/service/builtins/chat/runtime/PluginDispatch.js +0 -57
  1732. package/bin/service/builtins/chat/runtime/PluginDispatch.js.map +0 -1
  1733. package/bin/service/builtins/chat/runtime/PluginPoints.d.ts +0 -78
  1734. package/bin/service/builtins/chat/runtime/PluginPoints.d.ts.map +0 -1
  1735. package/bin/service/builtins/chat/runtime/PluginPoints.js +0 -78
  1736. package/bin/service/builtins/chat/runtime/PluginPoints.js.map +0 -1
  1737. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts +0 -20
  1738. package/bin/service/builtins/chat/runtime/QueuedUserMessage.d.ts.map +0 -1
  1739. package/bin/service/builtins/chat/runtime/QueuedUserMessage.js.map +0 -1
  1740. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts +0 -29
  1741. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.d.ts.map +0 -1
  1742. package/bin/service/builtins/chat/runtime/ReplyContextFormatter.js.map +0 -1
  1743. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts +0 -36
  1744. package/bin/service/builtins/chat/runtime/ReplyDispatch.d.ts.map +0 -1
  1745. package/bin/service/builtins/chat/runtime/ReplyDispatch.js +0 -51
  1746. package/bin/service/builtins/chat/runtime/ReplyDispatch.js.map +0 -1
  1747. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts +0 -26
  1748. package/bin/service/builtins/chat/runtime/SystemPrompt.d.ts.map +0 -1
  1749. package/bin/service/builtins/chat/runtime/SystemPrompt.js +0 -70
  1750. package/bin/service/builtins/chat/runtime/SystemPrompt.js.map +0 -1
  1751. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts +0 -24
  1752. package/bin/service/builtins/chat/runtime/UIMessageTransformer.d.ts.map +0 -1
  1753. package/bin/service/builtins/chat/runtime/UIMessageTransformer.js.map +0 -1
  1754. package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts +0 -34
  1755. package/bin/service/builtins/chat/runtime/UserVisibleText.d.ts.map +0 -1
  1756. package/bin/service/builtins/chat/runtime/UserVisibleText.js.map +0 -1
  1757. package/bin/service/builtins/chat/types/BotInfo.d.ts +0 -97
  1758. package/bin/service/builtins/chat/types/BotInfo.d.ts.map +0 -1
  1759. package/bin/service/builtins/chat/types/BotInfo.js.map +0 -1
  1760. package/bin/service/builtins/chat/types/ChannelAccount.d.ts.map +0 -1
  1761. package/bin/service/builtins/chat/types/ChannelAccount.js.map +0 -1
  1762. package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts +0 -146
  1763. package/bin/service/builtins/chat/types/ChannelConfiguration.d.ts.map +0 -1
  1764. package/bin/service/builtins/chat/types/ChannelConfiguration.js.map +0 -1
  1765. package/bin/service/builtins/chat/types/ChannelContext.d.ts +0 -107
  1766. package/bin/service/builtins/chat/types/ChannelContext.d.ts.map +0 -1
  1767. package/bin/service/builtins/chat/types/ChannelContext.js +0 -9
  1768. package/bin/service/builtins/chat/types/ChannelContext.js.map +0 -1
  1769. package/bin/service/builtins/chat/types/ChannelStatus.d.ts +0 -88
  1770. package/bin/service/builtins/chat/types/ChannelStatus.d.ts.map +0 -1
  1771. package/bin/service/builtins/chat/types/ChannelStatus.js.map +0 -1
  1772. package/bin/service/builtins/chat/types/ChatCommand.d.ts.map +0 -1
  1773. package/bin/service/builtins/chat/types/ChatCommand.js.map +0 -1
  1774. package/bin/service/builtins/chat/types/ChatDispatcher.d.ts.map +0 -1
  1775. package/bin/service/builtins/chat/types/ChatDispatcher.js.map +0 -1
  1776. package/bin/service/builtins/chat/types/ChatHistory.d.ts +0 -36
  1777. package/bin/service/builtins/chat/types/ChatHistory.d.ts.map +0 -1
  1778. package/bin/service/builtins/chat/types/ChatHistory.js.map +0 -1
  1779. package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts +0 -144
  1780. package/bin/service/builtins/chat/types/ChatMessageMarkup.d.ts.map +0 -1
  1781. package/bin/service/builtins/chat/types/ChatMessageMarkup.js +0 -9
  1782. package/bin/service/builtins/chat/types/ChatMessageMarkup.js.map +0 -1
  1783. package/bin/service/builtins/chat/types/ChatMeta.d.ts +0 -34
  1784. package/bin/service/builtins/chat/types/ChatMeta.d.ts.map +0 -1
  1785. package/bin/service/builtins/chat/types/ChatMeta.js +0 -10
  1786. package/bin/service/builtins/chat/types/ChatMeta.js.map +0 -1
  1787. package/bin/service/builtins/chat/types/ChatPlugin.d.ts +0 -238
  1788. package/bin/service/builtins/chat/types/ChatPlugin.d.ts.map +0 -1
  1789. package/bin/service/builtins/chat/types/ChatPlugin.js +0 -10
  1790. package/bin/service/builtins/chat/types/ChatPlugin.js.map +0 -1
  1791. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts +0 -125
  1792. package/bin/service/builtins/chat/types/ChatPromptContext.d.ts.map +0 -1
  1793. package/bin/service/builtins/chat/types/ChatPromptContext.js.map +0 -1
  1794. package/bin/service/builtins/chat/types/ChatQueue.d.ts +0 -44
  1795. package/bin/service/builtins/chat/types/ChatQueue.d.ts.map +0 -1
  1796. package/bin/service/builtins/chat/types/ChatQueue.js.map +0 -1
  1797. package/bin/service/builtins/chat/types/ChatQueueWorker.d.ts.map +0 -1
  1798. package/bin/service/builtins/chat/types/ChatQueueWorker.js.map +0 -1
  1799. package/bin/service/builtins/chat/types/ChatRuntime.d.ts +0 -32
  1800. package/bin/service/builtins/chat/types/ChatRuntime.d.ts.map +0 -1
  1801. package/bin/service/builtins/chat/types/ChatRuntime.js +0 -9
  1802. package/bin/service/builtins/chat/types/ChatRuntime.js.map +0 -1
  1803. package/bin/service/builtins/chat/types/ChatService.d.ts +0 -145
  1804. package/bin/service/builtins/chat/types/ChatService.d.ts.map +0 -1
  1805. package/bin/service/builtins/chat/types/ChatService.js +0 -10
  1806. package/bin/service/builtins/chat/types/ChatService.js.map +0 -1
  1807. package/bin/service/builtins/chat/types/DirectDispatch.d.ts +0 -115
  1808. package/bin/service/builtins/chat/types/DirectDispatch.d.ts.map +0 -1
  1809. package/bin/service/builtins/chat/types/DirectDispatch.js.map +0 -1
  1810. package/bin/service/builtins/chat/types/FeishuAttachment.d.ts.map +0 -1
  1811. package/bin/service/builtins/chat/types/FeishuAttachment.js.map +0 -1
  1812. package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts +0 -114
  1813. package/bin/service/builtins/chat/types/FeishuInboundAttachment.d.ts.map +0 -1
  1814. package/bin/service/builtins/chat/types/FeishuInboundAttachment.js.map +0 -1
  1815. package/bin/service/builtins/chat/types/FeishuPost.d.ts.map +0 -1
  1816. package/bin/service/builtins/chat/types/FeishuPost.js.map +0 -1
  1817. package/bin/service/builtins/chat/types/QqInboundDedupe.d.ts.map +0 -1
  1818. package/bin/service/builtins/chat/types/QqInboundDedupe.js.map +0 -1
  1819. package/bin/service/builtins/chat/types/QqVoice.d.ts.map +0 -1
  1820. package/bin/service/builtins/chat/types/QqVoice.js.map +0 -1
  1821. package/bin/service/builtins/chat/types/ReplyContext.d.ts.map +0 -1
  1822. package/bin/service/builtins/chat/types/ReplyContext.js.map +0 -1
  1823. package/bin/service/builtins/contact/Action.d.ts +0 -62
  1824. package/bin/service/builtins/contact/Action.d.ts.map +0 -1
  1825. package/bin/service/builtins/contact/Action.js +0 -221
  1826. package/bin/service/builtins/contact/Action.js.map +0 -1
  1827. package/bin/service/builtins/contact/ContactService.d.ts +0 -39
  1828. package/bin/service/builtins/contact/ContactService.d.ts.map +0 -1
  1829. package/bin/service/builtins/contact/ContactService.js +0 -409
  1830. package/bin/service/builtins/contact/ContactService.js.map +0 -1
  1831. package/bin/service/builtins/contact/Index.d.ts +0 -8
  1832. package/bin/service/builtins/contact/Index.d.ts.map +0 -1
  1833. package/bin/service/builtins/contact/Index.js +0 -8
  1834. package/bin/service/builtins/contact/Index.js.map +0 -1
  1835. package/bin/service/builtins/contact/PROMPT.d.ts +0 -7
  1836. package/bin/service/builtins/contact/PROMPT.d.ts.map +0 -1
  1837. package/bin/service/builtins/contact/PROMPT.js +0 -8
  1838. package/bin/service/builtins/contact/PROMPT.js.map +0 -1
  1839. package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts +0 -23
  1840. package/bin/service/builtins/contact/runtime/ApproveCallback.d.ts.map +0 -1
  1841. package/bin/service/builtins/contact/runtime/ApproveCallback.js.map +0 -1
  1842. package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts +0 -27
  1843. package/bin/service/builtins/contact/runtime/ChatRuntime.d.ts.map +0 -1
  1844. package/bin/service/builtins/contact/runtime/ChatRuntime.js +0 -59
  1845. package/bin/service/builtins/contact/runtime/ChatRuntime.js.map +0 -1
  1846. package/bin/service/builtins/contact/runtime/ContactPayload.d.ts.map +0 -1
  1847. package/bin/service/builtins/contact/runtime/ContactPayload.js.map +0 -1
  1848. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts +0 -12
  1849. package/bin/service/builtins/contact/runtime/ContactPromptAssets.d.ts.map +0 -1
  1850. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js +0 -13
  1851. package/bin/service/builtins/contact/runtime/ContactPromptAssets.js.map +0 -1
  1852. package/bin/service/builtins/contact/runtime/ContactStore.d.ts +0 -49
  1853. package/bin/service/builtins/contact/runtime/ContactStore.d.ts.map +0 -1
  1854. package/bin/service/builtins/contact/runtime/ContactStore.js.map +0 -1
  1855. package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts +0 -39
  1856. package/bin/service/builtins/contact/runtime/EndpointNotice.d.ts.map +0 -1
  1857. package/bin/service/builtins/contact/runtime/EndpointNotice.js.map +0 -1
  1858. package/bin/service/builtins/contact/runtime/EndpointResolver.d.ts.map +0 -1
  1859. package/bin/service/builtins/contact/runtime/EndpointResolver.js.map +0 -1
  1860. package/bin/service/builtins/contact/runtime/InboxStore.d.ts +0 -33
  1861. package/bin/service/builtins/contact/runtime/InboxStore.d.ts.map +0 -1
  1862. package/bin/service/builtins/contact/runtime/InboxStore.js.map +0 -1
  1863. package/bin/service/builtins/contact/runtime/LinkApproval.d.ts +0 -20
  1864. package/bin/service/builtins/contact/runtime/LinkApproval.d.ts.map +0 -1
  1865. package/bin/service/builtins/contact/runtime/LinkApproval.js.map +0 -1
  1866. package/bin/service/builtins/contact/runtime/LinkCode.d.ts +0 -21
  1867. package/bin/service/builtins/contact/runtime/LinkCode.d.ts.map +0 -1
  1868. package/bin/service/builtins/contact/runtime/LinkCode.js.map +0 -1
  1869. package/bin/service/builtins/contact/runtime/LinkStore.d.ts +0 -17
  1870. package/bin/service/builtins/contact/runtime/LinkStore.d.ts.map +0 -1
  1871. package/bin/service/builtins/contact/runtime/LinkStore.js.map +0 -1
  1872. package/bin/service/builtins/contact/runtime/Paths.d.ts +0 -64
  1873. package/bin/service/builtins/contact/runtime/Paths.d.ts.map +0 -1
  1874. package/bin/service/builtins/contact/runtime/Paths.js +0 -103
  1875. package/bin/service/builtins/contact/runtime/Paths.js.map +0 -1
  1876. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts +0 -46
  1877. package/bin/service/builtins/contact/runtime/RemoteClient.d.ts.map +0 -1
  1878. package/bin/service/builtins/contact/runtime/RemoteClient.js +0 -120
  1879. package/bin/service/builtins/contact/runtime/RemoteClient.js.map +0 -1
  1880. package/bin/service/builtins/contact/runtime/ShareBundle.d.ts +0 -65
  1881. package/bin/service/builtins/contact/runtime/ShareBundle.d.ts.map +0 -1
  1882. package/bin/service/builtins/contact/runtime/ShareBundle.js.map +0 -1
  1883. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts +0 -5
  1884. package/bin/service/builtins/contact/runtime/SystemProvider.d.ts.map +0 -1
  1885. package/bin/service/builtins/contact/runtime/SystemProvider.js +0 -15
  1886. package/bin/service/builtins/contact/runtime/SystemProvider.js.map +0 -1
  1887. package/bin/service/builtins/contact/runtime/Token.d.ts.map +0 -1
  1888. package/bin/service/builtins/contact/runtime/Token.js.map +0 -1
  1889. package/bin/service/builtins/contact/types/Contact.d.ts.map +0 -1
  1890. package/bin/service/builtins/contact/types/Contact.js.map +0 -1
  1891. package/bin/service/builtins/contact/types/ContactApproval.d.ts.map +0 -1
  1892. package/bin/service/builtins/contact/types/ContactApproval.js.map +0 -1
  1893. package/bin/service/builtins/contact/types/ContactChat.d.ts.map +0 -1
  1894. package/bin/service/builtins/contact/types/ContactChat.js.map +0 -1
  1895. package/bin/service/builtins/contact/types/ContactCheck.d.ts +0 -66
  1896. package/bin/service/builtins/contact/types/ContactCheck.d.ts.map +0 -1
  1897. package/bin/service/builtins/contact/types/ContactCheck.js.map +0 -1
  1898. package/bin/service/builtins/contact/types/ContactCommand.d.ts +0 -93
  1899. package/bin/service/builtins/contact/types/ContactCommand.d.ts.map +0 -1
  1900. package/bin/service/builtins/contact/types/ContactCommand.js +0 -8
  1901. package/bin/service/builtins/contact/types/ContactCommand.js.map +0 -1
  1902. package/bin/service/builtins/contact/types/ContactEndpoint.d.ts.map +0 -1
  1903. package/bin/service/builtins/contact/types/ContactEndpoint.js.map +0 -1
  1904. package/bin/service/builtins/contact/types/ContactLink.d.ts.map +0 -1
  1905. package/bin/service/builtins/contact/types/ContactLink.js.map +0 -1
  1906. package/bin/service/builtins/contact/types/ContactShare.d.ts.map +0 -1
  1907. package/bin/service/builtins/contact/types/ContactShare.js.map +0 -1
  1908. package/bin/service/builtins/memory/Action.d.ts +0 -37
  1909. package/bin/service/builtins/memory/Action.d.ts.map +0 -1
  1910. package/bin/service/builtins/memory/Action.js.map +0 -1
  1911. package/bin/service/builtins/memory/Index.d.ts +0 -9
  1912. package/bin/service/builtins/memory/Index.d.ts.map +0 -1
  1913. package/bin/service/builtins/memory/Index.js +0 -9
  1914. package/bin/service/builtins/memory/Index.js.map +0 -1
  1915. package/bin/service/builtins/memory/MemoryService.d.ts +0 -45
  1916. package/bin/service/builtins/memory/MemoryService.d.ts.map +0 -1
  1917. package/bin/service/builtins/memory/MemoryService.js +0 -242
  1918. package/bin/service/builtins/memory/MemoryService.js.map +0 -1
  1919. package/bin/service/builtins/memory/runtime/Flush.d.ts +0 -15
  1920. package/bin/service/builtins/memory/runtime/Flush.d.ts.map +0 -1
  1921. package/bin/service/builtins/memory/runtime/Flush.js.map +0 -1
  1922. package/bin/service/builtins/memory/runtime/Search.d.ts +0 -19
  1923. package/bin/service/builtins/memory/runtime/Search.d.ts.map +0 -1
  1924. package/bin/service/builtins/memory/runtime/Search.js +0 -268
  1925. package/bin/service/builtins/memory/runtime/Search.js.map +0 -1
  1926. package/bin/service/builtins/memory/runtime/Store.d.ts +0 -65
  1927. package/bin/service/builtins/memory/runtime/Store.d.ts.map +0 -1
  1928. package/bin/service/builtins/memory/runtime/Store.js +0 -142
  1929. package/bin/service/builtins/memory/runtime/Store.js.map +0 -1
  1930. package/bin/service/builtins/memory/runtime/SystemProvider.d.ts +0 -22
  1931. package/bin/service/builtins/memory/runtime/SystemProvider.d.ts.map +0 -1
  1932. package/bin/service/builtins/memory/runtime/SystemProvider.js +0 -126
  1933. package/bin/service/builtins/memory/runtime/SystemProvider.js.map +0 -1
  1934. package/bin/service/builtins/memory/runtime/Writer.d.ts +0 -23
  1935. package/bin/service/builtins/memory/runtime/Writer.d.ts.map +0 -1
  1936. package/bin/service/builtins/memory/runtime/Writer.js +0 -139
  1937. package/bin/service/builtins/memory/runtime/Writer.js.map +0 -1
  1938. package/bin/service/builtins/memory/types/Memory.d.ts.map +0 -1
  1939. package/bin/service/builtins/memory/types/Memory.js.map +0 -1
  1940. package/bin/service/builtins/schedule/ScheduleService.d.ts +0 -39
  1941. package/bin/service/builtins/schedule/ScheduleService.d.ts.map +0 -1
  1942. package/bin/service/builtins/schedule/ScheduleService.js +0 -106
  1943. package/bin/service/builtins/schedule/ScheduleService.js.map +0 -1
  1944. package/bin/service/builtins/shell/Index.d.ts +0 -9
  1945. package/bin/service/builtins/shell/Index.d.ts.map +0 -1
  1946. package/bin/service/builtins/shell/Index.js +0 -9
  1947. package/bin/service/builtins/shell/Index.js.map +0 -1
  1948. package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts +0 -91
  1949. package/bin/service/builtins/shell/ShellRuntimeTypes.d.ts.map +0 -1
  1950. package/bin/service/builtins/shell/ShellRuntimeTypes.js +0 -10
  1951. package/bin/service/builtins/shell/ShellRuntimeTypes.js.map +0 -1
  1952. package/bin/service/builtins/shell/ShellService.d.ts +0 -65
  1953. package/bin/service/builtins/shell/ShellService.d.ts.map +0 -1
  1954. package/bin/service/builtins/shell/ShellService.js +0 -138
  1955. package/bin/service/builtins/shell/ShellService.js.map +0 -1
  1956. package/bin/service/builtins/shell/runtime/Paths.d.ts.map +0 -1
  1957. package/bin/service/builtins/shell/runtime/Paths.js.map +0 -1
  1958. package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts +0 -52
  1959. package/bin/service/builtins/shell/runtime/ShellActionResponse.d.ts.map +0 -1
  1960. package/bin/service/builtins/shell/runtime/ShellActionResponse.js.map +0 -1
  1961. package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts +0 -49
  1962. package/bin/service/builtins/shell/runtime/ShellActionRuntime.d.ts.map +0 -1
  1963. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js +0 -440
  1964. package/bin/service/builtins/shell/runtime/ShellActionRuntime.js.map +0 -1
  1965. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts +0 -79
  1966. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.d.ts.map +0 -1
  1967. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js +0 -324
  1968. package/bin/service/builtins/shell/runtime/ShellActionRuntimeSupport.js.map +0 -1
  1969. package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts +0 -22
  1970. package/bin/service/builtins/shell/runtime/ShellProcessEvents.d.ts.map +0 -1
  1971. package/bin/service/builtins/shell/runtime/ShellProcessEvents.js.map +0 -1
  1972. package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts.map +0 -1
  1973. package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js +0 -75
  1974. package/bin/service/builtins/shell/runtime/ShellRuntimeEnvironment.js.map +0 -1
  1975. package/bin/service/builtins/shell/types/Shell.d.ts.map +0 -1
  1976. package/bin/service/builtins/shell/types/Shell.js.map +0 -1
  1977. package/bin/service/builtins/shell/types/ShellService.d.ts +0 -216
  1978. package/bin/service/builtins/shell/types/ShellService.d.ts.map +0 -1
  1979. package/bin/service/builtins/shell/types/ShellService.js +0 -9
  1980. package/bin/service/builtins/shell/types/ShellService.js.map +0 -1
  1981. package/bin/service/builtins/task/Action.d.ts.map +0 -1
  1982. package/bin/service/builtins/task/Action.js.map +0 -1
  1983. package/bin/service/builtins/task/Index.d.ts +0 -9
  1984. package/bin/service/builtins/task/Index.d.ts.map +0 -1
  1985. package/bin/service/builtins/task/Index.js +0 -9
  1986. package/bin/service/builtins/task/Index.js.map +0 -1
  1987. package/bin/service/builtins/task/PROMPT.d.ts +0 -7
  1988. package/bin/service/builtins/task/PROMPT.d.ts.map +0 -1
  1989. package/bin/service/builtins/task/PROMPT.js +0 -8
  1990. package/bin/service/builtins/task/PROMPT.js.map +0 -1
  1991. package/bin/service/builtins/task/Scheduler.d.ts +0 -17
  1992. package/bin/service/builtins/task/Scheduler.d.ts.map +0 -1
  1993. package/bin/service/builtins/task/Scheduler.js +0 -231
  1994. package/bin/service/builtins/task/Scheduler.js.map +0 -1
  1995. package/bin/service/builtins/task/TaskService.d.ts +0 -57
  1996. package/bin/service/builtins/task/TaskService.d.ts.map +0 -1
  1997. package/bin/service/builtins/task/TaskService.js +0 -126
  1998. package/bin/service/builtins/task/TaskService.js.map +0 -1
  1999. package/bin/service/builtins/task/runtime/CronRuntime.d.ts +0 -34
  2000. package/bin/service/builtins/task/runtime/CronRuntime.d.ts.map +0 -1
  2001. package/bin/service/builtins/task/runtime/CronRuntime.js +0 -59
  2002. package/bin/service/builtins/task/runtime/CronRuntime.js.map +0 -1
  2003. package/bin/service/builtins/task/runtime/CronTrigger.d.ts +0 -19
  2004. package/bin/service/builtins/task/runtime/CronTrigger.d.ts.map +0 -1
  2005. package/bin/service/builtins/task/runtime/CronTrigger.js +0 -93
  2006. package/bin/service/builtins/task/runtime/CronTrigger.js.map +0 -1
  2007. package/bin/service/builtins/task/runtime/Frontmatter.d.ts.map +0 -1
  2008. package/bin/service/builtins/task/runtime/Frontmatter.js.map +0 -1
  2009. package/bin/service/builtins/task/runtime/Model.d.ts +0 -73
  2010. package/bin/service/builtins/task/runtime/Model.d.ts.map +0 -1
  2011. package/bin/service/builtins/task/runtime/Model.js.map +0 -1
  2012. package/bin/service/builtins/task/runtime/Paths.d.ts.map +0 -1
  2013. package/bin/service/builtins/task/runtime/Paths.js.map +0 -1
  2014. package/bin/service/builtins/task/runtime/Runner.d.ts +0 -43
  2015. package/bin/service/builtins/task/runtime/Runner.d.ts.map +0 -1
  2016. package/bin/service/builtins/task/runtime/Runner.js.map +0 -1
  2017. package/bin/service/builtins/task/runtime/Store.d.ts +0 -89
  2018. package/bin/service/builtins/task/runtime/Store.d.ts.map +0 -1
  2019. package/bin/service/builtins/task/runtime/Store.js.map +0 -1
  2020. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts +0 -160
  2021. package/bin/service/builtins/task/runtime/TaskActionExecution.d.ts.map +0 -1
  2022. package/bin/service/builtins/task/runtime/TaskActionExecution.js +0 -192
  2023. package/bin/service/builtins/task/runtime/TaskActionExecution.js.map +0 -1
  2024. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts +0 -19
  2025. package/bin/service/builtins/task/runtime/TaskActionInput.d.ts.map +0 -1
  2026. package/bin/service/builtins/task/runtime/TaskActionInput.js +0 -218
  2027. package/bin/service/builtins/task/runtime/TaskActionInput.js.map +0 -1
  2028. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts +0 -12
  2029. package/bin/service/builtins/task/runtime/TaskPromptAssets.d.ts.map +0 -1
  2030. package/bin/service/builtins/task/runtime/TaskPromptAssets.js +0 -13
  2031. package/bin/service/builtins/task/runtime/TaskPromptAssets.js.map +0 -1
  2032. package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts +0 -189
  2033. package/bin/service/builtins/task/runtime/TaskRunArtifacts.d.ts.map +0 -1
  2034. package/bin/service/builtins/task/runtime/TaskRunArtifacts.js.map +0 -1
  2035. package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts +0 -22
  2036. package/bin/service/builtins/task/runtime/TaskRunChatDispatch.d.ts.map +0 -1
  2037. package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js +0 -66
  2038. package/bin/service/builtins/task/runtime/TaskRunChatDispatch.js.map +0 -1
  2039. package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts +0 -35
  2040. package/bin/service/builtins/task/runtime/TaskRunnerProgress.d.ts.map +0 -1
  2041. package/bin/service/builtins/task/runtime/TaskRunnerProgress.js.map +0 -1
  2042. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts +0 -80
  2043. package/bin/service/builtins/task/runtime/TaskRunnerRound.d.ts.map +0 -1
  2044. package/bin/service/builtins/task/runtime/TaskRunnerRound.js +0 -272
  2045. package/bin/service/builtins/task/runtime/TaskRunnerRound.js.map +0 -1
  2046. package/bin/service/builtins/task/runtime/TaskRunnerScript.d.ts +0 -81
  2047. package/bin/service/builtins/task/runtime/TaskRunnerScript.d.ts.map +0 -1
  2048. package/bin/service/builtins/task/runtime/TaskRunnerScript.js.map +0 -1
  2049. package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts +0 -48
  2050. package/bin/service/builtins/task/runtime/TaskRunnerSession.d.ts.map +0 -1
  2051. package/bin/service/builtins/task/runtime/TaskRunnerSession.js +0 -153
  2052. package/bin/service/builtins/task/runtime/TaskRunnerSession.js.map +0 -1
  2053. package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts +0 -186
  2054. package/bin/service/builtins/task/runtime/TaskRunnerTypes.d.ts.map +0 -1
  2055. package/bin/service/builtins/task/runtime/TaskRunnerTypes.js.map +0 -1
  2056. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts +0 -16
  2057. package/bin/service/builtins/task/runtime/TaskServiceActions.d.ts.map +0 -1
  2058. package/bin/service/builtins/task/runtime/TaskServiceActions.js +0 -167
  2059. package/bin/service/builtins/task/runtime/TaskServiceActions.js.map +0 -1
  2060. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts +0 -9
  2061. package/bin/service/builtins/task/runtime/TaskServiceSystem.d.ts.map +0 -1
  2062. package/bin/service/builtins/task/runtime/TaskServiceSystem.js +0 -9
  2063. package/bin/service/builtins/task/runtime/TaskServiceSystem.js.map +0 -1
  2064. package/bin/service/builtins/task/types/Cron.d.ts +0 -16
  2065. package/bin/service/builtins/task/types/Cron.d.ts.map +0 -1
  2066. package/bin/service/builtins/task/types/Cron.js.map +0 -1
  2067. package/bin/service/builtins/task/types/Task.d.ts.map +0 -1
  2068. package/bin/service/builtins/task/types/Task.js.map +0 -1
  2069. package/bin/service/builtins/task/types/TaskCommand.d.ts.map +0 -1
  2070. package/bin/service/builtins/task/types/TaskCommand.js.map +0 -1
  2071. package/bin/service/builtins/task/types/TaskService.d.ts +0 -52
  2072. package/bin/service/builtins/task/types/TaskService.d.ts.map +0 -1
  2073. package/bin/service/builtins/task/types/TaskService.js +0 -9
  2074. package/bin/service/builtins/task/types/TaskService.js.map +0 -1
  2075. package/bin/service/core/Manager.d.ts +0 -12
  2076. package/bin/service/core/Manager.d.ts.map +0 -1
  2077. package/bin/service/core/Manager.js +0 -11
  2078. package/bin/service/core/Manager.js.map +0 -1
  2079. package/bin/service/core/ServiceActionRunner.d.ts +0 -44
  2080. package/bin/service/core/ServiceActionRunner.d.ts.map +0 -1
  2081. package/bin/service/core/ServiceActionRunner.js +0 -213
  2082. package/bin/service/core/ServiceActionRunner.js.map +0 -1
  2083. package/bin/service/core/ServiceClassRegistry.d.ts +0 -40
  2084. package/bin/service/core/ServiceClassRegistry.d.ts.map +0 -1
  2085. package/bin/service/core/ServiceClassRegistry.js +0 -64
  2086. package/bin/service/core/ServiceClassRegistry.js.map +0 -1
  2087. package/bin/service/core/ServiceCommandRequest.d.ts +0 -36
  2088. package/bin/service/core/ServiceCommandRequest.d.ts.map +0 -1
  2089. package/bin/service/core/ServiceCommandRequest.js +0 -53
  2090. package/bin/service/core/ServiceCommandRequest.js.map +0 -1
  2091. package/bin/service/core/ServiceStateController.d.ts +0 -92
  2092. package/bin/service/core/ServiceStateController.d.ts.map +0 -1
  2093. package/bin/service/core/ServiceStateController.js +0 -248
  2094. package/bin/service/core/ServiceStateController.js.map +0 -1
  2095. package/bin/service/core/ServiceSystemProviders.d.ts +0 -27
  2096. package/bin/service/core/ServiceSystemProviders.d.ts.map +0 -1
  2097. package/bin/service/core/ServiceSystemProviders.js +0 -34
  2098. package/bin/service/core/ServiceSystemProviders.js.map +0 -1
  2099. package/bin/service/core/Services.d.ts +0 -18
  2100. package/bin/service/core/Services.d.ts.map +0 -1
  2101. package/bin/service/core/Services.js +0 -25
  2102. package/bin/service/core/Services.js.map +0 -1
  2103. package/bin/service/core/schedule/Executor.d.ts +0 -17
  2104. package/bin/service/core/schedule/Executor.d.ts.map +0 -1
  2105. package/bin/service/core/schedule/Executor.js +0 -48
  2106. package/bin/service/core/schedule/Executor.js.map +0 -1
  2107. package/bin/service/core/schedule/Store.d.ts +0 -91
  2108. package/bin/service/core/schedule/Store.d.ts.map +0 -1
  2109. package/bin/service/core/schedule/Store.js +0 -284
  2110. package/bin/service/core/schedule/Store.js.map +0 -1
  2111. package/bin/service/core/schedule/Time.d.ts +0 -31
  2112. package/bin/service/core/schedule/Time.d.ts.map +0 -1
  2113. package/bin/service/core/schedule/Time.js +0 -107
  2114. package/bin/service/core/schedule/Time.js.map +0 -1
  2115. package/bin/service/types/Service.d.ts +0 -183
  2116. package/bin/service/types/Service.d.ts.map +0 -1
  2117. package/bin/service/types/Service.js +0 -10
  2118. package/bin/service/types/Service.js.map +0 -1
  2119. package/bin/service/types/ServiceSchedule.d.ts +0 -114
  2120. package/bin/service/types/ServiceSchedule.d.ts.map +0 -1
  2121. package/bin/service/types/ServiceSchedule.js +0 -9
  2122. package/bin/service/types/ServiceSchedule.js.map +0 -1
  2123. package/bin/service/types/ServiceState.d.ts +0 -104
  2124. package/bin/service/types/ServiceState.d.ts.map +0 -1
  2125. package/bin/service/types/ServiceState.js +0 -9
  2126. package/bin/service/types/ServiceState.js.map +0 -1
  2127. package/bin/service/types/Services.d.ts +0 -94
  2128. package/bin/service/types/Services.d.ts.map +0 -1
  2129. package/bin/service/types/Services.js +0 -9
  2130. package/bin/service/types/Services.js.map +0 -1
  2131. package/bin/session/Executor.d.ts +0 -172
  2132. package/bin/session/Executor.d.ts.map +0 -1
  2133. package/bin/session/Executor.js.map +0 -1
  2134. package/bin/session/SessionRunScope.d.ts +0 -84
  2135. package/bin/session/SessionRunScope.d.ts.map +0 -1
  2136. package/bin/session/SessionRunScope.js +0 -82
  2137. package/bin/session/SessionRunScope.js.map +0 -1
  2138. package/bin/session/composer/compaction/SessionCompactionComposer.d.ts +0 -55
  2139. package/bin/session/composer/compaction/SessionCompactionComposer.d.ts.map +0 -1
  2140. package/bin/session/composer/compaction/SessionCompactionComposer.js.map +0 -1
  2141. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts.map +0 -1
  2142. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.js.map +0 -1
  2143. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts +0 -46
  2144. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.d.ts.map +0 -1
  2145. package/bin/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js.map +0 -1
  2146. package/bin/session/composer/context/LocalSessionContextComposer.d.ts +0 -48
  2147. package/bin/session/composer/context/LocalSessionContextComposer.d.ts.map +0 -1
  2148. package/bin/session/composer/context/LocalSessionContextComposer.js.map +0 -1
  2149. package/bin/session/composer/context/SessionContextComposer.d.ts +0 -62
  2150. package/bin/session/composer/context/SessionContextComposer.d.ts.map +0 -1
  2151. package/bin/session/composer/context/SessionContextComposer.js.map +0 -1
  2152. package/bin/session/composer/history/SessionHistoryComposer.d.ts +0 -54
  2153. package/bin/session/composer/history/SessionHistoryComposer.d.ts.map +0 -1
  2154. package/bin/session/composer/history/SessionHistoryComposer.js.map +0 -1
  2155. package/bin/session/composer/history/SessionHistoryWriter.d.ts +0 -56
  2156. package/bin/session/composer/history/SessionHistoryWriter.d.ts.map +0 -1
  2157. package/bin/session/composer/history/SessionHistoryWriter.js.map +0 -1
  2158. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts +0 -35
  2159. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.d.ts.map +0 -1
  2160. package/bin/session/composer/history/jsonl/JsonlSessionHistoryComposer.js.map +0 -1
  2161. package/bin/session/composer/system/SessionSystemComposer.d.ts.map +0 -1
  2162. package/bin/session/composer/system/SessionSystemComposer.js.map +0 -1
  2163. package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts +0 -42
  2164. package/bin/session/composer/system/default/DefaultSessionSystemComposer.d.ts.map +0 -1
  2165. package/bin/session/composer/system/default/DefaultSessionSystemComposer.js.map +0 -1
  2166. package/bin/session/composer/system/default/InitPromptAssets.d.ts.map +0 -1
  2167. package/bin/session/composer/system/default/InitPromptAssets.js.map +0 -1
  2168. package/bin/session/composer/system/default/InitPrompts.d.ts.map +0 -1
  2169. package/bin/session/composer/system/default/InitPrompts.js.map +0 -1
  2170. package/bin/session/composer/system/default/PromptRenderer.d.ts.map +0 -1
  2171. package/bin/session/composer/system/default/PromptRenderer.js.map +0 -1
  2172. package/bin/session/composer/system/default/StaticPromptCatalog.d.ts.map +0 -1
  2173. package/bin/session/composer/system/default/StaticPromptCatalog.js.map +0 -1
  2174. package/bin/session/composer/system/default/SystemDomain.d.ts +0 -169
  2175. package/bin/session/composer/system/default/SystemDomain.d.ts.map +0 -1
  2176. package/bin/session/composer/system/default/SystemDomain.js +0 -217
  2177. package/bin/session/composer/system/default/SystemDomain.js.map +0 -1
  2178. package/bin/session/composer/system/default/SystemPromptAssets.d.ts +0 -20
  2179. package/bin/session/composer/system/default/SystemPromptAssets.d.ts.map +0 -1
  2180. package/bin/session/composer/system/default/SystemPromptAssets.js +0 -23
  2181. package/bin/session/composer/system/default/SystemPromptAssets.js.map +0 -1
  2182. package/bin/session/composer/system/default/assets/core.prompt.d.ts +0 -7
  2183. package/bin/session/composer/system/default/assets/core.prompt.d.ts.map +0 -1
  2184. package/bin/session/composer/system/default/assets/core.prompt.js +0 -8
  2185. package/bin/session/composer/system/default/assets/core.prompt.js.map +0 -1
  2186. package/bin/session/composer/system/default/assets/init/PROFILE.md.d.ts.map +0 -1
  2187. package/bin/session/composer/system/default/assets/init/PROFILE.md.js +0 -8
  2188. package/bin/session/composer/system/default/assets/init/PROFILE.md.js.map +0 -1
  2189. package/bin/session/composer/system/default/assets/init/SOUL.md.d.ts.map +0 -1
  2190. package/bin/session/composer/system/default/assets/init/SOUL.md.js +0 -8
  2191. package/bin/session/composer/system/default/assets/init/SOUL.md.js.map +0 -1
  2192. package/bin/session/composer/system/default/assets/service.prompt.d.ts +0 -7
  2193. package/bin/session/composer/system/default/assets/service.prompt.d.ts.map +0 -1
  2194. package/bin/session/composer/system/default/assets/service.prompt.js +0 -8
  2195. package/bin/session/composer/system/default/assets/service.prompt.js.map +0 -1
  2196. package/bin/session/composer/system/default/assets/task.prompt.d.ts.map +0 -1
  2197. package/bin/session/composer/system/default/assets/task.prompt.js +0 -8
  2198. package/bin/session/composer/system/default/assets/task.prompt.js.map +0 -1
  2199. package/bin/session/composer/system/default/variables/GeoContext.d.ts.map +0 -1
  2200. package/bin/session/composer/system/default/variables/GeoContext.js.map +0 -1
  2201. package/bin/session/composer/system/default/variables/PromptTypes.d.ts.map +0 -1
  2202. package/bin/session/composer/system/default/variables/PromptTypes.js.map +0 -1
  2203. package/bin/session/composer/system/default/variables/VariableReplacer.d.ts.map +0 -1
  2204. package/bin/session/composer/system/default/variables/VariableReplacer.js.map +0 -1
  2205. package/bin/session/core-engine/CoreEngineError.d.ts.map +0 -1
  2206. package/bin/session/core-engine/CoreEngineError.js.map +0 -1
  2207. package/bin/session/core-engine/CoreEngineLoopDecision.d.ts +0 -27
  2208. package/bin/session/core-engine/CoreEngineLoopDecision.d.ts.map +0 -1
  2209. package/bin/session/core-engine/CoreEngineLoopDecision.js.map +0 -1
  2210. package/bin/session/core-engine/CoreEngineMessageState.d.ts +0 -63
  2211. package/bin/session/core-engine/CoreEngineMessageState.d.ts.map +0 -1
  2212. package/bin/session/core-engine/CoreEngineMessageState.js.map +0 -1
  2213. package/bin/session/core-engine/CoreEngineSignals.d.ts +0 -72
  2214. package/bin/session/core-engine/CoreEngineSignals.d.ts.map +0 -1
  2215. package/bin/session/core-engine/CoreEngineSignals.js.map +0 -1
  2216. package/bin/session/core-engine/CoreEngineUiStreamCollector.d.ts +0 -33
  2217. package/bin/session/core-engine/CoreEngineUiStreamCollector.d.ts.map +0 -1
  2218. package/bin/session/core-engine/CoreEngineUiStreamCollector.js.map +0 -1
  2219. package/bin/session/ids/resolveSessionId.d.ts.map +0 -1
  2220. package/bin/session/ids/resolveSessionId.js.map +0 -1
  2221. package/bin/session/messages/SessionAttachmentMapper.d.ts +0 -14
  2222. package/bin/session/messages/SessionAttachmentMapper.d.ts.map +0 -1
  2223. package/bin/session/messages/SessionAttachmentMapper.js +0 -145
  2224. package/bin/session/messages/SessionAttachmentMapper.js.map +0 -1
  2225. package/bin/session/messages/SessionMessageCodec.d.ts +0 -41
  2226. package/bin/session/messages/SessionMessageCodec.d.ts.map +0 -1
  2227. package/bin/session/messages/SessionMessageCodec.js.map +0 -1
  2228. package/bin/session/messages/SessionMessageLog.d.ts +0 -19
  2229. package/bin/session/messages/SessionMessageLog.d.ts.map +0 -1
  2230. package/bin/session/messages/SessionMessageLog.js.map +0 -1
  2231. package/bin/session/messages/SessionStepEventMapper.d.ts +0 -20
  2232. package/bin/session/messages/SessionStepEventMapper.d.ts.map +0 -1
  2233. package/bin/session/messages/SessionStepEventMapper.js.map +0 -1
  2234. package/bin/session/store/history/SessionHistoryStore.d.ts +0 -119
  2235. package/bin/session/store/history/SessionHistoryStore.d.ts.map +0 -1
  2236. package/bin/session/store/history/SessionHistoryStore.js.map +0 -1
  2237. package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.d.ts +0 -76
  2238. package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.d.ts.map +0 -1
  2239. package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.js +0 -374
  2240. package/bin/session/store/history/jsonl/JsonlSessionHistoryStore.js.map +0 -1
  2241. package/bin/session/tools/shell/ShellToolBridge.d.ts +0 -79
  2242. package/bin/session/tools/shell/ShellToolBridge.d.ts.map +0 -1
  2243. package/bin/session/tools/shell/ShellToolBridge.js +0 -288
  2244. package/bin/session/tools/shell/ShellToolBridge.js.map +0 -1
  2245. package/bin/session/tools/shell/ShellToolDefinition.d.ts +0 -114
  2246. package/bin/session/tools/shell/ShellToolDefinition.d.ts.map +0 -1
  2247. package/bin/session/tools/shell/ShellToolDefinition.js +0 -359
  2248. package/bin/session/tools/shell/ShellToolDefinition.js.map +0 -1
  2249. package/bin/session/tools/shell/ShellToolFormatting.d.ts +0 -26
  2250. package/bin/session/tools/shell/ShellToolFormatting.d.ts.map +0 -1
  2251. package/bin/session/tools/shell/ShellToolFormatting.js +0 -74
  2252. package/bin/session/tools/shell/ShellToolFormatting.js.map +0 -1
  2253. package/bin/session/tools/shell/ShellToolSchemas.d.ts.map +0 -1
  2254. package/bin/session/tools/shell/ShellToolSchemas.js +0 -113
  2255. package/bin/session/tools/shell/ShellToolSchemas.js.map +0 -1
  2256. package/bin/session/types/SessionExecutor.d.ts +0 -18
  2257. package/bin/session/types/SessionExecutor.d.ts.map +0 -1
  2258. package/bin/session/types/SessionExecutor.js.map +0 -1
  2259. package/bin/session/types/SessionHistoryMeta.d.ts +0 -45
  2260. package/bin/session/types/SessionHistoryMeta.d.ts.map +0 -1
  2261. package/bin/session/types/SessionHistoryMeta.js +0 -9
  2262. package/bin/session/types/SessionHistoryMeta.js.map +0 -1
  2263. package/bin/session/types/SessionHistoryPaths.d.ts +0 -30
  2264. package/bin/session/types/SessionHistoryPaths.d.ts.map +0 -1
  2265. package/bin/session/types/SessionHistoryPaths.js.map +0 -1
  2266. package/bin/session/types/SessionLoop.d.ts.map +0 -1
  2267. package/bin/session/types/SessionLoop.js.map +0 -1
  2268. package/bin/session/types/SessionMessages.d.ts +0 -83
  2269. package/bin/session/types/SessionMessages.d.ts.map +0 -1
  2270. package/bin/session/types/SessionMessages.js.map +0 -1
  2271. package/bin/session/types/SessionPrompts.d.ts.map +0 -1
  2272. package/bin/session/types/SessionPrompts.js.map +0 -1
  2273. package/bin/session/types/SessionRun.d.ts +0 -112
  2274. package/bin/session/types/SessionRun.d.ts.map +0 -1
  2275. package/bin/session/types/SessionRun.js.map +0 -1
  2276. package/bin/types/config/ModelBinding.d.ts +0 -19
  2277. package/bin/types/config/ModelBinding.d.ts.map +0 -1
  2278. package/bin/types/config/ModelBinding.js +0 -2
  2279. package/bin/types/config/ModelBinding.js.map +0 -1
  2280. package/bin/utils/cli/Checker.d.ts +0 -8
  2281. package/bin/utils/cli/Checker.d.ts.map +0 -1
  2282. package/bin/utils/cli/Checker.js +0 -18
  2283. package/bin/utils/cli/Checker.js.map +0 -1
  2284. package/bin/utils/logger/Fetch.d.ts +0 -14
  2285. package/bin/utils/logger/Fetch.d.ts.map +0 -1
  2286. package/bin/utils/logger/Fetch.js +0 -68
  2287. package/bin/utils/logger/Fetch.js.map +0 -1
  2288. package/src/plugin/builtins/voice/Plugin.ts +0 -450
  2289. package/src/plugin/core/PluginManager.ts +0 -66
  2290. package/src/plugin/core/Plugins.ts +0 -39
  2291. package/src/runtime/host/PluginRuntime.ts +0 -42
  2292. package/src/runtime/server/http/auth/AuthError.ts +0 -31
  2293. package/src/runtime/server/http/auth/PasswordHasher.ts +0 -37
  2294. package/src/runtime/server/http/auth/TokenService.ts +0 -36
  2295. package/src/runtime/server/http/services/services.ts +0 -98
  2296. package/src/sdk/session/ServicePort.ts +0 -130
  2297. package/src/service/builtins/BaseService.ts +0 -97
  2298. package/src/service/builtins/README.md +0 -121
  2299. package/src/service/builtins/chat/Action.ts +0 -477
  2300. package/src/service/builtins/chat/ChatService.ts +0 -255
  2301. package/src/service/builtins/chat/ChatServiceTypes.ts +0 -164
  2302. package/src/service/builtins/chat/Index.ts +0 -9
  2303. package/src/service/builtins/chat/PROMPT.direct.ts +0 -9
  2304. package/src/service/builtins/chat/PROMPT.direct.ts.txt +0 -55
  2305. package/src/service/builtins/chat/accounts/ChannelAccountService.ts +0 -297
  2306. package/src/service/builtins/chat/channels/BaseChatChannel.ts +0 -450
  2307. package/src/service/builtins/chat/channels/BaseChatChannelQueue.ts +0 -321
  2308. package/src/service/builtins/chat/channels/BaseChatChannelSupport.ts +0 -321
  2309. package/src/service/builtins/chat/channels/BotInfoProvider.ts +0 -49
  2310. package/src/service/builtins/chat/channels/Configuration.ts +0 -35
  2311. package/src/service/builtins/chat/channels/ConfigurationRegistry.ts +0 -43
  2312. package/src/service/builtins/chat/channels/feishu/BotInfo.ts +0 -199
  2313. package/src/service/builtins/chat/channels/feishu/Configuration.ts +0 -65
  2314. package/src/service/builtins/chat/channels/feishu/Feishu.ts +0 -467
  2315. package/src/service/builtins/chat/channels/feishu/FeishuInbound.ts +0 -51
  2316. package/src/service/builtins/chat/channels/feishu/FeishuMessageHandler.ts +0 -483
  2317. package/src/service/builtins/chat/channels/feishu/FeishuPlatformClient.ts +0 -421
  2318. package/src/service/builtins/chat/channels/feishu/FeishuPlatformLookup.ts +0 -523
  2319. package/src/service/builtins/chat/channels/feishu/FeishuPlatformMessaging.ts +0 -219
  2320. package/src/service/builtins/chat/channels/feishu/InboundAttachment.ts +0 -261
  2321. package/src/service/builtins/chat/channels/feishu/PROMPT.direct.ts +0 -9
  2322. package/src/service/builtins/chat/channels/feishu/PostMessage.ts +0 -492
  2323. package/src/service/builtins/chat/channels/feishu/ReplyContext.ts +0 -68
  2324. package/src/service/builtins/chat/channels/feishu/Shared.ts +0 -94
  2325. package/src/service/builtins/chat/channels/feishu/types/FeishuChannel.ts +0 -131
  2326. package/src/service/builtins/chat/channels/qq/BotInfo.ts +0 -137
  2327. package/src/service/builtins/chat/channels/qq/Configuration.ts +0 -64
  2328. package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts +0 -9
  2329. package/src/service/builtins/chat/channels/qq/PROMPT.direct.ts.txt +0 -11
  2330. package/src/service/builtins/chat/channels/qq/QQ.ts +0 -398
  2331. package/src/service/builtins/chat/channels/qq/QQEventCapture.ts +0 -88
  2332. package/src/service/builtins/chat/channels/qq/QQGatewayAuth.ts +0 -318
  2333. package/src/service/builtins/chat/channels/qq/QQGatewayClient.ts +0 -467
  2334. package/src/service/builtins/chat/channels/qq/QQGatewayConnection.ts +0 -175
  2335. package/src/service/builtins/chat/channels/qq/QQGatewayHeartbeat.ts +0 -114
  2336. package/src/service/builtins/chat/channels/qq/QQGatewayProtocol.ts +0 -176
  2337. package/src/service/builtins/chat/channels/qq/QQGatewaySend.ts +0 -258
  2338. package/src/service/builtins/chat/channels/qq/QQGatewaySupport.ts +0 -159
  2339. package/src/service/builtins/chat/channels/qq/QQInbound.ts +0 -262
  2340. package/src/service/builtins/chat/channels/qq/QQInboundDedupe.ts +0 -126
  2341. package/src/service/builtins/chat/channels/qq/QQMessageHandler.ts +0 -465
  2342. package/src/service/builtins/chat/channels/qq/QQSupport.ts +0 -263
  2343. package/src/service/builtins/chat/channels/qq/VoiceInput.ts +0 -381
  2344. package/src/service/builtins/chat/channels/qq/types/QqChannel.ts +0 -501
  2345. package/src/service/builtins/chat/channels/telegram/Bot.ts +0 -357
  2346. package/src/service/builtins/chat/channels/telegram/BotInfo.ts +0 -92
  2347. package/src/service/builtins/chat/channels/telegram/Configuration.ts +0 -65
  2348. package/src/service/builtins/chat/channels/telegram/PROMPT.direct.ts +0 -9
  2349. package/src/service/builtins/chat/channels/telegram/ReplyContext.ts +0 -76
  2350. package/src/service/builtins/chat/channels/telegram/Shared.ts +0 -404
  2351. package/src/service/builtins/chat/channels/telegram/TelegramMessageHandler.ts +0 -485
  2352. package/src/service/builtins/chat/channels/telegram/TelegramPendingUpdates.ts +0 -204
  2353. package/src/service/builtins/chat/channels/telegram/TelegramPlatformClient.ts +0 -482
  2354. package/src/service/builtins/chat/runtime/ChannelContextStore.ts +0 -395
  2355. package/src/service/builtins/chat/runtime/ChatActionExecution.ts +0 -362
  2356. package/src/service/builtins/chat/runtime/ChatActionInput.ts +0 -167
  2357. package/src/service/builtins/chat/runtime/ChatChannelActions.ts +0 -307
  2358. package/src/service/builtins/chat/runtime/ChatChannelConfig.ts +0 -330
  2359. package/src/service/builtins/chat/runtime/ChatChannelCore.ts +0 -145
  2360. package/src/service/builtins/chat/runtime/ChatChannelFacade.ts +0 -23
  2361. package/src/service/builtins/chat/runtime/ChatChannelLifecycle.ts +0 -169
  2362. package/src/service/builtins/chat/runtime/ChatHistoryStore.ts +0 -289
  2363. package/src/service/builtins/chat/runtime/ChatIngressStore.ts +0 -88
  2364. package/src/service/builtins/chat/runtime/ChatMessageMarkup.ts +0 -263
  2365. package/src/service/builtins/chat/runtime/ChatMetaStore.ts +0 -186
  2366. package/src/service/builtins/chat/runtime/ChatPromptAssets.ts +0 -32
  2367. package/src/service/builtins/chat/runtime/ChatQueue.ts +0 -77
  2368. package/src/service/builtins/chat/runtime/ChatQueueSessionBridge.ts +0 -122
  2369. package/src/service/builtins/chat/runtime/ChatQueueStore.ts +0 -185
  2370. package/src/service/builtins/chat/runtime/ChatQueueWorker.ts +0 -504
  2371. package/src/service/builtins/chat/runtime/ChatQueueWorkerSupport.ts +0 -137
  2372. package/src/service/builtins/chat/runtime/ChatSendActionInput.ts +0 -255
  2373. package/src/service/builtins/chat/runtime/ChatSendMetadata.ts +0 -170
  2374. package/src/service/builtins/chat/runtime/ChatSendRegistry.ts +0 -43
  2375. package/src/service/builtins/chat/runtime/ChatServiceActions.ts +0 -367
  2376. package/src/service/builtins/chat/runtime/ChatServiceSystem.ts +0 -70
  2377. package/src/service/builtins/chat/runtime/ChatSession.ts +0 -156
  2378. package/src/service/builtins/chat/runtime/ChatSessionContextComposer.ts +0 -106
  2379. package/src/service/builtins/chat/runtime/ChatSessionDelete.ts +0 -95
  2380. package/src/service/builtins/chat/runtime/ChatSessionTypes.ts +0 -32
  2381. package/src/service/builtins/chat/runtime/ChatkeySend.ts +0 -187
  2382. package/src/service/builtins/chat/runtime/DirectDispatchParser.ts +0 -158
  2383. package/src/service/builtins/chat/runtime/EnqueueDispatch.ts +0 -49
  2384. package/src/service/builtins/chat/runtime/InboundAugment.ts +0 -63
  2385. package/src/service/builtins/chat/runtime/PluginDispatch.ts +0 -89
  2386. package/src/service/builtins/chat/runtime/PluginPoints.ts +0 -78
  2387. package/src/service/builtins/chat/runtime/QueuedUserMessage.ts +0 -43
  2388. package/src/service/builtins/chat/runtime/ReplyContextFormatter.ts +0 -85
  2389. package/src/service/builtins/chat/runtime/ReplyDispatch.ts +0 -78
  2390. package/src/service/builtins/chat/runtime/SystemPrompt.ts +0 -84
  2391. package/src/service/builtins/chat/runtime/UIMessageTransformer.ts +0 -141
  2392. package/src/service/builtins/chat/runtime/UserVisibleText.ts +0 -84
  2393. package/src/service/builtins/chat/types/BotInfo.ts +0 -101
  2394. package/src/service/builtins/chat/types/ChannelConfiguration.ts +0 -161
  2395. package/src/service/builtins/chat/types/ChannelContext.ts +0 -110
  2396. package/src/service/builtins/chat/types/ChannelStatus.ts +0 -98
  2397. package/src/service/builtins/chat/types/ChatHistory.ts +0 -42
  2398. package/src/service/builtins/chat/types/ChatMessageMarkup.ts +0 -168
  2399. package/src/service/builtins/chat/types/ChatMeta.ts +0 -35
  2400. package/src/service/builtins/chat/types/ChatPlugin.ts +0 -251
  2401. package/src/service/builtins/chat/types/ChatPromptContext.ts +0 -139
  2402. package/src/service/builtins/chat/types/ChatQueue.ts +0 -49
  2403. package/src/service/builtins/chat/types/ChatRuntime.ts +0 -33
  2404. package/src/service/builtins/chat/types/ChatService.ts +0 -165
  2405. package/src/service/builtins/chat/types/DirectDispatch.ts +0 -133
  2406. package/src/service/builtins/chat/types/FeishuInboundAttachment.ts +0 -138
  2407. package/src/service/builtins/contact/Action.ts +0 -316
  2408. package/src/service/builtins/contact/ContactService.ts +0 -505
  2409. package/src/service/builtins/contact/Index.ts +0 -8
  2410. package/src/service/builtins/contact/PROMPT.ts +0 -9
  2411. package/src/service/builtins/contact/PROMPT.ts.txt +0 -25
  2412. package/src/service/builtins/contact/runtime/ApproveCallback.ts +0 -97
  2413. package/src/service/builtins/contact/runtime/ChatRuntime.ts +0 -82
  2414. package/src/service/builtins/contact/runtime/ContactPromptAssets.ts +0 -14
  2415. package/src/service/builtins/contact/runtime/ContactStore.ts +0 -299
  2416. package/src/service/builtins/contact/runtime/EndpointNotice.ts +0 -125
  2417. package/src/service/builtins/contact/runtime/InboxStore.ts +0 -178
  2418. package/src/service/builtins/contact/runtime/LinkApproval.ts +0 -387
  2419. package/src/service/builtins/contact/runtime/LinkCode.ts +0 -70
  2420. package/src/service/builtins/contact/runtime/LinkStore.ts +0 -50
  2421. package/src/service/builtins/contact/runtime/Paths.ts +0 -139
  2422. package/src/service/builtins/contact/runtime/RemoteClient.ts +0 -158
  2423. package/src/service/builtins/contact/runtime/ShareBundle.ts +0 -286
  2424. package/src/service/builtins/contact/runtime/SystemProvider.ts +0 -15
  2425. package/src/service/builtins/contact/types/ContactCheck.ts +0 -67
  2426. package/src/service/builtins/contact/types/ContactCommand.ts +0 -98
  2427. package/src/service/builtins/memory/Action.ts +0 -147
  2428. package/src/service/builtins/memory/Index.ts +0 -9
  2429. package/src/service/builtins/memory/MemoryService.ts +0 -270
  2430. package/src/service/builtins/memory/runtime/Flush.ts +0 -83
  2431. package/src/service/builtins/memory/runtime/Search.ts +0 -330
  2432. package/src/service/builtins/memory/runtime/Store.ts +0 -198
  2433. package/src/service/builtins/memory/runtime/SystemProvider.ts +0 -145
  2434. package/src/service/builtins/memory/runtime/Writer.ts +0 -173
  2435. package/src/service/builtins/schedule/ScheduleService.ts +0 -131
  2436. package/src/service/builtins/shell/Index.ts +0 -9
  2437. package/src/service/builtins/shell/ShellRuntimeTypes.ts +0 -94
  2438. package/src/service/builtins/shell/ShellService.ts +0 -199
  2439. package/src/service/builtins/shell/runtime/ShellActionResponse.ts +0 -135
  2440. package/src/service/builtins/shell/runtime/ShellActionRuntime.ts +0 -544
  2441. package/src/service/builtins/shell/runtime/ShellActionRuntimeSupport.ts +0 -398
  2442. package/src/service/builtins/shell/runtime/ShellProcessEvents.ts +0 -65
  2443. package/src/service/builtins/shell/runtime/ShellRuntimeEnvironment.ts +0 -75
  2444. package/src/service/builtins/shell/types/ShellService.ts +0 -233
  2445. package/src/service/builtins/task/Index.ts +0 -9
  2446. package/src/service/builtins/task/PROMPT.ts +0 -9
  2447. package/src/service/builtins/task/PROMPT.ts.txt +0 -237
  2448. package/src/service/builtins/task/Scheduler.ts +0 -245
  2449. package/src/service/builtins/task/TaskService.ts +0 -167
  2450. package/src/service/builtins/task/runtime/CronRuntime.ts +0 -73
  2451. package/src/service/builtins/task/runtime/CronTrigger.ts +0 -110
  2452. package/src/service/builtins/task/runtime/Model.ts +0 -347
  2453. package/src/service/builtins/task/runtime/Runner.ts +0 -519
  2454. package/src/service/builtins/task/runtime/Store.ts +0 -253
  2455. package/src/service/builtins/task/runtime/TaskActionExecution.ts +0 -276
  2456. package/src/service/builtins/task/runtime/TaskActionInput.ts +0 -281
  2457. package/src/service/builtins/task/runtime/TaskPromptAssets.ts +0 -14
  2458. package/src/service/builtins/task/runtime/TaskRunArtifacts.ts +0 -493
  2459. package/src/service/builtins/task/runtime/TaskRunChatDispatch.ts +0 -81
  2460. package/src/service/builtins/task/runtime/TaskRunnerProgress.ts +0 -112
  2461. package/src/service/builtins/task/runtime/TaskRunnerRound.ts +0 -337
  2462. package/src/service/builtins/task/runtime/TaskRunnerScript.ts +0 -175
  2463. package/src/service/builtins/task/runtime/TaskRunnerSession.ts +0 -190
  2464. package/src/service/builtins/task/runtime/TaskRunnerTypes.ts +0 -199
  2465. package/src/service/builtins/task/runtime/TaskServiceActions.ts +0 -214
  2466. package/src/service/builtins/task/runtime/TaskServiceSystem.ts +0 -8
  2467. package/src/service/builtins/task/types/Cron.ts +0 -16
  2468. package/src/service/builtins/task/types/TaskService.ts +0 -55
  2469. package/src/service/core/Manager.ts +0 -24
  2470. package/src/service/core/ServiceActionRunner.ts +0 -274
  2471. package/src/service/core/ServiceClassRegistry.ts +0 -77
  2472. package/src/service/core/ServiceCommandRequest.ts +0 -93
  2473. package/src/service/core/ServiceStateController.ts +0 -341
  2474. package/src/service/core/ServiceSystemProviders.ts +0 -50
  2475. package/src/service/core/Services.ts +0 -35
  2476. package/src/service/core/schedule/Executor.ts +0 -54
  2477. package/src/service/core/schedule/Store.ts +0 -358
  2478. package/src/service/core/schedule/Time.ts +0 -131
  2479. package/src/service/types/Service.ts +0 -200
  2480. package/src/service/types/ServiceSchedule.ts +0 -134
  2481. package/src/service/types/ServiceState.ts +0 -112
  2482. package/src/service/types/Services.ts +0 -100
  2483. package/src/session/Executor.ts +0 -732
  2484. package/src/session/README.md +0 -108
  2485. package/src/session/SessionRunScope.ts +0 -146
  2486. package/src/session/composer/compaction/SessionCompactionComposer.ts +0 -62
  2487. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionComposer.ts +0 -101
  2488. package/src/session/composer/compaction/jsonl/JsonlSessionCompactionExecutor.ts +0 -261
  2489. package/src/session/composer/context/LocalSessionContextComposer.ts +0 -168
  2490. package/src/session/composer/context/SessionContextComposer.ts +0 -70
  2491. package/src/session/composer/history/SessionHistoryComposer.ts +0 -62
  2492. package/src/session/composer/history/SessionHistoryWriter.ts +0 -131
  2493. package/src/session/composer/history/jsonl/JsonlSessionHistoryComposer.ts +0 -126
  2494. package/src/session/composer/system/default/DefaultSessionSystemComposer.ts +0 -77
  2495. package/src/session/composer/system/default/InitPromptAssets.ts +0 -20
  2496. package/src/session/composer/system/default/InitPrompts.ts +0 -11
  2497. package/src/session/composer/system/default/PromptRenderer.ts +0 -52
  2498. package/src/session/composer/system/default/StaticPromptCatalog.ts +0 -287
  2499. package/src/session/composer/system/default/SystemDomain.ts +0 -373
  2500. package/src/session/composer/system/default/SystemPromptAssets.ts +0 -26
  2501. package/src/session/composer/system/default/assets/core.prompt.ts +0 -9
  2502. package/src/session/composer/system/default/assets/core.prompt.ts.txt +0 -39
  2503. package/src/session/composer/system/default/assets/init/PROFILE.md.ts +0 -9
  2504. package/src/session/composer/system/default/assets/init/SOUL.md.ts +0 -9
  2505. package/src/session/composer/system/default/assets/service.prompt.ts +0 -9
  2506. package/src/session/composer/system/default/assets/service.prompt.ts.txt +0 -29
  2507. package/src/session/composer/system/default/assets/task.prompt.ts +0 -9
  2508. package/src/session/composer/system/default/variables/GeoContext.ts +0 -180
  2509. package/src/session/composer/system/default/variables/VariableReplacer.ts +0 -154
  2510. package/src/session/core-engine/CoreEngineLoopDecision.ts +0 -80
  2511. package/src/session/core-engine/CoreEngineMessageState.ts +0 -133
  2512. package/src/session/core-engine/CoreEngineSignals.ts +0 -416
  2513. package/src/session/core-engine/CoreEngineUiStreamCollector.ts +0 -96
  2514. package/src/session/messages/SessionAttachmentMapper.ts +0 -155
  2515. package/src/session/messages/SessionMessageCodec.ts +0 -116
  2516. package/src/session/messages/SessionMessageLog.ts +0 -39
  2517. package/src/session/messages/SessionStepEventMapper.ts +0 -233
  2518. package/src/session/store/history/SessionHistoryStore.ts +0 -145
  2519. package/src/session/store/history/jsonl/JsonlSessionHistoryStore.ts +0 -465
  2520. package/src/session/tools/shell/ShellToolBridge.ts +0 -378
  2521. package/src/session/tools/shell/ShellToolDefinition.ts +0 -509
  2522. package/src/session/tools/shell/ShellToolFormatting.ts +0 -83
  2523. package/src/session/tools/shell/ShellToolSchemas.ts +0 -120
  2524. package/src/session/types/SessionExecutor.ts +0 -33
  2525. package/src/session/types/SessionHistoryMeta.ts +0 -46
  2526. package/src/session/types/SessionHistoryPaths.ts +0 -33
  2527. package/src/session/types/SessionMessages.ts +0 -90
  2528. package/src/session/types/SessionRun.ts +0 -132
  2529. package/src/types/config/ModelBinding.ts +0 -18
  2530. package/src/utils/cli/Checker.ts +0 -19
  2531. package/src/utils/logger/Fetch.ts +0 -93
  2532. /package/bin/{session → executor}/Executor.js +0 -0
  2533. /package/bin/{session → executor}/composer/compaction/SessionCompactionComposer.js +0 -0
  2534. /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionComposer.d.ts +0 -0
  2535. /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionComposer.js +0 -0
  2536. /package/bin/{session → executor}/composer/compaction/jsonl/JsonlSessionCompactionExecutor.js +0 -0
  2537. /package/bin/{session → executor}/composer/context/LocalSessionContextComposer.js +0 -0
  2538. /package/bin/{session → executor}/composer/context/SessionContextComposer.js +0 -0
  2539. /package/bin/{session → executor}/composer/history/SessionHistoryComposer.js +0 -0
  2540. /package/bin/{session → executor}/composer/history/SessionHistoryWriter.js +0 -0
  2541. /package/bin/{session → executor}/composer/history/jsonl/JsonlSessionHistoryComposer.js +0 -0
  2542. /package/bin/{session → executor}/composer/system/SessionSystemComposer.d.ts +0 -0
  2543. /package/bin/{session → executor}/composer/system/SessionSystemComposer.js +0 -0
  2544. /package/bin/{session → executor}/composer/system/default/DefaultSessionSystemComposer.js +0 -0
  2545. /package/bin/{session → executor}/composer/system/default/InitPromptAssets.d.ts +0 -0
  2546. /package/bin/{session → executor}/composer/system/default/InitPromptAssets.js +0 -0
  2547. /package/bin/{session → executor}/composer/system/default/InitPrompts.d.ts +0 -0
  2548. /package/bin/{session → executor}/composer/system/default/InitPrompts.js +0 -0
  2549. /package/bin/{session → executor}/composer/system/default/PromptRenderer.d.ts +0 -0
  2550. /package/bin/{session → executor}/composer/system/default/PromptRenderer.js +0 -0
  2551. /package/bin/{session → executor}/composer/system/default/StaticPromptCatalog.d.ts +0 -0
  2552. /package/bin/{session → executor}/composer/system/default/StaticPromptCatalog.js +0 -0
  2553. /package/bin/{session → executor}/composer/system/default/assets/init/PROFILE.md.d.ts +0 -0
  2554. /package/bin/{session → executor}/composer/system/default/assets/init/SOUL.md.d.ts +0 -0
  2555. /package/bin/{session → executor}/composer/system/default/assets/task.prompt.d.ts +0 -0
  2556. /package/bin/{session → executor}/composer/system/default/variables/GeoContext.d.ts +0 -0
  2557. /package/bin/{session → executor}/composer/system/default/variables/GeoContext.js +0 -0
  2558. /package/bin/{session → executor}/composer/system/default/variables/PromptTypes.d.ts +0 -0
  2559. /package/bin/{session → executor}/composer/system/default/variables/PromptTypes.js +0 -0
  2560. /package/bin/{session → executor}/composer/system/default/variables/VariableReplacer.d.ts +0 -0
  2561. /package/bin/{session → executor}/composer/system/default/variables/VariableReplacer.js +0 -0
  2562. /package/bin/{session → executor}/core-engine/CoreEngineError.d.ts +0 -0
  2563. /package/bin/{session → executor}/core-engine/CoreEngineError.js +0 -0
  2564. /package/bin/{session → executor}/core-engine/CoreEngineLoopDecision.js +0 -0
  2565. /package/bin/{session → executor}/core-engine/CoreEngineMessageState.js +0 -0
  2566. /package/bin/{session → executor}/core-engine/CoreEngineSignals.js +0 -0
  2567. /package/bin/{session → executor}/core-engine/CoreEngineUiStreamCollector.js +0 -0
  2568. /package/bin/{session → executor}/ids/resolveSessionId.d.ts +0 -0
  2569. /package/bin/{session → executor}/ids/resolveSessionId.js +0 -0
  2570. /package/bin/{session → executor}/messages/SessionMessageCodec.js +0 -0
  2571. /package/bin/{session → executor}/messages/SessionMessageLog.js +0 -0
  2572. /package/bin/{session → executor}/messages/SessionStepEventMapper.js +0 -0
  2573. /package/bin/{session → executor}/store/history/SessionHistoryStore.js +0 -0
  2574. /package/bin/{session → executor}/tools/shell/ShellToolSchemas.d.ts +0 -0
  2575. /package/bin/{session → executor}/types/SessionExecutor.js +0 -0
  2576. /package/bin/{session → executor}/types/SessionHistoryPaths.js +0 -0
  2577. /package/bin/{session → executor}/types/SessionLoop.d.ts +0 -0
  2578. /package/bin/{session → executor}/types/SessionLoop.js +0 -0
  2579. /package/bin/{session → executor}/types/SessionMessages.js +0 -0
  2580. /package/bin/{session → executor}/types/SessionPrompts.d.ts +0 -0
  2581. /package/bin/{session → executor}/types/SessionPrompts.js +0 -0
  2582. /package/bin/{session → executor}/types/SessionRun.js +0 -0
  2583. /package/bin/{service → plugin}/builtins/chat/channels/Configuration.js +0 -0
  2584. /package/bin/{service → plugin}/builtins/chat/channels/feishu/BotInfo.js +0 -0
  2585. /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuInbound.js +0 -0
  2586. /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformClient.js +0 -0
  2587. /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformLookup.js +0 -0
  2588. /package/bin/{service → plugin}/builtins/chat/channels/feishu/FeishuPlatformMessaging.js +0 -0
  2589. /package/bin/{service → plugin}/builtins/chat/channels/feishu/InboundAttachment.js +0 -0
  2590. /package/bin/{service → plugin}/builtins/chat/channels/feishu/PROMPT.direct.d.ts +0 -0
  2591. /package/bin/{service → plugin}/builtins/chat/channels/feishu/PostMessage.js +0 -0
  2592. /package/bin/{service → plugin}/builtins/chat/channels/feishu/ReplyContext.js +0 -0
  2593. /package/bin/{service → plugin}/builtins/chat/channels/qq/BotInfo.js +0 -0
  2594. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQEventCapture.js +0 -0
  2595. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayAuth.js +0 -0
  2596. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayClient.js +0 -0
  2597. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayConnection.js +0 -0
  2598. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewayHeartbeat.d.ts +0 -0
  2599. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewaySend.js +0 -0
  2600. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQGatewaySupport.js +0 -0
  2601. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInbound.js +0 -0
  2602. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInboundDedupe.d.ts +0 -0
  2603. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQInboundDedupe.js +0 -0
  2604. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQMessageHandler.js +0 -0
  2605. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.d.ts +0 -0
  2606. /package/bin/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.js +0 -0
  2607. /package/bin/{service → plugin}/builtins/chat/channels/qq/VoiceInput.js +0 -0
  2608. /package/bin/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.d.ts +0 -0
  2609. /package/bin/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.js +0 -0
  2610. /package/bin/{service → plugin}/builtins/chat/channels/telegram/ApiClient.d.ts +0 -0
  2611. /package/bin/{service → plugin}/builtins/chat/channels/telegram/ApiClient.js +0 -0
  2612. /package/bin/{service → plugin}/builtins/chat/channels/telegram/BotInfo.js +0 -0
  2613. /package/bin/{service → plugin}/builtins/chat/channels/telegram/Handlers.d.ts +0 -0
  2614. /package/bin/{service → plugin}/builtins/chat/channels/telegram/Handlers.js +0 -0
  2615. /package/bin/{service → plugin}/builtins/chat/channels/telegram/PROMPT.direct.d.ts +0 -0
  2616. /package/bin/{service → plugin}/builtins/chat/channels/telegram/ReplyContext.js +0 -0
  2617. /package/bin/{service → plugin}/builtins/chat/channels/telegram/Shared.d.ts +0 -0
  2618. /package/bin/{service → plugin}/builtins/chat/channels/telegram/StateStore.d.ts +0 -0
  2619. /package/bin/{service → plugin}/builtins/chat/channels/telegram/StateStore.js +0 -0
  2620. /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.d.ts +0 -0
  2621. /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.js +0 -0
  2622. /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramPendingUpdates.js +0 -0
  2623. /package/bin/{service → plugin}/builtins/chat/channels/telegram/TelegramPlatformClient.js +0 -0
  2624. /package/bin/{service → plugin}/builtins/chat/runtime/ChannelContextStore.js +0 -0
  2625. /package/bin/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.d.ts +0 -0
  2626. /package/bin/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.js +0 -0
  2627. /package/bin/{service → plugin}/builtins/chat/runtime/ChatHistoryStore.js +0 -0
  2628. /package/bin/{service → plugin}/builtins/chat/runtime/ChatMessageMarkup.js +0 -0
  2629. /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueue.js +0 -0
  2630. /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.d.ts +0 -0
  2631. /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.js +0 -0
  2632. /package/bin/{service → plugin}/builtins/chat/runtime/ChatQueueWorkerSupport.js +0 -0
  2633. /package/bin/{service → plugin}/builtins/chat/runtime/ChatSendMetadata.js +0 -0
  2634. /package/bin/{service → plugin}/builtins/chat/runtime/ChatSendRegistry.js +0 -0
  2635. /package/bin/{service → plugin}/builtins/chat/runtime/ChatSessionTypes.js +0 -0
  2636. /package/bin/{service → plugin}/builtins/chat/runtime/QueuedUserMessage.js +0 -0
  2637. /package/bin/{service → plugin}/builtins/chat/runtime/ReplyContextFormatter.js +0 -0
  2638. /package/bin/{service → plugin}/builtins/chat/runtime/UIMessageTransformer.js +0 -0
  2639. /package/bin/{service → plugin}/builtins/chat/runtime/UserVisibleText.js +0 -0
  2640. /package/bin/{service → plugin}/builtins/chat/types/BotInfo.js +0 -0
  2641. /package/bin/{service → plugin}/builtins/chat/types/ChannelAccount.d.ts +0 -0
  2642. /package/bin/{service → plugin}/builtins/chat/types/ChannelAccount.js +0 -0
  2643. /package/bin/{service → plugin}/builtins/chat/types/ChannelConfiguration.js +0 -0
  2644. /package/bin/{service → plugin}/builtins/chat/types/ChannelStatus.js +0 -0
  2645. /package/bin/{service → plugin}/builtins/chat/types/ChatCommand.d.ts +0 -0
  2646. /package/bin/{service → plugin}/builtins/chat/types/ChatCommand.js +0 -0
  2647. /package/bin/{service → plugin}/builtins/chat/types/ChatDispatcher.d.ts +0 -0
  2648. /package/bin/{service → plugin}/builtins/chat/types/ChatDispatcher.js +0 -0
  2649. /package/bin/{service → plugin}/builtins/chat/types/ChatHistory.js +0 -0
  2650. /package/bin/{service → plugin}/builtins/chat/types/ChatPromptContext.js +0 -0
  2651. /package/bin/{service → plugin}/builtins/chat/types/ChatQueue.js +0 -0
  2652. /package/bin/{service → plugin}/builtins/chat/types/ChatQueueWorker.d.ts +0 -0
  2653. /package/bin/{service → plugin}/builtins/chat/types/ChatQueueWorker.js +0 -0
  2654. /package/bin/{service → plugin}/builtins/chat/types/DirectDispatch.js +0 -0
  2655. /package/bin/{service → plugin}/builtins/chat/types/FeishuAttachment.d.ts +0 -0
  2656. /package/bin/{service → plugin}/builtins/chat/types/FeishuAttachment.js +0 -0
  2657. /package/bin/{service → plugin}/builtins/chat/types/FeishuInboundAttachment.js +0 -0
  2658. /package/bin/{service → plugin}/builtins/chat/types/FeishuPost.d.ts +0 -0
  2659. /package/bin/{service → plugin}/builtins/chat/types/FeishuPost.js +0 -0
  2660. /package/bin/{service → plugin}/builtins/chat/types/QqInboundDedupe.d.ts +0 -0
  2661. /package/bin/{service → plugin}/builtins/chat/types/QqInboundDedupe.js +0 -0
  2662. /package/bin/{service → plugin}/builtins/chat/types/QqVoice.d.ts +0 -0
  2663. /package/bin/{service → plugin}/builtins/chat/types/QqVoice.js +0 -0
  2664. /package/bin/{service → plugin}/builtins/chat/types/ReplyContext.d.ts +0 -0
  2665. /package/bin/{service → plugin}/builtins/chat/types/ReplyContext.js +0 -0
  2666. /package/bin/{service → plugin}/builtins/contact/runtime/ApproveCallback.js +0 -0
  2667. /package/bin/{service → plugin}/builtins/contact/runtime/ContactPayload.d.ts +0 -0
  2668. /package/bin/{service → plugin}/builtins/contact/runtime/ContactPayload.js +0 -0
  2669. /package/bin/{service → plugin}/builtins/contact/runtime/ContactStore.js +0 -0
  2670. /package/bin/{service → plugin}/builtins/contact/runtime/EndpointNotice.js +0 -0
  2671. /package/bin/{service → plugin}/builtins/contact/runtime/EndpointResolver.d.ts +0 -0
  2672. /package/bin/{service → plugin}/builtins/contact/runtime/EndpointResolver.js +0 -0
  2673. /package/bin/{service → plugin}/builtins/contact/runtime/InboxStore.js +0 -0
  2674. /package/bin/{service → plugin}/builtins/contact/runtime/LinkApproval.js +0 -0
  2675. /package/bin/{service → plugin}/builtins/contact/runtime/LinkCode.js +0 -0
  2676. /package/bin/{service → plugin}/builtins/contact/runtime/LinkStore.js +0 -0
  2677. /package/bin/{service → plugin}/builtins/contact/runtime/ShareBundle.js +0 -0
  2678. /package/bin/{service → plugin}/builtins/contact/runtime/Token.d.ts +0 -0
  2679. /package/bin/{service → plugin}/builtins/contact/runtime/Token.js +0 -0
  2680. /package/bin/{service → plugin}/builtins/contact/types/Contact.d.ts +0 -0
  2681. /package/bin/{service → plugin}/builtins/contact/types/Contact.js +0 -0
  2682. /package/bin/{service → plugin}/builtins/contact/types/ContactApproval.d.ts +0 -0
  2683. /package/bin/{service → plugin}/builtins/contact/types/ContactApproval.js +0 -0
  2684. /package/bin/{service → plugin}/builtins/contact/types/ContactChat.d.ts +0 -0
  2685. /package/bin/{service → plugin}/builtins/contact/types/ContactChat.js +0 -0
  2686. /package/bin/{service → plugin}/builtins/contact/types/ContactCheck.js +0 -0
  2687. /package/bin/{service → plugin}/builtins/contact/types/ContactEndpoint.d.ts +0 -0
  2688. /package/bin/{service → plugin}/builtins/contact/types/ContactEndpoint.js +0 -0
  2689. /package/bin/{service → plugin}/builtins/contact/types/ContactLink.d.ts +0 -0
  2690. /package/bin/{service → plugin}/builtins/contact/types/ContactLink.js +0 -0
  2691. /package/bin/{service → plugin}/builtins/contact/types/ContactShare.d.ts +0 -0
  2692. /package/bin/{service → plugin}/builtins/contact/types/ContactShare.js +0 -0
  2693. /package/bin/{service → plugin}/builtins/memory/Action.js +0 -0
  2694. /package/bin/{service → plugin}/builtins/memory/runtime/Flush.js +0 -0
  2695. /package/bin/{service → plugin}/builtins/memory/types/Memory.d.ts +0 -0
  2696. /package/bin/{service → plugin}/builtins/memory/types/Memory.js +0 -0
  2697. /package/bin/{service → plugin}/builtins/shell/runtime/Paths.d.ts +0 -0
  2698. /package/bin/{service → plugin}/builtins/shell/runtime/Paths.js +0 -0
  2699. /package/bin/{service → plugin}/builtins/shell/runtime/ShellActionResponse.js +0 -0
  2700. /package/bin/{service → plugin}/builtins/shell/runtime/ShellProcessEvents.js +0 -0
  2701. /package/bin/{service → plugin}/builtins/shell/runtime/ShellRuntimeEnvironment.d.ts +0 -0
  2702. /package/bin/{service → plugin}/builtins/shell/types/Shell.d.ts +0 -0
  2703. /package/bin/{service → plugin}/builtins/shell/types/Shell.js +0 -0
  2704. /package/bin/{service → plugin}/builtins/task/Action.d.ts +0 -0
  2705. /package/bin/{service → plugin}/builtins/task/Action.js +0 -0
  2706. /package/bin/{service → plugin}/builtins/task/runtime/Frontmatter.d.ts +0 -0
  2707. /package/bin/{service → plugin}/builtins/task/runtime/Frontmatter.js +0 -0
  2708. /package/bin/{service → plugin}/builtins/task/runtime/Model.js +0 -0
  2709. /package/bin/{service → plugin}/builtins/task/runtime/Paths.d.ts +0 -0
  2710. /package/bin/{service → plugin}/builtins/task/runtime/Paths.js +0 -0
  2711. /package/bin/{service → plugin}/builtins/task/runtime/Runner.js +0 -0
  2712. /package/bin/{service → plugin}/builtins/task/runtime/Store.js +0 -0
  2713. /package/bin/{service → plugin}/builtins/task/runtime/TaskRunArtifacts.js +0 -0
  2714. /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerProgress.js +0 -0
  2715. /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerScript.js +0 -0
  2716. /package/bin/{service → plugin}/builtins/task/runtime/TaskRunnerTypes.js +0 -0
  2717. /package/bin/{service → plugin}/builtins/task/types/Cron.js +0 -0
  2718. /package/bin/{service → plugin}/builtins/task/types/Task.d.ts +0 -0
  2719. /package/bin/{service → plugin}/builtins/task/types/Task.js +0 -0
  2720. /package/bin/{service → plugin}/builtins/task/types/TaskCommand.d.ts +0 -0
  2721. /package/bin/{service → plugin}/builtins/task/types/TaskCommand.js +0 -0
  2722. /package/src/{session → executor}/composer/system/SessionSystemComposer.ts +0 -0
  2723. /package/src/{session → executor}/composer/system/default/assets/init/PROFILE.md.ts.txt +0 -0
  2724. /package/src/{session → executor}/composer/system/default/assets/init/SOUL.md.ts.txt +0 -0
  2725. /package/src/{session → executor}/composer/system/default/assets/task.prompt.ts.txt +0 -0
  2726. /package/src/{session → executor}/composer/system/default/variables/PromptTypes.ts +0 -0
  2727. /package/src/{session → executor}/core-engine/CoreEngineError.ts +0 -0
  2728. /package/src/{session → executor}/ids/resolveSessionId.ts +0 -0
  2729. /package/src/{session → executor}/types/SessionLoop.ts +0 -0
  2730. /package/src/{session → executor}/types/SessionPrompts.ts +0 -0
  2731. /package/src/{service → plugin}/builtins/chat/channels/feishu/PROMPT.direct.ts.txt +0 -0
  2732. /package/src/{service → plugin}/builtins/chat/channels/qq/QQSendSupport.ts +0 -0
  2733. /package/src/{service → plugin}/builtins/chat/channels/qq/types/QqGatewaySupport.ts +0 -0
  2734. /package/src/{service → plugin}/builtins/chat/channels/telegram/ApiClient.ts +0 -0
  2735. /package/src/{service → plugin}/builtins/chat/channels/telegram/Handlers.ts +0 -0
  2736. /package/src/{service → plugin}/builtins/chat/channels/telegram/PROMPT.direct.ts.txt +0 -0
  2737. /package/src/{service → plugin}/builtins/chat/channels/telegram/StateStore.ts +0 -0
  2738. /package/src/{service → plugin}/builtins/chat/channels/telegram/TelegramInbound.ts +0 -0
  2739. /package/src/{service → plugin}/builtins/chat/runtime/ChatActionInputSupport.ts +0 -0
  2740. /package/src/{service → plugin}/builtins/chat/runtime/ChatQueueReplyDispatch.ts +0 -0
  2741. /package/src/{service → plugin}/builtins/chat/types/ChannelAccount.ts +0 -0
  2742. /package/src/{service → plugin}/builtins/chat/types/ChatCommand.ts +0 -0
  2743. /package/src/{service → plugin}/builtins/chat/types/ChatDispatcher.ts +0 -0
  2744. /package/src/{service → plugin}/builtins/chat/types/ChatQueueWorker.ts +0 -0
  2745. /package/src/{service → plugin}/builtins/chat/types/FeishuAttachment.ts +0 -0
  2746. /package/src/{service → plugin}/builtins/chat/types/FeishuPost.ts +0 -0
  2747. /package/src/{service → plugin}/builtins/chat/types/QqInboundDedupe.ts +0 -0
  2748. /package/src/{service → plugin}/builtins/chat/types/QqVoice.ts +0 -0
  2749. /package/src/{service → plugin}/builtins/chat/types/ReplyContext.ts +0 -0
  2750. /package/src/{service → plugin}/builtins/contact/runtime/ContactPayload.ts +0 -0
  2751. /package/src/{service → plugin}/builtins/contact/runtime/EndpointResolver.ts +0 -0
  2752. /package/src/{service → plugin}/builtins/contact/runtime/Token.ts +0 -0
  2753. /package/src/{service → plugin}/builtins/contact/types/Contact.ts +0 -0
  2754. /package/src/{service → plugin}/builtins/contact/types/ContactApproval.ts +0 -0
  2755. /package/src/{service → plugin}/builtins/contact/types/ContactChat.ts +0 -0
  2756. /package/src/{service → plugin}/builtins/contact/types/ContactEndpoint.ts +0 -0
  2757. /package/src/{service → plugin}/builtins/contact/types/ContactLink.ts +0 -0
  2758. /package/src/{service → plugin}/builtins/contact/types/ContactShare.ts +0 -0
  2759. /package/src/{service → plugin}/builtins/memory/types/Memory.ts +0 -0
  2760. /package/src/{service → plugin}/builtins/shell/runtime/Paths.ts +0 -0
  2761. /package/src/{service → plugin}/builtins/shell/types/Shell.ts +0 -0
  2762. /package/src/{service → plugin}/builtins/task/Action.ts +0 -0
  2763. /package/src/{service → plugin}/builtins/task/runtime/Frontmatter.ts +0 -0
  2764. /package/src/{service → plugin}/builtins/task/runtime/Paths.ts +0 -0
  2765. /package/src/{service → plugin}/builtins/task/types/Task.ts +0 -0
  2766. /package/src/{service → plugin}/builtins/task/types/TaskCommand.ts +0 -0
@@ -1,108 +0,0 @@
1
- # Session Module
2
-
3
- `session/` 是单 Agent 会话执行内核。它不直接面向普通 SDK 用户;普通用户通过 `sdk/Session.ts` 使用 `session.prompt()`、`session.subscribe()`、`session.history()` 等 API。
4
-
5
- ## 核心概念
6
-
7
- - `Session`:用户/SDK 面向的完整会话对象,负责模型配置、历史入口、prompt 入口和分叉能力。
8
- - `Executor`:单个 session 的内部单轮执行引擎,负责并发锁、执行 scope、Composer 编排、压缩重试、assistant step 持久化和 tool-loop 调用。
9
- - `Composer`:执行前的材料组装协议,只负责把原材料组装成某一阶段输入,不直接执行模型,也没有公共运行时基类。
10
- - `HistoryStore`:历史事实源,负责 JSONL 读写、meta、archive、lock、compact 与消息工厂。
11
- - `HistoryComposer`:历史组装策略,只负责把 `HistoryStore` 中的历史组装成本轮模型输入。
12
- - `CoreEngine`:Executor 内部的模型/tool-loop 核心机制,负责模型流、tool calls、续写和最终 assistant message 合并。
13
-
14
- ## 一轮 prompt 的调用链
15
-
16
- ```text
17
- sdk/Session.prompt({ query })
18
- -> SessionPromptRuntime 绑定 turn
19
- -> append user message
20
- -> session/Executor 执行当前 turn
21
- -> ContextComposer.compose()
22
- -> SystemComposer.resolve()
23
- -> CompactionComposer.run()
24
- -> HistoryComposer.prepare()
25
- -> Executor.runCoreEngine()
26
- -> ai.streamText({ model, system, messages, tools })
27
- -> return assistantMessage
28
- -> append final assistant message
29
- -> resolve turn.finished
30
- ```
31
-
32
- ## Composer 分工
33
-
34
- - `composer/system/`:组装本轮 system messages,例如 instruction、service system、plugin system 和 session context。
35
- - `composer/history/`:只组装本轮 model messages,不负责历史落盘。
36
- - `composer/context/`:组装 tools、step hooks、fallback assistant message 等运行上下文。
37
- - `composer/compaction/`:判断上下文错误和压缩历史,必要时写入 summary 与 archive。
38
-
39
- ## Composer 的代码实现方式
40
-
41
- Composer 在代码里是 TypeScript `interface`,不是抽象基类。每个 Composer 只声明当前阶段需要的最小协议,实现类用 `implements` 接上。
42
-
43
- ```ts
44
- export interface SessionSystemComposer {
45
- readonly name: string;
46
- resolve(): Promise<SystemModelMessage[]>;
47
- }
48
-
49
- export class DefaultSessionSystemComposer implements SessionSystemComposer {
50
- readonly name = "prompt_system";
51
-
52
- async resolve() {
53
- // 关键点(中文):只组装 system messages,不执行模型、不写历史。
54
- }
55
- }
56
- ```
57
-
58
- 当前四类协议分别回答四个问题:
59
-
60
- - `SessionSystemComposer.resolve()`:这一轮 system messages 是什么?
61
- - `SessionHistoryComposer.prepare()`:这一轮喂给模型的 history messages 是什么?
62
- - `SessionContextComposer.compose()`:这一轮有哪些 tools 与 step hooks?
63
- - `SessionCompactionComposer.run()`:是否需要压缩,以及压缩策略是什么?
64
-
65
- `Executor.prepareExecuteInput()` 是 Composer 的唯一主装配点:
66
-
67
- ```text
68
- Executor.prepareExecuteInput()
69
- -> ContextComposer.compose()
70
- -> SystemComposer.resolve()
71
- -> CompactionComposer.run(historyStore)
72
- -> HistoryComposer.prepare()
73
- -> SessionExecuteInput
74
- ```
75
-
76
- 边界规则:
77
-
78
- - Composer 不调用模型,模型调用只发生在 `Executor.runCoreEngine()`。
79
- - Composer 不持有历史事实,历史事实由 `HistoryStore` 负责。
80
- - Composer 不管理 session 生命周期,生命周期由 `Session` / `Executor` 管理。
81
- - Composer 可以读取上下文并做策略判断,但输出应该是“本轮执行材料”。
82
-
83
- ## 当前目录结构
84
-
85
- ```text
86
- session/
87
- ├── Executor.ts
88
- ├── SessionRunScope.ts
89
- ├── composer/
90
- │ ├── compaction/
91
- │ ├── context/
92
- │ ├── history/
93
- │ └── system/
94
- ├── core-engine/
95
- │ ├── CoreEngineMessageState.ts
96
- │ ├── CoreEngineLoopDecision.ts
97
- │ ├── CoreEngineSignals.ts
98
- │ ├── CoreEngineError.ts
99
- │ └── CoreEngineUiStreamCollector.ts
100
- ├── store/
101
- │ └── history/
102
- │ ├── SessionHistoryStore.ts
103
- │ └── jsonl/JsonlSessionHistoryStore.ts
104
- ├── ids/
105
- ├── messages/
106
- ├── tools/
107
- └── types/
108
- ```
@@ -1,146 +0,0 @@
1
- import { AsyncLocalStorage } from "node:async_hooks";
2
- import type { SessionUserMessageV1 } from "@/session/types/SessionMessages.js";
3
- import type {
4
- SessionAssistantStepCallback,
5
- SessionUiMessageChunkCallback,
6
- } from "@/session/types/SessionRun.js";
7
-
8
- /**
9
- * SessionRunScope(单次请求作用域)。
10
- *
11
- * 关键点(中文)
12
- * - 这是 session run 层请求作用域上下文,不属于具体 service 模块。
13
- * - 统一承载请求链需要透传的字段(如 `sessionId`)。
14
- */
15
- export type SessionRunScope = {
16
- sessionId?: string;
17
- /**
18
- * step 边界合并回调(可选)。
19
- *
20
- * 关键点(中文)
21
- * - 由调用侧(如 chat queue)注入。
22
- * - Orchestrator 从 SessionRunScope 读取并编排到本轮运行上下文。
23
- */
24
- onStepCallback?: () => Promise<SessionUserMessageV1[]>;
25
-
26
- /**
27
- * assistant step 完成回调(可选)。
28
- *
29
- * 关键点(中文)
30
- * - 在每个 LLM step 结束时触发。
31
- * - 用于把中间文本增量派发到外部通道(如 direct 模式分步发送)。
32
- */
33
- onAssistantStepCallback?: SessionAssistantStepCallback;
34
-
35
- /**
36
- * UI stream chunk 回调(可选)。
37
- *
38
- * 关键点(中文)
39
- * - 用于把底层模型 UI stream 事件向上层 SDK / transport 旁路输出。
40
- * - 不影响最终 assistantMessage 的收敛与落盘。
41
- */
42
- onUiMessageChunkCallback?: SessionUiMessageChunkCallback;
43
-
44
- /**
45
- * 运行时注入的 user 消息队列(可选)。
46
- *
47
- * 关键点(中文)
48
- * - 用于在 tool 执行后向下一 step 注入结构化 user 消息。
49
- * - 队列内容由 service 侧通过统一协议下发,main 不感知业务语义。
50
- */
51
- injectedUserMessages?: SessionUserMessageV1[];
52
- };
53
-
54
- /**
55
- * AsyncLocalStorage 容器(请求作用域)。
56
- *
57
- * 关键点(中文)
58
- * - 同一条异步调用链内可读取一致的 SessionRunScope。
59
- * - 用于把 `sessionId` 从入口透传到 service 与工具层。
60
- */
61
- export const sessionRunScopeStorage = new AsyncLocalStorage<SessionRunScope>();
62
-
63
- /**
64
- * 待持久化的运行时注入 user 消息队列(按 sessionId)。
65
- *
66
- * 关键点(中文)
67
- * - sessionRunScopeStorage 中的 injectedUserMessages 只负责“下一 step 临时可见”。
68
- * - 为了让时间线顺序稳定,这里把“真正写入历史”的动作延后到
69
- * assistant message 落盘之后再统一执行。
70
- */
71
- const deferredPersistedUserMessagesBySession = new Map<
72
- string,
73
- SessionUserMessageV1[]
74
- >();
75
-
76
- /**
77
- * 在当前异步调用链内绑定 session run 作用域。
78
- */
79
- export function withSessionRunScope<T>(ctx: SessionRunScope, fn: () => T): T {
80
- return sessionRunScopeStorage.run(ctx, fn);
81
- }
82
-
83
- /**
84
- * 读取当前异步链路上的 session run 作用域。
85
- */
86
- export function getSessionRunScope(): SessionRunScope | undefined {
87
- return sessionRunScopeStorage.getStore();
88
- }
89
-
90
- /**
91
- * 入队一条“待注入 user 消息”。
92
- *
93
- * 关键点(中文)
94
- * - 若当前不在 session run 作用域内,静默忽略(fail-open)。
95
- */
96
- export function enqueueInjectedUserMessage(
97
- message: SessionUserMessageV1,
98
- ): void {
99
- const store = sessionRunScopeStorage.getStore();
100
- if (!store || !message) return;
101
- if (!Array.isArray(store.injectedUserMessages)) {
102
- store.injectedUserMessages = [];
103
- }
104
- store.injectedUserMessages.push(message);
105
- }
106
-
107
- /**
108
- * 读取并清空“待注入 user 消息”队列。
109
- *
110
- * 关键点(中文)
111
- * - 采用 drain 语义,确保每条注入消息只在下一 step 使用一次。
112
- */
113
- export function drainInjectedUserMessages(): SessionUserMessageV1[] {
114
- const store = sessionRunScopeStorage.getStore();
115
- if (!store || !Array.isArray(store.injectedUserMessages)) return [];
116
- const out = [...store.injectedUserMessages];
117
- store.injectedUserMessages = [];
118
- return out;
119
- }
120
-
121
- /**
122
- * 入队一条“待持久化 user 消息”。
123
- */
124
- export function enqueueDeferredPersistedUserMessage(
125
- sessionId: string,
126
- message: SessionUserMessageV1,
127
- ): void {
128
- const key = String(sessionId || "").trim();
129
- if (!key || !message) return;
130
- const current = deferredPersistedUserMessagesBySession.get(key) || [];
131
- current.push(message);
132
- deferredPersistedUserMessagesBySession.set(key, current);
133
- }
134
-
135
- /**
136
- * 读取并清空指定 session 的待持久化 user 消息。
137
- */
138
- export function drainDeferredPersistedUserMessages(
139
- sessionId: string,
140
- ): SessionUserMessageV1[] {
141
- const key = String(sessionId || "").trim();
142
- if (!key) return [];
143
- const current = deferredPersistedUserMessagesBySession.get(key) || [];
144
- deferredPersistedUserMessagesBySession.delete(key);
145
- return [...current];
146
- }
@@ -1,62 +0,0 @@
1
- /**
2
- * SessionCompactionComposer:上下文压缩 Composer 抽象。
3
- *
4
- * 关键点(中文)
5
- * - 负责“何时压缩 + 压缩策略参数”决策。
6
- * - 具体读写由 SessionHistoryStore 执行(CompactionComposer 不直接落盘)。
7
- */
8
-
9
- import type { LanguageModel, SystemModelMessage } from "ai";
10
- import type { SessionHistoryStore } from "@/session/store/history/SessionHistoryStore.js";
11
-
12
- /**
13
- * compaction Composer 执行输入。
14
- */
15
- export type SessionCompactionInput = {
16
- /**
17
- * 当前会话 history Store。
18
- */
19
- historyStore: SessionHistoryStore;
20
-
21
- /**
22
- * 当前模型实例。
23
- */
24
- model: LanguageModel;
25
-
26
- /**
27
- * 当前轮 system messages。
28
- */
29
- system: SystemModelMessage[];
30
-
31
- /**
32
- * 当前重试次数(由 Executor 递增)。
33
- */
34
- retryCount: number;
35
- };
36
-
37
- /**
38
- * Compaction Composer 协议。
39
- */
40
- export interface SessionCompactionComposer {
41
- /**
42
- * Composer 名(由具体实现声明)。
43
- */
44
- readonly name: string;
45
-
46
- /**
47
- * 执行 compact(best-effort)。
48
- */
49
- run(input: SessionCompactionInput): Promise<{
50
- compacted: boolean;
51
- reason?: string;
52
- }>;
53
-
54
- /**
55
- * 判断某次执行错误是否应该触发“压缩后重试”。
56
- *
57
- * 关键点(中文)
58
- * - 由 compaction Composer 实现侧维护错误识别策略。
59
- * - Executor 不感知具体错误文案,只按该布尔结果决定是否重试。
60
- */
61
- shouldCompactOnError(error: unknown): boolean;
62
- }
@@ -1,101 +0,0 @@
1
- /**
2
- * JsonlSessionCompactionComposer:默认上下文压缩 Composer。
3
- *
4
- * 关键点(中文)
5
- * - 只负责压缩参数策略(retry 越多,窗口越紧)。
6
- * - 真正的读写与 compact 执行交由 history Store。
7
- */
8
-
9
- import type {
10
- SessionCompactionComposer,
11
- SessionCompactionInput,
12
- } from "@session/composer/compaction/SessionCompactionComposer.js";
13
-
14
- type JsonlSessionCompactionComposerOptions = {
15
- keepLastMessages?: number;
16
- maxInputTokensApprox?: number;
17
- archiveOnCompact?: boolean;
18
- compactRatio?: number;
19
- };
20
-
21
- /**
22
- * JsonlSessionCompactionComposer 默认实现。
23
- */
24
- export class JsonlSessionCompactionComposer implements SessionCompactionComposer {
25
- readonly name = "summary_compaction_composer";
26
- private readonly options: JsonlSessionCompactionComposerOptions;
27
-
28
- constructor(options?: JsonlSessionCompactionComposerOptions) {
29
- this.options = options || {};
30
- }
31
-
32
- private resolvePolicy(retryCount: number): {
33
- keepLastMessages: number;
34
- maxInputTokensApprox: number;
35
- archiveOnCompact: boolean;
36
- compactRatio: number;
37
- } {
38
- const baseKeepLastMessages =
39
- typeof this.options.keepLastMessages === "number"
40
- ? Math.max(6, Math.min(5000, Math.floor(this.options.keepLastMessages)))
41
- : 30;
42
- const baseMaxInputTokensApprox =
43
- typeof this.options.maxInputTokensApprox === "number"
44
- ? Math.max(2000, Math.min(200_000, Math.floor(this.options.maxInputTokensApprox)))
45
- : 128000;
46
- const retryFactor = Math.max(1, Math.pow(2, retryCount));
47
- const keepLastMessages = Math.max(6, Math.floor(baseKeepLastMessages / retryFactor));
48
- const maxInputTokensApprox = Math.max(
49
- 2000,
50
- Math.floor(baseMaxInputTokensApprox / retryFactor),
51
- );
52
- const archiveOnCompact =
53
- this.options.archiveOnCompact === undefined
54
- ? true
55
- : Boolean(this.options.archiveOnCompact);
56
- const compactRatioRaw =
57
- typeof this.options.compactRatio === "number" &&
58
- Number.isFinite(this.options.compactRatio)
59
- ? this.options.compactRatio
60
- : 0.5;
61
- const compactRatio = Math.max(0.1, Math.min(0.9, compactRatioRaw));
62
- return {
63
- keepLastMessages,
64
- maxInputTokensApprox,
65
- archiveOnCompact,
66
- compactRatio,
67
- };
68
- }
69
-
70
- async run(input: SessionCompactionInput): Promise<{
71
- compacted: boolean;
72
- reason?: string;
73
- }> {
74
- const policy = this.resolvePolicy(input.retryCount);
75
- return await input.historyStore.compact({
76
- model: input.model,
77
- system: input.system,
78
- keepLastMessages: policy.keepLastMessages,
79
- maxInputTokensApprox: policy.maxInputTokensApprox,
80
- archiveOnCompact: policy.archiveOnCompact,
81
- compactRatio: policy.compactRatio,
82
- });
83
- }
84
-
85
- /**
86
- * 判断错误是否属于“应先 compact 再重试”的类型。
87
- *
88
- * 关键点(中文)
89
- * - 当前实现基于主流模型 provider 的超限关键词。
90
- * - 后续若接入新 provider,可在此处统一扩展识别规则。
91
- */
92
- shouldCompactOnError(error: unknown): boolean {
93
- const errorMsg = String(error ?? "");
94
- return (
95
- errorMsg.includes("context_length") ||
96
- errorMsg.includes("too long") ||
97
- errorMsg.includes("maximum context") ||
98
- errorMsg.includes("context window")
99
- );
100
- }
101
- }
@@ -1,261 +0,0 @@
1
- /**
2
- * JsonlSessionCompactionExecutor:JSONL session 压缩执行模块。
3
- *
4
- * 关键职责(中文)
5
- * - 评估当前消息是否超出输入预算。
6
- * - 在锁外生成“更早历史摘要”,降低锁持有时间。
7
- * - 在锁内完成归档与 messages.jsonl 重写,保证并发安全。
8
- */
9
-
10
- import fs from "fs-extra";
11
- import path from "node:path";
12
- import {
13
- generateText,
14
- isTextUIPart,
15
- type LanguageModel,
16
- type SystemModelMessage,
17
- } from "ai";
18
- import { generateId } from "@/utils/Id.js";
19
- import { getLogger } from "@/utils/logger/Logger.js";
20
- import type {
21
- SessionMessageV1,
22
- SessionMetadataV1,
23
- } from "@/session/types/SessionMessages.js";
24
- import type { SessionHistoryMetaV1 } from "@/session/types/SessionHistoryMeta.js";
25
-
26
- export type SessionCompactParams = {
27
- model: LanguageModel;
28
- system: Array<SystemModelMessage>;
29
- keepLastMessages: number;
30
- maxInputTokensApprox: number;
31
- archiveOnCompact: boolean;
32
- compactRatio: number;
33
- };
34
-
35
- type SessionCompactDeps = {
36
- rootPath: string;
37
- sessionId: string;
38
- withWriteLock: <T>(fn: () => Promise<T>) => Promise<T>;
39
- loadAll: () => Promise<SessionMessageV1[]>;
40
- createSummaryMessage: (params: {
41
- text: string;
42
- sourceRange?: SessionMetadataV1["sourceRange"];
43
- }) => SessionMessageV1;
44
- getArchiveDirPath: () => string;
45
- getMessagesFilePath: () => string;
46
- readMetaUnsafe: () => Promise<SessionHistoryMetaV1>;
47
- writeMetaUnsafe: (next: SessionHistoryMetaV1) => Promise<void>;
48
- };
49
-
50
- /**
51
- * 对当前 session messages 做一次 best-effort compact(必要时)。
52
- *
53
- * 注意(中文)
54
- * - compact 会 rewrite `messages.jsonl`(不是纯 append-only),因此必须防并发覆盖
55
- * - 这里做两阶段锁:先 snapshot 再生成摘要,最后再锁定写入,降低锁持有时间
56
- */
57
- export async function compactSessionMessagesIfNeeded(
58
- deps: SessionCompactDeps,
59
- params: SessionCompactParams,
60
- ): Promise<{ compacted: boolean; reason?: string }> {
61
- const logger = getLogger(deps.rootPath, "info");
62
-
63
- // 算法阶段(中文)
64
- // phase 1:snapshot(短锁)
65
- // - 仅负责拿一致性快照,不做耗时的模型调用。
66
- // - 目的是把锁持有时间降到最低。
67
- let snapshot: SessionMessageV1[] = [];
68
- let snapshotTailId = "";
69
- await deps.withWriteLock(async () => {
70
- snapshot = await deps.loadAll();
71
- snapshotTailId =
72
- snapshot.length > 0
73
- ? String(snapshot[snapshot.length - 1].id || "")
74
- : "";
75
- });
76
-
77
- if (snapshot.length < 4) {
78
- return { compacted: false, reason: "small_messages" };
79
- }
80
-
81
- const systemText = (params.system || [])
82
- .map((m) => String(m.content ?? ""))
83
- .join("\n\n");
84
- // 关键点(中文):session messages 现在可能包含 tool parts / output,必须把它们计入预算估算,否则会低估 token。
85
- let messagesJson = "";
86
- try {
87
- messagesJson = JSON.stringify(snapshot);
88
- } catch {
89
- messagesJson = "";
90
- }
91
- const est = estimateTokensApproxFromText(systemText + "\n\n" + messagesJson);
92
- if (est <= params.maxInputTokensApprox) {
93
- return { compacted: false, reason: "under_budget" };
94
- }
95
-
96
- // 关键点(中文):触发 compact 后,优先压缩“最早一段消息”,默认比例 50%。
97
- const compactRatio = normalizeCompactRatio(params.compactRatio);
98
- const compactCount = resolveCompactCount(snapshot.length, compactRatio);
99
- const older = snapshot.slice(0, compactCount);
100
- if (older.length === 0) return { compacted: false, reason: "nothing_to_compact" };
101
-
102
- const olderTextAll = extractPlainTextFromMessages(older);
103
- const maxOlderChars = 24_000;
104
- const olderText =
105
- olderTextAll.length > maxOlderChars
106
- ? "(注意:更早历史过长,已截断保留末尾)\n" + olderTextAll.slice(-maxOlderChars)
107
- : olderTextAll;
108
-
109
- // phase 1.5:生成摘要(不持锁)
110
- // - 这一步最耗时,必须在锁外执行,避免阻塞 append。
111
- let summary = "";
112
- try {
113
- const r = await generateText({
114
- model: params.model,
115
- system: [
116
- {
117
- role: "system",
118
- content:
119
- "你是对话压缩助手。请把更早的对话历史压缩成“可持续复用”的工作摘要。\n" +
120
- "要求:\n" +
121
- "- 输出中文\n" +
122
- "- 不要复述无关细节,不要输出工具原始日志\n" +
123
- "- 必须包含:已确认事实/用户偏好约束/已做决策/未完成事项\n" +
124
- "- 使用 Markdown 列表,控制在 300~800 字",
125
- },
126
- ],
127
- prompt: `请压缩以下更早历史(按 user/assistant 交替记录):\n\n${olderText}`,
128
- });
129
- summary = String(r.text || "").trim();
130
- } catch (e) {
131
- await logger.log(
132
- "warn",
133
- "Session messages compact summary failed, fallback to lossy truncation",
134
- {
135
- sessionId: deps.sessionId,
136
- error: String(e),
137
- },
138
- );
139
- summary = "(系统自动压缩:摘要生成失败,已丢弃更早历史,仅保留最近对话。)";
140
- }
141
-
142
- const fromId = String(older[0]?.id || "");
143
- const toId = String(older[older.length - 1]?.id || "");
144
- const summaryMsg = deps.createSummaryMessage({
145
- text: summary,
146
- sourceRange: fromId && toId ? { fromId, toId, count: older.length } : undefined,
147
- });
148
-
149
- const archiveId = `compact-${Date.now()}-${generateId()}`;
150
-
151
- // phase 2:写入(短锁,且避免覆盖新追加)
152
- // - 以“当前最新 session messages”为准重算 currentOlder / currentKept,避免覆盖并发新消息。
153
- await deps.withWriteLock(async () => {
154
- const current = await deps.loadAll();
155
- if (!current.length) return;
156
-
157
- // 如果 tail 不同,说明期间有新消息追加;我们仍可安全 compact:按“当前长度 + 相同比例”重算。
158
- // snapshotTailId 用于 debug,不作为强一致性依赖。
159
- void snapshotTailId;
160
-
161
- const currentCompactCount = resolveCompactCount(current.length, compactRatio);
162
- const currentOlder = current.slice(0, currentCompactCount);
163
- const currentKept = current.slice(currentCompactCount);
164
- if (currentOlder.length === 0) return;
165
-
166
- if (params.archiveOnCompact) {
167
- const archivePath = path.join(
168
- deps.getArchiveDirPath(),
169
- `${encodeURIComponent(String(archiveId || "").trim())}.json`,
170
- );
171
- await fs.writeJson(
172
- archivePath,
173
- {
174
- v: 1,
175
- sessionId: deps.sessionId,
176
- archivedAt: Date.now(),
177
- messages: currentOlder,
178
- },
179
- { spaces: 2 },
180
- );
181
- }
182
-
183
- const next = [summaryMsg, ...currentKept];
184
-
185
- const messagesPath = deps.getMessagesFilePath();
186
- const tmp = messagesPath + ".tmp";
187
- await fs.writeFile(tmp, next.map((m) => JSON.stringify(m)).join("\n") + "\n", "utf8");
188
- await fs.move(tmp, messagesPath, { overwrite: true });
189
-
190
- const prevMeta = await deps.readMetaUnsafe();
191
- await deps.writeMetaUnsafe({
192
- ...prevMeta,
193
- updatedAt: Date.now(),
194
- lastArchiveId: params.archiveOnCompact ? archiveId : undefined,
195
- keepLastMessages: Math.max(1, currentKept.length),
196
- maxInputTokensApprox: params.maxInputTokensApprox,
197
- compactRatio,
198
- });
199
- });
200
-
201
- return { compacted: true };
202
- }
203
-
204
- /**
205
- * 归一化压缩比例。
206
- *
207
- * 关键点(中文)
208
- * - 仅允许 0.1~0.9,避免“几乎不压缩”或“几乎全压缩”。
209
- */
210
- function normalizeCompactRatio(value: number): number {
211
- if (!Number.isFinite(value)) return 0.5;
212
- return Math.max(0.1, Math.min(0.9, value));
213
- }
214
-
215
- /**
216
- * 按比例计算前段压缩条数。
217
- *
218
- * 关键点(中文)
219
- * - 至少压缩 1 条;
220
- * - 至少保留 1 条未压缩消息。
221
- */
222
- function resolveCompactCount(total: number, ratio: number): number {
223
- const n = Math.max(0, Math.floor(total));
224
- if (n <= 1) return 0;
225
- const raw = Math.floor(n * ratio);
226
- return Math.max(1, Math.min(n - 1, raw));
227
- }
228
-
229
- /**
230
- * 近似 token 估算。
231
- *
232
- * 算法说明(中文)
233
- * - 这里使用经验近似,不追求精确 tokenizer 一致性。
234
- * - 目标是为 compact 提供保守预算,宁可略高估也不要低估。
235
- */
236
- function estimateTokensApproxFromText(text: string): number {
237
- const t = String(text || "");
238
- // 经验值:英文 ~4 chars/token;中文更接近 1-2 chars/token。这里用保守的 3 chars/token。
239
- return Math.ceil(t.length / 3);
240
- }
241
-
242
- /**
243
- * 从 UIMessage 提取可摘要的纯文本。
244
- *
245
- * 关键点(中文)
246
- * - 统一把 user / assistant 内容线性化,作为 compact 摘要输入。
247
- * - tool 原始结构不会原样输出,避免把噪声日志喂给摘要模型。
248
- */
249
- function extractPlainTextFromMessages(messages: SessionMessageV1[]): string {
250
- const lines: string[] = [];
251
- for (const m of messages) {
252
- if (!m || typeof m !== "object") continue;
253
- const role = m.role === "user" ? "user" : "assistant";
254
- const parts = Array.isArray(m.parts) ? m.parts : [];
255
- const textParts = parts.filter(isTextUIPart).map((p) => String(p.text ?? ""));
256
- const text = textParts.join("\n").trim();
257
- if (!text) continue;
258
- lines.push(`${role}: ${text}`);
259
- }
260
- return lines.join("\n");
261
- }