16 lines
1.6 KiB
Plaintext
16 lines
1.6 KiB
Plaintext
import fs from 'node:fs';
|
|
import assert from 'node:assert/strict';
|
|
const root='.qa/working-memory-u/native',origin='http://127.0.0.1:4318';
|
|
const bootstrap=await(await fetch(origin+'/api/bootstrap')).json();
|
|
const health=await(await fetch(origin+'/api/health')).json();
|
|
const status=await(await fetch(origin+'/api/host/status',{headers:{'X-Workbench-Token':bootstrap.token}})).json();
|
|
assert.equal(health.version,'1.24.8');assert.equal(health.pid,36552);assert.equal(status.desktopWindows.count,1);assert.equal(status.activity.active,false);
|
|
const initial=fs.readFileSync(root+'/after.txt','utf8'),center=fs.readFileSync(root+'/model-center.txt','utf8');
|
|
assert.match(initial,/release=1\.24\.8/);assert.match(initial,/v1\.24\.8/);assert.match(center,/高性能/);
|
|
for(const file of['after.jpg','model-center.jpg'])assert.equal(fs.readFileSync(root+'/'+file).subarray(0,3).toString('hex'),'ffd8ff');
|
|
const result={success:true,version:health.version,pid:health.pid,desktopWindows:status.desktopWindows.count,runtimeRoot:bootstrap.runtimeRoot,
|
|
observed:['Actual formal installed launcher opens unique 1.24.8 native window','Connected UI and original high-performance pool visible','No model dispatch, settings save, task start or original history mutation'],
|
|
screenshots:['after.jpg','model-center.jpg'],realModelRequests:0,
|
|
scope:'Computer Use observation from the actual installed original entry, not Electron fixture. Original R budget behavior is separately verified by write-blocked production web UI. State reconciliation follows after native review.'};
|
|
fs.writeFileSync(root+'/result.json',JSON.stringify(result,null,2)+'\n',{flag:'wx'});console.log(JSON.stringify(result));
|