@afaik-lab/weigh 0.0.0-stage → 0.6.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 (349) hide show
  1. package/.env.example +49 -0
  2. package/LICENSE +373 -0
  3. package/README.md +102 -2
  4. package/dist/agent.d.ts +83 -0
  5. package/dist/agent.d.ts.map +1 -0
  6. package/dist/agent.js +204 -0
  7. package/dist/agent.js.map +1 -0
  8. package/dist/ceilings.d.ts +32 -0
  9. package/dist/ceilings.d.ts.map +1 -0
  10. package/dist/ceilings.js +61 -0
  11. package/dist/ceilings.js.map +1 -0
  12. package/dist/cli.d.ts +3 -0
  13. package/dist/cli.d.ts.map +1 -0
  14. package/dist/cli.js +530 -0
  15. package/dist/cli.js.map +1 -0
  16. package/dist/config-cli.d.ts +15 -0
  17. package/dist/config-cli.d.ts.map +1 -0
  18. package/dist/config-cli.js +132 -0
  19. package/dist/config-cli.js.map +1 -0
  20. package/dist/config.d.ts +198 -0
  21. package/dist/config.d.ts.map +1 -0
  22. package/dist/config.js +373 -0
  23. package/dist/config.js.map +1 -0
  24. package/dist/context-cli.d.ts +35 -0
  25. package/dist/context-cli.d.ts.map +1 -0
  26. package/dist/context-cli.js +251 -0
  27. package/dist/context-cli.js.map +1 -0
  28. package/dist/context.d.ts +118 -0
  29. package/dist/context.d.ts.map +1 -0
  30. package/dist/context.js +159 -0
  31. package/dist/context.js.map +1 -0
  32. package/dist/corrections/correction-set.d.ts +67 -0
  33. package/dist/corrections/correction-set.d.ts.map +1 -0
  34. package/dist/corrections/correction-set.js +104 -0
  35. package/dist/corrections/correction-set.js.map +1 -0
  36. package/dist/corrections/correction.d.ts +74 -0
  37. package/dist/corrections/correction.d.ts.map +1 -0
  38. package/dist/corrections/correction.js +154 -0
  39. package/dist/corrections/correction.js.map +1 -0
  40. package/dist/corrections/follow-up.d.ts +69 -0
  41. package/dist/corrections/follow-up.d.ts.map +1 -0
  42. package/dist/corrections/follow-up.js +217 -0
  43. package/dist/corrections/follow-up.js.map +1 -0
  44. package/dist/corrections/index.d.ts +31 -0
  45. package/dist/corrections/index.d.ts.map +1 -0
  46. package/dist/corrections/index.js +31 -0
  47. package/dist/corrections/index.js.map +1 -0
  48. package/dist/corrections/ledger.d.ts +78 -0
  49. package/dist/corrections/ledger.d.ts.map +1 -0
  50. package/dist/corrections/ledger.js +117 -0
  51. package/dist/corrections/ledger.js.map +1 -0
  52. package/dist/corrections/promotion.d.ts +119 -0
  53. package/dist/corrections/promotion.d.ts.map +1 -0
  54. package/dist/corrections/promotion.js +221 -0
  55. package/dist/corrections/promotion.js.map +1 -0
  56. package/dist/corrections/schema.d.ts +125 -0
  57. package/dist/corrections/schema.d.ts.map +1 -0
  58. package/dist/corrections/schema.js +100 -0
  59. package/dist/corrections/schema.js.map +1 -0
  60. package/dist/corrections-cli.d.ts +28 -0
  61. package/dist/corrections-cli.d.ts.map +1 -0
  62. package/dist/corrections-cli.js +157 -0
  63. package/dist/corrections-cli.js.map +1 -0
  64. package/dist/diff.d.ts +105 -0
  65. package/dist/diff.d.ts.map +1 -0
  66. package/dist/diff.js +202 -0
  67. package/dist/diff.js.map +1 -0
  68. package/dist/doctor.d.ts +38 -0
  69. package/dist/doctor.d.ts.map +1 -0
  70. package/dist/doctor.js +197 -0
  71. package/dist/doctor.js.map +1 -0
  72. package/dist/events.d.ts +21 -0
  73. package/dist/events.d.ts.map +1 -0
  74. package/dist/events.js +5 -0
  75. package/dist/events.js.map +1 -0
  76. package/dist/findings.d.ts +510 -0
  77. package/dist/findings.d.ts.map +1 -0
  78. package/dist/findings.js +645 -0
  79. package/dist/findings.js.map +1 -0
  80. package/dist/follow-up-cli.d.ts +88 -0
  81. package/dist/follow-up-cli.d.ts.map +1 -0
  82. package/dist/follow-up-cli.js +208 -0
  83. package/dist/follow-up-cli.js.map +1 -0
  84. package/dist/harness.d.ts +64 -0
  85. package/dist/harness.d.ts.map +1 -0
  86. package/dist/harness.js +71 -0
  87. package/dist/harness.js.map +1 -0
  88. package/dist/help/command-help.d.ts +9 -0
  89. package/dist/help/command-help.d.ts.map +1 -0
  90. package/dist/help/command-help.js +21 -0
  91. package/dist/help/command-help.js.map +1 -0
  92. package/dist/help/commands/answer.d.ts +3 -0
  93. package/dist/help/commands/answer.d.ts.map +1 -0
  94. package/dist/help/commands/answer.js +39 -0
  95. package/dist/help/commands/answer.js.map +1 -0
  96. package/dist/help/commands/config.d.ts +3 -0
  97. package/dist/help/commands/config.d.ts.map +1 -0
  98. package/dist/help/commands/config.js +25 -0
  99. package/dist/help/commands/config.js.map +1 -0
  100. package/dist/help/commands/context.d.ts +3 -0
  101. package/dist/help/commands/context.d.ts.map +1 -0
  102. package/dist/help/commands/context.js +44 -0
  103. package/dist/help/commands/context.js.map +1 -0
  104. package/dist/help/commands/corrections.d.ts +3 -0
  105. package/dist/help/commands/corrections.d.ts.map +1 -0
  106. package/dist/help/commands/corrections.js +30 -0
  107. package/dist/help/commands/corrections.js.map +1 -0
  108. package/dist/help/commands/doctor.d.ts +3 -0
  109. package/dist/help/commands/doctor.d.ts.map +1 -0
  110. package/dist/help/commands/doctor.js +12 -0
  111. package/dist/help/commands/doctor.js.map +1 -0
  112. package/dist/help/commands/index.d.ts +4 -0
  113. package/dist/help/commands/index.d.ts.map +1 -0
  114. package/dist/help/commands/index.js +27 -0
  115. package/dist/help/commands/index.js.map +1 -0
  116. package/dist/help/commands/memory.d.ts +3 -0
  117. package/dist/help/commands/memory.d.ts.map +1 -0
  118. package/dist/help/commands/memory.js +33 -0
  119. package/dist/help/commands/memory.js.map +1 -0
  120. package/dist/help/commands/models.d.ts +3 -0
  121. package/dist/help/commands/models.d.ts.map +1 -0
  122. package/dist/help/commands/models.js +17 -0
  123. package/dist/help/commands/models.js.map +1 -0
  124. package/dist/help/commands/options.d.ts +4 -0
  125. package/dist/help/commands/options.d.ts.map +1 -0
  126. package/dist/help/commands/options.js +13 -0
  127. package/dist/help/commands/options.js.map +1 -0
  128. package/dist/help/commands/review.d.ts +3 -0
  129. package/dist/help/commands/review.d.ts.map +1 -0
  130. package/dist/help/commands/review.js +50 -0
  131. package/dist/help/commands/review.js.map +1 -0
  132. package/dist/help/commands/sessions.d.ts +3 -0
  133. package/dist/help/commands/sessions.d.ts.map +1 -0
  134. package/dist/help/commands/sessions.js +23 -0
  135. package/dist/help/commands/sessions.js.map +1 -0
  136. package/dist/help/commands/show.d.ts +3 -0
  137. package/dist/help/commands/show.d.ts.map +1 -0
  138. package/dist/help/commands/show.js +18 -0
  139. package/dist/help/commands/show.js.map +1 -0
  140. package/dist/help/help.d.ts +16 -0
  141. package/dist/help/help.d.ts.map +1 -0
  142. package/dist/help/help.js +68 -0
  143. package/dist/help/help.js.map +1 -0
  144. package/dist/help/index.d.ts +4 -0
  145. package/dist/help/index.d.ts.map +1 -0
  146. package/dist/help/index.js +7 -0
  147. package/dist/help/index.js.map +1 -0
  148. package/dist/index.d.ts +80 -0
  149. package/dist/index.d.ts.map +1 -0
  150. package/dist/index.js +51 -0
  151. package/dist/index.js.map +1 -0
  152. package/dist/knowledge/block.d.ts +65 -0
  153. package/dist/knowledge/block.d.ts.map +1 -0
  154. package/dist/knowledge/block.js +89 -0
  155. package/dist/knowledge/block.js.map +1 -0
  156. package/dist/knowledge/claim.d.ts +143 -0
  157. package/dist/knowledge/claim.d.ts.map +1 -0
  158. package/dist/knowledge/claim.js +297 -0
  159. package/dist/knowledge/claim.js.map +1 -0
  160. package/dist/knowledge/index.d.ts +32 -0
  161. package/dist/knowledge/index.d.ts.map +1 -0
  162. package/dist/knowledge/index.js +29 -0
  163. package/dist/knowledge/index.js.map +1 -0
  164. package/dist/knowledge/novelty.d.ts +65 -0
  165. package/dist/knowledge/novelty.d.ts.map +1 -0
  166. package/dist/knowledge/novelty.js +94 -0
  167. package/dist/knowledge/novelty.js.map +1 -0
  168. package/dist/knowledge/recall.d.ts +134 -0
  169. package/dist/knowledge/recall.d.ts.map +1 -0
  170. package/dist/knowledge/recall.js +229 -0
  171. package/dist/knowledge/recall.js.map +1 -0
  172. package/dist/knowledge/recalled-claim.d.ts +35 -0
  173. package/dist/knowledge/recalled-claim.d.ts.map +1 -0
  174. package/dist/knowledge/recalled-claim.js +67 -0
  175. package/dist/knowledge/recalled-claim.js.map +1 -0
  176. package/dist/knowledge/recalled.d.ts +70 -0
  177. package/dist/knowledge/recalled.d.ts.map +1 -0
  178. package/dist/knowledge/recalled.js +149 -0
  179. package/dist/knowledge/recalled.js.map +1 -0
  180. package/dist/knowledge/schema.d.ts +83 -0
  181. package/dist/knowledge/schema.d.ts.map +1 -0
  182. package/dist/knowledge/schema.js +96 -0
  183. package/dist/knowledge/schema.js.map +1 -0
  184. package/dist/knowledge/staleness.d.ts +48 -0
  185. package/dist/knowledge/staleness.d.ts.map +1 -0
  186. package/dist/knowledge/staleness.js +85 -0
  187. package/dist/knowledge/staleness.js.map +1 -0
  188. package/dist/knowledge/store.d.ts +100 -0
  189. package/dist/knowledge/store.d.ts.map +1 -0
  190. package/dist/knowledge/store.js +184 -0
  191. package/dist/knowledge/store.js.map +1 -0
  192. package/dist/memory/compose-file.d.ts +14 -0
  193. package/dist/memory/compose-file.d.ts.map +1 -0
  194. package/dist/memory/compose-file.js +25 -0
  195. package/dist/memory/compose-file.js.map +1 -0
  196. package/dist/memory/index.d.ts +43 -0
  197. package/dist/memory/index.d.ts.map +1 -0
  198. package/dist/memory/index.js +119 -0
  199. package/dist/memory/index.js.map +1 -0
  200. package/dist/memory/oss.d.ts +62 -0
  201. package/dist/memory/oss.d.ts.map +1 -0
  202. package/dist/memory/oss.js +230 -0
  203. package/dist/memory/oss.js.map +1 -0
  204. package/dist/memory/platform.d.ts +37 -0
  205. package/dist/memory/platform.d.ts.map +1 -0
  206. package/dist/memory/platform.js +131 -0
  207. package/dist/memory/platform.js.map +1 -0
  208. package/dist/memory/scope.d.ts +49 -0
  209. package/dist/memory/scope.d.ts.map +1 -0
  210. package/dist/memory/scope.js +70 -0
  211. package/dist/memory/scope.js.map +1 -0
  212. package/dist/memory/types.d.ts +113 -0
  213. package/dist/memory/types.d.ts.map +1 -0
  214. package/dist/memory/types.js +18 -0
  215. package/dist/memory/types.js.map +1 -0
  216. package/dist/memory-cli.d.ts +17 -0
  217. package/dist/memory-cli.d.ts.map +1 -0
  218. package/dist/memory-cli.js +107 -0
  219. package/dist/memory-cli.js.map +1 -0
  220. package/dist/models-cli.d.ts +12 -0
  221. package/dist/models-cli.d.ts.map +1 -0
  222. package/dist/models-cli.js +54 -0
  223. package/dist/models-cli.js.map +1 -0
  224. package/dist/models.d.ts +111 -0
  225. package/dist/models.d.ts.map +1 -0
  226. package/dist/models.js +227 -0
  227. package/dist/models.js.map +1 -0
  228. package/dist/paths.d.ts +35 -0
  229. package/dist/paths.d.ts.map +1 -0
  230. package/dist/paths.js +65 -0
  231. package/dist/paths.js.map +1 -0
  232. package/dist/profile.d.ts +28 -0
  233. package/dist/profile.d.ts.map +1 -0
  234. package/dist/profile.js +154 -0
  235. package/dist/profile.js.map +1 -0
  236. package/dist/progress.d.ts +70 -0
  237. package/dist/progress.d.ts.map +1 -0
  238. package/dist/progress.js +132 -0
  239. package/dist/progress.js.map +1 -0
  240. package/dist/quiet.d.ts +2 -0
  241. package/dist/quiet.d.ts.map +1 -0
  242. package/dist/quiet.js +21 -0
  243. package/dist/quiet.js.map +1 -0
  244. package/dist/reconcile/continuation.d.ts +132 -0
  245. package/dist/reconcile/continuation.d.ts.map +1 -0
  246. package/dist/reconcile/continuation.js +306 -0
  247. package/dist/reconcile/continuation.js.map +1 -0
  248. package/dist/reconcile/index.d.ts +26 -0
  249. package/dist/reconcile/index.d.ts.map +1 -0
  250. package/dist/reconcile/index.js +28 -0
  251. package/dist/reconcile/index.js.map +1 -0
  252. package/dist/reconcile/outcome-set.d.ts +53 -0
  253. package/dist/reconcile/outcome-set.d.ts.map +1 -0
  254. package/dist/reconcile/outcome-set.js +124 -0
  255. package/dist/reconcile/outcome-set.js.map +1 -0
  256. package/dist/reconcile/outcome.d.ts +56 -0
  257. package/dist/reconcile/outcome.d.ts.map +1 -0
  258. package/dist/reconcile/outcome.js +60 -0
  259. package/dist/reconcile/outcome.js.map +1 -0
  260. package/dist/reconcile/reconciliation.d.ts +49 -0
  261. package/dist/reconcile/reconciliation.d.ts.map +1 -0
  262. package/dist/reconcile/reconciliation.js +88 -0
  263. package/dist/reconcile/reconciliation.js.map +1 -0
  264. package/dist/reconcile/schema.d.ts +157 -0
  265. package/dist/reconcile/schema.d.ts.map +1 -0
  266. package/dist/reconcile/schema.js +97 -0
  267. package/dist/reconcile/schema.js.map +1 -0
  268. package/dist/record/index.d.ts +23 -0
  269. package/dist/record/index.d.ts.map +1 -0
  270. package/dist/record/index.js +25 -0
  271. package/dist/record/index.js.map +1 -0
  272. package/dist/record/review-record.d.ts +28 -0
  273. package/dist/record/review-record.d.ts.map +1 -0
  274. package/dist/record/review-record.js +78 -0
  275. package/dist/record/review-record.js.map +1 -0
  276. package/dist/record/schema.d.ts +153 -0
  277. package/dist/record/schema.d.ts.map +1 -0
  278. package/dist/record/schema.js +87 -0
  279. package/dist/record/schema.js.map +1 -0
  280. package/dist/record/store.d.ts +83 -0
  281. package/dist/record/store.d.ts.map +1 -0
  282. package/dist/record/store.js +162 -0
  283. package/dist/record/store.js.map +1 -0
  284. package/dist/record/stored-review.d.ts +36 -0
  285. package/dist/record/stored-review.d.ts.map +1 -0
  286. package/dist/record/stored-review.js +90 -0
  287. package/dist/record/stored-review.js.map +1 -0
  288. package/dist/refute.d.ts +318 -0
  289. package/dist/refute.d.ts.map +1 -0
  290. package/dist/refute.js +513 -0
  291. package/dist/refute.js.map +1 -0
  292. package/dist/render.d.ts +212 -0
  293. package/dist/render.d.ts.map +1 -0
  294. package/dist/render.js +544 -0
  295. package/dist/render.js.map +1 -0
  296. package/dist/review-cli.d.ts +181 -0
  297. package/dist/review-cli.d.ts.map +1 -0
  298. package/dist/review-cli.js +598 -0
  299. package/dist/review-cli.js.map +1 -0
  300. package/dist/reviewer.d.ts +297 -0
  301. package/dist/reviewer.d.ts.map +1 -0
  302. package/dist/reviewer.js +580 -0
  303. package/dist/reviewer.js.map +1 -0
  304. package/dist/session-cli.d.ts +17 -0
  305. package/dist/session-cli.d.ts.map +1 -0
  306. package/dist/session-cli.js +62 -0
  307. package/dist/session-cli.js.map +1 -0
  308. package/dist/session.d.ts +36 -0
  309. package/dist/session.d.ts.map +1 -0
  310. package/dist/session.js +105 -0
  311. package/dist/session.js.map +1 -0
  312. package/dist/settings.d.ts +68 -0
  313. package/dist/settings.d.ts.map +1 -0
  314. package/dist/settings.js +175 -0
  315. package/dist/settings.js.map +1 -0
  316. package/dist/show-cli.d.ts +39 -0
  317. package/dist/show-cli.d.ts.map +1 -0
  318. package/dist/show-cli.js +56 -0
  319. package/dist/show-cli.js.map +1 -0
  320. package/dist/stdout.d.ts +28 -0
  321. package/dist/stdout.d.ts.map +1 -0
  322. package/dist/stdout.js +44 -0
  323. package/dist/stdout.js.map +1 -0
  324. package/dist/target.d.ts +58 -0
  325. package/dist/target.d.ts.map +1 -0
  326. package/dist/target.js +96 -0
  327. package/dist/target.js.map +1 -0
  328. package/dist/tools/index.d.ts +93 -0
  329. package/dist/tools/index.d.ts.map +1 -0
  330. package/dist/tools/index.js +146 -0
  331. package/dist/tools/index.js.map +1 -0
  332. package/dist/tools/root.d.ts +62 -0
  333. package/dist/tools/root.d.ts.map +1 -0
  334. package/dist/tools/root.js +51 -0
  335. package/dist/tools/root.js.map +1 -0
  336. package/dist/usage.d.ts +75 -0
  337. package/dist/usage.d.ts.map +1 -0
  338. package/dist/usage.js +100 -0
  339. package/dist/usage.js.map +1 -0
  340. package/dist/version.d.ts +14 -0
  341. package/dist/version.d.ts.map +1 -0
  342. package/dist/version.js +26 -0
  343. package/dist/version.js.map +1 -0
  344. package/dist/workspace.d.ts +48 -0
  345. package/dist/workspace.d.ts.map +1 -0
  346. package/dist/workspace.js +126 -0
  347. package/dist/workspace.js.map +1 -0
  348. package/docker-compose.yml +61 -0
  349. package/package.json +70 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/help/commands/context.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,SAAS,EAAE,oDAAoD,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;EAehH,WAAW;;;;;;;;;;;;EAYX,WAAW;;EAEX,cAAc;;;;;;;;8DAQ8C,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const correctionsHelp: CommandHelp;
