charness 4.2.0 → 4.3.0

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 (545) hide show
  1. package/CHANGELOG.md +157 -2
  2. package/DEVELOPMENT.md +58 -10
  3. package/LICENSE +331 -151
  4. package/MIGRATION_3_TO_4.md +8 -5
  5. package/README.md +21 -9
  6. package/SETUP.md +54 -10
  7. package/agent-plugin/README.md +10 -3
  8. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +18 -27
  9. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +5 -3
  10. package/agent-plugin/skills/charness-orchestration/SKILL.md +56 -16
  11. package/dist/adapters/claudeCliAdapter.d.ts +4 -0
  12. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  13. package/dist/adapters/claudeCliAdapter.js +13 -0
  14. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  15. package/dist/adapters/claudeJsonStreamAdapter.d.ts +136 -10
  16. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  17. package/dist/adapters/claudeJsonStreamAdapter.js +365 -77
  18. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  19. package/dist/adapters/createAdapter.d.ts +12 -3
  20. package/dist/adapters/createAdapter.d.ts.map +1 -1
  21. package/dist/adapters/createAdapter.js +39 -13
  22. package/dist/adapters/createAdapter.js.map +1 -1
  23. package/dist/adapters/openCodeAdapter.d.ts +34 -0
  24. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  25. package/dist/adapters/openCodeAdapter.js +118 -11
  26. package/dist/adapters/openCodeAdapter.js.map +1 -1
  27. package/dist/apiErrorRetry.d.ts +11 -3
  28. package/dist/apiErrorRetry.d.ts.map +1 -1
  29. package/dist/apiErrorRetry.js +33 -3
  30. package/dist/apiErrorRetry.js.map +1 -1
  31. package/dist/apiRetryKick.d.ts +3 -2
  32. package/dist/apiRetryKick.d.ts.map +1 -1
  33. package/dist/apiRetryKick.js +13 -5
  34. package/dist/apiRetryKick.js.map +1 -1
  35. package/dist/bot.d.ts +2 -6
  36. package/dist/bot.d.ts.map +1 -1
  37. package/dist/bot.js +2009 -634
  38. package/dist/bot.js.map +1 -1
  39. package/dist/cli/claudeProfiles.d.ts +28 -6
  40. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  41. package/dist/cli/claudeProfiles.js +89 -22
  42. package/dist/cli/claudeProfiles.js.map +1 -1
  43. package/dist/cli.d.ts.map +1 -1
  44. package/dist/cli.js +2 -1
  45. package/dist/cli.js.map +1 -1
  46. package/dist/connectors/jira/answerSink.d.ts +102 -7
  47. package/dist/connectors/jira/answerSink.d.ts.map +1 -1
  48. package/dist/connectors/jira/answerSink.js +364 -60
  49. package/dist/connectors/jira/answerSink.js.map +1 -1
  50. package/dist/connectors/jira/answerThreads.d.ts +44 -0
  51. package/dist/connectors/jira/answerThreads.d.ts.map +1 -0
  52. package/dist/connectors/jira/answerThreads.js +85 -0
  53. package/dist/connectors/jira/answerThreads.js.map +1 -0
  54. package/dist/connectors/jira/client.d.ts +67 -2
  55. package/dist/connectors/jira/client.d.ts.map +1 -1
  56. package/dist/connectors/jira/client.js +176 -4
  57. package/dist/connectors/jira/client.js.map +1 -1
  58. package/dist/connectors/jira/config.d.ts +6 -0
  59. package/dist/connectors/jira/config.d.ts.map +1 -1
  60. package/dist/connectors/jira/config.js +14 -1
  61. package/dist/connectors/jira/config.js.map +1 -1
  62. package/dist/connectors/jira/connector.d.ts +19 -0
  63. package/dist/connectors/jira/connector.d.ts.map +1 -1
  64. package/dist/connectors/jira/connector.js +68 -6
  65. package/dist/connectors/jira/connector.js.map +1 -1
  66. package/dist/connectors/jira/contextPreamble.d.ts.map +1 -1
  67. package/dist/connectors/jira/contextPreamble.js +6 -1
  68. package/dist/connectors/jira/contextPreamble.js.map +1 -1
  69. package/dist/connectors/jira/inbound.d.ts +21 -6
  70. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  71. package/dist/connectors/jira/inbound.js +22 -16
  72. package/dist/connectors/jira/inbound.js.map +1 -1
  73. package/dist/connectors/jira/issueBlocks.d.ts +8 -1
  74. package/dist/connectors/jira/issueBlocks.d.ts.map +1 -1
  75. package/dist/connectors/jira/issueBlocks.js +38 -2
  76. package/dist/connectors/jira/issueBlocks.js.map +1 -1
  77. package/dist/connectors/jira/operatorIssue.d.ts +28 -0
  78. package/dist/connectors/jira/operatorIssue.d.ts.map +1 -0
  79. package/dist/connectors/jira/operatorIssue.js +81 -0
  80. package/dist/connectors/jira/operatorIssue.js.map +1 -0
  81. package/dist/connectors/jira/outbound.d.ts +8 -4
  82. package/dist/connectors/jira/outbound.d.ts.map +1 -1
  83. package/dist/connectors/jira/outbound.js +16 -8
  84. package/dist/connectors/jira/outbound.js.map +1 -1
  85. package/dist/connectors/jira/outgoingFileCheck.d.ts +37 -0
  86. package/dist/connectors/jira/outgoingFileCheck.d.ts.map +1 -0
  87. package/dist/connectors/jira/outgoingFileCheck.js +279 -0
  88. package/dist/connectors/jira/outgoingFileCheck.js.map +1 -0
  89. package/dist/connectors/jira/outgoingFiles.d.ts +81 -0
  90. package/dist/connectors/jira/outgoingFiles.d.ts.map +1 -0
  91. package/dist/connectors/jira/outgoingFiles.js +268 -0
  92. package/dist/connectors/jira/outgoingFiles.js.map +1 -0
  93. package/dist/connectors/jira/progressComments.d.ts +69 -0
  94. package/dist/connectors/jira/progressComments.d.ts.map +1 -0
  95. package/dist/connectors/jira/progressComments.js +136 -0
  96. package/dist/connectors/jira/progressComments.js.map +1 -0
  97. package/dist/connectors/jira/prompt.d.ts +5 -1
  98. package/dist/connectors/jira/prompt.d.ts.map +1 -1
  99. package/dist/connectors/jira/prompt.js +23 -3
  100. package/dist/connectors/jira/prompt.js.map +1 -1
  101. package/dist/connectors/jira/promptSpill.js +1 -1
  102. package/dist/connectors/jira/promptSpill.js.map +1 -1
  103. package/dist/connectors/jira/trigger.d.ts +13 -5
  104. package/dist/connectors/jira/trigger.d.ts.map +1 -1
  105. package/dist/connectors/jira/trigger.js +13 -7
  106. package/dist/connectors/jira/trigger.js.map +1 -1
  107. package/dist/connectors/jira/uploadedFiles.d.ts +48 -0
  108. package/dist/connectors/jira/uploadedFiles.d.ts.map +1 -0
  109. package/dist/connectors/jira/uploadedFiles.js +123 -0
  110. package/dist/connectors/jira/uploadedFiles.js.map +1 -0
  111. package/dist/connectors/telegram/commands/backendSwitch.d.ts +9 -1
  112. package/dist/connectors/telegram/commands/backendSwitch.d.ts.map +1 -1
  113. package/dist/connectors/telegram/commands/backendSwitch.js +17 -8
  114. package/dist/connectors/telegram/commands/backendSwitch.js.map +1 -1
  115. package/dist/connectors/telegram/commands/botSkills.d.ts +2 -0
  116. package/dist/connectors/telegram/commands/botSkills.d.ts.map +1 -1
  117. package/dist/connectors/telegram/commands/botSkills.js +17 -2
  118. package/dist/connectors/telegram/commands/botSkills.js.map +1 -1
  119. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -0
  120. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  121. package/dist/connectors/telegram/commands/claudeAccounts.js +22 -4
  122. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  123. package/dist/connectors/telegram/commands/compaction.d.ts +14 -3
  124. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  125. package/dist/connectors/telegram/commands/compaction.js +261 -96
  126. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  127. package/dist/connectors/telegram/commands/limitReminders.d.ts +21 -0
  128. package/dist/connectors/telegram/commands/limitReminders.d.ts.map +1 -0
  129. package/dist/connectors/telegram/commands/limitReminders.js +95 -0
  130. package/dist/connectors/telegram/commands/limitReminders.js.map +1 -0
  131. package/dist/connectors/telegram/commands/limitsBoard.d.ts +4 -0
  132. package/dist/connectors/telegram/commands/limitsBoard.d.ts.map +1 -1
  133. package/dist/connectors/telegram/commands/limitsBoard.js +27 -6
  134. package/dist/connectors/telegram/commands/limitsBoard.js.map +1 -1
  135. package/dist/connectors/telegram/commands/modelProviders.d.ts +2 -2
  136. package/dist/connectors/telegram/commands/modelProviders.d.ts.map +1 -1
  137. package/dist/connectors/telegram/commands/modelProviders.js +27 -16
  138. package/dist/connectors/telegram/commands/modelProviders.js.map +1 -1
  139. package/dist/connectors/telegram/commands/topicCommand.d.ts.map +1 -1
  140. package/dist/connectors/telegram/commands/topicCommand.js +7 -2
  141. package/dist/connectors/telegram/commands/topicCommand.js.map +1 -1
  142. package/dist/connectors/telegram/commands/workerRoles.d.ts +25 -0
  143. package/dist/connectors/telegram/commands/workerRoles.d.ts.map +1 -0
  144. package/dist/connectors/telegram/commands/workerRoles.js +259 -0
  145. package/dist/connectors/telegram/commands/workerRoles.js.map +1 -0
  146. package/dist/connectors/telegram/groupWelcome.d.ts +12 -0
  147. package/dist/connectors/telegram/groupWelcome.d.ts.map +1 -0
  148. package/dist/connectors/telegram/groupWelcome.js +12 -0
  149. package/dist/connectors/telegram/groupWelcome.js.map +1 -0
  150. package/dist/connectors/telegram/inbound.d.ts +7 -0
  151. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  152. package/dist/connectors/telegram/inbound.js +10 -0
  153. package/dist/connectors/telegram/inbound.js.map +1 -1
  154. package/dist/connectors/telegram/outputFlushPlan.d.ts +12 -0
  155. package/dist/connectors/telegram/outputFlushPlan.d.ts.map +1 -1
  156. package/dist/connectors/telegram/outputFlushPlan.js +12 -0
  157. package/dist/connectors/telegram/outputFlushPlan.js.map +1 -1
  158. package/dist/connectors/telegram/runnerPairingMessages.d.ts +1 -1
  159. package/dist/connectors/telegram/topicIndicator.d.ts +1 -1
  160. package/dist/connectors/telegram/topicIndicator.d.ts.map +1 -1
  161. package/dist/connectors/telegram/topicIndicator.js +103 -5
  162. package/dist/connectors/telegram/topicIndicator.js.map +1 -1
  163. package/dist/effortLevels.d.ts +6 -0
  164. package/dist/effortLevels.d.ts.map +1 -1
  165. package/dist/effortLevels.js +6 -1
  166. package/dist/effortLevels.js.map +1 -1
  167. package/dist/i18n/de.d.ts.map +1 -1
  168. package/dist/i18n/de.js +95 -14
  169. package/dist/i18n/de.js.map +1 -1
  170. package/dist/i18n/en.d.ts.map +1 -1
  171. package/dist/i18n/en.js +95 -14
  172. package/dist/i18n/en.js.map +1 -1
  173. package/dist/i18n/es.d.ts.map +1 -1
  174. package/dist/i18n/es.js +95 -14
  175. package/dist/i18n/es.js.map +1 -1
  176. package/dist/i18n/fr.d.ts.map +1 -1
  177. package/dist/i18n/fr.js +95 -14
  178. package/dist/i18n/fr.js.map +1 -1
  179. package/dist/i18n/hi.d.ts.map +1 -1
  180. package/dist/i18n/hi.js +95 -14
  181. package/dist/i18n/hi.js.map +1 -1
  182. package/dist/i18n/ja.d.ts.map +1 -1
  183. package/dist/i18n/ja.js +95 -14
  184. package/dist/i18n/ja.js.map +1 -1
  185. package/dist/i18n/ka.d.ts.map +1 -1
  186. package/dist/i18n/ka.js +95 -14
  187. package/dist/i18n/ka.js.map +1 -1
  188. package/dist/i18n/pt.d.ts.map +1 -1
  189. package/dist/i18n/pt.js +95 -14
  190. package/dist/i18n/pt.js.map +1 -1
  191. package/dist/i18n/ru.d.ts.map +1 -1
  192. package/dist/i18n/ru.js +95 -14
  193. package/dist/i18n/ru.js.map +1 -1
  194. package/dist/i18n/uk.d.ts.map +1 -1
  195. package/dist/i18n/uk.js +95 -14
  196. package/dist/i18n/uk.js.map +1 -1
  197. package/dist/i18n/uz.d.ts.map +1 -1
  198. package/dist/i18n/uz.js +95 -14
  199. package/dist/i18n/uz.js.map +1 -1
  200. package/dist/i18n/zh.d.ts.map +1 -1
  201. package/dist/i18n/zh.js +95 -14
  202. package/dist/i18n/zh.js.map +1 -1
  203. package/dist/instanceSettings.d.ts +24 -2
  204. package/dist/instanceSettings.d.ts.map +1 -1
  205. package/dist/instanceSettings.js +75 -3
  206. package/dist/instanceSettings.js.map +1 -1
  207. package/dist/limitNotes/engine.d.ts +47 -0
  208. package/dist/limitNotes/engine.d.ts.map +1 -0
  209. package/dist/limitNotes/engine.js +98 -0
  210. package/dist/limitNotes/engine.js.map +1 -0
  211. package/dist/limitNotes/noteText.d.ts +33 -0
  212. package/dist/limitNotes/noteText.d.ts.map +1 -0
  213. package/dist/limitNotes/noteText.js +55 -0
  214. package/dist/limitNotes/noteText.js.map +1 -0
  215. package/dist/limitNotes/plan.d.ts +147 -0
  216. package/dist/limitNotes/plan.d.ts.map +1 -0
  217. package/dist/limitNotes/plan.js +323 -0
  218. package/dist/limitNotes/plan.js.map +1 -0
  219. package/dist/limitNotes/reminderChoices.d.ts +30 -0
  220. package/dist/limitNotes/reminderChoices.d.ts.map +1 -0
  221. package/dist/limitNotes/reminderChoices.js +48 -0
  222. package/dist/limitNotes/reminderChoices.js.map +1 -0
  223. package/dist/limitNotes/service.d.ts +106 -0
  224. package/dist/limitNotes/service.d.ts.map +1 -0
  225. package/dist/limitNotes/service.js +169 -0
  226. package/dist/limitNotes/service.js.map +1 -0
  227. package/dist/openCodeSessionTitle.js +1 -1
  228. package/dist/openCodeSessionTitle.js.map +1 -1
  229. package/dist/outputTrace.d.ts +19 -0
  230. package/dist/outputTrace.d.ts.map +1 -1
  231. package/dist/outputTrace.js +23 -2
  232. package/dist/outputTrace.js.map +1 -1
  233. package/dist/platform/answerSink.d.ts +23 -0
  234. package/dist/platform/answerSink.d.ts.map +1 -1
  235. package/dist/platform/answerSink.js.map +1 -1
  236. package/dist/platform/operatorAlert.d.ts +24 -0
  237. package/dist/platform/operatorAlert.d.ts.map +1 -0
  238. package/dist/platform/operatorAlert.js +9 -0
  239. package/dist/platform/operatorAlert.js.map +1 -0
  240. package/dist/postToSession.d.ts +34 -2
  241. package/dist/postToSession.d.ts.map +1 -1
  242. package/dist/postToSession.js +31 -2
  243. package/dist/postToSession.js.map +1 -1
  244. package/dist/remoteRun/exitCodes.d.ts +2 -2
  245. package/dist/remoteRun/exitCodes.d.ts.map +1 -1
  246. package/dist/remoteRun/exitCodes.js +2 -2
  247. package/dist/remoteRun/exitCodes.js.map +1 -1
  248. package/dist/remoteRun/foreground.d.ts.map +1 -1
  249. package/dist/remoteRun/foreground.js +5 -1
  250. package/dist/remoteRun/foreground.js.map +1 -1
  251. package/dist/remoteRun/runnerClient.d.ts +1 -1
  252. package/dist/remoteRun/runnerClient.d.ts.map +1 -1
  253. package/dist/remoteRun/runnerClient.js +3 -3
  254. package/dist/remoteRun/runnerClient.js.map +1 -1
  255. package/dist/requests/answerRequest.d.ts +3 -0
  256. package/dist/requests/answerRequest.d.ts.map +1 -1
  257. package/dist/requests/answerRequest.js +9 -2
  258. package/dist/requests/answerRequest.js.map +1 -1
  259. package/dist/requests/limitWaitAnswer.d.ts +14 -0
  260. package/dist/requests/limitWaitAnswer.d.ts.map +1 -1
  261. package/dist/requests/limitWaitAnswer.js +26 -4
  262. package/dist/requests/limitWaitAnswer.js.map +1 -1
  263. package/dist/requests/requestHeader.d.ts +37 -5
  264. package/dist/requests/requestHeader.d.ts.map +1 -1
  265. package/dist/requests/requestHeader.js +46 -17
  266. package/dist/requests/requestHeader.js.map +1 -1
  267. package/dist/requests/scheduleWait.d.ts +79 -0
  268. package/dist/requests/scheduleWait.d.ts.map +1 -0
  269. package/dist/requests/scheduleWait.js +101 -0
  270. package/dist/requests/scheduleWait.js.map +1 -0
  271. package/dist/requests/sessionTurnProbe.d.ts +21 -3
  272. package/dist/requests/sessionTurnProbe.d.ts.map +1 -1
  273. package/dist/requests/sessionTurnProbe.js +18 -3
  274. package/dist/requests/sessionTurnProbe.js.map +1 -1
  275. package/dist/requests/topicRequestSettle.d.ts +13 -7
  276. package/dist/requests/topicRequestSettle.d.ts.map +1 -1
  277. package/dist/requests/topicRequestSettle.js +2 -2
  278. package/dist/requests/topicRequestSettle.js.map +1 -1
  279. package/dist/requests/trackerTurnPoster.d.ts +30 -0
  280. package/dist/requests/trackerTurnPoster.d.ts.map +1 -0
  281. package/dist/requests/trackerTurnPoster.js +36 -0
  282. package/dist/requests/trackerTurnPoster.js.map +1 -0
  283. package/dist/requests/types.d.ts +9 -2
  284. package/dist/requests/types.d.ts.map +1 -1
  285. package/dist/requests/wakeUpEngine.d.ts +188 -11
  286. package/dist/requests/wakeUpEngine.d.ts.map +1 -1
  287. package/dist/requests/wakeUpEngine.js +452 -43
  288. package/dist/requests/wakeUpEngine.js.map +1 -1
  289. package/dist/requests/wakeUpRules.d.ts +122 -12
  290. package/dist/requests/wakeUpRules.d.ts.map +1 -1
  291. package/dist/requests/wakeUpRules.js +117 -15
  292. package/dist/requests/wakeUpRules.js.map +1 -1
  293. package/dist/resumeContext.d.ts +2 -2
  294. package/dist/resumeContext.js +3 -3
  295. package/dist/resumeContext.js.map +1 -1
  296. package/dist/runnerUtility/adminService.js +1 -1
  297. package/dist/runnerUtility/adminService.js.map +1 -1
  298. package/dist/runnerUtility/guiAgent.d.ts +1 -1
  299. package/dist/runnerUtility/guiAgent.d.ts.map +1 -1
  300. package/dist/runnerUtility/guiAgent.js +1 -1
  301. package/dist/runnerUtility/guiAgent.js.map +1 -1
  302. package/dist/runnerUtility/managedNode.d.ts +3 -3
  303. package/dist/runnerUtility/managedNode.d.ts.map +1 -1
  304. package/dist/runnerUtility/managedNode.js +2 -2
  305. package/dist/runnerUtility/managedNode.js.map +1 -1
  306. package/dist/runnerUtility/runnerConfig.d.ts +1 -1
  307. package/dist/runnerUtility/runnerHome.d.ts +1 -1
  308. package/dist/runnerUtility/runnerHome.js +1 -1
  309. package/dist/runnerUtility/serviceCommon.d.ts +1 -1
  310. package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
  311. package/dist/runnerUtility/serviceCommon.js +1 -1
  312. package/dist/runnerUtility/serviceCommon.js.map +1 -1
  313. package/dist/runners/bootstrapLine.js +1 -1
  314. package/dist/runners/hubPackage.d.ts +1 -1
  315. package/dist/runners/hubPackage.js +3 -3
  316. package/dist/runners/hubPackage.js.map +1 -1
  317. package/dist/runners/hubPaths.d.ts +1 -1
  318. package/dist/runners/hubPaths.d.ts.map +1 -1
  319. package/dist/runners/runnerLock.d.ts +2 -2
  320. package/dist/runners/runnerLock.d.ts.map +1 -1
  321. package/dist/runners/runnerLock.js +2 -2
  322. package/dist/runners/runnerLock.js.map +1 -1
  323. package/dist/scheduler/checkRun.d.ts +2 -0
  324. package/dist/scheduler/checkRun.d.ts.map +1 -1
  325. package/dist/scheduler/checkRun.js +5 -1
  326. package/dist/scheduler/checkRun.js.map +1 -1
  327. package/dist/scheduler/delivery.d.ts +57 -0
  328. package/dist/scheduler/delivery.d.ts.map +1 -1
  329. package/dist/scheduler/delivery.js +152 -14
  330. package/dist/scheduler/delivery.js.map +1 -1
  331. package/dist/scheduler/injection.d.ts +6 -0
  332. package/dist/scheduler/injection.d.ts.map +1 -1
  333. package/dist/scheduler/injection.js +10 -0
  334. package/dist/scheduler/injection.js.map +1 -1
  335. package/dist/scheduler/mcpSurface.d.ts +38 -3
  336. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  337. package/dist/scheduler/mcpSurface.js +291 -175
  338. package/dist/scheduler/mcpSurface.js.map +1 -1
  339. package/dist/scheduler/rebindResume.d.ts +24 -0
  340. package/dist/scheduler/rebindResume.d.ts.map +1 -1
  341. package/dist/scheduler/rebindResume.js +32 -0
  342. package/dist/scheduler/rebindResume.js.map +1 -1
  343. package/dist/scheduler/scheduleToolWording.d.ts +29 -0
  344. package/dist/scheduler/scheduleToolWording.d.ts.map +1 -0
  345. package/dist/scheduler/scheduleToolWording.js +117 -0
  346. package/dist/scheduler/scheduleToolWording.js.map +1 -0
  347. package/dist/scheduler/scheduledRunTarget.d.ts +90 -0
  348. package/dist/scheduler/scheduledRunTarget.d.ts.map +1 -0
  349. package/dist/scheduler/scheduledRunTarget.js +92 -0
  350. package/dist/scheduler/scheduledRunTarget.js.map +1 -0
  351. package/dist/scheduler/store.d.ts +2 -0
  352. package/dist/scheduler/store.d.ts.map +1 -1
  353. package/dist/scheduler/store.js +2 -0
  354. package/dist/scheduler/store.js.map +1 -1
  355. package/dist/scheduler/types.d.ts +10 -0
  356. package/dist/scheduler/types.d.ts.map +1 -1
  357. package/dist/scheduler/workerWatch.d.ts +2 -0
  358. package/dist/scheduler/workerWatch.d.ts.map +1 -1
  359. package/dist/scheduler/workerWatch.js +3 -3
  360. package/dist/scheduler/workerWatch.js.map +1 -1
  361. package/dist/selfUpdate/constants.d.ts +2 -0
  362. package/dist/selfUpdate/constants.d.ts.map +1 -1
  363. package/dist/selfUpdate/constants.js +3 -1
  364. package/dist/selfUpdate/constants.js.map +1 -1
  365. package/dist/selfUpdate/emittedSource.d.ts.map +1 -1
  366. package/dist/selfUpdate/emittedSource.js +1 -1
  367. package/dist/selfUpdate/emittedSource.js.map +1 -1
  368. package/dist/selfUpdate/updateRuntime.js +1 -1
  369. package/dist/selfUpdate/updateRuntime.js.map +1 -1
  370. package/dist/sessionPick.d.ts +1 -1
  371. package/dist/sessionPick.js +1 -1
  372. package/dist/startupPromptBuffer.d.ts +35 -6
  373. package/dist/startupPromptBuffer.d.ts.map +1 -1
  374. package/dist/startupPromptBuffer.js +70 -21
  375. package/dist/startupPromptBuffer.js.map +1 -1
  376. package/dist/state.d.ts +173 -25
  377. package/dist/state.d.ts.map +1 -1
  378. package/dist/state.js +282 -58
  379. package/dist/state.js.map +1 -1
  380. package/dist/testTimings.d.ts +8 -3
  381. package/dist/testTimings.d.ts.map +1 -1
  382. package/dist/testTimings.js +15 -2
  383. package/dist/testTimings.js.map +1 -1
  384. package/dist/threadContextPreamble.d.ts +7 -0
  385. package/dist/threadContextPreamble.d.ts.map +1 -1
  386. package/dist/threadContextPreamble.js +11 -0
  387. package/dist/threadContextPreamble.js.map +1 -1
  388. package/dist/threadRouting.d.ts +12 -0
  389. package/dist/threadRouting.d.ts.map +1 -1
  390. package/dist/threadRouting.js +15 -0
  391. package/dist/threadRouting.js.map +1 -1
  392. package/dist/todos/midTurn.d.ts +15 -41
  393. package/dist/todos/midTurn.d.ts.map +1 -1
  394. package/dist/todos/midTurn.js +27 -171
  395. package/dist/todos/midTurn.js.map +1 -1
  396. package/dist/types.d.ts +147 -23
  397. package/dist/types.d.ts.map +1 -1
  398. package/dist/types.js +10 -0
  399. package/dist/types.js.map +1 -1
  400. package/dist/utils/backendSwitchPlan.d.ts +3 -3
  401. package/dist/utils/backendSwitchPlan.js +3 -3
  402. package/dist/utils/claudeAccountAlert.d.ts +104 -0
  403. package/dist/utils/claudeAccountAlert.d.ts.map +1 -0
  404. package/dist/utils/claudeAccountAlert.js +130 -0
  405. package/dist/utils/claudeAccountAlert.js.map +1 -0
  406. package/dist/utils/claudeAccountPickerPlan.d.ts +7 -0
  407. package/dist/utils/claudeAccountPickerPlan.d.ts.map +1 -1
  408. package/dist/utils/claudeAccountPickerPlan.js +13 -2
  409. package/dist/utils/claudeAccountPickerPlan.js.map +1 -1
  410. package/dist/utils/claudeAuthRefusal.d.ts +122 -0
  411. package/dist/utils/claudeAuthRefusal.d.ts.map +1 -0
  412. package/dist/utils/claudeAuthRefusal.js +228 -0
  413. package/dist/utils/claudeAuthRefusal.js.map +1 -0
  414. package/dist/utils/claudeCompactHook.d.ts +6 -6
  415. package/dist/utils/claudeCompactHook.js +8 -8
  416. package/dist/utils/claudeCompactHook.js.map +1 -1
  417. package/dist/utils/claudeProfileUsageViews.d.ts +54 -2
  418. package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -1
  419. package/dist/utils/claudeProfileUsageViews.js +44 -1
  420. package/dist/utils/claudeProfileUsageViews.js.map +1 -1
  421. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  422. package/dist/utils/claudeProfiles.js +10 -1
  423. package/dist/utils/claudeProfiles.js.map +1 -1
  424. package/dist/utils/claudeRuntimeInfo.d.ts +24 -0
  425. package/dist/utils/claudeRuntimeInfo.d.ts.map +1 -1
  426. package/dist/utils/claudeRuntimeInfo.js +128 -3
  427. package/dist/utils/claudeRuntimeInfo.js.map +1 -1
  428. package/dist/utils/claudeScheduledJobs.d.ts +6 -2
  429. package/dist/utils/claudeScheduledJobs.d.ts.map +1 -1
  430. package/dist/utils/claudeScheduledJobs.js +10 -2
  431. package/dist/utils/claudeScheduledJobs.js.map +1 -1
  432. package/dist/utils/claudeSessionTitle.js +1 -1
  433. package/dist/utils/claudeSessionTitle.js.map +1 -1
  434. package/dist/utils/claudeStreamJson.d.ts +28 -2
  435. package/dist/utils/claudeStreamJson.d.ts.map +1 -1
  436. package/dist/utils/claudeStreamJson.js +33 -3
  437. package/dist/utils/claudeStreamJson.js.map +1 -1
  438. package/dist/utils/claudeTranscriptEpoch.d.ts +14 -0
  439. package/dist/utils/claudeTranscriptEpoch.d.ts.map +1 -1
  440. package/dist/utils/claudeTranscriptEpoch.js +79 -19
  441. package/dist/utils/claudeTranscriptEpoch.js.map +1 -1
  442. package/dist/utils/claudeUsage.d.ts +103 -7
  443. package/dist/utils/claudeUsage.d.ts.map +1 -1
  444. package/dist/utils/claudeUsage.js +108 -15
  445. package/dist/utils/claudeUsage.js.map +1 -1
  446. package/dist/utils/compactOnIdle.d.ts +139 -29
  447. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  448. package/dist/utils/compactOnIdle.js +163 -36
  449. package/dist/utils/compactOnIdle.js.map +1 -1
  450. package/dist/utils/conversationEnding.d.ts +76 -0
  451. package/dist/utils/conversationEnding.d.ts.map +1 -0
  452. package/dist/utils/conversationEnding.js +117 -0
  453. package/dist/utils/conversationEnding.js.map +1 -0
  454. package/dist/utils/doctorLine.d.ts +10 -0
  455. package/dist/utils/doctorLine.d.ts.map +1 -1
  456. package/dist/utils/doctorLine.js +16 -0
  457. package/dist/utils/doctorLine.js.map +1 -1
  458. package/dist/utils/fallbackBridge.d.ts.map +1 -1
  459. package/dist/utils/fallbackBridge.js +2 -1
  460. package/dist/utils/fallbackBridge.js.map +1 -1
  461. package/dist/utils/fallbackChain.d.ts +2 -0
  462. package/dist/utils/fallbackChain.d.ts.map +1 -1
  463. package/dist/utils/fallbackChain.js +4 -3
  464. package/dist/utils/fallbackChain.js.map +1 -1
  465. package/dist/utils/fallbackSwitchNotice.d.ts +11 -4
  466. package/dist/utils/fallbackSwitchNotice.d.ts.map +1 -1
  467. package/dist/utils/fallbackSwitchNotice.js +9 -5
  468. package/dist/utils/fallbackSwitchNotice.js.map +1 -1
  469. package/dist/utils/fileSendService.d.ts +31 -0
  470. package/dist/utils/fileSendService.d.ts.map +1 -1
  471. package/dist/utils/fileSendService.js +45 -2
  472. package/dist/utils/fileSendService.js.map +1 -1
  473. package/dist/utils/jsonStreamHost.d.ts +2 -0
  474. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  475. package/dist/utils/jsonStreamHost.js +4 -1
  476. package/dist/utils/jsonStreamHost.js.map +1 -1
  477. package/dist/utils/jsonStreamPendingWork.d.ts +14 -2
  478. package/dist/utils/jsonStreamPendingWork.d.ts.map +1 -1
  479. package/dist/utils/jsonStreamPendingWork.js +25 -5
  480. package/dist/utils/jsonStreamPendingWork.js.map +1 -1
  481. package/dist/utils/jsonStreamUnconsumedInput.d.ts +80 -0
  482. package/dist/utils/jsonStreamUnconsumedInput.d.ts.map +1 -0
  483. package/dist/utils/jsonStreamUnconsumedInput.js +99 -0
  484. package/dist/utils/jsonStreamUnconsumedInput.js.map +1 -0
  485. package/dist/utils/limitEpisodeRecovery.d.ts +43 -4
  486. package/dist/utils/limitEpisodeRecovery.d.ts.map +1 -1
  487. package/dist/utils/limitEpisodeRecovery.js +107 -20
  488. package/dist/utils/limitEpisodeRecovery.js.map +1 -1
  489. package/dist/utils/limitHeldPrompts.d.ts +21 -11
  490. package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
  491. package/dist/utils/limitHeldPrompts.js +12 -9
  492. package/dist/utils/limitHeldPrompts.js.map +1 -1
  493. package/dist/utils/limitRemindersScreenPlan.d.ts +63 -0
  494. package/dist/utils/limitRemindersScreenPlan.d.ts.map +1 -0
  495. package/dist/utils/limitRemindersScreenPlan.js +121 -0
  496. package/dist/utils/limitRemindersScreenPlan.js.map +1 -0
  497. package/dist/utils/limitsBoardPlan.d.ts +16 -7
  498. package/dist/utils/limitsBoardPlan.d.ts.map +1 -1
  499. package/dist/utils/limitsBoardPlan.js +41 -9
  500. package/dist/utils/limitsBoardPlan.js.map +1 -1
  501. package/dist/utils/lostWork.d.ts +16 -2
  502. package/dist/utils/lostWork.d.ts.map +1 -1
  503. package/dist/utils/lostWork.js +16 -3
  504. package/dist/utils/lostWork.js.map +1 -1
  505. package/dist/utils/messageContext.d.ts +2 -2
  506. package/dist/utils/messageContext.js +2 -2
  507. package/dist/utils/midTurnInbox.d.ts +79 -0
  508. package/dist/utils/midTurnInbox.d.ts.map +1 -0
  509. package/dist/utils/midTurnInbox.js +265 -0
  510. package/dist/utils/midTurnInbox.js.map +1 -0
  511. package/dist/utils/promptDelivery.d.ts +70 -22
  512. package/dist/utils/promptDelivery.d.ts.map +1 -1
  513. package/dist/utils/promptDelivery.js +100 -42
  514. package/dist/utils/promptDelivery.js.map +1 -1
  515. package/dist/utils/topicIndicatorPlan.d.ts +13 -3
  516. package/dist/utils/topicIndicatorPlan.d.ts.map +1 -1
  517. package/dist/utils/topicIndicatorPlan.js +26 -4
  518. package/dist/utils/topicIndicatorPlan.js.map +1 -1
  519. package/dist/utils/topicRequest.d.ts +3 -0
  520. package/dist/utils/topicRequest.d.ts.map +1 -1
  521. package/dist/utils/topicRequest.js +4 -0
  522. package/dist/utils/topicRequest.js.map +1 -1
  523. package/dist/utils/workerRoles.d.ts +122 -0
  524. package/dist/utils/workerRoles.d.ts.map +1 -0
  525. package/dist/utils/workerRoles.js +160 -0
  526. package/dist/utils/workerRoles.js.map +1 -0
  527. package/dist/utils/workerRolesScreenPlan.d.ts +118 -0
  528. package/dist/utils/workerRolesScreenPlan.d.ts.map +1 -0
  529. package/dist/utils/workerRolesScreenPlan.js +232 -0
  530. package/dist/utils/workerRolesScreenPlan.js.map +1 -0
  531. package/dist/utils/workingSignals.d.ts +49 -0
  532. package/dist/utils/workingSignals.d.ts.map +1 -0
  533. package/dist/utils/workingSignals.js +41 -0
  534. package/dist/utils/workingSignals.js.map +1 -0
  535. package/licensing.json +88 -0
  536. package/npm-shrinkwrap.json +2 -2
  537. package/package.json +7 -7
  538. package/{remoteRun → runner-scripts}/runner.sh +6 -3
  539. package/LICENSE-COMMERCIAL.md +0 -142
  540. package/dist/agentTrigger.d.ts +0 -28
  541. package/dist/agentTrigger.d.ts.map +0 -1
  542. package/dist/agentTrigger.js +0 -53
  543. package/dist/agentTrigger.js.map +0 -1
  544. /package/{remoteRun → runner-scripts}/ensureNode.sh +0 -0
  545. /package/{remoteRun → runner-scripts}/runner-package-lock.json +0 -0
