docs: publish business instruction 0.5.127
This commit is contained in:
1 parent
75b9f2ede9
commit
c97bea3239
18 files changed
+234
-50
No files matched your search
@@ -69,12 +69,18 @@ const deferredDirectives = [
|
||||
'团队文件上传'
|
||||
];
|
||||
|
||||
const allDirectives = [
|
||||
const agentDirectives = [
|
||||
...executableDirectives.slice(0, 13),
|
||||
...narrowModificationDirectives,
|
||||
...executableDirectives.slice(13)
|
||||
];
|
||||
|
||||
const allDirectives = [
|
||||
...agentDirectives.slice(0, 4),
|
||||
'散拼团多个新增子单',
|
||||
...agentDirectives.slice(4)
|
||||
];
|
||||
|
||||
const skillContracts = {
|
||||
'agent设计规范/skills/lwlt-newbooking/references/input-contract.md': [
|
||||
'独立团单个下单',
|
||||
@@ -116,6 +122,7 @@ const minimumLabels = {
|
||||
独立团批量下单: ['发团日期', '预订客户', '产品搜索', '预估人数', '用房数量', '发团周期'],
|
||||
散拼团新增计划: ['发团日期', '产品搜索', '计划收客数', '用房数量'],
|
||||
散拼团单个新增子单: ['预订客户', '出发日期', '人数'],
|
||||
散拼团多个新增子单: ['预订客户', '出发日期', '产品名称', '人数'],
|
||||
导入独立团名单: ['预订客户', '出发日期'],
|
||||
导入散拼子单名单: ['预订客户', '出发日期'],
|
||||
安排导游: ['团号', '导游搜索'],
|
||||
@@ -178,10 +185,10 @@ const assertTwoBlockContract = (document, directives, source) => {
|
||||
}
|
||||
};
|
||||
|
||||
test('catalog has exactly 18 ordered operations with adjacent template and example blocks', () => {
|
||||
test('catalog has exactly 19 ordered operations with adjacent template and example blocks', () => {
|
||||
assert.deepEqual(
|
||||
operationSections.map((section) => section.number),
|
||||
Array.from({ length: 18 }, (_, index) => index + 1)
|
||||
Array.from({ length: 19 }, (_, index) => index + 1)
|
||||
);
|
||||
assert.deepEqual(operationSections.map((section) => section.directive), allDirectives);
|
||||
|
||||
@@ -348,8 +355,8 @@ test('user templates never request ERP internal identifiers and use canonical cu
|
||||
}
|
||||
});
|
||||
|
||||
test('all current directives are routed to their Skill contract in the same two-block format', () => {
|
||||
for (const directive of allDirectives) {
|
||||
test('all Agent directives are routed to their Skill contract in the same two-block format', () => {
|
||||
for (const directive of agentDirectives) {
|
||||
assert.ok(registry.includes(`\`${directive}\``), `registry missing ${directive}`);
|
||||
}
|
||||
|
||||
@@ -358,6 +365,16 @@ test('all current directives are routed to their Skill contract in the same two-
|
||||
}
|
||||
});
|
||||
|
||||
test('shared-child batch stays Program-only while remaining copyable from the operator catalog', () => {
|
||||
const directive = '散拼团多个新增子单';
|
||||
const section = sectionByDirective.get(directive);
|
||||
assert.ok(section, `${directive}: missing operator template`);
|
||||
assert.match(catalog, /`散拼团多个新增子单`固定走程序解析,不走 AI/);
|
||||
assert.doesNotMatch(registry, /^\|[^\n]*`散拼团多个新增子单`[^\n]*\|$/m);
|
||||
assert.equal(skillRuntimeText.includes('shared_child_order_batch_create'), false);
|
||||
assert.equal(mainPrompt.includes('shared_child_order_batch_create'), false);
|
||||
});
|
||||
|
||||
test('the four detailed business pages use adjacent template and example blocks', () => {
|
||||
for (const [relativePath, directive] of Object.entries(businessPages)) {
|
||||
const document = read(relativePath);
|
||||
@@ -481,7 +498,7 @@ test('independent-order updates preserve broad parser targets while arrangement
|
||||
assert.doesNotMatch(catalog, /需求登记:/);
|
||||
});
|
||||
|
||||
test('deferred items 19 to 21 are absent from current user and Skill input contracts', () => {
|
||||
test('deferred items 20 to 22 are absent from current user and Skill input contracts', () => {
|
||||
const currentInputSurface = [
|
||||
catalog,
|
||||
...Object.keys(skillContracts).map((relativePath) => read(relativePath))
|
||||
@@ -491,7 +508,7 @@ test('deferred items 19 to 21 are absent from current user and Skill input contr
|
||||
assert.doesNotMatch(currentInputSurface, new RegExp(directive));
|
||||
}
|
||||
|
||||
assert.doesNotMatch(catalog, /^### (?:19|20|21)\./m);
|
||||
assert.doesNotMatch(catalog, /^### (?:20|21|22)\./m);
|
||||
});
|
||||
|
||||
test('new business adaptation template enforces the two-block writing convention', () => {
|
||||
|
||||
Reference in new issue
Block a user