Prepare desktop 1.15 offline source and release acceptance

This commit is contained in:
Agent Workbench Dev
2026-10-31 11:50:51 +08:00
parent b77783ba67
commit c5c8a84a7b
51 changed files with 6211 additions and 1136 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ async function until(predicate, timeout = 45000) {
export async function verifyControlledApi({ api, url, token, directory, appRoot, contained = false }) {
const origin = new URL(url);
assert.equal(origin.hostname, '127.0.0.1'); assert.notEqual(origin.port, '4318');
const bootstrap = await api('/bootstrap'); assert.equal(bootstrap.version, '1.14.0');
const expectedVersion = JSON.parse(fs.readFileSync(path.join(appRoot, fs.existsSync(path.join(appRoot, 'MANIFEST.json')) ? 'MANIFEST.json' : 'package.json'), 'utf8')).version;
assert.ok(['1.14.0', '1.15.0'].includes(expectedVersion));
const bootstrap = await api('/bootstrap'); assert.equal(bootstrap.version, expectedVersion);
assert.equal(bootstrap.config.mode, 'demo'); assert.equal(bootstrap.config.hasKey, false);
const root = path.join(directory, 'compiled-controlled-node'), hooks = path.join(directory, 'disabled-hooks');
fs.mkdirSync(root); fs.mkdirSync(hooks);