verbolab 0.1.0-alpha.1

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 (493) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +71 -0
  3. package/dist/bin/verbo.d.ts +3 -0
  4. package/dist/bin/verbo.d.ts.map +1 -0
  5. package/dist/bin/verbo.js +1156 -0
  6. package/dist/bin/verbo.js.map +1 -0
  7. package/dist/relay/index.d.ts +2 -0
  8. package/dist/relay/index.d.ts.map +1 -0
  9. package/dist/relay/index.js +15 -0
  10. package/dist/relay/index.js.map +1 -0
  11. package/dist/src/agent/agent-launcher.d.ts +64 -0
  12. package/dist/src/agent/agent-launcher.d.ts.map +1 -0
  13. package/dist/src/agent/agent-launcher.js +326 -0
  14. package/dist/src/agent/agent-launcher.js.map +1 -0
  15. package/dist/src/agent/agent-monitor.d.ts +16 -0
  16. package/dist/src/agent/agent-monitor.d.ts.map +1 -0
  17. package/dist/src/agent/agent-monitor.js +41 -0
  18. package/dist/src/agent/agent-monitor.js.map +1 -0
  19. package/dist/src/agent/fun-names.d.ts +9 -0
  20. package/dist/src/agent/fun-names.d.ts.map +1 -0
  21. package/dist/src/agent/fun-names.js +118 -0
  22. package/dist/src/agent/fun-names.js.map +1 -0
  23. package/dist/src/agent/mcp-shim.d.ts +45 -0
  24. package/dist/src/agent/mcp-shim.d.ts.map +1 -0
  25. package/dist/src/agent/mcp-shim.js +192 -0
  26. package/dist/src/agent/mcp-shim.js.map +1 -0
  27. package/dist/src/agent/personas.d.ts +47 -0
  28. package/dist/src/agent/personas.d.ts.map +1 -0
  29. package/dist/src/agent/personas.js +86 -0
  30. package/dist/src/agent/personas.js.map +1 -0
  31. package/dist/src/agent/provider-detection.d.ts +21 -0
  32. package/dist/src/agent/provider-detection.d.ts.map +1 -0
  33. package/dist/src/agent/provider-detection.js +47 -0
  34. package/dist/src/agent/provider-detection.js.map +1 -0
  35. package/dist/src/agent/providers/claude-provider.d.ts +3 -0
  36. package/dist/src/agent/providers/claude-provider.d.ts.map +1 -0
  37. package/dist/src/agent/providers/claude-provider.js +119 -0
  38. package/dist/src/agent/providers/claude-provider.js.map +1 -0
  39. package/dist/src/agent/providers/gemini-provider.d.ts +13 -0
  40. package/dist/src/agent/providers/gemini-provider.d.ts.map +1 -0
  41. package/dist/src/agent/providers/gemini-provider.js +143 -0
  42. package/dist/src/agent/providers/gemini-provider.js.map +1 -0
  43. package/dist/src/agent/providers/openai-provider.d.ts +3 -0
  44. package/dist/src/agent/providers/openai-provider.d.ts.map +1 -0
  45. package/dist/src/agent/providers/openai-provider.js +127 -0
  46. package/dist/src/agent/providers/openai-provider.js.map +1 -0
  47. package/dist/src/agent/providers/registry.d.ts +19 -0
  48. package/dist/src/agent/providers/registry.d.ts.map +1 -0
  49. package/dist/src/agent/providers/registry.js +30 -0
  50. package/dist/src/agent/providers/registry.js.map +1 -0
  51. package/dist/src/agent/providers/types.d.ts +118 -0
  52. package/dist/src/agent/providers/types.d.ts.map +1 -0
  53. package/dist/src/agent/providers/types.js +2 -0
  54. package/dist/src/agent/providers/types.js.map +1 -0
  55. package/dist/src/approval/approval-server.d.ts +17 -0
  56. package/dist/src/approval/approval-server.d.ts.map +1 -0
  57. package/dist/src/approval/approval-server.js +90 -0
  58. package/dist/src/approval/approval-server.js.map +1 -0
  59. package/dist/src/approval/approval-store.d.ts +29 -0
  60. package/dist/src/approval/approval-store.d.ts.map +1 -0
  61. package/dist/src/approval/approval-store.js +94 -0
  62. package/dist/src/approval/approval-store.js.map +1 -0
  63. package/dist/src/auth/auth-store.d.ts +18 -0
  64. package/dist/src/auth/auth-store.d.ts.map +1 -0
  65. package/dist/src/auth/auth-store.js +34 -0
  66. package/dist/src/auth/auth-store.js.map +1 -0
  67. package/dist/src/auth/device-code-client.d.ts +32 -0
  68. package/dist/src/auth/device-code-client.d.ts.map +1 -0
  69. package/dist/src/auth/device-code-client.js +41 -0
  70. package/dist/src/auth/device-code-client.js.map +1 -0
  71. package/dist/src/auth/plan-enforcer.d.ts +8 -0
  72. package/dist/src/auth/plan-enforcer.d.ts.map +1 -0
  73. package/dist/src/auth/plan-enforcer.js +14 -0
  74. package/dist/src/auth/plan-enforcer.js.map +1 -0
  75. package/dist/src/commands/audit.d.ts +7 -0
  76. package/dist/src/commands/audit.d.ts.map +1 -0
  77. package/dist/src/commands/audit.js +92 -0
  78. package/dist/src/commands/audit.js.map +1 -0
  79. package/dist/src/commands/team.d.ts +48 -0
  80. package/dist/src/commands/team.d.ts.map +1 -0
  81. package/dist/src/commands/team.js +175 -0
  82. package/dist/src/commands/team.js.map +1 -0
  83. package/dist/src/config/verbo-config.d.ts +43 -0
  84. package/dist/src/config/verbo-config.d.ts.map +1 -0
  85. package/dist/src/config/verbo-config.js +111 -0
  86. package/dist/src/config/verbo-config.js.map +1 -0
  87. package/dist/src/core/agent-session-store.d.ts +69 -0
  88. package/dist/src/core/agent-session-store.d.ts.map +1 -0
  89. package/dist/src/core/agent-session-store.js +168 -0
  90. package/dist/src/core/agent-session-store.js.map +1 -0
  91. package/dist/src/core/audit-log-store.d.ts +33 -0
  92. package/dist/src/core/audit-log-store.d.ts.map +1 -0
  93. package/dist/src/core/audit-log-store.js +104 -0
  94. package/dist/src/core/audit-log-store.js.map +1 -0
  95. package/dist/src/core/compliance.d.ts +50 -0
  96. package/dist/src/core/compliance.d.ts.map +1 -0
  97. package/dist/src/core/compliance.js +59 -0
  98. package/dist/src/core/compliance.js.map +1 -0
  99. package/dist/src/core/conflict-detector.d.ts +19 -0
  100. package/dist/src/core/conflict-detector.d.ts.map +1 -0
  101. package/dist/src/core/conflict-detector.js +87 -0
  102. package/dist/src/core/conflict-detector.js.map +1 -0
  103. package/dist/src/core/conflict-enforcer.d.ts +37 -0
  104. package/dist/src/core/conflict-enforcer.d.ts.map +1 -0
  105. package/dist/src/core/conflict-enforcer.js +139 -0
  106. package/dist/src/core/conflict-enforcer.js.map +1 -0
  107. package/dist/src/core/cost-store.d.ts +55 -0
  108. package/dist/src/core/cost-store.d.ts.map +1 -0
  109. package/dist/src/core/cost-store.js +140 -0
  110. package/dist/src/core/cost-store.js.map +1 -0
  111. package/dist/src/core/hot-files.d.ts +19 -0
  112. package/dist/src/core/hot-files.d.ts.map +1 -0
  113. package/dist/src/core/hot-files.js +64 -0
  114. package/dist/src/core/hot-files.js.map +1 -0
  115. package/dist/src/core/human-action-store.d.ts +33 -0
  116. package/dist/src/core/human-action-store.d.ts.map +1 -0
  117. package/dist/src/core/human-action-store.js +92 -0
  118. package/dist/src/core/human-action-store.js.map +1 -0
  119. package/dist/src/core/learning-store.d.ts +32 -0
  120. package/dist/src/core/learning-store.d.ts.map +1 -0
  121. package/dist/src/core/learning-store.js +95 -0
  122. package/dist/src/core/learning-store.js.map +1 -0
  123. package/dist/src/core/merge-queue.d.ts +28 -0
  124. package/dist/src/core/merge-queue.d.ts.map +1 -0
  125. package/dist/src/core/merge-queue.js +92 -0
  126. package/dist/src/core/merge-queue.js.map +1 -0
  127. package/dist/src/core/notification-service.d.ts +13 -0
  128. package/dist/src/core/notification-service.d.ts.map +1 -0
  129. package/dist/src/core/notification-service.js +126 -0
  130. package/dist/src/core/notification-service.js.map +1 -0
  131. package/dist/src/core/notifications.d.ts +10 -0
  132. package/dist/src/core/notifications.d.ts.map +1 -0
  133. package/dist/src/core/notifications.js +33 -0
  134. package/dist/src/core/notifications.js.map +1 -0
  135. package/dist/src/core/orchestrator-store.d.ts +44 -0
  136. package/dist/src/core/orchestrator-store.d.ts.map +1 -0
  137. package/dist/src/core/orchestrator-store.js +69 -0
  138. package/dist/src/core/orchestrator-store.js.map +1 -0
  139. package/dist/src/core/parallelizer.d.ts +47 -0
  140. package/dist/src/core/parallelizer.d.ts.map +1 -0
  141. package/dist/src/core/parallelizer.js +224 -0
  142. package/dist/src/core/parallelizer.js.map +1 -0
  143. package/dist/src/core/pipeline-rollback.d.ts +29 -0
  144. package/dist/src/core/pipeline-rollback.d.ts.map +1 -0
  145. package/dist/src/core/pipeline-rollback.js +84 -0
  146. package/dist/src/core/pipeline-rollback.js.map +1 -0
  147. package/dist/src/core/pipeline-runner.d.ts +73 -0
  148. package/dist/src/core/pipeline-runner.d.ts.map +1 -0
  149. package/dist/src/core/pipeline-runner.js +165 -0
  150. package/dist/src/core/pipeline-runner.js.map +1 -0
  151. package/dist/src/core/pr-creator.d.ts +22 -0
  152. package/dist/src/core/pr-creator.d.ts.map +1 -0
  153. package/dist/src/core/pr-creator.js +55 -0
  154. package/dist/src/core/pr-creator.js.map +1 -0
  155. package/dist/src/core/rbac.d.ts +27 -0
  156. package/dist/src/core/rbac.d.ts.map +1 -0
  157. package/dist/src/core/rbac.js +76 -0
  158. package/dist/src/core/rbac.js.map +1 -0
  159. package/dist/src/core/startup-cleanup.d.ts +47 -0
  160. package/dist/src/core/startup-cleanup.d.ts.map +1 -0
  161. package/dist/src/core/startup-cleanup.js +150 -0
  162. package/dist/src/core/startup-cleanup.js.map +1 -0
  163. package/dist/src/core/task-store.d.ts +96 -0
  164. package/dist/src/core/task-store.d.ts.map +1 -0
  165. package/dist/src/core/task-store.js +309 -0
  166. package/dist/src/core/task-store.js.map +1 -0
  167. package/dist/src/core/verbo-config-editor.d.ts +44 -0
  168. package/dist/src/core/verbo-config-editor.d.ts.map +1 -0
  169. package/dist/src/core/verbo-config-editor.js +204 -0
  170. package/dist/src/core/verbo-config-editor.js.map +1 -0
  171. package/dist/src/core/verbo-config.d.ts +35 -0
  172. package/dist/src/core/verbo-config.d.ts.map +1 -0
  173. package/dist/src/core/verbo-config.js +55 -0
  174. package/dist/src/core/verbo-config.js.map +1 -0
  175. package/dist/src/core/verbo-md.d.ts +96 -0
  176. package/dist/src/core/verbo-md.d.ts.map +1 -0
  177. package/dist/src/core/verbo-md.js +410 -0
  178. package/dist/src/core/verbo-md.js.map +1 -0
  179. package/dist/src/db/database.d.ts +9 -0
  180. package/dist/src/db/database.d.ts.map +1 -0
  181. package/dist/src/db/database.js +37 -0
  182. package/dist/src/db/database.js.map +1 -0
  183. package/dist/src/db/migrations/001-personas-subtasks.d.ts +10 -0
  184. package/dist/src/db/migrations/001-personas-subtasks.d.ts.map +1 -0
  185. package/dist/src/db/migrations/001-personas-subtasks.js +32 -0
  186. package/dist/src/db/migrations/001-personas-subtasks.js.map +1 -0
  187. package/dist/src/db/migrations/002-rbac.d.ts +9 -0
  188. package/dist/src/db/migrations/002-rbac.d.ts.map +1 -0
  189. package/dist/src/db/migrations/002-rbac.js +31 -0
  190. package/dist/src/db/migrations/002-rbac.js.map +1 -0
  191. package/dist/src/db/migrations/003-provider-column.d.ts +8 -0
  192. package/dist/src/db/migrations/003-provider-column.d.ts.map +1 -0
  193. package/dist/src/db/migrations/003-provider-column.js +12 -0
  194. package/dist/src/db/migrations/003-provider-column.js.map +1 -0
  195. package/dist/src/db/migrations/004-pipeline-cost.d.ts +8 -0
  196. package/dist/src/db/migrations/004-pipeline-cost.d.ts.map +1 -0
  197. package/dist/src/db/migrations/004-pipeline-cost.js +23 -0
  198. package/dist/src/db/migrations/004-pipeline-cost.js.map +1 -0
  199. package/dist/src/db/migrations/005-audit-log-timestamp.d.ts +10 -0
  200. package/dist/src/db/migrations/005-audit-log-timestamp.d.ts.map +1 -0
  201. package/dist/src/db/migrations/005-audit-log-timestamp.js +39 -0
  202. package/dist/src/db/migrations/005-audit-log-timestamp.js.map +1 -0
  203. package/dist/src/db/migrations/006-human-action-type.d.ts +9 -0
  204. package/dist/src/db/migrations/006-human-action-type.d.ts.map +1 -0
  205. package/dist/src/db/migrations/006-human-action-type.js +16 -0
  206. package/dist/src/db/migrations/006-human-action-type.js.map +1 -0
  207. package/dist/src/db/schema.d.ts +6 -0
  208. package/dist/src/db/schema.d.ts.map +1 -0
  209. package/dist/src/db/schema.js +255 -0
  210. package/dist/src/db/schema.js.map +1 -0
  211. package/dist/src/deps/dependabot-generator.d.ts +22 -0
  212. package/dist/src/deps/dependabot-generator.d.ts.map +1 -0
  213. package/dist/src/deps/dependabot-generator.js +83 -0
  214. package/dist/src/deps/dependabot-generator.js.map +1 -0
  215. package/dist/src/deps/dependabot-monitor.d.ts +22 -0
  216. package/dist/src/deps/dependabot-monitor.d.ts.map +1 -0
  217. package/dist/src/deps/dependabot-monitor.js +28 -0
  218. package/dist/src/deps/dependabot-monitor.js.map +1 -0
  219. package/dist/src/deps/package-auditor.d.ts +24 -0
  220. package/dist/src/deps/package-auditor.d.ts.map +1 -0
  221. package/dist/src/deps/package-auditor.js +118 -0
  222. package/dist/src/deps/package-auditor.js.map +1 -0
  223. package/dist/src/init/ensure-init.d.ts +6 -0
  224. package/dist/src/init/ensure-init.d.ts.map +1 -0
  225. package/dist/src/init/ensure-init.js +27 -0
  226. package/dist/src/init/ensure-init.js.map +1 -0
  227. package/dist/src/init/project-detector.d.ts +11 -0
  228. package/dist/src/init/project-detector.d.ts.map +1 -0
  229. package/dist/src/init/project-detector.js +117 -0
  230. package/dist/src/init/project-detector.js.map +1 -0
  231. package/dist/src/init/questionnaire.d.ts +5 -0
  232. package/dist/src/init/questionnaire.d.ts.map +1 -0
  233. package/dist/src/init/questionnaire.js +112 -0
  234. package/dist/src/init/questionnaire.js.map +1 -0
  235. package/dist/src/init/template.d.ts +17 -0
  236. package/dist/src/init/template.d.ts.map +1 -0
  237. package/dist/src/init/template.js +46 -0
  238. package/dist/src/init/template.js.map +1 -0
  239. package/dist/src/intelligence/claude-client.d.ts +3 -0
  240. package/dist/src/intelligence/claude-client.d.ts.map +1 -0
  241. package/dist/src/intelligence/claude-client.js +12 -0
  242. package/dist/src/intelligence/claude-client.js.map +1 -0
  243. package/dist/src/intelligence/conflict-mediator.d.ts +17 -0
  244. package/dist/src/intelligence/conflict-mediator.d.ts.map +1 -0
  245. package/dist/src/intelligence/conflict-mediator.js +83 -0
  246. package/dist/src/intelligence/conflict-mediator.js.map +1 -0
  247. package/dist/src/intelligence/github-orchestrator.d.ts +30 -0
  248. package/dist/src/intelligence/github-orchestrator.d.ts.map +1 -0
  249. package/dist/src/intelligence/github-orchestrator.js +270 -0
  250. package/dist/src/intelligence/github-orchestrator.js.map +1 -0
  251. package/dist/src/intelligence/kill-switch.d.ts +10 -0
  252. package/dist/src/intelligence/kill-switch.d.ts.map +1 -0
  253. package/dist/src/intelligence/kill-switch.js +12 -0
  254. package/dist/src/intelligence/kill-switch.js.map +1 -0
  255. package/dist/src/intelligence/learnings-extractor.d.ts +13 -0
  256. package/dist/src/intelligence/learnings-extractor.d.ts.map +1 -0
  257. package/dist/src/intelligence/learnings-extractor.js +74 -0
  258. package/dist/src/intelligence/learnings-extractor.js.map +1 -0
  259. package/dist/src/intelligence/project-scanner.d.ts +2 -0
  260. package/dist/src/intelligence/project-scanner.d.ts.map +1 -0
  261. package/dist/src/intelligence/project-scanner.js +28 -0
  262. package/dist/src/intelligence/project-scanner.js.map +1 -0
  263. package/dist/src/intelligence/task-decomposer.d.ts +14 -0
  264. package/dist/src/intelligence/task-decomposer.d.ts.map +1 -0
  265. package/dist/src/intelligence/task-decomposer.js +97 -0
  266. package/dist/src/intelligence/task-decomposer.js.map +1 -0
  267. package/dist/src/intelligence/types.d.ts +14 -0
  268. package/dist/src/intelligence/types.d.ts.map +1 -0
  269. package/dist/src/intelligence/types.js +2 -0
  270. package/dist/src/intelligence/types.js.map +1 -0
  271. package/dist/src/mcp/server.d.ts +63 -0
  272. package/dist/src/mcp/server.d.ts.map +1 -0
  273. package/dist/src/mcp/server.js +537 -0
  274. package/dist/src/mcp/server.js.map +1 -0
  275. package/dist/src/mcp/stdio-entry.d.ts +2 -0
  276. package/dist/src/mcp/stdio-entry.d.ts.map +1 -0
  277. package/dist/src/mcp/stdio-entry.js +124 -0
  278. package/dist/src/mcp/stdio-entry.js.map +1 -0
  279. package/dist/src/mcp/subtask-handlers.d.ts +7 -0
  280. package/dist/src/mcp/subtask-handlers.d.ts.map +1 -0
  281. package/dist/src/mcp/subtask-handlers.js +50 -0
  282. package/dist/src/mcp/subtask-handlers.js.map +1 -0
  283. package/dist/src/security/network-proxy.d.ts +20 -0
  284. package/dist/src/security/network-proxy.d.ts.map +1 -0
  285. package/dist/src/security/network-proxy.js +125 -0
  286. package/dist/src/security/network-proxy.js.map +1 -0
  287. package/dist/src/security/network-sandbox.d.ts +19 -0
  288. package/dist/src/security/network-sandbox.d.ts.map +1 -0
  289. package/dist/src/security/network-sandbox.js +100 -0
  290. package/dist/src/security/network-sandbox.js.map +1 -0
  291. package/dist/src/security/sanitize.d.ts +13 -0
  292. package/dist/src/security/sanitize.d.ts.map +1 -0
  293. package/dist/src/security/sanitize.js +19 -0
  294. package/dist/src/security/sanitize.js.map +1 -0
  295. package/dist/src/security/secrets-patterns.d.ts +29 -0
  296. package/dist/src/security/secrets-patterns.d.ts.map +1 -0
  297. package/dist/src/security/secrets-patterns.js +430 -0
  298. package/dist/src/security/secrets-patterns.js.map +1 -0
  299. package/dist/src/security/secrets-scanner.d.ts +26 -0
  300. package/dist/src/security/secrets-scanner.d.ts.map +1 -0
  301. package/dist/src/security/secrets-scanner.js +62 -0
  302. package/dist/src/security/secrets-scanner.js.map +1 -0
  303. package/dist/src/skills/classifier.d.ts +9 -0
  304. package/dist/src/skills/classifier.d.ts.map +1 -0
  305. package/dist/src/skills/classifier.js +41 -0
  306. package/dist/src/skills/classifier.js.map +1 -0
  307. package/dist/src/skills/registry.d.ts +16 -0
  308. package/dist/src/skills/registry.d.ts.map +1 -0
  309. package/dist/src/skills/registry.js +61 -0
  310. package/dist/src/skills/registry.js.map +1 -0
  311. package/dist/src/sync/events.d.ts +9 -0
  312. package/dist/src/sync/events.d.ts.map +1 -0
  313. package/dist/src/sync/events.js +2 -0
  314. package/dist/src/sync/events.js.map +1 -0
  315. package/dist/src/sync/relay-server.d.ts +18 -0
  316. package/dist/src/sync/relay-server.d.ts.map +1 -0
  317. package/dist/src/sync/relay-server.js +131 -0
  318. package/dist/src/sync/relay-server.js.map +1 -0
  319. package/dist/src/sync/sync-client.d.ts +31 -0
  320. package/dist/src/sync/sync-client.d.ts.map +1 -0
  321. package/dist/src/sync/sync-client.js +314 -0
  322. package/dist/src/sync/sync-client.js.map +1 -0
  323. package/dist/src/tui/app.d.ts +35 -0
  324. package/dist/src/tui/app.d.ts.map +1 -0
  325. package/dist/src/tui/app.js +676 -0
  326. package/dist/src/tui/app.js.map +1 -0
  327. package/dist/src/tui/components/activity-feed.d.ts +12 -0
  328. package/dist/src/tui/components/activity-feed.d.ts.map +1 -0
  329. package/dist/src/tui/components/activity-feed.js +82 -0
  330. package/dist/src/tui/components/activity-feed.js.map +1 -0
  331. package/dist/src/tui/components/agent-list.d.ts +19 -0
  332. package/dist/src/tui/components/agent-list.d.ts.map +1 -0
  333. package/dist/src/tui/components/agent-list.js +33 -0
  334. package/dist/src/tui/components/agent-list.js.map +1 -0
  335. package/dist/src/tui/components/agent-row.d.ts +12 -0
  336. package/dist/src/tui/components/agent-row.d.ts.map +1 -0
  337. package/dist/src/tui/components/agent-row.js +37 -0
  338. package/dist/src/tui/components/agent-row.js.map +1 -0
  339. package/dist/src/tui/components/approval-terminal.d.ts +13 -0
  340. package/dist/src/tui/components/approval-terminal.d.ts.map +1 -0
  341. package/dist/src/tui/components/approval-terminal.js +34 -0
  342. package/dist/src/tui/components/approval-terminal.js.map +1 -0
  343. package/dist/src/tui/components/audit-viewer.d.ts +16 -0
  344. package/dist/src/tui/components/audit-viewer.d.ts.map +1 -0
  345. package/dist/src/tui/components/audit-viewer.js +46 -0
  346. package/dist/src/tui/components/audit-viewer.js.map +1 -0
  347. package/dist/src/tui/components/auth-gate.d.ts +9 -0
  348. package/dist/src/tui/components/auth-gate.d.ts.map +1 -0
  349. package/dist/src/tui/components/auth-gate.js +112 -0
  350. package/dist/src/tui/components/auth-gate.js.map +1 -0
  351. package/dist/src/tui/components/command-palette.d.ts +12 -0
  352. package/dist/src/tui/components/command-palette.d.ts.map +1 -0
  353. package/dist/src/tui/components/command-palette.js +51 -0
  354. package/dist/src/tui/components/command-palette.js.map +1 -0
  355. package/dist/src/tui/components/compliance-badge.d.ts +11 -0
  356. package/dist/src/tui/components/compliance-badge.d.ts.map +1 -0
  357. package/dist/src/tui/components/compliance-badge.js +12 -0
  358. package/dist/src/tui/components/compliance-badge.js.map +1 -0
  359. package/dist/src/tui/components/decomposition-review.d.ts +10 -0
  360. package/dist/src/tui/components/decomposition-review.d.ts.map +1 -0
  361. package/dist/src/tui/components/decomposition-review.js +19 -0
  362. package/dist/src/tui/components/decomposition-review.js.map +1 -0
  363. package/dist/src/tui/components/dependency-graph.d.ts +13 -0
  364. package/dist/src/tui/components/dependency-graph.d.ts.map +1 -0
  365. package/dist/src/tui/components/dependency-graph.js +143 -0
  366. package/dist/src/tui/components/dependency-graph.js.map +1 -0
  367. package/dist/src/tui/components/diff-viewer.d.ts +11 -0
  368. package/dist/src/tui/components/diff-viewer.d.ts.map +1 -0
  369. package/dist/src/tui/components/diff-viewer.js +82 -0
  370. package/dist/src/tui/components/diff-viewer.js.map +1 -0
  371. package/dist/src/tui/components/edit-task-input.d.ts +10 -0
  372. package/dist/src/tui/components/edit-task-input.d.ts.map +1 -0
  373. package/dist/src/tui/components/edit-task-input.js +20 -0
  374. package/dist/src/tui/components/edit-task-input.js.map +1 -0
  375. package/dist/src/tui/components/footer.d.ts +12 -0
  376. package/dist/src/tui/components/footer.d.ts.map +1 -0
  377. package/dist/src/tui/components/footer.js +41 -0
  378. package/dist/src/tui/components/footer.js.map +1 -0
  379. package/dist/src/tui/components/header.d.ts +8 -0
  380. package/dist/src/tui/components/header.d.ts.map +1 -0
  381. package/dist/src/tui/components/header.js +20 -0
  382. package/dist/src/tui/components/header.js.map +1 -0
  383. package/dist/src/tui/components/human-actions.d.ts +14 -0
  384. package/dist/src/tui/components/human-actions.d.ts.map +1 -0
  385. package/dist/src/tui/components/human-actions.js +43 -0
  386. package/dist/src/tui/components/human-actions.js.map +1 -0
  387. package/dist/src/tui/components/log-panel.d.ts +10 -0
  388. package/dist/src/tui/components/log-panel.d.ts.map +1 -0
  389. package/dist/src/tui/components/log-panel.js +38 -0
  390. package/dist/src/tui/components/log-panel.js.map +1 -0
  391. package/dist/src/tui/components/memory-viewer.d.ts +10 -0
  392. package/dist/src/tui/components/memory-viewer.d.ts.map +1 -0
  393. package/dist/src/tui/components/memory-viewer.js +44 -0
  394. package/dist/src/tui/components/memory-viewer.js.map +1 -0
  395. package/dist/src/tui/components/new-task-input.d.ts +9 -0
  396. package/dist/src/tui/components/new-task-input.d.ts.map +1 -0
  397. package/dist/src/tui/components/new-task-input.js +21 -0
  398. package/dist/src/tui/components/new-task-input.js.map +1 -0
  399. package/dist/src/tui/components/orchestrator-status.d.ts +9 -0
  400. package/dist/src/tui/components/orchestrator-status.d.ts.map +1 -0
  401. package/dist/src/tui/components/orchestrator-status.js +15 -0
  402. package/dist/src/tui/components/orchestrator-status.js.map +1 -0
  403. package/dist/src/tui/components/parallelize-banner.d.ts +8 -0
  404. package/dist/src/tui/components/parallelize-banner.d.ts.map +1 -0
  405. package/dist/src/tui/components/parallelize-banner.js +9 -0
  406. package/dist/src/tui/components/parallelize-banner.js.map +1 -0
  407. package/dist/src/tui/components/progress-bar.d.ts +9 -0
  408. package/dist/src/tui/components/progress-bar.d.ts.map +1 -0
  409. package/dist/src/tui/components/progress-bar.js +15 -0
  410. package/dist/src/tui/components/progress-bar.js.map +1 -0
  411. package/dist/src/tui/components/review-queue.d.ts +13 -0
  412. package/dist/src/tui/components/review-queue.d.ts.map +1 -0
  413. package/dist/src/tui/components/review-queue.js +78 -0
  414. package/dist/src/tui/components/review-queue.js.map +1 -0
  415. package/dist/src/tui/components/rich-header.d.ts +11 -0
  416. package/dist/src/tui/components/rich-header.d.ts.map +1 -0
  417. package/dist/src/tui/components/rich-header.js +25 -0
  418. package/dist/src/tui/components/rich-header.js.map +1 -0
  419. package/dist/src/tui/components/spinner.d.ts +7 -0
  420. package/dist/src/tui/components/spinner.d.ts.map +1 -0
  421. package/dist/src/tui/components/spinner.js +8 -0
  422. package/dist/src/tui/components/spinner.js.map +1 -0
  423. package/dist/src/tui/components/status-bar.d.ts +23 -0
  424. package/dist/src/tui/components/status-bar.d.ts.map +1 -0
  425. package/dist/src/tui/components/status-bar.js +28 -0
  426. package/dist/src/tui/components/status-bar.js.map +1 -0
  427. package/dist/src/tui/components/task-queue.d.ts +11 -0
  428. package/dist/src/tui/components/task-queue.d.ts.map +1 -0
  429. package/dist/src/tui/components/task-queue.js +30 -0
  430. package/dist/src/tui/components/task-queue.js.map +1 -0
  431. package/dist/src/tui/components/team-view.d.ts +13 -0
  432. package/dist/src/tui/components/team-view.d.ts.map +1 -0
  433. package/dist/src/tui/components/team-view.js +12 -0
  434. package/dist/src/tui/components/team-view.js.map +1 -0
  435. package/dist/src/tui/graph-renderer.d.ts +11 -0
  436. package/dist/src/tui/graph-renderer.d.ts.map +1 -0
  437. package/dist/src/tui/graph-renderer.js +296 -0
  438. package/dist/src/tui/graph-renderer.js.map +1 -0
  439. package/dist/src/tui/hooks/use-bell.d.ts +21 -0
  440. package/dist/src/tui/hooks/use-bell.d.ts.map +1 -0
  441. package/dist/src/tui/hooks/use-bell.js +38 -0
  442. package/dist/src/tui/hooks/use-bell.js.map +1 -0
  443. package/dist/src/tui/hooks/use-ci-status.d.ts +16 -0
  444. package/dist/src/tui/hooks/use-ci-status.d.ts.map +1 -0
  445. package/dist/src/tui/hooks/use-ci-status.js +97 -0
  446. package/dist/src/tui/hooks/use-ci-status.js.map +1 -0
  447. package/dist/src/tui/hooks/use-command-palette.d.ts +37 -0
  448. package/dist/src/tui/hooks/use-command-palette.d.ts.map +1 -0
  449. package/dist/src/tui/hooks/use-command-palette.js +108 -0
  450. package/dist/src/tui/hooks/use-command-palette.js.map +1 -0
  451. package/dist/src/tui/hooks/use-diff-view.d.ts +16 -0
  452. package/dist/src/tui/hooks/use-diff-view.d.ts.map +1 -0
  453. package/dist/src/tui/hooks/use-diff-view.js +75 -0
  454. package/dist/src/tui/hooks/use-diff-view.js.map +1 -0
  455. package/dist/src/tui/hooks/use-keyboard.d.ts +3 -0
  456. package/dist/src/tui/hooks/use-keyboard.d.ts.map +1 -0
  457. package/dist/src/tui/hooks/use-keyboard.js +70 -0
  458. package/dist/src/tui/hooks/use-keyboard.js.map +1 -0
  459. package/dist/src/tui/hooks/use-log-stream.d.ts +25 -0
  460. package/dist/src/tui/hooks/use-log-stream.d.ts.map +1 -0
  461. package/dist/src/tui/hooks/use-log-stream.js +83 -0
  462. package/dist/src/tui/hooks/use-log-stream.js.map +1 -0
  463. package/dist/src/tui/hooks/use-spinner.d.ts +3 -0
  464. package/dist/src/tui/hooks/use-spinner.d.ts.map +1 -0
  465. package/dist/src/tui/hooks/use-spinner.js +13 -0
  466. package/dist/src/tui/hooks/use-spinner.js.map +1 -0
  467. package/dist/src/tui/hooks/use-store.d.ts +33 -0
  468. package/dist/src/tui/hooks/use-store.d.ts.map +1 -0
  469. package/dist/src/tui/hooks/use-store.js +21 -0
  470. package/dist/src/tui/hooks/use-store.js.map +1 -0
  471. package/dist/src/tui/lib/diff-parser.d.ts +24 -0
  472. package/dist/src/tui/lib/diff-parser.d.ts.map +1 -0
  473. package/dist/src/tui/lib/diff-parser.js +115 -0
  474. package/dist/src/tui/lib/diff-parser.js.map +1 -0
  475. package/dist/src/tui/lib/palette-commands.d.ts +14 -0
  476. package/dist/src/tui/lib/palette-commands.d.ts.map +1 -0
  477. package/dist/src/tui/lib/palette-commands.js +101 -0
  478. package/dist/src/tui/lib/palette-commands.js.map +1 -0
  479. package/dist/src/tui/tui.d.ts +8 -0
  480. package/dist/src/tui/tui.d.ts.map +1 -0
  481. package/dist/src/tui/tui.js +8 -0
  482. package/dist/src/tui/tui.js.map +1 -0
  483. package/package.json +66 -0
  484. package/skills/api-design.md +84 -0
  485. package/skills/backend-typescript.md +76 -0
  486. package/skills/data-modeling.md +73 -0
  487. package/skills/devops-ci.md +82 -0
  488. package/skills/frontend-design.md +69 -0
  489. package/skills/observability.md +73 -0
  490. package/skills/react-nextjs.md +76 -0
  491. package/skills/refactoring.md +77 -0
  492. package/skills/security.md +75 -0
  493. package/skills/testing.md +69 -0
