@stalfh233/omc-cli 0.6.47 → 0.6.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/capability-overview.js +113 -0
  2. package/dist/cli-stdout.js +3 -0
  3. package/dist/cli.js +251 -60
  4. package/dist/command-transport.js +5 -1
  5. package/dist/discovery.js +193 -75
  6. package/dist/goal-plan.js +1244 -0
  7. package/dist/goal-routes.js +28 -2
  8. package/dist/graph.js +223 -34
  9. package/dist/lanes/app.js +4 -0
  10. package/dist/lanes/apply-changes.js +1 -0
  11. package/dist/lanes/b2-registration.js +24 -0
  12. package/dist/lanes/businessrule.js +5 -0
  13. package/dist/lanes/custom-page.js +8 -0
  14. package/dist/lanes/datarule.js +4 -0
  15. package/dist/lanes/dictionary.js +13 -0
  16. package/dist/lanes/environment.js +2 -0
  17. package/dist/lanes/field.js +5 -0
  18. package/dist/lanes/folder.js +4 -0
  19. package/dist/lanes/form.js +5 -0
  20. package/dist/lanes/list-view.js +5 -0
  21. package/dist/lanes/meta.js +5 -0
  22. package/dist/lanes/model.js +9 -0
  23. package/dist/lanes/online-js.js +2 -0
  24. package/dist/lanes/organization.js +20 -0
  25. package/dist/lanes/perm.js +5 -5
  26. package/dist/lanes/programming.js +6 -0
  27. package/dist/lanes/report.js +9 -0
  28. package/dist/lanes/rule-lifecycle.js +6 -0
  29. package/dist/lanes/rulelog.js +1 -0
  30. package/dist/lanes/runtime-data.js +6 -0
  31. package/dist/lanes/workflow.js +18 -0
  32. package/dist/mcp-graph.js +180 -41
  33. package/dist/package-tool.js +1 -0
  34. package/dist/search-index.js +137 -0
  35. package/dist/tool-search.js +647 -0
  36. package/dist/tools.js +1 -0
  37. package/dist/write.js +2 -1
  38. package/docs/omc-introduction.md +5 -7
  39. package/package.json +6 -5
  40. package/skills/omc-business-configuration.md +2 -1
  41. package/skills/omc-capabilities.md +3 -2
  42. package/skills/omc-start-here.md +21 -7
  43. package/skills/omc-tool-selection.md +7 -15
