charness 3.10.0 → 3.12.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 (477) hide show
  1. package/CHANGELOG.md +171 -0
  2. package/DEVELOPMENT.md +3 -3
  3. package/README.md +3 -2
  4. package/SETUP.md +6 -5
  5. package/agent-plugin/README.md +15 -6
  6. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +23 -13
  7. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +10 -6
  8. package/agent-plugin/skills/charness-delivery-loop/SKILL.md +92 -0
  9. package/agent-plugin/skills/charness-orchestration/SKILL.md +116 -0
  10. package/dist/adapters/openCodeAdapter.d.ts +15 -0
  11. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  12. package/dist/adapters/openCodeAdapter.js +48 -4
  13. package/dist/adapters/openCodeAdapter.js.map +1 -1
  14. package/dist/agentLogin/agentLogin.d.ts +11 -0
  15. package/dist/agentLogin/agentLogin.d.ts.map +1 -1
  16. package/dist/agentLogin/agentLogin.js +18 -6
  17. package/dist/agentLogin/agentLogin.js.map +1 -1
  18. package/dist/apiErrorRetry.d.ts +5 -0
  19. package/dist/apiErrorRetry.d.ts.map +1 -1
  20. package/dist/apiErrorRetry.js +3 -3
  21. package/dist/apiErrorRetry.js.map +1 -1
  22. package/dist/bot.d.ts.map +1 -1
  23. package/dist/bot.js +331 -152
  24. package/dist/bot.js.map +1 -1
  25. package/dist/cli/claudeProfiles.d.ts +5 -2
  26. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  27. package/dist/cli/claudeProfiles.js +43 -20
  28. package/dist/cli/claudeProfiles.js.map +1 -1
  29. package/dist/cli/claudeProfilesCredit.d.ts +49 -0
  30. package/dist/cli/claudeProfilesCredit.d.ts.map +1 -0
  31. package/dist/cli/claudeProfilesCredit.js +160 -0
  32. package/dist/cli/claudeProfilesCredit.js.map +1 -0
  33. package/dist/cli/flagValue.d.ts +10 -0
  34. package/dist/cli/flagValue.d.ts.map +1 -0
  35. package/dist/cli/flagValue.js +17 -0
  36. package/dist/cli/flagValue.js.map +1 -0
  37. package/dist/connectors/telegram/commands/botCore.d.ts +1 -0
  38. package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
  39. package/dist/connectors/telegram/commands/botSkills.js +1 -1
  40. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -1
  41. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  42. package/dist/connectors/telegram/commands/claudeAccounts.js +12 -9
  43. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  44. package/dist/connectors/telegram/commands/compaction.d.ts +11 -0
  45. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  46. package/dist/connectors/telegram/commands/compaction.js +208 -22
  47. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  48. package/dist/connectors/telegram/commands/runners.d.ts +5 -1
  49. package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
  50. package/dist/connectors/telegram/commands/runners.js +151 -30
  51. package/dist/connectors/telegram/commands/runners.js.map +1 -1
  52. package/dist/connectors/telegram/foldedMessage.d.ts +24 -0
  53. package/dist/connectors/telegram/foldedMessage.d.ts.map +1 -0
  54. package/dist/connectors/telegram/foldedMessage.js +39 -0
  55. package/dist/connectors/telegram/foldedMessage.js.map +1 -0
  56. package/dist/connectors/telegram/inbound.d.ts +24 -1
  57. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  58. package/dist/connectors/telegram/inbound.js +77 -1
  59. package/dist/connectors/telegram/inbound.js.map +1 -1
  60. package/dist/connectors/telegram/renderAgentHtml.d.ts +15 -0
  61. package/dist/connectors/telegram/renderAgentHtml.d.ts.map +1 -1
  62. package/dist/connectors/telegram/renderAgentHtml.js +11 -1
  63. package/dist/connectors/telegram/renderAgentHtml.js.map +1 -1
  64. package/dist/connectors/telegram/runnerPairingMessages.d.ts +2 -7
  65. package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
  66. package/dist/connectors/telegram/runnerPairingMessages.js +5 -19
  67. package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
  68. package/dist/connectors/telegram/unpinMessages.d.ts +12 -0
  69. package/dist/connectors/telegram/unpinMessages.d.ts.map +1 -0
  70. package/dist/connectors/telegram/unpinMessages.js +44 -0
  71. package/dist/connectors/telegram/unpinMessages.js.map +1 -0
  72. package/dist/i18n/de.d.ts.map +1 -1
  73. package/dist/i18n/de.js +63 -11
  74. package/dist/i18n/de.js.map +1 -1
  75. package/dist/i18n/en.d.ts.map +1 -1
  76. package/dist/i18n/en.js +63 -11
  77. package/dist/i18n/en.js.map +1 -1
  78. package/dist/i18n/es.d.ts.map +1 -1
  79. package/dist/i18n/es.js +63 -11
  80. package/dist/i18n/es.js.map +1 -1
  81. package/dist/i18n/fr.d.ts.map +1 -1
  82. package/dist/i18n/fr.js +63 -11
  83. package/dist/i18n/fr.js.map +1 -1
  84. package/dist/i18n/hi.d.ts.map +1 -1
  85. package/dist/i18n/hi.js +63 -11
  86. package/dist/i18n/hi.js.map +1 -1
  87. package/dist/i18n/ja.d.ts.map +1 -1
  88. package/dist/i18n/ja.js +63 -11
  89. package/dist/i18n/ja.js.map +1 -1
  90. package/dist/i18n/ka.d.ts.map +1 -1
  91. package/dist/i18n/ka.js +63 -11
  92. package/dist/i18n/ka.js.map +1 -1
  93. package/dist/i18n/pt.d.ts.map +1 -1
  94. package/dist/i18n/pt.js +63 -11
  95. package/dist/i18n/pt.js.map +1 -1
  96. package/dist/i18n/ru.d.ts.map +1 -1
  97. package/dist/i18n/ru.js +63 -11
  98. package/dist/i18n/ru.js.map +1 -1
  99. package/dist/i18n/uk.d.ts.map +1 -1
  100. package/dist/i18n/uk.js +63 -11
  101. package/dist/i18n/uk.js.map +1 -1
  102. package/dist/i18n/uz.d.ts.map +1 -1
  103. package/dist/i18n/uz.js +63 -11
  104. package/dist/i18n/uz.js.map +1 -1
  105. package/dist/i18n/zh.d.ts.map +1 -1
  106. package/dist/i18n/zh.js +63 -11
  107. package/dist/i18n/zh.js.map +1 -1
  108. package/dist/installManager.d.ts.map +1 -1
  109. package/dist/installManager.js +3 -0
  110. package/dist/installManager.js.map +1 -1
  111. package/dist/instanceLock.d.ts.map +1 -1
  112. package/dist/instanceLock.js +2 -1
  113. package/dist/instanceLock.js.map +1 -1
  114. package/dist/outputTrace.d.ts +6 -0
  115. package/dist/outputTrace.d.ts.map +1 -1
  116. package/dist/outputTrace.js +13 -0
  117. package/dist/outputTrace.js.map +1 -1
  118. package/dist/platform/outbound.d.ts +14 -1
  119. package/dist/platform/outbound.d.ts.map +1 -1
  120. package/dist/platform/outbound.js.map +1 -1
  121. package/dist/remoteRun/cleanReport.d.ts +45 -0
  122. package/dist/remoteRun/cleanReport.d.ts.map +1 -0
  123. package/dist/remoteRun/cleanReport.js +84 -0
  124. package/dist/remoteRun/cleanReport.js.map +1 -0
  125. package/dist/remoteRun/cliArgs.d.ts +18 -0
  126. package/dist/remoteRun/cliArgs.d.ts.map +1 -1
  127. package/dist/remoteRun/cliArgs.js +100 -4
  128. package/dist/remoteRun/cliArgs.js.map +1 -1
  129. package/dist/remoteRun/commands.d.ts +30 -1
  130. package/dist/remoteRun/commands.d.ts.map +1 -1
  131. package/dist/remoteRun/commands.js +84 -9
  132. package/dist/remoteRun/commands.js.map +1 -1
  133. package/dist/remoteRun/exitCodes.d.ts +5 -0
  134. package/dist/remoteRun/exitCodes.d.ts.map +1 -1
  135. package/dist/remoteRun/exitCodes.js +6 -1
  136. package/dist/remoteRun/exitCodes.js.map +1 -1
  137. package/dist/remoteRun/foreground.d.ts +6 -0
  138. package/dist/remoteRun/foreground.d.ts.map +1 -1
  139. package/dist/remoteRun/foreground.js +13 -1
  140. package/dist/remoteRun/foreground.js.map +1 -1
  141. package/dist/remoteRun/interrupts.d.ts.map +1 -1
  142. package/dist/remoteRun/interrupts.js +2 -2
  143. package/dist/remoteRun/interrupts.js.map +1 -1
  144. package/dist/remoteRun/jobFiles.d.ts +6 -1
  145. package/dist/remoteRun/jobFiles.d.ts.map +1 -1
  146. package/dist/remoteRun/jobFiles.js +14 -0
  147. package/dist/remoteRun/jobFiles.js.map +1 -1
  148. package/dist/remoteRun/jobId.d.ts +5 -0
  149. package/dist/remoteRun/jobId.d.ts.map +1 -1
  150. package/dist/remoteRun/jobId.js +10 -0
  151. package/dist/remoteRun/jobId.js.map +1 -1
  152. package/dist/remoteRun/jobState.d.ts.map +1 -1
  153. package/dist/remoteRun/jobState.js +3 -2
  154. package/dist/remoteRun/jobState.js.map +1 -1
  155. package/dist/remoteRun/pairedRunners.d.ts +1 -1
  156. package/dist/remoteRun/pairedRunners.d.ts.map +1 -1
  157. package/dist/remoteRun/pairedRunners.js +4 -0
  158. package/dist/remoteRun/pairedRunners.js.map +1 -1
  159. package/dist/remoteRun/pathPatterns.d.ts +1 -1
  160. package/dist/remoteRun/pathPatterns.js +1 -1
  161. package/dist/remoteRun/probe.d.ts +58 -5
  162. package/dist/remoteRun/probe.d.ts.map +1 -1
  163. package/dist/remoteRun/probe.js +107 -11
  164. package/dist/remoteRun/probe.js.map +1 -1
  165. package/dist/remoteRun/probeTiming.d.ts +15 -0
  166. package/dist/remoteRun/probeTiming.d.ts.map +1 -0
  167. package/dist/remoteRun/probeTiming.js +23 -0
  168. package/dist/remoteRun/probeTiming.js.map +1 -0
  169. package/dist/remoteRun/project.d.ts +5 -0
  170. package/dist/remoteRun/project.d.ts.map +1 -1
  171. package/dist/remoteRun/project.js +10 -0
  172. package/dist/remoteRun/project.js.map +1 -1
  173. package/dist/remoteRun/projectConfig.d.ts +8 -1
  174. package/dist/remoteRun/projectConfig.d.ts.map +1 -1
  175. package/dist/remoteRun/projectConfig.js +18 -5
  176. package/dist/remoteRun/projectConfig.js.map +1 -1
  177. package/dist/remoteRun/pruneReport.d.ts +48 -0
  178. package/dist/remoteRun/pruneReport.d.ts.map +1 -0
  179. package/dist/remoteRun/pruneReport.js +80 -0
  180. package/dist/remoteRun/pruneReport.js.map +1 -0
  181. package/dist/remoteRun/remoteRunCli.d.ts +1 -1
  182. package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
  183. package/dist/remoteRun/remoteRunCli.js +20 -0
  184. package/dist/remoteRun/remoteRunCli.js.map +1 -1
  185. package/dist/remoteRun/runnerClient.d.ts +10 -0
  186. package/dist/remoteRun/runnerClient.d.ts.map +1 -1
  187. package/dist/remoteRun/runnerClient.js +19 -5
  188. package/dist/remoteRun/runnerClient.js.map +1 -1
  189. package/dist/remoteRun/runnerWait.d.ts.map +1 -1
  190. package/dist/remoteRun/runnerWait.js +2 -1
  191. package/dist/remoteRun/runnerWait.js.map +1 -1
  192. package/dist/remoteRun/runners.d.ts +48 -7
  193. package/dist/remoteRun/runners.d.ts.map +1 -1
  194. package/dist/remoteRun/runners.js +105 -40
  195. package/dist/remoteRun/runners.js.map +1 -1
  196. package/dist/remoteRun/runnersConfig.d.ts +24 -0
  197. package/dist/remoteRun/runnersConfig.d.ts.map +1 -1
  198. package/dist/remoteRun/runnersConfig.js +29 -2
  199. package/dist/remoteRun/runnersConfig.js.map +1 -1
  200. package/dist/remoteRun/ssh.d.ts +3 -3
  201. package/dist/remoteRun/ssh.d.ts.map +1 -1
  202. package/dist/remoteRun/ssh.js +19 -5
  203. package/dist/remoteRun/ssh.js.map +1 -1
  204. package/dist/remoteRun/submit.d.ts +1 -1
  205. package/dist/remoteRun/submit.d.ts.map +1 -1
  206. package/dist/remoteRun/submit.js +30 -2
  207. package/dist/remoteRun/submit.js.map +1 -1
  208. package/dist/runnerUtility/adminService.d.ts.map +1 -1
  209. package/dist/runnerUtility/adminService.js +5 -5
  210. package/dist/runnerUtility/adminService.js.map +1 -1
  211. package/dist/runnerUtility/appInstall.d.ts +9 -0
  212. package/dist/runnerUtility/appInstall.d.ts.map +1 -1
  213. package/dist/runnerUtility/appInstall.js +12 -2
  214. package/dist/runnerUtility/appInstall.js.map +1 -1
  215. package/dist/runnerUtility/execEnv.d.ts +1 -1
  216. package/dist/runnerUtility/execEnv.d.ts.map +1 -1
  217. package/dist/runnerUtility/execEnv.js +23 -5
  218. package/dist/runnerUtility/execEnv.js.map +1 -1
  219. package/dist/runnerUtility/guiAgentHeal.d.ts +3 -3
  220. package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
  221. package/dist/runnerUtility/guiAgentHeal.js +6 -4
  222. package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
  223. package/dist/runnerUtility/homeFolders.d.ts +1 -0
  224. package/dist/runnerUtility/homeFolders.d.ts.map +1 -1
  225. package/dist/runnerUtility/homeFolders.js +2 -1
  226. package/dist/runnerUtility/homeFolders.js.map +1 -1
  227. package/dist/runnerUtility/iosCheck.d.ts +2 -0
  228. package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
  229. package/dist/runnerUtility/iosCheck.js +12 -3
  230. package/dist/runnerUtility/iosCheck.js.map +1 -1
  231. package/dist/runnerUtility/isolatedCommand.d.ts +0 -2
  232. package/dist/runnerUtility/isolatedCommand.d.ts.map +1 -1
  233. package/dist/runnerUtility/isolatedCommand.js +4 -11
  234. package/dist/runnerUtility/isolatedCommand.js.map +1 -1
  235. package/dist/runnerUtility/keepAwake.d.ts +47 -10
  236. package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
  237. package/dist/runnerUtility/keepAwake.js +108 -31
  238. package/dist/runnerUtility/keepAwake.js.map +1 -1
  239. package/dist/runnerUtility/launcher.d.ts +4 -0
  240. package/dist/runnerUtility/launcher.d.ts.map +1 -1
  241. package/dist/runnerUtility/launcher.js +31 -13
  242. package/dist/runnerUtility/launcher.js.map +1 -1
  243. package/dist/runnerUtility/linkLoop.d.ts +4 -0
  244. package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
  245. package/dist/runnerUtility/linkLoop.js +15 -6
  246. package/dist/runnerUtility/linkLoop.js.map +1 -1
  247. package/dist/runnerUtility/managedNode.d.ts +84 -0
  248. package/dist/runnerUtility/managedNode.d.ts.map +1 -0
  249. package/dist/runnerUtility/managedNode.js +165 -0
  250. package/dist/runnerUtility/managedNode.js.map +1 -0
  251. package/dist/runnerUtility/nodeOnPath.d.ts +10 -0
  252. package/dist/runnerUtility/nodeOnPath.d.ts.map +1 -0
  253. package/dist/runnerUtility/nodeOnPath.js +49 -0
  254. package/dist/runnerUtility/nodeOnPath.js.map +1 -0
  255. package/dist/runnerUtility/nodeUpkeep.d.ts +140 -0
  256. package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -0
  257. package/dist/runnerUtility/nodeUpkeep.js +348 -0
  258. package/dist/runnerUtility/nodeUpkeep.js.map +1 -0
  259. package/dist/runnerUtility/nodeUpkeepTiming.d.ts +14 -0
  260. package/dist/runnerUtility/nodeUpkeepTiming.d.ts.map +1 -0
  261. package/dist/runnerUtility/nodeUpkeepTiming.js +21 -0
  262. package/dist/runnerUtility/nodeUpkeepTiming.js.map +1 -0
  263. package/dist/runnerUtility/packageManagerShims.d.ts +10 -0
  264. package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
  265. package/dist/runnerUtility/packageManagerShims.js +67 -3
  266. package/dist/runnerUtility/packageManagerShims.js.map +1 -1
  267. package/dist/runnerUtility/pueueDaemon.d.ts +73 -8
  268. package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
  269. package/dist/runnerUtility/pueueDaemon.js +90 -15
  270. package/dist/runnerUtility/pueueDaemon.js.map +1 -1
  271. package/dist/runnerUtility/runnerCommands.d.ts +7 -1
  272. package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
  273. package/dist/runnerUtility/runnerCommands.js +119 -16
  274. package/dist/runnerUtility/runnerCommands.js.map +1 -1
  275. package/dist/runnerUtility/runnerHome.d.ts +34 -0
  276. package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
  277. package/dist/runnerUtility/runnerHome.js +17 -3
  278. package/dist/runnerUtility/runnerHome.js.map +1 -1
  279. package/dist/runnerUtility/serviceCommon.d.ts +2 -0
  280. package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
  281. package/dist/runnerUtility/serviceCommon.js +3 -1
  282. package/dist/runnerUtility/serviceCommon.js.map +1 -1
  283. package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
  284. package/dist/runnerUtility/serviceManager.js +7 -2
  285. package/dist/runnerUtility/serviceManager.js.map +1 -1
  286. package/dist/runnerUtility/simctlGuard.d.ts +38 -0
  287. package/dist/runnerUtility/simctlGuard.d.ts.map +1 -0
  288. package/dist/runnerUtility/simctlGuard.js +166 -0
  289. package/dist/runnerUtility/simctlGuard.js.map +1 -0
  290. package/dist/runners/bootstrapLine.d.ts +3 -4
  291. package/dist/runners/bootstrapLine.d.ts.map +1 -1
  292. package/dist/runners/bootstrapLine.js +108 -83
  293. package/dist/runners/bootstrapLine.js.map +1 -1
  294. package/dist/runners/hubPackage.d.ts +1 -1
  295. package/dist/runners/hubPackage.d.ts.map +1 -1
  296. package/dist/runners/hubPackage.js +5 -6
  297. package/dist/runners/hubPackage.js.map +1 -1
  298. package/dist/runners/hubPairing.d.ts +19 -0
  299. package/dist/runners/hubPairing.d.ts.map +1 -1
  300. package/dist/runners/hubPairing.js +38 -0
  301. package/dist/runners/hubPairing.js.map +1 -1
  302. package/dist/runners/hubRegistry.d.ts +8 -0
  303. package/dist/runners/hubRegistry.d.ts.map +1 -1
  304. package/dist/runners/hubRegistry.js +6 -0
  305. package/dist/runners/hubRegistry.js.map +1 -1
  306. package/dist/runners/pairCode.d.ts +34 -3
  307. package/dist/runners/pairCode.d.ts.map +1 -1
  308. package/dist/runners/pairCode.js +65 -13
  309. package/dist/runners/pairCode.js.map +1 -1
  310. package/dist/runners/runnerGroups.d.ts +22 -0
  311. package/dist/runners/runnerGroups.d.ts.map +1 -0
  312. package/dist/runners/runnerGroups.js +41 -0
  313. package/dist/runners/runnerGroups.js.map +1 -0
  314. package/dist/runners/runnersCli.d.ts +5 -2
  315. package/dist/runners/runnersCli.d.ts.map +1 -1
  316. package/dist/runners/runnersCli.js +59 -9
  317. package/dist/runners/runnersCli.js.map +1 -1
  318. package/dist/runners/runnersList.d.ts +1 -1
  319. package/dist/runners/runnersList.d.ts.map +1 -1
  320. package/dist/runners/runnersList.js +3 -1
  321. package/dist/runners/runnersList.js.map +1 -1
  322. package/dist/runners/runnersOverview.d.ts.map +1 -1
  323. package/dist/runners/runnersOverview.js +8 -4
  324. package/dist/runners/runnersOverview.js.map +1 -1
  325. package/dist/scheduler/checkRun.d.ts +9 -10
  326. package/dist/scheduler/checkRun.d.ts.map +1 -1
  327. package/dist/scheduler/checkRun.js +8 -16
  328. package/dist/scheduler/checkRun.js.map +1 -1
  329. package/dist/scheduler/checkStatus.d.ts +4 -5
  330. package/dist/scheduler/checkStatus.d.ts.map +1 -1
  331. package/dist/scheduler/checkStatus.js +11 -15
  332. package/dist/scheduler/checkStatus.js.map +1 -1
  333. package/dist/scheduler/delivery.d.ts +80 -37
  334. package/dist/scheduler/delivery.d.ts.map +1 -1
  335. package/dist/scheduler/delivery.js +121 -68
  336. package/dist/scheduler/delivery.js.map +1 -1
  337. package/dist/scheduler/mcpSurface.d.ts +13 -5
  338. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  339. package/dist/scheduler/mcpSurface.js +84 -34
  340. package/dist/scheduler/mcpSurface.js.map +1 -1
  341. package/dist/scheduler/recurrence.d.ts +32 -0
  342. package/dist/scheduler/recurrence.d.ts.map +1 -1
  343. package/dist/scheduler/recurrence.js +56 -18
  344. package/dist/scheduler/recurrence.js.map +1 -1
  345. package/dist/scheduler/scheduleText.d.ts +7 -0
  346. package/dist/scheduler/scheduleText.d.ts.map +1 -0
  347. package/dist/scheduler/scheduleText.js +55 -0
  348. package/dist/scheduler/scheduleText.js.map +1 -0
  349. package/dist/scheduler/store.d.ts +8 -2
  350. package/dist/scheduler/store.d.ts.map +1 -1
  351. package/dist/scheduler/store.js +25 -4
  352. package/dist/scheduler/store.js.map +1 -1
  353. package/dist/scheduler/types.d.ts +4 -10
  354. package/dist/scheduler/types.d.ts.map +1 -1
  355. package/dist/scheduler/workerWatch.d.ts +49 -11
  356. package/dist/scheduler/workerWatch.d.ts.map +1 -1
  357. package/dist/scheduler/workerWatch.js +57 -13
  358. package/dist/scheduler/workerWatch.js.map +1 -1
  359. package/dist/state.d.ts +95 -2
  360. package/dist/state.d.ts.map +1 -1
  361. package/dist/state.js +145 -7
  362. package/dist/state.js.map +1 -1
  363. package/dist/testTimings.d.ts +6 -2
  364. package/dist/testTimings.d.ts.map +1 -1
  365. package/dist/testTimings.js +12 -1
  366. package/dist/testTimings.js.map +1 -1
  367. package/dist/types.d.ts +2 -1
  368. package/dist/types.d.ts.map +1 -1
  369. package/dist/utils/agentPlugin.d.ts +2 -1
  370. package/dist/utils/agentPlugin.d.ts.map +1 -1
  371. package/dist/utils/agentPlugin.js +2 -1
  372. package/dist/utils/agentPlugin.js.map +1 -1
  373. package/dist/utils/botSkills.d.ts +1 -1
  374. package/dist/utils/claudeApiAgentStop.d.ts +64 -0
  375. package/dist/utils/claudeApiAgentStop.d.ts.map +1 -0
  376. package/dist/utils/claudeApiAgentStop.js +85 -0
  377. package/dist/utils/claudeApiAgentStop.js.map +1 -0
  378. package/dist/utils/claudeApiCredit.d.ts +168 -0
  379. package/dist/utils/claudeApiCredit.d.ts.map +1 -0
  380. package/dist/utils/claudeApiCredit.js +260 -0
  381. package/dist/utils/claudeApiCredit.js.map +1 -0
  382. package/dist/utils/claudeApiCreditRecheck.d.ts +120 -0
  383. package/dist/utils/claudeApiCreditRecheck.d.ts.map +1 -0
  384. package/dist/utils/claudeApiCreditRecheck.js +173 -0
  385. package/dist/utils/claudeApiCreditRecheck.js.map +1 -0
  386. package/dist/utils/claudeCompactHook.d.ts +18 -10
  387. package/dist/utils/claudeCompactHook.d.ts.map +1 -1
  388. package/dist/utils/claudeCompactHook.js +35 -14
  389. package/dist/utils/claudeCompactHook.js.map +1 -1
  390. package/dist/utils/claudeProfileUsageLines.d.ts +13 -1
  391. package/dist/utils/claudeProfileUsageLines.d.ts.map +1 -1
  392. package/dist/utils/claudeProfileUsageLines.js +75 -4
  393. package/dist/utils/claudeProfileUsageLines.js.map +1 -1
  394. package/dist/utils/claudeProfileUsageViews.d.ts +46 -0
  395. package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -0
  396. package/dist/utils/claudeProfileUsageViews.js +114 -0
  397. package/dist/utils/claudeProfileUsageViews.js.map +1 -0
  398. package/dist/utils/claudeProfiles.d.ts +15 -0
  399. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  400. package/dist/utils/claudeProfiles.js +54 -0
  401. package/dist/utils/claudeProfiles.js.map +1 -1
  402. package/dist/utils/claudeUsage.d.ts +97 -36
  403. package/dist/utils/claudeUsage.d.ts.map +1 -1
  404. package/dist/utils/claudeUsage.js +142 -61
  405. package/dist/utils/claudeUsage.js.map +1 -1
  406. package/dist/utils/claudeUsageRefresher.d.ts +27 -3
  407. package/dist/utils/claudeUsageRefresher.d.ts.map +1 -1
  408. package/dist/utils/claudeUsageRefresher.js +113 -14
  409. package/dist/utils/claudeUsageRefresher.js.map +1 -1
  410. package/dist/utils/compactOnIdle.d.ts +140 -15
  411. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  412. package/dist/utils/compactOnIdle.js +209 -23
  413. package/dist/utils/compactOnIdle.js.map +1 -1
  414. package/dist/utils/compactSelfReviewFlags.d.ts +50 -0
  415. package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -0
  416. package/dist/utils/compactSelfReviewFlags.js +120 -0
  417. package/dist/utils/compactSelfReviewFlags.js.map +1 -0
  418. package/dist/utils/fallbackChain.d.ts +18 -7
  419. package/dist/utils/fallbackChain.d.ts.map +1 -1
  420. package/dist/utils/fallbackChain.js +28 -12
  421. package/dist/utils/fallbackChain.js.map +1 -1
  422. package/dist/utils/forwardedMark.d.ts +54 -0
  423. package/dist/utils/forwardedMark.d.ts.map +1 -0
  424. package/dist/utils/forwardedMark.js +80 -0
  425. package/dist/utils/forwardedMark.js.map +1 -0
  426. package/dist/utils/limitHeldPrompts.d.ts +8 -2
  427. package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
  428. package/dist/utils/limitHeldPrompts.js +11 -4
  429. package/dist/utils/limitHeldPrompts.js.map +1 -1
  430. package/dist/utils/messageContext.d.ts +54 -0
  431. package/dist/utils/messageContext.d.ts.map +1 -0
  432. package/dist/utils/messageContext.js +58 -0
  433. package/dist/utils/messageContext.js.map +1 -0
  434. package/dist/utils/openCodeCompactPlugin.d.ts +28 -7
  435. package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
  436. package/dist/utils/openCodeCompactPlugin.js +80 -15
  437. package/dist/utils/openCodeCompactPlugin.js.map +1 -1
  438. package/dist/utils/openCodeUsage.d.ts +10 -3
  439. package/dist/utils/openCodeUsage.d.ts.map +1 -1
  440. package/dist/utils/openCodeUsage.js +19 -5
  441. package/dist/utils/openCodeUsage.js.map +1 -1
  442. package/dist/utils/replyQuote.d.ts +11 -26
  443. package/dist/utils/replyQuote.d.ts.map +1 -1
  444. package/dist/utils/replyQuote.js +9 -31
  445. package/dist/utils/replyQuote.js.map +1 -1
  446. package/dist/utils/runnersScreenPlan.d.ts +51 -20
  447. package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
  448. package/dist/utils/runnersScreenPlan.js +143 -28
  449. package/dist/utils/runnersScreenPlan.js.map +1 -1
  450. package/dist/utils/streamedCompactionSummary.d.ts +65 -0
  451. package/dist/utils/streamedCompactionSummary.d.ts.map +1 -0
  452. package/dist/utils/streamedCompactionSummary.js +108 -0
  453. package/dist/utils/streamedCompactionSummary.js.map +1 -0
  454. package/dist/utils/stripControlCharacters.d.ts +8 -0
  455. package/dist/utils/stripControlCharacters.d.ts.map +1 -0
  456. package/dist/utils/stripControlCharacters.js +16 -0
  457. package/dist/utils/stripControlCharacters.js.map +1 -0
  458. package/dist/utils/telegramError.d.ts +6 -0
  459. package/dist/utils/telegramError.d.ts.map +1 -1
  460. package/dist/utils/telegramError.js +30 -0
  461. package/dist/utils/telegramError.js.map +1 -1
  462. package/dist/utils/topicRequest.d.ts +13 -0
  463. package/dist/utils/topicRequest.d.ts.map +1 -1
  464. package/dist/utils/topicRequest.js +10 -0
  465. package/dist/utils/topicRequest.js.map +1 -1
  466. package/dist/utils/usageRefreshBudget.d.ts.map +1 -1
  467. package/dist/utils/usageRefreshBudget.js +4 -10
  468. package/dist/utils/usageRefreshBudget.js.map +1 -1
  469. package/dist/utils/waitUpTo.d.ts +8 -0
  470. package/dist/utils/waitUpTo.d.ts.map +1 -0
  471. package/dist/utils/waitUpTo.js +20 -0
  472. package/dist/utils/waitUpTo.js.map +1 -0
  473. package/package.json +2 -2
  474. package/remoteRun/ensureNode.sh +288 -0
  475. package/remoteRun/runner.sh +2252 -115
  476. package/agent-plugin/skills/charness-manager/SKILL.md +0 -156
  477. package/remoteRun/pickNode.sh +0 -65
