charness 4.4.0 → 4.4.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 (330) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/DEVELOPMENT.md +3 -1
  3. package/README.md +1 -0
  4. package/agent-plugin/README.md +6 -5
  5. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +4 -1
  6. package/agent-plugin/skills/charness-delivery-loop/SKILL.md +9 -9
  7. package/agent-plugin/skills/charness-orchestration/SKILL.md +6 -2
  8. package/dist/adapters/adapterEventRouting.d.ts +2 -1
  9. package/dist/adapters/adapterEventRouting.d.ts.map +1 -1
  10. package/dist/adapters/adapterEventRouting.js +3 -0
  11. package/dist/adapters/adapterEventRouting.js.map +1 -1
  12. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  13. package/dist/adapters/claudeCliAdapter.js +11 -6
  14. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  15. package/dist/adapters/claudeJsonStreamAdapter.d.ts +11 -3
  16. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  17. package/dist/adapters/claudeJsonStreamAdapter.js +48 -16
  18. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  19. package/dist/adapters/createAdapter.d.ts +1 -0
  20. package/dist/adapters/createAdapter.d.ts.map +1 -1
  21. package/dist/adapters/createAdapter.js +4 -0
  22. package/dist/adapters/createAdapter.js.map +1 -1
  23. package/dist/adapters/openCodeAdapter.d.ts +68 -11
  24. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  25. package/dist/adapters/openCodeAdapter.js +194 -70
  26. package/dist/adapters/openCodeAdapter.js.map +1 -1
  27. package/dist/adapters/terminalAdapter.js +1 -1
  28. package/dist/adapters/terminalAdapter.js.map +1 -1
  29. package/dist/bot.d.ts.map +1 -1
  30. package/dist/bot.js +70 -70
  31. package/dist/bot.js.map +1 -1
  32. package/dist/botFileStorage.d.ts.map +1 -1
  33. package/dist/botFileStorage.js +6 -5
  34. package/dist/botFileStorage.js.map +1 -1
  35. package/dist/cli/bot.d.ts +2 -1
  36. package/dist/cli/bot.d.ts.map +1 -1
  37. package/dist/cli/bot.js +14 -10
  38. package/dist/cli/bot.js.map +1 -1
  39. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  40. package/dist/cli/claudeProfiles.js +36 -1
  41. package/dist/cli/claudeProfiles.js.map +1 -1
  42. package/dist/cli/hot.d.ts +3 -0
  43. package/dist/cli/hot.d.ts.map +1 -1
  44. package/dist/cli/hot.js +32 -3
  45. package/dist/cli/hot.js.map +1 -1
  46. package/dist/configDirFile.d.ts +23 -5
  47. package/dist/configDirFile.d.ts.map +1 -1
  48. package/dist/configDirFile.js +59 -19
  49. package/dist/configDirFile.js.map +1 -1
  50. package/dist/configDirectory.d.ts +9 -0
  51. package/dist/configDirectory.d.ts.map +1 -0
  52. package/dist/configDirectory.js +57 -0
  53. package/dist/configDirectory.js.map +1 -0
  54. package/dist/connectors/jira/agentBinaries.d.ts.map +1 -1
  55. package/dist/connectors/jira/agentBinaries.js +7 -6
  56. package/dist/connectors/jira/agentBinaries.js.map +1 -1
  57. package/dist/connectors/jira/attachmentDownload.d.ts.map +1 -1
  58. package/dist/connectors/jira/attachmentDownload.js +3 -3
  59. package/dist/connectors/jira/attachmentDownload.js.map +1 -1
  60. package/dist/connectors/jira/attachmentTool.d.ts.map +1 -1
  61. package/dist/connectors/jira/attachmentTool.js +4 -3
  62. package/dist/connectors/jira/attachmentTool.js.map +1 -1
  63. package/dist/connectors/jira/contextLedger.d.ts.map +1 -1
  64. package/dist/connectors/jira/contextLedger.js +5 -4
  65. package/dist/connectors/jira/contextLedger.js.map +1 -1
  66. package/dist/connectors/jira/promptSpill.d.ts.map +1 -1
  67. package/dist/connectors/jira/promptSpill.js +5 -5
  68. package/dist/connectors/jira/promptSpill.js.map +1 -1
  69. package/dist/dataDirFs.d.ts +95 -0
  70. package/dist/dataDirFs.d.ts.map +1 -0
  71. package/dist/dataDirFs.js +348 -0
  72. package/dist/dataDirFs.js.map +1 -0
  73. package/dist/diagLog.d.ts.map +1 -1
  74. package/dist/diagLog.js +7 -3
  75. package/dist/diagLog.js.map +1 -1
  76. package/dist/installManager.d.ts +2 -2
  77. package/dist/installManager.d.ts.map +1 -1
  78. package/dist/installManager.js +53 -64
  79. package/dist/installManager.js.map +1 -1
  80. package/dist/instanceLock.d.ts +95 -0
  81. package/dist/instanceLock.d.ts.map +1 -1
  82. package/dist/instanceLock.js +293 -28
  83. package/dist/instanceLock.js.map +1 -1
  84. package/dist/instanceSettings.d.ts +4 -1
  85. package/dist/instanceSettings.d.ts.map +1 -1
  86. package/dist/instanceSettings.js +5 -1
  87. package/dist/instanceSettings.js.map +1 -1
  88. package/dist/legacyNames.d.ts +11 -0
  89. package/dist/legacyNames.d.ts.map +1 -1
  90. package/dist/legacyNames.js +12 -1
  91. package/dist/legacyNames.js.map +1 -1
  92. package/dist/mcpConfig.d.ts.map +1 -1
  93. package/dist/mcpConfig.js +10 -9
  94. package/dist/mcpConfig.js.map +1 -1
  95. package/dist/outputTrace.d.ts.map +1 -1
  96. package/dist/outputTrace.js +12 -6
  97. package/dist/outputTrace.js.map +1 -1
  98. package/dist/processIdentity.d.ts +18 -0
  99. package/dist/processIdentity.d.ts.map +1 -0
  100. package/dist/processIdentity.js +136 -0
  101. package/dist/processIdentity.js.map +1 -0
  102. package/dist/remoteRun/commands.d.ts.map +1 -1
  103. package/dist/remoteRun/commands.js +4 -4
  104. package/dist/remoteRun/commands.js.map +1 -1
  105. package/dist/remoteRun/heldBackNotice.d.ts.map +1 -1
  106. package/dist/remoteRun/heldBackNotice.js +4 -3
  107. package/dist/remoteRun/heldBackNotice.js.map +1 -1
  108. package/dist/remoteRun/jobFiles.d.ts.map +1 -1
  109. package/dist/remoteRun/jobFiles.js +3 -2
  110. package/dist/remoteRun/jobFiles.js.map +1 -1
  111. package/dist/remoteRun/jobRecords.d.ts.map +1 -1
  112. package/dist/remoteRun/jobRecords.js +4 -3
  113. package/dist/remoteRun/jobRecords.js.map +1 -1
  114. package/dist/remoteRun/runners.d.ts.map +1 -1
  115. package/dist/remoteRun/runners.js +5 -4
  116. package/dist/remoteRun/runners.js.map +1 -1
  117. package/dist/remoteRun/safeCopy.d.ts.map +1 -1
  118. package/dist/remoteRun/safeCopy.js +5 -4
  119. package/dist/remoteRun/safeCopy.js.map +1 -1
  120. package/dist/remoteRun/ssh.d.ts.map +1 -1
  121. package/dist/remoteRun/ssh.js +4 -4
  122. package/dist/remoteRun/ssh.js.map +1 -1
  123. package/dist/remoteRun/submit.d.ts.map +1 -1
  124. package/dist/remoteRun/submit.js +2 -1
  125. package/dist/remoteRun/submit.js.map +1 -1
  126. package/dist/requests/wakeUpEngine.d.ts +8 -0
  127. package/dist/requests/wakeUpEngine.d.ts.map +1 -1
  128. package/dist/requests/wakeUpEngine.js +19 -2
  129. package/dist/requests/wakeUpEngine.js.map +1 -1
  130. package/dist/runnerUtility/appInstall.d.ts.map +1 -1
  131. package/dist/runnerUtility/appInstall.js +11 -10
  132. package/dist/runnerUtility/appInstall.js.map +1 -1
  133. package/dist/runnerUtility/appUpdate.d.ts.map +1 -1
  134. package/dist/runnerUtility/appUpdate.js +3 -3
  135. package/dist/runnerUtility/appUpdate.js.map +1 -1
  136. package/dist/runnerUtility/execEnv.d.ts +0 -5
  137. package/dist/runnerUtility/execEnv.d.ts.map +1 -1
  138. package/dist/runnerUtility/execEnv.js +2 -24
  139. package/dist/runnerUtility/execEnv.js.map +1 -1
  140. package/dist/runnerUtility/guiAgent.d.ts.map +1 -1
  141. package/dist/runnerUtility/guiAgent.js +12 -11
  142. package/dist/runnerUtility/guiAgent.js.map +1 -1
  143. package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
  144. package/dist/runnerUtility/guiAgentHeal.js +4 -3
  145. package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
  146. package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
  147. package/dist/runnerUtility/iosCheck.js +2 -1
  148. package/dist/runnerUtility/iosCheck.js.map +1 -1
  149. package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
  150. package/dist/runnerUtility/keepAwake.js +2 -1
  151. package/dist/runnerUtility/keepAwake.js.map +1 -1
  152. package/dist/runnerUtility/launcher.d.ts.map +1 -1
  153. package/dist/runnerUtility/launcher.js +2 -1
  154. package/dist/runnerUtility/launcher.js.map +1 -1
  155. package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -1
  156. package/dist/runnerUtility/nodeUpkeep.js +4 -3
  157. package/dist/runnerUtility/nodeUpkeep.js.map +1 -1
  158. package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
  159. package/dist/runnerUtility/packageManagerShims.js +5 -4
  160. package/dist/runnerUtility/packageManagerShims.js.map +1 -1
  161. package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
  162. package/dist/runnerUtility/pueueDaemon.js +3 -2
  163. package/dist/runnerUtility/pueueDaemon.js.map +1 -1
  164. package/dist/runnerUtility/runnerCli.js +2 -1
  165. package/dist/runnerUtility/runnerCli.js.map +1 -1
  166. package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
  167. package/dist/runnerUtility/runnerCommands.js +6 -5
  168. package/dist/runnerUtility/runnerCommands.js.map +1 -1
  169. package/dist/runnerUtility/runnerConfig.d.ts.map +1 -1
  170. package/dist/runnerUtility/runnerConfig.js +2 -1
  171. package/dist/runnerUtility/runnerConfig.js.map +1 -1
  172. package/dist/runnerUtility/runnerFlags.d.ts.map +1 -1
  173. package/dist/runnerUtility/runnerFlags.js +3 -2
  174. package/dist/runnerUtility/runnerFlags.js.map +1 -1
  175. package/dist/runnerUtility/runnerKeys.d.ts.map +1 -1
  176. package/dist/runnerUtility/runnerKeys.js +2 -1
  177. package/dist/runnerUtility/runnerKeys.js.map +1 -1
  178. package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
  179. package/dist/runnerUtility/serviceManager.js +15 -14
  180. package/dist/runnerUtility/serviceManager.js.map +1 -1
  181. package/dist/runnerUtility/simctlGuard.d.ts.map +1 -1
  182. package/dist/runnerUtility/simctlGuard.js +3 -2
  183. package/dist/runnerUtility/simctlGuard.js.map +1 -1
  184. package/dist/runnerUtility/toolInstall.d.ts.map +1 -1
  185. package/dist/runnerUtility/toolInstall.js +11 -10
  186. package/dist/runnerUtility/toolInstall.js.map +1 -1
  187. package/dist/runners/authorizedKeys.d.ts.map +1 -1
  188. package/dist/runners/authorizedKeys.js +2 -1
  189. package/dist/runners/authorizedKeys.js.map +1 -1
  190. package/dist/runners/gateLink.d.ts.map +1 -1
  191. package/dist/runners/gateLink.js +4 -3
  192. package/dist/runners/gateLink.js.map +1 -1
  193. package/dist/runners/hubLock.d.ts.map +1 -1
  194. package/dist/runners/hubLock.js +9 -8
  195. package/dist/runners/hubLock.js.map +1 -1
  196. package/dist/runners/hubPackage.d.ts.map +1 -1
  197. package/dist/runners/hubPackage.js +5 -4
  198. package/dist/runners/hubPackage.js.map +1 -1
  199. package/dist/runners/linkControl.d.ts.map +1 -1
  200. package/dist/runners/linkControl.js +7 -6
  201. package/dist/runners/linkControl.js.map +1 -1
  202. package/dist/scheduler/injection.d.ts +5 -3
  203. package/dist/scheduler/injection.d.ts.map +1 -1
  204. package/dist/scheduler/injection.js +15 -4
  205. package/dist/scheduler/injection.js.map +1 -1
  206. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  207. package/dist/scheduler/mcpSurface.js +16 -12
  208. package/dist/scheduler/mcpSurface.js.map +1 -1
  209. package/dist/selfUpdate/gitSource.d.ts.map +1 -1
  210. package/dist/selfUpdate/gitSource.js +2 -2
  211. package/dist/selfUpdate/gitSource.js.map +1 -1
  212. package/dist/selfUpdate/hostLock.d.ts.map +1 -1
  213. package/dist/selfUpdate/hostLock.js +4 -3
  214. package/dist/selfUpdate/hostLock.js.map +1 -1
  215. package/dist/selfUpdate/restart.d.ts +8 -0
  216. package/dist/selfUpdate/restart.d.ts.map +1 -1
  217. package/dist/selfUpdate/restart.js +10 -0
  218. package/dist/selfUpdate/restart.js.map +1 -1
  219. package/dist/selfUpdate/selfCheck.d.ts.map +1 -1
  220. package/dist/selfUpdate/selfCheck.js +3 -2
  221. package/dist/selfUpdate/selfCheck.js.map +1 -1
  222. package/dist/selfUpdate/updatePending.d.ts.map +1 -1
  223. package/dist/selfUpdate/updatePending.js +2 -1
  224. package/dist/selfUpdate/updatePending.js.map +1 -1
  225. package/dist/state.d.ts +10 -4
  226. package/dist/state.d.ts.map +1 -1
  227. package/dist/state.js +38 -20
  228. package/dist/state.js.map +1 -1
  229. package/dist/stt/sttAutoInstall.d.ts.map +1 -1
  230. package/dist/stt/sttAutoInstall.js +9 -2
  231. package/dist/stt/sttAutoInstall.js.map +1 -1
  232. package/dist/stt/sttInstall.d.ts.map +1 -1
  233. package/dist/stt/sttInstall.js +18 -17
  234. package/dist/stt/sttInstall.js.map +1 -1
  235. package/dist/stt/sttInstallEntry.js +12 -2
  236. package/dist/stt/sttInstallEntry.js.map +1 -1
  237. package/dist/stt/sttSettings.d.ts.map +1 -1
  238. package/dist/stt/sttSettings.js +6 -2
  239. package/dist/stt/sttSettings.js.map +1 -1
  240. package/dist/stt/sttSidecarOwner.d.ts +0 -3
  241. package/dist/stt/sttSidecarOwner.d.ts.map +1 -1
  242. package/dist/stt/sttSidecarOwner.js +11 -12
  243. package/dist/stt/sttSidecarOwner.js.map +1 -1
  244. package/dist/todos/projects.d.ts.map +1 -1
  245. package/dist/todos/projects.js +2 -1
  246. package/dist/todos/projects.js.map +1 -1
  247. package/dist/todos/store.d.ts.map +1 -1
  248. package/dist/todos/store.js +5 -4
  249. package/dist/todos/store.js.map +1 -1
  250. package/dist/types.d.ts +8 -1
  251. package/dist/types.d.ts.map +1 -1
  252. package/dist/types.js.map +1 -1
  253. package/dist/utils/agentEnvironment.d.ts +19 -8
  254. package/dist/utils/agentEnvironment.d.ts.map +1 -1
  255. package/dist/utils/agentEnvironment.js +32 -12
  256. package/dist/utils/agentEnvironment.js.map +1 -1
  257. package/dist/utils/agentPlugin.d.ts +2 -0
  258. package/dist/utils/agentPlugin.d.ts.map +1 -1
  259. package/dist/utils/agentPlugin.js +8 -6
  260. package/dist/utils/agentPlugin.js.map +1 -1
  261. package/dist/utils/claudeApiCredit.d.ts.map +1 -1
  262. package/dist/utils/claudeApiCredit.js +4 -1
  263. package/dist/utils/claudeApiCredit.js.map +1 -1
  264. package/dist/utils/claudeCompactHook.js +5 -5
  265. package/dist/utils/claudeCompactHook.js.map +1 -1
  266. package/dist/utils/claudeProfiles.d.ts +9 -0
  267. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  268. package/dist/utils/claudeProfiles.js +19 -17
  269. package/dist/utils/claudeProfiles.js.map +1 -1
  270. package/dist/utils/claudeStreamJson.d.ts +1 -0
  271. package/dist/utils/claudeStreamJson.d.ts.map +1 -1
  272. package/dist/utils/claudeStreamJson.js +2 -1
  273. package/dist/utils/claudeStreamJson.js.map +1 -1
  274. package/dist/utils/claudeTranscriptContent.d.ts.map +1 -1
  275. package/dist/utils/claudeTranscriptContent.js +2 -1
  276. package/dist/utils/claudeTranscriptContent.js.map +1 -1
  277. package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -1
  278. package/dist/utils/compactSelfReviewFlags.js +5 -4
  279. package/dist/utils/compactSelfReviewFlags.js.map +1 -1
  280. package/dist/utils/consoleFileTap.d.ts +11 -5
  281. package/dist/utils/consoleFileTap.d.ts.map +1 -1
  282. package/dist/utils/consoleFileTap.js +55 -18
  283. package/dist/utils/consoleFileTap.js.map +1 -1
  284. package/dist/utils/download.d.ts.map +1 -1
  285. package/dist/utils/download.js +3 -4
  286. package/dist/utils/download.js.map +1 -1
  287. package/dist/utils/fileSendService.js +6 -4
  288. package/dist/utils/fileSendService.js.map +1 -1
  289. package/dist/utils/jsonStreamHost.d.ts +1 -1
  290. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  291. package/dist/utils/jsonStreamHost.js +6 -5
  292. package/dist/utils/jsonStreamHost.js.map +1 -1
  293. package/dist/utils/jsonStreamUnconsumedInput.d.ts +2 -0
  294. package/dist/utils/jsonStreamUnconsumedInput.d.ts.map +1 -1
  295. package/dist/utils/jsonStreamUnconsumedInput.js.map +1 -1
  296. package/dist/utils/midTurnAnswerWatch.d.ts +69 -0
  297. package/dist/utils/midTurnAnswerWatch.d.ts.map +1 -0
  298. package/dist/utils/midTurnAnswerWatch.js +87 -0
  299. package/dist/utils/midTurnAnswerWatch.js.map +1 -0
  300. package/dist/utils/midTurnInbox.d.ts.map +1 -1
  301. package/dist/utils/midTurnInbox.js +9 -8
  302. package/dist/utils/midTurnInbox.js.map +1 -1
  303. package/dist/utils/openCodeCompactPlugin.d.ts +6 -0
  304. package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
  305. package/dist/utils/openCodeCompactPlugin.js +46 -7
  306. package/dist/utils/openCodeCompactPlugin.js.map +1 -1
  307. package/dist/utils/openCodeMessageId.d.ts +16 -0
  308. package/dist/utils/openCodeMessageId.d.ts.map +1 -0
  309. package/dist/utils/openCodeMessageId.js +51 -0
  310. package/dist/utils/openCodeMessageId.js.map +1 -0
  311. package/dist/utils/parseEnvFile.d.ts +11 -0
  312. package/dist/utils/parseEnvFile.d.ts.map +1 -0
  313. package/dist/utils/parseEnvFile.js +31 -0
  314. package/dist/utils/parseEnvFile.js.map +1 -0
  315. package/dist/utils/promptDelivery.d.ts +37 -1
  316. package/dist/utils/promptDelivery.d.ts.map +1 -1
  317. package/dist/utils/promptDelivery.js +52 -0
  318. package/dist/utils/promptDelivery.js.map +1 -1
  319. package/dist/utils/rotatingJsonlFile.d.ts.map +1 -1
  320. package/dist/utils/rotatingJsonlFile.js +4 -3
  321. package/dist/utils/rotatingJsonlFile.js.map +1 -1
  322. package/dist/utils/rotatingLogFile.d.ts.map +1 -1
  323. package/dist/utils/rotatingLogFile.js +2 -1
  324. package/dist/utils/rotatingLogFile.js.map +1 -1
  325. package/dist/utils/tmuxExec.d.ts +6 -6
  326. package/dist/utils/tmuxExec.d.ts.map +1 -1
  327. package/dist/utils/tmuxExec.js +9 -9
  328. package/dist/utils/tmuxExec.js.map +1 -1
  329. package/npm-shrinkwrap.json +2 -2
  330. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.4.1 — 2026-12-04
