Skip to content

Commit 8d45701

Browse files
committed
Remove vision option and doc
1 parent 67d2fed commit 8d45701

4 files changed

Lines changed: 1 addition & 20 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ EXPOSE 4141
2020
ARG GH_TOKEN
2121
ENV GH_TOKEN=$GH_TOKEN
2222

23-
CMD bun run dist/main.js start -g $GH_TOKEN --vision
23+
CMD bun run dist/main.js start -g $GH_TOKEN

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ The following command line options are available for the `start` command:
8282
| --rate-limit | Rate limit in seconds between requests | none | -r |
8383
| --wait | Wait instead of error when rate limit is hit | false | -w |
8484
| --github-token | Provide GitHub token directly (must be generated using the `auth` subcommand) | none | -g |
85-
| --vision | Enable vision capabilities | false | none |
8685

8786
### Auth Command Options
8887

@@ -116,9 +115,6 @@ npx copilot-api@latest start --rate-limit 30 --wait
116115
# Provide GitHub token directly
117116
npx copilot-api@latest start --github-token ghp_YOUR_TOKEN_HERE
118117

119-
# Enable vision capabilities
120-
npx copilot-api@latest start --vision
121-
122118
# Run only the auth flow
123119
npx copilot-api@latest auth
124120

src/lib/state.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export interface State {
1010

1111
manualApprove: boolean
1212
rateLimitWait: boolean
13-
visionEnabled: boolean
1413

1514
// Rate limiting configuration
1615
rateLimitSeconds?: number
@@ -21,5 +20,4 @@ export const state: State = {
2120
accountType: "individual",
2221
manualApprove: false,
2322
rateLimitWait: false,
24-
visionEnabled: false,
2523
}

src/main.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ interface RunServerOptions {
2020
rateLimit?: number
2121
rateLimitWait: boolean
2222
githubToken?: string
23-
visionEnabled: boolean
2423
}
2524

2625
export async function runServer(options: RunServerOptions): Promise<void> {
@@ -37,11 +36,6 @@ export async function runServer(options: RunServerOptions): Promise<void> {
3736
state.manualApprove = options.manual
3837
state.rateLimitSeconds = options.rateLimit
3938
state.rateLimitWait = options.rateLimitWait
40-
state.visionEnabled = options.visionEnabled
41-
42-
if (options.visionEnabled) {
43-
consola.info("Vision capability enabled")
44-
}
4539

4640
await ensurePaths()
4741
await cacheVSCodeVersion()
@@ -111,12 +105,6 @@ const start = defineCommand({
111105
description:
112106
"Provide GitHub token directly (must be generated using the `auth` subcommand)",
113107
},
114-
vision: {
115-
type: "boolean",
116-
default: false,
117-
description: "Enable vision capabilities",
118-
required: false,
119-
},
120108
},
121109
run({ args }) {
122110
const rateLimitRaw = args["rate-limit"]
@@ -134,7 +122,6 @@ const start = defineCommand({
134122
rateLimit,
135123
rateLimitWait: Boolean(args.wait),
136124
githubToken: args["github-token"],
137-
visionEnabled: args.vision,
138125
})
139126
},
140127
})

0 commit comments

Comments
 (0)