@@ -1,15 +1,24 @@
1
1
  import { type SessionKey } from '../sessionKey';
2
2
  import type { BufferedPromptSettled, StartupPromptBuffer } from '../startupPromptBuffer';
3
+ import type { LostWorkTelling } from './lostWork';
3
4
  /**
4
5
  * @name PromptDeliveryDeps
5
- * @description What {@link deliverPromptOrBuffer} acts through. `forwardPrompt` says where the
6
- * forward put the prompt ({@link LatePromptOutcome}); `announceQueued` tells the person their
7
- * prompt waits for the session to come up — a topic message, so it is only called for a
8
- * Telegram conversation.
6
+ * @description What {@link deliverPromptOrBuffer} acts through, every state read at the moment of the write. `forwardPrompt` says
7
+ * where the forward put the prompt ({@link LatePromptOutcome}); `checkIsSessionActive` and `wakeSession` let a prompt that finds no
8
+ * window and no live session wake the conversation first; `reportNoSession` runs when that wake found nothing (the person is told,
9
+ * unless the wake already said why; a bot-made prompt is only logged); `checkIsRefusingMessages` — a command ends or replaces the
10
+ * conversation now, so a person's prompt is not delivered at all — and `reportRefused`, which tells the person so (also when the wake
11
+ * found the conversation ended by a release while it waited; a bot-made prompt is only logged); `announceQueued` tells the person their
12
+ * prompt waits for the session to come up — a topic message, so it is only called for a Telegram conversation.
9
13
  */