6
+
7
+ **The skills Charness gives its agents no longer assume one particular setup: the fallback delivery loop names a project's role skills, plan folders and test environments by what they do, not by the names of one private rules repository.**
8
+
9
+ **A prompt the bot posts into a conversation itself — a tracker request, an issue update, a scheduled run, the note about work lost with a stopped process — no longer gets stuck when it arrives just as the bot restarts while that conversation's process is stopping.**
10
+ Before, such a post could wait forever when the process finished stopping during its wait: the prompt reached the agent (or found no session), but the bot never saw it as done, so it never tracked the agent's answer to it, and a post that found no session was not retried. Now the post completes as soon as the prompt reached the agent, and one that found no session fails and is handled like any other undelivered post. And a scheduled run whose prompt never reached the agent no longer comes back later on its own.
11
+
12
+ **An agent's answer to a message you send while it is working no longer gets lost: agents answer it through the bot's send tool, and the bot asks the agent once to send an answer it did not send that way.**
13
+ Before, an agent sometimes wrote its reply to a mid-turn message into a hidden reasoning block, so the topic showed nothing although the agent believed it had answered. Every agent the bot starts in a Telegram topic is now told — in the bot's instructions, in the send tool's own description and in the orchestration skill — to answer a mid-turn message that carries no request header through `send_messages_to_user`, and to repeat that answer briefly in a question with buttons it asks in the same step. And when a turn that took in your message ends without the agent sending an answer through the bot's tools (a message to the topic, or its answer to a request), the bot at once asks the agent, in one line, to send it that way; it asks once, and not after you interrupted the turn or it failed. The agent's plain text does not count: it cannot be told apart from the agent's running commentary on its work (in the incident behind this change, a line of commentary made two unanswered messages look answered), so an agent that answered in plain text is asked too, and you may see that answer twice. A message that needs no reply (a «thanks», an «also run the tests») is covered the same way: the agent acknowledges it through the send tool, or the bot asks it to. On Claude Code and OpenCode, in the «Stream only» view; in a view with answers your message is a request, which keeps its own reminder.
14
+
15
+ **On OpenCode, the words an agent was writing when you sent a message no longer vanish from the topic.**
16
+ Before, a message you sent while the agent was in the middle of a sentence wiped the part of that sentence the bot had not posted yet (it posts the agent's text in short batches), so the topic showed the sentence without its beginning — or not at all. Now the bot posts what it was holding before it passes your message on, and the agent's sentence goes on in the same message.
17
+
18
+ **A test or a script an agent runs can no longer lock the bot out of its own OpenCode server, stop that server, or write into the bot's data folder.**
19
+ Before, an agent's shell carried the bot's data folder and, on a tmux server an older bot had started, the variables `charness hot` gives its worker; a test that started an OpenCode server from there overwrote the bot's saved server password with its own, and every OpenCode topic failed with "requires a password the bot does not hold" until the server was stopped by hand. Agents no longer get those hot-mode variables (nor the ones that name the speech engine's owner). A process that is not the running instance but has its data folder — a test, a script, a second `charness` — no longer adopts, stops or starts the bot's OpenCode server or writes its server files: its OpenCode server start fails with "… belongs to the running instance pid N", `charness hot` exits with the same words before it writes its record or touches the bot's speech engine (it waits up to a few seconds only for an instance of the same bot that is shutting down), and the bot's code it runs writes nothing into the bot's data folder — no console or diagnostic log line, trace record, `state.json`, model or effort pick, request or scheduler run history, todo list, received file, agent session folder, MCP file or speech engine record — nor into the bot's config folder (`settings.json`, `stt.json`) — from a process that holds no data folder of its own, a test or a script with a `DATA_DIR` of its own included (it reaches that folder through the bot's `.env`), while an instance that holds its own data folder saves into its config folder, also one it shares; such a write fails with "refusing to write <file>: <folder> belongs to the running instance pid N" (a second `charness` keeps its start-up output in memory until it holds the lock, so a refused start leaves the bot's console log as it was). What agents record there on purpose still lands: `charness claude-profiles` repairs account folders and records the API credit figure, and the bot's own hooks in its agents mark restored skills; the speech engine install the bot starts itself (the /stt «Enable local recognition» button, or the install at start) still installs, also across a reload of the bot, because the bot hands it its lock. A plain `charness` keeps its lock while it restarts after an update, and a process refused there once stays refused; in hot mode the data folder has no lock for a few seconds while `charness hot` starts, restarts itself or replaces its worker, and a process started in that window is not refused. The bot never refuses its own writes, also after its host was renamed. The OpenCode compaction plugin in your account's plugin folder records which running bot installed it: a test or a script leaves that bot's plugin in place, while a second bot on the same account still installs its own.
20
+
21
+ **On Linux, a bot that crashed and was started again after its host was renamed no longer refuses to start until you delete `instance.lock` by hand.**
22
+ Before, the lock the crashed bot left behind named the old host name, so the bot read it as another machine's and refused every start. Now a lock this machine wrote since its last boot is checked like a local one: if the process that wrote it is gone, the lock counts as left behind. A lock from another machine (a shared disk), or one a crash left behind on macOS, is still refused as before. And in hot mode, a new worker that starts after a host rename while the old one is still finishing (macOS included) now waits for it instead of exiting with «locked by an instance on another host» and stopping `charness hot`.
23
+
5
24
  ## 4.4.0 — 2026-11-29
6
25
 
7
26
  **You can now name your Claude accounts as you like — `Work`, `me@company`, `Работа` — and rename them at any time with ✏️ in `/accounts`; the account in `~/.claude` is no longer called «default».**
package/DEVELOPMENT.md CHANGED
@@ -98,7 +98,9 @@ keep when touching the restart path:
98
98
 
99
99
  - **A restart in place is `process.execve`** (the same pid) of `node <packageRoot>/dist/cli.js <original arguments>` with
100
100
  the environment as it was at launch — `cli.ts`'s FIRST import snapshots it, so an edited `.env` is read afresh. Nothing
101
- may be imported before `launchEnvironment`.
101
+ may be imported before `launchEnvironment`. A plain process keeps its `instance.lock` across an update's restart (the new image — the same pid and
102
+ process start — replaces its own lock, also after a host rename); a boot rollback releases it first, for older code. In hot
103
+ mode the data dir has no lock for a few seconds while a worker is replaced or the supervisor starts or re-execs (accepted).
102
104
  - **The hot supervisor re-executes itself** when a file it loaded changed: at start it writes `DATA_DIR/hot-supervisor.json`
