charness 3.11.0 → 3.13.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 (537) hide show
  1. package/.env.example +5 -0
  2. package/CHANGELOG.md +169 -0
  3. package/DEVELOPMENT.md +81 -18
  4. package/README.md +3 -2
  5. package/SETUP.md +71 -25
  6. package/agent-plugin/README.md +15 -6
  7. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +37 -18
  8. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +10 -6
  9. package/agent-plugin/skills/charness-delivery-loop/SKILL.md +92 -0
  10. package/agent-plugin/skills/charness-orchestration/SKILL.md +116 -0
  11. package/dist/accessControl.d.ts +43 -0
  12. package/dist/accessControl.d.ts.map +1 -1
  13. package/dist/accessControl.js +50 -1
  14. package/dist/accessControl.js.map +1 -1
  15. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  16. package/dist/adapters/claudeCliAdapter.js +9 -4
  17. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  18. package/dist/adapters/claudeJsonStreamAdapter.js +1 -1
  19. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  20. package/dist/adapters/claudePlatformFlags.d.ts +4 -3
  21. package/dist/adapters/claudePlatformFlags.d.ts.map +1 -1
  22. package/dist/adapters/claudePlatformFlags.js +4 -3
  23. package/dist/adapters/claudePlatformFlags.js.map +1 -1
  24. package/dist/adapters/openCodeAdapter.d.ts +52 -13
  25. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  26. package/dist/adapters/openCodeAdapter.js +121 -45
  27. package/dist/adapters/openCodeAdapter.js.map +1 -1
  28. package/dist/adapters/terminalAdapter.d.ts.map +1 -1
  29. package/dist/adapters/terminalAdapter.js +5 -3
  30. package/dist/adapters/terminalAdapter.js.map +1 -1
  31. package/dist/agentLogin/agentLogin.d.ts +11 -0
  32. package/dist/agentLogin/agentLogin.d.ts.map +1 -1
  33. package/dist/agentLogin/agentLogin.js +20 -20
  34. package/dist/agentLogin/agentLogin.js.map +1 -1
  35. package/dist/apiErrorRetry.d.ts +5 -0
  36. package/dist/apiErrorRetry.d.ts.map +1 -1
  37. package/dist/apiErrorRetry.js +3 -3
  38. package/dist/apiErrorRetry.js.map +1 -1
  39. package/dist/bot.d.ts +12 -3
  40. package/dist/bot.d.ts.map +1 -1
  41. package/dist/bot.js +634 -153
  42. package/dist/bot.js.map +1 -1
  43. package/dist/cli/claudeProfiles.d.ts +5 -2
  44. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  45. package/dist/cli/claudeProfiles.js +45 -22
  46. package/dist/cli/claudeProfiles.js.map +1 -1
  47. package/dist/cli/claudeProfilesCredit.d.ts +49 -0
  48. package/dist/cli/claudeProfilesCredit.d.ts.map +1 -0
  49. package/dist/cli/claudeProfilesCredit.js +160 -0
  50. package/dist/cli/claudeProfilesCredit.js.map +1 -0
  51. package/dist/cli/flagValue.d.ts +10 -0
  52. package/dist/cli/flagValue.d.ts.map +1 -0
  53. package/dist/cli/flagValue.js +17 -0
  54. package/dist/cli/flagValue.js.map +1 -0
  55. package/dist/connectors/jira/client.js +1 -1
  56. package/dist/connectors/jira/client.js.map +1 -1
  57. package/dist/connectors/jira/config.d.ts +7 -0
  58. package/dist/connectors/jira/config.d.ts.map +1 -1
  59. package/dist/connectors/jira/config.js +12 -1
  60. package/dist/connectors/jira/config.js.map +1 -1
  61. package/dist/connectors/jira/connector.d.ts +7 -0
  62. package/dist/connectors/jira/connector.d.ts.map +1 -1
  63. package/dist/connectors/jira/connector.js +20 -3
  64. package/dist/connectors/jira/connector.js.map +1 -1
  65. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  66. package/dist/connectors/jira/inbound.js +4 -3
  67. package/dist/connectors/jira/inbound.js.map +1 -1
  68. package/dist/connectors/jira/issueBlocks.d.ts +1 -1
  69. package/dist/connectors/jira/trustedGroup.d.ts +21 -6
  70. package/dist/connectors/jira/trustedGroup.d.ts.map +1 -1
  71. package/dist/connectors/jira/trustedGroup.js +46 -6
  72. package/dist/connectors/jira/trustedGroup.js.map +1 -1
  73. package/dist/connectors/telegram/commands/botCore.d.ts +19 -2
  74. package/dist/connectors/telegram/commands/botCore.d.ts.map +1 -1
  75. package/dist/connectors/telegram/commands/botSkills.js +1 -1
  76. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -1
  77. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  78. package/dist/connectors/telegram/commands/claudeAccounts.js +9 -6
  79. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  80. package/dist/connectors/telegram/commands/compaction.d.ts +16 -3
  81. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  82. package/dist/connectors/telegram/commands/compaction.js +216 -27
  83. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  84. package/dist/connectors/telegram/commands/runners.d.ts +5 -1
  85. package/dist/connectors/telegram/commands/runners.d.ts.map +1 -1
  86. package/dist/connectors/telegram/commands/runners.js +146 -31
  87. package/dist/connectors/telegram/commands/runners.js.map +1 -1
  88. package/dist/connectors/telegram/commands/todo.d.ts.map +1 -1
  89. package/dist/connectors/telegram/commands/todo.js +2 -2
  90. package/dist/connectors/telegram/commands/todo.js.map +1 -1
  91. package/dist/connectors/telegram/commands/topicAccess.d.ts +30 -0
  92. package/dist/connectors/telegram/commands/topicAccess.d.ts.map +1 -0
  93. package/dist/connectors/telegram/commands/topicAccess.js +399 -0
  94. package/dist/connectors/telegram/commands/topicAccess.js.map +1 -0
  95. package/dist/connectors/telegram/inbound.d.ts +44 -7
  96. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  97. package/dist/connectors/telegram/inbound.js +142 -24
  98. package/dist/connectors/telegram/inbound.js.map +1 -1
  99. package/dist/connectors/telegram/runnerPairingMessages.d.ts +2 -7
  100. package/dist/connectors/telegram/runnerPairingMessages.d.ts.map +1 -1
  101. package/dist/connectors/telegram/runnerPairingMessages.js +5 -19
  102. package/dist/connectors/telegram/runnerPairingMessages.js.map +1 -1
  103. package/dist/i18n/de.d.ts.map +1 -1
  104. package/dist/i18n/de.js +120 -8
  105. package/dist/i18n/de.js.map +1 -1
  106. package/dist/i18n/en.d.ts.map +1 -1
  107. package/dist/i18n/en.js +120 -8
  108. package/dist/i18n/en.js.map +1 -1
  109. package/dist/i18n/es.d.ts.map +1 -1
  110. package/dist/i18n/es.js +120 -8
  111. package/dist/i18n/es.js.map +1 -1
  112. package/dist/i18n/fr.d.ts.map +1 -1
  113. package/dist/i18n/fr.js +120 -8
  114. package/dist/i18n/fr.js.map +1 -1
  115. package/dist/i18n/hi.d.ts.map +1 -1
  116. package/dist/i18n/hi.js +120 -8
  117. package/dist/i18n/hi.js.map +1 -1
  118. package/dist/i18n/ja.d.ts.map +1 -1
  119. package/dist/i18n/ja.js +120 -8
  120. package/dist/i18n/ja.js.map +1 -1
  121. package/dist/i18n/ka.d.ts.map +1 -1
  122. package/dist/i18n/ka.js +120 -8
  123. package/dist/i18n/ka.js.map +1 -1
  124. package/dist/i18n/pt.d.ts.map +1 -1
  125. package/dist/i18n/pt.js +120 -8
  126. package/dist/i18n/pt.js.map +1 -1
  127. package/dist/i18n/ru.d.ts.map +1 -1
  128. package/dist/i18n/ru.js +120 -8
  129. package/dist/i18n/ru.js.map +1 -1
  130. package/dist/i18n/uk.d.ts.map +1 -1
  131. package/dist/i18n/uk.js +120 -8
  132. package/dist/i18n/uk.js.map +1 -1
  133. package/dist/i18n/uz.d.ts.map +1 -1
  134. package/dist/i18n/uz.js +120 -8
  135. package/dist/i18n/uz.js.map +1 -1
  136. package/dist/i18n/zh.d.ts.map +1 -1
  137. package/dist/i18n/zh.js +120 -8
  138. package/dist/i18n/zh.js.map +1 -1
  139. package/dist/installManager.d.ts +37 -1
  140. package/dist/installManager.d.ts.map +1 -1
  141. package/dist/installManager.js +208 -14
  142. package/dist/installManager.js.map +1 -1
  143. package/dist/instanceLock.d.ts.map +1 -1
  144. package/dist/instanceLock.js +2 -1
  145. package/dist/instanceLock.js.map +1 -1
  146. package/dist/platform/commandRouter.d.ts +13 -1
  147. package/dist/platform/commandRouter.d.ts.map +1 -1
  148. package/dist/platform/commandRouter.js +14 -2
  149. package/dist/platform/commandRouter.js.map +1 -1
  150. package/dist/platform/inbound.d.ts +2 -0
  151. package/dist/platform/inbound.d.ts.map +1 -1
  152. package/dist/platform/outbound.d.ts +14 -1
  153. package/dist/platform/outbound.d.ts.map +1 -1
  154. package/dist/platform/outbound.js.map +1 -1
  155. package/dist/remoteRun/cleanReport.d.ts +45 -0
  156. package/dist/remoteRun/cleanReport.d.ts.map +1 -0
  157. package/dist/remoteRun/cleanReport.js +84 -0
  158. package/dist/remoteRun/cleanReport.js.map +1 -0
  159. package/dist/remoteRun/cliArgs.d.ts +18 -0
  160. package/dist/remoteRun/cliArgs.d.ts.map +1 -1
  161. package/dist/remoteRun/cliArgs.js +100 -4
  162. package/dist/remoteRun/cliArgs.js.map +1 -1
  163. package/dist/remoteRun/commands.d.ts +30 -1
  164. package/dist/remoteRun/commands.d.ts.map +1 -1
  165. package/dist/remoteRun/commands.js +84 -9
  166. package/dist/remoteRun/commands.js.map +1 -1
  167. package/dist/remoteRun/exitCodes.d.ts +5 -0
  168. package/dist/remoteRun/exitCodes.d.ts.map +1 -1
  169. package/dist/remoteRun/exitCodes.js +6 -1
  170. package/dist/remoteRun/exitCodes.js.map +1 -1
  171. package/dist/remoteRun/foreground.d.ts +6 -0
  172. package/dist/remoteRun/foreground.d.ts.map +1 -1
  173. package/dist/remoteRun/foreground.js +13 -1
  174. package/dist/remoteRun/foreground.js.map +1 -1
  175. package/dist/remoteRun/interrupts.d.ts.map +1 -1
  176. package/dist/remoteRun/interrupts.js +2 -2
  177. package/dist/remoteRun/interrupts.js.map +1 -1
  178. package/dist/remoteRun/jobFiles.d.ts +6 -1
  179. package/dist/remoteRun/jobFiles.d.ts.map +1 -1
  180. package/dist/remoteRun/jobFiles.js +14 -0
  181. package/dist/remoteRun/jobFiles.js.map +1 -1
  182. package/dist/remoteRun/jobId.d.ts +5 -0
  183. package/dist/remoteRun/jobId.d.ts.map +1 -1
  184. package/dist/remoteRun/jobId.js +10 -0
  185. package/dist/remoteRun/jobId.js.map +1 -1
  186. package/dist/remoteRun/jobState.d.ts.map +1 -1
  187. package/dist/remoteRun/jobState.js +3 -2
  188. package/dist/remoteRun/jobState.js.map +1 -1
  189. package/dist/remoteRun/pairedRunners.d.ts +1 -1
  190. package/dist/remoteRun/pairedRunners.d.ts.map +1 -1
  191. package/dist/remoteRun/pairedRunners.js +4 -0
  192. package/dist/remoteRun/pairedRunners.js.map +1 -1
  193. package/dist/remoteRun/pathPatterns.d.ts +1 -1
  194. package/dist/remoteRun/pathPatterns.js +1 -1
  195. package/dist/remoteRun/probe.d.ts +58 -5
  196. package/dist/remoteRun/probe.d.ts.map +1 -1
  197. package/dist/remoteRun/probe.js +107 -11
  198. package/dist/remoteRun/probe.js.map +1 -1
  199. package/dist/remoteRun/probeTiming.d.ts +15 -0
  200. package/dist/remoteRun/probeTiming.d.ts.map +1 -0
  201. package/dist/remoteRun/probeTiming.js +23 -0
  202. package/dist/remoteRun/probeTiming.js.map +1 -0
  203. package/dist/remoteRun/project.d.ts +5 -0
  204. package/dist/remoteRun/project.d.ts.map +1 -1
  205. package/dist/remoteRun/project.js +10 -0
  206. package/dist/remoteRun/project.js.map +1 -1
  207. package/dist/remoteRun/projectConfig.d.ts +8 -1
  208. package/dist/remoteRun/projectConfig.d.ts.map +1 -1
  209. package/dist/remoteRun/projectConfig.js +18 -5
  210. package/dist/remoteRun/projectConfig.js.map +1 -1
  211. package/dist/remoteRun/pruneReport.d.ts +48 -0
  212. package/dist/remoteRun/pruneReport.d.ts.map +1 -0
  213. package/dist/remoteRun/pruneReport.js +80 -0
  214. package/dist/remoteRun/pruneReport.js.map +1 -0
  215. package/dist/remoteRun/remoteRunCli.d.ts +1 -1
  216. package/dist/remoteRun/remoteRunCli.d.ts.map +1 -1
  217. package/dist/remoteRun/remoteRunCli.js +20 -0
  218. package/dist/remoteRun/remoteRunCli.js.map +1 -1
  219. package/dist/remoteRun/runnerClient.d.ts +10 -0
  220. package/dist/remoteRun/runnerClient.d.ts.map +1 -1
  221. package/dist/remoteRun/runnerClient.js +19 -5
  222. package/dist/remoteRun/runnerClient.js.map +1 -1
  223. package/dist/remoteRun/runnerWait.d.ts.map +1 -1
  224. package/dist/remoteRun/runnerWait.js +2 -1
  225. package/dist/remoteRun/runnerWait.js.map +1 -1
  226. package/dist/remoteRun/runners.d.ts +48 -7
  227. package/dist/remoteRun/runners.d.ts.map +1 -1
  228. package/dist/remoteRun/runners.js +105 -40
  229. package/dist/remoteRun/runners.js.map +1 -1
  230. package/dist/remoteRun/runnersConfig.d.ts +24 -0
  231. package/dist/remoteRun/runnersConfig.d.ts.map +1 -1
  232. package/dist/remoteRun/runnersConfig.js +29 -2
  233. package/dist/remoteRun/runnersConfig.js.map +1 -1
  234. package/dist/remoteRun/ssh.d.ts +3 -3
  235. package/dist/remoteRun/ssh.d.ts.map +1 -1
  236. package/dist/remoteRun/ssh.js +19 -5
  237. package/dist/remoteRun/ssh.js.map +1 -1
  238. package/dist/remoteRun/submit.d.ts +1 -1
  239. package/dist/remoteRun/submit.d.ts.map +1 -1
  240. package/dist/remoteRun/submit.js +30 -2
  241. package/dist/remoteRun/submit.js.map +1 -1
  242. package/dist/runnerUtility/adminService.d.ts.map +1 -1
  243. package/dist/runnerUtility/adminService.js +5 -5
  244. package/dist/runnerUtility/adminService.js.map +1 -1
  245. package/dist/runnerUtility/appInstall.d.ts +9 -0
  246. package/dist/runnerUtility/appInstall.d.ts.map +1 -1
  247. package/dist/runnerUtility/appInstall.js +12 -2
  248. package/dist/runnerUtility/appInstall.js.map +1 -1
  249. package/dist/runnerUtility/execEnv.d.ts +1 -1
  250. package/dist/runnerUtility/execEnv.d.ts.map +1 -1
  251. package/dist/runnerUtility/execEnv.js +23 -5
  252. package/dist/runnerUtility/execEnv.js.map +1 -1
  253. package/dist/runnerUtility/guiAgentHeal.d.ts +3 -3
  254. package/dist/runnerUtility/guiAgentHeal.d.ts.map +1 -1
  255. package/dist/runnerUtility/guiAgentHeal.js +4 -2
  256. package/dist/runnerUtility/guiAgentHeal.js.map +1 -1
  257. package/dist/runnerUtility/homeFolders.d.ts +1 -0
  258. package/dist/runnerUtility/homeFolders.d.ts.map +1 -1
  259. package/dist/runnerUtility/homeFolders.js +2 -1
  260. package/dist/runnerUtility/homeFolders.js.map +1 -1
  261. package/dist/runnerUtility/iosCheck.d.ts +2 -0
  262. package/dist/runnerUtility/iosCheck.d.ts.map +1 -1
  263. package/dist/runnerUtility/iosCheck.js +12 -3
  264. package/dist/runnerUtility/iosCheck.js.map +1 -1
  265. package/dist/runnerUtility/keepAwake.d.ts +47 -10
  266. package/dist/runnerUtility/keepAwake.d.ts.map +1 -1
  267. package/dist/runnerUtility/keepAwake.js +108 -31
  268. package/dist/runnerUtility/keepAwake.js.map +1 -1
  269. package/dist/runnerUtility/launcher.d.ts +4 -0
  270. package/dist/runnerUtility/launcher.d.ts.map +1 -1
  271. package/dist/runnerUtility/launcher.js +31 -13
  272. package/dist/runnerUtility/launcher.js.map +1 -1
  273. package/dist/runnerUtility/linkLoop.d.ts +4 -0
  274. package/dist/runnerUtility/linkLoop.d.ts.map +1 -1
  275. package/dist/runnerUtility/linkLoop.js +15 -6
  276. package/dist/runnerUtility/linkLoop.js.map +1 -1
  277. package/dist/runnerUtility/managedNode.d.ts +84 -0
  278. package/dist/runnerUtility/managedNode.d.ts.map +1 -0
  279. package/dist/runnerUtility/managedNode.js +165 -0
  280. package/dist/runnerUtility/managedNode.js.map +1 -0
  281. package/dist/runnerUtility/nodeOnPath.d.ts +10 -0
  282. package/dist/runnerUtility/nodeOnPath.d.ts.map +1 -0
  283. package/dist/runnerUtility/nodeOnPath.js +49 -0
  284. package/dist/runnerUtility/nodeOnPath.js.map +1 -0
  285. package/dist/runnerUtility/nodeUpkeep.d.ts +140 -0
  286. package/dist/runnerUtility/nodeUpkeep.d.ts.map +1 -0
  287. package/dist/runnerUtility/nodeUpkeep.js +348 -0
  288. package/dist/runnerUtility/nodeUpkeep.js.map +1 -0
  289. package/dist/runnerUtility/nodeUpkeepTiming.d.ts +14 -0
  290. package/dist/runnerUtility/nodeUpkeepTiming.d.ts.map +1 -0
  291. package/dist/runnerUtility/nodeUpkeepTiming.js +21 -0
  292. package/dist/runnerUtility/nodeUpkeepTiming.js.map +1 -0
  293. package/dist/runnerUtility/packageManagerShims.d.ts +10 -0
  294. package/dist/runnerUtility/packageManagerShims.d.ts.map +1 -1
  295. package/dist/runnerUtility/packageManagerShims.js +67 -3
  296. package/dist/runnerUtility/packageManagerShims.js.map +1 -1
  297. package/dist/runnerUtility/pueueDaemon.d.ts +73 -8
  298. package/dist/runnerUtility/pueueDaemon.d.ts.map +1 -1
  299. package/dist/runnerUtility/pueueDaemon.js +90 -15
  300. package/dist/runnerUtility/pueueDaemon.js.map +1 -1
  301. package/dist/runnerUtility/runnerCommands.d.ts +7 -1
  302. package/dist/runnerUtility/runnerCommands.d.ts.map +1 -1
  303. package/dist/runnerUtility/runnerCommands.js +119 -16
  304. package/dist/runnerUtility/runnerCommands.js.map +1 -1
  305. package/dist/runnerUtility/runnerHome.d.ts +34 -0
  306. package/dist/runnerUtility/runnerHome.d.ts.map +1 -1
  307. package/dist/runnerUtility/runnerHome.js +17 -3
  308. package/dist/runnerUtility/runnerHome.js.map +1 -1
  309. package/dist/runnerUtility/serviceCommon.d.ts +2 -0
  310. package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
  311. package/dist/runnerUtility/serviceCommon.js +3 -1
  312. package/dist/runnerUtility/serviceCommon.js.map +1 -1
  313. package/dist/runnerUtility/serviceManager.d.ts.map +1 -1
  314. package/dist/runnerUtility/serviceManager.js +7 -2
  315. package/dist/runnerUtility/serviceManager.js.map +1 -1
  316. package/dist/runnerUtility/simctlGuard.d.ts +38 -0
  317. package/dist/runnerUtility/simctlGuard.d.ts.map +1 -0
  318. package/dist/runnerUtility/simctlGuard.js +166 -0
  319. package/dist/runnerUtility/simctlGuard.js.map +1 -0
  320. package/dist/runners/bootstrapLine.d.ts +3 -4
  321. package/dist/runners/bootstrapLine.d.ts.map +1 -1
  322. package/dist/runners/bootstrapLine.js +108 -83
  323. package/dist/runners/bootstrapLine.js.map +1 -1
  324. package/dist/runners/hubPackage.d.ts +1 -1
  325. package/dist/runners/hubPackage.d.ts.map +1 -1
  326. package/dist/runners/hubPackage.js +5 -6
  327. package/dist/runners/hubPackage.js.map +1 -1
  328. package/dist/runners/hubPairing.d.ts +19 -0
  329. package/dist/runners/hubPairing.d.ts.map +1 -1
  330. package/dist/runners/hubPairing.js +38 -0
  331. package/dist/runners/hubPairing.js.map +1 -1
  332. package/dist/runners/hubRegistry.d.ts +8 -0
  333. package/dist/runners/hubRegistry.d.ts.map +1 -1
  334. package/dist/runners/hubRegistry.js +6 -0
  335. package/dist/runners/hubRegistry.js.map +1 -1
  336. package/dist/runners/pairCode.d.ts +34 -3
  337. package/dist/runners/pairCode.d.ts.map +1 -1
  338. package/dist/runners/pairCode.js +65 -13
  339. package/dist/runners/pairCode.js.map +1 -1
  340. package/dist/runners/runnerGroups.d.ts +22 -0
  341. package/dist/runners/runnerGroups.d.ts.map +1 -0
  342. package/dist/runners/runnerGroups.js +41 -0
  343. package/dist/runners/runnerGroups.js.map +1 -0
  344. package/dist/runners/runnerLock.d.ts +36 -1
  345. package/dist/runners/runnerLock.d.ts.map +1 -1
  346. package/dist/runners/runnerLock.js +94 -30
  347. package/dist/runners/runnerLock.js.map +1 -1
  348. package/dist/runners/runnersCli.d.ts +5 -2
  349. package/dist/runners/runnersCli.d.ts.map +1 -1
  350. package/dist/runners/runnersCli.js +59 -9
  351. package/dist/runners/runnersCli.js.map +1 -1
  352. package/dist/runners/runnersList.d.ts +1 -1
  353. package/dist/runners/runnersList.d.ts.map +1 -1
  354. package/dist/runners/runnersList.js +3 -1
  355. package/dist/runners/runnersList.js.map +1 -1
  356. package/dist/runners/runnersOverview.d.ts.map +1 -1
  357. package/dist/runners/runnersOverview.js +8 -4
  358. package/dist/runners/runnersOverview.js.map +1 -1
  359. package/dist/scheduler/checkRun.d.ts +0 -2
  360. package/dist/scheduler/checkRun.d.ts.map +1 -1
  361. package/dist/scheduler/checkRun.js +0 -10
  362. package/dist/scheduler/checkRun.js.map +1 -1
  363. package/dist/scheduler/checkStatus.d.ts +2 -0
  364. package/dist/scheduler/checkStatus.d.ts.map +1 -1
  365. package/dist/scheduler/checkStatus.js +5 -4
  366. package/dist/scheduler/checkStatus.js.map +1 -1
  367. package/dist/scheduler/delivery.d.ts +2 -1
  368. package/dist/scheduler/delivery.d.ts.map +1 -1
  369. package/dist/scheduler/delivery.js +5 -1
  370. package/dist/scheduler/delivery.js.map +1 -1
  371. package/dist/scheduler/mcpSurface.d.ts +7 -3
  372. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  373. package/dist/scheduler/mcpSurface.js +48 -22
  374. package/dist/scheduler/mcpSurface.js.map +1 -1
  375. package/dist/scheduler/workerWatch.d.ts +33 -10
  376. package/dist/scheduler/workerWatch.d.ts.map +1 -1
  377. package/dist/scheduler/workerWatch.js +37 -11
  378. package/dist/scheduler/workerWatch.js.map +1 -1
  379. package/dist/selfUpdate/bootRollback.d.ts.map +1 -1
  380. package/dist/selfUpdate/bootRollback.js +3 -2
  381. package/dist/selfUpdate/bootRollback.js.map +1 -1
  382. package/dist/selfUpdate/updateRuntime.d.ts.map +1 -1
  383. package/dist/selfUpdate/updateRuntime.js +6 -3
  384. package/dist/selfUpdate/updateRuntime.js.map +1 -1
  385. package/dist/state.d.ts +144 -2
  386. package/dist/state.d.ts.map +1 -1
  387. package/dist/state.js +257 -7
  388. package/dist/state.js.map +1 -1
  389. package/dist/testTimings.d.ts +6 -2
  390. package/dist/testTimings.d.ts.map +1 -1
  391. package/dist/testTimings.js +12 -1
  392. package/dist/testTimings.js.map +1 -1
  393. package/dist/threadContextPreamble.d.ts +15 -1
  394. package/dist/threadContextPreamble.d.ts.map +1 -1
  395. package/dist/threadContextPreamble.js +15 -3
  396. package/dist/threadContextPreamble.js.map +1 -1
  397. package/dist/threadRouting.d.ts +47 -4
  398. package/dist/threadRouting.d.ts.map +1 -1
  399. package/dist/threadRouting.js +31 -4
  400. package/dist/threadRouting.js.map +1 -1
  401. package/dist/todos/projects.d.ts +1 -1
  402. package/dist/todos/projects.d.ts.map +1 -1
  403. package/dist/todos/projects.js +3 -14
  404. package/dist/todos/projects.js.map +1 -1
  405. package/dist/topicTalkerMemory.d.ts +37 -0
  406. package/dist/topicTalkerMemory.d.ts.map +1 -0
  407. package/dist/topicTalkerMemory.js +61 -0
  408. package/dist/topicTalkerMemory.js.map +1 -0
  409. package/dist/topicTalkers.d.ts +123 -0
  410. package/dist/topicTalkers.d.ts.map +1 -0
  411. package/dist/topicTalkers.js +276 -0
  412. package/dist/topicTalkers.js.map +1 -0
  413. package/dist/types.d.ts +7 -5
  414. package/dist/types.d.ts.map +1 -1
  415. package/dist/utils/agentEnvironment.d.ts +23 -0
  416. package/dist/utils/agentEnvironment.d.ts.map +1 -1
  417. package/dist/utils/agentEnvironment.js +33 -1
  418. package/dist/utils/agentEnvironment.js.map +1 -1
  419. package/dist/utils/agentPlugin.d.ts +9 -3
  420. package/dist/utils/agentPlugin.d.ts.map +1 -1
  421. package/dist/utils/agentPlugin.js +13 -6
  422. package/dist/utils/agentPlugin.js.map +1 -1
  423. package/dist/utils/authorMark.d.ts +59 -0
  424. package/dist/utils/authorMark.d.ts.map +1 -0
  425. package/dist/utils/authorMark.js +86 -0
  426. package/dist/utils/authorMark.js.map +1 -0
  427. package/dist/utils/botSkills.d.ts +1 -1
  428. package/dist/utils/claudeApiAgentStop.d.ts +64 -0
  429. package/dist/utils/claudeApiAgentStop.d.ts.map +1 -0
  430. package/dist/utils/claudeApiAgentStop.js +85 -0
  431. package/dist/utils/claudeApiAgentStop.js.map +1 -0
  432. package/dist/utils/claudeApiCredit.d.ts +168 -0
  433. package/dist/utils/claudeApiCredit.d.ts.map +1 -0
  434. package/dist/utils/claudeApiCredit.js +260 -0
  435. package/dist/utils/claudeApiCredit.js.map +1 -0
  436. package/dist/utils/claudeApiCreditRecheck.d.ts +120 -0
  437. package/dist/utils/claudeApiCreditRecheck.d.ts.map +1 -0
  438. package/dist/utils/claudeApiCreditRecheck.js +173 -0
  439. package/dist/utils/claudeApiCreditRecheck.js.map +1 -0
  440. package/dist/utils/claudeCompactHook.d.ts +18 -10
  441. package/dist/utils/claudeCompactHook.d.ts.map +1 -1
  442. package/dist/utils/claudeCompactHook.js +35 -14
  443. package/dist/utils/claudeCompactHook.js.map +1 -1
  444. package/dist/utils/claudeLimitSwitch.d.ts +5 -1
  445. package/dist/utils/claudeLimitSwitch.d.ts.map +1 -1
  446. package/dist/utils/claudeLimitSwitch.js +6 -2
  447. package/dist/utils/claudeLimitSwitch.js.map +1 -1
  448. package/dist/utils/claudeProfileUsageLines.d.ts +14 -2
  449. package/dist/utils/claudeProfileUsageLines.d.ts.map +1 -1
  450. package/dist/utils/claudeProfileUsageLines.js +78 -7
  451. package/dist/utils/claudeProfileUsageLines.js.map +1 -1
  452. package/dist/utils/claudeProfileUsageViews.d.ts +46 -0
  453. package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -0
  454. package/dist/utils/claudeProfileUsageViews.js +114 -0
  455. package/dist/utils/claudeProfileUsageViews.js.map +1 -0
  456. package/dist/utils/claudeProfiles.d.ts +22 -0
  457. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  458. package/dist/utils/claudeProfiles.js +69 -0
  459. package/dist/utils/claudeProfiles.js.map +1 -1
  460. package/dist/utils/claudeUsage.d.ts +145 -51
  461. package/dist/utils/claudeUsage.d.ts.map +1 -1
  462. package/dist/utils/claudeUsage.js +211 -94
  463. package/dist/utils/claudeUsage.js.map +1 -1
  464. package/dist/utils/compactOnIdle.d.ts +140 -15
  465. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  466. package/dist/utils/compactOnIdle.js +209 -23
  467. package/dist/utils/compactOnIdle.js.map +1 -1
  468. package/dist/utils/compactSelfReviewFlags.d.ts +50 -0
  469. package/dist/utils/compactSelfReviewFlags.d.ts.map +1 -0
  470. package/dist/utils/compactSelfReviewFlags.js +120 -0
  471. package/dist/utils/compactSelfReviewFlags.js.map +1 -0
  472. package/dist/utils/fallbackChain.d.ts +18 -7
  473. package/dist/utils/fallbackChain.d.ts.map +1 -1
  474. package/dist/utils/fallbackChain.js +36 -16
  475. package/dist/utils/fallbackChain.js.map +1 -1
  476. package/dist/utils/folderGit.d.ts +9 -0
  477. package/dist/utils/folderGit.d.ts.map +1 -0
  478. package/dist/utils/folderGit.js +33 -0
  479. package/dist/utils/folderGit.js.map +1 -0
  480. package/dist/utils/forwardedMark.d.ts +8 -0
  481. package/dist/utils/forwardedMark.d.ts.map +1 -1
  482. package/dist/utils/forwardedMark.js +2 -0
  483. package/dist/utils/forwardedMark.js.map +1 -1
  484. package/dist/utils/jsonStreamHost.d.ts +2 -1
  485. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  486. package/dist/utils/jsonStreamHost.js +4 -2
  487. package/dist/utils/jsonStreamHost.js.map +1 -1
  488. package/dist/utils/messageContext.d.ts +22 -7
  489. package/dist/utils/messageContext.d.ts.map +1 -1
  490. package/dist/utils/messageContext.js +19 -5
  491. package/dist/utils/messageContext.js.map +1 -1
  492. package/dist/utils/openCodeCompactPlugin.d.ts +28 -7
  493. package/dist/utils/openCodeCompactPlugin.d.ts.map +1 -1
  494. package/dist/utils/openCodeCompactPlugin.js +80 -15
  495. package/dist/utils/openCodeCompactPlugin.js.map +1 -1
  496. package/dist/utils/personLabel.d.ts +13 -0
  497. package/dist/utils/personLabel.d.ts.map +1 -0
  498. package/dist/utils/personLabel.js +15 -0
  499. package/dist/utils/personLabel.js.map +1 -0
  500. package/dist/utils/replyQuote.d.ts +17 -3
  501. package/dist/utils/replyQuote.d.ts.map +1 -1
  502. package/dist/utils/replyQuote.js +25 -2
  503. package/dist/utils/replyQuote.js.map +1 -1
  504. package/dist/utils/runnersScreenPlan.d.ts +51 -20
  505. package/dist/utils/runnersScreenPlan.d.ts.map +1 -1
  506. package/dist/utils/runnersScreenPlan.js +143 -28
  507. package/dist/utils/runnersScreenPlan.js.map +1 -1
  508. package/dist/utils/streamedCompactionSummary.d.ts +65 -0
  509. package/dist/utils/streamedCompactionSummary.d.ts.map +1 -0
  510. package/dist/utils/streamedCompactionSummary.js +108 -0
  511. package/dist/utils/streamedCompactionSummary.js.map +1 -0
  512. package/dist/utils/talkerAccess.d.ts +9 -0
  513. package/dist/utils/talkerAccess.d.ts.map +1 -0
  514. package/dist/utils/talkerAccess.js +20 -0
  515. package/dist/utils/talkerAccess.js.map +1 -0
  516. package/dist/utils/tmuxExec.d.ts +20 -8
  517. package/dist/utils/tmuxExec.d.ts.map +1 -1
  518. package/dist/utils/tmuxExec.js +27 -7
  519. package/dist/utils/tmuxExec.js.map +1 -1
  520. package/dist/utils/topicAccessScreenPlan.d.ts +253 -0
  521. package/dist/utils/topicAccessScreenPlan.d.ts.map +1 -0
  522. package/dist/utils/topicAccessScreenPlan.js +287 -0
  523. package/dist/utils/topicAccessScreenPlan.js.map +1 -0
  524. package/dist/utils/topicLabel.d.ts +12 -0
  525. package/dist/utils/topicLabel.d.ts.map +1 -0
  526. package/dist/utils/topicLabel.js +12 -0
  527. package/dist/utils/topicLabel.js.map +1 -0
  528. package/dist/utils/topicRequest.d.ts +8 -5
  529. package/dist/utils/topicRequest.d.ts.map +1 -1
  530. package/dist/utils/topicRequest.js +9 -7
  531. package/dist/utils/topicRequest.js.map +1 -1
  532. package/npm-shrinkwrap.json +1003 -0
  533. package/package.json +5 -3
  534. package/remoteRun/ensureNode.sh +288 -0
  535. package/remoteRun/runner.sh +2252 -115
  536. package/agent-plugin/skills/charness-manager/SKILL.md +0 -157
  537. package/remoteRun/pickNode.sh +0 -65
