capt-hook 12.86.2__tar.gz → 12.87.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. {capt_hook-12.86.2 → capt_hook-12.87.0}/PKG-INFO +1 -1
  2. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/.claude-plugin/plugin.json +1 -1
  3. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/declare.py +53 -8
  4. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/judge.py +17 -8
  5. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/records.py +9 -1
  6. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/helpers.py +2 -0
  7. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/types.py +2 -1
  8. {capt_hook-12.86.2 → capt_hook-12.87.0}/pyproject.toml +1 -1
  9. {capt_hook-12.86.2 → capt_hook-12.87.0}/.gitignore +0 -0
  10. {capt_hook-12.86.2 → capt_hook-12.87.0}/LICENSE +0 -0
  11. {capt_hook-12.86.2 → capt_hook-12.87.0}/README.md +0 -0
  12. {capt_hook-12.86.2 → capt_hook-12.87.0}/capt_hook_client/__init__.py +0 -0
  13. {capt_hook-12.86.2 → capt_hook-12.87.0}/capt_hook_client/__main__.py +0 -0
  14. {capt_hook-12.86.2 → capt_hook-12.87.0}/capt_hook_client/client.py +0 -0
  15. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/.mcp.json +0 -0
  16. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/__init__.py +0 -0
  17. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/__init__.pyi +0 -0
  18. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/__main__.py +0 -0
  19. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/annotations.py +0 -0
  20. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/app.py +0 -0
  21. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/ast_grep.py +0 -0
  22. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/bindings.py +0 -0
  23. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/__init__.py +0 -0
  24. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/fixes/__init__.py +0 -0
  25. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/fixes/hooks/__init__.py +0 -0
  26. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/fixes/hooks/_lib.py +0 -0
  27. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/fixes/hooks/scratch_writes.py +0 -0
  28. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/fixes/hooks/teammate_permissions.py +0 -0
  29. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/__init__.py +0 -0
  30. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/__init__.py +0 -0
  31. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/_lib.py +0 -0
  32. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/_sessions.py +0 -0
  33. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/commands.py +0 -0
  34. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/comments.py +0 -0
  35. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/deletions.py +0 -0
  36. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/detours.py +0 -0
  37. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/docs.py +0 -0
  38. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/grants.py +0 -0
  39. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/hook_files.py +0 -0
  40. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/models.py +0 -0
  41. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/plain_english.py +0 -0
  42. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/plans.py +0 -0
  43. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/fragments/deliverable_rubric.md +0 -0
  44. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/fragments/workflow_script_header.md +0 -0
  45. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/browser_delegation_nudge.md +0 -0
  46. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/implementation_spawn_nudge.md +0 -0
  47. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/inline_edit_nudge.md +0 -0
  48. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_spawn_gate.md +0 -0
  49. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_workflow_nudge.md +0 -0
  50. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_spawn_nudge.md +0 -0
  51. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_workflow_nudge.md +0 -0
  52. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_spawn_nudge.md +0 -0
  53. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_workflow_nudge.md +0 -0
  54. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/plain_english_rules.md +0 -0
  55. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts/tools/preload_nudge.md +0 -0
  56. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/prompts.py +0 -0
  57. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/questions.py +0 -0
  58. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/review.py +0 -0
  59. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/sessions.py +0 -0
  60. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/spawns.py +0 -0
  61. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/stops.py +0 -0
  62. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/tasks.py +0 -0
  63. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/tombstones.py +0 -0
  64. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/tooling.py +0 -0
  65. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/hooks/tools.py +0 -0
  66. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/general/pack.toml +0 -0
  67. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/go/__init__.py +0 -0
  68. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/go/hooks/__init__.py +0 -0
  69. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/go/hooks/testing.py +0 -0
  70. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/go/hooks/toolchain.py +0 -0
  71. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/__init__.py +0 -0
  72. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/gitdir/.graphite_repo_config +0 -0
  73. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/hooks/__init__.py +0 -0
  74. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/hooks/_lib.py +0 -0
  75. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/hooks/queue.py +0 -0
  76. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/graphite/hooks/vcs.py +0 -0
  77. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/performance/__init__.py +0 -0
  78. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/performance/hooks/__init__.py +0 -0
  79. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/performance/hooks/filesystem.py +0 -0
  80. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/performance/hooks/pipelining.py +0 -0
  81. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/performance/hooks/resources.py +0 -0
  82. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/python/__init__.py +0 -0
  83. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/python/hooks/__init__.py +0 -0
  84. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/python/hooks/style.py +0 -0
  85. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/python/hooks/testing.py +0 -0
  86. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/python/hooks/toolchain.py +0 -0
  87. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/__init__.py +0 -0
  88. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/hooks/__init__.py +0 -0
  89. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/hooks/steering.py +0 -0
  90. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/hooks/teammates.py +0 -0
  91. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/hooks/workarounds.py +0 -0
  92. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/builtin_packs/steering/pack.toml +0 -0
  93. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/classifiers/__init__.py +0 -0
  94. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/classifiers/conductor.py +0 -0
  95. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/classifiers/droid.py +0 -0
  96. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/classifiers/lane.py +0 -0
  97. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/classifiers/native.py +0 -0
  98. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/cli.py +0 -0
  99. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/cmd.py +0 -0
  100. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/command_schema.py +0 -0
  101. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/command_schemas.py +0 -0
  102. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/conditions.py +0 -0
  103. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/confirm.py +0 -0
  104. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/context.py +0 -0
  105. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/contexts.py +0 -0
  106. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/__init__.py +0 -0
  107. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/context.py +0 -0
  108. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/decision_writer.py +0 -0
  109. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/logsink.py +0 -0
  110. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/registry.py +0 -0
  111. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/daemon/tree.py +0 -0
  112. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/decisions.py +0 -0
  113. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/desktop/__init__.py +0 -0
  114. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/desktop/cli.py +0 -0
  115. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/desktop/client.py +0 -0
  116. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/dispatch.py +0 -0
  117. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/doc_conventions.py +0 -0
  118. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/durable.py +0 -0
  119. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/events.py +0 -0
  120. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/faults.py +0 -0
  121. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/fields.py +0 -0
  122. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/file.py +0 -0
  123. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/__init__.py +0 -0
  124. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/cli.py +0 -0
  125. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/evidence.py +0 -0
  126. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/orca.py +0 -0
  127. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/rules.py +0 -0
  128. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/grants/store.py +0 -0
  129. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/guard_literal.py +0 -0
  130. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/guard_literal.sh +0 -0
  131. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/heartbeat.py +0 -0
  132. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/hook_lint.py +0 -0
  133. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/hooks/hooks.json +0 -0
  134. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/loader.py +0 -0
  135. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/log.py +0 -0
  136. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/mcp_server.py +0 -0
  137. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/packs/__init__.py +0 -0
  138. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/packs/manager.py +0 -0
  139. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/packs/plugins.py +0 -0
  140. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/pause.py +0 -0
  141. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/__init__.py +0 -0
  142. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/commands.py +0 -0
  143. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/lint.py +0 -0
  144. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/llm.py +0 -0
  145. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/nudge.py +0 -0
  146. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/permissions.py +0 -0
  147. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/provision.py +0 -0
  148. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/rewrite.py +0 -0
  149. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/primitives/workflow.py +0 -0
  150. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/__init__.py +0 -0
  151. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/identity.py +0 -0
  152. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/judge.py +0 -0
  153. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/ownership.py +0 -0
  154. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/screen.py +0 -0
  155. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/settings.py +0 -0
  156. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/signal.py +0 -0
  157. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/procwatch/state.py +0 -0
  158. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/prompt.py +0 -0
  159. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/py.typed +0 -0
  160. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/resource_defaults.py +0 -0
  161. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/__init__.py +0 -0
  162. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/announce.py +0 -0
  163. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/cli.py +0 -0
  164. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/dashboard.py +0 -0
  165. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/fix.py +0 -0
  166. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/formats.py +0 -0
  167. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/judge.py +0 -0
  168. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/notify.py +0 -0
  169. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/pipeline.py +0 -0
  170. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/prompts.py +0 -0
  171. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/repo.py +0 -0
  172. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/routing.py +0 -0
  173. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/scan.py +0 -0
  174. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/settings.py +0 -0
  175. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/snapshot.py +0 -0
  176. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/status.py +0 -0
  177. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/store.py +0 -0
  178. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/sync.py +0 -0
  179. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/review/triage.py +0 -0
  180. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/scripts/install-binary.sh +0 -0
  181. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/scripts/install-mcp.sh +0 -0
  182. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/session.py +0 -0
  183. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/settings.py +0 -0
  184. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/signals/__init__.py +0 -0
  185. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/signals/nlp.py +0 -0
  186. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/authoring-hooks/SKILL.md +0 -0
  187. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/authoring-hooks/references/capt-hook-api.md +0 -0
  188. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/authoring-hooks/references/pattern-catalog.md +0 -0
  189. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/authoring-hooks/references/pitfalls.md +0 -0
  190. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/authoring-hooks/references/testing-hooks.md +0 -0
  191. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/bootstrapping-hooks/SKILL.md +0 -0
  192. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/scanning-sessions/SKILL.md +0 -0
  193. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/scanning-sessions/references/pr-workflow.md +0 -0
  194. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/scanning-sessions/references/review-cli.md +0 -0
  195. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/translating-styleguides/SKILL.md +0 -0
  196. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/translating-styleguides/references/llm-rule-patterns.md +0 -0
  197. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/translating-styleguides/references/matcher-reference.md +0 -0
  198. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/skills/translating-styleguides/references/tier-rubric.md +0 -0
  199. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/__init__.py +0 -0
  200. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/client.py +0 -0
  201. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/contracts.py +0 -0
  202. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/review.py +0 -0
  203. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schema.py +0 -0
  204. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/config.schema.json +0 -0
  205. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/context.schema.json +0 -0
  206. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/host-request.schema.json +0 -0
  207. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/host-response.schema.json +0 -0
  208. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/request.schema.json +0 -0
  209. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/response.schema.json +0 -0
  210. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/schemas/tool_registry.schema.json +0 -0
  211. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/validation.py +0 -0
  212. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/snapshots/worker.py +0 -0
  213. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/state.py +0 -0
  214. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/style/__init__.py +0 -0
  215. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/style/ast_grep.py +0 -0
  216. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/style/matchers.py +0 -0
  217. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/style/scope.py +0 -0
  218. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/style/types.py +0 -0
  219. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/tasks.py +0 -0
  220. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/templates/example_hook.py.tmpl +0 -0
  221. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/__init__.py +0 -0
  222. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/fixtures.py +0 -0
  223. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/session_cache.py +0 -0
  224. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/testing/snapshots.py +0 -0
  225. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/transcripts.py +0 -0
  226. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/turn.py +0 -0
  227. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/types.py +0 -0
  228. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/update/__init__.py +0 -0
  229. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/update/cli.py +0 -0
  230. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/update/launchers.py +0 -0
  231. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/update/settings.py +0 -0
  232. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/update/updater.py +0 -0
  233. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/__init__.py +0 -0
  234. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/automode.py +0 -0
  235. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/caching.py +0 -0
  236. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/fs.py +0 -0
  237. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/globbing.py +0 -0
  238. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/http.py +0 -0
  239. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/model_cache.py +0 -0
  240. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/paths.py +0 -0
  241. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/payload.py +0 -0
  242. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/proc.py +0 -0
  243. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/reqenv.py +0 -0
  244. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/scratch.py +0 -0
  245. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/shell.py +0 -0
  246. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/text.py +0 -0
  247. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/userpath.py +0 -0
  248. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/util/vcs.py +0 -0
  249. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/__init__.py +0 -0
  250. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/__main__.py +0 -0
  251. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/fail_open.py +0 -0
  252. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/protocol.py +0 -0
  253. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/runtime.py +0 -0
  254. {capt_hook-12.86.2 → capt_hook-12.87.0}/captain_hook/worker/service.py +0 -0
  255. {capt_hook-12.86.2 → capt_hook-12.87.0}/hatch_build.py +0 -0
  256. {capt_hook-12.86.2 → capt_hook-12.87.0}/internal/wireproto/guard.json +0 -0
  257. {capt_hook-12.86.2 → capt_hook-12.87.0}/internal/wireproto/resource.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: capt-hook
