@elie-laloum/outpost 11.1.3 → 11.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -0
  3. package/SECURITY.md +5 -1
  4. package/dist/adapters/agents/antigravity/antigravity-adapter.js +9 -0
  5. package/dist/adapters/agents/antigravity/antigravity-adapter.js.map +1 -1
  6. package/dist/adapters/agents/antigravity/antigravity-hook-plan.d.ts +3 -0
  7. package/dist/adapters/agents/antigravity/antigravity-hook-plan.js +39 -0
  8. package/dist/adapters/agents/antigravity/antigravity-hook-plan.js.map +1 -0
  9. package/dist/adapters/agents/antigravity/antigravity-hooks.constants.d.ts +3 -0
  10. package/dist/adapters/agents/antigravity/antigravity-hooks.constants.js +394 -0
  11. package/dist/adapters/agents/antigravity/antigravity-hooks.constants.js.map +1 -0
  12. package/dist/adapters/agents/antigravity/antigravity-hooks.d.ts +2 -0
  13. package/dist/adapters/agents/antigravity/antigravity-hooks.js +6 -0
  14. package/dist/adapters/agents/antigravity/antigravity-hooks.js.map +1 -0
  15. package/dist/adapters/agents/antigravity/antigravity-hooks.types.d.ts +114 -0
  16. package/dist/adapters/agents/antigravity/antigravity-hooks.types.js +2 -0
  17. package/dist/adapters/agents/antigravity/antigravity-hooks.types.js.map +1 -0
  18. package/dist/adapters/agents/antigravity/antigravity.types.d.ts +1 -0
  19. package/dist/adapters/agents/antigravity/antigravity.types.js.map +1 -1
  20. package/dist/adapters/agents/authentication.js +1 -0
  21. package/dist/adapters/agents/authentication.js.map +1 -1
  22. package/dist/adapters/agents/claude/claude-adapter.js +15 -0
  23. package/dist/adapters/agents/claude/claude-adapter.js.map +1 -1
  24. package/dist/adapters/agents/claude/claude-hook-plan.constants.d.ts +1 -0
  25. package/dist/adapters/agents/claude/claude-hook-plan.constants.js +20 -0
  26. package/dist/adapters/agents/claude/claude-hook-plan.constants.js.map +1 -0
  27. package/dist/adapters/agents/claude/claude-hook-plan.d.ts +4 -0
  28. package/dist/adapters/agents/claude/claude-hook-plan.js +60 -0
  29. package/dist/adapters/agents/claude/claude-hook-plan.js.map +1 -0
  30. package/dist/adapters/agents/claude/claude-hooks.constants.d.ts +3 -0
  31. package/dist/adapters/agents/claude/claude-hooks.constants.js +2968 -0
  32. package/dist/adapters/agents/claude/claude-hooks.constants.js.map +1 -0
  33. package/dist/adapters/agents/claude/claude-hooks.d.ts +2 -0
  34. package/dist/adapters/agents/claude/claude-hooks.js +6 -0
  35. package/dist/adapters/agents/claude/claude-hooks.js.map +1 -0
  36. package/dist/adapters/agents/claude/claude-hooks.types.d.ts +900 -0
  37. package/dist/adapters/agents/claude/claude-hooks.types.js +2 -0
  38. package/dist/adapters/agents/claude/claude-hooks.types.js.map +1 -0
  39. package/dist/adapters/agents/claude/claude-profile.d.ts +1 -0
  40. package/dist/adapters/agents/claude/claude-profile.js +23 -11
  41. package/dist/adapters/agents/claude/claude-profile.js.map +1 -1
  42. package/dist/adapters/agents/codex/codex-adapter.js +17 -1
  43. package/dist/adapters/agents/codex/codex-adapter.js.map +1 -1
  44. package/dist/adapters/agents/codex/codex-authentication.js +1 -0
  45. package/dist/adapters/agents/codex/codex-authentication.js.map +1 -1
  46. package/dist/adapters/agents/codex/codex-conversations.constants.d.ts +1 -0
  47. package/dist/adapters/agents/codex/codex-conversations.constants.js +2 -0
  48. package/dist/adapters/agents/codex/codex-conversations.constants.js.map +1 -0
  49. package/dist/adapters/agents/codex/codex-conversations.js +8 -5
  50. package/dist/adapters/agents/codex/codex-conversations.js.map +1 -1
  51. package/dist/adapters/agents/codex/codex-hook-plan.d.ts +3 -0
  52. package/dist/adapters/agents/codex/codex-hook-plan.js +72 -0
  53. package/dist/adapters/agents/codex/codex-hook-plan.js.map +1 -0
  54. package/dist/adapters/agents/codex/codex-hooks.constants.d.ts +3 -0
  55. package/dist/adapters/agents/codex/codex-hooks.constants.js +942 -0
  56. package/dist/adapters/agents/codex/codex-hooks.constants.js.map +1 -0
  57. package/dist/adapters/agents/codex/codex-hooks.d.ts +2 -0
  58. package/dist/adapters/agents/codex/codex-hooks.js +6 -0
  59. package/dist/adapters/agents/codex/codex-hooks.js.map +1 -0
  60. package/dist/adapters/agents/codex/codex-hooks.types.d.ts +255 -0
  61. package/dist/adapters/agents/codex/codex-hooks.types.js +2 -0
  62. package/dist/adapters/agents/codex/codex-hooks.types.js.map +1 -0
  63. package/dist/adapters/agents/codex/codex-provider.js +2 -2
  64. package/dist/adapters/agents/codex/codex-provider.js.map +1 -1
  65. package/dist/adapters/agents/copilot/copilot-adapter.js +14 -0
  66. package/dist/adapters/agents/copilot/copilot-adapter.js.map +1 -1
  67. package/dist/adapters/agents/copilot/copilot-hook-plan.d.ts +3 -0
  68. package/dist/adapters/agents/copilot/copilot-hook-plan.js +26 -0
  69. package/dist/adapters/agents/copilot/copilot-hook-plan.js.map +1 -0
  70. package/dist/adapters/agents/copilot/copilot-hooks.constants.d.ts +3 -0
  71. package/dist/adapters/agents/copilot/copilot-hooks.constants.js +528 -0
  72. package/dist/adapters/agents/copilot/copilot-hooks.constants.js.map +1 -0
  73. package/dist/adapters/agents/copilot/copilot-hooks.d.ts +2 -0
  74. package/dist/adapters/agents/copilot/copilot-hooks.js +6 -0
  75. package/dist/adapters/agents/copilot/copilot-hooks.js.map +1 -0
  76. package/dist/adapters/agents/copilot/copilot-hooks.types.d.ts +166 -0
  77. package/dist/adapters/agents/copilot/copilot-hooks.types.js +2 -0
  78. package/dist/adapters/agents/copilot/copilot-hooks.types.js.map +1 -0
  79. package/dist/adapters/agents/copilot/copilot.types.d.ts +1 -0
  80. package/dist/adapters/agents/copilot/copilot.types.js.map +1 -1
  81. package/dist/adapters/agents/hook-groups.d.ts +2 -0
  82. package/dist/adapters/agents/hook-groups.js +17 -0
  83. package/dist/adapters/agents/hook-groups.js.map +1 -0
  84. package/dist/adapters/agents/kimi/kimi-adapter.js +16 -1
  85. package/dist/adapters/agents/kimi/kimi-adapter.js.map +1 -1
  86. package/dist/adapters/agents/kimi/kimi-hook-plan.d.ts +3 -0
  87. package/dist/adapters/agents/kimi/kimi-hook-plan.js +33 -0
  88. package/dist/adapters/agents/kimi/kimi-hook-plan.js.map +1 -0
  89. package/dist/adapters/agents/kimi/kimi-hooks.constants.d.ts +3 -0
  90. package/dist/adapters/agents/kimi/kimi-hooks.constants.js +747 -0
  91. package/dist/adapters/agents/kimi/kimi-hooks.constants.js.map +1 -0
  92. package/dist/adapters/agents/kimi/kimi-hooks.d.ts +2 -0
  93. package/dist/adapters/agents/kimi/kimi-hooks.js +6 -0
  94. package/dist/adapters/agents/kimi/kimi-hooks.js.map +1 -0
  95. package/dist/adapters/agents/kimi/kimi-hooks.types.d.ts +226 -0
  96. package/dist/adapters/agents/kimi/kimi-hooks.types.js +2 -0
  97. package/dist/adapters/agents/kimi/kimi-hooks.types.js.map +1 -0
  98. package/dist/adapters/agents/kimi/kimi-request.js +2 -0
  99. package/dist/adapters/agents/kimi/kimi-request.js.map +1 -1
  100. package/dist/adapters/agents/kimi/kimi.constants.d.ts +1 -0
  101. package/dist/adapters/agents/kimi/kimi.constants.js +1 -0
  102. package/dist/adapters/agents/kimi/kimi.constants.js.map +1 -1
  103. package/dist/adapters/agents/kimi/kimi.types.d.ts +1 -0
  104. package/dist/adapters/agents/kimi/kimi.types.js.map +1 -1
  105. package/dist/adapters/agents/native-hooks.d.ts +4 -0
  106. package/dist/adapters/agents/native-hooks.js +63 -0
  107. package/dist/adapters/agents/native-hooks.js.map +1 -0
  108. package/dist/adapters/agents/native-hooks.types.d.ts +22 -0
  109. package/dist/adapters/agents/native-hooks.types.js +2 -0
  110. package/dist/adapters/agents/native-hooks.types.js.map +1 -0
  111. package/dist/adapters/agents/settings.types.d.ts +2 -0
  112. package/dist/adapters/agents/settings.types.js.map +1 -1
  113. package/dist/adapters/decisions/system-one-provider.constants.d.ts +1 -1
  114. package/dist/adapters/decisions/system-one-provider.constants.js +1 -1
  115. package/dist/adapters/decisions/system-one-provider.constants.js.map +1 -1
  116. package/dist/adapters/decisions/system-one-provider.js +8 -21
  117. package/dist/adapters/decisions/system-one-provider.js.map +1 -1
  118. package/dist/adapters/models/anthropic-model-provider.constants.d.ts +1 -0
  119. package/dist/adapters/models/anthropic-model-provider.constants.js +4 -0
  120. package/dist/adapters/models/anthropic-model-provider.constants.js.map +1 -1
  121. package/dist/adapters/models/anthropic-model-provider.js +7 -1
  122. package/dist/adapters/models/anthropic-model-provider.js.map +1 -1
  123. package/dist/adapters/models/http-failure.d.ts +3 -0
  124. package/dist/adapters/models/http-failure.js +43 -0
  125. package/dist/adapters/models/http-failure.js.map +1 -0
  126. package/dist/adapters/models/http-provider.js +14 -20
  127. package/dist/adapters/models/http-provider.js.map +1 -1
  128. package/dist/adapters/models/model-protocol.types.d.ts +1 -0
  129. package/dist/adapters/models/model-protocol.types.js.map +1 -1
  130. package/dist/adapters/models/model.constants.d.ts +2 -0
  131. package/dist/adapters/models/model.constants.js +17 -0
  132. package/dist/adapters/models/model.constants.js.map +1 -1
  133. package/dist/adapters/models/openai-chat-stream.js +3 -1
  134. package/dist/adapters/models/openai-chat-stream.js.map +1 -1
  135. package/dist/adapters/models/openai-responses.js +4 -0
  136. package/dist/adapters/models/openai-responses.js.map +1 -1
  137. package/dist/adapters/secrets/aws.js +5 -4
  138. package/dist/adapters/secrets/aws.js.map +1 -1
  139. package/dist/adapters/secrets/azure.constants.d.ts +1 -0
  140. package/dist/adapters/secrets/azure.constants.js +2 -0
  141. package/dist/adapters/secrets/azure.constants.js.map +1 -0
  142. package/dist/adapters/secrets/azure.js +2 -1
  143. package/dist/adapters/secrets/azure.js.map +1 -1
  144. package/dist/adapters/secrets/gcp.constants.d.ts +1 -0
  145. package/dist/adapters/secrets/gcp.constants.js +2 -0
  146. package/dist/adapters/secrets/gcp.constants.js.map +1 -0
  147. package/dist/adapters/secrets/gcp.js +11 -9
  148. package/dist/adapters/secrets/gcp.js.map +1 -1
  149. package/dist/adapters/secrets/infisical.js +3 -2
  150. package/dist/adapters/secrets/infisical.js.map +1 -1
  151. package/dist/adapters/secrets/onepassword.constants.d.ts +1 -0
  152. package/dist/adapters/secrets/onepassword.constants.js +2 -0
  153. package/dist/adapters/secrets/onepassword.constants.js.map +1 -0
  154. package/dist/adapters/secrets/onepassword.js +2 -1
  155. package/dist/adapters/secrets/onepassword.js.map +1 -1
  156. package/dist/adapters/secrets/secret-source.js +3 -1
  157. package/dist/adapters/secrets/secret-source.js.map +1 -1
  158. package/dist/adapters/secrets/vault-response.js +5 -5
  159. package/dist/adapters/secrets/vault-response.js.map +1 -1
  160. package/dist/adapters/secrets/vault.js +4 -3
  161. package/dist/adapters/secrets/vault.js.map +1 -1
  162. package/dist/adapters/testing/scripted-agent.d.ts +3 -1
  163. package/dist/adapters/testing/scripted-agent.js +3 -1
  164. package/dist/adapters/testing/scripted-agent.js.map +1 -1
  165. package/dist/adapters/tools/edit-tools.js +3 -3
  166. package/dist/adapters/tools/edit-tools.js.map +1 -1
  167. package/dist/adapters/tools/git-tools.js +16 -1
  168. package/dist/adapters/tools/git-tools.js.map +1 -1
  169. package/dist/adapters/tools/mcp-launcher.constants.d.ts +1 -1
  170. package/dist/adapters/tools/mcp-launcher.constants.js +29 -7
  171. package/dist/adapters/tools/mcp-launcher.constants.js.map +1 -1
  172. package/dist/adapters/tools/mcp-resources.js +5 -1
  173. package/dist/adapters/tools/mcp-resources.js.map +1 -1
  174. package/dist/adapters/tools/mcp.constants.d.ts +0 -6
  175. package/dist/adapters/tools/mcp.constants.js +0 -6
  176. package/dist/adapters/tools/mcp.constants.js.map +1 -1
  177. package/dist/adapters/tools/mcp.js +1 -0
  178. package/dist/adapters/tools/mcp.js.map +1 -1
  179. package/dist/adapters/tools/sandbox-files.constants.d.ts +1 -0
  180. package/dist/adapters/tools/sandbox-files.constants.js +17 -0
  181. package/dist/adapters/tools/sandbox-files.constants.js.map +1 -0
  182. package/dist/adapters/tools/sandbox-files.d.ts +1 -0
  183. package/dist/adapters/tools/sandbox-files.js +14 -1
  184. package/dist/adapters/tools/sandbox-files.js.map +1 -1
  185. package/dist/adapters/tools/tools.constants.js +1 -0
  186. package/dist/adapters/tools/tools.constants.js.map +1 -1
  187. package/dist/adapters/triggers/github-webhook.js +14 -11
  188. package/dist/adapters/triggers/github-webhook.js.map +1 -1
  189. package/dist/adapters/triggers/gitlab-webhook.js +16 -13
  190. package/dist/adapters/triggers/gitlab-webhook.js.map +1 -1
  191. package/dist/adapters/triggers/slack-request.js +10 -7
  192. package/dist/adapters/triggers/slack-request.js.map +1 -1
  193. package/dist/adapters/triggers/standard-webhook.js +10 -7
  194. package/dist/adapters/triggers/standard-webhook.js.map +1 -1
  195. package/dist/application/agent-authentication.js +4 -1
  196. package/dist/application/agent-authentication.js.map +1 -1
  197. package/dist/application/agent-turn.js +20 -5
  198. package/dist/application/agent-turn.js.map +1 -1
  199. package/dist/application/cli-hooks.constants.d.ts +2 -0
  200. package/dist/application/cli-hooks.constants.js +69 -0
  201. package/dist/application/cli-hooks.constants.js.map +1 -0
  202. package/dist/application/cli-hooks.d.ts +3 -0
  203. package/dist/application/cli-hooks.js +168 -0
  204. package/dist/application/cli-hooks.js.map +1 -0
  205. package/dist/application/cli-steering.js +33 -2
  206. package/dist/application/cli-steering.js.map +1 -1
  207. package/dist/application/custom-turn.js +10 -1
  208. package/dist/application/custom-turn.js.map +1 -1
  209. package/dist/application/diagnostic-probe.d.ts +1 -1
  210. package/dist/application/diagnostic-probe.js +7 -3
  211. package/dist/application/diagnostic-probe.js.map +1 -1
  212. package/dist/application/dispatch-observation.js +4 -0
  213. package/dist/application/dispatch-observation.js.map +1 -1
  214. package/dist/application/doctor-agent.d.ts +1 -1
  215. package/dist/application/doctor-agent.js +2 -2
  216. package/dist/application/doctor-agent.js.map +1 -1
  217. package/dist/application/doctor-deadline.d.ts +1 -0
  218. package/dist/application/doctor-deadline.js +10 -0
  219. package/dist/application/doctor-deadline.js.map +1 -0
  220. package/dist/application/doctor-image.js +9 -7
  221. package/dist/application/doctor-image.js.map +1 -1
  222. package/dist/application/doctor-sandbox.js +4 -4
  223. package/dist/application/doctor-sandbox.js.map +1 -1
  224. package/dist/application/doctor.constants.d.ts +2 -0
  225. package/dist/application/doctor.constants.js +2 -0
  226. package/dist/application/doctor.constants.js.map +1 -1
  227. package/dist/application/doctor.js +12 -8
  228. package/dist/application/doctor.js.map +1 -1
  229. package/dist/application/doctor.types.d.ts +2 -0
  230. package/dist/application/doctor.types.js.map +1 -1
  231. package/dist/application/file-sandbox.js +49 -11
  232. package/dist/application/file-sandbox.js.map +1 -1
  233. package/dist/application/harness-context.js +4 -2
  234. package/dist/application/harness-context.js.map +1 -1
  235. package/dist/application/harness-hook-transforms.d.ts +8 -0
  236. package/dist/application/harness-hook-transforms.js +115 -0
  237. package/dist/application/harness-hook-transforms.js.map +1 -0
  238. package/dist/application/harness-hooks.d.ts +5 -3
  239. package/dist/application/harness-hooks.js +37 -50
  240. package/dist/application/harness-hooks.js.map +1 -1
  241. package/dist/application/harness-loop.d.ts +2 -1
  242. package/dist/application/harness-loop.js +95 -21
  243. package/dist/application/harness-loop.js.map +1 -1
  244. package/dist/application/harness-subagent.d.ts +1 -1
  245. package/dist/application/harness-subagent.js +63 -12
  246. package/dist/application/harness-subagent.js.map +1 -1
  247. package/dist/application/harness.types.d.ts +3 -0
  248. package/dist/application/harness.types.js.map +1 -1
  249. package/dist/application/hook-invocation.d.ts +4 -0
  250. package/dist/application/hook-invocation.js +59 -0
  251. package/dist/application/hook-invocation.js.map +1 -0
  252. package/dist/application/queue-worker.js +51 -9
  253. package/dist/application/queue-worker.js.map +1 -1
  254. package/dist/application/queue-worker.types.d.ts +1 -0
  255. package/dist/application/queue-worker.types.js.map +1 -1
  256. package/dist/application/recipes/native-schemas.constants.js +1439 -218
  257. package/dist/application/recipes/native-schemas.constants.js.map +1 -1
  258. package/dist/application/recovery-inspection.js +4 -1
  259. package/dist/application/recovery-inspection.js.map +1 -1
  260. package/dist/application/remote-download.js +15 -5
  261. package/dist/application/remote-download.js.map +1 -1
  262. package/dist/application/remote-paths.d.ts +1 -0
  263. package/dist/application/remote-paths.js +7 -0
  264. package/dist/application/remote-paths.js.map +1 -0
  265. package/dist/application/remote-validation.js +40 -9
  266. package/dist/application/remote-validation.js.map +1 -1
  267. package/dist/application/remote-workspace.js +17 -2
  268. package/dist/application/remote-workspace.js.map +1 -1
  269. package/dist/application/repetition-watchdog.js +3 -1
  270. package/dist/application/repetition-watchdog.js.map +1 -1
  271. package/dist/application/sandbox-attach.js +38 -9
  272. package/dist/application/sandbox-attach.js.map +1 -1
  273. package/dist/application/sandbox-dispatch.js +7 -1
  274. package/dist/application/sandbox-dispatch.js.map +1 -1
  275. package/dist/application/schedules.js +2 -0
  276. package/dist/application/schedules.js.map +1 -1
  277. package/dist/application/secrets.js +4 -0
  278. package/dist/application/secrets.js.map +1 -1
  279. package/dist/application/tool-execution.js +28 -8
  280. package/dist/application/tool-execution.js.map +1 -1
  281. package/dist/application/transport-retention.js +3 -3
  282. package/dist/application/transport-retention.js.map +1 -1
  283. package/dist/application/workspace-fingerprint.d.ts +1 -0
  284. package/dist/application/workspace-fingerprint.js +19 -4
  285. package/dist/application/workspace-fingerprint.js.map +1 -1
  286. package/dist/cli/doctor-command.js +12 -2
  287. package/dist/cli/doctor-command.js.map +1 -1
  288. package/dist/cli/image.js +2 -0
  289. package/dist/cli/image.js.map +1 -1
  290. package/dist/cli/main.constants.d.ts +14 -2
  291. package/dist/cli/main.constants.js +27 -1
  292. package/dist/cli/main.constants.js.map +1 -1
  293. package/dist/cli/project-settings.js +7 -1
  294. package/dist/cli/project-settings.js.map +1 -1
  295. package/dist/cli/recipe-yaml.js +8 -0
  296. package/dist/cli/recipe-yaml.js.map +1 -1
  297. package/dist/cli/recovery-command.js +3 -0
  298. package/dist/cli/recovery-command.js.map +1 -1
  299. package/dist/cli/recovery-unlock-command.d.ts +2 -0
  300. package/dist/cli/recovery-unlock-command.js +19 -0
  301. package/dist/cli/recovery-unlock-command.js.map +1 -0
  302. package/dist/cli/scaffold-files.js +4 -1
  303. package/dist/cli/scaffold-files.js.map +1 -1
  304. package/dist/cli/scaffold-validation.js +3 -0
  305. package/dist/cli/scaffold-validation.js.map +1 -1
  306. package/dist/cli/scaffold.js +2 -0
  307. package/dist/cli/scaffold.js.map +1 -1
  308. package/dist/domain/agent-hook.types.d.ts +28 -0
  309. package/dist/domain/agent-hook.types.js +2 -0
  310. package/dist/domain/agent-hook.types.js.map +1 -0
  311. package/dist/domain/agent-profile-hooks.d.ts +2 -0
  312. package/dist/domain/agent-profile-hooks.js +52 -0
  313. package/dist/domain/agent-profile-hooks.js.map +1 -0
  314. package/dist/domain/agent-profile-permissions.js +11 -1
  315. package/dist/domain/agent-profile-permissions.js.map +1 -1
  316. package/dist/domain/agent-profile.constants.d.ts +1 -0
  317. package/dist/domain/agent-profile.constants.js +9 -0
  318. package/dist/domain/agent-profile.constants.js.map +1 -1
  319. package/dist/domain/agent-profile.js +6 -1
  320. package/dist/domain/agent-profile.js.map +1 -1
  321. package/dist/domain/agent-profile.types.d.ts +11 -0
  322. package/dist/domain/agent-profile.types.js.map +1 -1
  323. package/dist/domain/agent.types.d.ts +2 -0
  324. package/dist/domain/agent.types.js.map +1 -1
  325. package/dist/domain/container-image.d.ts +1 -0
  326. package/dist/domain/container-image.js +8 -0
  327. package/dist/domain/container-image.js.map +1 -0
  328. package/dist/domain/context.constants.d.ts +1 -0
  329. package/dist/domain/context.constants.js +1 -0
  330. package/dist/domain/context.constants.js.map +1 -1
  331. package/dist/domain/context.js +6 -1
  332. package/dist/domain/context.js.map +1 -1
  333. package/dist/domain/egress.js +6 -1
  334. package/dist/domain/egress.js.map +1 -1
  335. package/dist/domain/glob.js +1 -1
  336. package/dist/domain/glob.js.map +1 -1
  337. package/dist/domain/harness.js +4 -1
  338. package/dist/domain/harness.js.map +1 -1
  339. package/dist/domain/hook-command.d.ts +2 -0
  340. package/dist/domain/hook-command.js +26 -0
  341. package/dist/domain/hook-command.js.map +1 -0
  342. package/dist/domain/hook-command.types.d.ts +7 -0
  343. package/dist/domain/hook-command.types.js +2 -0
  344. package/dist/domain/hook-command.types.js.map +1 -0
  345. package/dist/domain/hook-decision.d.ts +2 -0
  346. package/dist/domain/hook-decision.js +38 -0
  347. package/dist/domain/hook-decision.js.map +1 -0
  348. package/dist/domain/hook.constants.d.ts +3 -0
  349. package/dist/domain/hook.constants.js +31 -1
  350. package/dist/domain/hook.constants.js.map +1 -1
  351. package/dist/domain/hook.js +49 -5
  352. package/dist/domain/hook.js.map +1 -1
  353. package/dist/domain/hook.types.d.ts +82 -5
  354. package/dist/domain/hook.types.js.map +1 -1
  355. package/dist/domain/mcp-server.constants.d.ts +6 -0
  356. package/dist/domain/mcp-server.constants.js +6 -0
  357. package/dist/domain/mcp-server.constants.js.map +1 -1
  358. package/dist/domain/mcp-server.js +1 -0
  359. package/dist/domain/mcp-server.js.map +1 -1
  360. package/dist/domain/permissions.types.d.ts +1 -0
  361. package/dist/domain/permissions.types.js.map +1 -1
  362. package/dist/domain/pricing.js +4 -2
  363. package/dist/domain/pricing.js.map +1 -1
  364. package/dist/domain/redaction.js +6 -3
  365. package/dist/domain/redaction.js.map +1 -1
  366. package/dist/domain/secret-fault.d.ts +4 -0
  367. package/dist/domain/secret-fault.js +11 -0
  368. package/dist/domain/secret-fault.js.map +1 -0
  369. package/dist/domain/secrets.js +3 -2
  370. package/dist/domain/secrets.js.map +1 -1
  371. package/dist/domain/steering.js +2 -0
  372. package/dist/domain/steering.js.map +1 -1
  373. package/dist/domain/steering.types.d.ts +1 -1
  374. package/dist/domain/steering.types.js.map +1 -1
  375. package/dist/domain/transport.js +5 -1
  376. package/dist/domain/transport.js.map +1 -1
  377. package/dist/domain/trigger-payload.d.ts +4 -0
  378. package/dist/domain/trigger-payload.js +15 -0
  379. package/dist/domain/trigger-payload.js.map +1 -0
  380. package/dist/domain/workflow/checkpoint.js +19 -2
  381. package/dist/domain/workflow/checkpoint.js.map +1 -1
  382. package/dist/domain/workflow/retry.constants.d.ts +1 -0
  383. package/dist/domain/workflow/retry.constants.js +1 -0
  384. package/dist/domain/workflow/retry.constants.js.map +1 -1
  385. package/dist/domain/workflow/retry.js +6 -2
  386. package/dist/domain/workflow/retry.js.map +1 -1
  387. package/dist/domain/workflow/task-runner.js +5 -3
  388. package/dist/domain/workflow/task-runner.js.map +1 -1
  389. package/dist/domain/workflow/workflow-state.js +2 -1
  390. package/dist/domain/workflow/workflow-state.js.map +1 -1
  391. package/dist/domain/workflow.types.d.ts +1 -0
  392. package/dist/domain/workflow.types.js.map +1 -1
  393. package/dist/index.d.ts +15 -1
  394. package/dist/index.js +6 -0
  395. package/dist/index.js.map +1 -1
  396. package/dist/infrastructure/conversations/transcript-store.js +32 -5
  397. package/dist/infrastructure/conversations/transcript-store.js.map +1 -1
  398. package/dist/infrastructure/files.d.ts +1 -0
  399. package/dist/infrastructure/files.js +8 -4
  400. package/dist/infrastructure/files.js.map +1 -1
  401. package/dist/infrastructure/git/integration-candidate.js +3 -2
  402. package/dist/infrastructure/git/integration-candidate.js.map +1 -1
  403. package/dist/infrastructure/git/lock-recovery.d.ts +3 -0
  404. package/dist/infrastructure/git/lock-recovery.js +58 -0
  405. package/dist/infrastructure/git/lock-recovery.js.map +1 -0
  406. package/dist/infrastructure/git/lock-recovery.types.d.ts +11 -0
  407. package/dist/infrastructure/git/lock-recovery.types.js +2 -0
  408. package/dist/infrastructure/git/lock-recovery.types.js.map +1 -0
  409. package/dist/infrastructure/git/managed-worktree.js +5 -8
  410. package/dist/infrastructure/git/managed-worktree.js.map +1 -1
  411. package/dist/infrastructure/git/verification-command.js +35 -30
  412. package/dist/infrastructure/git/verification-command.js.map +1 -1
  413. package/dist/infrastructure/git/workspace-lease.js +12 -5
  414. package/dist/infrastructure/git/workspace-lease.js.map +1 -1
  415. package/dist/infrastructure/hook-configuration.constants.d.ts +1 -0
  416. package/dist/infrastructure/hook-configuration.constants.js +59 -0
  417. package/dist/infrastructure/hook-configuration.constants.js.map +1 -0
  418. package/dist/infrastructure/hook-configuration.d.ts +3 -0
  419. package/dist/infrastructure/hook-configuration.js +16 -0
  420. package/dist/infrastructure/hook-configuration.js.map +1 -0
  421. package/dist/infrastructure/hook-configuration.types.d.ts +14 -0
  422. package/dist/infrastructure/hook-configuration.types.js +2 -0
  423. package/dist/infrastructure/hook-configuration.types.js.map +1 -0
  424. package/dist/infrastructure/http-transport.constants.d.ts +1 -0
  425. package/dist/infrastructure/http-transport.constants.js +14 -0
  426. package/dist/infrastructure/http-transport.constants.js.map +1 -0
  427. package/dist/infrastructure/http-transport.d.ts +7 -0
  428. package/dist/infrastructure/http-transport.js +19 -0
  429. package/dist/infrastructure/http-transport.js.map +1 -0
  430. package/dist/infrastructure/input-failure.d.ts +4 -0
  431. package/dist/infrastructure/input-failure.js +14 -0
  432. package/dist/infrastructure/input-failure.js.map +1 -0
  433. package/dist/infrastructure/inspection-file.d.ts +1 -0
  434. package/dist/infrastructure/inspection-file.js +8 -2
  435. package/dist/infrastructure/inspection-file.js.map +1 -1
  436. package/dist/infrastructure/local-transport.js +16 -11
  437. package/dist/infrastructure/local-transport.js.map +1 -1
  438. package/dist/infrastructure/process.constants.d.ts +1 -0
  439. package/dist/infrastructure/process.constants.js +1 -0
  440. package/dist/infrastructure/process.constants.js.map +1 -1
  441. package/dist/infrastructure/process.d.ts +1 -0
  442. package/dist/infrastructure/process.js +48 -8
  443. package/dist/infrastructure/process.js.map +1 -1
  444. package/dist/infrastructure/reservation-ledger.d.ts +2 -0
  445. package/dist/infrastructure/reservation-ledger.js +84 -0
  446. package/dist/infrastructure/reservation-ledger.js.map +1 -0
  447. package/dist/infrastructure/reservation-recovery.d.ts +4 -0
  448. package/dist/infrastructure/reservation-recovery.js +28 -0
  449. package/dist/infrastructure/reservation-recovery.js.map +1 -0
  450. package/dist/infrastructure/s3-tombstones.d.ts +3 -0
  451. package/dist/infrastructure/s3-tombstones.js +46 -0
  452. package/dist/infrastructure/s3-tombstones.js.map +1 -0
  453. package/dist/infrastructure/s3-tombstones.types.d.ts +6 -0
  454. package/dist/infrastructure/s3-tombstones.types.js +2 -0
  455. package/dist/infrastructure/s3-tombstones.types.js.map +1 -0
  456. package/dist/infrastructure/s3-transport.d.ts +2 -0
  457. package/dist/infrastructure/s3-transport.js +4 -2
  458. package/dist/infrastructure/s3-transport.js.map +1 -1
  459. package/dist/infrastructure/sse.js +6 -3
  460. package/dist/infrastructure/sse.js.map +1 -1
  461. package/dist/infrastructure/task-queue-bullmq-connection.d.ts +3 -0
  462. package/dist/infrastructure/task-queue-bullmq-connection.js +32 -0
  463. package/dist/infrastructure/task-queue-bullmq-connection.js.map +1 -0
  464. package/dist/infrastructure/task-queue-bullmq-connection.types.d.ts +8 -0
  465. package/dist/infrastructure/task-queue-bullmq-connection.types.js +2 -0
  466. package/dist/infrastructure/task-queue-bullmq-connection.types.js.map +1 -0
  467. package/dist/infrastructure/task-queue-bullmq-resources.js +21 -15
  468. package/dist/infrastructure/task-queue-bullmq-resources.js.map +1 -1
  469. package/dist/infrastructure/task-queue-bullmq-state.d.ts +1 -0
  470. package/dist/infrastructure/task-queue-bullmq-state.js +1 -0
  471. package/dist/infrastructure/task-queue-bullmq-state.js.map +1 -1
  472. package/dist/infrastructure/task-queue-bullmq.constants.d.ts +2 -1
  473. package/dist/infrastructure/task-queue-bullmq.constants.js +2 -1
  474. package/dist/infrastructure/task-queue-bullmq.constants.js.map +1 -1
  475. package/dist/infrastructure/task-queue-bullmq.js +10 -1
  476. package/dist/infrastructure/task-queue-bullmq.js.map +1 -1
  477. package/dist/infrastructure/task-queue.js +13 -4
  478. package/dist/infrastructure/task-queue.js.map +1 -1
  479. package/dist/infrastructure/transfer-copy.d.ts +1 -0
  480. package/dist/infrastructure/transfer-copy.js +16 -1
  481. package/dist/infrastructure/transfer-copy.js.map +1 -1
  482. package/dist/infrastructure/transport-archive.d.ts +3 -3
  483. package/dist/infrastructure/transport-archive.js +71 -48
  484. package/dist/infrastructure/transport-archive.js.map +1 -1
  485. package/dist/infrastructure/transport-archive.types.d.ts +3 -0
  486. package/dist/infrastructure/transport-archive.types.js.map +1 -1
  487. package/dist/infrastructure/transport-checkpoint.js +14 -4
  488. package/dist/infrastructure/transport-checkpoint.js.map +1 -1
  489. package/dist/infrastructure/transport-envelope.d.ts +1 -0
  490. package/dist/infrastructure/transport-envelope.js +22 -5
  491. package/dist/infrastructure/transport-envelope.js.map +1 -1
  492. package/dist/infrastructure/transport-reservations.constants.d.ts +2 -0
  493. package/dist/infrastructure/transport-reservations.constants.js +3 -0
  494. package/dist/infrastructure/transport-reservations.constants.js.map +1 -0
  495. package/dist/infrastructure/transport-reservations.d.ts +1 -2
  496. package/dist/infrastructure/transport-reservations.js +18 -22
  497. package/dist/infrastructure/transport-reservations.js.map +1 -1
  498. package/dist/infrastructure/transport-reservations.types.d.ts +23 -2
  499. package/dist/infrastructure/transport-reservations.types.js.map +1 -1
  500. package/dist/infrastructure/trigger-server.js +12 -9
  501. package/dist/infrastructure/trigger-server.js.map +1 -1
  502. package/dist/infrastructure/trigger-server.types.d.ts +1 -1
  503. package/dist/infrastructure/trigger-server.types.js.map +1 -1
  504. package/dist/infrastructure/workflow-checkpoint.constants.d.ts +1 -0
  505. package/dist/infrastructure/workflow-checkpoint.constants.js +1 -0
  506. package/dist/infrastructure/workflow-checkpoint.constants.js.map +1 -1
  507. package/dist/infrastructure/workspace-lock.constants.d.ts +2 -1
  508. package/dist/infrastructure/workspace-lock.constants.js +2 -1
  509. package/dist/infrastructure/workspace-lock.constants.js.map +1 -1
  510. package/dist/infrastructure/workspace-lock.js +48 -10
  511. package/dist/infrastructure/workspace-lock.js.map +1 -1
  512. package/dist/providers/cloud-cache.js +14 -9
  513. package/dist/providers/cloud-cache.js.map +1 -1
  514. package/dist/providers/cloud-cache.types.d.ts +1 -0
  515. package/dist/providers/cloud-cache.types.js.map +1 -1
  516. package/dist/providers/cloud-files.js +3 -4
  517. package/dist/providers/cloud-files.js.map +1 -1
  518. package/dist/providers/cloud-input.constants.d.ts +2 -2
  519. package/dist/providers/cloud-input.constants.js +2 -1
  520. package/dist/providers/cloud-input.constants.js.map +1 -1
  521. package/dist/providers/cloud-input.d.ts +2 -2
  522. package/dist/providers/cloud-input.js +14 -3
  523. package/dist/providers/cloud-input.js.map +1 -1
  524. package/dist/providers/container-command.js +30 -5
  525. package/dist/providers/container-command.js.map +1 -1
  526. package/dist/providers/container-egress.constants.d.ts +7 -0
  527. package/dist/providers/container-egress.constants.js +8 -0
  528. package/dist/providers/container-egress.constants.js.map +1 -0
  529. package/dist/providers/container-egress.d.ts +7 -0
  530. package/dist/providers/container-egress.js +101 -0
  531. package/dist/providers/container-egress.js.map +1 -0
  532. package/dist/providers/container-files.js +10 -11
  533. package/dist/providers/container-files.js.map +1 -1
  534. package/dist/providers/container-mounts.js +3 -0
  535. package/dist/providers/container-mounts.js.map +1 -1
  536. package/dist/providers/container-network.js +16 -1
  537. package/dist/providers/container-network.js.map +1 -1
  538. package/dist/providers/container-plan.js +7 -10
  539. package/dist/providers/container-plan.js.map +1 -1
  540. package/dist/providers/container-recovery.js +8 -3
  541. package/dist/providers/container-recovery.js.map +1 -1
  542. package/dist/providers/container.js +36 -5
  543. package/dist/providers/container.js.map +1 -1
  544. package/dist/providers/container.types.d.ts +1 -0
  545. package/dist/providers/container.types.js.map +1 -1
  546. package/dist/providers/daytona-command.constants.js +4 -1
  547. package/dist/providers/daytona-command.constants.js.map +1 -1
  548. package/dist/providers/daytona-command.js +39 -16
  549. package/dist/providers/daytona-command.js.map +1 -1
  550. package/dist/providers/daytona-files.js +5 -5
  551. package/dist/providers/daytona-files.js.map +1 -1
  552. package/dist/providers/daytona-output.js +11 -3
  553. package/dist/providers/daytona-output.js.map +1 -1
  554. package/dist/providers/daytona.js +11 -9
  555. package/dist/providers/daytona.js.map +1 -1
  556. package/dist/providers/egress/address.d.ts +3 -0
  557. package/dist/providers/egress/address.js +26 -0
  558. package/dist/providers/egress/address.js.map +1 -0
  559. package/dist/providers/egress/egress.constants.d.ts +22 -0
  560. package/dist/providers/egress/egress.constants.js +23 -0
  561. package/dist/providers/egress/egress.constants.js.map +1 -0
  562. package/dist/providers/egress/egress.types.d.ts +11 -0
  563. package/dist/providers/egress/egress.types.js +2 -0
  564. package/dist/providers/egress/egress.types.js.map +1 -0
  565. package/dist/providers/egress/firewall.d.ts +3 -0
  566. package/dist/providers/egress/firewall.js +29 -0
  567. package/dist/providers/egress/firewall.js.map +1 -0
  568. package/dist/providers/egress/main.d.ts +1 -0
  569. package/dist/providers/egress/main.js +90 -0
  570. package/dist/providers/egress/main.js.map +1 -0
  571. package/dist/providers/egress/policy.d.ts +5 -0
  572. package/dist/providers/egress/policy.js +54 -0
  573. package/dist/providers/egress/policy.js.map +1 -0
  574. package/dist/providers/egress/proxy.d.ts +2 -0
  575. package/dist/providers/egress/proxy.js +129 -0
  576. package/dist/providers/egress/proxy.js.map +1 -0
  577. package/dist/providers/egress/tls-hello.d.ts +1 -0
  578. package/dist/providers/egress/tls-hello.js +75 -0
  579. package/dist/providers/egress/tls-hello.js.map +1 -0
  580. package/dist/providers/firecracker-command.js +12 -6
  581. package/dist/providers/firecracker-command.js.map +1 -1
  582. package/dist/providers/local-files.d.ts +2 -0
  583. package/dist/providers/local-files.js +24 -0
  584. package/dist/providers/local-files.js.map +1 -0
  585. package/dist/providers/local.js +2 -20
  586. package/dist/providers/local.js.map +1 -1
  587. package/dist/providers/vercel-command.js +33 -9
  588. package/dist/providers/vercel-command.js.map +1 -1
  589. package/dist/providers/vercel.js +11 -9
  590. package/dist/providers/vercel.js.map +1 -1
  591. package/dist/testing.d.ts +1 -1
  592. package/dist/testing.js +1 -1
  593. package/dist/testing.js.map +1 -1
  594. package/package.json +2 -2
  595. package/recipe-configuration.schema.json +2164 -35
  596. package/recipe.schema.json +2512 -404
