@@ -1470,17 +1470,6 @@ function getStringValueAtPath(
14701470 return typeof node ?. value === 'string' ? node . value : null ;
14711471}
14721472
1473- function hasSiblingProperty (
1474- tree : JsonNode | undefined ,
1475- path : JsonPath ,
1476- propertyName : string
1477- ) : boolean {
1478- if ( ! tree || path . length === 0 ) return false ;
1479- const parentPath = path . slice ( 0 , - 1 ) ;
1480- const parentNode = findNodeAtLocation ( tree , parentPath ) ;
1481- return getObjectPropertyNames ( parentNode ) . has ( propertyName ) ;
1482- }
1483-
14841473export function getEmptyValueHints (
14851474 monaco : MonacoModule ,
14861475 model : import ( 'monaco-editor' ) . editor . ITextModel ,
@@ -1550,41 +1539,9 @@ export function getEmptyValueHints(
15501539 }
15511540 }
15521541
1553- // Context-aware hints for dependent fields
1554- if ( context . mode === 'control' ) {
1555- addDependentFieldHints ( monaco , model , tree , hints ) ;
1556- }
1557-
15581542 return hints ;
15591543}
15601544
1561- function addDependentFieldHints (
1562- monaco : MonacoModule ,
1563- model : import ( 'monaco-editor' ) . editor . ITextModel ,
1564- tree : JsonNode ,
1565- hints : Array < { range : import ( 'monaco-editor' ) . IRange ; hint : string } >
1566- ) {
1567- // When decision is "steer" but steering_context is missing, hint to add it
1568- const decisionNode = findNodeAtLocation ( tree , [ 'action' , 'decision' ] ) ;
1569- if (
1570- decisionNode ?. value === 'steer' &&
1571- ! hasSiblingProperty ( tree , [ 'action' , 'decision' ] , 'steering_context' )
1572- ) {
1573- const endPos = model . getPositionAt (
1574- decisionNode . offset + decisionNode . length
1575- ) ;
1576- hints . push ( {
1577- range : new monaco . Range (
1578- endPos . lineNumber ,
1579- endPos . column ,
1580- endPos . lineNumber ,
1581- endPos . column
1582- ) ,
1583- hint : ' \u2190 add "steering_context": { "message": "..." }' ,
1584- } ) ;
1585- }
1586- }
1587-
15881545// Default Monaco JSON mode configuration with completionItems disabled.
15891546// We disable the built-in JSON completion provider to avoid duplicate suggestions
15901547export function setupJsonEditorLanguageSupport (
0 commit comments