dont-break 0.3.1__tar.gz

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 (337) hide show
  1. dont_break-0.3.1/.env.example +18 -0
  2. dont_break-0.3.1/.gitignore +19 -0
  3. dont_break-0.3.1/LICENSE +177 -0
  4. dont_break-0.3.1/NOTICE +4 -0
  5. dont_break-0.3.1/PKG-INFO +141 -0
  6. dont_break-0.3.1/README.fr.md +100 -0
  7. dont_break-0.3.1/README.md +100 -0
  8. dont_break-0.3.1/docs/agents/README.md +69 -0
  9. dont_break-0.3.1/docs/agents/cursor.md +95 -0
  10. dont_break-0.3.1/docs/agents/github-actions.md +102 -0
  11. dont_break-0.3.1/docs/agents/gitlab-ci.md +93 -0
  12. dont_break-0.3.1/docs/agents/langchain.md +141 -0
  13. dont_break-0.3.1/docs/agents/pre-commit.md +45 -0
  14. dont_break-0.3.1/docs/agents/shell.md +131 -0
  15. dont_break-0.3.1/docs/assets/screenshot.png +0 -0
  16. dont_break-0.3.1/dont_break/README.md +46 -0
  17. dont_break-0.3.1/dont_break/__init__.py +1 -0
  18. dont_break-0.3.1/dont_break/__main__.py +4 -0
  19. dont_break-0.3.1/dont_break/agents_skill.md +54 -0
  20. dont_break-0.3.1/dont_break/application/__init__.py +31 -0
  21. dont_break-0.3.1/dont_break/application/agent_connect.py +233 -0
  22. dont_break-0.3.1/dont_break/application/auth_service.py +67 -0
  23. dont_break-0.3.1/dont_break/application/hook_decision.py +178 -0
  24. dont_break-0.3.1/dont_break/application/hook_journal.py +64 -0
  25. dont_break-0.3.1/dont_break/application/lockdown.py +237 -0
  26. dont_break-0.3.1/dont_break/application/project_service.py +113 -0
  27. dont_break-0.3.1/dont_break/application/protected_paths_cache.py +296 -0
  28. dont_break-0.3.1/dont_break/application/session_store.py +566 -0
  29. dont_break-0.3.1/dont_break/application/sync_cache.py +204 -0
  30. dont_break-0.3.1/dont_break/application/sync_service.py +1444 -0
  31. dont_break-0.3.1/dont_break/application/watch_service.py +261 -0
  32. dont_break-0.3.1/dont_break/application/workspace_resolve.py +15 -0
  33. dont_break-0.3.1/dont_break/application/workspace_service.py +51 -0
  34. dont_break-0.3.1/dont_break/auth/__init__.py +0 -0
  35. dont_break-0.3.1/dont_break/auth/callback.py +28 -0
  36. dont_break-0.3.1/dont_break/auth/connect.py +41 -0
  37. dont_break-0.3.1/dont_break/auth/constants.py +45 -0
  38. dont_break-0.3.1/dont_break/cli.py +48 -0
  39. dont_break-0.3.1/dont_break/config.py +94 -0
  40. dont_break-0.3.1/dont_break/credentials.py +17 -0
  41. dont_break-0.3.1/dont_break/domain/__init__.py +41 -0
  42. dont_break-0.3.1/dont_break/domain/errors.py +75 -0
  43. dont_break-0.3.1/dont_break/domain/models.py +51 -0
  44. dont_break-0.3.1/dont_break/domain/session.py +34 -0
  45. dont_break-0.3.1/dont_break/domain/wire/__init__.py +83 -0
  46. dont_break-0.3.1/dont_break/domain/wire/graph.py +114 -0
  47. dont_break-0.3.1/dont_break/domain/wire/sync.py +440 -0
  48. dont_break-0.3.1/dont_break/extract/__init__.py +0 -0
  49. dont_break-0.3.1/dont_break/extract/constants.py +10 -0
  50. dont_break-0.3.1/dont_break/extract/facts_extract.py +492 -0
  51. dont_break-0.3.1/dont_break/gateway/__init__.py +0 -0
  52. dont_break-0.3.1/dont_break/gateway/project_sync.py +11 -0
  53. dont_break-0.3.1/dont_break/git/__init__.py +0 -0
  54. dont_break-0.3.1/dont_break/git/context.py +48 -0
  55. dont_break-0.3.1/dont_break/hooks/__init__.py +1 -0
  56. dont_break-0.3.1/dont_break/hooks/audit_pretooluse.py +141 -0
  57. dont_break-0.3.1/dont_break/hooks/glob_match.py +44 -0
  58. dont_break-0.3.1/dont_break/hooks/install.py +150 -0
  59. dont_break-0.3.1/dont_break/hooks/pretooluse.py +139 -0
  60. dont_break-0.3.1/dont_break/hooks/write_payload.py +34 -0
  61. dont_break-0.3.1/dont_break/infrastructure/__init__.py +7 -0
  62. dont_break-0.3.1/dont_break/infrastructure/credentials.py +53 -0
  63. dont_break-0.3.1/dont_break/infrastructure/facts_extract.py +94 -0
  64. dont_break-0.3.1/dont_break/infrastructure/gateway.py +442 -0
  65. dont_break-0.3.1/dont_break/infrastructure/gateway_models.py +38 -0
  66. dont_break-0.3.1/dont_break/infrastructure/gateway_routes.py +120 -0
  67. dont_break-0.3.1/dont_break/intro.py +21 -0
  68. dont_break-0.3.1/dont_break/pipeline.py +30 -0
  69. dont_break-0.3.1/dont_break/project/__init__.py +6 -0
  70. dont_break-0.3.1/dont_break/project/mapping.py +142 -0
  71. dont_break-0.3.1/dont_break/project/picker.py +109 -0
  72. dont_break-0.3.1/dont_break/project/slug.py +17 -0
  73. dont_break-0.3.1/dont_break/server/__init__.py +0 -0
  74. dont_break-0.3.1/dont_break/server/app.py +43 -0
  75. dont_break-0.3.1/dont_break/server/deps.py +120 -0
  76. dont_break-0.3.1/dont_break/server/gateway_proxy.py +91 -0
  77. dont_break-0.3.1/dont_break/server/lifespan.py +80 -0
  78. dont_break-0.3.1/dont_break/server/routers/__init__.py +0 -0
  79. dont_break-0.3.1/dont_break/server/routers/agents.py +98 -0
  80. dont_break-0.3.1/dont_break/server/routers/assist.py +94 -0
  81. dont_break-0.3.1/dont_break/server/routers/auth.py +32 -0
  82. dont_break-0.3.1/dont_break/server/routers/graph.py +110 -0
  83. dont_break-0.3.1/dont_break/server/routers/hook.py +47 -0
  84. dont_break-0.3.1/dont_break/server/routers/lockdown.py +131 -0
  85. dont_break-0.3.1/dont_break/server/routers/project.py +274 -0
  86. dont_break-0.3.1/dont_break/server/routers/query.py +66 -0
  87. dont_break-0.3.1/dont_break/server/routers/rules.py +107 -0
  88. dont_break-0.3.1/dont_break/server/routers/session.py +53 -0
  89. dont_break-0.3.1/dont_break/server/routers/viewer.py +43 -0
  90. dont_break-0.3.1/dont_break/server/routes.py +30 -0
  91. dont_break-0.3.1/dont_break/server/routes_constants.py +139 -0
  92. dont_break-0.3.1/dont_break/server/static_root.py +16 -0
  93. dont_break-0.3.1/dont_break/server/viewer_cache.py +18 -0
  94. dont_break-0.3.1/dont_break/server/viewer_proxy.py +70 -0
  95. dont_break-0.3.1/dont_break/server/ws_codes.py +20 -0
  96. dont_break-0.3.1/dont_break/viewer_assets.py +5 -0
  97. dont_break-0.3.1/dont_break/wake.py +118 -0
  98. dont_break-0.3.1/frontend/eslint.config.mjs +65 -0
  99. dont_break-0.3.1/frontend/index.html +12 -0
  100. dont_break-0.3.1/frontend/package-lock.json +4417 -0
  101. dont_break-0.3.1/frontend/package.json +51 -0
  102. dont_break-0.3.1/frontend/postcss.config.js +6 -0
  103. dont_break-0.3.1/frontend/public/nebula/ArchPanel.mjs +253 -0
  104. dont_break-0.3.1/frontend/public/nebula/CfgPanel.mjs +290 -0
  105. dont_break-0.3.1/frontend/public/nebula/GraphData.mjs +574 -0
  106. dont_break-0.3.1/frontend/public/nebula/GraphStreamClient.mjs +255 -0
  107. dont_break-0.3.1/frontend/public/nebula/LayoutClient.mjs +74 -0
  108. dont_break-0.3.1/frontend/public/nebula/NebulaRenderer.mjs +2227 -0
  109. dont_break-0.3.1/frontend/public/nebula/NodeDetailClient.mjs +31 -0
  110. dont_break-0.3.1/frontend/public/nebula/ResolvedPanel.mjs +129 -0
  111. dont_break-0.3.1/frontend/public/nebula/app.mjs +1622 -0
  112. dont_break-0.3.1/frontend/public/nebula/cfgCompact.mjs +194 -0
  113. dont_break-0.3.1/frontend/public/nebula/cfgCompact.test.mjs +143 -0
  114. dont_break-0.3.1/frontend/public/nebula/colors.mjs +211 -0
  115. dont_break-0.3.1/frontend/public/nebula/colors.test.mjs +115 -0
  116. dont_break-0.3.1/frontend/public/nebula/graphSessionPolicy.mjs +1 -0
  117. dont_break-0.3.1/frontend/public/nebula/graphStreamReconnect.test.mjs +102 -0
  118. dont_break-0.3.1/frontend/public/nebula/hostBridge.mjs +208 -0
  119. dont_break-0.3.1/frontend/public/nebula/index.html +389 -0
  120. dont_break-0.3.1/frontend/public/nebula/moduleGraph.mjs +581 -0
  121. dont_break-0.3.1/frontend/public/nebula/moduleGraph.test.mjs +175 -0
  122. dont_break-0.3.1/frontend/public/nebula/overlays.mjs +841 -0
  123. dont_break-0.3.1/frontend/public/nebula/overlays.test.mjs +339 -0
  124. dont_break-0.3.1/frontend/public/nebula/panelData.mjs +136 -0
  125. dont_break-0.3.1/frontend/public/nebula/panelData.test.mjs +96 -0
  126. dont_break-0.3.1/frontend/public/nebula/statusLine.test.mjs +104 -0
  127. dont_break-0.3.1/frontend/public/nebula/syncProgress.mjs +1 -0
  128. dont_break-0.3.1/frontend/public/nebula/ui.mjs +369 -0
  129. dont_break-0.3.1/frontend/public/nebula/viewerNotice.test.mjs +146 -0
  130. dont_break-0.3.1/frontend/public/nebula/wave.test.mjs +79 -0
  131. dont_break-0.3.1/frontend/public/nebula/wire/archSeverity.mjs +24 -0
  132. dont_break-0.3.1/frontend/public/nebula/wire/domIds.mjs +14 -0
  133. dont_break-0.3.1/frontend/public/nebula/wire/graphSessionPolicy.mjs +390 -0
  134. dont_break-0.3.1/frontend/public/nebula/wire/graphStream.mjs +73 -0
  135. dont_break-0.3.1/frontend/public/nebula/wire/hostProtocol.mjs +54 -0
  136. dont_break-0.3.1/frontend/public/nebula/wire/routes.mjs +39 -0
  137. dont_break-0.3.1/frontend/public/nebula/wire/sync.mjs +103 -0
  138. dont_break-0.3.1/frontend/public/nebula/wire/syncProgress.mjs +69 -0
  139. dont_break-0.3.1/frontend/public/nebula/wire/timing.mjs +7 -0
  140. dont_break-0.3.1/frontend/public/nebula/workers/layout.worker.mjs +203 -0
  141. dont_break-0.3.1/frontend/scripts/check-bundle-budget.mjs +45 -0
  142. dont_break-0.3.1/frontend/scripts/copy-wire.mjs +26 -0
  143. dont_break-0.3.1/frontend/scripts/patch-adjust-context.mjs +101 -0
  144. dont_break-0.3.1/frontend/scripts/patch-adjust-prompt.mjs +82 -0
  145. dont_break-0.3.1/frontend/scripts/patch-agent-steps.mjs +64 -0
  146. dont_break-0.3.1/frontend/scripts/patch-composer-hint.mjs +72 -0
  147. dont_break-0.3.1/frontend/scripts/patch-coverage-certificate.mjs +782 -0
  148. dont_break-0.3.1/frontend/scripts/patch-decision-surface.mjs +91 -0
  149. dont_break-0.3.1/frontend/scripts/patch-empty-states.mjs +32 -0
  150. dont_break-0.3.1/frontend/scripts/patch-frontier-actions.mjs +230 -0
  151. dont_break-0.3.1/frontend/scripts/patch-how-it-works.mjs +318 -0
  152. dont_break-0.3.1/frontend/scripts/patch-humanize-keys.mjs +103 -0
  153. dont_break-0.3.1/frontend/scripts/patch-humanize-values.mjs +915 -0
  154. dont_break-0.3.1/frontend/scripts/patch-mint-mcp-token.mjs +118 -0
  155. dont_break-0.3.1/frontend/scripts/patch-mission-card.mjs +90 -0
  156. dont_break-0.3.1/frontend/scripts/patch-mission-stepper.mjs +93 -0
  157. dont_break-0.3.1/frontend/scripts/patch-nav-collapse.mjs +45 -0
  158. dont_break-0.3.1/frontend/scripts/patch-overview-dnt.mjs +106 -0
  159. dont_break-0.3.1/frontend/scripts/patch-prompt-only.mjs +78 -0
  160. dont_break-0.3.1/frontend/scripts/patch-semantic-fallback.mjs +69 -0
  161. dont_break-0.3.1/frontend/scripts/patch-sentence-keys.mjs +144 -0
  162. dont_break-0.3.1/frontend/scripts/patch-sentinel.mjs +554 -0
  163. dont_break-0.3.1/frontend/scripts/patch-siege-verdict.mjs +285 -0
  164. dont_break-0.3.1/frontend/scripts/patch-siege.mjs +362 -0
  165. dont_break-0.3.1/frontend/scripts/patch-sim-groups.mjs +89 -0
  166. dont_break-0.3.1/frontend/scripts/patch-studio-keys.mjs +53 -0
  167. dont_break-0.3.1/frontend/scripts/patch-zone-gate.mjs +251 -0
  168. dont_break-0.3.1/frontend/scripts/stamp-nebula-assets.mjs +48 -0
  169. dont_break-0.3.1/frontend/shared/wire/archSeverity.mjs +24 -0
  170. dont_break-0.3.1/frontend/shared/wire/domIds.mjs +14 -0
  171. dont_break-0.3.1/frontend/shared/wire/graphSessionPolicy.mjs +390 -0
  172. dont_break-0.3.1/frontend/shared/wire/graphStream.mjs +73 -0
  173. dont_break-0.3.1/frontend/shared/wire/hostProtocol.mjs +54 -0
  174. dont_break-0.3.1/frontend/shared/wire/routes.mjs +39 -0
  175. dont_break-0.3.1/frontend/shared/wire/sync.mjs +103 -0
  176. dont_break-0.3.1/frontend/shared/wire/syncProgress.mjs +69 -0
  177. dont_break-0.3.1/frontend/shared/wire/timing.mjs +7 -0
  178. dont_break-0.3.1/frontend/src/ViewerToolbar.tsx +250 -0
  179. dont_break-0.3.1/frontend/src/api/assistProxy.test.ts +84 -0
  180. dont_break-0.3.1/frontend/src/api/assistProxy.ts +306 -0
  181. dont_break-0.3.1/frontend/src/api/client.ts +246 -0
  182. dont_break-0.3.1/frontend/src/api/dashboard.ts +424 -0
  183. dont_break-0.3.1/frontend/src/api/dashboardCheck.test.ts +42 -0
  184. dont_break-0.3.1/frontend/src/api/ruleEventsQuery.test.ts +163 -0
  185. dont_break-0.3.1/frontend/src/api/ruleEventsQuery.ts +217 -0
  186. dont_break-0.3.1/frontend/src/api/session.test.ts +56 -0
  187. dont_break-0.3.1/frontend/src/api/session.ts +55 -0
  188. dont_break-0.3.1/frontend/src/design/Badge.tsx +52 -0
  189. dont_break-0.3.1/frontend/src/design/Button.tsx +44 -0
  190. dont_break-0.3.1/frontend/src/design/Card.tsx +37 -0
  191. dont_break-0.3.1/frontend/src/design/DesignDemo.tsx +236 -0
  192. dont_break-0.3.1/frontend/src/design/Dialog.tsx +44 -0
  193. dont_break-0.3.1/frontend/src/design/Disclosure.tsx +70 -0
  194. dont_break-0.3.1/frontend/src/design/EmptyState.tsx +27 -0
  195. dont_break-0.3.1/frontend/src/design/Field.tsx +45 -0
  196. dont_break-0.3.1/frontend/src/design/Skeleton.tsx +10 -0
  197. dont_break-0.3.1/frontend/src/design/Tabs.tsx +40 -0
  198. dont_break-0.3.1/frontend/src/design/Toast.tsx +56 -0
  199. dont_break-0.3.1/frontend/src/design/cn.ts +4 -0
  200. dont_break-0.3.1/frontend/src/design/index.ts +12 -0
  201. dont_break-0.3.1/frontend/src/design/motion.tsx +71 -0
  202. dont_break-0.3.1/frontend/src/design/tokens.css +59 -0
  203. dont_break-0.3.1/frontend/src/hooks/useDashboardQueries.ts +155 -0
  204. dont_break-0.3.1/frontend/src/hooks/useSession.ts +36 -0
  205. dont_break-0.3.1/frontend/src/i18n/i18n.test.ts +110 -0
  206. dont_break-0.3.1/frontend/src/i18n/index.ts +263 -0
  207. dont_break-0.3.1/frontend/src/i18n/locales/ar-SA.ts +791 -0
  208. dont_break-0.3.1/frontend/src/i18n/locales/cs-CZ.ts +794 -0
  209. dont_break-0.3.1/frontend/src/i18n/locales/da-DK.ts +794 -0
  210. dont_break-0.3.1/frontend/src/i18n/locales/de-DE.ts +795 -0
  211. dont_break-0.3.1/frontend/src/i18n/locales/el-GR.ts +801 -0
  212. dont_break-0.3.1/frontend/src/i18n/locales/en.ts +883 -0
  213. dont_break-0.3.1/frontend/src/i18n/locales/es-ES.ts +793 -0
  214. dont_break-0.3.1/frontend/src/i18n/locales/fa-IR.ts +792 -0
  215. dont_break-0.3.1/frontend/src/i18n/locales/fi-FI.ts +796 -0
  216. dont_break-0.3.1/frontend/src/i18n/locales/fil-PH.ts +800 -0
  217. dont_break-0.3.1/frontend/src/i18n/locales/fr-FR.ts +803 -0
  218. dont_break-0.3.1/frontend/src/i18n/locales/he-IL.ts +791 -0
  219. dont_break-0.3.1/frontend/src/i18n/locales/hi-IN.ts +792 -0
  220. dont_break-0.3.1/frontend/src/i18n/locales/hu-HU.ts +797 -0
  221. dont_break-0.3.1/frontend/src/i18n/locales/id-ID.ts +793 -0
  222. dont_break-0.3.1/frontend/src/i18n/locales/it-IT.ts +793 -0
  223. dont_break-0.3.1/frontend/src/i18n/locales/ja-JP.ts +792 -0
  224. dont_break-0.3.1/frontend/src/i18n/locales/ko-KR.ts +790 -0
  225. dont_break-0.3.1/frontend/src/i18n/locales/nl-NL.ts +794 -0
  226. dont_break-0.3.1/frontend/src/i18n/locales/no-NO.ts +794 -0
  227. dont_break-0.3.1/frontend/src/i18n/locales/pl-PL.ts +794 -0
  228. dont_break-0.3.1/frontend/src/i18n/locales/pt-BR.ts +793 -0
  229. dont_break-0.3.1/frontend/src/i18n/locales/ro-RO.ts +795 -0
  230. dont_break-0.3.1/frontend/src/i18n/locales/ru-RU.ts +794 -0
  231. dont_break-0.3.1/frontend/src/i18n/locales/sv-SE.ts +793 -0
  232. dont_break-0.3.1/frontend/src/i18n/locales/th-TH.ts +791 -0
  233. dont_break-0.3.1/frontend/src/i18n/locales/tr-TR.ts +793 -0
  234. dont_break-0.3.1/frontend/src/i18n/locales/uk-UA.ts +793 -0
  235. dont_break-0.3.1/frontend/src/i18n/locales/uz-UZ.ts +798 -0
  236. dont_break-0.3.1/frontend/src/i18n/locales/vi-VN.ts +793 -0
  237. dont_break-0.3.1/frontend/src/i18n/locales/zh-CN.ts +769 -0
  238. dont_break-0.3.1/frontend/src/i18n/locales/zh-TW.ts +769 -0
  239. dont_break-0.3.1/frontend/src/index.css +43 -0
  240. dont_break-0.3.1/frontend/src/main.tsx +49 -0
  241. dont_break-0.3.1/frontend/src/pages/GraphPage.tsx +7 -0
  242. dont_break-0.3.1/frontend/src/pages/OverviewPage.tsx +602 -0
  243. dont_break-0.3.1/frontend/src/pages/SettingsPage.tsx +403 -0
  244. dont_break-0.3.1/frontend/src/pages/agents/AgentsPage.tsx +942 -0
  245. dont_break-0.3.1/frontend/src/pages/agents/TryToBreakIt.tsx +334 -0
  246. dont_break-0.3.1/frontend/src/pages/agents/agentTargets.ts +125 -0
  247. dont_break-0.3.1/frontend/src/pages/agents/hookInstall.test.ts +28 -0
  248. dont_break-0.3.1/frontend/src/pages/agents/hookInstall.ts +5 -0
  249. dont_break-0.3.1/frontend/src/pages/agents/illustrations.tsx +295 -0
  250. dont_break-0.3.1/frontend/src/pages/agents/useCases.ts +294 -0
  251. dont_break-0.3.1/frontend/src/pages/overviewActivity.test.ts +239 -0
  252. dont_break-0.3.1/frontend/src/pages/overviewActivity.ts +215 -0
  253. dont_break-0.3.1/frontend/src/pages/rules/JournalPanel.tsx +563 -0
  254. dont_break-0.3.1/frontend/src/pages/rules/RuleEditor.tsx +513 -0
  255. dont_break-0.3.1/frontend/src/pages/rules/RulesPage.tsx +926 -0
  256. dont_break-0.3.1/frontend/src/pages/rules/SentinelPanel.test.ts +118 -0
  257. dont_break-0.3.1/frontend/src/pages/rules/SentinelPanel.tsx +250 -0
  258. dont_break-0.3.1/frontend/src/pages/rules/ZonePreviewBanner.tsx +75 -0
  259. dont_break-0.3.1/frontend/src/pages/rules/ruleDisplay.test.ts +91 -0
  260. dont_break-0.3.1/frontend/src/pages/rules/ruleDisplay.ts +100 -0
  261. dont_break-0.3.1/frontend/src/pages/rules/ruleForm.test.ts +200 -0
  262. dont_break-0.3.1/frontend/src/pages/rules/ruleForm.ts +241 -0
  263. dont_break-0.3.1/frontend/src/pages/rules/studio/ContractPanel.tsx +648 -0
  264. dont_break-0.3.1/frontend/src/pages/rules/studio/CoveragePanel.tsx +219 -0
  265. dont_break-0.3.1/frontend/src/pages/rules/studio/MissionStepper.tsx +82 -0
  266. dont_break-0.3.1/frontend/src/pages/rules/studio/PromptPanel.tsx +278 -0
  267. dont_break-0.3.1/frontend/src/pages/rules/studio/RetrievalCard.tsx +144 -0
  268. dont_break-0.3.1/frontend/src/pages/rules/studio/RuleStudioPage.tsx +201 -0
  269. dont_break-0.3.1/frontend/src/pages/rules/studio/SimulationPanel.tsx +615 -0
  270. dont_break-0.3.1/frontend/src/pages/rules/studio/TraceTimeline.tsx +199 -0
  271. dont_break-0.3.1/frontend/src/pages/rules/studio/attackPath.ts +80 -0
  272. dont_break-0.3.1/frontend/src/pages/rules/studio/journeys.test.ts +343 -0
  273. dont_break-0.3.1/frontend/src/pages/rules/studio/mission.ts +58 -0
  274. dont_break-0.3.1/frontend/src/pages/rules/studio/simulation.test.ts +969 -0
  275. dont_break-0.3.1/frontend/src/pages/rules/studio/studioStore.ts +241 -0
  276. dont_break-0.3.1/frontend/src/pages/rules/studio/useAssistRun.ts +60 -0
  277. dont_break-0.3.1/frontend/src/pages/rules/studio/useSimulationPlayback.ts +235 -0
  278. dont_break-0.3.1/frontend/src/pages/rules/studio/useStudioOverlays.ts +51 -0
  279. dont_break-0.3.1/frontend/src/router.tsx +85 -0
  280. dont_break-0.3.1/frontend/src/shell/AppShell.tsx +225 -0
  281. dont_break-0.3.1/frontend/src/shell/CommandPalette.tsx +166 -0
  282. dont_break-0.3.1/frontend/src/shell/LiveSyncIndicator.tsx +128 -0
  283. dont_break-0.3.1/frontend/src/shell/LockdownBanner.tsx +132 -0
  284. dont_break-0.3.1/frontend/src/shell/SessionContext.tsx +27 -0
  285. dont_break-0.3.1/frontend/src/shell/Sidebar.tsx +191 -0
  286. dont_break-0.3.1/frontend/src/shell/ViewerContext.tsx +25 -0
  287. dont_break-0.3.1/frontend/src/shell/ViewerHost.tsx +110 -0
  288. dont_break-0.3.1/frontend/src/shell/WelcomeOverlay.tsx +111 -0
  289. dont_break-0.3.1/frontend/src/shell/lockdownCopy.test.ts +33 -0
  290. dont_break-0.3.1/frontend/src/shell/lockdownCopy.ts +13 -0
  291. dont_break-0.3.1/frontend/src/shell/uiStore.ts +45 -0
  292. dont_break-0.3.1/frontend/src/shell/welcomeGate.test.ts +71 -0
  293. dont_break-0.3.1/frontend/src/shell/welcomeGate.ts +29 -0
  294. dont_break-0.3.1/frontend/src/viewer/assetVersion.ts +2 -0
  295. dont_break-0.3.1/frontend/src/viewer/graphSessionPolicy.test.ts +357 -0
  296. dont_break-0.3.1/frontend/src/viewer/graphSessionPolicy.ts +24 -0
  297. dont_break-0.3.1/frontend/src/viewer/graphSessionPolicy.types.ts +12 -0
  298. dont_break-0.3.1/frontend/src/viewer/hostProtocol.ts +167 -0
  299. dont_break-0.3.1/frontend/src/viewer/useViewerOverlays.ts +130 -0
  300. dont_break-0.3.1/frontend/src/wire/archSeverity.ts +20 -0
  301. dont_break-0.3.1/frontend/src/wire/domIds.ts +14 -0
  302. dont_break-0.3.1/frontend/src/wire/graphSessionPolicy.ts +269 -0
  303. dont_break-0.3.1/frontend/src/wire/graphStream.ts +53 -0
  304. dont_break-0.3.1/frontend/src/wire/hostProtocol.test.ts +92 -0
  305. dont_break-0.3.1/frontend/src/wire/hostProtocol.ts +41 -0
  306. dont_break-0.3.1/frontend/src/wire/index.ts +26 -0
  307. dont_break-0.3.1/frontend/src/wire/routes.ts +29 -0
  308. dont_break-0.3.1/frontend/src/wire/sync.ts +98 -0
  309. dont_break-0.3.1/frontend/src/wire/syncProgress.test.ts +186 -0
  310. dont_break-0.3.1/frontend/src/wire/syncProgress.ts +72 -0
  311. dont_break-0.3.1/frontend/src/wire/timing.ts +7 -0
  312. dont_break-0.3.1/frontend/tailwind.config.js +82 -0
  313. dont_break-0.3.1/frontend/tsconfig.json +22 -0
  314. dont_break-0.3.1/frontend/vite.config.ts +23 -0
  315. dont_break-0.3.1/pyproject.toml +118 -0
  316. dont_break-0.3.1/tests/conftest.py +94 -0
  317. dont_break-0.3.1/tests/fixtures/cursor_pretooluse_write.json +77 -0
  318. dont_break-0.3.1/tests/test_agent_connect.py +242 -0
  319. dont_break-0.3.1/tests/test_agents_routes.py +186 -0
  320. dont_break-0.3.1/tests/test_assist_proxy.py +179 -0
  321. dont_break-0.3.1/tests/test_cursor_write_hook_fixture.py +51 -0
  322. dont_break-0.3.1/tests/test_hook_audit_script.py +50 -0
  323. dont_break-0.3.1/tests/test_hook_decision.py +443 -0
  324. dont_break-0.3.1/tests/test_hook_install.py +222 -0
  325. dont_break-0.3.1/tests/test_lockdown.py +250 -0
  326. dont_break-0.3.1/tests/test_progress_interpolation.py +81 -0
  327. dont_break-0.3.1/tests/test_project_mapping.py +85 -0
  328. dont_break-0.3.1/tests/test_project_slug.py +13 -0
  329. dont_break-0.3.1/tests/test_query_rules_proxy.py +257 -0
  330. dont_break-0.3.1/tests/test_restore_last_folder.py +78 -0
  331. dont_break-0.3.1/tests/test_routes.py +73 -0
  332. dont_break-0.3.1/tests/test_session_store.py +330 -0
  333. dont_break-0.3.1/tests/test_sync_cache.py +119 -0
  334. dont_break-0.3.1/tests/test_sync_honesty.py +626 -0
  335. dont_break-0.3.1/tests/test_sync_progress.py +111 -0
  336. dont_break-0.3.1/tests/test_sync_service.py +1112 -0
  337. dont_break-0.3.1/tests/test_watch_service.py +297 -0
