charness 4.2.0 → 4.3.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 (545) hide show
  1. package/CHANGELOG.md +157 -2
  2. package/DEVELOPMENT.md +58 -10
  3. package/LICENSE +331 -151
  4. package/MIGRATION_3_TO_4.md +8 -5
  5. package/README.md +21 -9
  6. package/SETUP.md +54 -10
  7. package/agent-plugin/README.md +10 -3
  8. package/agent-plugin/skills/charness-delegate-claude/SKILL.md +18 -27
  9. package/agent-plugin/skills/charness-delegate-opencode/SKILL.md +5 -3
  10. package/agent-plugin/skills/charness-orchestration/SKILL.md +56 -16
  11. package/dist/adapters/claudeCliAdapter.d.ts +4 -0
  12. package/dist/adapters/claudeCliAdapter.d.ts.map +1 -1
  13. package/dist/adapters/claudeCliAdapter.js +13 -0
  14. package/dist/adapters/claudeCliAdapter.js.map +1 -1
  15. package/dist/adapters/claudeJsonStreamAdapter.d.ts +136 -10
  16. package/dist/adapters/claudeJsonStreamAdapter.d.ts.map +1 -1
  17. package/dist/adapters/claudeJsonStreamAdapter.js +365 -77
  18. package/dist/adapters/claudeJsonStreamAdapter.js.map +1 -1
  19. package/dist/adapters/createAdapter.d.ts +12 -3
  20. package/dist/adapters/createAdapter.d.ts.map +1 -1
  21. package/dist/adapters/createAdapter.js +39 -13
  22. package/dist/adapters/createAdapter.js.map +1 -1
  23. package/dist/adapters/openCodeAdapter.d.ts +34 -0
  24. package/dist/adapters/openCodeAdapter.d.ts.map +1 -1
  25. package/dist/adapters/openCodeAdapter.js +118 -11
  26. package/dist/adapters/openCodeAdapter.js.map +1 -1
  27. package/dist/apiErrorRetry.d.ts +11 -3
  28. package/dist/apiErrorRetry.d.ts.map +1 -1
  29. package/dist/apiErrorRetry.js +33 -3
  30. package/dist/apiErrorRetry.js.map +1 -1
  31. package/dist/apiRetryKick.d.ts +3 -2
  32. package/dist/apiRetryKick.d.ts.map +1 -1
  33. package/dist/apiRetryKick.js +13 -5
  34. package/dist/apiRetryKick.js.map +1 -1
  35. package/dist/bot.d.ts +2 -6
  36. package/dist/bot.d.ts.map +1 -1
  37. package/dist/bot.js +2009 -634
  38. package/dist/bot.js.map +1 -1
  39. package/dist/cli/claudeProfiles.d.ts +28 -6
  40. package/dist/cli/claudeProfiles.d.ts.map +1 -1
  41. package/dist/cli/claudeProfiles.js +89 -22
  42. package/dist/cli/claudeProfiles.js.map +1 -1
  43. package/dist/cli.d.ts.map +1 -1
  44. package/dist/cli.js +2 -1
  45. package/dist/cli.js.map +1 -1
  46. package/dist/connectors/jira/answerSink.d.ts +102 -7
  47. package/dist/connectors/jira/answerSink.d.ts.map +1 -1
  48. package/dist/connectors/jira/answerSink.js +364 -60
  49. package/dist/connectors/jira/answerSink.js.map +1 -1
  50. package/dist/connectors/jira/answerThreads.d.ts +44 -0
  51. package/dist/connectors/jira/answerThreads.d.ts.map +1 -0
  52. package/dist/connectors/jira/answerThreads.js +85 -0
  53. package/dist/connectors/jira/answerThreads.js.map +1 -0
  54. package/dist/connectors/jira/client.d.ts +67 -2
  55. package/dist/connectors/jira/client.d.ts.map +1 -1
  56. package/dist/connectors/jira/client.js +176 -4
  57. package/dist/connectors/jira/client.js.map +1 -1
  58. package/dist/connectors/jira/config.d.ts +6 -0
  59. package/dist/connectors/jira/config.d.ts.map +1 -1
  60. package/dist/connectors/jira/config.js +14 -1
  61. package/dist/connectors/jira/config.js.map +1 -1
  62. package/dist/connectors/jira/connector.d.ts +19 -0
  63. package/dist/connectors/jira/connector.d.ts.map +1 -1
  64. package/dist/connectors/jira/connector.js +68 -6
  65. package/dist/connectors/jira/connector.js.map +1 -1
  66. package/dist/connectors/jira/contextPreamble.d.ts.map +1 -1
  67. package/dist/connectors/jira/contextPreamble.js +6 -1
  68. package/dist/connectors/jira/contextPreamble.js.map +1 -1
  69. package/dist/connectors/jira/inbound.d.ts +21 -6
  70. package/dist/connectors/jira/inbound.d.ts.map +1 -1
  71. package/dist/connectors/jira/inbound.js +22 -16
  72. package/dist/connectors/jira/inbound.js.map +1 -1
  73. package/dist/connectors/jira/issueBlocks.d.ts +8 -1
  74. package/dist/connectors/jira/issueBlocks.d.ts.map +1 -1
  75. package/dist/connectors/jira/issueBlocks.js +38 -2
  76. package/dist/connectors/jira/issueBlocks.js.map +1 -1
  77. package/dist/connectors/jira/operatorIssue.d.ts +28 -0
  78. package/dist/connectors/jira/operatorIssue.d.ts.map +1 -0
  79. package/dist/connectors/jira/operatorIssue.js +81 -0
  80. package/dist/connectors/jira/operatorIssue.js.map +1 -0
  81. package/dist/connectors/jira/outbound.d.ts +8 -4
  82. package/dist/connectors/jira/outbound.d.ts.map +1 -1
  83. package/dist/connectors/jira/outbound.js +16 -8
  84. package/dist/connectors/jira/outbound.js.map +1 -1
  85. package/dist/connectors/jira/outgoingFileCheck.d.ts +37 -0
  86. package/dist/connectors/jira/outgoingFileCheck.d.ts.map +1 -0
  87. package/dist/connectors/jira/outgoingFileCheck.js +279 -0
  88. package/dist/connectors/jira/outgoingFileCheck.js.map +1 -0
  89. package/dist/connectors/jira/outgoingFiles.d.ts +81 -0
  90. package/dist/connectors/jira/outgoingFiles.d.ts.map +1 -0
  91. package/dist/connectors/jira/outgoingFiles.js +268 -0
  92. package/dist/connectors/jira/outgoingFiles.js.map +1 -0
  93. package/dist/connectors/jira/progressComments.d.ts +69 -0
  94. package/dist/connectors/jira/progressComments.d.ts.map +1 -0
  95. package/dist/connectors/jira/progressComments.js +136 -0
  96. package/dist/connectors/jira/progressComments.js.map +1 -0
  97. package/dist/connectors/jira/prompt.d.ts +5 -1
  98. package/dist/connectors/jira/prompt.d.ts.map +1 -1
  99. package/dist/connectors/jira/prompt.js +23 -3
  100. package/dist/connectors/jira/prompt.js.map +1 -1
  101. package/dist/connectors/jira/promptSpill.js +1 -1
  102. package/dist/connectors/jira/promptSpill.js.map +1 -1
  103. package/dist/connectors/jira/trigger.d.ts +13 -5
  104. package/dist/connectors/jira/trigger.d.ts.map +1 -1
  105. package/dist/connectors/jira/trigger.js +13 -7
  106. package/dist/connectors/jira/trigger.js.map +1 -1
  107. package/dist/connectors/jira/uploadedFiles.d.ts +48 -0
  108. package/dist/connectors/jira/uploadedFiles.d.ts.map +1 -0
  109. package/dist/connectors/jira/uploadedFiles.js +123 -0
  110. package/dist/connectors/jira/uploadedFiles.js.map +1 -0
  111. package/dist/connectors/telegram/commands/backendSwitch.d.ts +9 -1
  112. package/dist/connectors/telegram/commands/backendSwitch.d.ts.map +1 -1
  113. package/dist/connectors/telegram/commands/backendSwitch.js +17 -8
  114. package/dist/connectors/telegram/commands/backendSwitch.js.map +1 -1
  115. package/dist/connectors/telegram/commands/botSkills.d.ts +2 -0
  116. package/dist/connectors/telegram/commands/botSkills.d.ts.map +1 -1
  117. package/dist/connectors/telegram/commands/botSkills.js +17 -2
  118. package/dist/connectors/telegram/commands/botSkills.js.map +1 -1
  119. package/dist/connectors/telegram/commands/claudeAccounts.d.ts +6 -0
  120. package/dist/connectors/telegram/commands/claudeAccounts.d.ts.map +1 -1
  121. package/dist/connectors/telegram/commands/claudeAccounts.js +22 -4
  122. package/dist/connectors/telegram/commands/claudeAccounts.js.map +1 -1
  123. package/dist/connectors/telegram/commands/compaction.d.ts +14 -3
  124. package/dist/connectors/telegram/commands/compaction.d.ts.map +1 -1
  125. package/dist/connectors/telegram/commands/compaction.js +261 -96
  126. package/dist/connectors/telegram/commands/compaction.js.map +1 -1
  127. package/dist/connectors/telegram/commands/limitReminders.d.ts +21 -0
  128. package/dist/connectors/telegram/commands/limitReminders.d.ts.map +1 -0
  129. package/dist/connectors/telegram/commands/limitReminders.js +95 -0
  130. package/dist/connectors/telegram/commands/limitReminders.js.map +1 -0
  131. package/dist/connectors/telegram/commands/limitsBoard.d.ts +4 -0
  132. package/dist/connectors/telegram/commands/limitsBoard.d.ts.map +1 -1
  133. package/dist/connectors/telegram/commands/limitsBoard.js +27 -6
  134. package/dist/connectors/telegram/commands/limitsBoard.js.map +1 -1
  135. package/dist/connectors/telegram/commands/modelProviders.d.ts +2 -2
  136. package/dist/connectors/telegram/commands/modelProviders.d.ts.map +1 -1
  137. package/dist/connectors/telegram/commands/modelProviders.js +27 -16
  138. package/dist/connectors/telegram/commands/modelProviders.js.map +1 -1
  139. package/dist/connectors/telegram/commands/topicCommand.d.ts.map +1 -1
  140. package/dist/connectors/telegram/commands/topicCommand.js +7 -2
  141. package/dist/connectors/telegram/commands/topicCommand.js.map +1 -1
  142. package/dist/connectors/telegram/commands/workerRoles.d.ts +25 -0
  143. package/dist/connectors/telegram/commands/workerRoles.d.ts.map +1 -0
  144. package/dist/connectors/telegram/commands/workerRoles.js +259 -0
  145. package/dist/connectors/telegram/commands/workerRoles.js.map +1 -0
  146. package/dist/connectors/telegram/groupWelcome.d.ts +12 -0
  147. package/dist/connectors/telegram/groupWelcome.d.ts.map +1 -0
  148. package/dist/connectors/telegram/groupWelcome.js +12 -0
  149. package/dist/connectors/telegram/groupWelcome.js.map +1 -0
  150. package/dist/connectors/telegram/inbound.d.ts +7 -0
  151. package/dist/connectors/telegram/inbound.d.ts.map +1 -1
  152. package/dist/connectors/telegram/inbound.js +10 -0
  153. package/dist/connectors/telegram/inbound.js.map +1 -1
  154. package/dist/connectors/telegram/outputFlushPlan.d.ts +12 -0
  155. package/dist/connectors/telegram/outputFlushPlan.d.ts.map +1 -1
  156. package/dist/connectors/telegram/outputFlushPlan.js +12 -0
  157. package/dist/connectors/telegram/outputFlushPlan.js.map +1 -1
  158. package/dist/connectors/telegram/runnerPairingMessages.d.ts +1 -1
  159. package/dist/connectors/telegram/topicIndicator.d.ts +1 -1
  160. package/dist/connectors/telegram/topicIndicator.d.ts.map +1 -1
  161. package/dist/connectors/telegram/topicIndicator.js +103 -5
  162. package/dist/connectors/telegram/topicIndicator.js.map +1 -1
  163. package/dist/effortLevels.d.ts +6 -0
  164. package/dist/effortLevels.d.ts.map +1 -1
  165. package/dist/effortLevels.js +6 -1
  166. package/dist/effortLevels.js.map +1 -1
  167. package/dist/i18n/de.d.ts.map +1 -1
  168. package/dist/i18n/de.js +95 -14
  169. package/dist/i18n/de.js.map +1 -1
  170. package/dist/i18n/en.d.ts.map +1 -1
  171. package/dist/i18n/en.js +95 -14
  172. package/dist/i18n/en.js.map +1 -1
  173. package/dist/i18n/es.d.ts.map +1 -1
  174. package/dist/i18n/es.js +95 -14
  175. package/dist/i18n/es.js.map +1 -1
  176. package/dist/i18n/fr.d.ts.map +1 -1
  177. package/dist/i18n/fr.js +95 -14
  178. package/dist/i18n/fr.js.map +1 -1
  179. package/dist/i18n/hi.d.ts.map +1 -1
  180. package/dist/i18n/hi.js +95 -14
  181. package/dist/i18n/hi.js.map +1 -1
  182. package/dist/i18n/ja.d.ts.map +1 -1
  183. package/dist/i18n/ja.js +95 -14
  184. package/dist/i18n/ja.js.map +1 -1
  185. package/dist/i18n/ka.d.ts.map +1 -1
  186. package/dist/i18n/ka.js +95 -14
  187. package/dist/i18n/ka.js.map +1 -1
  188. package/dist/i18n/pt.d.ts.map +1 -1
  189. package/dist/i18n/pt.js +95 -14
  190. package/dist/i18n/pt.js.map +1 -1
  191. package/dist/i18n/ru.d.ts.map +1 -1
  192. package/dist/i18n/ru.js +95 -14
  193. package/dist/i18n/ru.js.map +1 -1
  194. package/dist/i18n/uk.d.ts.map +1 -1
  195. package/dist/i18n/uk.js +95 -14
  196. package/dist/i18n/uk.js.map +1 -1
  197. package/dist/i18n/uz.d.ts.map +1 -1
  198. package/dist/i18n/uz.js +95 -14
  199. package/dist/i18n/uz.js.map +1 -1
  200. package/dist/i18n/zh.d.ts.map +1 -1
  201. package/dist/i18n/zh.js +95 -14
  202. package/dist/i18n/zh.js.map +1 -1
  203. package/dist/instanceSettings.d.ts +24 -2
  204. package/dist/instanceSettings.d.ts.map +1 -1
  205. package/dist/instanceSettings.js +75 -3
  206. package/dist/instanceSettings.js.map +1 -1
  207. package/dist/limitNotes/engine.d.ts +47 -0
  208. package/dist/limitNotes/engine.d.ts.map +1 -0
  209. package/dist/limitNotes/engine.js +98 -0
  210. package/dist/limitNotes/engine.js.map +1 -0
  211. package/dist/limitNotes/noteText.d.ts +33 -0
  212. package/dist/limitNotes/noteText.d.ts.map +1 -0
  213. package/dist/limitNotes/noteText.js +55 -0
  214. package/dist/limitNotes/noteText.js.map +1 -0
  215. package/dist/limitNotes/plan.d.ts +147 -0
  216. package/dist/limitNotes/plan.d.ts.map +1 -0
  217. package/dist/limitNotes/plan.js +323 -0
  218. package/dist/limitNotes/plan.js.map +1 -0
  219. package/dist/limitNotes/reminderChoices.d.ts +30 -0
  220. package/dist/limitNotes/reminderChoices.d.ts.map +1 -0
  221. package/dist/limitNotes/reminderChoices.js +48 -0
  222. package/dist/limitNotes/reminderChoices.js.map +1 -0
  223. package/dist/limitNotes/service.d.ts +106 -0
  224. package/dist/limitNotes/service.d.ts.map +1 -0
  225. package/dist/limitNotes/service.js +169 -0
  226. package/dist/limitNotes/service.js.map +1 -0
  227. package/dist/openCodeSessionTitle.js +1 -1
  228. package/dist/openCodeSessionTitle.js.map +1 -1
  229. package/dist/outputTrace.d.ts +19 -0
  230. package/dist/outputTrace.d.ts.map +1 -1
  231. package/dist/outputTrace.js +23 -2
  232. package/dist/outputTrace.js.map +1 -1
  233. package/dist/platform/answerSink.d.ts +23 -0
  234. package/dist/platform/answerSink.d.ts.map +1 -1
  235. package/dist/platform/answerSink.js.map +1 -1
  236. package/dist/platform/operatorAlert.d.ts +24 -0
  237. package/dist/platform/operatorAlert.d.ts.map +1 -0
  238. package/dist/platform/operatorAlert.js +9 -0
  239. package/dist/platform/operatorAlert.js.map +1 -0
  240. package/dist/postToSession.d.ts +34 -2
  241. package/dist/postToSession.d.ts.map +1 -1
  242. package/dist/postToSession.js +31 -2
  243. package/dist/postToSession.js.map +1 -1
  244. package/dist/remoteRun/exitCodes.d.ts +2 -2
  245. package/dist/remoteRun/exitCodes.d.ts.map +1 -1
  246. package/dist/remoteRun/exitCodes.js +2 -2
  247. package/dist/remoteRun/exitCodes.js.map +1 -1
  248. package/dist/remoteRun/foreground.d.ts.map +1 -1
  249. package/dist/remoteRun/foreground.js +5 -1
  250. package/dist/remoteRun/foreground.js.map +1 -1
  251. package/dist/remoteRun/runnerClient.d.ts +1 -1
  252. package/dist/remoteRun/runnerClient.d.ts.map +1 -1
  253. package/dist/remoteRun/runnerClient.js +3 -3
  254. package/dist/remoteRun/runnerClient.js.map +1 -1
  255. package/dist/requests/answerRequest.d.ts +3 -0
  256. package/dist/requests/answerRequest.d.ts.map +1 -1
  257. package/dist/requests/answerRequest.js +9 -2
  258. package/dist/requests/answerRequest.js.map +1 -1
  259. package/dist/requests/limitWaitAnswer.d.ts +14 -0
  260. package/dist/requests/limitWaitAnswer.d.ts.map +1 -1
  261. package/dist/requests/limitWaitAnswer.js +26 -4
  262. package/dist/requests/limitWaitAnswer.js.map +1 -1
  263. package/dist/requests/requestHeader.d.ts +37 -5
  264. package/dist/requests/requestHeader.d.ts.map +1 -1
  265. package/dist/requests/requestHeader.js +46 -17
  266. package/dist/requests/requestHeader.js.map +1 -1
  267. package/dist/requests/scheduleWait.d.ts +79 -0
  268. package/dist/requests/scheduleWait.d.ts.map +1 -0
  269. package/dist/requests/scheduleWait.js +101 -0
  270. package/dist/requests/scheduleWait.js.map +1 -0
  271. package/dist/requests/sessionTurnProbe.d.ts +21 -3
  272. package/dist/requests/sessionTurnProbe.d.ts.map +1 -1
  273. package/dist/requests/sessionTurnProbe.js +18 -3
  274. package/dist/requests/sessionTurnProbe.js.map +1 -1
  275. package/dist/requests/topicRequestSettle.d.ts +13 -7
  276. package/dist/requests/topicRequestSettle.d.ts.map +1 -1
  277. package/dist/requests/topicRequestSettle.js +2 -2
  278. package/dist/requests/topicRequestSettle.js.map +1 -1
  279. package/dist/requests/trackerTurnPoster.d.ts +30 -0
  280. package/dist/requests/trackerTurnPoster.d.ts.map +1 -0
  281. package/dist/requests/trackerTurnPoster.js +36 -0
  282. package/dist/requests/trackerTurnPoster.js.map +1 -0
  283. package/dist/requests/types.d.ts +9 -2
  284. package/dist/requests/types.d.ts.map +1 -1
  285. package/dist/requests/wakeUpEngine.d.ts +188 -11
  286. package/dist/requests/wakeUpEngine.d.ts.map +1 -1
  287. package/dist/requests/wakeUpEngine.js +452 -43
  288. package/dist/requests/wakeUpEngine.js.map +1 -1
  289. package/dist/requests/wakeUpRules.d.ts +122 -12
  290. package/dist/requests/wakeUpRules.d.ts.map +1 -1
  291. package/dist/requests/wakeUpRules.js +117 -15
  292. package/dist/requests/wakeUpRules.js.map +1 -1
  293. package/dist/resumeContext.d.ts +2 -2
  294. package/dist/resumeContext.js +3 -3
  295. package/dist/resumeContext.js.map +1 -1
  296. package/dist/runnerUtility/adminService.js +1 -1
  297. package/dist/runnerUtility/adminService.js.map +1 -1
  298. package/dist/runnerUtility/guiAgent.d.ts +1 -1
  299. package/dist/runnerUtility/guiAgent.d.ts.map +1 -1
  300. package/dist/runnerUtility/guiAgent.js +1 -1
  301. package/dist/runnerUtility/guiAgent.js.map +1 -1
  302. package/dist/runnerUtility/managedNode.d.ts +3 -3
  303. package/dist/runnerUtility/managedNode.d.ts.map +1 -1
  304. package/dist/runnerUtility/managedNode.js +2 -2
  305. package/dist/runnerUtility/managedNode.js.map +1 -1
  306. package/dist/runnerUtility/runnerConfig.d.ts +1 -1
  307. package/dist/runnerUtility/runnerHome.d.ts +1 -1
  308. package/dist/runnerUtility/runnerHome.js +1 -1
  309. package/dist/runnerUtility/serviceCommon.d.ts +1 -1
  310. package/dist/runnerUtility/serviceCommon.d.ts.map +1 -1
  311. package/dist/runnerUtility/serviceCommon.js +1 -1
  312. package/dist/runnerUtility/serviceCommon.js.map +1 -1
  313. package/dist/runners/bootstrapLine.js +1 -1
  314. package/dist/runners/hubPackage.d.ts +1 -1
  315. package/dist/runners/hubPackage.js +3 -3
  316. package/dist/runners/hubPackage.js.map +1 -1
  317. package/dist/runners/hubPaths.d.ts +1 -1
  318. package/dist/runners/hubPaths.d.ts.map +1 -1
  319. package/dist/runners/runnerLock.d.ts +2 -2
  320. package/dist/runners/runnerLock.d.ts.map +1 -1
  321. package/dist/runners/runnerLock.js +2 -2
  322. package/dist/runners/runnerLock.js.map +1 -1
  323. package/dist/scheduler/checkRun.d.ts +2 -0
  324. package/dist/scheduler/checkRun.d.ts.map +1 -1
  325. package/dist/scheduler/checkRun.js +5 -1
  326. package/dist/scheduler/checkRun.js.map +1 -1
  327. package/dist/scheduler/delivery.d.ts +57 -0
  328. package/dist/scheduler/delivery.d.ts.map +1 -1
  329. package/dist/scheduler/delivery.js +152 -14
  330. package/dist/scheduler/delivery.js.map +1 -1
  331. package/dist/scheduler/injection.d.ts +6 -0
  332. package/dist/scheduler/injection.d.ts.map +1 -1
  333. package/dist/scheduler/injection.js +10 -0
  334. package/dist/scheduler/injection.js.map +1 -1
  335. package/dist/scheduler/mcpSurface.d.ts +38 -3
  336. package/dist/scheduler/mcpSurface.d.ts.map +1 -1
  337. package/dist/scheduler/mcpSurface.js +291 -175
  338. package/dist/scheduler/mcpSurface.js.map +1 -1
  339. package/dist/scheduler/rebindResume.d.ts +24 -0
  340. package/dist/scheduler/rebindResume.d.ts.map +1 -1
  341. package/dist/scheduler/rebindResume.js +32 -0
  342. package/dist/scheduler/rebindResume.js.map +1 -1
  343. package/dist/scheduler/scheduleToolWording.d.ts +29 -0
  344. package/dist/scheduler/scheduleToolWording.d.ts.map +1 -0
  345. package/dist/scheduler/scheduleToolWording.js +117 -0
  346. package/dist/scheduler/scheduleToolWording.js.map +1 -0
  347. package/dist/scheduler/scheduledRunTarget.d.ts +90 -0
  348. package/dist/scheduler/scheduledRunTarget.d.ts.map +1 -0
  349. package/dist/scheduler/scheduledRunTarget.js +92 -0
  350. package/dist/scheduler/scheduledRunTarget.js.map +1 -0
  351. package/dist/scheduler/store.d.ts +2 -0
  352. package/dist/scheduler/store.d.ts.map +1 -1
  353. package/dist/scheduler/store.js +2 -0
  354. package/dist/scheduler/store.js.map +1 -1
  355. package/dist/scheduler/types.d.ts +10 -0
  356. package/dist/scheduler/types.d.ts.map +1 -1
  357. package/dist/scheduler/workerWatch.d.ts +2 -0
  358. package/dist/scheduler/workerWatch.d.ts.map +1 -1
  359. package/dist/scheduler/workerWatch.js +3 -3
  360. package/dist/scheduler/workerWatch.js.map +1 -1
  361. package/dist/selfUpdate/constants.d.ts +2 -0
  362. package/dist/selfUpdate/constants.d.ts.map +1 -1
  363. package/dist/selfUpdate/constants.js +3 -1
  364. package/dist/selfUpdate/constants.js.map +1 -1
  365. package/dist/selfUpdate/emittedSource.d.ts.map +1 -1
  366. package/dist/selfUpdate/emittedSource.js +1 -1
  367. package/dist/selfUpdate/emittedSource.js.map +1 -1
  368. package/dist/selfUpdate/updateRuntime.js +1 -1
  369. package/dist/selfUpdate/updateRuntime.js.map +1 -1
  370. package/dist/sessionPick.d.ts +1 -1
  371. package/dist/sessionPick.js +1 -1
  372. package/dist/startupPromptBuffer.d.ts +35 -6
  373. package/dist/startupPromptBuffer.d.ts.map +1 -1
  374. package/dist/startupPromptBuffer.js +70 -21
  375. package/dist/startupPromptBuffer.js.map +1 -1
  376. package/dist/state.d.ts +173 -25
  377. package/dist/state.d.ts.map +1 -1
  378. package/dist/state.js +282 -58
  379. package/dist/state.js.map +1 -1
  380. package/dist/testTimings.d.ts +8 -3
  381. package/dist/testTimings.d.ts.map +1 -1
  382. package/dist/testTimings.js +15 -2
  383. package/dist/testTimings.js.map +1 -1
  384. package/dist/threadContextPreamble.d.ts +7 -0
  385. package/dist/threadContextPreamble.d.ts.map +1 -1
  386. package/dist/threadContextPreamble.js +11 -0
  387. package/dist/threadContextPreamble.js.map +1 -1
  388. package/dist/threadRouting.d.ts +12 -0
  389. package/dist/threadRouting.d.ts.map +1 -1
  390. package/dist/threadRouting.js +15 -0
  391. package/dist/threadRouting.js.map +1 -1
  392. package/dist/todos/midTurn.d.ts +15 -41
  393. package/dist/todos/midTurn.d.ts.map +1 -1
  394. package/dist/todos/midTurn.js +27 -171
  395. package/dist/todos/midTurn.js.map +1 -1
  396. package/dist/types.d.ts +147 -23
  397. package/dist/types.d.ts.map +1 -1
  398. package/dist/types.js +10 -0
  399. package/dist/types.js.map +1 -1
  400. package/dist/utils/backendSwitchPlan.d.ts +3 -3
  401. package/dist/utils/backendSwitchPlan.js +3 -3
  402. package/dist/utils/claudeAccountAlert.d.ts +104 -0
  403. package/dist/utils/claudeAccountAlert.d.ts.map +1 -0
  404. package/dist/utils/claudeAccountAlert.js +130 -0
  405. package/dist/utils/claudeAccountAlert.js.map +1 -0
  406. package/dist/utils/claudeAccountPickerPlan.d.ts +7 -0
  407. package/dist/utils/claudeAccountPickerPlan.d.ts.map +1 -1
  408. package/dist/utils/claudeAccountPickerPlan.js +13 -2
  409. package/dist/utils/claudeAccountPickerPlan.js.map +1 -1
  410. package/dist/utils/claudeAuthRefusal.d.ts +122 -0
  411. package/dist/utils/claudeAuthRefusal.d.ts.map +1 -0
  412. package/dist/utils/claudeAuthRefusal.js +228 -0
  413. package/dist/utils/claudeAuthRefusal.js.map +1 -0
  414. package/dist/utils/claudeCompactHook.d.ts +6 -6
  415. package/dist/utils/claudeCompactHook.js +8 -8
  416. package/dist/utils/claudeCompactHook.js.map +1 -1
  417. package/dist/utils/claudeProfileUsageViews.d.ts +54 -2
  418. package/dist/utils/claudeProfileUsageViews.d.ts.map +1 -1
  419. package/dist/utils/claudeProfileUsageViews.js +44 -1
  420. package/dist/utils/claudeProfileUsageViews.js.map +1 -1
  421. package/dist/utils/claudeProfiles.d.ts.map +1 -1
  422. package/dist/utils/claudeProfiles.js +10 -1
  423. package/dist/utils/claudeProfiles.js.map +1 -1
  424. package/dist/utils/claudeRuntimeInfo.d.ts +24 -0
  425. package/dist/utils/claudeRuntimeInfo.d.ts.map +1 -1
  426. package/dist/utils/claudeRuntimeInfo.js +128 -3
  427. package/dist/utils/claudeRuntimeInfo.js.map +1 -1
  428. package/dist/utils/claudeScheduledJobs.d.ts +6 -2
  429. package/dist/utils/claudeScheduledJobs.d.ts.map +1 -1
  430. package/dist/utils/claudeScheduledJobs.js +10 -2
  431. package/dist/utils/claudeScheduledJobs.js.map +1 -1
  432. package/dist/utils/claudeSessionTitle.js +1 -1
  433. package/dist/utils/claudeSessionTitle.js.map +1 -1
  434. package/dist/utils/claudeStreamJson.d.ts +28 -2
  435. package/dist/utils/claudeStreamJson.d.ts.map +1 -1
  436. package/dist/utils/claudeStreamJson.js +33 -3
  437. package/dist/utils/claudeStreamJson.js.map +1 -1
  438. package/dist/utils/claudeTranscriptEpoch.d.ts +14 -0
  439. package/dist/utils/claudeTranscriptEpoch.d.ts.map +1 -1
  440. package/dist/utils/claudeTranscriptEpoch.js +79 -19
  441. package/dist/utils/claudeTranscriptEpoch.js.map +1 -1
  442. package/dist/utils/claudeUsage.d.ts +103 -7
  443. package/dist/utils/claudeUsage.d.ts.map +1 -1
  444. package/dist/utils/claudeUsage.js +108 -15
  445. package/dist/utils/claudeUsage.js.map +1 -1
  446. package/dist/utils/compactOnIdle.d.ts +139 -29
  447. package/dist/utils/compactOnIdle.d.ts.map +1 -1
  448. package/dist/utils/compactOnIdle.js +163 -36
  449. package/dist/utils/compactOnIdle.js.map +1 -1
  450. package/dist/utils/conversationEnding.d.ts +76 -0
  451. package/dist/utils/conversationEnding.d.ts.map +1 -0
  452. package/dist/utils/conversationEnding.js +117 -0
  453. package/dist/utils/conversationEnding.js.map +1 -0
  454. package/dist/utils/doctorLine.d.ts +10 -0
  455. package/dist/utils/doctorLine.d.ts.map +1 -1
  456. package/dist/utils/doctorLine.js +16 -0
  457. package/dist/utils/doctorLine.js.map +1 -1
  458. package/dist/utils/fallbackBridge.d.ts.map +1 -1
  459. package/dist/utils/fallbackBridge.js +2 -1
  460. package/dist/utils/fallbackBridge.js.map +1 -1
  461. package/dist/utils/fallbackChain.d.ts +2 -0
  462. package/dist/utils/fallbackChain.d.ts.map +1 -1
  463. package/dist/utils/fallbackChain.js +4 -3
  464. package/dist/utils/fallbackChain.js.map +1 -1
  465. package/dist/utils/fallbackSwitchNotice.d.ts +11 -4
  466. package/dist/utils/fallbackSwitchNotice.d.ts.map +1 -1
  467. package/dist/utils/fallbackSwitchNotice.js +9 -5
  468. package/dist/utils/fallbackSwitchNotice.js.map +1 -1
  469. package/dist/utils/fileSendService.d.ts +31 -0
  470. package/dist/utils/fileSendService.d.ts.map +1 -1
  471. package/dist/utils/fileSendService.js +45 -2
  472. package/dist/utils/fileSendService.js.map +1 -1
  473. package/dist/utils/jsonStreamHost.d.ts +2 -0
  474. package/dist/utils/jsonStreamHost.d.ts.map +1 -1
  475. package/dist/utils/jsonStreamHost.js +4 -1
  476. package/dist/utils/jsonStreamHost.js.map +1 -1
  477. package/dist/utils/jsonStreamPendingWork.d.ts +14 -2
  478. package/dist/utils/jsonStreamPendingWork.d.ts.map +1 -1
  479. package/dist/utils/jsonStreamPendingWork.js +25 -5
  480. package/dist/utils/jsonStreamPendingWork.js.map +1 -1
  481. package/dist/utils/jsonStreamUnconsumedInput.d.ts +80 -0
  482. package/dist/utils/jsonStreamUnconsumedInput.d.ts.map +1 -0
  483. package/dist/utils/jsonStreamUnconsumedInput.js +99 -0
  484. package/dist/utils/jsonStreamUnconsumedInput.js.map +1 -0
  485. package/dist/utils/limitEpisodeRecovery.d.ts +43 -4
  486. package/dist/utils/limitEpisodeRecovery.d.ts.map +1 -1
  487. package/dist/utils/limitEpisodeRecovery.js +107 -20
  488. package/dist/utils/limitEpisodeRecovery.js.map +1 -1
  489. package/dist/utils/limitHeldPrompts.d.ts +21 -11
  490. package/dist/utils/limitHeldPrompts.d.ts.map +1 -1
  491. package/dist/utils/limitHeldPrompts.js +12 -9
  492. package/dist/utils/limitHeldPrompts.js.map +1 -1
  493. package/dist/utils/limitRemindersScreenPlan.d.ts +63 -0
  494. package/dist/utils/limitRemindersScreenPlan.d.ts.map +1 -0
  495. package/dist/utils/limitRemindersScreenPlan.js +121 -0
  496. package/dist/utils/limitRemindersScreenPlan.js.map +1 -0
  497. package/dist/utils/limitsBoardPlan.d.ts +16 -7
  498. package/dist/utils/limitsBoardPlan.d.ts.map +1 -1
  499. package/dist/utils/limitsBoardPlan.js +41 -9
  500. package/dist/utils/limitsBoardPlan.js.map +1 -1
  501. package/dist/utils/lostWork.d.ts +16 -2
  502. package/dist/utils/lostWork.d.ts.map +1 -1
  503. package/dist/utils/lostWork.js +16 -3
  504. package/dist/utils/lostWork.js.map +1 -1
  505. package/dist/utils/messageContext.d.ts +2 -2
  506. package/dist/utils/messageContext.js +2 -2
  507. package/dist/utils/midTurnInbox.d.ts +79 -0
  508. package/dist/utils/midTurnInbox.d.ts.map +1 -0
  509. package/dist/utils/midTurnInbox.js +265 -0
  510. package/dist/utils/midTurnInbox.js.map +1 -0
  511. package/dist/utils/promptDelivery.d.ts +70 -22
  512. package/dist/utils/promptDelivery.d.ts.map +1 -1
  513. package/dist/utils/promptDelivery.js +100 -42
  514. package/dist/utils/promptDelivery.js.map +1 -1
  515. package/dist/utils/topicIndicatorPlan.d.ts +13 -3
  516. package/dist/utils/topicIndicatorPlan.d.ts.map +1 -1
  517. package/dist/utils/topicIndicatorPlan.js +26 -4
  518. package/dist/utils/topicIndicatorPlan.js.map +1 -1
  519. package/dist/utils/topicRequest.d.ts +3 -0
  520. package/dist/utils/topicRequest.d.ts.map +1 -1
  521. package/dist/utils/topicRequest.js +4 -0
  522. package/dist/utils/topicRequest.js.map +1 -1
  523. package/dist/utils/workerRoles.d.ts +122 -0
  524. package/dist/utils/workerRoles.d.ts.map +1 -0
  525. package/dist/utils/workerRoles.js +160 -0
  526. package/dist/utils/workerRoles.js.map +1 -0
  527. package/dist/utils/workerRolesScreenPlan.d.ts +118 -0
  528. package/dist/utils/workerRolesScreenPlan.d.ts.map +1 -0
  529. package/dist/utils/workerRolesScreenPlan.js +232 -0
  530. package/dist/utils/workerRolesScreenPlan.js.map +1 -0
  531. package/dist/utils/workingSignals.d.ts +49 -0
  532. package/dist/utils/workingSignals.d.ts.map +1 -0
  533. package/dist/utils/workingSignals.js +41 -0
  534. package/dist/utils/workingSignals.js.map +1 -0
  535. package/licensing.json +88 -0
  536. package/npm-shrinkwrap.json +2 -2
  537. package/package.json +7 -7
  538. package/{remoteRun → runner-scripts}/runner.sh +6 -3
  539. package/LICENSE-COMMERCIAL.md +0 -142
  540. package/dist/agentTrigger.d.ts +0 -28
  541. package/dist/agentTrigger.d.ts.map +0 -1
  542. package/dist/agentTrigger.js +0 -53
  543. package/dist/agentTrigger.js.map +0 -1
  544. /package/{remoteRun → runner-scripts}/ensureNode.sh +0 -0
  545. /package/{remoteRun → runner-scripts}/runner-package-lock.json +0 -0
