capt-hook 12.87.0__tar.gz → 12.87.2__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.87.0 → capt_hook-12.87.2}/PKG-INFO +1 -1
  2. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/.claude-plugin/plugin.json +1 -1
  3. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/_sessions.py +48 -0
  4. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/sessions.py +48 -6
  5. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/declare.py +18 -7
  6. {capt_hook-12.87.0 → capt_hook-12.87.2}/pyproject.toml +1 -1
  7. {capt_hook-12.87.0 → capt_hook-12.87.2}/.gitignore +0 -0
  8. {capt_hook-12.87.0 → capt_hook-12.87.2}/LICENSE +0 -0
  9. {capt_hook-12.87.0 → capt_hook-12.87.2}/README.md +0 -0
  10. {capt_hook-12.87.0 → capt_hook-12.87.2}/capt_hook_client/__init__.py +0 -0
  11. {capt_hook-12.87.0 → capt_hook-12.87.2}/capt_hook_client/__main__.py +0 -0
  12. {capt_hook-12.87.0 → capt_hook-12.87.2}/capt_hook_client/client.py +0 -0
  13. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/.mcp.json +0 -0
  14. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/__init__.py +0 -0
  15. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/__init__.pyi +0 -0
  16. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/__main__.py +0 -0
  17. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/annotations.py +0 -0
  18. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/app.py +0 -0
  19. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/ast_grep.py +0 -0
  20. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/bindings.py +0 -0
  21. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/__init__.py +0 -0
  22. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/fixes/__init__.py +0 -0
  23. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/fixes/hooks/__init__.py +0 -0
  24. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/fixes/hooks/_lib.py +0 -0
  25. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/fixes/hooks/scratch_writes.py +0 -0
  26. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/fixes/hooks/teammate_permissions.py +0 -0
  27. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/__init__.py +0 -0
  28. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/__init__.py +0 -0
  29. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/_lib.py +0 -0
  30. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/commands.py +0 -0
  31. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/comments.py +0 -0
  32. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/deletions.py +0 -0
  33. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/detours.py +0 -0
  34. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/docs.py +0 -0
  35. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/grants.py +0 -0
  36. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/hook_files.py +0 -0
  37. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/models.py +0 -0
  38. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/plain_english.py +0 -0
  39. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/plans.py +0 -0
  40. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/fragments/deliverable_rubric.md +0 -0
  41. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/fragments/workflow_script_header.md +0 -0
  42. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/browser_delegation_nudge.md +0 -0
  43. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/implementation_spawn_nudge.md +0 -0
  44. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/inline_edit_nudge.md +0 -0
  45. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_spawn_gate.md +0 -0
  46. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_workflow_nudge.md +0 -0
  47. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_spawn_nudge.md +0 -0
  48. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_workflow_nudge.md +0 -0
  49. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_spawn_nudge.md +0 -0
  50. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_workflow_nudge.md +0 -0
  51. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/plain_english_rules.md +0 -0
  52. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts/tools/preload_nudge.md +0 -0
  53. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/prompts.py +0 -0
  54. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/questions.py +0 -0
  55. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/review.py +0 -0
  56. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/spawns.py +0 -0
  57. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/stops.py +0 -0
  58. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/tasks.py +0 -0
  59. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/tombstones.py +0 -0
  60. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/tooling.py +0 -0
  61. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/hooks/tools.py +0 -0
  62. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/general/pack.toml +0 -0
  63. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/go/__init__.py +0 -0
  64. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/go/hooks/__init__.py +0 -0
  65. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/go/hooks/testing.py +0 -0
  66. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/go/hooks/toolchain.py +0 -0
  67. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/__init__.py +0 -0
  68. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/gitdir/.graphite_repo_config +0 -0
  69. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/hooks/__init__.py +0 -0
  70. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/hooks/_lib.py +0 -0
  71. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/hooks/queue.py +0 -0
  72. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/graphite/hooks/vcs.py +0 -0
  73. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/performance/__init__.py +0 -0
  74. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/performance/hooks/__init__.py +0 -0
  75. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/performance/hooks/filesystem.py +0 -0
  76. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/performance/hooks/pipelining.py +0 -0
  77. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/performance/hooks/resources.py +0 -0
  78. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/python/__init__.py +0 -0
  79. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/python/hooks/__init__.py +0 -0
  80. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/python/hooks/style.py +0 -0
  81. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/python/hooks/testing.py +0 -0
  82. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/python/hooks/toolchain.py +0 -0
  83. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/__init__.py +0 -0
  84. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/hooks/__init__.py +0 -0
  85. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/hooks/steering.py +0 -0
  86. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/hooks/teammates.py +0 -0
  87. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/hooks/workarounds.py +0 -0
  88. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/builtin_packs/steering/pack.toml +0 -0
  89. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/classifiers/__init__.py +0 -0
  90. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/classifiers/conductor.py +0 -0
  91. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/classifiers/droid.py +0 -0
  92. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/classifiers/lane.py +0 -0
  93. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/classifiers/native.py +0 -0
  94. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/cli.py +0 -0
  95. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/cmd.py +0 -0
  96. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/command_schema.py +0 -0
  97. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/command_schemas.py +0 -0
  98. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/conditions.py +0 -0
  99. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/confirm.py +0 -0
  100. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/context.py +0 -0
  101. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/contexts.py +0 -0
  102. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/__init__.py +0 -0
  103. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/context.py +0 -0
  104. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/decision_writer.py +0 -0
  105. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/logsink.py +0 -0
  106. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/registry.py +0 -0
  107. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/daemon/tree.py +0 -0
  108. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/decisions.py +0 -0
  109. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/desktop/__init__.py +0 -0
  110. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/desktop/cli.py +0 -0
  111. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/desktop/client.py +0 -0
  112. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/dispatch.py +0 -0
  113. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/doc_conventions.py +0 -0
  114. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/durable.py +0 -0
  115. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/events.py +0 -0
  116. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/faults.py +0 -0
  117. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/fields.py +0 -0
  118. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/file.py +0 -0
  119. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/__init__.py +0 -0
  120. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/cli.py +0 -0
  121. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/evidence.py +0 -0
  122. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/judge.py +0 -0
  123. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/orca.py +0 -0
  124. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/records.py +0 -0
  125. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/rules.py +0 -0
  126. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/grants/store.py +0 -0
  127. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/guard_literal.py +0 -0
  128. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/guard_literal.sh +0 -0
  129. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/heartbeat.py +0 -0
  130. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/hook_lint.py +0 -0
  131. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/hooks/hooks.json +0 -0
  132. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/loader.py +0 -0
  133. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/log.py +0 -0
  134. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/mcp_server.py +0 -0
  135. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/packs/__init__.py +0 -0
  136. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/packs/manager.py +0 -0
  137. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/packs/plugins.py +0 -0
  138. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/pause.py +0 -0
  139. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/__init__.py +0 -0
  140. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/commands.py +0 -0
  141. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/lint.py +0 -0
  142. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/llm.py +0 -0
  143. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/nudge.py +0 -0
  144. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/permissions.py +0 -0
  145. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/provision.py +0 -0
  146. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/rewrite.py +0 -0
  147. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/primitives/workflow.py +0 -0
  148. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/__init__.py +0 -0
  149. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/identity.py +0 -0
  150. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/judge.py +0 -0
  151. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/ownership.py +0 -0
  152. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/screen.py +0 -0
  153. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/settings.py +0 -0
  154. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/signal.py +0 -0
  155. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/procwatch/state.py +0 -0
  156. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/prompt.py +0 -0
  157. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/py.typed +0 -0
  158. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/resource_defaults.py +0 -0
  159. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/__init__.py +0 -0
  160. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/announce.py +0 -0
  161. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/cli.py +0 -0
  162. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/dashboard.py +0 -0
  163. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/fix.py +0 -0
  164. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/formats.py +0 -0
  165. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/judge.py +0 -0
  166. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/notify.py +0 -0
  167. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/pipeline.py +0 -0
  168. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/prompts.py +0 -0
  169. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/repo.py +0 -0
  170. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/routing.py +0 -0
  171. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/scan.py +0 -0
  172. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/settings.py +0 -0
  173. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/snapshot.py +0 -0
  174. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/status.py +0 -0
  175. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/store.py +0 -0
  176. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/sync.py +0 -0
  177. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/review/triage.py +0 -0
  178. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/scripts/install-binary.sh +0 -0
  179. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/scripts/install-mcp.sh +0 -0
  180. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/session.py +0 -0
  181. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/settings.py +0 -0
  182. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/signals/__init__.py +0 -0
  183. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/signals/nlp.py +0 -0
  184. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/authoring-hooks/SKILL.md +0 -0
  185. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/authoring-hooks/references/capt-hook-api.md +0 -0
  186. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/authoring-hooks/references/pattern-catalog.md +0 -0
  187. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/authoring-hooks/references/pitfalls.md +0 -0
  188. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/authoring-hooks/references/testing-hooks.md +0 -0
  189. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/bootstrapping-hooks/SKILL.md +0 -0
  190. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/scanning-sessions/SKILL.md +0 -0
  191. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/scanning-sessions/references/pr-workflow.md +0 -0
  192. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/scanning-sessions/references/review-cli.md +0 -0
  193. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/translating-styleguides/SKILL.md +0 -0
  194. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/translating-styleguides/references/llm-rule-patterns.md +0 -0
  195. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/translating-styleguides/references/matcher-reference.md +0 -0
  196. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/skills/translating-styleguides/references/tier-rubric.md +0 -0
  197. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/__init__.py +0 -0
  198. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/client.py +0 -0
  199. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/contracts.py +0 -0
  200. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/review.py +0 -0
  201. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schema.py +0 -0
  202. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/config.schema.json +0 -0
  203. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/context.schema.json +0 -0
  204. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/host-request.schema.json +0 -0
  205. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/host-response.schema.json +0 -0
  206. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/request.schema.json +0 -0
  207. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/response.schema.json +0 -0
  208. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/schemas/tool_registry.schema.json +0 -0
  209. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/validation.py +0 -0
  210. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/snapshots/worker.py +0 -0
  211. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/state.py +0 -0
  212. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/style/__init__.py +0 -0
  213. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/style/ast_grep.py +0 -0
  214. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/style/matchers.py +0 -0
  215. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/style/scope.py +0 -0
  216. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/style/types.py +0 -0
  217. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/tasks.py +0 -0
  218. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/templates/example_hook.py.tmpl +0 -0
  219. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/__init__.py +0 -0
  220. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/fixtures.py +0 -0
  221. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/helpers.py +0 -0
  222. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/session_cache.py +0 -0
  223. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/snapshots.py +0 -0
  224. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/testing/types.py +0 -0
  225. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/transcripts.py +0 -0
  226. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/turn.py +0 -0
  227. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/types.py +0 -0
  228. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/update/__init__.py +0 -0
  229. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/update/cli.py +0 -0
  230. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/update/launchers.py +0 -0
  231. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/update/settings.py +0 -0
  232. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/update/updater.py +0 -0
  233. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/__init__.py +0 -0
  234. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/automode.py +0 -0
  235. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/caching.py +0 -0
  236. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/fs.py +0 -0
  237. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/globbing.py +0 -0
  238. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/http.py +0 -0
  239. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/model_cache.py +0 -0
  240. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/paths.py +0 -0
  241. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/payload.py +0 -0
  242. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/proc.py +0 -0
  243. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/reqenv.py +0 -0
  244. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/scratch.py +0 -0
  245. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/shell.py +0 -0
  246. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/text.py +0 -0
  247. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/userpath.py +0 -0
  248. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/util/vcs.py +0 -0
  249. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/__init__.py +0 -0
  250. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/__main__.py +0 -0
  251. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/fail_open.py +0 -0
  252. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/protocol.py +0 -0
  253. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/runtime.py +0 -0
  254. {capt_hook-12.87.0 → capt_hook-12.87.2}/captain_hook/worker/service.py +0 -0
  255. {capt_hook-12.87.0 → capt_hook-12.87.2}/hatch_build.py +0 -0
  256. {capt_hook-12.87.0 → capt_hook-12.87.2}/internal/wireproto/guard.json +0 -0
  257. {capt_hook-12.87.0 → capt_hook-12.87.2}/internal/wireproto/resource.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: capt-hook