@@ -0,0 +1,18 @@
1
+ # Optional. End users need none of this — `dont-break --wake` talks to production.
2
+ #
3
+ # To override (local gateway / staging), put the same keys in:
4
+ # ~/.config/dont-break/.env
5
+ # or export them in your shell. A cwd `.env.local` is intentionally ignored.
6
+
7
+ # POLYMERIX_API_BASE_URL=http://localhost:8080
8
+ # POLYMERIX_APP_URL=http://localhost:3000
9
+
10
+ # Optional workspace override (defaults to org_slug from sign-in)
11
+ # POLYMERIX_ORG_SLUG=polymerix-labs
12
+
13
+ # Local UI bind (defaults: 127.0.0.1:4040)
14
+ # DONT_BREAK_HOST=127.0.0.1
15
+ # DONT_BREAK_PORT=4040
16
+
17
+ # Front: @polymerix-labs/facts-extract (npm). Override if not using npx / node_modules.
18
+ # POLYMERIX_FACTS_EXTRACT_EXECUTABLE=/path/to/facts-extract
@@ -0,0 +1,19 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv*/
4
+ venv/
5
+ .env
6
+ .env.local
7
+ dist/
8
+ /build/
9
+ *.egg-info/
10
+ .dont-break/
11
+
12
+ frontend/node_modules/
13
+ frontend/dist/
14
+ frontend/tsconfig.tsbuildinfo
15
+ dont_break/static/
16
+
17
+ .DS_Store
18
+ node_modules/
19
+ frontend/dont_break/static/
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,4 @@
1
+ dont-break
2
+ Copyright 2026 Polymerix
3
+
4
+ This product includes software developed by Polymerix (https://dont-break.com).
@@ -0,0 +1,141 @@
1
+ Metadata-Version: 2.5
2
+ Name: dont-break
3
+ Version: 0.3.1
4
+ Summary: The trust layer for AI-written code: say what must never break, prove the protection holds, enforce it on every agent edit.
5
+ Project-URL: Homepage, https://dont-break.com
6
+ Project-URL: Documentation, https://dont-break.com/docs
7
+ Project-URL: Source, https://github.com/polymerix-labs/dont-break
8
+ Project-URL: Issues, https://github.com/polymerix-labs/dont-break/issues
9
+ Author-email: Polymerix <hello@dont-break.com>
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: ai-agents,claude,code-graph,code-review,cursor,dependency-graph,impact-analysis,mcp,refactoring,static-analysis
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
+ Classifier: Topic :: Software Development :: Build Tools
25
+ Classifier: Topic :: Software Development :: Quality Assurance
26
+ Requires-Python: >=3.9
27
+ Requires-Dist: fastapi>=0.115.0
28
+ Requires-Dist: httpx>=0.27.0
29
+ Requires-Dist: pydantic-settings>=2.6.0
30
+ Requires-Dist: rich>=13.9.0
31
+ Requires-Dist: uvicorn[standard]>=0.32.0
32
+ Requires-Dist: watchfiles>=0.24
33
+ Requires-Dist: websockets>=14.0
34
+ Requires-Dist: zstandard>=0.23
35
+ Provides-Extra: dev
36
+ Requires-Dist: httpx>=0.27; extra == 'dev'
37
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
38
+ Requires-Dist: pytest>=8.0; extra == 'dev'
39
+ Requires-Dist: ruff>=0.8; extra == 'dev'
40
+ Description-Content-Type: text/markdown
41
+
42
+ # dont-break
43
+
44
+ **The trust layer for AI-written code.**
45
+
46
+ [![PyPI](https://img.shields.io/pypi/v/dont-break)](https://pypi.org/project/dont-break/)
47
+ [![Python](https://img.shields.io/pypi/pyversions/dont-break)](https://pypi.org/project/dont-break/)
48
+ [![Downloads](https://img.shields.io/pypi/dm/dont-break)](https://pypi.org/project/dont-break/)
49
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE)
50
+
51
+ English · [Français](https://github.com/polymerix-labs/dont-break/blob/main/README.fr.md)
52
+
53
+ ![Rule Studio: describe what must never break, watch the graph find and test the protection](https://raw.githubusercontent.com/polymerix-labs/dont-break/main/docs/assets/screenshot.png)
54
+
55
+ AI agents ship code fast. Nobody ships trust with it. Every team running Cursor, Claude, or CI bots has the same unspoken fear: the day a quick fix silently breaks the one thing that was never supposed to break.
56
+
57
+ `dont-break` turns that fear into a contract:
58
+
59
+ 1. **Say it in plain words.** "Nobody should be able to break invoice calculation, even indirectly." No file paths, no code.
60
+ 2. **Watch it get found.** dont-break reads the live map of your codebase and lights up every place that carries that logic, including the paths you forgot existed.
61
+ 3. **Watch it get attacked.** It writes a protection rule, then replays code changes against it to prove the protection actually holds. A dry run: nothing in your code is touched.
62
+ 4. **Activate it.** From then on, every agent edit is checked against the rule before it lands. Your agent gets told "this is riskier than it looks" instead of you finding out in prod.
63
+
64
+ ```text
65
+ You: "Rename PokemonService.fetchAll"
66
+ Agent: → get_dependents(PokemonService.fetchAll) "23 call sites across 4 modules"
67
+ → get_impact(files: [...]) "radius 3, touches ui/, cache/, api/"
68
+ → get_do_not_touch() "PokemonService is a danger zone: fan-in 23, stability 31"
69
+ Agent: "This is riskier than it looks. Here are the 23 places that break,
70
+ and a safer 2-step plan."
71
+ ```
72
+
73
+ That conversation happens automatically once connected. No prompt engineering: the agent skill teaches it.
74
+
75
+ ## Install
76
+
77
+ Requires **Python 3.9+** and **Node.js** (npm). The graph extractor installs itself on first run.
78
+
79
+ ```bash
80
+ pip install dont-break
81
+ dont-break --wake
82
+ ```
83
+
84
+ That opens a local UI on `http://127.0.0.1:4040`, in your language (30 available). Sign in, pick a project folder, and the map of your code builds itself: a live 3D graph of every module, call, and dependency, with your protected zones lit up on top of it.
85
+
86
+ ## Pick your fight
87
+
88
+ **"My agent keeps breaking things it never opened"**
89
+ Plug dont-break into Cursor or Claude Desktop. Your agent checks impact and danger zones before editing, not after.
90
+ → [Set up in Cursor / Claude (2 min)](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/cursor.md)
91
+
92
+ **"I want CI to block disasters, not argue about style"**
93
+ One job that fails the merge when a change hits a protected zone or a fragile hub, grounded in the real dependency graph, not vibes.
94
+ → [GitHub Actions](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/github-actions.md) · [GitLab CI](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/gitlab-ci.md) · [pre-commit hook](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/pre-commit.md)
95
+
96
+ **"I just want to interrogate my codebase"**
97
+ `dbq dependents <id> | jq`: who breaks if I change this? Your repo becomes a queryable database.
98
+ → [Shell + jq recipes](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/shell.md)
99
+
100
+ **"I'm building my own agent"**
101
+ The same 11 tools, exposed as typed TypeScript definitions or a generated OpenAPI 3.1 spec.
102
+ → [LangChain / OpenAPI / custom agents](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/langchain.md)
103
+
104
+ ## The 11 tools your agent gets
105
+
106
+ | Tool | The question it kills |
107
+ |------|----------------------|
108
+ | `find_symbol` | "Which node is this name / file?" (entry point) |
109
+ | `get_dependents` | "Who breaks if I change this?" |
110
+ | `get_impact` | "What's the blast radius of these edits?" |
111
+ | `get_do_not_touch` | "What should I refuse to touch without asking?" |
112
+ | `get_dependencies` | "What does this code rely on?" |
113
+ | `find_path` | "Why does changing A affect B?" |
114
+ | `get_arch_status` | "How carefully should I work in this repo?" |
115
+ | `check_change` | "Does this edit violate a team rule?" |
116
+ | `propose_rule` | "Record a warn now, or a block for a human to approve" |
117
+ | `pause_own_rule` | "Stop evaluating a rule this agent token authored" |
118
+ | `append_rule_reason` | "Add one justification, never edit or delete" |
119
+
120
+ Query tools are read-only, server-side analysis, capped responses: always safe to call. The three rule tools write team rules under tight limits: they cannot activate a block, pause someone else's rule, or rewrite reasons.
121
+
122
+ ## The control room
123
+
124
+ - **Rule Studio**: describe what must never break, watch the graph find it, test the protection live before activating it
125
+ - **Check**: pre-edit simulator: pick seeds, get an ok/warn/block verdict, animate the exact path a break would take
126
+ - **Overview**: a verdict in one sentence, stability and AI-navigability readouts, the top actions that would harden your architecture
127
+ - **Graph**: the Nebula 3D scene, protected zones and witness paths lit as overlays
128
+ - **Agents**: connect Cursor, Claude, or CI in one click, with a live try-to-break demo
129
+
130
+ Keyboard-first: `cmd+K` opens the command palette.
131
+
132
+ ## Connect your agent in 30 seconds
133
+
134
+ 1. Open the dont-break app → **Agents**.
135
+ 2. Sign in, link the folder to a project, click **Connect Cursor**: one click mints a project-scoped token and fills `mcp.json`.
136
+ 3. Paste into Cursor (or your MCP client).
137
+ 4. Click **Install agent skill**: it writes the safe-change protocol into your repo's `AGENTS.md` so agents use the tools without being told.
138
+
139
+ ## License
140
+
141
+ Apache-2.0. See [LICENSE](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE) and [NOTICE](https://github.com/polymerix-labs/dont-break/blob/main/NOTICE).
@@ -0,0 +1,100 @@
1
+ # dont-break
2
+
3
+ **La couche de confiance du code écrit par IA.**
4
+
5
+ [![PyPI](https://img.shields.io/pypi/v/dont-break)](https://pypi.org/project/dont-break/)
6
+ [![Python](https://img.shields.io/pypi/pyversions/dont-break)](https://pypi.org/project/dont-break/)
7
+ [![Downloads](https://img.shields.io/pypi/dm/dont-break)](https://pypi.org/project/dont-break/)
8
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE)
9
+
10
+ [English](https://github.com/polymerix-labs/dont-break/blob/main/README.md) · Français
11
+
12
+ ![Rule Studio : dites ce qui ne doit jamais casser, regardez le graphe trouver et tester la protection](https://raw.githubusercontent.com/polymerix-labs/dont-break/main/docs/assets/screenshot.png)
13
+
14
+ Les agents IA livrent du code vite. Personne ne livre la confiance avec. Toutes les équipes qui utilisent Cursor, Claude ou des bots CI partagent la même crainte : le jour où un correctif rapide casse silencieusement la seule chose qui ne devait jamais casser.
15
+
16
+ `dont-break` transforme cette crainte en contrat :
17
+
18
+ 1. **Dites-le avec des mots simples.** « Personne ne doit pouvoir casser le calcul des factures, même indirectement. » Pas de chemins de fichiers, pas de code.
19
+ 2. **Regardez-le être trouvé.** dont-break lit la carte vivante de votre code et illumine chaque endroit qui porte cette logique, y compris les chemins que vous aviez oubliés.
20
+ 3. **Regardez-le être attaqué.** Il écrit une règle de protection, puis rejoue des changements de code contre elle pour prouver qu'elle tient vraiment. Un test à blanc : rien dans votre code n'est modifié.
21
+ 4. **Activez-la.** Ensuite, chaque édition d'agent est vérifiée contre la règle avant d'atterrir. Votre agent s'entend dire « c'est plus risqué qu'il n'y paraît » au lieu que vous le découvriez en prod.
22
+
23
+ ```text
24
+ Vous : « Renomme PokemonService.fetchAll »
25
+ Agent : → get_dependents(PokemonService.fetchAll) « 23 appels dans 4 modules »
26
+ → get_impact(files: [...]) « rayon 3, touche ui/, cache/, api/ »
27
+ → get_do_not_touch() « PokemonService est une zone dangereuse : fan-in 23, stabilité 31 »
28
+ Agent : « C'est plus risqué qu'il n'y paraît. Voici les 23 endroits qui cassent,
29
+ et un plan plus sûr en 2 étapes. »
30
+ ```
31
+
32
+ Cette conversation se produit automatiquement une fois connecté. Aucun prompt engineering : le skill d'agent l'enseigne.
33
+
34
+ ## Installation
35
+
36
+ Nécessite **Python 3.9+** et **Node.js** (npm). L'extracteur de graphe s'installe tout seul au premier lancement.
37
+
38
+ ```bash
39
+ pip install dont-break
40
+ dont-break --wake
41
+ ```
42
+
43
+ Une interface locale s'ouvre sur `http://127.0.0.1:4040`, dans votre langue (30 disponibles). Connectez-vous, choisissez un dossier projet, et la carte de votre code se construit toute seule : un graphe 3D vivant de chaque module, appel et dépendance, avec vos zones protégées illuminées par-dessus.
44
+
45
+ ## Choisissez votre combat
46
+
47
+ **« Mon agent casse sans arrêt des choses qu'il n'a jamais ouvertes »**
48
+ Branchez dont-break dans Cursor ou Claude Desktop. Votre agent vérifie l'impact et les zones dangereuses avant d'éditer, pas après.
49
+ → [Configuration Cursor / Claude (2 min)](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/cursor.md)
50
+
51
+ **« Je veux une CI qui bloque les désastres, pas qui discute du style »**
52
+ Un seul job qui fait échouer le merge quand un changement touche une zone protégée ou un module fragile, fondé sur le vrai graphe de dépendances.
53
+ → [GitHub Actions](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/github-actions.md) · [GitLab CI](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/gitlab-ci.md) · [hook pre-commit](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/pre-commit.md)
54
+
55
+ **« Je veux juste interroger mon code »**
56
+ `dbq dependents <id> | jq` : qui casse si je change ça ? Votre repo devient une base de données interrogeable.
57
+ → [Recettes shell + jq](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/shell.md)
58
+
59
+ **« Je construis mon propre agent »**
60
+ Les mêmes 11 outils, exposés en définitions TypeScript typées ou en spec OpenAPI 3.1 générée.
61
+ → [LangChain / OpenAPI / agents maison](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/langchain.md)
62
+
63
+ ## Les 11 outils de votre agent
64
+
65
+ | Outil | La question qu'il élimine |
66
+ |-------|---------------------------|
67
+ | `find_symbol` | « Quel nœud correspond à ce nom / fichier ? » (point d'entrée) |
68
+ | `get_dependents` | « Qui casse si je change ça ? » |
69
+ | `get_impact` | « Quel est le rayon d'impact de ces modifications ? » |
70
+ | `get_do_not_touch` | « Que dois-je refuser de toucher sans demander ? » |
71
+ | `get_dependencies` | « De quoi ce code dépend-il ? » |
72
+ | `find_path` | « Pourquoi changer A affecte B ? » |
73
+ | `get_arch_status` | « Avec quelle prudence travailler dans ce repo ? » |
74
+ | `check_change` | « Cette modification viole-t-elle une règle d'équipe ? » |
75
+ | `propose_rule` | « Enregistrer un warn maintenant, ou un block à faire approuver » |
76
+ | `pause_own_rule` | « Suspendre une règle créée par ce token d'agent » |
77
+ | `append_rule_reason` | « Ajouter une justification, jamais modifier ni supprimer » |
78
+
79
+ Les outils de requête sont en lecture seule, analyse côté serveur, réponses plafonnées : toujours sûrs à appeler. Les trois outils de règles écrivent des règles d'équipe sous limites strictes : ils ne peuvent pas activer un block, suspendre la règle de quelqu'un d'autre, ni réécrire des justifications.
80
+
81
+ ## La salle de contrôle
82
+
83
+ - **Rule Studio** : décrivez ce qui ne doit jamais casser, regardez le graphe le trouver, testez la protection en direct avant de l'activer
84
+ - **Check** : simulateur pré-édition : choisissez des points de départ, obtenez un verdict ok/warn/block, animez le chemin exact qu'une casse emprunterait
85
+ - **Overview** : un verdict en une phrase, stabilité et navigabilité IA, les actions prioritaires pour durcir votre architecture
86
+ - **Graph** : la scène 3D Nebula, zones protégées et chemins témoins illuminés en surcouche
87
+ - **Agents** : connectez Cursor, Claude ou la CI en un clic, avec une démo « essayez de casser » en direct
88
+
89
+ Piloté au clavier : `cmd+K` ouvre la palette de commandes.
90
+
91
+ ## Connectez votre agent en 30 secondes
92
+
93
+ 1. Ouvrez l'app dont-break → **Agents**.
94
+ 2. Connectez-vous, liez le dossier à un projet, cliquez **Connect Cursor** : un clic génère un token limité au projet et remplit `mcp.json`.
95
+ 3. Collez dans Cursor (ou votre client MCP).
96
+ 4. Cliquez **Install agent skill** : le protocole de modification sûre s'écrit dans l'`AGENTS.md` de votre repo, et les agents utilisent les outils sans qu'on le leur dise.
97
+
98
+ ## Licence
99
+
100
+ Apache-2.0. Voir [LICENSE](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE) et [NOTICE](https://github.com/polymerix-labs/dont-break/blob/main/NOTICE).
@@ -0,0 +1,100 @@
1
+ # dont-break
2
+
3
+ **The trust layer for AI-written code.**
4
+
5
+ [![PyPI](https://img.shields.io/pypi/v/dont-break)](https://pypi.org/project/dont-break/)
6
+ [![Python](https://img.shields.io/pypi/pyversions/dont-break)](https://pypi.org/project/dont-break/)
7
+ [![Downloads](https://img.shields.io/pypi/dm/dont-break)](https://pypi.org/project/dont-break/)
8
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE)
9
+
10
+ English · [Français](https://github.com/polymerix-labs/dont-break/blob/main/README.fr.md)
11
+
12
+ ![Rule Studio: describe what must never break, watch the graph find and test the protection](https://raw.githubusercontent.com/polymerix-labs/dont-break/main/docs/assets/screenshot.png)
13
+
14
+ AI agents ship code fast. Nobody ships trust with it. Every team running Cursor, Claude, or CI bots has the same unspoken fear: the day a quick fix silently breaks the one thing that was never supposed to break.
15
+
16
+ `dont-break` turns that fear into a contract:
17
+
18
+ 1. **Say it in plain words.** "Nobody should be able to break invoice calculation, even indirectly." No file paths, no code.
19
+ 2. **Watch it get found.** dont-break reads the live map of your codebase and lights up every place that carries that logic, including the paths you forgot existed.
20
+ 3. **Watch it get attacked.** It writes a protection rule, then replays code changes against it to prove the protection actually holds. A dry run: nothing in your code is touched.
21
+ 4. **Activate it.** From then on, every agent edit is checked against the rule before it lands. Your agent gets told "this is riskier than it looks" instead of you finding out in prod.
22
+
23
+ ```text
24
+ You: "Rename PokemonService.fetchAll"
25
+ Agent: → get_dependents(PokemonService.fetchAll) "23 call sites across 4 modules"
26
+ → get_impact(files: [...]) "radius 3, touches ui/, cache/, api/"
27
+ → get_do_not_touch() "PokemonService is a danger zone: fan-in 23, stability 31"
28
+ Agent: "This is riskier than it looks. Here are the 23 places that break,
29
+ and a safer 2-step plan."
30
+ ```
31
+
32
+ That conversation happens automatically once connected. No prompt engineering: the agent skill teaches it.
33
+
34
+ ## Install
35
+
36
+ Requires **Python 3.9+** and **Node.js** (npm). The graph extractor installs itself on first run.
37
+
38
+ ```bash
39
+ pip install dont-break
40
+ dont-break --wake
41
+ ```
42
+
43
+ That opens a local UI on `http://127.0.0.1:4040`, in your language (30 available). Sign in, pick a project folder, and the map of your code builds itself: a live 3D graph of every module, call, and dependency, with your protected zones lit up on top of it.
44
+
45
+ ## Pick your fight
46
+
47
+ **"My agent keeps breaking things it never opened"**
48
+ Plug dont-break into Cursor or Claude Desktop. Your agent checks impact and danger zones before editing, not after.
49
+ → [Set up in Cursor / Claude (2 min)](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/cursor.md)
50
+
51
+ **"I want CI to block disasters, not argue about style"**
52
+ One job that fails the merge when a change hits a protected zone or a fragile hub, grounded in the real dependency graph, not vibes.
53
+ → [GitHub Actions](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/github-actions.md) · [GitLab CI](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/gitlab-ci.md) · [pre-commit hook](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/pre-commit.md)
54
+
55
+ **"I just want to interrogate my codebase"**
56
+ `dbq dependents <id> | jq`: who breaks if I change this? Your repo becomes a queryable database.
57
+ → [Shell + jq recipes](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/shell.md)
58
+
59
+ **"I'm building my own agent"**
60
+ The same 11 tools, exposed as typed TypeScript definitions or a generated OpenAPI 3.1 spec.
61
+ → [LangChain / OpenAPI / custom agents](https://github.com/polymerix-labs/dont-break/blob/main/docs/agents/langchain.md)
62
+
63
+ ## The 11 tools your agent gets
64
+
65
+ | Tool | The question it kills |
66
+ |------|----------------------|
67
+ | `find_symbol` | "Which node is this name / file?" (entry point) |
68
+ | `get_dependents` | "Who breaks if I change this?" |
69
+ | `get_impact` | "What's the blast radius of these edits?" |
70
+ | `get_do_not_touch` | "What should I refuse to touch without asking?" |
71
+ | `get_dependencies` | "What does this code rely on?" |
72
+ | `find_path` | "Why does changing A affect B?" |
73
+ | `get_arch_status` | "How carefully should I work in this repo?" |
74
+ | `check_change` | "Does this edit violate a team rule?" |
75
+ | `propose_rule` | "Record a warn now, or a block for a human to approve" |
76
+ | `pause_own_rule` | "Stop evaluating a rule this agent token authored" |
77
+ | `append_rule_reason` | "Add one justification, never edit or delete" |
78
+
79
+ Query tools are read-only, server-side analysis, capped responses: always safe to call. The three rule tools write team rules under tight limits: they cannot activate a block, pause someone else's rule, or rewrite reasons.
80
+
81
+ ## The control room
82
+
83
+ - **Rule Studio**: describe what must never break, watch the graph find it, test the protection live before activating it
84
+ - **Check**: pre-edit simulator: pick seeds, get an ok/warn/block verdict, animate the exact path a break would take
85
+ - **Overview**: a verdict in one sentence, stability and AI-navigability readouts, the top actions that would harden your architecture
86
+ - **Graph**: the Nebula 3D scene, protected zones and witness paths lit as overlays
87
+ - **Agents**: connect Cursor, Claude, or CI in one click, with a live try-to-break demo
88
+
89
+ Keyboard-first: `cmd+K` opens the command palette.
90
+
91
+ ## Connect your agent in 30 seconds
92
+
93
+ 1. Open the dont-break app → **Agents**.
94
+ 2. Sign in, link the folder to a project, click **Connect Cursor**: one click mints a project-scoped token and fills `mcp.json`.
95
+ 3. Paste into Cursor (or your MCP client).
96
+ 4. Click **Install agent skill**: it writes the safe-change protocol into your repo's `AGENTS.md` so agents use the tools without being told.
97
+
98
+ ## License
99
+
100
+ Apache-2.0. See [LICENSE](https://github.com/polymerix-labs/dont-break/blob/main/LICENSE) and [NOTICE](https://github.com/polymerix-labs/dont-break/blob/main/NOTICE).
@@ -0,0 +1,69 @@
1
+ # Your AI agent can't break what it can see
2
+
3
+ AI agents edit code blind. They read the file in front of them, change a function, and have no idea that 47 other places depend on it. You find out in review — or in prod.
4
+
5
+ **dont-break** gives any agent (Cursor, Claude, your CI, your own bot) a live structural map of your codebase: who depends on what, the blast radius of every change, and which parts are too fragile to touch. Before the edit, not after.
6
+
7
+ ```text
8
+ You: "Rename PokemonService.fetchAll"
9
+ Agent: → get_dependents(PokemonService.fetchAll) "23 call sites across 4 modules"
10
+ → get_impact(files: [...]) "radius 3, touches ui/, cache/, api/"
11
+ → get_do_not_touch() "PokemonService is a danger zone: fan-in 23, stability 31"
12
+ Agent: "This is riskier than it looks. Here are the 23 places that break,
13
+ and a safer 2-step plan."
14
+ ```
15
+
16
+ That conversation happens automatically once connected. No prompt engineering required — the agent skill teaches it.
17
+
18
+ ## Pick your fight
19
+
20
+ ### "My agent keeps breaking things it never opened"
21
+
22
+ Vibe coding is great until a quick fix ripples somewhere invisible. Plug dont-break into **Cursor or Claude Desktop** and your agent checks impact and danger zones *before* editing — then warns you instead of apologizing after.
23
+
24
+ → [Set up in Cursor / Claude (2 min)](cursor.md)
25
+
26
+ ### "I want CI to block disasters, not argue about style"
27
+
28
+ Your linter can't see architecture. Add one job that fails the merge when the change hits a fragile hub, or just posts the real blast radius on every PR — grounded in the dependency graph, not vibes.
29
+
30
+ → [GitHub Actions](github-actions.md) · [GitLab CI](gitlab-ci.md) · [pre-commit hook](pre-commit.md)
31
+
32
+ ### "I just want to interrogate my codebase"
33
+
34
+ `dbq dependents <id> | jq` — who breaks if I change this? What's the safest path between these two modules? Which files should nobody touch this sprint? Your repo becomes a queryable database.
35
+
36
+ → [Shell + jq recipes](shell.md)
37
+
38
+ ### "I'm building my own agent"
39
+
40
+ Same 11 tools, exposed as typed TypeScript definitions or a generated OpenAPI 3.1 spec. Bind them to LangChain, GPT Actions, or anything that speaks function calling — identical behavior everywhere, because every surface derives from one core.
41
+
42
+ → [LangChain / OpenAPI / custom agents](langchain.md)
43
+
44
+ ## The 11 tools your agent gets
45
+
46
+ | Tool | The question it kills |
47
+ |------|----------------------|
48
+ | `find_symbol` | "Which node is this name / file?" (entry point) |
49
+ | `get_dependents` | "Who breaks if I change this?" |
50
+ | `get_impact` | "What's the blast radius of these edits?" |
51
+ | `get_do_not_touch` | "What should I refuse to touch without asking?" |
52
+ | `get_dependencies` | "What does this code rely on?" |
53
+ | `find_path` | "Why does changing A affect B?" |
54
+ | `get_arch_status` | "How carefully should I work in this repo?" |
55
+ | `check_change` | "Does this edit violate a team rule?" |
56
+ | `propose_rule` | "Record a warn now, or a block for a human to approve" |
57
+ | `pause_own_rule` | "Stop evaluating a rule this agent token authored" |
58
+ | `append_rule_reason` | "Add one justification — never edit or delete" |
59
+
60
+ Query tools are read-only, server-side analysis, capped responses. Calling them is always safe. The three rule tools write team rules under tight limits: they cannot activate a block, pause someone else's rule, or rewrite reasons.
61
+
62
+ ## Connect in 30 seconds
63
+
64
+ 1. Open the dont-break app → **Agents**.
65
+ 2. Sign in, link the folder to a project, click **Connect Cursor** — one click mints a project-scoped `dbt_` token and fills `mcp.json`.
66
+ 3. Paste into Cursor (or your MCP client). Copy it now: the secret is shown once.
67
+ 4. Click **Install agent skill** — it writes the safe-change protocol into your repo's `AGENTS.md` so agents use the tools without being told.
68
+
69
+ Everything is configured through two environment variables (`DONT_BREAK_API_URL`, `DONT_BREAK_TOKEN`). The `dbt_` token binds the workspace and project server-side; tokens travel via environment only — never in argv, never in shell history. Manage / revoke / Sync & CI presets on the website **Account → API tokens** page.