3
+ //# sourceMappingURL=corrections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corrections.d.ts","sourceRoot":"","sources":["../../../src/help/commands/corrections.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,eAAe,aAuBW,CAAC"}
@@ -0,0 +1,30 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { MEMORY_OPTIONS, REPO_OPTION, JSON_OPTION } from './options.js';
6
+ export const correctionsHelp = new CommandHelp('corrections', 'List your rulings, or teach from them', () => `Usage: weigh corrections <list|promote> [options]
7
+
8
+ The rulings weigh answer recorded.
9
+
10
+ list The rulings in force on this branch
11
+ promote Teach what past rulings say about the repository. weigh answer
12
+ already does this as it records; run it once after configuring
13
+ a memory backend, for rulings made before there was one
14
+
15
+ Options:
16
+ --all For list: every ruling ever made, not only the ones
17
+ in force on this branch
18
+ --limit <n> For list: maximum rulings to show
19
+ --dry-run For promote: print what each ruling would teach and
20
+ write nothing (needs no backend)
21
+ ${REPO_OPTION}
22
+ ${JSON_OPTION}
23
+
24
+ ${MEMORY_OPTIONS}
25
+
26
+ Examples:
27
+ weigh corrections list
28
+ weigh corrections list --all
29
+ weigh corrections promote --dry-run`);
30
+ //# sourceMappingURL=corrections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corrections.js","sourceRoot":"","sources":["../../../src/help/commands/corrections.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,WAAW,CAAC,aAAa,EAAE,uCAAuC,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;EAe3G,WAAW;EACX,WAAW;;EAEX,cAAc;;;;;sCAKsB,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const doctorHelp: CommandHelp;
3
+ //# sourceMappingURL=doctor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/help/commands/doctor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,UAAU,aAKP,CAAC"}
@@ -0,0 +1,12 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { JSON_OPTION } from './options.js';
6
+ export const doctorHelp = new CommandHelp('doctor', 'Check the install: version, credentials, memory', () => `Usage: weigh doctor [options]
7
+
8
+ Check that Weigh can run here, and say what is missing. Runs no model.
9
+
10
+ Options:
11
+ ${JSON_OPTION}`);
12
+ //# sourceMappingURL=doctor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../../src/help/commands/doctor.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,iDAAiD,EAAE,GAAG,EAAE,CAAC;;;;;EAK3G,WAAW,EAAE,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CommandHelp } from '../command-help.js';
2
+ /** In the order `weigh --help` lists them: the review loop first, then the stores, then setup. */
3
+ export declare const COMMANDS: readonly CommandHelp[];
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/help/commands/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAYtD,kGAAkG;AAClG,eAAO,MAAM,QAAQ,EAAE,SAAS,WAAW,EAW1C,CAAC"}
@@ -0,0 +1,27 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { reviewHelp } from './review.js';
5
+ import { showHelp } from './show.js';
6
+ import { answerHelp } from './answer.js';
7
+ import { correctionsHelp } from './corrections.js';
8
+ import { contextHelp } from './context.js';
9
+ import { memoryHelp } from './memory.js';
10
+ import { sessionsHelp } from './sessions.js';
11
+ import { configHelp } from './config.js';
12
+ import { modelsHelp } from './models.js';
13
+ import { doctorHelp } from './doctor.js';
14
+ /** In the order `weigh --help` lists them: the review loop first, then the stores, then setup. */
15
+ export const COMMANDS = [
16
+ reviewHelp,
17
+ showHelp,
18
+ answerHelp,
19
+ correctionsHelp,
20
+ contextHelp,
21
+ memoryHelp,
22
+ sessionsHelp,
23
+ configHelp,
24
+ modelsHelp,
25
+ doctorHelp,
26
+ ];
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/help/commands/index.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,kGAAkG;AAClG,MAAM,CAAC,MAAM,QAAQ,GAA2B;IAC9C,UAAU;IACV,QAAQ;IACR,UAAU;IACV,eAAe;IACf,WAAW;IACX,UAAU;IACV,YAAY;IACZ,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const memoryHelp: CommandHelp;
3
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/help/commands/memory.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,UAAU,aA0B2C,CAAC"}
@@ -0,0 +1,33 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { MEMORY_OPTIONS, JSON_OPTION } from './options.js';
6
+ export const memoryHelp = new CommandHelp('memory', 'Inspect or clear stored memories', () => `Usage: weigh memory <status|list|search|clear|compose> [query] [options]
7
+
8
+ What questions asked with a prompt have stored. A review reads memory but does
9
+ not write to it.
10
+
11
+ status Which backend and identity memories use
12
+ list List stored memories
13
+ search Find memories that match a query
14
+ clear Delete your memories, or one session's (needs --yes)
15
+ compose Print the Docker Compose file for the self-hosted backend
16
+ (Qdrant and Ollama). Weigh runs nothing; Docker does
17
+
18
+ Options:
19
+ --session <id> Only the memories one session wrote
20
+ --limit <n> Maximum memories to list or search
21
+ -y, --yes Confirm clear
22
+ ${JSON_OPTION}
23
+
24
+ ${MEMORY_OPTIONS}
25
+
26
+ Examples:
27
+ weigh memory status
28
+ weigh memory search "deployment preferences"
29
+ weigh memory clear --session 2026-01-01T00-00-00-000Z --yes
30
+ weigh memory compose | docker compose -f - up -d
31
+ weigh memory compose > compose.yml
32
+ docker compose -p weigh down (stop it; the data stays)`);
33
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../../src/help/commands/memory.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,kCAAkC,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;EAgB5F,WAAW;;EAEX,cAAc;;;;;;;;iEAQiD,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const modelsHelp: CommandHelp;
3
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/help/commands/models.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,UAAU,aASqB,CAAC"}
@@ -0,0 +1,17 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { describeModels } from '../../models.js';
5
+ import { CommandHelp } from '../command-help.js';
6
+ import { JSON_OPTION } from './options.js';
7
+ export const modelsHelp = new CommandHelp('models', 'List the models you can pick with -m', () => `Usage: weigh models [options]
8
+
9
+ Refresh the list of models from your Claude Code install and print it.
10
+
11
+ Options:
12
+ ${JSON_OPTION}
13
+
14
+ Models:
15
+ ${describeModels()}
16
+ Any Claude model id is accepted in full.`);
17
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/help/commands/models.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,sCAAsC,EAAE,GAAG,EAAE,CAAC;;;;;EAKhG,WAAW;;;EAGX,cAAc,EAAE;2CACyB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const MEMORY_OPTIONS = "Memory:\n -u, --user <id> Identity memories are stored under (default: $USER)\n --memory-backend <b> \"platform\" (hosted Mem0) or \"oss\" (self-hosted)\n --no-memory Skip recall and capture for this run";
2
+ export declare const REPO_OPTION = " --repo <path> Repository it is about (default: the working directory)";
3
+ export declare const JSON_OPTION = " -j, --json Print JSON instead of text";
4
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/help/commands/options.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,gPAGsC,CAAC;AAElE,eAAO,MAAM,WAAW,wFAAwF,CAAC;AAEjH,eAAO,MAAM,WAAW,2DAA2D,CAAC"}
@@ -0,0 +1,13 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ // Option lines more than one command's help shows, so they read the same in each.
5
+ // Every command that loads config takes these, because the flags are applied
6
+ // to the config rather than to one command.
7
+ export const MEMORY_OPTIONS = `Memory:
8
+ -u, --user <id> Identity memories are stored under (default: $USER)
9
+ --memory-backend <b> "platform" (hosted Mem0) or "oss" (self-hosted)
10
+ --no-memory Skip recall and capture for this run`;
11
+ export const REPO_OPTION = ` --repo <path> Repository it is about (default: the working directory)`;
12
+ export const JSON_OPTION = ` -j, --json Print JSON instead of text`;
13
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/help/commands/options.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,kFAAkF;AAElF,6EAA6E;AAC7E,4CAA4C;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG;;;iEAGmC,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,qFAAqF,CAAC;AAEjH,MAAM,CAAC,MAAM,WAAW,GAAG,wDAAwD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const reviewHelp: CommandHelp;
3
+ //# sourceMappingURL=review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/help/commands/review.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,UAAU,aA2CqC,CAAC"}
@@ -0,0 +1,50 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { MEMORY_OPTIONS, JSON_OPTION } from './options.js';
6
+ export const reviewHelp = new CommandHelp('review', 'Review the current branch against its base', () => `Usage: weigh review [options]
7
+
8
+ Review the changes on a branch, read-only. The review is stored, so weigh show
9
+ can print it again and weigh answer can rule on its findings.
10
+
11
+ What to review:
12
+ --repo <path> Repository to review (default: the working directory)
13
+ --base <ref> Compare against this ref (default: the repo's default branch)
14
+ --head <ref> Review this commit rather than HEAD (not with --uncommitted)
15
+ --uncommitted Review the working tree, uncommitted changes included
16
+ --fresh Review as though this branch had never been reviewed: no
17
+ findings carried, no outcomes, no rulings applied
18
+ (config: continuation)
19
+
20
+ How it runs:
21
+ -m, --model <model> Override the model; short names work (e.g. -m opus).
22
+ weigh models lists them
23
+ --effort <level> Reasoning depth: low | medium | high | xhigh | max
24
+ --max-steps <n> Maximum number of agent steps
25
+ --max-cost <n> Maximum cost in dollars, at API prices
26
+ --coverage-floor <n> Share of changed files a review must open (0 disables)
27
+ --confidence-floor <n>
28
+ Confidence a finding needs to be reported. What falls
29
+ below is shown as suppressed, not dropped (0 disables)
30
+ --refute Put the findings to a second call that tries to kill them.
31
+ Fewer false positives, roughly twice the calls
32
+ (config: refute)
33
+ --no-refute Skip that pass for this run, whatever the config says
34
+ --dry-run Assemble the review context and print it; no model call
35
+
36
+ ${MEMORY_OPTIONS}
37
+
38
+ Output:
39
+ ${JSON_OPTION}
40
+ -q, --quiet No output; exit 0 on success, 1 on error
41
+ --no-progress Silence the running commentary a review writes to stderr
42
+ --no-session Keep no stored review, which later runs reconcile against
43
+
44
+ Examples:
45
+ weigh review --base main
46
+ weigh review --uncommitted
47
+ weigh review --base main --refute
48
+ weigh review --base main --json | jq .findings
49
+ weigh review --base main --dry-run --json | jq .estimate`);
50
+ //# sourceMappingURL=review.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.js","sourceRoot":"","sources":["../../../src/help/commands/review.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,WAAW,CAAC,QAAQ,EAAE,4CAA4C,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtG,cAAc;;;EAGd,WAAW;;;;;;;;;;2DAU8C,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const sessionsHelp: CommandHelp;
3
+ //# sourceMappingURL=sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/help/commands/sessions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,YAAY,aAgBe,CAAC"}
@@ -0,0 +1,23 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { JSON_OPTION } from './options.js';
6
+ export const sessionsHelp = new CommandHelp('sessions', 'List or prune saved prompt transcripts', () => `Usage: weigh sessions <list|prune> [options]
7
+
8
+ The transcripts questions asked with a prompt leave behind, which --resume
9
+ continues. Memories are a separate store: see weigh memory.
10
+
11
+ list List sessions
12
+ prune Delete all but the newest sessions (needs --yes)
13
+
14
+ Options:
15
+ --limit <n> For list: maximum sessions to show
16
+ --keep <n> For prune: sessions to keep (default: sessionRetention)
17
+ -y, --yes Confirm prune
18
+ ${JSON_OPTION}
19
+
20
+ Examples:
21
+ weigh sessions list --limit 10
22
+ weigh sessions prune --keep 50 --yes`);
23
+ //# sourceMappingURL=sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/help/commands/sessions.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,WAAW,CAAC,UAAU,EAAE,wCAAwC,EAAE,GAAG,EAAE,CAAC;;;;;;;;;;;;EAYtG,WAAW;;;;uCAI0B,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { CommandHelp } from '../command-help.js';
2
+ export declare const showHelp: CommandHelp;
3
+ //# sourceMappingURL=show.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.d.ts","sourceRoot":"","sources":["../../../src/help/commands/show.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,eAAO,MAAM,QAAQ,aAW4B,CAAC"}
@@ -0,0 +1,18 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { CommandHelp } from '../command-help.js';
5
+ import { REPO_OPTION } from './options.js';
6
+ export const showHelp = new CommandHelp('show', 'Print a stored review again', () => `Usage: weigh show [<review>] --json
7
+
8
+ Print a review a run already wrote, as the same JSON review --json printed: by
9
+ id or path, or the last review of this branch. Nothing is re-run. JSON only for
10
+ now, so --json is required.
11
+
12
+ Options:
13
+ -j, --json Print JSON (required)
14
+ ${REPO_OPTION}
15
+
16
+ Examples:
17
+ weigh show --json | jq '.findings[] | .title'`);
18
+ //# sourceMappingURL=show.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"show.js","sourceRoot":"","sources":["../../../src/help/commands/show.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,6BAA6B,EAAE,GAAG,EAAE,CAAC;;;;;;;;EAQnF,WAAW;;;gDAGmC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { CommandHelp } from './command-help.js';
2
+ /**
3
+ * `weigh --help` and `weigh <command> --help`.
4
+ *
5
+ * The overview lists the commands and holds the options of a bare prompt,
6
+ * which has no command name to hang its own help on. Each command's options
7
+ * live with that command, so a reader looking for one flag reads one screen.
8
+ */
9
+ export declare class Help {
10
+ private readonly _commands;
11
+ constructor(_commands?: readonly CommandHelp[]);
12
+ /** The help for `name`, or undefined when it names no command. */
13
+ for(name: string | undefined): string | undefined;
14
+ overview(): string;
15
+ }
16
+ //# sourceMappingURL=help.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/help/help.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGrD;;;;;;GAMG;AACH,qBAAa,IAAI;IACH,OAAO,CAAC,QAAQ,CAAC,SAAS;IAAtC,YAA6B,SAAS,GAAE,SAAS,WAAW,EAAa,EAAI;IAE7E,kEAAkE;IAClE,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEhD;IAED,QAAQ,IAAI,MAAM,CA6CjB;CACF"}
@@ -0,0 +1,68 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ import { COMMANDS } from './commands/index.js';
5
+ /**
6
+ * `weigh --help` and `weigh <command> --help`.
7
+ *
8
+ * The overview lists the commands and holds the options of a bare prompt,
9
+ * which has no command name to hang its own help on. Each command's options
10
+ * live with that command, so a reader looking for one flag reads one screen.
11
+ */
12
+ export class Help {
13
+ _commands;
14
+ constructor(_commands = COMMANDS) {
15
+ this._commands = _commands;
16
+ }
17
+ /** The help for `name`, or undefined when it names no command. */
18
+ for(name) {
19
+ return this._commands.find((c) => c.name === name)?.render();
20
+ }
21
+ overview() {
22
+ const width = Math.max(...this._commands.map((c) => c.name.length)) + 4;
23
+ const commands = this._commands.map((c) => ` ${c.name.padEnd(width)}${c.summary}`).join('\n');
24
+ return `Usage: weigh <command> [options]
25
+ weigh [options] [prompt]
26
+
27
+ Weigh reviews a branch read-only, and learns from your rulings on its findings.
28
+ Also installed as wei, a shorter name for the same command.
29
+
30
+ Commands:
31
+ ${commands}
32
+
33
+ Run weigh <command> --help for a command's options and examples.
34
+
35
+ Asking a question:
36
+ A prompt with no command asks the read-only reviewer about the repository.
37
+ It reads the prompt from --prompt, else the first argument, else piped stdin.
38
+
39
+ -p, --prompt <text> The question
40
+ --resume <file> Continue a previous session, by the path of its .jsonl
41
+ --no-session Keep no transcript. Memories are still written,
42
+ without a session to attribute them to
43
+ -m, --model <model> Override the model; short names work (e.g. -m opus)
44
+ --effort <level> Reasoning depth: low | medium | high | xhigh | max
45
+ --max-steps <n> Maximum number of agent steps
46
+ --max-cost <n> Maximum cost in dollars, at API prices
47
+ --no-progress Silence the running commentary on stderr
48
+ -u, --user <id> Identity memories are stored under (default: $USER)
49
+ --memory-backend <b> "platform" (hosted Mem0) or "oss" (self-hosted)
50
+ --no-memory Skip recall and capture for this run
51
+
52
+ Common options:
53
+ --repo <path> Repository to work on (default: the working directory)
54
+ -j, --json Print JSON instead of text (NDJSON events for a prompt)
55
+ -q, --quiet No output; exit 0 on success, 1 on error
56
+ -h, --help Show help
57
+ -v, --version Print the version
58
+
59
+ Examples:
60
+ weigh review --base main
61
+ weigh answer "#3 is intentional, we validate at the edge src/api/dto.ts:12"
62
+ weigh "Where is the retry logic?"
63
+ echo "Summarize README.md" | weigh
64
+ weigh --json -p "Search for TODO comments" | jq .
65
+ `;
66
+ }
67
+ }
68
+ //# sourceMappingURL=help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/help/help.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAG5D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;;GAMG;AACH,MAAM,OAAO,IAAI;IACc,SAAS;IAAtC,YAA6B,SAAS,GAA2B,QAAQ;yBAA5C,SAAS;IAAsC,CAAC;IAE7E,kEAAkE;IAClE,GAAG,CAAC,IAAwB;QAC1B,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/D,CAAC;IAED,QAAQ;QACN,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;QACxE,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/F,OAAO;;;;;;;EAOT,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCT,CAAC;IACA,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ export { Help } from './help.js';
2
+ export { CommandHelp } from './command-help.js';
3
+ export { COMMANDS } from './commands/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/help/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ // This Source Code Form is subject to the terms of the Mozilla Public
2
+ // License, v. 2.0. If a copy of the MPL was not distributed with this
3
+ // file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
+ export { Help } from './help.js';
5
+ export { CommandHelp } from './command-help.js';
6
+ export { COMMANDS } from './commands/index.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/help/index.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sEAAsE;AACtE,4DAA4D;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ * Library entry point.
3
+ *
4
+ * import { loadConfig, runAgent } from '@afaik-lab/weigh';
5
+ *
6
+ * const config = loadConfig({ maxSteps: 10 });
7
+ * const { text } = await runAgent(config, 'What is in this repo?');
8
+ */
9
+ export { runAgent, runAgentWithRetry } from './agent.js';
10
+ export type { AgentEvent, ChatMessage } from './agent.js';
11
+ export { loadConfig } from './config.js';
12
+ export { paths, weighHome, ensureDir } from './paths.js';
13
+ export { loadWeighEnv, parseEnvFile, loadConfigDetailed } from './config.js';
14
+ export type { LoadResult } from './config.js';
15
+ export { SETTINGS, OWNED_ENV_KEYS, isOwnedEnvKey } from './settings.js';
16
+ export type { Setting } from './settings.js';
17
+ export { runConfigCommand, isConfigVerb } from './config-cli.js';
18
+ export { runDoctor } from './doctor.js';
19
+ export type { Check } from './doctor.js';
20
+ export type { Source, Resolved } from './config.js';
21
+ export type { AgentConfig } from './config.js';
22
+ export type { RunOptions } from './agent.js';
23
+ export { READ_ONLY_TOOLS, WITHHELD_TOOLS, ToolGuard } from './tools/index.js';
24
+ export { confine, display, describeArgs } from './tools/root.js';
25
+ export type { ToolHooks, PathRecorder, Confined } from './tools/root.js';
26
+ export { harnessOptions } from './harness.js';
27
+ export type { HarnessRequest } from './harness.js';
28
+ export { resolveTarget } from './target.js';
29
+ export { MODELS, FLOATING, ModelCatalogue, resolveModel, describeModels, refreshCatalogue, isStale, STALE_AFTER_MS } from './models.js';
30
+ export type { ModelOption, ModelRow } from './models.js';
31
+ export { runModelsCommand } from './models-cli.js';
32
+ export type { Target } from './target.js';
33
+ export { SEVERITIES, SEVERITY_ORDER, VERDICTS, Verdict, CATEGORIES, reportedFindingSchema, reviewOutputSchema, DECISIONS, GROUNDS, rulingSchema, refuteOutputSchema, strictJsonSchema, evidenceSchema, CodeAnchor, Finding, FindingSet, WorkspaceFiles, StaticFiles, } from './findings.js';
34
+ export type { ReportedFinding, ReviewOutput, Suppression, SuppressionJson, Evidence, Severity, VerdictLevel, Category, Decision, Ground, Ruling, RefuteOutput, FileSource, } from './findings.js';
35
+ export { readProfile } from './profile.js';
36
+ export type { RepoProfile } from './profile.js';
37
+ export { buildContext, renderContext } from './context.js';
38
+ export type { ReviewContext, ContextFile, ContextInput } from './context.js';
39
+ export { ReviewCommand, runReviewCommand } from './review-cli.js';
40
+ export { Reviewer, CoverageLedger, ReviewOutputParser } from './reviewer.js';
41
+ export { RECORD_VERSION, ReviewRecord, ReviewStore, StoredReview, reviewRecordSchema } from './record/index.js';
42
+ export type { ReviewRecordJson } from './record/index.js';
43
+ export { RECONCILED, Outcome, Reconciliation, outcomeSchema, reconciledSchema } from './reconcile/index.js';
44
+ export type { OutcomeJson, ReconciledJson, ReconciledStatus } from './reconcile/index.js';
45
+ export { RefuteBrief, RefuteOutcome, Refuter, RulingSet } from './refute.js';
46
+ export { Ceilings } from './ceilings.js';
47
+ export { Spend } from './usage.js';
48
+ export type { ReviewUsage, MessageSpend } from './usage.js';
49
+ export type { StoppedReason } from './ceilings.js';
50
+ export type { RefuteResult, RefuteRunOptions } from './refute.js';
51
+ export type { ReviewResult, ReviewRunOptions } from './reviewer.js';
52
+ export type { ReviewEvent } from './events.js';
53
+ export type { ReviewOptions } from './review-cli.js';
54
+ export { writeOut } from './stdout.js';
55
+ export { Palette, ReviewRenderer, wrap, packSegments, ellipsise } from './render.js';
56
+ export type { RunFooter } from './render.js';
57
+ export { ProgressReporter } from './progress.js';
58
+ export type { ProgressOptions } from './progress.js';
59
+ export { collectDiff, defaultBase, workingState } from './diff.js';
60
+ export type { Diff, DiffRequest, ChangedFile, Hunk, FileStatus, WorkingState } from './diff.js';
61
+ export { createWorkspace } from './workspace.js';
62
+ export type { Workspace, WorkspaceMode, WorkspaceRequest } from './workspace.js';
63
+ export { initSessionDir, loadSession, saveMessage, listSessions, newSessionPath, sessionId, summarizeSessions, pruneSessions, } from './session.js';
64
+ export type { SessionSummary } from './session.js';
65
+ export { KINDS, SOURCES, Claim, Knowledge, KnowledgeBlock, Recall, Recalled, RecalledClaim, claimInputSchema, claimMetadataSchema, } from './knowledge/index.js';
66
+ export type { ChangeUnderReview, ClaimInput, ClaimMetadata, ClaimSource, Kind, Mechanism, RecallLimits, } from './knowledge/index.js';
67
+ export { isContextVerb, runContextCommand, CONTEXT_VERBS } from './context-cli.js';
68
+ export type { ContextCommandOptions, ContextVerb } from './context-cli.js';
69
+ export { CORRECTION_LABELS, CORRECTION_VERSION, LABEL_RULES, Correction, CorrectionSet, Corrections, FollowUp, Promotion, correctionSchema, } from './corrections/index.js';
70
+ export type { Attribution, CorrectionInput, CorrectionJson, CorrectionLabel, FindingRef, LabelRule } from './corrections/index.js';
71
+ export { FollowUpCommand, runFollowUpCommand } from './follow-up-cli.js';
72
+ export type { FollowUpOptions } from './follow-up-cli.js';
73
+ export { isCorrectionVerb, runCorrectionsCommand, CORRECTION_VERBS } from './corrections-cli.js';
74
+ export type { CorrectionCommandOptions, CorrectionVerb } from './corrections-cli.js';
75
+ export { repoSlug } from './target.js';
76
+ export { Scope } from './memory/scope.js';
77
+ export { createMemoryStore, resolveScope, recall, capture, formatMemories, NullMemoryStore, PlatformMemoryStore, OssMemoryStore, } from './memory/index.js';
78
+ export type { MemoryStore, MemoryScope, MemoryRecord, MemoryMessage, MemoryBackend, AddOptions, SearchOptions, ListOptions, } from './memory/index.js';
79
+ export type { MemorySettings, MemoryBackendName } from './config.js';
80
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACzD,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAA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