3
- Version: 12.87.0
3
+ Version: 12.87.2
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.2",
3
+ "version": "12.87.1",
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": {
@@ -133,6 +133,29 @@ COMMAND_MARKERS = {
133
133
  "/Alacritty.app/": "a terminal emulator",
134
134
  }
135
135
  AGENT_SHIM_PREFIXES = ("cc-", "orca-")
136
+ SESSION_HOST_APPS = frozenset(
137
+ {
138
+ "alacritty",
139
+ "captain hook",
140
+ "code",
141
+ "cursor",
142
+ "ghostty",
143
+ "iterm",
144
+ "iterm2",
145
+ "kitty",
146
+ "orca",
147
+ "terminal",
148
+ "tmux",
149
+ "visual studio code",
150
+ "warp",
151
+ "wezterm",
152
+ }
153
+ )
154
+ APP_QUIT = re.compile(
155
+ r'(?i)(?:\btell\s+(?:application|app)\s+"([^"]+)"\s+to\s+quit\b|\bquit\s+(?:application|app)\s+"([^"]+)")'
156
+ r"(?:\s+saving\s+(?:yes|no|ask)\b)?"
157
+ r'|\btell\s+(?:application|app)\s+"([^"]+)"\s*[\n;]\s*quit\s*[\n;]\s*end\s+tell\b'
158
+ )
136
159
  ORCA_CLI = "/app.asar.unpacked/out/cli/index.js"
