mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-07 04:08:45 +02:00
refactor: remove legacy patterns system, unify on workflows
Remove the entire patterns domain model, IPC channels, sidecar services, renderer components, and tests. Sessions now bind exclusively to workflows via workflowId. Builtin workflows replace builtin patterns. Backend: - Make AgentNodeConfig standalone (no longer extends PatternAgentDefinition) - Add WorkflowOrchestrationMode and WorkflowExecutionDefinition - Create builtin workflows (single-agent, sequential, concurrent, handoff, group-chat) - Rewrite session model config helpers for workflow-only - Remove pattern IPC channels, handlers, and preload bindings - Merge createSession/createWorkflowSession into single method - Remove sidecar PatternGraphResolver, PatternValidator, pattern DTOs - Add workspace migration for legacy sessions (patternId -> workflowId) Frontend: - Delete PatternEditor, pattern-graph components, patternGraph lib - Delete NewSessionModal (session creation uses workflows directly) - Remove PatternsSection from SettingsPanel - Update App.tsx, ChatPane, ActivityPanel, Sidebar, RunTimeline, AgentConfigFields, InlinePills, sessionActivity to use workflow types - Delete pattern.ts domain module 78 files changed across backend and frontend. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -16,11 +16,11 @@ import {
|
||||
type SessionActivityMap,
|
||||
type SessionRequestUsageMap,
|
||||
} from '@renderer/lib/sessionActivity';
|
||||
import type { PatternDefinition } from '@shared/domain/pattern';
|
||||
import type { WorkflowDefinition } from '@shared/domain/workflow';
|
||||
import type { SessionEventRecord } from '@shared/domain/event';
|
||||
|
||||
describe('session activity helpers', () => {
|
||||
const agents: PatternDefinition['agents'] = [
|
||||
const agents = [
|
||||
{
|
||||
id: 'architect',
|
||||
name: 'Architect',
|
||||
@@ -37,7 +37,14 @@ describe('session activity helpers', () => {
|
||||
model: 'gpt-5.4',
|
||||
reasoningEffort: 'medium',
|
||||
},
|
||||
];
|
||||
] satisfies Array<{
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
instructions: string;
|
||||
model: string;
|
||||
reasoningEffort?: 'high' | 'medium';
|
||||
}>;
|
||||
|
||||
test('stores activity per session and per agent', () => {
|
||||
const architectEvent: SessionEventRecord = {
|
||||
@@ -247,9 +254,9 @@ describe('session activity helpers', () => {
|
||||
projectId: 'project-1',
|
||||
projectPath: 'C:\\workspace\\project',
|
||||
workspaceKind: 'project',
|
||||
patternId: 'pattern-1',
|
||||
patternName: 'Pattern',
|
||||
patternMode: 'single',
|
||||
workflowId: 'workflow-1',
|
||||
workflowName: 'Pattern',
|
||||
workflowMode: 'single',
|
||||
triggerMessageId: 'msg-1',
|
||||
startedAt: '2026-03-23T00:00:00.000Z',
|
||||
completedAt: '2026-03-23T00:00:01.000Z',
|
||||
|
||||
Reference in New Issue
Block a user