Skip to content

Commit a87e2fc

Browse files
committed
Sync package extension search schema
1 parent 6109145 commit a87e2fc

1 file changed

Lines changed: 83 additions & 0 deletions

File tree

‎schemas/semantic-search-packet.v1.schema.json‎

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@
6868
"type": "string",
6969
"minLength": 1
7070
},
71+
"projectPackage": {
72+
"$ref": "#/$defs/projectPackage"
73+
},
74+
"extensions": {
75+
"type": "array",
76+
"items": {
77+
"$ref": "#/$defs/providerExtension"
78+
}
79+
},
7180
"view": {
7281
"enum": [
7382
"workspace",
@@ -492,6 +501,80 @@
492501
"projectPath": {
493502
"$ref": "semantic-source-location.v1.schema.json#/$defs/projectPath"
494503
},
504+
"projectPackage": {
505+
"type": "object",
506+
"description": "Provider-owned package manifest summary for the active project root.",
507+
"additionalProperties": false,
508+
"required": [
509+
"path",
510+
"name"
511+
],
512+
"properties": {
513+
"path": {
514+
"$ref": "#/$defs/projectPath"
515+
},
516+
"name": {
517+
"type": "string",
518+
"minLength": 1
519+
},
520+
"dependencies": {
521+
"type": "array",
522+
"items": {
523+
"type": "string",
524+
"minLength": 1
525+
}
526+
},
527+
"fields": {
528+
"$ref": "#/$defs/fields"
529+
}
530+
}
531+
},
532+
"providerExtension": {
533+
"type": "object",
534+
"description": "Provider-owned optional package extension capability surfaced through the shared search packet envelope.",
535+
"additionalProperties": false,
536+
"required": [
537+
"name",
538+
"activation",
539+
"capabilities"
540+
],
541+
"properties": {
542+
"name": {
543+
"type": "string",
544+
"minLength": 1
545+
},
546+
"activation": {
547+
"type": "string",
548+
"minLength": 1
549+
},
550+
"packageManager": {
551+
"type": "string",
552+
"minLength": 1
553+
},
554+
"package": {
555+
"type": "string",
556+
"minLength": 1
557+
},
558+
"dependencies": {
559+
"type": "array",
560+
"items": {
561+
"type": "string",
562+
"minLength": 1
563+
}
564+
},
565+
"capabilities": {
566+
"type": "array",
567+
"minItems": 1,
568+
"items": {
569+
"type": "string",
570+
"minLength": 1
571+
}
572+
},
573+
"fields": {
574+
"$ref": "#/$defs/fields"
575+
}
576+
}
577+
},
495578
"windowTarget": {
496579
"description": "A window-set target is either a canonical project path or a graph frontier token such as feature:cli, cfg:unix, or import:serde. It is not a display locator or rank-prefixed path.",
497580
"anyOf": [

0 commit comments

Comments
 (0)