package/LICENSE CHANGED
@@ -1,152 +1,332 @@
1
1
  Required Notice: Copyright 2026 Sergei Solo (https://github.com/olosegres/charness)
2
- Required Notice: Commercial licenses for organization groups: https://olosegres.github.io/charness/commercial/
3
-
4
- # Charness License 1.0.0
5
-
6
- https://olosegres.github.io/charness/license/1.0.0/
7
-
8
- ## Acceptance
9
-
10
- In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
11
-
12
- ## Copyright License
13
-
14
- The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
15
-
16
- ## Distribution License
17
-
18
- The licensor grants you an additional copyright license to share copies of the software without charge, including public source mirrors and forks, with the notices required below and without granting recipients broader rights than these terms. This includes changes and new works lawfully made under [Changes and New Works License](#changes-and-new-works-license). You may also supply copies to a client solely to install or maintain its internal instance under that client's own permission or commercial license, and charge for those services, not for the software rights. These permissions do not authorize selling copies, supplying an embedded product, or offering hosted access to the software or its functionality; [Products and Hosted Services](#products-and-hosted-services) governs those activities, even if access is offered without charge. Recipients must independently qualify for their use or hold the required agreement.
19
-
20
- ## Notices
21
-
22
- You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
23
-
24
- > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
25
-
26
- ## Changes and New Works License
27
-
28
- The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
29
-
30
- Changes and new works based on the software remain subject to the same eligibility and distribution limits. Output merely created using the software, such as independently written code, documents or other deliverables that do not include the software, is not a work based on the software for these terms. The licensor claims no ownership or royalty in that output. Third-party rights in output are unaffected.
31
-
32
- ## Patent License
33
-
34
- The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
35
-
36
- ## Fair Use
37
-
38
- You may have "fair use" rights for the software under the law. These terms do not limit them.
39
-
40
- ## Individuals
41
-
42
- Personal hobby, study and independent non-business projects are permitted purposes. All paid own-account work, including freelance work and a one-person automated business, is business use and follows [Small Organizations](#small-organizations), not an unlimited individual exemption. A sole proprietorship counts whether registered or not.
43
-
44
- Subject to [Work for Clients](#work-for-clients), work for an organization or whose results belong to it is for that organization's benefit, whoever owns the hardware. An employer is not a client, and employment is not own-account work. Mere use of the public results of your independent personal project does not turn it into organizational work.
45
-
46
- ## Small Organizations
47
-
48
- Internal use for an organization group is a permitted purpose if its R is at most USD 500,000 AND its H is at most 20, using the definitions below. Exactly USD 500,000 and 20 people qualify. All actual users, agents, jobs, machines and instances are unlimited; H counts the whole workforce, not software users. Unattended operation, including CI with no direct human users, is still group use. Public-benefit use and evaluation have the separate permissions below.
49
-
50
- Assess R and current H at every month end, and at first adoption using the latest completed month-end assessment (or actual figures since formation if no month end exists). If a genuinely eligible free group later exceeds either limit at a month end, its internal use remains permitted during a 90-calendar-day growth transition starting at that month end. By the deadline it must buy the then-applicable annual license or stop covered use, unless it has regained free eligibility. Re-crossing within 12 months of the original crossing does not restart the allowance: the original deadline still applies. No fees are due for genuinely eligible free use or this authorized transition. A group already above the limits when first adopting does not get growth grace merely by adopting.
51
-
52
- Paid groups select the higher of the R and H bands in the fixed schedule incorporated in their commercial order. Ordinary organic growth, including new revenue and newly raised funding, is covered through each paid term year with no mid-year surcharge; renewal uses the latest assessment and permits downgrading or returning to free eligibility. A merger or acquisition requires combined-group reassessment within 90 days of completion and only the prorated positive fee difference for the remaining term, with overlapping prepaid group fees credited. A free group that becomes part of a larger group through a merger or acquisition has the same 90-day period from completion to bring the combined group into compliance. Incorrect initial declarations are corrected to the band due then, not protected as growth. Paid rights expire at the term end without renewal; there is no perpetual internal-use fallback.
53
-
54
- ## Work for Clients
55
-
56
- Any service provider whose own group use is permitted under these terms or a commercial license may use its own tools to produce client deliverables. That remains the provider's use, irrespective of client size, as long as:
57
-
58
- 1. the software itself runs only on systems you control that the client does not own, rent, pay for (including reimbursing their cost), or control; and
59
-
60
- 2. neither the client nor anyone acting for it, other than the provider's people doing that work, administers the software or directs an agent through it, for example by writing to it or assigning work to it in an issue tracker. This access test applies regardless of how many days the person works for the client.
61
-
62
- Accessing client repositories or systems through separately licensed tools or agents does not itself mean that the software runs there. A client's request to you is not direction of an agent unless the client can cause agent work through the software without your deciding to pass that request on.
63
-
64
- Otherwise, client installation or client-directed operation is the client's use under its own eligibility or commercial license, optionally obtained by the provider on its behalf. Authorized contractors may install, administer and use the client's internal instance without a separate fee for that client-only work; their eligibility to act is not conditional on counting in H. The current-engagement and 30-worked-day rules determine H separately. The provider's separate internal use follows its own group band. There is no royalty on installation, configuration, consulting, maintenance or training invoices; that income still enters the provider's R for its own group assessment.
65
-
66
- ## Products and Hosted Services
67
-
68
- An embedded product includes or runs the software as an operational component, or supplies its agent-orchestration functionality as a feature of another product. Supplying such a product, on premises or hosted, requires a separate written OEM addendum identifying the products, architectures and allowed product-specific tasks, even when the OEM schedule amount is zero. A standard internal-use license alone does not grant these rights. Merely using the software to create output, or an independently written connector or input/output integration that does not supply the software or its functionality, does not require OEM rights.
69
-
70
- Offering substantially the software itself as a hosted, managed, rebranded or resale service requires a separate written hosting/reseller agreement and each beneficiary client's own free eligibility or normal group license. It is not covered by a blanket OEM fee. These limits apply regardless of price, host size or recipient size, and cannot be avoided through a new UI, API or AI intermediary.
71
-
72
- Internal access by people acting for the group and contractors administering its independently controlled internal instance is not onward hosting. That instance may run on contractor infrastructure. Ordinary client administration or separately supplied generic infrastructure is not itself a provider-controlled software-access service. Classroom, learning and genuine research access under [Education and Public Benefit](#education-and-public-benefit) is expressly permitted without an OEM/hosting agreement; it does not authorize a general-purpose public hosting business. Write to charnesshub@gmail.com; information: https://olosegres.github.io/charness/commercial/.
73
-
74
- ## Education and Public Benefit
75
-
76
- Teaching, student learning and genuine academic or noncommercial scientific research by recognized educational or research institutions and individual researchers are permitted purposes. Internal administration and mission delivery by public or nonprofit educational institutions, genuine charities (including nonprofit public-health, safety and environmental bodies) and public authorities are also permitted, irrespective of core budget, donations, genuine grants, other funding or headcount. Ordinary tuition for recognized education, public appropriations, taxes, statutory fees and cost-recovery public services do not end this exception. Saving costs is not commercial revenue. Industry-funded genuine academic research qualifies; a disguised contract to deliver a proprietary commercial product does not.
77
-
78
- A recognized private for-profit school qualifies for actual teaching and learning, not commercial administration or non-educational business. A commercial employer's R&D is ordinary group use, not free academic research merely because a department calls itself a lab.
79
-
80
- An otherwise exempt institution's commercial operation using the software remains permitted while its external commercial revenue C is at most USD 500,000 over the measurement period, even if its assigned workforce exceeds 20. If C exceeds that amount, the operation follows the ordinary banded license and growth/renewal rules, using its R and assigned H rather than the institution's exempt core budget and workforce. Funding alone does not trigger this C threshold or remove core-purpose permission. Once C triggers licensing, include investment/commercial-grant funding of the commercial operation in its R, but never core-purpose donations or grants. Connected commercial operations under common institutional control are combined; shared staff doing material work count once, not as fractional FTEs. Unrelated exempt teaching or public-service work remains free.
81
-
82
- A separate for-profit spin-off or government-owned trading company follows ordinary group rules from the start, including the H limit. Aggregate related commercial entities under the institutional parent's control, but exclude the exempt core budget and workforce. A nonprofit label does not exempt ordinary commercial trading outside the institutional exception.
83
-
84
- ## Evaluation
85
-
86
- Use to evaluate suitability is permitted during one group-wide period of less than 32 consecutive calendar days, starting when anyone in the group first runs the software for that evaluation. Productive work is allowed only as part of evaluation. Pauses, different people, departments or versions do not restart it. Growth grace does not extend an above-threshold adopter's evaluation. This permission grants no OEM, hosting or resale rights.
87
-
88
- ## Existing MIT Adopters
89
-
90
- MIT grants already received remain unchanged, with no retrospective fees. A group already using an MIT-licensed Charness release before the first release under these terms may use newly licensed releases internally for a single 90-calendar-day transition starting on its first use of a release under these terms. At that deadline it must qualify free, buy the applicable annual license, or stop using the newly licensed releases. It may continue its MIT releases under MIT. This transition and evaluation run concurrently, not consecutively; neither restarts the other or creates a fresh growth allowance for an already above-threshold group. No installation or update by itself removes existing MIT rights. This transition grants no onward product or hosting rights.
91
-
92
- ## Commercial Licenses
93
-
94
- Any use not permitted by these terms needs the corresponding commercial license or separate OEM/hosting/reseller agreement. Authorized no-charge distribution does not authorize otherwise unpermitted operation or modification. Ordinary fees are annual per organization group, with unlimited users, agents and instances, never per seat. To buy, write to charnesshub@gmail.com or use a purchase route listed on the commercial page, https://olosegres.github.io/charness/commercial/.
95
-
96
- These terms grant no trademark license and no right to use the name Charness or the licensor's other names or marks, beyond the notices required under [Notices](#notices) and uses the law allows without a license. A commercial order may add a limited contractual permission to display a "Powered by Charness" mark; that permission exists only as stated in the order.
97
-
98
- ## Eligibility Verification
99
-
100
- Organizational and commercial users, including groups claiming free eligibility, must self-assess and retain sufficient eligibility records for three years after the relevant assessment: R calculations, funding totals, aggregate workforce/contractor counts, group structure and applicable commercial-operation or OEM totals. Free ordinary use needs no registration or routine submission. Personal hobbyists' private affairs are outside this clause. Institutions may certify their permitted purpose and relevant commercial-operation bands instead of disclosing their whole budget.
101
-
102
- On a credible discrepancy, the licensor may first request an officer's or accountant's written certification, allowing 30 days to respond. Only an unresolved, reasonably grounded discrepancy permits verification by an independent professional bound to confidentiality, at most once per 12 months, on at least 30 days' written notice, during ordinary business hours with minimal interference. Only records relevant to eligibility and fees may be inspected; sufficient redacted accountant confirmations must be accepted. There is no access right to repositories, prompts, model credentials, customer data or production systems. Information may be used only to establish compliance and resolve the discrepancy and must be kept confidential, except where disclosure is legally required.
103
-
104
- The licensor pays verification costs unless actual underpayment exceeds BOTH 10% of the fees actually due for the reviewed period AND USD 1,000. Only then may reasonable documented audit costs be recovered, capped at the recovered underpayment. Actual overdue fees for unauthorized use may be collected, but never fees for genuinely free use or authorized transitions, and never a penalty multiplier. First-notice cure under [Violations](#violations) remains intact; a verification request alone is not a violation finding or termination. Prompt honest errors may be corrected, including through a written payment plan agreed with the licensor. Fraud remains subject to ordinary legal remedies. There are no license keys, activation, compliance telemetry or remote shutdown under this licensing model.
105
-
106
- ## No Other Rights
107
-
108
- These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
109
-
110
- ## Patent Defense
111
-
112
- If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your organization makes such a claim, your patent license ends immediately for work on behalf of your organization.
113
-
114
- ## Violations
115
-
116
- The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
117
-
118
- Authorized transitions are not violations. A verification response deadline does not shorten this first-notice cure. Non-renewal itself is not a breach; continued use after paid rights expire must have independent permission. Payment of overdue fees does not create a perpetual license.
119
-
120
- ## No Liability
121
-
122
- ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
123
-
124
- ## Governing Law
125
-
126
- These terms are governed by the law of Georgia, subject to mandatory applicable law. The United Nations Convention on Contracts for the International Sale of Goods does not apply.
127
-
128
- ## Definitions
129
-
130
- The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
131
-
132
- **You** refers to the individual or entity agreeing to these terms.
133
-
134
- An **organization** includes a legal entity, sole proprietorship, partnership or other group working together, whether or not incorporated.
135
-
136
- An **organization group** or **group** is the beneficiary organization together with every organization controlling it, controlled by it or under common control, worldwide. Consolidate 100% of controlled entities' figures, eliminate intra-group sales and funding transfers, and count each person once. Include acquired entities' measurement-period history on a pro-forma combined basis. Reorganizations, split invoices, subsidiaries and new installations do not reset history or thresholds. Unrelated clients or suppliers are not affiliates merely because they trade. Shared passive investment without control is not common control. Shared sovereignty alone does not combine a whole country: an independently administered public institution and its controlled operating subsidiaries form the public-body unit, subject to the commercial-operation separation above.
137
-
138
- **Group people (H)** counts current full-time and part-time employees (including leave), working founders/owners, working officers/directors and unpaid people regularly performing business work. Assigned contractors or agency personnel count only while currently engaged and after working on more than 30 calendar days in the preceding 12 months; casual unpaid helpers use the same rule. Any work on a day counts as one day; counting begins on worked day 31 without reclassifying earlier use. A genuinely ended engagement stops counting; re-engagement retains prior days within the rolling period. Count identifiable assigned workers in any business function, not an entire outside supplier's staff merely because its services are bought. Customers, enrolled students, passive investors, bots, AI agents, accounts and machines do not count merely as such. A person **works for** an organization when they meet these workforce rules; that phrase does not limit permission for authorized short-term contractors to act for a client.
139
-
140
- **Measurement date** is the relevant calendar month end; the **measurement period** is the 12 completed calendar months ending then. New businesses use actual figures since formation, without annualizing, until 12 months exist; acquisition/reorganization does not erase history. H is current at the measurement date; its contractor test uses the preceding 12 months.
141
-
142
- **Revenue and funding (R)** is consolidated gross revenue from all business lines PLUS investment/grant funding raised during the measurement period, including equity investment, capital contributions, convertible notes, SAFEs and other instruments convertible into equity, and commercial grants (grants, subsidies or prizes received for business activity, as distinct from core-purpose grants under Education and Public Benefit). Ordinary bank loans are excluded. Other loans from owners, investors or their affiliates count as funding unless made on ordinary arm's-length commercial terms, and a loan later converted into equity or forgiven counts when converted or forgiven if it was not already counted. Funding counts in the month it is received, not again on conversion of a note or intra-group transfer; never count the same receipt twice as both revenue and funding. Funding valuation and cash balances are not receipts. For revenue, apply consistently recognized local accounting principles or IFRS/GAAP: deduct sales taxes collected for the state and actual refunds/returns, not wages, infrastructure, model costs, commissions or payment fees. Customer advances enter revenue when recognized, not twice on receipt and earning. Consistent principal-versus-agent accounting determines recognized marketplace revenue; neither profit nor gross merchandise value is automatically R. Convert non-USD revenue and funding using monthly average rates from the relevant central bank or another consistently applied public source; retain the source and calculation. Purpose-exempt funding is treated as specified in Education and Public Benefit, not as a reason to revoke that exception.
143
-
144
- **Commercial operation** is an institution's economically connected business activity using the software, including paid proprietary development/consulting, product subscriptions, IP licensing and commercial data/services. Its **external commercial revenue (C)** is all recognized revenue of that activity, not merely incremental revenue attributed to the software, using R's revenue accounting and measurement period but excluding investment/funding and exempt core-purpose receipts. Combine connected operations under common institutional control; where honest separation is unavailable assess the combined relevant commercial activity, not an artificially small department. The separate R measure includes that operation's counted funding once the C trigger applies.
145
-
146
- **Your organization** is the organization you are, if you are one, and any legal entity, sole proprietorship, partnership, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with any of them. This definition applies only to [Patent Defense](#patent-defense).
147
-
148
- **Control** means more than 50% of voting power or actual power to direct management and policies, by contract or otherwise, directly or indirectly. Voting power and rights held by persons acting together under an agreement or arrangement, including through nominees, are combined. A passive minority holding alone is not control.
149
-
150
- **Your licenses** are all the licenses granted to you for the software under these terms.
151
-
152
- **Use** means anything you do with the software requiring one of your licenses.
2
+ Required Notice: Licensed under the Charness License 2.0: https://github.com/olosegres/charness/blob/license-2.0/LICENSE
3
+
4
+ # Charness License 2.0
5
+
6
+ This file is the whole licence of Charness: when it is free, what you may do with the code, and the paid terms. It
7
+ covers the code of the commit it is in. A copy you received with a different licence file (an earlier release under MIT
8
+ or under the Charness License 1.0.0) keeps the licence that came with it.
9
+
10
+ The **licensor** is Sergei Solo (Georgian individual entrepreneur; registration details by e-mail on request). **You**
11
+ are the person or organization using these terms. Contact for everything in this licence: charnesshub@gmail.com.
12
+
13
+ Contents: Part 1, when Charness is free. Part 2, source available. Part 3, commercial terms. Part 4, general terms and
14
+ definitions.
15
+
16
+ ## Part 1. When Charness is free
17
+
18
+ You may use Charness without paying in each of these cases (section 2.1 says what you may do with it; training or using
19
+ a model trained on Charness: section 2.5).
20
+
21
+ 1.1. **Personal use.** Hobby projects, study and independent projects that are not a business. Any paid work on your own
22
+ account, including freelancing or a one-person company, is business use and follows section 1.2. Work you do for an
23
+ employer is the employer's use, whoever owns the computer.
24
+
25
+ 1.2. **Small organizations.** An organization group (section 4.10) whose **R** (revenue plus funding, section 4.10) is
26
+ at most USD 500,000 **and** whose **H** (group people, section 4.10) is at most 20. Both must hold; exactly USD 500,000
27
+ and 20 people qualify. Users, agents, jobs, machines and instances are unlimited.
28
+
29
+ 1.3. **Education and public benefit.** Teaching, student learning, and genuine academic or noncommercial research by
30
+ recognized educational or research institutions and individual researchers; and the own work of public or nonprofit
31
+ schools and universities, genuine charities and public authorities, whatever their budget, funding or headcount.
32
+ Industry-funded genuine academic research qualifies; a disguised contract to deliver a proprietary commercial product
33
+ does not. A commercial employer's research and development is ordinary group use, not free academic research merely
34
+ because a department calls itself a lab. A commercial operation of such an institution that uses Charness is free while
35
+ its external commercial revenue C (section 4.10) is at most USD 500,000 a year; above that it pays as an organization
36
+ under Part 3, counting that operation's own R and H. A for-profit spin-off or a government-owned trading company is an
37
+ ordinary organization from the start.
38
+
39
+ 1.4. **Evaluation.** One period of less than 32 consecutive days per organization group, from the first time anyone in
40
+ the group runs Charness to evaluate it. Productive work is allowed only as part of evaluating. Pauses, other people or
41
+ other versions do not restart it.
42
+
43
+ 1.5. **Growth.** An organization group that was free and exceeds a limit of section 1.2 at a month end may keep using
44
+ Charness for 90 days from that month end. By then it buys a licence (Part 3), falls back within the limits, or stops. A
45
+ second crossing within 12 months of the first does not restart the 90 days. A group already above the limits when it
46
+ starts gets no growth period. A free group that joins a larger group by a merger or acquisition has 90 days from
47
+ completion.
48
+
49
+ 1.6. **Earlier MIT users.** A group that used an MIT-licensed Charness release before its first use of a release under
50
+ any version of the Charness License may use releases under the Charness License for 90 days from that first use, once;
51
+ it runs at the same time as evaluation, not after it. MIT releases stay MIT.
52
+
53
+ 1.7. **Measuring.** Check R and H at every month end, and at first use with the latest month-end figures (a new business
54
+ uses its actual figures since it started). No fees are ever due for use that was free under this Part.
55
+
56
+ 1.8. **Work for clients.** A provider that runs Charness only on its own systems to produce work for a client uses it
57
+ under its own free use or licence, whatever the client's size. When Charness runs on systems the client owns, rents,
58
+ pays for or controls, or when the client's people administer it or make its agents act, it is the client's use, under
59
+ the client's own free use or licence (which the provider may buy for it). A client's request to the provider is not
60
+ making its agents act unless the client can cause agent work through Charness without the provider deciding to pass that
61
+ request on; reaching client repositories or systems through separately licensed tools or agents does not itself mean
62
+ that Charness runs there.
63
+
64
+ ## Part 2. Source available
65
+
66
+ Charness is **source available**, not open source: the code is open to read, and you may use it under these terms.
67
+
68
+ 2.1. **Use and change.** For a use that is free under Part 1 or paid under Part 3, the licensor grants you a copyright
69
+ licence to run, copy and modify Charness, and a licence under the licensor's patents that Charness would otherwise
70
+ infringe.
71
+
72
+ 2.2. **Sharing.** You may share copies of Charness and of your changes without charge, including public mirrors and
73
+ forks, if every copy keeps this file and the `Required Notice:` lines. Recipients get no broader rights than these terms
74
+ and must qualify for their own use. You may install or maintain Charness for a client under the client's own free use or
75
+ licence (section 1.8), and charge for that service, but not for the software. Selling copies, embedding Charness in a
76
+ product, or offering it as a hosted service needs section 3.4 or 3.5, even at no charge, except the access section 3.5
77
+ allows for section 1.3.
78
+
79
+ 2.3. **Derived code.** Code, skills or prompts written on the basis of Charness code or commits (section 4.10), taking
80
+ over its approaches and solutions, are works based on Charness and are subject to this licence like Charness itself,
81
+ whoever or whatever wrote them, including such code an AI model wrote with Charness code or commits put in its context
82
+ to build it (what Charness gives an agent while it runs is not that: section 2.4).
83
+
84
+ 2.4. **Your own work.** Using Charness to write code never makes that code derived from Charness. What Charness itself
85
+ gives an agent while it runs — its prompts, skills, tool descriptions, instructions and compaction guidance — and the
86
+ agent's following them never make the agent's work derived, even where that work applies the approaches they describe;
87
+ nor does code, configuration, a skill or a prompt that only uses, calls, configures or connects to Charness. Section 2.3
88
+ reaches only work built on Charness code or commits, and a copy or adaptation of the texts of Charness's own prompts,
89
+ skills or descriptions as such (for example a skill or prompt made from them). The commands, settings and files an agent
90
+ writes while following them, in the work they guide, are following them, not a copy. Your own code, documents and other
91
+ deliverables that you or your agents produce with Charness are yours, and the licensor claims no ownership or royalty in
92
+ them, even though Charness ran the agents and gave them its prompts, skills and tool descriptions while they worked.
93
+ Such work is derived only where section 2.3 reaches it, never because Charness was used to write it. Nor does an AI
94
+ model's having learned from a general collection of public code that merely includes Charness (section 3.3(b)) make what
95
+ it writes derived, unless the work was asked for as Charness's own approach or solution (for example, to build something
96
+ the way Charness does it); then section 2.3 reaches it as if Charness code were in the model's context. A request is
97
+ never such a request merely because it was sent through Charness, nor is what Charness itself gives an agent, or work
98
+ that only uses, calls, configures or connects to Charness. Code written with a model trained on Charness on purpose
99
+ (section 3.3(a)) is derived only where section 2.3 would reach the same work written by a person who had read Charness's
100
+ code; ordinary code written with such a model stays the user's.
101
+
102
+ 2.5. **Models trained on Charness.** Training or fine-tuning a machine-learning model on Charness code or commits is
103
+ allowed. Section 3.3 says when a model counts as trained on Charness, how such a model may be published, and who pays;
104
+ Part 1 does not make free the selling or offering of such a model.
105
+
106
+ 2.6. **Earlier MIT code.** Code and commits published under the MIT licence (every release before 4.0) stay under MIT;
107
+ sections 2.3, 2.5 and 3.3 do not reach code built on them or a model trained on them alone.
108
+
109
+ 2.7. **Names.** These terms grant no right to the name Charness or the licensor's marks beyond the required notices and
110
+ uses the law allows without permission. Section 3.6(a) adds one limited permission.
111
+
112
+ ## Part 3. Commercial terms
113
+
114
+ Any use that Part 1 does not make free needs a paid licence under this Part. Prices are in US dollars, per organization
115
+ group, excluding taxes.
116
+
117
+ 3.1. **Organization licence.** One yearly price for the whole organization group, by its size: find the band of R and
118
+ the band of H separately and pay the higher of the two. An upper revenue boundary belongs to the lower band. The licence
119
+ covers the group's internal use with unlimited users, agents, jobs, machines and instances, including unattended runs
120
+ and contractors acting for the group; it is never priced per user or per seat.
121
+
122
+ | Band | R: revenue plus funding, last 12 months | H: group people | Price per year |
123
+ |---|---|---|---:|
124
+ | Free | up to $500,000 | up to 20 | $0 |
125
+ | Small | over $500,000, up to $2,000,000 | 21–50 | $500 |
126
+ | Growing | over $2,000,000, up to $10,000,000 | 51–250 | $2,000 |
127
+ | Established | over $10,000,000, up to $50,000,000 | 251–1,000 | $6,000 |
128
+ | Large | over $50,000,000, up to $250,000,000 | 1,001–5,000 | $15,000 |
129
+ | Very large | over $250,000,000, up to $1,000,000,000 | 5,001–10,000 | $30,000 |
130
+ | Global | over $1,000,000,000 | over 10,000 | $60,000 |
131
+
132
+ 3.2. **Term and growth.** A licence lasts one year, or two or three years when prepaid (section 3.6(b)), from the start
133
+ date on the invoice or receipt. It covers every version released before or during it. It is yearly, not perpetual:
134
+ without renewal, paid use ends (an independent free right under Part 1 or an MIT release still applies; you keep your
135
+ copies and your output). Ordinary growth during a paid year costs nothing extra; the next renewal uses the latest
136
+ figures and may move up or down a band, or back to free. A merger or acquisition needs a reassessment of the combined
137
+ group within 90 days of completion and the positive difference, prorated for the rest of the term, with overlapping fees
138
+ already paid credited. A wrong initial figure is corrected to the price that was due.
139
+
140
+ 3.3. **Models trained on Charness.** One licence covers Charness and the models trained on it.
141
+
142
+ (a) A model is trained on Charness on purpose where Charness code or commits were chosen for its training: a fine-tune
143
+ on them, or a training set built or picked to include them. Training done by a group's people, its contractors or anyone
144
+ it engages for it is that group's training. A model made from such a model — further trained, merged, quantized or
145
+ distilled from it — is such a model too. Such a model may be published or offered to others, as open weights or as a
146
+ service, only together with this licence: its weights or its service terms carry its `Required Notice:` lines and this
147
+ file and say that the model was trained on Charness. Whoever uses it, by running its weights or by sending it requests,
148
+ follows the same rules as a user of Charness: the use is free where Part 1 makes it free, and otherwise covered by the
149
+ group's organization licence (section 3.1). A group owes nothing for its use of such a model before it knows, or the
150
+ licensor tells it in writing, that the model was trained on Charness.
151
+
152
+ (b) A general model that an independent organization trained, not for the group, on a broad collection of public code
153
+ that merely includes Charness: the organization that trained it pays as in (d) while it sells or offers the model. The
154
+ groups that only use it, by sending it requests or by running its weights, owe nothing for it. That stays so when they
155
+ further train it on other data — the group's own data of (c) included, but not sessions that (c) counts under (a) — and
156
+ use, sell or offer the result; that does not make them its trainer.
157
+
158
+ (c) A model trained on the group's own code, documents or agent sessions is not trained on Charness merely because
159
+ Charness ran those agents and the prompts, skills and tool descriptions it gave them appear in that data. Sessions
160
+ picked in order to teach a model what Charness gave its agents (its prompts, skills, tool descriptions and guidance, or
161
+ how its agents follow them) are a training set picked to include Charness: such a model is trained on Charness on
162
+ purpose, under (a).
163
+
164
+ (d) A group whose use of Charness is free under Part 1, or that holds its organization licence, owes no second fee for
165
+ using a model trained on Charness. A group that sells or offers to others a model it trained on Charness, under (a) or
166
+ (b), holds its organization licence for its band for every year in which it does so, whatever Part 1 would otherwise
167
+ allow ($0 in the Free band, which needs no order), and pays nothing more if it holds that licence already. The first
168
+ such year begins on the later of the first sale or offer and the day the group knows, or the licensor tells it in
169
+ writing, that the model was trained on Charness. An individual who trains such a model on their own account, not for an
170
+ employer or client, counts, for this section, as an organization group of its own, with its own R and H.
171
+
172
+ 3.4. **Embedded products (OEM).** A product that includes or runs Charness, or supplies its agent orchestration as a
173
+ feature, on premises or hosted, needs a signed OEM addendum before it ships, even at $0. An independently written
174
+ connector or input/output integration that does not supply Charness or its functionality needs no OEM addendum, nor does
175
+ merely using Charness to create output. The yearly OEM amount follows P, the yearly revenue of all of the group's
176
+ products that embed Charness:
177
+
178
+ | Embedded-product revenue P | OEM amount per year |
179
+ |---|---:|
180
+ | up to $500,000 | $0 |
181
+ | over $500,000, up to $2,000,000 | $2,000 |
182
+ | over $2,000,000, up to $10,000,000 | $6,000 |
183
+ | over $10,000,000, up to $50,000,000 | $15,000 |
184
+ | over $50,000,000, up to $250,000,000 | $30,000 |
185
+ | over $250,000,000 | $60,000 |
186
+
187
+ The supplier pays the **greater** of its organization licence fee (section 3.1) and the OEM amount, never their sum. Its
188
+ customers may run the embedded component inside that product, only for the product-specific tasks the OEM addendum
189
+ names, without a Charness fee of their own; they may never extract it, use it for other automation or offer it as a
190
+ general-purpose platform. That right survives for on-premises versions they lawfully received, but gives no updates;
191
+ hosted customers need a current supplier agreement. A no-fee OEM term also lasts one year and is renewed in writing.
192
+
193
+ 3.5. **Hosting and resale.** Selling or offering substantially Charness itself as a hosted, managed, rebranded or resold
194
+ service, even through a new interface, API or AI intermediary, needs a separate signed agreement. Each client then needs
195
+ its own free use or licence, which the provider may buy for it. Classroom, learning and genuine research access under
196
+ section 1.3 needs no such agreement; it is no licence for a general-purpose public hosting business. Write to
197
+ charnesshub@gmail.com.
198
+
199
+ 3.6. **Discounts.** Only these two, and only when the invoice or receipt states them. They apply to the organization
200
+ licence fee and to OEM amounts, never to $0.
201
+
202
+ (a) **Mark, 20 %.** Throughout the term the group shows the "Powered by Charness" mark, with the link the licensor
203
+ supplies, in a product's customer-visible interface or on its public website, reachable without login. For that purpose
204
+ and that term the licensor grants a non-exclusive, non-transferable permission to show the mark, and no other use of the
205
+ name: it may not suggest endorsement or partnership, and never replaces the required notices. The licensor may ask the
206
+ group to change or remove the mark at any time; complying keeps the discount. If the mark is gone and not restored
207
+ within 30 days after notice, the discount for the rest of the term becomes payable, prorated by days; with both
208
+ discounts, that is the difference between the prepaid price and the price with both.
209
+
210
+ (b) **Prepayment, 15 %.** The group pays a two- or three-year term in advance. Prices stay fixed for the term; the band
211
+ is still checked at each anniversary, and a higher one costs the discounted difference for the remaining years. A lower
212
+ one gives no refund.
213
+
214
+ Both together multiply: the price times 0.80 times 0.85, that is 68 % of the price. Examples: $500 becomes $400 with the
215
+ mark, $425 prepaid, $340 with both; $6,000 becomes $4,800, $5,100 or $4,080 a year ($12,240 for three prepaid years).
216
+
217
+ 3.7. **How to buy.** A person or an AI agent acting for the organization can follow these steps. An agent may buy on its
218
+ own when the organization lets it spend; the organization is then the buyer and is bound. An order is the organization's
219
+ statement that its sender may bind it. It buys for the whole group (section 4.10), whose figures set the price.
220
+
221
+ Checkout: none yet (step 3 is by e-mail).
222
+
223
+ 1. Check Part 1 and sections 3.3–3.5. You need nothing and send no order when all three hold: your use is free under
224
+ Part 1; you sell or offer to others no model you trained on Charness, or your group is in the Free band (section 3.3;
225
+ using such a model is covered like using Charness); and you neither embed Charness in a product nor offer it to
226
+ others as a hosted, managed or resold service (running Charness on your own computers or servers for your own work is
227
+ neither). Embedding it in a product, or offering it as a service, needs its signed agreement first (sections
228
+ 3.4–3.5), even at $0.
229
+ 2. Work out the price: your band (section 3.1) from the latest month-end figures, and any discount (section 3.6).
230
+ 3. Send an order to charnesshub@gmail.com with: the organization's legal name and country, the organization at the top
231
+ of its group (section 4.10), its R and H bands, the term (1, 2 or 3 years), the discounts wanted, and the e-mail for
232
+ the invoice. If you sell or offer a model you trained on Charness (section 3.3), say so.
233
+ 4. Pay the invoice you get back.
234
+ 5. Keep the paid invoice or its receipt: either is your licence and its proof. There is no key and nothing to install.
235
+
236
+ 3.8. **Refunds.** A full refund within 30 days after any payment, without a reason, once per group in any 12 months;
237
+ after 30 days, prepaid years are not refunded pro rata. How to ask:
238
+ https://olosegres.github.io/charness/commercial/refunds.html. Paid rights end on refund.
239
+
240
+ 3.9. **Not included.** The fee does not include hosting, model or API costs, installation, consulting, training, support
241
+ or any promise of future releases. Third-party services (Anthropic, OpenAI, Telegram, Jira and others) are under their
242
+ own terms; you supply and pay for your own accounts and follow those terms. Individual subscriptions may prohibit
243
+ sharing an account or routing other people's requests through it, and this licence does not authorize bypassing usage
244
+ limits. Anyone may sell services around Charness without a royalty on them.
245
+
246
+ 3.10. **Referrals.** A partner with a separate signed partner agreement earns 20 % of the fees actually collected from a
247
+ new customer it referred, for that customer's first 12 months, excluding taxes, refunds and chargebacks.
248
+
249
+ ## Part 4. General terms and definitions
250
+
251
+ 4.1. **Acceptance.** To get any right under these terms you must agree to them, as obligations and as conditions of your
252
+ rights.
253
+
254
+ 4.2. **Verification.** Organizations, including free ones, keep records that support their R, H, C or P figures for
255
+ three years. There are no licence keys, activation, compliance telemetry or remote shutdown. On a credible discrepancy
256
+ the licensor may first ask for a written certification by an officer or accountant, with 30 days to answer. Only a
257
+ discrepancy still unresolved after that allows a confidential check by an independent professional, at most once in 12
258
+ months, on 30 days' notice, limited to the records that decide eligibility and fees; never code, prompts, credentials,
259
+ customer data or production systems. The licensor pays for the check unless the underpayment exceeds both 10 % of the
260
+ fees due for the reviewed period and USD 1,000; then the organization pays the reasonable documented cost of the check,
261
+ capped at the underpayment recovered. Sufficient redacted accountant confirmations must be accepted. Records seen may be
262
+ used only to settle compliance and are kept confidential, unless the law requires disclosure. Only actual unpaid fees
263
+ are due, never a penalty multiple; an honest error may be corrected, also by a written payment plan agreed with the
264
+ licensor.
265
+
266
+ 4.3. **Violations.** The first time you are told in writing that you broke these terms, your rights continue if you
267
+ comply, and take practical steps to fix past violations, within 32 days. Otherwise your rights end. A verification
268
+ request is not a violation, and the end of a paid term is not a breach. Payment of overdue fees does not create a
269
+ perpetual licence. Accrued payment and refund obligations and the record and verification duties of section 4.2 survive
270
+ the end of your rights.
271
+
272
+ 4.4. **Patent defense.** If you claim in writing that Charness infringes a patent, your patent licence ends at once. If
273
+ an organization you work for, or any member of its group, makes such a claim, your patent licence ends at once for work
274
+ on behalf of that organization or group.
275
+
276
+ 4.5. **No other rights.** You may not sublicense or transfer your rights, except that a paid licence moves with the
277
+ business it belongs to, on written notice. The licensor may transfer these terms and paid licences to a successor of its
278
+ Charness business, on notice. These terms imply no other licences. Fair-use rights are not limited.
279
+
280
+ 4.6. **No warranty, limited liability.** AS FAR AS THE LAW ALLOWS, CHARNESS COMES AS IS, WITHOUT ANY WARRANTY OR
281
+ CONDITION, EXPRESS OR IMPLIED, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. The
282
+ licensor is not liable for indirect or consequential loss, or loss of profit, data or business, including loss caused by
283
+ an agent; its total liability is limited to the fees you paid in the 12 months before the claim. Nothing limits
284
+ liability that the law does not allow to be limited.
285
+
286
+ 4.7. **Law.** Georgian law governs these terms; the UN Convention on Contracts for the International Sale of Goods does
287
+ not apply. The courts of Tbilisi decide disputes, unless mandatory law says otherwise. If a merchant of record sells a
288
+ licence, its buyer terms govern that purchase and these terms the software rights.
289
+
290
+ 4.8. **Changes and versions.** The licensor may publish new terms; they apply to code published with them, never
291
+ silently to a licence already paid. Any change of these terms gets a new version number, and the text of each version
292
+ stays unchanged at https://github.com/olosegres/charness/blob/license-<version>/LICENSE (this one: license-2.0). A
293
+ renewal at a new price needs 30 days' notice.
294
+
295
+ 4.9. **Notices and signed agreements.** E-mail is written notice: to the licensor at charnesshub@gmail.com, to you at
296
+ the address in your order or the one you last wrote from. A signed OEM addendum, hosting or partner agreement prevails
297
+ over these terms for what it expressly covers. An order the licensor invoices records the term, the discounts granted
298
+ and the price charged. It changes no term of this licence: the licence covers the whole group of section 4.10, whatever
299
+ group the order names, and bands and price are corrected or reassessed under sections 3.2, 3.6(b) and 4.2. Anything else
300
+ needs a document the licensor signs.
301
+
302
+ 4.10. **Definitions.**
303
+
304
+ - **Charness:** the software, documentation and agent skills the licensor publishes under this licence.
305
+ - **Charness code or commits:** the source and the commit history the licensor publishes for Charness.
306
+ - **Organization:** a company, sole proprietorship, partnership or any body of people working together, incorporated or
307
+ not.
308
+ - **Organization group (group):** the organization together with every organization that controls it, is controlled by
309
+ it or is under common control with it, worldwide. **Control** is more than 50 % of the votes or the actual power to
310
+ direct management, held directly, indirectly or by persons acting together. Reorganizations, split invoices and new
311
+ subsidiaries do not reset the figures, and an acquired business's figures for the last 12 completed months count,
312
+ combined pro forma. Shared sovereignty alone does not combine a whole country: an independently administered public
313
+ institution and the entities it controls form their own group.
314
+ - **R (revenue plus funding):** the group's consolidated gross revenue over the last 12 completed months, plus the
315
+ investment and commercial-grant funding it received in them: equity, capital contributions, convertible notes, SAFEs,
316
+ and loans from owners or investors that are not on ordinary market terms; a loan later converted into equity or
317
+ forgiven counts when converted or forgiven, if not counted before. Ordinary bank loans do not count. Count revenue by
318
+ consistent accounting, after sales taxes and refunds, before costs; count each amount received once. Convert other
319
+ currencies at monthly central-bank average rates.
320
+ - **H (group people):** the group's current employees (full- or part-time, including those on leave), working founders,
321
+ owners and directors, and unpaid people working regularly; plus assigned contractors and agency personnel currently
322
+ engaged who worked for the group on more than 30 days in the last 12 months. Count identifiable assigned workers in
323
+ any business function, not a supplier's whole staff merely because the group buys its services. Count every person
324
+ once. Customers, students, passive investors, AI agents, bots and machines are not people for H.
325
+ - **C (external commercial revenue):** all recognized revenue over the last 12 completed months of the commercial
326
+ operation of an institution of section 1.3 that uses Charness (paid proprietary development or consulting, product
327
+ subscriptions, IP licensing, commercial data or services), not merely the revenue attributed to Charness, excluding
328
+ its core-purpose grants and donations. Connected commercial operations under common institutional control are
329
+ combined; an operation is not split into small departments to stay under the limit.
330
+ - **P (embedded-product revenue):** the revenue of all the group's products that embed Charness, over the last 12
331
+ completed months, counting the whole product, after sales taxes and refunds. Include mandatory bundled charges, and
332
+ split a bundle by standalone selling prices, never by a token product price that hides compulsory setup or services.
@@ -1,5 +1,8 @@
1
1
  # Migrating from 3.x to 4.0
2
2
 
3
+ > This guide describes the change made by 4.0.0 and the Charness License 1.0.0 it introduced. The licence of the current
4
+ > code, with its prices and how to buy, is the repository's [LICENSE](LICENSE); a copy keeps the licence file it came with.
5
+
3
6
  Charness 4.0 changes the **license**. The commands, the settings and the way you run the bot are the same; what changes
4
7
  is what you may do with the software and who pays for it.
5
8
 
@@ -9,8 +12,8 @@ retroactively, and you may keep running it for as long as you like.
9
12
 
10
13
  ## What changed
11
14
 
12
- - 4.0 and later are under the [Charness License 1.0.0](LICENSE) — **source-available, not open source**. It is PolyForm
13
- Small Business 1.0.0 with its "small business" grant replaced by the terms below.
15
+ - 4.0.0 moved Charness to the [Charness License 1.0.0](https://github.com/olosegres/charness/blob/v4.2.0/LICENSE) — **source-available, not
16
+ open source**. It is PolyForm Small Business 1.0.0 with its "small business" grant replaced by the terms below.
14
17
  - Charness stays **free** for:
15
18
  - personal use — hobby projects and study;
16
19
  - any organization group whose **revenue plus funding** (R) is at most **$500,000** AND whose **people** (H) are at most
@@ -44,10 +47,10 @@ The fee is the **higher** of the revenue band and the people band:
44
47
  - **The group is every company under common control**, worldwide — not a department. One operator in a 300-person group
45
48
  pays for the group.
46
49
  - Two optional discounts, together 32% off: 20% for showing a "Powered by Charness" mark, 15% for prepaying 2 or 3 years.
47
- - Buying is by e-mail: charnesshub@gmail.com, see the [commercial page](https://olosegres.github.io/charness/commercial/)
48
- and the [commercial terms](LICENSE-COMMERCIAL.md). Full refund within 30 days.
50
+ - Buying is by e-mail: charnesshub@gmail.com; see the [commercial terms 1.0.0](https://github.com/olosegres/charness/blob/v4.2.0/LICENSE-COMMERCIAL.md) and, for the
51
+ current terms, [LICENSE](LICENSE). Full refund within 30 days.
49
52
 
50
- More cases, and what counts in R and H: the [licensing FAQ](docs/licensing-faq.md).
53
+ More cases, and what counts in R and H, as written for 1.0.0: the [licensing FAQ](https://github.com/olosegres/charness/blob/v4.2.0/docs/licensing-faq.md).
51
54
 
52
55
  ## What you have to do
53
56