3
- Version: 12.86.2
3
+ Version: 12.87.0
4
4
  Summary: Stop repeating yourself to Claude.
5
5
  Project-URL: Homepage, https://github.com/yasyf/captain-hook
6
6
  Project-URL: Documentation, https://yasyf.github.io/captain-hook/
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "captain-hook",
3
- "version": "12.86.1",
3
+ "version": "12.86.2",
4
4
  "displayName": "Captain Hook",
5
5
  "description": "Skills for the capt-hook declarative hook framework: bootstrap gates and nudges from a repo's conventions, and translate style guides into enforced StyleRules.",
6
6
  "author": {
@@ -118,6 +118,10 @@ class Grants:
118
118
  spent_by: The downstream system that spends this kind's grants with ``capt-hook grant spend``;
119
119
  when set, a check names the covering grant without reserving a use.
120
120
  would_allow: What the agent can do to get permission, appended to every deny.
121
+ judge_fails_open: When the judge gives no verdict, the action goes ahead on the covering grant, or
122
+ on a one-use grant resting on the evidence collected that asserts ``standing_rules``, and
123
+ ``Allowed.unjudged`` names the failure. Sources that collect nothing, a judge that refused a
124
+ stored grant earlier in the same check, and :meth:`request` still deny.
121
125
  """
122
126
 
123
127
  kind: str
@@ -134,6 +138,7 @@ class Grants:
134
138
  replay: timedelta = timedelta.max
135
139
  spent_by: str | None = None
136
140
  would_allow: str = "Ask the user for permission for exactly this action."
141
+ judge_fails_open: bool = False
137
142
  hook: str = field(default="grants")
138
143
 
139
144
  def __post_init__(self) -> None:
@@ -252,6 +257,7 @@ class Grants:
252
257
  return collected
253
258
 
254
259
  refusals: list[Refusal] = []
260
+ judged_no = False
255
261
  found = store.matching(self.kind, tree, scope, fingerprint(action), self.replay)
256
262
  refusals.extend(unusable_refusal(why) for _, why in found[:1] if why is not None)
257
263
  for grant in (grant for grant, why in found if why is None):
@@ -282,30 +288,36 @@ class Grants:
282
288
  key=lambda item: item.said_at.timestamp() if item.said_at else 0.0,
283
289
  )
284
290
  allowed_by_rule = any(ruling.verdict == "allow" for ruling in rulings)
291
+ unjudged = ""
285
292
  if self.judge is not None and (since or not allowed_by_rule):
286
293
  try:
287
294
  verdict = self.judge(
288
295
  evt, hook=self.hook, action=action, evidence=since, rulings=rulings, grant=grant
289
296
  )
290
297
  except JudgeFailed as exc:
291
- return Denied(
292
- f"{exc}, and a grant it cannot judge never covers an action.", self.would_allow, undecided=True
293
- )
298
+ if not self.judge_fails_open:
299
+ return Denied(
300
+ f"{exc}, and a grant it cannot judge never covers an action.",
301
+ self.would_allow,
302
+ undecided=True,
303
+ )
304
+ verdict, unjudged = self.failed_open(exc, relied), exc.cause
294
305
  if verdict.withdrawn:
295
306
  store.revoke(grant.id)
296
307
  if not verdict.allow:
308
+ judged_no = True
297
309
  refusals.append(Refusal(verdict.explained, f"grant {grant.id}: {verdict.reason}"))
298
310
  continue
299
311
  reason, relied = verdict.reason, verdict.relied_on
300
312
  try:
301
- return self.spend(evt, grant, action, reason, relied)
313
+ return replace(self.spend(evt, grant, action, reason, relied), unjudged=unjudged)
302
314
  except store.SpentError as exc:
303
315
  refusals.append(unusable_refusal(exc.why))
304
316
  if not self.evidence:
305
317
  if not refusals:
306
318
  return Denied(f"No {self.kind} grant covers {action.summary}.", self.would_allow)
307
319
  return Denied(refusals[-1].agent, self.would_allow, detail=" ".join(why.detail for why in refusals))
308
- return self.from_evidence(evt, action, session(), refusals)
320
+ return self.from_evidence(evt, action, session(), refusals, fails_open=self.judge_fails_open and not judged_no)
309
321
 
310
322
  def from_evidence(
311
323
  self,
@@ -313,6 +325,8 @@ class Grants:
313
325
  action: Proposal,
314
326
  items: list[Evidence],
315
327
  refusals: list[Refusal],
328
+ *,
329
+ fails_open: bool,
316
330
  ) -> Allowed | Denied:
317
331
  def denied(*why: Refusal) -> Denied:
318
332
  reasons = [*refusals, *why]
@@ -331,9 +345,11 @@ class Grants:
331
345
  try:
332
346
  verdict = self.judge(evt, hook=self.hook, action=action, evidence=items, rulings=(), widen=self.widen)
333
347
  except JudgeFailed as exc:
334
- return Denied(
335
- f"{exc}, and an action it cannot judge never goes ahead.", self.would_allow, undecided=True
336
- )
348
+ if not fails_open:
349
+ return Denied(
350
+ f"{exc}, and an action it cannot judge never goes ahead.", self.would_allow, undecided=True
351
+ )
352
+ return self.unjudged(evt, action, items, exc, denied)
337
353
  if not verdict.allow:
338
354
  return denied(Refusal(verdict.explained, verdict.reason))
339
355
  relied = cited(items, verdict.relied_on)
@@ -390,6 +406,35 @@ class Grants:
390
406
  f" {action.summary or render_scope(action.scope)}.",
391
407
  )
392
408
  )
409
+ return self.settled(evt, grant, action, verdict, denied)
410
+
411
+ def failed_open(self, failed: JudgeFailed, relied: Sequence[str]) -> GrantVerdict:
412
+ return GrantVerdict(reason=f"{failed}, and {self.kind} fails open", allow=True, relied_on=list(relied))
413
+
414
+ def unjudged(
415
+ self,
416
+ evt: BaseHookEvent,
417
+ action: Proposal,
418
+ items: Sequence[Evidence],
419
+ failed: JudgeFailed,
420
+ denied: Callable[..., Denied],
421
+ ) -> Allowed | Denied:
422
+ verdict = self.failed_open(failed, [item.id for item in items])
423
+ grant = self.grant(
424
+ evt,
425
+ scope=self.canonical(action),
426
+ evidence=items,
427
+ ttl=self.ttl,
428
+ approved=dict(action.payload) or None,
429
+ rules=self.standing_rules,
430
+ source_key=f"unjudged:{call_id(evt)}",
431
+ )
432
+ settled = self.settled(evt, grant, action, verdict, denied)
433
+ return replace(settled, unjudged=failed.cause) if isinstance(settled, Allowed) else settled
434
+
435
+ def settled(
436
+ self, evt: BaseHookEvent, grant: Grant, action: Proposal, verdict: GrantVerdict, denied: Callable[..., Denied]
437
+ ) -> Allowed | Denied:
393
438
  rulings = [rule.evaluate(grant, action) for rule in self.applicable(grant)]
394
439
  if rule_denied := next((ruling for ruling in rulings if ruling.verdict == "deny"), None):
395
440
  return denied(
@@ -69,7 +69,15 @@ class GrantVerdict(BaseModel):
69
69
 
70
70
 
71
71
  class JudgeFailed(Exception):
72
- """The judge gave no valid verdict in time; a grant it cannot judge never allows."""
72
+ """The judge gave no valid verdict in time; a grant it cannot judge never allows unless its declaration fails open.
73
+
74
+ Attributes:
75
+ cause: What stopped the verdict, such as ``TimeoutError``.
76
+ """
77
+
78
+ def __init__(self, cause: str) -> None:
79
+ super().__init__(f"the judge gave no verdict ({cause})")
80
+ self.cause = cause
73
81
 
74
82
 
75
83
  def render_evidence(items: Sequence[Evidence]) -> str | None:
@@ -105,7 +113,7 @@ class Judge:
105
113
  contexts: Extra prompt contexts the hook renders, such as a preview diff.
106
114
  model: spawnllm model tier; capt-hook's small judge model by default.
107
115
  specialty: spawnllm specialty for the call.
108
- deadline: Seconds the judge may take before the check denies.
116
+ deadline: Seconds the judge may take before it fails.
109
117
  transcript: Recent-session window the judge reads, as ``llm_evaluate`` takes it.
110
118
  root_transcript: The spawning session's window, for a lane.
111
119
  root_excerpt: Maps the event to needles whose root-session mentions the judge reads.
@@ -133,10 +141,8 @@ class Judge:
133
141
  grant: Grant | None = None,
134
142
  widen: Sequence[str] = (),
135
143
  ) -> GrantVerdict:
136
- from pydantic import ValidationError
137
- from spawnllm import BackendCallError
138
-
139
144
  from captain_hook.primitives.llm import llm_evaluate
145
+ from captain_hook.snapshots.client import EvidenceIncomplete
140
146
 
141
147
  prompt = (
142
148
  Prompt()
@@ -165,8 +171,11 @@ class Judge:
165
171
  once_per_turn=False,
166
172
  evidence=False,
167
173
  )
168
- except (TimeoutError, BackendCallError, ValidationError) as exc:
169
- raise JudgeFailed(f"the judge gave no verdict ({type(exc).__name__})") from exc
174
+ except EvidenceIncomplete:
175
+ raise
176
+ except Exception as exc:
177
+ detail = str(exc).partition("\n")[0]
178
+ raise JudgeFailed(f"{type(exc).__name__}: {detail}" if detail else type(exc).__name__) from exc
170
179
  if not isinstance(verdict, GrantVerdict):
171
- raise JudgeFailed("the judge gave no verdict")
180
+ raise JudgeFailed(f"{type(verdict).__name__} instead of a verdict")
172
181
  return verdict
@@ -169,11 +169,19 @@ class Proposal:
169
169
 
170
170
  @dataclass(frozen=True, slots=True)
171
171
  class Allowed:
172
- """A grant covers the action; its use is reserved and commits when the event is allowed."""
172
+ """A grant covers the action; its use is reserved and commits when the event is allowed.
173
+
174
+ Attributes:
175
+ grant: The grant that covers the action.
176
+ remaining: Uses left after this one, ``None`` when unlimited.
177
+ reason: Why the grant covers the action.
178
+ unjudged: What stopped the judge, when the action goes ahead under a declaration that fails open.
179
+ """
173
180
 
174
181
  grant: Grant
175
182
  remaining: int | None
176
183
  reason: str
184
+ unjudged: str = ""
177
185
 
178
186
  def __bool__(self) -> bool:
179
187
  return True
@@ -78,6 +78,8 @@ class StubbedContext(HookContext):
78
78
  def call_llm(
79
79
  self, template: str | Prompt, *args: Any, response_model: type[BaseModel] | None = None, **kwargs: Any
80
80
  ) -> str | BaseModel:
81
+ if isinstance(error := self.llm.get("error"), BaseException):
82
+ raise error
81
83
  if response_model is None:
82
84
  return "stubbed"
83
85
  values = STUB_FIELD_VALUES | self.llm
@@ -191,7 +191,8 @@ class Input:
191
191
  session :class:`~captain_hook.types.Waiting`.
192
192
  llm: Per-test LLM stub overrides merged over the default stub verdict
193
193
  (``fire``/``block``/``action``/``reasoning``), e.g. ``llm={"fire": False}``
194
- to exercise an LLM hook's judge-declines path.
194
+ to exercise an LLM hook's judge-declines path; an ``error`` key holding an
195
+ exception raises it from the model call, e.g. ``llm={"error": TimeoutError()}``.
195
196
  seen: Keys already observed this session, per ``once``/``unseen`` scope
196
197
  (``seen={"scope": ["key"]}``; the unscoped call site is ``""``). Backed by a
197
198
  real temporary session directory, so ``evt.ctx.s.once`` dedups exactly as it
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "capt-hook"
3
3
  # Inert sentinel — the real version is stamped from the release tag (uv version --frozen).
4
- version = "12.86.2"
4
+ version = "12.87.0"
5
5
  description = "Stop repeating yourself to Claude."
6
6
  readme = "README.md"
7
7
  license = "PolyForm-Noncommercial-1.0.0"
File without changes
File without changes
File without changes