This commit is contained in:
2026-09-11 13:44:05 -04:00
parent 29d5216b96
commit 2ee0c42e32
10 changed files with 81 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
import test from 'node:test';
import assert from 'node:assert/strict';
import { createRuntimeTools } from '../skills/runtime-tools.js';
test('runtime tools expose local QVAC and computer-use status', () => {
const computer = { status: () => ({ active: true, steps_used: 2, backend: 'portal-ei' }) };
const tools = createRuntimeTools({ computer });
const status = tools.find((tool) => tool.name === 'jarvis_status').execute({});
assert.equal(status.local, true);
assert.equal(status.computer_use.active, true);
assert.equal(tools.find((tool) => tool.name === 'cu_status').execute({}).backend, 'portal-ei');
});