@@ -142,6 +142,21 @@ export declare function checkIsAnthropicSecretLike(text: string): boolean;
142
142
  export declare function extractAnthropicApiKey(text: string): string | null;
143
143
  /** The key file of a profile directory. */
144
144
  export declare function resolveClaudeProfileApiKeyFile(configDir: string): string;
145
+ /**
146
+ * @description The API key an ADDED profile's own sessions use, read to make ONE direct request on its behalf (the daily
147
+ * credit recheck): the pasted key file, else the key a Console login stored in the profile's `.claude.json`. `null` when the
148
+ * directory holds neither, or what it holds does not look like an API key. The caller puts it in a request header and
149
+ * nowhere else — it is never logged, echoed or stored.
150
+ */
151
+ export declare function readClaudeProfileApiKey(configDir: string): string | null;
152
+ /**
153
+ * @description The API key of the `default` profile (`~/.claude`, when it is billed to API credits), `null` unless its sessions
154
+ * run on the key a Console login left in the home `.claude.json` (`primaryApiKey`; `isConsoleLoginKey`, from the auth probe):
155
+ * the CLI prefers an `apiKeyHelper` or a variable over that key, and a stale `primaryApiKey` left by an earlier login would be
156
+ * asked on a key the sessions do not use. The bot never writes a pasted key for the default. Same rules as
157
+ * {@link readClaudeProfileApiKey}.
158
+ */
159
+ export declare function readDefaultClaudeProfileApiKey(isConsoleLoginKey: boolean, homeDir?: string): string | null;
145
160
  /** Whether the profile directory holds a pasted key (`null` = `~/.claude`, which never does: the bot writes none there). */
