@red-codes/agentguard 1.0.0 → 1.1.2

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 (434) hide show
  1. package/README.md +179 -298
  2. package/dist/args.d.ts.map +1 -0
  3. package/dist/args.js.map +1 -0
  4. package/dist/bin.d.ts.map +1 -0
  5. package/dist/bin.js +29185 -0
  6. package/dist/bin.js.map +7 -0
  7. package/dist/colors.d.ts.map +1 -0
  8. package/dist/colors.js.map +1 -0
  9. package/dist/commands/adoption.d.ts +2 -0
  10. package/dist/commands/adoption.d.ts.map +1 -0
  11. package/dist/commands/adoption.js +172 -0
  12. package/dist/commands/adoption.js.map +1 -0
  13. package/dist/commands/analytics.d.ts +3 -0
  14. package/dist/commands/analytics.d.ts.map +1 -0
  15. package/dist/commands/analytics.js +7 -0
  16. package/dist/commands/analytics.js.map +1 -0
  17. package/dist/commands/audit-verify.d.ts +3 -0
  18. package/dist/commands/audit-verify.d.ts.map +1 -0
  19. package/dist/commands/audit-verify.js +94 -0
  20. package/dist/commands/audit-verify.js.map +1 -0
  21. package/dist/commands/auto-setup.d.ts +28 -0
  22. package/dist/commands/auto-setup.d.ts.map +1 -0
  23. package/dist/commands/auto-setup.js +146 -0
  24. package/dist/commands/auto-setup.js.map +1 -0
  25. package/dist/commands/ci-check.d.ts +13 -0
  26. package/dist/commands/ci-check.d.ts.map +1 -0
  27. package/dist/commands/ci-check.js +286 -0
  28. package/dist/commands/ci-check.js.map +1 -0
  29. package/dist/commands/claude-hook.d.ts +2 -0
  30. package/dist/commands/claude-hook.d.ts.map +1 -0
  31. package/dist/commands/claude-hook.js +254 -0
  32. package/dist/commands/claude-hook.js.map +1 -0
  33. package/dist/commands/claude-init.d.ts.map +1 -0
  34. package/dist/commands/claude-init.js +401 -0
  35. package/dist/commands/claude-init.js.map +1 -0
  36. package/dist/commands/config.d.ts +39 -0
  37. package/dist/commands/config.d.ts.map +1 -0
  38. package/dist/commands/config.js +368 -0
  39. package/dist/commands/config.js.map +1 -0
  40. package/dist/commands/demo.d.ts +2 -0
  41. package/dist/commands/demo.d.ts.map +1 -0
  42. package/dist/commands/demo.js +100 -0
  43. package/dist/commands/demo.js.map +1 -0
  44. package/dist/commands/diff.d.ts +3 -0
  45. package/dist/commands/diff.d.ts.map +1 -0
  46. package/dist/commands/diff.js +364 -0
  47. package/dist/commands/diff.js.map +1 -0
  48. package/dist/commands/evidence-pr.d.ts +3 -0
  49. package/dist/commands/evidence-pr.d.ts.map +1 -0
  50. package/dist/commands/evidence-pr.js +162 -0
  51. package/dist/commands/evidence-pr.js.map +1 -0
  52. package/dist/commands/export.d.ts +22 -0
  53. package/dist/commands/export.d.ts.map +1 -0
  54. package/dist/commands/export.js +92 -0
  55. package/dist/commands/export.js.map +1 -0
  56. package/dist/commands/guard.d.ts +21 -0
  57. package/dist/commands/guard.d.ts.map +1 -0
  58. package/dist/commands/guard.js +272 -0
  59. package/dist/commands/guard.js.map +1 -0
  60. package/dist/commands/import.d.ts +3 -0
  61. package/dist/commands/import.d.ts.map +1 -0
  62. package/dist/{cli/commands → commands}/import.js +25 -26
  63. package/dist/commands/import.js.map +1 -0
  64. package/dist/commands/init.d.ts +5 -0
  65. package/dist/commands/init.d.ts.map +1 -0
  66. package/dist/commands/init.js +1288 -0
  67. package/dist/commands/init.js.map +1 -0
  68. package/dist/commands/inspect.d.ts +4 -0
  69. package/dist/commands/inspect.d.ts.map +1 -0
  70. package/dist/{cli/commands → commands}/inspect.js +97 -70
  71. package/dist/commands/inspect.js.map +1 -0
  72. package/dist/commands/learn.d.ts +2 -0
  73. package/dist/commands/learn.d.ts.map +1 -0
  74. package/dist/commands/learn.js +264 -0
  75. package/dist/commands/learn.js.map +1 -0
  76. package/dist/commands/migrate.d.ts +3 -0
  77. package/dist/commands/migrate.d.ts.map +1 -0
  78. package/dist/commands/migrate.js +270 -0
  79. package/dist/commands/migrate.js.map +1 -0
  80. package/dist/commands/plugin.d.ts.map +1 -0
  81. package/dist/{cli/commands → commands}/plugin.js +2 -2
  82. package/dist/commands/plugin.js.map +1 -0
  83. package/dist/commands/policy-verify.d.ts +46 -0
  84. package/dist/commands/policy-verify.d.ts.map +1 -0
  85. package/dist/commands/policy-verify.js +173 -0
  86. package/dist/commands/policy-verify.js.map +1 -0
  87. package/dist/commands/policy.d.ts +27 -0
  88. package/dist/commands/policy.d.ts.map +1 -0
  89. package/dist/commands/policy.js +590 -0
  90. package/dist/commands/policy.js.map +1 -0
  91. package/dist/{cli/commands → commands}/replay.d.ts +2 -1
  92. package/dist/commands/replay.d.ts.map +1 -0
  93. package/dist/{cli/commands → commands}/replay.js +78 -12
  94. package/dist/commands/replay.js.map +1 -0
  95. package/dist/commands/session-viewer.d.ts +5 -0
  96. package/dist/commands/session-viewer.d.ts.map +1 -0
  97. package/dist/commands/session-viewer.js +462 -0
  98. package/dist/commands/session-viewer.js.map +1 -0
  99. package/dist/commands/simulate.d.ts +7 -0
  100. package/dist/commands/simulate.d.ts.map +1 -0
  101. package/dist/commands/simulate.js +505 -0
  102. package/dist/commands/simulate.js.map +1 -0
  103. package/dist/commands/status.d.ts +2 -0
  104. package/dist/commands/status.d.ts.map +1 -0
  105. package/dist/commands/status.js +212 -0
  106. package/dist/commands/status.js.map +1 -0
  107. package/dist/commands/traces.d.ts +24 -0
  108. package/dist/commands/traces.d.ts.map +1 -0
  109. package/dist/commands/traces.js +282 -0
  110. package/dist/commands/traces.js.map +1 -0
  111. package/dist/commands/trust.d.ts +6 -0
  112. package/dist/commands/trust.d.ts.map +1 -0
  113. package/dist/commands/trust.js +129 -0
  114. package/dist/commands/trust.js.map +1 -0
  115. package/dist/evidence-summary.d.ts +35 -0
  116. package/dist/evidence-summary.d.ts.map +1 -0
  117. package/dist/evidence-summary.js +202 -0
  118. package/dist/evidence-summary.js.map +1 -0
  119. package/dist/{cli/file-event-store.d.ts → file-event-store.d.ts} +1 -1
  120. package/dist/file-event-store.d.ts.map +1 -0
  121. package/dist/{cli/file-event-store.js → file-event-store.js} +1 -1
  122. package/dist/file-event-store.js.map +1 -0
  123. package/{hooks → dist/hooks}/post-commit +3 -1
  124. package/{hooks → dist/hooks}/post-merge +3 -1
  125. package/dist/hooks/pre-commit +29 -0
  126. package/dist/policy-resolver.d.ts +32 -0
  127. package/dist/policy-resolver.d.ts.map +1 -0
  128. package/dist/policy-resolver.js +171 -0
  129. package/dist/policy-resolver.js.map +1 -0
  130. package/dist/{cli/recorder.d.ts → recorder.d.ts} +1 -1
  131. package/dist/recorder.d.ts.map +1 -0
  132. package/dist/{cli/recorder.js → recorder.js} +1 -1
  133. package/dist/recorder.js.map +1 -0
  134. package/dist/replay-timeline-html.d.ts +21 -0
  135. package/dist/replay-timeline-html.d.ts.map +1 -0
  136. package/dist/replay-timeline-html.js +414 -0
  137. package/dist/replay-timeline-html.js.map +1 -0
  138. package/dist/replay.d.ts.map +1 -0
  139. package/dist/{cli/replay.js → replay.js} +92 -1
  140. package/dist/replay.js.map +1 -0
  141. package/dist/{cli/session-store.d.ts → session-store.d.ts} +5 -0
  142. package/dist/session-store.d.ts.map +1 -0
  143. package/dist/{cli/session-store.js → session-store.js} +1 -0
  144. package/dist/session-store.js.map +1 -0
  145. package/dist/session-viewer-html.d.ts +10 -0
  146. package/dist/session-viewer-html.d.ts.map +1 -0
  147. package/dist/session-viewer-html.js +737 -0
  148. package/dist/session-viewer-html.js.map +1 -0
  149. package/dist/templates/ci-only.yaml +103 -0
  150. package/dist/templates/development.yaml +107 -0
  151. package/dist/templates/permissive.yaml +87 -0
  152. package/dist/templates/strict.yaml +112 -0
  153. package/dist/tui.d.ts +3 -0
  154. package/dist/tui.d.ts.map +1 -0
  155. package/dist/tui.js +2 -0
  156. package/dist/tui.js.map +1 -0
  157. package/package.json +42 -53
  158. package/dist/adapters/claude-code.d.ts +0 -24
  159. package/dist/adapters/claude-code.d.ts.map +0 -1
  160. package/dist/adapters/claude-code.js +0 -99
  161. package/dist/adapters/claude-code.js.map +0 -1
  162. package/dist/adapters/file.d.ts +0 -3
  163. package/dist/adapters/file.d.ts.map +0 -1
  164. package/dist/adapters/file.js +0 -35
  165. package/dist/adapters/file.js.map +0 -1
  166. package/dist/adapters/git.d.ts +0 -3
  167. package/dist/adapters/git.d.ts.map +0 -1
  168. package/dist/adapters/git.js +0 -61
  169. package/dist/adapters/git.js.map +0 -1
  170. package/dist/adapters/registry.d.ts +0 -5
  171. package/dist/adapters/registry.d.ts.map +0 -1
  172. package/dist/adapters/registry.js +0 -15
  173. package/dist/adapters/registry.js.map +0 -1
  174. package/dist/adapters/shell.d.ts +0 -8
  175. package/dist/adapters/shell.d.ts.map +0 -1
  176. package/dist/adapters/shell.js +0 -27
  177. package/dist/adapters/shell.js.map +0 -1
  178. package/dist/cli/args.d.ts.map +0 -1
  179. package/dist/cli/args.js.map +0 -1
  180. package/dist/cli/bin.d.ts.map +0 -1
  181. package/dist/cli/bin.js +0 -5769
  182. package/dist/cli/bin.js.map +0 -7
  183. package/dist/cli/colors.d.ts.map +0 -1
  184. package/dist/cli/colors.js.map +0 -1
  185. package/dist/cli/commands/claude-hook.d.ts +0 -2
  186. package/dist/cli/commands/claude-hook.d.ts.map +0 -1
  187. package/dist/cli/commands/claude-hook.js +0 -110
  188. package/dist/cli/commands/claude-hook.js.map +0 -1
  189. package/dist/cli/commands/claude-init.d.ts.map +0 -1
  190. package/dist/cli/commands/claude-init.js +0 -150
  191. package/dist/cli/commands/claude-init.js.map +0 -1
  192. package/dist/cli/commands/export.d.ts +0 -11
  193. package/dist/cli/commands/export.d.ts.map +0 -1
  194. package/dist/cli/commands/export.js +0 -113
  195. package/dist/cli/commands/export.js.map +0 -1
  196. package/dist/cli/commands/guard.d.ts +0 -12
  197. package/dist/cli/commands/guard.d.ts.map +0 -1
  198. package/dist/cli/commands/guard.js +0 -145
  199. package/dist/cli/commands/guard.js.map +0 -1
  200. package/dist/cli/commands/import.d.ts +0 -2
  201. package/dist/cli/commands/import.d.ts.map +0 -1
  202. package/dist/cli/commands/import.js.map +0 -1
  203. package/dist/cli/commands/inspect.d.ts +0 -3
  204. package/dist/cli/commands/inspect.d.ts.map +0 -1
  205. package/dist/cli/commands/inspect.js.map +0 -1
  206. package/dist/cli/commands/plugin.d.ts.map +0 -1
  207. package/dist/cli/commands/plugin.js.map +0 -1
  208. package/dist/cli/commands/replay.d.ts.map +0 -1
  209. package/dist/cli/commands/replay.js.map +0 -1
  210. package/dist/cli/file-event-store.d.ts.map +0 -1
  211. package/dist/cli/file-event-store.js.map +0 -1
  212. package/dist/cli/policy-resolver.d.ts +0 -4
  213. package/dist/cli/policy-resolver.d.ts.map +0 -1
  214. package/dist/cli/policy-resolver.js +0 -62
  215. package/dist/cli/policy-resolver.js.map +0 -1
  216. package/dist/cli/recorder.d.ts.map +0 -1
  217. package/dist/cli/recorder.js.map +0 -1
  218. package/dist/cli/replay.d.ts.map +0 -1
  219. package/dist/cli/replay.js.map +0 -1
  220. package/dist/cli/session-store.d.ts.map +0 -1
  221. package/dist/cli/session-store.js.map +0 -1
  222. package/dist/cli/tui.d.ts +0 -24
  223. package/dist/cli/tui.d.ts.map +0 -1
  224. package/dist/cli/tui.js +0 -197
  225. package/dist/cli/tui.js.map +0 -1
  226. package/dist/core/actions.d.ts +0 -11
  227. package/dist/core/actions.d.ts.map +0 -1
  228. package/dist/core/actions.js +0 -112
  229. package/dist/core/actions.js.map +0 -1
  230. package/dist/core/adapters.d.ts +0 -19
  231. package/dist/core/adapters.d.ts.map +0 -1
  232. package/dist/core/adapters.js +0 -85
  233. package/dist/core/adapters.js.map +0 -1
  234. package/dist/core/execution-log/bridge.d.ts +0 -12
  235. package/dist/core/execution-log/bridge.d.ts.map +0 -1
  236. package/dist/core/execution-log/bridge.js +0 -112
  237. package/dist/core/execution-log/bridge.js.map +0 -1
  238. package/dist/core/execution-log/event-log.d.ts +0 -7
  239. package/dist/core/execution-log/event-log.d.ts.map +0 -1
  240. package/dist/core/execution-log/event-log.js +0 -103
  241. package/dist/core/execution-log/event-log.js.map +0 -1
  242. package/dist/core/execution-log/event-projections.d.ts +0 -28
  243. package/dist/core/execution-log/event-projections.d.ts.map +0 -1
  244. package/dist/core/execution-log/event-projections.js +0 -272
  245. package/dist/core/execution-log/event-projections.js.map +0 -1
  246. package/dist/core/execution-log/event-schema.d.ts +0 -56
  247. package/dist/core/execution-log/event-schema.d.ts.map +0 -1
  248. package/dist/core/execution-log/event-schema.js +0 -160
  249. package/dist/core/execution-log/event-schema.js.map +0 -1
  250. package/dist/core/execution-log/index.d.ts +0 -7
  251. package/dist/core/execution-log/index.d.ts.map +0 -1
  252. package/dist/core/execution-log/index.js +0 -13
  253. package/dist/core/execution-log/index.js.map +0 -1
  254. package/dist/core/hash.d.ts +0 -5
  255. package/dist/core/hash.d.ts.map +0 -1
  256. package/dist/core/hash.js +0 -13
  257. package/dist/core/hash.js.map +0 -1
  258. package/dist/core/rng.d.ts +0 -29
  259. package/dist/core/rng.d.ts.map +0 -1
  260. package/dist/core/rng.js +0 -48
  261. package/dist/core/rng.js.map +0 -1
  262. package/dist/core/types.d.ts +0 -746
  263. package/dist/core/types.d.ts.map +0 -1
  264. package/dist/core/types.js +0 -8
  265. package/dist/core/types.js.map +0 -1
  266. package/dist/events/bus.d.ts +0 -24
  267. package/dist/events/bus.d.ts.map +0 -1
  268. package/dist/events/bus.js +0 -64
  269. package/dist/events/bus.js.map +0 -1
  270. package/dist/events/decision-jsonl.d.ts +0 -8
  271. package/dist/events/decision-jsonl.d.ts.map +0 -1
  272. package/dist/events/decision-jsonl.js +0 -44
  273. package/dist/events/decision-jsonl.js.map +0 -1
  274. package/dist/events/jsonl.d.ts +0 -8
  275. package/dist/events/jsonl.d.ts.map +0 -1
  276. package/dist/events/jsonl.js +0 -46
  277. package/dist/events/jsonl.js.map +0 -1
  278. package/dist/events/schema.d.ts +0 -59
  279. package/dist/events/schema.d.ts.map +0 -1
  280. package/dist/events/schema.js +0 -296
  281. package/dist/events/schema.js.map +0 -1
  282. package/dist/events/store.d.ts +0 -7
  283. package/dist/events/store.d.ts.map +0 -1
  284. package/dist/events/store.js +0 -64
  285. package/dist/events/store.js.map +0 -1
  286. package/dist/invariants/checker.d.ts +0 -15
  287. package/dist/invariants/checker.d.ts.map +0 -1
  288. package/dist/invariants/checker.js +0 -52
  289. package/dist/invariants/checker.js.map +0 -1
  290. package/dist/invariants/definitions.d.ts +0 -33
  291. package/dist/invariants/definitions.d.ts.map +0 -1
  292. package/dist/invariants/definitions.js +0 -168
  293. package/dist/invariants/definitions.js.map +0 -1
  294. package/dist/kernel/aab.d.ts +0 -26
  295. package/dist/kernel/aab.d.ts.map +0 -1
  296. package/dist/kernel/aab.js +0 -149
  297. package/dist/kernel/aab.js.map +0 -1
  298. package/dist/kernel/blast-radius.d.ts +0 -60
  299. package/dist/kernel/blast-radius.d.ts.map +0 -1
  300. package/dist/kernel/blast-radius.js +0 -146
  301. package/dist/kernel/blast-radius.js.map +0 -1
  302. package/dist/kernel/decision.d.ts +0 -40
  303. package/dist/kernel/decision.d.ts.map +0 -1
  304. package/dist/kernel/decision.js +0 -92
  305. package/dist/kernel/decision.js.map +0 -1
  306. package/dist/kernel/decisions/factory.d.ts +0 -12
  307. package/dist/kernel/decisions/factory.d.ts.map +0 -1
  308. package/dist/kernel/decisions/factory.js +0 -56
  309. package/dist/kernel/decisions/factory.js.map +0 -1
  310. package/dist/kernel/decisions/types.d.ts +0 -70
  311. package/dist/kernel/decisions/types.d.ts.map +0 -1
  312. package/dist/kernel/decisions/types.js +0 -5
  313. package/dist/kernel/decisions/types.js.map +0 -1
  314. package/dist/kernel/evidence.d.ts +0 -29
  315. package/dist/kernel/evidence.d.ts.map +0 -1
  316. package/dist/kernel/evidence.js +0 -61
  317. package/dist/kernel/evidence.js.map +0 -1
  318. package/dist/kernel/kernel.d.ts +0 -47
  319. package/dist/kernel/kernel.d.ts.map +0 -1
  320. package/dist/kernel/kernel.js +0 -377
  321. package/dist/kernel/kernel.js.map +0 -1
  322. package/dist/kernel/monitor.d.ts +0 -35
  323. package/dist/kernel/monitor.d.ts.map +0 -1
  324. package/dist/kernel/monitor.js +0 -144
  325. package/dist/kernel/monitor.js.map +0 -1
  326. package/dist/kernel/replay-comparator.d.ts +0 -72
  327. package/dist/kernel/replay-comparator.d.ts.map +0 -1
  328. package/dist/kernel/replay-comparator.js +0 -251
  329. package/dist/kernel/replay-comparator.js.map +0 -1
  330. package/dist/kernel/replay-engine.d.ts +0 -108
  331. package/dist/kernel/replay-engine.d.ts.map +0 -1
  332. package/dist/kernel/replay-engine.js +0 -241
  333. package/dist/kernel/replay-engine.js.map +0 -1
  334. package/dist/kernel/replay-processor.d.ts +0 -109
  335. package/dist/kernel/replay-processor.d.ts.map +0 -1
  336. package/dist/kernel/replay-processor.js +0 -118
  337. package/dist/kernel/replay-processor.js.map +0 -1
  338. package/dist/kernel/simulation/filesystem-simulator.d.ts +0 -3
  339. package/dist/kernel/simulation/filesystem-simulator.d.ts.map +0 -1
  340. package/dist/kernel/simulation/filesystem-simulator.js +0 -81
  341. package/dist/kernel/simulation/filesystem-simulator.js.map +0 -1
  342. package/dist/kernel/simulation/git-simulator.d.ts +0 -5
  343. package/dist/kernel/simulation/git-simulator.d.ts.map +0 -1
  344. package/dist/kernel/simulation/git-simulator.js +0 -115
  345. package/dist/kernel/simulation/git-simulator.js.map +0 -1
  346. package/dist/kernel/simulation/package-simulator.d.ts +0 -5
  347. package/dist/kernel/simulation/package-simulator.d.ts.map +0 -1
  348. package/dist/kernel/simulation/package-simulator.js +0 -164
  349. package/dist/kernel/simulation/package-simulator.js.map +0 -1
  350. package/dist/kernel/simulation/registry.d.ts +0 -3
  351. package/dist/kernel/simulation/registry.d.ts.map +0 -1
  352. package/dist/kernel/simulation/registry.js +0 -24
  353. package/dist/kernel/simulation/registry.js.map +0 -1
  354. package/dist/kernel/simulation/types.d.ts +0 -35
  355. package/dist/kernel/simulation/types.d.ts.map +0 -1
  356. package/dist/kernel/simulation/types.js +0 -4
  357. package/dist/kernel/simulation/types.js.map +0 -1
  358. package/dist/plugins/discovery.d.ts +0 -45
  359. package/dist/plugins/discovery.d.ts.map +0 -1
  360. package/dist/plugins/discovery.js +0 -89
  361. package/dist/plugins/discovery.js.map +0 -1
  362. package/dist/plugins/index.d.ts +0 -10
  363. package/dist/plugins/index.d.ts.map +0 -1
  364. package/dist/plugins/index.js +0 -7
  365. package/dist/plugins/index.js.map +0 -1
  366. package/dist/plugins/registry.d.ts +0 -52
  367. package/dist/plugins/registry.d.ts.map +0 -1
  368. package/dist/plugins/registry.js +0 -148
  369. package/dist/plugins/registry.js.map +0 -1
  370. package/dist/plugins/sandbox.d.ts +0 -87
  371. package/dist/plugins/sandbox.d.ts.map +0 -1
  372. package/dist/plugins/sandbox.js +0 -122
  373. package/dist/plugins/sandbox.js.map +0 -1
  374. package/dist/plugins/types.d.ts +0 -61
  375. package/dist/plugins/types.d.ts.map +0 -1
  376. package/dist/plugins/types.js +0 -16
  377. package/dist/plugins/types.js.map +0 -1
  378. package/dist/plugins/validator.d.ts +0 -36
  379. package/dist/plugins/validator.d.ts.map +0 -1
  380. package/dist/plugins/validator.js +0 -276
  381. package/dist/plugins/validator.js.map +0 -1
  382. package/dist/policy/evaluator.d.ts +0 -41
  383. package/dist/policy/evaluator.d.ts.map +0 -1
  384. package/dist/policy/evaluator.js +0 -111
  385. package/dist/policy/evaluator.js.map +0 -1
  386. package/dist/policy/loader.d.ts +0 -13
  387. package/dist/policy/loader.d.ts.map +0 -1
  388. package/dist/policy/loader.js +0 -118
  389. package/dist/policy/loader.js.map +0 -1
  390. package/dist/policy/pack-loader.d.ts +0 -40
  391. package/dist/policy/pack-loader.d.ts.map +0 -1
  392. package/dist/policy/pack-loader.js +0 -138
  393. package/dist/policy/pack-loader.js.map +0 -1
  394. package/dist/policy/yaml-loader.d.ts +0 -23
  395. package/dist/policy/yaml-loader.d.ts.map +0 -1
  396. package/dist/policy/yaml-loader.js +0 -222
  397. package/dist/policy/yaml-loader.js.map +0 -1
  398. package/dist/renderers/index.d.ts +0 -6
  399. package/dist/renderers/index.d.ts.map +0 -1
  400. package/dist/renderers/index.js +0 -4
  401. package/dist/renderers/index.js.map +0 -1
  402. package/dist/renderers/registry.d.ts +0 -39
  403. package/dist/renderers/registry.d.ts.map +0 -1
  404. package/dist/renderers/registry.js +0 -97
  405. package/dist/renderers/registry.js.map +0 -1
  406. package/dist/renderers/tui-renderer.d.ts +0 -18
  407. package/dist/renderers/tui-renderer.d.ts.map +0 -1
  408. package/dist/renderers/tui-renderer.js +0 -57
  409. package/dist/renderers/tui-renderer.js.map +0 -1
  410. package/dist/renderers/types.d.ts +0 -52
  411. package/dist/renderers/types.d.ts.map +0 -1
  412. package/dist/renderers/types.js +0 -4
  413. package/dist/renderers/types.js.map +0 -1
  414. package/dist/telemetry/index.d.ts +0 -3
  415. package/dist/telemetry/index.d.ts.map +0 -1
  416. package/dist/telemetry/index.js +0 -2
  417. package/dist/telemetry/index.js.map +0 -1
  418. package/dist/telemetry/runtimeLogger.d.ts +0 -9
  419. package/dist/telemetry/runtimeLogger.d.ts.map +0 -1
  420. package/dist/telemetry/runtimeLogger.js +0 -68
  421. package/dist/telemetry/runtimeLogger.js.map +0 -1
  422. package/dist/telemetry/types.d.ts +0 -22
  423. package/dist/telemetry/types.d.ts.map +0 -1
  424. package/dist/telemetry/types.js +0 -4
  425. package/dist/telemetry/types.js.map +0 -1
  426. package/hooks/pre-commit +0 -28
  427. /package/dist/{cli/args.d.ts → args.d.ts} +0 -0
  428. /package/dist/{cli/args.js → args.js} +0 -0
  429. /package/dist/{cli/bin.d.ts → bin.d.ts} +0 -0
  430. /package/dist/{cli/colors.d.ts → colors.d.ts} +0 -0
  431. /package/dist/{cli/colors.js → colors.js} +0 -0
  432. /package/dist/{cli/commands → commands}/claude-init.d.ts +0 -0
  433. /package/dist/{cli/commands → commands}/plugin.d.ts +0 -0
  434. /package/dist/{cli/replay.d.ts → replay.d.ts} +0 -0
