solver-sdk 6.0.3 → 6.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Code Solver SDK v6.0.1
1
+ # Code Solver SDK v6.0.3
2
2
 
3
3
  Backend SDK для интеграции с Code Solver API
4
4
 
@@ -61,13 +61,22 @@ getFilePathMapping(projectId: string): Promise<any> // Получить мап
61
61
  syncEncryptedChunks(projectId: string, encryptedChunks: any[], rootHash: string, options?: any): Promise<any> // Chunks должны быть ready-to-send
62
62
  getSyncStatus(projectId: string): Promise<any> // Статус delta-chunking процесса
63
63
  cancelSync(projectId: string): Promise<boolean>
64
+ cleanupDeletedFiles(projectId: string, activeFiles: any[]): Promise<any> // Очистить удаленные файлы из индекса
64
65
  ```
65
66
 
66
67
  ### Chat API (`sdk.chat`)
67
68
  ```typescript
69
+ // Основные методы
68
70
  chat(messages: any[], options?: any): Promise<any> // Обычный запрос-ответ
69
- chatStream(messages: any[], options?: any): Promise<AsyncIterable<any>> // Потоковый чат (streaming)
70
- cancelCurrentRequest(): void // Прервать активный запрос
71
+ chatCompletion(messages: any[], options?: any): Promise<any> // Алиас для chat()
72
+ streamChat(messages: any[], options?: any): Promise<AsyncIterable<any>> // Потоковый чат (streaming)
73
+ streamPrompt(prompt: string, options?: any): Promise<AsyncIterable<any>> // Потоковый промпт
74
+ sendContinuation(messages: any[], options?: any): Promise<AsyncIterable<any>> // Continuation для interleaved thinking
75
+
76
+ // Failover и проверки
77
+ chatWithRegionFailover(messages: any[], options?: any): Promise<any> // Чат с переключением регионов
78
+ sendPromptWithRegionFailover(prompt: string, options?: any): Promise<string> // Промпт с переключением регионов
79
+ checkAvailability(): Promise<boolean> // Проверить доступность сервиса
71
80
  ```
72
81
 
73
82
  ### Search API (`sdk.search`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solver-sdk",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "SDK for API integration",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",