feat(ql3): add generic worker management entry

This commit is contained in:
whyour
2026-08-20 13:30:06 +08:00
parent 4a4fa85f51
commit af5d5bfc0b
20 changed files with 1191 additions and 42 deletions
+5 -1
View File
@@ -211,6 +211,7 @@ test('ships a path-only Cluster operator context example without durable authori
'package',
'package-kubernetes',
'run',
'worker',
'worker-credential',
]);
for (const [name, command] of Object.entries(example.commands)) {
@@ -753,13 +754,16 @@ test('rejects widened authority or lifecycle in the Worker management client', (
}
});
test('requires the production Worker credential management client export and binary', () => {
test('requires both read-only Worker and credential-compatible client entrypoints', () => {
const report = auditClusterDeployment({
root: ROOT,
readFile: intercept('packages/ql3-cluster-admin/package.json', (source) => {
const manifest = JSON.parse(source);
delete manifest.bin['ql3-worker-credential-client'];
delete manifest.bin['ql3-worker-client'];
delete manifest.exports['./worker-credential-management-client'];
delete manifest.exports['./worker-management-client'];
delete manifest.exports['./worker-management-product'];
return JSON.stringify(manifest);
}),
});
+2 -2
View File
@@ -340,10 +340,10 @@ test('current QL3 workspace has exactly eighteen reviewed package boundaries', (
rootSourceFileRoles: clusterAdmin.rootSourceFileRoles,
},
{
sourceFiles: 125,
sourceFiles: 128,
rootSourceFiles: 1,
rootSourceLines: 61,
nestedSourceFiles: 124,
nestedSourceFiles: 127,
rootSourceFileRoles: {
'modelInvocationMigrationCli.ts': 'binary_entry',
},