runapprentice 0.4.4__tar.gz → 0.4.5__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 (119) hide show
  1. {runapprentice-0.4.4 → runapprentice-0.4.5}/.gitignore +4 -1
  2. runapprentice-0.4.5/PKG-INFO +663 -0
  3. runapprentice-0.4.5/README.md +630 -0
  4. {runapprentice-0.4.4 → runapprentice-0.4.5}/pyproject.toml +14 -1
  5. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/__init__.py +2 -1
  6. runapprentice-0.4.5/src/runapprentice/_action_route.py +237 -0
  7. runapprentice-0.4.5/src/runapprentice/_agent.py +812 -0
  8. runapprentice-0.4.5/src/runapprentice/_agent_optimize.py +120 -0
  9. runapprentice-0.4.5/src/runapprentice/_agent_platform.py +200 -0
  10. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/_capture.py +24 -17
  11. runapprentice-0.4.5/src/runapprentice/_capture_replay.py +120 -0
  12. runapprentice-0.4.5/src/runapprentice/_captured_app.py +219 -0
  13. runapprentice-0.4.5/src/runapprentice/_envelope.py +341 -0
  14. runapprentice-0.4.5/src/runapprentice/_gguf_bundle.py +960 -0
  15. runapprentice-0.4.5/src/runapprentice/_gguf_export.py +377 -0
  16. runapprentice-0.4.5/src/runapprentice/_gguf_pod.py +586 -0
  17. runapprentice-0.4.5/src/runapprentice/_langchain_route.py +219 -0
  18. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/_local_ops.py +81 -22
  19. runapprentice-0.4.5/src/runapprentice/_managed_answers.py +922 -0
  20. runapprentice-0.4.5/src/runapprentice/_managed_head.py +374 -0
  21. runapprentice-0.4.5/src/runapprentice/_managed_http.py +273 -0
  22. runapprentice-0.4.5/src/runapprentice/_managed_run.py +477 -0
  23. runapprentice-0.4.5/src/runapprentice/_managed_state.py +713 -0
  24. runapprentice-0.4.5/src/runapprentice/_managed_test.py +47 -0
  25. runapprentice-0.4.5/src/runapprentice/_managed_training.py +273 -0
  26. runapprentice-0.4.5/src/runapprentice/_mlx_eval.py +125 -0
  27. runapprentice-0.4.5/src/runapprentice/_mlx_head.py +246 -0
  28. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/_mlx_lora.py +88 -23
  29. runapprentice-0.4.5/src/runapprentice/_mlx_memory.py +107 -0
  30. runapprentice-0.4.5/src/runapprentice/_native_tools.py +63 -0
  31. runapprentice-0.4.5/src/runapprentice/_optimize_progress.py +92 -0
  32. runapprentice-0.4.5/src/runapprentice/_pause.py +73 -0
  33. runapprentice-0.4.5/src/runapprentice/_request_render.py +470 -0
  34. runapprentice-0.4.5/src/runapprentice/_routing.py +1008 -0
  35. runapprentice-0.4.5/src/runapprentice/_serve.py +531 -0
  36. runapprentice-0.4.5/src/runapprentice/_sgr.py +127 -0
  37. runapprentice-0.4.5/src/runapprentice/_step_routing.py +162 -0
  38. runapprentice-0.4.5/src/runapprentice/_steps.py +107 -0
  39. runapprentice-0.4.5/src/runapprentice/_tool_answers.py +200 -0
  40. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/_train_output.py +42 -5
  41. runapprentice-0.4.5/src/runapprentice/anthropic.py +143 -0
  42. runapprentice-0.4.5/src/runapprentice/cli.py +2472 -0
  43. runapprentice-0.4.5/src/runapprentice/client.py +1521 -0
  44. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/langchain.py +149 -23
  45. runapprentice-0.4.5/src/runapprentice/licenses/Apache-2.0.txt +177 -0
  46. runapprentice-0.4.5/src/runapprentice/local.py +2176 -0
  47. runapprentice-0.4.5/src/runapprentice/managed.py +534 -0
  48. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/models.py +32 -2
  49. runapprentice-0.4.5/src/runapprentice/openai.py +712 -0
  50. runapprentice-0.4.5/tests/conftest.py +41 -0
  51. runapprentice-0.4.5/tests/test_action_route.py +911 -0
  52. runapprentice-0.4.5/tests/test_agent.py +628 -0
  53. runapprentice-0.4.5/tests/test_called_host.py +561 -0
  54. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_capture.py +166 -10
  55. runapprentice-0.4.5/tests/test_capture_contract.py +96 -0
  56. runapprentice-0.4.5/tests/test_capture_envelope.py +695 -0
  57. runapprentice-0.4.5/tests/test_capture_gate.py +365 -0
  58. runapprentice-0.4.5/tests/test_capture_serving.py +603 -0
  59. runapprentice-0.4.5/tests/test_captured_app.py +503 -0
  60. runapprentice-0.4.5/tests/test_checkpoint_prune.py +115 -0
  61. runapprentice-0.4.5/tests/test_cli.py +1880 -0
  62. runapprentice-0.4.5/tests/test_cli_local_optimize.py +1028 -0
  63. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_client.py +781 -10
  64. runapprentice-0.4.5/tests/test_client_job_result.py +109 -0
  65. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_dispatcher.py +10 -8
  66. runapprentice-0.4.5/tests/test_doctor.py +553 -0
  67. runapprentice-0.4.5/tests/test_effort_cleanup.py +473 -0
  68. runapprentice-0.4.5/tests/test_framework_apps.py +330 -0
  69. runapprentice-0.4.5/tests/test_framework_replay.py +345 -0
  70. runapprentice-0.4.5/tests/test_gguf_bundle.py +821 -0
  71. runapprentice-0.4.5/tests/test_gguf_export.py +495 -0
  72. runapprentice-0.4.5/tests/test_killed_run_message.py +190 -0
  73. runapprentice-0.4.5/tests/test_langchain_route.py +365 -0
  74. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_local.py +146 -11
  75. runapprentice-0.4.5/tests/test_local_failure_privacy.py +133 -0
  76. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_local_ops.py +19 -4
  77. runapprentice-0.4.5/tests/test_managed_answers.py +1060 -0
  78. runapprentice-0.4.5/tests/test_managed_round3.py +340 -0
  79. runapprentice-0.4.5/tests/test_managed_round4.py +468 -0
  80. runapprentice-0.4.5/tests/test_managed_run.py +2202 -0
  81. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_managed_run_readers.py +3 -2
  82. runapprentice-0.4.5/tests/test_managed_state.py +876 -0
  83. runapprentice-0.4.5/tests/test_managed_test_contract.py +98 -0
  84. runapprentice-0.4.5/tests/test_managed_training.py +478 -0
  85. runapprentice-0.4.5/tests/test_managed_training_contract.py +489 -0
  86. runapprentice-0.4.5/tests/test_managed_transport.py +696 -0
  87. runapprentice-0.4.5/tests/test_mlx_eval_format.py +116 -0
  88. runapprentice-0.4.5/tests/test_mlx_head.py +260 -0
  89. runapprentice-0.4.5/tests/test_mlx_memory.py +357 -0
  90. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_openai.py +165 -22
  91. runapprentice-0.4.5/tests/test_openai_streaming.py +700 -0
  92. runapprentice-0.4.5/tests/test_pause.py +656 -0
  93. runapprentice-0.4.5/tests/test_resume.py +187 -0
  94. runapprentice-0.4.5/tests/test_routing.py +1531 -0
  95. runapprentice-0.4.5/tests/test_serve.py +652 -0
  96. runapprentice-0.4.5/tests/test_step_routing.py +500 -0
  97. runapprentice-0.4.5/tests/test_steps.py +524 -0
  98. runapprentice-0.4.5/tests/test_stream_envelope.py +387 -0
  99. runapprentice-0.4.5/tests/test_tool_call_answers.py +143 -0
  100. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_train_output.py +2 -1
  101. runapprentice-0.4.5/tests/test_training_answers.py +221 -0
  102. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_training_audit.py +21 -3
  103. runapprentice-0.4.5/tests/test_training_length.py +549 -0
  104. runapprentice-0.4.5/tests/test_transport_security.py +240 -0
  105. runapprentice-0.4.4/PKG-INFO +0 -322
  106. runapprentice-0.4.4/README.md +0 -293
  107. runapprentice-0.4.4/src/runapprentice/_mlx_eval.py +0 -70
  108. runapprentice-0.4.4/src/runapprentice/cli.py +0 -1049
  109. runapprentice-0.4.4/src/runapprentice/client.py +0 -675
  110. runapprentice-0.4.4/src/runapprentice/local.py +0 -1144
  111. runapprentice-0.4.4/src/runapprentice/openai.py +0 -176
  112. runapprentice-0.4.4/tests/conftest.py +0 -12
  113. runapprentice-0.4.4/tests/test_cli.py +0 -899
  114. {runapprentice-0.4.4 → runapprentice-0.4.5}/LICENSE +0 -0
  115. {runapprentice-0.4.4 → runapprentice-0.4.5}/src/runapprentice/py.typed +0 -0
  116. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_device_facts.py +0 -0
  117. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_failopen.py +0 -0
  118. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_langchain_prompts.py +0 -0
  119. {runapprentice-0.4.4 → runapprentice-0.4.5}/tests/test_local_progress.py +0 -0
@@ -22,6 +22,8 @@ out/
22
22
  # Data & model artifacts — never commit (AGENTS.md)
23
23
  *.csv
24
24
  *.jsonl
25
+ # Except the New task sample file: 40 invented support tickets, no real data.
26
+ !apprentice-ui/public/sample-*.csv
25
27
  datasets/
26
28
  apprentice-api/spike/.cache/
27
29
  checkpoints/
@@ -32,7 +34,8 @@ optimized_program.json
32
34
  .DS_Store
33
35
  *.log
34
36
  apprentice-ui/codex_working.md
35
- .codex/
37
+ .codex/*
38
+ !.codex/hooks.json
36
39
 
37
40
  # Local dev databases (and their manual backups)
38
41
  *.db