137
160
  VERIFY = "Verify a pid you started with `ps -o pid,ppid,pgid,lstart,command -p <pid>`"
138
161
  KILL_FIX = f"{VERIFY} and run `kill <pid>` alone."
@@ -211,6 +234,12 @@ INLINE_TABLE = (
211
234
  f"18101 18100 18100 501 Thu Jan 1 00:00:00 2026 {INLINE_ORCA_CLI} orchestration worker-list --json\n"
212
235
  "18200 1 18200 501 Thu Jan 1 00:00:00 2026 python3 serve-wrapper.py\n"
213
236
  f"18201 18200 18200 501 Thu Jan 1 00:00:00 2026 {INLINE_ORCA_CLI} serve --port 7777\n"
237
+ "19000 1 19000 501 Thu Jan 1 00:00:00 2026 /Applications/Slack.app/Contents/MacOS/Slack\n"
238
+ "19001 19000 19000 501 Thu Jan 1 00:00:00 2026 /Applications/Slack.app/Contents/Frameworks/Slack Helper.app/"
239
+ "Contents/MacOS/Slack Helper --type=renderer\n"
240
+ "19100 1 19100 501 Thu Jan 1 00:00:00 2026 /Applications/Zed.app/Contents/MacOS/zed\n"
241
+ "19101 19100 19101 501 Thu Jan 1 00:00:00 2026 /bin/zsh -l\n"
242
+ "19102 19101 19102 501 Thu Jan 1 00:00:00 2026 claude --dangerously-skip-permissions\n"
214
243
  )