10
14
  export interface PromptDeliveryDeps {
11
- startupBuffer: Pick<StartupPromptBuffer, 'addPrompt'>;
15
+ startupBuffer: Pick<StartupPromptBuffer, 'addPrompt' | 'checkIsStarting'>;
12
16
  forwardPrompt: (key: SessionKey, text: string, options: PromptDeliveryOptions) => Promise<LatePromptOutcome>;
17
+ checkIsSessionActive: (key: SessionKey) => boolean;
18
+ wakeSession: (key: SessionKey) => Promise<LateWakeResult>;
19
+ checkIsRefusingMessages: (key: SessionKey) => boolean;
20
+ reportNoSession: (key: SessionKey, isAlreadyTold: boolean, options: PromptDeliveryOptions) => Promise<void>;
21
+ reportRefused: (key: SessionKey, options: PromptDeliveryOptions) => Promise<void>;
13
22
  announceQueued: (key: SessionKey) => Promise<void>;
14
23
  }
15
24
  /**
@@ -17,9 +26,22 @@ export interface PromptDeliveryDeps {
17
26
  * @description `isPersonInput` — a person typed, spoke or sent it (a topic's text, voice, file or album): its forward does not
18
27
  * wait for the write into the agent (the topic's update queue must not hang on it), and a write that fails is told to them.
19
28
  * Every other prompt — a wake-up, a scheduled run, a retry's nudge, a tracker's post — waits for it, buffered or not.
29
+ * `isAccountsNoteCarrier` — the prompt starts a turn the person or the scheduler made (a person's message that opened a request, a
30
+ * tracker's post, a scheduled run), so its forward may attach the accounts note (`limitNotes/`); kept with the prompt through a startup
31
+ * buffer, and decorated at the replay with the figures of that moment.
32
+ * `lostWorkTelling` — how a lost-work note that rides this prompt asks to tell about the loss (`LostWorkTelling`; a tracker fire whose
33
+ * ridden request owes nothing, or with none open, asks `runHeader`: its header already says when to answer); kept through a startup
34
+ * buffer as well.
20
35
  */