103
105
  (pid, start token, hash of every loaded `dist/` module); a new worker compares it with `dist/` and, at its idle point,
104
106
  sends `SIGUSR2` — only when pid and start token match. The supervisor stops `tsc -w` and nodemon, leaves the OpenCode
package/README.md CHANGED
@@ -101,6 +101,7 @@ The same core serves every surface; each feature links to the commands that driv
101
101
  | 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) |
102
102
  | 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) |
103
103
  | 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) |
104
+ | Answers that never get lost | A message you send while the agent works is taken into its running turn; if that turn ends without the agent sending an answer through the bot's tools (its plain text does not count — a model sometimes writes such an answer into its hidden reasoning, or it reads like running commentary), the bot asks the agent once to send it, and every agent is told to answer such messages through the bot's send tool. In a view with answers your message is a request, which has its own reminder | [Messages you send while the agent works](docs/backends.md#messages-you-send-while-the-agent-works) |
104
105
  | 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) |
105
106
  | 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) |
106
107
  | 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) |
@@ -25,8 +25,8 @@ conversations, Claude Code and OpenCode. The operator's own sessions outside the
25
25
 
26
26
  ## Rules for a skill here
27
27
 
28
- - Folder name = frontmatter `name` = `charness-<role>`. OpenCode has no namespaces: a skill named like a
29
- project's or user's own one (`manager`) would replace it there.
28
+ - Folder name = frontmatter `name` = `charness-<role>`. OpenCode has no namespaces: a skill named like one of the
29
+ project's or the user's own would replace it there.
30
30
  - **Policy belongs to the general skills, the bot's mechanics to these.** A manager or delegate skill of the
