Skip to content

Commit 32b1b7a

Browse files
committed
batches: flag codingagent wire constants as cross-repo mirrored
Adds a one-line note above the env-var / header constants pointing at the sibling block in sourcegraph/sourcegraph, since the two repos hold the contract independently. Splits InstallDir into its own const since it's src-cli-local and not part of the cross-repo contract.
1 parent 0e9cd7d commit 32b1b7a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/batches/codingagent/types/types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,16 @@ import (
66
batcheslib "github.com/sourcegraph/sourcegraph/lib/batches"
77
)
88

9+
// Mirrored in sourcegraph/sourcegraph lib/batches/codingagent/codingagent.go; keep in sync.
910
const (
1011
ModelProviderTokenEnvVar = "SRC_BATCHES_MODEL_PROVIDER_TOKEN"
1112
JobIDEnvVar = "SRC_BATCHES_JOB_ID"
1213
JobIDHeaderName = "X-Sourcegraph-Job-ID"
13-
InstallDir = "/tmp/sg-codingagent/bin"
1414
)
1515

16+
// InstallDir is src-cli-local; not part of the cross-repo contract.
17+
const InstallDir = "/tmp/sg-codingagent/bin"
18+
1619
type Agent interface {
1720
Type() batcheslib.CodingAgentType
1821
// RunCommand returns the shell command for the agent. The rendered

0 commit comments

Comments
 (0)