21
36
  export interface PromptDeliveryOptions {
22
37
  isPersonInput?: boolean;
38
+ isAccountsNoteCarrier?: boolean;
39
+ lostWorkTelling?: LostWorkTelling;
40
+ /**
41
+ * A bot-made post's wait while a command ends or replaces the conversation: awaited before EACH routing of the write — the first one,
42
+ * and again after a wake or an adopt-replay wait, either of which may outlast the start of a move ({@link LatePromptDeliveryPorts}).
43
+ */
44
+ waitBeforeRoute?: () => Promise<void>;
23
45
  }
24
46
  /**
25
47
  * @name PromptDelivery
@@ -32,21 +54,22 @@ export interface PromptDeliveryOptions {
32
54
  */
33
55
  export type PromptDelivery = 'forwarded' | 'buffered' | 'noSession';
34
56
  /**
35
- * @description Deliver `text` to a conversation's agent while honouring the startup
36
- * window: mid-startup the prompt is buffered (it replays in order once the session
37
- * is up, exactly like a text typed during boot); otherwise it is forwarded at once.
38
- * The one "buffer-or-forward" unit shared by the text and voice handlers' mid-startup
39
- * buffering, file/album intake, `/schedule`, the Jira connector's posts and an
40
- * API-error retry's "continue" nudge — the last two reach it with a session another
41
- * caller's start may still be bringing up, where a direct forward would hit an
42
- * adapter that is not there yet.
57
+ * @description Deliver `text` to a conversation's agent, routed at the MOMENT OF THE WRITE ({@link deliverLatePrompt}): a start's or a
58
+ * stop's window open → buffered behind it (it replays in order once the session is up, exactly like a text typed during boot); a live
59
+ * session → forwarded; no window and no live session → the conversation is woken first, then forwarded. The one "buffer-or-forward"
60
+ * unit of every prompt that may meet a session another caller is starting or stopping: a person's prompt (`deliverPromptByState` in
61
+ * `bot.ts`), a scheduled run, a tracker's post, the lost-work post, a retry's «continue», a move's first prompt.
43
62
  *
44
- * `isStarting` is passed in (not read here) because the album collector captures
45
- * it AT FLUSH TIME — a session that finished booting mid-burst must forward, not
46
- * buffer.
63
+ * Nothing a caller read before an await decides it: a window that closed during the caller's awaits (its request opened, a file
64
+ * downloaded) never takes the prompt. The buffer is read and added to in the same tick, so it never refuses a prompt here
65
+ * ({@link StartupPromptBuffer.addPrompt} refuses a closed window); a refusal would be a bug and throws.
47
66
  *
48
67
  * The "queued while starting" notice is posted once per startup window, and only
49
- * for a Telegram conversation: a tracker issue has no topic to say it in (R6).
68
+ * for a Telegram conversation: a tracker issue has no topic to say it in (R6). It is
69
+ * NOT awaited (a topic send through the process-wide pacer can take seconds): this
70
+ * resolves `buffered` in the tick the buffer took the prompt, so a caller that watches
71
+ * the prompt's turn does so before any replay can write it, and before the agent can
72
+ * answer it (review 20 #2). The pacer keeps the notice's place in the topic.
50
73
  *
51
74
  * A buffered prompt lives in memory, so a restart before the start ends loses it.
52
75
  * A caller that must know how the wait ended — to keep what would re-send the prompt
@@ -55,20 +78,22 @@ export type PromptDelivery = 'forwarded' | 'buffered' | 'noSession';
55
78
  * A failed "queued" notice is logged and does not change the answer: the prompt was
56
79
  * buffered before the notice went out.
57
80
  */