@@ -0,0 +1,124 @@
1
+ import path from 'path';
2
+ import { spawn, spawnSync } from 'child_process';
3
+ import fs from 'fs';
4
+ import { ulid } from 'ulid';
5
+ import { createDatabase } from '../db/database.js';
6
+ import { createTaskStore } from '../core/task-store.js';
7
+ import { createAgentSessionStore } from '../core/agent-session-store.js';
8
+ import { createConflictDetector } from '../core/conflict-detector.js';
9
+ import { createHumanActionStore } from '../core/human-action-store.js';
10
+ import { createOrchestratorStore } from '../core/orchestrator-store.js';
11
+ import { createRbacStore, createRbacChecker } from '../core/rbac.js';
12
+ import { createCostStore } from '../core/cost-store.js';
13
+ import { createVerboMcpServer } from './server.js';
14
+ import { decodeJwtPayload } from '../auth/device-code-client.js';
15
+ import { sanitizeForShell } from '../security/sanitize.js';
16
+ const dbPath = process.env.VERBO_DB_PATH;
17
+ /**
18
+ * Derive humanId from the authenticated JWT token rather than trusting an
19
+ * env var that any process could set to impersonate a user.
20
+ * Falls back to 'local' only when no token is available (local dev).
21
+ */
22
+ function resolveHumanId() {
23
+ const token = process.env.VERBO_AUTH_TOKEN;
24
+ if (token) {
25
+ try {
26
+ const payload = decodeJwtPayload(token);
27
+ return payload.sub;
28
+ }
29
+ catch {
30
+ // Invalid token — fall back to 'local'
31
+ }
32
+ }
33
+ return 'local';
34
+ }
35
+ const humanId = resolveHumanId();
36
+ // Derive project root from DB path (.verbo/verbo.db → project root)
37
+ const projectDir = path.resolve(dbPath, '..', '..');
38
+ // Each agent process gets a unique pipeline run ID for per-session cost tracking
39
+ const pipelineRunId = process.env.VERBO_PIPELINE_RUN_ID ?? ulid();
40
+ const budgetPerTaskUsd = process.env.VERBO_BUDGET_PER_TASK_USD
41
+ ? parseFloat(process.env.VERBO_BUDGET_PER_TASK_USD)
42
+ : undefined;
43
+ const db = createDatabase(dbPath);
44
+ const tasks = createTaskStore(db);
45
+ const sessions = createAgentSessionStore(db);
46
+ const detector = createConflictDetector(tasks);
47
+ const humanActions = createHumanActionStore(db);
48
+ const orchestratorStore = createOrchestratorStore();
49
+ const rbacStore = createRbacStore(db.raw());
50
+ const rbac = createRbacChecker(rbacStore);
51
+ const costStore = createCostStore(db);
52
+ /**
53
+ * Launch a claude agent subprocess for a spawned subtask.
54
+ * Resolves as soon as the process is started so the parent agent can
55
+ * immediately call await_subtask and poll for completion.
56
+ */
57
+ function launchSubtaskAgent(subtask) {
58
+ const worktreePath = path.join(projectDir, '.verbo', 'agents', subtask.id);
59
+ const branch = `verbo/${subtask.id}`;
60
+ const mcpConfigPath = path.join(projectDir, '.verbo', 'mcp.json');
61
+ const approvalPort = parseInt(process.env.VERBO_APPROVAL_PORT ?? '5050');
62
+ // Recreate worktree (clean up stale from previous run if any)
63
+ // Use spawnSync with argument arrays to avoid shell injection
64
+ try {
65
+ spawnSync('git', ['worktree', 'remove', worktreePath, '--force'], { cwd: projectDir, stdio: 'ignore' });
66
+ }
67
+ catch { }
68
+ try {
69
+ spawnSync('git', ['branch', '-D', branch], { cwd: projectDir, stdio: 'ignore' });
70
+ }
71
+ catch { }
72
+ const worktreeResult = spawnSync('git', ['worktree', 'add', worktreePath, '-b', branch], { cwd: projectDir, stdio: 'pipe' });
73
+ if (worktreeResult.status !== 0) {
74
+ throw new Error(`git worktree add failed: ${worktreeResult.stderr?.toString()}`);
75
+ }
76
+ // Write medium-trust approval hook config
77
+ const claudeDir = path.join(worktreePath, '.claude');
78
+ if (!fs.existsSync(claudeDir))
79
+ fs.mkdirSync(claudeDir, { recursive: true });
80
+ fs.writeFileSync(path.join(claudeDir, 'settings.json'), JSON.stringify({
81
+ hooks: { PreToolUse: [{ matcher: 'Bash|Write', hooks: [{ type: 'http', url: `http://127.0.0.1:${approvalPort}/hooks`, timeout: 300 }] }] },
82
+ }, null, 2));
83
+ const prompt = [
84
+ `You are an autonomous coding agent working on a Verbo subtask.`,
85
+ `Task ID: ${subtask.id}`,
86
+ `Title: ${subtask.title}`,
87
+ subtask.description ? `Description: ${subtask.description}` : '',
88
+ subtask.filePaths?.length ? `Files: ${subtask.filePaths.join(', ')}` : '',
89
+ `\nWorkflow:`,
90
+ `1. Call claim_task with taskId="${subtask.id}"`,
91
+ `2. Call update_progress after each major step`,
92
+ `3. Implement the task`,
93
+ `4. Run: git add -A && git commit -m "feat: ${sanitizeForShell(subtask.title)}"`,
94
+ `5. Call complete_task with a summary`,
95
+ `\nAlways use Verbo MCP tools to communicate progress.`,
96
+ ].filter(Boolean).join('\n');
97
+ const logDir = path.join(projectDir, '.verbo', 'logs');
98
+ if (!fs.existsSync(logDir))
99
+ fs.mkdirSync(logDir, { recursive: true });
100
+ const logStream = fs.createWriteStream(path.join(logDir, `${subtask.id}.log`), { flags: 'a' });
101
+ logStream.write(`--- Subtask agent launched at ${new Date().toISOString()} ---\n`);
102
+ const child = spawn('claude', [
103
+ '-p', prompt,
104
+ '--mcp-config', mcpConfigPath,
105
+ '--output-format', 'stream-json',
106
+ '--allowedTools', 'Read,Glob,Grep,Edit,Write,Bash,mcp__verbo__claim_task,mcp__verbo__update_progress,mcp__verbo__complete_task,mcp__verbo__create_task,mcp__verbo__report_files,mcp__verbo__get_conflicts,mcp__verbo__unclaim_task,mcp__verbo__flag_human_action,mcp__verbo__list_human_actions,mcp__verbo__resolve_human_action,mcp__verbo__report_token_usage,mcp__verbo__spawn_subtask,mcp__verbo__await_subtask,mcp__verbo__list_tasks,mcp__verbo__list_sessions',
107
+ ], { cwd: worktreePath, stdio: ['ignore', 'pipe', 'pipe'] });
108
+ child.stdout?.on('data', (d) => logStream.write(d.toString()));
109
+ child.stderr?.on('data', (d) => logStream.write(`[stderr] ${d.toString()}`));
110
+ child.on('close', (code) => {
111
+ logStream.write(`\n--- Subtask exited with code ${code} at ${new Date().toISOString()} ---\n`);
112
+ logStream.end();
113
+ if (code !== 0)
114
+ tasks.unclaim(subtask.id);
115
+ });
116
+ }
117
+ const mcp = createVerboMcpServer({
118
+ tasks, sessions, detector, humanActions, humanId, rbac,
119
+ projectDir, orchestratorStore,
120
+ costStore, pipelineRunId, budgetPerTaskUsd,
121
+ onSpawnSubtask: async (subtask) => { launchSubtaskAgent(subtask); },
122
+ });
123
+ await mcp.startStdio();
124
+ //# sourceMappingURL=stdio-entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio-entry.js","sourceRoot":"","sources":["../../../src/mcp/stdio-entry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAc,CAAC;AAE1C;;;;GAIG;AACH,SAAS,cAAc;IACrB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;IAC3C,IAAI,KAAK,EAAE,CAAC;QACV,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAA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IAC/B,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI;IACtD,UAAU,EAAE,iBAAiB;IAC7B,SAAS,EAAE,aAAa,EAAE,gBAAgB;IAC1C,cAAc,EAAE,KAAK,EAAE,OAAa,EAAE,EAAE,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CAC1E,CAAC,CAAC;AAEH,MAAM,GAAG,CAAC,UAAU,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Task, TaskStore } from '../core/task-store.js';
2
+ export declare const MAX_SUBTASK_DEPTH = 2;
3
+ export declare function createSubtaskHandlers(tasks: TaskStore, onSpawnSubtask?: (subtask: Task) => void): {
4
+ spawnSubtask: (args: unknown) => Promise<Task>;
5
+ awaitSubtask: (args: unknown) => Promise<Task>;
6
+ };
7
+ //# sourceMappingURL=subtask-handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtask-handlers.d.ts","sourceRoot":"","sources":["../../../src/mcp/subtask-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAI7D,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAMnC,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,EAChB,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,IAAI;yBAEN,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC;yBAqCvB,OAAO,KAAG,OAAO,CAAC,IAAI,CAAC;EAiC1D"}
@@ -0,0 +1,50 @@
1
+ // ---- Constants ----
2
+ export const MAX_SUBTASK_DEPTH = 2;
3
+ const AWAIT_POLL_INTERVAL_MS = 3000;
4
+ const AWAIT_DEFAULT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
5
+ // ---- Factory ----
6
+ export function createSubtaskHandlers(tasks, onSpawnSubtask) {
7
+ async function spawnSubtask(args) {
8
+ const { parentTaskId, title, description, priority, filePaths, autoLaunch } = args;
9
+ const parent = tasks.get(parentTaskId);
10
+ if (!parent) {
11
+ throw new Error(`Parent task not found: ${parentTaskId}`);
12
+ }
13
+ const parentDepth = parent.depth ?? 0;
14
+ if (parentDepth >= MAX_SUBTASK_DEPTH) {
15
+ throw new Error(`Cannot spawn subtask: parent task is at max depth (${MAX_SUBTASK_DEPTH})`);
16
+ }
17
+ const subtask = tasks.create({
18
+ title,
19
+ description,
20
+ priority,
21
+ filePaths,
22
+ parentTaskId,
23
+ });
24
+ if (autoLaunch) {
25
+ onSpawnSubtask?.(subtask);
26
+ }
27
+ return subtask;
28
+ }
29
+ async function awaitSubtask(args) {
30
+ const { subtaskId, timeoutMs } = args;
31
+ const timeout = Math.min(timeoutMs ?? AWAIT_DEFAULT_TIMEOUT_MS, AWAIT_DEFAULT_TIMEOUT_MS);
32
+ const deadline = Date.now() + timeout;
33
+ while (true) {
34
+ const task = tasks.get(subtaskId);
35
+ if (!task) {
36
+ throw new Error(`Subtask not found: ${subtaskId}`);
37
+ }
38
+ if (task.status === 'done') {
39
+ return task;
40
+ }
41
+ const remaining = deadline - Date.now();
42
+ if (remaining <= 0) {
43
+ throw new Error(`Timed out waiting for subtask ${subtaskId} after ${timeout}ms`);
44
+ }
45
+ await new Promise((resolve) => setTimeout(resolve, Math.min(AWAIT_POLL_INTERVAL_MS, remaining)));
46
+ }
47
+ }
48
+ return { spawnSubtask, awaitSubtask };
49
+ }
50
+ //# sourceMappingURL=subtask-handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtask-handlers.js","sourceRoot":"","sources":["../../../src/mcp/subtask-handlers.ts"],"names":[],"mappings":"AAEA,sBAAsB;AAEtB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AACnC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AACpC,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,YAAY;AAE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AC,sBAAsB,SAAS,EAAE,CAAC,CAAC;YACrD,CAAC;YAED,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAC3B,OAAO,IAAI,CAAC;YACd,CAAC;YAED,MAAM,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YACxC,IAAI,SAAS,IAAI,CAAC,EAAE,CAAC;gBACnB,MAAM,IAAI,KAAK,CACb,iCAAiC,SAAS,UAAU,OAAO,IAAI,CAChE,CAAC;YACJ,CAAC;YAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE,CAClC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,sBAAsB,EAAE,SAAS,CAAC,CAAC,CACjE,CAAC;QACJ,CAAC;IACH,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AACxC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export type AuditEventType = 'network_blocked' | 'network_allowed';
2
+ export interface AuditEvent {
3
+ type: AuditEventType;
4
+ host: string;
5
+ port: number;
6
+ method: string;
7
+ timestamp: string;
8
+ }
9
+ export type AuditCallback = (event: AuditEvent) => void;
10
+ export interface NetworkProxyOptions {
11
+ isAllowed: (host: string) => boolean;
12
+ onAuditEvent?: AuditCallback;
13
+ }
14
+ export interface NetworkProxy {
15
+ start(): Promise<number>;
16
+ stop(): Promise<void>;
17
+ port(): number;
18
+ }
19
+ export declare function createNetworkProxy(options: NetworkProxyOptions): NetworkProxy;
20
+ //# sourceMappingURL=network-proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-proxy.d.ts","sourceRoot":"","sources":["../../../src/security/network-proxy.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAEnE,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;AAExD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,IAAI,IAAI,MAAM,CAAC;CAChB;AAID,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY,CAkJ7E"}
@@ -0,0 +1,125 @@
1
+ import http from 'http';
2
+ import net from 'net';
3
+ // ---- Factory ----
4
+ export function createNetworkProxy(options) {
5
+ const { isAllowed, onAuditEvent } = options;
6
+ let server = null;
7
+ let _port = 0;
8
+ function emit(event) {
9
+ onAuditEvent?.(event);
10
+ }
11
+ // Handle HTTPS CONNECT tunneling
12
+ function handleConnect(req, clientSocket, _head) {
13
+ const [host, portStr] = (req.url ?? '').split(':');
14
+ const port = parseInt(portStr ?? '443', 10);
15
+ if (!host || !isAllowed(host)) {
16
+ emit({
17
+ type: 'network_blocked',
18
+ host: host ?? '',
19
+ port,
20
+ method: 'CONNECT',
21
+ timestamp: new Date().toISOString(),
22
+ });
23
+ clientSocket.write('HTTP/1.1 403 Forbidden\r\n\r\n');
24
+ clientSocket.destroy();
25
+ return;
26
+ }
27
+ emit({
28
+ type: 'network_allowed',
29
+ host,
30
+ port,
31
+ method: 'CONNECT',
32
+ timestamp: new Date().toISOString(),
33
+ });
34
+ const serverSocket = net.connect(port, host, () => {
35
+ clientSocket.write('HTTP/1.1 200 Connection Established\r\nProxy-agent: verbo-sandbox\r\n\r\n');
36
+ serverSocket.pipe(clientSocket);
37
+ clientSocket.pipe(serverSocket);
38
+ });
39
+ serverSocket.on('error', () => {
40
+ clientSocket.destroy();
41
+ });
42
+ clientSocket.on('error', () => {
43
+ serverSocket.destroy();
44
+ });
45
+ }
46
+ // Handle plain HTTP proxy requests
47
+ function handleRequest(req, res) {
48
+ let parsedUrl;
49
+ try {
50
+ parsedUrl = new URL(req.url ?? '');
51
+ }
52
+ catch {
53
+ res.writeHead(400);
54
+ res.end('Bad Request');
55
+ return;
56
+ }
57
+ const host = parsedUrl.hostname;
58
+ const port = parseInt(parsedUrl.port || '80', 10);
59
+ const method = req.method ?? 'GET';
60
+ if (!isAllowed(host)) {
61
+ emit({
62
+ type: 'network_blocked',
63
+ host,
64
+ port,
65
+ method,
66
+ timestamp: new Date().toISOString(),
67
+ });
68
+ res.writeHead(403, { 'Content-Type': 'text/plain' });
69
+ res.end(`Forbidden: ${host} is not in the allowed domains list`);
70
+ return;
71
+ }
72
+ emit({ type: 'network_allowed', host, port, method, timestamp: new Date().toISOString() });
73
+ // Strip proxy-specific headers
74
+ const headers = { ...req.headers };
75
+ delete headers['proxy-connection'];
76
+ delete headers['proxy-authorization'];
77
+ const proxyReq = http.request({
78
+ hostname: host,
79
+ port,
80
+ path: parsedUrl.pathname + parsedUrl.search,
81
+ method,
82
+ headers,
83
+ }, (proxyRes) => {
84
+ res.writeHead(proxyRes.statusCode ?? 200, proxyRes.headers);
85
+ proxyRes.pipe(res);
86
+ });
87
+ proxyReq.on('error', () => {
88
+ if (!res.headersSent) {
89
+ res.writeHead(502);
90
+ }
91
+ res.end('Bad Gateway');
92
+ });
93
+ req.pipe(proxyReq);
94
+ }
95
+ return {
96
+ start() {
97
+ return new Promise((resolve, reject) => {
98
+ server = http.createServer(handleRequest);
99
+ server.on('connect', handleConnect);
100
+ server.on('error', reject);
101
+ server.listen(0, '127.0.0.1', () => {
102
+ const addr = server.address();
103
+ _port = addr.port;
104
+ resolve(_port);
105
+ });
106
+ });
107
+ },
108
+ stop() {
109
+ return new Promise((resolve) => {
110
+ if (!server) {
111
+ resolve();
112
+ return;
113
+ }
114
+ const s = server;
115
+ server = null;
116
+ _port = 0;
117
+ s.close(() => resolve());
118
+ });
119
+ },
120
+ port() {
121
+ return _port;
122
+ },
123
+ };
124
+ }
125
+ //# sourceMappingURL=network-proxy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-proxy.js","sourceRoot":"","sources":["../../../src/security/network-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,GAAG,MAAM,KAAK,CAAC;AA2BtB,oBAAoB;AAEpB,MAAM,UAAU,kBAAkB,CAAC,OAA4B;IAC7D,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IAC5C,IAAI,MAAM,GAAuB,IAAI,CAAC;IACtC,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,SAAS,IAAI,CAAC,KAAiB;QAC7B,YAAY,EAAE,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,iCAAiC;IACjC,SAAS,aAAa,CACpB,GAAyB,EACzB,YAAwB,EACxB,KAAa;QAEb,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnD,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,KAAK,EAAE,EAAE,CAAC,CAAC;QAE5C,IAAI,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC;gBACH,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,IAAI,IAAI,EAAE;gBAChB,IAAI;gBACJ,MAAM,EAAE,SAAS;gBACjB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACpC,CAAC,CAAC;YACH,YAAY,CAAC,KAAK,CAAC,gCAAgC,CAAC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C,GAAG,CAAC,CAAC;YACrB,CAAC;YACD,GAAG,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACL,KAAK;YACH,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;gBAC1C,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;gBACpC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBAC3B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE;oBACjC,MAAM,IAAI,GAAG,MAAO,CAAC,OAAO,EAAqB,CAAC;oBAClD,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC;oBAClB,OAAO,CAAC,KAAK,CAAC,CAAC;gBACjB,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QAED,IAAI;YACF,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;oBACZ,OAAO,EAAE,CAAC;oBACV,OAAO;gBACT,CAAC;gBACD,MAAM,CAAC,GAAG,MAAM,CAAC;gBACjB,MAAM,GAAG,IAAI,CAAC;gBACd,KAAK,GAAG,CAAC,CAAC;gBACV,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC,CAAC;YAC3B,CAAC,CAAC,CAAC;QACL,CAAC;QAED,IAAI;YACF,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type AuditCallback } from './network-proxy.js';
2
+ export interface NetworkSandboxOptions {
3
+ /** Explicit domain allowlist. If omitted, read from VERBO.md on start(). */
4
+ allowedDomains?: string[];
5
+ onAuditEvent?: AuditCallback;
6
+ }
7
+ export interface NetworkSandbox {
8
+ /** Start the proxy. Reads allowed_domains from VERBO.md if projectDir given. */
9
+ start(projectDir?: string): Promise<number>;
10
+ stop(): Promise<void>;
11
+ /** Returns true if host is in the allowlist (wildcard-aware). */
12
+ isAllowed(host: string): boolean;
13
+ /** Returns HTTP_PROXY/HTTPS_PROXY env vars pointing at the running proxy. */
14
+ getProxyEnv(): Record<string, string>;
15
+ }
16
+ export declare function createNetworkSandbox(options?: NetworkSandboxOptions): NetworkSandbox;
17
+ /** Parse `allowed_domains` from the `## Security` section of a VERBO.md string. */
18
+ export declare function parseAllowedDomains(content: string): string[];
19
+ //# sourceMappingURL=network-sandbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-sandbox.d.ts","sourceRoot":"","sources":["../../../src/security/network-sandbox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyC,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI/F,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,KAAK,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,iEAAiE;IACjE,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,6EAA6E;IAC7E,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAID,wBAAgB,oBAAoB,CAAC,OAAO,GAAE,qBAA0B,GAAG,cAAc,CA6DxF;AAWD,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAsB7D"}
@@ -0,0 +1,100 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import { createNetworkProxy } from './network-proxy.js';
4
+ // ---- Factory ----
5
+ export function createNetworkSandbox(options = {}) {
6
+ let proxy = null;
7
+ let _allowedDomains = options.allowedDomains ?? [];
8
+ function matchDomain(pattern, host) {
9
+ if (pattern === host)
10
+ return true;
11
+ // Wildcard prefix: *.example.com matches sub.example.com and example.com
12
+ if (pattern.startsWith('*.')) {
13
+ const suffix = pattern.slice(1); // '.example.com'
14
+ return host === suffix.slice(1) || host.endsWith(suffix);
15
+ }
16
+ return false;
17
+ }
18
+ function isAllowed(host) {
19
+ // Empty allowlist = sandbox enabled but nothing permitted — block all (default-deny)
20
+ if (_allowedDomains.length === 0)
21
+ return false;
22
+ for (const pattern of _allowedDomains) {
23
+ if (matchDomain(pattern, host))
24
+ return true;
25
+ }
26
+ return false;
27
+ }
28
+ return {
29
+ async start(projectDir) {
30
+ // Load allowed_domains from VERBO.md unless caller provided an explicit list
31
+ if (options.allowedDomains === undefined && projectDir) {
32
+ _allowedDomains = readAllowedDomains(projectDir);
33
+ }
34
+ proxy = createNetworkProxy({ isAllowed, onAuditEvent: options.onAuditEvent });
35
+ return proxy.start();
36
+ },
37
+ async stop() {
38
+ if (proxy) {
39
+ await proxy.stop();
40
+ proxy = null;
41
+ }
42
+ },
43
+ isAllowed,
44
+ getProxyEnv() {
45
+ if (!proxy)
46
+ return {};
47
+ const p = proxy.port();
48
+ const url = `http://127.0.0.1:${p}`;
49
+ return {
50
+ HTTP_PROXY: url,
51
+ HTTPS_PROXY: url,
52
+ http_proxy: url,
53
+ https_proxy: url,
54
+ // Never proxy loopback — keeps MCP server and approval server reachable
55
+ NO_PROXY: '127.0.0.1,localhost',
56
+ no_proxy: '127.0.0.1,localhost',
57
+ };
58
+ },
59
+ };
60
+ }
61
+ // ---- VERBO.md parsing helpers ----
62
+ function readAllowedDomains(projectDir) {
63
+ const verboMdPath = path.join(projectDir, 'VERBO.md');
64
+ if (!fs.existsSync(verboMdPath))
65
+ return [];
66
+ const content = fs.readFileSync(verboMdPath, 'utf-8');
67
+ return parseAllowedDomains(content);
68
+ }
69
+ /** Parse `allowed_domains` from the `## Security` section of a VERBO.md string. */
70
+ export function parseAllowedDomains(content) {
71
+ let inSecurity = false;
72
+ for (const line of content.split('\n')) {
73
+ const sectionMatch = line.match(/^## (.+)/);
74
+ if (sectionMatch) {
75
+ inSecurity = sectionMatch[1].trim().toLowerCase() === 'security';
76
+ continue;
77
+ }
78
+ if (!inSecurity)
79
+ continue;
80
+ const kvMatch = line.match(/^(\w[\w_]*)\s*:\s*(.+)/);
81
+ if (!kvMatch)
82
+ continue;
83
+ const [, key, value] = kvMatch;
84
+ if (key.trim() === 'allowed_domains') {
85
+ return parseArrayValue(value.trim());
86
+ }
87
+ }
88
+ return [];
89
+ }
90
+ function parseArrayValue(value) {
91
+ const trimmed = value.trim();
92
+ const inner = trimmed.startsWith('[') && trimmed.endsWith(']')
93
+ ? trimmed.slice(1, -1)
94
+ : trimmed;
95
+ return inner
96
+ .split(',')
97
+ .map((s) => s.trim().replace(/^['"]|['"]$/g, ''))
98
+ .filter(Boolean);
99
+ }
100
+ //# sourceMappingURL=network-sandbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network-sandbox.js","sourceRoot":"","sources":["../../../src/security/network-sandbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAyC,MAAM,oBAAoB,CAAC;AAoB/F,oBAAoB;AAEpB,MAAM,UAAU,oBAAoB,CAAC,UAAiC,EAAE;IACtE,IAAI,KAAK,GAAwB,IAAI,CAAC;IACtC,IAAI,eAAe,GAAa,OAAO,CAAC,cAAc,IAAI,EAAE,CAAC;IAE7D,SAAS,WAAW,CAAC,OAAe,EAAE,IAAY;QAChD,IAAI,OAAO,KAAK,IAAI;YA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,CAAC,IAAI,EAAE,KAAK,iBAAiB,EAAE,CAAC;YACrC,OAAO,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,eAAe,CAAC,KAAa;IACpC,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC5D,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACtB,CAAC,CAAC,OAAO,CAAC;IACZ,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;SAChD,MAAM,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Sanitise a string so it is safe to embed inside a double-quoted shell
3
+ * argument (e.g. `git commit -m "feat: <sanitised>"`).
4
+ *
5
+ * Uses an **allowlist** approach: only characters known to be harmless inside
6
+ * double-quoted strings are kept. Everything else is stripped.
7
+ *
8
+ * Allowed characters: letters, digits, spaces, hyphens, underscores,
9
+ * brackets `[](){}`, dots, colons, hash, forward slashes, commas, and
10
+ * common accented Latin characters (for Portuguese/Spanish task titles).
11
+ */
12
+ export declare function sanitizeForShell(raw: string): string;
13
+ //# sourceMappingURL=sanitize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitize.d.ts","sourceRoot":"","sources":["../../../src/security/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMpD"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Sanitise a string so it is safe to embed inside a double-quoted shell
3
+ * argument (e.g. `git commit -m "feat: <sanitised>"`).
4
+ *
5
+ * Uses an **allowlist** approach: only characters known to be harmless inside
6
+ * double-quoted strings are kept. Everything else is stripped.
7
+ *
8
+ * Allowed characters: letters, digits, spaces, hyphens, underscores,
9
+ * brackets `[](){}`, dots, colons, hash, forward slashes, commas, and
10
+ * common accented Latin characters (for Portuguese/Spanish task titles).
11
+ */
12
+ export function sanitizeForShell(raw) {
13
+ // Allowlist: keep only safe characters
14
+ // eslint-disable-next-line no-control-regex
15
+ const cleaned = raw.replace(/[^a-zA-Z0-9 \-_\[\]().{}:#/,\u00C0-\u024F]/g, '');
16
+ // Collapse multiple spaces and trim
17
+ return cleaned.replace(/\s{2,}/g, ' ').trim();
18
+ }
19
+ //# sourceMappingURL=sanitize.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sanitize.js","sourceRoot":"","sources":["../../../src/security/sanitize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,uCAAuC;IACvC,4CAA4C;IAC5C,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,6CAA6C,EAAE,EAAE,CAAC,CAAC;IAC/E,oCAAoC;IACpC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;AAChD,CAAC"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Secrets pattern library — 54 RegExp patterns compiled at module load.
3
+ *
4
+ * Covers: AWS, GitHub, Stripe, private keys, .env, JWT, connection strings,
5
+ * Google/GCP, Azure, Slack, Twilio, email services, package registries,
6
+ * Supabase, hosting providers, and generic credential patterns.
7
+ *
8
+ * All patterns include the `g` flag. When reusing a pattern across multiple
9
+ * inputs, reset `pattern.lastIndex = 0` between calls, or use
10
+ * `String.prototype.match()` / `matchAll()` which reset it automatically.
11
+ */
12
+ export type Severity = 'critical' | 'high' | 'medium' | 'low';
13
+ export type Category = 'aws' | 'github' | 'stripe' | 'private-key' | 'dotenv' | 'jwt' | 'connection-string' | 'google' | 'azure' | 'slack' | 'twilio' | 'email' | 'registry' | 'supabase' | 'hosting' | 'generic';
14
+ export interface SecretPattern {
15
+ id: string;
16
+ name: string;
17
+ category: Category;
18
+ /** Pre-compiled at module load. Includes `g` (and sometimes `i`/`m`) flags. */
19
+ pattern: RegExp;
20
+ severity: Severity;
21
+ }
22
+ export declare const SECRET_PATTERNS: readonly SecretPattern[];
23
+ /** Total number of patterns — must equal 54. */
24
+ export declare const PATTERN_COUNT: number;
25
+ /** Patterns grouped by category, built once at module load. */
26
+ export declare const PATTERNS_BY_CATEGORY: ReadonlyMap<Category, readonly SecretPattern[]>;
27
+ /** Patterns grouped by severity, built once at module load. */
28
+ export declare const PATTERNS_BY_SEVERITY: ReadonlyMap<Severity, readonly SecretPattern[]>;
29
+ //# sourceMappingURL=secrets-patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets-patterns.d.ts","sourceRoot":"","sources":["../../../src/security/secrets-patterns.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE9D,MAAM,MAAM,QAAQ,GAChB,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,KAAK,GACL,mBAAmB,GACnB,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,OAAO,GACP,UAAU,GACV,UAAU,GACV,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAkbnD,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,aAAa,QAAyB,CAAC;AAEpD,+DAA+D;AAC/D,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAQ7E,CAAC;AAEL,+DAA+D;AAC/D,eAAO,MAAM,oBAAoB,EAAE,WAAW,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAQ7E,CAAC"}