ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
'use strict';
const { describeToolCall } = require('./notes');
const MAX_AGENT_ROUNDS = 8;
const ROLE_PROMPTS = {
coder: 'You are the CODER agent. Implement the assigned change in the workspace. Read files before editing. Write complete file contents. When done, reply with a short summary of what changed.',
tester: 'You are the TESTER agent. Cover the assigned area with tests and run them via terminal.run. Fix trivial issues if needed. Reply with what you tested and the test outcome.',
'security-auditor': 'You are the SECURITY AUDITOR agent. Review the assigned area for vulnerabilities (injection, secrets in code, unsafe eval, path traversal, weak crypto). Do not modify files. Reply with a findings list, each with severity.',
reviewer: 'You are the REVIEWER agent. Review the changes for correctness, style and consistency. Do not modify files. Reply with verdict (approve/changes requested) and reasons.',
};
/** Токены одного ответа модели: провайдеры называют их по-разному. */
function usageTokens(
usage result result
usage usage
total usage usage
total
total
usage usage usage usage
usage result result result result
inputTokens usage usage
outputTokens usage usage
costUsd usage usage
total usage usage inputTokens outputTokens result
inputTokens outputTokens costUsd total
role instruction tools llm invokeTool onText shouldAbort onNote onKey nodeId tierOverride options
tokenLimit options options
costLimit options options
tracer options
messages
role
instruction
tokens
inputTokens
outputTokens
costUsd
tokenLimit tokens tokenLimit costLimit costUsd costLimit
tokens inputTokens outputTokens costUsd
round round round
shouldAbort
span tracer tracer nodeId role role
result
result llmrole messages tools onText tierOverride
err
span
span tierOverride err err err err
err
usage result
span
span
result tierOverride
result
usage
usage
usage
tokens usage
inputTokens usage
outputTokens usage
costUsd usage
onKey
result result
toolCalls result
toolCalls
result tokens inputTokens outputTokens costUsd
messages result toolCalls
call toolCalls
shouldAbort
onNote
call call
toolResult
toolResult call call nodeId
err
err
err
toolResult err err err
messages
call
toolResult toolResult toolResult toolResult
tokens inputTokens outputTokens costUsd
err err err err
module runAgentLoop usageTokens usageOf isInterruptError