Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 12 additions & 19 deletions packages/kilo-docs/source-links.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Source Code Links

<!-- Auto-generated by script/extract-source-links.ts — DO NOT EDIT -->
<!-- 79 unique URLs extracted from extension and CLI source -->
<!-- 74 unique URLs extracted from extension and CLI source -->

- <https://api.apertis.ai/v1>
<!-- packages/opencode/src/provider/model-cache.ts -->
Expand All @@ -10,6 +10,7 @@
<!-- packages/opencode/src/cli/cmd/github.ts -->
- <https://app.kilo.ai>
<!-- packages/opencode/src/kilocode/kilo-commands.tsx -->
<!-- packages/opencode/src/share/share-next.ts -->
- <https://app.kilo.ai/claw>
<!-- packages/opencode/src/kilocode/components/dialog-claw-setup.tsx -->
<!-- packages/opencode/src/kilocode/components/dialog-claw-upgrade.tsx -->
Expand Down Expand Up @@ -37,8 +38,6 @@
<!-- packages/opencode/src/provider/transform.ts -->
- <https://git-scm.com>
<!-- packages/kilo-vscode/src/agent-manager/WorktreeManager.ts -->
- <https://github.com/anomalyco/opencode/issues/new?template=bug-report.yml>
<!-- packages/opencode/src/cli/cmd/tui/component/error-component.tsx -->
- <https://github.com/apps/kiloconnect>
<!-- packages/opencode/src/cli/cmd/github.ts -->
- <https://github.com/badlogic/pi-mono/blob/main/packages/ai/src/utils/overflow.ts>
Expand All @@ -55,6 +54,8 @@
<!-- packages/kilo-vscode/webview-ui/src/components/settings/AboutKiloCodeTab.tsx -->
- <https://github.com/Kilo-Org/kilocode/issues/6986>
<!-- packages/kilo-vscode/src/agent-manager/constants.ts -->
- <https://github.com/Kilo-Org/kilocode/issues/new?template=bug-report.yml>
<!-- packages/opencode/src/cli/cmd/tui/component/error-component.tsx -->
- <https://github.com/Kilo-Org/kilocode/issues/new/choose>
<!-- packages/kilo-vscode/webview-ui/src/components/chat/FeedbackDialog.tsx -->
- <https://github.com/microsoft/vscode-eslint/archive/refs/heads/main.zip>
Expand Down Expand Up @@ -83,11 +84,19 @@
- <https://kilo.ai/docs>
<!-- packages/kilo-vscode/webview-ui/src/hooks/useSlashCommand.ts -->
<!-- packages/opencode/src/kilocode/cli/cmd/tui/app.tsx -->
- <https://kilo.ai/docs/ai-providers>
<!-- packages/opencode/src/cli/cmd/providers.ts -->
- <https://kilo.ai/docs/code-with-ai/platforms/vscode/whats-new>
<!-- packages/kilo-vscode/webview-ui/src/components/migration/MigrationWizard.tsx -->
- <https://kilo.ai/docs/customize/custom-modes>
<!-- packages/opencode/src/config/config.ts -->
- <https://kilo.ai/docs/customize/workflows>
<!-- packages/opencode/src/config/config.ts -->
- <https://kilo.ai/docs/providers/#custom-provider>
<!-- packages/kilo-vscode/webview-ui/src/components/settings/CustomProviderDialog.tsx -->
- <https://kilo.ai/gateway>
<!-- packages/kilo-vscode/webview-ui/src/i18n/en.ts -->
<!-- packages/opencode/src/cli/cmd/providers.ts -->
<!-- packages/opencode/src/cli/cmd/tui/component/dialog-provider.tsx -->
- <https://kilo.ai/install>
<!-- packages/opencode/src/installation/index.ts -->
Expand All @@ -102,24 +111,8 @@
<!-- packages/opencode/src/provider/models.ts -->
- <https://models.dev/model-schema.json#/$defs/Model>
<!-- packages/opencode/src/config/config.ts -->
- <https://opencode.ai/>
<!-- packages/opencode/src/cli/cmd/generate.ts -->
- <https://opencode.ai/auth>
<!-- packages/opencode/src/cli/cmd/providers.ts -->
- <https://opencode.ai/docs/agents>
<!-- packages/opencode/src/config/config.ts -->
- <https://opencode.ai/docs/commands>
<!-- packages/opencode/src/config/config.ts -->
- <https://opencode.ai/docs/providers/#cloudflare-ai-gateway>
<!-- packages/opencode/src/cli/cmd/providers.ts -->
- <https://opencode.ai/tui.json>
<!-- packages/opencode/src/config/migrate-tui-config.ts -->
- <https://opencode.ai/zen>
<!-- packages/kilo-vscode/webview-ui/src/i18n/en.ts -->
- <https://openrouter.ai/docs/use-cases/usage-accounting>
<!-- packages/opencode/src/kilocode/session/index.ts -->
- <https://opncd.ai>
<!-- packages/opencode/src/share/share-next.ts -->
- <https://platform.openai.com/docs/api-reference/responses/create>
<!-- packages/opencode/src/provider/sdk/copilot/responses/openai-responses-language-model.ts -->
- <https://platform.openai.com/docs/api-reference/responses/create#responses_create-top_logprobs>
Expand Down
2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/ar.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/br.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/bs.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/da.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/de.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const dict = {
"provider.connect.opencodeZen.line2":
"With a single API key you'll get access to models such as Claude, GPT, Gemini, GLM and more.",
"provider.connect.opencodeZen.visit.prefix": "Visit ",
"provider.connect.opencodeZen.visit.link": "https://opencode.ai/zen",
"provider.connect.opencodeZen.visit.link": "https://kilo.ai/gateway",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: This copy change is currently unused in the VS Code flow

The extension's provider connect dialog does not read provider.connect.opencodeZen.*; it only renders the generic API-key description path. As written, these locale updates will not actually change the VS Code provider UX that the PR description calls out.

"provider.connect.opencodeZen.visit.suffix": " to collect your API key.",
"provider.connect.oauth.code.visit.prefix": "Visit ",
"provider.connect.oauth.code.visit.link": "this link",
Expand Down
2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/es.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/fr.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/ja.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/ko.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/nl.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/no.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/pl.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/ru.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/th.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/tr.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/uk.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/zh.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/kilo-vscode/webview-ui/src/i18n/zht.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/opencode/src/cli/cmd/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const GenerateCommand = {
.replaceAll("OpenCode", "Kilo")
.replaceAll("opencode.local", "kilo.local")
.replaceAll("opencode serve", "kilo serve")
.replaceAll("https://opencode.ai/", "https://kilo.ai/")
.replace(/https:\/\/opencode\.ai\//g, "https://kilo.ai/")
// kilocode_change end

// Wait for stdout to finish writing before process.exit() is called
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/cli/cmd/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ export const ProvidersLoginCommand = cmd({
}

if (provider === "opencode") {
prompts.log.info("Create an api key at https://opencode.ai/auth")
prompts.log.info("Create an api key at https://kilo.ai/gateway") // kilocode_change
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: opencode still points at the OpenCode Zen backend

This help text now sends users to kilo.ai/gateway, but the opencode provider still resolves through the opencode.ai/zen/v1 model metadata and uses OPENCODE_API_KEY. That mismatch can make users store a Kilo Gateway key under the opencode provider and then fail authentication against the OpenCode endpoint.

}

if (provider === "vercel") {
Expand All @@ -447,7 +447,7 @@ export const ProvidersLoginCommand = cmd({

if (["cloudflare", "cloudflare-ai-gateway"].includes(provider)) {
prompts.log.info(
"Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://opencode.ai/docs/providers/#cloudflare-ai-gateway",
"Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://kilo.ai/docs/ai-providers", // kilocode_change
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function ErrorComponent(props: {
})
const [copied, setCopied] = createSignal(false)

const issueURL = new URL("https://github.com/anomalyco/opencode/issues/new?template=bug-report.yml")
const issueURL = new URL("https://github.com/Kilo-Org/kilocode/issues/new?template=bug-report.yml") // kilocode_change

// Choose safe fallback colors per mode since theme context may not be available
const isLight = props.mode === "light"
Expand All @@ -52,7 +52,7 @@ export function ErrorComponent(props: {
)
}

issueURL.searchParams.set("opencode-version", Installation.VERSION)
issueURL.searchParams.set("kilo-version", Installation.VERSION) // kilocode_change

const copyIssueURL = () => {
Clipboard.copy(issueURL.toString()).then(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/opencode/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ export namespace Config {
command: z
.record(z.string(), Command)
.optional()
.describe("Command configuration, see https://opencode.ai/docs/commands"),
.describe("Command configuration, see https://kilo.ai/docs/customize/workflows"), // kilocode_change
skills: Skills.optional().describe("Additional skill folder paths"),
watcher: z
.object({
Expand Down Expand Up @@ -1055,7 +1055,7 @@ export namespace Config {
})
.catchall(Agent)
.optional()
.describe("Agent configuration, see https://opencode.ai/docs/agents"),
.describe("Agent configuration, see https://kilo.ai/docs/customize/custom-modes"), // kilocode_change
provider: z
.record(z.string(), Provider)
.optional()
Expand Down
6 changes: 1 addition & 5 deletions packages/opencode/src/config/migrate-tui-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import { Global } from "@/global"

const log = Log.create({ service: "tui.migrate" })

const TUI_SCHEMA_URL = "https://opencode.ai/tui.json"

const LegacyTheme = TuiInfo.shape.theme.optional()
const LegacyRecord = z.record(z.string(), z.unknown()).optional()

Expand Down Expand Up @@ -63,9 +61,7 @@ export async function migrateTuiConfig(input: MigrateInput) {
const targetExists = await Filesystem.exists(target)
if (targetExists) continue

const payload: Record<string, unknown> = {
$schema: TUI_SCHEMA_URL,
}
const payload: Record<string, unknown> = {} // kilocode_change - Kilo does not publish a TUI schema yet
if (extracted.theme !== undefined) payload.theme = extracted.theme
if (extracted.keybinds !== undefined) payload.keybinds = extracted.keybinds
if (tui) Object.assign(payload, tui)
Expand Down
Loading
Loading