Runtime or CLI code links a write operation to an explicit external AI-agent control path:
defaulturl.replace(/\/+$/, ''),
subscriptionkey: defaultkey,
remoteprojectid: 'proj-bistro-pos'
};
}
function saveremoteconfig(cwd, updates) {
const vfdir = join(cwd, '.vectorforce');
mkdirsync(vfdir, { recursive: true, mode: 0o700 });
const cfgpath = join(vfdir, 'config.json');
let existing = {};
try {
if (existssync(cfgpath)) {
existing = json.parse(readfilesync(cfgpath, 'utf8'));
}
} catch {}
const merged = { ...existing, ...updates };
writefilesync(cfgpath, json.stringify(merged, null, 2), 'utf8');
return merged;
}
async function main() {
const args = process.argv.slice(2);
const command = args[0] || 'help';
if (command === 'help' || command ===