mirror of
https://github.com/shareAI-lab/analysis_claude_code.git
synced 2026-09-21 21:03:38 +08:00
add worktree & up task、teammate etc
This commit is contained in:
@@ -271,6 +271,43 @@ export const EXECUTION_FLOWS: Record<string, FlowDefinition> = {
|
||||
{ from: "poll", to: "inbox" },
|
||||
],
|
||||
},
|
||||
s12: {
|
||||
nodes: [
|
||||
{ id: "start", label: "User Input", type: "start", x: COL_CENTER, y: 30 },
|
||||
{ id: "llm", label: "LLM Call", type: "process", x: COL_CENTER, y: 110 },
|
||||
{ id: "tool_check", label: "tool_use?", type: "decision", x: COL_CENTER, y: 190 },
|
||||
{ id: "is_wt", label: "worktree tool?", type: "decision", x: COL_LEFT, y: 280 },
|
||||
{ id: "task", label: "Task Board\\n(.tasks)", type: "process", x: 60, y: 360 },
|
||||
{ id: "wt_create", label: "Allocate / Enter\\nWorktree", type: "subprocess", x: 60, y: 440 },
|
||||
{ id: "wt_run", label: "Run in\\nIsolated Dir", type: "subprocess", x: COL_LEFT + 80, y: 360 },
|
||||
{ id: "wt_close", label: "Closeout:\\nworktree_keep / remove", type: "process", x: COL_LEFT + 80, y: 440 },
|
||||
{ id: "events", label: "Emit Lifecycle Events\\n(side-channel)", type: "process", x: COL_RIGHT, y: 420 },
|
||||
{ id: "events_read", label: "Optional Read\\nworktree_events", type: "subprocess", x: COL_RIGHT, y: 520 },
|
||||
{ id: "append", label: "Append Result", type: "process", x: COL_CENTER, y: 530 },
|
||||
{ id: "end", label: "Output", type: "end", x: COL_RIGHT, y: 280 },
|
||||
],
|
||||
edges: [
|
||||
{ from: "start", to: "llm" },
|
||||
{ from: "llm", to: "tool_check" },
|
||||
{ from: "tool_check", to: "is_wt", label: "yes" },
|
||||
{ from: "tool_check", to: "end", label: "no" },
|
||||
{ from: "is_wt", to: "task", label: "task ops" },
|
||||
{ from: "is_wt", to: "wt_create", label: "create/bind" },
|
||||
{ from: "is_wt", to: "wt_run", label: "run/status" },
|
||||
{ from: "task", to: "wt_create", label: "allocate lane" },
|
||||
{ from: "wt_create", to: "wt_run" },
|
||||
{ from: "task", to: "append", label: "task result" },
|
||||
{ from: "wt_create", to: "events", label: "emit create" },
|
||||
{ from: "wt_create", to: "append", label: "create result" },
|
||||
{ from: "wt_run", to: "wt_close" },
|
||||
{ from: "wt_run", to: "append", label: "run/status result" },
|
||||
{ from: "wt_close", to: "events", label: "emit closeout" },
|
||||
{ from: "wt_close", to: "append", label: "closeout result" },
|
||||
{ from: "events", to: "events_read", label: "optional query" },
|
||||
{ from: "events_read", to: "append", label: "events result" },
|
||||
{ from: "append", to: "llm" },
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
export function getFlowForVersion(version: string): FlowDefinition | null {
|
||||
|
||||
Reference in New Issue
Block a user