package/README.md CHANGED
@@ -1,298 +1,179 @@
1
- # AgentGuard
2
-
3
- **Governed action runtime for AI coding agents.**
4
-
5
- [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
6
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
7
- [![npm](https://img.shields.io/npm/v/@red-codes/agentguard.svg)](https://www.npmjs.com/package/@red-codes/agentguard)
8
-
9
- ---
10
-
11
- AgentGuard intercepts AI agent tool calls, enforces policies and invariants, and produces a verifiable execution trail. Traditional AI safety focuses on model behavior — AgentGuard enforces safety at the execution layer through deterministic governance of every action.
12
-
13
- ```
14
- agent proposes action → policy evaluated → invariants checked → allow/deny → execute → events emitted
15
- ```
16
-
17
- ## Quick Start
18
-
19
- **30 seconds to see it work:**
20
-
21
- ```bash
22
- git clone https://github.com/jpleva91/agent-guard.git
23
- cd agent-guard
24
- npm install && npm run build:ts
25
- npm run demo:guard
26
- ```
27
-
28
- Expected output:
29
-
30
- ```
31
- AgentGuard Runtime Active
32
- policy: Demo Safety Policy | invariants: 8 active
33
-
34
- file.read src/auth/service.ts (dry-run)
35
- ✓ file.write src/auth/service.ts (dry-run)
36
- shell.exec npm test (dry-run)
37
- git.push main → DENIED (demo-policy)
38
- Protected branch — use a PR
39
- file.write .env DENIED (demo-policy)
40
- Secrets files must not be modified
41
-
42
- 3 allowed, 2 denied, 15 events emitted
43
- ```
44
-
45
- **Try it on your own repo:**
46
-
47
- ```bash
48
- # Pipe an action into the kernel
49
- echo '{"tool":"Bash","command":"git push origin main"}' | npx @red-codes/agentguard guard --dry-run
50
-
51
- # Start the runtime with a policy file
52
- npx @red-codes/agentguard guard --policy agentguard.yaml
53
-
54
- # Inspect the last run
55
- npx @red-codes/agentguard inspect --last
56
- ```
57
-
58
- ## Why AgentGuard Exists
59
-
60
- AI coding agents execute file writes, shell commands, and git operations autonomously — but there's no governance layer between what an agent proposes and what actually runs. One bad tool call can push to main, leak secrets, or delete production files.
61
-
62
- AgentGuard adds a **deterministic decision point** between proposal and execution:
63
-
64
- - **Safety policies** declare what agents can and cannot do in YAML
65
- - **Invariant enforcement** 8 built-in checks (secrets, protected branches, blast radius, skill/task protection) run on every action
66
- - **Audit trail** every decision is recorded as structured JSONL, inspectable after the fact
67
- - **Session debugging** — replay any agent session to see exactly what happened and why
68
-
69
- ## How It Works
70
-
71
- AgentGuard evaluates every agent action through a **governed action kernel**:
72
-
73
- 1. **Normalize** — Claude Code tool calls (Bash, Write, Edit, Read) are mapped to canonical action types (shell.exec, file.write, file.read)
74
- 2. **Evaluate** — policies match against the action (deny git.push to main, deny destructive commands, enforce scope limits)
75
- 3. **Check invariants** — 8 built-in safety checks run on every action
76
- 4. **Execute** — if allowed, the action runs via adapters (file, shell, git handlers)
77
- 5. **Emit events** — full lifecycle events sunk to JSONL for audit trail
78
-
79
- ### Example Output
80
-
81
- ```
82
- AgentGuard Runtime Active
83
- policy: agentguard.yaml | invariants: 8 active
84
-
85
- ✓ file.write src/auth/service.ts
86
- shell.exec npm test
87
- ✗ git.push main → DENIED (protect-main)
88
- invariant violated: protected-branch
89
- ```
90
-
91
- ## Policy Format
92
-
93
- Policies are YAML or JSON files that declare what agents can and cannot do:
94
-
95
- ```yaml
96
- id: project-policy
97
- name: Project Policy
98
- severity: 4
99
- rules:
100
- - action: git.push
101
- effect: deny
102
- branches: [main, master]
103
- reason: Protected branch
104
-
105
- - action: git.force-push
106
- effect: deny
107
- reason: Force push not allowed
108
-
109
- - action: file.write
110
- effect: deny
111
- target: .env
112
- reason: No secrets modification
113
-
114
- - action: file.read
115
- effect: allow
116
- reason: Reading is always safe
117
- ```
118
-
119
- Drop an `agentguard.yaml` in your repo root — the CLI picks it up automatically.
120
-
121
- ## Built-in Invariants
122
-
123
- 8 safety invariants run on every action evaluation:
124
-
125
- | Invariant | Severity | Description |
126
- |-----------|----------|-------------|
127
- | **no-secret-exposure** | 5 (critical) | Blocks access to .env, credentials, .pem, .key files |
128
- | **protected-branch** | 4 (high) | Prevents direct push to main/master |
129
- | **no-force-push** | 4 (high) | Forbids force push |
130
- | **no-skill-modification** | 4 (high) | Prevents modification of .claude/skills/ files |
131
- | **no-scheduled-task-modification** | 4 (high) | Prevents modification of scheduled task files |
132
- | **blast-radius-limit** | 3 (medium) | Enforces file modification limit (default 20) |
133
- | **test-before-push** | 3 (medium) | Requires tests pass before push |
134
- | **lockfile-integrity** | 2 (low) | Ensures package.json changes sync with lockfiles |
135
-
136
- ## Escalation
137
-
138
- AgentGuard tracks repeated denials and invariant violations. If an agent repeatedly attempts blocked actions, the runtime escalates to lockdown — all actions denied until a human intervenes. See [escalation state machine](docs/unified-architecture.md) for the full detail.
139
-
140
- ## CLI
141
-
142
- ```bash
143
- # === Governance ===
144
- agentguard guard # Start governed action runtime
145
- agentguard guard --policy <file> # Use a specific policy file (YAML/JSON)
146
- agentguard guard --dry-run # Evaluate without executing actions
147
- agentguard inspect [runId] # Show action graph and decisions for a run
148
- agentguard inspect --last # Inspect most recent run
149
- agentguard events [runId] # Show raw event stream for a run
150
-
151
- # === Portability ===
152
- agentguard export <runId> # Export a governance session to JSONL
153
- agentguard export --last # Export the most recent run
154
- agentguard import <file> # Import a governance session from JSONL
155
-
156
- # === Replay ===
157
- agentguard replay --last # Replay a governance session timeline
158
- agentguard replay --last --step # Step through events interactively
159
-
160
- # === Plugins ===
161
- agentguard plugin list # List installed plugins
162
- agentguard plugin install <path> # Install a plugin from a local path
163
- agentguard plugin remove <id> # Remove a plugin by ID
164
- agentguard plugin search [query] # Search for plugins on npm
165
-
166
- # === Integration ===
167
- agentguard claude-init # Set up Claude Code hook integration
168
- agentguard help # Show all commands
169
- ```
170
-
171
- Install globally: `npm i -g @red-codes/agentguard`
172
-
173
- ## Claude Code Integration
174
-
175
- AgentGuard hooks into [Claude Code](https://docs.anthropic.com/en/docs/claude-code) sessions via PreToolUse/PostToolUse hooks. Every tool call is normalized into a canonical action and evaluated by the kernel.
176
-
177
- ```bash
178
- npx @red-codes/agentguard claude-init # Set up Claude Code hooks
179
- ```
180
-
181
- Tool call mapping:
182
-
183
- | Claude Code Tool | AgentGuard Action |
184
- |-----------------|-------------------|
185
- | Write | file.write |
186
- | Edit | file.write |
187
- | Read | file.read |
188
- | Bash | shell.exec (or git.push, git.commit if git command detected) |
189
- | Glob | file.read |
190
- | Grep | file.read |
191
-
192
- ## Event Trail
193
-
194
- Every action proposal, decision, and execution is recorded as JSONL:
195
-
196
- ```
197
- .agentguard/events/<runId>.jsonl
198
- ```
199
-
200
- Inspect with:
201
-
202
- ```bash
203
- agentguard inspect --last # Action summary + event stream
204
- agentguard events --last # Raw JSONL to stdout (pipe to jq, etc.)
205
- ```
206
-
207
- ## Architecture
208
-
209
- ```
210
- Agent Tool Call → AgentGuard Kernel → Policy + Invariants → allow / deny
211
-
212
- ┌────────────────────────┤
213
- ▼ ▼
214
- Execution Adapter Event Stream
215
- (file, shell, git) (JSONL audit trail)
216
- ```
217
-
218
- Full kernel loop detail: [docs/unified-architecture.md](docs/unified-architecture.md)
219
-
220
- ### Repository Structure
221
-
222
- ```
223
- src/
224
- ├── kernel/ # Governed action kernel
225
- │ ├── kernel.ts # Orchestrator (propose → evaluate → execute → emit)
226
- │ ├── aab.ts # Action Authorization Boundary (normalization)
227
- │ ├── blast-radius.ts # Weighted blast radius computation engine
228
- │ ├── decision.ts # Runtime assurance engine
229
- │ ├── monitor.ts # Escalation state machine
230
- │ ├── evidence.ts # Evidence pack generation
231
- │ ├── replay-comparator.ts # Replay outcome comparison
232
- │ ├── replay-engine.ts # Deterministic replay engine
233
- │ ├── replay-processor.ts # Replay event processor
234
- │ ├── decisions/ # Typed decision records
235
- │ └── simulation/ # Pre-execution impact simulation
236
- ├── events/ # Canonical event model
237
- │ ├── schema.ts # Event kinds, factory, validation
238
- │ ├── bus.ts # Generic typed EventBus
239
- │ ├── store.ts # In-memory event store
240
- │ ├── jsonl.ts # JSONL event persistence (audit trail)
241
- │ └── decision-jsonl.ts # Decision record persistence
242
- ├── policy/ # Policy system
243
- │ ├── evaluator.ts # Rule matching engine
244
- │ ├── loader.ts # Policy validation + loading
245
- │ ├── pack-loader.ts # Policy pack loader (community policy sets)
246
- │ └── yaml-loader.ts # YAML policy parser
247
- ├── invariants/ # Invariant system
248
- │ ├── definitions.ts # 8 built-in invariants
249
- │ └── checker.ts # Invariant evaluation engine
250
- ├── adapters/ # Execution adapters
251
- │ ├── file.ts, shell.ts, git.ts # Action handlers
252
- │ ├── claude-code.ts # Claude Code hook adapter
253
- │ └── registry.ts # Adapter registry
254
- ├── plugins/ # Plugin ecosystem
255
- │ ├── discovery.ts # Plugin discovery mechanism
256
- │ ├── registry.ts # Plugin registry
257
- │ ├── sandbox.ts # Plugin sandboxing
258
- │ ├── validator.ts # Plugin validation
259
- │ ├── types.ts # Plugin type definitions
260
- │ └── index.ts # Module re-exports
261
- ├── renderers/ # Renderer plugin system
262
- │ ├── registry.ts # Renderer registry
263
- │ ├── tui-renderer.ts # TUI renderer implementation
264
- │ ├── types.ts # Renderer type definitions
265
- │ └── index.ts # Module re-exports
266
- ├── cli/ # CLI entry point + commands
267
- │ ├── bin.ts # Main entry
268
- │ └── commands/ # guard, inspect, replay, export, import, plugin, claude-hook, claude-init
269
- ├── telemetry/ # Runtime telemetry and logging
270
- └── core/ # Shared utilities (types, actions, hash, rng, execution-log)
271
- ```
272
-
273
- ## Run Locally
274
-
275
- ```bash
276
- git clone https://github.com/jpleva91/agent-guard.git
277
- cd agent-guard
278
- npm install
279
- npm run build:ts # Compile TypeScript → dist/
280
- npm run ts:test # Run TypeScript tests (vitest)
281
- npm test # Run JavaScript tests
282
- ```
283
-
284
- ## Documentation
285
-
286
- | Document | Description |
287
- |----------|-------------|
288
- | [AgentGuard Spec](docs/agentguard.md) | Governance runtime specification |
289
- | [Architecture](docs/unified-architecture.md) | Governed action kernel model |
290
- | [Priorities](docs/current-priorities.md) | Current roadmap and next steps |
291
- | [Product Positioning](docs/product-positioning.md) | What this is and isn't |
292
- | [Event Model](docs/event-model.md) | Canonical event schema |
293
- | [Plugin API](docs/plugin-api.md) | Event sources and extension points |
294
- | [Contributing](CONTRIBUTING.md) | How to contribute |
295
-
296
- ## License
297
-
298
- [Apache 2.0](LICENSE)
1
+ # @red-codes/agentguard
2
+
3
+ **Runtime governance for AI coding agents.** Intercepts tool calls, enforces policies and invariants, and produces a verifiable execution trail.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@red-codes/agentguard.svg)](https://www.npmjs.com/package/@red-codes/agentguard)
6
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/AgentGuardHQ/agentguard/blob/main/LICENSE)
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install -g @red-codes/agentguard
12
+ ```
13
+
14
+ ## What It Does
15
+
16
+ AgentGuard adds a deterministic decision layer between what an AI agent proposes and what actually runs. Every tool call passes through a governed action kernel:
17
+
18
+ ```
19
+ agent proposes action → policy evaluated → invariants checked → allow/deny → events emitted
20
+ ```
21
+
22
+ - **20 built-in invariants** — secret exposure, protected branches, blast radius, CI/CD config modification, permission escalation, and more
23
+ - **YAML policy format** — declare what agents can and can't do
24
+ - **Full audit trail** every decision recorded to SQLite
25
+ - **Claude Code integration** — hooks fire on every tool call, zero config
26
+
27
+ ## Quick Start
28
+
29
+ ```bash
30
+ # Set up Claude Code hooks (one-time)
31
+ agentguard claude-init
32
+
33
+ # Check governance status
34
+ agentguard status
35
+
36
+ # Validate a policy file
37
+ agentguard policy validate agentguard.yaml
38
+
39
+ # Evaluate an action against policy (dry-run)
40
+ echo '{"tool":"Bash","command":"git push origin main"}' | agentguard guard --dry-run
41
+
42
+ # Inspect the most recent governance session
43
+ agentguard inspect --last
44
+ ```
45
+
46
+ ## Claude Code Integration
47
+
48
+ AgentGuard integrates via inline hooks no daemon, no ports, no IPC:
49
+
50
+ ```bash
51
+ agentguard claude-init # Installs PreToolUse + PostToolUse + SessionStart hooks
52
+ ```
53
+
54
+ | Hook | Purpose |
55
+ |------|---------|
56
+ | **PreToolUse** | Evaluates every tool call against policies and invariants before execution |
57
+ | **PostToolUse** | Reports Bash stderr errors (informational) |
58
+ | **SessionStart** | Ensures build is ready, shows governance status |
59
+
60
+ Tool call mapping:
61
+
62
+ | Claude Code Tool | AgentGuard Action |
63
+ |-----------------|-------------------|
64
+ | Write / Edit | file.write |
65
+ | Read / Glob / Grep | file.read |
66
+ | Bash | shell.exec (or git.push, git.commit if git command detected) |
67
+
68
+ ## Policy Format
69
+
70
+ ```yaml
71
+ id: project-policy
72
+ name: Project Policy
73
+ severity: 4
74
+ rules:
75
+ - action: git.push
76
+ effect: deny
77
+ branches: [main, master]
78
+ reason: Protected branch
79
+
80
+ - action: file.write
81
+ effect: deny
82
+ target: .env
83
+ reason: No secrets modification
84
+ ```
85
+
86
+ Drop an `agentguard.yaml` in your repo root — the CLI picks it up automatically.
87
+
88
+ ## Built-in Invariants
89
+
90
+ 20 safety invariants run on every action:
91
+
92
+ | Invariant | Severity | What it does |
93
+ |-----------|----------|-------------|
94
+ | no-secret-exposure | Critical | Blocks .env, .pem, .key, credentials files |
95
+ | no-credential-file-creation | Critical | Blocks SSH keys, cloud configs, auth tokens |
96
+ | no-cicd-config-modification | Critical | Protects CI/CD pipeline configs |
97
+ | no-governance-self-modification | Critical | Prevents agents from modifying governance |
98
+ | protected-branch | High | Prevents push to main/master |
99
+ | no-force-push | High | Forbids force push |
100
+ | no-package-script-injection | High | Blocks lifecycle script tampering |
101
+ | no-permission-escalation | High | Catches chmod world-writable, setuid |
102
+ | no-network-egress | High | Denies HTTP to non-allowlisted domains |
103
+ | transitive-effect-analysis | High | Analyzes written files for downstream effects |
104
+ | blast-radius-limit | Medium | Enforces file modification limit |
105
+ | test-before-push | Medium | Requires tests pass before push |
106
+ | large-file-write | Medium | Per-file size limit |
107
+ | ...and 7 more | Low-Medium | Container config, env vars, migrations, lockfiles, recursive ops |
108
+
109
+ ## CLI Commands
110
+
111
+ ```bash
112
+ # Governance
113
+ agentguard guard [--policy <file>] [--dry-run] # Start governed runtime
114
+ agentguard inspect [--last] # Inspect action graph
115
+ agentguard events [--last] # Raw event stream
116
+ agentguard analytics # Violation patterns
117
+ agentguard traces [--last] # Policy evaluation traces
118
+
119
+ # Policy
120
+ agentguard policy validate <file> # Validate policy
121
+ agentguard policy suggest # Auto-suggest rules from violations
122
+ agentguard policy verify <file> # Verify against historical violations
123
+
124
+ # Simulation
125
+ agentguard simulate <action-json> # Predict impact without executing
126
+ agentguard simulate --plan <file> # Batch simulate an action plan
127
+
128
+ # Session tools
129
+ agentguard replay --last [--step] # Replay governance session
130
+ agentguard session-viewer --last # Interactive HTML timeline
131
+ agentguard diff <runA> <runB> # Compare two sessions
132
+ agentguard export/import # Portable JSONL sessions
133
+
134
+ # CI/CD
135
+ agentguard ci-check [--last] # Verify governance in CI
136
+ agentguard evidence-pr [--pr <num>] # Attach evidence to PR
137
+ agentguard audit-verify [--last] # Verify audit chain integrity
138
+
139
+ # Integration
140
+ agentguard claude-init # Set up Claude Code hooks
141
+ agentguard auto-setup # Auto-detect and configure
142
+ agentguard status # Check governance readiness
143
+ agentguard demo # Interactive showcase
144
+
145
+ # Configuration
146
+ agentguard config show|get|set # Manage config
147
+ agentguard init --extension <type> # Scaffold extensions
148
+ agentguard migrate # Import JSONL into SQLite
149
+ ```
150
+
151
+ ## Library Packages
152
+
153
+ For building integrations, the core types and event model are available as separate packages:
154
+
155
+ ```bash
156
+ npm install @red-codes/core # Types, actions, utilities
157
+ npm install @red-codes/events # Canonical event model
158
+ ```
159
+
160
+ ## Agent Swarm
161
+
162
+ AgentGuard ships with a 26-agent autonomous development swarm:
163
+
164
+ ```bash
165
+ agentguard init swarm # Scaffolds agents, skills, and governance into your repo
166
+ ```
167
+
168
+ Agents handle implementation, code review, CI triage, security audits, planning, docs, and more — all under governance.
169
+
170
+ ## Links
171
+
172
+ - [GitHub](https://github.com/AgentGuardHQ/agentguard)
173
+ - [Documentation](https://agentguardhq.github.io/agent-guard/)
174
+ - [Architecture](https://github.com/AgentGuardHQ/agentguard/blob/main/docs/unified-architecture.md)
175
+ - [Roadmap](https://github.com/AgentGuardHQ/agentguard/blob/main/ROADMAP.md)
176
+
177
+ ## License
178
+
179
+ [Apache 2.0](https://github.com/AgentGuardHQ/agentguard/blob/main/LICENSE)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAEA,UAAU,OAAO;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,WAAW;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,IAAI,GAAE,OAAY,GAAG,WAAW,CAuCzE;AAED,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,MAAM,CAyBnD"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAevD,MAAM,UAAU,SAAS,CAAC,IAAc,EAAE,OAAgB,EAAE;IAC1D,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,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