94f725c50b
- Remove llmProvider and workspace from CursorAgentConfig (now just command/model/timeout) - extractWorkspacePath uses runtime.extract + runtime.cas instead of standalone reactor - TextProducerFn signature gains runtime parameter: (ctx, prompt, runtime) - develop-entry.ts hardcodes cursor-agent path, no more env var dependency - Drop @uncaged/workflow-reactor dep from workflow-agent-cursor - Update tests for simplified config 小橘 <xiaoju@shazhou.work>
16 lines
574 B
TypeScript
16 lines
574 B
TypeScript
import { createCursorAgent } from "./packages/workflow-agent-cursor/src/index.js";
|
|
import { createWorkflow } from "./packages/workflow-runtime/src/create-workflow.js";
|
|
import {
|
|
buildDevelopDescriptor,
|
|
developWorkflowDefinition,
|
|
} from "./packages/workflow-template-develop/src/index.js";
|
|
|
|
const agent = createCursorAgent({
|
|
command: "/home/azureuser/.local/bin/cursor-agent",
|
|
model: "auto",
|
|
timeout: 300_000,
|
|
});
|
|
|
|
export const descriptor = buildDevelopDescriptor();
|
|
export const run = createWorkflow(developWorkflowDefinition, { adapter: agent, overrides: null });
|