feat(ql3): distribute copilot console via signed admin image

This commit is contained in:
whyour
2026-08-16 05:14:17 +08:00
parent c4a1238a92
commit fba8dfb602
22 changed files with 1176 additions and 29 deletions
@@ -49,7 +49,7 @@ test('fails closed before Docker without explicit opt-in', () => {
assert.equal(result.stderr.includes('spawn'), false);
});
test('binds the live image gate to loopback Console assets and shutdown', () => {
test('binds the live image gate to native and container-published loopback', () => {
const source = fs.readFileSync(script, 'utf8');
assert.match(source, /function runConsoleContract\(image\)/);
assert.match(source, /\[facade, 'copilot-console'/);
@@ -57,4 +57,12 @@ test('binds the live image gate to loopback Console assets and shutdown', () =>
assert.match(source, /runConsoleContract\(image\);/);
assert.match(source, /consoleLoopback: true/);
assert.match(source, /consoleAssets: true/);
assert.match(source, /function runPublishedConsoleContract\(image\)/);
assert.match(
source,
/127\.0\.0\.1:\$\{containerPort\}:\$\{containerPort\}\/tcp/,
);
assert.match(source, /runPublishedConsoleContract\(image\);/);
assert.match(source, /consolePublishedHostAddress: '127\.0\.0\.1'/);
assert.match(source, /consoleDistributionEmbedded: true/);
});