@downcity/agent 1.1.430 → 1.1.438

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 (488) hide show
  1. package/README.md +13 -11
  2. package/bin/agent/Agent.d.ts +3 -3
  3. package/bin/agent/Agent.d.ts.map +1 -1
  4. package/bin/agent/Agent.js +38 -8
  5. package/bin/agent/Agent.js.map +1 -1
  6. package/bin/agent/AgentInstructions.js +2 -2
  7. package/bin/agent/AgentInstructions.js.map +1 -1
  8. package/bin/agent/AgentMemoryStorage.d.ts.map +1 -1
  9. package/bin/agent/AgentMemoryStorage.js +1 -0
  10. package/bin/agent/AgentMemoryStorage.js.map +1 -1
  11. package/bin/agent/AgentSessions.d.ts +5 -1
  12. package/bin/agent/AgentSessions.d.ts.map +1 -1
  13. package/bin/agent/AgentSessions.js +17 -9
  14. package/bin/agent/AgentSessions.js.map +1 -1
  15. package/bin/executor/Executor.d.ts +9 -27
  16. package/bin/executor/Executor.d.ts.map +1 -1
  17. package/bin/executor/Executor.js +32 -127
  18. package/bin/executor/Executor.js.map +1 -1
  19. package/bin/executor/composer/system/default/SystemPromptAssets.d.ts +0 -4
  20. package/bin/executor/composer/system/default/SystemPromptAssets.d.ts.map +1 -1
  21. package/bin/executor/composer/system/default/SystemPromptAssets.js +0 -5
  22. package/bin/executor/composer/system/default/SystemPromptAssets.js.map +1 -1
  23. package/bin/executor/core-engine/CoreEngineContextCompaction.d.ts +3 -9
  24. package/bin/executor/core-engine/CoreEngineContextCompaction.d.ts.map +1 -1
  25. package/bin/executor/core-engine/CoreEngineContextCompaction.js +4 -130
  26. package/bin/executor/core-engine/CoreEngineContextCompaction.js.map +1 -1
  27. package/bin/executor/core-engine/CoreEngineRunner.d.ts +3 -30
  28. package/bin/executor/core-engine/CoreEngineRunner.d.ts.map +1 -1
  29. package/bin/executor/core-engine/CoreEngineRunner.js +38 -194
  30. package/bin/executor/core-engine/CoreEngineRunner.js.map +1 -1
  31. package/bin/executor/core-engine/CoreEngineSignals.d.ts +6 -6
  32. package/bin/executor/core-engine/CoreEngineSignals.d.ts.map +1 -1
  33. package/bin/executor/core-engine/CoreEngineSignals.js +1 -1
  34. package/bin/executor/core-engine/CoreEngineSignals.js.map +1 -1
  35. package/bin/executor/messages/SessionAttachmentMapper.d.ts +2 -2
  36. package/bin/executor/messages/SessionAttachmentMapper.d.ts.map +1 -1
  37. package/bin/executor/messages/SessionAttachmentMapper.js.map +1 -1
  38. package/bin/executor/messages/SessionMessageLog.d.ts +3 -3
  39. package/bin/executor/messages/SessionMessageLog.d.ts.map +1 -1
  40. package/bin/executor/messages/SessionMessageLog.js.map +1 -1
  41. package/bin/executor/messages/SessionModelMessages.d.ts +0 -3
  42. package/bin/executor/messages/SessionModelMessages.d.ts.map +1 -1
  43. package/bin/executor/messages/SessionModelMessages.js +80 -97
  44. package/bin/executor/messages/SessionModelMessages.js.map +1 -1
  45. package/bin/executor/model/ModelStepRunner.d.ts +2 -6
  46. package/bin/executor/model/ModelStepRunner.d.ts.map +1 -1
  47. package/bin/executor/model/ModelStepRunner.js +0 -28
  48. package/bin/executor/model/ModelStepRunner.js.map +1 -1
  49. package/bin/executor/services/ExecutorRecoveryPolicy.d.ts +7 -64
  50. package/bin/executor/services/ExecutorRecoveryPolicy.d.ts.map +1 -1
  51. package/bin/executor/services/ExecutorRecoveryPolicy.js +29 -45
  52. package/bin/executor/services/ExecutorRecoveryPolicy.js.map +1 -1
  53. package/bin/executor/types/SessionHistoryMeta.d.ts +1 -3
  54. package/bin/executor/types/SessionHistoryMeta.d.ts.map +1 -1
  55. package/bin/executor/types/SessionHistoryMeta.js +1 -1
  56. package/bin/index.d.ts +9 -13
  57. package/bin/index.d.ts.map +1 -1
  58. package/bin/index.js +2 -4
  59. package/bin/index.js.map +1 -1
  60. package/bin/session/DefaultSessionComposer.d.ts +13 -7
  61. package/bin/session/DefaultSessionComposer.d.ts.map +1 -1
  62. package/bin/session/DefaultSessionComposer.js +26 -21
  63. package/bin/session/DefaultSessionComposer.js.map +1 -1
  64. package/bin/session/Session.d.ts +12 -19
  65. package/bin/session/Session.d.ts.map +1 -1
  66. package/bin/session/Session.js +70 -202
  67. package/bin/session/Session.js.map +1 -1
  68. package/bin/session/SessionComposition.d.ts +0 -2
  69. package/bin/session/SessionComposition.d.ts.map +1 -1
  70. package/bin/session/SessionComposition.js +30 -54
  71. package/bin/session/SessionComposition.js.map +1 -1
  72. package/bin/session/SessionLoop.d.ts +17 -16
  73. package/bin/session/SessionLoop.d.ts.map +1 -1
  74. package/bin/session/SessionLoop.js +217 -320
  75. package/bin/session/SessionLoop.js.map +1 -1
  76. package/bin/session/SessionMessages.d.ts +52 -44
  77. package/bin/session/SessionMessages.d.ts.map +1 -1
  78. package/bin/session/SessionMessages.js +285 -187
  79. package/bin/session/SessionMessages.js.map +1 -1
  80. package/bin/session/SessionQueue.d.ts +1 -1
  81. package/bin/session/SessionQueue.d.ts.map +1 -1
  82. package/bin/session/SessionQueue.js +2 -1
  83. package/bin/session/SessionQueue.js.map +1 -1
  84. package/bin/session/SessionState.d.ts +3 -7
  85. package/bin/session/SessionState.d.ts.map +1 -1
  86. package/bin/session/SessionState.js +50 -89
  87. package/bin/session/SessionState.js.map +1 -1
  88. package/bin/session/SessionSystem.d.ts +5 -1
  89. package/bin/session/SessionSystem.d.ts.map +1 -1
  90. package/bin/session/SessionSystem.js +40 -0
  91. package/bin/session/SessionSystem.js.map +1 -1
  92. package/bin/session/SessionTitle.d.ts +3 -3
  93. package/bin/session/SessionTitle.d.ts.map +1 -1
  94. package/bin/session/SessionTitle.js +2 -2
  95. package/bin/session/browse/Browse.d.ts +32 -46
  96. package/bin/session/browse/Browse.d.ts.map +1 -1
  97. package/bin/session/browse/Browse.js +104 -360
  98. package/bin/session/browse/Browse.js.map +1 -1
  99. package/bin/session/browse/SessionMessageTimeline.d.ts.map +1 -1
  100. package/bin/session/browse/SessionMessageTimeline.js +61 -37
  101. package/bin/session/browse/SessionMessageTimeline.js.map +1 -1
  102. package/bin/session/composer/policies/AdaptivePartContextPolicy.d.ts +35 -0
  103. package/bin/session/composer/policies/AdaptivePartContextPolicy.d.ts.map +1 -0
  104. package/bin/session/composer/policies/AdaptivePartContextPolicy.js +256 -0
  105. package/bin/session/composer/policies/AdaptivePartContextPolicy.js.map +1 -0
  106. package/bin/session/composer/policies/FullHistoryContextPolicy.d.ts +24 -0
  107. package/bin/session/composer/policies/FullHistoryContextPolicy.d.ts.map +1 -0
  108. package/bin/session/composer/policies/FullHistoryContextPolicy.js +31 -0
  109. package/bin/session/composer/policies/FullHistoryContextPolicy.js.map +1 -0
  110. package/bin/session/composer/policies/SessionSummaryPrompts.d.ts +16 -0
  111. package/bin/session/composer/policies/SessionSummaryPrompts.d.ts.map +1 -0
  112. package/bin/session/composer/policies/SessionSummaryPrompts.js +32 -0
  113. package/bin/session/composer/policies/SessionSummaryPrompts.js.map +1 -0
  114. package/bin/session/execution/SessionAssistantOutputAdapter.d.ts +15 -4
  115. package/bin/session/execution/SessionAssistantOutputAdapter.d.ts.map +1 -1
  116. package/bin/session/execution/SessionAssistantOutputAdapter.js +7 -3
  117. package/bin/session/execution/SessionAssistantOutputAdapter.js.map +1 -1
  118. package/bin/session/messages/{SessionActionMessageWriter.d.ts → SessionAgentActionPartWriter.d.ts} +7 -7
  119. package/bin/session/messages/SessionAgentActionPartWriter.d.ts.map +1 -0
  120. package/bin/session/messages/{SessionActionMessageWriter.js → SessionAgentActionPartWriter.js} +7 -7
  121. package/bin/session/messages/SessionAgentActionPartWriter.js.map +1 -0
  122. package/bin/session/messages/SessionAgentContent.d.ts +10 -0
  123. package/bin/session/messages/SessionAgentContent.d.ts.map +1 -0
  124. package/bin/session/messages/SessionAgentContent.js +44 -0
  125. package/bin/session/messages/SessionAgentContent.js.map +1 -0
  126. package/bin/session/messages/SessionAgentMessageState.d.ts +50 -0
  127. package/bin/session/messages/SessionAgentMessageState.d.ts.map +1 -0
  128. package/bin/session/messages/SessionAgentMessageState.js +283 -0
  129. package/bin/session/messages/SessionAgentMessageState.js.map +1 -0
  130. package/bin/session/messages/{SessionAssistantMessageWriter.d.ts → SessionAgentMessageWriter.d.ts} +22 -8
  131. package/bin/session/messages/SessionAgentMessageWriter.d.ts.map +1 -0
  132. package/bin/session/messages/{SessionAssistantMessageWriter.js → SessionAgentMessageWriter.js} +54 -42
  133. package/bin/session/messages/SessionAgentMessageWriter.js.map +1 -0
  134. package/bin/session/messages/SessionForkMessageFiles.d.ts +11 -0
  135. package/bin/session/messages/SessionForkMessageFiles.d.ts.map +1 -1
  136. package/bin/session/messages/SessionForkMessageFiles.js +8 -2
  137. package/bin/session/messages/SessionForkMessageFiles.js.map +1 -1
  138. package/bin/session/messages/SessionMessageInteractionWriter.d.ts +6 -6
  139. package/bin/session/messages/SessionMessageInteractionWriter.d.ts.map +1 -1
  140. package/bin/session/messages/SessionMessageInteractionWriter.js +4 -4
  141. package/bin/session/messages/SessionMessageInteractionWriter.js.map +1 -1
  142. package/bin/session/messages/SessionMessageText.d.ts +3 -3
  143. package/bin/session/messages/SessionMessageText.d.ts.map +1 -1
  144. package/bin/session/messages/SessionMessageText.js +0 -2
  145. package/bin/session/messages/SessionMessageText.js.map +1 -1
  146. package/bin/session/messages/SessionTurnFileDiffData.d.ts +3 -3
  147. package/bin/session/messages/SessionTurnFileDiffData.d.ts.map +1 -1
  148. package/bin/session/messages/SessionTurnFileDiffData.js.map +1 -1
  149. package/bin/session/messages/SessionUserMessage.d.ts +3 -3
  150. package/bin/session/messages/SessionUserMessage.d.ts.map +1 -1
  151. package/bin/session/messages/SessionUserMessage.js +6 -3
  152. package/bin/session/messages/SessionUserMessage.js.map +1 -1
  153. package/bin/session/preview/SessionMessagePreview.d.ts.map +1 -1
  154. package/bin/session/preview/SessionMessagePreview.js +25 -9
  155. package/bin/session/preview/SessionMessagePreview.js.map +1 -1
  156. package/bin/session/runtime/SessionTurnCompletion.d.ts +15 -0
  157. package/bin/session/runtime/SessionTurnCompletion.d.ts.map +1 -0
  158. package/bin/session/runtime/SessionTurnCompletion.js +126 -0
  159. package/bin/session/runtime/SessionTurnCompletion.js.map +1 -0
  160. package/bin/session/runtime/SessionTurnContext.d.ts.map +1 -1
  161. package/bin/session/runtime/SessionTurnContext.js +14 -19
  162. package/bin/session/runtime/SessionTurnContext.js.map +1 -1
  163. package/bin/session/runtime/SessionTurnFileDiff.d.ts +12 -0
  164. package/bin/session/runtime/SessionTurnFileDiff.d.ts.map +1 -0
  165. package/bin/session/runtime/SessionTurnFileDiff.js +71 -0
  166. package/bin/session/runtime/SessionTurnFileDiff.js.map +1 -0
  167. package/bin/session/storage/LocalSessionDataStore.d.ts +6 -41
  168. package/bin/session/storage/LocalSessionDataStore.d.ts.map +1 -1
  169. package/bin/session/storage/LocalSessionDataStore.js +19 -101
  170. package/bin/session/storage/LocalSessionDataStore.js.map +1 -1
  171. package/bin/session/storage/LocalSessionStore.d.ts +13 -5
  172. package/bin/session/storage/LocalSessionStore.d.ts.map +1 -1
  173. package/bin/session/storage/LocalSessionStore.js +153 -30
  174. package/bin/session/storage/LocalSessionStore.js.map +1 -1
  175. package/bin/session/storage/LocalStorePaths.d.ts +4 -16
  176. package/bin/session/storage/LocalStorePaths.d.ts.map +1 -1
  177. package/bin/session/storage/LocalStorePaths.js +7 -31
  178. package/bin/session/storage/LocalStorePaths.js.map +1 -1
  179. package/bin/session/storage/Metadata.d.ts +4 -4
  180. package/bin/session/storage/Metadata.d.ts.map +1 -1
  181. package/bin/session/storage/Metadata.js +3 -11
  182. package/bin/session/storage/Metadata.js.map +1 -1
  183. package/bin/session/storage/RuntimeSessionPort.d.ts +4 -4
  184. package/bin/session/storage/RuntimeSessionPort.d.ts.map +1 -1
  185. package/bin/session/storage/RuntimeSessionPort.js +3 -3
  186. package/bin/session/storage/RuntimeSessionPort.js.map +1 -1
  187. package/bin/session/storage/SessionStorageCodec.d.ts +59 -0
  188. package/bin/session/storage/SessionStorageCodec.d.ts.map +1 -0
  189. package/bin/session/storage/SessionStorageCodec.js +331 -0
  190. package/bin/session/storage/SessionStorageCodec.js.map +1 -0
  191. package/bin/session/storage/SessionStorageSchema.d.ts +11 -0
  192. package/bin/session/storage/SessionStorageSchema.d.ts.map +1 -0
  193. package/bin/session/storage/SessionStorageSchema.js +131 -0
  194. package/bin/session/storage/SessionStorageSchema.js.map +1 -0
  195. package/bin/session/storage/SqliteSessionStorage.d.ts +120 -0
  196. package/bin/session/storage/SqliteSessionStorage.d.ts.map +1 -0
  197. package/bin/session/storage/SqliteSessionStorage.js +581 -0
  198. package/bin/session/storage/SqliteSessionStorage.js.map +1 -0
  199. package/bin/tools/ask/AskQuestionsTool.d.ts.map +1 -1
  200. package/bin/tools/ask/AskQuestionsTool.js +3 -1
  201. package/bin/tools/ask/AskQuestionsTool.js.map +1 -1
  202. package/bin/types/action/ActionResult.d.ts +9 -9
  203. package/bin/types/action/ActionResult.d.ts.map +1 -1
  204. package/bin/types/action/ActionResult.js +1 -1
  205. package/bin/types/agent/AgentOptions.d.ts +10 -0
  206. package/bin/types/agent/AgentOptions.d.ts.map +1 -1
  207. package/bin/types/agent/AgentStorage.d.ts +3 -1
  208. package/bin/types/agent/AgentStorage.d.ts.map +1 -1
  209. package/bin/types/agent/SessionActor.d.ts +0 -9
  210. package/bin/types/agent/SessionActor.d.ts.map +1 -1
  211. package/bin/types/agent/SessionTypes.d.ts +5 -5
  212. package/bin/types/agent/SessionTypes.d.ts.map +1 -1
  213. package/bin/types/executor/SessionAssistantOutput.d.ts +15 -4
  214. package/bin/types/executor/SessionAssistantOutput.d.ts.map +1 -1
  215. package/bin/types/executor/SessionTurnContext.d.ts +17 -19
  216. package/bin/types/executor/SessionTurnContext.d.ts.map +1 -1
  217. package/bin/types/sdk/AgentSessionAction.d.ts +1 -1
  218. package/bin/types/sdk/AgentSessionAction.js +1 -1
  219. package/bin/types/sdk/AgentSessionPrompt.d.ts +14 -5
  220. package/bin/types/sdk/AgentSessionPrompt.d.ts.map +1 -1
  221. package/bin/types/sdk/AgentSessionPrompt.js +1 -1
  222. package/bin/types/sdk/AgentSessionPrompt.js.map +1 -1
  223. package/bin/types/session/AdaptivePartContextPolicy.d.ts +31 -0
  224. package/bin/types/session/AdaptivePartContextPolicy.d.ts.map +1 -0
  225. package/bin/types/session/AdaptivePartContextPolicy.js +7 -0
  226. package/bin/types/session/AdaptivePartContextPolicy.js.map +1 -0
  227. package/bin/types/session/{SessionAssistantMessageState.d.ts → SessionAgentMessageState.d.ts} +7 -7
  228. package/bin/types/session/SessionAgentMessageState.d.ts.map +1 -0
  229. package/bin/types/session/{SessionAssistantMessageState.js → SessionAgentMessageState.js} +1 -1
  230. package/bin/types/session/SessionAgentMessageState.js.map +1 -0
  231. package/bin/types/session/SessionCommand.d.ts +19 -7
  232. package/bin/types/session/SessionCommand.d.ts.map +1 -1
  233. package/bin/types/session/SessionComposer.d.ts +43 -43
  234. package/bin/types/session/SessionComposer.d.ts.map +1 -1
  235. package/bin/types/session/SessionComposer.js +2 -2
  236. package/bin/types/session/SessionComposition.d.ts +2 -5
  237. package/bin/types/session/SessionComposition.d.ts.map +1 -1
  238. package/bin/types/session/SessionContextPolicy.d.ts +70 -0
  239. package/bin/types/session/SessionContextPolicy.d.ts.map +1 -0
  240. package/bin/types/session/SessionContextPolicy.js +8 -0
  241. package/bin/types/session/SessionContextPolicy.js.map +1 -0
  242. package/bin/types/session/SessionExecution.d.ts +5 -32
  243. package/bin/types/session/SessionExecution.d.ts.map +1 -1
  244. package/bin/types/session/SessionLoop.d.ts +3 -5
  245. package/bin/types/session/SessionLoop.d.ts.map +1 -1
  246. package/bin/types/session/SessionMessages.d.ts +18 -28
  247. package/bin/types/session/SessionMessages.d.ts.map +1 -1
  248. package/bin/types/session/SessionOptions.d.ts +5 -5
  249. package/bin/types/session/SessionOptions.d.ts.map +1 -1
  250. package/bin/types/session/SessionPort.d.ts +8 -9
  251. package/bin/types/session/SessionPort.d.ts.map +1 -1
  252. package/bin/types/session/SessionState.d.ts +2 -5
  253. package/bin/types/session/SessionState.d.ts.map +1 -1
  254. package/bin/types/session/SessionSystem.d.ts +14 -0
  255. package/bin/types/session/SessionSystem.d.ts.map +1 -1
  256. package/bin/types/session/SessionTool.d.ts +2 -2
  257. package/bin/types/session/SessionTool.d.ts.map +1 -1
  258. package/bin/types/session/SessionTurnCompletion.d.ts +23 -0
  259. package/bin/types/session/SessionTurnCompletion.d.ts.map +1 -0
  260. package/bin/types/session/SessionTurnCompletion.js +8 -0
  261. package/bin/types/session/SessionTurnCompletion.js.map +1 -0
  262. package/bin/types/session/SessionTurnFileDiff.d.ts +42 -0
  263. package/bin/types/session/SessionTurnFileDiff.d.ts.map +1 -0
  264. package/bin/types/session/SessionTurnFileDiff.js +8 -0
  265. package/bin/types/session/SessionTurnFileDiff.js.map +1 -0
  266. package/bin/types/store/LocalStore.d.ts +6 -13
  267. package/bin/types/store/LocalStore.d.ts.map +1 -1
  268. package/bin/types/store/LocalStore.js +1 -1
  269. package/bin/types/store/SessionStorage.d.ts +103 -0
  270. package/bin/types/store/SessionStorage.d.ts.map +1 -0
  271. package/bin/types/store/SessionStorage.js +8 -0
  272. package/bin/types/store/SessionStorage.js.map +1 -0
  273. package/bin/types/store/SessionStore.d.ts +5 -3
  274. package/bin/types/store/SessionStore.d.ts.map +1 -1
  275. package/package.json +2 -2
  276. package/scripts/core-engine-context-compaction.test.mjs +96 -219
  277. package/scripts/core-engine-model-stream.test.mjs +2 -4
  278. package/scripts/executor-failure-result.test.mjs +14 -17
  279. package/scripts/session-agent-message-part-order.test.mjs +63 -0
  280. package/scripts/session-initialization.test.mjs +141 -0
  281. package/scripts/session-message-timeline.test.mjs +5 -6
  282. package/scripts/session-messages-error-part.test.mjs +175 -0
  283. package/scripts/session-messages-error.test.mjs +47 -6
  284. package/scripts/session-prompt-idempotency.test.mjs +91 -0
  285. package/scripts/session-queue.test.mjs +13 -12
  286. package/scripts/session-storage-sqlite.test.mjs +209 -0
  287. package/scripts/session-turn-context.test.mjs +21 -33
  288. package/src/agent/Agent.ts +48 -12
  289. package/src/agent/AgentInstructions.ts +2 -2
  290. package/src/agent/AgentMemoryStorage.ts +1 -0
  291. package/src/agent/AgentSessions.ts +31 -12
  292. package/src/executor/Executor.ts +47 -184
  293. package/src/executor/README.md +12 -13
  294. package/src/executor/composer/system/default/SystemPromptAssets.ts +0 -6
  295. package/src/executor/core-engine/CoreEngineContextCompaction.ts +3 -135
  296. package/src/executor/core-engine/CoreEngineRunner.ts +51 -273
  297. package/src/executor/core-engine/CoreEngineSignals.ts +9 -9
  298. package/src/executor/messages/SessionAttachmentMapper.ts +4 -4
  299. package/src/executor/messages/SessionMessageLog.ts +3 -3
  300. package/src/executor/messages/SessionModelMessages.ts +85 -103
  301. package/src/executor/model/ModelStepRunner.ts +9 -41
  302. package/src/executor/services/ExecutorRecoveryPolicy.ts +34 -127
  303. package/src/executor/types/SessionHistoryMeta.ts +1 -3
  304. package/src/index.ts +39 -47
  305. package/src/session/DefaultSessionComposer.ts +33 -30
  306. package/src/session/Session.ts +96 -227
  307. package/src/session/SessionComposition.ts +28 -65
  308. package/src/session/SessionLoop.ts +267 -370
  309. package/src/session/SessionMessages.ts +363 -242
  310. package/src/session/SessionQueue.ts +3 -2
  311. package/src/session/SessionState.ts +55 -101
  312. package/src/session/SessionSystem.ts +51 -1
  313. package/src/session/SessionTitle.ts +4 -4
  314. package/src/session/browse/Browse.ts +182 -468
  315. package/src/session/browse/SessionMessageTimeline.ts +63 -38
  316. package/src/session/composer/policies/AdaptivePartContextPolicy.ts +307 -0
  317. package/src/session/composer/policies/FullHistoryContextPolicy.ts +36 -0
  318. package/src/session/composer/policies/SessionSummaryPrompts.ts +42 -0
  319. package/src/session/execution/SessionAssistantOutputAdapter.ts +25 -11
  320. package/src/session/messages/{SessionActionMessageWriter.ts → SessionAgentActionPartWriter.ts} +8 -8
  321. package/src/session/messages/SessionAgentContent.ts +56 -0
  322. package/src/session/messages/SessionAgentMessageState.ts +378 -0
  323. package/src/session/messages/{SessionAssistantMessageWriter.ts → SessionAgentMessageWriter.ts} +89 -60
  324. package/src/session/messages/SessionForkMessageFiles.ts +25 -1
  325. package/src/session/messages/SessionMessageInteractionWriter.ts +19 -19
  326. package/src/session/messages/SessionMessageText.ts +3 -4
  327. package/src/session/messages/SessionTurnFileDiffData.ts +3 -3
  328. package/src/session/messages/SessionUserMessage.ts +10 -7
  329. package/src/session/preview/SessionMessagePreview.ts +26 -9
  330. package/src/session/runtime/SessionTurnCompletion.ts +159 -0
  331. package/src/session/runtime/SessionTurnContext.ts +20 -21
  332. package/src/session/runtime/SessionTurnFileDiff.ts +105 -0
  333. package/src/session/storage/LocalSessionDataStore.ts +27 -176
  334. package/src/session/storage/LocalSessionStore.ts +170 -38
  335. package/src/session/storage/LocalStorePaths.ts +14 -86
  336. package/src/session/storage/Metadata.ts +4 -13
  337. package/src/session/storage/RuntimeSessionPort.ts +7 -7
  338. package/src/session/storage/SessionStorageCodec.ts +465 -0
  339. package/src/session/storage/SessionStorageSchema.ts +132 -0
  340. package/src/session/storage/SqliteSessionStorage.ts +776 -0
  341. package/src/tools/ask/AskQuestionsTool.ts +3 -1
  342. package/src/types/action/ActionResult.ts +10 -10
  343. package/src/types/agent/AgentOptions.ts +11 -0
  344. package/src/types/agent/AgentStorage.ts +3 -1
  345. package/src/types/agent/SessionActor.ts +0 -10
  346. package/src/types/agent/SessionTypes.ts +5 -5
  347. package/src/types/executor/SessionAssistantOutput.ts +15 -4
  348. package/src/types/executor/SessionTurnContext.ts +25 -22
  349. package/src/types/sdk/AgentSessionAction.ts +1 -1
  350. package/src/types/sdk/AgentSessionPrompt.ts +15 -5
  351. package/src/types/session/AdaptivePartContextPolicy.ts +37 -0
  352. package/src/types/session/{SessionAssistantMessageState.ts → SessionAgentMessageState.ts} +6 -6
  353. package/src/types/session/SessionCommand.ts +21 -7
  354. package/src/types/session/SessionComposer.ts +48 -48
  355. package/src/types/session/SessionComposition.ts +2 -5
  356. package/src/types/session/SessionContextPolicy.ts +77 -0
  357. package/src/types/session/SessionExecution.ts +11 -36
  358. package/src/types/session/SessionLoop.ts +3 -8
  359. package/src/types/session/SessionMessages.ts +19 -29
  360. package/src/types/session/SessionOptions.ts +5 -5
  361. package/src/types/session/SessionPort.ts +10 -10
  362. package/src/types/session/SessionState.ts +2 -5
  363. package/src/types/session/SessionSystem.ts +19 -0
  364. package/src/types/session/SessionTool.ts +2 -2
  365. package/src/types/session/SessionTurnCompletion.ts +24 -0
  366. package/src/types/session/SessionTurnFileDiff.ts +44 -0
  367. package/src/types/store/LocalStore.ts +6 -14
  368. package/src/types/store/SessionStorage.ts +121 -0
  369. package/src/types/store/SessionStore.ts +6 -3
  370. package/tsconfig.tsbuildinfo +1 -1
  371. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.d.ts +0 -45
  372. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.d.ts.map +0 -1
  373. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.js +0 -144
  374. package/bin/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.js.map +0 -1
  375. package/bin/executor/composer/system/SessionSystemComposer.d.ts +0 -23
  376. package/bin/executor/composer/system/SessionSystemComposer.d.ts.map +0 -1
  377. package/bin/executor/composer/system/SessionSystemComposer.js +0 -9
  378. package/bin/executor/composer/system/SessionSystemComposer.js.map +0 -1
  379. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts +0 -43
  380. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.d.ts.map +0 -1
  381. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.js +0 -42
  382. package/bin/executor/composer/system/default/DefaultSessionSystemComposer.js.map +0 -1
  383. package/bin/executor/composer/system/default/PromptRenderer.d.ts +0 -35
  384. package/bin/executor/composer/system/default/PromptRenderer.d.ts.map +0 -1
  385. package/bin/executor/composer/system/default/PromptRenderer.js +0 -23
  386. package/bin/executor/composer/system/default/PromptRenderer.js.map +0 -1
  387. package/bin/executor/composer/system/default/SystemDomain.d.ts +0 -151
  388. package/bin/executor/composer/system/default/SystemDomain.d.ts.map +0 -1
  389. package/bin/executor/composer/system/default/SystemDomain.js +0 -162
  390. package/bin/executor/composer/system/default/SystemDomain.js.map +0 -1
  391. package/bin/executor/composer/system/default/assets/task.prompt.d.ts +0 -7
  392. package/bin/executor/composer/system/default/assets/task.prompt.d.ts.map +0 -1
  393. package/bin/executor/composer/system/default/assets/task.prompt.js +0 -8
  394. package/bin/executor/composer/system/default/assets/task.prompt.js.map +0 -1
  395. package/bin/executor/composer/system/default/variables/GeoContext.d.ts +0 -14
  396. package/bin/executor/composer/system/default/variables/GeoContext.d.ts.map +0 -1
  397. package/bin/executor/composer/system/default/variables/GeoContext.js +0 -150
  398. package/bin/executor/composer/system/default/variables/GeoContext.js.map +0 -1
  399. package/bin/executor/composer/system/default/variables/PromptTypes.d.ts +0 -36
  400. package/bin/executor/composer/system/default/variables/PromptTypes.d.ts.map +0 -1
  401. package/bin/executor/composer/system/default/variables/PromptTypes.js +0 -9
  402. package/bin/executor/composer/system/default/variables/PromptTypes.js.map +0 -1
  403. package/bin/executor/composer/system/default/variables/VariableReplacer.d.ts +0 -61
  404. package/bin/executor/composer/system/default/variables/VariableReplacer.d.ts.map +0 -1
  405. package/bin/executor/composer/system/default/variables/VariableReplacer.js +0 -93
  406. package/bin/executor/composer/system/default/variables/VariableReplacer.js.map +0 -1
  407. package/bin/executor/core-engine/CoreEngineMessageState.d.ts +0 -63
  408. package/bin/executor/core-engine/CoreEngineMessageState.d.ts.map +0 -1
  409. package/bin/executor/core-engine/CoreEngineMessageState.js +0 -81
  410. package/bin/executor/core-engine/CoreEngineMessageState.js.map +0 -1
  411. package/bin/session/SessionCommand.d.ts +0 -24
  412. package/bin/session/SessionCommand.d.ts.map +0 -1
  413. package/bin/session/SessionCommand.js +0 -35
  414. package/bin/session/SessionCommand.js.map +0 -1
  415. package/bin/session/messages/SessionActionMessageWriter.d.ts.map +0 -1
  416. package/bin/session/messages/SessionActionMessageWriter.js.map +0 -1
  417. package/bin/session/messages/SessionAssistantMessageState.d.ts +0 -49
  418. package/bin/session/messages/SessionAssistantMessageState.d.ts.map +0 -1
  419. package/bin/session/messages/SessionAssistantMessageState.js +0 -296
  420. package/bin/session/messages/SessionAssistantMessageState.js.map +0 -1
  421. package/bin/session/messages/SessionAssistantMessageWriter.d.ts.map +0 -1
  422. package/bin/session/messages/SessionAssistantMessageWriter.js.map +0 -1
  423. package/bin/session/messages/SessionMessageCompaction.d.ts +0 -29
  424. package/bin/session/messages/SessionMessageCompaction.d.ts.map +0 -1
  425. package/bin/session/messages/SessionMessageCompaction.js +0 -128
  426. package/bin/session/messages/SessionMessageCompaction.js.map +0 -1
  427. package/bin/session/runtime/SessionCompactOperation.d.ts +0 -29
  428. package/bin/session/runtime/SessionCompactOperation.d.ts.map +0 -1
  429. package/bin/session/runtime/SessionCompactOperation.js +0 -66
  430. package/bin/session/runtime/SessionCompactOperation.js.map +0 -1
  431. package/bin/session/runtime/SessionHistoryCompaction.d.ts +0 -22
  432. package/bin/session/runtime/SessionHistoryCompaction.d.ts.map +0 -1
  433. package/bin/session/runtime/SessionHistoryCompaction.js +0 -31
  434. package/bin/session/runtime/SessionHistoryCompaction.js.map +0 -1
  435. package/bin/session/storage/JsonlSessionMessageStore.d.ts +0 -77
  436. package/bin/session/storage/JsonlSessionMessageStore.d.ts.map +0 -1
  437. package/bin/session/storage/JsonlSessionMessageStore.js +0 -419
  438. package/bin/session/storage/JsonlSessionMessageStore.js.map +0 -1
  439. package/bin/session/storage/SessionMessageStoreFactory.d.ts +0 -12
  440. package/bin/session/storage/SessionMessageStoreFactory.d.ts.map +0 -1
  441. package/bin/session/storage/SessionMessageStoreFactory.js +0 -13
  442. package/bin/session/storage/SessionMessageStoreFactory.js.map +0 -1
  443. package/bin/types/common/Template.d.ts +0 -9
  444. package/bin/types/common/Template.d.ts.map +0 -1
  445. package/bin/types/common/Template.js +0 -9
  446. package/bin/types/common/Template.js.map +0 -1
  447. package/bin/types/sdk/AgentSessionCompact.d.ts +0 -30
  448. package/bin/types/sdk/AgentSessionCompact.d.ts.map +0 -1
  449. package/bin/types/sdk/AgentSessionCompact.js +0 -8
  450. package/bin/types/sdk/AgentSessionCompact.js.map +0 -1
  451. package/bin/types/session/SessionAssistantMessageState.d.ts.map +0 -1
  452. package/bin/types/session/SessionAssistantMessageState.js.map +0 -1
  453. package/bin/types/session/SessionSegment.d.ts +0 -57
  454. package/bin/types/session/SessionSegment.d.ts.map +0 -1
  455. package/bin/types/session/SessionSegment.js +0 -8
  456. package/bin/types/session/SessionSegment.js.map +0 -1
  457. package/bin/types/store/SessionDataStore.d.ts +0 -88
  458. package/bin/types/store/SessionDataStore.d.ts.map +0 -1
  459. package/bin/types/store/SessionDataStore.js +0 -9
  460. package/bin/types/store/SessionDataStore.js.map +0 -1
  461. package/bin/utils/Template.d.ts +0 -17
  462. package/bin/utils/Template.d.ts.map +0 -1
  463. package/bin/utils/Template.js +0 -24
  464. package/bin/utils/Template.js.map +0 -1
  465. package/scripts/session-compaction-prompts.test.mjs +0 -49
  466. package/src/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.ts +0 -162
  467. package/src/executor/composer/system/SessionSystemComposer.ts +0 -25
  468. package/src/executor/composer/system/default/DefaultSessionSystemComposer.ts +0 -76
  469. package/src/executor/composer/system/default/PromptRenderer.ts +0 -52
  470. package/src/executor/composer/system/default/SystemDomain.ts +0 -301
  471. package/src/executor/composer/system/default/assets/task.prompt.ts +0 -9
  472. package/src/executor/composer/system/default/assets/task.prompt.ts.txt +0 -33
  473. package/src/executor/composer/system/default/variables/GeoContext.ts +0 -180
  474. package/src/executor/composer/system/default/variables/PromptTypes.ts +0 -37
  475. package/src/executor/composer/system/default/variables/VariableReplacer.ts +0 -154
  476. package/src/executor/core-engine/CoreEngineMessageState.ts +0 -117
  477. package/src/session/SessionCommand.ts +0 -42
  478. package/src/session/messages/SessionAssistantMessageState.ts +0 -392
  479. package/src/session/messages/SessionMessageCompaction.ts +0 -160
  480. package/src/session/runtime/SessionCompactOperation.ts +0 -93
  481. package/src/session/runtime/SessionHistoryCompaction.ts +0 -45
  482. package/src/session/storage/JsonlSessionMessageStore.ts +0 -513
  483. package/src/session/storage/SessionMessageStoreFactory.ts +0 -18
  484. package/src/types/common/Template.ts +0 -9
  485. package/src/types/sdk/AgentSessionCompact.ts +0 -32
  486. package/src/types/session/SessionSegment.ts +0 -62
  487. package/src/types/store/SessionDataStore.ts +0 -113
  488. package/src/utils/Template.ts +0 -28