@@ -71,6 +71,8 @@ exports.checkIsPlausibleAnthropicApiKey = checkIsPlausibleAnthropicApiKey;
71
71
  exports.checkIsAnthropicSecretLike = checkIsAnthropicSecretLike;
72
72
  exports.extractAnthropicApiKey = extractAnthropicApiKey;
73
73
  exports.resolveClaudeProfileApiKeyFile = resolveClaudeProfileApiKeyFile;
74
+ exports.readClaudeProfileApiKey = readClaudeProfileApiKey;
75
+ exports.readDefaultClaudeProfileApiKey = readDefaultClaudeProfileApiKey;
74
76
  exports.checkHasClaudeProfileApiKey = checkHasClaudeProfileApiKey;
75
77
  exports.writeClaudeProfileApiKey = writeClaudeProfileApiKey;
76
78
  exports.removeClaudeProfileApiKey = removeClaudeProfileApiKey;
@@ -306,6 +308,58 @@ function extractAnthropicApiKey(text) {
306
308
  function resolveClaudeProfileApiKeyFile(configDir) {
307
309
  return path.join(configDir, exports.claudeProfileApiKeyFileName);
308
310
  }
311
+ /** The profile's own `.claude.json`: where `claude auth login --console` keeps the key it created (`primaryApiKey`). */
312
+ const claudeProfileStateFileName = '.claude.json';
313
+ /** The text of a file, `null` when it cannot be read. */
314
+ function readTextFileOrNull(file) {
315
+ try {
316
+ return fs.readFileSync(file, 'utf8');
317
+ }
318
+ catch {
319
+ return null;
320
+ }
321
+ }
322
+ /** The `primaryApiKey` of a Claude Code state file (`.claude.json`), `null` when there is none or it is no API key. */
323
+ function readPrimaryApiKey(stateFile) {
324
+ const stateText = readTextFileOrNull(stateFile);
325
+ if (stateText === null)
326
+ return null;
327
+ // The file is the CLI's, not ours: whatever it holds is narrowed step by step before it is trusted (no schema library —
328
+ // this module is loaded by the connector guards before any env file is read).
329
+ let parsed;
330
+ try {
331
+ parsed = JSON.parse(stateText);
332
+ }
333
+ catch {
334
+ return null;
335
+ }
336
+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
337
+ return null;
338
+ const key = 'primaryApiKey' in parsed ? parsed.primaryApiKey : undefined;
339
+ return typeof key === 'string' && checkIsPlausibleAnthropicApiKey(key) ? key.trim() : null;
340
+ }
341
+ /**
342
+ * @description The API key an ADDED profile's own sessions use, read to make ONE direct request on its behalf (the daily
343
+ * credit recheck): the pasted key file, else the key a Console login stored in the profile's `.claude.json`. `null` when the
344
+ * directory holds neither, or what it holds does not look like an API key. The caller puts it in a request header and
345
+ * nowhere else — it is never logged, echoed or stored.
346
+ */
347
+ function readClaudeProfileApiKey(configDir) {
348
+ const pastedKey = readTextFileOrNull(resolveClaudeProfileApiKeyFile(configDir));
349
+ if (pastedKey !== null && checkIsPlausibleAnthropicApiKey(pastedKey))
350
+ return pastedKey.trim();
351
+ return readPrimaryApiKey(path.join(configDir, claudeProfileStateFileName));
352
+ }
353
+ /**
354
+ * @description The API key of the `default` profile (`~/.claude`, when it is billed to API credits), `null` unless its sessions
355
+ * run on the key a Console login left in the home `.claude.json` (`primaryApiKey`; `isConsoleLoginKey`, from the auth probe):
356
+ * the CLI prefers an `apiKeyHelper` or a variable over that key, and a stale `primaryApiKey` left by an earlier login would be
357
+ * asked on a key the sessions do not use. The bot never writes a pasted key for the default. Same rules as
358
+ * {@link readClaudeProfileApiKey}.
359
+ */
360
+ function readDefaultClaudeProfileApiKey(isConsoleLoginKey, homeDir = os.homedir()) {
361
+ return isConsoleLoginKey ? readPrimaryApiKey(path.join(homeDir, claudeProfileStateFileName)) : null;
362
+ }
309
363
  /** Whether the profile directory holds a pasted key (`null` = `~/.claude`, which never does: the bot writes none there). */
310
364
  function checkHasClaudeProfileApiKey(configDir) {
311
365
  if (configDir === null)
@@ -1 +1 @@
1
- {"version":3,"file":"claudeProfiles.js","sourceRoot":"","sources":["../../src/utils/claudeProfiles.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,sEAEC;AAGD,gEAEC;AAED,8DAEC;AAMD,0DAGC;AAGD,oDAEC;AAQD,8DA6BC;AAMD,8DAIC;AAQD,8DAoBC;AAGD,kEAGC;AAOD,4DAUC;AA+BD,oDAIC;AAMD,sDAqBC;AAyBD,0EAEC;AAMD,gEAEC;AAMD,wDAGC;AAGD,wEAEC;AAGD,kEAOC;AAMD,4DAMC;AAGD,8DAGC;AAOD,wDAMC;AAMD,0DAKC;AAKD,oDAMC;AAYD,gEAQC;AASD,0EAMC;AA1WD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,uEAAuE;AAC1D,QAAA,wBAAwB,GAAG,SAAS,CAAC;AAElD,8EAA8E;AACjE,QAAA,qBAAqB,GAAG,iBAAiB,CAAC;AAEvD;;;;;GAKG;AACU,QAAA,0BAA0B,GAAG,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AACzF,QAAA,kCAAkC,GAAG,CAAC,WAAW,CAAU,CAAC;AAEzE,iGAAiG;AACpF,QAAA,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,mBAAmB,GAAG,4BAA4B,CAAC;AAEzD,wHAAwH;AAC3G,QAAA,2BAA2B,GAAG,OAAO,CAAC;AAEnD;;;GAGG;AACH,SAAgB,6BAA6B,CAAC,IAAY;IACxD,OAAO,IAAI,KAAK,gC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AAC,WAAW,EAAE,CAAC;IAClD,IAAI,UAAU,KAAK,KAAK,IAAI,UAAU,KAAK,KAAK;QAAE,OAAO,UAAU,CAAC;IACpE,IAAI,UAAU,KAAK,MAAM,IAAI,UAAU,KAAK,YAAY;QAAE,OAAO,WAAW,CAAC;IAC7E,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,gCAAgC;AAEnB,QAAA,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D;;;;;GAKG;AACH,SAAgB,0BAA0B,CAAC,IAAmB,EAAE,KAAoB;IAClF,IAAI,IAAI,KAAK,KAAK;QAAE,OAAO,IAAI,CAAC;IAChC,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAClD,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,+BAA+B,CAAC,OAAe;IAC7D,iHAAiH;IACjH,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,uGAAuG,CAAC,CAAC;IACrI,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,IAAI,KAAK,CAAC,CAAC,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;AACtC,CAAC"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * @description Per-profile Claude USAGE — how much of each subscription window an account profile
3
- * (`utils/claudeProfiles.ts`) has used, and which profile a process should run on: a NEW agent goes to the
4
- * account whose weekly window resets soonest (spend first what burns soonest), a WARM session stays on the
3
+ * (`utils/claudeProfiles.ts`) has used, and which profile a process should run on: only the accounts the operator's
4
+ * `/limits` list holds (when it holds any Claude account); a NEW agent goes to an API-credit account of the list first, then
5
+ * to the subscription whose weekly window resets soonest (spend first what burns soonest), a WARM session stays on the
5
6
  * account it worked on ({@link getClaudeLaunchPick}).
6
7
  *
7
8
  * Two sources feed one snapshot per profile (`ClaudeProfileRecord.usage`):
@@ -22,6 +23,7 @@
22
23
  import type { ClaudeProfileRecord } from '../state';
23
24
  import { type ClaudeAccountKind, type ClaudeProfileBilling } from './claudeProfiles';
24
25
  import type { ClaudeApiSpend } from './claudeApiSpend';
26
+ import type { ClaudeApiCreditAnchor, ClaudeApiCreditSpend } from './claudeApiCredit';
25
27
  export declare const claudeUsageEndpoint = "https://api.anthropic.com/api/oauth/usage";
26
28
  export declare const claudeUsageFetchTimeoutMs = 15000;
27
29
  /** The one usage window kind set, named by what it bounds rather than by the API's spelling. */
@@ -85,6 +87,8 @@ export interface UsageEndpointRequest {
85
87
  parse: (body: unknown) => ClaudeUsageBucket[];
86
88
  fetchImpl?: UsageFetchLike;
87
89
  timeoutMs?: number;
90
+ /** The caller's own cancel: aborting it ends the request at once, answered as `cancelled`. */
91
+ signal?: AbortSignal;
88
92
  }
89
93
  /**
90
94
  * @description One GET of a usage endpoint, the shared mechanics of every subscription usage reader (Claude's own, the
@@ -99,6 +103,7 @@ export declare function fetchUsageBuckets(request: UsageEndpointRequest): Promis
99
103
  export declare function fetchClaudeUsage(token: string, options?: {
100
104
  fetchImpl?: UsageFetchLike;
101
105
  timeoutMs?: number;
106
+ signal?: AbortSignal;
102
107
  }): Promise<ClaudeUsageFetchResult>;
103
108
  /**
104
109
  * @description The buckets of a usage response. Reads `limits[]` (`kind` session / weekly_all /
@@ -171,10 +176,20 @@ export interface ClaudeProfileUsageView {
171
176
  limitedUntil: string | null;
172
177
  /** How the account pays; `null` when never recorded (a subscription account added before billing was). */
173
178
  billing: ClaudeProfileBilling | null;
179
+ /** Until when agents are not pointed at it (a worker's stop report not proven by the API, `claudeApiAgentStop.ts`); absent = no hold. Read by the agent pick ONLY — topics read `limitedUntil`. */
180
+ agentHoldUntil?: string | null;
174
181
  /** When its prepaid API credits were found used up; `null` while they are not (or the operator acted since). */
175
182
  creditExhaustedAt: string | null;
176
183
  /** What an account billed to API credits spent through the bot; absent before its first counted turn. */
177
184
  apiSpend?: ClaudeApiSpend;
185
+ /** The figure the operator read on the Console's Billing page (`utils/claudeApiCredit.ts`); absent = none given. */
186
+ creditAnchor?: ClaudeApiCreditAnchor;
187
+ /** What the account spent through the bot since its credit period began (that figure, or the last renewal); absent before its first counted turn after it. */
188
+ creditSpend?: ClaudeApiCreditSpend;
189
+ /** When the bot detected that the account's used-up credit was back; absent = never. */
190
+ creditRenewedAt?: string;
191
+ /** The refusal the operator acted on (picked the account again): not excluded any more, the renewal still awaited; absent = none. */
192
+ creditUnconfirmedSince?: string;
178
193
  }
179
194
  /** One profile in the report the MCP tool and the CLI hand to an agent. */
180
195
  export interface ClaudeProfileReportEntry {
@@ -185,9 +200,9 @@ export interface ClaudeProfileReportEntry {
185
200
  kind: ClaudeAccountKind;
186
201
  subscriptionType: string | null;
187
202
  /**
188
- * `api`: billed per request to a Claude Console organization's API credits — no windows, so no headroom figure, and
189
- * NEVER picked for a NEW agent (it would look inexhaustible and spend money); only a warm session already on it stays.
190
- * `null`: a subscription not recorded as such.
203
+ * `api`: billed per request to a Claude Console organization's API credits — no windows, so no headroom figure. It is
204
+ * recommended to a NEW agent only when the operator's `/limits` list holds it as an enabled rung (then FIRST, while its
205
+ * credit lasts); with no such rung only a warm session already on it stays. `null`: a subscription not recorded as such.
191
206
  */
192
207
  billing: ClaudeProfileBilling | null;
193
208
  /** `null` when never probed. */
@@ -198,8 +213,20 @@ export interface ClaudeProfileReportEntry {
198
213
  limitedUntil: string | null;
199
214
  /** When its prepaid API credits were found used up (`null`: not marked). */
200
215
  creditExhaustedAt: string | null;
201
- /** Signed in, not limited, its API credits not used up, and not at 100 % on a window the model drains — by the figures AS RECORDED. */
216
+ /** What the account spent through the bot in its current credit period (the operator's last figure, the last renewal, else since its first counted turn). */
217
+ spentUsd: number | null;
218
+ /** The operator's figure (or, after a renewal, the last grant they gave) minus the spend; `null` when no figure was ever given. */
219
+ remainingEstimateUsd: number | null;
220
+ /** The last day (`YYYY-MM-DD`, UTC) the operator said the credit is usable; `null` when none was given or after a renewal (unknown: the Console's Billing page shows it). */
221
+ expiresOn: string | null;
222
+ /** A refusal for a used-up balance came after the period began and nothing has answered since: the bot cannot be sure. */
223
+ probablyUsedUp: boolean;
224
+ /** When the bot detected the credit was back (the current period starts there); `null` = never or superseded by a newer figure. */
225
+ renewedAt: string | null;
226
+ /** Signed in, not limited, its API credits not used up, not at 100 % on a window the model drains — by the figures AS RECORDED — and not kept off agents by the `/limits` list (`chainExclusion`). */
202
227
  isEligible: boolean;
228
+ /** Why the operator's `/limits` list keeps agents off this account ({@link ClaudeChainExclusion}); `null` = no objection (it has an enabled rung there, or the list names no Claude account at all). */
229
+ chainExclusion: ClaudeChainExclusion | null;
203
230
  /** `100 − max(relevant percent)`; `null` when the usage is unknown. Informational: the pick ranks by reset, not by headroom. */
204
231
  headroomPercent: number | null;
205
232
  /** The profile {@link getClaudeLaunchPick} chose (the figures read as of now). */
@@ -225,10 +252,12 @@ export declare const claudeWeeklyWindowMs: number;
225
252
  export declare const claudeSessionWindowMs: number;
226
253
  /**
227
254
  * `warm`: the session stays on its account; `movedFromLimited`: it was stopped by a limit and goes elsewhere;
228
- * `movedFromUnavailable`: its account can no longer run (signed out, marked limited, out of credits, a window full) and it
229
- * goes elsewhere; `soonestWeeklyReset`: a new agent; `none`: nothing is usable.
255
+ * `movedFromUnavailable`: its account can no longer run (signed out, marked limited, out of credits, a window full, or
256
+ * taken out of the `/limits` list) and it goes elsewhere; `soonestWeeklyReset`: a new agent on the subscription whose weekly
257
+ * window resets soonest; `apiCreditFirst`: a new agent on an account billed to API credits the `/limits` list holds (it goes
258
+ * before every subscription while its credit lasts); `none`: nothing is usable.
230
259
  */
231
- export type ClaudeLaunchPickReason = 'warm' | 'movedFromLimited' | 'movedFromUnavailable' | 'soonestWeeklyReset' | 'none';
260
+ export type ClaudeLaunchPickReason = 'warm' | 'movedFromLimited' | 'movedFromUnavailable' | 'soonestWeeklyReset' | 'apiCreditFirst' | 'none';
232
261
  /** The account that frees up first and the ISO instant it does. */
233
262
  export interface ClaudeNextAvailable {
234
263
  profile: string;
@@ -245,9 +274,30 @@ export interface ClaudeLaunchPickOptions {
245
274
  currentProfile?: string | null;
246
275
  /** The session broke off on a usage limit of `currentProfile`: it is left out of this answer whatever the figures say. */
247
276
  isStoppedByLimit?: boolean;
248
- /** Accounts the operator switched off in the `/limits` list (every rung disabled): never picked for a new agent. */
249
- excludedNames?: ReadonlySet<string>;
277
+ /** What the operator's `/limits` list says about the accounts agents may use; absent / `null` = the list names no Claude account (every signed-in subscription account is open). */
278
+ chainScope?: ClaudeLaunchChainScope | null;
279
+ /** API accounts whose credit has run out by the operator's own expiry day: not sent a NEW agent first (the credit module is out of this file's reach, the caller works it out). */
280
+ expiredApiNames?: ReadonlySet<string>;
250
281
  }
282
+ /**
283
+ * What the operator's `/limits` auto-switch list (the fallback chain) says about the Claude accounts an AGENT may be pointed
284
+ * at: once the list names any Claude account, only the accounts with an ENABLED rung are recommended — to a new agent and
285
+ * to a resumed one alike. `fallbackChain.ts` builds it (`getClaudeLaunchChainScope`); `null` stands for a list with no Claude rung.
286
+ */
287
+ export interface ClaudeLaunchChainScope {
288
+ /** Accounts with at least one enabled Claude rung, in the list's order (several API accounts go first-listed-first). */
289
+ enabledNames: ReadonlySet<string>;
290
+ /** Accounts the list names only with switched-off rungs (🚫). */
291
+ disabledNames: ReadonlySet<string>;
292
+ }
293
+ /** Why the `/limits` list keeps agents off an account: `switchedOff` = every rung of it is switched off, `notListed` = the list names the account nowhere. */
294
+ export type ClaudeChainExclusion = 'switchedOff' | 'notListed';
295
+ /** Every exclusion, in the order an answer names them. */
296
+ export declare const claudeChainExclusions: readonly ClaudeChainExclusion[];
297
+ /** The words of an exclusion for the first line of an answer and the command line. */
298
+ export declare const claudeChainExclusionWords: Readonly<Record<ClaudeChainExclusion, string>>;
299
+ /** Why `scope` keeps agents off the account `name`; `null` when it does not (no Claude account listed, or an enabled rung of it). */
300
+ export declare function getClaudeChainExclusion(name: string, scope: ClaudeLaunchChainScope | null | undefined): ClaudeChainExclusion | null;
251
301
  /**
252
302
  * @description Whether a NEW agent of `model` may start on the profile now: a subscription account that is eligible by the
253
303
  * figures as of `nowMs` and whose five-hour window is below {@link claudeLaunchSessionCeilingPercent}. Switching it off
@@ -265,17 +315,27 @@ export declare function sortClaudeProfilesByLaunchRank<T extends ClaudeProfileUs
265
315
  /**
266
316
  * @description The account a process of `model` should run on.
267
317
  *
268
- * NEW agent (no `currentProfile`): of the USABLE accounts — subscription, signed in, not marked limited, not out of API
269
- * credits, not switched off (`excludedNames`), every weekly window the model drains below 100 % and the five-hour window
270
- * below {@link claudeLaunchSessionCeilingPercent} — the one whose weekly window resets soonest
271
- * ({@link sortClaudeProfilesByLaunchRank}): spend first what burns first, and move to a farther reset only when the
272
- * five-hour window is exhausted. Fable's own window at 100 % takes only Fable out.
318
+ * The operator's `/limits` list rules who may be named at all (`chainScope`): once it names any Claude account, only an account
319
+ * with an ENABLED rung there is recommended — one the list leaves out or switches off never is, for a new agent or a resumed one.
320
+ * A list with no Claude rung restricts nothing.
273
321
  *
274
- * WARM session (`currentProfile` known): it stays on that account unless the account is signed out, marked limited, out
275
- * of API credits or at 100 % on a window the model drains — the ceiling does not apply, and an API-billed account the
276
- * session already works on is kept (the spend was approved). `isStoppedByLimit` takes `currentProfile` out of the answer
277
- * whatever the figures say (they may lag the limit); the rest follows the new-agent rule, and the reason says the
278
- * session moved (`movedFromLimited`, or `movedFromUnavailable` when the account could no longer run by its own figures).
322
+ * NEW agent (no `currentProfile`): first an account billed to API credits the list holds (the operator's choice: spend the
323
+ * bonus credit before any subscription), as long as it is signed in, not marked limited, not held off agents (`agentHoldUntil`),
324
+ * its credits are not marked used up and the expiry day the operator gave (`expiredApiNames`) has not passed;
325
+ * then, of the USABLE subscription accounts — signed in, not marked limited, not out of API credits, every weekly window the
326
+ * model drains below 100 % and the five-hour window below {@link claudeLaunchSessionCeilingPercent} — the one whose weekly
327
+ * window resets soonest ({@link sortClaudeProfilesByLaunchRank}): spend first what burns first, and move to a farther reset only
328
+ * when the five-hour window is exhausted. Fable's own window at 100 % takes only Fable out. The list's ORDER ranks nothing but
329
+ * several API accounts among themselves: it was written for a topic's fallback, the agents' order is "API credit, then what
330
+ * burns soonest".
331
+ *
332
+ * WARM session (`currentProfile` known): it stays on that account unless the account is signed out, marked limited, held off
333
+ * agents (`agentHoldUntil`), out of API credits, at 100 % on a window the model drains, or no longer allowed by the list — the
334
+ * ceiling does not apply, and an
335
+ * API-billed account the session already works on is kept (the spend was approved) while the list does not take it out.
336
+ * `isStoppedByLimit` takes `currentProfile` out of the answer whatever the figures say (they may lag the limit); the rest
337
+ * follows the new-agent rule, and the reason says the session moved (`movedFromLimited`, or `movedFromUnavailable` when the
338
+ * account could no longer run by its own figures or the list).
279
339
  *
280
340
  * Nothing usable → `pick: null` and {@link ClaudeLaunchPick.nextAvailable}.
281
341
  */
@@ -286,28 +346,29 @@ export declare function getClaudeLaunchPick(input: ClaudeLaunchPickOptions & {
286
346
  }): ClaudeLaunchPick;
287
347
  /**
288
348
  * @description The pick in words, for the first line of the `claude_profiles` answer and the CLI: why the account was chosen
289
- * (`stays on the warm account`, `moved: <name> stopped on a limit` / `can no longer run`, `soonest weekly reset`), or that nothing is usable
349
+ * (`stays on the warm account`, `moved: <name> stopped on a limit` / `can no longer run`, `soonest weekly reset`, `API credit first`), or that nothing is usable
290
350
  * and which account frees up when. `currentProfile` is the account the caller passed for a resumed session.
291
351
  */
292
352
  export declare function describeClaudeLaunchOutcome(report: Pick<ClaudeProfilesReport, 'pickReason' | 'nextAvailable'>, currentProfile: string | null): string;
293
353
  /**
294
- * @description The report of every profile for a launch of `model`, with the pick of {@link getClaudeLaunchPick}
295
- * (`options`: the warm account, the limit stop, the switched-off accounts). `isEligible` is the strict reading — signed in,
296
- * not marked limited, its API credits not used up, not at 100 % on a relevant window as recorded — which the explicit
297
- * fallback chain's availability reads; `recommended` is the pick, an account billed to API credits only when a warm
298
- * session already runs on it. The entries keep the input order.
354
+ * @description The accounts the `/limits` list keeps agents off, one clause per reason (`not offered — not in the /limits list:
355
+ * a, b; switched off in the /limits list: c`), or `null` when there are none. The first lines of the `claude_profiles` answer
356
+ * and the CLI add it, so an agent that sees a signed-in account missing from `recommended` is told why.
299
357
  */
300
- export declare function buildClaudeProfilesReport(profiles: readonly ClaudeProfileUsageView[], model: string | null, nowMs: number, options?: ClaudeLaunchPickOptions): ClaudeProfilesReport;
358
+ export declare function describeClaudeChainExclusions(report: Pick<ClaudeProfilesReport, 'profiles'>): string | null;
301
359
  /**
302
- * @description The ranking's view of every profile off the registry: `default` (its hidden record, when the
303
- * bot has written one) first, then the added profiles in creation order. Shared by the bot (live state) and
304
- * the CLI (`state.json` read directly).
360
+ * @description The report of every profile for a launch of `model`, with the pick of {@link getClaudeLaunchPick}
361
+ * (`options`: the warm account, the limit stop, the `/limits` list). `isEligible` is the strict reading — signed in,
362
+ * not marked limited, its API credits not used up, not at 100 % on a relevant window as recorded, not kept off agents by the
363
+ * list (`chainExclusion`) — which the explicit fallback chain's availability reads (it passes no list); `recommended` is the
364
+ * pick. The entries keep the input order.
365
+ *
366
+ * The credit fields of the entries (`spentUsd`, `remainingEstimateUsd`, `expiresOn`, `probablyUsedUp`, `renewedAt`) are left
367
+ * EMPTY here: this module is loaded by the connector guards, which may not reach the credit module. Anything that is shown to
368
+ * an agent or an operator — the `claude_profiles` tool, `charness claude-profiles` — uses `buildClaudeProfilesCreditReport`
369
+ * (`utils/claudeProfileUsageViews.ts`) instead; this builder is for the ranking (`fallbackChain.ts` reads `isEligible`).
305
370
  */
306
- export declare function buildClaudeProfileUsageViews(input: {
307
- dataDir: string;
308
- /** Every record, the hidden `default` one included (`StateStore.getClaudeProfileInfo` / the raw file). */
309
- records: Readonly<Record<string, ClaudeProfileRecord>>;
310
- }): ClaudeProfileUsageView[];
371
+ export declare function buildClaudeProfilesReport(profiles: readonly ClaudeProfileUsageView[], model: string | null, nowMs: number, options?: ClaudeLaunchPickOptions): ClaudeProfilesReport;
311
372
  /** The profile registry out of a `state.json` already read (`stateFile.ts`): entries without a creation time are dropped. */
312
373
  export declare function getClaudeProfileRecordsFromState(stateFile: Readonly<Record<string, unknown>>): Readonly<Record<string, ClaudeProfileRecord>>;
313
374
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"claudeUsage.d.ts","sourceRoot":"","sources":["../../src/utils/claudeUsage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAuE,KAAK,iBAAiB,EAAE,KAAK,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC1J,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,8CAA8C,CAAC;AAK/E,eAAO,MAAM,yBAAyB,QAAS,CAAC;AAEhD,gGAAgG;AAChG,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,YAAY,GAAG,eAAe,CAAC;AAE/E,eAAO,MAAM,sBAAsB,EAAE,SAAS,qBAAqB,EAA+C,CAAC;AAEnH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,iFAAiF;IACjF,OAAO,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,4FAA4F;IAC5F,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IACl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