claude-dev-env 8.46.22 → 8.46.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-dev-env",
3
- "version": "8.46.22",
3
+ "version": "8.46.23",
4
4
  "description": "Claude Code development standards — rules, hooks, agents, commands, and skills",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,5 +10,5 @@ ALL_USAGE_LIMIT_SIGNATURES: tuple[str, ...] = (
10
10
  )
11
11
  """Case-insensitive substrings that mark a non-zero exit as a usage-limit refusal."""
12
12
 
13
- CHAIN_CONFIG_ERROR_EXIT_CODE: int = 3
13
+ CHAIN_CONFIG_ERROR_EXIT_CODE: int = 5
14
14
  """CLI exit code when the chain configuration is missing or invalid."""
@@ -493,7 +493,7 @@ SPAWN_SERVED_EXIT_CODE: int = 0
493
493
  SPAWN_EXHAUSTED_EXIT_CODE: int = 2
494
494
  """CLI exit code when no dispatcher tier served the call."""
495
495
 
496
- SPAWN_CONFIG_ERROR_EXIT_CODE: int = 3
496
+ SPAWN_CONFIG_ERROR_EXIT_CODE: int = 5
497
497
  """CLI exit code when the claude chain configuration is missing or invalid."""
498
498
 
499
499
  RESULT_KEY_TIER_USED: str = "tier_used"
@@ -607,7 +607,7 @@ def main(all_command_arguments: list[str]) -> int:
607
607
 
608
608
  A timeout outside the accepted bounds is a config fault: the run prints a
609
609
  structured outcome whose attempt reason is ``timeout_out_of_bounds`` and
610
- exits ``3``, rather than raising out of the CLI. A broker configuration error,
610
+ exits ``5``, rather than raising out of the CLI. A broker configuration error,
611
611
  or an unknown host profile refused by ``detect_host_profile``, prints the
612
612
  same exit code with the refusal text as its output.
613
613
 
@@ -19,7 +19,7 @@ from _code_review_test_support import (
19
19
  install_seams,
20
20
  run_review_cli,
21
21
  )
22
- from dev_env_scripts_constants.account_broker_constants import BrokerConfigurationError
22
+ from dev_env_scripts_constants.account_broker_constants import BrokerConfigurationError, WAIT_EXIT_CODE
23
23
  from dev_env_scripts_constants.claude_chain_constants import (
24
24
  CHAIN_CONFIG_ERROR_EXIT_CODE,
25
25
  )
@@ -82,6 +82,7 @@ def test_cli_emits_json_on_chain_configuration_error(
82
82
  exit_code = run_review_cli(working_directory, session_model=FIXTURE_SESSION_OPUS)
83
83
 
84
84
  assert exit_code == CHAIN_CONFIG_ERROR_EXIT_CODE
85
+ assert exit_code != WAIT_EXIT_CODE
85
86
  captured = capsys.readouterr()
86
87
  parsed_payload = json.loads(captured.out)
87
88
  assert parsed_payload == {
@@ -299,12 +299,12 @@ def test_grok_usage_limited_on_claude_host_requires_agent(
299
299
  def test_out_of_bounds_timeout_is_reported_as_config_not_worker_failure(
300
300
  monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str]
301
301
  ) -> None:
302
- """A refused timeout prints a structured outcome and exits 3, never a traceback.
302
+ """A refused timeout prints a structured outcome and exits 5, never a traceback.
303
303
 
304
304
  ::
305
305
 
306
- --timeout-seconds 0 ok: reason timeout_out_of_bounds, exit 3
307
- --timeout-seconds 5401 ok: reason timeout_out_of_bounds, exit 3
306
+ --timeout-seconds 0 ok: reason timeout_out_of_bounds, exit 5
307
+ --timeout-seconds 5401 ok: reason timeout_out_of_bounds, exit 5
308
308
  """
309
309
  prompt_file, working_directory, run_state_directory = _paths(tmp_path)
310
310
  _install_seams(monkeypatch, grok_outcome=_grok_ok())
@@ -350,7 +350,7 @@ def test_out_of_bounds_timeout_is_refused_when_the_grok_tier_is_unreachable(
350
350
  ::
351
351
 
352
352
  preflight unusable, --timeout-seconds 5401
353
- ok: reason timeout_out_of_bounds, exit 3, no tier invoked
353
+ ok: reason timeout_out_of_bounds, exit 5, no tier invoked
354
354
  """
355
355
  prompt_file, working_directory, run_state_directory = _paths(tmp_path)
356
356
  call_log = _install_seams(
@@ -496,7 +496,7 @@ def test_tier_three_wait_reports_reset_and_stops(
496
496
  assert call_log.claude_calls == 1
497
497
 
498
498
 
499
- def test_config_error_returns_exit_three(
499
+ def test_config_error_exit_code_differs_from_the_wait_exit_code(
500
500
  monkeypatch: pytest.MonkeyPatch, tmp_path: Path, capsys: pytest.CaptureFixture[str]
501
501
  ) -> None:
502
502
  prompt_file, working_directory, run_state_directory = _paths(tmp_path)
@@ -523,6 +523,7 @@ def test_config_error_returns_exit_three(
523
523
  )
524
524
 
525
525
  assert exit_code == SPAWN_CONFIG_ERROR_EXIT_CODE
526
+ assert exit_code != WAIT_EXIT_CODE
526
527
  captured = capsys.readouterr()
527
528
  parsed_payload = json.loads(captured.out)
528
529
  assert parsed_payload[RESULT_KEY_OK] is False