- Add intelligent-router.sh hook for automatic agent routing - Add AUTO-TRIGGER-SUMMARY.md documentation - Add FINAL-INTEGRATION-SUMMARY.md documentation - Complete Prometheus integration (6 commands + 4 tools) - Complete Dexto integration (12 commands + 5 tools) - Enhanced Ralph with access to all agents - Fix /clawd command (removed disable-model-invocation) - Update hooks.json to v5 with intelligent routing - 291 total skills now available - All 21 commands with automatic routing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.7 KiB
TypeScript
60 lines
1.7 KiB
TypeScript
import React from 'react';
|
|
import AgentConfigEditor from './AgentConfigEditor';
|
|
import ConfigValidationStatus from './ConfigValidationStatus';
|
|
import type { editor } from 'monaco-editor';
|
|
import type { ValidationError, ValidationWarning } from '../hooks/useAgentConfig';
|
|
|
|
interface YAMLEditorViewProps {
|
|
value: string;
|
|
onChange: (value: string) => void;
|
|
onValidate?: (markers: editor.IMarker[]) => void;
|
|
isValidating?: boolean;
|
|
isValid?: boolean;
|
|
errors?: ValidationError[];
|
|
warnings?: ValidationWarning[];
|
|
hasUnsavedChanges?: boolean;
|
|
}
|
|
|
|
/**
|
|
* YAMLEditorView - Pure YAML editor with validation display
|
|
*
|
|
* This component is responsible for rendering the Monaco YAML editor
|
|
* and the validation status bar. It doesn't handle loading/saving -
|
|
* that's the parent's job.
|
|
*
|
|
* Reusable in both edit and create flows.
|
|
*/
|
|
export default function YAMLEditorView({
|
|
value,
|
|
onChange,
|
|
onValidate,
|
|
isValidating = false,
|
|
isValid = true,
|
|
errors = [],
|
|
warnings = [],
|
|
hasUnsavedChanges = false,
|
|
}: YAMLEditorViewProps) {
|
|
return (
|
|
<div className="flex flex-col h-full">
|
|
{/* Editor */}
|
|
<div className="flex-1 overflow-hidden">
|
|
<AgentConfigEditor
|
|
value={value}
|
|
onChange={onChange}
|
|
onValidate={onValidate}
|
|
height="100%"
|
|
/>
|
|
</div>
|
|
|
|
{/* Validation Status */}
|
|
<ConfigValidationStatus
|
|
isValidating={isValidating}
|
|
isValid={isValid}
|
|
errors={errors}
|
|
warnings={warnings}
|
|
hasUnsavedChanges={hasUnsavedChanges}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|