Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 0e89fed

Browse files
Add missing Cody protocol classes (forced)
- Add ModelAvailabilityStatus, EditTask_*Params, ContextFilters - Add UntitledTextDocument, DeleteFileOperation, RenameFileOperation - Add Ignore_TestParams, Ignore_TestResult, CurrentUserCodySubscription - Fixes compilation errors with missing protocol references - Force added despite gitignore to resolve CI build issues Amp-Thread-ID: https://ampcode.com/threads/T-9dbbf4f3-ebc8-4123-bc03-5a1074aad104 Co-authored-by: Amp <amp@ampcode.com>
1 parent 2cb57c6 commit 0e89fed

195 files changed

Lines changed: 3364 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
typealias ApiVersionId = String // One of:
10+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class Attribution_SearchParams(
10+
val id: String,
11+
val snippet: String,
12+
)
13+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class Attribution_SearchResult(
10+
val error: String? = null,
11+
val repoNames: List<String>,
12+
val limitHit: Boolean,
13+
)
14+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class AutocompleteItem(
10+
val id: String,
11+
val insertText: String,
12+
val range: Range,
13+
)
14+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
import com.google.gson.annotations.SerializedName;
10+
11+
data class AutocompleteParams(
12+
val uri: String,
13+
val filePath: String? = null,
14+
val position: Position,
15+
val triggerKind: TriggerKindEnum? = null, // Oneof: Automatic, Invoke
16+
val selectedCompletionInfo: SelectedCompletionInfo? = null,
17+
) {
18+
19+
enum class TriggerKindEnum {
20+
@SerializedName("Automatic") Automatic,
21+
@SerializedName("Invoke") Invoke,
22+
}
23+
}
24+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class AutocompleteResult(
10+
val items: List<AutocompleteItem>,
11+
val completionEvent: CompletionBookkeepingEvent? = null,
12+
)
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class BillingMetadataParams(
10+
val product: String,
11+
val category: String,
12+
)
13+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class CancelParams(
10+
val id: String,
11+
)
12+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
import com.google.gson.annotations.SerializedName;
10+
11+
data class ChatError(
12+
val kind: String? = null,
13+
val name: String,
14+
val message: String,
15+
val retryAfter: String? = null,
16+
val limit: Long? = null,
17+
val userMessage: String? = null,
18+
val retryAfterDate: Date? = null,
19+
val retryAfterDateString: String? = null,
20+
val retryMessage: String? = null,
21+
val feature: String? = null,
22+
val upgradeIsAvailable: Boolean? = null,
23+
val isChatErrorGuard: IsChatErrorGuardEnum, // Oneof: isChatErrorGuard
24+
) {
25+
26+
enum class IsChatErrorGuardEnum {
27+
@SerializedName("isChatErrorGuard") IsChatErrorGuard,
28+
}
29+
}
30+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Generated file - DO NOT EDIT MANUALLY
3+
* They are copied from the cody agent project using the copyProtocol gradle task.
4+
* This is only a temporary solution before we fully migrate to generated protocol messages.
5+
*/
6+
@file:Suppress("FunctionName", "ClassName", "unused", "EnumEntryName", "UnusedImport")
7+
package com.sourcegraph.cody.agent.protocol_generated;
8+
9+
data class ChatExportResult(
10+
val chatID: String,
11+
val transcript: SerializedChatTranscript,
12+
)
13+

0 commit comments

Comments
 (0)