claude-dev-env 7.6.1 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +48 -71
- package/_shared/advisor/advisor-protocol.md +2 -2
- package/_shared/advisor/reference/advisor-block.md +1 -1
- package/_shared/advisor/reference/astra-rung.md +2 -2
- package/_shared/advisor/scripts/codex_astra_advisor.py +122 -23
- package/_shared/advisor/scripts/config/advisor_scripts_constants/advisor_route_constants.py +76 -9
- package/_shared/advisor/scripts/tests/test_advisor_route_constants.py +51 -0
- package/_shared/advisor/scripts/tests/test_codex_astra_advisor.py +52 -2
- package/bin/install-constants.mjs +3 -0
- package/bin/install-transaction.mjs +41 -44
- package/bin/install.cursor-rules.test.mjs +311 -3
- package/bin/install.mjs +156 -95
- package/bin/install.transaction.test.mjs +61 -1
- package/bin/pstack-model-preferences.codex.json +1 -0
- package/bin/pstack.mjs +28 -6
- package/bin/pstack.test.mjs +48 -0
- package/bin/select-pstack-models.test.mjs +375 -26
- package/bin/subagent-model-policy.test.mjs +399 -0
- package/docs/codex-compatibility.md +19 -5
- package/docs/subagent-model-routing.md +50 -0
- package/hooks/hooks.json +10 -0
- package/hooks/routing/subagent_model_routing.mjs +81 -0
- package/hooks/routing/subagent_model_routing.test.mjs +218 -0
- package/package.json +1 -1
- package/rules/pstack-models.md +22 -0
- package/rules/subagent-model-policy.json +85 -0
- package/scripts/resolve_advisor_model_route.mjs +52 -0
- package/scripts/select_pstack_models.mjs +203 -38
- package/scripts/subagent_model_policy.mjs +620 -0
- package/scripts/tests/resolve_advisor_model_route.test.mjs +51 -0
- package/scripts/tests/test_codex_compat_materializer.py +15 -0
|
@@ -947,6 +947,15 @@ def _prepare_projection_fixture(
|
|
|
947
947
|
{"type": "command", "command": "python not_code_rules_enforcer.py"}
|
|
948
948
|
],
|
|
949
949
|
},
|
|
950
|
+
{
|
|
951
|
+
"matcher": "multi_agent_v1__spawn_agent",
|
|
952
|
+
"hooks": [
|
|
953
|
+
{
|
|
954
|
+
"type": "command",
|
|
955
|
+
"command": "node custom/subagent_model_routing.mjs",
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
},
|
|
950
959
|
],
|
|
951
960
|
"SessionStart": [_hook_group(
|
|
952
961
|
"",
|
|
@@ -1030,6 +1039,12 @@ def _assert_projection_and_manifest(
|
|
|
1030
1039
|
f'python3 "{target / "hooks" / "blocking" / "code_rules_enforcer.py"}"'
|
|
1031
1040
|
)
|
|
1032
1041
|
assert managed_command in apply_patch_commands
|
|
1042
|
+
routing_entries = [
|
|
1043
|
+
each_entry
|
|
1044
|
+
for each_entry in manifest["hooks"]["PreToolUse"]
|
|
1045
|
+
if each_entry["matcher"] == "multi_agent_v1__spawn_agent"
|
|
1046
|
+
]
|
|
1047
|
+
assert routing_entries == [existing_hooks["hooks"]["PreToolUse"][4]]
|
|
1033
1048
|
expected_commands_by_event = {
|
|
1034
1049
|
"SessionStart": ["python3 ${CLAUDE_PLUGIN_ROOT}/hooks/session/fix_worktree_hookspath.py"],
|
|
1035
1050
|
"UserPromptSubmit": ["python3 /home/example/custom/hooks/session/untracked_repo_detector.py", "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/session/untracked_repo_detector.py.bak"],
|