31
31
  project or the user owns the delivery policy (the loop, review, parallel work, the queue, finishing, the model and
32
32
  effort per role); the skills here own only how the bot launches, detaches, watches and wakes, which account to take,
@@ -44,8 +44,9 @@ conversations, Claude Code and OpenCode. The operator's own sessions outside the
44
44
  - The watch recipe in `charness-orchestration` is the `workerWatchCheckCommand` constant of
45
45
  `src/scheduler/workerWatch.ts` verbatim, with its cron and its status arguments (the bot posts the
46
46
  topic's status line; a unit test holds them equal), and every bot tool a skill names must exist on the bot's MCP surface.
47
- - Written for this public repository: no real ids, paths or names. The shared rules repository keeps its own
48
- `manager`; a change wanted in both is ported by hand — into `charness-delivery-loop` for the loop, into
49
- `charness-orchestration` for a bot mechanic.
47
+ - Written for this public repository: no real ids, paths or names, and no knowledge of any one operator's own skills,
48
+ rules or folder layout — the plugin serves users who have none. Name a project's skills only by their role (a
49
+ manager skill, a delegate skill), never by a name; a delivery-loop change goes into `charness-delivery-loop`, a bot
50
+ mechanic into `charness-orchestration`.
50
51
  - Shipped in the npm package (`files`); a commit that touches only this folder still counts as a release change.
