Elffuss BraidHub

kikocis/continue public

feat: add 'uri' for context items for http context provider
Changeset6df66bc619fc9f27172e4a5ec577ace82df839b72be680d38be6fcaf262e4c74
AuthorVignesh.V <vignesh.raman50@gmail.com> · 2025-07-08 18:27 +05:30
CommitterVignesh.V <vignesh.raman50@gmail.com> · 2025-07-08 18:27 +05:30
Parents5c0668b587e2

Browse the files at this changeset

2 files changed

modified core/context/providers/HttpContextProvider.ts +4 −0
@@ -72,6 +72,10 @@
7272 description: item.description ?? "HTTP Context Item",
7373 content: item.content ?? "",
7474 name: item.name ?? this.options.title ?? "HTTP",
75+ uri: {
76+ type: item.uri.type,
77+ value: item.uri.value,
78+ },
7579 });
7680
7781 return Array.isArray(json)
modified docs/docs/customize/custom-providers.mdx +27 −0
@@ -987,6 +987,33 @@
987987 "description": "",
988988 "content": ""
989989 }
990+
991+// For response context items with hyperlinks
992+
993+[
994+ {
995+ "name": "",
996+ "description": "",
997+ "content": "",
998+ "uri": {
999+ "type": "file" or "url",
1000+ "value": "file:///path/to/file" or "https://example.com",
1001+ }
1002+ }
1003+]
1004+
1005+// OR
1006+
1007+{
1008+ "name": "",
1009+ "description": "",
1010+ "content": "",
1011+ "uri": {
1012+ "type": "file" or "url",
1013+ "value": "file:///path/to/file" or "https://example.com",
1014+ }
1015+}
1016+
9901017 ```
9911018
9921019 ### `@Commits`