mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-30 17:14:40 +08:00
dfa712d989
* feat: add AI image generation tool Port the legacy generate_image tool to the opencode-based CLI as a Kilo-owned tool gated by experimental.image_generation config flag. - New generate_image tool with prompt/path/image/model params - Routes through Kilo Gateway (zero-config) or BYO OpenRouter key - Supports text-to-image generation and image editing - Dynamic model discovery via GET /kilo/models/images endpoint - VS Code settings toggle + live model dropdown in Experimental tab - Writes image to disk and returns inline FilePart attachment - Fallback model catalog for offline resilience * refactor: change default image model to openrouter/auto * fix: address bot review feedback - Remove unused fetchKiloImageModels import in tool - Normalize jpg→jpeg MIME in parser, input image, and attachment - Replace mismatched extensions in ensureExtension (not just append) - Add assertExternalDirectoryEffect for output path traversal guard - Map unauthorized errors to 401 (not 400) in image models handler - Keep last known model list on fetch failure (don't overwrite with empty) - Fix tool description (remove false web search claim, fix grammar) - Remove duplicated provider resolver tests * fix: add retry for image models request to handle backend startup race * fix(image-generation): address kilo bot review comments - ensureExtension replaces mismatched image extensions instead of appending (photo.jpg + PNG -> photo.png, not photo.jpg.png) - Gateway /models/images normalizes errors to 400/401 matching every other gateway route (was leaking undeclared upstream statuses) - Add 401 response to openapi.json + SDK types for /kilo/models/images to match the gateway's errors(400, 401) declaration * fix(gateway): align /models/images error handling with other gateway routes * refactor: switch image generation to effect HttpClient * test: cover kilo models images endpoint in httpapi exercise scenarios * Exclude POST-only and parameterized API endpoints from link checker * Add ImageModelsProvider to agent manager context tree * chore(deps): bump @openrouter/ai-sdk-provider to 2.10.0 Switches imageModel() to OpenRouter's POST /api/v1/images endpoint for proper image usage/billing and image-specific params. * fix: address image generation PR review feedback - revert @openrouter/ai-sdk-provider 2.9.0->2.10.0 bump (image tool uses raw HTTP, not the SDK) - translate image generation settings strings across all locales - use central KILO_OPENROUTER_BASE instead of hardcoded URL fallback - remove completed plan file * chore: refresh source-links.md after URL refactor
12 KiB
12 KiB
Source Code Links
- https://accounts.x.ai
- https://api.apertis.ai/v1
- https://api.digitalocean.com
- https://api.kilo.ai
- https://api.x.ai/v1
- https://app.kilo.ai
- https://app.kilo.ai/claw
- https://app.kilo.ai/config.json
- https://app.kilo.ai/credits
- https://app.kilo.ai/profile
- https://app.kilo.ai/tui.json
- https://app.kilo.ai/usage
- https://arxiv.org/abs/2601.16746
- https://auth.x.ai
- https://auth.x.ai/oauth2/authorize
- https://auth.x.ai/oauth2/device/code
- https://auth.x.ai/oauth2/token
- https://blog.kilo.ai/p/kilo-gateway-now-supports-byok-20-providers
- https://blog.kilo.ai/p/new-kilo-for-vs-code-is-live
- https://chatgpt.com/explore/plus
- https://cli.github.com/
- https://cloud.digitalocean.com/v1/oauth/authorize
- https://cloudflare.com/cdn-cgi/trace
- https://docs.github.com/en/actions/how-tos/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services
- https://docs.inceptionlabs.ai/capabilities/next-edit
- https://docs.mistral.ai/studio-api/conversations/reasoning
- https://docs.venice.ai/overview/guides/reasoning-models#reasoning-effort
- https://docs.x.ai/docs/guides/reasoning#control-how-hard-the-model-thinks
- https://git-scm.com
- https://github.com
- https://github.com/apps/kiloconnect
- https://github.com/badlogic/pi-mono/blob/main/packages/ai/src/utils/overflow.ts
- https://github.com/cline/cline/blob/main/evals/diff-edits/diff-apply/diff-06-23-25.ts
- https://github.com/cline/cline/blob/main/evals/diff-edits/diff-apply/diff-06-26-25.ts
- https://github.com/elixir-lsp/elixir-ls/archive/refs/heads/master.zip
- https://github.com/google-gemini/gemini-cli/blob/main/packages/core/src/utils/editCorrector.ts
- https://github.com/Kilo-Org/kilo-marketplace
- https://github.com/Kilo-Org/kilocode
- https://github.com/Kilo-Org/kilocode/issues/6986
- https://github.com/Kilo-Org/kilocode/issues/9618
- https://github.com/Kilo-Org/kilocode/issues/9755
- https://github.com/Kilo-Org/kilocode/issues/new?template=bug-report.yml
- https://github.com/Kilo-Org/kilocode/issues/new/choose
- https://github.com/microsoft/vscode-eslint/archive/refs/heads/main.zip
- https://github.com/oven-sh/bun/issues/16682
- https://github.com/Rob--W/proxy-from-env
- https://github.com/vercel/ai/blob/2dc67e0ef538307f21368db32d5a12345d98831b/packages/ai/src/logger/log-warnings.ts#L85
- https://gitlab.com
- https://inference.do-ai.run/v1
- https://julialang.org/downloads/
- https://kilo.ai
- https://kilo.ai/
- https://kilo.ai/cli/install
- https://kilo.ai/discord
- https://kilo.ai/docs
- https://kilo.ai/docs/ai-providers/cloudflare
- https://kilo.ai/docs/ai-providers#custom-provider
- https://kilo.ai/docs/automate/mcp/what-is-mcp
- https://kilo.ai/docs/code-with-ai/platforms/vscode/whats-new
- https://kilo.ai/docs/customize/custom-subagents
- https://kilo.ai/docs/customize/marketplace
- https://kilo.ai/docs/customize/workflows
- https://kilo.ai/docs/getting-started/settings
- https://kilo.ai/gateway
- https://kilo.ai/kiloclaw
- https://kilo.ai/pricing
- https://kilo.ai/pricing/kilo-pass
- https://kilo.ai/support
- https://kilocode.ai
- https://opencode.ai/
- https://opencode.ai/zen
- https://openrouter.ai/api/v1/chat/completions
- https://openrouter.ai/docs/cookbook/administration/usage-accounting
- https://opncd.ai
- https://reddit.com/r/kilocode
- https://search.parallel.ai/mcp
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/amazon-bedrock
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/anthropic
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/azure
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/cerebras
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/cohere
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/deepinfra
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-generative-ai
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/google-vertex#anthropic-provider
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/groq
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/mistral
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/openai
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/perplexity
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/togetherai
- https://v5.ai-sdk.dev/providers/ai-sdk-providers/xai
- https://vercel.link/ai-gateway-token
- https://www.anaconda.com/products/desktop
- https://www.eclipse.org/downloads/download.php?file=/jdtls/snapshots/jdt-language-server-latest.tar.gz
- https://www.googleapis.com/auth/cloud-platform
- https://www.morphllm.com/
- https://www.rfc-editor.org/rfc/rfc8628#section-3.5
- https://x.com
- https://xn--pitest-2nf.com/status
- https://аpitest.com/status