215
244
  INLINE_TERMINALS = {"term_idle": 15000, "term_agent": 16000, "term_shim": 17000, "term_gone": 18000}
216
245
  INLINE_SESSION = "c0ffee00-0000-4000-8000-000000000000"
@@ -854,6 +883,25 @@ def applescripts(call: Call) -> list[str] | None:
854
883
  return [str(statement) for statement in statements] or ([] if arguments.values.get("program") else [call.cmd.raw])
855
884
 
856
885
 
886
+ def quit_targets(script: str) -> tuple[list[str], str]:
887
+ targets: list[str] = []
888
+
889
+ def take(match: re.Match[str]) -> str:
890
+ targets.append(next(name for name in match.groups() if name is not None))
891
+ return " "
892
+
893
+ return targets, APP_QUIT.sub(take, script)
894
+
895
+
896
+ def app_host(name: str, ownership: Ownership) -> tuple[ProcessRow, ProcessRow] | None:
897
+ bundle = f"/{PurePath(name).name.removesuffix('.app')}.app/Contents/MacOS/".casefold()
898
+ table = ownership.table
899
+ for row in table.rows.values():
900
+ if bundle in row.command.casefold() and row.pid in ownership.protected:
901
+ return row, next(r for r in (row, *table.descendants(row.pid)) if process_class(r) is not None)
902
+ return None
903
+
904
+
857
905
  def shell_scripts(scripts: list[str]) -> Iterator[str | None]:
858
906
  for script in scripts:
859
907
  for match in DO_SHELL_SCRIPT.finditer(script):