51
52
  A Claude session reads a new version at its next start, OpenCode when it next creates the folder's instance.
@@ -42,7 +42,10 @@ echo $! > "<run-dir>/pid"
42
42
  does not (the launcher handed over to a new process), take the newest match,
43
43
  `pgrep -n -f "opencode.* run .*--title <scope>"` (a launcher may run the binary as a child: two matches), and
44
44
  write that one PID into the pid file — the watch fires "worker exited" at once on a PID that is not the worker.
45
- 4. Record the session id — the top-level `sessionID` of the first JSON event in `events.jsonl` — with the
45
+ 4. About a minute after the launch read `events.jsonl`: an `error` event there (a provider's usage limit, a refused
46
+ model) means the worker never started — do not arm the watch; relaunch on another model. An empty log proves
47
+ nothing yet.
48
+ 5. Record the session id — the top-level `sessionID` of the first JSON event in `events.jsonl` — with the
46
49
  checkout and run directory in the plan, then arm the watch check from `charness-orchestration` with this PID and
47
50
  run directory.
48
51
 
@@ -12,9 +12,9 @@ check, accounts, reaching the user) are in `charness-orchestration`; this skill
12
12
  ## Modes
13
13
 
14
14
  - **autonomous** — the default for a scheduled or unattended run, or when the user says so. Drive a READY plan