@@ -1,45 +0,0 @@
1
- /**
2
- * JsonlSessionCompactionPrompts:上下文压缩提示词模块。
3
- *
4
- * 关键点(中文)
5
- * - 统一维护 session compact 使用的 system prompt 与 user prompt。
6
- * - 支持初始压缩、迭代更新压缩、turn prefix 压缩三类场景。
7
- * - prompt 文本保持结构化格式稳定,便于后续 LLM 继续接力。
8
- */
9
- /**
10
- * 上下文压缩 system prompt。
11
- */
12
- export declare const SESSION_COMPACTION_SYSTEM_PROMPT: string;
13
- /**
14
- * 构建初始上下文压缩 prompt。
15
- */
16
- export declare function build_initial_session_compaction_prompt(params: {
17
- /** 待压缩的历史对话文本。 */
18
- conversation_text: string;
19
- }): string;
20
- /**
21
- * 构建迭代更新上下文压缩 prompt。
22
- */
23
- export declare function build_update_session_compaction_prompt(params: {
24
- /** 已存在的旧摘要。 */
25
- previous_summary: string;
26
- /** 本次需要合入旧摘要的新对话文本。 */
27
- new_conversation_text: string;
28
- }): string;
29
- /**
30
- * 构建 turn prefix 压缩 prompt。
31
- */
32
- export declare function build_turn_prefix_session_compaction_prompt(params: {
33
- /** 被切下来的 turn prefix 文本。 */
34
- prefix_text: string;
35
- }): string;
36
- /**
37
- * 给摘要追加文件操作 XML。
38
- */
39
- export declare function append_session_compaction_file_operations(params: {
40
- /** LLM 生成的结构化摘要。 */
41
- summary: string;
42
- /** 文件操作 XML,空字符串时不追加。 */
43
- file_operations_xml?: string;
44
- }): string;
45
- //# sourceMappingURL=JsonlSessionCompactionPrompts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonlSessionCompactionPrompts.d.ts","sourceRoot":"","sources":["../../../../../src/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,eAAO,MAAM,gCAAgC,QAIjC,CAAC;AAEb;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,MAAM,EAAE;IAC9D,kBAAkB;IAClB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,GAAG,MAAM,CAqCT;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,MAAM,EAAE;IAC7D,eAAe;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB;IACvB,qBAAqB,EAAE,MAAM,CAAC;CAC/B,GAAG,MAAM,CA+CT;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,MAAM,EAAE;IAClE,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;CACrB,GAAG,MAAM,CAmBT;AAED;;GAEG;AACH,wBAAgB,yCAAyC,CAAC,MAAM,EAAE;IAChE,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,GAAG,MAAM,CAMT"}
@@ -1,144 +0,0 @@
1
- /**
2
- * JsonlSessionCompactionPrompts:上下文压缩提示词模块。
3
- *
4
- * 关键点(中文)
5
- * - 统一维护 session compact 使用的 system prompt 与 user prompt。
6
- * - 支持初始压缩、迭代更新压缩、turn prefix 压缩三类场景。
7
- * - prompt 文本保持结构化格式稳定,便于后续 LLM 继续接力。
8
- */
9
- /**
10
- * 上下文压缩 system prompt。
11
- */
12
- export const SESSION_COMPACTION_SYSTEM_PROMPT = [
13
- "You are a context summarization assistant. Your task is to read a conversation between a user and an AI assistant, then produce a structured summary following the exact format specified.",
14
- "",
15
- "Do NOT continue the conversation. Do NOT respond to any questions in the conversation. ONLY output the structured summary.",
16
- ].join("\n");
17
- /**
18
- * 构建初始上下文压缩 prompt。
19
- */
20
- export function build_initial_session_compaction_prompt(params) {
21
- return [
22
- String(params.conversation_text || "").trim(),
23
- "",
24
- "The messages above are a conversation to summarize. Create a structured context checkpoint summary that another LLM will use to continue the work.",
25
- "",
26
- "Use this EXACT format:",
27
- "",
28
- "## Goal",
29
- "[What is the user trying to accomplish? Can be multiple items if the session covers different tasks.]",
30
- "",
31
- "## Constraints & Preferences",
32
- "- [Any constraints, preferences, or requirements mentioned by user]",
33
- '- [Or "(none)" if none were mentioned]',
34
- "",
35
- "## Progress",
36
- "### Done",
37
- "- [x] [Completed tasks/changes]",
38
- "",
39
- "### In Progress",
40
- "- [ ] [Current work]",
41
- "",
42
- "### Blocked",
43
- "[Issues preventing progress, if any]",
44
- "",
45
- "## Key Decisions",
46
- "- **[Decision]**: [Brief rationale]",
47
- "",
48
- "## Next Steps",
49
- "1. [Ordered list of what should happen next]",
50
- "",
51
- "## Critical Context",
52
- "- [Any data, examples, or references needed to continue]",
53
- '- [Or "(none)" if not applicable]',
54
- "",
55
- "Keep each section concise. Preserve exact file paths, function names, and error messages.",
56
- ].join("\n");
57
- }
58
- /**
59
- * 构建迭代更新上下文压缩 prompt。
60
- */
61
- export function build_update_session_compaction_prompt(params) {
62
- return [
63
- "<previous-summary>",
64
- String(params.previous_summary || "").trim(),
65
- "</previous-summary>",
66
- "",
67
- String(params.new_conversation_text || "").trim(),
68
- "",
69
- "The messages above are NEW conversation messages to incorporate into the existing summary provided in <previous-summary> tags.",
70
- "",
71
- "Update the existing structured summary with new information. RULES:",
72
- "- PRESERVE all existing information from the previous summary",
73
- "- ADD new progress, decisions, and context from the new messages",
74
- '- UPDATE the Progress section: move items from "In Progress" to "Done" when completed',
75
- '- UPDATE "Next Steps" based on what was accomplished',
76
- "- PRESERVE exact file paths, function names, and error messages",
77
- "- If something is no longer relevant, you may remove it",
78
- "",
79
- "Use this EXACT format:",
80
- "",
81
- "## Goal",
82
- "[Preserve existing goals, add new ones if the task expanded]",
83
- "",
84
- "## Constraints & Preferences",
85
- "- [Preserve existing, add new ones discovered]",
86
- "",
87
- "## Progress",
88
- "### Done",
89
- "- [x] [Include previously done items AND newly completed items]",
90
- "",
91
- "### In Progress",
92
- "- [ ] [Current work - update based on progress]",
93
- "",
94
- "### Blocked",
95
- "[Current blockers - remove if resolved]",
96
- "",
97
- "## Key Decisions",
98
- "- **[Decision]**: [Brief rationale] (preserve all previous, add new)",
99
- "",
100
- "## Next Steps",
101
- "1. [Update based on current state]",
102
- "",
103
- "## Critical Context",
104
- "- [Preserve important context, add new if needed]",
105
- "",
106
- "Keep each section concise. Preserve exact file paths, function names, and error messages.",
107
- ].join("\n");
108
- }
109
- /**
110
- * 构建 turn prefix 压缩 prompt。
111
- */
112
- export function build_turn_prefix_session_compaction_prompt(params) {
113
- return [
114
- String(params.prefix_text || "").trim(),
115
- "",
116
- "This is the PREFIX of a turn that was too large to keep. The SUFFIX (recent work) is retained.",
117
- "",
118
- "Summarize the prefix to provide context for the retained suffix:",
119
- "",
120
- "## Original Request",
121
- "[What did the user ask for in this turn?]",
122
- "",
123
- "## Early Progress",
124
- "- [Key decisions and work done in the prefix]",
125
- "",
126
- "## Context for Suffix",
127
- "- [Information needed to understand the retained recent work]",
128
- "",
129
- "Be concise. Focus on what's needed to understand the kept suffix.",
130
- ].join("\n");
131
- }
132
- /**
133
- * 给摘要追加文件操作 XML。
134
- */
135
- export function append_session_compaction_file_operations(params) {
136
- const summary = String(params.summary || "").trim();
137
- const file_operations_xml = String(params.file_operations_xml || "").trim();
138
- if (!file_operations_xml)
139
- return summary;
140
- if (!summary)
141
- return file_operations_xml;
142
- return `${summary}\n\n${file_operations_xml}`;
143
- }
144
- //# sourceMappingURL=JsonlSessionCompactionPrompts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JsonlSessionCompactionPrompts.js","sourceRoot":"","sources":["../../../../../src/executor/composer/compaction/jsonl/JsonlSessionCompactionPrompts.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,4LAA4L;IAC5L,EAAE;IACF,4HAA4H;CAC7H,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAEb;;GAEG;AACH,MAAM,UAAU,uCAAuC,CAAC,MAGvD;IACC,OAAO;QACL,MAAM,CAAC,MAAM,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;QAC7C,EAAE;QACF,oJAAoJ;QACpJ,EAAE;QACF,wBAAwB;QACxB,EAAE;QACF,SAAS;QACT,uGAAuG;QACvG,EAAE;QACF,8BAA8B;QAC9B,qEAAqE;QACrE,wCAAwC;QACxC,EAAE;QACF,aAAa;QACb,UAAU;QACV,iCAAiC;QACjC,EAAE;QACF,iBAAiB;QACjB,sBAAsB;QACtB,EAAE;QACF,aAAa;QACb,sCAAsC;QACtC,EAAE;QACF,kBAAkB;QAClB,qCAAqC;QACrC,EAAE;QACF,eAAe;QACf,8CAA8C;QAC9C,EAAE;QACF,qBAAqB;QACrB,0DAA0D;QAC1D,mCAAmC;QACnC,EAAE;QACF,2FAA2F;KAC5F,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sCAAsC,CAAC,MAKtD;IACC,OAAO;QACL,oBAAoB;QACpB,MAAM,CAAC,MAAM,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;QAC5C,qBAAqB;QACrB,EAAE;QACF,MAAM,CAAC,MAAM,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;QACjD,EAAE;QACF,gIAAgI;QAChI,EAAE;QACF,qEAAqE;QACrE,+DAA+D;QAC/D,kEAAkE;QAClE,uFAAuF;QACvF,sDAAsD;QACtD,iEAAiE;QACjE,yDAAyD;QACzD,EAAE;QACF,wBAAwB;QACxB,EAAE;QACF,SAAS;QACT,8DAA8D;QAC9D,EAAE;QACF,8BAA8B;QAC9B,gDAAgD;QAChD,EAAE;QACF,aAAa;QACb,UAAU;QACV,iEAAiE;QACjE,EAAE;QACF,iBAAiB;QACjB,iDAAiD;QACjD,EAAE;QACF,aAAa;QACb,yCAAyC;QACzC,EAAE;QACF,kBAAkB;QAClB,sEAAsE;QACtE,EAAE;QACF,eAAe;QACf,oCAAoC;QACpC,EAAE;QACF,qBAAqB;QACrB,mDAAmD;QACnD,EAAE;QACF,2FAA2F;KAC5F,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,2CAA2C,CAAC,MAG3D;IACC,OAAO;QACL,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE;QACvC,EAAE;QACF,gGAAgG;QAChG,EAAE;QACF,kEAAkE;QAClE,EAAE;QACF,qBAAqB;QACrB,2CAA2C;QAC3C,EAAE;QACF,mBAAmB;QACnB,+CAA+C;QAC/C,EAAE;QACF,uBAAuB;QACvB,+DAA+D;QAC/D,EAAE;QACF,mEAAmE;KACpE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yCAAyC,CAAC,MAKzD;IACC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpD,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAC5E,IAAI,CAAC,mBAAmB;QAAE,OAAO,OAAO,CAAC;IACzC,IAAI,CAAC,OAAO;QAAE,OAAO,mBAAmB,CAAC;IACzC,OAAO,GAAG,OAAO,OAAO,mBAAmB,EAAE,CAAC;AAChD,CAAC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * SessionSystemComposer:Session system messages Composer 抽象。
3
- *
4
- * 关键点(中文)
5
- * - 专职负责“会话上下文 -> system messages”解析。
6
- * - 与 tools / step 编排解耦,避免 Executor 过载。
7
- */
8
- import type { SessionSystemMessage } from "../../../executor/types/SessionPrompts.js";
9
- import type { SessionComposeInput } from "../../../types/session/SessionComposer.js";
10
- /**
11
- * Session system Composer 协议。
12
- */
13
- export interface SessionSystemComposer {
14
- /**
15
- * 解析器名称(由具体实现声明)。
16
- */
17
- readonly name: string;
18
- /**
19
- * 解析本轮 system messages。
20
- */
21
- resolve(input: SessionComposeInput): Promise<SessionSystemMessage[]>;
22
- }
23
- //# sourceMappingURL=SessionSystemComposer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionSystemComposer.d.ts","sourceRoot":"","sources":["../../../../src/executor/composer/system/SessionSystemComposer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAAC;CACtE"}
@@ -1,9 +0,0 @@
1
- /**
2
- * SessionSystemComposer:Session system messages Composer 抽象。
3
- *
4
- * 关键点(中文)
5
- * - 专职负责“会话上下文 -> system messages”解析。
6
- * - 与 tools / step 编排解耦,避免 Executor 过载。
7
- */
8
- export {};
9
- //# sourceMappingURL=SessionSystemComposer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SessionSystemComposer.js","sourceRoot":"","sources":["../../../../src/executor/composer/system/SessionSystemComposer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,43 +0,0 @@
1
- /**
2
- * DefaultSessionSystemComposer:默认 system Composer。
3
- *
4
- * 关键点(中文)
5
- * - 该实现归属默认 system Composer,统一负责 Session system 解析入口。
6
- * - 具体“解析 / 加载 / 组装”下沉到 SystemDomain,保持类本身轻量。
7
- */
8
- import type { SessionSystemComposer } from "../../../composer/system/SessionSystemComposer.js";
9
- import type { SessionHookRuntime } from "@downcity/type";
10
- import type { SessionComposeInput } from "../../../../types/session/SessionComposer.js";
11
- import { type SystemProfile } from "../../../composer/system/default/SystemDomain.js";
12
- type DefaultSessionSystemComposerOptions = {
13
- /**
14
- * 项目根目录,用于渲染运行时 system 模板。
15
- */
16
- project_root: string;
17
- /**
18
- * 读取当前生效的静态 system 文本集合。
19
- */
20
- get_static_system_prompts: () => string[];
21
- /**
22
- * 读取当前执行上下文(用于加载 Plugin system 文本)。
23
- */
24
- get_hooks: () => SessionHookRuntime;
25
- /**
26
- * system 档位(默认 chat)。
27
- */
28
- profile?: SystemProfile;
29
- };
30
- /**
31
- * SessionSystemComposer 默认实现。
32
- */
33
- export declare class DefaultSessionSystemComposer implements SessionSystemComposer {
34
- readonly name = "prompt_system";
35
- private readonly project_root;
36
- private readonly get_static_system_prompts;
37
- private readonly get_hooks;
38
- private readonly profile;
39
- constructor(options: DefaultSessionSystemComposerOptions);
40
- resolve(input: SessionComposeInput): Promise<import("../../../types/SessionPrompts.js").SessionSystemMessage[]>;
41
- }
42
- export {};
43
- //# sourceMappingURL=DefaultSessionSystemComposer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultSessionSystemComposer.d.ts","sourceRoot":"","sources":["../../../../../src/executor/composer/system/default/DefaultSessionSystemComposer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,mDAAmD,CAAC;AAE3D,KAAK,mCAAmC,GAAG;IACzC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,yBAAyB,EAAE,MAAM,MAAM,EAAE,CAAC;IAE1C;;OAEG;IACH,SAAS,EAAE,MAAM,kBAAkB,CAAC;IAEpC;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,qBAAa,4BAA6B,YAAW,qBAAqB;IACxE,QAAQ,CAAC,IAAI,mBAAmB;IAEhC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IACtC,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAmE;IAC7G,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmD;IAC7E,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAgB;gBAE5B,OAAO,EAAE,mCAAmC;IAWlD,OAAO,CAAC,KAAK,EAAE,mBAAmB;CAazC"}
@@ -1,42 +0,0 @@
1
- /**
2
- * DefaultSessionSystemComposer:默认 system Composer。
3
- *
4
- * 关键点(中文)
5
- * - 该实现归属默认 system Composer,统一负责 Session system 解析入口。
6
- * - 具体“解析 / 加载 / 组装”下沉到 SystemDomain,保持类本身轻量。
7
- */
8
- import { resolve_session_system_messages, } from "../../../composer/system/default/SystemDomain.js";
9
- /**
10
- * SessionSystemComposer 默认实现。
11
- */
12
- export class DefaultSessionSystemComposer {
13
- name = "prompt_system";
14
- project_root;
15
- get_static_system_prompts;
16
- get_hooks;
17
- profile;
18
- constructor(options) {
19
- const project_root = String(options.project_root || "").trim();
20
- if (!project_root) {
21
- throw new Error("DefaultSessionSystemComposer requires a non-empty project_root");
22
- }
23
- this.project_root = project_root;
24
- this.get_static_system_prompts = options.get_static_system_prompts;
25
- this.get_hooks = options.get_hooks;
26
- this.profile = options.profile === "task" ? "task" : "chat";
27
- }
28
- async resolve(input) {
29
- const session_id = input.session.session_id;
30
- if (!session_id) {
31
- throw new Error("DefaultSessionSystemComposer.resolve requires a non-empty session_id");
32
- }
33
- return await resolve_session_system_messages({
34
- project_root: this.project_root,
35
- session_id,
36
- profile: this.profile,
37
- static_system_prompts: this.get_static_system_prompts(),
38
- hooks: this.get_hooks(),
39
- });
40
- }
41
- }
42
- //# sourceMappingURL=DefaultSessionSystemComposer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultSessionSystemComposer.js","sourceRoot":"","sources":["../../../../../src/executor/composer/system/default/DefaultSessionSystemComposer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,+BAA+B,GAEhC,MAAM,mDAAmD,CAAC;AAwB3D;;GAEG;AACH,MAAM,OAAO,4BAA4B;IAC9B,IAAI,GAAG,eAAe,CAAC;IAEf,YAAY,CAAS;IACrB,yBAAyB,CAAmE;IAC5F,SAAS,CAAmD;IAC5D,OAAO,CAAgB;IAExC,YAAY,OAA4C;QACtD,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC/D,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,gEAAgE,CAAC,CAAC;QACpF,CAAC;QACD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;QACnE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAA0B;QACtC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QAC5C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAC;QAC1F,CAAC;QACD,OAAO,MAAM,+BAA+B,CAAC;YAC3C,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,UAAU;YACV,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,qBAAqB,EAAE,IAAI,CAAC,yBAAyB,EAAE;YACvD,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,35 +0,0 @@
1
- /**
2
- * PromptRenderer:system prompt 消息渲染器。
3
- *
4
- * 关键点(中文)
5
- * - 负责文本 prompt -> system message 的转换能力。
6
- * - 变量替换下沉到 `session/composer/system/default/variables/VariableReplacer`。
7
- * - 不关注具体 prompt 来源(静态/服务/运行时)。
8
- */
9
- import type { SessionSystemMessage } from "../../../../executor/types/SessionPrompts.js";
10
- import { type PromptVariableMode } from "../../../composer/system/default/variables/VariableReplacer.js";
11
- /**
12
- * 将纯文本 prompts 转为 `system` messages。
13
- *
14
- * 关键点(中文)
15
- * - 自动过滤空串并执行变量替换。
16
- */
17
- export declare function transform_prompts_into_system_messages(prompts: string[], options?: {
18
- /**
19
- * 项目路径(用于模板变量)。
20
- */
21
- projectPath?: string;
22
- /**
23
- * 会话 ID(用于模板变量)。
24
- */
25
- session_id?: string;
26
- /**
27
- * 变量替换模式。
28
- *
29
- * 关键点(中文)
30
- * - `full`:替换全部变量(含时间/位置)。
31
- * - `stable`:仅保留稳定变量,易变变量替换为稳定占位文本。
32
- */
33
- variableMode?: PromptVariableMode;
34
- }): Promise<SessionSystemMessage[]>;
35
- //# sourceMappingURL=PromptRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromptRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/executor/composer/system/default/PromptRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,iEAAiE,CAAC;AAEzE;;;;;GAKG;AACH,wBAAsB,sCAAsC,CAC1D,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,CAAC,EAAE;IACR;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC,GACA,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAQjC"}
@@ -1,23 +0,0 @@
1
- /**
2
- * PromptRenderer:system prompt 消息渲染器。
3
- *
4
- * 关键点(中文)
5
- * - 负责文本 prompt -> system message 的转换能力。
6
- * - 变量替换下沉到 `session/composer/system/default/variables/VariableReplacer`。
7
- * - 不关注具体 prompt 来源(静态/服务/运行时)。
8
- */
9
- import { replace_variables_in_prompts, } from "../../../composer/system/default/variables/VariableReplacer.js";
10
- /**
11
- * 将纯文本 prompts 转为 `system` messages。
12
- *
13
- * 关键点(中文)
14
- * - 自动过滤空串并执行变量替换。
15
- */
16
- export async function transform_prompts_into_system_messages(prompts, options) {
17
- const nonEmptyPrompts = prompts.filter((item) => item.length > 0);
18
- return Promise.all(nonEmptyPrompts.map(async (item) => ({
19
- role: "system",
20
- content: await replace_variables_in_prompts(item, options),
21
- })));
22
- }
23
- //# sourceMappingURL=PromptRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PromptRenderer.js","sourceRoot":"","sources":["../../../../../src/executor/composer/system/default/PromptRenderer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EACL,4BAA4B,GAE7B,MAAM,iEAAiE,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,sCAAsC,CAC1D,OAAiB,EACjB,OAmBC;IAED,MAAM,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAClE,OAAO,OAAO,CAAC,GAAG,CAChB,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACnC,IAAI,EAAE,QAAiB;QACvB,OAAO,EAAE,MAAM,4BAA4B,CAAC,IAAI,EAAE,OAAO,CAAC;KAC3D,CAAC,CAAC,CACJ,CAAC;AACJ,CAAC"}
@@ -1,151 +0,0 @@
1
- /**
2
- * SystemDomain:system 领域统一实现。
3
- *
4
- * 关键点(中文)
5
- * - 收敛 system 的资产加载、上下文档位判定、Plugin prompt 收集、messages 组装。
6
- * - `DefaultSessionSystemComposer` 只做组件适配;核心逻辑统一在本文件。
7
- */
8
- import type { SessionSystemMessage } from "../../../../executor/types/SessionPrompts.js";
9
- import type { SessionHookRuntime } from "@downcity/type";
10
- /**
11
- * Ship 默认系统提示模板。
12
- */
13
- export declare const DEFAULT_SHIP_PROMPTS: string;
14
- /**
15
- * 构建一次运行的运行时 system prompt。
16
- *
17
- * 关键点(中文)
18
- * - 仅承载“稳定规则”块,避免把每轮变化字段放在前缀 system。
19
- * - task 模式下追加任务输出规则;chat 模式为空。
20
- */
21
- export declare function build_context_system_prompt(input: {
22
- /**
23
- * 项目根目录。
24
- */
25
- project_root: string;
26
- /**
27
- * 当前会话 ID。
28
- */
29
- session_id: string;
30
- /**
31
- * 当前 system 模式(默认 chat)。
32
- */
33
- mode?: "chat" | "task";
34
- /**
35
- * 额外上下文行(可选)。
36
- */
37
- extra_context_lines?: string[];
38
- }): string;
39
- /**
40
- * 解析静态 system prompts。
41
- *
42
- * 关键点(中文)
43
- * - task 执行上下文可替换默认 core prompt(`DEFAULT_SHIP_PROMPTS`)为任务专用提示词。
44
- * - PROFILE/SOUL 等其他静态提示保持不变。
45
- */
46
- export declare function resolve_static_system_prompts(input: {
47
- /**
48
- * 当前静态 system 文本集合。
49
- */
50
- systems: string[];
51
- /**
52
- * 可选默认 core prompt 替换文本(task 场景常用)。
53
- */
54
- replace_default_core_prompt?: string;
55
- }): string[];
56
- type ResolvedSystemContextProfile = {
57
- mode: "chat" | "task";
58
- replace_default_core_prompt?: string;
59
- disabled_plugin_names: string[];
60
- };
61
- /**
62
- * System 档位。
63
- *
64
- * 关键点(中文)
65
- * - 由外部创建 system 时显式指定,避免在 system 域猜测业务上下文。
66
- */
67
- export type SystemProfile = "chat" | "task";
68
- /**
69
- * 按显式 profile 解析 system 上下文档位。
70
- *
71
- * 关键点(中文)
72
- * - chat 模式:使用默认 core prompt 与全部 Plugin system。
73
- * - task 模式:自动替换 task core prompt,并禁用 chat Plugin system。
74
- */
75
- export declare function resolve_system_context_profile(profile?: SystemProfile): ResolvedSystemContextProfile;
76
- /**
77
- * 收集宿主 Plugin 提供的 system 文本。
78
- *
79
- * 关键点(中文)
80
- * - core prompt 已包含扩展系统总规则;这里只收集各 Plugin 自己的 system prompt。
81
- * - 单个 Plugin 是否可用由宿主投影的运行时负责。
82
- */
83
- export declare function load_plugin_system_prompts(input: {
84
- /**
85
- * 当前执行上下文。
86
- */
87
- hooks: SessionHookRuntime;
88
- /**
89
- * 当前轮禁用的 Plugin 名称集合。
90
- */
91
- disabled_plugin_names: string[];
92
- }): Promise<string[]>;
93
- /**
94
- * 统一构建一次 Session 运行所需的 system messages。
95
- *
96
- * 关键点(中文)
97
- * - context/static/extension 的组装逻辑统一收敛在 system 域。
98
- */
99
- export declare function build_session_system_messages(input: {
100
- /**
101
- * 项目根目录(用于模板变量和运行态上下文)。
102
- */
103
- project_root: string;
104
- /**
105
- * 当前会话 ID。
106
- */
107
- session_id: string;
108
- /**
109
- * 本轮模式(chat/task)。
110
- */
111
- mode?: "chat" | "task";
112
- /**
113
- * 可选默认 core prompt 替换文本(task 场景常用)。
114
- */
115
- replace_default_core_prompt?: string;
116
- /**
117
- * 静态 system 文本集合(profile/soul/user/default)。
118
- */
119
- static_system_prompts: string[];
120
- /**
121
- * 宿主 Plugin 提供的 system 文本集合。
122
- */
123
- plugin_system_prompts: string[];
124
- }): Promise<SessionSystemMessage[]>;
125
- /**
126
- * 统一解析一次 Session 运行所需的 system messages(含上下文档位判定与 Plugin 收集)。
127
- */
128
- export declare function resolve_session_system_messages(input: {
129
- /**
130
- * 项目根目录。
131
- */
132
- project_root: string;
133
- /**
134
- * 当前会话 ID。
135
- */
136
- session_id: string;
137
- /**
138
- * 当前 system 档位(默认 chat)。
139
- */
140
- profile?: SystemProfile;
141
- /**
142
- * 当前静态 system 文本集合。
143
- */
144
- static_system_prompts: string[];
145
- /**
146
- * 当前执行上下文。
147
- */
148
- hooks: SessionHookRuntime;
149
- }): Promise<SessionSystemMessage[]>;
150
- export {};
151
- //# sourceMappingURL=SystemDomain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SystemDomain.d.ts","sourceRoot":"","sources":["../../../../../src/executor/composer/system/default/SystemDomain.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAazD;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAAqB,CAAC;AAEvD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE;IACjD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC,GAAG,MAAM,CAuBT;AAED;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE;IACnD;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC,GAAG,MAAM,EAAE,CAKX;AAED,KAAK,4BAA4B,GAAG;IAClC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,OAAO,CAAC,EAAE,aAAa,GACtB,4BAA4B,CAY9B;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,KAAK,EAAE;IACtD;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;IAE1B;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBpB;AAED;;;;;GAKG;AACH,wBAAsB,6BAA6B,CAAC,KAAK,EAAE;IACzD;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;CACjC,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CA4ClC;AAED;;GAEG;AACH,wBAAsB,+BAA+B,CAAC,KAAK,EAAE;IAC3D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;OAEG;IACH,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC;;OAEG;IACH,KAAK,EAAE,kBAAkB,CAAC;CAE3B,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC,CAalC"}