@@ -322,6 +322,7 @@ function b2ServiceRollbackSpec(toolName) {
322
322
  export function registerB2Lane(tools) {
323
323
  tools.push(defineTool({
324
324
  name: "service.get",
325
+ search: { intents: ["服务详情"] },
325
326
  layer: "low",
326
327
  kind: "read",
327
328
  lane: B2_LANE,
@@ -384,6 +385,7 @@ export function registerB2Lane(tools) {
384
385
  }));
385
386
  tools.push(defineTool({
386
387
  name: "service.list",
388
+ search: { intents: ["查看服务", "看服务", "查服务", "服务列表", "查看服务列表", "服务清单"] },
387
389
  layer: "low",
388
390
  kind: "read",
389
391
  lane: B2_LANE,
@@ -437,6 +439,7 @@ export function registerB2Lane(tools) {
437
439
  }));
438
440
  tools.push(defineTool({
439
441
  name: "method.get",
442
+ search: { intents: ["查看方法", "查方法", "方法详情"] },
440
443
  layer: "low",
441
444
  kind: "read",
442
445
  lane: B2_LANE,
@@ -531,6 +534,7 @@ export function registerB2Lane(tools) {
531
534
  writeTool({
532
535
  tools,
533
536
  name: "method.update",
537
+ search: { intents: ["更新方法", "修改方法", "改方法"] },
534
538
  lane: B2_LANE,
535
539
  scope: B2_TOOLS["method.update"].scope,
536
540
  description: B2_TOOLS["method.update"].description,
@@ -588,6 +592,7 @@ export function registerB2Lane(tools) {
588
592
  writeTool({
589
593
  tools,
590
594
  name: "method.create",
595
+ search: { intents: ["新增方法", "加方法", "注册方法", "给服务加方法", "给已有服务加方法", "注册二开接口", "注册接口给业务规则用", "注册接口给在线JS调用", "调用第三方接口", "调用别人家的接口", "调用外部接口"] },
591
596
  lane: B2_LANE,
592
597
  scope: B2_TOOLS["method.create"].scope,
593
598
  description: B2_TOOLS["method.create"].description,
@@ -646,6 +651,7 @@ export function registerB2Lane(tools) {
646
651
  writeTool({
647
652
  tools,
648
653
  name: "method.delete",
654
+ search: { intents: ["删除方法", "删方法"] },
649
655
  lane: B2_LANE,
650
656
  scope: B2_TOOLS["method.delete"].scope,
651
657
  description: B2_TOOLS["method.delete"].description,
@@ -672,6 +678,7 @@ export function registerB2Lane(tools) {
672
678
  });
673
679
  tools.push(defineTool({
674
680
  name: "service.category.list",
681
+ search: { intents: ["服务分类清单", "服务目录列表", "有哪些服务分类", "服务挂在哪些分类"] },
675
682
  layer: "low",
676
683
  kind: "read",
677
684
  lane: B2_LANE,
@@ -694,6 +701,7 @@ export function registerB2Lane(tools) {
694
701
  writeTool({
695
702
  tools,
696
703
  name: "service.category.create",
704
+ search: { intents: ["新建服务分类", "加一个服务目录", "创建业务集成分类"] },
697
705
  lane: B2_LANE,
698
706
  scope: B2_TOOLS["service.category.create"].scope,
699
707
  description: B2_TOOLS["service.category.create"].description,
@@ -722,6 +730,7 @@ export function registerB2Lane(tools) {
722
730
  writeTool({
723
731
  tools,
724
732
  name: "service.category.update",
733
+ search: { intents: ["重命名服务分类", "改服务目录名"] },
725
734
  lane: B2_LANE,
726
735
  scope: B2_TOOLS["service.category.update"].scope,
727
736
  description: B2_TOOLS["service.category.update"].description,
@@ -759,6 +768,7 @@ export function registerB2Lane(tools) {
759
768
  writeTool({
760
769
  tools,
761
770
  name: "service.category.delete",
771
+ search: { intents: ["删除服务分类", "删掉服务目录"] },
762
772
  lane: B2_LANE,
763
773
  scope: B2_TOOLS["service.category.delete"].scope,
764
774
  description: B2_TOOLS["service.category.delete"].description,
@@ -784,6 +794,7 @@ export function registerB2Lane(tools) {
784
794
  });
785
795
  tools.push(defineTool({
786
796
  name: "service.dbconnpool.list",
797
+ search: { intents: ["查连接池", "查看连接池", "连接池列表"] },
787
798
  layer: "low",
788
799
  kind: "read",
789
800
  lane: B2_LANE,
@@ -801,6 +812,7 @@ export function registerB2Lane(tools) {
801
812
  writeTool({
802
813
  tools,
803
814
  name: "service.dbconnpool.create",
815
+ search: { intents: ["新建连接池", "创建连接池"] },
804
816
  lane: B2_LANE,
805
817
  scope: B2_TOOLS["service.dbconnpool.create"].scope,
806
818
  description: B2_TOOLS["service.dbconnpool.create"].description,
@@ -856,6 +868,7 @@ export function registerB2Lane(tools) {
856
868
  writeTool({
857
869
  tools,
858
870
  name: "service.dbconnpool.update",
871
+ search: { intents: ["更新连接池", "修改连接池", "改连接池"] },
859
872
  lane: B2_LANE,
860
873
  scope: B2_TOOLS["service.dbconnpool.update"].scope,
861
874
  description: B2_TOOLS["service.dbconnpool.update"].description,
@@ -911,6 +924,7 @@ export function registerB2Lane(tools) {
911
924
  writeTool({
912
925
  tools,
913
926
  name: "service.dbconnpool.delete",
927
+ search: { intents: ["删除连接池", "删连接池"] },
914
928
  lane: B2_LANE,
915
929
  scope: B2_TOOLS["service.dbconnpool.delete"].scope,
916
930
  description: B2_TOOLS["service.dbconnpool.delete"].description,
@@ -932,6 +946,7 @@ export function registerB2Lane(tools) {
932
946
  });
933
947
  tools.push(defineTool({
934
948
  name: "service.adapter_config",
949
+ search: { intents: ["适配器配置"] },
935
950
  layer: "low",
936
951
  kind: "read",
937
952
  lane: B2_LANE,
@@ -982,6 +997,7 @@ export function registerB2Lane(tools) {
982
997
  }));
983
998
  tools.push(defineTool({
984
999
  name: "service.table_list",
1000
+ search: { intents: ["库表发现", "查库表"] },
985
1001
  layer: "low",
986
1002
  kind: "read",
987
1003
  lane: B2_LANE,
@@ -1010,6 +1026,7 @@ export function registerB2Lane(tools) {
1010
1026
  }));
1011
1027
  tools.push(defineTool({
1012
1028
  name: "service.table_sql",
1029
+ search: { intents: ["表SQL模板", "SQL模板"] },
1013
1030
  layer: "low",
1014
1031
  kind: "read",
1015
1032
  lane: B2_LANE,
@@ -1028,6 +1045,7 @@ export function registerB2Lane(tools) {
1028
1045
  writeTool({
1029
1046
  tools,
1030
1047
  name: "service.register",
1048
+ search: { intents: ["对接外部系统", "对接外部接口", "注册服务", "新建集成服务", "注册接口", "连数据库取数", "把数据推送到别的系统", "同步到另一个系统", "同步到别的系统", "外部系统回调我们"] },
1031
1049
  lane: B2_LANE,
1032
1050
  scope: B2_TOOLS["service.register"].scope,
1033
1051
  description: B2_TOOLS["service.register"].description,
@@ -1176,6 +1194,7 @@ export function registerB2Lane(tools) {
1176
1194
  writeTool({
1177
1195
  tools,
1178
1196
  name: "service.update",
1197
+ search: { intents: ["修改服务", "更新服务", "改服务"] },
1179
1198
  lane: B2_LANE,
1180
1199
  scope: B2_TOOLS["service.update"].scope,
1181
1200
  description: B2_TOOLS["service.update"].description,
@@ -1263,6 +1282,7 @@ export function registerB2Lane(tools) {
1263
1282
  writeTool({
1264
1283
  tools,
1265
1284
  name: "service.delete",
1285
+ search: { intents: ["删除服务", "删服务"] },
1266
1286
  lane: B2_LANE,
1267
1287
  scope: B2_TOOLS["service.delete"].scope,
1268
1288
  description: B2_TOOLS["service.delete"].description,
@@ -1381,6 +1401,7 @@ export function registerB2Lane(tools) {
1381
1401
  }
1382
1402
  tools.push(defineTool({
1383
1403
  name: "service.export",
1404
+ search: { intents: ["导出集成服务包", "导出服务包"] },
1384
1405
  layer: "low",
1385
1406
  kind: "read",
1386
1407
  lane: B2_LANE,
@@ -1437,6 +1458,7 @@ export function registerB2Lane(tools) {
1437
1458
  }));
1438
1459
  tools.push(defineTool({
1439
1460
  name: "service.check",
1461
+ search: { intents: ["校验服务包", "检查集成服务包", "导入前检查"] },
1440
1462
  layer: "low",
1441
1463
  kind: "read",
1442
1464
  lane: B2_LANE,
@@ -1475,6 +1497,7 @@ export function registerB2Lane(tools) {
1475
1497
  writeTool({
1476
1498
  tools,
1477
1499
  name: "service.import",
1500
+ search: { intents: ["导入服务包", "导入集成服务", "装一个服务包"] },
1478
1501
  lane: B2_LANE,
1479
1502
  scope: B2_TOOLS["service.import"].scope,
1480
1503
  description: B2_TOOLS["service.import"].description,
@@ -1655,6 +1678,7 @@ export function registerB2Lane(tools) {
1655
1678
  writeTool({
1656
1679
  tools,
1657
1680
  name: "method.test",
1681
+ search: { intents: ["测试方法", "试跑", "联调"] },
1658
1682
  lane: B2_LANE,
1659
1683
  scope: B2_TOOLS["method.test"].scope,
1660
1684
  description: B2_TOOLS["method.test"].description,
@@ -97,6 +97,7 @@ export function ruleCompactProjection(result) {
97
97
  export function registerBusinessRuleLane(tools) {
98
98
  tools.push(defineTool({
99
99
  name: "rule.list",
100
+ search: { intents: ["模型有哪些规则", "规则清单", "列出规则", "查业务规则列表"] },
100
101
  layer: "low",
101
102
  kind: "read",
102
103
  lane: RULE_LANE,
@@ -191,6 +192,7 @@ export function registerBusinessRuleLane(tools) {
191
192
  }));
192
193
  tools.push(defineTool({
193
194
  name: "rule.references",
195
+ search: { intents: ["规则引用", "查规则引用", "谁用了规则"] },
194
196
  layer: "low",
195
197
  kind: "read",
196
198
  lane: RULE_LANE,
@@ -312,6 +314,7 @@ export function registerBusinessRuleLane(tools) {
312
314
  }));
313
315
  tools.push(defineTool({
314
316
  name: "rule.get",
317
+ search: { intents: ["看规则图", "读规则", "规则详情", "看规则节点"] },
315
318
  layer: "low",
316
319
  kind: "read",
317
320
  lane: RULE_LANE,
@@ -508,6 +511,7 @@ export function registerBusinessRuleLane(tools) {
508
511
  writeTool({
509
512
  tools,
510
513
  name: "rule.save",
514
+ search: { intents: ["保存规则", "写规则", "建规则", "新建规则", "更新规则"] },
511
515
  lane: RULE_LANE,
512
516
  scope: RULE_TOOLS["rule.save"].scope,
513
517
  description: RULE_TOOLS["rule.save"].description,
@@ -532,6 +536,7 @@ export function registerBusinessRuleLane(tools) {
532
536
  writeTool({
533
537
  tools,
534
538
  name: "rule.node.update",
539
+ search: { intents: ["改规则节点", "改一个节点的条件", "调整规则里的节点", "改分支阈值"] },
535
540
  lane: RULE_LANE,
536
541
  scope: RULE_TOOLS["rule.node.update"].scope,
537
542
  description: RULE_TOOLS["rule.node.update"].description,
@@ -67,6 +67,7 @@ function pickPage(row) {
67
67
  export function registerCustomPageTools(tools) {
68
68
  tools.push(defineTool({
69
69
  name: "custompage.list",
70
+ search: { intents: ["有哪些自定义页面", "页面清单", "列出页面", "看应用里有哪些页面"] },
70
71
  layer: "low",
71
72
  kind: "read",
72
73
  lane: LANE,
@@ -91,6 +92,7 @@ export function registerCustomPageTools(tools) {
91
92
  }));
92
93
  tools.push(defineTool({
93
94
  name: "custompage.get",
95
+ search: { intents: ["看页面详情", "查自定义页面", "读页面配置"] },
94
96
  layer: "low",
95
97
  kind: "read",
96
98
  lane: LANE,
@@ -130,6 +132,7 @@ export function registerCustomPageTools(tools) {
130
132
  writeTool({
131
133
  tools,
132
134
  name: "custompage.create",
135
+ search: { intents: ["新建自定义页面", "建一个页面", "创建页面"] },
133
136
  lane: LANE,
134
137
  scope: T["custompage.create"].scope,
135
138
  description: T["custompage.create"].description,
@@ -180,6 +183,7 @@ export function registerCustomPageTools(tools) {
180
183
  writeTool({
181
184
  tools,
182
185
  name: "custompage.update",
186
+ search: { intents: ["改页面名称", "改页面图标", "更新页面配置", "重命名页面"] },
183
187
  lane: LANE,
184
188
  scope: T["custompage.update"].scope,
185
189
  description: T["custompage.update"].description,
@@ -214,6 +218,7 @@ export function registerCustomPageTools(tools) {
214
218
  });
215
219
  tools.push(defineTool({
216
220
  name: "custompage.content.get",
221
+ search: { intents: ["读页面正文", "看页面内容", "页面写了什么"] },
217
222
  layer: "low",
218
223
  kind: "read",
219
224
  lane: LANE,
@@ -248,6 +253,7 @@ export function registerCustomPageTools(tools) {
248
253
  writeTool({
249
254
  tools,
250
255
  name: "custompage.content.update",
256
+ search: { intents: ["写页面正文", "改页面内容", "编辑页面正文"] },
251
257
  lane: LANE,
252
258
  scope: T["custompage.content.update"].scope,
253
259
  description: T["custompage.content.update"].description,
@@ -290,6 +296,7 @@ export function registerCustomPageTools(tools) {
290
296
  writeTool({
291
297
  tools,
292
298
  name: "custompage.content.publish",
299
+ search: { intents: ["发布页面", "发布页面正文", "把页面发出去"] },
293
300
  lane: LANE,
294
301
  scope: T["custompage.content.publish"].scope,
295
302
  description: T["custompage.content.publish"].description,
@@ -319,6 +326,7 @@ export function registerCustomPageTools(tools) {
319
326
  writeTool({
320
327
  tools,
321
328
  name: "custompage.delete",
329
+ search: { intents: ["删除页面", "删掉自定义页面"] },
322
330
  lane: LANE,
323
331
  scope: T["custompage.delete"].scope,
324
332
  description: T["custompage.delete"].description,
@@ -792,6 +792,7 @@ export async function syncFormConditionDataRules(session, schemaCode, fieldCode,
792
792
  export function registerDataRuleLane(tools) {
793
793
  tools.push(defineTool({
794
794
  name: "datarule.list",
795
+ search: { intents: ["字段规则清单", "有哪些校验规则", "列出字段规则"] },
795
796
  layer: "low",
796
797
  kind: "read",
797
798
  lane: DATARULE_LANE,
@@ -864,6 +865,7 @@ export function registerDataRuleLane(tools) {
864
865
  writeTool({
865
866
  tools,
866
867
  name: "datarule.create",
868
+ search: { intents: ["字段级校验", "给字段加校验", "给金额字段加校验", "校验规则", "提交校验", "字段校验", "金额校验"] },
867
869
  lane: DATARULE_LANE,
868
870
  scope: DATARULE_TOOLS["datarule.create"].scope,
869
871
  description: DATARULE_TOOLS["datarule.create"].description,
@@ -954,6 +956,7 @@ export function registerDataRuleLane(tools) {
954
956
  writeTool({
955
957
  tools,
956
958
  name: "datarule.update",
959
+ search: { intents: ["改字段校验规则", "修改字段级规则", "更新校验规则"] },
957
960
  lane: DATARULE_LANE,
958
961
  scope: DATARULE_TOOLS["datarule.update"].scope,
959
962
  description: DATARULE_TOOLS["datarule.update"].description,
@@ -1022,6 +1025,7 @@ export function registerDataRuleLane(tools) {
1022
1025
  writeTool({
1023
1026
  tools,
1024
1027
  name: "datarule.delete",
1028
+ search: { intents: ["删除字段校验规则", "删掉校验规则", "移除字段级规则"] },
1025
1029
  lane: DATARULE_LANE,
1026
1030
  scope: DATARULE_TOOLS["datarule.delete"].scope,
1027
1031
  description: DATARULE_TOOLS["datarule.delete"].description,
@@ -179,6 +179,7 @@ function requireExactlyOne(id, code) {
179
179
  export function registerDictionaryLane(tools) {
180
180
  tools.push(defineTool({
181
181
  name: "dictionary.list",
182
+ search: { intents: ["字典列表", "查现有字典", "有哪些字典分类"] },
182
183
  layer: "low",
183
184
  kind: "read",
184
185
  lane: LANE,
@@ -201,6 +202,7 @@ export function registerDictionaryLane(tools) {
201
202
  }));
202
203
  tools.push(defineTool({
203
204
  name: "dictionary.type",
205
+ search: { intents: ["按字典类型", "字典类型", "按类型读字典", "按类型取字典"] },
204
206
  layer: "low",
205
207
  kind: "read",
206
208
  lane: LANE,
@@ -215,6 +217,7 @@ export function registerDictionaryLane(tools) {
215
217
  }));
216
218
  tools.push(defineTool({
217
219
  name: "dictionary.names",
220
+ search: { intents: ["字典名称摘要", "名称摘要", "编码和名字", "字典的编码和名字", "字典清单", "有哪些字典"] },
218
221
  layer: "low",
219
222
  kind: "read",
220
223
  lane: LANE,
@@ -236,6 +239,7 @@ export function registerDictionaryLane(tools) {
236
239
  }));
237
240
  tools.push(defineTool({
238
241
  name: "dictionary.get",
242
+ search: { intents: ["看字典详情", "查一个字典", "字典头信息", "读字典配置"] },
239
243
  layer: "low",
240
244
  kind: "read",
241
245
  lane: LANE,
@@ -263,6 +267,7 @@ export function registerDictionaryLane(tools) {
263
267
  }));
264
268
  tools.push(defineTool({
265
269
  name: "dictionary.records",
270
+ search: { intents: ["字典记录", "字典明细", "字典有哪些条目", "读字典数据"] },
266
271
  layer: "low",
267
272
  kind: "read",
268
273
  lane: LANE,
@@ -304,6 +309,7 @@ export function registerDictionaryLane(tools) {
304
309
  writeTool({
305
310
  tools,
306
311
  name: "dictionary.save",
312
+ search: { intents: ["建数据字典", "新建字典", "保存字典"] },
307
313
  lane: LANE,
308
314
  scope: TOOLS["dictionary.save"].scope,
309
315
  description: TOOLS["dictionary.save"].description,
@@ -364,6 +370,7 @@ export function registerDictionaryLane(tools) {
364
370
  writeTool({
365
371
  tools,
366
372
  name: "dictionary.status",
373
+ search: { intents: ["停用字典记录", "启用字典记录", "字典记录停用", "停用字典", "启用字典"] },
367
374
  lane: LANE,
368
375
  scope: TOOLS["dictionary.status"].scope,
369
376
  description: TOOLS["dictionary.status"].description,
@@ -379,6 +386,7 @@ export function registerDictionaryLane(tools) {
379
386
  writeTool({
380
387
  tools,
381
388
  name: "dictionary.usage",
389
+ search: { intents: ["使用标记", "设置使用标记", "字典记录标记", "标记为已使用"] },
382
390
  lane: LANE,
383
391
  scope: TOOLS["dictionary.usage"].scope,
384
392
  description: TOOLS["dictionary.usage"].description,
@@ -396,6 +404,7 @@ export function registerDictionaryLane(tools) {
396
404
  const REFERENCES_MODEL_CAP = 40;
397
405
  tools.push(defineTool({
398
406
  name: "dictionary.references",
407
+ search: { intents: ["谁引用了字典", "谁引用了这个字典", "字典被谁引用", "引用字典", "查字典引用"] },
399
408
  layer: "low",
400
409
  kind: "read",
401
410
  lane: LANE,
@@ -557,6 +566,7 @@ export function registerDictionaryLane(tools) {
557
566
  }));
558
567
  tools.push(defineTool({
559
568
  name: "dictionary.parent",
569
+ search: { intents: ["树形字典", "父节点下", "子记录", "下级记录"] },
560
570
  layer: "low",
561
571
  kind: "read",
562
572
  lane: LANE,
@@ -570,6 +580,7 @@ export function registerDictionaryLane(tools) {
570
580
  }));
571
581
  tools.push(defineTool({
572
582
  name: "dictionary.classes",
583
+ search: { intents: ["字典分类", "分类详情", "看字典分类", "分类和详情"] },
573
584
  layer: "low",
574
585
  kind: "read",
575
586
  lane: LANE,
@@ -584,6 +595,7 @@ export function registerDictionaryLane(tools) {
584
595
  writeTool({
585
596
  tools,
586
597
  name: "dictionary.class.save",
598
+ search: { intents: ["新建字典分类", "建字典分类", "保存字典分类"] },
587
599
  lane: LANE,
588
600
  scope: TOOLS["dictionary.class.save"].scope,
589
601
  description: TOOLS["dictionary.class.save"].description,
@@ -604,6 +616,7 @@ export function registerDictionaryLane(tools) {
604
616
  writeTool({
605
617
  tools,
606
618
  name: "dictionary.class.delete",
619
+ search: { intents: ["删除字典分类", "删字典分类"] },
607
620
  lane: LANE,
608
621
  scope: TOOLS["dictionary.class.delete"].scope,
609
622
  description: TOOLS["dictionary.class.delete"].description,
@@ -25,6 +25,7 @@ function versionEvidenceFor(ctx, session) {
25
25
  export function registerEnvironmentLane(tools) {
26
26
  tools.push(defineTool({
27
27
  name: "discover_environment",
28
+ search: { intents: ["环境就绪", "连接环境", "登录环境"] },
28
29
  layer: "high",
29
30
  kind: "read",
30
31
  lane: ENVIRONMENT_LANE,
@@ -326,6 +327,7 @@ export function registerEnvironmentLane(tools) {
326
327
  }));
327
328
  tools.push(defineTool({
328
329
  name: "environment.fingerprint",
330
+ search: { intents: ["环境指纹", "查看环境版本", "环境版本", "查环境版本"] },
329
331
  layer: "low",
330
332
  kind: "read",
331
333
  lane: ENVIRONMENT_LANE,
@@ -324,6 +324,7 @@ async function assertNoChildSchemaAggregation(session, schemaCode, propertyType,
324
324
  export function registerFieldLane(tools) {
325
325
  tools.push(defineTool({
326
326
  name: "field.list",
327
+ search: { intents: ["看字段", "查字段", "字段清单", "模型有哪些字段", "字段列表"] },
327
328
  layer: "low",
328
329
  kind: "read",
329
330
  lane: FIELD_LANE,
@@ -509,6 +510,7 @@ export function registerFieldLane(tools) {
509
510
  writeTool({
510
511
  tools,
511
512
  name: "field.create",
513
+ search: { intents: ["加字段", "新增字段", "添加字段", "加一个字段", "单据号字段", "序列号字段", "编号规则字段"] },
512
514
  lane: FIELD_LANE,
513
515
  scope: FIELD_TOOLS["field.create"].scope,
514
516
  description: FIELD_TOOLS["field.create"].description,
@@ -620,6 +622,7 @@ export function registerFieldLane(tools) {
620
622
  writeTool({
621
623
  tools,
622
624
  name: "field.update",
625
+ search: { intents: ["改字段", "改字段配置", "字段改名", "字段设只读", "字段设必填", "字段改精度"] },
623
626
  lane: FIELD_LANE,
624
627
  scope: FIELD_TOOLS["field.update"].scope,
625
628
  description: FIELD_TOOLS["field.update"].description,
@@ -655,6 +658,7 @@ export function registerFieldLane(tools) {
655
658
  writeTool({
656
659
  tools,
657
660
  name: "field.publish",
661
+ search: { intents: ["发布字段", "字段发布", "把字段发出去", "草稿字段发布"] },
658
662
  lane: FIELD_LANE,
659
663
  scope: FIELD_TOOLS["field.publish"].scope,
660
664
  description: FIELD_TOOLS["field.publish"].description,
@@ -668,6 +672,7 @@ export function registerFieldLane(tools) {
668
672
  writeTool({
669
673
  tools,
670
674
  name: "field.delete",
675
+ search: { intents: ["删除字段", "删掉这个字段", "移除字段"] },
671
676
  lane: FIELD_LANE,
672
677
  scope: FIELD_TOOLS["field.delete"].scope,
673
678
  description: FIELD_TOOLS["field.delete"].description,
@@ -193,6 +193,7 @@ function resolveFolder(rows, ref) {
193
193
  function folderTools(tools) {
194
194
  tools.push(defineTool({
195
195
  name: "folder.tree",
196
+ search: { intents: ["看应用树", "目录结构", "展开目录树", "应用里有哪些目录", "看看分组结构"] },
196
197
  layer: "low",
197
198
  kind: "read",
198
199
  lane: LANE,
@@ -234,6 +235,7 @@ function folderTools(tools) {
234
235
  writeTool({
235
236
  tools,
236
237
  name: "folder.create",
238
+ search: { intents: ["新建目录", "建一个分组", "加目录", "创建文件夹"] },
237
239
  lane: LANE,
238
240
  scope: T["folder.create"].scope,
239
241
  description: "新建应用目录(分组):`POST /api/app/folders/create`(AppFunctionController:105;`ApplicationFacadeImpl.createFolder:586` 强制 `type=Folder`,**省略 `parentId` 会挂到应用根**,即顶层目录)。给 `parentId` 才是子目录。写入后按 `path` 回读确认(树是嵌套的)。同名不等于重复:平台不校验重名,工具默认按「同父目录下同名」拒绝(`folder-duplicate`),要并列同名传 `allowDuplicate:true`。",
@@ -292,6 +294,7 @@ function folderTools(tools) {
292
294
  writeTool({
293
295
  tools,
294
296
  name: "folder.update",
297
+ search: { intents: ["重命名目录", "改分组名", "把目录挪到别处", "移动目录"] },
295
298
  lane: LANE,
296
299
  scope: T["folder.update"].scope,
297
300
  description: "重命名目录或把目录挂到另一个目录下:`POST /api/app/folders/update`(AppFunctionController:219;`updateFolder:612` 拒绝 `parentId === id`,`parentId` 为空时保留原父级)。**只改目录节点本身,不会移动目录里的模型**——模型移动用 `model.move`。",
@@ -333,6 +336,7 @@ function folderTools(tools) {
333
336
  writeTool({
334
337
  tools,
335
338
  name: "folder.delete",
339
+ search: { intents: ["删除目录", "删掉空目录", "删分组"] },
336
340
  lane: LANE,
337
341
  scope: T["folder.delete"].scope,
338
342
  description: "删除空目录:`POST /api/app/folders/delete?folderId=`(AppFunctionController:246)。**非递归**——目录里还有子目录或模型时平台回 `DIRECTORY_NOT_EMPTY`,工具在写前先查子节点并拒绝(`folder-not-empty`),避免半删。要清空请先 `model.move` 移走模型、删子目录。",
@@ -80,6 +80,7 @@ function smallLayoutSummary(draftCodes, publishedCodes, sheet) {
80
80
  export function registerFormLane(tools) {
81
81
  tools.push(defineTool({
82
82
  name: "form.get",
83
+ search: { intents: ["看表单", "查表单", "表单有哪些控件", "表单发布状态", "读表单"] },
83
84
  layer: "low",
84
85
  kind: "read",
85
86
  lane: FORM_LANE,
@@ -281,6 +282,7 @@ export function registerFormLane(tools) {
281
282
  writeTool({
282
283
  tools,
283
284
  name: "form.draft",
285
+ search: { intents: ["改表单布局", "调表单布局", "表单拖字段", "存表单草稿", "表单加控件"] },
284
286
  lane: FORM_LANE,
285
287
  scope: FORM_TOOLS["form.draft"].scope,
286
288
  description: FORM_TOOLS["form.draft"].description,
@@ -332,6 +334,7 @@ export function registerFormLane(tools) {
332
334
  writeTool({
333
335
  tools,
334
336
  name: "form.publish",
337
+ search: { intents: ["发布表单"] },
335
338
  lane: FORM_LANE,
336
339
  scope: FORM_TOOLS["form.publish"].scope,
337
340
  description: FORM_TOOLS["form.publish"].description,
@@ -361,6 +364,7 @@ export function registerFormLane(tools) {
361
364
  });
362
365
  registerPackageTool(tools, {
363
366
  name: "configure_form",
367
+ search: { intents: ["配置表单"] },
364
368
  lane: FORM_LANE,
365
369
  scope: FORM_TOOLS["configure_form"].scope,
366
370
  description: FORM_TOOLS["configure_form"].description,
@@ -466,6 +470,7 @@ export function registerFormLane(tools) {
466
470
  writeTool({
467
471
  tools,
468
472
  name: "form.runButton",
473
+ search: { intents: ["点一下表单按钮", "点按钮", "表单工具栏按钮", "执行按钮"] },
469
474
  lane: FORM_LANE,
470
475
  scope: FORM_TOOLS["form.runButton"].scope,
471
476
  description: FORM_TOOLS["form.runButton"].description,
@@ -261,6 +261,7 @@ export function decodeButtonScript(input) {
261
261
  export function registerListViewLane(tools) {
262
262
  tools.push(defineTool({
263
263
  name: "listview.get",
264
+ search: { intents: ["看视图配置", "读视图列", "视图详情"] },
264
265
  layer: "low",
265
266
  kind: "read",
266
267
  lane: LIST_VIEW_LANE,
@@ -450,6 +451,7 @@ export function registerListViewLane(tools) {
450
451
  });
451
452
  tools.push(defineTool({
452
453
  name: "listview.list",
454
+ search: { intents: ["有哪些视图", "视图清单", "列出列表视图"] },
453
455
  layer: "low",
454
456
  kind: "read",
455
457
  lane: LIST_VIEW_LANE,
@@ -496,6 +498,7 @@ export function registerListViewLane(tools) {
496
498
  writeTool({
497
499
  tools,
498
500
  name: "listview.create",
501
+ search: { intents: ["新建视图", "加一个列表视图", "创建视图"] },
499
502
  lane: LIST_VIEW_LANE,
500
503
  scope: LIST_VIEW_TOOLS["listview.create"].scope,
501
504
  description: LIST_VIEW_TOOLS["listview.create"].description,
@@ -542,6 +545,7 @@ export function registerListViewLane(tools) {
542
545
  writeTool({
543
546
  tools,
544
547
  name: "listview.configure",
548
+ search: { intents: ["配置列表列", "配列表", "列表列"] },
545
549
  lane: LIST_VIEW_LANE,
546
550
  scope: LIST_VIEW_TOOLS["listview.configure"].scope,
547
551
  description: LIST_VIEW_TOOLS["listview.configure"].description,
@@ -962,6 +966,7 @@ export function registerListViewLane(tools) {
962
966
  writeTool({
963
967
  tools,
964
968
  name: "listview.delete",
969
+ search: { intents: ["删除列表视图", "删掉这个视图"] },
965
970
  lane: LIST_VIEW_LANE,
966
971
  scope: LIST_VIEW_TOOLS["listview.delete"].scope,
967
972
  description: LIST_VIEW_TOOLS["listview.delete"].description,
@@ -10,6 +10,7 @@ const META_TOOLS = META_LANE_CONTRACT.tools;
10
10
  export function registerMetaLane(tools) {
11
11
  tools.push(defineTool({
12
12
  name: "coverage.manifest",
13
+ search: { intents: ["覆盖了哪些", "能力覆盖", "覆盖面", "覆盖清单", "覆盖面清单"] },
13
14
  layer: "meta",
14
15
  kind: "meta",
15
16
  // r28k F5:manifest 是 lane 粒度,不是 capability id(放首句,避免 summary 截断吞掉)。
@@ -105,6 +106,7 @@ export function registerMetaLane(tools) {
105
106
  }));
106
107
  tools.push(defineTool({
107
108
  name: "get_status",
109
+ search: { intents: ["查状态", "看状态", "服务状态"] },
108
110
  layer: "high",
109
111
  kind: "meta",
110
112
  // r28k F4:doctor vs get_status 分流(放首句,避免 summary 截断吞掉)。
@@ -160,6 +162,7 @@ export function registerMetaLane(tools) {
160
162
  }));
161
163
  tools.push(defineTool({
162
164
  name: "setup.start",
165
+ search: { intents: ["帮我初始化", "初始化这套", "开始配置环境", "环境还没配置", "配置引导", "初始化配置", "带我一步步配置"] },
163
166
  layer: "meta",
164
167
  kind: "meta",
165
168
  description: META_TOOLS["setup.start"].description,
@@ -195,6 +198,7 @@ export function registerMetaLane(tools) {
195
198
  }));
196
199
  tools.push(defineTool({
197
200
  name: "setup.commit",
201
+ search: { intents: ["提交配置", "把配置写进去", "保存环境配置", "提交环境配置", "保存配置"] },
198
202
  layer: "meta",
199
203
  kind: "meta",
200
204
  description: META_TOOLS["setup.commit"].description,
@@ -251,6 +255,7 @@ export function registerMetaLane(tools) {
251
255
  }));
252
256
  tools.push(defineTool({
253
257
  name: "doctor",
258
+ search: { intents: ["环境健康检查", "健康检查", "体检环境", "环境有没有问题", "体检", "诊断"] },
254
259
  layer: "meta",
255
260
  kind: "meta",
256
261
  // r28k F4:与 get_status 分流(放首句)。