58
- export declare function deliverPromptOrBuffer(deps: PromptDeliveryDeps, key: SessionKey, text: string, isStarting: boolean, onBufferedSettled?: BufferedPromptSettled, options?: PromptDeliveryOptions): Promise<PromptDelivery>;
81
+ export declare function deliverPromptOrBuffer(deps: PromptDeliveryDeps, key: SessionKey, text: string, onBufferedSettled?: BufferedPromptSettled, options?: PromptDeliveryOptions): Promise<PromptDelivery>;
59
82
  /**
60
83
  * @name LatePromptRoute
61
84
  * @description How a prompt decided on when it ARRIVED is delivered once its handler is ready to forward it:
62
85
  * `buffer` — a start or the idle stop is under way (its window is open: the prompt waits there, and the stop resumes the
63
86
  * session for it); `wake` — the process is gone meanwhile (the conversation sleeps: wake it, then forward); `forward`;
64
- * `drop` — only for a technical prompt that finds no live session without a window: nothing is done for it.
87
+ * `drop` — only for a technical prompt that finds no live session without a window: nothing is done for it;
88
+ * `refuse` — only for a person's prompt while a command ends or replaces the conversation: it is not delivered, and the person is told.
65
89
  */
66
- export type LatePromptRoute = 'buffer' | 'wake' | 'forward' | 'drop';
90
+ export type LatePromptRoute = 'buffer' | 'wake' | 'forward' | 'drop' | 'refuse';
67
91
  /**
68
92
  * @description The {@link LatePromptRoute} of a prompt, read at the moment it is forwarded. The idle stop posts a
69
93
  * re-asked question just before it stops the process, and a handler awaits between reading the session's state and the
70
94
  * forward (the tap's toast, the request it opens): written into a process being stopped the prompt was lost, and
71
- * into one already gone it was dropped.
95
+ * into one already gone it was dropped. A person's prompt that meets a command ending or replacing the conversation
96
+ * (`isRefused`) is refused, whatever the session reads as (`requests/README.md` § Turn starts, review 25 #1).
72
97
  *
73
98
  * A bot-made TECHNICAL prompt (the todo list's standalone reminder) is posted only into a live session that is idle at
74
99
  * this moment — never a resume, never held for a later one, never reported to the person: where a user's prompt would be
@@ -78,12 +103,18 @@ export declare function getLatePromptRoute(input: {
78
103
  isWindowOpen: boolean;
79
104
  isSessionActive: boolean;
80
105
  isTechnical?: boolean;
106
+ isRefused?: boolean;
81
107
  }): LatePromptRoute;
82
108
  /** @description What a wake did: whether a session is up to forward to, and whether it already told the topic something. */
83
109
  export interface LateWakeResult {
84
110
  isAwake: boolean;
85
111
  /** The wake posted a notice of its own (a start that failed says why): the report adds none. */
86
112
  isNoticePosted: boolean;
113
+ /**
114
+ * The conversation was there when the wake began and gone once its turn in the queue came: a release queued ahead ended it, so nothing
115
+ * was started (review 25 #2). Reported as the release's refusal, not as a conversation that was never there.
116
+ */
117
+ isEnded?: boolean;
87
118
  }
88
119
  /**
89
120
  * @name LatePromptDeliveryPorts
@@ -97,11 +128,25 @@ export interface LatePromptDeliveryPorts {
97
128
  isTechnical?: boolean;
98
129
  checkIsWindowOpen: () => boolean;
99
130
  checkIsSessionActive: () => boolean;
131
+ /** A person's prompt only: whether a command ends or replaces the conversation now (absent: never refused). */
132
+ checkIsRefused?: () => boolean;
133
+ /**
134
+ * A bot-made post only: awaited before EACH routing — the first, and again after a wake — while a command ends or replaces the
135
+ * conversation, so the post is routed into the conversation that follows, never into the one a move began leaving during its wake
136
+ * (review 28 nit 2). Absent: the first routing runs in the caller's tick, with no await ahead of it.
137
+ */
138
+ waitBeforeRoute?: () => Promise<void>;
100
139
  buffer: () => Promise<void>;
