-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path__init__.py
More file actions
257 lines (254 loc) · 6.86 KB
/
Copy path__init__.py
File metadata and controls
257 lines (254 loc) · 6.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
"""execution/ IL-1 package: subprocess lifecycle, session parsing, headless runner, testing, DB.
Re-exports the full public surface of the six execution sub-modules.
All sub-modules depend only on autoskillit.core.* at runtime;
execution/headless.py has TYPE_CHECKING-only references to pipeline/.
"""
from autoskillit.core import CmdSpec, SkillResult
from autoskillit.execution._recording_skills import (
restore_skill_snapshot,
scan_skill_snapshots,
snapshot_skill_dir,
)
from autoskillit.execution._session_log_recovery import recover_crashed_sessions
from autoskillit.execution.anomaly_detection import (
AnomalyKind,
AnomalySeverity,
detect_anomalies,
)
from autoskillit.execution.backends import (
BACKEND_REGISTRY,
CODEX_AUTO_COMPACT_LIMIT,
CODEX_MCP_REQUIRED_KEYS,
CODEX_MCP_STARTUP_TIMEOUT_SEC,
CODEX_MCP_TOOL_TIMEOUT_FLOOR,
CODEX_TOOL_OUTPUT_TOKEN_LIMIT,
ClaudeCodeBackend,
CodexBackend,
_is_autoskillit_hook_entry,
_is_autoskillit_registered,
_read_codex_config,
_serialize_toml,
_write_codex_config,
ensure_codex_mcp_registered,
generate_codex_hooks_config,
get_backend,
sync_hooks_to_codex_config,
)
from autoskillit.execution.ci import DefaultCIWatcher
from autoskillit.execution.commands import ClaudeHeadlessCmd
from autoskillit.execution.db import (
DefaultDatabaseReader,
)
from autoskillit.execution.db import (
_execute_readonly_query as execute_readonly_query,
)
from autoskillit.execution.diff_annotator import (
DiffMetrics,
FilterResult,
annotate_diff,
compute_diff_metrics,
extract_code_region,
extract_valid_lines,
filter_findings,
parse_hunk_ranges,
select_review_agents,
)
from autoskillit.execution.github import (
DefaultGitHubFetcher,
github_headers,
parse_merge_queue_response,
)
from autoskillit.execution.headless import (
DefaultHeadlessExecutor,
assert_interactive_ordering,
run_headless_core,
)
from autoskillit.execution.linux_tracing import (
LINUX_TRACING_AVAILABLE,
LinuxTracingHandle,
ProcSnapshot,
read_boot_id,
read_starttime_ticks,
start_linux_tracing,
)
from autoskillit.execution.merge_queue import DefaultMergeQueueWatcher, fetch_repo_merge_state
from autoskillit.execution.pr_analysis import (
DOMAIN_PATHS,
extract_linked_issues,
is_valid_fidelity_finding,
partition_files_by_domain,
)
from autoskillit.execution.process import (
DefaultSubprocessRunner,
_has_active_execution_marker, # noqa: F401 — re-exported for cli/app.py signal guard
async_kill_process_tree,
kill_process_tree,
run_managed_async,
run_managed_sync,
)
from autoskillit.execution.quota import (
QUOTA_CACHE_SCHEMA_VERSION,
QuotaStatus,
_refresh_quota_cache, # noqa: F401 — re-exported for server consumers; not in __all__
check_and_sleep_if_needed,
invalidate_cache,
)
from autoskillit.execution.recording import (
RECORD_SCENARIO_DIR_ENV,
RECORD_SCENARIO_ENV,
RECORD_SCENARIO_RECIPE_ENV,
REPLAY_SCENARIO_DIR_ENV,
REPLAY_SCENARIO_ENV,
SCENARIO_STEP_NAME_ENV,
RecordingSubprocessRunner,
ReplayingSubprocessRunner,
ScenarioReplayError,
build_replay_runner,
)
from autoskillit.execution.remote_resolver import (
REMOTE_PRECEDENCE,
resolve_remote_name,
resolve_remote_repo,
)
from autoskillit.execution.session import (
ClaudeSessionResult,
ContentState,
SessionState,
_collapse_hr_split_delimiters, # noqa: F401 — re-exported for fleet.result_parser
classify_infra_exit,
clear_session_state,
extract_token_usage,
parse_session_result,
persist_session_state,
read_session_state,
)
from autoskillit.execution.session_log import (
flush_session_log,
read_telemetry_clear_marker,
resolve_log_dir,
write_telemetry_clear_marker,
)
from autoskillit.execution.testing import (
DefaultTestRunner,
check_test_passed,
condense_test_output,
parse_pytest_summary,
)
__all__ = [
# _process_kill
"kill_process_tree",
"async_kill_process_tree",
# commands
"CmdSpec",
"ClaudeHeadlessCmd",
# process
"DefaultSubprocessRunner",
"run_managed_async",
"run_managed_sync",
# recording
"RecordingSubprocessRunner",
"ReplayingSubprocessRunner",
"ScenarioReplayError",
"build_replay_runner",
"RECORD_SCENARIO_ENV",
"RECORD_SCENARIO_DIR_ENV",
"RECORD_SCENARIO_RECIPE_ENV",
"REPLAY_SCENARIO_ENV",
"REPLAY_SCENARIO_DIR_ENV",
"SCENARIO_STEP_NAME_ENV",
"restore_skill_snapshot",
"scan_skill_snapshots",
"snapshot_skill_dir",
# quota
"QUOTA_CACHE_SCHEMA_VERSION",
"QuotaStatus",
"check_and_sleep_if_needed",
"invalidate_cache",
# session
"ClaudeSessionResult",
"ContentState",
"SessionState",
"SkillResult",
"classify_infra_exit",
"clear_session_state",
"extract_token_usage",
"parse_session_result",
"persist_session_state",
"read_session_state",
# headless
"run_headless_core",
"DefaultHeadlessExecutor",
"assert_interactive_ordering",
# testing
"parse_pytest_summary",
"check_test_passed",
"DefaultTestRunner",
"condense_test_output",
# ci
"DefaultCIWatcher",
# merge_queue
"DefaultMergeQueueWatcher",
"fetch_repo_merge_state",
# remote_resolver
"REMOTE_PRECEDENCE",
"resolve_remote_name",
"resolve_remote_repo",
# diff_annotator
"DiffMetrics",
"FilterResult",
"annotate_diff",
"compute_diff_metrics",
"extract_code_region",
"extract_valid_lines",
"filter_findings",
"parse_hunk_ranges",
"select_review_agents",
# db
"execute_readonly_query",
"DefaultDatabaseReader",
# github
"DefaultGitHubFetcher",
"github_headers",
"parse_merge_queue_response",
# linux_tracing
"LINUX_TRACING_AVAILABLE",
"LinuxTracingHandle",
"ProcSnapshot",
"read_boot_id",
"read_starttime_ticks",
"start_linux_tracing",
# backends
"BACKEND_REGISTRY",
"CODEX_MCP_REQUIRED_KEYS",
"CODEX_MCP_STARTUP_TIMEOUT_SEC",
"CODEX_MCP_TOOL_TIMEOUT_FLOOR",
"CODEX_TOOL_OUTPUT_TOKEN_LIMIT",
"CODEX_AUTO_COMPACT_LIMIT",
"ClaudeCodeBackend",
"CodexBackend",
"_is_autoskillit_hook_entry",
"_is_autoskillit_registered",
"_read_codex_config",
"_serialize_toml",
"_write_codex_config",
"ensure_codex_mcp_registered",
"generate_codex_hooks_config",
"sync_hooks_to_codex_config",
# anomaly_detection
"detect_anomalies",
"AnomalyKind",
"AnomalySeverity",
# session_log
"flush_session_log",
"read_telemetry_clear_marker",
"recover_crashed_sessions",
"resolve_log_dir",
"write_telemetry_clear_marker",
# pr_analysis
"DOMAIN_PATHS",
"extract_linked_issues",
"is_valid_fidelity_finding",
"partition_files_by_domain",
# backends
"get_backend",
]