charness 4.1.0 → 4.2.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 (312) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/DEVELOPMENT.md +11 -5
  3. package/{COMMERCIAL-LICENSE.md → LICENSE-COMMERCIAL.md} +1 -1
  4. package/MIGRATION_3_TO_4.md +1 -1
  5. package/README.md +4 -1
  6. package/SETUP.md +37 -9
  7. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +1 -0
  8. package/agent-plugin/skills/charness-orchestration/SKILL.md +1 -0
  9. package/dist/adapters/adapterNames.d.ts +2 -0
  10. package/dist/adapters/adapterNames.d.ts.map +1 -1
  11. package/dist/adapters/adapterNames.js +3 -1
  12. package/dist/adapters/adapterNames.js.map +1 -1
  13. package/dist/adapters/claudeJsonStreamAdapter.d.ts +74 -5
  14. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  15. package/dist/adapters/claudeJsonStreamAdapter.js +164 -20
  16. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  17. package/dist/adapters/openCodeAdapter.d.ts +31 -2
  18. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  19. package/dist/adapters/openCodeAdapter.js +84 -8
  20. package/dist/adapters/openCodeAdapter.js.map +1 -1
  21. package/dist/adapters/terminalAdapter.d.ts.map +1 -1
  22. package/dist/adapters/terminalAdapter.js +2 -1
  23. package/dist/adapters/terminalAdapter.js.map +1 -1
  24. package/dist/bot.d.ts.map +1 -1
  25. package/dist/bot.js +769 -118
  26. package/dist/bot.js.map +1 -1
  27. package/dist/cli/claudeProfiles.d.ts +3 -0
  28. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  29. package/dist/cli/claudeProfiles.js +8 -0
  30. package/dist/cli/claudeProfiles.js.map +1 -1
  31. package/dist/connectors/jira/answerSink.d.ts +8 -0
  32. package/dist/connectors/jira/answerSink.d.ts.map +1 -1
  33. package/dist/connectors/jira/answerSink.js +15 -0
  34. package/dist/connectors/jira/answerSink.js.map +1 -1
  35. package/dist/connectors/jira/config.d.ts +16 -0
  36. package/dist/connectors/jira/config.d.ts.map +1 -1
  37. package/dist/connectors/jira/config.js +21 -2
  38. package/dist/connectors/jira/config.js.map +1 -1
  39. package/dist/connectors/jira/connector.d.ts +10 -3
  40. package/dist/connectors/jira/connector.d.ts.map +1 -1
  41. package/dist/connectors/jira/connector.js +21 -3
  42. package/dist/connectors/jira/connector.js.map +1 -1
  43. package/dist/connectors/jira/inbound.d.ts +200 -18
  44. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  45. package/dist/connectors/jira/inbound.js +814 -43
  46. package/dist/connectors/jira/inbound.js.map +1 -1
  47. package/dist/connectors/jira/prompt.d.ts +46 -0
  48. package/dist/connectors/jira/prompt.d.ts.map +1 -1
  49. package/dist/connectors/jira/prompt.js +123 -15
  50. package/dist/connectors/jira/prompt.js.map +1 -1
  51. package/dist/connectors/jira/trigger.d.ts +27 -4
  52. package/dist/connectors/jira/trigger.d.ts.map +1 -1
  53. package/dist/connectors/jira/trigger.js +35 -1
  54. package/dist/connectors/jira/trigger.js.map +1 -1
  55. package/dist/connectors/jira/triggerLog.d.ts +60 -5
  56. package/dist/connectors/jira/triggerLog.d.ts.map +1 -1
  57. package/dist/connectors/jira/triggerLog.js +116 -7
  58. package/dist/connectors/jira/triggerLog.js.map +1 -1
  59. package/dist/connectors/telegram/commands/botCore.d.ts +5 -2
  60. package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
  61. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +5 -0
  62. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  63. package/dist/connectors/telegram/commands/claudeAccounts.js +15 -39
  64. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  65. package/dist/connectors/telegram/commands/compaction.d.ts +6 -0
  66. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  67. package/dist/connectors/telegram/commands/compaction.js +8 -1
  68. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  69. package/dist/connectors/telegram/commands/questionSetAside.d.ts +111 -0
  70. package/dist/connectors/telegram/commands/questionSetAside.d.ts.map +1 -0
  71. package/dist/connectors/telegram/commands/questionSetAside.js +637 -0
  72. package/dist/connectors/telegram/commands/questionSetAside.js.map +1 -0
  73. package/dist/connectors/telegram/commands/questionWait.d.ts +21 -0
  74. package/dist/connectors/telegram/commands/questionWait.d.ts.map +1 -0
  75. package/dist/connectors/telegram/commands/questionWait.js +109 -0
  76. package/dist/connectors/telegram/commands/questionWait.js.map +1 -0
  77. package/dist/connectors/telegram/commands/runners.d.ts +28 -1
  78. package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
  79. package/dist/connectors/telegram/commands/runners.js +75 -40
  80. package/dist/connectors/telegram/commands/runners.js.map +1 -1
  81. package/dist/connectors/telegram/commands/topicAccess.js +1 -1
  82. package/dist/connectors/telegram/commands/topicAccess.js.map +1 -1
  83. package/dist/connectors/telegram/commands/topicCommand.d.ts +0 -2
  84. package/dist/connectors/telegram/commands/topicCommand.d.ts.map +1 -1
  85. package/dist/connectors/telegram/commands/topicCommand.js +4 -5
  86. package/dist/connectors/telegram/commands/topicCommand.js.map +1 -1
  87. package/dist/connectors/telegram/commands/topicStatus.d.ts +24 -0
  88. package/dist/connectors/telegram/commands/topicStatus.d.ts.map +1 -0
  89. package/dist/connectors/telegram/commands/topicStatus.js +148 -0
  90. package/dist/connectors/telegram/commands/topicStatus.js.map +1 -0
  91. package/dist/connectors/telegram/firstUpdateBatchNote.d.ts +30 -0
  92. package/dist/connectors/telegram/firstUpdateBatchNote.d.ts.map +1 -0
  93. package/dist/connectors/telegram/firstUpdateBatchNote.js +39 -0
  94. package/dist/connectors/telegram/firstUpdateBatchNote.js.map +1 -0
  95. package/dist/connectors/telegram/inbound.d.ts +12 -0
  96. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  97. package/dist/connectors/telegram/inbound.js +31 -3
  98. package/dist/connectors/telegram/inbound.js.map +1 -1
  99. package/dist/connectors/telegram/sendOutcome.d.ts +3 -1
  100. package/dist/connectors/telegram/sendOutcome.d.ts.map +1 -1
  101. package/dist/connectors/telegram/sendOutcome.js.map +1 -1
  102. package/dist/connectors/telegram/telegramFailureRetry.d.ts +8 -0
  103. package/dist/connectors/telegram/telegramFailureRetry.d.ts.map +1 -1
  104. package/dist/connectors/telegram/telegramFailureRetry.js +8 -0
  105. package/dist/connectors/telegram/telegramFailureRetry.js.map +1 -1
  106. package/dist/connectors/telegram/topicIndicator.d.ts +86 -0
  107. package/dist/connectors/telegram/topicIndicator.d.ts.map +1 -0
  108. package/dist/connectors/telegram/topicIndicator.js +490 -0
  109. package/dist/connectors/telegram/topicIndicator.js.map +1 -0
  110. package/dist/connectors/telegram/waitingTopicRenames.d.ts +39 -0
  111. package/dist/connectors/telegram/waitingTopicRenames.d.ts.map +1 -0
  112. package/dist/connectors/telegram/waitingTopicRenames.js +48 -0
  113. package/dist/connectors/telegram/waitingTopicRenames.js.map +1 -0
  114. package/dist/i18n/de.d.ts.map +1 -1
  115. package/dist/i18n/de.js +51 -0
  116. package/dist/i18n/de.js.map +1 -1
  117. package/dist/i18n/en.d.ts.map +1 -1
  118. package/dist/i18n/en.js +51 -0
  119. package/dist/i18n/en.js.map +1 -1
  120. package/dist/i18n/es.d.ts.map +1 -1
  121. package/dist/i18n/es.js +51 -0
  122. package/dist/i18n/es.js.map +1 -1
  123. package/dist/i18n/fr.d.ts.map +1 -1
  124. package/dist/i18n/fr.js +51 -0
  125. package/dist/i18n/fr.js.map +1 -1
  126. package/dist/i18n/hi.d.ts.map +1 -1
  127. package/dist/i18n/hi.js +51 -0
  128. package/dist/i18n/hi.js.map +1 -1
  129. package/dist/i18n/ja.d.ts.map +1 -1
  130. package/dist/i18n/ja.js +51 -0
  131. package/dist/i18n/ja.js.map +1 -1
  132. package/dist/i18n/ka.d.ts.map +1 -1
  133. package/dist/i18n/ka.js +51 -0
  134. package/dist/i18n/ka.js.map +1 -1
  135. package/dist/i18n/pt.d.ts.map +1 -1
  136. package/dist/i18n/pt.js +51 -0
  137. package/dist/i18n/pt.js.map +1 -1
  138. package/dist/i18n/ru.d.ts.map +1 -1
  139. package/dist/i18n/ru.js +51 -0
  140. package/dist/i18n/ru.js.map +1 -1
  141. package/dist/i18n/uk.d.ts.map +1 -1
  142. package/dist/i18n/uk.js +51 -0
  143. package/dist/i18n/uk.js.map +1 -1
  144. package/dist/i18n/uz.d.ts.map +1 -1
  145. package/dist/i18n/uz.js +51 -0
  146. package/dist/i18n/uz.js.map +1 -1
  147. package/dist/i18n/zh.d.ts.map +1 -1
  148. package/dist/i18n/zh.js +51 -0
  149. package/dist/i18n/zh.js.map +1 -1
  150. package/dist/i18n.d.ts.map +1 -1
  151. package/dist/i18n.js +2 -1
  152. package/dist/i18n.js.map +1 -1
  153. package/dist/instanceSettings.d.ts +19 -1
  154. package/dist/instanceSettings.d.ts.map +1 -1
  155. package/dist/instanceSettings.js +35 -2
  156. package/dist/instanceSettings.js.map +1 -1
  157. package/dist/openCodeOpenQuestion.d.ts +12 -4
  158. package/dist/openCodeOpenQuestion.d.ts.map +1 -1
  159. package/dist/openCodeOpenQuestion.js +16 -7
  160. package/dist/openCodeOpenQuestion.js.map +1 -1
  161. package/dist/openCodeQuestionFlow.d.ts +10 -2
  162. package/dist/openCodeQuestionFlow.d.ts.map +1 -1
  163. package/dist/openCodeQuestionFlow.js +27 -5
  164. package/dist/openCodeQuestionFlow.js.map +1 -1
  165. package/dist/postToSession.d.ts +9 -0
  166. package/dist/postToSession.d.ts.map +1 -1
  167. package/dist/postToSession.js +15 -2
  168. package/dist/postToSession.js.map +1 -1
  169. package/dist/requests/requestHeader.d.ts.map +1 -1
  170. package/dist/requests/requestHeader.js +1 -0
  171. package/dist/requests/requestHeader.js.map +1 -1
  172. package/dist/requests/types.d.ts +4 -1
  173. package/dist/requests/types.d.ts.map +1 -1
  174. package/dist/requests/wakeUpEngine.d.ts +31 -1
  175. package/dist/requests/wakeUpEngine.d.ts.map +1 -1
  176. package/dist/requests/wakeUpEngine.js +94 -2
  177. package/dist/requests/wakeUpEngine.js.map +1 -1
  178. package/dist/requests/wakeUpRules.d.ts +7 -0
  179. package/dist/requests/wakeUpRules.d.ts.map +1 -1
  180. package/dist/requests/wakeUpRules.js +14 -0
  181. package/dist/requests/wakeUpRules.js.map +1 -1
  182. package/dist/scheduler/engine.d.ts +17 -4
  183. package/dist/scheduler/engine.d.ts.map +1 -1
  184. package/dist/scheduler/engine.js +55 -10
  185. package/dist/scheduler/engine.js.map +1 -1
  186. package/dist/scheduler/mcpBoot.d.ts +6 -2
  187. package/dist/scheduler/mcpBoot.d.ts.map +1 -1
  188. package/dist/scheduler/mcpBoot.js +7 -1
  189. package/dist/scheduler/mcpBoot.js.map +1 -1
  190. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  191. package/dist/scheduler/mcpSurface.js +18 -9
  192. package/dist/scheduler/mcpSurface.js.map +1 -1
  193. package/dist/sendErrorClassifier.d.ts +6 -0
  194. package/dist/sendErrorClassifier.d.ts.map +1 -1
  195. package/dist/sendErrorClassifier.js +9 -0
  196. package/dist/sendErrorClassifier.js.map +1 -1
  197. package/dist/startupPromptBuffer.d.ts +8 -8
  198. package/dist/startupPromptBuffer.d.ts.map +1 -1
  199. package/dist/startupPromptBuffer.js +7 -5
  200. package/dist/startupPromptBuffer.js.map +1 -1
  201. package/dist/state.d.ts +98 -6
  202. package/dist/state.d.ts.map +1 -1
  203. package/dist/state.js +149 -7
  204. package/dist/state.js.map +1 -1
  205. package/dist/testTimings.d.ts +12 -3
  206. package/dist/testTimings.d.ts.map +1 -1
  207. package/dist/testTimings.js +23 -2
  208. package/dist/testTimings.js.map +1 -1
  209. package/dist/threadRouting.d.ts +23 -0
  210. package/dist/threadRouting.d.ts.map +1 -1
  211. package/dist/threadRouting.js +28 -0
  212. package/dist/threadRouting.js.map +1 -1
  213. package/dist/todos/registry.d.ts +2 -0
  214. package/dist/todos/registry.d.ts.map +1 -1
  215. package/dist/todos/registry.js +3 -1
  216. package/dist/todos/registry.js.map +1 -1
  217. package/dist/trackers/taskAgentSlots.d.ts +42 -3
  218. package/dist/trackers/taskAgentSlots.d.ts.map +1 -1
  219. package/dist/trackers/taskAgentSlots.js +31 -11
  220. package/dist/trackers/taskAgentSlots.js.map +1 -1
  221. package/dist/types.d.ts +95 -0
  222. package/dist/types.d.ts.map +1 -1
  223. package/dist/utils/claudeCompactHook.d.ts +3 -1
  224. package/dist/utils/claudeCompactHook.d.ts.map +1 -1
  225. package/dist/utils/claudeCompactHook.js +3 -1
  226. package/dist/utils/claudeCompactHook.js.map +1 -1
  227. package/dist/utils/claudeLimitSwitch.d.ts +1 -1
  228. package/dist/utils/claudeLimitSwitch.d.ts.map +1 -1
  229. package/dist/utils/claudeLimitSwitch.js +1 -1
  230. package/dist/utils/claudeLimitSwitch.js.map +1 -1
  231. package/dist/utils/claudeProfileSync.d.ts +88 -0
  232. package/dist/utils/claudeProfileSync.d.ts.map +1 -0
  233. package/dist/utils/claudeProfileSync.js +198 -0
  234. package/dist/utils/claudeProfileSync.js.map +1 -0
  235. package/dist/utils/claudeProfiles.d.ts +101 -6
  236. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  237. package/dist/utils/claudeProfiles.js +288 -23
  238. package/dist/utils/claudeProfiles.js.map +1 -1
  239. package/dist/utils/claudeUsageRefresher.d.ts +8 -1
  240. package/dist/utils/claudeUsageRefresher.d.ts.map +1 -1
  241. package/dist/utils/claudeUsageRefresher.js +11 -1
  242. package/dist/utils/claudeUsageRefresher.js.map +1 -1
  243. package/dist/utils/cutButtonLabel.d.ts +7 -0
  244. package/dist/utils/cutButtonLabel.d.ts.map +1 -0
  245. package/dist/utils/cutButtonLabel.js +17 -0
  246. package/dist/utils/cutButtonLabel.js.map +1 -0
  247. package/dist/utils/fileSendPlan.d.ts +30 -8
  248. package/dist/utils/fileSendPlan.d.ts.map +1 -1
  249. package/dist/utils/fileSendPlan.js +37 -12
  250. package/dist/utils/fileSendPlan.js.map +1 -1
  251. package/dist/utils/fileSendService.d.ts +1 -1
  252. package/dist/utils/fileSendService.d.ts.map +1 -1
  253. package/dist/utils/fileSendService.js +9 -1
  254. package/dist/utils/fileSendService.js.map +1 -1
  255. package/dist/utils/imageDimensions.d.ts +32 -0
  256. package/dist/utils/imageDimensions.d.ts.map +1 -0
  257. package/dist/utils/imageDimensions.js +181 -0
  258. package/dist/utils/imageDimensions.js.map +1 -0
  259. package/dist/utils/jsonStreamHost.d.ts +35 -9
  260. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  261. package/dist/utils/jsonStreamHost.js +59 -16
  262. package/dist/utils/jsonStreamHost.js.map +1 -1
  263. package/dist/utils/limitSwitchPlan.d.ts +44 -0
  264. package/dist/utils/limitSwitchPlan.d.ts.map +1 -0
  265. package/dist/utils/limitSwitchPlan.js +54 -0
  266. package/dist/utils/limitSwitchPlan.js.map +1 -0
  267. package/dist/utils/lostWork.d.ts +8 -2
  268. package/dist/utils/lostWork.d.ts.map +1 -1
  269. package/dist/utils/lostWork.js +9 -5
  270. package/dist/utils/lostWork.js.map +1 -1
  271. package/dist/utils/promptDelivery.d.ts +11 -2
  272. package/dist/utils/promptDelivery.d.ts.map +1 -1
  273. package/dist/utils/promptDelivery.js +3 -3
  274. package/dist/utils/promptDelivery.js.map +1 -1
  275. package/dist/utils/questionWaitChoices.d.ts +20 -0
  276. package/dist/utils/questionWaitChoices.d.ts.map +1 -0
  277. package/dist/utils/questionWaitChoices.js +31 -0
  278. package/dist/utils/questionWaitChoices.js.map +1 -0
  279. package/dist/utils/questionWaitPlan.d.ts +166 -0
  280. package/dist/utils/questionWaitPlan.d.ts.map +1 -0
  281. package/dist/utils/questionWaitPlan.js +237 -0
  282. package/dist/utils/questionWaitPlan.js.map +1 -0
  283. package/dist/utils/replyQuote.d.ts +10 -0
  284. package/dist/utils/replyQuote.d.ts.map +1 -1
  285. package/dist/utils/replyQuote.js +18 -7
  286. package/dist/utils/replyQuote.js.map +1 -1
  287. package/dist/utils/talkerAccess.d.ts +2 -2
  288. package/dist/utils/talkerAccess.d.ts.map +1 -1
  289. package/dist/utils/talkerAccess.js +5 -4
  290. package/dist/utils/talkerAccess.js.map +1 -1
  291. package/dist/utils/telegramError.d.ts +6 -0
  292. package/dist/utils/telegramError.d.ts.map +1 -1
  293. package/dist/utils/telegramError.js +12 -0
  294. package/dist/utils/telegramError.js.map +1 -1
  295. package/dist/utils/topicAccessScreenPlan.d.ts +1 -1
  296. package/dist/utils/topicAccessScreenPlan.d.ts.map +1 -1
  297. package/dist/utils/topicAccessScreenPlan.js +3 -7
  298. package/dist/utils/topicAccessScreenPlan.js.map +1 -1
  299. package/dist/utils/topicIndicatorPlan.d.ts +143 -0
  300. package/dist/utils/topicIndicatorPlan.d.ts.map +1 -0
  301. package/dist/utils/topicIndicatorPlan.js +202 -0
  302. package/dist/utils/topicIndicatorPlan.js.map +1 -0
  303. package/dist/utils/topicIndicatorSources.d.ts +40 -0
  304. package/dist/utils/topicIndicatorSources.d.ts.map +1 -0
  305. package/dist/utils/topicIndicatorSources.js +31 -0
  306. package/dist/utils/topicIndicatorSources.js.map +1 -0
  307. package/dist/utils/topicStatusPlan.d.ts +90 -0
  308. package/dist/utils/topicStatusPlan.d.ts.map +1 -0
  309. package/dist/utils/topicStatusPlan.js +160 -0
  310. package/dist/utils/topicStatusPlan.js.map +1 -0
  311. package/npm-shrinkwrap.json +2 -2
  312. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,58 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.2.0 — 2026-11-20