101
140
  wake: () => Promise<LateWakeResult>;
102
141
  /** Where the forward put the prompt: `forwarded`, or what a forward that routes it again itself (a prompt that waited for an adopt replay) ended in — passed on as the answer. */
103
142
  forward: () => Promise<LatePromptOutcome>;
104
143
  reportNoSession: (isAlreadyTold: boolean) => Promise<void>;
144
+ /**
145
+ * The prompt was refused (a command ends or replaces the conversation), or its wake found the conversation ended by a release while it
146
+ * waited: the person is told the command's line. The delivery answers `noSession`, so whatever the prompt opened is closed by its caller
147
+ * too (a report that closed it already leaves nothing to close). Absent: reported as no session.
148
+ */
149
+ reportRefused?: () => Promise<void>;
105
150
  }
106
151
  /**
107
152
  * @description Where {@link deliverLatePrompt} put the prompt; `noSession` — nowhere: nothing to deliver it to (the wake found
@@ -112,7 +157,10 @@ export type LatePromptOutcome = 'buffered' | 'forwarded' | 'noSession' | 'droppe
112
157
  /**
113
158
  * @description Deliver a prompt whose handler decided, when it arrived, that the session is live — routed again by
114
159
  * {@link getLatePromptRoute} now, after the handler's awaits. A wake that finds nothing never forwards: the forward
115
- * would show the topic as working while the adapter drops the text.
160
+ * would show the topic as working while the adapter drops the text. A wake that brought a session up is followed by
161
+ * one more routing by the state at that moment, never a blind forward: during its awaits (a fresh start's notice is a
162
+ * paced topic send) a prompt it replayed can end its turn and the per-turn stop open its window — a prompt written
163
+ * into that stopping process would be lost (review 19 nit 2).
116
164
  */
117
165
  export declare function deliverLatePrompt(ports: LatePromptDeliveryPorts): Promise<LatePromptOutcome>;
118
166
  //# sourceMappingURL=promptDelivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"promptDelivery.d.ts","sourceRoot":"","sources":["../../src/utils/promptDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAEzF;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;IACtD,aAAa,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC7G,cAAc,EAAE,CAAC,GAAG,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpD;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,UAAU,GAA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C,IAAI,CAAC,CAAC;IACtC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,EAAE,MAAM,OAAO,CAAC,cAAc,CAAC,CAAC;IACpC,kLAAkL;IAClL,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC1C,eAAe,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,CAAC;AAQnF;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAE5F"}
@@ -6,21 +6,22 @@ exports.deliverLatePrompt = deliverLatePrompt;
6
6
  const sessionKey_1 = require("../sessionKey");
7
7
  const sessionKeyCodec_1 = require("../connectors/telegram/sessionKeyCodec");
8
8
  /**
9
- * @description Deliver `text` to a conversation's agent while honouring the startup
10
- * window: mid-startup the prompt is buffered (it replays in order once the session
11
- * is up, exactly like a text typed during boot); otherwise it is forwarded at once.
12
- * The one "buffer-or-forward" unit shared by the text and voice handlers' mid-startup
13
- * buffering, file/album intake, `/schedule`, the Jira connector's posts and an
14
- * API-error retry's "continue" nudge — the last two reach it with a session another
15
- * caller's start may still be bringing up, where a direct forward would hit an
16
- * adapter that is not there yet.
9
+ * @description Deliver `text` to a conversation's agent, routed at the MOMENT OF THE WRITE ({@link deliverLatePrompt}): a start's or a
10
+ * stop's window open → buffered behind it (it replays in order once the session is up, exactly like a text typed during boot); a live
11
+ * session → forwarded; no window and no live session → the conversation is woken first, then forwarded. The one "buffer-or-forward"
12
+ * unit of every prompt that may meet a session another caller is starting or stopping: a person's prompt (`deliverPromptByState` in
13
+ * `bot.ts`), a scheduled run, a tracker's post, the lost-work post, a retry's «continue», a move's first prompt.
17
14
  *
18
- * `isStarting` is passed in (not read here) because the album collector captures
19
- * it AT FLUSH TIME — a session that finished booting mid-burst must forward, not
20
- * buffer.
15
+ * Nothing a caller read before an await decides it: a window that closed during the caller's awaits (its request opened, a file
16
+ * downloaded) never takes the prompt. The buffer is read and added to in the same tick, so it never refuses a prompt here
17
+ * ({@link StartupPromptBuffer.addPrompt} refuses a closed window); a refusal would be a bug and throws.
21
18
  *
22
19
  * The "queued while starting" notice is posted once per startup window, and only
23
- * for a Telegram conversation: a tracker issue has no topic to say it in (R6).
20
+ * for a Telegram conversation: a tracker issue has no topic to say it in (R6). It is
21
+ * NOT awaited (a topic send through the process-wide pacer can take seconds): this
22
+ * resolves `buffered` in the tick the buffer took the prompt, so a caller that watches
23
+ * the prompt's turn does so before any replay can write it, and before the agent can
24
+ * answer it (review 20 #2). The pacer keeps the notice's place in the topic.
24
25
  *
25
26
  * A buffered prompt lives in memory, so a restart before the start ends loses it.
26
27
  * A caller that must know how the wait ended — to keep what would re-send the prompt
@@ -29,31 +30,53 @@ const sessionKeyCodec_1 = require("../connectors/telegram/sessionKeyCodec");
29
30
  * A failed "queued" notice is logged and does not change the answer: the prompt was
30
31
  * buffered before the notice went out.
31
32
  */
