Updates
This commit is contained in:
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user