charness 4.0.1 → 4.1.1

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 (274) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/DEVELOPMENT.md +3 -2
  3. package/SETUP.md +34 -8
  4. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  5. package/dist/adapters/claudeCliAdapter.js +3 -2
  6. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  7. package/dist/adapters/claudeJsonStreamAdapter.d.ts +61 -5
  8. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  9. package/dist/adapters/claudeJsonStreamAdapter.js +147 -18
  10. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  11. package/dist/adapters/openCodeAdapter.d.ts +1 -0
  12. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  13. package/dist/adapters/openCodeAdapter.js +11 -0
  14. package/dist/adapters/openCodeAdapter.js.map +1 -1
  15. package/dist/bot.d.ts.map +1 -1
  16. package/dist/bot.js +430 -297
  17. package/dist/bot.js.map +1 -1
  18. package/dist/connectors/jira/answerSink.d.ts +8 -0
  19. package/dist/connectors/jira/answerSink.d.ts.map +1 -1
  20. package/dist/connectors/jira/answerSink.js +15 -0
  21. package/dist/connectors/jira/answerSink.js.map +1 -1
  22. package/dist/connectors/jira/config.d.ts +16 -0
  23. package/dist/connectors/jira/config.d.ts.map +1 -1
  24. package/dist/connectors/jira/config.js +21 -2
  25. package/dist/connectors/jira/config.js.map +1 -1
  26. package/dist/connectors/jira/connector.d.ts +10 -3
  27. package/dist/connectors/jira/connector.d.ts.map +1 -1
  28. package/dist/connectors/jira/connector.js +21 -3
  29. package/dist/connectors/jira/connector.js.map +1 -1
  30. package/dist/connectors/jira/inbound.d.ts +200 -18
  31. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  32. package/dist/connectors/jira/inbound.js +814 -43
  33. package/dist/connectors/jira/inbound.js.map +1 -1
  34. package/dist/connectors/jira/prompt.d.ts +46 -0
  35. package/dist/connectors/jira/prompt.d.ts.map +1 -1
  36. package/dist/connectors/jira/prompt.js +123 -15
  37. package/dist/connectors/jira/prompt.js.map +1 -1
  38. package/dist/connectors/jira/trigger.d.ts +27 -4
  39. package/dist/connectors/jira/trigger.d.ts.map +1 -1
  40. package/dist/connectors/jira/trigger.js +35 -1
  41. package/dist/connectors/jira/trigger.js.map +1 -1
  42. package/dist/connectors/jira/triggerLog.d.ts +60 -5
  43. package/dist/connectors/jira/triggerLog.d.ts.map +1 -1
  44. package/dist/connectors/jira/triggerLog.js +116 -7
  45. package/dist/connectors/jira/triggerLog.js.map +1 -1
  46. package/dist/connectors/telegram/answerSink.d.ts +12 -0
  47. package/dist/connectors/telegram/answerSink.d.ts.map +1 -1
  48. package/dist/connectors/telegram/answerSink.js +23 -0
  49. package/dist/connectors/telegram/answerSink.js.map +1 -1
  50. package/dist/connectors/telegram/botApiConnection.d.ts +2 -1
  51. package/dist/connectors/telegram/botApiConnection.d.ts.map +1 -1
  52. package/dist/connectors/telegram/botApiConnection.js +19 -1
  53. package/dist/connectors/telegram/botApiConnection.js.map +1 -1
  54. package/dist/connectors/telegram/commands/botCore.d.ts +13 -5
  55. package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
  56. package/dist/connectors/telegram/commands/runners.d.ts +29 -2
  57. package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
  58. package/dist/connectors/telegram/commands/runners.js +84 -45
  59. package/dist/connectors/telegram/commands/runners.js.map +1 -1
  60. package/dist/connectors/telegram/outbound.d.ts +1 -1
  61. package/dist/connectors/telegram/outbound.d.ts.map +1 -1
  62. package/dist/connectors/telegram/outbound.js +3 -1
  63. package/dist/connectors/telegram/outbound.js.map +1 -1
  64. package/dist/connectors/telegram/outputBacklogGlue.d.ts +1 -1
  65. package/dist/connectors/telegram/outputBacklogGlue.js +1 -1
  66. package/dist/connectors/telegram/outputFlushPlan.d.ts +23 -8
  67. package/dist/connectors/telegram/outputFlushPlan.d.ts.map +1 -1
  68. package/dist/connectors/telegram/outputFlushPlan.js +22 -13
  69. package/dist/connectors/telegram/outputFlushPlan.js.map +1 -1
  70. package/dist/connectors/telegram/pinnedNoticeSlot.d.ts +31 -0
  71. package/dist/connectors/telegram/pinnedNoticeSlot.d.ts.map +1 -0
  72. package/dist/connectors/telegram/pinnedNoticeSlot.js +43 -0
  73. package/dist/connectors/telegram/pinnedNoticeSlot.js.map +1 -0
  74. package/dist/connectors/telegram/sendOutcome.d.ts +50 -0
  75. package/dist/connectors/telegram/sendOutcome.d.ts.map +1 -0
  76. package/dist/connectors/telegram/sendOutcome.js +49 -0
  77. package/dist/connectors/telegram/sendOutcome.js.map +1 -0
  78. package/dist/connectors/telegram/telegramFailureRetry.d.ts +17 -0
  79. package/dist/connectors/telegram/telegramFailureRetry.d.ts.map +1 -0
  80. package/dist/connectors/telegram/telegramFailureRetry.js +29 -0
  81. package/dist/connectors/telegram/telegramFailureRetry.js.map +1 -0
  82. package/dist/connectors/telegram/unpinMessages.d.ts +1 -1
  83. package/dist/connectors/telegram/unpinMessages.d.ts.map +1 -1
  84. package/dist/connectors/telegram/unpinMessages.js +3 -18
  85. package/dist/connectors/telegram/unpinMessages.js.map +1 -1
  86. package/dist/hooks/claudeSkillsRestoreHook.d.ts +105 -0
  87. package/dist/hooks/claudeSkillsRestoreHook.d.ts.map +1 -0
  88. package/dist/hooks/claudeSkillsRestoreHook.js +276 -0
  89. package/dist/hooks/claudeSkillsRestoreHook.js.map +1 -0
  90. package/dist/i18n/de.d.ts.map +1 -1
  91. package/dist/i18n/de.js +4 -0
  92. package/dist/i18n/de.js.map +1 -1
  93. package/dist/i18n/en.d.ts.map +1 -1
  94. package/dist/i18n/en.js +4 -0
  95. package/dist/i18n/en.js.map +1 -1
  96. package/dist/i18n/es.d.ts.map +1 -1
  97. package/dist/i18n/es.js +4 -0
  98. package/dist/i18n/es.js.map +1 -1
  99. package/dist/i18n/fr.d.ts.map +1 -1
  100. package/dist/i18n/fr.js +4 -0
  101. package/dist/i18n/fr.js.map +1 -1
  102. package/dist/i18n/hi.d.ts.map +1 -1
  103. package/dist/i18n/hi.js +4 -0
  104. package/dist/i18n/hi.js.map +1 -1
  105. package/dist/i18n/ja.d.ts.map +1 -1
  106. package/dist/i18n/ja.js +4 -0
  107. package/dist/i18n/ja.js.map +1 -1
  108. package/dist/i18n/ka.d.ts.map +1 -1
  109. package/dist/i18n/ka.js +4 -0
  110. package/dist/i18n/ka.js.map +1 -1
  111. package/dist/i18n/pt.d.ts.map +1 -1
  112. package/dist/i18n/pt.js +4 -0
  113. package/dist/i18n/pt.js.map +1 -1
  114. package/dist/i18n/ru.d.ts.map +1 -1
  115. package/dist/i18n/ru.js +4 -0
  116. package/dist/i18n/ru.js.map +1 -1
  117. package/dist/i18n/uk.d.ts.map +1 -1
  118. package/dist/i18n/uk.js +4 -0
  119. package/dist/i18n/uk.js.map +1 -1
  120. package/dist/i18n/uz.d.ts.map +1 -1
  121. package/dist/i18n/uz.js +4 -0
  122. package/dist/i18n/uz.js.map +1 -1
  123. package/dist/i18n/zh.d.ts.map +1 -1
  124. package/dist/i18n/zh.js +4 -0
  125. package/dist/i18n/zh.js.map +1 -1
  126. package/dist/i18n.d.ts.map +1 -1
  127. package/dist/i18n.js +2 -1
  128. package/dist/i18n.js.map +1 -1
  129. package/dist/platform/outbound.d.ts +4 -1
  130. package/dist/platform/outbound.d.ts.map +1 -1
  131. package/dist/platform/outbound.js.map +1 -1
  132. package/dist/rateLimiter.d.ts +33 -1
  133. package/dist/rateLimiter.d.ts.map +1 -1
  134. package/dist/rateLimiter.js +91 -5
  135. package/dist/rateLimiter.js.map +1 -1
  136. package/dist/requests/requestHeader.d.ts.map +1 -1
  137. package/dist/requests/requestHeader.js +1 -0
  138. package/dist/requests/requestHeader.js.map +1 -1
  139. package/dist/requests/types.d.ts +4 -1
  140. package/dist/requests/types.d.ts.map +1 -1
  141. package/dist/requests/wakeUpEngine.d.ts +31 -1
  142. package/dist/requests/wakeUpEngine.d.ts.map +1 -1
  143. package/dist/requests/wakeUpEngine.js +94 -2
  144. package/dist/requests/wakeUpEngine.js.map +1 -1
  145. package/dist/requests/wakeUpRules.d.ts +7 -0
  146. package/dist/requests/wakeUpRules.d.ts.map +1 -1
  147. package/dist/requests/wakeUpRules.js +14 -0
  148. package/dist/requests/wakeUpRules.js.map +1 -1
  149. package/dist/runnerUtility/pueueDaemon.d.ts +7 -13
  150. package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
  151. package/dist/runnerUtility/pueueDaemon.js +8 -27
  152. package/dist/runnerUtility/pueueDaemon.js.map +1 -1
  153. package/dist/scheduler/engine.d.ts +17 -4
  154. package/dist/scheduler/engine.d.ts.map +1 -1
  155. package/dist/scheduler/engine.js +55 -10
  156. package/dist/scheduler/engine.js.map +1 -1
  157. package/dist/scheduler/mcpBoot.d.ts +6 -2
  158. package/dist/scheduler/mcpBoot.d.ts.map +1 -1
  159. package/dist/scheduler/mcpBoot.js +7 -1
  160. package/dist/scheduler/mcpBoot.js.map +1 -1
  161. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  162. package/dist/scheduler/mcpSurface.js +18 -9
  163. package/dist/scheduler/mcpSurface.js.map +1 -1
  164. package/dist/selfUpdate/selfCheck.d.ts.map +1 -1
  165. package/dist/selfUpdate/selfCheck.js +1 -1
  166. package/dist/selfUpdate/selfCheck.js.map +1 -1
  167. package/dist/sendErrorClassifier.d.ts +6 -0
  168. package/dist/sendErrorClassifier.d.ts.map +1 -1
  169. package/dist/sendErrorClassifier.js +9 -0
  170. package/dist/sendErrorClassifier.js.map +1 -1
  171. package/dist/startupPromptBuffer.d.ts +8 -8
  172. package/dist/startupPromptBuffer.d.ts.map +1 -1
  173. package/dist/startupPromptBuffer.js +7 -5
  174. package/dist/startupPromptBuffer.js.map +1 -1
  175. package/dist/testTimings.d.ts +6 -3
  176. package/dist/testTimings.d.ts.map +1 -1
  177. package/dist/testTimings.js +7 -2
  178. package/dist/testTimings.js.map +1 -1
  179. package/dist/threadRouting.d.ts +23 -0
  180. package/dist/threadRouting.d.ts.map +1 -1
  181. package/dist/threadRouting.js +28 -0
  182. package/dist/threadRouting.js.map +1 -1
  183. package/dist/trackers/taskAgentSlots.d.ts +42 -3
  184. package/dist/trackers/taskAgentSlots.d.ts.map +1 -1
  185. package/dist/trackers/taskAgentSlots.js +31 -11
  186. package/dist/trackers/taskAgentSlots.js.map +1 -1
  187. package/dist/types.d.ts +16 -0
  188. package/dist/types.d.ts.map +1 -1
  189. package/dist/utils/agentPlugin.d.ts +7 -0
  190. package/dist/utils/agentPlugin.d.ts.map +1 -1
  191. package/dist/utils/agentPlugin.js +12 -0
  192. package/dist/utils/agentPlugin.js.map +1 -1
  193. package/dist/utils/claudeCompactHook.d.ts +73 -10
  194. package/dist/utils/claudeCompactHook.d.ts.map +1 -1
  195. package/dist/utils/claudeCompactHook.js +96 -17
  196. package/dist/utils/claudeCompactHook.js.map +1 -1
  197. package/dist/utils/claudeProfiles.d.ts +8 -0
  198. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  199. package/dist/utils/claudeProfiles.js +12 -2
  200. package/dist/utils/claudeProfiles.js.map +1 -1
  201. package/dist/utils/claudeTranscriptEpoch.d.ts +15 -0
  202. package/dist/utils/claudeTranscriptEpoch.d.ts.map +1 -0
  203. package/dist/utils/claudeTranscriptEpoch.js +120 -0
  204. package/dist/utils/claudeTranscriptEpoch.js.map +1 -0
  205. package/dist/utils/clearStatusCoalescer.d.ts +24 -0
  206. package/dist/utils/clearStatusCoalescer.d.ts.map +1 -0
  207. package/dist/utils/clearStatusCoalescer.js +25 -0
  208. package/dist/utils/clearStatusCoalescer.js.map +1 -0
  209. package/dist/utils/compactOnIdle.d.ts +91 -34
  210. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  211. package/dist/utils/compactOnIdle.js +149 -31
  212. package/dist/utils/compactOnIdle.js.map +1 -1
  213. package/dist/utils/fileSendPlan.d.ts +30 -8
  214. package/dist/utils/fileSendPlan.d.ts.map +1 -1
  215. package/dist/utils/fileSendPlan.js +37 -12
  216. package/dist/utils/fileSendPlan.js.map +1 -1
  217. package/dist/utils/fileSendService.d.ts +1 -1
  218. package/dist/utils/fileSendService.d.ts.map +1 -1
  219. package/dist/utils/fileSendService.js +9 -1
  220. package/dist/utils/fileSendService.js.map +1 -1
  221. package/dist/utils/groupOutputBacklog.d.ts +90 -0
  222. package/dist/utils/groupOutputBacklog.d.ts.map +1 -0
  223. package/dist/utils/groupOutputBacklog.js +134 -0
  224. package/dist/utils/groupOutputBacklog.js.map +1 -0
  225. package/dist/utils/imageDimensions.d.ts +32 -0
  226. package/dist/utils/imageDimensions.d.ts.map +1 -0
  227. package/dist/utils/imageDimensions.js +181 -0
  228. package/dist/utils/imageDimensions.js.map +1 -0
  229. package/dist/utils/jsonStreamHost.d.ts +35 -9
  230. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  231. package/dist/utils/jsonStreamHost.js +59 -16
  232. package/dist/utils/jsonStreamHost.js.map +1 -1
  233. package/dist/utils/lostWork.d.ts +8 -2
  234. package/dist/utils/lostWork.d.ts.map +1 -1
  235. package/dist/utils/lostWork.js +9 -5
  236. package/dist/utils/lostWork.js.map +1 -1
  237. package/dist/utils/messageSendService.d.ts +26 -3
  238. package/dist/utils/messageSendService.d.ts.map +1 -1
  239. package/dist/utils/messageSendService.js +35 -3
  240. package/dist/utils/messageSendService.js.map +1 -1
  241. package/dist/utils/openCodeCompactPlugin.d.ts +33 -0
  242. package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
  243. package/dist/utils/openCodeCompactPlugin.js +192 -1
  244. package/dist/utils/openCodeCompactPlugin.js.map +1 -1
  245. package/dist/utils/promptDelivery.d.ts +11 -2
  246. package/dist/utils/promptDelivery.d.ts.map +1 -1
  247. package/dist/utils/promptDelivery.js +3 -3
  248. package/dist/utils/promptDelivery.js.map +1 -1
  249. package/dist/utils/skillsRestore.d.ts +235 -0
  250. package/dist/utils/skillsRestore.d.ts.map +1 -0
  251. package/dist/utils/skillsRestore.js +515 -0
  252. package/dist/utils/skillsRestore.js.map +1 -0
  253. package/dist/utils/statusFlushDecision.js +1 -1
  254. package/dist/utils/streamedCompactionSummary.d.ts +4 -4
  255. package/dist/utils/streamedCompactionSummary.js +5 -5
  256. package/dist/utils/streamedCompactionSummary.js.map +1 -1
  257. package/dist/utils/streamedOutputLanding.d.ts +14 -0
  258. package/dist/utils/streamedOutputLanding.d.ts.map +1 -0
  259. package/dist/utils/streamedOutputLanding.js +45 -0
  260. package/dist/utils/streamedOutputLanding.js.map +1 -0
  261. package/dist/utils/typingLoopBackstop.d.ts +8 -7
  262. package/dist/utils/typingLoopBackstop.d.ts.map +1 -1
  263. package/dist/utils/typingLoopBackstop.js +6 -5
  264. package/dist/utils/typingLoopBackstop.js.map +1 -1
  265. package/npm-shrinkwrap.json +2 -2
  266. package/package.json +1 -1
  267. package/dist/utils/clearThreadOutputQueues.d.ts +0 -44
  268. package/dist/utils/clearThreadOutputQueues.d.ts.map +0 -1
  269. package/dist/utils/clearThreadOutputQueues.js +0 -39
  270. package/dist/utils/clearThreadOutputQueues.js.map +0 -1
  271. package/dist/utils/groupFinalizePlan.d.ts +0 -36
  272. package/dist/utils/groupFinalizePlan.d.ts.map +0 -1
  273. package/dist/utils/groupFinalizePlan.js +0 -31
  274. package/dist/utils/groupFinalizePlan.js.map +0 -1