32
- async function deliverPromptOrBuffer(deps, key, text, isStarting, onBufferedSettled, options = {}) {
33
- if (!isStarting) {
34
- // Only `noSession` is told apart: a forward that re-routed the prompt behind a stop window itself registered no
35
- // `onBufferedSettled`, so it reads as forwarded, as it always did.
36
- return (await deps.forwardPrompt(key, text, options)) === 'noSession' ? 'noSession' : 'forwarded';
37
- }
38
- const isFirstBuffered = deps.startupBuffer.addPrompt((0, sessionKey_1.keyToString)(key), text, onBufferedSettled, options.isPersonInput === true);
39
- if (isFirstBuffered && (0, sessionKeyCodec_1.checkIsTelegramKey)(key)) {
40
- // The prompt IS buffered by now (and its settle callback registered), so a notice that fails must not
41
- // read as a delivery that failed: a caller keeping something until the prompt reached a session would
42
- // otherwise treat the buffered prompt as spent.
43
- try {
44
- await deps.announceQueued(key);
45
- }
46
- catch (err) {
47
- console.error(`[promptDelivery] queued notice for ${(0, sessionKey_1.keyToString)(key)} failed:`, err);
48
- }
49
- }
50
- return 'buffered';
33
+ async function deliverPromptOrBuffer(deps, key, text, onBufferedSettled, options = {}) {
34
+ const threadId = (0, sessionKey_1.keyToString)(key);
35
+ let isBuffered = false;
36
+ const outcome = await deliverLatePrompt({
37
+ checkIsWindowOpen: () => deps.startupBuffer.checkIsStarting(threadId),
38
+ checkIsSessionActive: () => deps.checkIsSessionActive(key),
39
+ waitBeforeRoute: options.waitBeforeRoute,
40
+ // Only a person's prompt is refused while a command ends or replaces the conversation: a bot-made one is settled by its caller.
41
+ ...(options.isPersonInput === true ? { checkIsRefused: () => deps.checkIsRefusingMessages(key) } : {}),
42
+ buffer: async () => {
43
+ // Called in the tick the window was read open (`deliverLatePrompt` awaits nothing between), so it cannot be refused.
44
+ const added = deps.startupBuffer.addPrompt(threadId, text, onBufferedSettled, getBufferedPromptOptions(options));
45
+ if (added === 'refused')
46
+ throw new Error(`[promptDelivery] the startup buffer of ${threadId} refused a prompt in the tick its window read open`);
47
+ isBuffered = true;
48
+ if (added !== 'firstInWindow' || !(0, sessionKeyCodec_1.checkIsTelegramKey)(key))
49
+ return;
50
+ // The prompt IS buffered by now (and its settle callback registered), so a notice that fails must not read as a delivery
51
+ // that failed: a caller keeping something until the prompt reached a session would otherwise treat it as spent.
52
+ deps.announceQueued(key).catch((err) => console.error(`[promptDelivery] queued notice for ${threadId} failed:`, err));
53
+ },
54
+ wake: () => deps.wakeSession(key),
55
+ forward: () => deps.forwardPrompt(key, text, options),
56
+ reportNoSession: (isAlreadyTold) => deps.reportNoSession(key, isAlreadyTold, options),
57
+ reportRefused: () => deps.reportRefused(key, options),
58
+ });
59
+ if (isBuffered)
60
+ return 'buffered';
61
+ // A forward that re-routed the prompt behind a stop window itself registered no `onBufferedSettled`: it reads as forwarded.
62
+ return outcome === 'noSession' ? 'noSession' : 'forwarded';
63
+ }
64
+ /**
65
+ * @description The options a prompt is buffered with, for its replay: all of them but a bot post's wait for a command
66
+ * (`waitBeforeRoute`), which is its own routing's. A replay writes what its window held one after another, at once, into the process
67
+ * its start brought up; a wait carried into it would hold every prompt behind the post for a whole ending command, while the turn probe
68
+ * reads the conversation as still starting (mini-review of round 28, #1).
69
+ */
70
+ function getBufferedPromptOptions(options) {
71
+ const { waitBeforeRoute: _ownRoutingWait, ...bufferedOptions } = options;
72
+ return bufferedOptions;
51
73
  }
52
74
  /**
53
75
  * @description The {@link LatePromptRoute} of a prompt, read at the moment it is forwarded. The idle stop posts a
54
76
  * re-asked question just before it stops the process, and a handler awaits between reading the session's state and the
55
77
  * forward (the tap's toast, the request it opens): written into a process being stopped the prompt was lost, and
56
- * into one already gone it was dropped.
78
+ * into one already gone it was dropped. A person's prompt that meets a command ending or replacing the conversation
79
+ * (`isRefused`) is refused, whatever the session reads as (`requests/README.md` § Turn starts, review 25 #1).
57
80
  *
58
81
  * A bot-made TECHNICAL prompt (the todo list's standalone reminder) is posted only into a live session that is idle at
59
82
  * this moment — never a resume, never held for a later one, never reported to the person: where a user's prompt would be
@@ -62,30 +85,65 @@ async function deliverPromptOrBuffer(deps, key, text, isStarting, onBufferedSett
62
85
  function getLatePromptRoute(input) {
63
86
  if (input.isTechnical === true)
64
87
  return input.isWindowOpen || !input.isSessionActive ? 'drop' : 'forward';
88
+ // Ahead of any window: the window open now is the stop of the conversation the command ends, or the start of the one it begins — a
89
+ // message for the first is lost with it, and one for the second would reach that agent ahead of what the command hands it first.
90
+ if (input.isRefused === true)
91
+ return 'refuse';
65
92
  if (input.isWindowOpen)
66
93
  return 'buffer';
67
94
  return input.isSessionActive ? 'forward' : 'wake';
68
95
  }
96
+ /**
97
+ * How many times one prompt may wake its conversation: a wake awaits (its start, the notice it posts), and the session it brought up
98
+ * may be stopping again, or gone, by the time it resolves — the prompt is then routed once more, and woken for at most once more.
99
+ */
100
+ const latePromptMaxWakes = 2;
69
101
  /**
70
102
  * @description Deliver a prompt whose handler decided, when it arrived, that the session is live — routed again by
71
103
  * {@link getLatePromptRoute} now, after the handler's awaits. A wake that finds nothing never forwards: the forward
72
- * would show the topic as working while the adapter drops the text.
104
+ * would show the topic as working while the adapter drops the text. A wake that brought a session up is followed by
105
+ * one more routing by the state at that moment, never a blind forward: during its awaits (a fresh start's notice is a
106
+ * paced topic send) a prompt it replayed can end its turn and the per-turn stop open its window — a prompt written
107
+ * into that stopping process would be lost (review 19 nit 2).
73
108
  */
74
- async function deliverLatePrompt(ports) {
75
- const route = getLatePromptRoute({ isWindowOpen: ports.checkIsWindowOpen(), isSessionActive: ports.checkIsSessionActive(), isTechnical: ports.isTechnical });
109
+ function deliverLatePrompt(ports) {
110
+ return routeLatePrompt(ports, latePromptMaxWakes);
111
+ }
112
+ async function routeLatePrompt(ports, wakesLeft) {
113
+ // Only when there is one: an await here would move every other prompt's routing out of its caller's tick.
114
+ if (ports.waitBeforeRoute)
115
+ await ports.waitBeforeRoute();
116
+ const route = getLatePromptRoute({
117
+ isWindowOpen: ports.checkIsWindowOpen(),
118
+ isSessionActive: ports.checkIsSessionActive(),
119
+ isTechnical: ports.isTechnical,
120
+ isRefused: ports.checkIsRefused?.() === true,
121
+ });
76
122
  if (route === 'drop')
77
123
  return 'dropped';
124
+ if (route === 'refuse')
125
+ return reportRefused(ports);
78
126
  if (route === 'buffer') {
79
127
  await ports.buffer();
80
128
  return 'buffered';
81
129
  }
82
- if (route === 'wake') {
83
- const wake = await ports.wake();
84
- if (!wake.isAwake) {
85
- await ports.reportNoSession(wake.isNoticePosted);
86
- return 'noSession';
87
- }
130
+ if (route === 'forward')
131
+ return ports.forward();
132
+ if (wakesLeft === 0) {
133
+ await ports.reportNoSession(false);
134
+ return 'noSession';
88
135
  }
89
- return ports.forward();
136
+ const wake = await ports.wake();
137
+ if (wake.isEnded === true)
138
+ return reportRefused(ports);
139
+ if (!wake.isAwake) {
140
+ await ports.reportNoSession(wake.isNoticePosted);
141
+ return 'noSession';
142
+ }
143
+ return routeLatePrompt(ports, wakesLeft - 1);
144
+ }
145
+ async function reportRefused(ports) {
146
+ await (ports.reportRefused ? ports.reportRefused() : ports.reportNoSession(false));
147
+ return 'noSession';
90
148
  }
91
149
  //# sourceMappingURL=promptDelivery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promptDelivery.js","sourceRoot":"","sources":["../../src/utils/promptDelivery.ts"],"names":[],"mappings":";;AA8DA,sDAyBC;AAqBD,gDAIC;AAwCD,8CAeC;AAvKD,8CAA6D;AAC7D,4EAA4E;AAqC5E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACI,KAAK,UAAU,qBAAqB,CACzC,IAAwB,EACxB,GAAe,EACf,IAAY,EACZ,UAAmB,EACnB,iBAAyC,EACzC,UAAiC,EAAE;IAEnC,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,gHAAgH;QAChH,mEAAmE;QACnE,OAAO,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IACpG,CAAC;IACD,MAAM,eAAe,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,IAAA,wBAAW,EAAC,GAAG,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,aAAa,KAAK,IAAI,CAAC,CAAC;IAChI,IAAI,eAAe,IAAI,IAAA,oCAAkB,EAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,sGAAsG;QACtG,sGAAsG;QACtG,gDAAgD;QAChD,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CAAC,sCAAsC,IAAA,wBAAW,EAAC,GAAG,C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,CAAC,CAAC;IACvD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAClB,MAAM,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACjD,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,KAAK,UAAU,aAAa,CAAC,KAA8B;IACzD,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;IACnF,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -12,7 +12,11 @@ export declare const topicNameMaxLength = 128;
12
12
  export declare const topicStatuses: readonly ["question", "stuck", "working", "finished", "asleep"];
13
13
  /** @name TopicStatus @description One status mark: a question waits, the agent is stuck, it works, it finished, it sleeps. */
14
14
  export type TopicStatus = (typeof topicStatuses)[number];
15
- /** The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. */
15
+ /**
16
+ * The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. Telegram drops some
17
+ * endings from a topic name — a trailing ✅ (and ☑️, ✔️) never shows, measured live on 2026-11-19 — so a mark is only ever one proven to be
18
+ * KEPT there: ❓ ❗️ ⏳ 💤 🟢 (and 🆗) were read back.
19
+ */
16
20
  export declare const topicStatusMarks: Record<TopicStatus, string>;
17
21
  /** The two counts after the status: agents at work and tasks queued. */
18
22
  export declare const topicIndicatorCountKinds: readonly ["agents", "queued"];
@@ -81,13 +85,19 @@ export interface OwnerRenameOutcome {
81
85
  /**
82
86
  * @description The owner saved `savedName` as the topic's name. The base is that name without a trailing mark of ours. A mark that is NOT
83
87
  * one the bot itself had written — `appliedName` or any of `recentAppliedNames` (he may have opened the name before the bot changed its
84
- * mark) — is the owner's own (`Release ✅` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
88
+ * mark) — is the owner's own (`Release 🟢` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
85
89
  * bot's own left in place by an edit around it (`Deploy v2 ⏳` over `Deploy ⏳`) is no news.
86
90
  */
87
91
  export declare function getOwnerRenameOutcome(savedName: string, appliedName: string | undefined, storedBase: string | undefined, recentAppliedNames?: readonly string[]): OwnerRenameOutcome;
92
+ /**
93
+ * @description Whether `storedName` is what Telegram made of `askedName` by DROPPING characters from it — a shorter name every character of
94
+ * which is in the asked one, in order (`Release 🟢` of `Release ✅ 🟢`, `Deploy` of `Deploy 🟢`). It is how the bot tells that the name on its
95
+ * own «renamed» line is its own ask, altered, and no stranger's: Telegram only takes characters out (it drops a ✅ anywhere in a name).
96
+ */
97
+ export declare function checkIsNameReduction(storedName: string, askedName: string): boolean;
88
98
  /**
89
99
  * A name must have been the wanted one this long before it is written: a turn runs this long before its ⏳ shows, a short reply goes
90
- * straight to its final mark, and a session that wakes for a prompt never shows a ✅ on the way to its ⏳ (the owner: no flashing).
100
+ * straight to its final mark, and a session that wakes for a prompt never shows a 🟢 on the way to its ⏳ (the owner: no flashing).
91
101
  */
92
102
  export declare const indicatorSettleMs = 20000;
93
103
  /** Two renames of one topic are at least this far apart; the latest state wins, a state that came and went inside the gap is never shown. */
@@ -1 +1 @@
1
- {"version":3,"file":"topicIndicatorPlan.d.ts","sourceRoot":"","sources":["../../src/utils/topicIndicatorPlan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,sIAAsI;AACtI,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAEtC,qGAAqG;AACrG,eAAO,MAAM,aAAa,iEAAkE,CAAC;AAE7F,8HAA8H;AAC9H,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzD,yHAAyH;AACzH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAMxD,C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IndicatorSuffix = stripIndicatorSuffix;
20
20
  exports.getOwnerRenameOutcome = getOwnerRenameOutcome;
21
+ exports.checkIsNameReduction = checkIsNameReduction;
21
22
  exports.planIndicatorRename = planIndicatorRename;
22
23
  exports.checkIsBaseTooLongForMark = checkIsBaseTooLongForMark;
23
24
  const surrogateSafeCut_1 = require("./surrogateSafeCut");
@@ -25,12 +26,16 @@ const surrogateSafeCut_1 = require("./surrogateSafeCut");
25
26
  exports.topicNameMaxLength = 128;
26
27
  /** The statuses a name can show, highest priority first: the name shows the first one that holds. */
27
28
  exports.topicStatuses = ['question', 'stuck', 'working', 'finished', 'asleep'];
28
- /** The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. */
29
+ /**
30
+ * The mark each status writes; `stuck` and `agents` carry the emoji variation selector the way the owner types them. Telegram drops some
31
+ * endings from a topic name — a trailing ✅ (and ☑️, ✔️) never shows, measured live on 2026-11-19 — so a mark is only ever one proven to be
32
+ * KEPT there: ❓ ❗️ ⏳ 💤 🟢 (and 🆗) were read back.
33
+ */
29
34
  exports.topicStatusMarks = {
30
35
  question: '❓',
31
36
  stuck: '❗️',
32
37
  working: '⏳',
33
- finished: '✅',
38
+ finished: '🟢',
34
39
  asleep: '💤',
35
40
  };
36
41
  /** The two counts after the status: agents at work and tasks queued. */
@@ -146,7 +151,7 @@ function stripIndicatorSuffix(name, appliedName, base) {
146
151
  /**
147
152
  * @description The owner saved `savedName` as the topic's name. The base is that name without a trailing mark of ours. A mark that is NOT
148
153
  * one the bot itself had written — `appliedName` or any of `recentAppliedNames` (he may have opened the name before the bot changed its
149
- * mark) — is the owner's own (`Release ✅` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
154
+ * mark) — is the owner's own (`Release 🟢` typed while ⏳ showed) and is reported as dropped, so the picker can say so once; a mark of the
150
155
  * bot's own left in place by an edit around it (`Deploy v2 ⏳` over `Deploy ⏳`) is no news.
151
156
  */
152
157
  function getOwnerRenameOutcome(savedName, appliedName, storedBase, recentAppliedNames = []) {
@@ -156,10 +161,27 @@ function getOwnerRenameOutcome(savedName, appliedName, storedBase, recentApplied
156
161
  const isOwnMarkDropped = savedSuffix !== '' && savedName !== appliedName && !botSuffixes.includes(savedSuffix);
157
162
  return { base, droppedMark: isOwnMarkDropped ? savedSuffix : null };
158
163
  }
164
+ /**
165
+ * @description Whether `storedName` is what Telegram made of `askedName` by DROPPING characters from it — a shorter name every character of
166
+ * which is in the asked one, in order (`Release 🟢` of `Release ✅ 🟢`, `Deploy` of `Deploy 🟢`). It is how the bot tells that the name on its
167
+ * own «renamed» line is its own ask, altered, and no stranger's: Telegram only takes characters out (it drops a ✅ anywhere in a name).
168
+ */
169
+ function checkIsNameReduction(storedName, askedName) {
170
+ const stored = Array.from(storedName);
171
+ const asked = Array.from(askedName);
172
+ if (stored.length >= asked.length)
173
+ return false;
174
+ let storedIndex = 0;
175
+ for (const character of asked) {
176
+ if (character === stored[storedIndex])
177
+ storedIndex += 1;
178
+ }
179
+ return storedIndex === stored.length;
180
+ }
159
181
  // ── when a rename may happen ──
160
182
  /**
161
183
  * A name must have been the wanted one this long before it is written: a turn runs this long before its ⏳ shows, a short reply goes
162
- * straight to its final mark, and a session that wakes for a prompt never shows a ✅ on the way to its ⏳ (the owner: no flashing).
184
+ * straight to its final mark, and a session that wakes for a prompt never shows a 🟢 on the way to its ⏳ (the owner: no flashing).
163
185
  */
164
186
  exports.indicatorSettleMs = 20_000;
165
187
  /** Two renames of one topic are at least this far apart; the latest state wins, a state that came and went inside the gap is never shown. */
@@ -1 +1 @@
1
- {"version":3,"file":"topicIndicatorPlan.js","sourceRoot":"","sources":["../../src/utils/topicIndicatorPlan.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAyCH,kEAEC;AAoBD,0DAEC;AAGD,gEAEC;AA8BD,gDAEC;AAwBD,oDASC;AAqBD,gDAEC;AAGD,4DAGC;AAOD,oDAGC;AAcD,sDAMC;AAmDD,kDASC;AAcD,8DAEC;AA5QD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AAK,EAAE,CAAC;AAC/D,CAAC;AAED,oCAAoC;AAEpC,8KAA8K;AACjK,QAAA,gBAAgB,GAAG,EAAE,CAAC;AAEnC,sEAAsE;AACtE,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,uIAAuI;AAC1H,QAAA,gBAAgB,GAAG,wBAAgB,GAAG,gBAAgB,CAAC;AAEpE,qIAAqI;AACrI,SAAgB,yBAAyB,CAAC,IAAY;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,wBAAgB,CAAC;AACpD,CAAC"}
@@ -59,6 +59,9 @@ export declare function getTopicRequestOrigin(intake: TopicRequestIntake): Reque
59
59
  * who wrote the message when that is not the operator (`topic member "Alice Smith"
60
60
  * (@alice)`, from `MessageContext.nonOperatorSender`), so the request is never
61
61
  * read as the operator's own.
62
+ * A scheduled run's request (the scheduler's own, `src/requests/README.md` § Scheduled runs) asks for an answer only with a result,
63
+ * as the header of a request a fire rides does, and names nothing it replaced: a woken agent with nothing to report stays silent,
64
+ * and in a view with answers every answer is pinned, which notifies.
62
65
  */
63
66
  export declare function buildTopicRequestHeader(requestId: string, source: TopicRequestSource, view: TopicView, supersededRequestIds?: readonly string[], sender?: string): string;
64
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"topicRequest.d.ts","sourceRoot":"","sources":["../../src/utils/topicRequest.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAG1C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,cAAc,CAAC;AAEnG,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC;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Ac,CAAC;AAEnG,iFAAiF;AACjF,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,cAAc,CAAC;AAEjD;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,CAE5E;AAYD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,GAAG,OAAO,CAE7F;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,kBAAkB,GAAG,aAAa,CAK/E;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,IAAI,EAAE,SAAS,EACf,oBAAoB,GAAE,SAAS,MAAM,EAAO,EAC5C,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAQR;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,SAAS,CAAC;IAChB,oBAAoB,EAAE,SAAS,MAAM,EAAE,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,MAAM,CAET"}
@@ -60,6 +60,9 @@ function getTopicRequestOrigin(intake) {
60
60
  * who wrote the message when that is not the operator (`topic member "Alice Smith"
61
61
  * (@alice)`, from `MessageContext.nonOperatorSender`), so the request is never
62
62
  * read as the operator's own.
63
+ * A scheduled run's request (the scheduler's own, `src/requests/README.md` § Scheduled runs) asks for an answer only with a result,
64
+ * as the header of a request a fire rides does, and names nothing it replaced: a woken agent with nothing to report stays silent,
65
+ * and in a view with answers every answer is pinned, which notifies.
63
66
  */
64
67
  function buildTopicRequestHeader(requestId, source, view, supersededRequestIds = [], sender) {
65
68
  return (0, requestHeader_1.buildRequestHeader)({
@@ -67,6 +70,7 @@ function buildTopicRequestHeader(requestId, source, view, supersededRequestIds =
67
70
  originDescription: `${topicRequestOriginDescriptions[source]}${sender ? ` from ${sender}` : ''}`,
68
71
  isPlainTextHidden: !(0, topicView_1.checkIsStreamShown)(view),
69
72
  supersededRequestIds,
73
+ isAnswerOnlyWithResult: source === 'scheduledRun',
70
74
  });
71
75
  }
72
76
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"topicRequest.js","sourceRoot":"","sources":["../../src/utils/topicRequest.ts"],"names":[],"mappings":";;;AA2CA,kDAEC;AAmBD,kEAEC;AAOD,sDAKC;AAYD,0DAaC;AAOD,0DASC;AA9GD,6DAA+D;AAC/D,2DAAqE;AAErE,2CAA0E;AAS1E,iFAAiF;AACpE,QAAA,2BAA2B,GAAG,QAAQ,CAAC;AAEpD;;;;GAIG;AACU,QAAA,qBAAqB,GAAG,WAAW,CAAC;AAajD,+FAA+F;AAC/F,SAAgB,mBAAmB,CAAC,IAAgC;IAClE,OAAO,IAAI,EAAE,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AACnC,CAAC;AAED,qEAAqE;AACrE,MAAM,8BAA8B,GAAiD;IACnF,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,+BAA+B;IACtC,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,6BAA6B;IACpC,QAAQ,EAAE,mCAAmC;IAC7C,YAAY,EAAE,+BAA+B;CAC9C,CAAC;AAEF;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,IAAe,EAAE,cAAuB;IAClF,OAAO,IAAA,mCAAuB,EAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;AAC1D,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