146
161
  export declare function checkHasClaudeProfileApiKey(configDir: string | null): boolean;
147
162
  /**
@@ -166,6 +181,13 @@ export type ClaudeAccountKind = 'personal' | 'corporate' | 'unknown';
166
181
  /** Personal (`pro`, `max`) versus corporate (`team`, `enterprise`) subscription, from the CLI's `subscriptionType`. */
167
182
  export declare function getClaudeAccountKind(subscriptionType: string | null): ClaudeAccountKind;
168
183
  export declare const claudeConfigDirVariableName = "CLAUDE_CONFIG_DIR";
184
+ /**
185
+ * @description The environment a `claude auth …` process runs with (a sign-in, an auth-status probe): the bot's own
186
+ * without its secrets and without `ANTHROPIC_API_KEY` (the subscription login, never the metered console path), plus
187
+ * `CLAUDE_CONFIG_DIR` for a profile's directory (`null` = `~/.claude`) — the login must land in THAT directory, and the
188
+ * status probe must read the same one.
189
+ */
190
+ export declare function getClaudeAuthCommandEnvironment(configDir: string | null): NodeJS.ProcessEnv;
169
191
  /**
170
192
  * @description Whether two `CLAUDE_CONFIG_DIR` values name the same directory: equal strings, or paths that
171
193
  * resolve to the same real directory. A process adopted after the data dir was moved to its new name keeps
@@ -1 +1 @@
1
- {"version":3,"file":"claudeProfiles.d.ts","sourceRoot":"","sources":["../../src/utils/claudeProfiles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAMH,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD,8EAA8E;AAC9E,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AAEvD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,6DAA8D,CAAC;AACtG,eAAO,MAAM,kCAAkC,wBAAyB,CAAC;AAEzE,iGAAiG;AACjG,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAG7C,wHAAwH;AACxH,eAAO,MAAM,2BAA2B,UAAU,CAAC;AAEnD;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEnE;AAED,2GAA2G;AAC3G,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGpF;AAED,qEAAqE;AACrE,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,MAAqB,GAAG,MAAM,CAE3E;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CA6BlH;AAED;;;GAGG;AACH,wBAAgB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I,GAAG,iBAAiB,CAMvF;AAID,eAAO,MAAM,2BAA2B,sBAAsB,CAAC;AAE/D;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC,UAAU,CAK3F;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAQ7F;AAED;;;;;;GAMG;AACH,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAM9E"}
@@ -71,17 +71,21 @@ 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;
77
79
  exports.readProcessErrorStdout = readProcessErrorStdout;
78
80
  exports.getProcessFailureReason = getProcessFailureReason;
79
81
  exports.getClaudeAccountKind = getClaudeAccountKind;
82
+ exports.getClaudeAuthCommandEnvironment = getClaudeAuthCommandEnvironment;
80
83
  exports.checkIsSameClaudeConfigDir = checkIsSameClaudeConfigDir;
81
84
  exports.parseClaudeConfigDirFromCommand = parseClaudeConfigDirFromCommand;
82
85
  const fs = __importStar(require("fs"));
83
86
  const os = __importStar(require("os"));
84
87
  const path = __importStar(require("path"));
88
+ const agentEnvironment_1 = require("./agentEnvironment");
85
89
  /** The profile that is `~/.claude` itself (no `CLAUDE_CONFIG_DIR`). */