@@ -3,6 +3,7 @@ import type { OpenRequestState, RequestOrigin } from '../../requests/types';
3
3
  import { type JiraAccount, type JiraClient } from './client';
4
4
  import type { JiraTriggerLog } from './triggerLog';
5
5
  import { type JiraExtraField } from './issueBlocks';
6
+ import type { JiraMentionMode } from './config';
6
7
  import type { JiraContextLedger } from './contextLedger';
7
8
  import type { SessionPromptText } from '../../postToSession';
8
9
  import { type JiraTrust } from './trustedGroup';
@@ -28,16 +29,34 @@ import type { TaskAgentSlotDecision, TaskAgentSlots } from '../../trackers/taskA
28
29
  * first in the list and a slot is free (`trackers/taskAgentSlots.ts`; a slot freeing wakes the poll at once, `pollSoon`).
29
30
  * A Jira event never cancels an armed usage-limit wait — the ledger's create hook tells the new request about it (core S5).
30
31
  *
31
- * With mention wakes on (a trusted group is set), the same poll also finds a comment that @-mentions the AI
32
- * account — on an issue that is NOT handed to it — and opens a request that answers only:
32
+ * With comment wakes on (a trusted group is set), a trusted person's comment on an issue HANDED to the AI account —
33
+ * assigned to it in a trigger status, its hand-over seen — reaches its agent; a mention there is a comment like any other:
34
+ *
35
+ * `updated` moved since this process last read it → its newest comments: a person's (not the AI account's, not an app's
36
+ * or an automation's — those ride the next prompt), newer than every comment a recorded prompt of the issue was built
37
+ * from (the trigger log's `newestCommentId`: no window, so a comment made while the bot was down is not lost), whose
38
+ * `comment:<id>` (and `mention:<id>`) is not seen →
39
+ * author and last editor trusted (else `untrusted`, silent) →
40
+ * a hand-over request of the conversation open → an ISSUE UPDATE posted for it: no request is opened (a new one
41
+ * would supersede the hand-over, or hand the issue to the commenter on its first final answer)
42
+ * none open → run budget → a free task-agent slot → a request of its own (`commented`, the commenter its requester)
43
+ * → RECORD every comment once its post settled (an update that failed is decided again, after a backoff)
44
+ *
45
+ * With mention wakes on, the same poll also finds a comment that @-mentions the AI account — on an issue that is NOT
46
+ * handed to it (with comment wakes off: on any issue) — and opens a request:
33
47
  *
34
48
  * issue returned and its `updated` moved since this process last read it → its newest comments, those
35
49
  * created or edited within the mention window that mention the AI account (the ADF mention node's id) and
36
50
  * whose trigger id `mention:<commentId>` is not seen →
37
- * author and last editor trusted → not covered by an open hand-over request of the same person
38
- * → run budget → open a request (no hand-back; the answer sink knows by the origin kind)
51
+ * author and last editor trusted → by the requester of an open hand-over request: an issue update for that
52
+ * request (with comment wakes off: `covered`, nothing posted) → run budget → with `mentionMode: "act"` a free
53
+ * task-agent slot (an acting mention may start a build) → open a request (no hand-back; the answer sink knows by
54
+ * the origin kind)
39
55
  *
40
- * One decision per comment, recorded in the same trigger log: an edit of a decided comment wakes nothing.
56
+ * One decision per comment, recorded in the same trigger log: an edit of a decided comment wakes nothing. An acting
57
+ * mention that waits for a slot keeps its place across polls and restarts: its comment is decided again outside the
58
+ * window, and its issue is read by its key once the search no longer returns it. So does a mention held back from its
59
+ * issue update (the cap on updates paused it, or its post failed: `held-mention:` in the trigger log) until it is delivered.
41
60
  */
42
61
  export declare const jiraSearchPageSize = 50;
43
62
  /** The longest wait between two attempts while Jira keeps failing (R22). */
@@ -46,6 +65,12 @@ export declare const jiraRetryBackoffCapMs: number;
46
65
  export declare const jiraMentionWindowMinMs: number;
47
66
  /** How many of an issue's newest comments a mention scan reads — more than a window of activity holds. */
48
67
  export declare const jiraMentionScanCommentCount = 100;
68
+ /**
69
+ * The issue updates one issue may get in a rolling 24 h. A person's comment is one; an account that comments as the agent's
70
+ * own tooling would loop (each comment the next poll's update), and the cap ends that: past it, comments wait until the
71
+ * oldest update of the window leaves it, with one log line per pause.
72
+ */
73
+ export declare const jiraIssueUpdatesPer24hMax = 20;
49
74
  /**
50
75
  * @description R22: the wait before the next attempt after `failureCount`
51
76
  * failures in a row — the base interval doubled per failure, up to
@@ -77,13 +102,14 @@ export interface JiraProjectTrigger {
77
102
  * - `seen` — its trigger was decided before.
78
103
  * - `queued` — no task-agent slot was free: it joined the bot's wait list and was told so (once). `waiting` — it is
79
104
  * still in the list (skipped; nothing is posted again).
80
- * - `selfAuthored`, `parked`, `untrusted`, `covered`, `request` — the recorded outcomes; `untrusted` — the
105
+ * - `selfAuthored`, `parked`, `untrusted`, `covered`, `update`, `request` — the recorded outcomes; `untrusted` — the
81
106
  * hand-over was made by someone the trusted group does not back (a notice and the hand-back, no request; for
82
- * a mention: silent, nothing posted); `covered` — a mention by the requester of the issue's open hand-over
83
- * request, which that run already carries (no request).
107
+ * a mention or a comment: silent, nothing posted); `covered` — with comment wakes off, a mention by the requester of
108
+ * the issue's open hand-over request (no request, nothing posted); `update` — the comment went to the agent as an
109
+ * issue update for an open hand-over request (no request).
84
110
  * - `failed` — an error stopped it; the next poll tries again.
85
111
  */
86
- export type JiraIssueDecision = 'notAllowed' | 'notMatching' | 'posting' | 'seen' | 'selfAuthored' | 'parked' | 'untrusted' | 'covered' | 'queued' | 'waiting' | 'request' | 'failed';
112
+ export type JiraIssueDecision = 'notAllowed' | 'notMatching' | 'posting' | 'seen' | 'selfAuthored' | 'parked' | 'untrusted' | 'covered' | 'update' | 'queued' | 'waiting' | 'request' | 'failed';
87
113
  export interface JiraInboundDeps {
88
114
  client: Pick<JiraClient, 'searchIssues' | 'getChangelogPage' | 'getIssue' | 'getComments' | 'getRecentComments' | 'getRemoteLinks'>;
89
115
  aiAccountId: string;
@@ -99,8 +125,12 @@ export interface JiraInboundDeps {
99
125
  trust: JiraTrust | null;
100
126
  /** An @-mention of the AI account wakes it (`config.isMentionWakeOn`); never without {@link trust} — nobody could be judged. */
101
127
  isMentionWakeOn: boolean;
102
- /** The open requests of an issue's conversation — a hand-over's requester who mentions the AI is already served (D9). */
103
- listOpenRequests: (key: SessionKey) => ReadonlyArray<Pick<OpenRequestState, 'id' | 'origin'>>;
128
+ /** What a mention asks of the agent (`config.mentionMode`): `act` — an explicit ask is carried out, and the request takes a task-agent slot. */
129
+ mentionMode: JiraMentionMode;
130
+ /** A trusted person's comment on an issue handed to the AI account reaches its agent (`config.isCommentWakeOn`); never without {@link trust}. */
131
+ isCommentWakeOn: boolean;
132
+ /** The open requests of an issue's conversation — the hand-over a comment or a mention belongs to (D9). */
133
+ listOpenRequests: (key: SessionKey) => ReadonlyArray<Pick<OpenRequestState, 'id' | 'origin' | 'isWakeStopped'>>;
104
134
  now: () => number;
105
135
  /** Bind the issue's conversation to its project's folder. */
106
136
  bindConversation: (key: SessionKey, folder: string) => Promise<void>;
@@ -115,8 +145,14 @@ export interface JiraInboundDeps {
115
145
  * makes the delta for a session that already knows the issue (C5).
116
146
  */
117
147
  postRequest: (key: SessionKey, requestId: string, prompt: SessionPromptText) => Promise<void>;
118
- /** What each issue's conversation was already told (C4). */
119
- contextLedger: Pick<JiraContextLedger, 'getSnapshot' | 'recordBuild'>;
148
+ /**
149
+ * Post an issue update into the issue's session — no request is opened: it belongs to the open hand-over request its text
150
+ * names. `prompt.buildText` runs right before the forward and settles which request that is; `getTargetRequestId` then
151
+ * answers it (the turn is watched for that request). Rejects when the update did not reach the session.
152
+ */
153
+ postUpdate: (key: SessionKey, prompt: SessionPromptText, getTargetRequestId: () => string) => Promise<void>;
154
+ /** What each issue's conversation was already told (C4), and shown (a comment before its prompt recorded its newest one). */
155
+ contextLedger: Pick<JiraContextLedger, 'getSnapshot' | 'recordBuild' | 'getShownBlock'>;
120
156
  /** Over the run budget: the park notice and the hand-back (the answer side, J6). */
121
157
  parkIssue: (issueKey: string, requester: JiraAccount | null) => Promise<void>;
122
158
  /** The summary a request's prompt shows of its issue — `null` when withheld (D55: the todo boards name the issue by it). */
@@ -125,8 +161,10 @@ export interface JiraInboundDeps {
125
161
  refuseUntrusted: (issueKey: string, requester: JiraAccount | null, groupName: string) => Promise<void>;
126
162
  /** A mention over the run budget: the park notice, no hand-back (the answer side). */
127
163
  parkMention: (issueKey: string) => Promise<void>;
128
- /** The bot's one cap on task agents and its wait list; a mention request bypasses it. */
129
- slots: Pick<TaskAgentSlots, 'checkIn' | 'noteStarted' | 'noteStartFailed' | 'dropWaiting' | 'pruneWaiting' | 'onSlotFreed'>;
164
+ /** The issue reached the cap on updates: one comment saying they are paused until `untilMs` (the answer side). Never rejects. */
165
+ postUpdatesPausedNotice: (issueKey: string, untilMs: number) => Promise<void>;
166
+ /** The bot's one cap on task agents and its wait list; a mention request that answers only bypasses it. */
167
+ slots: Pick<TaskAgentSlots, 'checkIn' | 'noteStarted' | 'noteStartFailed' | 'dropWaiting' | 'listWaiting' | 'pruneWaiting' | 'onSlotFreed'>;
130
168
  /** A hand-over that has to wait for a slot: the short comment saying so (the answer side). Never rejects. */
131
169
  postQueuedNotice: (issueKey: string, queue: Extract<TaskAgentSlotDecision, {
132
170
  kind: 'queued';
@@ -151,8 +189,19 @@ export declare class JiraInbound {
151
189
  private failureCount;
152
190
  /** Issues whose last request's post has not settled yet. */
153
191
  private readonly postingIssueKeys;
154
- /** Per issue, its `updated` as of the last mention scan that decided every comment — in memory only: a restart scans once more. */
192
+ /** Per issue, its `updated` as of the last comment or mention scan that decided every comment — in memory only: a restart scans once more. */
155
193
  private readonly lastUpdatedByIssue;
194
+ /** Per issue, the issue updates in a row that did not reach the session, and when the next may be tried — in memory only. */
195
+ private readonly updateRetries;
196
+ /** Issues whose seen hand-over the AI account made itself (it took the issue up) — in memory, refreshed by every poll. */
197
+ private readonly selfAssignedIssueKeys;
198
+ /**
199
+ * The issues handed to the AI account (their hand-over seen) at the last poll, each with the request its last update went
200
+ * to or would have gone to — in memory only. One that leaves the handed state gets one last comment scan.
201
+ */
202
+ private readonly handedIssues;
203
+ /** The issues the poll under way found handed to the AI account (whatever their decision). */
204
+ private readonly handedThisPoll;
156
205
  /**
157
206
  * The mention requests whose stored prompt can be rebuilt with the hand-over requests that are open NOW, by request id —
158
207
  * in memory only (a restart leaves the stored text, whose wording holds on its own) and bounded: an entry of a request
@@ -180,6 +229,46 @@ export declare class JiraInbound {
180
229
  private getAllowlistedProject;
181
230
  /** The mention window, or `null` when mention wakes are off (or cannot judge anyone: no trusted group read yet). */
182
231
  private getMentionWindowMs;
232
+ /** Comment wakes are on and can judge someone (a trusted group read). */
233
+ private checkIsCommentWakeOn;
234
+ /** Handed to the AI account: assigned to it, in one of its project's trigger statuses. */
235
+ private checkIsHanded;
236
+ /**
237
+ * Every decision one returned issue gets in a poll: the hand-over's, then — with comment wakes on and the issue handed
238
+ * to the AI, once its hand-over is seen — its new comments', else — with mention wakes on — its mentions'.
239
+ */
240
+ private decideIssue;
241
+ /** A handed issue whose hand-over is seen: remembered with the request an update would go to now (kept when none is open). */
242
+ private noteHanded;
243
+ /**
244
+ * @description One last comment scan of each issue that was handed to the AI account at an earlier poll and is not now
245
+ * (handed back, unassigned, moved on): a comment written while it was handed — before the change that ended that —
246
+ * which the agent never got (its final answer came first) is delivered as the "finished" update of the request it was
247
+ * working on, or to a request still open — on an issue the AI account took up in another issue's run, to that run's
248
+ * request when no request of its own is known. An issue the search no longer returns is read by its key. Kept for the next
249
+ * poll while a post of it is in flight, its read fails, or an update of it is still to land.
250
+ */
251
+ private scanIssuesThatLeftHanded;
252
+ /** An issue that left the handed state, read by its key; `'gone'` when Jira no longer has it, `null` when the read failed. */
253
+ private readIssueThatLeft;
254
+ /** When the issue stopped being handed: the newest changelog entry that assigned it away from the AI account or moved it out of a trigger status; `null` when none is found. */
255
+ private findLeftHandedAt;
256
+ /** The last comment scan of an issue that left the handed state (see {@link scanIssuesThatLeftHanded}). */
257
+ private getLastCommentDecisions;
258
+ /** The acting mentions that wait for a task-agent slot, oldest first: each issue's key and its `mention:<id>` trigger. */
259
+ private listWaitingMentions;
260
+ /** The trigger `key`'s conversation waits for a slot with, when it starts with `prefix`; else `null`. */
261
+ private getWaitingTriggerId;
262
+ /**
263
+ * The issue of a waiting acting mention, read by its key with the search's fields; `null` when it could not be read. An
264
+ * issue Jira no longer has (deleted, or moved out of reach) gives its place up.
265
+ */
266
+ private readWaitingIssue;
267
+ /**
268
+ * The issue of a mention held back from its issue update, read by its key with the search's fields; `null` when it could
269
+ * not be read. An issue Jira no longer has (deleted, or moved out of reach) is no longer kept for its held mentions.
270
+ */
271
+ private readHeldMentionIssue;
183
272
  /**
184
273
  * Runs `run`: a refused token propagates (it stops polling); any other failure is one warning naming the issue and
185
274
  * `what` failed, and the answer is `fallback` — the next poll tries again.
@@ -191,12 +280,101 @@ export declare class JiraInbound {
191
280
  /**
192
281
  * @description The comments of `issue` that mention the AI account and were not decided yet, each decided once
193
282
  * (oldest first). Skipped altogether while the issue's `updated` is what the last complete scan saw, and while
194
- * a request of the issue is being posted (the next poll takes the rest: one request is posted at a time).
283
+ * a request of the issue is being posted (the next poll takes the rest: one request is posted at a time). A mention
284
+ * waiting for a task-agent slot is scanned at every poll and stays in, outside the window too, until it is decided; so
285
+ * does a mention held back from its issue update (the cap on updates, a post that failed), once the wait is over.
195
286
  */
196
287
  private getMentionDecisions;
197
- /** One comment failing (the issue could not be read for its prompt, say) leaves the others' decisions standing; the next poll retries it. */
288
+ /**
289
+ * One comment failing (the issue could not be read for its prompt, say) leaves the others' decisions standing; the next poll
290
+ * retries it. A mention that waited for a slot and is decided now — started, or refused, parked or turned into an update —
291
+ * gives its place up.
292
+ */
198
293
  private getMentionDecisionSafely;
199
294
  private getMentionDecision;
295
+ /**
296
+ * Open the request of `trigger` in a free task-agent slot; past the cap the conversation joins the bot's wait list — told
297
+ * once with the queued notice, its trigger unrecorded, decided again by every poll until it is first in the list.
298
+ */
299
+ private openRequestInSlot;
300
+ private getCommentDecisionsSafely;
301
+ /**
302
+ * @description The new comments of an issue HANDED to the AI account (its hand-over seen), decided in one go: the trusted
303
+ * people's reach its agent — as ONE issue update of the open hand-over request, else as ONE request of their own —
304
+ * the others are recorded `untrusted` (silent), and an app's or an automation's ride the next prompt. Skipped while the
305
+ * issue's `updated` is what the last complete scan saw (unless a comment's request waits for a slot: then every poll
306
+ * decides it again), while a post of the issue is in flight, and while a failed update waits for its retry.
307
+ */
308
+ private getCommentDecisions;
309
+ /** The comments of `comments` new to the issue's conversation and not decided yet (none the AI account wrote), oldest first. */
310
+ private listNewComments;
311
+ /**
312
+ * The people's comments of `comments` that may reach the agent (`counted`): an app's or an automation's (a pipeline notice,
313
+ * a rule) wakes nothing — it rides the next prompt — and one whose author or last editor is not trusted is recorded
314
+ * `untrusted` (one log line, nothing posted; its decision goes into `decisions`).
315
+ */
316
+ private partitionTrustedComments;
317
+ /**
318
+ * Is `comment` new to the issue's conversation? Newer than every comment a recorded prompt of the issue was built from
319
+ * (the trigger log's watermark — it survives a restart, a compaction and a fresh session) or the conversation was shown.
320
+ * With neither (decisions recorded before the watermark was): not shown, and written after the issue's last decision.
321
+ */
322
+ private checkIsCommentNewToConversation;
323
+ /**
324
+ * The requests of the conversation an update can belong to, open and not given up: its hand-overs and its mentions that
325
+ * may act (the work it is doing on the issue) — and, on an issue the AI account handed to itself, any open request: the
326
+ * one that made it take the issue up is still working on it.
327
+ */
328
+ private listUpdateTargetRequests;
329
+ /**
330
+ * The trusted comments `counted` (oldest first) of a handed issue: an issue update when a hand-over request is open, else
331
+ * a request of their own — the newest comment's trigger, its author the requester — through the run budget and a slot.
332
+ */
333
+ private deliverComments;
334
+ /**
335
+ * The open request that works on an issue linked to `issue` — its parent, a sub-task or child, either end of an issue link,
336
+ * in an allowlisted project — and holds a task-agent slot (a hand-over, or a mention that may act); `null` when none does.
337
+ * When several do, the one on an issue the AI account tied `issue` to (it linked them, or set the parent: the run that
338
+ * created or took it up), else the first. Read with the issue's context, which the update then quotes.
339
+ */
340
+ private findLinkedWorkingRequest;
341
+ /**
342
+ * @description Post the comments of a self-handed issue into the conversation of the linked issue whose request works on it:
343
+ * an issue update of THAT request whose header names the issue the comments are on, carrying only the new comments (that
344
+ * conversation's context ledger is its own issue's). Recorded on the commented issue once posted, like any update.
345
+ */
346
+ private postLinkedIssueUpdate;
347
+ /**
348
+ * Past the cap on issue updates: the comments stay undecided and are delivered once the oldest update of the last 24 h
349
+ * leaves that window (the scan waits until then; a mention, found only inside the mention window, is held back so the
350
+ * scan keeps it). One log line per pause says until when; the issue gets ONE comment by the AI account saying so at most
351
+ * once per rolling 24 h — a steady stream of comments pauses it again at every window end — and the AI account's own
352
+ * comments are never delivered, so the notice starts no loop.
353
+ */
354
+ private pauseUpdates;
355
+ /**
356
+ * Mark the mentions `comments` held back from their issue update (`held-mention:`): the mention scan keeps them, outside
357
+ * the mention window too, until they are delivered. Kept for this process when the line could not be written.
358
+ */
359
+ private holdMentionsBack;
360
+ /** A failed issue update of the issue waits for its retry. */
361
+ private checkIsUpdateRetryPending;
362
+ /**
363
+ * @description Post an ISSUE UPDATE: the comments `comments` (trigger ids `prefix` + id: a comment's, or a mention's)
364
+ * reach the agent inside an open hand-over request of the conversation — no request is opened. Which request is
365
+ * settled right before the forward (the post may have waited behind a running turn): the commenter's own open one,
366
+ * else one with no requester, else the newest; when every hand-over finished meanwhile, the one the update was meant
367
+ * for, named as finished — the comment still reaches the agent, and its answer becomes a comment. The text is the
368
+ * issue's delta (or the whole issue for a session that does not know it). Recorded once the post settled; a post that
369
+ * failed is decided again after a backoff. Not awaited: the issue is skipped until the post settles.
370
+ */
371
+ private postIssueUpdate;
372
+ /**
373
+ * Post the update, then record its comments — only when it reached the session (or a usage-limit wait holds it): an
374
+ * update that failed is decided again by a later poll, after a backoff (the session could not be started, say, and a
375
+ * start per poll would hammer it). Never rejects.
376
+ */
377
+ private postUpdateAndRecord;
200
378
  /**
201
379
  * The hand-over requests (`trackerEvent`) the conversation has open, each with its requester named as the issue's own
202
380
  * data names them — what a mention note says goes on. A mention request itself is not one: it hands nothing over.
@@ -215,6 +393,10 @@ export declare class JiraInbound {
215
393
  * of a request that is no longer open, or one built before a restart — comes back as it is.
216
394
  */
217
395
  readonly refreshPromptText: (promptText: string) => string;
396
+ /**
397
+ * Open the request of `trigger` and post it (not awaited); `extraRecords` are recorded with its trigger once the post
398
+ * settled (the older comments a comment's request carries). Every record names the newest comment the prompt was built from.
399
+ */
218
400
  private openRequest;
219
401
  /**
220
402
  * @description Post the request, then record its trigger — also when the post
@@ -1 +1 @@
1
- {"version":3,"file":"inbound.d.ts","sourceRoot":"","sources":["../../../src/connectors/jira/inbound.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE5E,OAAO,EAAwC,KAAK,WAAW,EAA6B,KAAK,UAAU,EAAoC,MAAM,UAAU,CAAC;AAIhK,OAAO,KAAK,EAAE,cAAc,EAAqB,MAAM,cAAc,CAAC;AACtE,OAAO,EAAsF,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAIxI,OAAO,KAAK,EAAE,iBAAiB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