@memnexus-ai/mx-agent-cli 0.1.296 → 0.1.298

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 (797) hide show
  1. package/dist/agent-config/hooks/gh-pr-edit-guard.sh +21 -9
  2. package/dist/agent-config/settings.json +7 -1
  3. package/dist/commands/check.d.ts +20 -0
  4. package/dist/commands/check.d.ts.map +1 -0
  5. package/dist/commands/check.js +30 -0
  6. package/dist/commands/check.js.map +1 -0
  7. package/dist/commands/create.d.ts +36 -0
  8. package/dist/commands/create.d.ts.map +1 -1
  9. package/dist/commands/create.js +85 -8
  10. package/dist/commands/create.js.map +1 -1
  11. package/dist/commands/gh.d.ts +38 -0
  12. package/dist/commands/gh.d.ts.map +1 -0
  13. package/dist/commands/gh.js +162 -0
  14. package/dist/commands/gh.js.map +1 -0
  15. package/dist/commands/git-credential.d.ts +22 -0
  16. package/dist/commands/git-credential.d.ts.map +1 -0
  17. package/dist/commands/git-credential.js +53 -0
  18. package/dist/commands/git-credential.js.map +1 -0
  19. package/dist/commands/new.d.ts +24 -0
  20. package/dist/commands/new.d.ts.map +1 -1
  21. package/dist/commands/new.js +56 -5
  22. package/dist/commands/new.js.map +1 -1
  23. package/dist/commands/pr-set-body.d.ts +120 -35
  24. package/dist/commands/pr-set-body.d.ts.map +1 -1
  25. package/dist/commands/pr-set-body.js +343 -108
  26. package/dist/commands/pr-set-body.js.map +1 -1
  27. package/dist/commands/pr-sync.d.ts +2 -1
  28. package/dist/commands/pr-sync.d.ts.map +1 -1
  29. package/dist/commands/pr-sync.js +129 -32
  30. package/dist/commands/pr-sync.js.map +1 -1
  31. package/dist/index.d.ts +3 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +82 -2
  34. package/dist/index.js.map +1 -1
  35. package/dist/lib/check-run.d.ts +131 -0
  36. package/dist/lib/check-run.d.ts.map +1 -0
  37. package/dist/lib/check-run.js +291 -0
  38. package/dist/lib/check-run.js.map +1 -0
  39. package/dist/lib/coordination-token.d.ts +33 -1
  40. package/dist/lib/coordination-token.d.ts.map +1 -1
  41. package/dist/lib/coordination-token.js +138 -9
  42. package/dist/lib/coordination-token.js.map +1 -1
  43. package/dist/lib/gh-remote.d.ts +20 -0
  44. package/dist/lib/gh-remote.d.ts.map +1 -1
  45. package/dist/lib/gh-remote.js +26 -0
  46. package/dist/lib/gh-remote.js.map +1 -1
  47. package/dist/lib/gh-token-run.d.ts +551 -0
  48. package/dist/lib/gh-token-run.d.ts.map +1 -0
  49. package/dist/lib/gh-token-run.js +1246 -0
  50. package/dist/lib/gh-token-run.js.map +1 -0
  51. package/dist/lib/git-credential.d.ts +120 -0
  52. package/dist/lib/git-credential.d.ts.map +1 -0
  53. package/dist/lib/git-credential.js +204 -0
  54. package/dist/lib/git-credential.js.map +1 -0
  55. package/dist/lib/github-app-token.d.ts +288 -0
  56. package/dist/lib/github-app-token.d.ts.map +1 -0
  57. package/dist/lib/github-app-token.js +519 -0
  58. package/dist/lib/github-app-token.js.map +1 -0
  59. package/dist/lib/memory.d.ts.map +1 -1
  60. package/dist/lib/memory.js +35 -2
  61. package/dist/lib/memory.js.map +1 -1
  62. package/dist/lib/repo-guard-state-dirs.d.ts +39 -0
  63. package/dist/lib/repo-guard-state-dirs.d.ts.map +1 -0
  64. package/dist/lib/repo-guard-state-dirs.js +170 -0
  65. package/dist/lib/repo-guard-state-dirs.js.map +1 -0
  66. package/dist/standards/decision-request.md +6 -57
  67. package/dist/standards/po-communication-standard.md +0 -34
  68. package/dist/standards/report-format.md +0 -90
  69. package/dist/standards/writing-standard.md +0 -312
  70. package/package.json +3 -1
  71. package/dist/__tests__/agent-attribution.test.d.ts +0 -16
  72. package/dist/__tests__/agent-attribution.test.d.ts.map +0 -1
  73. package/dist/__tests__/agent-attribution.test.js +0 -250
  74. package/dist/__tests__/agent-attribution.test.js.map +0 -1
  75. package/dist/__tests__/agents-md-canonicalization.test.d.ts +0 -23
  76. package/dist/__tests__/agents-md-canonicalization.test.d.ts.map +0 -1
  77. package/dist/__tests__/agents-md-canonicalization.test.js +0 -319
  78. package/dist/__tests__/agents-md-canonicalization.test.js.map +0 -1
  79. package/dist/__tests__/behavioral-compliance.test.d.ts +0 -8
  80. package/dist/__tests__/behavioral-compliance.test.d.ts.map +0 -1
  81. package/dist/__tests__/behavioral-compliance.test.js +0 -226
  82. package/dist/__tests__/behavioral-compliance.test.js.map +0 -1
  83. package/dist/__tests__/behavioral-extraction.test.d.ts +0 -12
  84. package/dist/__tests__/behavioral-extraction.test.d.ts.map +0 -1
  85. package/dist/__tests__/behavioral-extraction.test.js +0 -330
  86. package/dist/__tests__/behavioral-extraction.test.js.map +0 -1
  87. package/dist/__tests__/behavioral-git-read.test.d.ts +0 -21
  88. package/dist/__tests__/behavioral-git-read.test.d.ts.map +0 -1
  89. package/dist/__tests__/behavioral-git-read.test.js +0 -955
  90. package/dist/__tests__/behavioral-git-read.test.js.map +0 -1
  91. package/dist/__tests__/behavioral-injection.test.d.ts +0 -13
  92. package/dist/__tests__/behavioral-injection.test.d.ts.map +0 -1
  93. package/dist/__tests__/behavioral-injection.test.js +0 -384
  94. package/dist/__tests__/behavioral-injection.test.js.map +0 -1
  95. package/dist/__tests__/binary-smoke.test.d.ts +0 -12
  96. package/dist/__tests__/binary-smoke.test.d.ts.map +0 -1
  97. package/dist/__tests__/binary-smoke.test.js +0 -88
  98. package/dist/__tests__/binary-smoke.test.js.map +0 -1
  99. package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts +0 -18
  100. package/dist/__tests__/bootstrap-behavioral-contract.test.d.ts.map +0 -1
  101. package/dist/__tests__/bootstrap-behavioral-contract.test.js +0 -104
  102. package/dist/__tests__/bootstrap-behavioral-contract.test.js.map +0 -1
  103. package/dist/__tests__/bundle-config.test.d.ts +0 -18
  104. package/dist/__tests__/bundle-config.test.d.ts.map +0 -1
  105. package/dist/__tests__/bundle-config.test.js +0 -123
  106. package/dist/__tests__/bundle-config.test.js.map +0 -1
  107. package/dist/__tests__/catalog-interaction.test.d.ts +0 -25
  108. package/dist/__tests__/catalog-interaction.test.d.ts.map +0 -1
  109. package/dist/__tests__/catalog-interaction.test.js +0 -269
  110. package/dist/__tests__/catalog-interaction.test.js.map +0 -1
  111. package/dist/__tests__/catalog-named-memories.test.d.ts +0 -2
  112. package/dist/__tests__/catalog-named-memories.test.d.ts.map +0 -1
  113. package/dist/__tests__/catalog-named-memories.test.js +0 -204
  114. package/dist/__tests__/catalog-named-memories.test.js.map +0 -1
  115. package/dist/__tests__/catalog-origin-main.test.d.ts +0 -15
  116. package/dist/__tests__/catalog-origin-main.test.d.ts.map +0 -1
  117. package/dist/__tests__/catalog-origin-main.test.js +0 -305
  118. package/dist/__tests__/catalog-origin-main.test.js.map +0 -1
  119. package/dist/__tests__/catalog.test.d.ts +0 -2
  120. package/dist/__tests__/catalog.test.d.ts.map +0 -1
  121. package/dist/__tests__/catalog.test.js +0 -131
  122. package/dist/__tests__/catalog.test.js.map +0 -1
  123. package/dist/__tests__/claude-local-sanitizer.test.d.ts +0 -24
  124. package/dist/__tests__/claude-local-sanitizer.test.d.ts.map +0 -1
  125. package/dist/__tests__/claude-local-sanitizer.test.js +0 -906
  126. package/dist/__tests__/claude-local-sanitizer.test.js.map +0 -1
  127. package/dist/__tests__/claude-md-compose.test.d.ts +0 -17
  128. package/dist/__tests__/claude-md-compose.test.d.ts.map +0 -1
  129. package/dist/__tests__/claude-md-compose.test.js +0 -119
  130. package/dist/__tests__/claude-md-compose.test.js.map +0 -1
  131. package/dist/__tests__/claude-sync.test.d.ts +0 -2
  132. package/dist/__tests__/claude-sync.test.d.ts.map +0 -1
  133. package/dist/__tests__/claude-sync.test.js +0 -571
  134. package/dist/__tests__/claude-sync.test.js.map +0 -1
  135. package/dist/__tests__/cli-build-integration.test.d.ts +0 -2
  136. package/dist/__tests__/cli-build-integration.test.d.ts.map +0 -1
  137. package/dist/__tests__/cli-build-integration.test.js +0 -64
  138. package/dist/__tests__/cli-build-integration.test.js.map +0 -1
  139. package/dist/__tests__/cli-build.test.d.ts +0 -2
  140. package/dist/__tests__/cli-build.test.d.ts.map +0 -1
  141. package/dist/__tests__/cli-build.test.js +0 -640
  142. package/dist/__tests__/cli-build.test.js.map +0 -1
  143. package/dist/__tests__/codex-agent-gate.test.d.ts +0 -2
  144. package/dist/__tests__/codex-agent-gate.test.d.ts.map +0 -1
  145. package/dist/__tests__/codex-agent-gate.test.js +0 -480
  146. package/dist/__tests__/codex-agent-gate.test.js.map +0 -1
  147. package/dist/__tests__/codex-deploy-config.test.d.ts +0 -2
  148. package/dist/__tests__/codex-deploy-config.test.d.ts.map +0 -1
  149. package/dist/__tests__/codex-deploy-config.test.js +0 -1230
  150. package/dist/__tests__/codex-deploy-config.test.js.map +0 -1
  151. package/dist/__tests__/codex-trust-keys.test.d.ts +0 -2
  152. package/dist/__tests__/codex-trust-keys.test.d.ts.map +0 -1
  153. package/dist/__tests__/codex-trust-keys.test.js +0 -731
  154. package/dist/__tests__/codex-trust-keys.test.js.map +0 -1
  155. package/dist/__tests__/codex-write-race.test.d.ts +0 -2
  156. package/dist/__tests__/codex-write-race.test.d.ts.map +0 -1
  157. package/dist/__tests__/codex-write-race.test.js +0 -2253
  158. package/dist/__tests__/codex-write-race.test.js.map +0 -1
  159. package/dist/__tests__/completion-rows-discriminate.test.d.ts +0 -20
  160. package/dist/__tests__/completion-rows-discriminate.test.d.ts.map +0 -1
  161. package/dist/__tests__/completion-rows-discriminate.test.js +0 -481
  162. package/dist/__tests__/completion-rows-discriminate.test.js.map +0 -1
  163. package/dist/__tests__/config-command.test.d.ts +0 -9
  164. package/dist/__tests__/config-command.test.d.ts.map +0 -1
  165. package/dist/__tests__/config-command.test.js +0 -75
  166. package/dist/__tests__/config-command.test.js.map +0 -1
  167. package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts +0 -2
  168. package/dist/__tests__/config-fidelity-archived-symlinks.test.d.ts.map +0 -1
  169. package/dist/__tests__/config-fidelity-archived-symlinks.test.js +0 -127
  170. package/dist/__tests__/config-fidelity-archived-symlinks.test.js.map +0 -1
  171. package/dist/__tests__/config-fidelity-display.test.d.ts +0 -2
  172. package/dist/__tests__/config-fidelity-display.test.d.ts.map +0 -1
  173. package/dist/__tests__/config-fidelity-display.test.js +0 -77
  174. package/dist/__tests__/config-fidelity-display.test.js.map +0 -1
  175. package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts +0 -32
  176. package/dist/__tests__/config-fidelity-unreadable-fixture.d.ts.map +0 -1
  177. package/dist/__tests__/config-fidelity-unreadable-fixture.js +0 -37
  178. package/dist/__tests__/config-fidelity-unreadable-fixture.js.map +0 -1
  179. package/dist/__tests__/config-fidelity.test.d.ts +0 -16
  180. package/dist/__tests__/config-fidelity.test.d.ts.map +0 -1
  181. package/dist/__tests__/config-fidelity.test.js +0 -2679
  182. package/dist/__tests__/config-fidelity.test.js.map +0 -1
  183. package/dist/__tests__/config-generation-gate.test.d.ts +0 -46
  184. package/dist/__tests__/config-generation-gate.test.d.ts.map +0 -1
  185. package/dist/__tests__/config-generation-gate.test.js +0 -435
  186. package/dist/__tests__/config-generation-gate.test.js.map +0 -1
  187. package/dist/__tests__/config-generation.test.d.ts +0 -7
  188. package/dist/__tests__/config-generation.test.d.ts.map +0 -1
  189. package/dist/__tests__/config-generation.test.js +0 -141
  190. package/dist/__tests__/config-generation.test.js.map +0 -1
  191. package/dist/__tests__/config-sync.test.d.ts +0 -10
  192. package/dist/__tests__/config-sync.test.d.ts.map +0 -1
  193. package/dist/__tests__/config-sync.test.js +0 -268
  194. package/dist/__tests__/config-sync.test.js.map +0 -1
  195. package/dist/__tests__/coordination-401-production-wiring.test.d.ts +0 -19
  196. package/dist/__tests__/coordination-401-production-wiring.test.d.ts.map +0 -1
  197. package/dist/__tests__/coordination-401-production-wiring.test.js +0 -286
  198. package/dist/__tests__/coordination-401-production-wiring.test.js.map +0 -1
  199. package/dist/__tests__/coordination-401-recovery.test.d.ts +0 -22
  200. package/dist/__tests__/coordination-401-recovery.test.d.ts.map +0 -1
  201. package/dist/__tests__/coordination-401-recovery.test.js +0 -601
  202. package/dist/__tests__/coordination-401-recovery.test.js.map +0 -1
  203. package/dist/__tests__/coordination-brief-pin.test.d.ts +0 -20
  204. package/dist/__tests__/coordination-brief-pin.test.d.ts.map +0 -1
  205. package/dist/__tests__/coordination-brief-pin.test.js +0 -66
  206. package/dist/__tests__/coordination-brief-pin.test.js.map +0 -1
  207. package/dist/__tests__/coordination-brief.test.d.ts +0 -9
  208. package/dist/__tests__/coordination-brief.test.d.ts.map +0 -1
  209. package/dist/__tests__/coordination-brief.test.js +0 -290
  210. package/dist/__tests__/coordination-brief.test.js.map +0 -1
  211. package/dist/__tests__/coordination-client.test.d.ts +0 -9
  212. package/dist/__tests__/coordination-client.test.d.ts.map +0 -1
  213. package/dist/__tests__/coordination-client.test.js +0 -517
  214. package/dist/__tests__/coordination-client.test.js.map +0 -1
  215. package/dist/__tests__/coordination-command.test.d.ts +0 -9
  216. package/dist/__tests__/coordination-command.test.d.ts.map +0 -1
  217. package/dist/__tests__/coordination-command.test.js +0 -1082
  218. package/dist/__tests__/coordination-command.test.js.map +0 -1
  219. package/dist/__tests__/coordination-credential-endpoint.test.d.ts +0 -24
  220. package/dist/__tests__/coordination-credential-endpoint.test.d.ts.map +0 -1
  221. package/dist/__tests__/coordination-credential-endpoint.test.js +0 -1292
  222. package/dist/__tests__/coordination-credential-endpoint.test.js.map +0 -1
  223. package/dist/__tests__/coordination-expected-team.test.d.ts +0 -19
  224. package/dist/__tests__/coordination-expected-team.test.d.ts.map +0 -1
  225. package/dist/__tests__/coordination-expected-team.test.js +0 -423
  226. package/dist/__tests__/coordination-expected-team.test.js.map +0 -1
  227. package/dist/__tests__/coordination-fallback.test.d.ts +0 -9
  228. package/dist/__tests__/coordination-fallback.test.d.ts.map +0 -1
  229. package/dist/__tests__/coordination-fallback.test.js +0 -192
  230. package/dist/__tests__/coordination-fallback.test.js.map +0 -1
  231. package/dist/__tests__/coordination-file-guards.test.d.ts +0 -29
  232. package/dist/__tests__/coordination-file-guards.test.d.ts.map +0 -1
  233. package/dist/__tests__/coordination-file-guards.test.js +0 -380
  234. package/dist/__tests__/coordination-file-guards.test.js.map +0 -1
  235. package/dist/__tests__/coordination-history.test.d.ts +0 -8
  236. package/dist/__tests__/coordination-history.test.d.ts.map +0 -1
  237. package/dist/__tests__/coordination-history.test.js +0 -447
  238. package/dist/__tests__/coordination-history.test.js.map +0 -1
  239. package/dist/__tests__/coordination-memory.test.d.ts +0 -14
  240. package/dist/__tests__/coordination-memory.test.d.ts.map +0 -1
  241. package/dist/__tests__/coordination-memory.test.js +0 -401
  242. package/dist/__tests__/coordination-memory.test.js.map +0 -1
  243. package/dist/__tests__/coordination-mode.test.d.ts +0 -13
  244. package/dist/__tests__/coordination-mode.test.d.ts.map +0 -1
  245. package/dist/__tests__/coordination-mode.test.js +0 -180
  246. package/dist/__tests__/coordination-mode.test.js.map +0 -1
  247. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts +0 -22
  248. package/dist/__tests__/coordination-plain-shell-commands.test.d.ts.map +0 -1
  249. package/dist/__tests__/coordination-plain-shell-commands.test.js +0 -1875
  250. package/dist/__tests__/coordination-plain-shell-commands.test.js.map +0 -1
  251. package/dist/__tests__/coordination-provision.test.d.ts +0 -12
  252. package/dist/__tests__/coordination-provision.test.d.ts.map +0 -1
  253. package/dist/__tests__/coordination-provision.test.js +0 -103
  254. package/dist/__tests__/coordination-provision.test.js.map +0 -1
  255. package/dist/__tests__/coordination-render.test.d.ts +0 -9
  256. package/dist/__tests__/coordination-render.test.d.ts.map +0 -1
  257. package/dist/__tests__/coordination-render.test.js +0 -335
  258. package/dist/__tests__/coordination-render.test.js.map +0 -1
  259. package/dist/__tests__/coordination-setup.test.d.ts +0 -6
  260. package/dist/__tests__/coordination-setup.test.d.ts.map +0 -1
  261. package/dist/__tests__/coordination-setup.test.js +0 -448
  262. package/dist/__tests__/coordination-setup.test.js.map +0 -1
  263. package/dist/__tests__/coordination-status-plain-shell.test.d.ts +0 -19
  264. package/dist/__tests__/coordination-status-plain-shell.test.d.ts.map +0 -1
  265. package/dist/__tests__/coordination-status-plain-shell.test.js +0 -332
  266. package/dist/__tests__/coordination-status-plain-shell.test.js.map +0 -1
  267. package/dist/__tests__/coordination-status-registration.test.d.ts +0 -16
  268. package/dist/__tests__/coordination-status-registration.test.d.ts.map +0 -1
  269. package/dist/__tests__/coordination-status-registration.test.js +0 -480
  270. package/dist/__tests__/coordination-status-registration.test.js.map +0 -1
  271. package/dist/__tests__/coordination-token-multitenant.test.d.ts +0 -11
  272. package/dist/__tests__/coordination-token-multitenant.test.d.ts.map +0 -1
  273. package/dist/__tests__/coordination-token-multitenant.test.js +0 -106
  274. package/dist/__tests__/coordination-token-multitenant.test.js.map +0 -1
  275. package/dist/__tests__/coordination-token.test.d.ts +0 -11
  276. package/dist/__tests__/coordination-token.test.d.ts.map +0 -1
  277. package/dist/__tests__/coordination-token.test.js +0 -201
  278. package/dist/__tests__/coordination-token.test.js.map +0 -1
  279. package/dist/__tests__/coordination-wiring.test.d.ts +0 -11
  280. package/dist/__tests__/coordination-wiring.test.d.ts.map +0 -1
  281. package/dist/__tests__/coordination-wiring.test.js +0 -43
  282. package/dist/__tests__/coordination-wiring.test.js.map +0 -1
  283. package/dist/__tests__/creation-pr-class-check.test.d.ts +0 -17
  284. package/dist/__tests__/creation-pr-class-check.test.d.ts.map +0 -1
  285. package/dist/__tests__/creation-pr-class-check.test.js +0 -346
  286. package/dist/__tests__/creation-pr-class-check.test.js.map +0 -1
  287. package/dist/__tests__/creation-step6a-push-check.test.d.ts +0 -15
  288. package/dist/__tests__/creation-step6a-push-check.test.d.ts.map +0 -1
  289. package/dist/__tests__/creation-step6a-push-check.test.js +0 -150
  290. package/dist/__tests__/creation-step6a-push-check.test.js.map +0 -1
  291. package/dist/__tests__/decision-check.test.d.ts +0 -2
  292. package/dist/__tests__/decision-check.test.d.ts.map +0 -1
  293. package/dist/__tests__/decision-check.test.js +0 -105
  294. package/dist/__tests__/decision-check.test.js.map +0 -1
  295. package/dist/__tests__/digest-fail-closed.test.d.ts +0 -16
  296. package/dist/__tests__/digest-fail-closed.test.d.ts.map +0 -1
  297. package/dist/__tests__/digest-fail-closed.test.js +0 -248
  298. package/dist/__tests__/digest-fail-closed.test.js.map +0 -1
  299. package/dist/__tests__/digest-team-omission.test.d.ts +0 -15
  300. package/dist/__tests__/digest-team-omission.test.d.ts.map +0 -1
  301. package/dist/__tests__/digest-team-omission.test.js +0 -247
  302. package/dist/__tests__/digest-team-omission.test.js.map +0 -1
  303. package/dist/__tests__/doctor-config-fidelity.test.d.ts +0 -19
  304. package/dist/__tests__/doctor-config-fidelity.test.d.ts.map +0 -1
  305. package/dist/__tests__/doctor-config-fidelity.test.js +0 -324
  306. package/dist/__tests__/doctor-config-fidelity.test.js.map +0 -1
  307. package/dist/__tests__/doctor-framework-version.test.d.ts +0 -2
  308. package/dist/__tests__/doctor-framework-version.test.d.ts.map +0 -1
  309. package/dist/__tests__/doctor-framework-version.test.js +0 -146
  310. package/dist/__tests__/doctor-framework-version.test.js.map +0 -1
  311. package/dist/__tests__/doctor-worktree-path.test.d.ts +0 -17
  312. package/dist/__tests__/doctor-worktree-path.test.d.ts.map +0 -1
  313. package/dist/__tests__/doctor-worktree-path.test.js +0 -158
  314. package/dist/__tests__/doctor-worktree-path.test.js.map +0 -1
  315. package/dist/__tests__/doctor.test.d.ts +0 -20
  316. package/dist/__tests__/doctor.test.d.ts.map +0 -1
  317. package/dist/__tests__/doctor.test.js +0 -849
  318. package/dist/__tests__/doctor.test.js.map +0 -1
  319. package/dist/__tests__/event-shipper.test.d.ts +0 -16
  320. package/dist/__tests__/event-shipper.test.d.ts.map +0 -1
  321. package/dist/__tests__/event-shipper.test.js +0 -287
  322. package/dist/__tests__/event-shipper.test.js.map +0 -1
  323. package/dist/__tests__/fleet-data.test.d.ts +0 -2
  324. package/dist/__tests__/fleet-data.test.d.ts.map +0 -1
  325. package/dist/__tests__/fleet-data.test.js +0 -501
  326. package/dist/__tests__/fleet-data.test.js.map +0 -1
  327. package/dist/__tests__/fleet-devpod.test.d.ts +0 -12
  328. package/dist/__tests__/fleet-devpod.test.d.ts.map +0 -1
  329. package/dist/__tests__/fleet-devpod.test.js +0 -260
  330. package/dist/__tests__/fleet-devpod.test.js.map +0 -1
  331. package/dist/__tests__/fleet-tmux.test.d.ts +0 -2
  332. package/dist/__tests__/fleet-tmux.test.d.ts.map +0 -1
  333. package/dist/__tests__/fleet-tmux.test.js +0 -289
  334. package/dist/__tests__/fleet-tmux.test.js.map +0 -1
  335. package/dist/__tests__/fleet.test.d.ts +0 -16
  336. package/dist/__tests__/fleet.test.d.ts.map +0 -1
  337. package/dist/__tests__/fleet.test.js +0 -75
  338. package/dist/__tests__/fleet.test.js.map +0 -1
  339. package/dist/__tests__/generate-claude.test.d.ts +0 -18
  340. package/dist/__tests__/generate-claude.test.d.ts.map +0 -1
  341. package/dist/__tests__/generate-claude.test.js +0 -1015
  342. package/dist/__tests__/generate-claude.test.js.map +0 -1
  343. package/dist/__tests__/gh-remote.test.d.ts +0 -2
  344. package/dist/__tests__/gh-remote.test.d.ts.map +0 -1
  345. package/dist/__tests__/gh-remote.test.js +0 -136
  346. package/dist/__tests__/gh-remote.test.js.map +0 -1
  347. package/dist/__tests__/git-env.test.d.ts +0 -14
  348. package/dist/__tests__/git-env.test.d.ts.map +0 -1
  349. package/dist/__tests__/git-env.test.js +0 -131
  350. package/dist/__tests__/git-env.test.js.map +0 -1
  351. package/dist/__tests__/git-identity-isolation.test.d.ts +0 -33
  352. package/dist/__tests__/git-identity-isolation.test.d.ts.map +0 -1
  353. package/dist/__tests__/git-identity-isolation.test.js +0 -626
  354. package/dist/__tests__/git-identity-isolation.test.js.map +0 -1
  355. package/dist/__tests__/harness-extract.test.d.ts +0 -19
  356. package/dist/__tests__/harness-extract.test.d.ts.map +0 -1
  357. package/dist/__tests__/harness-extract.test.js +0 -566
  358. package/dist/__tests__/harness-extract.test.js.map +0 -1
  359. package/dist/__tests__/harness-wiring.test.d.ts +0 -16
  360. package/dist/__tests__/harness-wiring.test.d.ts.map +0 -1
  361. package/dist/__tests__/harness-wiring.test.js +0 -469
  362. package/dist/__tests__/harness-wiring.test.js.map +0 -1
  363. package/dist/__tests__/hook-completeness.test.d.ts +0 -13
  364. package/dist/__tests__/hook-completeness.test.d.ts.map +0 -1
  365. package/dist/__tests__/hook-completeness.test.js +0 -238
  366. package/dist/__tests__/hook-completeness.test.js.map +0 -1
  367. package/dist/__tests__/hook-heal.test.d.ts +0 -8
  368. package/dist/__tests__/hook-heal.test.d.ts.map +0 -1
  369. package/dist/__tests__/hook-heal.test.js +0 -156
  370. package/dist/__tests__/hook-heal.test.js.map +0 -1
  371. package/dist/__tests__/human-turn-classifier.test.d.ts +0 -17
  372. package/dist/__tests__/human-turn-classifier.test.d.ts.map +0 -1
  373. package/dist/__tests__/human-turn-classifier.test.js +0 -311
  374. package/dist/__tests__/human-turn-classifier.test.js.map +0 -1
  375. package/dist/__tests__/init-coordination-url.test.d.ts +0 -11
  376. package/dist/__tests__/init-coordination-url.test.d.ts.map +0 -1
  377. package/dist/__tests__/init-coordination-url.test.js +0 -217
  378. package/dist/__tests__/init-coordination-url.test.js.map +0 -1
  379. package/dist/__tests__/isolation-probe.test.d.ts +0 -15
  380. package/dist/__tests__/isolation-probe.test.d.ts.map +0 -1
  381. package/dist/__tests__/isolation-probe.test.js +0 -611
  382. package/dist/__tests__/isolation-probe.test.js.map +0 -1
  383. package/dist/__tests__/leader-lock.test.d.ts +0 -12
  384. package/dist/__tests__/leader-lock.test.d.ts.map +0 -1
  385. package/dist/__tests__/leader-lock.test.js +0 -293
  386. package/dist/__tests__/leader-lock.test.js.map +0 -1
  387. package/dist/__tests__/memory-archive-checks.test.d.ts +0 -22
  388. package/dist/__tests__/memory-archive-checks.test.d.ts.map +0 -1
  389. package/dist/__tests__/memory-archive-checks.test.js +0 -748
  390. package/dist/__tests__/memory-archive-checks.test.js.map +0 -1
  391. package/dist/__tests__/memory-archive-prep.test.d.ts +0 -8
  392. package/dist/__tests__/memory-archive-prep.test.d.ts.map +0 -1
  393. package/dist/__tests__/memory-archive-prep.test.js +0 -524
  394. package/dist/__tests__/memory-archive-prep.test.js.map +0 -1
  395. package/dist/__tests__/memory-autocreate.test.d.ts +0 -10
  396. package/dist/__tests__/memory-autocreate.test.d.ts.map +0 -1
  397. package/dist/__tests__/memory-autocreate.test.js +0 -709
  398. package/dist/__tests__/memory-autocreate.test.js.map +0 -1
  399. package/dist/__tests__/memory-log-result.test.d.ts +0 -13
  400. package/dist/__tests__/memory-log-result.test.d.ts.map +0 -1
  401. package/dist/__tests__/memory-log-result.test.js +0 -149
  402. package/dist/__tests__/memory-log-result.test.js.map +0 -1
  403. package/dist/__tests__/memory-named-exists.test.d.ts +0 -16
  404. package/dist/__tests__/memory-named-exists.test.d.ts.map +0 -1
  405. package/dist/__tests__/memory-named-exists.test.js +0 -288
  406. package/dist/__tests__/memory-named-exists.test.js.map +0 -1
  407. package/dist/__tests__/message-bus.test.d.ts +0 -10
  408. package/dist/__tests__/message-bus.test.d.ts.map +0 -1
  409. package/dist/__tests__/message-bus.test.js +0 -526
  410. package/dist/__tests__/message-bus.test.js.map +0 -1
  411. package/dist/__tests__/monitor.test.d.ts +0 -6
  412. package/dist/__tests__/monitor.test.d.ts.map +0 -1
  413. package/dist/__tests__/monitor.test.js +0 -458
  414. package/dist/__tests__/monitor.test.js.map +0 -1
  415. package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts +0 -2
  416. package/dist/__tests__/mx-agent-cli-pin-validation.test.d.ts.map +0 -1
  417. package/dist/__tests__/mx-agent-cli-pin-validation.test.js +0 -232
  418. package/dist/__tests__/mx-agent-cli-pin-validation.test.js.map +0 -1
  419. package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts +0 -2
  420. package/dist/__tests__/mx-agent-cli-version-pin.test.d.ts.map +0 -1
  421. package/dist/__tests__/mx-agent-cli-version-pin.test.js +0 -236
  422. package/dist/__tests__/mx-agent-cli-version-pin.test.js.map +0 -1
  423. package/dist/__tests__/new-project-first-team.test.d.ts +0 -15
  424. package/dist/__tests__/new-project-first-team.test.d.ts.map +0 -1
  425. package/dist/__tests__/new-project-first-team.test.js +0 -444
  426. package/dist/__tests__/new-project-first-team.test.js.map +0 -1
  427. package/dist/__tests__/otel-env.test.d.ts +0 -2
  428. package/dist/__tests__/otel-env.test.d.ts.map +0 -1
  429. package/dist/__tests__/otel-env.test.js +0 -127
  430. package/dist/__tests__/otel-env.test.js.map +0 -1
  431. package/dist/__tests__/pager-fail-closed.test.d.ts +0 -19
  432. package/dist/__tests__/pager-fail-closed.test.d.ts.map +0 -1
  433. package/dist/__tests__/pager-fail-closed.test.js +0 -229
  434. package/dist/__tests__/pager-fail-closed.test.js.map +0 -1
  435. package/dist/__tests__/pr-set-body.test.d.ts +0 -29
  436. package/dist/__tests__/pr-set-body.test.d.ts.map +0 -1
  437. package/dist/__tests__/pr-set-body.test.js +0 -314
  438. package/dist/__tests__/pr-set-body.test.js.map +0 -1
  439. package/dist/__tests__/prior-sync-failure.test.d.ts +0 -2
  440. package/dist/__tests__/prior-sync-failure.test.d.ts.map +0 -1
  441. package/dist/__tests__/prior-sync-failure.test.js +0 -81
  442. package/dist/__tests__/prior-sync-failure.test.js.map +0 -1
  443. package/dist/__tests__/project-config.test.d.ts +0 -2
  444. package/dist/__tests__/project-config.test.d.ts.map +0 -1
  445. package/dist/__tests__/project-config.test.js +0 -458
  446. package/dist/__tests__/project-config.test.js.map +0 -1
  447. package/dist/__tests__/provision-behavioral-contract.test.d.ts +0 -13
  448. package/dist/__tests__/provision-behavioral-contract.test.d.ts.map +0 -1
  449. package/dist/__tests__/provision-behavioral-contract.test.js +0 -548
  450. package/dist/__tests__/provision-behavioral-contract.test.js.map +0 -1
  451. package/dist/__tests__/provision-catalog-precondition.test.d.ts +0 -26
  452. package/dist/__tests__/provision-catalog-precondition.test.d.ts.map +0 -1
  453. package/dist/__tests__/provision-catalog-precondition.test.js +0 -622
  454. package/dist/__tests__/provision-catalog-precondition.test.js.map +0 -1
  455. package/dist/__tests__/provision-completion-rows.test.d.ts +0 -17
  456. package/dist/__tests__/provision-completion-rows.test.d.ts.map +0 -1
  457. package/dist/__tests__/provision-completion-rows.test.js +0 -3473
  458. package/dist/__tests__/provision-completion-rows.test.js.map +0 -1
  459. package/dist/__tests__/provision-copy-containment.test.d.ts +0 -19
  460. package/dist/__tests__/provision-copy-containment.test.d.ts.map +0 -1
  461. package/dist/__tests__/provision-copy-containment.test.js +0 -187
  462. package/dist/__tests__/provision-copy-containment.test.js.map +0 -1
  463. package/dist/__tests__/provision-identity-gate.test.d.ts +0 -20
  464. package/dist/__tests__/provision-identity-gate.test.d.ts.map +0 -1
  465. package/dist/__tests__/provision-identity-gate.test.js +0 -602
  466. package/dist/__tests__/provision-identity-gate.test.js.map +0 -1
  467. package/dist/__tests__/provision-resume.test.d.ts +0 -26
  468. package/dist/__tests__/provision-resume.test.d.ts.map +0 -1
  469. package/dist/__tests__/provision-resume.test.js +0 -1344
  470. package/dist/__tests__/provision-resume.test.js.map +0 -1
  471. package/dist/__tests__/provision-roleguide-anchors.test.d.ts +0 -27
  472. package/dist/__tests__/provision-roleguide-anchors.test.d.ts.map +0 -1
  473. package/dist/__tests__/provision-roleguide-anchors.test.js +0 -747
  474. package/dist/__tests__/provision-roleguide-anchors.test.js.map +0 -1
  475. package/dist/__tests__/provision-row12-stub-server.test.d.ts +0 -21
  476. package/dist/__tests__/provision-row12-stub-server.test.d.ts.map +0 -1
  477. package/dist/__tests__/provision-row12-stub-server.test.js +0 -264
  478. package/dist/__tests__/provision-row12-stub-server.test.js.map +0 -1
  479. package/dist/__tests__/provision-skeleton-fill.test.d.ts +0 -16
  480. package/dist/__tests__/provision-skeleton-fill.test.d.ts.map +0 -1
  481. package/dist/__tests__/provision-skeleton-fill.test.js +0 -490
  482. package/dist/__tests__/provision-skeleton-fill.test.js.map +0 -1
  483. package/dist/__tests__/provision-step8-commit.test.d.ts +0 -40
  484. package/dist/__tests__/provision-step8-commit.test.d.ts.map +0 -1
  485. package/dist/__tests__/provision-step8-commit.test.js +0 -529
  486. package/dist/__tests__/provision-step8-commit.test.js.map +0 -1
  487. package/dist/__tests__/provision-teambuilder-flow.test.d.ts +0 -22
  488. package/dist/__tests__/provision-teambuilder-flow.test.d.ts.map +0 -1
  489. package/dist/__tests__/provision-teambuilder-flow.test.js +0 -253
  490. package/dist/__tests__/provision-teambuilder-flow.test.js.map +0 -1
  491. package/dist/__tests__/provision-write-integrity.test.d.ts +0 -18
  492. package/dist/__tests__/provision-write-integrity.test.d.ts.map +0 -1
  493. package/dist/__tests__/provision-write-integrity.test.js +0 -141
  494. package/dist/__tests__/provision-write-integrity.test.js.map +0 -1
  495. package/dist/__tests__/repo-guard-wiring.test.d.ts +0 -21
  496. package/dist/__tests__/repo-guard-wiring.test.d.ts.map +0 -1
  497. package/dist/__tests__/repo-guard-wiring.test.js +0 -638
  498. package/dist/__tests__/repo-guard-wiring.test.js.map +0 -1
  499. package/dist/__tests__/report-format.test.d.ts +0 -2
  500. package/dist/__tests__/report-format.test.d.ts.map +0 -1
  501. package/dist/__tests__/report-format.test.js +0 -219
  502. package/dist/__tests__/report-format.test.js.map +0 -1
  503. package/dist/__tests__/row15-detail-sanitizer.test.d.ts +0 -20
  504. package/dist/__tests__/row15-detail-sanitizer.test.d.ts.map +0 -1
  505. package/dist/__tests__/row15-detail-sanitizer.test.js +0 -61
  506. package/dist/__tests__/row15-detail-sanitizer.test.js.map +0 -1
  507. package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts +0 -32
  508. package/dist/__tests__/rows-9-10-zero-remotes.test.d.ts.map +0 -1
  509. package/dist/__tests__/rows-9-10-zero-remotes.test.js +0 -203
  510. package/dist/__tests__/rows-9-10-zero-remotes.test.js.map +0 -1
  511. package/dist/__tests__/runtime-claude-adapter.test.d.ts +0 -2
  512. package/dist/__tests__/runtime-claude-adapter.test.d.ts.map +0 -1
  513. package/dist/__tests__/runtime-claude-adapter.test.js +0 -70
  514. package/dist/__tests__/runtime-claude-adapter.test.js.map +0 -1
  515. package/dist/__tests__/runtime-codex-adapter.test.d.ts +0 -2
  516. package/dist/__tests__/runtime-codex-adapter.test.d.ts.map +0 -1
  517. package/dist/__tests__/runtime-codex-adapter.test.js +0 -558
  518. package/dist/__tests__/runtime-codex-adapter.test.js.map +0 -1
  519. package/dist/__tests__/runtime-codex-config.test.d.ts +0 -2
  520. package/dist/__tests__/runtime-codex-config.test.d.ts.map +0 -1
  521. package/dist/__tests__/runtime-codex-config.test.js +0 -1421
  522. package/dist/__tests__/runtime-codex-config.test.js.map +0 -1
  523. package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts +0 -2
  524. package/dist/__tests__/runtime-codex-gateway-pilot.test.d.ts.map +0 -1
  525. package/dist/__tests__/runtime-codex-gateway-pilot.test.js +0 -309
  526. package/dist/__tests__/runtime-codex-gateway-pilot.test.js.map +0 -1
  527. package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts +0 -2
  528. package/dist/__tests__/runtime-codex-gateway-provider.test.d.ts.map +0 -1
  529. package/dist/__tests__/runtime-codex-gateway-provider.test.js +0 -163
  530. package/dist/__tests__/runtime-codex-gateway-provider.test.js.map +0 -1
  531. package/dist/__tests__/runtime-codex-guard-proof.test.d.ts +0 -2
  532. package/dist/__tests__/runtime-codex-guard-proof.test.d.ts.map +0 -1
  533. package/dist/__tests__/runtime-codex-guard-proof.test.js +0 -822
  534. package/dist/__tests__/runtime-codex-guard-proof.test.js.map +0 -1
  535. package/dist/__tests__/runtime-codex-version-pin.test.d.ts +0 -2
  536. package/dist/__tests__/runtime-codex-version-pin.test.d.ts.map +0 -1
  537. package/dist/__tests__/runtime-codex-version-pin.test.js +0 -86
  538. package/dist/__tests__/runtime-codex-version-pin.test.js.map +0 -1
  539. package/dist/__tests__/runtime-identity.test.d.ts +0 -2
  540. package/dist/__tests__/runtime-identity.test.d.ts.map +0 -1
  541. package/dist/__tests__/runtime-identity.test.js +0 -117
  542. package/dist/__tests__/runtime-identity.test.js.map +0 -1
  543. package/dist/__tests__/runtime-resolve.test.d.ts +0 -2
  544. package/dist/__tests__/runtime-resolve.test.d.ts.map +0 -1
  545. package/dist/__tests__/runtime-resolve.test.js +0 -172
  546. package/dist/__tests__/runtime-resolve.test.js.map +0 -1
  547. package/dist/__tests__/security-posture.test.d.ts +0 -8
  548. package/dist/__tests__/security-posture.test.d.ts.map +0 -1
  549. package/dist/__tests__/security-posture.test.js +0 -82
  550. package/dist/__tests__/security-posture.test.js.map +0 -1
  551. package/dist/__tests__/session-model.test.d.ts +0 -2
  552. package/dist/__tests__/session-model.test.d.ts.map +0 -1
  553. package/dist/__tests__/session-model.test.js +0 -74
  554. package/dist/__tests__/session-model.test.js.map +0 -1
  555. package/dist/__tests__/session-pause-provisioning.test.d.ts +0 -19
  556. package/dist/__tests__/session-pause-provisioning.test.d.ts.map +0 -1
  557. package/dist/__tests__/session-pause-provisioning.test.js +0 -115
  558. package/dist/__tests__/session-pause-provisioning.test.js.map +0 -1
  559. package/dist/__tests__/session-reclamation.test.d.ts +0 -15
  560. package/dist/__tests__/session-reclamation.test.d.ts.map +0 -1
  561. package/dist/__tests__/session-reclamation.test.js +0 -73
  562. package/dist/__tests__/session-reclamation.test.js.map +0 -1
  563. package/dist/__tests__/session-record-disclosure.test.d.ts +0 -24
  564. package/dist/__tests__/session-record-disclosure.test.d.ts.map +0 -1
  565. package/dist/__tests__/session-record-disclosure.test.js +0 -494
  566. package/dist/__tests__/session-record-disclosure.test.js.map +0 -1
  567. package/dist/__tests__/session-status.test.d.ts +0 -11
  568. package/dist/__tests__/session-status.test.d.ts.map +0 -1
  569. package/dist/__tests__/session-status.test.js +0 -76
  570. package/dist/__tests__/session-status.test.js.map +0 -1
  571. package/dist/__tests__/session.test.d.ts +0 -15
  572. package/dist/__tests__/session.test.d.ts.map +0 -1
  573. package/dist/__tests__/session.test.js +0 -366
  574. package/dist/__tests__/session.test.js.map +0 -1
  575. package/dist/__tests__/shim-deploy-safety.test.d.ts +0 -24
  576. package/dist/__tests__/shim-deploy-safety.test.d.ts.map +0 -1
  577. package/dist/__tests__/shim-deploy-safety.test.js +0 -174
  578. package/dist/__tests__/shim-deploy-safety.test.js.map +0 -1
  579. package/dist/__tests__/slug-validation.test.d.ts +0 -13
  580. package/dist/__tests__/slug-validation.test.d.ts.map +0 -1
  581. package/dist/__tests__/slug-validation.test.js +0 -202
  582. package/dist/__tests__/slug-validation.test.js.map +0 -1
  583. package/dist/__tests__/standards-injection.test.d.ts +0 -2
  584. package/dist/__tests__/standards-injection.test.d.ts.map +0 -1
  585. package/dist/__tests__/standards-injection.test.js +0 -179
  586. package/dist/__tests__/standards-injection.test.js.map +0 -1
  587. package/dist/__tests__/start-config-conflict.test.d.ts +0 -17
  588. package/dist/__tests__/start-config-conflict.test.d.ts.map +0 -1
  589. package/dist/__tests__/start-config-conflict.test.js +0 -101
  590. package/dist/__tests__/start-config-conflict.test.js.map +0 -1
  591. package/dist/__tests__/start-interactive-role.test.d.ts +0 -22
  592. package/dist/__tests__/start-interactive-role.test.d.ts.map +0 -1
  593. package/dist/__tests__/start-interactive-role.test.js +0 -204
  594. package/dist/__tests__/start-interactive-role.test.js.map +0 -1
  595. package/dist/__tests__/start-rebase-never-ran.test.d.ts +0 -25
  596. package/dist/__tests__/start-rebase-never-ran.test.d.ts.map +0 -1
  597. package/dist/__tests__/start-rebase-never-ran.test.js +0 -227
  598. package/dist/__tests__/start-rebase-never-ran.test.js.map +0 -1
  599. package/dist/__tests__/start-report-generation-capture.test.d.ts +0 -17
  600. package/dist/__tests__/start-report-generation-capture.test.d.ts.map +0 -1
  601. package/dist/__tests__/start-report-generation-capture.test.js +0 -127
  602. package/dist/__tests__/start-report-generation-capture.test.js.map +0 -1
  603. package/dist/__tests__/start-report-integration.test.d.ts +0 -12
  604. package/dist/__tests__/start-report-integration.test.d.ts.map +0 -1
  605. package/dist/__tests__/start-report-integration.test.js +0 -138
  606. package/dist/__tests__/start-report-integration.test.js.map +0 -1
  607. package/dist/__tests__/start-runtime-wiring.test.d.ts +0 -31
  608. package/dist/__tests__/start-runtime-wiring.test.d.ts.map +0 -1
  609. package/dist/__tests__/start-runtime-wiring.test.js +0 -735
  610. package/dist/__tests__/start-runtime-wiring.test.js.map +0 -1
  611. package/dist/__tests__/start-stash.test.d.ts +0 -2
  612. package/dist/__tests__/start-stash.test.d.ts.map +0 -1
  613. package/dist/__tests__/start-stash.test.js +0 -131
  614. package/dist/__tests__/start-stash.test.js.map +0 -1
  615. package/dist/__tests__/start-sync-hardstop.test.d.ts +0 -15
  616. package/dist/__tests__/start-sync-hardstop.test.d.ts.map +0 -1
  617. package/dist/__tests__/start-sync-hardstop.test.js +0 -280
  618. package/dist/__tests__/start-sync-hardstop.test.js.map +0 -1
  619. package/dist/__tests__/start-team-identity.test.d.ts +0 -25
  620. package/dist/__tests__/start-team-identity.test.d.ts.map +0 -1
  621. package/dist/__tests__/start-team-identity.test.js +0 -307
  622. package/dist/__tests__/start-team-identity.test.js.map +0 -1
  623. package/dist/__tests__/startup-health-render.test.d.ts +0 -11
  624. package/dist/__tests__/startup-health-render.test.d.ts.map +0 -1
  625. package/dist/__tests__/startup-health-render.test.js +0 -60
  626. package/dist/__tests__/startup-health-render.test.js.map +0 -1
  627. package/dist/__tests__/startup-policy.test.d.ts +0 -2
  628. package/dist/__tests__/startup-policy.test.d.ts.map +0 -1
  629. package/dist/__tests__/startup-policy.test.js +0 -27
  630. package/dist/__tests__/startup-policy.test.js.map +0 -1
  631. package/dist/__tests__/startup-report.test.d.ts +0 -13
  632. package/dist/__tests__/startup-report.test.d.ts.map +0 -1
  633. package/dist/__tests__/startup-report.test.js +0 -278
  634. package/dist/__tests__/startup-report.test.js.map +0 -1
  635. package/dist/__tests__/startup-shipper.test.d.ts +0 -13
  636. package/dist/__tests__/startup-shipper.test.d.ts.map +0 -1
  637. package/dist/__tests__/startup-shipper.test.js +0 -149
  638. package/dist/__tests__/startup-shipper.test.js.map +0 -1
  639. package/dist/__tests__/stream-input-controller.test.d.ts +0 -10
  640. package/dist/__tests__/stream-input-controller.test.d.ts.map +0 -1
  641. package/dist/__tests__/stream-input-controller.test.js +0 -167
  642. package/dist/__tests__/stream-input-controller.test.js.map +0 -1
  643. package/dist/__tests__/team-memory-commands.test.d.ts +0 -11
  644. package/dist/__tests__/team-memory-commands.test.d.ts.map +0 -1
  645. package/dist/__tests__/team-memory-commands.test.js +0 -240
  646. package/dist/__tests__/team-memory-commands.test.js.map +0 -1
  647. package/dist/__tests__/team-name-propagation.test.d.ts +0 -13
  648. package/dist/__tests__/team-name-propagation.test.d.ts.map +0 -1
  649. package/dist/__tests__/team-name-propagation.test.js +0 -198
  650. package/dist/__tests__/team-name-propagation.test.js.map +0 -1
  651. package/dist/__tests__/team-token-probe.test.d.ts +0 -16
  652. package/dist/__tests__/team-token-probe.test.d.ts.map +0 -1
  653. package/dist/__tests__/team-token-probe.test.js +0 -295
  654. package/dist/__tests__/team-token-probe.test.js.map +0 -1
  655. package/dist/__tests__/template-budget.test.d.ts +0 -2
  656. package/dist/__tests__/template-budget.test.d.ts.map +0 -1
  657. package/dist/__tests__/template-budget.test.js +0 -119
  658. package/dist/__tests__/template-budget.test.js.map +0 -1
  659. package/dist/__tests__/template-sync.test.d.ts +0 -19
  660. package/dist/__tests__/template-sync.test.d.ts.map +0 -1
  661. package/dist/__tests__/template-sync.test.js +0 -480
  662. package/dist/__tests__/template-sync.test.js.map +0 -1
  663. package/dist/__tests__/test-project.test.d.ts +0 -18
  664. package/dist/__tests__/test-project.test.d.ts.map +0 -1
  665. package/dist/__tests__/test-project.test.js +0 -465
  666. package/dist/__tests__/test-project.test.js.map +0 -1
  667. package/dist/__tests__/tracked-instruction-files.test.d.ts +0 -21
  668. package/dist/__tests__/tracked-instruction-files.test.d.ts.map +0 -1
  669. package/dist/__tests__/tracked-instruction-files.test.js +0 -489
  670. package/dist/__tests__/tracked-instruction-files.test.js.map +0 -1
  671. package/dist/__tests__/unlock.test.d.ts +0 -11
  672. package/dist/__tests__/unlock.test.d.ts.map +0 -1
  673. package/dist/__tests__/unlock.test.js +0 -100
  674. package/dist/__tests__/unlock.test.js.map +0 -1
  675. package/dist/__tests__/usage-per-call-grouping.test.d.ts +0 -25
  676. package/dist/__tests__/usage-per-call-grouping.test.d.ts.map +0 -1
  677. package/dist/__tests__/usage-per-call-grouping.test.js +0 -952
  678. package/dist/__tests__/usage-per-call-grouping.test.js.map +0 -1
  679. package/dist/__tests__/usage-pricing.test.d.ts +0 -20
  680. package/dist/__tests__/usage-pricing.test.d.ts.map +0 -1
  681. package/dist/__tests__/usage-pricing.test.js +0 -176
  682. package/dist/__tests__/usage-pricing.test.js.map +0 -1
  683. package/dist/__tests__/usage-subagent-discovery.test.d.ts +0 -17
  684. package/dist/__tests__/usage-subagent-discovery.test.d.ts.map +0 -1
  685. package/dist/__tests__/usage-subagent-discovery.test.js +0 -213
  686. package/dist/__tests__/usage-subagent-discovery.test.js.map +0 -1
  687. package/dist/__tests__/verify-hooks-check-all.test.d.ts +0 -32
  688. package/dist/__tests__/verify-hooks-check-all.test.d.ts.map +0 -1
  689. package/dist/__tests__/verify-hooks-check-all.test.js +0 -563
  690. package/dist/__tests__/verify-hooks-check-all.test.js.map +0 -1
  691. package/dist/__tests__/verify-hooks-heal-log.test.d.ts +0 -11
  692. package/dist/__tests__/verify-hooks-heal-log.test.d.ts.map +0 -1
  693. package/dist/__tests__/verify-hooks-heal-log.test.js +0 -172
  694. package/dist/__tests__/verify-hooks-heal-log.test.js.map +0 -1
  695. package/dist/__tests__/worker-cap.test.d.ts +0 -14
  696. package/dist/__tests__/worker-cap.test.d.ts.map +0 -1
  697. package/dist/__tests__/worker-cap.test.js +0 -97
  698. package/dist/__tests__/worker-cap.test.js.map +0 -1
  699. package/dist/__tests__/worktree-link-repair.test.d.ts +0 -2
  700. package/dist/__tests__/worktree-link-repair.test.d.ts.map +0 -1
  701. package/dist/__tests__/worktree-link-repair.test.js +0 -471
  702. package/dist/__tests__/worktree-link-repair.test.js.map +0 -1
  703. package/dist/__tests__/worktree-sync-fixture.test.d.ts +0 -17
  704. package/dist/__tests__/worktree-sync-fixture.test.d.ts.map +0 -1
  705. package/dist/__tests__/worktree-sync-fixture.test.js +0 -519
  706. package/dist/__tests__/worktree-sync-fixture.test.js.map +0 -1
  707. package/dist/__tests__/worktree-sync-hardening.test.d.ts +0 -13
  708. package/dist/__tests__/worktree-sync-hardening.test.d.ts.map +0 -1
  709. package/dist/__tests__/worktree-sync-hardening.test.js +0 -919
  710. package/dist/__tests__/worktree-sync-hardening.test.js.map +0 -1
  711. package/dist/__tests__/worktree-sync-shell-free.test.d.ts +0 -25
  712. package/dist/__tests__/worktree-sync-shell-free.test.d.ts.map +0 -1
  713. package/dist/__tests__/worktree-sync-shell-free.test.js +0 -185
  714. package/dist/__tests__/worktree-sync-shell-free.test.js.map +0 -1
  715. package/dist/__tests__/worktree.test.d.ts +0 -2
  716. package/dist/__tests__/worktree.test.d.ts.map +0 -1
  717. package/dist/__tests__/worktree.test.js +0 -168
  718. package/dist/__tests__/worktree.test.js.map +0 -1
  719. package/dist/lib/code-context-file.test.d.ts +0 -19
  720. package/dist/lib/code-context-file.test.d.ts.map +0 -1
  721. package/dist/lib/code-context-file.test.js +0 -202
  722. package/dist/lib/code-context-file.test.js.map +0 -1
  723. package/dist/lib/harness/console/announce.test.d.ts +0 -2
  724. package/dist/lib/harness/console/announce.test.d.ts.map +0 -1
  725. package/dist/lib/harness/console/announce.test.js +0 -104
  726. package/dist/lib/harness/console/announce.test.js.map +0 -1
  727. package/dist/lib/harness/console/by-session.test.d.ts +0 -2
  728. package/dist/lib/harness/console/by-session.test.d.ts.map +0 -1
  729. package/dist/lib/harness/console/by-session.test.js +0 -86
  730. package/dist/lib/harness/console/by-session.test.js.map +0 -1
  731. package/dist/lib/harness/console/console.test.d.ts +0 -2
  732. package/dist/lib/harness/console/console.test.d.ts.map +0 -1
  733. package/dist/lib/harness/console/console.test.js +0 -269
  734. package/dist/lib/harness/console/console.test.js.map +0 -1
  735. package/dist/lib/harness/console/decision-request.test.d.ts +0 -2
  736. package/dist/lib/harness/console/decision-request.test.d.ts.map +0 -1
  737. package/dist/lib/harness/console/decision-request.test.js +0 -75
  738. package/dist/lib/harness/console/decision-request.test.js.map +0 -1
  739. package/dist/lib/harness/console/rank.test.d.ts +0 -2
  740. package/dist/lib/harness/console/rank.test.d.ts.map +0 -1
  741. package/dist/lib/harness/console/rank.test.js +0 -124
  742. package/dist/lib/harness/console/rank.test.js.map +0 -1
  743. package/dist/lib/harness/console/render.test.d.ts +0 -2
  744. package/dist/lib/harness/console/render.test.d.ts.map +0 -1
  745. package/dist/lib/harness/console/render.test.js +0 -96
  746. package/dist/lib/harness/console/render.test.js.map +0 -1
  747. package/dist/lib/harness/console/replay-cli.test.d.ts +0 -2
  748. package/dist/lib/harness/console/replay-cli.test.d.ts.map +0 -1
  749. package/dist/lib/harness/console/replay-cli.test.js +0 -96
  750. package/dist/lib/harness/console/replay-cli.test.js.map +0 -1
  751. package/dist/lib/harness/console/replay.test.d.ts +0 -2
  752. package/dist/lib/harness/console/replay.test.d.ts.map +0 -1
  753. package/dist/lib/harness/console/replay.test.js +0 -81
  754. package/dist/lib/harness/console/replay.test.js.map +0 -1
  755. package/dist/lib/harness/console/turn-reader.test.d.ts +0 -2
  756. package/dist/lib/harness/console/turn-reader.test.d.ts.map +0 -1
  757. package/dist/lib/harness/console/turn-reader.test.js +0 -108
  758. package/dist/lib/harness/console/turn-reader.test.js.map +0 -1
  759. package/dist/lib/harness/credential.test.d.ts +0 -2
  760. package/dist/lib/harness/credential.test.d.ts.map +0 -1
  761. package/dist/lib/harness/credential.test.js +0 -74
  762. package/dist/lib/harness/credential.test.js.map +0 -1
  763. package/dist/lib/harness/evaluate.test.d.ts +0 -2
  764. package/dist/lib/harness/evaluate.test.d.ts.map +0 -1
  765. package/dist/lib/harness/evaluate.test.js +0 -621
  766. package/dist/lib/harness/evaluate.test.js.map +0 -1
  767. package/dist/lib/harness/gate.test.d.ts +0 -2
  768. package/dist/lib/harness/gate.test.d.ts.map +0 -1
  769. package/dist/lib/harness/gate.test.js +0 -111
  770. package/dist/lib/harness/gate.test.js.map +0 -1
  771. package/dist/lib/harness/self-check.test.d.ts +0 -2
  772. package/dist/lib/harness/self-check.test.d.ts.map +0 -1
  773. package/dist/lib/harness/self-check.test.js +0 -43
  774. package/dist/lib/harness/self-check.test.js.map +0 -1
  775. package/dist/lib/harness/transcript.test.d.ts +0 -2
  776. package/dist/lib/harness/transcript.test.d.ts.map +0 -1
  777. package/dist/lib/harness/transcript.test.js +0 -118
  778. package/dist/lib/harness/transcript.test.js.map +0 -1
  779. package/dist/lib/projects-registry.test.d.ts +0 -2
  780. package/dist/lib/projects-registry.test.d.ts.map +0 -1
  781. package/dist/lib/projects-registry.test.js +0 -176
  782. package/dist/lib/projects-registry.test.js.map +0 -1
  783. package/dist/lib/roster.test.d.ts +0 -15
  784. package/dist/lib/roster.test.d.ts.map +0 -1
  785. package/dist/lib/roster.test.js +0 -299
  786. package/dist/lib/roster.test.js.map +0 -1
  787. package/dist/lib/vault.test.d.ts +0 -17
  788. package/dist/lib/vault.test.d.ts.map +0 -1
  789. package/dist/lib/vault.test.js +0 -169
  790. package/dist/lib/vault.test.js.map +0 -1
  791. package/dist/lib/window-view.test.d.ts +0 -2
  792. package/dist/lib/window-view.test.d.ts.map +0 -1
  793. package/dist/lib/window-view.test.js +0 -168
  794. package/dist/lib/window-view.test.js.map +0 -1
  795. package/dist/standards/fail-loud-standard.md +0 -495
  796. package/dist/standards/known-issues-standard.md +0 -380
  797. package/dist/standards/rulings.md +0 -104