15
- (no draft marker, no open questions); ask nothing; decide from the plan and the project rules; stop and report
15
+ (not marked a draft, no open questions); ask nothing; decide from the plan and the project rules; stop and report
16
16
  what you cannot resolve. Without a named plan pick one ready plan that a worker can finish alone (the oldest by
17
- its file date); none → say "nothing to do" and stop.
17
+ its first commit); none → say "nothing to do" and stop.
18
18
  - **interactive** — the user is talking to you. Answer their question first, decide every point yourself and list
19
19
  the decisions for them to correct, ask only about a fork you could not resolve.
20
20
 
@@ -35,21 +35,21 @@ check, accounts, reaching the user) are in `charness-orchestration`; this skill
35
35
  ask in the queue counts, even when the project ships one release a day — gets its own git worktree and branch, named
36
36
  in its brief; the builder commits only there. A lone task, or the scopes of ONE plan or task, works on the current
37
37
  checkout. Two tasks touching the same file queue.
38
- - Serialize what shares state: builds, test runs (devices, ports, e2e lanes — through their locks) and commits
38
+ - Serialize what shares state: builds, test runs on a shared device, port or test environment (one at a time) and commits
39
39
  (one at a time, path-limited). Two workers never share a file, a port, a browser profile or a device at once.
40
40
  - Every new ask joins the queue the moment it is said; start it at once when nothing it needs is taken, else tell
41
41
  the user its place. A long run never holds the queue: while a worker waits on a long run (a full suite, a remote
42
- job, a busy lane), start the next independent task — in its own worktree when it is released separately.
42
+ job, a busy device or test environment), start the next independent task — in its own worktree when it is released separately.
43
43
 
44
44
  ## Briefing
45
45
 
46
46
  - Brief for a ready plan: its path, "implement it yourself, spawn no sub-agents", and — when several scopes go to
47
- one builder — "your scopes are one batch: test each pointwise (unit tests and only its own new or changed e2e
48
- flows), the full suites run once at the finish".
47
+ one builder — "your scopes are one batch: test each scope with its own tests, the full suites run once at the
48
+ finish".
49
49
  - Brief without a plan: like a colleague who just walked in — the goal, file paths, what to change and why. Never
50
50
  "based on your findings, implement it".
51
51
  - Name the skills the worker must load, never their content, and never restate project rules.
52
- - Role skills such as `developer`, `task-review`, `review`, `commit`: name them when the project offers them.
52
+ - Role skills the project offers for building, reviewing and committing: name them when it has them.
53
53
  Otherwise state the role in words — builder: implement, test, self-review, commit each scope, no push;
54
54
  reviewer: read the commit range against the plan or the user's asks and report findings, change nothing.
55
55
  - Reuse the warm session: rework, the next small scope, or the next role on the same task resumes the SAME worker
@@ -60,7 +60,7 @@ check, accounts, reaching the user) are in `charness-orchestration`; this skill
60
60
  1. **Build.** One builder for the whole plan (or a group of small scopes); it commits each scope as it is green.
61
61
  A large or risky scope, or an independent part running in parallel, may get a builder of its own.
62
62
  2. **Bookkeeping.** A finished scope flips its `[x]`; the commit that flips the plan's last box also moves the
63
- plan file to `completed/`.
63
+ plan file to where the project keeps finished plans (or marks the plan done when it has no such place).
64
64
  3. **Finish — only when the whole task is done, never per scope:**
65
65
  1. A fresh reviewer reviews ALL the task's commits once. Its brief: the plan path or the user's asks nearly
66
66
  verbatim, the commit range, and the absolute path of its report file outside the worktree (e.g. its run
@@ -89,4 +89,4 @@ check, accounts, reaching the user) are in `charness-orchestration`; this skill
89
89
  ## Finally
90
90
 
91
91
  Confirm from the reports that every changed file is listed, verification passed, the reviews are clean and the
