runners: share protocol and reviewer policy
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
/**
|
||||
* Agent Protocol Constants (SSOT).
|
||||
*
|
||||
* Shared constants for host ↔ runner communication.
|
||||
* Runners are separate packages and can't import this directly —
|
||||
* they define local copies with comments referencing this file.
|
||||
*/
|
||||
|
||||
/** Sentinel markers for robust stdout output parsing. */
|
||||
export const OUTPUT_START_MARKER = '---EJCLAW_OUTPUT_START---';
|
||||
export const OUTPUT_END_MARKER = '---EJCLAW_OUTPUT_END---';
|
||||
|
||||
/** Regex to extract [Image: /path/to/file] tags from agent text. */
|
||||
export const IMAGE_TAG_RE = /\[Image:\s*(\/[^\]]+)\]/g;
|
||||
|
||||
/** IPC polling interval (ms) used by runners to check for follow-up messages. */
|
||||
export const IPC_POLL_MS = 500;
|
||||
export const IPC_INPUT_SUBDIR = 'input';
|
||||
export const IPC_CLOSE_SENTINEL = '_close';
|
||||
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 'ejclaw-runners-shared';
|
||||
|
||||
Reference in New Issue
Block a user