@@ -0,0 +1,551 @@
1
+ /**
2
+ * gh-token-run -- run the real `gh` with an mx-bott `gh` token in the child's
3
+ * environment only (#440, v56).
4
+ *
5
+ * WHAT THIS DOES. runGhWithToken(args, deps) checks the gh arguments against a
6
+ * fixed allowlist, mints an installation token with the `gh` permission set
7
+ * in-process, and spawns /usr/bin/gh with that token in one place: the
8
+ * `GH_TOKEN` variable of the child's environment. The product owner accepted
9
+ * that one place on 2026-10-19 (#440 comment 6279203208). This module never
10
+ * puts the token in its own environment, an argument, a file or its output.
11
+ *
12
+ * NOT ENABLED BY THIS MODULE. Nothing here installs a PATH shim, edits a hook
13
+ * or changes any config. Plain `gh` still uses the product owner's saved login.
14
+ *
15
+ * ARGUMENTS ARE AN ALLOWLIST (v56 plan revision 1, SF1, #440 comment
16
+ * 6279235415). The first argument names a command, and for a group the second
17
+ * names a subcommand; both must be on ALLOWED_COMMANDS. Every later argument
18
+ * starting with `-` must exactly match a flag listed for that subcommand.
19
+ * A joined form such as `-XPOST` or `--method=POST` matches nothing and is
20
+ * refused. A flag that takes a value consumes the next argument, which must
21
+ * not start with `-`. `api` takes exactly one endpoint under API_ENDPOINT_PREFIX.
22
+ *
23
+ * `--body-file` IS READ BY THE WRAPPER, NOT BY GH (v70, #761; plan comment
24
+ * 6406642967, revision 1 comment 6406680912; product owner decision 2026-10-26,
25
+ * memory 8b6e82de). Only on BODY_FILE_COMMANDS: `pr create`, `pr edit`,
26
+ * `pr comment`, `issue create`, `issue edit` and `issue comment`. The order is
27
+ * parse (planBodyFile, which puts a fixed placeholder `--body` in the argv),
28
+ * checkGhArgs on that argv, read (readBodyFileForGh, once), rewrite
29
+ * (bodyFileGhArgs), mint. gh gets the joined form `--body=<text>`, so a body
30
+ * starting with `-` reaches gh as the value. gh never opens the path.
31
+ * `--body-file` stays in ALWAYS_REFUSED_FLAGS and in no allowlist table, so a
32
+ * `--body-file` that reaches checkGhArgs (any other subcommand, `api`
33
+ * included) is still `flag-not-allowed`. The read resolves the path against
34
+ * the caller's cwd, refuses BODY_FILE_DENYLIST_HOME under both `os.homedir()`
35
+ * and the passwd home, `$GH_CONFIG_DIR`, `$XDG_CONFIG_HOME/gh`,
36
+ * BODY_FILE_DENYLIST_ROOT, and a hard link to a listed file or a file
37
+ * directly inside a listed directory; see deniedIdentities for the gap. That denylist
38
+ * is NOT an access control: one `cp` to a new path defeats it, and any other
39
+ * file this user can read can be posted, as `--body "$(cat <file>)"` already
40
+ * allows. `-F`, `--input`, `-f`, `--field`, `--raw-field`, `-X` and
41
+ * `--method` stay refused on every subcommand.
42
+ *
43
+ * NO IN-PROCESS FILTERS (security review on PR #705, Must Fix). gh evaluates
44
+ * `--jq` with gojq inside the gh process, and gojq's `$ENV` and `env` read
45
+ * that process's environment, which holds GH_TOKEN. So `--jq`, `-q` and
46
+ * `--slurp` are refused everywhere. `--template` and `-t` are refused too
47
+ * (lead decision). Pipe `--json` output to the system `jq` instead.
48
+ *
49
+ * NO OTHER HOST (security review on PR #705, SF). gh reads a host from a
50
+ * `HOST/OWNER/REPO` argument or a URL, and sends GH_TOKEN to `*.ghe.com` and
51
+ * `github.localhost`. Every positional and every non-free-text flag value is
52
+ * checked by isAllowedValue(). Free text (titles, bodies, comments, searches)
53
+ * is not read as a host by gh and is not checked.
54
+ *
55
+ * THE CHILD ENVIRONMENT IS AN ALLOWLIST (SF2). buildChildEnv() copies only
56
+ * LANG and TERM from this process, then sets fixed values. PATH is fixed.
57
+ * No pager, editor, browser, proxy, CA override, GH_ENTERPRISE_* or debug
58
+ * variable reaches gh. HOME and GH_CONFIG_DIR are one empty 0700 temp dir, so
59
+ * gh never reads the product owner's hosts.yml. The dir is removed when gh
60
+ * exits, and on SIGINT, SIGTERM and SIGHUP.
61
+ *
62
+ * GH RUNS IN THE WRAPPER'S OWN TEMP DIR (v69, #763; plan comment 6405228134,
63
+ * revision 1 comment 6405259462). The spawn `cwd` is that same temp dir, never
64
+ * the caller's working directory. The dir is a plain directory, not a git
65
+ * repository. buildChildEnv() sets `GIT_CEILING_DIRECTORIES` to the absolute
66
+ * parent of the temp dir, so git that gh starts finds no repository there and
67
+ * does not search upward. Without the ceiling, a caller-set `TMPDIR` inside a
68
+ * repository would put that repository's fsmonitor, hooks and aliases back in
69
+ * reach (red-team on the v69 plan). GH_REPO already names the repository, so
70
+ * gh needs no remote from git. Whether every shipped command still works from
71
+ * the plain directory is shown only by the live rows, not by this module.
72
+ * The ceiling covers git that gh starts in its working directory. It does not
73
+ * cover git started with `-C <dir>`, git started in another directory, or
74
+ * `gh --version`, which runs outside the ceiling. (v71, #759 V69-3.)
75
+ *
76
+ * A TEMP PARENT HOLDING `:` IS REFUSED (v69, lead decision on PR #766). Git
77
+ * splits `GIT_CEILING_DIRECTORIES` on `:`, so a parent such as `<repo>/a:b`
78
+ * becomes two wrong entries and git walks up into `<repo>`. runGhWithToken
79
+ * checks the parent right after makeTempDir(), before any mint, removes the
80
+ * dir and refuses with `tempdir-unsafe`. buildChildEnv() throws on the same
81
+ * condition, so no caller can build a child env with a split ceiling.
82
+ *
83
+ * REVOKE WHEN GH EXITS (#440 v59, #707 item 3; plan comment 6282796699,
84
+ * revision 1 comment 6282817801). Once a token is minted, the injected
85
+ * `revoke` runs once: after gh exits with any status, after a spawn failure,
86
+ * and on SIGINT, SIGTERM or SIGHUP after the temp dir is removed. One shared
87
+ * single-flight promise serves every path. Each attempt is bounded by
88
+ * REVOKE_TIMEOUT_MS. A failure writes `mx-agent gh: revoke-failed` and never
89
+ * changes the exit status, which stays gh's. A second signal during the revoke
90
+ * exits at once. SIGKILL or a crash skips the revoke, and the token then lives
91
+ * for its 1 hour.
92
+ *
93
+ * FIXED, NO OVERRIDES. The gh path, the permission set and the repository are
94
+ * constants. No flag, environment variable or parameter changes them. The gh
95
+ * path is absolute and has no PATH fallback.
96
+ *
97
+ * FAIL CLOSED. Every refusal and failure writes one stderr line naming a code
98
+ * only, spawns nothing it has not yet spawned, and returns non-zero. gh's own
99
+ * exit status passes through. No refusal writes a second line: v68 removed the
100
+ * two hint lines (`pr checks` and plain `pr view`) with the refusals they
101
+ * followed.
102
+ *
103
+ * THE `gh` SET HOLDS `contents: read` (v68, #757). Product owner decision
104
+ * 2026-10-25 (#757 comment 6396745069, memory cd571fc0). The measurement under
105
+ * the new set (#757 comment 6397047004, engineer and witness agree) exited 0
106
+ * for `pr create --dry-run`, `pr checks <n> --json`, plain `pr view <n>`,
107
+ * `pr view <branch>`, `pr diff <branch>` and `pr diff <n>`. The decision table
108
+ * (#757 comments 6396788460 and 6396808436) directs what follows.
109
+ *
110
+ * `pr checks <selector> --json <fields>` IS ALLOWED AGAIN (v68). `--json` is
111
+ * required and is its only flag; `--watch` and `--required` stay refused until
112
+ * measured. The selector must be a number or a pull request URL in this
113
+ * repository (`pr-number-required`). With none, gh reads the current branch
114
+ * from git in the working directory. A branch is refused because
115
+ * `pr checks <branch>` was not measured; gh's finder runs no git for a
116
+ * non-empty branch (security review at 121b903, INFO).
117
+ *
118
+ * PLAIN `pr view` IS ALLOWED AGAIN (v68). The v67 `json-required` refusal for
119
+ * `pr view` is removed, so `-c`/`--comments` work too.
120
+ *
121
+ * `pr view` AND `pr diff` TAKE A NUMBER, A BRANCH OR A PULL REQUEST URL (v68).
122
+ * Exactly one selector. No selector is refused with `pr-number-required`,
123
+ * because gh then reads the current branch from git in the working directory.
124
+ * A value holding `://` must be a pull request URL in this repository.
125
+ *
126
+ * EVERY `pr create` NEEDS `--head` (v68, #757 r1 SF3, widened by the security
127
+ * review at 121b903, CWE-522). Without `--head`, gh runs
128
+ * `git status --porcelain` in the working directory, which runs that
129
+ * repository's `core.fsmonitor`, and can `git push`, which runs its pre-push
130
+ * hook, both with GH_TOKEN in the environment (gh v2.97.0 `create.go:503,621`;
131
+ * `--dry-run` help says "May still push git changes"). So `pr create` without
132
+ * `--head`, with or without `--dry-run`, is refused with `head-required`, and
133
+ * so is any `--head` value that is empty or all spaces (gh v2.97.0
134
+ * `create.go:778` reads an empty value as no head; security re-review at
135
+ * 93c2f23). Every
136
+ * `pr create --head` value must be a bare branch name or
137
+ * `memnexus-ai:<branch>`; any other owner prefix is refused with
138
+ * `head-not-allowed`. A dry run proves gh's read path only, not that the
139
+ * create mutation is permitted.
140
+ *
141
+ * STILL REFUSED (v64, #729; kept in v68). `pr status` runs git in the working
142
+ * directory with the token in its environment, so it stays refused whatever a
143
+ * measurement shows. `repo view` exited 1 in v64 for a cause the measurement
144
+ * did not classify, and it stays refused while that cause is unmeasured. The
145
+ * `statusCheckRollup` field of `pr view --json` and `pr list --json` stays
146
+ * refused (v68 final decision 1: the cell was record-only).
147
+ *
148
+ * `pr create` READS GIT IN THE WORKING DIRECTORY (#757 r1 SF-e; v69, #763).
149
+ * Since v69 that working directory is the wrapper's own temp dir, with
150
+ * `GIT_CEILING_DIRECTORIES` set to its parent, so the git gh starts finds no
151
+ * repository and reads no caller's `.git/config` or hooks. A non-empty
152
+ * `--head` is still required, and with it gh reads git config, remotes and
153
+ * commit history only, and pushes nothing (`skipPushRefs`). A push would also
154
+ * need `contents: write`, which the `gh` set does not hold. If that is ever
155
+ * added, the no-`--head` path matters again (red-team F2 at 121b903); #763
156
+ * records that trigger as closed only once its live runs pass. The child has
157
+ * `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_CONFIG_NOSYSTEM=1`. `pr status` stays
158
+ * refused: it takes no selector, and without `--repo` (always refused) it
159
+ * reads the current branch from git on every call (gh v2.97.0
160
+ * `pkg/cmd/pr/status/status.go:98-100`).
161
+ *
162
+ * MEMORY EXPOSURE, NOT REMOVED. The token is a JavaScript string in this
163
+ * process and a C string in the child's environment. Node cannot zero it. A
164
+ * process with this user's rights can read /proc/<pid>/environ of the child
165
+ * while gh runs. The git processes gh starts inherit GH_TOKEN. Since v69 they
166
+ * run in the wrapper's temp dir under `GIT_CEILING_DIRECTORIES`, so no
167
+ * repository's own config or hooks apply to them.
168
+ */
169
+ import { type TokenPurpose } from './github-app-token.js';
170
+ /** The one gh binary run. Absolute; never looked up on PATH. */
171
+ export declare const GH_PATH = "/usr/bin/gh";
172
+ /** The permission set minted. A closed set in github-app-token.ts. */
173
+ export declare const GH_PURPOSE: TokenPurpose;
174
+ /** The host gh is pinned to. */
175
+ export declare const GH_HOST = "github.com";
176
+ /** The repository gh is pinned to, as GH_REPO. */
177
+ export declare const GH_REPO = "memnexus-ai/mx-agent-framework";
178
+ /** `pr edit` silently does nothing on gh 2.46.0 (gh-pr-edit-guard). Refused below this. */
179
+ export declare const MIN_GH_VERSION_FOR_PR_EDIT: readonly [number, number, number];
180
+ /** The only endpoint prefix `api` accepts. */
181
+ export declare const API_ENDPOINT_PREFIX = "repos/memnexus-ai/mx-agent-framework/";
182
+ /** The only URL prefix a positional argument or flag value outside `api` may hold. */
183
+ export declare const POSITIONAL_URL_PREFIX = "https://github.com/memnexus-ai/mx-agent-framework/";
184
+ /** Substrings an `api` endpoint must not hold (revision 1). */
185
+ export declare const API_ENDPOINT_FORBIDDEN: readonly string[];
186
+ /** The search qualifier `search issues` requires. scanSearchScope() finds it anywhere in the query, any case. */
187
+ export declare const SEARCH_REPO_QUALIFIER = "repo:memnexus-ai/mx-agent-framework";
188
+ /** The variables copied from this process into the child, when present. */
189
+ export declare const INHERITED_ENV_KEYS: readonly string[];
190
+ /** The fixed variables set in the child, besides GH_TOKEN, HOME and GH_CONFIG_DIR. */
191
+ export declare const FIXED_CHILD_ENV: Readonly<Record<string, string>>;
192
+ /**
193
+ * Flags refused on every subcommand: revision 1's list, then the PR #705 gate
194
+ * additions. No allowlist entry below may hold one; test H1 checks that, and
195
+ * runGhWithToken checks this list first.
196
+ */
197
+ export declare const ALWAYS_REFUSED_FLAGS: readonly string[];
198
+ /**
199
+ * Commands and subcommands refused (revision 1). They are refused because they
200
+ * are absent from ALLOWED_COMMANDS; this list exists so tests can name them.
201
+ * Each is refused with `command-not-allowed` and WRAPPER_FAILURE_EXIT.
202
+ * v64 (#729, plan revision 1, SF4) adds `pr status`, and `repo view` (SF3,
203
+ * cause unmeasured). v68 (#757) removes `pr checks`, which v64 had added.
204
+ */
205
+ export declare const ALWAYS_REFUSED_COMMANDS: readonly string[];
206
+ /**
207
+ * Subcommands refused without `--json` (v67 #749 for `pr view`; v68 #757
208
+ * moves it to `pr checks`). `pr checks` was measured with `--json` only
209
+ * (#757 cell 2), and without it gh prints a table and exits 8 on a pending
210
+ * check, so `--json` is required.
211
+ */
212
+ export declare const JSON_REQUIRED_COMMANDS: readonly string[];
213
+ /**
214
+ * Subcommands whose one positional must be a pull request number (`123` or
215
+ * `#123`) or a pull request URL in this repository (v68, #757 decision table,
216
+ * cell 2). With no selector, gh's `pr checks` reads the current branch from
217
+ * git in the working directory. A branch is refused because it is unmeasured.
218
+ */
219
+ export declare const PR_NUMBER_REQUIRED_COMMANDS: readonly string[];
220
+ /**
221
+ * Subcommands that need exactly one selector: a number, a branch name or a
222
+ * pull request URL in this repository (v68, #757 cells 5 and 6 narrow the v67
223
+ * number-only rule). No selector is still refused with `pr-number-required`:
224
+ * gh would read the current branch from git in the working directory.
225
+ */
226
+ export declare const PR_SELECTOR_REQUIRED_COMMANDS: readonly string[];
227
+ /**
228
+ * True when the selector is a number or a pull request URL in this repository.
229
+ * The URL's number has the same 10-digit cap (v72): gh's URL path ignores the
230
+ * `Atoi` error (`finder.go:326`).
231
+ */
232
+ export declare function isPrNumberSelector(selector: string): boolean;
233
+ /**
234
+ * True when the selector names one pull request for `pr view` or `pr diff`
235
+ * (v68): a number, or a branch name, or, when it holds `://`, a pull request
236
+ * URL in this repository (the v67 URL check, kept). An empty or all-space
237
+ * value is refused: gh would read it as no selector.
238
+ */
239
+ export declare function isPrSelector(selector: string): boolean;
240
+ /** The only owner prefix a `pr create --head` value may carry (v68, #757 r1 SF3). */
241
+ export declare const HEAD_OWNER_PREFIX = "memnexus-ai:";
242
+ /**
243
+ * The refusal for one `pr create --head` value, or null (v68). Allowed: a bare
244
+ * branch name (no `:`), or `memnexus-ai:<branch>` with a non-empty branch and
245
+ * no further `:`. Any other owner prefix, in any case, is `head-not-allowed`.
246
+ * The value is never echoed.
247
+ */
248
+ export declare function headRefusal(value: string): GhRunErrorCode | null;
249
+ /**
250
+ * `--json` fields refused per subcommand, compared case-insensitively (v64,
251
+ * #729 SF3). GitHub refuses `pr view --json statusCheckRollup` with the `gh`
252
+ * set (`graphql:repository.pullRequest.statusCheckRollup.nodes.0`, measured).
253
+ * `pr list` is listed by inference, not measurement (lead decision, v64): it
254
+ * selects the same field, and refusing is fail-closed. No other subcommand
255
+ * is listed.
256
+ */
257
+ export declare const REFUSED_JSON_FIELDS: Readonly<Record<string, readonly string[]>>;
258
+ /**
259
+ * `bool` flags take no value. `value` flags consume the next argument, which
260
+ * isAllowedValue() checks. `text` flags consume free text that gh never reads
261
+ * as a host or repository: a title, body, comment or search string.
262
+ */
263
+ export type FlagKind = 'bool' | 'value' | 'text';
264
+ export type FlagTable = Readonly<Record<string, FlagKind>>;
265
+ /**
266
+ * The allowlist. Keys are `command` or `command subcommand`. Each flag is a
267
+ * real gh 2.97.0 flag for that subcommand (`gh <cmd> --help`). Flags that read
268
+ * a file, open a browser or editor, delete a branch, filter output inside gh,
269
+ * or change the target repository or host are left out. `--body-file` is not
270
+ * here either: on BODY_FILE_COMMANDS the wrapper reads the file and gh gets
271
+ * `--body` (v70, applyBodyFile).
272
+ */
273
+ export declare const ALLOWED_COMMANDS: Readonly<Record<string, FlagTable>>;
274
+ export type GhRunErrorCode = 'no-command' | 'command-not-allowed' | 'flag-not-allowed' | 'flag-value-missing' | 'api-endpoint-not-allowed' | 'url-not-allowed' | 'json-field-not-allowed' | 'json-required' | 'pr-number-required' | 'head-required' | 'head-not-allowed' | 'positional-not-allowed' | 'search-repo-required' | 'search-operator-not-allowed' | 'search-text-not-allowed' | 'state-not-allowed' | 'body-file-repeated' | 'body-file-with-body' | 'body-file-unreadable' | 'body-file-denied' | 'body-file-denied-fd' | 'body-file-hard-link' | 'body-file-not-regular' | 'body-file-too-large' | 'body-file-size-mismatch' | 'body-file-size-zero' | 'body-file-not-utf8' | 'body-file-nul' | 'body-arg-too-large' | 'gh-missing' | 'gh-version-unknown' | 'gh-too-old-for-pr-edit' | 'tempdir-failed' | 'tempdir-unsafe' | 'token-shape' | 'mint-failed' | 'spawn-failed';
275
+ /** The result of checking the arguments: ok, or a refusal code. */
276
+ export type ArgCheck = {
277
+ ok: true;
278
+ key: string;
279
+ } | {
280
+ ok: false;
281
+ code: GhRunErrorCode;
282
+ };
283
+ /**
284
+ * One positional or non-free-text flag value. Allowed: a value with no
285
+ * `://` and no host-shaped `HOST/OWNER/REPO` prefix (a number, a branch, a
286
+ * label, a login), this repository's `OWNER/REPO`, or a URL under
287
+ * POSITIONAL_URL_PREFIX. Returns the refusal code, or null when allowed.
288
+ */
289
+ export declare function valueRefusal(value: string): GhRunErrorCode | null;
290
+ /** True when the value is allowed by valueRefusal(). */
291
+ export declare function isAllowedValue(value: string): boolean;
292
+ /** True when the search text holds a search operator (SEARCH_OPERATOR_RE). */
293
+ export declare function hasSearchOperator(text: string): boolean;
294
+ /** True when the text holds a character outside printable ASCII. */
295
+ export declare function hasForbiddenSearchChar(text: string): boolean;
296
+ /** What scanSearchScope() found in one search text. */
297
+ export interface SearchScope {
298
+ /** At least one `repo:` qualifier names this repository and passes isStrictQualifier(). */
299
+ hasAllowedRepo: boolean;
300
+ /** Some qualifier is `org:`, `user:`, `owner:`, a `repo:` naming anything else, or negated. */
301
+ namesOtherScope: boolean;
302
+ }
303
+ /**
304
+ * Scan a search text for scope qualifiers. A `repo:` value is allowed only
305
+ * when it equals this repository, compared case-insensitively. `org:`,
306
+ * `user:` and `owner:` are never allowed, and neither is any qualifier after a
307
+ * `-` or `!` (NEGATION_BEFORE_RE). Callers refuse operators and non-ASCII
308
+ * text first. Every match is checked, not the first.
309
+ */
310
+ export declare function scanSearchScope(text: string): SearchScope;
311
+ /**
312
+ * True when the search text names a scope other than this repository. Used
313
+ * for `search issues` and every `-S`/`--search` value, `label list` included.
314
+ */
315
+ export declare function namesOtherScope(text: string): boolean;
316
+ /**
317
+ * The refusal for one search text (an `-S`/`--search` value, the joined
318
+ * `search issues` positionals, or a value searchValueRefusal() checks), or null. Checked in this order: a character
319
+ * outside printable ASCII, a quote, a search operator, a scope other than this
320
+ * repository. The scan keeps its quote handling as a second layer.
321
+ */
322
+ export declare function searchTextRefusal(text: string): GhRunErrorCode | null;
323
+ /**
324
+ * The refusal for whitespace inside one argument gh writes into a search query
325
+ * as a single term, or null (v58, #707 item 1). `\s` covers space, tab,
326
+ * newline and the no-break space. gh 2.97.0 quotes such an argument after its
327
+ * first `:`, so `'is:open repo:memnexus-ai/mx-agent-framework'` becomes
328
+ * `is:"open repo:memnexus-ai/mx-agent-framework"` and the `repo:` qualifier is
329
+ * read as part of a value (security review on PR #709, comment 6281614905).
330
+ */
331
+ export declare function searchTermRefusal(term: string): GhRunErrorCode | null;
332
+ /**
333
+ * The refusal for one value gh writes into a search query, or null: every
334
+ * `search issues` value flag, and the SEARCH_QUERY_VALUE_FLAGS of `pr list`
335
+ * and `issue list`. They get the search text checks, and whitespace is refused
336
+ * as well (red-team Must Fix list on PR #709, item 3).
337
+ */
338
+ export declare function searchValueRefusal(value: string): GhRunErrorCode | null;
339
+ /**
340
+ * The `pr list` and `issue list` value flags whose value gh 2.97.0 writes into
341
+ * the search query (v58, #707 item 1; security review on PR #709, S3). Measured
342
+ * offline with `--web` and GH_BROWSER=echo before this change; the table and
343
+ * method are in gh-token-run.test.ts (T3). `-L`/`--limit` and `--json` are not
344
+ * written into the query and keep the plain value check. `search issues` value
345
+ * flags are all checked, so it is not listed here.
346
+ */
347
+ export declare const SEARCH_QUERY_VALUE_FLAGS: Readonly<Record<string, readonly string[]>>;
348
+ /**
349
+ * The `-s`/`--state` values each subcommand accepts, copied from gh 2.97.0's
350
+ * own help (lead request on PR #714): `gh pr list --help` lists
351
+ * `{open|closed|merged|all}`, `gh issue list --help` `{open|closed|all}`, and
352
+ * `gh search issues --help` `{open|closed}`. Any other value is refused with
353
+ * `state-not-allowed`, after the search value checks.
354
+ */
355
+ export declare const STATE_VALUES: Readonly<Record<string, readonly string[]>>;
356
+ /**
357
+ * Check gh arguments against the allowlist. Pure. Returns the allowlist key
358
+ * on success so the caller can apply per-subcommand rules.
359
+ */
360
+ export declare function checkGhArgs(args: readonly string[]): ArgCheck;
361
+ /** One `api` endpoint: under API_ENDPOINT_PREFIX, with none of the forbidden substrings. */
362
+ export declare function isAllowedApiEndpoint(endpoint: string): boolean;
363
+ /**
364
+ * The six subcommands on which the wrapper reads `--body-file` itself (v70,
365
+ * #761 revision 1, design change 1). Everywhere else `--body-file` reaches
366
+ * checkGhArgs unchanged and is refused by ALWAYS_REFUSED_FLAGS.
367
+ */
368
+ export declare const BODY_FILE_COMMANDS: readonly string[];
369
+ /**
370
+ * The largest argument the kernel passes to a child: MAX_ARG_STRLEN is 32
371
+ * pages, 131,072 bytes with 4 KiB pages, and that count includes the
372
+ * terminating NUL. This assumes 4 KiB pages (#761 comment 6406680912);
373
+ * a larger page size only raises the kernel limit. Measured on this machine:
374
+ * an argument of 131,071 bytes spawns, one of 131,072 bytes fails with E2BIG.
375
+ * gh receives `--body=<text>`, so the largest file accepted is 131,064 bytes.
376
+ */
377
+ export declare const BODY_ARG_MAX_BYTES = 131071;
378
+ /**
379
+ * The largest `--body-file` file read: 131,071 bytes, one byte under the
380
+ * product owner's 128 KiB, for the kernel limit above (revision 1, design
381
+ * change 3). The read buffer is one byte larger, so a read that fills it
382
+ * proves the file is too large. BODY_ARG_MAX_BYTES then lowers the real
383
+ * ceiling to 131,064 bytes.
384
+ */
385
+ export declare const BODY_FILE_MAX_BYTES = 131071;
386
+ /**
387
+ * The `--body` value checkGhArgs sees in place of the file's text. checkGhArgs
388
+ * refuses a value starting with `-`, and a body such as `- item` is a valid
389
+ * body, so it checks this fixed value instead (revision 1, design change 2).
390
+ * gh never receives it.
391
+ */
392
+ export declare const BODY_PLACEHOLDER = "mx-agent-body-file";
393
+ /**
394
+ * Refused paths under each home directory (revision 1, design change 4; the
395
+ * next five added after the security review of PR #771, INFO, and the last
396
+ * four after the red-team on PR #771, P2). A realpath
397
+ * equal to one of these, or under one, is refused. This narrows the product
398
+ * owner's "refuse the agent's config file" and widens nothing.
399
+ */
400
+ export declare const BODY_FILE_DENYLIST_HOME: readonly string[];
401
+ /** Refused absolute roots (revision 1, design change 4). */
402
+ export declare const BODY_FILE_DENYLIST_ROOT: readonly string[];
403
+ /** The text of a `--body-file`, or the refusal code. */
404
+ export type BodyFileRead = {
405
+ ok: true;
406
+ text: string;
407
+ } | {
408
+ ok: false;
409
+ code: GhRunErrorCode;
410
+ };
411
+ /** The argv checkGhArgs checks and the argv gh receives, or the refusal code. */
412
+ export type BodyFileResult = {
413
+ ok: true;
414
+ checkArgs: string[];
415
+ ghArgs: string[];
416
+ } | {
417
+ ok: false;
418
+ code: GhRunErrorCode;
419
+ };
420
+ /**
421
+ * The parsed `--body-file`, before any file is opened: the argv checkGhArgs
422
+ * checks, the path (null when there is no `--body-file` to read) and the
423
+ * index of `--body-file` in `args`.
424
+ */
425
+ export type BodyFilePlan = {
426
+ ok: true;
427
+ checkArgs: string[];
428
+ path: string | null;
429
+ at: number;
430
+ } | {
431
+ ok: false;
432
+ code: GhRunErrorCode;
433
+ };
434
+ /**
435
+ * Read one `--body-file` for gh (v70, #761 revision 1, design change 3). In
436
+ * order: the denylist homes (none absolute is refused), resolve against
437
+ * process.cwd() (no `~` expansion), realpath, the denylist, open with
438
+ * O_RDONLY|O_NONBLOCK|O_NOFOLLOW (a FIFO with no writer cannot block), fstat
439
+ * for a regular file, the denylist again on /proc/self/fd/<fd> (the file
440
+ * actually opened), the hard-link check, a read capped at BODY_FILE_READ_CAP,
441
+ * the size checks, a fatal UTF-8 decode that keeps a BOM, and a NUL check.
442
+ * One try/catch covers process.cwd() and every fs call. Every refusal is a
443
+ * code; no path or error text is returned.
444
+ */
445
+ export declare function readBodyFileForGh(path: string): BodyFileRead;
446
+ /**
447
+ * Parse `--body-file`, opening nothing (v70, #761 revision 1, design changes
448
+ * 1 and 2). Without `--body-file` on a BODY_FILE_COMMANDS subcommand,
449
+ * checkArgs is `args` and path is null. Otherwise: one `--body-file` only,
450
+ * not with `--body` or `-b`, and a value not starting with `-` (so `-`,
451
+ * stdin, is refused). checkArgs holds `--body BODY_PLACEHOLDER` in its place.
452
+ * runGhWithToken runs checkGhArgs on checkArgs before any file is opened
453
+ * (security review of PR #771, INFO), so a command refused for another reason
454
+ * never opens the file.
455
+ */
456
+ export declare function planBodyFile(args: readonly string[]): BodyFilePlan;
457
+ /**
458
+ * Read the planned file and build the argv gh receives: `--body-file <path>`
459
+ * replaced by the joined `--body=<text>`, which only this function builds. A
460
+ * caller's own `--body=` still reaches checkGhArgs and is refused there.
461
+ */
462
+ export declare function bodyFileGhArgs(args: readonly string[], plan: Extract<BodyFilePlan, {
463
+ ok: true;
464
+ }>): BodyFileResult;
465
+ /**
466
+ * planBodyFile then bodyFileGhArgs, with no checkGhArgs between them. For
467
+ * tests and callers that check the argv themselves; runGhWithToken checks
468
+ * between the two steps.
469
+ */
470
+ export declare function applyBodyFile(args: readonly string[]): BodyFileResult;
471
+ /** Parse `gh version X.Y.Z` from `gh --version` output. Null when absent. */
472
+ export declare function parseGhVersion(output: string | null): [number, number, number] | null;
473
+ /** True when `v` is at least `min`. */
474
+ export declare function versionAtLeast(v: readonly [number, number, number], min: readonly [number, number, number]): boolean;
475
+ /** The git ceiling for `tempDir`: its absolute parent. */
476
+ export declare function ceilingFor(tempDir: string): string;
477
+ /**
478
+ * True when git would split the ceiling: it holds `:`, git's list separator
479
+ * for GIT_CEILING_DIRECTORIES (v69, lead decision on PR #766).
480
+ */
481
+ export declare function isUnsafeCeiling(ceiling: string): boolean;
482
+ /**
483
+ * The child's whole environment. Only INHERITED_ENV_KEYS are read from
484
+ * `parentEnv`; everything else is fixed or derived from `tempDir`. Test H2
485
+ * asserts the key set exactly.
486
+ *
487
+ * `GIT_CEILING_DIRECTORIES` (v69, #763 revision 1) is the absolute parent of
488
+ * `tempDir`, set on every call. gh runs with `tempDir` as its cwd, so git
489
+ * checks `tempDir` itself and never moves up into the parent. Git ignores a
490
+ * relative ceiling entry, so a relative `tempDir` is resolved first.
491
+ *
492
+ * Throws when that parent holds `:` (isUnsafeCeiling). runGhWithToken refuses
493
+ * that case with `tempdir-unsafe` before any mint, so on its path this throw
494
+ * is a second check that never fires. The message names no path.
495
+ */
496
+ export declare function buildChildEnv(parentEnv: Readonly<Record<string, string | undefined>>, token: string, tempDir: string): Record<string, string>;
497
+ /** The running gh child, as runGhWithToken sees it. */
498
+ export interface GhChild {
499
+ /** Resolves when gh exits, or with `error` when it could not start. */
500
+ done: Promise<{
501
+ code: number | null;
502
+ signal: NodeJS.Signals | null;
503
+ error?: boolean;
504
+ }>;
505
+ kill: (signal: NodeJS.Signals) => void;
506
+ }
507
+ /** The signals that remove the temp dir and end the wrapper. SIGHUP: security review on PR #705, INFO. */
508
+ export type GhSignal = 'SIGINT' | 'SIGTERM' | 'SIGHUP';
509
+ export declare const GH_SIGNALS: readonly GhSignal[];
510
+ export interface GhRunDeps {
511
+ /** Mints a token for the named purpose. The command passes mintInstallationToken. */
512
+ mint: (purpose: TokenPurpose) => Promise<string>;
513
+ /** True when `path` is an executable file. Called with GH_PATH only. */
514
+ ghExists: (path: string) => boolean;
515
+ /** `gh --version` output, or null. Called with GH_PATH only, no token in its environment. */
516
+ ghVersion: (path: string) => string | null;
517
+ /** Creates an empty 0700 directory and returns its path. Throws on failure. */
518
+ makeTempDir: () => string;
519
+ /** Removes the directory and everything in it. Must not throw. */
520
+ removeTempDir: (dir: string) => void;
521
+ /**
522
+ * Starts `path` with exactly `args` and `env` in the directory `cwd`, no
523
+ * shell, stdio inherited. runGhWithToken passes its own temp dir as `cwd`
524
+ * (v69, #763).
525
+ */
526
+ spawn: (path: string, args: readonly string[], env: Record<string, string>, cwd: string) => GhChild;
527
+ /** Registers a handler; returns a function that removes it. */
528
+ onSignal: (signal: GhSignal, handler: () => void) => () => void;
529
+ /** Ends this process at once with the status. Used only from a signal handler. */
530
+ exit: (code: number) => void;
531
+ /** This process's environment, read for INHERITED_ENV_KEYS only. */
532
+ parentEnv: () => Readonly<Record<string, string | undefined>>;
533
+ writeStderr: (text: string) => void;
534
+ /**
535
+ * Revokes the minted token (v59). Resolves on success, rejects on any
536
+ * failure. The command passes revokeInstallationToken.
537
+ */
538
+ revoke: (token: string) => Promise<void>;
539
+ /** Calls `fn` after `ms` milliseconds; returns a function that cancels it. */
540
+ setTimer: (ms: number, fn: () => void) => () => void;
541
+ }
542
+ /** Exit status for a wrapper refusal or failure. */
543
+ export declare const WRAPPER_FAILURE_EXIT = 1;
544
+ /** Shell convention for a process ended by a signal: 128 plus the signal number. */
545
+ export declare function signalExit(sig: NodeJS.Signals): number;
546
+ /**
547
+ * Run gh with an mx-bott token in the child only. Returns the exit status:
548
+ * gh's own, or WRAPPER_FAILURE_EXIT on a refusal or failure.
549
+ */
550
+ export declare function runGhWithToken(args: readonly string[], deps: GhRunDeps): Promise<number>;
551
+ //# sourceMappingURL=gh-token-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gh-token-run.d.ts","sourceRoot":"","sources":["../../src/lib/gh-token-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuKG;AAQH,OAAO,EAA6D,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErH,gEAAgE;AAChE,eAAO,MAAM,OAAO,gBAAgB,CAAC;AAErC,sEAAsE;AACtE,eAAO,MAAM,UAAU,EAAE,YAAmB,CAAC;AAE7C,gCAAgC;AAChC,eAAO,MAAM,OAAO,eAAe,CAAC;AAEpC,kDAAkD;AAClD,eAAO,MAAM,OAAO,mCAA+B,CAAC;AAEpD,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAc,CAAC;AAExF,8CAA8C;AAC9C,eAAO,MAAM,mBAAmB,0CAAsC,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