docs: publish business instruction 0.5.127

This commit is contained in:
inman
2026-09-09 18:42:20 +08:00
parent 75b9f2ede9
commit c97bea3239
18 changed files with 234 additions and 50 deletions

View File

@@ -170,11 +170,10 @@ test('machine routes stay synchronized with their declared Program or Agent boun
for (const route of BUSINESS_ROUTES) {
const directivePattern = new RegExp(route.directive.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
const actionPattern = new RegExp(route.action.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
assert.match(template, directivePattern, route.routeId);
if (route.routeId === 'shared_child_order_batch_create') {
assert.doesNotMatch(template, directivePattern, 'Program-only batch route must not be added to the Agent/operator template');
assert.doesNotMatch(registry, actionPattern, 'Program-only batch route must not be added to the Agent adaptation registry');
} else {
assert.match(template, directivePattern, route.routeId);
assert.match(registry, actionPattern, route.routeId);
}
assert.match(`${initialMigration}\n${batchMigration}`, new RegExp(`'${route.routeId}'`), route.routeId);