Skip to content
Merged
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
6 changes: 6 additions & 0 deletions .changeset/full-eagles-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@kilocode/cli": patch
"kilo-code": patch
---

fix: use correct api url for some endpoints
4 changes: 2 additions & 2 deletions cli/src/services/telemetry/identity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import * as path from "path"
import * as crypto from "crypto"
import { KiloCodePaths } from "../../utils/paths.js"
import { logs } from "../logs.js"
import { getAppUrl } from "@roo-code/types"
import { getApiUrl } from "@roo-code/types"
import { machineIdSync } from "node-machine-id"

/**
Expand Down Expand Up @@ -108,7 +108,7 @@ export class IdentityManager {

try {
// Fetch user profile from Kilocode API
const response = await fetch(getAppUrl("/api/profile"), {
const response = await fetch(getApiUrl("/api/profile"), {
headers: {
Authorization: `Bearer ${kilocodeToken}`,
"Content-Type": "application/json",
Expand Down
6 changes: 3 additions & 3 deletions src/services/marketplace/RemoteConfigLoader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios"
import * as yaml from "yaml"
import { z } from "zod"
import { getAppUrl } from "@roo-code/types" // kilocode_change
import { getApiUrl } from "@roo-code/types" // kilocode_change
import {
type MarketplaceItem,
type MarketplaceItemType,
Expand Down Expand Up @@ -48,7 +48,7 @@ export class RemoteConfigLoader {
return cached
}

const url = getAppUrl("/api/marketplace/modes") // kilocode_change
const url = getApiUrl("/api/marketplace/modes") // kilocode_change
const data = await this.fetchWithRetry<string>(url)

const yamlData = yaml.parse(data)
Expand All @@ -71,7 +71,7 @@ export class RemoteConfigLoader {
return cached
}

const url = getAppUrl("/api/marketplace/mcps") // kilocode_change
const url = getApiUrl("/api/marketplace/mcps") // kilocode_change
const data = await this.fetchWithRetry<string>(url)

const yamlData = yaml.parse(data)
Expand Down