UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

26 lines (25 loc) • 953 B
export function isWordOf(words, v) { return words.some((w) => w === v); } export const OVERLAY_OPS = Object.freeze(["replace", "append", "add", "drop"]); export const HOST_ROLES = Object.freeze(["general", "code", "coordinator", "cowork"]); export const HOST_FORMS = Object.freeze(["standard", "minimal"]); export const PROMPT_TRAITS = Object.freeze(["lean_prompt", "fable_5_mitigations"]); export const PROMPT_FACT_NAMES = Object.freeze([ "policyEnabled", "hooksEnabled", "isolationEnabled", "readFaceOpen", "writeFaceOpen", "withinTaskCompactionEnabled", "supervisorEnabled", "orchestrationEnabled", "orchestrationDeferred", "awarenessEnabled", "goalEnabled", "worktreeIsolated", "teammateEnabled", "isSubagent", "executionEnvironmentDeclared", ]); export const RENDERER_IDS = Object.freeze(["role-base", "model-guidance", "mcp-instructions", "reminder-mark", "environment", "memory"]);