cfe4543d39
BREAKING CHANGES:
- Remove AgentFn, AgentFnResult, AgentBinding from workflow-protocol
- Remove wrapAgentAsAdapter from workflow-util-agent
- workflowAsAgent → workflowAdapter (old name kept as deprecated re-export)
New APIs:
- createTextAdapter(producer) — bridges text-producing functions to AdapterFn
- TextProducerFn, TextAdapterResult types
- workflowAdapter() — direct AdapterFn for child workflow delegation
All agent packages (cursor, hermes, llm) now return AdapterFn directly,
no wrapping needed. Bundle entries simplified accordingly.
小橘 🍊(NEKO Team)
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
export { createWorkflow } from "./engine/create-workflow.js";
|
|
export { executeThread } from "./engine/engine.js";
|
|
export {
|
|
FORK_BRANCH_ROLE,
|
|
prepareCasFork,
|
|
tryParseWorkflowResultRecord,
|
|
walkStateFramesNewestFirst,
|
|
} from "./engine/fork-thread.js";
|
|
export { garbageCollectCas } from "./engine/gc.js";
|
|
export { createThreadPauseGate } from "./engine/thread-pause-gate.js";
|
|
export type {
|
|
ThreadHistoryEntry,
|
|
ThreadIndex,
|
|
ThreadIndexEntry,
|
|
} from "./engine/threads-index.js";
|
|
export {
|
|
appendThreadHistoryEntry,
|
|
getBundleDir,
|
|
readThreadsIndex,
|
|
removeThreadEntry,
|
|
removeThreadHistoryEntries,
|
|
upsertThreadEntry,
|
|
writeThreadsIndex,
|
|
} from "./engine/threads-index.js";
|
|
export type {
|
|
CasForkPlan,
|
|
ChainState,
|
|
ExecuteThreadIo,
|
|
ExecuteThreadOptions,
|
|
ForkContinuationOptions,
|
|
GcResult,
|
|
PrefilledDiskStep,
|
|
SupervisorDecision,
|
|
ThreadPauseGate,
|
|
} from "./engine/types.js";
|
|
export { EMPTY_CHAIN_STATE } from "./engine/types.js";
|
|
export { getWorkerHostScriptPath } from "./engine/worker-entry-path.js";
|
|
export type { ExtractFn, LlmError, LlmExtractArgs } from "./extract/index.js";
|
|
export {
|
|
createExtract,
|
|
extractFunctionToolFromZodSchema,
|
|
llmErrorToCause,
|
|
llmExtract,
|
|
} from "./extract/index.js";
|
|
export { type WorkflowAdapterOptions, workflowAdapter } from "./workflow-adapter.js";
|
|
|
|
/** @deprecated Use {@link workflowAdapter} instead. */
|
|
export { type WorkflowAsAgentOptions, workflowAsAgent } from "./workflow-as-agent.js";
|