mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-17 17:43:04 +08:00
Merge pull request #11966 from Kilo-Org/mark/notification-version-headers
feat(gateway): send version headers on notification requests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { z } from "zod"
|
||||
import { KILO_API_BASE } from "./constants.js"
|
||||
import { getDefaultHeaders, buildKiloHeaders } from "../headers.js"
|
||||
|
||||
/**
|
||||
* Kilo notification schema
|
||||
@@ -44,8 +45,9 @@ export async function fetchKilocodeNotifications(options: {
|
||||
try {
|
||||
const response = await fetch(url, {
|
||||
headers: {
|
||||
...getDefaultHeaders(),
|
||||
...buildKiloHeaders(undefined, { kilocodeOrganizationId: options.kilocodeOrganizationId }),
|
||||
Authorization: `Bearer ${token}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
signal: AbortSignal.timeout(NOTIFICATIONS_TIMEOUT_MS),
|
||||
})
|
||||
|
||||
@@ -142,6 +142,7 @@ export class ServerManager {
|
||||
KILO_MACHINE_ID: vscode.env.machineId,
|
||||
KILO_APP_VERSION: this.context.extension.packageJSON.version,
|
||||
KILO_VSCODE_VERSION: vscode.version,
|
||||
KILOCODE_VERSION: this.context.extension.packageJSON.version,
|
||||
KILOCODE_EDITOR_NAME: `${vscode.env.appName} ${vscode.version}`,
|
||||
...(!claudeCompat && { KILO_DISABLE_CLAUDE_CODE: "true" }),
|
||||
...resolveTreeSitterEnv(this.context.extensionPath),
|
||||
|
||||
Reference in New Issue
Block a user