@@ -0,0 +1,2968 @@
1
+ export const claudeHookSchemas = {
2
+ SessionStart: {
3
+ input: {
4
+ type: "object",
5
+ properties: {
6
+ session_id: {
7
+ type: "string",
8
+ },
9
+ transcript_path: {
10
+ type: "string",
11
+ },
12
+ cwd: {
13
+ type: "string",
14
+ },
15
+ hook_event_name: {
16
+ type: "string",
17
+ enum: ["SessionStart"],
18
+ },
19
+ permission_mode: {
20
+ type: "string",
21
+ },
22
+ prompt_id: {
23
+ type: "string",
24
+ },
25
+ scratchpad_dir: {
26
+ type: "string",
27
+ },
28
+ agent_id: {
29
+ type: "string",
30
+ },
31
+ agent_type: {
32
+ type: "string",
33
+ },
34
+ effort: {
35
+ type: "object",
36
+ properties: {
37
+ level: {
38
+ type: "string",
39
+ },
40
+ },
41
+ required: ["level"],
42
+ additionalProperties: false,
43
+ },
44
+ source: {
45
+ type: "string",
46
+ },
47
+ model: {
48
+ type: "string",
49
+ },
50
+ session_title: {
51
+ type: "string",
52
+ },
53
+ },
54
+ required: ["session_id", "cwd", "hook_event_name"],
55
+ additionalProperties: true,
56
+ },
57
+ output: {
58
+ type: "object",
59
+ properties: {
60
+ continue: {
61
+ type: "boolean",
62
+ },
63
+ stopReason: {
64
+ type: "string",
65
+ },
66
+ suppressOutput: {
67
+ type: "boolean",
68
+ },
69
+ systemMessage: {
70
+ type: "string",
71
+ },
72
+ hookSpecificOutput: {
73
+ type: "object",
74
+ properties: {
75
+ hookEventName: {
76
+ type: "string",
77
+ enum: ["SessionStart"],
78
+ },
79
+ additionalContext: {
80
+ type: "string",
81
+ },
82
+ initialUserMessage: {
83
+ type: "string",
84
+ },
85
+ sessionTitle: {
86
+ type: "string",
87
+ },
88
+ watchPaths: {
89
+ type: "array",
90
+ items: {
91
+ type: "string",
92
+ },
93
+ },
94
+ reloadSkills: {
95
+ type: "boolean",
96
+ },
97
+ },
98
+ required: ["hookEventName"],
99
+ additionalProperties: false,
100
+ },
101
+ terminalSequence: {
102
+ type: "string",
103
+ },
104
+ },
105
+ required: [],
106
+ additionalProperties: false,
107
+ },
108
+ text: true,
109
+ },
110
+ Setup: {
111
+ input: {
112
+ type: "object",
113
+ properties: {
114
+ session_id: {
115
+ type: "string",
116
+ },
117
+ transcript_path: {
118
+ type: "string",
119
+ },
120
+ cwd: {
121
+ type: "string",
122
+ },
123
+ hook_event_name: {
124
+ type: "string",
125
+ enum: ["Setup"],
126
+ },
127
+ permission_mode: {
128
+ type: "string",
129
+ },
130
+ prompt_id: {
131
+ type: "string",
132
+ },
133
+ scratchpad_dir: {
134
+ type: "string",
135
+ },
136
+ agent_id: {
137
+ type: "string",
138
+ },
139
+ agent_type: {
140
+ type: "string",
141
+ },
142
+ effort: {
143
+ type: "object",
144
+ properties: {
145
+ level: {
146
+ type: "string",
147
+ },
148
+ },
149
+ required: ["level"],
150
+ additionalProperties: false,
151
+ },
152
+ trigger: {
153
+ type: "string",
154
+ },
155
+ },
156
+ required: ["session_id", "cwd", "hook_event_name"],
157
+ additionalProperties: true,
158
+ },
159
+ output: {
160
+ type: "object",
161
+ properties: {
162
+ terminalSequence: {
163
+ type: "string",
164
+ },
165
+ },
166
+ required: [],
167
+ additionalProperties: false,
168
+ },
169
+ },
170
+ UserPromptSubmit: {
171
+ input: {
172
+ type: "object",
173
+ properties: {
174
+ session_id: {
175
+ type: "string",
176
+ },
177
+ transcript_path: {
178
+ type: "string",
179
+ },
180
+ cwd: {
181
+ type: "string",
182
+ },
183
+ hook_event_name: {
184
+ type: "string",
185
+ enum: ["UserPromptSubmit"],
186
+ },
187
+ permission_mode: {
188
+ type: "string",
189
+ },
190
+ prompt_id: {
191
+ type: "string",
192
+ },
193
+ scratchpad_dir: {
194
+ type: "string",
195
+ },
196
+ agent_id: {
197
+ type: "string",
198
+ },
199
+ agent_type: {
200
+ type: "string",
201
+ },
202
+ effort: {
203
+ type: "object",
204
+ properties: {
205
+ level: {
206
+ type: "string",
207
+ },
208
+ },
209
+ required: ["level"],
210
+ additionalProperties: false,
211
+ },
212
+ prompt: {
213
+ type: "string",
214
+ },
215
+ session_title: {
216
+ type: "string",
217
+ },
218
+ },
219
+ required: ["session_id", "cwd", "hook_event_name", "prompt"],
220
+ additionalProperties: true,
221
+ },
222
+ output: {
223
+ type: "object",
224
+ properties: {
225
+ continue: {
226
+ type: "boolean",
227
+ },
228
+ stopReason: {
229
+ type: "string",
230
+ },
231
+ suppressOutput: {
232
+ type: "boolean",
233
+ },
234
+ systemMessage: {
235
+ type: "string",
236
+ },
237
+ decision: {
238
+ type: "string",
239
+ enum: ["block"],
240
+ },
241
+ reason: {
242
+ type: "string",
243
+ },
244
+ hookSpecificOutput: {
245
+ type: "object",
246
+ properties: {
247
+ hookEventName: {
248
+ type: "string",
249
+ enum: ["UserPromptSubmit"],
250
+ },
251
+ additionalContext: {
252
+ type: "string",
253
+ },
254
+ },
255
+ required: ["hookEventName"],
256
+ additionalProperties: false,
257
+ },
258
+ terminalSequence: {
259
+ type: "string",
260
+ },
261
+ },
262
+ required: [],
263
+ additionalProperties: false,
264
+ },
265
+ text: true,
266
+ },
267
+ UserPromptExpansion: {
268
+ input: {
269
+ type: "object",
270
+ properties: {
271
+ session_id: {
272
+ type: "string",
273
+ },
274
+ transcript_path: {
275
+ type: "string",
276
+ },
277
+ cwd: {
278
+ type: "string",
279
+ },
280
+ hook_event_name: {
281
+ type: "string",
282
+ enum: ["UserPromptExpansion"],
283
+ },
284
+ permission_mode: {
285
+ type: "string",
286
+ },
287
+ prompt_id: {
288
+ type: "string",
289
+ },
290
+ scratchpad_dir: {
291
+ type: "string",
292
+ },
293
+ agent_id: {
294
+ type: "string",
295
+ },
296
+ agent_type: {
297
+ type: "string",
298
+ },
299
+ effort: {
300
+ type: "object",
301
+ properties: {
302
+ level: {
303
+ type: "string",
304
+ },
305
+ },
306
+ required: ["level"],
307
+ additionalProperties: false,
308
+ },
309
+ prompt: {
310
+ type: "string",
311
+ },
312
+ expansion_type: {
313
+ type: "string",
314
+ },
315
+ command_name: {
316
+ type: "string",
317
+ },
318
+ command_args: {
319
+ type: "string",
320
+ },
321
+ command_source: {
322
+ type: "string",
323
+ },
324
+ },
325
+ required: ["session_id", "cwd", "hook_event_name", "prompt"],
326
+ additionalProperties: true,
327
+ },
328
+ output: {
329
+ type: "object",
330
+ properties: {
331
+ continue: {
332
+ type: "boolean",
333
+ },
334
+ stopReason: {
335
+ type: "string",
336
+ },
337
+ suppressOutput: {
338
+ type: "boolean",
339
+ },
340
+ systemMessage: {
341
+ type: "string",
342
+ },
343
+ decision: {
344
+ type: "string",
345
+ enum: ["block"],
346
+ },
347
+ reason: {
348
+ type: "string",
349
+ },
350
+ hookSpecificOutput: {
351
+ type: "object",
352
+ properties: {
353
+ hookEventName: {
354
+ type: "string",
355
+ enum: ["UserPromptExpansion"],
356
+ },
357
+ additionalContext: {
358
+ type: "string",
359
+ },
360
+ },
361
+ required: ["hookEventName"],
362
+ additionalProperties: false,
363
+ },
364
+ terminalSequence: {
365
+ type: "string",
366
+ },
367
+ },
368
+ required: [],
369
+ additionalProperties: false,
370
+ },
371
+ },
372
+ PreToolUse: {
373
+ input: {
374
+ type: "object",
375
+ properties: {
376
+ session_id: {
377
+ type: "string",
378
+ },
379
+ transcript_path: {
380
+ type: "string",
381
+ },
382
+ cwd: {
383
+ type: "string",
384
+ },
385
+ hook_event_name: {
386
+ type: "string",
387
+ enum: ["PreToolUse"],
388
+ },
389
+ permission_mode: {
390
+ type: "string",
391
+ },
392
+ prompt_id: {
393
+ type: "string",
394
+ },
395
+ scratchpad_dir: {
396
+ type: "string",
397
+ },
398
+ agent_id: {
399
+ type: "string",
400
+ },
401
+ agent_type: {
402
+ type: "string",
403
+ },
404
+ effort: {
405
+ type: "object",
406
+ properties: {
407
+ level: {
408
+ type: "string",
409
+ },
410
+ },
411
+ required: ["level"],
412
+ additionalProperties: false,
413
+ },
414
+ tool_name: {
415
+ type: "string",
416
+ },
417
+ tool_input: {
418
+ type: "object",
419
+ },
420
+ tool_use_id: {
421
+ type: "string",
422
+ },
423
+ mcp_server: {
424
+ type: "object",
425
+ },
426
+ },
427
+ required: ["session_id", "cwd", "hook_event_name", "tool_name"],
428
+ additionalProperties: true,
429
+ },
430
+ output: {
431
+ type: "object",
432
+ properties: {
433
+ continue: {
434
+ type: "boolean",
435
+ },
436
+ stopReason: {
437
+ type: "string",
438
+ },
439
+ suppressOutput: {
440
+ type: "boolean",
441
+ },
442
+ systemMessage: {
443
+ type: "string",
444
+ },
445
+ hookSpecificOutput: {
446
+ type: "object",
447
+ properties: {
448
+ hookEventName: {
449
+ type: "string",
450
+ enum: ["PreToolUse"],
451
+ },
452
+ permissionDecision: {
453
+ type: "string",
454
+ enum: ["allow", "deny", "ask", "defer"],
455
+ },
456
+ permissionDecisionReason: {
457
+ type: "string",
458
+ },
459
+ updatedInput: {
460
+ type: "object",
461
+ },
462
+ additionalContext: {
463
+ type: "string",
464
+ },
465
+ },
466
+ required: ["hookEventName"],
467
+ additionalProperties: false,
468
+ },
469
+ terminalSequence: {
470
+ type: "string",
471
+ },
472
+ },
473
+ required: [],
474
+ additionalProperties: false,
475
+ },
476
+ },
477
+ PermissionRequest: {
478
+ input: {
479
+ type: "object",
480
+ properties: {
481
+ session_id: {
482
+ type: "string",
483
+ },
484
+ transcript_path: {
485
+ type: "string",
486
+ },
487
+ cwd: {
488
+ type: "string",
489
+ },
490
+ hook_event_name: {
491
+ type: "string",
492
+ enum: ["PermissionRequest"],
493
+ },
494
+ permission_mode: {
495
+ type: "string",
496
+ },
497
+ prompt_id: {
498
+ type: "string",
499
+ },
500
+ scratchpad_dir: {
501
+ type: "string",
502
+ },
503
+ agent_id: {
504
+ type: "string",
505
+ },
506
+ agent_type: {
507
+ type: "string",
508
+ },
509
+ effort: {
510
+ type: "object",
511
+ properties: {
512
+ level: {
513
+ type: "string",
514
+ },
515
+ },
516
+ required: ["level"],
517
+ additionalProperties: false,
518
+ },
519
+ tool_name: {
520
+ type: "string",
521
+ },
522
+ tool_input: {
523
+ type: "object",
524
+ },
525
+ tool_use_id: {
526
+ type: "string",
527
+ },
528
+ permission_suggestions: {
529
+ type: "array",
530
+ },
531
+ mcp_server: {
532
+ type: "object",
533
+ },
534
+ },
535
+ required: ["session_id", "cwd", "hook_event_name", "tool_name"],
536
+ additionalProperties: true,
537
+ },
538
+ output: {
539
+ type: "object",
540
+ properties: {
541
+ continue: {
542
+ type: "boolean",
543
+ },
544
+ stopReason: {
545
+ type: "string",
546
+ },
547
+ suppressOutput: {
548
+ type: "boolean",
549
+ },
550
+ systemMessage: {
551
+ type: "string",
552
+ },
553
+ hookSpecificOutput: {
554
+ type: "object",
555
+ properties: {
556
+ hookEventName: {
557
+ type: "string",
558
+ enum: ["PermissionRequest"],
559
+ },
560
+ decision: {
561
+ type: "object",
562
+ properties: {
563
+ behavior: {
564
+ type: "string",
565
+ enum: ["allow", "deny"],
566
+ },
567
+ updatedInput: {
568
+ type: "object",
569
+ },
570
+ updatedPermissions: {
571
+ type: "array",
572
+ },
573
+ message: {
574
+ type: "string",
575
+ },
576
+ interrupt: {
577
+ type: "boolean",
578
+ },
579
+ },
580
+ required: ["behavior"],
581
+ additionalProperties: false,
582
+ },
583
+ },
584
+ required: ["hookEventName"],
585
+ additionalProperties: false,
586
+ },
587
+ terminalSequence: {
588
+ type: "string",
589
+ },
590
+ },
591
+ required: [],
592
+ additionalProperties: false,
593
+ },
594
+ },
595
+ PermissionDenied: {
596
+ input: {
597
+ type: "object",
598
+ properties: {
599
+ session_id: {
600
+ type: "string",
601
+ },
602
+ transcript_path: {
603
+ type: "string",
604
+ },
605
+ cwd: {
606
+ type: "string",
607
+ },
608
+ hook_event_name: {
609
+ type: "string",
610
+ enum: ["PermissionDenied"],
611
+ },
612
+ permission_mode: {
613
+ type: "string",
614
+ },
615
+ prompt_id: {
616
+ type: "string",
617
+ },
618
+ scratchpad_dir: {
619
+ type: "string",
620
+ },
621
+ agent_id: {
622
+ type: "string",
623
+ },
624
+ agent_type: {
625
+ type: "string",
626
+ },
627
+ effort: {
628
+ type: "object",
629
+ properties: {
630
+ level: {
631
+ type: "string",
632
+ },
633
+ },
634
+ required: ["level"],
635
+ additionalProperties: false,
636
+ },
637
+ tool_name: {
638
+ type: "string",
639
+ },
640
+ tool_input: {
641
+ type: "object",
642
+ },
643
+ tool_use_id: {
644
+ type: "string",
645
+ },
646
+ reason: {
647
+ type: "string",
648
+ },
649
+ mcp_server: {
650
+ type: "object",
651
+ },
652
+ },
653
+ required: ["session_id", "cwd", "hook_event_name", "tool_name"],
654
+ additionalProperties: true,
655
+ },
656
+ output: {
657
+ type: "object",
658
+ properties: {
659
+ continue: {
660
+ type: "boolean",
661
+ },
662
+ stopReason: {
663
+ type: "string",
664
+ },
665
+ suppressOutput: {
666
+ type: "boolean",
667
+ },
668
+ systemMessage: {
669
+ type: "string",
670
+ },
671
+ hookSpecificOutput: {
672
+ type: "object",
673
+ properties: {
674
+ hookEventName: {
675
+ type: "string",
676
+ enum: ["PermissionDenied"],
677
+ },
678
+ retry: {
679
+ type: "boolean",
680
+ },
681
+ },
682
+ required: ["hookEventName"],
683
+ additionalProperties: false,
684
+ },
685
+ terminalSequence: {
686
+ type: "string",
687
+ },
688
+ },
689
+ required: [],
690
+ additionalProperties: false,
691
+ },
692
+ },
693
+ PostToolUse: {
694
+ input: {
695
+ type: "object",
696
+ properties: {
697
+ session_id: {
698
+ type: "string",
699
+ },
700
+ transcript_path: {
701
+ type: "string",
702
+ },
703
+ cwd: {
704
+ type: "string",
705
+ },
706
+ hook_event_name: {
707
+ type: "string",
708
+ enum: ["PostToolUse"],
709
+ },
710
+ permission_mode: {
711
+ type: "string",
712
+ },
713
+ prompt_id: {
714
+ type: "string",
715
+ },
716
+ scratchpad_dir: {
717
+ type: "string",
718
+ },
719
+ agent_id: {
720
+ type: "string",
721
+ },
722
+ agent_type: {
723
+ type: "string",
724
+ },
725
+ effort: {
726
+ type: "object",
727
+ properties: {
728
+ level: {
729
+ type: "string",
730
+ },
731
+ },
732
+ required: ["level"],
733
+ additionalProperties: false,
734
+ },
735
+ tool_name: {
736
+ type: "string",
737
+ },
738
+ tool_input: {
739
+ type: "object",
740
+ },
741
+ tool_use_id: {
742
+ type: "string",
743
+ },
744
+ tool_response: {},
745
+ mcp_server: {
746
+ type: "object",
747
+ },
748
+ },
749
+ required: ["session_id", "cwd", "hook_event_name", "tool_name"],
750
+ additionalProperties: true,
751
+ },
752
+ output: {
753
+ type: "object",
754
+ properties: {
755
+ continue: {
756
+ type: "boolean",
757
+ },
758
+ stopReason: {
759
+ type: "string",
760
+ },
761
+ suppressOutput: {
762
+ type: "boolean",
763
+ },
764
+ systemMessage: {
765
+ type: "string",
766
+ },
767
+ decision: {
768
+ type: "string",
769
+ enum: ["block"],
770
+ },
771
+ reason: {
772
+ type: "string",
773
+ },
774
+ hookSpecificOutput: {
775
+ type: "object",
776
+ properties: {
777
+ hookEventName: {
778
+ type: "string",
779
+ enum: ["PostToolUse"],
780
+ },
781
+ additionalContext: {
782
+ type: "string",
783
+ },
784
+ classifierContext: {
785
+ type: "string",
786
+ },
787
+ updatedToolOutput: {},
788
+ updatedMCPToolOutput: {},
789
+ },
790
+ required: ["hookEventName"],
791
+ additionalProperties: false,
792
+ },
793
+ terminalSequence: {
794
+ type: "string",
795
+ },
796
+ },
797
+ required: [],
798
+ additionalProperties: false,
799
+ },
800
+ },
801
+ PostToolUseFailure: {
802
+ input: {
803
+ type: "object",
804
+ properties: {
805
+ session_id: {
806
+ type: "string",
807
+ },
808
+ transcript_path: {
809
+ type: "string",
810
+ },
811
+ cwd: {
812
+ type: "string",
813
+ },
814
+ hook_event_name: {
815
+ type: "string",
816
+ enum: ["PostToolUseFailure"],
817
+ },
818
+ permission_mode: {
819
+ type: "string",
820
+ },
821
+ prompt_id: {
822
+ type: "string",
823
+ },
824
+ scratchpad_dir: {
825
+ type: "string",
826
+ },
827
+ agent_id: {
828
+ type: "string",
829
+ },
830
+ agent_type: {
831
+ type: "string",
832
+ },
833
+ effort: {
834
+ type: "object",
835
+ properties: {
836
+ level: {
837
+ type: "string",
838
+ },
839
+ },
840
+ required: ["level"],
841
+ additionalProperties: false,
842
+ },
843
+ tool_name: {
844
+ type: "string",
845
+ },
846
+ tool_input: {
847
+ type: "object",
848
+ },
849
+ tool_use_id: {
850
+ type: "string",
851
+ },
852
+ error: {
853
+ type: "string",
854
+ },
855
+ is_interrupt: {
856
+ type: "boolean",
857
+ },
858
+ mcp_server: {
859
+ type: "object",
860
+ },
861
+ },
862
+ required: ["session_id", "cwd", "hook_event_name", "tool_name"],
863
+ additionalProperties: true,
864
+ },
865
+ output: {
866
+ type: "object",
867
+ properties: {
868
+ continue: {
869
+ type: "boolean",
870
+ },
871
+ stopReason: {
872
+ type: "string",
873
+ },
874
+ suppressOutput: {
875
+ type: "boolean",
876
+ },
877
+ systemMessage: {
878
+ type: "string",
879
+ },
880
+ hookSpecificOutput: {
881
+ type: "object",
882
+ properties: {
883
+ hookEventName: {
884
+ type: "string",
885
+ enum: ["PostToolUseFailure"],
886
+ },
887
+ additionalContext: {
888
+ type: "string",
889
+ },
890
+ },
891
+ required: ["hookEventName"],
892
+ additionalProperties: false,
893
+ },
894
+ terminalSequence: {
895
+ type: "string",
896
+ },
897
+ },
898
+ required: [],
899
+ additionalProperties: false,
900
+ },
901
+ },
902
+ PostToolBatch: {
903
+ input: {
904
+ type: "object",
905
+ properties: {
906
+ session_id: {
907
+ type: "string",
908
+ },
909
+ transcript_path: {
910
+ type: "string",
911
+ },
912
+ cwd: {
913
+ type: "string",
914
+ },
915
+ hook_event_name: {
916
+ type: "string",
917
+ enum: ["PostToolBatch"],
918
+ },
919
+ permission_mode: {
920
+ type: "string",
921
+ },
922
+ prompt_id: {
923
+ type: "string",
924
+ },
925
+ scratchpad_dir: {
926
+ type: "string",
927
+ },
928
+ agent_id: {
929
+ type: "string",
930
+ },
931
+ agent_type: {
932
+ type: "string",
933
+ },
934
+ effort: {
935
+ type: "object",
936
+ properties: {
937
+ level: {
938
+ type: "string",
939
+ },
940
+ },
941
+ required: ["level"],
942
+ additionalProperties: false,
943
+ },
944
+ tool_calls: {
945
+ type: "array",
946
+ items: {
947
+ type: "object",
948
+ properties: {
949
+ tool_name: {
950
+ type: "string",
951
+ },
952
+ tool_input: {
953
+ type: "object",
954
+ },
955
+ tool_use_id: {
956
+ type: "string",
957
+ },
958
+ tool_response: {},
959
+ },
960
+ required: [],
961
+ additionalProperties: true,
962
+ },
963
+ },
964
+ },
965
+ required: ["session_id", "cwd", "hook_event_name"],
966
+ additionalProperties: true,
967
+ },
968
+ output: {
969
+ type: "object",
970
+ properties: {
971
+ continue: {
972
+ type: "boolean",
973
+ },
974
+ stopReason: {
975
+ type: "string",
976
+ },
977
+ suppressOutput: {
978
+ type: "boolean",
979
+ },
980
+ systemMessage: {
981
+ type: "string",
982
+ },
983
+ decision: {
984
+ type: "string",
985
+ enum: ["block"],
986
+ },
987
+ reason: {
988
+ type: "string",
989
+ },
990
+ hookSpecificOutput: {
991
+ type: "object",
992
+ properties: {
993
+ hookEventName: {
994
+ type: "string",
995
+ enum: ["PostToolBatch"],
996
+ },
997
+ additionalContext: {
998
+ type: "string",
999
+ },
1000
+ },
1001
+ required: ["hookEventName"],
1002
+ additionalProperties: false,
1003
+ },
1004
+ terminalSequence: {
1005
+ type: "string",
1006
+ },
1007
+ },
1008
+ required: [],
1009
+ additionalProperties: false,
1010
+ },
1011
+ },
1012
+ Notification: {
1013
+ input: {
1014
+ type: "object",
1015
+ properties: {
1016
+ session_id: {
1017
+ type: "string",
1018
+ },
1019
+ transcript_path: {
1020
+ type: "string",
1021
+ },
1022
+ cwd: {
1023
+ type: "string",
1024
+ },
1025
+ hook_event_name: {
1026
+ type: "string",
1027
+ enum: ["Notification"],
1028
+ },
1029
+ permission_mode: {
1030
+ type: "string",
1031
+ },
1032
+ prompt_id: {
1033
+ type: "string",
1034
+ },
1035
+ scratchpad_dir: {
1036
+ type: "string",
1037
+ },
1038
+ agent_id: {
1039
+ type: "string",
1040
+ },
1041
+ agent_type: {
1042
+ type: "string",
1043
+ },
1044
+ effort: {
1045
+ type: "object",
1046
+ properties: {
1047
+ level: {
1048
+ type: "string",
1049
+ },
1050
+ },
1051
+ required: ["level"],
1052
+ additionalProperties: false,
1053
+ },
1054
+ message: {
1055
+ type: "string",
1056
+ },
1057
+ title: {
1058
+ type: "string",
1059
+ },
1060
+ notification_type: {
1061
+ type: "string",
1062
+ },
1063
+ },
1064
+ required: ["session_id", "cwd", "hook_event_name"],
1065
+ additionalProperties: true,
1066
+ },
1067
+ output: {
1068
+ type: "object",
1069
+ properties: {
1070
+ continue: {
1071
+ type: "boolean",
1072
+ },
1073
+ stopReason: {
1074
+ type: "string",
1075
+ },
1076
+ suppressOutput: {
1077
+ type: "boolean",
1078
+ },
1079
+ systemMessage: {
1080
+ type: "string",
1081
+ },
1082
+ hookSpecificOutput: {
1083
+ type: "object",
1084
+ properties: {
1085
+ hookEventName: {
1086
+ type: "string",
1087
+ enum: ["Notification"],
1088
+ },
1089
+ additionalContext: {
1090
+ type: "string",
1091
+ },
1092
+ },
1093
+ required: ["hookEventName"],
1094
+ additionalProperties: false,
1095
+ },
1096
+ terminalSequence: {
1097
+ type: "string",
1098
+ },
1099
+ },
1100
+ required: [],
1101
+ additionalProperties: false,
1102
+ },
1103
+ },
1104
+ MessageDisplay: {
1105
+ input: {
1106
+ type: "object",
1107
+ properties: {
1108
+ session_id: {
1109
+ type: "string",
1110
+ },
1111
+ transcript_path: {
1112
+ type: "string",
1113
+ },
1114
+ cwd: {
1115
+ type: "string",
1116
+ },
1117
+ hook_event_name: {
1118
+ type: "string",
1119
+ enum: ["MessageDisplay"],
1120
+ },
1121
+ permission_mode: {
1122
+ type: "string",
1123
+ },
1124
+ prompt_id: {
1125
+ type: "string",
1126
+ },
1127
+ scratchpad_dir: {
1128
+ type: "string",
1129
+ },
1130
+ agent_id: {
1131
+ type: "string",
1132
+ },
1133
+ agent_type: {
1134
+ type: "string",
1135
+ },
1136
+ effort: {
1137
+ type: "object",
1138
+ properties: {
1139
+ level: {
1140
+ type: "string",
1141
+ },
1142
+ },
1143
+ required: ["level"],
1144
+ additionalProperties: false,
1145
+ },
1146
+ delta: {
1147
+ type: "string",
1148
+ },
1149
+ turn_id: {
1150
+ type: "string",
1151
+ },
1152
+ message_id: {
1153
+ type: "string",
1154
+ },
1155
+ index: {
1156
+ type: "number",
1157
+ },
1158
+ final: {
1159
+ type: "boolean",
1160
+ },
1161
+ },
1162
+ required: ["session_id", "cwd", "hook_event_name", "delta"],
1163
+ additionalProperties: true,
1164
+ },
1165
+ output: {
1166
+ type: "object",
1167
+ properties: {
1168
+ continue: {
1169
+ type: "boolean",
1170
+ },
1171
+ stopReason: {
1172
+ type: "string",
1173
+ },
1174
+ suppressOutput: {
1175
+ type: "boolean",
1176
+ },
1177
+ systemMessage: {
1178
+ type: "string",
1179
+ },
1180
+ hookSpecificOutput: {
1181
+ type: "object",
1182
+ properties: {
1183
+ hookEventName: {
1184
+ type: "string",
1185
+ enum: ["MessageDisplay"],
1186
+ },
1187
+ displayContent: {
1188
+ type: "string",
1189
+ },
1190
+ },
1191
+ required: ["hookEventName"],
1192
+ additionalProperties: false,
1193
+ },
1194
+ terminalSequence: {
1195
+ type: "string",
1196
+ },
1197
+ },
1198
+ required: [],
1199
+ additionalProperties: false,
1200
+ },
1201
+ },
1202
+ SubagentStart: {
1203
+ input: {
1204
+ type: "object",
1205
+ properties: {
1206
+ session_id: {
1207
+ type: "string",
1208
+ },
1209
+ transcript_path: {
1210
+ type: "string",
1211
+ },
1212
+ cwd: {
1213
+ type: "string",
1214
+ },
1215
+ hook_event_name: {
1216
+ type: "string",
1217
+ enum: ["SubagentStart"],
1218
+ },
1219
+ permission_mode: {
1220
+ type: "string",
1221
+ },
1222
+ prompt_id: {
1223
+ type: "string",
1224
+ },
1225
+ scratchpad_dir: {
1226
+ type: "string",
1227
+ },
1228
+ agent_id: {
1229
+ type: "string",
1230
+ },
1231
+ agent_type: {
1232
+ type: "string",
1233
+ },
1234
+ effort: {
1235
+ type: "object",
1236
+ properties: {
1237
+ level: {
1238
+ type: "string",
1239
+ },
1240
+ },
1241
+ required: ["level"],
1242
+ additionalProperties: false,
1243
+ },
1244
+ },
1245
+ required: ["session_id", "cwd", "hook_event_name"],
1246
+ additionalProperties: true,
1247
+ },
1248
+ output: {
1249
+ type: "object",
1250
+ properties: {
1251
+ continue: {
1252
+ type: "boolean",
1253
+ },
1254
+ stopReason: {
1255
+ type: "string",
1256
+ },
1257
+ suppressOutput: {
1258
+ type: "boolean",
1259
+ },
1260
+ systemMessage: {
1261
+ type: "string",
1262
+ },
1263
+ hookSpecificOutput: {
1264
+ type: "object",
1265
+ properties: {
1266
+ hookEventName: {
1267
+ type: "string",
1268
+ enum: ["SubagentStart"],
1269
+ },
1270
+ additionalContext: {
1271
+ type: "string",
1272
+ },
1273
+ },
1274
+ required: ["hookEventName"],
1275
+ additionalProperties: false,
1276
+ },
1277
+ terminalSequence: {
1278
+ type: "string",
1279
+ },
1280
+ },
1281
+ required: [],
1282
+ additionalProperties: false,
1283
+ },
1284
+ },
1285
+ SubagentStop: {
1286
+ input: {
1287
+ type: "object",
1288
+ properties: {
1289
+ session_id: {
1290
+ type: "string",
1291
+ },
1292
+ transcript_path: {
1293
+ type: "string",
1294
+ },
1295
+ cwd: {
1296
+ type: "string",
1297
+ },
1298
+ hook_event_name: {
1299
+ type: "string",
1300
+ enum: ["SubagentStop"],
1301
+ },
1302
+ permission_mode: {
1303
+ type: "string",
1304
+ },
1305
+ prompt_id: {
1306
+ type: "string",
1307
+ },
1308
+ scratchpad_dir: {
1309
+ type: "string",
1310
+ },
1311
+ agent_id: {
1312
+ type: "string",
1313
+ },
1314
+ agent_type: {
1315
+ type: "string",
1316
+ },
1317
+ effort: {
1318
+ type: "object",
1319
+ properties: {
1320
+ level: {
1321
+ type: "string",
1322
+ },
1323
+ },
1324
+ required: ["level"],
1325
+ additionalProperties: false,
1326
+ },
1327
+ agent_transcript_path: {
1328
+ type: "string",
1329
+ },
1330
+ last_assistant_message: {
1331
+ type: "string",
1332
+ },
1333
+ stop_hook_active: {
1334
+ type: "boolean",
1335
+ },
1336
+ },
1337
+ required: ["session_id", "cwd", "hook_event_name"],
1338
+ additionalProperties: true,
1339
+ },
1340
+ output: {
1341
+ type: "object",
1342
+ properties: {
1343
+ continue: {
1344
+ type: "boolean",
1345
+ },
1346
+ stopReason: {
1347
+ type: "string",
1348
+ },
1349
+ suppressOutput: {
1350
+ type: "boolean",
1351
+ },
1352
+ systemMessage: {
1353
+ type: "string",
1354
+ },
1355
+ decision: {
1356
+ type: "string",
1357
+ enum: ["block"],
1358
+ },
1359
+ reason: {
1360
+ type: "string",
1361
+ },
1362
+ hookSpecificOutput: {
1363
+ type: "object",
1364
+ properties: {
1365
+ hookEventName: {
1366
+ type: "string",
1367
+ enum: ["SubagentStop"],
1368
+ },
1369
+ additionalContext: {
1370
+ type: "string",
1371
+ },
1372
+ },
1373
+ required: ["hookEventName"],
1374
+ additionalProperties: false,
1375
+ },
1376
+ terminalSequence: {
1377
+ type: "string",
1378
+ },
1379
+ },
1380
+ required: [],
1381
+ additionalProperties: false,
1382
+ },
1383
+ },
1384
+ TaskCreated: {
1385
+ input: {
1386
+ type: "object",
1387
+ properties: {
1388
+ session_id: {
1389
+ type: "string",
1390
+ },
1391
+ transcript_path: {
1392
+ type: "string",
1393
+ },
1394
+ cwd: {
1395
+ type: "string",
1396
+ },
1397
+ hook_event_name: {
1398
+ type: "string",
1399
+ enum: ["TaskCreated"],
1400
+ },
1401
+ permission_mode: {
1402
+ type: "string",
1403
+ },
1404
+ prompt_id: {
1405
+ type: "string",
1406
+ },
1407
+ scratchpad_dir: {
1408
+ type: "string",
1409
+ },
1410
+ agent_id: {
1411
+ type: "string",
1412
+ },
1413
+ agent_type: {
1414
+ type: "string",
1415
+ },
1416
+ effort: {
1417
+ type: "object",
1418
+ properties: {
1419
+ level: {
1420
+ type: "string",
1421
+ },
1422
+ },
1423
+ required: ["level"],
1424
+ additionalProperties: false,
1425
+ },
1426
+ task_id: {
1427
+ type: "string",
1428
+ },
1429
+ task_subject: {
1430
+ type: "string",
1431
+ },
1432
+ task_description: {
1433
+ type: "string",
1434
+ },
1435
+ },
1436
+ required: ["session_id", "cwd", "hook_event_name"],
1437
+ additionalProperties: true,
1438
+ },
1439
+ output: {
1440
+ type: "object",
1441
+ properties: {
1442
+ continue: {
1443
+ type: "boolean",
1444
+ },
1445
+ stopReason: {
1446
+ type: "string",
1447
+ },
1448
+ suppressOutput: {
1449
+ type: "boolean",
1450
+ },
1451
+ systemMessage: {
1452
+ type: "string",
1453
+ },
1454
+ decision: {
1455
+ type: "string",
1456
+ enum: ["block"],
1457
+ },
1458
+ reason: {
1459
+ type: "string",
1460
+ },
1461
+ terminalSequence: {
1462
+ type: "string",
1463
+ },
1464
+ },
1465
+ required: [],
1466
+ additionalProperties: false,
1467
+ },
1468
+ },
1469
+ TaskCompleted: {
1470
+ input: {
1471
+ type: "object",
1472
+ properties: {
1473
+ session_id: {
1474
+ type: "string",
1475
+ },
1476
+ transcript_path: {
1477
+ type: "string",
1478
+ },
1479
+ cwd: {
1480
+ type: "string",
1481
+ },
1482
+ hook_event_name: {
1483
+ type: "string",
1484
+ enum: ["TaskCompleted"],
1485
+ },
1486
+ permission_mode: {
1487
+ type: "string",
1488
+ },
1489
+ prompt_id: {
1490
+ type: "string",
1491
+ },
1492
+ scratchpad_dir: {
1493
+ type: "string",
1494
+ },
1495
+ agent_id: {
1496
+ type: "string",
1497
+ },
1498
+ agent_type: {
1499
+ type: "string",
1500
+ },
1501
+ effort: {
1502
+ type: "object",
1503
+ properties: {
1504
+ level: {
1505
+ type: "string",
1506
+ },
1507
+ },
1508
+ required: ["level"],
1509
+ additionalProperties: false,
1510
+ },
1511
+ task_id: {
1512
+ type: "string",
1513
+ },
1514
+ task_subject: {
1515
+ type: "string",
1516
+ },
1517
+ task_description: {
1518
+ type: "string",
1519
+ },
1520
+ teammate_name: {
1521
+ type: "string",
1522
+ },
1523
+ team_name: {
1524
+ type: "string",
1525
+ },
1526
+ },
1527
+ required: ["session_id", "cwd", "hook_event_name"],
1528
+ additionalProperties: true,
1529
+ },
1530
+ output: {
1531
+ type: "object",
1532
+ properties: {
1533
+ continue: {
1534
+ type: "boolean",
1535
+ },
1536
+ stopReason: {
1537
+ type: "string",
1538
+ },
1539
+ terminalSequence: {
1540
+ type: "string",
1541
+ },
1542
+ },
1543
+ required: [],
1544
+ additionalProperties: false,
1545
+ },
1546
+ },
1547
+ Stop: {
1548
+ input: {
1549
+ type: "object",
1550
+ properties: {
1551
+ session_id: {
1552
+ type: "string",
1553
+ },
1554
+ transcript_path: {
1555
+ type: "string",
1556
+ },
1557
+ cwd: {
1558
+ type: "string",
1559
+ },
1560
+ hook_event_name: {
1561
+ type: "string",
1562
+ enum: ["Stop"],
1563
+ },
1564
+ permission_mode: {
1565
+ type: "string",
1566
+ },
1567
+ prompt_id: {
1568
+ type: "string",
1569
+ },
1570
+ scratchpad_dir: {
1571
+ type: "string",
1572
+ },
1573
+ agent_id: {
1574
+ type: "string",
1575
+ },
1576
+ agent_type: {
1577
+ type: "string",
1578
+ },
1579
+ effort: {
1580
+ type: "object",
1581
+ properties: {
1582
+ level: {
1583
+ type: "string",
1584
+ },
1585
+ },
1586
+ required: ["level"],
1587
+ additionalProperties: false,
1588
+ },
1589
+ stop_hook_active: {
1590
+ type: "boolean",
1591
+ },
1592
+ last_assistant_message: {
1593
+ type: "string",
1594
+ },
1595
+ },
1596
+ required: ["session_id", "cwd", "hook_event_name"],
1597
+ additionalProperties: true,
1598
+ },
1599
+ output: {
1600
+ type: "object",
1601
+ properties: {
1602
+ continue: {
1603
+ type: "boolean",
1604
+ },
1605
+ stopReason: {
1606
+ type: "string",
1607
+ },
1608
+ suppressOutput: {
1609
+ type: "boolean",
1610
+ },
1611
+ systemMessage: {
1612
+ type: "string",
1613
+ },
1614
+ decision: {
1615
+ type: "string",
1616
+ enum: ["block"],
1617
+ },
1618
+ reason: {
1619
+ type: "string",
1620
+ },
1621
+ hookSpecificOutput: {
1622
+ type: "object",
1623
+ properties: {
1624
+ hookEventName: {
1625
+ type: "string",
1626
+ enum: ["Stop"],
1627
+ },
1628
+ additionalContext: {
1629
+ type: "string",
1630
+ },
1631
+ },
1632
+ required: ["hookEventName"],
1633
+ additionalProperties: false,
1634
+ },
1635
+ terminalSequence: {
1636
+ type: "string",
1637
+ },
1638
+ },
1639
+ required: [],
1640
+ additionalProperties: false,
1641
+ },
1642
+ },
1643
+ StopFailure: {
1644
+ input: {
1645
+ type: "object",
1646
+ properties: {
1647
+ session_id: {
1648
+ type: "string",
1649
+ },
1650
+ transcript_path: {
1651
+ type: "string",
1652
+ },
1653
+ cwd: {
1654
+ type: "string",
1655
+ },
1656
+ hook_event_name: {
1657
+ type: "string",
1658
+ enum: ["StopFailure"],
1659
+ },
1660
+ permission_mode: {
1661
+ type: "string",
1662
+ },
1663
+ prompt_id: {
1664
+ type: "string",
1665
+ },
1666
+ scratchpad_dir: {
1667
+ type: "string",
1668
+ },
1669
+ agent_id: {
1670
+ type: "string",
1671
+ },
1672
+ agent_type: {
1673
+ type: "string",
1674
+ },
1675
+ effort: {
1676
+ type: "object",
1677
+ properties: {
1678
+ level: {
1679
+ type: "string",
1680
+ },
1681
+ },
1682
+ required: ["level"],
1683
+ additionalProperties: false,
1684
+ },
1685
+ error: {
1686
+ type: "string",
1687
+ },
1688
+ error_details: {
1689
+ type: "string",
1690
+ },
1691
+ last_assistant_message: {
1692
+ type: "string",
1693
+ },
1694
+ },
1695
+ required: ["session_id", "cwd", "hook_event_name"],
1696
+ additionalProperties: true,
1697
+ },
1698
+ output: {
1699
+ type: "object",
1700
+ properties: {
1701
+ terminalSequence: {
1702
+ type: "string",
1703
+ },
1704
+ },
1705
+ required: [],
1706
+ additionalProperties: false,
1707
+ },
1708
+ },
1709
+ TeammateIdle: {
1710
+ input: {
1711
+ type: "object",
1712
+ properties: {
1713
+ session_id: {
1714
+ type: "string",
1715
+ },
1716
+ transcript_path: {
1717
+ type: "string",
1718
+ },
1719
+ cwd: {
1720
+ type: "string",
1721
+ },
1722
+ hook_event_name: {
1723
+ type: "string",
1724
+ enum: ["TeammateIdle"],
1725
+ },
1726
+ permission_mode: {
1727
+ type: "string",
1728
+ },
1729
+ prompt_id: {
1730
+ type: "string",
1731
+ },
1732
+ scratchpad_dir: {
1733
+ type: "string",
1734
+ },
1735
+ agent_id: {
1736
+ type: "string",
1737
+ },
1738
+ agent_type: {
1739
+ type: "string",
1740
+ },
1741
+ effort: {
1742
+ type: "object",
1743
+ properties: {
1744
+ level: {
1745
+ type: "string",
1746
+ },
1747
+ },
1748
+ required: ["level"],
1749
+ additionalProperties: false,
1750
+ },
1751
+ teammate_name: {
1752
+ type: "string",
1753
+ },
1754
+ team_name: {
1755
+ type: "string",
1756
+ },
1757
+ },
1758
+ required: ["session_id", "cwd", "hook_event_name"],
1759
+ additionalProperties: true,
1760
+ },
1761
+ output: {
1762
+ type: "object",
1763
+ properties: {
1764
+ continue: {
1765
+ type: "boolean",
1766
+ },
1767
+ stopReason: {
1768
+ type: "string",
1769
+ },
1770
+ terminalSequence: {
1771
+ type: "string",
1772
+ },
1773
+ },
1774
+ required: [],
1775
+ additionalProperties: false,
1776
+ },
1777
+ },
1778
+ InstructionsLoaded: {
1779
+ input: {
1780
+ type: "object",
1781
+ properties: {
1782
+ session_id: {
1783
+ type: "string",
1784
+ },
1785
+ transcript_path: {
1786
+ type: "string",
1787
+ },
1788
+ cwd: {
1789
+ type: "string",
1790
+ },
1791
+ hook_event_name: {
1792
+ type: "string",
1793
+ enum: ["InstructionsLoaded"],
1794
+ },
1795
+ permission_mode: {
1796
+ type: "string",
1797
+ },
1798
+ prompt_id: {
1799
+ type: "string",
1800
+ },
1801
+ scratchpad_dir: {
1802
+ type: "string",
1803
+ },
1804
+ agent_id: {
1805
+ type: "string",
1806
+ },
1807
+ agent_type: {
1808
+ type: "string",
1809
+ },
1810
+ effort: {
1811
+ type: "object",
1812
+ properties: {
1813
+ level: {
1814
+ type: "string",
1815
+ },
1816
+ },
1817
+ required: ["level"],
1818
+ additionalProperties: false,
1819
+ },
1820
+ file_path: {
1821
+ type: "string",
1822
+ },
1823
+ memory_type: {
1824
+ type: "string",
1825
+ },
1826
+ load_reason: {
1827
+ type: "string",
1828
+ },
1829
+ globs: {
1830
+ type: "array",
1831
+ items: {
1832
+ type: "string",
1833
+ },
1834
+ },
1835
+ trigger_file_path: {
1836
+ type: "string",
1837
+ },
1838
+ parent_file_path: {
1839
+ type: "string",
1840
+ },
1841
+ },
1842
+ required: ["session_id", "cwd", "hook_event_name"],
1843
+ additionalProperties: true,
1844
+ },
1845
+ output: {
1846
+ type: "object",
1847
+ properties: {
1848
+ terminalSequence: {
1849
+ type: "string",
1850
+ },
1851
+ },
1852
+ required: [],
1853
+ additionalProperties: false,
1854
+ },
1855
+ },
1856
+ ConfigChange: {
1857
+ input: {
1858
+ type: "object",
1859
+ properties: {
1860
+ session_id: {
1861
+ type: "string",
1862
+ },
1863
+ transcript_path: {
1864
+ type: "string",
1865
+ },
1866
+ cwd: {
1867
+ type: "string",
1868
+ },
1869
+ hook_event_name: {
1870
+ type: "string",
1871
+ enum: ["ConfigChange"],
1872
+ },
1873
+ permission_mode: {
1874
+ type: "string",
1875
+ },
1876
+ prompt_id: {
1877
+ type: "string",
1878
+ },
1879
+ scratchpad_dir: {
1880
+ type: "string",
1881
+ },
1882
+ agent_id: {
1883
+ type: "string",
1884
+ },
1885
+ agent_type: {
1886
+ type: "string",
1887
+ },
1888
+ effort: {
1889
+ type: "object",
1890
+ properties: {
1891
+ level: {
1892
+ type: "string",
1893
+ },
1894
+ },
1895
+ required: ["level"],
1896
+ additionalProperties: false,
1897
+ },
1898
+ source: {
1899
+ type: "string",
1900
+ },
1901
+ file_path: {
1902
+ type: "string",
1903
+ },
1904
+ },
1905
+ required: ["session_id", "cwd", "hook_event_name"],
1906
+ additionalProperties: true,
1907
+ },
1908
+ output: {
1909
+ type: "object",
1910
+ properties: {
1911
+ continue: {
1912
+ type: "boolean",
1913
+ },
1914
+ stopReason: {
1915
+ type: "string",
1916
+ },
1917
+ suppressOutput: {
1918
+ type: "boolean",
1919
+ },
1920
+ systemMessage: {
1921
+ type: "string",
1922
+ },
1923
+ decision: {
1924
+ type: "string",
1925
+ enum: ["block"],
1926
+ },
1927
+ reason: {
1928
+ type: "string",
1929
+ },
1930
+ terminalSequence: {
1931
+ type: "string",
1932
+ },
1933
+ },
1934
+ required: [],
1935
+ additionalProperties: false,
1936
+ },
1937
+ },
1938
+ CwdChanged: {
1939
+ input: {
1940
+ type: "object",
1941
+ properties: {
1942
+ session_id: {
1943
+ type: "string",
1944
+ },
1945
+ transcript_path: {
1946
+ type: "string",
1947
+ },
1948
+ cwd: {
1949
+ type: "string",
1950
+ },
1951
+ hook_event_name: {
1952
+ type: "string",
1953
+ enum: ["CwdChanged"],
1954
+ },
1955
+ permission_mode: {
1956
+ type: "string",
1957
+ },
1958
+ prompt_id: {
1959
+ type: "string",
1960
+ },
1961
+ scratchpad_dir: {
1962
+ type: "string",
1963
+ },
1964
+ agent_id: {
1965
+ type: "string",
1966
+ },
1967
+ agent_type: {
1968
+ type: "string",
1969
+ },
1970
+ effort: {
1971
+ type: "object",
1972
+ properties: {
1973
+ level: {
1974
+ type: "string",
1975
+ },
1976
+ },
1977
+ required: ["level"],
1978
+ additionalProperties: false,
1979
+ },
1980
+ old_cwd: {
1981
+ type: "string",
1982
+ },
1983
+ new_cwd: {
1984
+ type: "string",
1985
+ },
1986
+ },
1987
+ required: ["session_id", "cwd", "hook_event_name"],
1988
+ additionalProperties: true,
1989
+ },
1990
+ output: {
1991
+ type: "object",
1992
+ properties: {
1993
+ continue: {
1994
+ type: "boolean",
1995
+ },
1996
+ stopReason: {
1997
+ type: "string",
1998
+ },
1999
+ suppressOutput: {
2000
+ type: "boolean",
2001
+ },
2002
+ systemMessage: {
2003
+ type: "string",
2004
+ },
2005
+ hookSpecificOutput: {
2006
+ type: "object",
2007
+ properties: {
2008
+ hookEventName: {
2009
+ type: "string",
2010
+ enum: ["CwdChanged"],
2011
+ },
2012
+ watchPaths: {
2013
+ type: "array",
2014
+ items: {
2015
+ type: "string",
2016
+ },
2017
+ },
2018
+ },
2019
+ required: ["hookEventName"],
2020
+ additionalProperties: false,
2021
+ },
2022
+ terminalSequence: {
2023
+ type: "string",
2024
+ },
2025
+ },
2026
+ required: [],
2027
+ additionalProperties: false,
2028
+ },
2029
+ },
2030
+ DirectoryAdded: {
2031
+ input: {
2032
+ type: "object",
2033
+ properties: {
2034
+ session_id: {
2035
+ type: "string",
2036
+ },
2037
+ transcript_path: {
2038
+ type: "string",
2039
+ },
2040
+ cwd: {
2041
+ type: "string",
2042
+ },
2043
+ hook_event_name: {
2044
+ type: "string",
2045
+ enum: ["DirectoryAdded"],
2046
+ },
2047
+ permission_mode: {
2048
+ type: "string",
2049
+ },
2050
+ prompt_id: {
2051
+ type: "string",
2052
+ },
2053
+ scratchpad_dir: {
2054
+ type: "string",
2055
+ },
2056
+ agent_id: {
2057
+ type: "string",
2058
+ },
2059
+ agent_type: {
2060
+ type: "string",
2061
+ },
2062
+ effort: {
2063
+ type: "object",
2064
+ properties: {
2065
+ level: {
2066
+ type: "string",
2067
+ },
2068
+ },
2069
+ required: ["level"],
2070
+ additionalProperties: false,
2071
+ },
2072
+ directory: {
2073
+ type: "string",
2074
+ },
2075
+ source: {
2076
+ type: "string",
2077
+ enum: ["slash_command", "register_repo_root"],
2078
+ },
2079
+ },
2080
+ required: ["session_id", "cwd", "hook_event_name"],
2081
+ additionalProperties: true,
2082
+ },
2083
+ output: {
2084
+ type: "object",
2085
+ properties: {
2086
+ continue: {
2087
+ type: "boolean",
2088
+ },
2089
+ stopReason: {
2090
+ type: "string",
2091
+ },
2092
+ suppressOutput: {
2093
+ type: "boolean",
2094
+ },
2095
+ systemMessage: {
2096
+ type: "string",
2097
+ },
2098
+ terminalSequence: {
2099
+ type: "string",
2100
+ },
2101
+ },
2102
+ required: [],
2103
+ additionalProperties: false,
2104
+ },
2105
+ },
2106
+ FileChanged: {
2107
+ input: {
2108
+ type: "object",
2109
+ properties: {
2110
+ session_id: {
2111
+ type: "string",
2112
+ },
2113
+ transcript_path: {
2114
+ type: "string",
2115
+ },
2116
+ cwd: {
2117
+ type: "string",
2118
+ },
2119
+ hook_event_name: {
2120
+ type: "string",
2121
+ enum: ["FileChanged"],
2122
+ },
2123
+ permission_mode: {
2124
+ type: "string",
2125
+ },
2126
+ prompt_id: {
2127
+ type: "string",
2128
+ },
2129
+ scratchpad_dir: {
2130
+ type: "string",
2131
+ },
2132
+ agent_id: {
2133
+ type: "string",
2134
+ },
2135
+ agent_type: {
2136
+ type: "string",
2137
+ },
2138
+ effort: {
2139
+ type: "object",
2140
+ properties: {
2141
+ level: {
2142
+ type: "string",
2143
+ },
2144
+ },
2145
+ required: ["level"],
2146
+ additionalProperties: false,
2147
+ },
2148
+ file_path: {
2149
+ type: "string",
2150
+ },
2151
+ event: {
2152
+ type: "string",
2153
+ },
2154
+ },
2155
+ required: ["session_id", "cwd", "hook_event_name"],
2156
+ additionalProperties: true,
2157
+ },
2158
+ output: {
2159
+ type: "object",
2160
+ properties: {
2161
+ continue: {
2162
+ type: "boolean",
2163
+ },
2164
+ stopReason: {
2165
+ type: "string",
2166
+ },
2167
+ suppressOutput: {
2168
+ type: "boolean",
2169
+ },
2170
+ systemMessage: {
2171
+ type: "string",
2172
+ },
2173
+ hookSpecificOutput: {
2174
+ type: "object",
2175
+ properties: {
2176
+ hookEventName: {
2177
+ type: "string",
2178
+ enum: ["FileChanged"],
2179
+ },
2180
+ watchPaths: {
2181
+ type: "array",
2182
+ items: {
2183
+ type: "string",
2184
+ },
2185
+ },
2186
+ },
2187
+ required: ["hookEventName"],
2188
+ additionalProperties: false,
2189
+ },
2190
+ terminalSequence: {
2191
+ type: "string",
2192
+ },
2193
+ },
2194
+ required: [],
2195
+ additionalProperties: false,
2196
+ },
2197
+ },
2198
+ WorktreeCreate: {
2199
+ input: {
2200
+ type: "object",
2201
+ properties: {
2202
+ session_id: {
2203
+ type: "string",
2204
+ },
2205
+ transcript_path: {
2206
+ type: "string",
2207
+ },
2208
+ cwd: {
2209
+ type: "string",
2210
+ },
2211
+ hook_event_name: {
2212
+ type: "string",
2213
+ enum: ["WorktreeCreate"],
2214
+ },
2215
+ permission_mode: {
2216
+ type: "string",
2217
+ },
2218
+ prompt_id: {
2219
+ type: "string",
2220
+ },
2221
+ scratchpad_dir: {
2222
+ type: "string",
2223
+ },
2224
+ agent_id: {
2225
+ type: "string",
2226
+ },
2227
+ agent_type: {
2228
+ type: "string",
2229
+ },
2230
+ effort: {
2231
+ type: "object",
2232
+ properties: {
2233
+ level: {
2234
+ type: "string",
2235
+ },
2236
+ },
2237
+ required: ["level"],
2238
+ additionalProperties: false,
2239
+ },
2240
+ name: {
2241
+ type: "string",
2242
+ },
2243
+ },
2244
+ required: ["session_id", "cwd", "hook_event_name"],
2245
+ additionalProperties: true,
2246
+ },
2247
+ output: {
2248
+ not: {},
2249
+ },
2250
+ text: true,
2251
+ },
2252
+ WorktreeRemove: {
2253
+ input: {
2254
+ type: "object",
2255
+ properties: {
2256
+ session_id: {
2257
+ type: "string",
2258
+ },
2259
+ transcript_path: {
2260
+ type: "string",
2261
+ },
2262
+ cwd: {
2263
+ type: "string",
2264
+ },
2265
+ hook_event_name: {
2266
+ type: "string",
2267
+ enum: ["WorktreeRemove"],
2268
+ },
2269
+ permission_mode: {
2270
+ type: "string",
2271
+ },
2272
+ prompt_id: {
2273
+ type: "string",
2274
+ },
2275
+ scratchpad_dir: {
2276
+ type: "string",
2277
+ },
2278
+ agent_id: {
2279
+ type: "string",
2280
+ },
2281
+ agent_type: {
2282
+ type: "string",
2283
+ },
2284
+ effort: {
2285
+ type: "object",
2286
+ properties: {
2287
+ level: {
2288
+ type: "string",
2289
+ },
2290
+ },
2291
+ required: ["level"],
2292
+ additionalProperties: false,
2293
+ },
2294
+ worktree_path: {
2295
+ type: "string",
2296
+ },
2297
+ },
2298
+ required: ["session_id", "cwd", "hook_event_name"],
2299
+ additionalProperties: true,
2300
+ },
2301
+ output: {
2302
+ type: "object",
2303
+ properties: {
2304
+ terminalSequence: {
2305
+ type: "string",
2306
+ },
2307
+ },
2308
+ required: [],
2309
+ additionalProperties: false,
2310
+ },
2311
+ },
2312
+ PreCompact: {
2313
+ input: {
2314
+ type: "object",
2315
+ properties: {
2316
+ session_id: {
2317
+ type: "string",
2318
+ },
2319
+ transcript_path: {
2320
+ type: "string",
2321
+ },
2322
+ cwd: {
2323
+ type: "string",
2324
+ },
2325
+ hook_event_name: {
2326
+ type: "string",
2327
+ enum: ["PreCompact"],
2328
+ },
2329
+ permission_mode: {
2330
+ type: "string",
2331
+ },
2332
+ prompt_id: {
2333
+ type: "string",
2334
+ },
2335
+ scratchpad_dir: {
2336
+ type: "string",
2337
+ },
2338
+ agent_id: {
2339
+ type: "string",
2340
+ },
2341
+ agent_type: {
2342
+ type: "string",
2343
+ },
2344
+ effort: {
2345
+ type: "object",
2346
+ properties: {
2347
+ level: {
2348
+ type: "string",
2349
+ },
2350
+ },
2351
+ required: ["level"],
2352
+ additionalProperties: false,
2353
+ },
2354
+ trigger: {
2355
+ type: "string",
2356
+ },
2357
+ custom_instructions: {
2358
+ anyOf: [
2359
+ {
2360
+ type: "string",
2361
+ },
2362
+ {
2363
+ type: "null",
2364
+ },
2365
+ ],
2366
+ },
2367
+ },
2368
+ required: ["session_id", "cwd", "hook_event_name"],
2369
+ additionalProperties: true,
2370
+ },
2371
+ output: {
2372
+ type: "object",
2373
+ properties: {
2374
+ decision: {
2375
+ type: "string",
2376
+ enum: ["block"],
2377
+ },
2378
+ reason: {
2379
+ type: "string",
2380
+ },
2381
+ terminalSequence: {
2382
+ type: "string",
2383
+ },
2384
+ },
2385
+ required: [],
2386
+ additionalProperties: false,
2387
+ },
2388
+ },
2389
+ PostCompact: {
2390
+ input: {
2391
+ type: "object",
2392
+ properties: {
2393
+ session_id: {
2394
+ type: "string",
2395
+ },
2396
+ transcript_path: {
2397
+ type: "string",
2398
+ },
2399
+ cwd: {
2400
+ type: "string",
2401
+ },
2402
+ hook_event_name: {
2403
+ type: "string",
2404
+ enum: ["PostCompact"],
2405
+ },
2406
+ permission_mode: {
2407
+ type: "string",
2408
+ },
2409
+ prompt_id: {
2410
+ type: "string",
2411
+ },
2412
+ scratchpad_dir: {
2413
+ type: "string",
2414
+ },
2415
+ agent_id: {
2416
+ type: "string",
2417
+ },
2418
+ agent_type: {
2419
+ type: "string",
2420
+ },
2421
+ effort: {
2422
+ type: "object",
2423
+ properties: {
2424
+ level: {
2425
+ type: "string",
2426
+ },
2427
+ },
2428
+ required: ["level"],
2429
+ additionalProperties: false,
2430
+ },
2431
+ trigger: {
2432
+ type: "string",
2433
+ },
2434
+ compact_summary: {
2435
+ type: "string",
2436
+ },
2437
+ },
2438
+ required: ["session_id", "cwd", "hook_event_name"],
2439
+ additionalProperties: true,
2440
+ },
2441
+ output: {
2442
+ type: "object",
2443
+ properties: {
2444
+ terminalSequence: {
2445
+ type: "string",
2446
+ },
2447
+ },
2448
+ required: [],
2449
+ additionalProperties: false,
2450
+ },
2451
+ },
2452
+ PreModelSwitch: {
2453
+ input: {
2454
+ type: "object",
2455
+ properties: {
2456
+ session_id: {
2457
+ type: "string",
2458
+ },
2459
+ transcript_path: {
2460
+ type: "string",
2461
+ },
2462
+ cwd: {
2463
+ type: "string",
2464
+ },
2465
+ hook_event_name: {
2466
+ type: "string",
2467
+ enum: ["PreModelSwitch"],
2468
+ },
2469
+ permission_mode: {
2470
+ type: "string",
2471
+ },
2472
+ prompt_id: {
2473
+ type: "string",
2474
+ },
2475
+ scratchpad_dir: {
2476
+ type: "string",
2477
+ },
2478
+ agent_id: {
2479
+ type: "string",
2480
+ },
2481
+ agent_type: {
2482
+ type: "string",
2483
+ },
2484
+ effort: {
2485
+ type: "object",
2486
+ properties: {
2487
+ level: {
2488
+ type: "string",
2489
+ },
2490
+ },
2491
+ required: ["level"],
2492
+ additionalProperties: false,
2493
+ },
2494
+ from_model: {
2495
+ type: "string",
2496
+ },
2497
+ to_model: {
2498
+ type: "string",
2499
+ },
2500
+ requested_model: {
2501
+ anyOf: [
2502
+ {
2503
+ type: "string",
2504
+ },
2505
+ {
2506
+ type: "null",
2507
+ },
2508
+ ],
2509
+ },
2510
+ source: {
2511
+ type: "string",
2512
+ },
2513
+ context_tokens: {
2514
+ type: "number",
2515
+ },
2516
+ prompt_cache_warm: {
2517
+ type: "boolean",
2518
+ },
2519
+ cache_ttl: {
2520
+ type: "string",
2521
+ },
2522
+ estimated_cache_write_usd: {
2523
+ type: "number",
2524
+ },
2525
+ pricing: {
2526
+ type: "string",
2527
+ },
2528
+ },
2529
+ required: ["session_id", "cwd", "hook_event_name"],
2530
+ additionalProperties: true,
2531
+ },
2532
+ output: {
2533
+ type: "object",
2534
+ properties: {
2535
+ continue: {
2536
+ type: "boolean",
2537
+ },
2538
+ stopReason: {
2539
+ type: "string",
2540
+ },
2541
+ suppressOutput: {
2542
+ type: "boolean",
2543
+ },
2544
+ systemMessage: {
2545
+ type: "string",
2546
+ },
2547
+ decision: {
2548
+ type: "string",
2549
+ enum: ["block"],
2550
+ },
2551
+ reason: {
2552
+ type: "string",
2553
+ },
2554
+ hookSpecificOutput: {
2555
+ type: "object",
2556
+ properties: {
2557
+ hookEventName: {
2558
+ type: "string",
2559
+ enum: ["PreModelSwitch"],
2560
+ },
2561
+ permissionDecision: {
2562
+ type: "string",
2563
+ enum: ["allow", "deny", "ask"],
2564
+ },
2565
+ permissionDecisionReason: {
2566
+ type: "string",
2567
+ },
2568
+ },
2569
+ required: ["hookEventName"],
2570
+ additionalProperties: false,
2571
+ },
2572
+ terminalSequence: {
2573
+ type: "string",
2574
+ },
2575
+ },
2576
+ required: [],
2577
+ additionalProperties: false,
2578
+ },
2579
+ },
2580
+ PostModelSwitch: {
2581
+ input: {
2582
+ type: "object",
2583
+ properties: {
2584
+ session_id: {
2585
+ type: "string",
2586
+ },
2587
+ transcript_path: {
2588
+ type: "string",
2589
+ },
2590
+ cwd: {
2591
+ type: "string",
2592
+ },
2593
+ hook_event_name: {
2594
+ type: "string",
2595
+ enum: ["PostModelSwitch"],
2596
+ },
2597
+ permission_mode: {
2598
+ type: "string",
2599
+ },
2600
+ prompt_id: {
2601
+ type: "string",
2602
+ },
2603
+ scratchpad_dir: {
2604
+ type: "string",
2605
+ },
2606
+ agent_id: {
2607
+ type: "string",
2608
+ },
2609
+ agent_type: {
2610
+ type: "string",
2611
+ },
2612
+ effort: {
2613
+ type: "object",
2614
+ properties: {
2615
+ level: {
2616
+ type: "string",
2617
+ },
2618
+ },
2619
+ required: ["level"],
2620
+ additionalProperties: false,
2621
+ },
2622
+ from_model: {
2623
+ type: "string",
2624
+ },
2625
+ to_model: {
2626
+ type: "string",
2627
+ },
2628
+ requested_model: {
2629
+ anyOf: [
2630
+ {
2631
+ type: "string",
2632
+ },
2633
+ {
2634
+ type: "null",
2635
+ },
2636
+ ],
2637
+ },
2638
+ source: {
2639
+ type: "string",
2640
+ },
2641
+ context_tokens: {
2642
+ type: "number",
2643
+ },
2644
+ prompt_cache_warm: {
2645
+ type: "boolean",
2646
+ },
2647
+ cache_ttl: {
2648
+ type: "string",
2649
+ },
2650
+ estimated_cache_write_usd: {
2651
+ type: "number",
2652
+ },
2653
+ pricing: {
2654
+ type: "string",
2655
+ },
2656
+ },
2657
+ required: ["session_id", "cwd", "hook_event_name"],
2658
+ additionalProperties: true,
2659
+ },
2660
+ output: {
2661
+ type: "object",
2662
+ properties: {
2663
+ continue: {
2664
+ type: "boolean",
2665
+ },
2666
+ stopReason: {
2667
+ type: "string",
2668
+ },
2669
+ suppressOutput: {
2670
+ type: "boolean",
2671
+ },
2672
+ systemMessage: {
2673
+ type: "string",
2674
+ },
2675
+ hookSpecificOutput: {
2676
+ type: "object",
2677
+ properties: {
2678
+ hookEventName: {
2679
+ type: "string",
2680
+ enum: ["PostModelSwitch"],
2681
+ },
2682
+ additionalContext: {
2683
+ type: "string",
2684
+ },
2685
+ },
2686
+ required: ["hookEventName"],
2687
+ additionalProperties: false,
2688
+ },
2689
+ terminalSequence: {
2690
+ type: "string",
2691
+ },
2692
+ },
2693
+ required: [],
2694
+ additionalProperties: false,
2695
+ },
2696
+ text: true,
2697
+ },
2698
+ Elicitation: {
2699
+ input: {
2700
+ type: "object",
2701
+ properties: {
2702
+ session_id: {
2703
+ type: "string",
2704
+ },
2705
+ transcript_path: {
2706
+ type: "string",
2707
+ },
2708
+ cwd: {
2709
+ type: "string",
2710
+ },
2711
+ hook_event_name: {
2712
+ type: "string",
2713
+ enum: ["Elicitation"],
2714
+ },
2715
+ permission_mode: {
2716
+ type: "string",
2717
+ },
2718
+ prompt_id: {
2719
+ type: "string",
2720
+ },
2721
+ scratchpad_dir: {
2722
+ type: "string",
2723
+ },
2724
+ agent_id: {
2725
+ type: "string",
2726
+ },
2727
+ agent_type: {
2728
+ type: "string",
2729
+ },
2730
+ effort: {
2731
+ type: "object",
2732
+ properties: {
2733
+ level: {
2734
+ type: "string",
2735
+ },
2736
+ },
2737
+ required: ["level"],
2738
+ additionalProperties: false,
2739
+ },
2740
+ mcp_server_name: {
2741
+ type: "string",
2742
+ },
2743
+ message: {
2744
+ type: "string",
2745
+ },
2746
+ mode: {
2747
+ type: "string",
2748
+ },
2749
+ requested_schema: {
2750
+ type: "object",
2751
+ },
2752
+ elicitation_id: {
2753
+ type: "string",
2754
+ },
2755
+ url: {
2756
+ type: "string",
2757
+ },
2758
+ },
2759
+ required: ["session_id", "cwd", "hook_event_name"],
2760
+ additionalProperties: true,
2761
+ },
2762
+ output: {
2763
+ type: "object",
2764
+ properties: {
2765
+ continue: {
2766
+ type: "boolean",
2767
+ },
2768
+ stopReason: {
2769
+ type: "string",
2770
+ },
2771
+ suppressOutput: {
2772
+ type: "boolean",
2773
+ },
2774
+ systemMessage: {
2775
+ type: "string",
2776
+ },
2777
+ hookSpecificOutput: {
2778
+ type: "object",
2779
+ properties: {
2780
+ hookEventName: {
2781
+ type: "string",
2782
+ enum: ["Elicitation"],
2783
+ },
2784
+ action: {
2785
+ type: "string",
2786
+ enum: ["accept", "decline", "cancel"],
2787
+ },
2788
+ content: {
2789
+ type: "object",
2790
+ },
2791
+ },
2792
+ required: ["hookEventName"],
2793
+ additionalProperties: false,
2794
+ },
2795
+ decision: {
2796
+ type: "string",
2797
+ enum: ["block"],
2798
+ },
2799
+ terminalSequence: {
2800
+ type: "string",
2801
+ },
2802
+ },
2803
+ required: [],
2804
+ additionalProperties: false,
2805
+ },
2806
+ },
2807
+ ElicitationResult: {
2808
+ input: {
2809
+ type: "object",
2810
+ properties: {
2811
+ session_id: {
2812
+ type: "string",
2813
+ },
2814
+ transcript_path: {
2815
+ type: "string",
2816
+ },
2817
+ cwd: {
2818
+ type: "string",
2819
+ },
2820
+ hook_event_name: {
2821
+ type: "string",
2822
+ enum: ["ElicitationResult"],
2823
+ },
2824
+ permission_mode: {
2825
+ type: "string",
2826
+ },
2827
+ prompt_id: {
2828
+ type: "string",
2829
+ },
2830
+ scratchpad_dir: {
2831
+ type: "string",
2832
+ },
2833
+ agent_id: {
2834
+ type: "string",
2835
+ },
2836
+ agent_type: {
2837
+ type: "string",
2838
+ },
2839
+ effort: {
2840
+ type: "object",
2841
+ properties: {
2842
+ level: {
2843
+ type: "string",
2844
+ },
2845
+ },
2846
+ required: ["level"],
2847
+ additionalProperties: false,
2848
+ },
2849
+ mcp_server_name: {
2850
+ type: "string",
2851
+ },
2852
+ action: {
2853
+ type: "string",
2854
+ },
2855
+ content: {
2856
+ type: "object",
2857
+ },
2858
+ },
2859
+ required: ["session_id", "cwd", "hook_event_name"],
2860
+ additionalProperties: true,
2861
+ },
2862
+ output: {
2863
+ type: "object",
2864
+ properties: {
2865
+ continue: {
2866
+ type: "boolean",
2867
+ },
2868
+ stopReason: {
2869
+ type: "string",
2870
+ },
2871
+ suppressOutput: {
2872
+ type: "boolean",
2873
+ },
2874
+ systemMessage: {
2875
+ type: "string",
2876
+ },
2877
+ hookSpecificOutput: {
2878
+ type: "object",
2879
+ properties: {
2880
+ hookEventName: {
2881
+ type: "string",
2882
+ enum: ["ElicitationResult"],
2883
+ },
2884
+ action: {
2885
+ type: "string",
2886
+ enum: ["accept", "decline", "cancel"],
2887
+ },
2888
+ content: {
2889
+ type: "object",
2890
+ },
2891
+ },
2892
+ required: ["hookEventName"],
2893
+ additionalProperties: false,
2894
+ },
2895
+ decision: {
2896
+ type: "string",
2897
+ enum: ["block"],
2898
+ },
2899
+ terminalSequence: {
2900
+ type: "string",
2901
+ },
2902
+ },
2903
+ required: [],
2904
+ additionalProperties: false,
2905
+ },
2906
+ },
2907
+ SessionEnd: {
2908
+ input: {
2909
+ type: "object",
2910
+ properties: {
2911
+ session_id: {
2912
+ type: "string",
2913
+ },
2914
+ transcript_path: {
2915
+ type: "string",
2916
+ },
2917
+ cwd: {
2918
+ type: "string",
2919
+ },
2920
+ hook_event_name: {
2921
+ type: "string",
2922
+ enum: ["SessionEnd"],
2923
+ },
2924
+ permission_mode: {
2925
+ type: "string",
2926
+ },
2927
+ prompt_id: {
2928
+ type: "string",
2929
+ },
2930
+ scratchpad_dir: {
2931
+ type: "string",
2932
+ },
2933
+ agent_id: {
2934
+ type: "string",
2935
+ },
2936
+ agent_type: {
2937
+ type: "string",
2938
+ },
2939
+ effort: {
2940
+ type: "object",
2941
+ properties: {
2942
+ level: {
2943
+ type: "string",
2944
+ },
2945
+ },
2946
+ required: ["level"],
2947
+ additionalProperties: false,
2948
+ },
2949
+ reason: {
2950
+ type: "string",
2951
+ },
2952
+ },
2953
+ required: ["session_id", "cwd", "hook_event_name"],
2954
+ additionalProperties: true,
2955
+ },
2956
+ output: {
2957
+ type: "object",
2958
+ properties: {
2959
+ terminalSequence: {
2960
+ type: "string",
2961
+ },
2962
+ },
2963
+ required: [],
2964
+ additionalProperties: false,
2965
+ },
2966
+ },
2967
+ };
2968
+ //# sourceMappingURL=claude-hooks.constants.js.map