vtcode 0.172.2

A Rust-based terminal coding agent with modular architecture supporting multiple LLM providers
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const state = { calls: [], uri: undefined, summary: undefined, updated: true, providerResult: "updated", pick: undefined };
module.exports = {
    state,
    pickVtcodeConfigUri: async (preferred) => {
        state.calls.push(["pick", preferred]);
        return state.pick ? state.pick() : state.uri;
    },
    loadConfigSummaryFromUri: async (uri) => { state.calls.push(["load", uri]); return state.summary; },
    setHumanInTheLoop: async (...args) => { state.calls.push(["hitl", ...args]); return state.updated; },
    setMcpProviderEnabled: async (...args) => { state.calls.push(["mcp", ...args]); return state.providerResult; },
    revealToolsPolicySection: async (...args) => { state.calls.push(["policy", ...args]); },
    revealMcpSection: async (...args) => { state.calls.push(["reveal", ...args]); },
    appendMcpProvider: async (...args) => { state.calls.push(["add", ...args]); return true; },
};