runners: share protocol and reviewer policy

This commit is contained in:
ejclaw
2026-04-11 05:07:05 +09:00
parent 94d53e4cc3
commit f5c3393c32
17 changed files with 648 additions and 276 deletions

View File

@@ -2,8 +2,44 @@ export {
prependRoomRoleHeader,
type RoomRoleContext,
} from './room-role-context.js';
export {
extractImageTagPaths,
IMAGE_TAG_RE,
IPC_CLOSE_SENTINEL,
IPC_INPUT_SUBDIR,
IPC_POLL_MS,
normalizeEjclawStructuredOutput,
normalizePublicTextOutput,
OUTPUT_END_MARKER,
OUTPUT_START_MARKER,
writeProtocolOutput,
type NormalizedRunnerOutput,
type RunnerOutputPhase,
type RunnerOutputVerdict,
type RunnerOutputVisibility,
type RunnerStructuredOutput,
} from './agent-protocol.js';
export {
assertReadonlyWorkspaceRepoConnectivity,
buildReviewerGitGuardEnv,
isReviewerRuntime,
} from './reviewer-git-guard.js';
export {
ARBITER_RUNTIME_ENV,
CLAUDE_REVIEWER_READONLY_ENV,
REVIEWER_RUNTIME_ENV,
UNSAFE_HOST_PAIRED_MODE_ENV,
buildClaudeReadonlySandboxSettings,
buildPairedReadonlyRuntimeEnvOverrides,
canUseLinuxBubblewrapReadonlySandbox,
getClaudeReadonlySandboxMode,
getReviewerRuntimeCapabilities,
isArbiterRuntimeEnvEnabled,
isClaudeReadonlyReviewerRuntime,
isReviewerMutatingShellCommand,
isReviewerRuntimeEnvEnabled,
isUnsafeHostPairedModeEnabled,
type ClaudeReadonlySandboxMode,
type ReviewerRuntimeCapabilities,
type RunnerAgentType,
} from './reviewer-runtime-policy.js';