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 assert from 'assert';
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../base/test/common/utils.js';
import { ActionType } from '../../common/state/sessionActions.js';
import { AhpSnapshotRecorder } from './e2e/harness/ahpSnapshot.js';
suite('AhpSnapshotRecorder', () => {
ensureNoDisposablesAreLeakedInTestSuite();
test('omits tool success by provider name before snapshot normalization', () => {
const recorder = new AhpSnapshotRecorder();
recorder.record('s2c', {
method: 'action',
params: {
channel: 'ahp-chat://session/chat',
action: {
type: ActionType.ChatToolCallStart,
turnId: 'turn-1',
toolCallId: 'tool-1',
toolName: 'bash',
displayName: 'Run command',
},
},
});
recorder.record('s2c', {
method: 'action',
params: {
channel: 'ahp-chat://session/chat',
action: {
type: ActionType.ChatToolCallComplete,
turnId: 'turn-1',
toolCallId: 'tool-1',
result: { success: false },
},
},
});
const snapshot = recorder.serialize({
profile: 'behavior',
omitToolCallSuccessForToolNames: ['bash'],
});
assert.deepStrictEqual({
normalizedToolName: snapshot.includes('toolName: ${shell}'),
includesSuccess: snapshot.includes('success:'),
}, {
normalizedToolName: true,
includesSuccess: false,
});
});
});