ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IStorageService } from '../../../../platform/storage/common/storage.js';
import { BrowserStorageService } from '../../../../workbench/services/storage/browser/storageService.js';
import { IAutomationStorageCompareAndSwapResult, IAutomationStorageService } from '../common/automationStorageService.js';
/**
* Uses an IndexedDB transaction so automation writes remain atomic across browser tabs.
*/
export class BrowserAutomationStorageService implements IAutomationStorageService {
declare readonly _serviceBrand: undefined;
private readonly storageService: BrowserStorageService;
constructor(
@IStorageService storageService: IStorageService,
) {
if (!(storageService instanceof BrowserStorageService)) {
throw new Error('Browser automation storage requires BrowserStorageService.');
}
this.storageService = storageService;
}
async read(key: string): Promise<string | undefined> {
return this.storageService.getApplicationStorageValue(key);
}
async compareAndSwap(key: string, expectedValue: string | undefined, newValue: string): Promise<IAutomationStorageCompareAndSwapResult> {
return this.storageService.compareAndSwapApplicationStorage(key, expectedValue, newValue);
}
}