capt-hook 12.77.1__tar.gz → 12.77.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.
- {capt_hook-12.77.1 → capt_hook-12.77.2}/PKG-INFO +1 -1
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/client.py +54 -22
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/worker.py +30 -1
- {capt_hook-12.77.1 → capt_hook-12.77.2}/pyproject.toml +1 -1
- {capt_hook-12.77.1 → capt_hook-12.77.2}/.gitignore +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/LICENSE +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/README.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/capt_hook_client/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/capt_hook_client/__main__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/capt_hook_client/client.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/.claude-plugin/plugin.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/.mcp.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/__init__.pyi +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/__main__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/annotations.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/app.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/ast_grep.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/bindings.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/hooks/_lib.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/hooks/scratch_writes.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/hooks/teammate_permissions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/_lib.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/_sessions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/commands.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/comments.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/deletions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/detours.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/docs.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/hook_files.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/models.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/plain_english.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/plans.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/fragments/deliverable_rubric.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/fragments/workflow_script_header.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/browser_delegation_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/implementation_spawn_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/inline_edit_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_spawn_gate.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/prose_workflow_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_spawn_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/review_routing_workflow_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_spawn_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/models/writing_docs_workflow_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/plain_english_rules.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts/tools/preload_nudge.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/prompts.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/questions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/review.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/sessions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/tasks.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/tombstones.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/tooling.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/tools.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/pack.toml +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/go/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/go/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/go/hooks/testing.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/go/hooks/toolchain.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/gitdir/.graphite_repo_config +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/hooks/_lib.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/hooks/queue.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/hooks/vcs.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/filesystem.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/pipelining.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/hooks/style.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/hooks/testing.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/hooks/toolchain.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/steering.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/teammates.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/workarounds.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/pack.toml +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/classifiers/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/classifiers/conductor.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/classifiers/droid.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/classifiers/lane.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/classifiers/native.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/cli.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/cmd.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/command_schema.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/command_schemas.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/conditions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/confirm.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/context.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/contexts.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/context.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/decision_writer.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/logsink.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/registry.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/daemon/tree.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/decisions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/desktop/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/desktop/cli.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/desktop/client.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/dispatch.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/doc_conventions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/durable.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/events.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/faults.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/fields.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/file.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/guard_literal.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/guard_literal.sh +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/heartbeat.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/hook_lint.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/hooks/hooks.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/loader.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/log.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/mcp_server.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/packs/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/packs/manager.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/packs/plugins.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/commands.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/lint.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/llm.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/nudge.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/permissions.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/provision.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/rewrite.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/primitives/workflow.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/prompt.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/py.typed +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/announce.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/cli.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/dashboard.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/fix.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/formats.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/judge.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/notify.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/pipeline.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/prompts.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/repo.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/routing.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/scan.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/settings.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/snapshot.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/status.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/store.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/sync.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/review/triage.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/scripts/install-binary.sh +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/scripts/install-mcp.sh +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/session.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/settings.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/signals/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/signals/nlp.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/SKILL.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/references/capt-hook-api.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/references/pattern-catalog.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/references/pitfalls.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/references/testing-hooks.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/bootstrapping-hooks/SKILL.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/scanning-sessions/SKILL.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/scanning-sessions/references/pr-workflow.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/scanning-sessions/references/review-cli.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/translating-styleguides/SKILL.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/translating-styleguides/references/llm-rule-patterns.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/translating-styleguides/references/matcher-reference.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/translating-styleguides/references/tier-rubric.md +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/contracts.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/review.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schema.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/config.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/context.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/host-request.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/host-response.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/request.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/response.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/tool_registry.schema.json +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/validation.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/state.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/style/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/style/ast_grep.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/style/matchers.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/style/scope.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/style/types.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/tasks.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/templates/example_hook.py.tmpl +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/fixtures.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/helpers.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/session_cache.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/snapshots.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/testing/types.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/transcripts.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/turn.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/types.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/update/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/update/cli.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/update/settings.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/update/updater.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/automode.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/caching.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/fs.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/globbing.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/http.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/model_cache.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/paths.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/payload.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/proc.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/reqenv.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/scratch.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/shell.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/text.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/userpath.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/util/vcs.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/__init__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/__main__.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/fail_open.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/protocol.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/runtime.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/worker/service.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/hatch_build.py +0 -0
- {capt_hook-12.77.1 → capt_hook-12.77.2}/internal/wireproto/guard.json +0 -0
|
@@ -57,6 +57,24 @@ def foreground_seconds(event: str) -> float:
|
|
|
57
57
|
return GATE_WORK_SECONDS if event in GATE_EVENTS else GRAPH_WORK_SECONDS
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
SCALAR_QUERY_KINDS = frozenset(
|
|
61
|
+
{
|
|
62
|
+
"user_text",
|
|
63
|
+
"first_prompt",
|
|
64
|
+
"event_count",
|
|
65
|
+
"turn_count",
|
|
66
|
+
"tool_count",
|
|
67
|
+
"message_count",
|
|
68
|
+
"unresolved_tools",
|
|
69
|
+
"failures",
|
|
70
|
+
"workflow_text",
|
|
71
|
+
"pending_named_task",
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
SCALAR_MISS = object()
|
|
75
|
+
type ScalarKey = tuple[str, tuple[tuple[str, str], ...], SnapshotClient, PreparedGraphEvidence | None, str, str]
|
|
76
|
+
|
|
77
|
+
|
|
60
78
|
def graph_limits() -> dict[str, int]:
|
|
61
79
|
limits = DEFAULT_LIMITS.copy()
|
|
62
80
|
limits["max_discovery_entries"] = min(limits["max_discovery_entries"], GRAPH_DISCOVERY_ENTRIES)
|
|
@@ -482,6 +500,7 @@ class Lease:
|
|
|
482
500
|
self.guard = threading.Lock()
|
|
483
501
|
self.subagent_guard = threading.Lock()
|
|
484
502
|
self.subagent_views: dict[str, RemoteSubagentIndex] = {}
|
|
503
|
+
self.scalar_results: dict[ScalarKey, Any] = {}
|
|
485
504
|
|
|
486
505
|
def renewable_by(self, client: SnapshotClient) -> bool:
|
|
487
506
|
return (deadline := client.foreground_deadline_unix_ms) is None or self.expires_unix_ms < deadline
|
|
@@ -500,12 +519,15 @@ class Lease:
|
|
|
500
519
|
|
|
501
520
|
def release(self) -> None:
|
|
502
521
|
with self.subagent_guard:
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
for
|
|
507
|
-
|
|
508
|
-
|
|
522
|
+
try:
|
|
523
|
+
with ExitStack() as cleanup:
|
|
524
|
+
cleanup.callback(self._release)
|
|
525
|
+
for index in self.subagent_views.values():
|
|
526
|
+
for item in index:
|
|
527
|
+
cleanup.callback(item.session.release)
|
|
528
|
+
finally:
|
|
529
|
+
self.subagent_views.clear()
|
|
530
|
+
self.scalar_results.clear()
|
|
509
531
|
|
|
510
532
|
def _release(self) -> None:
|
|
511
533
|
with self.guard:
|
|
@@ -923,13 +945,38 @@ class RemoteSession:
|
|
|
923
945
|
return f"transcript:{handle['owner_epoch']}:{handle['snapshot_id']}:{handle['generation']}"
|
|
924
946
|
|
|
925
947
|
def query(self, query: Mapping[str, object]) -> Any:
|
|
926
|
-
values: list[Any] = []
|
|
927
948
|
deep = query.get("subagents") is True or query["kind"] in {
|
|
928
949
|
"deep_predicate_inputs",
|
|
929
950
|
"sidechain_membership",
|
|
930
951
|
}
|
|
931
952
|
if deep and query["kind"] == "sidechain_membership":
|
|
932
953
|
raise EvidenceIncomplete("invalid_request", "sidechain membership has no prepared graph projection")
|
|
954
|
+
scalar = query["kind"] in SCALAR_QUERY_KINDS or str(query["kind"]).startswith("has_")
|
|
955
|
+
if not scalar:
|
|
956
|
+
return self._query(query, deep=deep)
|
|
957
|
+
key: ScalarKey = (
|
|
958
|
+
self.evidence_ref,
|
|
959
|
+
tuple(sorted(self.classifier.items())),
|
|
960
|
+
self.client,
|
|
961
|
+
self.graph if deep else None,
|
|
962
|
+
json.dumps(self.selectors, sort_keys=True, separators=(",", ":")),
|
|
963
|
+
json.dumps(query, sort_keys=True, separators=(",", ":")),
|
|
964
|
+
)
|
|
965
|
+
self.lease.require()
|
|
966
|
+
if (cached := self.lease.scalar_results.get(key, SCALAR_MISS)) is not SCALAR_MISS:
|
|
967
|
+
if deep:
|
|
968
|
+
self.graph.require(self)
|
|
969
|
+
return cached
|
|
970
|
+
values = self._query(query, deep=deep)
|
|
971
|
+
if len(values) != 1:
|
|
972
|
+
raise SnapshotProtocolError("scalar query returned a non-scalar result")
|
|
973
|
+
with self.lease.guard:
|
|
974
|
+
if not self.lease.closed:
|
|
975
|
+
self.lease.scalar_results[key] = values[0]
|
|
976
|
+
return values[0]
|
|
977
|
+
|
|
978
|
+
def _query(self, query: Mapping[str, object], *, deep: bool) -> list[Any]:
|
|
979
|
+
values: list[Any] = []
|
|
933
980
|
pages = (
|
|
934
981
|
self.graph.query_pages(self, query)
|
|
935
982
|
if deep
|
|
@@ -954,21 +1001,6 @@ class RemoteSession:
|
|
|
954
1001
|
raise EvidenceIncomplete(exc.status, exc.reason) from exc
|
|
955
1002
|
case _:
|
|
956
1003
|
raise SnapshotProtocolError("query returned an unexpected projection")
|
|
957
|
-
if query["kind"] in {
|
|
958
|
-
"user_text",
|
|
959
|
-
"first_prompt",
|
|
960
|
-
"event_count",
|
|
961
|
-
"turn_count",
|
|
962
|
-
"tool_count",
|
|
963
|
-
"message_count",
|
|
964
|
-
"unresolved_tools",
|
|
965
|
-
"failures",
|
|
966
|
-
"workflow_text",
|
|
967
|
-
"pending_named_task",
|
|
968
|
-
} or str(query["kind"]).startswith("has_"):
|
|
969
|
-
if len(values) != 1:
|
|
970
|
-
raise SnapshotProtocolError("scalar query returned a non-scalar result")
|
|
971
|
-
return values[0]
|
|
972
1004
|
return values
|
|
973
1005
|
|
|
974
1006
|
def __len__(self) -> int:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import asyncio
|
|
4
|
+
import hashlib
|
|
4
5
|
import importlib.metadata
|
|
5
6
|
import json
|
|
6
7
|
import os
|
|
@@ -23,6 +24,7 @@ from captain_hook.snapshots.client import (
|
|
|
23
24
|
read_exact,
|
|
24
25
|
)
|
|
25
26
|
from captain_hook.snapshots.validation import checked, parse_exact, validator
|
|
27
|
+
from captain_hook.util.caching import LRUDict
|
|
26
28
|
|
|
27
29
|
if TYPE_CHECKING:
|
|
28
30
|
from cc_transcript.snapshots import CallContext
|
|
@@ -42,6 +44,9 @@ OWNER_ADMISSION = {
|
|
|
42
44
|
"release": (4, 32),
|
|
43
45
|
"warm": (1, 4),
|
|
44
46
|
}
|
|
47
|
+
MAX_REGISTRY_GENERATIONS = 64
|
|
48
|
+
|
|
49
|
+
RegistryKey = tuple[str, str, bytes]
|
|
45
50
|
|
|
46
51
|
|
|
47
52
|
def read_frame(stream: BinaryIO, record_bytes: Callable[[int], None] | None = None) -> dict[str, Any] | None:
|
|
@@ -60,6 +65,18 @@ def read_frame(stream: BinaryIO, record_bytes: Callable[[int], None] | None = No
|
|
|
60
65
|
return result
|
|
61
66
|
|
|
62
67
|
|
|
68
|
+
def canonical(value: object) -> bytes:
|
|
69
|
+
return json.dumps(value, separators=(",", ":"), sort_keys=True).encode()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
def registry_key(tool_registry: list[dict[str, Any]], context: CallContext) -> RegistryKey:
|
|
73
|
+
return (
|
|
74
|
+
hashlib.sha256(canonical(sorted(tool_registry, key=canonical))).hexdigest(),
|
|
75
|
+
context["admission"],
|
|
76
|
+
canonical(context["authority"]),
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
|
|
63
80
|
def empty_usage() -> dict[str, int]:
|
|
64
81
|
return dict.fromkeys(validator("response").schema["$defs"]["Usage"]["properties"], 0)
|
|
65
82
|
|
|
@@ -99,6 +116,8 @@ class Owner:
|
|
|
99
116
|
self.incomplete_type = SnapshotIncomplete
|
|
100
117
|
self.policy = ReviewPolicy()
|
|
101
118
|
self.runner: asyncio.Runner | None = None
|
|
119
|
+
self.registry_generations: LRUDict[RegistryKey, str] = LRUDict(MAX_REGISTRY_GENERATIONS)
|
|
120
|
+
self.registry_guard = threading.Lock()
|
|
102
121
|
|
|
103
122
|
def _run_policy(self, snapshot: Any, request: dict[str, Any]) -> dict[str, Any]:
|
|
104
123
|
if self.runner is None:
|
|
@@ -165,12 +184,22 @@ class Owner:
|
|
|
165
184
|
return {"id": "captain-conductor", "version": "1"}
|
|
166
185
|
return {"id": "native", "version": "1"}
|
|
167
186
|
|
|
187
|
+
def registry_generation(self, tool_registry: list[dict[str, Any]], context: CallContext) -> str:
|
|
188
|
+
key = registry_key(tool_registry, context)
|
|
189
|
+
with self.registry_guard:
|
|
190
|
+
if key in self.registry_generations:
|
|
191
|
+
return self.registry_generations[key]
|
|
192
|
+
generation = self.store.register_tool_registry(tool_registry, context=context)
|
|
193
|
+
with self.registry_guard:
|
|
194
|
+
self.registry_generations[key] = generation
|
|
195
|
+
return generation
|
|
196
|
+
|
|
168
197
|
def call(
|
|
169
198
|
self, request: dict[str, Any], context: CallContext, token: Any, tool_registry: list[dict[str, Any]]
|
|
170
199
|
) -> dict[str, Any]:
|
|
171
200
|
usage: dict[str, int] | None = None
|
|
172
201
|
try:
|
|
173
|
-
context["registry_generation"] = self.
|
|
202
|
+
context["registry_generation"] = self.registry_generation(tool_registry, context)
|
|
174
203
|
if request["schema"] == CORE_SCHEMA:
|
|
175
204
|
if request["operation"] == "resume":
|
|
176
205
|
page = self.store.resume_projection(request["cursor"], context=context, cancellation=token)
|
|
@@ -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.77.
|
|
4
|
+
version = "12.77.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/fixes/hooks/scratch_writes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/_sessions.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/commands.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/comments.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/deletions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/hook_files.py
RENAMED
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/plain_english.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/questions.py
RENAMED
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/sessions.py
RENAMED
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/general/hooks/tombstones.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/graphite/hooks/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/__init__.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/filesystem.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/performance/hooks/pipelining.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/python/hooks/toolchain.py
RENAMED
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/__init__.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/steering.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/teammates.py
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/builtin_packs/steering/hooks/workarounds.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/authoring-hooks/references/pitfalls.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/skills/translating-styleguides/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/host-request.schema.json
RENAMED
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/host-response.schema.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capt_hook-12.77.1 → capt_hook-12.77.2}/captain_hook/snapshots/schemas/tool_registry.schema.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|