48bf701281
When mustache variables in edge prompts resolve to empty strings (because upstream output lacks the fields), the engine now returns a Result.error instead of passing an empty --prompt to the agent. - evaluate.ts: check rendered prompt is non-empty after mustache.render() - run.ts: improve parseArgv error message for empty --prompt - Export parseArgv for testability - Add 7 tests covering all cases from the spec
24 lines
981 B
TypeScript
24 lines
981 B
TypeScript
export { buildContinuationPrompt } from "./build-continuation-prompt.js";
|
|
export { buildOutputFormatInstruction } from "./build-output-format-instruction.js";
|
|
export { buildRolePrompt } from "./build-role-prompt.js";
|
|
export type { BuildContextMeta } from "./context.js";
|
|
export { buildContext, buildContextWithMeta } from "./context.js";
|
|
export type { ExtractResult, ResolvedLlmProvider } from "./extract.js";
|
|
export {
|
|
extract,
|
|
resolveExtractModelAlias,
|
|
resolveModel,
|
|
} from "./extract.js";
|
|
export type { FrontmatterFastPathResult } from "./frontmatter.js";
|
|
export { tryFrontmatterFastPath } from "./frontmatter.js";
|
|
export { createAgent, parseArgv } from "./run.js";
|
|
export { getCachedSessionId, getCachePath, setCachedSessionId } from "./session-cache.js";
|
|
export { getConfigPath, getEnvPath, loadWorkflowConfig, resolveStorageRoot } from "./storage.js";
|
|
export type {
|
|
AgentContext,
|
|
AgentContinueFn,
|
|
AgentOptions,
|
|
AgentRunFn,
|
|
AgentRunResult,
|
|
} from "./types.js";
|