11 lines
976 B
Plaintext
11 lines
976 B
Plaintext
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import assert from 'node:assert/strict';
|
|
import { publicSnapshot } from './desktop-f-state.mjs';
|
|
const root=path.resolve('.qa/working-memory-u');fs.mkdirSync(root,{recursive:true});
|
|
const dest=path.join(root,'production-before.json');assert.ok(!fs.existsSync(dest),'immutable U baseline');
|
|
const state=await publicSnapshot('http://127.0.0.1:4318','C:/Users/wangy/AppData/Local/Packages/OpenAI.Codex_2p2nqsd0c76g0/LocalCache/Local/AgentWorkbench');
|
|
assert.equal(state.pid,36552);assert.equal(state.version,'1.24.7');assert.deepEqual(state.active,[]);
|
|
fs.writeFileSync(dest,JSON.stringify(state,null,2)+'\n');
|
|
console.log(JSON.stringify({version:state.version,pid:state.pid,hasKey:state.hasKey,projects:state.projects,sessions:state.database.sessionIds.length,rows:Object.fromEntries(Object.entries(state.database.tables).map(([k,v])=>[k,v.count])),artifactFiles:state.persistent.artifacts?.length,active:state.active}));
|