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.
Files changed (31) hide show
  1. package/AGENTS.md +48 -71
  2. package/_shared/advisor/advisor-protocol.md +2 -2
  3. package/_shared/advisor/reference/advisor-block.md +1 -1
  4. package/_shared/advisor/reference/astra-rung.md +2 -2
  5. package/_shared/advisor/scripts/codex_astra_advisor.py +122 -23
  6. package/_shared/advisor/scripts/config/advisor_scripts_constants/advisor_route_constants.py +76 -9
  7. package/_shared/advisor/scripts/tests/test_advisor_route_constants.py +51 -0
  8. package/_shared/advisor/scripts/tests/test_codex_astra_advisor.py +52 -2
  9. package/bin/install-constants.mjs +3 -0
  10. package/bin/install-transaction.mjs +41 -44
  11. package/bin/install.cursor-rules.test.mjs +311 -3
  12. package/bin/install.mjs +156 -95
  13. package/bin/install.transaction.test.mjs +61 -1
  14. package/bin/pstack-model-preferences.codex.json +1 -0
  15. package/bin/pstack.mjs +28 -6
  16. package/bin/pstack.test.mjs +48 -0
  17. package/bin/select-pstack-models.test.mjs +375 -26
  18. package/bin/subagent-model-policy.test.mjs +399 -0
  19. package/docs/codex-compatibility.md +19 -5
  20. package/docs/subagent-model-routing.md +50 -0
  21. package/hooks/hooks.json +10 -0
  22. package/hooks/routing/subagent_model_routing.mjs +81 -0
  23. package/hooks/routing/subagent_model_routing.test.mjs +218 -0
  24. package/package.json +1 -1
  25. package/rules/pstack-models.md +22 -0
  26. package/rules/subagent-model-policy.json +85 -0
  27. package/scripts/resolve_advisor_model_route.mjs +52 -0
  28. package/scripts/select_pstack_models.mjs +203 -38
  29. package/scripts/subagent_model_policy.mjs +620 -0
  30. package/scripts/tests/resolve_advisor_model_route.test.mjs +51 -0
  31. 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"],