86
90
  exports.defaultClaudeProfileName = 'default';
87
91
  /** Subdirectory of `DATA_DIR` that holds every profile's config directory. */
@@ -306,6 +310,58 @@ function extractAnthropicApiKey(text) {
306
310
  function resolveClaudeProfileApiKeyFile(configDir) {
307
311
  return path.join(configDir, exports.claudeProfileApiKeyFileName);
308
312
  }
313
+ /** The profile's own `.claude.json`: where `claude auth login --console` keeps the key it created (`primaryApiKey`). */
314
+ const claudeProfileStateFileName = '.claude.json';
315
+ /** The text of a file, `null` when it cannot be read. */
316
+ function readTextFileOrNull(file) {
317
+ try {
318
+ return fs.readFileSync(file, 'utf8');
319
+ }
320
+ catch {
321
+ return null;
322
+ }
323
+ }
324
+ /** The `primaryApiKey` of a Claude Code state file (`.claude.json`), `null` when there is none or it is no API key. */
325
+ function readPrimaryApiKey(stateFile) {
326
+ const stateText = readTextFileOrNull(stateFile);
327
+ if (stateText === null)
328
+ return null;
329
+ // The file is the CLI's, not ours: whatever it holds is narrowed step by step before it is trusted (no schema library —
330
+ // this module is loaded by the connector guards before any env file is read).
331
+ let parsed;
332
+ try {
333
+ parsed = JSON.parse(stateText);
334
+ }
335
+ catch {
336
+ return null;
337
+ }
338
+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
339
+ return null;
340
+ const key = 'primaryApiKey' in parsed ? parsed.primaryApiKey : undefined;
341
+ return typeof key === 'string' && checkIsPlausibleAnthropicApiKey(key) ? key.trim() : null;
342
+ }
343
+ /**
344
+ * @description The API key an ADDED profile's own sessions use, read to make ONE direct request on its behalf (the daily
345
+ * credit recheck): the pasted key file, else the key a Console login stored in the profile's `.claude.json`. `null` when the
346
+ * directory holds neither, or what it holds does not look like an API key. The caller puts it in a request header and
347
+ * nowhere else — it is never logged, echoed or stored.
348
+ */
349
+ function readClaudeProfileApiKey(configDir) {
350
+ const pastedKey = readTextFileOrNull(resolveClaudeProfileApiKeyFile(configDir));
351
+ if (pastedKey !== null && checkIsPlausibleAnthropicApiKey(pastedKey))
352
+ return pastedKey.trim();
353
+ return readPrimaryApiKey(path.join(configDir, claudeProfileStateFileName));
354
+ }
355
+ /**
356
+ * @description The API key of the `default` profile (`~/.claude`, when it is billed to API credits), `null` unless its sessions
357
+ * run on the key a Console login left in the home `.claude.json` (`primaryApiKey`; `isConsoleLoginKey`, from the auth probe):
358
+ * the CLI prefers an `apiKeyHelper` or a variable over that key, and a stale `primaryApiKey` left by an earlier login would be
359
+ * asked on a key the sessions do not use. The bot never writes a pasted key for the default. Same rules as
360
+ * {@link readClaudeProfileApiKey}.
361
+ */
362
+ function readDefaultClaudeProfileApiKey(isConsoleLoginKey, homeDir = os.homedir()) {
363
+ return isConsoleLoginKey ? readPrimaryApiKey(path.join(homeDir, claudeProfileStateFileName)) : null;
364
+ }
309
365
  /** Whether the profile directory holds a pasted key (`null` = `~/.claude`, which never does: the bot writes none there). */
310
366
  function checkHasClaudeProfileApiKey(configDir) {
311
367
  if (configDir === null)
@@ -374,6 +430,19 @@ function getClaudeAccountKind(subscriptionType) {
374
430
  }
375
431
  // ── the spawn-side variable ──
376
432
  exports.claudeConfigDirVariableName = 'CLAUDE_CONFIG_DIR';
433
+ /**
434
+ * @description The environment a `claude auth …` process runs with (a sign-in, an auth-status probe): the bot's own
435
+ * without its secrets and without `ANTHROPIC_API_KEY` (the subscription login, never the metered console path), plus
436
+ * `CLAUDE_CONFIG_DIR` for a profile's directory (`null` = `~/.claude`) — the login must land in THAT directory, and the
437
+ * status probe must read the same one.
438
+ */
439
+ function getClaudeAuthCommandEnvironment(configDir) {
440
+ const environment = (0, agentEnvironment_1.getChildProcessEnvironment)();
441
+ delete environment.ANTHROPIC_API_KEY;
442
+ if (configDir !== null)
443
+ environment[exports.claudeConfigDirVariableName] = configDir;
444
+ return environment;
445
+ }
377
446
  /**
378
447
  * @description Whether two `CLAUDE_CONFIG_DIR` values name the same directory: equal strings, or paths that
379
448
  * resolve to the same real directory. A process adopted after the data dir was moved to its new name keeps
@@ -1 +1 @@
1
-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,SAAS,CAAC;AACnB,CAAC;AAED,gCAAgC;AAEnB,QAAA,2BAA2B,GAAG,mBAAmB,CAAC;AAE/D;;;;;GAKG;AACH,SAAgB,+BAA+B,CAAC,SAAwB;IACtE,MAAM,WAAW,GAAG,IAAA,6CAA0B,GAAE,CAAC;IACjD,OAAO,WAAW,CAAC,iBAAiB,CAAC;IACrC,IAAI,SAAS,KAAK,IAAI;QAAE,WAAW,CAAC,mCAA2B,CAAC,GAAG,SAAS,CAAC;IAC7E,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;;;;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`):
@@ -14,7 +15,12 @@
14
15
  * — the last one IS the Fable window: same utilization and reset instant as the endpoint's scoped limit).
15
16
  *
16
17
  * Token refresh is the CLI's job: a token past its `expiresAt` is never used (nor refreshed here) — the
17
- * snapshot is marked stale and the next CLI run renews it. The token itself is never logged or returned.
18
+ * snapshot is marked stale and the next CLI run renews it (every poll re-reads the token file, so the poll after that run
19
+ * recovers by itself). An account no CLI runs on keeps that stale snapshot for as long as it sits idle, so every reader reads
20
+ * the used percent of a bucket AGAINST THE CLOCK ({@link getClaudeUsagePercentAsOf}): a window whose reset has passed is over,
21
+ * whatever was read. What the account has used since — through a login on another machine or another host user — is invisible
22
+ * here (nothing can be polled without a live token), and a screen shows no reset for the next period: nothing says when it ends.
23
+ * The token itself is never logged or returned.
18
24
  *
19
25
  * Pure except {@link readClaudeOAuthToken} (one file read) and {@link fetchClaudeUsage} (one GET through an
20
26
  * injectable `fetch`), so the rest is unit-tested without the network.
@@ -22,6 +28,7 @@
22
28
  import type { ClaudeProfileRecord } from '../state';
23
29
  import { type ClaudeAccountKind, type ClaudeProfileBilling } from './claudeProfiles';
24
30
  import type { ClaudeApiSpend } from './claudeApiSpend';
31
+ import type { ClaudeApiCreditAnchor, ClaudeApiCreditSpend } from './claudeApiCredit';
25
32
  export declare const claudeUsageEndpoint = "https://api.anthropic.com/api/oauth/usage";
26
33
  export declare const claudeUsageFetchTimeoutMs = 15000;
27
34
  /** The one usage window kind set, named by what it bounds rather than by the API's spelling. */
@@ -141,12 +148,13 @@ export declare function checkIsScopedWeeklyModel(model: string | null): boolean;
141
148
  */
142
149
  export declare function getRelevantClaudeUsageKinds(model: string | null): ClaudeUsageBucketKind[];
143
150
  /**
144
- * @description Whether every window a launch of `model` drains is KNOWN and below 100 % — the model is clear of an exhausted
145
- * window: a Fable-only weekly limit does not stop `sonnet`, while an exhausted session or shared weekly window stops every
146
- * model, Fable included. Unknown figures (no snapshot, a window the snapshot lacks) are `false`: a limit nobody can tell the
147
- * scope of is taken to cover the model. A stale snapshot still counts — its last figures are the best there are.
151
+ * @description Whether every window a launch of `model` drains is KNOWN and below 100 % at `nowMs` — the model is clear of an
152
+ * exhausted window: a Fable-only weekly limit does not stop `sonnet`, while an exhausted session or shared weekly window stops
153
+ * every model, Fable included. Unknown figures (no snapshot, a window the snapshot lacks) are `false`: a limit nobody can tell
154
+ * the scope of is taken to cover the model. A stale snapshot still counts — its last figures are the best there are — read
155
+ * against the clock ({@link getClaudeUsagePercentAsOf}): a window whose reset has passed counts as empty.
148
156
  */
149
- export declare function checkHasHeadroomForClaudeModel(usage: ClaudeUsageSnapshot | undefined, model: string | null): boolean;
157
+ export declare function checkHasHeadroomForClaudeModel(usage: ClaudeUsageSnapshot | undefined, model: string | null, nowMs: number): boolean;
150
158
  /**
151
159
  * @description Whether the usage reading SHOWS a window `model` drains at 100 % NOW (`nowMs`) — the proof an
152
160
  * unconfirmed usage-limit wording lacks. Unknown figures prove nothing (`false`), unlike
@@ -154,15 +162,23 @@ export declare function checkHasHeadroomForClaudeModel(usage: ClaudeUsageSnapsho
154
162
  * out-of-date reading — a snapshot marked stale, or a 100 % window whose reset has passed since it was read.
155
163
  */
156
164
  export declare function checkIsClaudeUsageExhausted(usage: ClaudeUsageSnapshot | undefined, model: string | null, nowMs: number): boolean;
165
+ /**
166
+ * @description Whether every window a launch of `model` drains that the snapshot carries has passed its reset instant by
167
+ * `nowMs` — the clock proves the windows that were read are OVER, whether or not the snapshot could be re-read (an account no
168
+ * CLI runs on keeps an expired token and a stale snapshot for good). It does NOT say what was used since: a login of the same
169
+ * account elsewhere (another machine, another host user) leaves no trace here. `false` for no figures, and for any window
170
+ * that is still running or names no reset.
171
+ */
172
+ export declare function checkHaveClaudeUsageWindowsReset(usage: ClaudeUsageSnapshot | undefined, model: string | null, nowMs: number): boolean;
157
173
  /**
158
174
  * @description Whether a pick of `pickedModel`, on the account a usage limit stopped while it ran `limitedModel`, is clear of that
159
175
  * limit. The window that stopped the limited model is one of the windows IT drains, so a picked model that drains all of them
160
176
  * (the same model, a model on the same windows, or Fable after any other model — Fable drains the shared windows too) is covered
161
177
  * by the limit however far the figures lag behind it. Only a model draining FEWER windows — a non-Fable model after Fable, which
162
- * may have stopped on its own weekly window alone — is judged by {@link checkHasHeadroomForClaudeModel}. An unknown
178
+ * may have stopped on its own weekly window alone — is judged by {@link checkHasHeadroomForClaudeModel} at `nowMs`. An unknown
163
179
  * `limitedModel` leaves it to the figures.
164
180
  */
165
- export declare function checkIsClaudeModelClearOfLimit(usage: ClaudeUsageSnapshot | undefined, limitedModel: string | null, pickedModel: string): boolean;
181
+ export declare function checkIsClaudeModelClearOfLimit(usage: ClaudeUsageSnapshot | undefined, limitedModel: string | null, pickedModel: string, nowMs: number): boolean;
166
182
  /** What the ranking needs to know about one profile (the bot reads it off state, the CLI off state.json). */
167
183
  export interface ClaudeProfileUsageView {
168
184
  name: string;
@@ -174,10 +190,20 @@ export interface ClaudeProfileUsageView {
174
190
  limitedUntil: string | null;
175
191
  /** How the account pays; `null` when never recorded (a subscription account added before billing was). */
176
192
  billing: ClaudeProfileBilling | null;
193
+ /** 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`. */
194
+ agentHoldUntil?: string | null;
177
195
  /** When its prepaid API credits were found used up; `null` while they are not (or the operator acted since). */
178
196
  creditExhaustedAt: string | null;
179
197
  /** What an account billed to API credits spent through the bot; absent before its first counted turn. */
180
198
  apiSpend?: ClaudeApiSpend;
199
+ /** The figure the operator read on the Console's Billing page (`utils/claudeApiCredit.ts`); absent = none given. */
200
+ creditAnchor?: ClaudeApiCreditAnchor;
201
+ /** 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. */
202
+ creditSpend?: ClaudeApiCreditSpend;
203
+ /** When the bot detected that the account's used-up credit was back; absent = never. */
204
+ creditRenewedAt?: string;
205
+ /** The refusal the operator acted on (picked the account again): not excluded any more, the renewal still awaited; absent = none. */
206
+ creditUnconfirmedSince?: string;
181
207
  }
182
208
  /** One profile in the report the MCP tool and the CLI hand to an agent. */
183
209
  export interface ClaudeProfileReportEntry {
@@ -188,22 +214,36 @@ export interface ClaudeProfileReportEntry {
188
214
  kind: ClaudeAccountKind;
189
215
  subscriptionType: string | null;
190
216
  /**
191
- * `api`: billed per request to a Claude Console organization's API credits — no windows, so no headroom figure, and
192
- * NEVER picked for a NEW agent (it would look inexhaustible and spend money); only a warm session already on it stays.
193
- * `null`: a subscription not recorded as such.
217
+ * `api`: billed per request to a Claude Console organization's API credits — no windows, so no headroom figure. It is
218
+ * recommended to a NEW agent only when the operator's `/limits` list holds it as an enabled rung (then FIRST, while its
219
+ * credit lasts); with no such rung only a warm session already on it stays. `null`: a subscription not recorded as such.
194
220
  */
195
221
  billing: ClaudeProfileBilling | null;
196
222
  /** `null` when never probed. */
197
223
  loggedIn: boolean | null;
224
+ /** The windows as read, their used percent against the clock ({@link getClaudeUsagePercentAsOf}): one whose reset has passed since it was read is 0 % — its `resetsAt` stays the instant that passed, no next reset is estimated. */
198
225
  buckets: ClaudeUsageBucket[];
199
226
  usageFetchedAt: string | null;
227
+ /** The figures were not re-read at the last poll (an expired token, a failed fetch); `buckets` are the last known ones (a passed window shows 0 %). */
200
228
  isUsageStale: boolean;
201
229
  limitedUntil: string | null;
202
230
  /** When its prepaid API credits were found used up (`null`: not marked). */
203
231
  creditExhaustedAt: string | null;
204
- /** 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. */
232
+ /** 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). */
233
+ spentUsd: number | null;
234
+ /** The operator's figure (or, after a renewal, the last grant they gave) minus the spend; `null` when no figure was ever given. */
235
+ remainingEstimateUsd: number | null;
236
+ /** 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). */
237
+ expiresOn: string | null;
238
+ /** A refusal for a used-up balance came after the period began and nothing has answered since: the bot cannot be sure. */
239
+ probablyUsedUp: boolean;
240
+ /** When the bot detected the credit was back (the current period starts there); `null` = never or superseded by a newer figure. */
241
+ renewedAt: string | null;
242
+ /** Signed in, not limited, its API credits not used up, not at 100 % on a window the model drains — by the figures AS OF NOW (a window whose reset has passed counts as empty) — and not kept off agents by the `/limits` list (`chainExclusion`). */
205
243
  isEligible: boolean;
206
- /** `100 − max(relevant percent)`; `null` when the usage is unknown. Informational: the pick ranks by reset, not by headroom. */
244
+ /** 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). */
245
+ chainExclusion: ClaudeChainExclusion | null;
246
+ /** `100 − max(relevant percent)` as of now; `null` when the usage is unknown. Informational: the pick ranks by reset, not by headroom. */
207
247
  headroomPercent: number | null;
208
248
  /** The profile {@link getClaudeLaunchPick} chose (the figures read as of now). */
209
249
  isRecommended: boolean;
@@ -228,10 +268,12 @@ export declare const claudeWeeklyWindowMs: number;
228
268
  export declare const claudeSessionWindowMs: number;
229
269
  /**
230
270
  * `warm`: the session stays on its account; `movedFromLimited`: it was stopped by a limit and goes elsewhere;
231
- * `movedFromUnavailable`: its account can no longer run (signed out, marked limited, out of credits, a window full) and it
232
- * goes elsewhere; `soonestWeeklyReset`: a new agent; `none`: nothing is usable.
271
+ * `movedFromUnavailable`: its account can no longer run (signed out, marked limited, out of credits, a window full, or
272
+ * taken out of the `/limits` list) and it goes elsewhere; `soonestWeeklyReset`: a new agent on the subscription whose weekly
273
+ * window resets soonest; `apiCreditFirst`: a new agent on an account billed to API credits the `/limits` list holds (it goes
274
+ * before every subscription while its credit lasts); `none`: nothing is usable.
233
275
  */
234
- export type ClaudeLaunchPickReason = 'warm' | 'movedFromLimited' | 'movedFromUnavailable' | 'soonestWeeklyReset' | 'none';
276
+ export type ClaudeLaunchPickReason = 'warm' | 'movedFromLimited' | 'movedFromUnavailable' | 'soonestWeeklyReset' | 'apiCreditFirst' | 'none';
235
277
  /** The account that frees up first and the ISO instant it does. */
236
278
  export interface ClaudeNextAvailable {
237
279
  profile: string;
@@ -248,9 +290,45 @@ export interface ClaudeLaunchPickOptions {
248
290
  currentProfile?: string | null;
249
291
  /** The session broke off on a usage limit of `currentProfile`: it is left out of this answer whatever the figures say. */
250
292
  isStoppedByLimit?: boolean;
251
- /** Accounts the operator switched off in the `/limits` list (every rung disabled): never picked for a new agent. */
252
- excludedNames?: ReadonlySet<string>;
293
+ /** 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). */
294
+ chainScope?: ClaudeLaunchChainScope | null;
295
+ /** 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). */
296
+ expiredApiNames?: ReadonlySet<string>;
297
+ }
298
+ /**
299
+ * What the operator's `/limits` auto-switch list (the fallback chain) says about the Claude accounts an AGENT may be pointed
300
+ * at: once the list names any Claude account, only the accounts with an ENABLED rung are recommended — to a new agent and
301
+ * to a resumed one alike. `fallbackChain.ts` builds it (`getClaudeLaunchChainScope`); `null` stands for a list with no Claude rung.
302
+ */
303
+ export interface ClaudeLaunchChainScope {
304
+ /** Accounts with at least one enabled Claude rung, in the list's order (several API accounts go first-listed-first). */
305
+ enabledNames: ReadonlySet<string>;
306
+ /** Accounts the list names only with switched-off rungs (🚫). */
307
+ disabledNames: ReadonlySet<string>;
253
308
  }
309
+ /** Why the `/limits` list keeps agents off an account: `switchedOff` = every rung of it is switched off, `notListed` = the list names the account nowhere. */
310
+ export type ClaudeChainExclusion = 'switchedOff' | 'notListed';
311
+ /** Every exclusion, in the order an answer names them. */
312
+ export declare const claudeChainExclusions: readonly ClaudeChainExclusion[];
313
+ /** The words of an exclusion for the first line of an answer and the command line. */
314
+ export declare const claudeChainExclusionWords: Readonly<Record<ClaudeChainExclusion, string>>;
315
+ /** Why `scope` keeps agents off the account `name`; `null` when it does not (no Claude account listed, or an enabled rung of it). */
316
+ export declare function getClaudeChainExclusion(name: string, scope: ClaudeLaunchChainScope | null | undefined): ClaudeChainExclusion | null;
317
+ /**
318
+ * @description The used percent of a bucket against the clock — THE one rule every screen and every pick reads a figure by:
319
+ * a window whose reset instant has passed since the figure was read is over, so 0 %; a window with a reset ahead, with none or
320
+ * with an unreadable one keeps the figure as read. It says the OLD window ended, nothing about use since (another login of the
321
+ * account, on another machine or host user, is invisible here).
322
+ */
323
+ export declare function getClaudeUsagePercentAsOf(bucket: ClaudeUsageBucket, nowMs: number): number;
324
+ /**
325
+ * @description A bucket as the RANKING of accounts reads it at `nowMs` ({@link sortClaudeProfilesByLaunchRank}, the soonest-reset
326
+ * pick, `nextAvailable`): a window that has reset is empty ({@link getClaudeUsagePercentAsOf}) and its reset moves one window
327
+ * length per elapsed period ahead. That instant is an ESTIMATE made only so such an account has a place in an order — nothing
328
+ * shows that the next window started then (a five-hour window starts at the account's first use), so no screen, report or
329
+ * message may show it as a reset; they keep the instant that passed.
330
+ */
331
+ export declare function getClaudeUsageBucketAsOf(bucket: ClaudeUsageBucket, nowMs: number): ClaudeUsageBucket;
254
332
  /**
255
333
  * @description Whether a NEW agent of `model` may start on the profile now: a subscription account that is eligible by the
256
334
  * figures as of `nowMs` and whose five-hour window is below {@link claudeLaunchSessionCeilingPercent}. Switching it off
@@ -268,17 +346,27 @@ export declare function sortClaudeProfilesByLaunchRank<T extends ClaudeProfileUs
268
346
  /**
269
347
  * @description The account a process of `model` should run on.
270
348
  *
271
- * NEW agent (no `currentProfile`): of the USABLE accounts — subscription, signed in, not marked limited, not out of API
272
- * credits, not switched off (`excludedNames`), every weekly window the model drains below 100 % and the five-hour window
273
- * below {@link claudeLaunchSessionCeilingPercent} — the one whose weekly window resets soonest
274
- * ({@link sortClaudeProfilesByLaunchRank}): spend first what burns first, and move to a farther reset only when the
275
- * five-hour window is exhausted. Fable's own window at 100 % takes only Fable out.
349
+ * The operator's `/limits` list rules who may be named at all (`chainScope`): once it names any Claude account, only an account
350
+ * 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.
351
+ * A list with no Claude rung restricts nothing.
352
+ *
353
+ * NEW agent (no `currentProfile`): first an account billed to API credits the list holds (the operator's choice: spend the
354
+ * bonus credit before any subscription), as long as it is signed in, not marked limited, not held off agents (`agentHoldUntil`),
355
+ * its credits are not marked used up and the expiry day the operator gave (`expiredApiNames`) has not passed;
356
+ * then, of the USABLE subscription accounts — signed in, not marked limited, not out of API credits, every weekly window the
357
+ * model drains below 100 % and the five-hour window below {@link claudeLaunchSessionCeilingPercent} — the one whose weekly
358
+ * window resets soonest ({@link sortClaudeProfilesByLaunchRank}): spend first what burns first, and move to a farther reset only
359
+ * when the five-hour window is exhausted. Fable's own window at 100 % takes only Fable out. The list's ORDER ranks nothing but
360
+ * several API accounts among themselves: it was written for a topic's fallback, the agents' order is "API credit, then what
361
+ * burns soonest".
276
362
  *
277
- * WARM session (`currentProfile` known): it stays on that account unless the account is signed out, marked limited, out
278
- * of API credits or at 100 % on a window the model drains — the ceiling does not apply, and an API-billed account the
279
- * session already works on is kept (the spend was approved). `isStoppedByLimit` takes `currentProfile` out of the answer
280
- * whatever the figures say (they may lag the limit); the rest follows the new-agent rule, and the reason says the
281
- * session moved (`movedFromLimited`, or `movedFromUnavailable` when the account could no longer run by its own figures).
363
+ * WARM session (`currentProfile` known): it stays on that account unless the account is signed out, marked limited, held off
364
+ * agents (`agentHoldUntil`), out of API credits, at 100 % on a window the model drains, or no longer allowed by the list — the
365
+ * ceiling does not apply, and an
366
+ * API-billed account the session already works on is kept (the spend was approved) while the list does not take it out.
367
+ * `isStoppedByLimit` takes `currentProfile` out of the answer whatever the figures say (they may lag the limit); the rest
368
+ * follows the new-agent rule, and the reason says the session moved (`movedFromLimited`, or `movedFromUnavailable` when the
369
+ * account could no longer run by its own figures or the list).
282
370
  *
283
371
  * Nothing usable → `pick: null` and {@link ClaudeLaunchPick.nextAvailable}.
284
372
  */
@@ -289,28 +377,30 @@ export declare function getClaudeLaunchPick(input: ClaudeLaunchPickOptions & {
289
377
  }): ClaudeLaunchPick;
290
378
  /**
291
379
  * @description The pick in words, for the first line of the `claude_profiles` answer and the CLI: why the account was chosen
292
- * (`stays on the warm account`, `moved: <name> stopped on a limit` / `can no longer run`, `soonest weekly reset`), or that nothing is usable
380
+ * (`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
293
381
  * and which account frees up when. `currentProfile` is the account the caller passed for a resumed session.
294
382
  */
295
383
  export declare function describeClaudeLaunchOutcome(report: Pick<ClaudeProfilesReport, 'pickReason' | 'nextAvailable'>, currentProfile: string | null): string;
296
384
  /**
297
- * @description The report of every profile for a launch of `model`, with the pick of {@link getClaudeLaunchPick}
298
- * (`options`: the warm account, the limit stop, the switched-off accounts). `isEligible` is the strict reading — signed in,
299
- * not marked limited, its API credits not used up, not at 100 % on a relevant window as recorded — which the explicit
300
- * fallback chain's availability reads; `recommended` is the pick, an account billed to API credits only when a warm
301
- * session already runs on it. The entries keep the input order.
385
+ * @description The accounts the `/limits` list keeps agents off, one clause per reason (`not offered — not in the /limits list:
386
+ * a, b; switched off in the /limits list: c`), or `null` when there are none. The first lines of the `claude_profiles` answer
387
+ * and the CLI add it, so an agent that sees a signed-in account missing from `recommended` is told why.
302
388
  */
303
- export declare function buildClaudeProfilesReport(profiles: readonly ClaudeProfileUsageView[], model: string | null, nowMs: number, options?: ClaudeLaunchPickOptions): ClaudeProfilesReport;
389
+ export declare function describeClaudeChainExclusions(report: Pick<ClaudeProfilesReport, 'profiles'>): string | null;
304
390
  /**
305
- * @description The ranking's view of every profile off the registry: `default` (its hidden record, when the
306
- * bot has written one) first, then the added profiles in creation order. Shared by the bot (live state) and
307
- * the CLI (`state.json` read directly).
391
+ * @description The report of every profile for a launch of `model`, with the pick of {@link getClaudeLaunchPick}
392
+ * (`options`: the warm account, the limit stop, the `/limits` list). The figures of an entry are read as of `nowMs`
393
+ * ({@link getClaudeUsagePercentAsOf}: a window whose reset has passed since it was read counts as empty), its `isUsageStale` says
394
+ * they were not re-read; the pick itself ranks by the estimated next reset of {@link getClaudeUsageBucketAsOf}. `isEligible` is the strict reading — signed in, not marked limited, its API credits not used up, not
395
+ * at 100 % on a relevant window, no five-hour ceiling, not kept off agents by the list (`chainExclusion`) — which the
396
+ * explicit fallback chain's availability reads (it passes no list); `recommended` is the pick. The entries keep the input order.
397
+ *
398
+ * The credit fields of the entries (`spentUsd`, `remainingEstimateUsd`, `expiresOn`, `probablyUsedUp`, `renewedAt`) are left
399
+ * EMPTY here: this module is loaded by the connector guards, which may not reach the credit module. Anything that is shown to
400
+ * an agent or an operator — the `claude_profiles` tool, `charness claude-profiles` — uses `buildClaudeProfilesCreditReport`
401
+ * (`utils/claudeProfileUsageViews.ts`) instead; this builder is for the ranking (`fallbackChain.ts` reads `isEligible`).
308
402
  */
309
- export declare function buildClaudeProfileUsageViews(input: {
310
- dataDir: string;
311
- /** Every record, the hidden `default` one included (`StateStore.getClaudeProfileInfo` / the raw file). */
312
- records: Readonly<Record<string, ClaudeProfileRecord>>;
313
- }): ClaudeProfileUsageView[];
403
+ export declare function buildClaudeProfilesReport(profiles: readonly ClaudeProfileUsageView[], model: string | null, nowMs: number, options?: ClaudeLaunchPickOptions): ClaudeProfilesReport;
314
404
  /** The profile registry out of a `state.json` already read (`stateFile.ts`): entries without a creation time are dropped. */
315
405
  export declare function getClaudeProfileRecordsFromState(stateFile: Readonly<Record<string, unknown>>): Readonly<Record<string, ClaudeProfileRecord>>;
316
406
  /**
@@ -331,17 +421,21 @@ export declare const englishRelativeResetWords: ClaudeRelativeResetWords;
331
421
  /**
332
422
  * @description A reset instant as a time from now: `🔄 in 2d 1h`, `🔄 in 2h`, `🔄 in 30m`. The two largest
333
423
  * units at most, minutes only under an hour: from a day up it is days + hours (hours dropped when zero), from
334
- * an hour up whole hours (rounded), below that minutes (at least one). An instant already past reads as
335
- * `🔄 in 1m` (the window is about to roll over). `?` for a missing or unparseable instant.
424
+ * an hour up whole hours (rounded), below that minutes (at least one: the last seconds before a reset read `in 1m`).
425
+ * Pass an instant AHEAD — a past one is not a countdown ({@link formatClaudeUsageBucket} shows a window whose reset
426
+ * has passed as a bare percent, so it never passes one). `?` for a missing or unparseable instant.
336
427
  */
337
428
  export declare function formatClaudeUsageRelativeReset(resetsAt: string | null, nowMs: number, words?: ClaudeRelativeResetWords): string;
338
429
  /**
339
- * @description `81% 🔄 in 2h` for a bucket, `—` for a missing one. A bucket whose reset is unknown shows
340
- * `fallbackResetsAt` instead (the session window's reset is often missing while the weekly one is known);
341
- * with neither it is the bare percent — a «?» after a number would read as a doubt about the number.
430
+ * @description `81% 🔄 in 2h` for a bucket, `—` for a missing one. A bucket whose reset has passed since it was read shows a
431
+ * bare `0%` ({@link getClaudeUsagePercentAsOf}) — never the old figure with a reset «in 1m», and no countdown either: nothing
432
+ * says when its next period ends. A snapshot nobody could re-read (an expired token) must not claim a used-up window for ever;
433
+ * its stale mark is the caller's. A bucket whose reset is unknown shows the reset of `fallbackBucket` instead (the session
434
+ * window's reset is often missing while the weekly one is known) while that one is still ahead; with neither it is the bare
435
+ * percent — a «?» after a number would read as a doubt about the number.
342
436
  */
343
437
  export declare function formatClaudeUsageBucket(bucket: ClaudeUsageBucket | null, nowMs: number, options?: {
344
- fallbackResetsAt?: string | null;
438
+ fallbackBucket?: ClaudeUsageBucket | null;
345
439
  words?: ClaudeRelativeResetWords;
346
440
  }): string;
347
441
  //# sourceMappingURL=cla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