6
+
7
+ **Pull requests to Charness are welcome: by opening one you agree to the new Contributor License Agreement, `CLA.md` — no form to sign.**
8
+ Before, outside pull requests were not accepted. Now `CONTRIBUTING.md`, the pull-request template, the README and the licensing FAQ say that a pull request (or a patch) is accepted under `CLA.md`: you keep the copyright in your contribution, and the licensor may ship it under the Charness License and the paid commercial license. If your work belongs to an employer, please write to charnesshub@gmail.com first; the licensor may ask for a company agreement.
9
+
10
+ **An agent running on a Claude account can no longer plant rules, skills, subagents or hooks in that account's profile folder for every later session on it to follow: the bot now puts the folder back in line right before each launch under it and moves anything planted aside.**
11
+ A profile folder (`DATA_DIR/claude-profiles/<name>/`, handed to Claude Code as `CLAUDE_CONFIG_DIR`) is writable by the user the bot and its agents run as, and Claude Code loads a good deal of it as the user's own configuration — so an agent could replace the `CLAUDE.md` or `settings.json` link with a file of its own, or add `agents/`, `commands/`, `rules/`, `output-styles/`, `workflows/` or `dev-mods/` (mods are loaded again when their session is resumed), and each later session on that account would follow it. Now the entries Claude Code loads as user-level configuration must be links into `~/.claude`: `settings.json`, `skills`, `plugins` and `projects` always, `CLAUDE.md`, `rules`, `agents`, `commands`, `output-styles`, `workflows` and `dev-mods` wherever `~/.claude` has them (so the profile mirrors the default account). Anything else standing there — a real file or directory, a link elsewhere, an entry `~/.claude` has no counterpart of — is moved aside, never deleted, as `<entry>.moved-<UTC time>`, one log line each, and the right link is restored; a real `settings.json` or `CLAUDE.md` an account kept of its own (which the layout used to leave alone) is thus replaced by the shared one, the old file kept beside it. The check runs before every launch under a profile — a topic's session at its start, resume or account switch, the `claude auth` status and sign-in calls, and the account a worker is pointed at (the `claude_profiles` tool and `charness claude-profiles`) — costs a few `stat`s and writes nothing when the folder is right. The account's own state is never touched (login, `.claude.json`, backups, history, todos, caches, `agent-memory/`, what is behind the `projects` link). `.claude.json` also holds the account's MCP servers and is not edited: when it holds MCP servers (or settings-style keys such as `hooks`) the log names them once, so they can be checked. A folder another user owns — an operator locked it — no longer gets a failing `chmod`, and one the bot's user cannot write is not written to: nothing is said when its layout is right, one warning per profile per process when it is not, and the launch goes ahead (a locked folder the bot's user can still write, through its group or an ACL, is repaired like any other). The repair is not a sandbox: the links point into the shared `~/.claude`, which an agent can write on the default account too, and it acts at launch, not inside a running session; for a hard guarantee lock the folder (owned by another user, writable by the account's user only where Claude Code keeps its own state). See `docs/commands.md`, «Several accounts».
12
+
13
+ **An instance that serves only Jira (`CONNECTORS=jira`) now uses every Claude account signed in on its host — and a Jira issue whose agent hits a usage limit moves to the next account by itself, the conversation resumed there.**
14
+ Before, such an instance knew only the account `default` (`~/.claude`): a second one, made the way the bot makes it (a folder under `DATA_DIR/claude-profiles/`) and signed in with `CLAUDE_CONFIG_DIR=<folder> claude auth login`, was ignored — accounts were recorded only by Telegram's `/accounts` — and an issue at its usage limit waited for the reset even with another account free, because the automatic switch ran only for Telegram topics. Now every folder with a valid profile name and no record is adopted at the start and at each usage poll (every 10 minutes): the bot gives it the links back into `~/.claude` it lacks (the transcripts above all, so a conversation can resume under it), records it, asks the CLI who is signed in, and offers it like any account (a folder that is not signed in is listed as signed out and never picked; a profile you removed is not brought back; `default` signed out through `/accounts` stays out). A poll spawns no `claude auth status` for an account whose status is fresh — one hour for a signed-in account, five minutes for a signed-out one, so that a sign-in by hand shows up — and `/accounts` still re-reads everything when it opens. A conversation of any connector at its usage limit now takes the automatic move between Claude accounts by the same rules as a topic — the `/limits_autoswitch` list's Claude entries when it has any, else the soonest weekly reset — resumed under the new account's directory, and the requester hears nothing (the log has the line); an OpenCode entry of the list is a topic's alone. With switching OFF, with no account free or on OpenCode such a conversation waits for the reset as before, and the «Switch to …» offer, the notices and the wait aimed at the account that resets first stay a topic's. In `/accounts`, removing a profile now deletes its folder before its record, so the scan cannot find a record-less folder in between.
15
+
16
+ **A tap on a question's option right after the wait ended no longer answers «No pending question» — it answers the question.**
17
+ Before, when the question wait ended (the agent was told to go on without your answer) and you tapped an option of that question while its message still showed the old buttons — the swap to the set-aside look is paced by the send gate and takes a moment, and a refused edit leaves the old buttons for good — the tap was refused, although the question was still open and answerable. Now the tap answers that question the way a tap on its set-aside buttons does: the toast shows your choice, the message closes with «✅ Answer: …», and the agent gets the late answer. A button of an old question still never answers the question the agent asks next.
18
+
19
+ **The group's topic list now shows what each topic's agent is doing: a mark at the end of the name — ❓ a question waits for you, ❗️ the agent is stuck, ⏳ it works, ✅ it finished, 💤 it sleeps — so you see which topics need you without opening them.**
20
+ Before, the only way to tell was to open every topic (the pinned status inside a topic is invisible from the list). Now the bot writes the mark after your own words (`Deploy ⏳`) — the name only, the icon stays yours — and deletes the «renamed the topic» line each change leaves, so the topic shows no trace. A name has to hold for 20 seconds before it is written and two renames are a minute apart (❓ and your own switches show at once), so the list never flickers; a sleeping topic that wakes for a prompt goes straight to ⏳, and a topic on the per-turn backend keeps its ✅ after a turn until the next one (💤 is only the idle stop). `/topic_status` switches the marks and two counts — `⚙️N` agents at work and `📋N` tasks queued, off by default — per topic or for all topics, and gives your name back at once when a mark is turned off or the topic leaves its folder. The bot writes only to a topic whose own name it knows: it keeps the name a topic was created with as a guess and asks «Is it «Deploy»?» — one tap — and reads your own renames without its marks (a name of yours that ends in one of these marks loses that ending; the picker says so once), and a rename you make while the bot is stopped is learned when it starts again — after a stop of more than a minute too, where the waiting updates are dropped but the renames among them are read first — instead of being overwritten with the old name. It needs the «Manage topics» right (the picker says when it is missing) and the «Delete messages» right to leave no trace.
21
+
22
+ **A question the agent asked and you have not answered no longer keeps it standing still: after a wait you choose — 30 minutes by default — the bot tells the agent to go on without it, the question stays open in the topic, and your answer, however late, still reaches the agent.**
23
+ Before, an agent that asked a question waited for your answer for as long as it took — possibly a whole day, though it had other work: a prompt the bot wrote to it (a heartbeat, a schedule) queued unread behind the question, and the idle mark could not even compact or stop it. Now, when the wait ends, the agent is told in the result of its own question that nobody answered yet, that the question stays open for you and not to ask it again, and to go on with whatever does not depend on it (on Claude Code the question's tool call is denied with that text, on OpenCode the question is replied to with it); nothing is interrupted. In the topic the question keeps its message, buttons and pin and gains one silent line, «⏸ The agent went on without your answer — you can still answer» (on OpenCode, when the server does not take that message the bot tries again, and after the last try says so in the topic and turns the line into «⚠️ The server did not confirm that the agent was told to go on without your answer — if it seems stuck, send it any message…»). A tap on its buttons, or a reply to its message — typed or a voice note, whose transcript is the answer — closes it with «✅ Answer: …», releases the pin and sends the agent one message — the question, your answer and «you went on without it, check that nothing you did meanwhile conflicts» — written to a live session, held behind a start, or waking a sleeping conversation, and ending an armed usage-limit wait first, as a typed message does (a bare number that is not a reply is still an ordinary message; a topic member's reply answers only with an option number or label — their other words are an ordinary message); a call with several questions is answered one at a time. Up to five such questions stay open (a sixth closes the oldest as «❌ Not answered»); they end when you end the conversation (`/new`, `/quit`, `/quitall`, leaving the folder, another conversation or backend you pick), and survive the idle stop, a crash, a restart and an automatic usage-limit switch, where a late answer goes to the conversation that runs then. The idle mark sets a waiting question aside instead of rejecting it, compacting, stopping the process and asking again; an agent that asks the same question again is told it is still open instead of getting a second copy in the topic. A reply is never a pick for a question it was not written to — «2» typed as a reply to a closed question, or to any other message, does not pick an option of the question that waits — but its text still cancels the waiting question like any text. Claude Code (json-stream and per-turn) and OpenCode; the deprecated tmux backend is not covered.
24
+
25
+ **A new `/question_wait` setting chooses how long the agent waits for your answer to its question — «Don't wait», 10 min, 30 min, 1 h or «Wait for my answer» — per topic, with a default in General.**
26
+ In General it sets the default of every topic (kept as `questionWait` in `settings.json`); in a topic it is that topic's own choice, or «As in General» to follow the default again. «Don't wait» sets a question aside the moment it is asked; «Wait for my answer» keeps the old behaviour — the agent stands still, and the idle mark rejects the question, compacts, stops the process and asks it again after the compaction. A tap re-renders the picker in place, and a wait changed while a question is open applies to it at once, counted from the moment it was asked. The screen is worded in all 12 languages.
27
+
28
+ **An option of the agent's question no longer shows twice when the agent gives it a description that only repeats its label.**
29
+ Before, the question message printed each option as its label and, on the next line, its description — so an agent that filled the description with the label itself produced «1. Red» followed by «Red», «2. Blue» followed by «Blue». Now such a description is left out, in the question as posted and as it stays after the answer: a description counts as a repeat when it is the label's words compared trimmed and in any case, with or without trailing punctuation (a full stop, «!», «?», «…», a comma and the like) — «Red», «RED» and «red.» all repeat the label «Red». A description that says anything more stays under its option as before. Claude Code (json-stream and per-turn) and OpenCode; the deprecated tmux backend is not covered.
30
+
31
+ **The commercial license terms are now in `LICENSE-COMMERCIAL.md` (formerly `COMMERCIAL-LICENSE.md`), so the file sorts right next to `LICENSE` in a file list.**
32
+ The wording is unchanged. The package ships the file under the new name, and the links to it in the README, the licensing FAQ and the 3 → 4 migration guide follow; a link to the old file name no longer opens it.
33
+
34
+ ## 4.1.1 — 2026-11-17
35
+
36
+ **The pairing line of `/runners` — a secret that lets whoever holds it pair a machine to your host — now comes to you in a private message from the bot, no longer in General, where every member of the group could read it.**
37
+ Before, **+ Pair a new runner** posted the line in General, readable by anyone in the group (topic talkers included) for the ten minutes it lives. Now the bot sends it to the admin who tapped the button (or typed the address it asked for) in that admin's private chat with the bot, as the same message — the explanation, the line, the row that picks how many jobs the new machine runs at once — and General gets one plain line that names who got it — «The pairing line was sent to <their first name> in a private message.» (their @username, or «you», if Telegram gave no first name) — so an admin who asked but did not get the line, because another admin used the address they were offered, looks in the right chat. The row works in that chat (a tap there is accepted from a group admin because the chat is theirs, also when they are not the owner and the bot serves no private chat of theirs), and the message turns into «paired» or «expired» there as it did in General. An admin who never opened a private chat with the bot (Telegram refuses with 403), or who blocked it, gets the line in General as before, after a line that says to open a private chat with the bot — named by its @username — and press Start so the next one comes privately; any other failure to send it still closes the code. The owner who runs `/runners` in their own private chat with the bot has the line right there, with no note. Pairing messages recorded by an earlier version still turn into «paired» or «expired».
38
+
39
+ **A screenshot or picture bigger than 2560 pixels on its longest side now reaches you as a file at full resolution, not as a photo Telegram has shrunk.**
40
+ Telegram keeps a photo at its own size only up to 2560 px on the longest side and shrinks anything bigger to that (measured on the live bot: a 3840 × 2160 screenshot arrived as 2560 × 1440, a 1000 × 6000 one as 427 × 2560), and it re-encodes every photo as JPEG. When the agent sends an image with `send_file_to_user` or `send_messages_to_user`, the bot now reads its size from the file header: an image up to 2560 px stays an inline photo, a bigger one goes as a document, the original file. The same goes for an image Telegram would refuse as a photo (a side ratio over 20) and for one whose size cannot be read. In an album one such image makes the whole album documents, and the agent's tool texts now say so; `as_file: true` still sends any image as a file, which the tool texts suggest for a small image whose text must stay crisp.
41
+
42
+ **After a restart the bot no longer stops receiving your Telegram messages while an agent waits for your answer and a scheduled run was missed.**
43
+ Before, a scheduled run (a heartbeat, or a check that fails and wakes its agent) missed while the bot was down was replayed one run after another when the bot started, and the start waited for each delivery before it began listening to Telegram. A run bound to a topic whose agent was mid-turn — waiting for your answer to its pinned question — waits for that agent (up to 10 minutes each), and your answer could not arrive because the bot was not listening yet: no topic got a message until the waits ran out, and the same again at every restart. Now the start only begins the catch-ups and goes on: the bot listens at once, your answer reaches the agent, and each missed run is still delivered once, as soon as its agent is free. The catch-ups of different topics no longer wait for one another either (those of one topic still go one after another, so an agent is never handed two runs together), and a stuck one no longer keeps the jobs stored after it from being armed.
44
+
45
+ **A Jira comment written while the AI works on an issue now reaches its agent — the issue no longer has to be unassigned and assigned again to get a word through.**
46
+ Before, a comment on an issue already handed to the AI account (assigned to it in one of its trigger statuses) never reached the agent: a comment was no trigger at all, and an @-mention by the person who had handed the issue over was recorded as «covered» with nothing posted — the agent finished the work it had and never saw «also move it to Done». Now, with a `trustedGroup`, every poll reads the new comments of a handed issue, and a trusted person's comment (author and last editor trusted; an app's or an automation's comment — a build notice, a rule — still rides the next prompt) reaches the agent: while a hand-over request is open, as an issue update of that request — no new request, the turn it is in ends first, the one hand-back stays — and when no request is open but the issue is still the AI's, as a request of its own whose answer goes to the commenter. A comment made while the bot was down is still delivered, once: the bot remembers the newest comment each prompt was built from, so a restart, a compaction or a fresh session never delivers an old comment again. An outsider's comment is recorded and ignored, its text withheld as before. If the work finished before the comment got to the agent — also when its answer handed the issue back before the bot's next look — it still gets it, and its answer becomes a comment. A comment on an issue the AI took up itself goes to the request that is working on it — on that issue (a mention it acts on), or on an issue linked to it (one it created and builds in another issue's run, say; when several linked issues are at work, the one the AI itself linked it to) — and never opens a second agent. The answer to that work is a comment on its own issue, so the AI answers the commenter on the commented issue with a comment of its own there, mentioning them. On an issue NOT handed to the AI only an @-mention reaches it; a follow-up mention by the person whose mention it is acting on goes into that work. As a guard against an account that comments as the agent's own tools (each comment would come back as the next update), an issue gets at most 20 updates in 24 hours: past that, new comments wait until the oldest of them is a day old and reach the AI then — a follow-up @-mention too, also after a restart — and the issue says so in one comment, at most once a day. The agent must comment only as the AI account. The new `jira.json` key `wakeOnComment` turns it off (`false`); absent, it is on wherever `trustedGroup` is set, and `true` without a group refuses the start. See SETUP.md, «Jira setup».
47
+
48
+ **A Jira mention can now ask the AI to do things, not only to answer: with `"mentionMode": "act"` in `jira.json`, a trusted person's explicit ask in an @-mention — create or split issues, take a transition, change the assignee, take up the work — is carried out, whatever the issue's status and assignee.**
49
+ Before, the prompt of every mention told the agent to change nothing (no code, no commits, no Jira edits) and to answer that the issue had to be assigned to it first. Now, in act mode, the note says to do what the comment explicitly asks as the agent's own rules allow, and to answer a question only with an answer; a hand-over the agent is working on goes on. Once the AI took the issue up (assigned it to itself), a later comment reaches the acting mention's work; while the issue is not handed to it, only a follow-up @-mention does — by the same person it goes into that work. An acting mention counts as one of the bot's task agents (it waits in the same queue, with the same comment, when all are busy — and keeps its place past the mention window and across a restart), and its answer is a comment that hands nothing back. `"answer"` (the default) keeps the answer-only mentions; `"act"` without a `trustedGroup` refuses the start, and the start logs which mode is on.
50
+
51
+ **A Jira request whose agent was cut off by a restart is resumed at once — no longer after the 90-minute backstop.**
52
+ Before, when charness came back (a redeploy, a crash) and an issue's agent process had not survived, the open request waited until nothing had been seen working on it for 90 minutes; only then did the bot wake the session — a container recreated mid-build cost an hour and a half of work on every issue in flight. A process that died with its own background work pending got a note that waited for the same backstop. Now the boot wakes every such open request right away — 30 seconds apart, so several agents do not start at once — with a reminder that the session was resumed (or the request's prompt again, when the agent never read it), and the lost-work note rides that wake. A request that waits for something of its own (a retry, a follow-up after a progress note, a usage-limit wait) is left to it; a conversation woken this way less than 10 minutes ago is left to the backstop, so a crash loop never becomes a wake loop. A Jira agent that crashes while the bot keeps running, with no background work pending, still waits for the backstop. Telegram topics keep their own resume, with one change: a note about lost background work that the agent was not told yet now also rides a reminder the bot sends about an open request, not only the next message.
53
+
54
+ **A prompt the Claude agent never received is no longer counted as delivered: a write into the agent's input that fails now fails the post, which is retried — and a slow-starting agent is waited for up to two minutes instead of five seconds.**
55
+ Before, a resumed Claude session that was still starting could leave its input full for more than five seconds; the write then gave up with `EAGAIN`, the error was only logged, and the bot believed the prompt delivered — a Jira hand-over seen this way was never read by its agent (and a long prompt could be left half-written, breaking the next one). Now a prompt to an agent that was just started waits until the agent shows it reads its input (it answers the start handshake, or writes anything), and the write then waits for as long as the agent keeps reading, giving up only after two minutes without a byte read. A write that fails makes the post fail — also when the prompt waited for the session to start — and a Jira request gets its usual retries (about 1, 5 and 15 minutes later). In a Telegram topic your own message (text, voice, a file, an album, and what was held back during a usage-limit wait when it goes to the next session) no longer waits for the write — a reminder, a scheduled run or a retry the bot sends still does: the topic stays responsive (`/esc` included), and if the write of your message fails the topic says «⚠️ The agent did not get your last message … Send it again.» (every language; an album's prompt that fails says the same instead of «failed to download the file»). A prompt left half-written is never followed by another in the same process: the process is stopped (killed if the stop fails) and the conversation resumes in a fresh one with the next prompt; the same prompt torn twice is logged loudly.
56
+
5
57
  ## 4.1.0 — 2026-11-16
6
58
 
7
59
  **A «🔧 tool» status line is no longer left under a reply that was already posted, or under a question the agent asked.**
package/DEVELOPMENT.md CHANGED
@@ -138,6 +138,12 @@ yarn test # test:unit, then test:flows (node test runner + tsx); build
138
138
  yarn test:unit # every file but the flows; each file must finish in 2 min
139
139
  yarn test:flows # the `*E2e.test.ts` flows, 16 files at a time (they mostly wait
140
140
  # on their fakes, not the CPU); each file must finish in 20 min
141
+ # The flows keep unix sockets (the instance's tmux server, a runner's link)
142
+ # under TMPDIR, and Linux allows 107 bytes of path. An instance that would
143
+ # exceed it refuses to start, saying by how many bytes: that holds for the
144
+ # runner-link flows and for the flows that name TMUX_SOCKET_NAME (the Jira
145
+ # ones) once TMPDIR is over about 26 characters; most flows keep tmux's
146
+ # short «default» socket and have room to spare
141
147
  yarn runner-lock # after ANY dependency change: rewrite remoteRun/runner-package-lock.json (the
142
148
  # lock the runners install from, made from yarn.lock; fetches the sha512
143
149
  # hashes of new versions from the registry). A unit test fails until you do
@@ -182,11 +188,11 @@ A flow does not wait out the production windows in real time: its env file sets
182
188
  of named overrides (`src/testTimings.ts`: `telegramSendIntervalMs` — the global send pacer's 2 s, `telegramSendOperationDeadlineMs` — a send
183
189
  queue call's 30 s deadline, `jiraPollIntervalMs` —
184
190
  below the 10 s floor of `jira.json`, `requestTurnPollMs` — the wake-up engine's 10 s poll of the turns it watches,
185
- `requestSweepIntervalMs` and `requestFirstPostRetryDelayMs` — the wake-up engine's minutes, `limitProbeDelayMs` — the two-minute probe of an unconfirmed usage limit, `stateSaveDebounceMs` — `state.json`'s
191
+ `requestSweepIntervalMs` and `requestFirstPostRetryDelayMs` — the wake-up engine's minutes, `requestRestartWakeStaggerMs` — the 30 s between the wakes of tracker requests whose process a boot found gone, `limitProbeDelayMs` — the two-minute probe of an unconfirmed usage limit, `stateSaveDebounceMs` — `state.json`'s
186
192
  500 ms save debounce, `openCodeServerUpBudgetMs` — the OpenCode server's 60 s of retries, `backgroundHoldMaxMs` — the 6 h the
187
193
  agent's own pending work holds a json-stream process, `adoptedTailFirstReadMs` — the 300 ms from the boot's release of an
188
194
  adopted json-stream session to the first read of its output, `todoReminderPollMs` and `todoReminderIntervalMs` — the todo
189
- reminder's 10 s poll and the interval `settings.json` sets, `creditRecheckIntervalMs` and `creditRecheckPollMs` — the 24 h between two rechecks of a used-up API credit and the 30 min poll that finds one due, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `remoteRunLeaseMs`, `remoteRunRunnerPollMs` and `remoteRunProbeDeadlineMs` — the 45 s heartbeat lease, the 10 s poll of the wait for a paired runner and the 20 s deadline of the probe of the runners in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
195
+ reminder's 10 s poll and the interval `settings.json` sets, `creditRecheckIntervalMs` and `creditRecheckPollMs` — the 24 h between two rechecks of a used-up API credit and the 30 min poll that finds one due, `scheduleMinFireIntervalMs` — the 5 min minimum between cron fires, `topicIndicatorSettleMs`, `topicIndicatorMinRenameGapMs`, `topicIndicatorSweepMs` and `topicIndicatorBootWaveDelayMs` — the 20 s a name must hold before it is written to a topic, the 60 s between two renames, the 5-minute sweep and the 5 s the boot's wave waits for the updates that waited, `checkStatusIntervalMs` — the 15 min gap between a passing check's status lines, `bindPickerClaimLimit` — how many `/bind` picker claims are kept (a count: 200), `questionSetAsideWaitMs` — the question wait (up to an hour), after which an unanswered agent question is set aside, `questionSetAsideRetryMs` — the 30 s pause before the bot tries again to set a question aside after the agent's server did not take it, `postBusyPollMs` and `postWaitForIdleMs` — the 5 s poll and the 10 min wait of a prompt the bot delivers (a scheduled one) for a session whose turn is busy, `remoteRunLeaseMs`, `remoteRunRunnerPollMs` and `remoteRunProbeDeadlineMs` — the 45 s heartbeat lease, the 10 s poll of the wait for a paired runner and the 20 s deadline of the probe of the runners in `charness remote-run`, `tscWatchCheckIntervalMs` and `tscWatchStaleGraceMs` — the
190
196
  hot supervisor's 30 s check of its `tsc -w` and the minute a source may stay newer than its output; the supervisor reads these last two, the remote-run CLI the three before them (the bot's `/runners` probe reads `remoteRunProbeDeadlineMs` too), the bot the rest).
191
197
  It is the ONE test-only timing seam,
192
198
  never a setting: unset, every window is the production one; a value may only shorten its window (each key is capped at its
@@ -266,7 +272,7 @@ publish, no tag, no push, the run is red; the next day's run tries again by itse
266
272
  know yet). Its version is the package's: `apply` writes it, as `npm version` does, and `verify-delta` lets it differ from
267
273
  the tested commit in exactly those two lines. Those two lines sit between lines a dependency change never touches (`"name"`,
268
274
  `"lockfileVersion"`, `"dependencies": {`), so a dependency change that lands on `main` during a release merges with it
269
- (`releaseCli.test.ts` holds that).
275
+ (`releaseCliCommit.test.ts` holds that).
270
276
 
271
277
  - **Tests gate:** the release does not run the suite again when the exact commit already passed. It asks GitHub for the
272
278
  `Tests` workflow's runs of that commit's SHA (the newest run of the commit decides): **passed** → go on; **no run at all**
@@ -285,7 +291,7 @@ publish, no tag, no push, the run is red; the next day's run tries again by itse
285
291
  major is released only by dispatching the workflow with `bump=major`.
286
292
  - **Nothing to release** (green, nothing tagged): no commits since the last tag, `HEAD` already tagged, or no shipped
287
293
  path in the net diff from the tag — `src/**/*.ts` outside `src/__tests__` and `src/release`, `stt/gigaam_sidecar.py`,
288
- `npm-shrinkwrap.json`, `LICENSE`, `COMMERCIAL-LICENSE.md`, everything under `agent-plugin/`, and `package.json` only when
294
+ `npm-shrinkwrap.json`, `LICENSE`, `LICENSE-COMMERCIAL.md`, everything under `agent-plugin/`, and `package.json` only when
289
295
  `dependencies`, `bin`, `engines`, `files`, `main` or `license` differ. A docs-only or tests-only day, or a change and its
290
296
  revert, publishes nothing; README / SETUP changes reach the npm page with the next code release. A change to the license
291
297
  texts or the `license` field does count: it is a release (`releasePlan.ts` is the source of truth for both lists).
@@ -303,7 +309,7 @@ publish, no tag, no push, the run is red; the next day's run tries again by itse
303
309
  `## Unreleased` is filled with the `feat` / `fix` subjects.
304
310
  - **Package check** before anything is published: the tarball holds `package.json`, `dist/cli.js`, `stt/gigaam_sidecar.py`,
305
311
  `remoteRun/runner-package-lock.json`, `remoteRun/ensureNode.sh`, `npm-shrinkwrap.json`, the agent plugin's manifest and
306
- orchestration skill, `CHANGELOG.md`, `README.md`, `LICENSE`, `COMMERCIAL-LICENSE.md` (`requiredPackFiles`) and no `src/` or tests, and installed the way a user installs it — `npm install -g`
312
+ orchestration skill, `CHANGELOG.md`, `README.md`, `LICENSE`, `LICENSE-COMMERCIAL.md` (`requiredPackFiles`) and no `src/` or tests, and installed the way a user installs it — `npm install -g`
307
313
  from a loopback registry that serves the tarball and marks its shrinkwrap, as the npm registry does (an install of the
308
314
  tarball FILE ignores the shrinkwrap), dependencies passed on to the real registry — `charness --version` prints the new
309
315
  version and every package sits at the version the shrinkwrap pins (`yarn tsx src/release/cli.ts check-pack`, after
@@ -32,7 +32,7 @@ These terms are between **Sergei Solo** (licensor; the details of the licensor's
32
32
 
33
33
  2.4. Discounts. Only the following discounts apply, and only when the order states them. They reduce the list price in section 2.2 and the total supplier fee in section 17.3, never a $0 fee, and do not apply to a hosting/reseller agreement under section 18 unless it says so.
34
34
 
35
- (a) **Mark discount, 20%.** Throughout the Term the licensee displays the "Powered by Charness" mark, in the form and with the link to https://olosegres.github.io/charness the licensor supplies, in the customer-visible interface of a product the group offers (such as its about, credits or footer area) or on the group's public website, reachable without login. For that purpose only, and only during the Term, the licensor grants a non-exclusive, non-transferable, royalty-free permission to display that mark. It is no permission to use Charness in a product, company or domain name, to suggest endorsement, partnership or certification, or to alter the mark. "Charness" is not a registered trademark; this permission is a contractual term, not a statement that a registration exists, and the display is made under the licensor's permission and for its benefit. The mark is in addition to, never a substitute for, the required copyright and license notices. If the display lapses and is not restored within 30 days after written notice, the mark discount for the remainder of the Term becomes payable, prorated by days, and the permission ends; with both discounts, that is the difference between the price with the prepayment discount alone and the price with both. The licensor may ask the licensee to change or remove the mark at any time; complying keeps the discount for the current Term.
35
+ (a) **Mark discount, 20%.** Throughout the Term the licensee displays the "Powered by Charness" mark, in the form and with the link to https://olosegres.github.io/charness the licensor supplies, in the customer-visible interface of a product the group offers (such as its about, credits or footer area) or on the group's public website, reachable without login. For that purpose only, and only during the Term, the licensor grants a non-exclusive, non-transferable, royalty-free permission to display that mark. It is no permission to use Charness in a product, company or domain name, to suggest endorsement, partnership or certification, or to alter the mark. This permission is a contractual term, and the display is made under the licensor's permission and for its benefit. The mark is in addition to, never a substitute for, the required copyright and license notices. If the display lapses and is not restored within 30 days after written notice, the mark discount for the remainder of the Term becomes payable, prorated by days, and the permission ends; with both discounts, that is the difference between the price with the prepayment discount alone and the price with both. The licensor may ask the licensee to change or remove the mark at any time; complying keeps the discount for the current Term.
36
36
 
37
37
  (b) **Prepayment discount, 15%.** The licensee pays a 2-year or 3-year Term in full in advance. The price schedule and these terms are fixed for every prepaid Term year. Band selection stays annual: at each Term-year anniversary the latest month-end assessment applies; if it selects a higher band, the licensee pays, for each remaining prepaid Term year, the difference between the discounted prices of the new and the prepaid band. A lower band creates no refund or credit. Acquisition adjustments under section 7.5 apply to every affected prepaid Term year.
38
38
 
@@ -45,7 +45,7 @@ The fee is the **higher** of the revenue band and the people band:
45
45
  pays for the group.
46
46
  - Two optional discounts, together 32% off: 20% for showing a "Powered by Charness" mark, 15% for prepaying 2 or 3 years.
47
47
  - Buying is by e-mail: charnesshub@gmail.com, see the [commercial page](https://olosegres.github.io/charness/commercial/)
48
- and the [commercial terms](COMMERCIAL-LICENSE.md). Full refund within 30 days.
48
+ and the [commercial terms](LICENSE-COMMERCIAL.md). Full refund within 30 days.
49
49
 
50
50
  More cases, and what counts in R and H: the [licensing FAQ](docs/licensing-faq.md).
51
51
 
package/README.md CHANGED
@@ -99,6 +99,8 @@ The same core serves every surface; each feature links to the commands that driv
99
99
  | Updates itself | Checks for a new version hourly, installs it when no agent is working, restarts in place (agents keep running) and says in General what changed; npm installs and git checkouts, hot mode and Docker included | [`/update`](docs/commands.md#update), [Updating](SETUP.md#updating) |
100
100
  | Restart-safe | Agents run as external processes (tmux, `opencode serve`) that the bot re-adopts after a restart instead of killing them; a prompt sent while a session boots is buffered and replayed | [Restart behaviour](docs/backends.md#restart-behaviour) |
101
101
  | Shared todo lists | Every agent publishes a short stand-up list of what it is working on (in work, the queue, done), and the agents of one repository see each other's lists with every prompt, so two of them never fix the same thing unknowingly | [`/todo`](docs/commands.md#todo) |
102
+ | Questions that never block | The agent's question waits for you only as long as you allow (30 min by default, per topic or for all): then the agent is told to go on without it, the question stays open with its buttons and pin, and a late answer — a tap or a reply — still reaches the agent as a new message | [The agent's questions](docs/commands.md#the-agents-questions), [`/question_wait`](docs/commands.md#question_wait) |
103
+ | Topic status at a glance | A mark at the end of each topic's name — ❓ a question waits, ❗️ stuck, ⏳ working, ✅ finished, 💤 asleep, optionally `⚙️N` agents and `📋N` queued tasks — so the topic list shows which topics need you; switched from buttons, per topic or for all, and never touching the icon | [`/topic_status`](docs/commands.md#topic_status) |
102
104
  | Compaction | Compact an agent's context by hand, after ~55 min idle, or by the agent's own request | [`/compact`](docs/commands.md#compact), [`/compact_on_idle`](docs/commands.md#compact_on_idle), [`/compact_summary`](docs/commands.md#compact_summary), [`/compact_self_review`](docs/commands.md#compact_self_review) |
103
105
  | Tools and skills for agents | Every session the bot starts gets the bot's own MCP tools (schedule, todo, send files) and the manager / delegate skills | [Bot-injected agent tools](docs/backends.md#bot-injected-agent-tools), [`/bot_skills`](docs/commands.md#bot_skills) |
104
106
  | Runners for heavy commands | Agents send a test suite, a build or an emulator run to another machine: `charness remote-run` syncs the project, runs the command there and brings back the output, the exit code and the result files you declare, and `remote-run runners` shows every machine's CPU, memory, disk, load and what it can do (Android, iOS, Docker, Playwright). Attach a machine by pasting one line from `/runners` on it — no VPN, no open port, no root on this machine; a machine you reach by plain ssh works too | [`/runners`](docs/commands.md#runners), [docs/remote-run.md](docs/remote-run.md), [SETUP.md](SETUP.md#runners-for-heavy-commands-remote-run) |
@@ -159,6 +161,7 @@ Full write-up: [Vibe-coding by voice, from my phone](https://dev.to/olosegres/vi
159
161
  **Charness 4.0 and later is source-available under the [Charness License 1.0.0](LICENSE)** — not open source:
160
162
 
161
163
  - **Free** for personal use and for any organization group with revenue plus funding up to $500,000 and up to 20 people; also for education, charities and public bodies' core work, and a 32-day evaluation.
162
- - **One annual license per organization group above that** — from $500 to $60,000 by the higher of its revenue band and its people band, with unlimited users, agents and machines and no seats. Buy by e-mail: [commercial page](https://olosegres.github.io/charness/commercial/), [commercial terms](COMMERCIAL-LICENSE.md).
164
+ - **One annual license per organization group above that** — from $500 to $60,000 by the higher of its revenue band and its people band, with unlimited users, agents and machines and no seats. Buy by e-mail: [commercial page](https://olosegres.github.io/charness/commercial/), [commercial terms](LICENSE-COMMERCIAL.md).
163
165
  - Every release before 4.0 was published under MIT and stays MIT.
164
166
  - Questions and examples: [licensing FAQ](docs/licensing-faq.md); moving from 3.x: [MIGRATION_3_TO_4.md](MIGRATION_3_TO_4.md).
167
+ - Pull requests are welcome: by opening one you agree to the [Contributor License Agreement](CLA.md) — see [CONTRIBUTING.md](CONTRIBUTING.md).
package/SETUP.md CHANGED
@@ -284,7 +284,7 @@ your chosen providers need them.
284
284
  | `SCHEDULER_MCP_PORT` | an OS-chosen free loopback port | You need a stable, explicitly chosen port; it must differ from this instance's `OPENCODE_URL` port |
285
285
  | `CLAUDE_SCRAPE_DEBUG` | off | You are debugging Claude tmux scraping (the deprecated tmux backend) and need full RAW/FILTERED chunks |
286
286
  | `AGENT_IDLE_MINUTES` | `55` | A json-stream Claude topic idle for this long is compacted (when `/compact_on_idle` allows) and its process stopped; the session sleeps and the next message resumes it — shorten it only for a test; a non-positive or non-numeric value keeps the default |
287
- | `REQUEST_BACKSTOP_MINUTES` | `90` | A request (a Jira hand-over, a message in an answers-only topic) with nothing seen working on it for this long is re-posted to its session — shorten it only for a test; a non-positive or non-numeric value keeps the default |
287
+ | `REQUEST_BACKSTOP_MINUTES` | `90` | A request (a Jira hand-over, a message in an answers-only topic) with nothing seen working on it for this long is re-posted to its session — shorten it only for a test; a non-positive or non-numeric value keeps the default. A Jira request whose agent process a restart (or a crash with its own work pending) left behind does not wait for it: it is resumed at once, 30 s apart per issue |
288
288
  | `TMUX_SOCKET_NAME` | — (the default tmux server) | The instance must run its agents on its OWN tmux server (`tmux -L <name>`; any plain name except `default`). Recommended for a second instance on one host: at boot an instance kills every agent session on its server that its own state does not know |
289
289
  | `ENV_FILE` | — | Absolute path of the ONLY env file to read — no `~/.config/charness/.env`, no `$PWD/.env`; its values win over the inherited environment. Set it in the launching environment, never inside an env file (the start refuses that). `scripts/run-isolated.sh <env-file>` (in a checkout) starts an instance with a clean environment plus this variable |
290
290
  | `CONNECTORS` | `telegram` | Experimental: the surfaces this instance serves, as a comma list — see [Jira setup](#jira-setup). An instance that lists `jira` refuses to start on Node below 22.12 and without `ENV_FILE`, `TMUX_SOCKET_NAME` and `DATA_DIR/jira.json`, and — with Telegram off — with a `TELEGRAM_BOT_TOKEN` or any `ATLASSIAN_*` variable in its environment. Any instance refuses to start on a `DATA_DIR` that holds conversations of a surface it does not serve |
@@ -400,7 +400,7 @@ had run locally. Without a runner nothing changes for anyone, and agents are not
400
400
  **Pair it (the normal way).** Needs this machine's ordinary `sshd` (key login on) with an address the runner can reach — nothing else is
401
401
  opened or changed, no root, no VPN — and on the runner machine `ssh`, `tar`, `curl` or `wget`, and a way to reach nodejs.org (no Node.js needed: the pairing installs the runner its own). In General send `/runners` → **+ Pair a new
402
402
  runner**; the first time the bot asks which address runners dial (the `runnerHost` row of the [instance settings](#instance-settings-settingsjson)) and
403
- proposes the public address it finds. It posts ONE line (valid 10 minutes, single use) with the words that explain it: pasted in an admin account's terminal
403
+ proposes the public address it finds. It sends ONE line (valid 10 minutes, single use) with the words that explain it — to you in a private message of the bot, not into General, which the whole group reads (open a private chat with the bot and press Start first, or the line is posted in General): pasted in an admin account's terminal
404
404
  on the runner machine it pairs a standard user there (`runner` unless you change the last word of the line) and installs its always-on service
405
405
  in one go; without admin rights, the same line run from the terminal of that account itself (without its leading `sudo`, its last word being that
406
406
  account's name) pairs it only, with `charness-runner service install` afterwards to keep it running. An
@@ -641,7 +641,7 @@ be written, the tap that needed it says so and names the path. The file is optio
641
641
  a hand edit applies to the next session start, no restart.
642
642
 
643
643
  ```json
644
- { "defaultEffort": "medium", "autoUpdate": "on", "whatsNew": true, "botSkills": "on" }
644
+ { "defaultEffort": "medium", "autoUpdate": "on", "whatsNew": true, "botSkills": "on", "questionWait": "thirtyMinutes" }
645
645
  ```
646
646
 
647
647
  | Field | Meaning |
@@ -650,6 +650,8 @@ a hand edit applies to the next session start, no restart.
650
650
  | `autoUpdate` | What the instance does about a new charness version: `on` installs it by itself when the bot is idle, `notify` says it is out and offers a button, `off` never looks. Set it from **`/update` in General**, or by hand. Leave it out and `on` applies ([Updating](#updating)) |
651
651
  | `whatsNew` | `true` (default): after an update General lists the CHANGELOG entries it brought; `false`: only the «Updated a → b» line. Set from `/update` in General, or by hand |
652
652
  | `botSkills` | Whether the skills Charness ships with its agents (`charness-orchestration`, `charness-delivery-loop`, the two delegate skills) and the hint to load the orchestration skill reach them ([Commands](docs/commands.md#skills-the-bot-gives-its-agents)): `"on"` or `"off"`. The default of an instance whose **General** never chose — a Jira-only instance, which has no General, sets it here; `/bot_skills` in General overrides it for the instance once used; leave it out and `on` applies. A running agent keeps its skills until its next start |
653
+ | `questionWait` | How long an agent's unanswered question waits before the agent is told to go on without it ([Commands](docs/commands.md#the-agents-questions)): `"dontWait"`, `"tenMinutes"`, `"thirtyMinutes"`, `"oneHour"` or `"untilAnswered"` (never: the agent stands still until you answer). The default of every topic that has no `/question_wait` choice of its own; **`/question_wait` in General** writes it (a tap), or set it by hand. Leave it out and `thirtyMinutes` applies |
654
+ | `topicStatus` | The marks written at the end of every topic's name ([Commands](docs/commands.md#topic_status)): `{ "asleep": false, "queued": true }` — only the switches you changed from the defaults (the five marks `question`, `stuck`, `working`, `finished`, `asleep` on; the counts `agents`, `queued` off). Set it from **`/topic_status` in General** (a tap writes the file), or by hand; a topic's own set (`/topic_status` in the topic) is kept in `state.json` |
653
655
  | `taskAgents` | The cap on tracker task agents ([Jira setup](#jira-setup)): `{ "maxConcurrent": 5 }` — how many conversations of a connected tracker (Jira issues) may work on a hand-over at once, for the whole bot; an issue over it waits in a queue and starts by itself. `0` = no limit, 100 the most. The default of an instance whose **General** never chose — a Jira-only instance, which has no General, sets it here; **`/task_agents` in General** overrides it for the instance once used (a picker, or any number typed after the command). Leave it out and `5` applies |
654
656
  | `todo` | The shared todo lists ([Commands](docs/commands.md#shared-todo-lists)): `{ "isEnabled": true, "reminderMinutes": 60 }`. `isEnabled: false` turns the feature off (agents are not offered the tools); `reminderMinutes` is how long an agent may work without updating its list before it is reminded, `0` = never. Set both from **`/todo` in General → Settings**, or by hand — the way for an instance without a General topic (a Jira-only one). Leave it out and on / 60 apply |
655
657
  | `runnerHost` | The address paired runners dial to reach this machine's ssh server: `{ "host": "203.0.113.5", "port": 22 }`. **`/runners` in General** asks for it the first time you pair a machine (proposing this machine's public address when it answers with its own ssh key) and keeps it; it can be edited by hand. Leave it out and `/runners` asks again |
@@ -801,6 +803,8 @@ connector behaves is described in [`src/connectors/jira/README.md`](src/connecto
801
803
  "trustedGroup": "ai-trusted",
802
804
  "trustedApps": ["<an app account's id>"],
803
805
  "wakeOnMention": true,
806
+ "mentionMode": "answer",
807
+ "wakeOnComment": true,
804
808
  "pollIntervalSeconds": 30,
805
809
  "runBudgetPer24h": 5,
806
810
  "model": "opus",
@@ -836,9 +840,31 @@ connector behaves is described in [`src/connectors/jira/README.md`](src/connecto
836
840
  `trustedGroup` the key is refused — without a group everyone is trusted anyway. A listed id adds no trust
837
841
  to a person's account: people stay trusted by membership alone.
838
842
 
839
- `wakeOnMention` (optional) decides whether an @-mention of the AI account in a comment wakes it to answer
840
- only, without the issue being handed over; absent, it is on exactly when `trustedGroup` is set, and `true`
841
- without a group is refused — without one, anyone who can comment could start the AI.
843
+ `wakeOnMention` (optional) decides whether an @-mention of the AI account in a comment wakes it, without the
844
+ issue being handed over; absent, it is on exactly when `trustedGroup` is set, and `true` without a group is
845
+ refused — without one, anyone who can comment could start the AI.
846
+
847
+ `mentionMode` (optional, needs `trustedGroup` for `"act"`) decides what such a mention asks of the agent:
848
+ `"answer"` (the default) — an answer only, it changes nothing; `"act"` — when a trusted person's comment
849
+ explicitly asks it to do something (create or split issues, take a transition, change the assignee, take up the
850
+ work), it does it as its own rules allow, whatever the issue's status and assignee, and a question is still only
851
+ answered. An acting mention counts as a task agent (see below) and still hands nothing back. The agent's rules
852
+ (its project's `CLAUDE.md`) decide what it may do; the start logs which mode is on.
853
+
854
+ `wakeOnComment` (optional) decides whether a comment on an issue HANDED to the AI — assigned to it in one of its
855
+ trigger statuses — reaches the agent: a comment by a trusted person (not an app's or an automation's) while the
856
+ AI works on the issue is added to that work at the end of its current step, and one written after it finished,
857
+ while the issue is still assigned to it, starts a new request — and one written while it worked that reaches it only
858
+ after its answer handed the issue back still gets to it, answered by a comment. Absent, it is on exactly when
859
+ `trustedGroup` is set; `true` without a group is refused; `false` keeps the old behaviour, where such a comment
860
+ reached the agent only with its next hand-over. The start logs which. **The agent must comment only as the AI
861
+ account** (the `answer_request` tool does): a comment it writes in Jira under any other account of the trusted group —
862
+ an operator's token in its own tools, say — comes back to it as a person's comment, and then its answer, and so on.
863
+ As a guard, an issue gets at most 20 such updates in 24 hours; past that, new comments wait until the oldest update
864
+ is a day old and reach the agent then, and one line goes to the log saying until when. The issue gets one comment
865
+ from the AI saying so, at most once a day: comments that keep coming wait again the same way without another one.
866
+ A comment on an issue the AI created or took up while working on ANOTHER issue goes to that work; the AI answers
867
+ its author on the commented issue with a comment of its own.
842
868
 
843
869
  `projects` maps each served project key to its folder under `WORK_ROOT` and the status names in which an
844
870
  assigned issue is a request; the agent loads that folder's project memory (`CLAUDE.md`, `.claude/`, … in it
@@ -860,8 +886,9 @@ connector behaves is described in [`src/connectors/jira/README.md`](src/connecto
860
886
  **How many agents run at once.** The AI works on at most 5 issues at the same time, all projects together — set
861
887
  `taskAgents.maxConcurrent` in [`settings.json`](#instance-settings-settingsjson) (`0` = no limit; read without a
862
888
  restart). An issue handed over beyond that gets one comment saying it is queued, stays assigned to the AI and starts by
863
- itself when an agent hands its issue back, the one that waited longest first — also across a restart. An @-mention
864
- (answer only) is never held back, and a lower number never stops an agent that is already working.
889
+ itself when an agent hands its issue back, the one that waited longest first — also across a restart. A comment that
890
+ starts a request and an acting mention (`mentionMode: "act"`) wait the same way; an @-mention that only answers is never
891
+ held back, and a lower number never stops an agent that is already working.
865
892
 
866
893
  5. Start it with a clean environment, so nothing of the calling shell reaches it:
867
894
 
@@ -874,7 +901,8 @@ connector behaves is described in [`src/connectors/jira/README.md`](src/connecto
874
901
  The start refuses a missing `ENV_FILE`, `TMUX_SOCKET_NAME` or `jira.json`, an `OPENCODE_URL` on the default
875
902
  port, a `TELEGRAM_BOT_TOKEN` or any `ATLASSIAN_*` variable when Telegram is off, a token that belongs to
876
903
  another account, an unknown project or status, a `trustedGroup` the site does not have or the AI account
877
- may not read, a `trustedApps` without a `trustedGroup`, and a `DATA_DIR` holding another surface's state. An unreachable Jira does not refuse the start —
904
+ may not read, a `trustedApps`, a `wakeOnComment: true` or a `mentionMode: "act"` without a `trustedGroup`, and a
905
+ `DATA_DIR` holding another surface's state. An unreachable Jira does not refuse the start —
878
906
  polling backs off and resumes.
879
907
 
880
908
  The agent sessions of a Jira instance run without the user-level Claude settings, hooks and skills, with the
@@ -39,6 +39,7 @@ Unless the user names others:
39
39
 
40
40
  ## Launch
41
41
 
42
+ 0. Call `claude_profiles` first — never launch or resume a worker without it.
42
43
  1. Make a private run directory (an absolute path: a resume starts from the checkout), generate a UUID for the
43
44
  session, write the brief into `<run-dir>/brief.md`: the task and its context (the worker does not see this
44
45
  conversation), the skills it must load by name, every resource another live process holds, and "report every
@@ -96,6 +96,7 @@ kill -0 <pid> 2>/dev/null || { echo "worker <pid> exited"; exit 1; }; [ -n "$(fi
96
96
  - The user keeps the bot's topics muted: your plain text reaches the topic silently. Anything they must notice —
97
97
  a blocker, a fork, "ready to push" — ask as a native question (Claude Code: `AskUserQuestion`; OpenCode: its
98
98
  question tool); the bot pins it, and the pin notifies. In autonomous mode stop and report instead.
99
+ - A question never stops your work: when the bot sets it aside, go on; the answer comes later as a message.
99
100
  - A message headed `[Request <id> · from: …]` is answered through `answer_request` (`progress`, `question`,
100
101
  `final`); do not repeat its text as plain text afterwards.
101
102
  - The passing-run video of a new e2e test → `send_file_to_user` (H.264 `.mp4`, sent as a video). Several
@@ -20,6 +20,8 @@ export declare const claudePerTurnAdapterName = "claude-per-turn";
20
20
  * existing topics on it keep working, but {@link claudeJsonStreamAdapterName} is the recommended backend.
21
21
  */
22
22
  export declare const claudeTmuxAdapterName = "claude";
23
+ /** The raw `$SHELL` in tmux (`/terminal`): no agent, so no agent states. */
24
+ export declare const terminalAdapterName = "terminal";
23
25
  /** Both backends that run the json-stream host (one process per conversation at a time). */
24
26
  export declare function checkIsJsonStreamBackend(name: string): boolean;
25
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"adapterNames.d.ts","sourceRoot":"","sources":["../../src/adapters/adapterNames.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wFAAwF;AACxF,eAAO,MAAM,2BAA2B,uBAAuB,CAAC;AAEhE,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
1
+ {"version":3,"file":"adapterNames.d.ts","sourceRoot":"","sources":["../../src/adapters/adapterNames.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wFAAwF;AACxF,eAAO,MAAM,2BAA2B,uBAAuB,CAAC;AAEhE,kDAAkD;AAClD,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,oBAAoB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,WAAW,CAAC;AAE9C,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D"}
@@ -6,7 +6,7 @@
6
6
  * backend.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.claudeTmuxAdapterName = exports.claudePerTurnAdapterName = exports.openCodeAdapterName = exports.claudeJsonStreamAdapterName = void 0;
9
+ exports.terminalAdapterName = exports.claudeTmuxAdapterName = exports.claudePerTurnAdapterName = exports.openCodeAdapterName = exports.claudeJsonStreamAdapterName = void 0;
10
10
  exports.checkIsJsonStreamBackend = checkIsJsonStreamBackend;
11
11
  exports.checkIsClaudeBackend = checkIsClaudeBackend;
12
12
  /** The Claude Code backend driven over `--input-format/--output-format stream-json`. */
@@ -25,6 +25,8 @@ exports.claudePerTurnAdapterName = 'claude-per-turn';
25
25
  * existing topics on it keep working, but {@link claudeJsonStreamAdapterName} is the recommended backend.
26
26
  */
27
27
  exports.claudeTmuxAdapterName = 'claude';
28
+ /** The raw `$SHELL` in tmux (`/terminal`): no agent, so no agent states. */
29
+ exports.terminalAdapterName = 'terminal';
28
30
  /** Both backends that run the json-stream host (one process per conversation at a time). */
29
31
  function checkIsJsonStreamBackend(name) {
30
32
  return name === exports.claudeJsonStreamAdapterName || name === exports.claudePerTurnAdapterName;
@@ -1 +1 @@
1
- {"version":3,"file":"adapterNames.js","sourceRoot":"","sources":["../../src/adapters/adapterNames.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAuBH,4DAEC;AAcD,oDAEC;AAvCD,wFAAwF;AAC3E,QAAA,2BAA2B,GAAG,oBAAoB,CAAC;AAEhE,kDAAkD;AACrC,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,iBAAiB,CAAC;AAE1D;;;;GAIG;AACU,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AAE9C,4FAA4F;AAC5F,SAAgB,wBAAwB,CAAC,IAAY;IACnD,OAAO,IAAI,KAAK,mCAA2B,IAAI,IAAI,KAAK,gCAAwB,CAAC;AACnF,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,IAAI,KAAK,6BAAqB,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAC1E,CAAC"}
1
+ {"version":3,"file":"adapterNames.js","sourceRoot":"","sources":["../../src/adapters/adapterNames.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA0BH,4DAEC;AAcD,oDAEC;AA1CD,wFAAwF;AAC3E,QAAA,2BAA2B,GAAG,oBAAoB,CAAC;AAEhE,kDAAkD;AACrC,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,iBAAiB,CAAC;AAE1D;;;;GAIG;AACU,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AAE9C,4EAA4E;AAC/D,QAAA,mBAAmB,GAAG,UAAU,CAAC;AAE9C,4FAA4F;AAC5F,SAAgB,wBAAwB,CAAC,IAAY;IACnD,OAAO,IAAI,KAAK,mCAA2B,IAAI,IAAI,KAAK,gCAAwB,CAAC;AACnF,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,OAAO,IAAI,KAAK,6BAAqB,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;AAC1E,CAAC"}
@@ -4,7 +4,7 @@ import type { SessionKey } from '../sessionKey';
4
4
  import type { ClaudeConfigDirApplyResult, ClaudeConfigDirReader, ClaudeRateLimitSink, ClaudeTurnCostSink } from './claudeConfigDir';
5
5
  import { ClaudeStreamLineReader } from '../utils/claudeStreamJson';
6
6
  import { type McpHealOutcome } from '../utils/claudeMcpHeal';
7
- import { type JsonStreamSessionPaths, type StdoutTailState } from '../utils/jsonStreamHost';
7
+ import { writeFifoText, type JsonStreamSessionPaths, type StdoutTailState } from '../utils/jsonStreamHost';
8
8
  import { type SessionLaunchDefaultsReader } from './sessionLaunchDefaults';
9
9
  import { type LostWork } from '../utils/lostWork';
10
10
  import { type ScheduledJob } from '../utils/claudeScheduledJobs';
@@ -60,6 +60,19 @@ export interface StreamSession {
60
60
  fifoFd: number;
61
61
  /** Serialises FIFO writes so control frames and user turns keep wire order. */
62
62
  stdinWriteChain: Promise<void>;
63
+ /**
64
+ * A frame was left half-written in the stdin FIFO (its reader stopped taking bytes mid-frame): whatever is written
65
+ * after it would be read as the rest of that line, so nothing is — every later write fails at once, and the process
66
+ * is suspended so the conversation's next trigger resumes it in a fresh one.
67
+ */
68
+ isStdinBroken: boolean;
69
+ /**
70
+ * The CLI has shown that it reads its stdin: it answered the initialize handshake, or wrote any output. A freshly
71
+ * spawned (resumed) CLI may read nothing for a long while — seen live: the handshake timed out after 15 s and the
72
+ * first prompt met a full FIFO 5 s later — so a user turn waits for this before it is written (see
73
+ * {@link ClaudeJsonStreamAdapter.waitForReadingInput}). Always set for an adopted process: it has been reading.
74
+ */
75
+ isReadingInput: boolean;
63
76
  /** `stdout.jsonl` tail bookkeeping (byte offsets + stateful utf8 decode). */
64
77
  tail: StdoutTailState;
65
78
  pollTimer: NodeJS.Timeout | null;
@@ -264,9 +277,15 @@ export declare class ClaudeJsonStreamAdapter extends EventEmitter implements Age
264
277
  readonly lifecycle: JsonStreamLifecycle;
265
278
  /** How long the agent's own pending work holds the process after its last turn (`utils/jsonStreamPendingWork.ts`). */
266
279
  private pendingWorkHoldMs;
280
+ /**
281
+ * `writeFifo` replaces the stdin FIFO write (tests only: a reader that stalls or stops mid-frame cannot be made
282
+ * portably with a real pipe).
283
+ */
267
284
  constructor(options?: {
268
285
  lifecycle: JsonStreamLifecycle;
269
286
  backgroundHoldMs?: number;
287
+ writeFifo?: typeof writeFifoText;
288
+ stdinStallTimeoutMs?: number;
270
289
  });
271
290
  /** Emits incremental text deltas (like the tmux scrape) → the transports
272
291
  * synthesise continuation (`getDmDraftContinuation` / group delta path). */
@@ -275,6 +294,14 @@ export declare class ClaudeJsonStreamAdapter extends EventEmitter implements Age
275
294
  readonly selfGreetsOnStart = false;
276
295
  private readonly sessions;
277
296
  private readonly claudePath;
297
+ private readonly writeFifo;
298
+ /** How long a user turn waits for a CLI that reads nothing, and a write for a reader that takes nothing (tests shorten it). */
299
+ private readonly stdinStallTimeoutMs;
300
+ /**
301
+ * How often each user prompt was left half-written, by conversation and the request it names (else its text): a second tear
302
+ * of the same request's prompt — a re-post may be rebuilt with other text — is logged loudly. Dropped once one of its writes lands.
303
+ */
304
+ private readonly tornPromptCounts;
278
305
  private displayPrefsReader;
279
306
  private seenWatermarkWriter;
280
307
  private jsonStreamTailWriter;
@@ -520,15 +547,43 @@ export declare class ClaudeJsonStreamAdapter extends EventEmitter implements Age
520
547
  */
521
548
  getLatestCompactionSummary(key: SessionKey): Promise<string | null>;
522
549
  sendInput(key: SessionKey, input: string): void;
550
+ /**
551
+ * @description {@link sendInput} that resolves once the user turn is written WHOLE into the CLI's stdin, and rejects
552
+ * when it could not be (`EAGAIN` past the stall budget, a dead reader, a broken stream): the prompt never reached the
553
+ * agent, and its caller is told so instead of believing it delivered. The state a turn start sets is set before the
554
+ * first await, as `sendInput` always did; a write that failed takes back its unconsumed-input count, and the busy flag
555
+ * when nothing of the CLI was seen since. A session that is not active drops the input, as before (logged).
556
+ */
557
+ sendInputAndWait(key: SessionKey, input: string): Promise<void>;
523
558
  sendSignal(key: SessionKey, _signal: string): void;
524
559
  sendEscape(key: SessionKey): void;
525
560
  private sendInterrupt;
526
- /** Write one user turn, counting it until Claude echoes it back (it has read it). */
561
+ /** Write one user turn, counting it until Claude echoes it back (it has read it); settles as its write does. */
527
562
  private writeUserMessage;
528
- /** Enqueue one stream-json frame onto the stdin FIFO. Fire-and-forget for
529
- * callers (sync signature preserved); the per-session chain keeps wire
530
- * order and absorbs transient `EAGAIN` (see `writeFifoText`). */
563
+ /**
564
+ * Enqueue one stream-json frame onto the stdin FIFO. The per-session chain keeps wire order and waits out a full
565
+ * buffer (see `writeFifoText`); the returned promise is THIS frame's write — it resolves once the frame is written
566
+ * whole and rejects when it is not (logged here, so a caller may leave it: the chain's own handler keeps it from being
567
+ * an unhandled rejection). A frame left half-written breaks the stream: see {@link StreamSession.isStdinBroken}.
568
+ */
531
569
  private writeStdin;
570
+ /**
571
+ * Hold a user turn until the CLI shows it reads its stdin ({@link StreamSession.isReadingInput}). After the stall budget
572
+ * the turn is written anyway — a CLI that never answers the handshake must still get its prompts — and the write then
573
+ * has the budget of its own; a stop under way ends the wait (nothing was written).
574
+ */
575
+ private waitForReadingInput;
576
+ /**
577
+ * A user prompt was left half-written. Counted per conversation and text: the same prompt torn again means the CLI
578
+ * keeps stopping mid-prompt on every retry — said loudly, while the prompt stays pending with its request's retries.
579
+ */
580
+ private noteTornPrompt;
581
+ /**
582
+ * A frame was left half-written: nothing more is written into the stream, and the process is suspended — the
583
+ * conversation keeps its id and its next trigger resumes it in a fresh process, with a stdin of its own. A suspend that
584
+ * fails must not leave a live process nobody can write to: it is killed, and the tail poll's exit check ends the session.
585
+ */
586
+ private breakStdin;
532
587
  private onStdout;
533
588
  private applyStdoutLines;
534
589
  /**
@@ -650,6 +705,20 @@ export declare class ClaudeJsonStreamAdapter extends EventEmitter implements Age
650
705
  private parseQuestions;
651
706
  answerQuestion(key: SessionKey, answers: string[][]): void;
652
707
  rejectQuestion(key: SessionKey): void;
708
+ /**
709
+ * @description Set the question `requestId` aside: DENY its `can_use_tool` with `text` as the message. The CLI hands the model
710
+ * a denied tool call's message as the tool's result and the turn goes on — no interrupt, unlike {@link rejectQuestion}'s
711
+ * abandonment (the Agent SDK: «When denying, provide a message explaining why. Claude sees this message and may adjust its
712
+ * approach»). The answers already given travel in `text` itself, so `givenAnswers` is not read here. Does nothing, and says
713
+ * so (`false`), unless `requestId` is the question pending now.
714
+ */
715
+ setQuestionAside(key: SessionKey, requestId: string, text: string): boolean;
716
+ /**
717
+ * Take the pending question out of the session — its sidecar goes too, so a restart cannot resurface it — and hand it to the
718
+ * caller, who answers, denies or sets aside its `can_use_tool` request. `null` when none is pending (already resolved: a
719
+ * second resolution is a no-op, never a second control_response).
720
+ */
721
+ private takePendingQuestion;
653
722
  private writeControlResponse;
654
723
  getSessions(_key: SessionKey, workDir: string): Promise<AgentSession[]>;
655
724
  getRecentTurns(_key: SessionKey, workDir: string, sessionId: string, limit: number): Promise<RecentTurn[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"claudeJsonStreamAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/claudeJsonStreamAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAEhB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,aAAa,EAEb,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAsBpI,OAAO,EACL,sBAAsB,EAMvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAML,KAAK,cAAc,EAGpB,MAAM,wBAAwB,CAAC;AAehC,OAAO,EA2BL,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAA2B,KAAK,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEpG,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,8BAA8B,CAAC;AAGtC,kGAAkG;AAClG,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,SAAS,CAAC;AAmBrD;wCACwC;AACxC,eAAO,MAAM,8BAA8B,wBAAwB,CAAC;AAMpE,qGAAqG;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