92
- plan is archived. Blocked or incomplete → leave the plan as it is for inspection. Report one line of outcome.
92
+ plan is archived or marked done. Blocked or incomplete → leave the plan as it is for inspection. Report one line of outcome.
@@ -80,7 +80,7 @@ kill -0 <pid> 2>/dev/null || { echo "worker <pid> exited"; exit 1; }; [ -n "$(fi
80
80
  ## Accounts and usage limits
81
81
 
82
82
  - Before EVERY Claude worker launch or resume — and before launching any NEW worker by its `role`, whose answer may name OpenCode —
83
- call `claude_profiles`: a new worker with its `role` when nothing you follow names its model, else with the model; a resume always
83
+ call `claude_profiles` (with `model` OR `role`, never both: the tool refuses the pair): a new worker with its `role` when nothing you follow names its model, else with the model; a resume always
84
84
  with the model it ran on, plus `currentProfile` (the
85
85
  profile name recorded at launch) and `lastRunEndedAt` (the last write of its log, an ISO instant) — and start the worker with
86
86
  `CLAUDE_CONFIG_DIR=<configDir>` of `recommended`, on a resume of `resume.profile` (nothing when the `configDir` is null; without
@@ -105,7 +105,7 @@ kill -0 <pid> 2>/dev/null || { echo "worker <pid> exited"; exit 1; }; [ -n "$(fi
105
105
  - An `[Accounts …]` note (at a wake, in a send tool's result, during a turn) says where the limits stand: plan your next launch on it
106
106
  and call `claude_profiles` right before it. No reply is needed; a worker that is running stays where it is.
107
107
  - A role the user allowed on both CLIs: start it where the limit resets sooner and still has room.
108
- - A worker that only waits for a shared lane is not kept running: resume it when the lane frees.
108
+ - A worker that only waits for a shared device or test environment is not kept running: resume it when it frees.
109
109
  - Your own usage limit is the bot's business: it waits or switches and then wakes you.
110
110
 
111
111
  ## Talking to the user
@@ -117,6 +117,10 @@ kill -0 <pid> 2>/dev/null || { echo "worker <pid> exited"; exit 1; }; [ -n "$(fi
117
117
  - A message headed `[Request <id> · from: …]` is answered through `answer_request` (`progress`, `question`,
118
118
  `final`); do not repeat its text as plain text afterwards. A header that says to answer only when you have a result
119
119
  (a scheduled run) may be left unanswered: with nothing to report, end the turn silently.
120
+ - A user message with no `[Request …]` header that arrives while you are working (mid-turn) → answer it through
121
+ `send_messages_to_user` (a message that needs no reply too: acknowledge it briefly); if the same step asks a native
122
+ question, repeat the answer briefly in its text. A plain-text answer mid-turn can be lost: the model may write it into a
123
+ hidden reasoning block.
120
124
  - The passing-run video of a new e2e test → `send_file_to_user` (H.264 `.mp4`, sent as a video). Several
121
125
  separate items, e.g. one per finished scope → `send_messages_to_user`.
122
126
  - Work the user wants later → `schedule_create` with `onceAt` and a prompt that stands on its own.
@@ -9,7 +9,7 @@ import type { SessionKey } from '../sessionKey';
9
9
  * usage-limit handling, and the teardown of request-side state.
10
10
  */
11
11
  /** Every event an agent adapter emits (`createAdapter.ts` wires each). */
12
- export declare const adapterEventNames: readonly ["output", "status", "question", "thinking", "toolResult", "subagentStatus", "apiError", "noResponse", "questionGone", "closed", "started", "stopped", "suspended", "turnEnded", "contextCompacted", "conversationLost", "error"];
12
+ export declare const adapterEventNames: readonly ["output", "status", "question", "thinking", "toolResult", "subagentStatus", "apiError", "noResponse", "questionGone", "closed", "started", "stopped", "suspended", "turnEnded", "midTurnAnswerMissing", "contextCompacted", "conversationLost", "error"];
13
13
  export type AdapterEventName = (typeof adapterEventNames)[number];
14
14
  /**
15
15
  * @name ForeignKeyEventRoute
@@ -34,6 +34,7 @@ export declare const foreignKeyEventRoutes: {
34
34
  readonly stopped: "requestSide";
35
35
  readonly suspended: "requestSide";
36
36
  readonly turnEnded: "all";
37
+ readonly midTurnAnswerMissing: "none";
37
38
  readonly contextCompacted: "all";
38
39
  readonly conversationLost: "requestSide";
39
40
  readonly started: "requestSide";
@@ -1 +1 @@
1
- {"version":3,"file":"adapterEventRouting.d.ts","sourceRoot":"","sources":["../../src/adapters/adapterEventRouting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD;;;;;;;;GAQG;AAEH,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,4OAkBpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;CA4B2C,CAAC;AAE9E,8EAA8E;AAC9E,KAAK,oBAAoB,GAAG;KACzB,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,GAAG,CAAC,GAAG,KAAK;CAC7F,CAAC,gBAAgB,CAAC,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,gBAAgB,EAC7D,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,MAAM,IAAI,EAGjB,GAAG,aAAa,EAAE,CAAC,SAAS,oBAAoB,GAAG,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,GAClF,IAAI,CAIN"}
1
+ {"version":3,"file":"adapterEventRouting.d.ts","sourceRoot":"","sources":["../../src/adapters/adapterEventRouting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD;;;;;;;;GAQG;AAEH,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,oQAmBpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,aAAa,GAAG,KAAK,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;CA8B2C,CAAC;AAE9E,8EAA8E;AAC9E,KAAK,oBAAoB,GAAG;KACzB,CAAC,IAAI,gBAAgB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,GAAG,CAAC,GAAG,KAAK;CAC7F,CAAC,gBAAgB,CAAC,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,gBAAgB,EAC7D,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,MAAM,IAAI,EAGjB,GAAG,aAAa,EAAE,CAAC,SAAS,oBAAoB,GAAG,CAAC,aAAa,EAAE,MAAM,IAAI,CAAC,GAAG,EAAE,GAClF,IAAI,CAIN"}
@@ -28,6 +28,7 @@ exports.adapterEventNames = [
28
28
  'stopped',
29
29
  'suspended',
30
30
  'turnEnded',
31
+ 'midTurnAnswerMissing',
31
32
  'contextCompacted',
32
33
  'conversationLost',
33
34
  'error',
@@ -52,6 +53,8 @@ exports.foreignKeyEventRoutes = {
52
53
  suspended: 'requestSide',
53
54
  // The per-turn stop (L5) applies to an issue's conversation as to a topic's; the handler posts nothing.
54
55
  turnEnded: 'all',
56
+ // A tracker's requester sees only `answer_request`, whose silent turns the wake-ups already re-prod: the reminder is a topic's.
57
+ midTurnAnswerMissing: 'none',
55
58
  // A completed compaction resets what the conversation was told: its connector sends the whole issue next (C6).
56
59
  contextCompacted: 'all',
57
60
  // A live re-spawn began a new conversation where one was lost: a connector that tracks what it told starts over (C6); only a topic gets the notice.
@@ -1 +1 @@
1
- {"version":3,"file":"adapterEventRouting.js","sourceRoot":"","sources":["../../src/adapters/adapterEventRouting.ts"],"names":[],"mappings":";;;AAqFA,oDAWC;AA/FD,4EAA4E;AAE5E;;;;;;;;GAQG;AAEH,0EAA0E;AAC7D,QAAA,iBAAiB,GAAG;IAC/B,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,UAAU;IACV,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;IACX,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,OAAO;CACC,CAAC;AAcE,QAAA,qBAAqB,GAAG;IACnC,0FAA0F;IAC1F,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,cAAc,EAAE,MAAM;IACtB,oEAAoE;IACpE,QAAQ,EAAE,KAAK;IACf,yDAAyD;IACzD,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,MAAM;IACpB,8EAA8E;IAC9E,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,aAAa;IACtB,2HAA2H;IAC3H,SAAS,EAAE,aAAa;IACxB,wGAAwG;IACxG,SAAS,EAAE,KAAK;IAChB,+GAA+G;IAC/G,gBAAgB,EAAE,KAAK;IACvB,oJAAoJ;IACpJ,gBAAgB,EAAE,aAAa;IAC/B,mIAAmI;IACnI,OAAO,EAAE,aAAa;IACtB,2CAA2C;IAC3C,KAAK,EAAE,aAAa;CACuD,CAAC;AAO9E;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,GAAe,EACf,SAAY,EACZ,KAAiB;AACjB,8EAA8E;AAC9E,4EAA4E;AAC5E,GAAG,aAAgF;IAEnF,MAAM,KAAK,GAAyB,IAAA,oCAAkB,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,6BAAqB,CAAC,SAAS,CAAC,CAAC;IACvG,IAAI,KAAK,KAAK,KAAK;QAAE,KAAK,EAAE,CAAC;SACxB,IAAI,KAAK,KAAK,aAAa;QAAE,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;AACzD,CAAC"}
1
+ {"version":3,"file":"adapterEventRouting.js","sourceRoot":"","sources":["../../src/adapters/adapterEventRouting.ts"],"names":[],"mappings":";;;AAwFA,oDAWC;AAlGD,4EAA4E;AAE5E;;;;;;;;GAQG;AAEH,0EAA0E;AAC7D,QAAA,iBAAiB,GAAG;IAC/B,QAAQ;IACR,QAAQ;IACR,UAAU;IACV,UAAU;IACV,YAAY;IACZ,gBAAgB;IAChB,UAAU;IACV,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,SAAS;IACT,SAAS;IACT,WAAW;IACX,WAAW;IACX,sBAAsB;IACtB,kBAAkB;IAClB,kBAAkB;IAClB,OAAO;CACC,CAAC;AAcE,QAAA,qBAAqB,GAAG;IACnC,0FAA0F;IAC1F,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,MAAM;IAClB,cAAc,EAAE,MAAM;IACtB,oEAAoE;IACpE,QAAQ,EAAE,KAAK;IACf,yDAAyD;IACzD,UAAU,EAAE,KAAK;IACjB,YAAY,EAAE,MAAM;IACpB,8EAA8E;IAC9E,MAAM,EAAE,aAAa;IACrB,OAAO,E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G,IAAI,GAC9B,OAAO,CAAC,aAAa,CAAC;IAezB;;;;;;;;;;;;;;;;;;OAkBG;IACG,aAAa,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAsGvH;;;;;;;;;;;;;;OAcG;IACG,wBAAwB,IAAI,OAAO,CAAC,KAAK,CAAC;QAAE,GAAG,EAAE,UAAU,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAY1F;;;;;;;;;;;;;;;;;OAiBG;IACG,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAQ3E;;;;;;;;;;;;;OAaG;IACG,wBAAwB,CAC5B,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,OAAO,CAAC;IAoFnB;;;;;;OAMG;IACG,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/D,MAAM,CAAC,oBAAoB,8BAAwB;IACnD,MAAM,CAAC,oBAAoB,8BAAwB;YAErC,iBAAiB;YAKjB,UAAU;IA0axB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,mBAAmB;IAwB3B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,mBAAmB;IAiE3B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;CAS7B"}
@@ -131,6 +131,7 @@ const claudeSubagentTail_1 = require("../utils/claudeSubagentTail");
131
131
  const recentRelayWindow_1 = require("../utils/recentRelayWindow");
132
132
  const claudeChunkClassifier_1 = require("../utils/claudeChunkClassifier");
133
133
  const claudeRelayRouting_1 = require("../utils/claudeRelayRouting");
134
+ const dataDirFs_1 = require("../dataDirFs");
134
135
  /**
135
136
  * @description Hard cap on resume flood-suppression polls. The normal exit is
136
137
  * "pane non-empty and unchanged across 2 consecutive polls" (the restored
@@ -210,10 +211,10 @@ function loadEffortPrefs() {
210
211
  }
211
212
  catch (e) {
212
213
  console.error(`[Claude] loadEffortPrefs failed:`, e instanceof Error ? e.message : e);
213
- if (fs.existsSync(effortPrefsFile)) {
214
+ if (fs.existsSync(effortPrefsFile) && (0, dataDirFs_1.checkMayWriteAt)(effortPrefsFile)) {
214
215
  const ts = new Date().toISOString().replace(/[:.]/g, '-');
215
216
  try {
216
- fs.renameSync(effortPrefsFile, `${effortPrefsFile}.corrupted-${ts}`);
217
+ dataDirFs_1.dataDirFs.renameSync(effortPrefsFile, `${effortPrefsFile}.corrupted-${ts}`);
217
218
  }
218
219
  catch (re) {
219
220
  console.warn(`[Claude] archive of corrupt effort prefs failed:`, re);
@@ -226,7 +227,9 @@ function saveEffortPref(key, level) {
226
227
  try {
227
228
  const data = loadEffortPrefs();
228
229
  data[(0, sessionKey_1.keyToString)(key)] = level;
229
- fs.writeFileSync(effortPrefsFile, JSON.stringify(data, null, 2));
230
+ if (!(0, dataDirFs_1.checkMayWriteAt)(effortPrefsFile))
231
+ return;
232
+ dataDirFs_1.dataDirFs.writeFileSync(effortPrefsFile, JSON.stringify(data, null, 2));
230
233
  }
231
234
  catch (e) {
232
235
  console.error(`[Claude] saveEffortPref failed:`, e instanceof Error ? e.message : e);
@@ -239,7 +242,9 @@ function clearEffortPref(key) {
239
242
  if (!((0, sessionKey_1.keyToString)(key) in data))
240
243
  return;
241
244
  delete data[(0, sessionKey_1.keyToString)(key)];
242
- fs.writeFileSync(effortPrefsFile, JSON.stringify(data, null, 2));
245
+ if (!(0, dataDirFs_1.checkMayWriteAt)(effortPrefsFile))
246
+ return;
247
+ dataDirFs_1.dataDirFs.writeFileSync(effortPrefsFile, JSON.stringify(data, null, 2));
243
248
  }
244
249
  catch (e) {
245
250
  console.error(`[Claude] clearEffortPref failed:`, e instanceof Error ? e.message : e);
@@ -2914,7 +2919,7 @@ class ClaudeCliAdapter extends events_1.EventEmitter {
2914
2919
  // The bot's own secrets never reach claude, whoever started the tmux server; a non-default account
2915
2920
  // profile adds `env CLAUDE_CONFIG_DIR=<dir>` (the pane's shell runs it, so a child claude the agent
2916
2921
  // starts inherits the same account).
2917
- 'env', ...(0, agentEnvironment_1.getBotSecretUnsetArguments)(),
2922
+ 'env', ...(0, agentEnvironment_1.getBotOnlyUnsetArguments)(),
2918
2923
  ...buildConfigDirEnvPrefix(configDir),
2919
2924
  claudePath,
2920
2925
  // Followed by an option on purpose: `--disallowedTools` takes several values.
@@ -3569,7 +3574,7 @@ class ClaudeCliAdapter extends events_1.EventEmitter {
3569
3574
  const configDir = this.resolveConfigDir(key);
3570
3575
  const claudeArgv = [
3571
3576
  // As `startSession`: the bot's own secrets never reach claude.
3572
- 'env', ...(0, agentEnvironment_1.getBotSecretUnsetArguments)(),
3577
+ 'env', ...(0, agentEnvironment_1.getBotOnlyUnsetArguments)(),
3573
3578
  ...buildConfigDirEnvPrefix(configDir),
3574
3579
  claudePath,
3575
3580
  // Followed by an option on purpose: `--disallowedTools` takes several values.