@@ -25,11 +25,13 @@ from captain_hook.builtin_packs.general.hooks._sessions import (
25
25
  LAUNCHERS,
26
26
  NEGATIVE_TARGET,
27
27
  RENICE_FIX,
28
+ SESSION_HOST_APPS,
28
29
  SETTLED_CLOSE,
29
30
  TERMINAL_CLOSE,
30
31
  Scan,
31
32
  Ungranted,
32
33
  Unreadable,
34
+ app_host,
33
35
  applescripts,
34
36
  block_first,
35
37
  clip,
@@ -57,6 +59,8 @@ from captain_hook.builtin_packs.general.hooks._sessions import (
57
59
  nested,
58
60
  owner_lift,
59
61
  pid_verdict,
62
+ process_class,
63
+ quit_targets,
60
64
  runs_once,
61
65
  settled_close,
62
66
  shell_scripts,
@@ -1531,7 +1535,25 @@ def launchctl_stops_service(evt: ToolRewriteEvent) -> HookResult | None:
1531
1535
  return block_first(evt, (launchctl_verdict(call, scan, evt) for call in scan.literal_calls))
1532
1536
 
1533
1537
 
1534
- def osascript_verdict(call: Call) -> str | None:
1538
+ def app_quit_verdict(name: str, spelling: str, facts: Facts) -> str | None:
1539
+ if PurePath(name).name.removesuffix(".app").casefold() in SESSION_HOST_APPS:
1540
+ return (
1541
+ f"BLOCKED: `{spelling}` quits {name}, which hosts terminals and agent sessions, so quitting it ends every "
1542
+ "session on it. Ask the owner to run it."
1543
+ )
1544
+ ownership = facts.ownership
1545
+ if isinstance(ownership, Unreadable):
1546
+ return unresolvable(spelling, ownership.reason, f"Ask the owner to quit {name}.")
1547
+ if (host := app_host(name, ownership)) is not None:
1548
+ app, hosted = host
1549
+ return (
1550
+ f"BLOCKED: `{spelling}` quits {name}, whose {describe(app)} hosts {process_class(hosted)} at "
1551
+ f"{describe(hosted)}, so quitting it ends that session. Ask the owner to run it."
1552
+ )
1553
+ return None
1554
+
1555
+
1556
+ def osascript_verdict(call: Call, facts: Facts) -> str | None:
1535
1557
  if call.name != "osascript":
1536
1558
  return None
1537
1559
  spelling = spell(call)
@@ -1540,11 +1562,14 @@ def osascript_verdict(call: Call) -> str | None:
1540
1562
  f"BLOCKED: `{spelling}` runs an AppleScript statement built at run time, which may quit Orca, log out, "
1541
1563
  "restart, or sleep the Mac. Spell the statement literally."
1542
1564
  )
1543
- if any(APPLESCRIPT_ENDING.search(script) for script in scripts):
1565
+ targets, rest = quit_targets("\n".join(scripts))
1566
+ if APPLESCRIPT_ENDING.search(rest):
1544
1567
  return (
1545
- f"BLOCKED: `{spelling}` quits an application, logs out, restarts, shuts down, or sleeps the Mac, which "
1546
- "ends every session on it. Ask the owner to run it."
1568
+ f"BLOCKED: `{spelling}` quits an application it does not name, logs out, restarts, shuts down, or "
1569
+ "sleeps the Mac, which ends every session on it. Ask the owner to run it."
1547
1570
  )
1571
+ if verdict := next(filter(None, (app_quit_verdict(name, spelling, facts) for name in targets)), None):
1572
+ return verdict
1548
1573
  if any(script is None for script in shell_scripts(scripts)):
1549
1574
  return (
1550
1575
  f"BLOCKED: `{spelling}` runs a `do shell script` that AppleScript builds at run time, so the guard cannot "
@@ -1555,7 +1580,23 @@ def osascript_verdict(call: Call) -> str | None:
1555
1580
 
1556
1581
  @guard(
1557
1582
  tests={
1558
- guarded(command="osascript -e 'tell application \"Orca\" to quit'"): Block(pattern="quits an application"),
1583
+ guarded(command="osascript -e 'tell application \"Orca\" to quit'"): Block(pattern="quits Orca, which hosts"),
1584
+ guarded(command="osascript -e 'quit app \"iTerm2\" saving no'"): Block(pattern="quits iTerm2"),
1585
+ guarded(command="osascript -e 'tell application \"Ghostty\"' -e quit -e 'end tell'"): Block(),
1586
+ guarded(command="osascript -e 'tell application \"Zed\" to quit'"): Block(
1587
+ pattern=r"hosts an agent session at pid 19102"
1588
+ ),
1589
+ guarded(command="osascript -e 'tell application \"Slack\" to quit'"): Allow(),
1590
+ guarded(
1591
+ command="osascript -e 'quit app \"Slack\"'; open -a Slack --args --remote-debugging-port=9222"
1592
+ ): Allow(),
1593
+ guarded(command="osascript -e 'tell application \"Slack\"' -e quit -e 'end tell'"): Allow(),
1594
+ guarded(
1595
+ command="osascript -e 'tell application \"Slack\" to quit' -e 'tell application \"Orca\" to quit'"
1596
+ ): Block(pattern="quits Orca"),
1597
+ guarded(command="osascript -e 'tell application \"Slack\" to activate' -e quit"): Block(
1598
+ pattern="quits an application it does not name"
1599
+ ),
1559
1600
  guarded(command="osascript -e 'tell application \"System Events\" to restart'"): Block(),
1560
1601
  guarded(
1561
1602
  command='osascript -e \'tell application "System Events" to keystroke "q" using command down\''
@@ -1568,7 +1609,8 @@ def osascript_verdict(call: Call) -> str | None:
1568
1609
  }
1569
1610
  )
1570
1611
  def osascript_ends_session(evt: ToolRewriteEvent) -> HookResult | None:
1571
- return block_first(evt, map(osascript_verdict, Scan.of(evt).literal_calls))
1612
+ scan = Scan.of(evt)
1613
+ return block_first(evt, (osascript_verdict(call, scan.facts) for call in scan.literal_calls))
1572
1614
 
1573
1615
 
1574
1616
  def softwareupdate_verdict(call: Call) -> str | None:
@@ -459,10 +459,11 @@ class Grants:
459
459
  ) -> Allowed | Denied:
460
460
  """Record the grant an agent asks for on the owner's behalf, without spending it.
461
461
 
462
- *quote* must sit verbatim in the owner's own words, and the judge must read those words as
463
- permitting every action *scope* admits, *uses* times or without limit. The grant rests on the
464
- quoted words and expires with ``standing_ttl``; asking again for the same words and scope returns
465
- the grant already recorded.
462
+ *quote* must sit verbatim in the owner's own words, or else in a ruling an evidence source
463
+ collects, and the judge must read those words as permitting every action *scope* admits, *uses*
464
+ times or without limit. The grant rests on the evidence the judge cites that holds the quote, else
465
+ the first that does, a ruling kept whole and pinned to its revision, and expires with
466
+ ``standing_ttl``; asking again for the same words and scope returns the grant already recorded.
466
467
  """
467
468
  if self.judge is None:
468
469
  raise TypeError(f"{self.kind} declares no judge, so it records no grant an agent asks for")
@@ -474,19 +475,29 @@ class Grants:
474
475
  summary=summary,
475
476
  )
476
477
  items = [item for source in self.evidence for item in source.collect(evt, action)]
477
- said = verbatim(quote, [item for item in items if item.source in OWNER_SOURCES])
478
+ owners = [item for item in items if item.source in OWNER_SOURCES]
479
+ rulings = [item for item in items if item.source in RULING_SOURCES]
480
+ said = verbatim(quote, owners) or verbatim(quote, rulings)
478
481
  if said is None:
479
- return Denied(f"The quote for {summary} is not verbatim in the owner's own words.", self.would_allow)
482
+ return Denied(
483
+ f"The quote for {summary} is not verbatim in the owner's own words or a ruling recording them.",
484
+ self.would_allow,
485
+ )
480
486
  try:
481
487
  verdict = self.judge(evt, hook=self.hook, action=action, evidence=items, rulings=())
482
488
  except JudgeFailed as exc:
483
489
  return Denied(f"{exc}, and a grant it cannot judge is never recorded.", self.would_allow, undecided=True)
484
490
  if not verdict.allow:
485
491
  return Denied(verdict.explained, self.would_allow, detail=verdict.reason)
492
+ said = verbatim(quote, cited([*owners, *rulings], verdict.relied_on)) or said
486
493
  grant = self.grant(
487
494
  evt,
488
495
  scope=requested,
489
- evidence=[said.model_copy(update={"quote": quote, "detail": said.quote})],
496
+ evidence=[
497
+ said
498
+ if said.source in RULING_SOURCES
499
+ else said.model_copy(update={"quote": quote, "detail": said.quote})
500
+ ],
490
501
  uses=uses,
491
502
  ttl=self.standing_ttl,
492
503
  rules=self.standing_rules,
@@ -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.87.0"
4
+ version = "12.87.2"
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