@hcmai/sdk 0.4.17 → 0.4.19
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.
- package/dist/index.d.ts +150 -1
- package/dist/index.js +3799 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1143,6 +1143,7 @@ async function describe(http, model, _opts = {}) {
|
|
|
1143
1143
|
params: normalizeActionParams(a),
|
|
1144
1144
|
scope: a.scope,
|
|
1145
1145
|
httpMethod: a.httpMethod,
|
|
1146
|
+
effect: a.effect,
|
|
1146
1147
|
readOnly: a.readOnly,
|
|
1147
1148
|
paramTypes: a.paramTypes,
|
|
1148
1149
|
paramNames: a.paramNames,
|
|
@@ -1196,6 +1197,7 @@ function mergeEffectiveActions(fromMeta, effective) {
|
|
|
1196
1197
|
label: row.label,
|
|
1197
1198
|
scope: candidate?.scope,
|
|
1198
1199
|
httpMethod: "POST",
|
|
1200
|
+
effect: row.effect,
|
|
1199
1201
|
readOnly: row.readOnly,
|
|
1200
1202
|
source: candidate?.source
|
|
1201
1203
|
});
|
|
@@ -2003,6 +2005,18 @@ async function adminResetPassword(http, input) {
|
|
|
2003
2005
|
return payload;
|
|
2004
2006
|
}
|
|
2005
2007
|
|
|
2008
|
+
// src/meta/action-effect.ts
|
|
2009
|
+
var EFFECT_READ_ONLY = "READ_ONLY";
|
|
2010
|
+
var EFFECT_WRITES = "WRITES";
|
|
2011
|
+
var EFFECT_UNKNOWN = "UNKNOWN";
|
|
2012
|
+
function classifyEffect(effect) {
|
|
2013
|
+
if (effect === void 0) return "absent";
|
|
2014
|
+
if (effect === EFFECT_READ_ONLY) return "read-only";
|
|
2015
|
+
if (effect === EFFECT_WRITES) return "writes";
|
|
2016
|
+
if (effect === EFFECT_UNKNOWN) return "declared-unknown";
|
|
2017
|
+
return "unrecognized-effect";
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2006
2020
|
// src/chat/ws-client.ts
|
|
2007
2021
|
import WebSocket from "ws";
|
|
2008
2022
|
function classifyMessage(parsed) {
|
|
@@ -2482,11 +2496,11 @@ function createV4Reducer(sink) {
|
|
|
2482
2496
|
let currentParent = null;
|
|
2483
2497
|
const parentOf = (payloadParent) => typeof payloadParent === "string" && payloadParent ? payloadParent : currentParent;
|
|
2484
2498
|
function buildArgsPreview(args) {
|
|
2485
|
-
const
|
|
2499
|
+
const preview2 = Object.entries(args).map(([k, v]) => {
|
|
2486
2500
|
const raw = typeof v === "object" ? JSON.stringify(v) : String(v);
|
|
2487
2501
|
return `${k}=${truncateDisplay(raw, 40)}`;
|
|
2488
2502
|
}).join(" \xB7 ");
|
|
2489
|
-
return truncateDisplay(
|
|
2503
|
+
return truncateDisplay(preview2, 96);
|
|
2490
2504
|
}
|
|
2491
2505
|
function parseJson(s) {
|
|
2492
2506
|
try {
|
|
@@ -5287,7 +5301,7 @@ function parseManifest(text2, manifestPath) {
|
|
|
5287
5301
|
}
|
|
5288
5302
|
async function collectFiles(root, skipAbs) {
|
|
5289
5303
|
const out = [];
|
|
5290
|
-
async function
|
|
5304
|
+
async function walk5(dir, rel) {
|
|
5291
5305
|
const entries = await fsp2.readdir(dir, { withFileTypes: true });
|
|
5292
5306
|
entries.sort((a, b) => a.name.localeCompare(b.name));
|
|
5293
5307
|
for (const e of entries) {
|
|
@@ -5295,13 +5309,13 @@ async function collectFiles(root, skipAbs) {
|
|
|
5295
5309
|
const abs = path6.join(dir, e.name);
|
|
5296
5310
|
const relPath = rel ? `${rel}/${e.name}` : e.name;
|
|
5297
5311
|
if (e.isDirectory()) {
|
|
5298
|
-
await
|
|
5312
|
+
await walk5(abs, relPath);
|
|
5299
5313
|
} else if (e.isFile() && !skipAbs.has(path6.resolve(abs))) {
|
|
5300
5314
|
out.push(relPath);
|
|
5301
5315
|
}
|
|
5302
5316
|
}
|
|
5303
5317
|
}
|
|
5304
|
-
await
|
|
5318
|
+
await walk5(root, "");
|
|
5305
5319
|
return out;
|
|
5306
5320
|
}
|
|
5307
5321
|
async function packDataPackage(packageDir, outPath) {
|
|
@@ -5437,8 +5451,3694 @@ async function deleteTenantMeta(http, path25) {
|
|
|
5437
5451
|
return resp.data?.data ?? resp.data;
|
|
5438
5452
|
}
|
|
5439
5453
|
|
|
5454
|
+
// src/meta/validate-meta.ts
|
|
5455
|
+
import yaml8 from "js-yaml";
|
|
5456
|
+
|
|
5457
|
+
// src/meta/generated/meta-schemas.ts
|
|
5458
|
+
var META_SCHEMA_SOURCE_COMMIT = "f4a97dbb4db8f6029681b069a240c334a0bc3c3d";
|
|
5459
|
+
var META_SCHEMAS = {
|
|
5460
|
+
list: {
|
|
5461
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
5462
|
+
"$defs": {
|
|
5463
|
+
"AfterHandler": {
|
|
5464
|
+
"type": "object",
|
|
5465
|
+
"properties": {
|
|
5466
|
+
"config": {
|
|
5467
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5468
|
+
},
|
|
5469
|
+
"type": {
|
|
5470
|
+
"type": "string"
|
|
5471
|
+
}
|
|
5472
|
+
}
|
|
5473
|
+
},
|
|
5474
|
+
"JsonNode": {
|
|
5475
|
+
"type": "object"
|
|
5476
|
+
},
|
|
5477
|
+
"Map(String,Object)": {
|
|
5478
|
+
"type": "object"
|
|
5479
|
+
},
|
|
5480
|
+
"Map(String,String)": {
|
|
5481
|
+
"type": "object"
|
|
5482
|
+
},
|
|
5483
|
+
"ServiceActionConfig": {
|
|
5484
|
+
"type": "object",
|
|
5485
|
+
"required": ["agentKey", "serviceKey"],
|
|
5486
|
+
"properties": {
|
|
5487
|
+
"agentKey": { "type": "string", "minLength": 1 },
|
|
5488
|
+
"serviceKey": { "type": "string", "minLength": 1 },
|
|
5489
|
+
"mode": { "type": "string", "enum": ["sync", "async"] },
|
|
5490
|
+
"timeoutMs": { "type": "integer", "minimum": 1e3 },
|
|
5491
|
+
"pollIntervalMs": { "type": "integer", "minimum": 100 }
|
|
5492
|
+
}
|
|
5493
|
+
},
|
|
5494
|
+
"ActionExecutionConfig": {
|
|
5495
|
+
"type": "object",
|
|
5496
|
+
"properties": {
|
|
5497
|
+
"returnOn": { "type": "string", "enum": ["terminal", "accepted"] }
|
|
5498
|
+
}
|
|
5499
|
+
},
|
|
5500
|
+
"CompositeActionConfig": {
|
|
5501
|
+
"type": "object",
|
|
5502
|
+
"required": ["steps"],
|
|
5503
|
+
"properties": {
|
|
5504
|
+
"mode": { "type": "string", "enum": ["sequential", "parallel"] },
|
|
5505
|
+
"stopOnError": { "type": "boolean" },
|
|
5506
|
+
"steps": {
|
|
5507
|
+
"type": "array",
|
|
5508
|
+
"minItems": 1,
|
|
5509
|
+
"items": {
|
|
5510
|
+
"oneOf": [
|
|
5511
|
+
{ "type": "string", "minLength": 1 },
|
|
5512
|
+
{
|
|
5513
|
+
"type": "object",
|
|
5514
|
+
"required": ["action"],
|
|
5515
|
+
"properties": {
|
|
5516
|
+
"action": { "type": ["string", "object"] },
|
|
5517
|
+
"saveAs": { "type": "string", "minLength": 1 }
|
|
5518
|
+
}
|
|
5519
|
+
}
|
|
5520
|
+
]
|
|
5521
|
+
}
|
|
5522
|
+
}
|
|
5523
|
+
}
|
|
5524
|
+
}
|
|
5525
|
+
},
|
|
5526
|
+
"type": "object",
|
|
5527
|
+
"properties": {
|
|
5528
|
+
"actions": {
|
|
5529
|
+
"description": "\u5217\u8868\u64CD\u4F5C\u6309\u94AE(\u5168\u5C40\u65B0\u589E + \u884C\u7EA7\u7F16\u8F91/\u5220\u9664 + \u6279\u91CF\u7B49);\u901A\u5E38\u7531 ListMetaEngine \u81EA\u52A8\u751F\u6210",
|
|
5530
|
+
"type": "array",
|
|
5531
|
+
"items": {
|
|
5532
|
+
"type": "object",
|
|
5533
|
+
"properties": {
|
|
5534
|
+
"after": {
|
|
5535
|
+
"type": "object",
|
|
5536
|
+
"properties": {
|
|
5537
|
+
"onBlock": {
|
|
5538
|
+
"type": "array",
|
|
5539
|
+
"items": {
|
|
5540
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5541
|
+
}
|
|
5542
|
+
},
|
|
5543
|
+
"onError": {
|
|
5544
|
+
"type": "array",
|
|
5545
|
+
"items": {
|
|
5546
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5547
|
+
}
|
|
5548
|
+
},
|
|
5549
|
+
"onEscalate": {
|
|
5550
|
+
"type": "array",
|
|
5551
|
+
"items": {
|
|
5552
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5553
|
+
}
|
|
5554
|
+
},
|
|
5555
|
+
"onFinally": {
|
|
5556
|
+
"type": "array",
|
|
5557
|
+
"items": {
|
|
5558
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5559
|
+
}
|
|
5560
|
+
},
|
|
5561
|
+
"onInfo": {
|
|
5562
|
+
"type": "array",
|
|
5563
|
+
"items": {
|
|
5564
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5565
|
+
}
|
|
5566
|
+
},
|
|
5567
|
+
"onPass": {
|
|
5568
|
+
"type": "array",
|
|
5569
|
+
"items": {
|
|
5570
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5571
|
+
}
|
|
5572
|
+
},
|
|
5573
|
+
"onSuccess": {
|
|
5574
|
+
"type": "array",
|
|
5575
|
+
"items": {
|
|
5576
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5577
|
+
}
|
|
5578
|
+
},
|
|
5579
|
+
"onWarn": {
|
|
5580
|
+
"type": "array",
|
|
5581
|
+
"items": {
|
|
5582
|
+
"$ref": "#/$defs/AfterHandler"
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5585
|
+
}
|
|
5586
|
+
},
|
|
5587
|
+
"api": {
|
|
5588
|
+
"type": "object",
|
|
5589
|
+
"properties": {
|
|
5590
|
+
"actionName": {
|
|
5591
|
+
"type": "string"
|
|
5592
|
+
},
|
|
5593
|
+
"awaitTask": {
|
|
5594
|
+
"type": "object",
|
|
5595
|
+
"properties": {
|
|
5596
|
+
"completionEventType": {
|
|
5597
|
+
"type": "string"
|
|
5598
|
+
},
|
|
5599
|
+
"completionStatus": {
|
|
5600
|
+
"type": "string"
|
|
5601
|
+
},
|
|
5602
|
+
"enabled": {
|
|
5603
|
+
"type": "boolean"
|
|
5604
|
+
},
|
|
5605
|
+
"pollIntervalMs": {
|
|
5606
|
+
"type": "integer"
|
|
5607
|
+
},
|
|
5608
|
+
"resultModel": {
|
|
5609
|
+
"type": "string"
|
|
5610
|
+
},
|
|
5611
|
+
"taskIdPath": {
|
|
5612
|
+
"type": "string"
|
|
5613
|
+
},
|
|
5614
|
+
"timeoutMs": {
|
|
5615
|
+
"type": "integer"
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
},
|
|
5619
|
+
"i18n": {
|
|
5620
|
+
"type": "boolean"
|
|
5621
|
+
},
|
|
5622
|
+
"method": {
|
|
5623
|
+
"type": "string"
|
|
5624
|
+
},
|
|
5625
|
+
"responseType": {
|
|
5626
|
+
"type": "string"
|
|
5627
|
+
},
|
|
5628
|
+
"silent": {
|
|
5629
|
+
"type": "boolean"
|
|
5630
|
+
},
|
|
5631
|
+
"successMessage": {
|
|
5632
|
+
"type": "string"
|
|
5633
|
+
},
|
|
5634
|
+
"target": {
|
|
5635
|
+
"type": "string"
|
|
5636
|
+
},
|
|
5637
|
+
"targetModel": {
|
|
5638
|
+
"type": "string"
|
|
5639
|
+
}
|
|
5640
|
+
}
|
|
5641
|
+
},
|
|
5642
|
+
"buttonType": {
|
|
5643
|
+
"type": "string"
|
|
5644
|
+
},
|
|
5645
|
+
"confirmPreview": {
|
|
5646
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5647
|
+
},
|
|
5648
|
+
"confirmText": {
|
|
5649
|
+
"type": "string"
|
|
5650
|
+
},
|
|
5651
|
+
"confirmTitle": {
|
|
5652
|
+
"type": "string"
|
|
5653
|
+
},
|
|
5654
|
+
"custom": {
|
|
5655
|
+
"type": "object",
|
|
5656
|
+
"properties": {
|
|
5657
|
+
"key": {
|
|
5658
|
+
"type": "string"
|
|
5659
|
+
},
|
|
5660
|
+
"options": {
|
|
5661
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5662
|
+
}
|
|
5663
|
+
}
|
|
5664
|
+
},
|
|
5665
|
+
"description": {
|
|
5666
|
+
"type": "string"
|
|
5667
|
+
},
|
|
5668
|
+
"dialog": {
|
|
5669
|
+
"type": "object",
|
|
5670
|
+
"properties": {
|
|
5671
|
+
"actionTarget": {
|
|
5672
|
+
"type": "string",
|
|
5673
|
+
"enum": ["class", "object"],
|
|
5674
|
+
"description": "dialogType=action \u65F6\uFF0C\u663E\u5F0F\u58F0\u660E\u76EE\u6807\u662F ClassAction \u8FD8\u662F ObjectAction\u3002\u4E0D\u586B\u8D70\u4E0A\u4E0B\u6587\u63A8\u65AD\uFF1Aposition=toolbar \u7684\u5206\u652F\u4F1A\u628A selection[0].id \u5F53 objectId \u7528\uFF0C\u4E8E\u662F\u540C\u6A21\u578B ClassAction \u4F1A\u968F\u300C\u6709\u6CA1\u6709\u52FE\u9009\u884C\u300D\u6253\u5230\u4E24\u4E2A\u4E0D\u540C\u7684\u540E\u7AEF\u8DEF\u7531\u3002\u58F0\u660E class \u5373\u4E0E\u9009\u4E2D\u72B6\u6001\u89E3\u8026\u3002"
|
|
5675
|
+
},
|
|
5676
|
+
"component": {
|
|
5677
|
+
"type": "string"
|
|
5678
|
+
},
|
|
5679
|
+
"dialogType": {
|
|
5680
|
+
"type": "string"
|
|
5681
|
+
},
|
|
5682
|
+
"filterMapping": {
|
|
5683
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
5684
|
+
},
|
|
5685
|
+
"form": {
|
|
5686
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5687
|
+
},
|
|
5688
|
+
"i18n": {
|
|
5689
|
+
"type": "boolean"
|
|
5690
|
+
},
|
|
5691
|
+
"initDataMapping": {
|
|
5692
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
5693
|
+
},
|
|
5694
|
+
"listHeight": {
|
|
5695
|
+
"type": "string"
|
|
5696
|
+
},
|
|
5697
|
+
"listSelection": {
|
|
5698
|
+
"type": "boolean",
|
|
5699
|
+
"description": "dialogType=list \u65F6\u662F\u5426\u663E\u793A\u884C\u9009\u62E9\u6846\uFF0C\u9ED8\u8BA4 true"
|
|
5700
|
+
},
|
|
5701
|
+
"plugin": {
|
|
5702
|
+
"type": "string"
|
|
5703
|
+
},
|
|
5704
|
+
"result": {
|
|
5705
|
+
"type": "object",
|
|
5706
|
+
"description": "dialogType=action \u7684\u7ED3\u679C\u5C55\u793A\u3002\u624B\u5DE5\u6536\u7A84\uFF08generator \u53EA\u4EA7\u51FA Map(String,Object)\uFF09\uFF1Adisplay \u9650 table/json\uFF0Cpath/summaryField \u9650\u5B57\u7B26\u4E32\uFF1B\u672A\u5217\u51FA\u7684\u952E\u4ECD\u653E\u884C\u3002",
|
|
5707
|
+
"properties": {
|
|
5708
|
+
"display": {
|
|
5709
|
+
"type": "string",
|
|
5710
|
+
"enum": ["table", "json"]
|
|
5711
|
+
},
|
|
5712
|
+
"path": {
|
|
5713
|
+
"type": "string",
|
|
5714
|
+
"description": "\u660E\u7EC6\u6570\u7EC4\u5728\u54CD\u5E94\u4F53\u91CC\u7684\u8DEF\u5F84\uFF08\u5982 unmatchedDetail\uFF09\u3002\u4E0D\u586B\u6309\u6574\u4E2A\u54CD\u5E94\u4F53\u63A8\u65AD\uFF1B\u586B\u4E86\u4F46\u53D6\u4E0D\u5230/\u4E0D\u662F\u6570\u7EC4\u65F6\u6309\u7A7A\u8868\u5904\u7406\uFF0C\u4E0D\u62FF\u6574\u4E2A\u54CD\u5E94\u5BF9\u8C61\u51D1\u4E00\u884C\u3002"
|
|
5715
|
+
},
|
|
5716
|
+
"summaryField": {
|
|
5717
|
+
"type": "string",
|
|
5718
|
+
"description": "\u54CD\u5E94\u4F53\u91CC\u90A3\u53E5\u4EBA\u8BDD\u603B\u7ED3\u7684\u5B57\u6BB5\u540D\uFF08\u5982 notice\uFF09\uFF0C\u6E32\u67D3\u5728\u7ED3\u679C\u8868\u4E0A\u65B9\u3002\u7ED3\u679C\u8868\u5B58\u5728\u65F6\u5F39\u7A97\u4E0D\u81EA\u52A8\u5173\u95ED\uFF0Cafter.onSuccess \u7684 notify \u62FF\u4E0D\u5230 data\uFF0C\u7EDF\u8BA1\u53EA\u80FD\u4ECE\u8FD9\u91CC\u51FA\u3002"
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5721
|
+
},
|
|
5722
|
+
"targetAction": {
|
|
5723
|
+
"type": "string"
|
|
5724
|
+
},
|
|
5725
|
+
"targetModel": {
|
|
5726
|
+
"type": "string"
|
|
5727
|
+
},
|
|
5728
|
+
"targetState": {
|
|
5729
|
+
"type": "string"
|
|
5730
|
+
},
|
|
5731
|
+
"targetStateMapping": {
|
|
5732
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5733
|
+
},
|
|
5734
|
+
"title": {
|
|
5735
|
+
"type": "string"
|
|
5736
|
+
},
|
|
5737
|
+
"width": {
|
|
5738
|
+
"type": "string"
|
|
5739
|
+
}
|
|
5740
|
+
}
|
|
5741
|
+
},
|
|
5742
|
+
"disabled": {},
|
|
5743
|
+
"icon": {
|
|
5744
|
+
"type": "string"
|
|
5745
|
+
},
|
|
5746
|
+
"isDefault": {
|
|
5747
|
+
"type": "boolean"
|
|
5748
|
+
},
|
|
5749
|
+
"key": {
|
|
5750
|
+
"type": "string"
|
|
5751
|
+
},
|
|
5752
|
+
"label": {
|
|
5753
|
+
"type": "string"
|
|
5754
|
+
},
|
|
5755
|
+
"monitor": {
|
|
5756
|
+
"type": "object",
|
|
5757
|
+
"properties": {
|
|
5758
|
+
"scenario": {
|
|
5759
|
+
"type": "string"
|
|
5760
|
+
}
|
|
5761
|
+
}
|
|
5762
|
+
},
|
|
5763
|
+
"more": {
|
|
5764
|
+
"type": "boolean"
|
|
5765
|
+
},
|
|
5766
|
+
"navigate": {
|
|
5767
|
+
"type": "object",
|
|
5768
|
+
"properties": {
|
|
5769
|
+
"navigateType": {
|
|
5770
|
+
"type": "string"
|
|
5771
|
+
},
|
|
5772
|
+
"newWindow": {
|
|
5773
|
+
"type": "boolean"
|
|
5774
|
+
},
|
|
5775
|
+
"params": {
|
|
5776
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
5777
|
+
},
|
|
5778
|
+
"path": {
|
|
5779
|
+
"type": "string"
|
|
5780
|
+
},
|
|
5781
|
+
"query": {
|
|
5782
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
5783
|
+
},
|
|
5784
|
+
"routeName": {
|
|
5785
|
+
"type": "string"
|
|
5786
|
+
},
|
|
5787
|
+
"url": {
|
|
5788
|
+
"type": "string"
|
|
5789
|
+
}
|
|
5790
|
+
}
|
|
5791
|
+
},
|
|
5792
|
+
"needConfirm": {
|
|
5793
|
+
"type": "boolean"
|
|
5794
|
+
},
|
|
5795
|
+
"order": {
|
|
5796
|
+
"type": "integer"
|
|
5797
|
+
},
|
|
5798
|
+
"pageMode": {
|
|
5799
|
+
"type": "array",
|
|
5800
|
+
"items": {
|
|
5801
|
+
"type": "string"
|
|
5802
|
+
}
|
|
5803
|
+
},
|
|
5804
|
+
"params": {
|
|
5805
|
+
"type": "array",
|
|
5806
|
+
"items": {
|
|
5807
|
+
"type": "object",
|
|
5808
|
+
"properties": {
|
|
5809
|
+
"defaultValue": {},
|
|
5810
|
+
"expr": {
|
|
5811
|
+
"type": "string"
|
|
5812
|
+
},
|
|
5813
|
+
"formRef": {
|
|
5814
|
+
"type": "object",
|
|
5815
|
+
"properties": {
|
|
5816
|
+
"fields": {
|
|
5817
|
+
"type": "array",
|
|
5818
|
+
"items": {
|
|
5819
|
+
"type": "string"
|
|
5820
|
+
}
|
|
5821
|
+
},
|
|
5822
|
+
"model": {
|
|
5823
|
+
"type": "string"
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
},
|
|
5827
|
+
"formSchema": {
|
|
5828
|
+
"type": "object",
|
|
5829
|
+
"properties": {
|
|
5830
|
+
"fields": {
|
|
5831
|
+
"type": "array",
|
|
5832
|
+
"items": {
|
|
5833
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5834
|
+
}
|
|
5835
|
+
}
|
|
5836
|
+
}
|
|
5837
|
+
},
|
|
5838
|
+
"inputType": {
|
|
5839
|
+
"type": "string"
|
|
5840
|
+
},
|
|
5841
|
+
"into": {
|
|
5842
|
+
"type": "string"
|
|
5843
|
+
},
|
|
5844
|
+
"keyPath": {
|
|
5845
|
+
"type": "string"
|
|
5846
|
+
},
|
|
5847
|
+
"name": {
|
|
5848
|
+
"type": "string"
|
|
5849
|
+
},
|
|
5850
|
+
"path": {
|
|
5851
|
+
"type": "string"
|
|
5852
|
+
},
|
|
5853
|
+
"promptLabel": {
|
|
5854
|
+
"type": "string"
|
|
5855
|
+
},
|
|
5856
|
+
"promptText": {
|
|
5857
|
+
"type": "string"
|
|
5858
|
+
},
|
|
5859
|
+
"required": {
|
|
5860
|
+
"type": "boolean"
|
|
5861
|
+
},
|
|
5862
|
+
"source": {
|
|
5863
|
+
"description": "\u53C2\u6570\u6765\u6E90\uFF0C\u652F\u6301 row|selection|route|query|state|masterData|form|prompt|constant|expression|idempotency\uFF1Bidempotency \u6BCF\u6B21\u6536\u96C6\u81EA\u52A8\u751F\u6210 UUID",
|
|
5864
|
+
"type": "string"
|
|
5865
|
+
},
|
|
5866
|
+
"value": {}
|
|
5867
|
+
}
|
|
5868
|
+
}
|
|
5869
|
+
},
|
|
5870
|
+
"position": {
|
|
5871
|
+
"type": ["string", "null"]
|
|
5872
|
+
},
|
|
5873
|
+
"script": {
|
|
5874
|
+
"type": "object",
|
|
5875
|
+
"properties": {
|
|
5876
|
+
"mode": {
|
|
5877
|
+
"type": "string"
|
|
5878
|
+
},
|
|
5879
|
+
"params": {
|
|
5880
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5881
|
+
},
|
|
5882
|
+
"scriptKey": {
|
|
5883
|
+
"type": "string"
|
|
5884
|
+
},
|
|
5885
|
+
"timeout": {
|
|
5886
|
+
"type": "integer"
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
},
|
|
5890
|
+
"service": {
|
|
5891
|
+
"$ref": "#/$defs/ServiceActionConfig"
|
|
5892
|
+
},
|
|
5893
|
+
"composite": {
|
|
5894
|
+
"$ref": "#/$defs/CompositeActionConfig"
|
|
5895
|
+
},
|
|
5896
|
+
"execution": {
|
|
5897
|
+
"$ref": "#/$defs/ActionExecutionConfig"
|
|
5898
|
+
},
|
|
5899
|
+
"type": {
|
|
5900
|
+
"type": "string"
|
|
5901
|
+
},
|
|
5902
|
+
"visible": {}
|
|
5903
|
+
}
|
|
5904
|
+
}
|
|
5905
|
+
},
|
|
5906
|
+
"additions": {
|
|
5907
|
+
"description": "\u5173\u8054\u6570\u636E\u914D\u7F6E;\u58F0\u660E\u5217\u8868\u67E5\u8BE2\u65F6\u9700 JOIN \u62C9\u7684\u5176\u4ED6 Model \u5B57\u6BB5(\u5982\u90E8\u95E8\u540D/\u4E0A\u7EA7\u5C97\u4F4D)",
|
|
5908
|
+
"type": "array",
|
|
5909
|
+
"items": {
|
|
5910
|
+
"type": "object",
|
|
5911
|
+
"properties": {
|
|
5912
|
+
"filter": {
|
|
5913
|
+
"$ref": "#/$defs/JsonNode"
|
|
5914
|
+
},
|
|
5915
|
+
"joinType": {
|
|
5916
|
+
"type": "string"
|
|
5917
|
+
},
|
|
5918
|
+
"key": {
|
|
5919
|
+
"type": "string"
|
|
5920
|
+
},
|
|
5921
|
+
"label": {
|
|
5922
|
+
"type": "string"
|
|
5923
|
+
},
|
|
5924
|
+
"model": {
|
|
5925
|
+
"type": "string"
|
|
5926
|
+
},
|
|
5927
|
+
"onDemand": {
|
|
5928
|
+
"type": "boolean"
|
|
5929
|
+
},
|
|
5930
|
+
"relation": {
|
|
5931
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
5932
|
+
},
|
|
5933
|
+
"type": {
|
|
5934
|
+
"type": "string"
|
|
5935
|
+
}
|
|
5936
|
+
}
|
|
5937
|
+
}
|
|
5938
|
+
},
|
|
5939
|
+
"defaultSort": {
|
|
5940
|
+
"description": "\u9ED8\u8BA4\u6392\u5E8F;\u5F62\u5982 [{field:'name',order:'asc'},...]\u3002\u5220\u9664\u8BF7\u7528 {__remove:true}",
|
|
5941
|
+
"type": "array",
|
|
5942
|
+
"items": {
|
|
5943
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
5944
|
+
}
|
|
5945
|
+
},
|
|
5946
|
+
"description": {
|
|
5947
|
+
"type": "string",
|
|
5948
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
5949
|
+
},
|
|
5950
|
+
"fields": {
|
|
5951
|
+
"description": "\u5217\u8868\u5217\u5B9A\u4E49;Moirai patch-ops \u4E2D\u7531 spec.ops[] \u63A5\u7BA1,topPatches \u4E0D\u5E94\u518D\u5199 fields",
|
|
5952
|
+
"type": "array",
|
|
5953
|
+
"items": {
|
|
5954
|
+
"type": "object",
|
|
5955
|
+
"properties": {
|
|
5956
|
+
"align": {
|
|
5957
|
+
"type": "string",
|
|
5958
|
+
"enum": ["left", "center", "right"]
|
|
5959
|
+
},
|
|
5960
|
+
"autoGenerate": {
|
|
5961
|
+
"type": "boolean"
|
|
5962
|
+
},
|
|
5963
|
+
"field": {
|
|
5964
|
+
"type": "string"
|
|
5965
|
+
},
|
|
5966
|
+
"filter": {
|
|
5967
|
+
"type": "boolean"
|
|
5968
|
+
},
|
|
5969
|
+
"format": {
|
|
5970
|
+
"type": "string",
|
|
5971
|
+
"enum": ["date", "datetime", "number"]
|
|
5972
|
+
},
|
|
5973
|
+
"formatOptions": {
|
|
5974
|
+
"type": "object",
|
|
5975
|
+
"additionalProperties": false,
|
|
5976
|
+
"properties": {
|
|
5977
|
+
"useGrouping": {
|
|
5978
|
+
"type": "boolean"
|
|
5979
|
+
},
|
|
5980
|
+
"minimumFractionDigits": {
|
|
5981
|
+
"type": "integer",
|
|
5982
|
+
"minimum": 0,
|
|
5983
|
+
"maximum": 20
|
|
5984
|
+
},
|
|
5985
|
+
"maximumFractionDigits": {
|
|
5986
|
+
"type": "integer",
|
|
5987
|
+
"minimum": 0,
|
|
5988
|
+
"maximum": 20
|
|
5989
|
+
}
|
|
5990
|
+
}
|
|
5991
|
+
},
|
|
5992
|
+
"helpText": {
|
|
5993
|
+
"type": "string",
|
|
5994
|
+
"description": "\u5217\u5934\u5E2E\u52A9\u6587\u6848;\u9F20\u6807\u60AC\u6D6E help \u56FE\u6807\u663E\u793A\u3002\u672A\u8BBE\u65F6\u9ED8\u8BA4\u53D6\u5B57\u6BB5 hint"
|
|
5995
|
+
},
|
|
5996
|
+
"key": {
|
|
5997
|
+
"type": "string"
|
|
5998
|
+
},
|
|
5999
|
+
"label": {
|
|
6000
|
+
"type": "string"
|
|
6001
|
+
},
|
|
6002
|
+
"mask": {
|
|
6003
|
+
"type": "object"
|
|
6004
|
+
},
|
|
6005
|
+
"minWidth": {
|
|
6006
|
+
"type": "string"
|
|
6007
|
+
},
|
|
6008
|
+
"order": {
|
|
6009
|
+
"type": "integer"
|
|
6010
|
+
},
|
|
6011
|
+
"render": {
|
|
6012
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6013
|
+
},
|
|
6014
|
+
"sortable": {
|
|
6015
|
+
"type": "boolean"
|
|
6016
|
+
},
|
|
6017
|
+
"visible": {
|
|
6018
|
+
"type": "boolean"
|
|
6019
|
+
},
|
|
6020
|
+
"width": {
|
|
6021
|
+
"type": "integer"
|
|
6022
|
+
}
|
|
6023
|
+
},
|
|
6024
|
+
"allOf": [{
|
|
6025
|
+
"if": {
|
|
6026
|
+
"required": ["formatOptions"]
|
|
6027
|
+
},
|
|
6028
|
+
"then": {
|
|
6029
|
+
"required": ["format"],
|
|
6030
|
+
"properties": {
|
|
6031
|
+
"format": {
|
|
6032
|
+
"const": "number"
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
}
|
|
6036
|
+
}]
|
|
6037
|
+
}
|
|
6038
|
+
},
|
|
6039
|
+
"filter": {
|
|
6040
|
+
"type": "object",
|
|
6041
|
+
"properties": {
|
|
6042
|
+
"defaultFilter": {
|
|
6043
|
+
"$ref": "#/$defs/JsonNode"
|
|
6044
|
+
}
|
|
6045
|
+
},
|
|
6046
|
+
"description": "\u9884\u8BBE\u8FC7\u6EE4\u6761\u4EF6;\u6309 state \u63D0\u4F9B\u9ED8\u8BA4\u67E5\u8BE2\u6761\u4EF6,\u524D\u7AEF\u9996\u6B21\u6253\u5F00\u5217\u8868\u81EA\u52A8\u5E26\u5165"
|
|
6047
|
+
},
|
|
6048
|
+
"key": {
|
|
6049
|
+
"type": "string",
|
|
6050
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
6051
|
+
},
|
|
6052
|
+
"layout": {
|
|
6053
|
+
"type": "object",
|
|
6054
|
+
"properties": {
|
|
6055
|
+
"defaultView": {
|
|
6056
|
+
"type": "string"
|
|
6057
|
+
},
|
|
6058
|
+
"supportedViews": {
|
|
6059
|
+
"type": "array",
|
|
6060
|
+
"items": {
|
|
6061
|
+
"type": "string"
|
|
6062
|
+
}
|
|
6063
|
+
},
|
|
6064
|
+
"tree": {
|
|
6065
|
+
"type": "object",
|
|
6066
|
+
"properties": {
|
|
6067
|
+
"action": {
|
|
6068
|
+
"type": "string"
|
|
6069
|
+
},
|
|
6070
|
+
"filterField": {
|
|
6071
|
+
"type": "string"
|
|
6072
|
+
},
|
|
6073
|
+
"object": {
|
|
6074
|
+
"type": "string"
|
|
6075
|
+
}
|
|
6076
|
+
}
|
|
6077
|
+
},
|
|
6078
|
+
"type": {
|
|
6079
|
+
"type": "string"
|
|
6080
|
+
}
|
|
6081
|
+
},
|
|
6082
|
+
"description": "\u5217\u8868\u5916\u5C42\u5E03\u5C40,\u5982 tree-list(\u5DE6\u6811\u53F3\u5217\u8868)\u3002\u8BE6\u89C1 ListLayout \u7C7B\u578B"
|
|
6083
|
+
},
|
|
6084
|
+
"name": {
|
|
6085
|
+
"type": "string",
|
|
6086
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
6087
|
+
},
|
|
6088
|
+
"selectable": {
|
|
6089
|
+
"type": "boolean",
|
|
6090
|
+
"description": "\u662F\u5426\u542F\u7528\u884C\u9009\u62E9;true \u65F6\u5217\u8868\u663E\u793A\u590D\u9009\u6846,\u652F\u6301\u6279\u91CF\u64CD\u4F5C(\u6279\u91CF\u5220\u9664\u7B49)\u3002\u9ED8\u8BA4 false"
|
|
6091
|
+
},
|
|
6092
|
+
"display": {
|
|
6093
|
+
"type": "object",
|
|
6094
|
+
"description": "\u5217\u8868\u663E\u793A(\u5916\u89C2)\u65B9\u6848;\u627F\u8F7D\u8868\u683C\u5C55\u793A\u5F00\u5173(\u7AD6\u7EBF showColumnBorder \u7B49)\u3002\u6574\u5757\u53EF\u9009,\u7F3A\u7701\u5168\u90E8\u9ED8\u8BA4",
|
|
6095
|
+
"additionalProperties": false,
|
|
6096
|
+
"properties": {
|
|
6097
|
+
"showColumnBorder": {
|
|
6098
|
+
"type": "boolean",
|
|
6099
|
+
"description": "\u662F\u5426\u663E\u793A\u8868\u683C\u7EB5\u5411\u5217\u5206\u5272\u7EBF(\u7AD6\u7EBF);\u9ED8\u8BA4 false(\u4EC5\u6A2A\u5411\u884C\u7EBF)\u3002true \u663E\u793A\u5B8C\u6574\u7F51\u683C\u3002\u5217\u5BBD\u62D6\u62FD\u4E0D\u53D7\u5F71\u54CD"
|
|
6100
|
+
}
|
|
6101
|
+
}
|
|
6102
|
+
},
|
|
6103
|
+
"serverFilter": {
|
|
6104
|
+
"$ref": "#/$defs/JsonNode",
|
|
6105
|
+
"description": "\u670D\u52A1\u7AEF\u5F3A\u5236\u8FC7\u6EE4\u6761\u4EF6(Cube AST);\u8DDF\u7528\u6237 DSL filter AND \u5408\u5E76\u3002\u652F\u6301 $currentUserId \u5360\u4F4D\u7B26"
|
|
6106
|
+
},
|
|
6107
|
+
"statBar": {
|
|
6108
|
+
"type": "object",
|
|
6109
|
+
"description": "\u5217\u8868\u9876\u90E8\u7EDF\u8BA1 Tab \u914D\u7F6E;\u6309 groupField \u805A\u5408\u8BA1\u6570,\u70B9\u51FB Tab \u9644\u52A0\u8FC7\u6EE4\u6761\u4EF6",
|
|
6110
|
+
"additionalProperties": false,
|
|
6111
|
+
"required": ["groupField"],
|
|
6112
|
+
"properties": {
|
|
6113
|
+
"groupField": {
|
|
6114
|
+
"type": "string",
|
|
6115
|
+
"description": "\u5206\u7EC4\u5B57\u6BB5 key,\u987B\u4E0E\u5217\u8868\u7684\u8FC7\u6EE4/\u663E\u793A\u5B57\u6BB5\u4E00\u81F4"
|
|
6116
|
+
},
|
|
6117
|
+
"showAll": {
|
|
6118
|
+
"type": "boolean",
|
|
6119
|
+
"description": "\u662F\u5426\u663E\u793A\u300C\u5168\u90E8\u300DTab(\u9ED8\u8BA4 true)"
|
|
6120
|
+
},
|
|
6121
|
+
"showEmptyGroups": {
|
|
6122
|
+
"type": "boolean",
|
|
6123
|
+
"description": "\u662F\u5426\u663E\u793A\u8BA1\u6570\u4E3A 0 \u7684\u5DF2\u77E5\u5206\u7EC4(\u9ED8\u8BA4 false)"
|
|
6124
|
+
},
|
|
6125
|
+
"defaultValue": {
|
|
6126
|
+
"type": ["string", "null"],
|
|
6127
|
+
"description": "\u9ED8\u8BA4\u9009\u4E2D\u7684 groupField \u503C;\u4E3A\u7A7A\u6216 null \u4FDD\u6301\u73B0\u72B6(\u5168\u90E8)\u3002state \u8986\u76D6\u987B\u663E\u5F0F\u5199 null \u624D\u80FD\u53D6\u6D88\u57FA\u5EA7\u58F0\u660E\u7684\u9ED8\u8BA4\u6BB5\u2014\u2014\u7701\u7565\u8BE5\u952E\u65F6 mergeMap \u4F1A\u4FDD\u7559\u57FA\u5EA7\u503C"
|
|
6128
|
+
}
|
|
6129
|
+
}
|
|
6130
|
+
},
|
|
6131
|
+
"toolbar": {
|
|
6132
|
+
"type": "object",
|
|
6133
|
+
"description": "\u5217\u8868\u5DE5\u5177\u680F\u914D\u7F6E;\u58F0\u660E TopBar \u5404\u5143\u7D20\u663E\u9690\u4E0E\u641C\u7D22\u5F62\u6001\u3002\u6574\u5757\u53CA\u5404\u5B57\u6BB5\u5747\u53EF\u9009,\u7F3A\u7701\u5168\u5F00+\u5173\u952E\u8BCD\u641C\u7D22",
|
|
6134
|
+
"additionalProperties": false,
|
|
6135
|
+
"properties": {
|
|
6136
|
+
"search": {
|
|
6137
|
+
"type": "string",
|
|
6138
|
+
"enum": ["keyword", "ai", "none"],
|
|
6139
|
+
"description": "\u641C\u7D22\u5F62\u6001:keyword(\u5173\u952E\u8BCD\u6846,\u9ED8\u8BA4)|ai(AI \u81EA\u7136\u8BED\u8A00\u641C\u7D22\u6846,\u4E0E\u5173\u952E\u8BCD\u6846\u4E92\u65A5\u540C\u4F4D\u7F6E)|none(\u4E0D\u663E\u793A)"
|
|
6140
|
+
},
|
|
6141
|
+
"aiSearchExamples": {
|
|
6142
|
+
"type": "array",
|
|
6143
|
+
"items": { "type": "string" },
|
|
6144
|
+
"description": "AI \u641C\u7D22\u300C\u8BD5\u8BD5\u8FD9\u6837\u95EE\u300D\u793A\u4F8B\u63D0\u793A\u8BCD\u5217\u8868(\u6BCF\u6761\u4E00\u53E5\u81EA\u7136\u8BED\u8A00);\u4EC5 search=ai \u751F\u6548"
|
|
6145
|
+
},
|
|
6146
|
+
"filterButton": {
|
|
6147
|
+
"type": "boolean",
|
|
6148
|
+
"description": "\u662F\u5426\u663E\u793A\u300C\u7B5B\u9009\u5B57\u6BB5\u300D\u6309\u94AE\u4E0E\u5DF2\u5E94\u7528\u6761\u4EF6 bar(\u9ED8\u8BA4 true)"
|
|
6149
|
+
},
|
|
6150
|
+
"density": {
|
|
6151
|
+
"type": "boolean",
|
|
6152
|
+
"description": "\u662F\u5426\u663E\u793A\u5BC6\u5EA6(\u884C\u8DDD)\u4E0B\u62C9(\u9ED8\u8BA4 true)"
|
|
6153
|
+
},
|
|
6154
|
+
"refresh": {
|
|
6155
|
+
"type": "boolean",
|
|
6156
|
+
"description": "\u662F\u5426\u663E\u793A\u5237\u65B0\u6309\u94AE(\u9ED8\u8BA4 true)"
|
|
6157
|
+
},
|
|
6158
|
+
"resetLayout": {
|
|
6159
|
+
"type": "boolean",
|
|
6160
|
+
"description": "\u662F\u5426\u663E\u793A\u300C\u6062\u590D\u9ED8\u8BA4\u5E03\u5C40\u300D\u6309\u94AE(\u9ED8\u8BA4 true)"
|
|
6161
|
+
}
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6164
|
+
}
|
|
6165
|
+
},
|
|
6166
|
+
info: {
|
|
6167
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6168
|
+
"$defs": {
|
|
6169
|
+
"AfterHandler": {
|
|
6170
|
+
"type": "object",
|
|
6171
|
+
"properties": {
|
|
6172
|
+
"config": {
|
|
6173
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6174
|
+
},
|
|
6175
|
+
"type": {
|
|
6176
|
+
"type": "string"
|
|
6177
|
+
}
|
|
6178
|
+
}
|
|
6179
|
+
},
|
|
6180
|
+
"Map(String,Object)": {
|
|
6181
|
+
"type": "object"
|
|
6182
|
+
},
|
|
6183
|
+
"ParamConfig": {
|
|
6184
|
+
"type": "object",
|
|
6185
|
+
"required": ["name", "source"],
|
|
6186
|
+
"properties": {
|
|
6187
|
+
"name": { "type": "string", "minLength": 1 },
|
|
6188
|
+
"source": { "type": "string" },
|
|
6189
|
+
"path": { "type": "string" },
|
|
6190
|
+
"keyPath": { "type": "string" },
|
|
6191
|
+
"value": {},
|
|
6192
|
+
"expr": { "type": "string" },
|
|
6193
|
+
"promptText": { "type": "string" },
|
|
6194
|
+
"promptLabel": { "type": "string" },
|
|
6195
|
+
"inputType": { "type": "string" },
|
|
6196
|
+
"formSchema": { "$ref": "#/$defs/Map(String,Object)" },
|
|
6197
|
+
"formRef": { "$ref": "#/$defs/Map(String,Object)" },
|
|
6198
|
+
"required": { "type": "boolean" },
|
|
6199
|
+
"defaultValue": {},
|
|
6200
|
+
"into": { "type": "string" }
|
|
6201
|
+
}
|
|
6202
|
+
},
|
|
6203
|
+
"ServiceActionConfig": {
|
|
6204
|
+
"type": "object",
|
|
6205
|
+
"required": ["agentKey", "serviceKey"],
|
|
6206
|
+
"properties": {
|
|
6207
|
+
"agentKey": { "type": "string", "minLength": 1 },
|
|
6208
|
+
"serviceKey": { "type": "string", "minLength": 1 },
|
|
6209
|
+
"mode": { "type": "string", "enum": ["sync", "async"] },
|
|
6210
|
+
"timeoutMs": { "type": "integer", "minimum": 1e3 },
|
|
6211
|
+
"pollIntervalMs": { "type": "integer", "minimum": 100 }
|
|
6212
|
+
}
|
|
6213
|
+
},
|
|
6214
|
+
"ActionExecutionConfig": {
|
|
6215
|
+
"type": "object",
|
|
6216
|
+
"properties": {
|
|
6217
|
+
"returnOn": { "type": "string", "enum": ["terminal", "accepted"] }
|
|
6218
|
+
}
|
|
6219
|
+
},
|
|
6220
|
+
"CompositeActionConfig": {
|
|
6221
|
+
"type": "object",
|
|
6222
|
+
"required": ["steps"],
|
|
6223
|
+
"properties": {
|
|
6224
|
+
"mode": { "type": "string", "enum": ["sequential", "parallel"] },
|
|
6225
|
+
"stopOnError": { "type": "boolean" },
|
|
6226
|
+
"steps": {
|
|
6227
|
+
"type": "array",
|
|
6228
|
+
"minItems": 1,
|
|
6229
|
+
"items": {
|
|
6230
|
+
"oneOf": [
|
|
6231
|
+
{ "type": "string", "minLength": 1 },
|
|
6232
|
+
{
|
|
6233
|
+
"type": "object",
|
|
6234
|
+
"required": ["action"],
|
|
6235
|
+
"properties": {
|
|
6236
|
+
"action": { "type": ["string", "object"] },
|
|
6237
|
+
"saveAs": { "type": "string", "minLength": 1 }
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
]
|
|
6241
|
+
}
|
|
6242
|
+
}
|
|
6243
|
+
}
|
|
6244
|
+
}
|
|
6245
|
+
},
|
|
6246
|
+
"type": "object",
|
|
6247
|
+
"properties": {
|
|
6248
|
+
"actions": {
|
|
6249
|
+
"description": "\u64CD\u4F5C\u6309\u94AE\u5217\u8868(\u63D0\u4EA4/\u53D6\u6D88\u7B49);\u901A\u5E38\u7531 InfoMetaEngine \u81EA\u52A8\u751F\u6210,YAML \u4E00\u822C\u4E0D\u5199",
|
|
6250
|
+
"type": "array",
|
|
6251
|
+
"items": {
|
|
6252
|
+
"type": "object",
|
|
6253
|
+
"properties": {
|
|
6254
|
+
"after": {
|
|
6255
|
+
"type": "object",
|
|
6256
|
+
"properties": {
|
|
6257
|
+
"onBlock": {
|
|
6258
|
+
"type": "array",
|
|
6259
|
+
"items": {
|
|
6260
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6261
|
+
}
|
|
6262
|
+
},
|
|
6263
|
+
"onError": {
|
|
6264
|
+
"type": "array",
|
|
6265
|
+
"items": {
|
|
6266
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6267
|
+
}
|
|
6268
|
+
},
|
|
6269
|
+
"onEscalate": {
|
|
6270
|
+
"type": "array",
|
|
6271
|
+
"items": {
|
|
6272
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6273
|
+
}
|
|
6274
|
+
},
|
|
6275
|
+
"onFinally": {
|
|
6276
|
+
"type": "array",
|
|
6277
|
+
"items": {
|
|
6278
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6279
|
+
}
|
|
6280
|
+
},
|
|
6281
|
+
"onInfo": {
|
|
6282
|
+
"type": "array",
|
|
6283
|
+
"items": {
|
|
6284
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6285
|
+
}
|
|
6286
|
+
},
|
|
6287
|
+
"onPass": {
|
|
6288
|
+
"type": "array",
|
|
6289
|
+
"items": {
|
|
6290
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6291
|
+
}
|
|
6292
|
+
},
|
|
6293
|
+
"onSuccess": {
|
|
6294
|
+
"type": "array",
|
|
6295
|
+
"items": {
|
|
6296
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6297
|
+
}
|
|
6298
|
+
},
|
|
6299
|
+
"onWarn": {
|
|
6300
|
+
"type": "array",
|
|
6301
|
+
"items": {
|
|
6302
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6303
|
+
}
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
},
|
|
6307
|
+
"api": {
|
|
6308
|
+
"type": "object",
|
|
6309
|
+
"properties": {
|
|
6310
|
+
"actionName": {
|
|
6311
|
+
"type": "string"
|
|
6312
|
+
},
|
|
6313
|
+
"awaitTask": {
|
|
6314
|
+
"type": "object",
|
|
6315
|
+
"properties": {
|
|
6316
|
+
"completionEventType": {
|
|
6317
|
+
"type": "string"
|
|
6318
|
+
},
|
|
6319
|
+
"completionStatus": {
|
|
6320
|
+
"type": "string"
|
|
6321
|
+
},
|
|
6322
|
+
"enabled": {
|
|
6323
|
+
"type": "boolean"
|
|
6324
|
+
},
|
|
6325
|
+
"pollIntervalMs": {
|
|
6326
|
+
"type": "integer"
|
|
6327
|
+
},
|
|
6328
|
+
"resultModel": {
|
|
6329
|
+
"type": "string"
|
|
6330
|
+
},
|
|
6331
|
+
"taskIdPath": {
|
|
6332
|
+
"type": "string"
|
|
6333
|
+
},
|
|
6334
|
+
"timeoutMs": {
|
|
6335
|
+
"type": "integer"
|
|
6336
|
+
}
|
|
6337
|
+
}
|
|
6338
|
+
},
|
|
6339
|
+
"i18n": {
|
|
6340
|
+
"type": "boolean"
|
|
6341
|
+
},
|
|
6342
|
+
"method": {
|
|
6343
|
+
"type": "string"
|
|
6344
|
+
},
|
|
6345
|
+
"responseType": {
|
|
6346
|
+
"type": "string"
|
|
6347
|
+
},
|
|
6348
|
+
"silent": {
|
|
6349
|
+
"type": "boolean"
|
|
6350
|
+
},
|
|
6351
|
+
"successMessage": {
|
|
6352
|
+
"type": "string"
|
|
6353
|
+
},
|
|
6354
|
+
"target": {
|
|
6355
|
+
"type": "string"
|
|
6356
|
+
},
|
|
6357
|
+
"targetModel": {
|
|
6358
|
+
"type": "string"
|
|
6359
|
+
}
|
|
6360
|
+
}
|
|
6361
|
+
},
|
|
6362
|
+
"dialog": {
|
|
6363
|
+
"type": "object",
|
|
6364
|
+
"properties": {
|
|
6365
|
+
"dialogType": {
|
|
6366
|
+
"type": "string"
|
|
6367
|
+
},
|
|
6368
|
+
"listSelection": {
|
|
6369
|
+
"type": "boolean",
|
|
6370
|
+
"description": "dialogType=list \u65F6\u662F\u5426\u663E\u793A\u884C\u9009\u62E9\u6846\uFF0C\u9ED8\u8BA4 true"
|
|
6371
|
+
},
|
|
6372
|
+
"initDataMapping": {
|
|
6373
|
+
"type": "object",
|
|
6374
|
+
"additionalProperties": {
|
|
6375
|
+
"type": "string"
|
|
6376
|
+
}
|
|
6377
|
+
},
|
|
6378
|
+
"targetModel": {
|
|
6379
|
+
"type": "string"
|
|
6380
|
+
},
|
|
6381
|
+
"targetState": {
|
|
6382
|
+
"type": "string"
|
|
6383
|
+
},
|
|
6384
|
+
"title": {
|
|
6385
|
+
"type": "string"
|
|
6386
|
+
},
|
|
6387
|
+
"width": {
|
|
6388
|
+
"type": "string"
|
|
6389
|
+
}
|
|
6390
|
+
}
|
|
6391
|
+
},
|
|
6392
|
+
"buttonType": {
|
|
6393
|
+
"type": "string"
|
|
6394
|
+
},
|
|
6395
|
+
"confirmText": {
|
|
6396
|
+
"type": "string"
|
|
6397
|
+
},
|
|
6398
|
+
"confirmTitle": {
|
|
6399
|
+
"type": "string"
|
|
6400
|
+
},
|
|
6401
|
+
"icon": {
|
|
6402
|
+
"type": "string"
|
|
6403
|
+
},
|
|
6404
|
+
"key": {
|
|
6405
|
+
"type": "string"
|
|
6406
|
+
},
|
|
6407
|
+
"label": {
|
|
6408
|
+
"type": "string"
|
|
6409
|
+
},
|
|
6410
|
+
"mobileOutsideBtn": {
|
|
6411
|
+
"type": "boolean"
|
|
6412
|
+
},
|
|
6413
|
+
"monitor": {
|
|
6414
|
+
"type": "object",
|
|
6415
|
+
"properties": {
|
|
6416
|
+
"scenario": {
|
|
6417
|
+
"type": "string"
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
},
|
|
6421
|
+
"more": {
|
|
6422
|
+
"type": "boolean"
|
|
6423
|
+
},
|
|
6424
|
+
"needConfirm": {
|
|
6425
|
+
"type": "boolean"
|
|
6426
|
+
},
|
|
6427
|
+
"order": {
|
|
6428
|
+
"type": "integer"
|
|
6429
|
+
},
|
|
6430
|
+
"position": {
|
|
6431
|
+
"type": "string",
|
|
6432
|
+
"enum": ["footer-left", "footer-right"]
|
|
6433
|
+
},
|
|
6434
|
+
"script": {
|
|
6435
|
+
"type": "object",
|
|
6436
|
+
"properties": {
|
|
6437
|
+
"mode": {
|
|
6438
|
+
"type": "string"
|
|
6439
|
+
},
|
|
6440
|
+
"params": {
|
|
6441
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6442
|
+
},
|
|
6443
|
+
"scriptKey": {
|
|
6444
|
+
"type": "string"
|
|
6445
|
+
},
|
|
6446
|
+
"timeout": {
|
|
6447
|
+
"type": "integer"
|
|
6448
|
+
}
|
|
6449
|
+
}
|
|
6450
|
+
},
|
|
6451
|
+
"params": {
|
|
6452
|
+
"type": "array",
|
|
6453
|
+
"items": { "$ref": "#/$defs/ParamConfig" }
|
|
6454
|
+
},
|
|
6455
|
+
"service": {
|
|
6456
|
+
"$ref": "#/$defs/ServiceActionConfig"
|
|
6457
|
+
},
|
|
6458
|
+
"composite": {
|
|
6459
|
+
"$ref": "#/$defs/CompositeActionConfig"
|
|
6460
|
+
},
|
|
6461
|
+
"execution": {
|
|
6462
|
+
"$ref": "#/$defs/ActionExecutionConfig"
|
|
6463
|
+
},
|
|
6464
|
+
"submitMethod": {
|
|
6465
|
+
"type": "string"
|
|
6466
|
+
},
|
|
6467
|
+
"successMessage": {
|
|
6468
|
+
"type": "string"
|
|
6469
|
+
},
|
|
6470
|
+
"type": {
|
|
6471
|
+
"type": "string"
|
|
6472
|
+
},
|
|
6473
|
+
"visible": {}
|
|
6474
|
+
}
|
|
6475
|
+
}
|
|
6476
|
+
},
|
|
6477
|
+
"childrens": {
|
|
6478
|
+
"description": "\u9876\u5C42 childrens[] \u8282\u70B9;\u58F0\u660E\u5F0F\u5B50\u8868\u7ED1\u5B9A(ADR-074);\u4E0E fields[].component=hc-field-list \u901A\u8FC7 key \u53CC\u5411\u914D\u5BF9",
|
|
6479
|
+
"type": "array",
|
|
6480
|
+
"items": {
|
|
6481
|
+
"type": "object",
|
|
6482
|
+
"properties": {
|
|
6483
|
+
"conditions": {
|
|
6484
|
+
"$ref": "#/$defs/Map(String,Object)",
|
|
6485
|
+
"description": "\u989D\u5916\u8FC7\u6EE4\u6761\u4EF6\uFF08\u5B57\u9762\u91CF key:value\uFF0CAND \u8BED\u4E49\uFF09\uFF1B\u4E0E RBAC/list defaultFilter \u53E0\u52A0\uFF1B\u7F3A\u7701\u4E3A\u7A7A map"
|
|
6486
|
+
},
|
|
6487
|
+
"key": {
|
|
6488
|
+
"type": "string",
|
|
6489
|
+
"description": "\u4E0E fields[].key \u914D\u5BF9\u7684\u5B57\u6BB5 key\uFF1B\u8BE5 field \u7684 component \u5FC5\u987B\u4E3A hc-field-list"
|
|
6490
|
+
},
|
|
6491
|
+
"listKey": {
|
|
6492
|
+
"type": "string",
|
|
6493
|
+
"description": "\u5B50\u8868 list.yml \u7684 state/key\uFF1B\u6309\u51B3\u7B56\u6811\u52A0\u8F7D <Model>.list.<listKey>.yml \u6216 <Model>.list.yml \u9876\u5C42 key \u5B57\u6BB5"
|
|
6494
|
+
},
|
|
6495
|
+
"model": {
|
|
6496
|
+
"type": "string",
|
|
6497
|
+
"description": "\u5B50\u8868 Model \u540D\uFF1B\u5FC5\u987B\u5DF2\u5728 ModelRegistry \u6CE8\u518C"
|
|
6498
|
+
},
|
|
6499
|
+
"relationField": {
|
|
6500
|
+
"type": "string",
|
|
6501
|
+
"description": "\u5B50\u8868\u56DE\u6307\u7236\u8868\u7684 FK \u5B57\u6BB5\uFF1B\u7C7B\u578B\u5FC5\u987B\u4E0E\u7236\u8868\u4E3B\u952E\u53EF\u8D4B\u503C\u517C\u5BB9"
|
|
6502
|
+
}
|
|
6503
|
+
}
|
|
6504
|
+
}
|
|
6505
|
+
},
|
|
6506
|
+
"createIdOwner": {
|
|
6507
|
+
"type": "string",
|
|
6508
|
+
"enum": ["client", "server"],
|
|
6509
|
+
"description": "create \u5B9E\u4F53\u8EAB\u4EFD\u6240\u6709\u8005;client=\u5BA2\u6237\u7AEF\u53EF\u9884\u751F\u6210 id,server=\u5BA2\u6237\u7AEF\u5FC5\u987B\u7701\u7565 id/tenantId/canonicalId;\u8FD0\u884C\u65F6\u53EA\u8BFB\u6D3E\u751F",
|
|
6510
|
+
"readOnly": true
|
|
6511
|
+
},
|
|
6512
|
+
"description": {
|
|
6513
|
+
"type": "string",
|
|
6514
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
6515
|
+
},
|
|
6516
|
+
"fields": {
|
|
6517
|
+
"description": "\u5B57\u6BB5\u5217\u8868;Moirai patch-ops \u4E2D\u7531 spec.ops[] \u63A5\u7BA1,topPatches \u4E0D\u5E94\u518D\u5199 fields",
|
|
6518
|
+
"type": "array",
|
|
6519
|
+
"items": {
|
|
6520
|
+
"type": "object",
|
|
6521
|
+
"properties": {
|
|
6522
|
+
"autoGenerate": {
|
|
6523
|
+
"type": "boolean"
|
|
6524
|
+
},
|
|
6525
|
+
"component": {
|
|
6526
|
+
"type": "string"
|
|
6527
|
+
},
|
|
6528
|
+
"defaultValue": {},
|
|
6529
|
+
"hidden": {
|
|
6530
|
+
"type": "boolean"
|
|
6531
|
+
},
|
|
6532
|
+
"key": {
|
|
6533
|
+
"type": "string"
|
|
6534
|
+
},
|
|
6535
|
+
"label": {
|
|
6536
|
+
"type": "string"
|
|
6537
|
+
},
|
|
6538
|
+
"options": {
|
|
6539
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6540
|
+
},
|
|
6541
|
+
"readonly": {
|
|
6542
|
+
"type": "boolean"
|
|
6543
|
+
},
|
|
6544
|
+
"required": {
|
|
6545
|
+
"type": "boolean"
|
|
6546
|
+
},
|
|
6547
|
+
"sequence": {
|
|
6548
|
+
"type": "integer"
|
|
6549
|
+
},
|
|
6550
|
+
"visibleWhen": {
|
|
6551
|
+
"type": "object",
|
|
6552
|
+
"properties": {
|
|
6553
|
+
"field": {
|
|
6554
|
+
"type": "string"
|
|
6555
|
+
},
|
|
6556
|
+
"operator": {
|
|
6557
|
+
"type": "string"
|
|
6558
|
+
},
|
|
6559
|
+
"value": {}
|
|
6560
|
+
}
|
|
6561
|
+
},
|
|
6562
|
+
"width": {
|
|
6563
|
+
"type": "integer"
|
|
6564
|
+
}
|
|
6565
|
+
}
|
|
6566
|
+
}
|
|
6567
|
+
},
|
|
6568
|
+
"groups": {
|
|
6569
|
+
"description": "\u8868\u5355\u5206\u7EC4;\u6BCF\u9879\u542B key + label + fields[],\u628A\u5B57\u6BB5\u5207\u5230\u5206\u7EC4\u4E0B\u6E32\u67D3\u3002\u4E3A\u7A7A\u65F6\u6241\u5E73\u6E32\u67D3\u6240\u6709\u5B57\u6BB5",
|
|
6570
|
+
"type": "array",
|
|
6571
|
+
"items": {
|
|
6572
|
+
"type": "object",
|
|
6573
|
+
"properties": {
|
|
6574
|
+
"fields": {
|
|
6575
|
+
"type": "array",
|
|
6576
|
+
"items": {
|
|
6577
|
+
"type": "string"
|
|
6578
|
+
}
|
|
6579
|
+
},
|
|
6580
|
+
"key": {
|
|
6581
|
+
"type": "string"
|
|
6582
|
+
},
|
|
6583
|
+
"label": {
|
|
6584
|
+
"type": "string"
|
|
6585
|
+
}
|
|
6586
|
+
}
|
|
6587
|
+
}
|
|
6588
|
+
},
|
|
6589
|
+
"hasBehavior": {
|
|
6590
|
+
"type": "boolean"
|
|
6591
|
+
},
|
|
6592
|
+
"key": {
|
|
6593
|
+
"type": "string",
|
|
6594
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
6595
|
+
},
|
|
6596
|
+
"labelPosition": {
|
|
6597
|
+
"type": "string",
|
|
6598
|
+
"enum": ["top", "left", "right"],
|
|
6599
|
+
"description": "\u8868\u5355\u6807\u7B7E\u4F4D\u7F6E;form/\u9875\u9762\u7EA7(\u975E field \u7EA7),\u503C\u57DF top|left|right;YAML \u7F3A\u7701\u65F6\u540E\u7AEF\u5F15\u64CE\u8865\u9ED8\u8BA4 top \u4E0B\u53D1,\u79DF\u6237\u5C42\u53EF\u8986\u76D6"
|
|
6600
|
+
},
|
|
6601
|
+
"name": {
|
|
6602
|
+
"type": "string",
|
|
6603
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
6604
|
+
},
|
|
6605
|
+
"tip": {
|
|
6606
|
+
"type": "string",
|
|
6607
|
+
"description": "\u8868\u5355\u9876\u90E8\u63D0\u793A\u6587\u6848(\u652F\u6301\u6362\u884C);\u5E38\u7528\u4E8E\u6DFB\u52A0\u4E1A\u52A1\u8BF4\u660E\u3001\u8B66\u793A\u4FE1\u606F,\u663E\u793A\u5728\u6240\u6709\u5B57\u6BB5\u4E4B\u524D"
|
|
6608
|
+
},
|
|
6609
|
+
"aiPanelEnabled": {
|
|
6610
|
+
"type": "boolean",
|
|
6611
|
+
"description": "AI \u5D4C\u5165\u9762\u677F\u662F\u5426\u542F\u7528;true(\u9ED8\u8BA4)\u65F6\u6E32\u67D3 EmbeddedAIPanel \u4FA7\u8FB9\u680F;info.<state>.yml \u53EF\u8BBE false \u5173\u95ED(\u5982 scoreForm \u8BC4\u5206\u9875)"
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6614
|
+
},
|
|
6615
|
+
view: {
|
|
6616
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
6617
|
+
"$defs": {
|
|
6618
|
+
"AfterHandler": {
|
|
6619
|
+
"type": "object",
|
|
6620
|
+
"properties": {
|
|
6621
|
+
"config": {
|
|
6622
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6623
|
+
},
|
|
6624
|
+
"type": {
|
|
6625
|
+
"type": "string"
|
|
6626
|
+
}
|
|
6627
|
+
}
|
|
6628
|
+
},
|
|
6629
|
+
"Map(String,Object)": {
|
|
6630
|
+
"type": "object"
|
|
6631
|
+
},
|
|
6632
|
+
"Map(String,String)": {
|
|
6633
|
+
"type": "object"
|
|
6634
|
+
},
|
|
6635
|
+
"ParamConfig": {
|
|
6636
|
+
"type": "object",
|
|
6637
|
+
"required": ["name", "source"],
|
|
6638
|
+
"properties": {
|
|
6639
|
+
"name": { "type": "string", "minLength": 1 },
|
|
6640
|
+
"source": { "type": "string" },
|
|
6641
|
+
"path": { "type": "string" },
|
|
6642
|
+
"keyPath": { "type": "string" },
|
|
6643
|
+
"value": {},
|
|
6644
|
+
"expr": { "type": "string" },
|
|
6645
|
+
"promptText": { "type": "string" },
|
|
6646
|
+
"promptLabel": { "type": "string" },
|
|
6647
|
+
"inputType": { "type": "string" },
|
|
6648
|
+
"formSchema": { "$ref": "#/$defs/Map(String,Object)" },
|
|
6649
|
+
"formRef": { "$ref": "#/$defs/Map(String,Object)" },
|
|
6650
|
+
"required": { "type": "boolean" },
|
|
6651
|
+
"defaultValue": {},
|
|
6652
|
+
"into": { "type": "string" }
|
|
6653
|
+
}
|
|
6654
|
+
},
|
|
6655
|
+
"ServiceActionConfig": {
|
|
6656
|
+
"type": "object",
|
|
6657
|
+
"required": ["agentKey", "serviceKey"],
|
|
6658
|
+
"properties": {
|
|
6659
|
+
"agentKey": { "type": "string", "minLength": 1 },
|
|
6660
|
+
"serviceKey": { "type": "string", "minLength": 1 },
|
|
6661
|
+
"mode": { "type": "string", "enum": ["sync", "async"] },
|
|
6662
|
+
"timeoutMs": { "type": "integer", "minimum": 1e3 },
|
|
6663
|
+
"pollIntervalMs": { "type": "integer", "minimum": 100 }
|
|
6664
|
+
}
|
|
6665
|
+
},
|
|
6666
|
+
"ActionExecutionConfig": {
|
|
6667
|
+
"type": "object",
|
|
6668
|
+
"properties": {
|
|
6669
|
+
"returnOn": { "type": "string", "enum": ["terminal", "accepted"] }
|
|
6670
|
+
}
|
|
6671
|
+
},
|
|
6672
|
+
"CompositeActionConfig": {
|
|
6673
|
+
"type": "object",
|
|
6674
|
+
"required": ["steps"],
|
|
6675
|
+
"properties": {
|
|
6676
|
+
"mode": { "type": "string", "enum": ["sequential", "parallel"] },
|
|
6677
|
+
"stopOnError": { "type": "boolean" },
|
|
6678
|
+
"steps": {
|
|
6679
|
+
"type": "array",
|
|
6680
|
+
"minItems": 1,
|
|
6681
|
+
"items": {
|
|
6682
|
+
"oneOf": [
|
|
6683
|
+
{ "type": "string", "minLength": 1 },
|
|
6684
|
+
{
|
|
6685
|
+
"type": "object",
|
|
6686
|
+
"required": ["action"],
|
|
6687
|
+
"properties": {
|
|
6688
|
+
"action": { "type": ["string", "object"] },
|
|
6689
|
+
"saveAs": { "type": "string", "minLength": 1 }
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
]
|
|
6693
|
+
}
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
},
|
|
6698
|
+
"type": "object",
|
|
6699
|
+
"properties": {
|
|
6700
|
+
"actions": {
|
|
6701
|
+
"description": "\u89C6\u56FE\u64CD\u4F5C\u6309\u94AE(\u7F16\u8F91\u7B49);\u901A\u5E38\u7531 ViewMetaEngine \u81EA\u52A8\u751F\u6210",
|
|
6702
|
+
"type": "array",
|
|
6703
|
+
"items": {
|
|
6704
|
+
"type": "object",
|
|
6705
|
+
"properties": {
|
|
6706
|
+
"after": {
|
|
6707
|
+
"type": "object",
|
|
6708
|
+
"properties": {
|
|
6709
|
+
"onBlock": {
|
|
6710
|
+
"type": "array",
|
|
6711
|
+
"items": {
|
|
6712
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6713
|
+
}
|
|
6714
|
+
},
|
|
6715
|
+
"onError": {
|
|
6716
|
+
"type": "array",
|
|
6717
|
+
"items": {
|
|
6718
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6719
|
+
}
|
|
6720
|
+
},
|
|
6721
|
+
"onEscalate": {
|
|
6722
|
+
"type": "array",
|
|
6723
|
+
"items": {
|
|
6724
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6725
|
+
}
|
|
6726
|
+
},
|
|
6727
|
+
"onFinally": {
|
|
6728
|
+
"type": "array",
|
|
6729
|
+
"items": {
|
|
6730
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6731
|
+
}
|
|
6732
|
+
},
|
|
6733
|
+
"onInfo": {
|
|
6734
|
+
"type": "array",
|
|
6735
|
+
"items": {
|
|
6736
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6737
|
+
}
|
|
6738
|
+
},
|
|
6739
|
+
"onPass": {
|
|
6740
|
+
"type": "array",
|
|
6741
|
+
"items": {
|
|
6742
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6743
|
+
}
|
|
6744
|
+
},
|
|
6745
|
+
"onSuccess": {
|
|
6746
|
+
"type": "array",
|
|
6747
|
+
"items": {
|
|
6748
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6749
|
+
}
|
|
6750
|
+
},
|
|
6751
|
+
"onWarn": {
|
|
6752
|
+
"type": "array",
|
|
6753
|
+
"items": {
|
|
6754
|
+
"$ref": "#/$defs/AfterHandler"
|
|
6755
|
+
}
|
|
6756
|
+
}
|
|
6757
|
+
}
|
|
6758
|
+
},
|
|
6759
|
+
"api": {
|
|
6760
|
+
"type": "object",
|
|
6761
|
+
"properties": {
|
|
6762
|
+
"actionName": {
|
|
6763
|
+
"type": "string"
|
|
6764
|
+
},
|
|
6765
|
+
"awaitTask": {
|
|
6766
|
+
"type": "object",
|
|
6767
|
+
"properties": {
|
|
6768
|
+
"completionEventType": {
|
|
6769
|
+
"type": "string"
|
|
6770
|
+
},
|
|
6771
|
+
"completionStatus": {
|
|
6772
|
+
"type": "string"
|
|
6773
|
+
},
|
|
6774
|
+
"enabled": {
|
|
6775
|
+
"type": "boolean"
|
|
6776
|
+
},
|
|
6777
|
+
"pollIntervalMs": {
|
|
6778
|
+
"type": "integer"
|
|
6779
|
+
},
|
|
6780
|
+
"resultModel": {
|
|
6781
|
+
"type": "string"
|
|
6782
|
+
},
|
|
6783
|
+
"taskIdPath": {
|
|
6784
|
+
"type": "string"
|
|
6785
|
+
},
|
|
6786
|
+
"timeoutMs": {
|
|
6787
|
+
"type": "integer"
|
|
6788
|
+
}
|
|
6789
|
+
}
|
|
6790
|
+
},
|
|
6791
|
+
"i18n": {
|
|
6792
|
+
"type": "boolean"
|
|
6793
|
+
},
|
|
6794
|
+
"method": {
|
|
6795
|
+
"type": "string"
|
|
6796
|
+
},
|
|
6797
|
+
"responseType": {
|
|
6798
|
+
"type": "string"
|
|
6799
|
+
},
|
|
6800
|
+
"silent": {
|
|
6801
|
+
"type": "boolean"
|
|
6802
|
+
},
|
|
6803
|
+
"successMessage": {
|
|
6804
|
+
"type": "string"
|
|
6805
|
+
},
|
|
6806
|
+
"target": {
|
|
6807
|
+
"type": "string"
|
|
6808
|
+
},
|
|
6809
|
+
"targetModel": {
|
|
6810
|
+
"type": "string"
|
|
6811
|
+
}
|
|
6812
|
+
}
|
|
6813
|
+
},
|
|
6814
|
+
"buttonType": {
|
|
6815
|
+
"type": "string"
|
|
6816
|
+
},
|
|
6817
|
+
"confirmText": {
|
|
6818
|
+
"type": "string"
|
|
6819
|
+
},
|
|
6820
|
+
"confirmTitle": {
|
|
6821
|
+
"type": "string"
|
|
6822
|
+
},
|
|
6823
|
+
"custom": {
|
|
6824
|
+
"type": "object",
|
|
6825
|
+
"properties": {
|
|
6826
|
+
"key": {
|
|
6827
|
+
"type": "string"
|
|
6828
|
+
},
|
|
6829
|
+
"options": {
|
|
6830
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6831
|
+
}
|
|
6832
|
+
}
|
|
6833
|
+
},
|
|
6834
|
+
"dialog": {
|
|
6835
|
+
"type": "object",
|
|
6836
|
+
"properties": {
|
|
6837
|
+
"component": {
|
|
6838
|
+
"type": "string"
|
|
6839
|
+
},
|
|
6840
|
+
"dialogType": {
|
|
6841
|
+
"type": "string"
|
|
6842
|
+
},
|
|
6843
|
+
"filterMapping": {
|
|
6844
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
6845
|
+
},
|
|
6846
|
+
"form": {
|
|
6847
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6848
|
+
},
|
|
6849
|
+
"i18n": {
|
|
6850
|
+
"type": "boolean"
|
|
6851
|
+
},
|
|
6852
|
+
"initDataMapping": {
|
|
6853
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
6854
|
+
},
|
|
6855
|
+
"listHeight": {
|
|
6856
|
+
"type": "string"
|
|
6857
|
+
},
|
|
6858
|
+
"listSelection": {
|
|
6859
|
+
"type": "boolean",
|
|
6860
|
+
"description": "dialogType=list \u65F6\u662F\u5426\u663E\u793A\u884C\u9009\u62E9\u6846\uFF0C\u9ED8\u8BA4 true"
|
|
6861
|
+
},
|
|
6862
|
+
"plugin": {
|
|
6863
|
+
"type": "string"
|
|
6864
|
+
},
|
|
6865
|
+
"result": {
|
|
6866
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6867
|
+
},
|
|
6868
|
+
"targetAction": {
|
|
6869
|
+
"type": "string"
|
|
6870
|
+
},
|
|
6871
|
+
"targetModel": {
|
|
6872
|
+
"type": "string"
|
|
6873
|
+
},
|
|
6874
|
+
"targetState": {
|
|
6875
|
+
"type": "string"
|
|
6876
|
+
},
|
|
6877
|
+
"targetStateMapping": {
|
|
6878
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6879
|
+
},
|
|
6880
|
+
"title": {
|
|
6881
|
+
"type": "string"
|
|
6882
|
+
},
|
|
6883
|
+
"width": {
|
|
6884
|
+
"type": "string"
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
},
|
|
6888
|
+
"disabled": {},
|
|
6889
|
+
"icon": {
|
|
6890
|
+
"type": "string"
|
|
6891
|
+
},
|
|
6892
|
+
"key": {
|
|
6893
|
+
"type": "string"
|
|
6894
|
+
},
|
|
6895
|
+
"label": {
|
|
6896
|
+
"type": "string"
|
|
6897
|
+
},
|
|
6898
|
+
"monitor": {
|
|
6899
|
+
"type": "object",
|
|
6900
|
+
"properties": {
|
|
6901
|
+
"scenario": {
|
|
6902
|
+
"type": "string"
|
|
6903
|
+
}
|
|
6904
|
+
}
|
|
6905
|
+
},
|
|
6906
|
+
"more": {
|
|
6907
|
+
"type": "boolean"
|
|
6908
|
+
},
|
|
6909
|
+
"navigate": {
|
|
6910
|
+
"type": "object",
|
|
6911
|
+
"properties": {
|
|
6912
|
+
"navigateType": {
|
|
6913
|
+
"type": "string"
|
|
6914
|
+
},
|
|
6915
|
+
"newWindow": {
|
|
6916
|
+
"type": "boolean"
|
|
6917
|
+
},
|
|
6918
|
+
"params": {
|
|
6919
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
6920
|
+
},
|
|
6921
|
+
"path": {
|
|
6922
|
+
"type": "string"
|
|
6923
|
+
},
|
|
6924
|
+
"query": {
|
|
6925
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
6926
|
+
},
|
|
6927
|
+
"routeName": {
|
|
6928
|
+
"type": "string"
|
|
6929
|
+
},
|
|
6930
|
+
"url": {
|
|
6931
|
+
"type": "string"
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
6934
|
+
},
|
|
6935
|
+
"needConfirm": {
|
|
6936
|
+
"type": "boolean"
|
|
6937
|
+
},
|
|
6938
|
+
"order": {
|
|
6939
|
+
"type": "integer"
|
|
6940
|
+
},
|
|
6941
|
+
"pageMode": {
|
|
6942
|
+
"type": "array",
|
|
6943
|
+
"items": {
|
|
6944
|
+
"type": "string"
|
|
6945
|
+
}
|
|
6946
|
+
},
|
|
6947
|
+
"position": {
|
|
6948
|
+
"type": "string"
|
|
6949
|
+
},
|
|
6950
|
+
"script": {
|
|
6951
|
+
"type": "object",
|
|
6952
|
+
"properties": {
|
|
6953
|
+
"mode": {
|
|
6954
|
+
"type": "string"
|
|
6955
|
+
},
|
|
6956
|
+
"params": {
|
|
6957
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
6958
|
+
},
|
|
6959
|
+
"scriptKey": {
|
|
6960
|
+
"type": "string"
|
|
6961
|
+
},
|
|
6962
|
+
"timeout": {
|
|
6963
|
+
"type": "integer"
|
|
6964
|
+
}
|
|
6965
|
+
}
|
|
6966
|
+
},
|
|
6967
|
+
"params": {
|
|
6968
|
+
"type": "array",
|
|
6969
|
+
"items": { "$ref": "#/$defs/ParamConfig" }
|
|
6970
|
+
},
|
|
6971
|
+
"service": {
|
|
6972
|
+
"$ref": "#/$defs/ServiceActionConfig"
|
|
6973
|
+
},
|
|
6974
|
+
"composite": {
|
|
6975
|
+
"$ref": "#/$defs/CompositeActionConfig"
|
|
6976
|
+
},
|
|
6977
|
+
"execution": {
|
|
6978
|
+
"$ref": "#/$defs/ActionExecutionConfig"
|
|
6979
|
+
},
|
|
6980
|
+
"type": {
|
|
6981
|
+
"type": "string"
|
|
6982
|
+
},
|
|
6983
|
+
"visible": {}
|
|
6984
|
+
}
|
|
6985
|
+
}
|
|
6986
|
+
},
|
|
6987
|
+
"additions": {
|
|
6988
|
+
"description": "\u5173\u8054\u6570\u636E\u914D\u7F6E;\u67E5\u770B\u8BE6\u60C5\u65F6\u8054\u8868\u62C9\u5173\u8054\u5BF9\u8C61(\u7801\u8868/\u5173\u8054\u5B9E\u4F53)\u3002ViewMetaEngine \u81EA\u52A8\u6309 object \u751F\u6210",
|
|
6989
|
+
"type": "array",
|
|
6990
|
+
"items": {
|
|
6991
|
+
"type": "object",
|
|
6992
|
+
"properties": {
|
|
6993
|
+
"filter": {
|
|
6994
|
+
"type": "object"
|
|
6995
|
+
},
|
|
6996
|
+
"joinType": {
|
|
6997
|
+
"type": "string"
|
|
6998
|
+
},
|
|
6999
|
+
"key": {
|
|
7000
|
+
"type": "string"
|
|
7001
|
+
},
|
|
7002
|
+
"label": {
|
|
7003
|
+
"type": "string"
|
|
7004
|
+
},
|
|
7005
|
+
"model": {
|
|
7006
|
+
"type": "string"
|
|
7007
|
+
},
|
|
7008
|
+
"onDemand": {
|
|
7009
|
+
"type": "boolean"
|
|
7010
|
+
},
|
|
7011
|
+
"relation": {
|
|
7012
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7013
|
+
},
|
|
7014
|
+
"type": {
|
|
7015
|
+
"type": "string"
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
}
|
|
7019
|
+
},
|
|
7020
|
+
"description": {
|
|
7021
|
+
"type": "string",
|
|
7022
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
7023
|
+
},
|
|
7024
|
+
"fields": {
|
|
7025
|
+
"description": "\u5B57\u6BB5\u5217\u8868;Moirai patch-ops \u4E2D\u7531 spec.ops[] \u63A5\u7BA1,topPatches \u4E0D\u5E94\u518D\u5199 fields",
|
|
7026
|
+
"type": "array",
|
|
7027
|
+
"items": {
|
|
7028
|
+
"type": "object",
|
|
7029
|
+
"properties": {
|
|
7030
|
+
"autoGenerate": {
|
|
7031
|
+
"type": "boolean"
|
|
7032
|
+
},
|
|
7033
|
+
"component": {
|
|
7034
|
+
"type": "string"
|
|
7035
|
+
},
|
|
7036
|
+
"field": {
|
|
7037
|
+
"type": "string"
|
|
7038
|
+
},
|
|
7039
|
+
"hidden": {
|
|
7040
|
+
"type": "boolean"
|
|
7041
|
+
},
|
|
7042
|
+
"key": {
|
|
7043
|
+
"type": "string"
|
|
7044
|
+
},
|
|
7045
|
+
"label": {
|
|
7046
|
+
"type": "string"
|
|
7047
|
+
},
|
|
7048
|
+
"mask": {
|
|
7049
|
+
"type": "object"
|
|
7050
|
+
},
|
|
7051
|
+
"options": {
|
|
7052
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7053
|
+
},
|
|
7054
|
+
"sequence": {
|
|
7055
|
+
"type": "integer"
|
|
7056
|
+
},
|
|
7057
|
+
"width": {
|
|
7058
|
+
"type": "integer"
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
},
|
|
7063
|
+
"groups": {
|
|
7064
|
+
"description": "\u67E5\u770B\u9875\u5B57\u6BB5\u5206\u7EC4;\u6BCF\u9879\u542B key + label + fields[],\u628A\u5B57\u6BB5\u5207\u5230\u5206\u7EC4\u4E0B\u6E32\u67D3\u3002\u4E3A\u7A7A\u65F6\u6241\u5E73\u6E32\u67D3\u6240\u6709\u5B57\u6BB5",
|
|
7065
|
+
"type": "array",
|
|
7066
|
+
"items": {
|
|
7067
|
+
"type": "object",
|
|
7068
|
+
"properties": {
|
|
7069
|
+
"fields": {
|
|
7070
|
+
"type": "array",
|
|
7071
|
+
"items": {
|
|
7072
|
+
"type": "string"
|
|
7073
|
+
}
|
|
7074
|
+
},
|
|
7075
|
+
"key": {
|
|
7076
|
+
"type": "string"
|
|
7077
|
+
},
|
|
7078
|
+
"label": {
|
|
7079
|
+
"type": "string"
|
|
7080
|
+
}
|
|
7081
|
+
}
|
|
7082
|
+
}
|
|
7083
|
+
},
|
|
7084
|
+
"key": {
|
|
7085
|
+
"type": "string",
|
|
7086
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
7087
|
+
},
|
|
7088
|
+
"labelPosition": {
|
|
7089
|
+
"type": "string",
|
|
7090
|
+
"enum": ["top", "left", "right"],
|
|
7091
|
+
"description": "\u67E5\u770B\u9875\u6807\u7B7E\u4F4D\u7F6E;\u9875\u9762\u7EA7(\u975E field \u7EA7),\u503C\u57DF top|left|right;top=label \u5728\u503C\u4E0A\u65B9,left/right=\u6A2A\u5411\u6392\u5E03;YAML \u7F3A\u7701\u65F6\u540E\u7AEF\u5F15\u64CE\u8865\u9ED8\u8BA4 top \u4E0B\u53D1,\u79DF\u6237\u5C42\u53EF\u8986\u76D6"
|
|
7092
|
+
},
|
|
7093
|
+
"name": {
|
|
7094
|
+
"type": "string",
|
|
7095
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
7096
|
+
}
|
|
7097
|
+
}
|
|
7098
|
+
},
|
|
7099
|
+
filter: {
|
|
7100
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
7101
|
+
"type": "object",
|
|
7102
|
+
"properties": {
|
|
7103
|
+
"description": {
|
|
7104
|
+
"type": "string",
|
|
7105
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
7106
|
+
},
|
|
7107
|
+
"fields": {
|
|
7108
|
+
"description": "\u8FC7\u6EE4\u5B57\u6BB5\u5217\u8868;Moirai patch-ops \u4E2D\u7531 spec.ops[] \u63A5\u7BA1,topPatches \u4E0D\u5E94\u518D\u5199 fields",
|
|
7109
|
+
"type": "array",
|
|
7110
|
+
"items": {
|
|
7111
|
+
"type": "object",
|
|
7112
|
+
"properties": {
|
|
7113
|
+
"autoGenerate": {
|
|
7114
|
+
"type": "boolean"
|
|
7115
|
+
},
|
|
7116
|
+
"bindsEffectiveDate": {
|
|
7117
|
+
"type": "boolean"
|
|
7118
|
+
},
|
|
7119
|
+
"component": {
|
|
7120
|
+
"type": "string"
|
|
7121
|
+
},
|
|
7122
|
+
"defaultValue": {},
|
|
7123
|
+
"hidden": {
|
|
7124
|
+
"type": "boolean"
|
|
7125
|
+
},
|
|
7126
|
+
"key": {
|
|
7127
|
+
"type": "string"
|
|
7128
|
+
},
|
|
7129
|
+
"label": {
|
|
7130
|
+
"type": "string"
|
|
7131
|
+
},
|
|
7132
|
+
"operators": {
|
|
7133
|
+
"type": "array",
|
|
7134
|
+
"items": {
|
|
7135
|
+
"type": "string",
|
|
7136
|
+
"enum": ["EQUAL", "NOT_EQUAL", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL", "LIKE", "NOT_LIKE", "CONTAINS", "STARTSWITH", "ENDSWITH", "IN", "NOT_IN", "IS_NULL", "IS_NOT_NULL", "ARRAY_CONTAINS", "BETWEEN", "CHILD_OF", "PARENT_OF", "ORG_SUBTREE_OF"]
|
|
7137
|
+
}
|
|
7138
|
+
},
|
|
7139
|
+
"options": {
|
|
7140
|
+
"type": "object"
|
|
7141
|
+
},
|
|
7142
|
+
"periodEndKey": {
|
|
7143
|
+
"type": "string"
|
|
7144
|
+
},
|
|
7145
|
+
"readonly": {
|
|
7146
|
+
"type": "boolean"
|
|
7147
|
+
},
|
|
7148
|
+
"required": {
|
|
7149
|
+
"type": "boolean"
|
|
7150
|
+
},
|
|
7151
|
+
"sequence": {
|
|
7152
|
+
"type": "integer"
|
|
7153
|
+
},
|
|
7154
|
+
"valueMatchable": {
|
|
7155
|
+
"type": "boolean"
|
|
7156
|
+
},
|
|
7157
|
+
"visibleWhen": {
|
|
7158
|
+
"type": "object",
|
|
7159
|
+
"properties": {
|
|
7160
|
+
"field": {
|
|
7161
|
+
"type": "string"
|
|
7162
|
+
},
|
|
7163
|
+
"operator": {
|
|
7164
|
+
"type": "string"
|
|
7165
|
+
},
|
|
7166
|
+
"value": {}
|
|
7167
|
+
}
|
|
7168
|
+
},
|
|
7169
|
+
"width": {
|
|
7170
|
+
"type": "integer"
|
|
7171
|
+
}
|
|
7172
|
+
}
|
|
7173
|
+
}
|
|
7174
|
+
},
|
|
7175
|
+
"key": {
|
|
7176
|
+
"type": "string",
|
|
7177
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
7178
|
+
},
|
|
7179
|
+
"name": {
|
|
7180
|
+
"type": "string",
|
|
7181
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
7182
|
+
}
|
|
7183
|
+
}
|
|
7184
|
+
},
|
|
7185
|
+
model: {
|
|
7186
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
7187
|
+
"$defs": {
|
|
7188
|
+
"DerivedValueType": {
|
|
7189
|
+
"type": "string",
|
|
7190
|
+
"enum": ["STRING", "INTEGER", "LONG", "DECIMAL", "BOOLEAN", "DATE", "DATETIME", "JSON"]
|
|
7191
|
+
},
|
|
7192
|
+
"Map(String,Object)": {
|
|
7193
|
+
"type": "object"
|
|
7194
|
+
},
|
|
7195
|
+
"ModelScriptTriggerMeta": {
|
|
7196
|
+
"type": "object",
|
|
7197
|
+
"properties": {
|
|
7198
|
+
"event": {
|
|
7199
|
+
"type": "string"
|
|
7200
|
+
},
|
|
7201
|
+
"fields": {
|
|
7202
|
+
"type": "array",
|
|
7203
|
+
"items": {
|
|
7204
|
+
"type": "string"
|
|
7205
|
+
}
|
|
7206
|
+
},
|
|
7207
|
+
"model": {
|
|
7208
|
+
"type": "string"
|
|
7209
|
+
}
|
|
7210
|
+
}
|
|
7211
|
+
},
|
|
7212
|
+
"QueryAddition": {
|
|
7213
|
+
"type": "object",
|
|
7214
|
+
"properties": {
|
|
7215
|
+
"filter": {
|
|
7216
|
+
"type": "object"
|
|
7217
|
+
},
|
|
7218
|
+
"joinType": {
|
|
7219
|
+
"type": "string"
|
|
7220
|
+
},
|
|
7221
|
+
"key": {
|
|
7222
|
+
"type": "string"
|
|
7223
|
+
},
|
|
7224
|
+
"label": {
|
|
7225
|
+
"type": "string"
|
|
7226
|
+
},
|
|
7227
|
+
"model": {
|
|
7228
|
+
"type": "string"
|
|
7229
|
+
},
|
|
7230
|
+
"onDemand": {
|
|
7231
|
+
"type": "boolean"
|
|
7232
|
+
},
|
|
7233
|
+
"relation": {
|
|
7234
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7235
|
+
},
|
|
7236
|
+
"type": {
|
|
7237
|
+
"type": "string"
|
|
7238
|
+
}
|
|
7239
|
+
}
|
|
7240
|
+
},
|
|
7241
|
+
"ScopeResolverMeta": {
|
|
7242
|
+
"type": "object",
|
|
7243
|
+
"properties": {
|
|
7244
|
+
"additions": {
|
|
7245
|
+
"type": "array",
|
|
7246
|
+
"items": {
|
|
7247
|
+
"$ref": "#/$defs/QueryAddition"
|
|
7248
|
+
}
|
|
7249
|
+
},
|
|
7250
|
+
"field": {
|
|
7251
|
+
"type": "string"
|
|
7252
|
+
},
|
|
7253
|
+
"type": {
|
|
7254
|
+
"type": "string"
|
|
7255
|
+
}
|
|
7256
|
+
}
|
|
7257
|
+
},
|
|
7258
|
+
"ToolParameter": {
|
|
7259
|
+
"type": "object",
|
|
7260
|
+
"properties": {
|
|
7261
|
+
"constraints": {
|
|
7262
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7263
|
+
},
|
|
7264
|
+
"defaultValue": {},
|
|
7265
|
+
"description": {
|
|
7266
|
+
"type": "string"
|
|
7267
|
+
},
|
|
7268
|
+
"enumValues": {
|
|
7269
|
+
"type": "array",
|
|
7270
|
+
"items": {
|
|
7271
|
+
"type": "string"
|
|
7272
|
+
}
|
|
7273
|
+
},
|
|
7274
|
+
"format": {
|
|
7275
|
+
"type": "string"
|
|
7276
|
+
},
|
|
7277
|
+
"items": {
|
|
7278
|
+
"$ref": "#/$defs/ToolParameter"
|
|
7279
|
+
},
|
|
7280
|
+
"name": {
|
|
7281
|
+
"type": "string"
|
|
7282
|
+
},
|
|
7283
|
+
"properties": {
|
|
7284
|
+
"type": "array",
|
|
7285
|
+
"items": {
|
|
7286
|
+
"$ref": "#/$defs/ToolParameter"
|
|
7287
|
+
}
|
|
7288
|
+
},
|
|
7289
|
+
"required": {
|
|
7290
|
+
"type": "boolean"
|
|
7291
|
+
},
|
|
7292
|
+
"type": {
|
|
7293
|
+
"type": "string"
|
|
7294
|
+
}
|
|
7295
|
+
}
|
|
7296
|
+
}
|
|
7297
|
+
},
|
|
7298
|
+
"type": "object",
|
|
7299
|
+
"properties": {
|
|
7300
|
+
"actions": {
|
|
7301
|
+
"type": "array",
|
|
7302
|
+
"items": {
|
|
7303
|
+
"type": "object",
|
|
7304
|
+
"properties": {
|
|
7305
|
+
"description": {
|
|
7306
|
+
"type": "string"
|
|
7307
|
+
},
|
|
7308
|
+
"httpMethod": {
|
|
7309
|
+
"type": "string"
|
|
7310
|
+
},
|
|
7311
|
+
"key": {
|
|
7312
|
+
"type": "string"
|
|
7313
|
+
},
|
|
7314
|
+
"label": {
|
|
7315
|
+
"type": "string"
|
|
7316
|
+
},
|
|
7317
|
+
"methodName": {
|
|
7318
|
+
"type": "string"
|
|
7319
|
+
},
|
|
7320
|
+
"paramNames": {
|
|
7321
|
+
"type": "array",
|
|
7322
|
+
"items": {
|
|
7323
|
+
"type": "string"
|
|
7324
|
+
}
|
|
7325
|
+
},
|
|
7326
|
+
"paramTypes": {
|
|
7327
|
+
"type": "array",
|
|
7328
|
+
"items": {
|
|
7329
|
+
"type": "string"
|
|
7330
|
+
}
|
|
7331
|
+
},
|
|
7332
|
+
"parameters": {
|
|
7333
|
+
"type": "array",
|
|
7334
|
+
"items": {
|
|
7335
|
+
"$ref": "#/$defs/ToolParameter"
|
|
7336
|
+
}
|
|
7337
|
+
},
|
|
7338
|
+
"returnType": {
|
|
7339
|
+
"type": "string"
|
|
7340
|
+
},
|
|
7341
|
+
"scope": {
|
|
7342
|
+
"type": "string"
|
|
7343
|
+
},
|
|
7344
|
+
"source": {
|
|
7345
|
+
"type": "string"
|
|
7346
|
+
}
|
|
7347
|
+
}
|
|
7348
|
+
}
|
|
7349
|
+
},
|
|
7350
|
+
"description": {
|
|
7351
|
+
"type": "string",
|
|
7352
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
7353
|
+
},
|
|
7354
|
+
"domain": {
|
|
7355
|
+
"type": "string",
|
|
7356
|
+
"enum": ["HR", "PAYROLL", "ATTENDANCE", "RECRUIT", "ORG", "SYSTEM", "OTHER"]
|
|
7357
|
+
},
|
|
7358
|
+
"eventActions": {
|
|
7359
|
+
"type": "array",
|
|
7360
|
+
"items": {
|
|
7361
|
+
"type": "object",
|
|
7362
|
+
"properties": {
|
|
7363
|
+
"actionKey": {
|
|
7364
|
+
"type": "string"
|
|
7365
|
+
},
|
|
7366
|
+
"mode": {
|
|
7367
|
+
"type": "string"
|
|
7368
|
+
},
|
|
7369
|
+
"params": {
|
|
7370
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7371
|
+
},
|
|
7372
|
+
"scope": {
|
|
7373
|
+
"type": "string"
|
|
7374
|
+
},
|
|
7375
|
+
"script": {
|
|
7376
|
+
"type": "object",
|
|
7377
|
+
"properties": {
|
|
7378
|
+
"mode": {
|
|
7379
|
+
"type": "string"
|
|
7380
|
+
},
|
|
7381
|
+
"params": {
|
|
7382
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7383
|
+
},
|
|
7384
|
+
"scriptKey": {
|
|
7385
|
+
"type": "string"
|
|
7386
|
+
},
|
|
7387
|
+
"timeout": {
|
|
7388
|
+
"type": "integer"
|
|
7389
|
+
}
|
|
7390
|
+
}
|
|
7391
|
+
},
|
|
7392
|
+
"targetModel": {
|
|
7393
|
+
"type": "string"
|
|
7394
|
+
},
|
|
7395
|
+
"triggers": {
|
|
7396
|
+
"type": "array",
|
|
7397
|
+
"items": {
|
|
7398
|
+
"$ref": "#/$defs/ModelScriptTriggerMeta"
|
|
7399
|
+
}
|
|
7400
|
+
},
|
|
7401
|
+
"type": {
|
|
7402
|
+
"type": "string"
|
|
7403
|
+
}
|
|
7404
|
+
}
|
|
7405
|
+
}
|
|
7406
|
+
},
|
|
7407
|
+
"fields": {
|
|
7408
|
+
"type": "array",
|
|
7409
|
+
"items": {
|
|
7410
|
+
"type": "object",
|
|
7411
|
+
"properties": {
|
|
7412
|
+
"autoGenerate": {
|
|
7413
|
+
"type": "boolean"
|
|
7414
|
+
},
|
|
7415
|
+
"columnSlot": {
|
|
7416
|
+
"type": "string"
|
|
7417
|
+
},
|
|
7418
|
+
"defaultValue": {},
|
|
7419
|
+
"derived": {
|
|
7420
|
+
"anyOf": [{
|
|
7421
|
+
"type": "object",
|
|
7422
|
+
"properties": {
|
|
7423
|
+
"expression": {
|
|
7424
|
+
"type": "string"
|
|
7425
|
+
},
|
|
7426
|
+
"filterable": {
|
|
7427
|
+
"type": "boolean"
|
|
7428
|
+
},
|
|
7429
|
+
"pushDownable": {
|
|
7430
|
+
"type": "boolean"
|
|
7431
|
+
},
|
|
7432
|
+
"returnType": {
|
|
7433
|
+
"$ref": "#/$defs/DerivedValueType"
|
|
7434
|
+
},
|
|
7435
|
+
"sectionMasks": {
|
|
7436
|
+
"type": "object"
|
|
7437
|
+
},
|
|
7438
|
+
"sortable": {
|
|
7439
|
+
"type": "boolean"
|
|
7440
|
+
},
|
|
7441
|
+
"kind": {
|
|
7442
|
+
"const": "expression"
|
|
7443
|
+
}
|
|
7444
|
+
},
|
|
7445
|
+
"required": ["kind"]
|
|
7446
|
+
}, {
|
|
7447
|
+
"type": "object",
|
|
7448
|
+
"properties": {
|
|
7449
|
+
"additions": {
|
|
7450
|
+
"type": "array",
|
|
7451
|
+
"items": {
|
|
7452
|
+
"$ref": "#/$defs/QueryAddition"
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
"field": {
|
|
7456
|
+
"type": "string"
|
|
7457
|
+
},
|
|
7458
|
+
"filter": {
|
|
7459
|
+
"type": "array",
|
|
7460
|
+
"items": {
|
|
7461
|
+
"type": "object",
|
|
7462
|
+
"properties": {
|
|
7463
|
+
"field": {
|
|
7464
|
+
"type": "string"
|
|
7465
|
+
},
|
|
7466
|
+
"operator": {
|
|
7467
|
+
"type": "string",
|
|
7468
|
+
"enum": ["EQUAL", "NOT_EQUAL", "GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL", "LIKE", "NOT_LIKE", "CONTAINS", "STARTSWITH", "ENDSWITH", "IN", "NOT_IN", "IS_NULL", "IS_NOT_NULL", "BETWEEN", "CHILD_OF", "PARENT_OF"]
|
|
7469
|
+
},
|
|
7470
|
+
"value": {}
|
|
7471
|
+
}
|
|
7472
|
+
}
|
|
7473
|
+
},
|
|
7474
|
+
"filterable": {
|
|
7475
|
+
"type": "boolean"
|
|
7476
|
+
},
|
|
7477
|
+
"function": {
|
|
7478
|
+
"type": "string",
|
|
7479
|
+
"enum": ["count", "sum", "avg", "max", "min", "count_distinct", "string_agg"]
|
|
7480
|
+
},
|
|
7481
|
+
"pushDownable": {
|
|
7482
|
+
"type": "boolean"
|
|
7483
|
+
},
|
|
7484
|
+
"returnType": {
|
|
7485
|
+
"$ref": "#/$defs/DerivedValueType"
|
|
7486
|
+
},
|
|
7487
|
+
"separator": {
|
|
7488
|
+
"type": "string"
|
|
7489
|
+
},
|
|
7490
|
+
"sortable": {
|
|
7491
|
+
"type": "boolean"
|
|
7492
|
+
},
|
|
7493
|
+
"kind": {
|
|
7494
|
+
"const": "aggregate"
|
|
7495
|
+
}
|
|
7496
|
+
},
|
|
7497
|
+
"required": ["kind"]
|
|
7498
|
+
}]
|
|
7499
|
+
},
|
|
7500
|
+
"description": {
|
|
7501
|
+
"type": "string"
|
|
7502
|
+
},
|
|
7503
|
+
"encrypted": {
|
|
7504
|
+
"type": "object",
|
|
7505
|
+
"properties": {
|
|
7506
|
+
"algorithmId": {
|
|
7507
|
+
"type": "string"
|
|
7508
|
+
},
|
|
7509
|
+
"credentialType": {
|
|
7510
|
+
"type": "string"
|
|
7511
|
+
},
|
|
7512
|
+
"kind": {
|
|
7513
|
+
"type": "string",
|
|
7514
|
+
"enum": ["NUMERIC_STRING", "TEXT"]
|
|
7515
|
+
},
|
|
7516
|
+
"mode": {
|
|
7517
|
+
"type": "string",
|
|
7518
|
+
"enum": ["DB_DECRYPTABLE", "CLIENT_ONLY"]
|
|
7519
|
+
}
|
|
7520
|
+
}
|
|
7521
|
+
},
|
|
7522
|
+
"enums": {
|
|
7523
|
+
"type": "array",
|
|
7524
|
+
"items": {
|
|
7525
|
+
"type": "object",
|
|
7526
|
+
"properties": {
|
|
7527
|
+
"color": {
|
|
7528
|
+
"type": "string"
|
|
7529
|
+
},
|
|
7530
|
+
"effect": {
|
|
7531
|
+
"type": "string"
|
|
7532
|
+
},
|
|
7533
|
+
"key": {
|
|
7534
|
+
"type": "string"
|
|
7535
|
+
},
|
|
7536
|
+
"label": {
|
|
7537
|
+
"type": "string"
|
|
7538
|
+
},
|
|
7539
|
+
"type": {
|
|
7540
|
+
"type": "string"
|
|
7541
|
+
},
|
|
7542
|
+
"value": {}
|
|
7543
|
+
}
|
|
7544
|
+
}
|
|
7545
|
+
},
|
|
7546
|
+
"fixedField": {
|
|
7547
|
+
"type": "string"
|
|
7548
|
+
},
|
|
7549
|
+
"hint": {
|
|
7550
|
+
"type": "string",
|
|
7551
|
+
"description": "\u5B57\u6BB5\u63D0\u793A\u6587\u672C(UI tooltip / AI \u63CF\u8FF0);\u53EF\u8986\u76D6 @FieldMetaAnno.hint"
|
|
7552
|
+
},
|
|
7553
|
+
"isFilter": {
|
|
7554
|
+
"type": "boolean"
|
|
7555
|
+
},
|
|
7556
|
+
"isFlex": {
|
|
7557
|
+
"type": "boolean"
|
|
7558
|
+
},
|
|
7559
|
+
"isI18n": {
|
|
7560
|
+
"type": "boolean"
|
|
7561
|
+
},
|
|
7562
|
+
"isInfo": {
|
|
7563
|
+
"type": "boolean"
|
|
7564
|
+
},
|
|
7565
|
+
"isList": {
|
|
7566
|
+
"type": "boolean"
|
|
7567
|
+
},
|
|
7568
|
+
"isReadonly": {
|
|
7569
|
+
"type": "boolean"
|
|
7570
|
+
},
|
|
7571
|
+
"isRequired": {
|
|
7572
|
+
"type": "boolean"
|
|
7573
|
+
},
|
|
7574
|
+
"isSearch": {
|
|
7575
|
+
"type": "boolean"
|
|
7576
|
+
},
|
|
7577
|
+
"isTree": {
|
|
7578
|
+
"type": "boolean"
|
|
7579
|
+
},
|
|
7580
|
+
"isView": {
|
|
7581
|
+
"type": "boolean"
|
|
7582
|
+
},
|
|
7583
|
+
"jsonSchema": {
|
|
7584
|
+
"type": "array",
|
|
7585
|
+
"items": {
|
|
7586
|
+
"$ref": "#/$defs/ToolParameter"
|
|
7587
|
+
}
|
|
7588
|
+
},
|
|
7589
|
+
"key": {
|
|
7590
|
+
"type": "string"
|
|
7591
|
+
},
|
|
7592
|
+
"keyField": {
|
|
7593
|
+
"type": "boolean"
|
|
7594
|
+
},
|
|
7595
|
+
"length": {
|
|
7596
|
+
"type": "integer"
|
|
7597
|
+
},
|
|
7598
|
+
"name": {
|
|
7599
|
+
"type": "string"
|
|
7600
|
+
},
|
|
7601
|
+
"numericCast": {
|
|
7602
|
+
"type": "boolean"
|
|
7603
|
+
},
|
|
7604
|
+
"object": {
|
|
7605
|
+
"type": "string"
|
|
7606
|
+
},
|
|
7607
|
+
"objectLabel": {
|
|
7608
|
+
"type": "string"
|
|
7609
|
+
},
|
|
7610
|
+
"refer": {
|
|
7611
|
+
"type": "string"
|
|
7612
|
+
},
|
|
7613
|
+
"sequence": {
|
|
7614
|
+
"type": "integer"
|
|
7615
|
+
},
|
|
7616
|
+
"storage": {
|
|
7617
|
+
"type": "string"
|
|
7618
|
+
},
|
|
7619
|
+
"synonyms": {
|
|
7620
|
+
"type": "array",
|
|
7621
|
+
"items": {
|
|
7622
|
+
"type": "string"
|
|
7623
|
+
}
|
|
7624
|
+
},
|
|
7625
|
+
"treeLoadMode": {
|
|
7626
|
+
"type": "string"
|
|
7627
|
+
},
|
|
7628
|
+
"type": {
|
|
7629
|
+
"type": "string",
|
|
7630
|
+
"enum": ["uuid", "string", "boolean", "integer", "float", "date", "datetime", "time"]
|
|
7631
|
+
}
|
|
7632
|
+
}
|
|
7633
|
+
}
|
|
7634
|
+
},
|
|
7635
|
+
"key": {
|
|
7636
|
+
"type": "string",
|
|
7637
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
7638
|
+
},
|
|
7639
|
+
"name": {
|
|
7640
|
+
"type": "string",
|
|
7641
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
7642
|
+
},
|
|
7643
|
+
"permission": {
|
|
7644
|
+
"type": "object",
|
|
7645
|
+
"properties": {
|
|
7646
|
+
"grants": {
|
|
7647
|
+
"type": "array",
|
|
7648
|
+
"items": {
|
|
7649
|
+
"type": "object",
|
|
7650
|
+
"properties": {
|
|
7651
|
+
"actions": {
|
|
7652
|
+
"type": "array",
|
|
7653
|
+
"items": {
|
|
7654
|
+
"type": "string"
|
|
7655
|
+
}
|
|
7656
|
+
},
|
|
7657
|
+
"match": {
|
|
7658
|
+
"type": "string"
|
|
7659
|
+
},
|
|
7660
|
+
"role": {
|
|
7661
|
+
"type": "string"
|
|
7662
|
+
}
|
|
7663
|
+
}
|
|
7664
|
+
}
|
|
7665
|
+
},
|
|
7666
|
+
"scope": {
|
|
7667
|
+
"type": "object",
|
|
7668
|
+
"properties": {
|
|
7669
|
+
"org": {
|
|
7670
|
+
"$ref": "#/$defs/ScopeResolverMeta"
|
|
7671
|
+
},
|
|
7672
|
+
"owner": {
|
|
7673
|
+
"$ref": "#/$defs/ScopeResolverMeta"
|
|
7674
|
+
},
|
|
7675
|
+
"wf": {
|
|
7676
|
+
"$ref": "#/$defs/ScopeResolverMeta"
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
}
|
|
7680
|
+
}
|
|
7681
|
+
},
|
|
7682
|
+
"purpose": {
|
|
7683
|
+
"type": "string"
|
|
7684
|
+
},
|
|
7685
|
+
"relations": {
|
|
7686
|
+
"type": "array",
|
|
7687
|
+
"items": {
|
|
7688
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7689
|
+
}
|
|
7690
|
+
},
|
|
7691
|
+
"scripts": {
|
|
7692
|
+
"type": "array",
|
|
7693
|
+
"items": {
|
|
7694
|
+
"type": "object",
|
|
7695
|
+
"properties": {
|
|
7696
|
+
"params": {
|
|
7697
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
7698
|
+
},
|
|
7699
|
+
"scriptKey": {
|
|
7700
|
+
"type": "string"
|
|
7701
|
+
},
|
|
7702
|
+
"timeout": {
|
|
7703
|
+
"type": "integer"
|
|
7704
|
+
},
|
|
7705
|
+
"triggers": {
|
|
7706
|
+
"type": "array",
|
|
7707
|
+
"items": {
|
|
7708
|
+
"$ref": "#/$defs/ModelScriptTriggerMeta"
|
|
7709
|
+
}
|
|
7710
|
+
}
|
|
7711
|
+
}
|
|
7712
|
+
}
|
|
7713
|
+
},
|
|
7714
|
+
"synonyms": {
|
|
7715
|
+
"type": "array",
|
|
7716
|
+
"items": {
|
|
7717
|
+
"type": "string"
|
|
7718
|
+
}
|
|
7719
|
+
},
|
|
7720
|
+
"systemPreset": {
|
|
7721
|
+
"type": "object",
|
|
7722
|
+
"additionalProperties": false,
|
|
7723
|
+
"properties": {
|
|
7724
|
+
"enabled": {
|
|
7725
|
+
"type": "boolean"
|
|
7726
|
+
},
|
|
7727
|
+
"systemLabel": {},
|
|
7728
|
+
"tier": {
|
|
7729
|
+
"type": "string",
|
|
7730
|
+
"enum": ["A1", "A2"]
|
|
7731
|
+
}
|
|
7732
|
+
}
|
|
7733
|
+
},
|
|
7734
|
+
"typicalQueries": {
|
|
7735
|
+
"type": "array",
|
|
7736
|
+
"items": {
|
|
7737
|
+
"type": "string"
|
|
7738
|
+
}
|
|
7739
|
+
}
|
|
7740
|
+
}
|
|
7741
|
+
},
|
|
7742
|
+
page: {
|
|
7743
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
7744
|
+
"$defs": {
|
|
7745
|
+
"DetailPanelConfig": {
|
|
7746
|
+
"type": "object",
|
|
7747
|
+
"properties": {
|
|
7748
|
+
"badge": {
|
|
7749
|
+
"type": "object",
|
|
7750
|
+
"properties": {
|
|
7751
|
+
"expression": {
|
|
7752
|
+
"type": "string"
|
|
7753
|
+
},
|
|
7754
|
+
"type": {
|
|
7755
|
+
"type": "string"
|
|
7756
|
+
}
|
|
7757
|
+
}
|
|
7758
|
+
},
|
|
7759
|
+
"display": {
|
|
7760
|
+
"type": "string"
|
|
7761
|
+
},
|
|
7762
|
+
"dynamicFromField": {
|
|
7763
|
+
"type": "string"
|
|
7764
|
+
},
|
|
7765
|
+
"filterField": {
|
|
7766
|
+
"type": "string"
|
|
7767
|
+
},
|
|
7768
|
+
"group": {
|
|
7769
|
+
"type": "string",
|
|
7770
|
+
"description": "master-detail \u83DC\u5355\u5206\u7EC4 key,\u5BF9\u5E94 layout.menu.groups[].key"
|
|
7771
|
+
},
|
|
7772
|
+
"hidden": {
|
|
7773
|
+
"type": "boolean"
|
|
7774
|
+
},
|
|
7775
|
+
"hint": {
|
|
7776
|
+
"type": "string",
|
|
7777
|
+
"description": "master-detail \u5B50\u96C6\u5185\u5BB9\u533A\u9876\u90E8\u7684\u9759\u6001\u63D0\u793A\u6761\u6587\u6848\uFF1B\u72B6\u6001 Provider \u7684\u52A8\u6001\u63D0\u793A\u4F18\u5148\uFF0C\u672C\u5B57\u6BB5\u515C\u5E95"
|
|
7778
|
+
},
|
|
7779
|
+
"icon": {
|
|
7780
|
+
"type": "string"
|
|
7781
|
+
},
|
|
7782
|
+
"infoEditable": {
|
|
7783
|
+
"type": "boolean",
|
|
7784
|
+
"description": "display:info \u9762\u677F\u5141\u8BB8\u5185\u8054\u7F16\u8F91\u672C\u8BB0\u5F55\u5B57\u6BB5\uFF1B\u9ED8\u8BA4 false\uFF0C\u672A\u5F00\u542F\u7EF4\u6301\u53EA\u8BFB"
|
|
7785
|
+
},
|
|
7786
|
+
"key": {
|
|
7787
|
+
"type": "string"
|
|
7788
|
+
},
|
|
7789
|
+
"label": {
|
|
7790
|
+
"type": "string"
|
|
7791
|
+
},
|
|
7792
|
+
"model": {
|
|
7793
|
+
"type": "string"
|
|
7794
|
+
},
|
|
7795
|
+
"relation": {
|
|
7796
|
+
"type": "object",
|
|
7797
|
+
"properties": {
|
|
7798
|
+
"additionalKeys": {
|
|
7799
|
+
"type": "array",
|
|
7800
|
+
"description": "\u9644\u52A0\u5173\u8054\u952E;\u503C\u53D6\u81EA\u4E3B\u8BB0\u5F55\u5B57\u6BB5(\u52A8\u6001),\u533A\u522B\u4E8E staticFilters \u7684\u5B57\u9762\u91CF;\u4E3B\u8BB0\u5F55\u53D6\u4E0D\u5230\u503C\u7684\u952E\u6574\u6761\u8DF3\u8FC7,\u4E0D\u9000\u5316\u6210\u4E0D\u8FC7\u6EE4",
|
|
7801
|
+
"items": {
|
|
7802
|
+
"type": "object",
|
|
7803
|
+
"properties": {
|
|
7804
|
+
"sourceField": {
|
|
7805
|
+
"type": "string",
|
|
7806
|
+
"minLength": 1
|
|
7807
|
+
},
|
|
7808
|
+
"targetField": {
|
|
7809
|
+
"type": "string",
|
|
7810
|
+
"minLength": 1
|
|
7811
|
+
},
|
|
7812
|
+
"operator": {
|
|
7813
|
+
"type": "string",
|
|
7814
|
+
"enum": ["eq", "ne", "gt", "lt", "gte", "lte", "like", "contains", "startswith", "endswith", "in", "not_in", "is_null", "is_not_null", "co", "po"]
|
|
7815
|
+
}
|
|
7816
|
+
},
|
|
7817
|
+
"required": ["sourceField", "targetField"]
|
|
7818
|
+
}
|
|
7819
|
+
},
|
|
7820
|
+
"sourceField": {
|
|
7821
|
+
"type": "string"
|
|
7822
|
+
},
|
|
7823
|
+
"staticFilters": {
|
|
7824
|
+
"type": "array",
|
|
7825
|
+
"description": "\u9664\u4E3B\u952E\u5173\u8054\u5916\u9644\u52A0\u7684\u56FA\u5B9A AND \u6761\u4EF6;value \u652F\u6301 $query:<name> token \u4ECE\u8DEF\u7531 query \u53D6\u503C",
|
|
7826
|
+
"items": {
|
|
7827
|
+
"type": "object",
|
|
7828
|
+
"properties": {
|
|
7829
|
+
"field": {
|
|
7830
|
+
"type": "string",
|
|
7831
|
+
"minLength": 1
|
|
7832
|
+
},
|
|
7833
|
+
"operator": {
|
|
7834
|
+
"type": "string",
|
|
7835
|
+
"enum": ["eq", "ne", "gt", "lt", "gte", "lte", "like", "contains", "startswith", "endswith", "in", "not_in", "is_null", "is_not_null", "co", "po"]
|
|
7836
|
+
},
|
|
7837
|
+
"value": {
|
|
7838
|
+
"oneOf": [{
|
|
7839
|
+
"type": "string"
|
|
7840
|
+
}, {
|
|
7841
|
+
"type": "number"
|
|
7842
|
+
}, {
|
|
7843
|
+
"type": "boolean"
|
|
7844
|
+
}, {
|
|
7845
|
+
"type": "array",
|
|
7846
|
+
"items": {
|
|
7847
|
+
"type": "string"
|
|
7848
|
+
}
|
|
7849
|
+
}]
|
|
7850
|
+
}
|
|
7851
|
+
},
|
|
7852
|
+
"required": ["field", "operator"]
|
|
7853
|
+
}
|
|
7854
|
+
},
|
|
7855
|
+
"targetField": {
|
|
7856
|
+
"type": "string"
|
|
7857
|
+
},
|
|
7858
|
+
"type": {
|
|
7859
|
+
"type": "string"
|
|
7860
|
+
}
|
|
7861
|
+
}
|
|
7862
|
+
},
|
|
7863
|
+
"state": {
|
|
7864
|
+
"type": "string"
|
|
7865
|
+
},
|
|
7866
|
+
"status": {
|
|
7867
|
+
"$ref": "#/$defs/DetailStatusConfig"
|
|
7868
|
+
},
|
|
7869
|
+
"tooltip": {
|
|
7870
|
+
"type": "string",
|
|
7871
|
+
"description": "master-detail \u5B50\u96C6\u63D0\u793A\u6587\u6848,\u7528\u4E8E\u83DC\u5355\u6216\u8BE6\u60C5\u6807\u9898 hover"
|
|
7872
|
+
}
|
|
7873
|
+
}
|
|
7874
|
+
},
|
|
7875
|
+
"DetailStatusConfig": {
|
|
7876
|
+
"type": "object",
|
|
7877
|
+
"properties": {
|
|
7878
|
+
"anchor": {
|
|
7879
|
+
"type": "string",
|
|
7880
|
+
"description": "Provider \u8FD4\u56DE\u7684\u72B6\u6001\u951A\u70B9;\u9ED8\u8BA4\u5EFA\u8BAE\u4E0E detail key \u4E00\u81F4"
|
|
7881
|
+
},
|
|
7882
|
+
"providerKey": {
|
|
7883
|
+
"type": "string",
|
|
7884
|
+
"description": "\u5F15\u7528 layout.statusProviders \u4E2D\u58F0\u660E\u7684 provider key"
|
|
7885
|
+
}
|
|
7886
|
+
}
|
|
7887
|
+
},
|
|
7888
|
+
"ListPanelConfig": {
|
|
7889
|
+
"type": "object",
|
|
7890
|
+
"properties": {
|
|
7891
|
+
"model": {
|
|
7892
|
+
"type": "string"
|
|
7893
|
+
},
|
|
7894
|
+
"state": {
|
|
7895
|
+
"type": "string"
|
|
7896
|
+
}
|
|
7897
|
+
}
|
|
7898
|
+
},
|
|
7899
|
+
"Map(String,Object)": {
|
|
7900
|
+
"type": "object"
|
|
7901
|
+
},
|
|
7902
|
+
"Map(String,String)": {
|
|
7903
|
+
"type": "object"
|
|
7904
|
+
},
|
|
7905
|
+
"MasterNavigationConfig": {
|
|
7906
|
+
"type": "object",
|
|
7907
|
+
"properties": {
|
|
7908
|
+
"enabled": {
|
|
7909
|
+
"type": "boolean"
|
|
7910
|
+
},
|
|
7911
|
+
"source": {
|
|
7912
|
+
"type": "string",
|
|
7913
|
+
"enum": ["listSnapshot", "route", "provider"]
|
|
7914
|
+
}
|
|
7915
|
+
}
|
|
7916
|
+
},
|
|
7917
|
+
"MasterSummaryProviderConfig": {
|
|
7918
|
+
"type": "object",
|
|
7919
|
+
"properties": {
|
|
7920
|
+
"kind": {
|
|
7921
|
+
"type": "string",
|
|
7922
|
+
"enum": ["percent", "count", "badge", "text"]
|
|
7923
|
+
},
|
|
7924
|
+
"providerKey": {
|
|
7925
|
+
"type": "string"
|
|
7926
|
+
}
|
|
7927
|
+
}
|
|
7928
|
+
},
|
|
7929
|
+
"MenuGroupConfig": {
|
|
7930
|
+
"type": "object",
|
|
7931
|
+
"properties": {
|
|
7932
|
+
"key": {
|
|
7933
|
+
"type": "string"
|
|
7934
|
+
},
|
|
7935
|
+
"label": {
|
|
7936
|
+
"type": "string"
|
|
7937
|
+
},
|
|
7938
|
+
"order": {
|
|
7939
|
+
"type": "integer"
|
|
7940
|
+
},
|
|
7941
|
+
"collapsible": {
|
|
7942
|
+
"type": "boolean",
|
|
7943
|
+
"description": "\u662F\u5426\u5141\u8BB8\u70B9\u51FB\u5206\u7EC4\u6807\u9898\u5C55\u5F00/\u6536\u8D77,\u9ED8\u8BA4 true"
|
|
7944
|
+
},
|
|
7945
|
+
"defaultCollapsed": {
|
|
7946
|
+
"type": "boolean",
|
|
7947
|
+
"description": "\u662F\u5426\u9ED8\u8BA4\u6536\u8D77,\u5F53\u524D\u6FC0\u6D3B\u9879\u6240\u5728\u5206\u7EC4\u4F1A\u81EA\u52A8\u5C55\u5F00"
|
|
7948
|
+
}
|
|
7949
|
+
}
|
|
7950
|
+
},
|
|
7951
|
+
"StatusProviderBindConfig": {
|
|
7952
|
+
"type": "object",
|
|
7953
|
+
"additionalProperties": {
|
|
7954
|
+
"type": "string"
|
|
7955
|
+
},
|
|
7956
|
+
"description": 'Provider \u53C2\u6570\u7ED1\u5B9A\u8868\u8FBE\u5F0F,\u5982 employeeId: "$master.id"'
|
|
7957
|
+
},
|
|
7958
|
+
"StatusProviderConfig": {
|
|
7959
|
+
"type": "object",
|
|
7960
|
+
"properties": {
|
|
7961
|
+
"bind": {
|
|
7962
|
+
"$ref": "#/$defs/StatusProviderBindConfig"
|
|
7963
|
+
},
|
|
7964
|
+
"provider": {
|
|
7965
|
+
"type": "string"
|
|
7966
|
+
}
|
|
7967
|
+
}
|
|
7968
|
+
},
|
|
7969
|
+
"StatusProviderMap": {
|
|
7970
|
+
"type": "object",
|
|
7971
|
+
"additionalProperties": {
|
|
7972
|
+
"$ref": "#/$defs/StatusProviderConfig"
|
|
7973
|
+
}
|
|
7974
|
+
},
|
|
7975
|
+
"TreeListInteraction": {
|
|
7976
|
+
"type": "object",
|
|
7977
|
+
"properties": {
|
|
7978
|
+
"autoSelectFirst": {
|
|
7979
|
+
"type": "boolean"
|
|
7980
|
+
},
|
|
7981
|
+
"filterField": {
|
|
7982
|
+
"type": "string"
|
|
7983
|
+
},
|
|
7984
|
+
"filterFieldByDepth": {
|
|
7985
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
7986
|
+
},
|
|
7987
|
+
"filterOperator": {
|
|
7988
|
+
"type": "string"
|
|
7989
|
+
},
|
|
7990
|
+
"searchScope": {
|
|
7991
|
+
"type": "object",
|
|
7992
|
+
"properties": {
|
|
7993
|
+
"filterField": {
|
|
7994
|
+
"type": "string"
|
|
7995
|
+
},
|
|
7996
|
+
"filterOperator": {
|
|
7997
|
+
"type": "string"
|
|
7998
|
+
}
|
|
7999
|
+
}
|
|
8000
|
+
},
|
|
8001
|
+
"showAllOnRoot": {
|
|
8002
|
+
"type": "boolean"
|
|
8003
|
+
}
|
|
8004
|
+
}
|
|
8005
|
+
},
|
|
8006
|
+
"TreePanelConfig": {
|
|
8007
|
+
"type": "object",
|
|
8008
|
+
"properties": {
|
|
8009
|
+
"defaultExpandLevel": {
|
|
8010
|
+
"type": "integer"
|
|
8011
|
+
},
|
|
8012
|
+
"dissolvedToggle": {
|
|
8013
|
+
"type": "object",
|
|
8014
|
+
"properties": {
|
|
8015
|
+
"displaySuffix": {
|
|
8016
|
+
"type": "string"
|
|
8017
|
+
},
|
|
8018
|
+
"dissolvedValue": {
|
|
8019
|
+
"type": "string"
|
|
8020
|
+
},
|
|
8021
|
+
"field": {
|
|
8022
|
+
"type": "string"
|
|
8023
|
+
},
|
|
8024
|
+
"label": {
|
|
8025
|
+
"type": "string"
|
|
8026
|
+
}
|
|
8027
|
+
}
|
|
8028
|
+
},
|
|
8029
|
+
"labelField": {
|
|
8030
|
+
"type": "string"
|
|
8031
|
+
},
|
|
8032
|
+
"loadMode": {
|
|
8033
|
+
"type": "string"
|
|
8034
|
+
},
|
|
8035
|
+
"manageEntry": {
|
|
8036
|
+
"type": "object",
|
|
8037
|
+
"properties": {
|
|
8038
|
+
"dialogTitle": {
|
|
8039
|
+
"type": "string"
|
|
8040
|
+
},
|
|
8041
|
+
"icon": {
|
|
8042
|
+
"type": "string",
|
|
8043
|
+
"enum": ["hamburger", "settings"]
|
|
8044
|
+
},
|
|
8045
|
+
"modelState": {
|
|
8046
|
+
"type": "string"
|
|
8047
|
+
},
|
|
8048
|
+
"width": {
|
|
8049
|
+
"type": "string"
|
|
8050
|
+
}
|
|
8051
|
+
}
|
|
8052
|
+
},
|
|
8053
|
+
"model": {
|
|
8054
|
+
"type": "string"
|
|
8055
|
+
},
|
|
8056
|
+
"parentField": {
|
|
8057
|
+
"type": "string"
|
|
8058
|
+
},
|
|
8059
|
+
"rootValue": {},
|
|
8060
|
+
"searchPlaceholder": {
|
|
8061
|
+
"type": "string"
|
|
8062
|
+
},
|
|
8063
|
+
"showDateControl": {
|
|
8064
|
+
"type": "boolean"
|
|
8065
|
+
},
|
|
8066
|
+
"showSearch": {
|
|
8067
|
+
"type": "boolean"
|
|
8068
|
+
},
|
|
8069
|
+
"state": {
|
|
8070
|
+
"type": "string"
|
|
8071
|
+
},
|
|
8072
|
+
"title": {
|
|
8073
|
+
"type": "string"
|
|
8074
|
+
},
|
|
8075
|
+
"treeAction": {
|
|
8076
|
+
"type": "string"
|
|
8077
|
+
},
|
|
8078
|
+
"width": {}
|
|
8079
|
+
}
|
|
8080
|
+
}
|
|
8081
|
+
},
|
|
8082
|
+
"type": "object",
|
|
8083
|
+
"properties": {
|
|
8084
|
+
"description": {
|
|
8085
|
+
"type": "string",
|
|
8086
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
8087
|
+
},
|
|
8088
|
+
"key": {
|
|
8089
|
+
"type": "string",
|
|
8090
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
8091
|
+
},
|
|
8092
|
+
"layout": {
|
|
8093
|
+
"anyOf": [{
|
|
8094
|
+
"type": "object",
|
|
8095
|
+
"properties": {
|
|
8096
|
+
"interaction": {
|
|
8097
|
+
"$ref": "#/$defs/TreeListInteraction"
|
|
8098
|
+
},
|
|
8099
|
+
"list": {
|
|
8100
|
+
"$ref": "#/$defs/ListPanelConfig"
|
|
8101
|
+
},
|
|
8102
|
+
"tree": {
|
|
8103
|
+
"$ref": "#/$defs/TreePanelConfig"
|
|
8104
|
+
},
|
|
8105
|
+
"type": {
|
|
8106
|
+
"const": "tree-list"
|
|
8107
|
+
}
|
|
8108
|
+
},
|
|
8109
|
+
"required": ["type"]
|
|
8110
|
+
}, {
|
|
8111
|
+
"type": "object",
|
|
8112
|
+
"properties": {
|
|
8113
|
+
"interaction": {
|
|
8114
|
+
"$ref": "#/$defs/TreeListInteraction"
|
|
8115
|
+
},
|
|
8116
|
+
"list": {
|
|
8117
|
+
"$ref": "#/$defs/ListPanelConfig"
|
|
8118
|
+
},
|
|
8119
|
+
"tree": {
|
|
8120
|
+
"$ref": "#/$defs/TreePanelConfig"
|
|
8121
|
+
},
|
|
8122
|
+
"type": {
|
|
8123
|
+
"const": "tree-list2"
|
|
8124
|
+
}
|
|
8125
|
+
},
|
|
8126
|
+
"required": ["type"]
|
|
8127
|
+
}, {
|
|
8128
|
+
"type": "object",
|
|
8129
|
+
"properties": {
|
|
8130
|
+
"details": {
|
|
8131
|
+
"type": "array",
|
|
8132
|
+
"items": {
|
|
8133
|
+
"$ref": "#/$defs/DetailPanelConfig"
|
|
8134
|
+
}
|
|
8135
|
+
},
|
|
8136
|
+
"displayMode": {
|
|
8137
|
+
"type": "string",
|
|
8138
|
+
"enum": ["switch", "scroll-cards"],
|
|
8139
|
+
"description": "master-detail \u5B50\u96C6\u5C55\u793A\u6846\u67B6;switch \u4E3A\u5355\u5B50\u96C6\u5207\u6362,scroll-cards \u4E3A\u5458\u5DE5\u7AEF\u7EB5\u5411\u5361\u7247\u6EDA\u52A8"
|
|
8140
|
+
},
|
|
8141
|
+
"master": {
|
|
8142
|
+
"type": "object",
|
|
8143
|
+
"properties": {
|
|
8144
|
+
"headerFields": {
|
|
8145
|
+
"type": "array",
|
|
8146
|
+
"items": {
|
|
8147
|
+
"type": "string"
|
|
8148
|
+
}
|
|
8149
|
+
},
|
|
8150
|
+
"model": {
|
|
8151
|
+
"type": "string"
|
|
8152
|
+
},
|
|
8153
|
+
"navigation": {
|
|
8154
|
+
"$ref": "#/$defs/MasterNavigationConfig"
|
|
8155
|
+
},
|
|
8156
|
+
"photoField": {
|
|
8157
|
+
"type": "string",
|
|
8158
|
+
"description": "\u5934\u50CF\u5B57\u6BB5 key(\u4E3B\u5BF9\u8C61\u9644\u4EF6 documentId);\u914D\u7F6E\u540E\u6E32\u67D3\u4EBA\u5458\u5934\u90E8\u5361(3:4 \u8BC1\u4EF6\u7167)"
|
|
8159
|
+
},
|
|
8160
|
+
"showHeader": {
|
|
8161
|
+
"type": "boolean"
|
|
8162
|
+
},
|
|
8163
|
+
"summaryProviders": {
|
|
8164
|
+
"type": "array",
|
|
8165
|
+
"items": {
|
|
8166
|
+
"$ref": "#/$defs/MasterSummaryProviderConfig"
|
|
8167
|
+
}
|
|
8168
|
+
}
|
|
8169
|
+
}
|
|
8170
|
+
},
|
|
8171
|
+
"menu": {
|
|
8172
|
+
"type": "object",
|
|
8173
|
+
"properties": {
|
|
8174
|
+
"defaultActive": {
|
|
8175
|
+
"type": "string"
|
|
8176
|
+
},
|
|
8177
|
+
"groups": {
|
|
8178
|
+
"type": "array",
|
|
8179
|
+
"items": {
|
|
8180
|
+
"$ref": "#/$defs/MenuGroupConfig"
|
|
8181
|
+
}
|
|
8182
|
+
},
|
|
8183
|
+
"position": {
|
|
8184
|
+
"type": "string"
|
|
8185
|
+
},
|
|
8186
|
+
"style": {
|
|
8187
|
+
"type": "string",
|
|
8188
|
+
"description": "\u83DC\u5355\u5C55\u793A\u98CE\u683C\uFF1Amenu=\u9759\u6001\u83DC\u5355\uFF0Ctabs=\u6807\u7B7E\u9875\uFF0Clist=\u52A8\u6001\u5206\u7C7B\u5217\u8868\uFF0Csteps=\u5411\u5BFC\u6B65\u9AA4\u6761\uFF08\u4E00\u4E2A menu.groups \u9879\u4E00\u4E2A\u9636\u6BB5\uFF0C\u9636\u6BB5\u5185\u591A\u5B50\u96C6\u964D\u4E3A\u4E8C\u7EA7\u9875\u7B7E\uFF0C\u6545 details \u6570\u53EF\u591A\u4E8E groups \u6570\uFF09\u3002enum \u662F\u624B\u5DE5\u6536\u7A84\uFF08generator \u53EA\u4EA7\u51FA type:string\uFF09\uFF0C\u52FF\u76F2\u8DD1 generateMetaSchema \u8986\u76D6\u3002",
|
|
8189
|
+
"enum": ["menu", "tabs", "list", "steps"]
|
|
8190
|
+
},
|
|
8191
|
+
"width": {}
|
|
8192
|
+
}
|
|
8193
|
+
},
|
|
8194
|
+
"statusProviders": {
|
|
8195
|
+
"$ref": "#/$defs/StatusProviderMap"
|
|
8196
|
+
},
|
|
8197
|
+
"type": {
|
|
8198
|
+
"const": "master-detail"
|
|
8199
|
+
}
|
|
8200
|
+
},
|
|
8201
|
+
"required": ["type"]
|
|
8202
|
+
}, {
|
|
8203
|
+
"type": "object",
|
|
8204
|
+
"properties": {
|
|
8205
|
+
"position": {
|
|
8206
|
+
"type": "string"
|
|
8207
|
+
},
|
|
8208
|
+
"tabs": {
|
|
8209
|
+
"type": "array",
|
|
8210
|
+
"items": {
|
|
8211
|
+
"$ref": "#/$defs/DetailPanelConfig"
|
|
8212
|
+
}
|
|
8213
|
+
},
|
|
8214
|
+
"type": {
|
|
8215
|
+
"const": "tab-panel"
|
|
8216
|
+
}
|
|
8217
|
+
},
|
|
8218
|
+
"required": ["type"]
|
|
8219
|
+
}, {
|
|
8220
|
+
"type": "object",
|
|
8221
|
+
"properties": {
|
|
8222
|
+
"attention": {
|
|
8223
|
+
"type": "object",
|
|
8224
|
+
"properties": {
|
|
8225
|
+
"description": {
|
|
8226
|
+
"type": "string"
|
|
8227
|
+
},
|
|
8228
|
+
"icon": {
|
|
8229
|
+
"type": "string"
|
|
8230
|
+
},
|
|
8231
|
+
"tab": {
|
|
8232
|
+
"type": "string"
|
|
8233
|
+
},
|
|
8234
|
+
"title": {
|
|
8235
|
+
"type": "string"
|
|
8236
|
+
},
|
|
8237
|
+
"tone": {
|
|
8238
|
+
"type": "string"
|
|
8239
|
+
}
|
|
8240
|
+
}
|
|
8241
|
+
},
|
|
8242
|
+
"hero": {
|
|
8243
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
8244
|
+
},
|
|
8245
|
+
"stageFlow": {
|
|
8246
|
+
"type": "object",
|
|
8247
|
+
"properties": {
|
|
8248
|
+
"steps": {
|
|
8249
|
+
"type": "array",
|
|
8250
|
+
"items": {
|
|
8251
|
+
"type": "object",
|
|
8252
|
+
"properties": {
|
|
8253
|
+
"key": {
|
|
8254
|
+
"type": "string"
|
|
8255
|
+
},
|
|
8256
|
+
"label": {
|
|
8257
|
+
"type": "string"
|
|
8258
|
+
},
|
|
8259
|
+
"tab": {
|
|
8260
|
+
"type": "string"
|
|
8261
|
+
}
|
|
8262
|
+
}
|
|
8263
|
+
}
|
|
8264
|
+
},
|
|
8265
|
+
"title": {
|
|
8266
|
+
"type": "string"
|
|
8267
|
+
}
|
|
8268
|
+
}
|
|
8269
|
+
},
|
|
8270
|
+
"stats": {
|
|
8271
|
+
"type": "object",
|
|
8272
|
+
"properties": {
|
|
8273
|
+
"action": {
|
|
8274
|
+
"type": "string"
|
|
8275
|
+
},
|
|
8276
|
+
"cards": {
|
|
8277
|
+
"type": "array",
|
|
8278
|
+
"items": {
|
|
8279
|
+
"type": "object"
|
|
8280
|
+
}
|
|
8281
|
+
},
|
|
8282
|
+
"method": {
|
|
8283
|
+
"type": "string",
|
|
8284
|
+
"enum": ["GET", "POST"]
|
|
8285
|
+
},
|
|
8286
|
+
"model": {
|
|
8287
|
+
"type": "string"
|
|
8288
|
+
}
|
|
8289
|
+
},
|
|
8290
|
+
"required": ["model", "action"]
|
|
8291
|
+
},
|
|
8292
|
+
"tabs": {
|
|
8293
|
+
"type": "array",
|
|
8294
|
+
"items": {
|
|
8295
|
+
"$ref": "#/$defs/DetailPanelConfig"
|
|
8296
|
+
}
|
|
8297
|
+
},
|
|
8298
|
+
"tabsPosition": {
|
|
8299
|
+
"type": "string",
|
|
8300
|
+
"enum": ["top", "left"]
|
|
8301
|
+
},
|
|
8302
|
+
"type": {
|
|
8303
|
+
"const": "workbench-list"
|
|
8304
|
+
}
|
|
8305
|
+
},
|
|
8306
|
+
"required": ["type"]
|
|
8307
|
+
}, {
|
|
8308
|
+
"type": "object",
|
|
8309
|
+
"properties": {
|
|
8310
|
+
"interaction": {
|
|
8311
|
+
"type": "object",
|
|
8312
|
+
"properties": {
|
|
8313
|
+
"autoSelectFirst": {
|
|
8314
|
+
"type": "boolean"
|
|
8315
|
+
},
|
|
8316
|
+
"filterFieldByDepth": {
|
|
8317
|
+
"$ref": "#/$defs/Map(String,String)"
|
|
8318
|
+
},
|
|
8319
|
+
"filterOperator": {
|
|
8320
|
+
"type": "string"
|
|
8321
|
+
},
|
|
8322
|
+
"showAllOnRoot": {
|
|
8323
|
+
"type": "boolean"
|
|
8324
|
+
}
|
|
8325
|
+
}
|
|
8326
|
+
},
|
|
8327
|
+
"tabs": {
|
|
8328
|
+
"type": "array",
|
|
8329
|
+
"items": {
|
|
8330
|
+
"$ref": "#/$defs/DetailPanelConfig"
|
|
8331
|
+
}
|
|
8332
|
+
},
|
|
8333
|
+
"tree": {
|
|
8334
|
+
"$ref": "#/$defs/TreePanelConfig"
|
|
8335
|
+
},
|
|
8336
|
+
"type": {
|
|
8337
|
+
"const": "tree-tab-list"
|
|
8338
|
+
}
|
|
8339
|
+
},
|
|
8340
|
+
"required": ["type"]
|
|
8341
|
+
}, {
|
|
8342
|
+
"type": "object",
|
|
8343
|
+
"properties": {
|
|
8344
|
+
"component": {
|
|
8345
|
+
"type": "string"
|
|
8346
|
+
},
|
|
8347
|
+
"type": {
|
|
8348
|
+
"const": "custom"
|
|
8349
|
+
}
|
|
8350
|
+
},
|
|
8351
|
+
"required": ["type"]
|
|
8352
|
+
}, {
|
|
8353
|
+
"type": "object",
|
|
8354
|
+
"properties": {
|
|
8355
|
+
"model": {
|
|
8356
|
+
"type": "string"
|
|
8357
|
+
},
|
|
8358
|
+
"state": {
|
|
8359
|
+
"type": "string"
|
|
8360
|
+
},
|
|
8361
|
+
"type": {
|
|
8362
|
+
"const": "simple-list"
|
|
8363
|
+
}
|
|
8364
|
+
},
|
|
8365
|
+
"required": ["type"]
|
|
8366
|
+
}]
|
|
8367
|
+
},
|
|
8368
|
+
"name": {
|
|
8369
|
+
"type": "string",
|
|
8370
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
8371
|
+
}
|
|
8372
|
+
}
|
|
8373
|
+
},
|
|
8374
|
+
wiz: {
|
|
8375
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8376
|
+
"$id": "https://hcm.wiimind.com/meta-contract/schema/wiz-meta.schema.json",
|
|
8377
|
+
"title": "HCM WizMeta v1",
|
|
8378
|
+
"type": "object",
|
|
8379
|
+
"additionalProperties": false,
|
|
8380
|
+
"required": ["capabilityVersion", "name", "persistence", "steps"],
|
|
8381
|
+
"properties": {
|
|
8382
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8383
|
+
"name": { "type": "string", "minLength": 1 },
|
|
8384
|
+
"description": { "type": "string" },
|
|
8385
|
+
"capabilityVersion": { "enum": ["1.22.0", "1.23.0", "1.25.0"] },
|
|
8386
|
+
"persistence": { "$ref": "#/$defs/persistence" },
|
|
8387
|
+
"display": { "$ref": "#/$defs/display" },
|
|
8388
|
+
"contextDefaults": { "type": "object" },
|
|
8389
|
+
"steps": {
|
|
8390
|
+
"type": "array",
|
|
8391
|
+
"minItems": 2,
|
|
8392
|
+
"items": { "$ref": "#/$defs/step" }
|
|
8393
|
+
},
|
|
8394
|
+
"resetOnChange": {
|
|
8395
|
+
"type": "array",
|
|
8396
|
+
"items": { "$ref": "#/$defs/resetRule" }
|
|
8397
|
+
}
|
|
8398
|
+
},
|
|
8399
|
+
"$defs": {
|
|
8400
|
+
"safePath": {
|
|
8401
|
+
"type": "string",
|
|
8402
|
+
"minLength": 1,
|
|
8403
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"
|
|
8404
|
+
},
|
|
8405
|
+
"persistence": {
|
|
8406
|
+
"type": "object",
|
|
8407
|
+
"additionalProperties": false,
|
|
8408
|
+
"required": ["mode"],
|
|
8409
|
+
"properties": {
|
|
8410
|
+
"mode": { "enum": ["final", "per-step"] }
|
|
8411
|
+
}
|
|
8412
|
+
},
|
|
8413
|
+
"display": {
|
|
8414
|
+
"type": "object",
|
|
8415
|
+
"additionalProperties": false,
|
|
8416
|
+
"properties": {
|
|
8417
|
+
"dialogWidth": { "type": "string", "minLength": 1 },
|
|
8418
|
+
"pageMaxWidth": { "type": "string", "minLength": 1 },
|
|
8419
|
+
"closeOnBackdrop": { "type": "boolean" }
|
|
8420
|
+
}
|
|
8421
|
+
},
|
|
8422
|
+
"step": {
|
|
8423
|
+
"type": "object",
|
|
8424
|
+
"additionalProperties": false,
|
|
8425
|
+
"required": ["key", "name", "sequence"],
|
|
8426
|
+
"properties": {
|
|
8427
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8428
|
+
"name": { "type": "string", "minLength": 1 },
|
|
8429
|
+
"description": { "type": "string" },
|
|
8430
|
+
"sequence": { "type": "integer" },
|
|
8431
|
+
"infos": {
|
|
8432
|
+
"type": "array",
|
|
8433
|
+
"items": { "$ref": "#/$defs/infoRef" }
|
|
8434
|
+
},
|
|
8435
|
+
"confirmations": {
|
|
8436
|
+
"type": "array",
|
|
8437
|
+
"items": { "$ref": "#/$defs/confirmation" }
|
|
8438
|
+
},
|
|
8439
|
+
"previous": {
|
|
8440
|
+
"oneOf": [
|
|
8441
|
+
{ "const": false },
|
|
8442
|
+
{ "$ref": "#/$defs/previous" }
|
|
8443
|
+
]
|
|
8444
|
+
},
|
|
8445
|
+
"next": { "$ref": "#/$defs/transition" },
|
|
8446
|
+
"terminal": { "type": "boolean" }
|
|
8447
|
+
}
|
|
8448
|
+
},
|
|
8449
|
+
"infoRef": {
|
|
8450
|
+
"type": "object",
|
|
8451
|
+
"additionalProperties": false,
|
|
8452
|
+
"required": ["key", "model", "bind", "mode"],
|
|
8453
|
+
"properties": {
|
|
8454
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8455
|
+
"model": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
8456
|
+
"state": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
8457
|
+
"bind": { "$ref": "#/$defs/safePath" },
|
|
8458
|
+
"mode": { "enum": ["create", "edit", "view"] },
|
|
8459
|
+
"collection": { "type": "boolean" },
|
|
8460
|
+
"minItems": { "type": "integer", "minimum": 0 },
|
|
8461
|
+
"maxItems": { "type": "integer", "minimum": 0 },
|
|
8462
|
+
"addLabel": { "type": "string" },
|
|
8463
|
+
"removable": { "type": "boolean" }
|
|
8464
|
+
}
|
|
8465
|
+
},
|
|
8466
|
+
"confirmation": {
|
|
8467
|
+
"type": "object",
|
|
8468
|
+
"additionalProperties": false,
|
|
8469
|
+
"required": ["key", "label", "bind"],
|
|
8470
|
+
"properties": {
|
|
8471
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8472
|
+
"label": { "type": "string", "minLength": 1 },
|
|
8473
|
+
"required": { "type": "boolean" },
|
|
8474
|
+
"bind": { "$ref": "#/$defs/safePath" }
|
|
8475
|
+
}
|
|
8476
|
+
},
|
|
8477
|
+
"previous": {
|
|
8478
|
+
"type": "object",
|
|
8479
|
+
"additionalProperties": false,
|
|
8480
|
+
"required": ["target"],
|
|
8481
|
+
"properties": {
|
|
8482
|
+
"label": { "type": "string" },
|
|
8483
|
+
"target": { "type": "string", "minLength": 1 },
|
|
8484
|
+
"clear": {
|
|
8485
|
+
"type": "array",
|
|
8486
|
+
"items": { "$ref": "#/$defs/safePath" }
|
|
8487
|
+
}
|
|
8488
|
+
}
|
|
8489
|
+
},
|
|
8490
|
+
"transition": {
|
|
8491
|
+
"type": "object",
|
|
8492
|
+
"additionalProperties": false,
|
|
8493
|
+
"required": ["label", "target", "persistence"],
|
|
8494
|
+
"properties": {
|
|
8495
|
+
"label": { "type": "string", "minLength": 1 },
|
|
8496
|
+
"target": { "type": "string", "minLength": 1 },
|
|
8497
|
+
"validate": { "type": "boolean" },
|
|
8498
|
+
"persistence": { "enum": ["none", "commit"] },
|
|
8499
|
+
"action": { "$ref": "#/$defs/action" },
|
|
8500
|
+
"resultBindings": {
|
|
8501
|
+
"type": "array",
|
|
8502
|
+
"items": { "$ref": "#/$defs/resultBinding" }
|
|
8503
|
+
},
|
|
8504
|
+
"idempotency": { "$ref": "#/$defs/idempotency" }
|
|
8505
|
+
}
|
|
8506
|
+
},
|
|
8507
|
+
"action": {
|
|
8508
|
+
"type": "object",
|
|
8509
|
+
"additionalProperties": false,
|
|
8510
|
+
"required": ["key", "label", "type"],
|
|
8511
|
+
"properties": {
|
|
8512
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8513
|
+
"label": { "type": "string", "minLength": 1 },
|
|
8514
|
+
"type": { "enum": ["api", "service"] },
|
|
8515
|
+
"needConfirm": { "type": "boolean" },
|
|
8516
|
+
"confirmTitle": { "type": "string" },
|
|
8517
|
+
"confirmText": { "type": "string" },
|
|
8518
|
+
"api": { "$ref": "#/$defs/api" },
|
|
8519
|
+
"service": { "$ref": "#/$defs/service" },
|
|
8520
|
+
"execution": { "$ref": "#/$defs/execution" },
|
|
8521
|
+
"params": {
|
|
8522
|
+
"type": "array",
|
|
8523
|
+
"items": { "$ref": "#/$defs/param" }
|
|
8524
|
+
}
|
|
8525
|
+
},
|
|
8526
|
+
"oneOf": [
|
|
8527
|
+
{
|
|
8528
|
+
"properties": { "type": { "const": "api" } },
|
|
8529
|
+
"required": ["api"],
|
|
8530
|
+
"not": { "required": ["service"] }
|
|
8531
|
+
},
|
|
8532
|
+
{
|
|
8533
|
+
"properties": { "type": { "const": "service" } },
|
|
8534
|
+
"required": ["service"],
|
|
8535
|
+
"not": { "required": ["api"] }
|
|
8536
|
+
}
|
|
8537
|
+
]
|
|
8538
|
+
},
|
|
8539
|
+
"api": {
|
|
8540
|
+
"type": "object",
|
|
8541
|
+
"additionalProperties": false,
|
|
8542
|
+
"required": ["target", "targetModel", "method", "actionName"],
|
|
8543
|
+
"properties": {
|
|
8544
|
+
"target": { "type": "string" },
|
|
8545
|
+
"targetModel": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
8546
|
+
"method": { "enum": ["GET", "POST", "PUT", "DELETE"] },
|
|
8547
|
+
"actionName": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" }
|
|
8548
|
+
}
|
|
8549
|
+
},
|
|
8550
|
+
"service": {
|
|
8551
|
+
"type": "object",
|
|
8552
|
+
"additionalProperties": false,
|
|
8553
|
+
"required": ["agentKey", "serviceKey"],
|
|
8554
|
+
"properties": {
|
|
8555
|
+
"agentKey": { "type": "string", "minLength": 1 },
|
|
8556
|
+
"serviceKey": { "type": "string", "minLength": 1 },
|
|
8557
|
+
"mode": { "enum": ["sync", "async"] },
|
|
8558
|
+
"timeoutMs": { "type": "integer", "minimum": 1e3 },
|
|
8559
|
+
"pollIntervalMs": { "type": "integer", "minimum": 100 }
|
|
8560
|
+
}
|
|
8561
|
+
},
|
|
8562
|
+
"execution": {
|
|
8563
|
+
"type": "object",
|
|
8564
|
+
"additionalProperties": false,
|
|
8565
|
+
"properties": {
|
|
8566
|
+
"returnOn": { "const": "terminal" }
|
|
8567
|
+
}
|
|
8568
|
+
},
|
|
8569
|
+
"param": {
|
|
8570
|
+
"type": "object",
|
|
8571
|
+
"additionalProperties": false,
|
|
8572
|
+
"required": ["name", "source"],
|
|
8573
|
+
"properties": {
|
|
8574
|
+
"name": { "type": "string", "minLength": 1 },
|
|
8575
|
+
"source": { "enum": ["state", "constant", "idempotency"] },
|
|
8576
|
+
"path": { "$ref": "#/$defs/safePath" },
|
|
8577
|
+
"value": {},
|
|
8578
|
+
"required": { "type": "boolean" },
|
|
8579
|
+
"defaultValue": {},
|
|
8580
|
+
"into": {
|
|
8581
|
+
"oneOf": [
|
|
8582
|
+
{ "const": "$root" },
|
|
8583
|
+
{ "$ref": "#/$defs/safePath" }
|
|
8584
|
+
]
|
|
8585
|
+
}
|
|
8586
|
+
}
|
|
8587
|
+
},
|
|
8588
|
+
"resultBinding": {
|
|
8589
|
+
"type": "object",
|
|
8590
|
+
"additionalProperties": false,
|
|
8591
|
+
"required": ["key", "from", "to"],
|
|
8592
|
+
"properties": {
|
|
8593
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8594
|
+
"from": { "$ref": "#/$defs/safePath" },
|
|
8595
|
+
"to": { "$ref": "#/$defs/safePath" },
|
|
8596
|
+
"required": { "type": "boolean" }
|
|
8597
|
+
}
|
|
8598
|
+
},
|
|
8599
|
+
"idempotency": {
|
|
8600
|
+
"type": "object",
|
|
8601
|
+
"additionalProperties": false,
|
|
8602
|
+
"required": ["key", "required", "retry"],
|
|
8603
|
+
"properties": {
|
|
8604
|
+
"key": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
8605
|
+
"required": { "type": "boolean" },
|
|
8606
|
+
"retry": { "const": "retain-on-unknown" }
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
"resetRule": {
|
|
8610
|
+
"type": "object",
|
|
8611
|
+
"additionalProperties": false,
|
|
8612
|
+
"required": ["key", "path", "goTo", "clear"],
|
|
8613
|
+
"properties": {
|
|
8614
|
+
"key": { "type": "string", "minLength": 1 },
|
|
8615
|
+
"path": { "$ref": "#/$defs/safePath" },
|
|
8616
|
+
"whenAfterStep": { "type": "string", "minLength": 1 },
|
|
8617
|
+
"goTo": { "type": "string", "minLength": 1 },
|
|
8618
|
+
"clear": {
|
|
8619
|
+
"type": "array",
|
|
8620
|
+
"items": { "$ref": "#/$defs/safePath" }
|
|
8621
|
+
}
|
|
8622
|
+
}
|
|
8623
|
+
}
|
|
8624
|
+
}
|
|
8625
|
+
},
|
|
8626
|
+
impexp: {
|
|
8627
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
8628
|
+
"$defs": {
|
|
8629
|
+
"Map(String,Object)": {
|
|
8630
|
+
"type": "object"
|
|
8631
|
+
}
|
|
8632
|
+
},
|
|
8633
|
+
"type": "object",
|
|
8634
|
+
"properties": {
|
|
8635
|
+
"business_config": {
|
|
8636
|
+
"type": "object",
|
|
8637
|
+
"properties": {
|
|
8638
|
+
"context_fields": {
|
|
8639
|
+
"type": "array",
|
|
8640
|
+
"items": {
|
|
8641
|
+
"type": "object",
|
|
8642
|
+
"properties": {
|
|
8643
|
+
"key": {
|
|
8644
|
+
"type": "string"
|
|
8645
|
+
},
|
|
8646
|
+
"label": {
|
|
8647
|
+
"type": "string"
|
|
8648
|
+
},
|
|
8649
|
+
"on_conflict": {
|
|
8650
|
+
"type": "string"
|
|
8651
|
+
},
|
|
8652
|
+
"override": {
|
|
8653
|
+
"type": "string"
|
|
8654
|
+
},
|
|
8655
|
+
"required": {
|
|
8656
|
+
"type": "boolean"
|
|
8657
|
+
},
|
|
8658
|
+
"source": {
|
|
8659
|
+
"type": "string"
|
|
8660
|
+
}
|
|
8661
|
+
}
|
|
8662
|
+
}
|
|
8663
|
+
},
|
|
8664
|
+
"require": {
|
|
8665
|
+
"type": "array",
|
|
8666
|
+
"items": {
|
|
8667
|
+
"type": "string"
|
|
8668
|
+
}
|
|
8669
|
+
},
|
|
8670
|
+
"select": {
|
|
8671
|
+
"type": "array",
|
|
8672
|
+
"items": {
|
|
8673
|
+
"type": "string"
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
},
|
|
8678
|
+
"capabilityVersion": {
|
|
8679
|
+
"type": "string"
|
|
8680
|
+
},
|
|
8681
|
+
"defaults": {
|
|
8682
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
8683
|
+
},
|
|
8684
|
+
"description": {
|
|
8685
|
+
"type": "string",
|
|
8686
|
+
"description": "\u5143\u6570\u636E\u8BE6\u7EC6\u63CF\u8FF0,\u53EF\u9009;\u524D\u7AEF\u4E0D\u76F4\u63A5\u6E32\u67D3,\u4E3B\u8981\u7ED9\u5F00\u53D1/\u8FD0\u7EF4\u770B"
|
|
8687
|
+
},
|
|
8688
|
+
"document": {
|
|
8689
|
+
"type": "object",
|
|
8690
|
+
"properties": {
|
|
8691
|
+
"categoryNumber": {
|
|
8692
|
+
"type": "string"
|
|
8693
|
+
},
|
|
8694
|
+
"formId": {
|
|
8695
|
+
"type": "string"
|
|
8696
|
+
}
|
|
8697
|
+
}
|
|
8698
|
+
},
|
|
8699
|
+
"fields": {
|
|
8700
|
+
"type": "array",
|
|
8701
|
+
"items": {
|
|
8702
|
+
"type": "object",
|
|
8703
|
+
"properties": {
|
|
8704
|
+
"column_config": {
|
|
8705
|
+
"type": "array",
|
|
8706
|
+
"items": {
|
|
8707
|
+
"type": "object"
|
|
8708
|
+
}
|
|
8709
|
+
},
|
|
8710
|
+
"comment": {
|
|
8711
|
+
"type": "string"
|
|
8712
|
+
},
|
|
8713
|
+
"direction": {
|
|
8714
|
+
"type": "string",
|
|
8715
|
+
"enum": ["BOTH", "IMPORT", "EXPORT"]
|
|
8716
|
+
},
|
|
8717
|
+
"export": {
|
|
8718
|
+
"type": "object",
|
|
8719
|
+
"properties": {
|
|
8720
|
+
"valuePath": {
|
|
8721
|
+
"type": "string",
|
|
8722
|
+
"pattern": "^[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*$",
|
|
8723
|
+
"description": "\u4E00\u8DF3\u5F15\u7528\u6295\u5F71\u8DEF\u5F84\uFF0C\u4F8B\u5982 employeeId.code\uFF1B\u4E0D\u652F\u6301\u591A\u8DF3\u3001\u96C6\u5408\u6216\u8868\u8FBE\u5F0F"
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
},
|
|
8727
|
+
"key": {
|
|
8728
|
+
"type": "string"
|
|
8729
|
+
},
|
|
8730
|
+
"label": {
|
|
8731
|
+
"type": "string"
|
|
8732
|
+
},
|
|
8733
|
+
"parser": {
|
|
8734
|
+
"type": "string"
|
|
8735
|
+
},
|
|
8736
|
+
"require": {
|
|
8737
|
+
"type": "boolean"
|
|
8738
|
+
},
|
|
8739
|
+
"width": {
|
|
8740
|
+
"type": "integer"
|
|
8741
|
+
}
|
|
8742
|
+
}
|
|
8743
|
+
}
|
|
8744
|
+
},
|
|
8745
|
+
"handler": {
|
|
8746
|
+
"type": "object",
|
|
8747
|
+
"properties": {
|
|
8748
|
+
"exportClass": {
|
|
8749
|
+
"type": "string"
|
|
8750
|
+
},
|
|
8751
|
+
"importClass": {
|
|
8752
|
+
"type": "string"
|
|
8753
|
+
},
|
|
8754
|
+
"param": {
|
|
8755
|
+
"$ref": "#/$defs/Map(String,Object)"
|
|
8756
|
+
}
|
|
8757
|
+
}
|
|
8758
|
+
},
|
|
8759
|
+
"importDomain": {
|
|
8760
|
+
"type": "string"
|
|
8761
|
+
},
|
|
8762
|
+
"key": {
|
|
8763
|
+
"type": "string",
|
|
8764
|
+
"description": "\u6A21\u578B\u6807\u8BC6\u7B26,YAML \u91CC\u5199\u4F5C modelKey;\u7531 spec.modelKey \u627F\u62C5,topPatches \u4E0D\u5E94\u518D\u5199"
|
|
8765
|
+
},
|
|
8766
|
+
"layout": {
|
|
8767
|
+
"type": "object",
|
|
8768
|
+
"properties": {
|
|
8769
|
+
"dataStartRow": {
|
|
8770
|
+
"type": "integer"
|
|
8771
|
+
},
|
|
8772
|
+
"descRow": {
|
|
8773
|
+
"type": "integer"
|
|
8774
|
+
},
|
|
8775
|
+
"keyRow": {
|
|
8776
|
+
"type": "integer"
|
|
8777
|
+
},
|
|
8778
|
+
"sheetName": {
|
|
8779
|
+
"type": "string"
|
|
8780
|
+
}
|
|
8781
|
+
}
|
|
8782
|
+
},
|
|
8783
|
+
"modelKey": {
|
|
8784
|
+
"type": "string"
|
|
8785
|
+
},
|
|
8786
|
+
"name": {
|
|
8787
|
+
"type": "string",
|
|
8788
|
+
"description": '\u5143\u6570\u636E\u663E\u793A\u540D\u79F0(\u5982 "\u7EC4\u7EC7\u5355\u5143");\u901A\u5E38\u7528\u4E8E\u9875\u9762\u6807\u9898\u6216\u5143\u6570\u636E\u6D4F\u89C8'
|
|
8789
|
+
},
|
|
8790
|
+
"orders": {
|
|
8791
|
+
"type": "array",
|
|
8792
|
+
"items": {
|
|
8793
|
+
"type": "object",
|
|
8794
|
+
"properties": {
|
|
8795
|
+
"key": {
|
|
8796
|
+
"type": "string"
|
|
8797
|
+
},
|
|
8798
|
+
"type": {
|
|
8799
|
+
"type": "string"
|
|
8800
|
+
}
|
|
8801
|
+
}
|
|
8802
|
+
}
|
|
8803
|
+
},
|
|
8804
|
+
"roundTrip": {
|
|
8805
|
+
"type": "object",
|
|
8806
|
+
"properties": {
|
|
8807
|
+
"importState": {
|
|
8808
|
+
"type": "string",
|
|
8809
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
8810
|
+
},
|
|
8811
|
+
"mode": {
|
|
8812
|
+
"type": "string",
|
|
8813
|
+
"enum": ["SUPPORTED", "READ_ONLY", "UNSUPPORTED"]
|
|
8814
|
+
}
|
|
8815
|
+
},
|
|
8816
|
+
"required": ["mode"]
|
|
8817
|
+
},
|
|
8818
|
+
"type": {
|
|
8819
|
+
"type": "string"
|
|
8820
|
+
}
|
|
8821
|
+
}
|
|
8822
|
+
}
|
|
8823
|
+
};
|
|
8824
|
+
|
|
8825
|
+
// src/meta/validate-meta.ts
|
|
8826
|
+
function isYamlMetaPath(metaPath2) {
|
|
8827
|
+
return /\.(yml|yaml)$/i.test(metaPath2.split(/[\\/]/).pop() ?? metaPath2);
|
|
8828
|
+
}
|
|
8829
|
+
function metaKindFromPath(metaPath2) {
|
|
8830
|
+
const base = metaPath2.split(/[\\/]/).pop() ?? metaPath2;
|
|
8831
|
+
if (!/\.(yml|yaml)$/i.test(base)) return void 0;
|
|
8832
|
+
const stem = base.replace(/\.(yml|yaml)$/i, "");
|
|
8833
|
+
const parts = stem.split(".");
|
|
8834
|
+
if (parts.length < 2) return "model";
|
|
8835
|
+
return parts[1];
|
|
8836
|
+
}
|
|
8837
|
+
var ALIAS_HINTS = {
|
|
8838
|
+
list: {
|
|
8839
|
+
hide: "\u5217\u8868\u5C42\u7684\u663E\u9690\u952E\u662F `visible`\uFF08\u8BED\u4E49\u76F8\u53CD\uFF1A`hide: true` \u21D2 `visible: false`\uFF09",
|
|
8840
|
+
hidden: "\u5217\u8868\u5C42\u7684\u663E\u9690\u952E\u662F `visible`\uFF08\u8BED\u4E49\u76F8\u53CD\uFF09",
|
|
8841
|
+
title: "\u5217\u6807\u9898\u7528 `label`",
|
|
8842
|
+
displayName: "\u5217\u6807\u9898\u7528 `label`"
|
|
8843
|
+
},
|
|
8844
|
+
model: {
|
|
8845
|
+
// 模型字段层的显示名键是 `name`:`ModelFieldMeta` 上根本没有 `label` 属性、也没有
|
|
8846
|
+
// `@JsonAlias("label")`,写上去 Jackson 静默丢弃(`FAIL_ON_UNKNOWN_PROPERTIES=false`)。
|
|
8847
|
+
// `label` 在 `enums[]` / `relations[]` 这类子对象里是合法的,所以只在字段项这一层提醒。
|
|
8848
|
+
label: "\u6A21\u578B\u5B57\u6BB5\u5C42\u7684\u663E\u793A\u540D\u952E\u662F `name`\uFF08`label` \u53EA\u5728 `enums[]` / `relations[]` \u7B49\u5B50\u5BF9\u8C61\u91CC\u5408\u6CD5\uFF0C\u5199\u5728\u5B57\u6BB5\u9879\u4E0A\u4F1A\u88AB\u9759\u9ED8\u4E22\u5F03\uFF09",
|
|
8849
|
+
title: "\u6A21\u578B\u5B57\u6BB5\u5C42\u7684\u663E\u793A\u540D\u952E\u662F `name`",
|
|
8850
|
+
displayName: "\u6A21\u578B\u5B57\u6BB5\u5C42\u7684\u663E\u793A\u540D\u952E\u662F `name`"
|
|
8851
|
+
},
|
|
8852
|
+
info: {
|
|
8853
|
+
hide: "\u8BE6\u60C5/\u8868\u5355\u5C42\u7684\u663E\u9690\u952E\u662F `hidden`",
|
|
8854
|
+
visible: "\u8BE6\u60C5/\u8868\u5355\u5C42\u7684\u663E\u9690\u952E\u662F `hidden`\uFF08\u8BED\u4E49\u76F8\u53CD\uFF1A`visible: false` \u21D2 `hidden: true`\uFF09",
|
|
8855
|
+
title: "\u5B57\u6BB5\u6807\u9898\u7528 `label`",
|
|
8856
|
+
displayName: "\u5B57\u6BB5\u6807\u9898\u7528 `label`"
|
|
8857
|
+
}
|
|
8858
|
+
};
|
|
8859
|
+
function resolveRef(root, schema) {
|
|
8860
|
+
let cur = schema;
|
|
8861
|
+
for (let i = 0; i < 8 && cur && typeof cur.$ref === "string"; i += 1) {
|
|
8862
|
+
const ref = cur.$ref;
|
|
8863
|
+
if (!ref.startsWith("#/")) return {};
|
|
8864
|
+
const seg = ref.slice(2).split("/").map((s) => s.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
8865
|
+
let node = root;
|
|
8866
|
+
for (const s of seg) {
|
|
8867
|
+
node = node?.[s];
|
|
8868
|
+
if (node == null) return {};
|
|
8869
|
+
}
|
|
8870
|
+
cur = node;
|
|
8871
|
+
}
|
|
8872
|
+
return cur ?? {};
|
|
8873
|
+
}
|
|
8874
|
+
function jsonTypeOf(v) {
|
|
8875
|
+
if (v === null || v === void 0) return "null";
|
|
8876
|
+
if (Array.isArray(v)) return "array";
|
|
8877
|
+
if (typeof v === "number") return Number.isInteger(v) ? "integer" : "number";
|
|
8878
|
+
if (typeof v === "boolean") return "boolean";
|
|
8879
|
+
if (typeof v === "string") return "string";
|
|
8880
|
+
if (v instanceof Date) return "string";
|
|
8881
|
+
return "object";
|
|
8882
|
+
}
|
|
8883
|
+
function typeMatches(actual, expected) {
|
|
8884
|
+
if (actual === expected) return true;
|
|
8885
|
+
if (expected === "number" && actual === "integer") return true;
|
|
8886
|
+
if (expected === "integer" && actual === "number") return true;
|
|
8887
|
+
return false;
|
|
8888
|
+
}
|
|
8889
|
+
function isDirectiveKey(k) {
|
|
8890
|
+
return k.startsWith("__");
|
|
8891
|
+
}
|
|
8892
|
+
function isDirectiveNode(v) {
|
|
8893
|
+
if (!v || typeof v !== "object" || Array.isArray(v)) return false;
|
|
8894
|
+
const keys = Object.keys(v);
|
|
8895
|
+
return keys.length > 0 && keys.every(isDirectiveKey);
|
|
8896
|
+
}
|
|
8897
|
+
function jacksonCoercible(value, actual, expected) {
|
|
8898
|
+
if (actual === "array" || actual === "object" || actual === "null") return false;
|
|
8899
|
+
if (expected.includes("array") || expected.includes("object")) return false;
|
|
8900
|
+
if (typeof value === "string") {
|
|
8901
|
+
const t = value.trim();
|
|
8902
|
+
if (expected.includes("integer")) return /^[+-]?\d+$/.test(t);
|
|
8903
|
+
if (expected.includes("number")) return t !== "" && Number.isFinite(Number(t));
|
|
8904
|
+
if (expected.includes("boolean")) return /^(true|false)$/i.test(t);
|
|
8905
|
+
return false;
|
|
8906
|
+
}
|
|
8907
|
+
return expected.includes("string");
|
|
8908
|
+
}
|
|
8909
|
+
function withinOneEdit(a, b) {
|
|
8910
|
+
if (a === b) return true;
|
|
8911
|
+
const [s, l] = a.length <= b.length ? [a, b] : [b, a];
|
|
8912
|
+
if (l.length - s.length > 1) return false;
|
|
8913
|
+
let i = 0;
|
|
8914
|
+
let j = 0;
|
|
8915
|
+
let diff = 0;
|
|
8916
|
+
while (i < s.length && j < l.length) {
|
|
8917
|
+
if (s[i] === l[j]) {
|
|
8918
|
+
i += 1;
|
|
8919
|
+
j += 1;
|
|
8920
|
+
continue;
|
|
8921
|
+
}
|
|
8922
|
+
diff += 1;
|
|
8923
|
+
if (diff > 1) return false;
|
|
8924
|
+
if (s.length === l.length) i += 1;
|
|
8925
|
+
j += 1;
|
|
8926
|
+
}
|
|
8927
|
+
return true;
|
|
8928
|
+
}
|
|
8929
|
+
function isPrefixedTwin(props, k) {
|
|
8930
|
+
if (!k || k.startsWith("is") || !/^[a-z]/.test(k)) return void 0;
|
|
8931
|
+
const twin = `is${k.charAt(0).toUpperCase()}${k.slice(1)}`;
|
|
8932
|
+
return Object.prototype.hasOwnProperty.call(props, twin) ? twin : void 0;
|
|
8933
|
+
}
|
|
8934
|
+
function registeredKeysHint(props) {
|
|
8935
|
+
const all = Object.keys(props).sort();
|
|
8936
|
+
return `\u672C\u5C42\u767B\u8BB0\u7684\u952E\u5171 ${all.length} \u4E2A\uFF1A${all.map((p) => `\`${p}\``).join(" ")}`;
|
|
8937
|
+
}
|
|
8938
|
+
function fmtPath(segs) {
|
|
8939
|
+
return segs.reduce(
|
|
8940
|
+
(acc, s) => typeof s === "number" ? `${acc}[${s}]` : acc ? `${acc}.${s}` : String(s),
|
|
8941
|
+
""
|
|
8942
|
+
);
|
|
8943
|
+
}
|
|
8944
|
+
function preview(v) {
|
|
8945
|
+
if (typeof v === "string") return JSON.stringify(v.length > 40 ? `${v.slice(0, 40)}\u2026` : v);
|
|
8946
|
+
if (Array.isArray(v)) return `[\u2026${v.length} \u9879]`;
|
|
8947
|
+
if (v && typeof v === "object") return `{\u2026${Object.keys(v).length} \u952E}`;
|
|
8948
|
+
return JSON.stringify(v);
|
|
8949
|
+
}
|
|
8950
|
+
function locateLine(rawLines, segs, root) {
|
|
8951
|
+
const leaf = segs[segs.length - 1];
|
|
8952
|
+
if (typeof leaf !== "string") return void 0;
|
|
8953
|
+
let anchorKey;
|
|
8954
|
+
let node = root;
|
|
8955
|
+
for (const s of segs) {
|
|
8956
|
+
if (node == null) break;
|
|
8957
|
+
node = node[s];
|
|
8958
|
+
if (typeof s === "number" && node && typeof node === "object" && typeof node.key === "string") {
|
|
8959
|
+
anchorKey = node.key;
|
|
8960
|
+
}
|
|
8961
|
+
}
|
|
8962
|
+
if (!anchorKey) return void 0;
|
|
8963
|
+
const anchorRe = new RegExp(
|
|
8964
|
+
`^\\s*(-\\s*)?key:\\s*["']?${anchorKey.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}["']?\\s*$`
|
|
8965
|
+
);
|
|
8966
|
+
const anchorHits = [];
|
|
8967
|
+
rawLines.forEach((l, i) => {
|
|
8968
|
+
if (anchorRe.test(l)) anchorHits.push(i);
|
|
8969
|
+
});
|
|
8970
|
+
if (anchorHits.length !== 1) return void 0;
|
|
8971
|
+
const anchorIdx = anchorHits[0];
|
|
8972
|
+
const leafRe = new RegExp(`^\\s*(-\\s*)?${leaf.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\s*:`);
|
|
8973
|
+
let start = anchorIdx;
|
|
8974
|
+
while (start > 0 && !/^\s*-\s/.test(rawLines[start] ?? "")) start -= 1;
|
|
8975
|
+
for (let i = start; i < rawLines.length; i += 1) {
|
|
8976
|
+
const line = rawLines[i] ?? "";
|
|
8977
|
+
if (i > start && /^\s*-\s/.test(line)) break;
|
|
8978
|
+
if (leafRe.test(line)) return i + 1;
|
|
8979
|
+
}
|
|
8980
|
+
return void 0;
|
|
8981
|
+
}
|
|
8982
|
+
function walk2(root, schema, value, segs, kind, issues, depth) {
|
|
8983
|
+
if (depth > 24 || value === null || value === void 0) return;
|
|
8984
|
+
const s = resolveRef(root, schema);
|
|
8985
|
+
if (!s || typeof s !== "object") return;
|
|
8986
|
+
if (s.oneOf || s.anyOf || s.allOf || s.not) {
|
|
8987
|
+
if (!s.type && !s.properties && !s.items) return;
|
|
8988
|
+
}
|
|
8989
|
+
const actual = jsonTypeOf(value);
|
|
8990
|
+
const expectedTypes = Array.isArray(s.type) ? s.type : typeof s.type === "string" ? [s.type] : [];
|
|
8991
|
+
if (expectedTypes.length > 0 && !expectedTypes.some((t) => typeMatches(actual, t))) {
|
|
8992
|
+
const coercible = jacksonCoercible(value, actual, expectedTypes);
|
|
8993
|
+
issues.push({
|
|
8994
|
+
severity: coercible ? "warn" : "error",
|
|
8995
|
+
path: fmtPath(segs) || "(\u6839)",
|
|
8996
|
+
message: coercible ? `\u7C7B\u578B\u4E0D\u7B26\uFF1A\u671F\u671B ${expectedTypes.join(" | ")}\uFF0C\u5B9E\u9645 ${actual}\uFF08${preview(value)}\uFF09\uFF1B\u670D\u52A1\u7AEF\u80FD\u81EA\u52A8\u8F6C\u6362\uFF0C\u4E0D\u62E6\u4F60\uFF0C\u4F46\u5EFA\u8BAE\u6309 schema \u7684\u7C7B\u578B\u5199` : `\u7C7B\u578B\u4E0D\u7B26\uFF1A\u671F\u671B ${expectedTypes.join(" | ")}\uFF0C\u5B9E\u9645 ${actual}\uFF08${preview(value)}\uFF09`
|
|
8997
|
+
});
|
|
8998
|
+
return;
|
|
8999
|
+
}
|
|
9000
|
+
if (Array.isArray(s.enum) && !s.enum.includes(value)) {
|
|
9001
|
+
issues.push({
|
|
9002
|
+
severity: "warn",
|
|
9003
|
+
path: fmtPath(segs),
|
|
9004
|
+
message: `\u53D6\u503C ${preview(value)} \u4E0D\u5728\u5DF2\u767B\u8BB0\u7684\u679A\u4E3E\u91CC`,
|
|
9005
|
+
hint: `\u5DF2\u767B\u8BB0\uFF1A${s.enum.map((e) => String(e)).join(" | ")}`
|
|
9006
|
+
});
|
|
9007
|
+
}
|
|
9008
|
+
if (actual === "array" && s.items) {
|
|
9009
|
+
value.forEach((item, i) => {
|
|
9010
|
+
if (isDirectiveNode(item)) return;
|
|
9011
|
+
walk2(root, s.items, item, [...segs, i], kind, issues, depth + 1);
|
|
9012
|
+
});
|
|
9013
|
+
return;
|
|
9014
|
+
}
|
|
9015
|
+
if (actual === "object" && s.properties) {
|
|
9016
|
+
const props = s.properties;
|
|
9017
|
+
const openMap = s.additionalProperties === true || s.additionalProperties && typeof s.additionalProperties === "object" || s.patternProperties != null;
|
|
9018
|
+
for (const [k, v] of Object.entries(value)) {
|
|
9019
|
+
if (Object.prototype.hasOwnProperty.call(props, k)) {
|
|
9020
|
+
walk2(root, props[k], v, [...segs, k], kind, issues, depth + 1);
|
|
9021
|
+
continue;
|
|
9022
|
+
}
|
|
9023
|
+
if (openMap || isDirectiveKey(k)) continue;
|
|
9024
|
+
const inFieldItem = segs.length >= 2 && typeof segs[segs.length - 1] === "number" && segs[segs.length - 2] === "fields";
|
|
9025
|
+
const alias = inFieldItem ? ALIAS_HINTS[kind]?.[k] : void 0;
|
|
9026
|
+
const twin = alias ? void 0 : isPrefixedTwin(props, k);
|
|
9027
|
+
const near = alias || twin ? void 0 : Object.keys(props).find((p) => withinOneEdit(p, k));
|
|
9028
|
+
if (!alias && !twin && !near) continue;
|
|
9029
|
+
let message;
|
|
9030
|
+
if (alias) {
|
|
9031
|
+
message = `\`${k}\` \u4E0D\u662F\u672C\u5C42\u8BA4\u7684\u952E`;
|
|
9032
|
+
} else if (twin) {
|
|
9033
|
+
message = `\u672A\u767B\u8BB0\u7684\u952E \`${k}\`\uFF0C\u672C\u5C42\u767B\u8BB0\u7684\u662F \`${twin}\`\uFF08\u672C\u4ED3\u5B57\u6BB5\u5F00\u5173\u4E00\u5F8B\u5E26 \`is\` \u524D\u7F00\uFF09\uFF1B\u7167\u73B0\u5728\u8FD9\u6837\u5199\u4E0B\u53BB\uFF0C\u8FD9\u4E2A\u952E\u4E0D\u4F1A\u751F\u6548`;
|
|
9034
|
+
} else {
|
|
9035
|
+
message = `\u672A\u767B\u8BB0\u7684\u952E \`${k}\`\uFF0C\u548C\u672C\u5C42\u7684 \`${near}\` \u53EA\u5DEE\u4E00\u4E2A\u5B57\u7B26\u2014\u2014\u50CF\u662F\u624B\u8BEF\uFF1B\u670D\u52A1\u7AEF\u9047\u5230\u4E0D\u8BA4\u8BC6\u7684\u952E\u4F1A\u76F4\u63A5\u4E22\u5F03\u3001\u4E0D\u62A5\u9519`;
|
|
9036
|
+
}
|
|
9037
|
+
issues.push({
|
|
9038
|
+
severity: "warn",
|
|
9039
|
+
path: fmtPath([...segs, k]),
|
|
9040
|
+
message,
|
|
9041
|
+
hint: `${alias ?? `\u662F\u4E0D\u662F\u60F3\u5199 \`${twin ?? near}\`\uFF1F`} ${registeredKeysHint(props)}`
|
|
9042
|
+
});
|
|
9043
|
+
}
|
|
9044
|
+
}
|
|
9045
|
+
}
|
|
9046
|
+
function validateMetaContent(metaPath2, content) {
|
|
9047
|
+
const issues = [];
|
|
9048
|
+
const kind = metaKindFromPath(metaPath2);
|
|
9049
|
+
const schema = kind ? META_SCHEMAS[kind] : void 0;
|
|
9050
|
+
const mk = () => ({
|
|
9051
|
+
kind,
|
|
9052
|
+
schemaKnown: schema != null,
|
|
9053
|
+
issues,
|
|
9054
|
+
get errors() {
|
|
9055
|
+
return issues.filter((i) => i.severity === "error");
|
|
9056
|
+
}
|
|
9057
|
+
});
|
|
9058
|
+
if (!isYamlMetaPath(metaPath2)) {
|
|
9059
|
+
issues.push({
|
|
9060
|
+
severity: "warn",
|
|
9061
|
+
path: "(\u6574\u4EFD\u6587\u4EF6)",
|
|
9062
|
+
message: "\u4E0D\u662F YAML \u6587\u4EF6\uFF0C\u672C\u6B21**\u6CA1\u6709\u505A\u4EFB\u4F55\u6821\u9A8C**\u2014\u2014\u5199\u4E0B\u53BB\u4E4B\u524D\u8BF7\u81EA\u5DF1\u786E\u8BA4\u5185\u5BB9"
|
|
9063
|
+
});
|
|
9064
|
+
return mk();
|
|
9065
|
+
}
|
|
9066
|
+
let doc;
|
|
9067
|
+
try {
|
|
9068
|
+
doc = yaml8.load(content);
|
|
9069
|
+
} catch (e) {
|
|
9070
|
+
const y = e;
|
|
9071
|
+
issues.push({
|
|
9072
|
+
severity: "error",
|
|
9073
|
+
path: "(\u6574\u4EFD\u6587\u4EF6)",
|
|
9074
|
+
message: `YAML \u89E3\u6790\u5931\u8D25\uFF1A${y.reason ?? y.message ?? String(e)}`,
|
|
9075
|
+
line: typeof y.mark?.line === "number" ? y.mark.line + 1 : void 0
|
|
9076
|
+
});
|
|
9077
|
+
return mk();
|
|
9078
|
+
}
|
|
9079
|
+
if (doc === null || doc === void 0) {
|
|
9080
|
+
issues.push({
|
|
9081
|
+
severity: "warn",
|
|
9082
|
+
path: "(\u6574\u4EFD\u6587\u4EF6)",
|
|
9083
|
+
message: "\u5185\u5BB9\u4E3A\u7A7A\u2014\u2014\u8FD9\u4F1A\u628A\u8BE5\u5C42\u7684\u8986\u76D6\u6E05\u6210\u7A7A overlay"
|
|
9084
|
+
});
|
|
9085
|
+
return mk();
|
|
9086
|
+
}
|
|
9087
|
+
if (!schema) {
|
|
9088
|
+
issues.push({
|
|
9089
|
+
severity: "warn",
|
|
9090
|
+
path: "(\u6574\u4EFD\u6587\u4EF6)",
|
|
9091
|
+
message: `\u6CA1\u6709\u5BF9\u5F97\u4E0A\u7684 schema\uFF08\u8BC6\u522B\u5230\u7684\u7C7B\u578B\uFF1A${kind ?? "\u672A\u77E5"}\uFF09\uFF0C\u672C\u6B21\u53EA\u505A\u4E86 YAML \u8BED\u6CD5\u68C0\u67E5`,
|
|
9092
|
+
hint: "\u5DF2\u767B\u8BB0\u7684\u7C7B\u578B\uFF1A" + Object.keys(META_SCHEMAS).join(", ")
|
|
9093
|
+
});
|
|
9094
|
+
return mk();
|
|
9095
|
+
}
|
|
9096
|
+
walk2(schema, schema, doc, [], kind, issues, 0);
|
|
9097
|
+
const rawLines = content.split("\n");
|
|
9098
|
+
for (const issue of issues) {
|
|
9099
|
+
if (issue.line != null) continue;
|
|
9100
|
+
const segs = issue.path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean).map((s) => /^\d+$/.test(s) ? Number(s) : s);
|
|
9101
|
+
const line = locateLine(rawLines, segs, doc);
|
|
9102
|
+
if (line != null) issue.line = line;
|
|
9103
|
+
}
|
|
9104
|
+
return mk();
|
|
9105
|
+
}
|
|
9106
|
+
function formatMetaIssues(result, indent2 = "") {
|
|
9107
|
+
return result.issues.map((i) => {
|
|
9108
|
+
const tag = i.severity === "error" ? "\u2717 \u9519\u8BEF" : "\u26A0 \u63D0\u9192";
|
|
9109
|
+
const where = i.line != null ? `\u7B2C ${i.line} \u884C \xB7 ${i.path}` : i.path;
|
|
9110
|
+
const hint = i.hint ? `
|
|
9111
|
+
${indent2} \u21B3 ${i.hint}` : "";
|
|
9112
|
+
return `${indent2}${tag} ${where}
|
|
9113
|
+
${indent2} ${i.message}${hint}`;
|
|
9114
|
+
}).join("\n");
|
|
9115
|
+
}
|
|
9116
|
+
function explainJacksonError(raw) {
|
|
9117
|
+
const m = /Cannot deserialize value of type `?([\w.$]+)`? from (\w+)/.exec(raw);
|
|
9118
|
+
const chain = /reference chain:\s*([^)]+)\)/.exec(raw);
|
|
9119
|
+
if (!m && !chain) return void 0;
|
|
9120
|
+
const lines = [];
|
|
9121
|
+
if (m) {
|
|
9122
|
+
const simple = (m[1] ?? "").split(".").pop();
|
|
9123
|
+
lines.push(`\u670D\u52A1\u7AEF\u8BFB\u4E0D\u52A8\u8FD9\u4EFD meta\uFF1A\u67D0\u4E2A\u5B57\u6BB5\u671F\u671B ${simple}\uFF0C\u62FF\u5230\u7684\u662F ${m[2] ?? "?"} \u503C\u3002`);
|
|
9124
|
+
}
|
|
9125
|
+
if (chain) {
|
|
9126
|
+
const chainText = chain[1] ?? "";
|
|
9127
|
+
const idx = /ArrayList\[(\d+)\]/.exec(chainText);
|
|
9128
|
+
const leaf = /(\w+)\["(\w+)"\]\s*$/.exec(chainText.trim());
|
|
9129
|
+
const parts = [];
|
|
9130
|
+
if (idx) parts.push(`\u7B2C ${Number(idx[1]) + 1} \u9879\uFF08\u6570\u7EC4\u4E0B\u6807 ${idx[1]}\uFF09`);
|
|
9131
|
+
if (leaf) parts.push(`\`${leaf[2]}\` \u8FD9\u4E2A\u952E\uFF08${leaf[1]}\uFF09`);
|
|
9132
|
+
if (parts.length > 0) lines.push(`\u4F4D\u7F6E\uFF1A${parts.join(" \u7684 ")}\u3002`);
|
|
9133
|
+
}
|
|
9134
|
+
lines.push(
|
|
9135
|
+
"\u26A0\uFE0F \u62A5\u9519\u91CC\u7684\u300Cnot found\u300D\u662F**\u8BFB\u4E0D\u52A8\u4E4B\u540E\u7684\u4E0B\u6E38\u8868\u73B0**\uFF0C\u4E0D\u662F\u300C\u6587\u4EF6\u4E0D\u5B58\u5728\u300D\u2014\u2014\u522B\u53BB\u627E\u6587\u4EF6\u3002"
|
|
9136
|
+
);
|
|
9137
|
+
return lines.join("\n");
|
|
9138
|
+
}
|
|
9139
|
+
|
|
5440
9140
|
// src/skills.ts
|
|
5441
|
-
import
|
|
9141
|
+
import yaml9, { JSON_SCHEMA as JSON_SCHEMA3 } from "js-yaml";
|
|
5442
9142
|
var CHIRON_BASE_CANDIDATES = ["/api", ""];
|
|
5443
9143
|
function looksLikeManifest(data) {
|
|
5444
9144
|
if (!data || typeof data !== "object") return false;
|
|
@@ -5577,7 +9277,7 @@ function parseSkillFrontmatter(markdown, skillId) {
|
|
|
5577
9277
|
if (!match) return {};
|
|
5578
9278
|
let frontmatter;
|
|
5579
9279
|
try {
|
|
5580
|
-
frontmatter =
|
|
9280
|
+
frontmatter = yaml9.load(match[1] ?? "", { schema: JSON_SCHEMA3 });
|
|
5581
9281
|
} catch (cause) {
|
|
5582
9282
|
throw new CliError({
|
|
5583
9283
|
code: "INVALID_ARGUMENT" /* INVALID_ARGUMENT */,
|
|
@@ -6381,6 +10081,14 @@ function writeFieldsIndex(layout, rows) {
|
|
|
6381
10081
|
|
|
6382
10082
|
// src/fde/recon/gates.ts
|
|
6383
10083
|
var WORDING = "\u672C\u6587\u4EF6\u767B\u8BB0\u7684\u662F**\u663E\u5F0F\u58F0\u660E**\u4E3A\u53EA\u8BFB\u7684\u52A8\u4F5C\u3002kit \u53EA\u80FD\u8D70 RBAC \u88C1\u526A\u540E\u7684 REST\u3001\u89C2\u6D4B\u7A97\u53E3\u6709\u9650\uFF0C\u56E0\u6B64\u4EFB\u4F55\u7ED3\u8BBA\u7684\u53E3\u5F84\u90FD\u662F\u300C\u5728\u58F0\u660E\u5F71\u54CD\u9762\u5185\u672A\u89C2\u6D4B\u5230\u53D8\u5316\u300D\uFF0C\u800C**\u4E0D\u662F**\u300C\u65E0\u526F\u4F5C\u7528\u300D\u3002guard=declared-only \u7684\u6761\u76EE\u8FDE\u670D\u52A1\u7AEF\u9759\u6001\u5B88\u536B\u90FD\u6CA1\u6709\uFF0C\u53EA\u6709\u4E00\u53E5\u58F0\u660E\u3002";
|
|
10084
|
+
var KIT_SCHEMA_VERSION_KEY = "_kitSchemaVersion";
|
|
10085
|
+
var GATES_SCHEMA_CHANGELOG = {
|
|
10086
|
+
1: "coverage \u65B0\u589E undetermined\uFF08\u4EA7\u54C1\u4FA7\u58F0\u660E effect=UNKNOWN\u3001**\u6CA1\u4EBA\u5224\u8FC7**\u5199\u4E0D\u5199\u5E93\u7684\u52A8\u4F5C\uFF0CADR-332 \u4E09\u6001\uFF09\u4EE5\u53CA\u5B83\u7684\u8BB0\u8D26/\u5B9A\u4E49\u57DF\u5B57\u6BB5 actionsSeen / actionsGated / actionsWriting / actionsWithEffect / actionAccountingBalanced"
|
|
10087
|
+
};
|
|
10088
|
+
var GATES_SCHEMA_VERSION = 1;
|
|
10089
|
+
function gatesSchemaChangesSince(from) {
|
|
10090
|
+
return Object.entries(GATES_SCHEMA_CHANGELOG).filter(([v]) => Number(v) > from && Number(v) <= GATES_SCHEMA_VERSION).map(([v, what]) => `schema ${v}\uFF1A${what}`).join("\uFF1B");
|
|
10091
|
+
}
|
|
6384
10092
|
var GUARD_ARCH = "declared+arch-guard";
|
|
6385
10093
|
var GUARD_DECLARED_ONLY = "declared-only";
|
|
6386
10094
|
var ARCH_GUARDED_SOURCE = "java";
|
|
@@ -6393,6 +10101,10 @@ var REJECT_NOTES = {
|
|
|
6393
10101
|
"malformed-key": "\u52A8\u4F5C\u6CA1\u6709\u53EF\u7528\u7684 key \u2014\u2014 \u6CA1\u6709 key \u5C31\u65E0\u6CD5\u8C03\u7528\uFF0C\u4E5F\u65E0\u6CD5\u4E0E\u4EA7\u54C1\u4FA7\u5BF9\u8D26",
|
|
6394
10102
|
"malformed-action": "\u52A8\u4F5C\u6761\u76EE\u4E0D\u662F\u5BF9\u8C61\uFF0C\u65E0\u6CD5\u5224\u8BFB\u5B83\u662F\u4E0D\u662F\u53EA\u8BFB\u95F8"
|
|
6395
10103
|
};
|
|
10104
|
+
var UNDETERMINED_NOTES = {
|
|
10105
|
+
"declared-unknown": "\u4EA7\u54C1\u4FA7\u628A\u8FD9\u4E2A\u52A8\u4F5C\u58F0\u660E\u6210 effect=UNKNOWN\uFF1A**\u6CA1\u4EBA\u5224\u8FC7**\u5B83\u5199\u4E0D\u5199\u5E93\u3002\u5B83\u65E2\u4E0D\u662F\u95F8\uFF08\u4E0D\u80FD\u514D\u786E\u8BA4\u6267\u884C\uFF09\uFF0C\u4E5F\u4E0D\u662F rejected\uFF08\u90A3\u662F**\u5224\u8FC7**\u3001\u53EA\u662F\u6CA1\u901A\u8FC7 fail-closed \u5173\uFF09\u3002\u4E0B\u4E00\u6B65\u5728\u4EA7\u54C1\u4FA7\u2014\u2014\u7ED9\u8FD9\u4E2A @ClassAction \u628A effect \u5224\u6389\uFF0C\u800C\u4E0D\u662F\u5728 kit \u8FD9\u8FB9\u653E\u5BBD",
|
|
10106
|
+
"unrecognized-effect": "effect \u7684\u53D6\u503C\u4E0D\u5728 READ_ONLY / WRITES / UNKNOWN \u4E09\u6001\u5185\uFF08\u62FC\u5199\u6F02\u79FB\uFF1F\u670D\u52A1\u7AEF\u6BD4\u672C kit \u65B0\u3001\u591A\u4E86\u4E00\u6001\uFF1F\uFF09\u3002fail-closed\uFF1A\u4E00\u5F8B**\u6309 UNKNOWN \u5904\u7F6E**\u5E76\u539F\u6837\u7559\u4E0B\u8FD9\u4E2A\u503C\uFF0C\u4E0D\u731C\u6210\u53EA\u8BFB\u3001\u4E5F\u4E0D\u9759\u9ED8\u4E22\u6389\u3002\u4E0B\u4E00\u6B65\u662F\u62FF\u672C\u6761\u7684 effect \u539F\u503C\u53BB\u5BF9\u4EA7\u54C1\u4FA7\u7684 ActionEffect \u5B9A\u4E49\uFF0C\u5FC5\u8981\u65F6\u5347\u7EA7 kit"
|
|
10107
|
+
};
|
|
6396
10108
|
function actionsPath(modelKey, state = "") {
|
|
6397
10109
|
const base = `/api/models/${modelKey}/actions`;
|
|
6398
10110
|
if (!state) return base;
|
|
@@ -6401,13 +10113,11 @@ function actionsPath(modelKey, state = "") {
|
|
|
6401
10113
|
function isRecord(v) {
|
|
6402
10114
|
return Boolean(v) && typeof v === "object" && !Array.isArray(v);
|
|
6403
10115
|
}
|
|
10116
|
+
function keyOrNull(key) {
|
|
10117
|
+
return typeof key === "string" && key ? key : null;
|
|
10118
|
+
}
|
|
6404
10119
|
function reject(out, model, key, reason) {
|
|
6405
|
-
out.push({
|
|
6406
|
-
model,
|
|
6407
|
-
key: typeof key === "string" && key ? key : null,
|
|
6408
|
-
reason,
|
|
6409
|
-
note: REJECT_NOTES[reason]
|
|
6410
|
-
});
|
|
10120
|
+
out.push({ model, key: keyOrNull(key), reason, note: REJECT_NOTES[reason] });
|
|
6411
10121
|
}
|
|
6412
10122
|
async function collectActionGates(probe, modelKeys2, state = "") {
|
|
6413
10123
|
const keys = [...new Set(modelKeys2)];
|
|
@@ -6416,7 +10126,11 @@ async function collectActionGates(probe, modelKeys2, state = "") {
|
|
|
6416
10126
|
const results = probe.getMany ? await probe.getMany([...paths.keys()]) : await sequentialGet(probe, [...paths.keys()]);
|
|
6417
10127
|
const gates = [];
|
|
6418
10128
|
const rejected = [];
|
|
10129
|
+
const undetermined = [];
|
|
6419
10130
|
const unavailable = [];
|
|
10131
|
+
let actionsSeen = 0;
|
|
10132
|
+
let actionsWriting = 0;
|
|
10133
|
+
let actionsWithEffect = 0;
|
|
6420
10134
|
const sources = /* @__PURE__ */ new Set();
|
|
6421
10135
|
const statesEchoed = /* @__PURE__ */ new Set();
|
|
6422
10136
|
let noStateEcho = 0;
|
|
@@ -6452,6 +10166,7 @@ async function collectActionGates(probe, modelKeys2, state = "") {
|
|
|
6452
10166
|
if (echoed === null) noStateEcho += 1;
|
|
6453
10167
|
else statesEchoed.add(echoed);
|
|
6454
10168
|
for (const action3 of body.actions) {
|
|
10169
|
+
actionsSeen += 1;
|
|
6455
10170
|
if (!isRecord(action3)) {
|
|
6456
10171
|
reject(rejected, model, null, "malformed-action");
|
|
6457
10172
|
continue;
|
|
@@ -6460,7 +10175,26 @@ async function collectActionGates(probe, modelKeys2, state = "") {
|
|
|
6460
10175
|
for (const c of cands) {
|
|
6461
10176
|
if (isRecord(c) && typeof c.source === "string" && c.source) sources.add(c.source);
|
|
6462
10177
|
}
|
|
6463
|
-
|
|
10178
|
+
const effectClass = classifyEffect(action3.effect);
|
|
10179
|
+
if (effectClass !== "absent") actionsWithEffect += 1;
|
|
10180
|
+
if (effectClass === "declared-unknown" || effectClass === "unrecognized-effect") {
|
|
10181
|
+
undetermined.push({
|
|
10182
|
+
model,
|
|
10183
|
+
key: keyOrNull(action3.key),
|
|
10184
|
+
effect: action3.effect,
|
|
10185
|
+
reason: effectClass,
|
|
10186
|
+
note: UNDETERMINED_NOTES[effectClass]
|
|
10187
|
+
});
|
|
10188
|
+
continue;
|
|
10189
|
+
}
|
|
10190
|
+
if (effectClass === "writes") {
|
|
10191
|
+
actionsWriting += 1;
|
|
10192
|
+
continue;
|
|
10193
|
+
}
|
|
10194
|
+
if (action3.readOnly !== true) {
|
|
10195
|
+
actionsWriting += 1;
|
|
10196
|
+
continue;
|
|
10197
|
+
}
|
|
6464
10198
|
const key = action3.key;
|
|
6465
10199
|
if (typeof key !== "string" || !key) {
|
|
6466
10200
|
reject(rejected, model, key, "malformed-key");
|
|
@@ -6525,14 +10259,24 @@ async function collectActionGates(probe, modelKeys2, state = "") {
|
|
|
6525
10259
|
accountingBalanced: keys.length === answered + unavailable.length,
|
|
6526
10260
|
unavailable,
|
|
6527
10261
|
rejected,
|
|
10262
|
+
undetermined,
|
|
10263
|
+
actionsSeen,
|
|
10264
|
+
actionsGated: gates.length,
|
|
10265
|
+
actionsWriting,
|
|
10266
|
+
actionsWithEffect,
|
|
10267
|
+
// 前提显式断言:不平 ⇒ 有 action 落在四个格子之外,这几个数就都不能用。
|
|
10268
|
+
actionAccountingBalanced: actionsSeen === gates.length + rejected.length + undetermined.length + actionsWriting,
|
|
6528
10269
|
endpointGates: false,
|
|
6529
10270
|
// 普通 Controller 端点闸不在本产物内
|
|
6530
|
-
note: "scope \u6052\u4E3A state-scoped\uFF1Astate \u4E0D\u53EF\u679A\u4E3E\uFF0C\u672C\u4EA7\u7269\u53EA\u8986\u76D6 stateRequested \u8BF7\u6C42\u5230\u7684\u90A3\u4E00\u4E2A\uFF1Bunavailable = \u6CA1\u626B\u6210\u7684\u6A21\u578B\uFF08\u4E0E\u300C\u8FD9\u4E2A\u6A21\u578B\u6CA1\u6709\u53EA\u8BFB\u95F8\u300D\u662F\u4E24\u56DE\u4E8B\uFF09\uFF1Brejected = \u58F0\u660E\u4E86\u53EA\u8BFB\u5374\u88AB fail-closed \u89C4\u5219\u62D2\u6389\u7684\u52A8\u4F5C\uFF0C\u5B83\u4EEC\u4E0D\u662F\u95F8\uFF1Bsources = \u672C\u8F6E\u89C1\u5230\u7684**\u5168\u90E8** action\uFF08\u542B\u5199\u52A8\u4F5C\u3001\u542B\u88AB rejected \u7684\u6761\u76EE\uFF09\u7684\u5019\u9009 source \u53BB\u91CD\uFF0C**\u4E0D\u662F**\u95F8\u7684\u6765\u6E90\uFF1B\u95F8\u81EA\u5DF1\u7684\u6765\u6E90\u770B\u6BCF\u6761 gate \u7684 source \u5B57\u6BB5"
|
|
10271
|
+
note: "scope \u6052\u4E3A state-scoped\uFF1Astate \u4E0D\u53EF\u679A\u4E3E\uFF0C\u672C\u4EA7\u7269\u53EA\u8986\u76D6 stateRequested \u8BF7\u6C42\u5230\u7684\u90A3\u4E00\u4E2A\uFF1Bunavailable = \u6CA1\u626B\u6210\u7684\u6A21\u578B\uFF08\u4E0E\u300C\u8FD9\u4E2A\u6A21\u578B\u6CA1\u6709\u53EA\u8BFB\u95F8\u300D\u662F\u4E24\u56DE\u4E8B\uFF09\uFF1Brejected = \u58F0\u660E\u4E86\u53EA\u8BFB\u5374\u88AB fail-closed \u89C4\u5219\u62D2\u6389\u7684\u52A8\u4F5C\uFF0C\u5B83\u4EEC\u4E0D\u662F\u95F8\uFF1Bsources = \u672C\u8F6E\u89C1\u5230\u7684**\u5168\u90E8** action\uFF08\u542B\u5199\u52A8\u4F5C\u3001\u542B\u88AB rejected \u7684\u6761\u76EE\uFF09\u7684\u5019\u9009 source \u53BB\u91CD\uFF0C**\u4E0D\u662F**\u95F8\u7684\u6765\u6E90\uFF1B\u95F8\u81EA\u5DF1\u7684\u6765\u6E90\u770B\u6BCF\u6761 gate \u7684 source \u5B57\u6BB5\uFF1Bundetermined = \u4EA7\u54C1\u4FA7\u58F0\u660E\u4E3A UNKNOWN\uFF08**\u6CA1\u4EBA\u5224\u8FC7**\uFF09\u7684\u52A8\u4F5C\uFF0C\u4E0E rejected\uFF08**\u5224\u8FC7**\u3001\u53EA\u662F\u6CA1\u901A\u8FC7 fail-closed \u5173\uFF09\u548C\u5199\u52A8\u4F5C\u90FD\u4E0D\u662F\u4E00\u56DE\u4E8B\uFF1Beffect \u952E\u7F3A\u5931\uFF08\u670D\u52A1\u7AEF\u8FD8\u6CA1\u6709\u4E09\u6001\u8FD9\u4E2A\u6982\u5FF5\uFF09\u65F6\u56DE\u843D readOnly \u65E7\u5224\u5B9A\u3001**\u4E0D**\u8BB0\u8FDB undetermined\uFF0C\u6240\u4EE5 actionsWithEffect=0 \u65F6 undetermined \u6052\u4E3A\u7A7A\u2014\u2014\u90A3\u662F\u300C\u8FD9\u4E2A\u670D\u52A1\u7AEF\u6CA1\u6709\u8FD9\u4E2A\u6982\u5FF5\u300D\uFF0C\u4E0D\u662F\u300C\u5168\u90FD\u5224\u8FC7\u4E86\u300D\uFF1BactionAccountingBalanced \u65AD\u7684\u662F actionsSeen == actionsGated + rejected \u6761\u6570 + undetermined \u6761\u6570 + actionsWriting"
|
|
6531
10272
|
};
|
|
6532
10273
|
return { gates, coverage };
|
|
6533
10274
|
}
|
|
6534
10275
|
function writeGates(layout, gates, coverage) {
|
|
6535
10276
|
return layout.writeJson("gates.json", {
|
|
10277
|
+
// 🔴 排在**第一个键**:顾问 `head` 一眼、下游 `grep` 一行就能知道手上这份是什么形状的。
|
|
10278
|
+
// 缺了它就得靠「有没有 coverage.undetermined」反推版本,而那正是本键要消灭的那种推断。
|
|
10279
|
+
[KIT_SCHEMA_VERSION_KEY]: GATES_SCHEMA_VERSION,
|
|
6536
10280
|
wording: WORDING,
|
|
6537
10281
|
coverage,
|
|
6538
10282
|
crawled: true,
|
|
@@ -7681,6 +11425,27 @@ function renderRound(result) {
|
|
|
7681
11425
|
return `${lines.join("\n")}
|
|
7682
11426
|
`;
|
|
7683
11427
|
}
|
|
11428
|
+
var SCHEMA_RECRAWL_NEXT = "\u4E0B\u4E00\u6B65\uFF1A\u8DD1\u4E00\u6B21**\u5168\u91CF** `hcm delivery recon`\uFF08\u628A `--model` \u53BB\u6389\uFF09\uFF0C\u6574\u4EFD\u57FA\u7EBF\u624D\u90FD\u51FA\u81EA\u672C\u7248 kit\u3002";
|
|
11429
|
+
function carriedGatesSchemaProblem(oldGates) {
|
|
11430
|
+
if (!isRecord5(oldGates)) {
|
|
11431
|
+
const shape = Array.isArray(oldGates) ? "list" : oldGates === null ? "null" : typeof oldGates;
|
|
11432
|
+
return `gates.json: \u4E0A\u4E00\u8F6E\u7684\u95F8\u8868\u8F7D\u8377\u662F ${shape} \u4E0D\u662F\u5BF9\u8C61\uFF0C\u65E2\u8BFB\u4E0D\u51FA schema \u7248\u672C\u3001\u4E5F\u4E00\u6761\u95F8\u90FD\u6CBF\u7528\u4E0D\u4E86\uFF08\u672C\u8F6E\u7684 gates \u6570\u7EC4\u91CC\u53EA\u6709\u8FD9\u4E00\u8F6E\u771F\u722C\u5230\u7684\uFF09\u3002${SCHEMA_RECRAWL_NEXT}`;
|
|
11433
|
+
}
|
|
11434
|
+
const raw = KIT_SCHEMA_VERSION_KEY in oldGates ? oldGates[KIT_SCHEMA_VERSION_KEY] : void 0;
|
|
11435
|
+
const stale = (from, seenAs) => `gates.json: \u6CBF\u7528\u7684\u4E0A\u4E00\u8F6E\u95F8\u8868${seenAs}\uFF0C\u6BD4\u672C kit \u5199\u7684 schema ${GATES_SCHEMA_VERSION} \u65E7\u3002\u4E2D\u95F4\u52A0\u4E86 \u2014\u2014 ${gatesSchemaChangesSince(from)}\u3002\u{1F534} \u90A3\u4EFD\u65E7\u4EA7\u7269\u91CC**\u6839\u672C\u6CA1\u6709**\u8FD9\u4E00\u8282\uFF0C\u800C\u300C\u6CA1\u6709\u8FD9\u4E00\u8282\u300D\u4E0E\u300C\u8FD9\u4E00\u8F6E\u4E00\u6761\u90FD\u6CA1\u6709\u300D\u5728\u4EA7\u7269\u91CC\u540C\u503C\uFF0C\u5B9E\u60C5\u662F**\u6CA1\u7B97\u8FC7**\uFF1A\u522B\u628A\u5B83\u8BFB\u6210\u300C\u6CA1\u95EE\u9898\u300D\u3002\u800C\u672C\u8F6E\u7684 coverage \u53EA\u63CF\u8FF0**\u672C\u8F6E\u771F\u722C\u7684**\u90A3\u4E9B\u6A21\u578B\uFF08\u89C1 coverage.${KIT_CARRY_OVER_KEY}.note\uFF09\uFF0C\u6CBF\u7528\u8FDB\u6765\u7684\u6A21\u578B\u8FD9\u4E00\u8F6E\u538B\u6839\u6CA1\u91CD\u626B action \u21D2 \u5B83\u4EEC\u6709\u6CA1\u6709\u300C\u6CA1\u4EBA\u5224\u8FC7\u300D\u7684\u52A8\u4F5C\uFF0C\u4E24\u8F6E\u52A0\u8D77\u6765\u4ECD\u7136\u7B54\u4E0D\u51FA\u3002${SCHEMA_RECRAWL_NEXT}`;
|
|
11436
|
+
if (raw === void 0) {
|
|
11437
|
+
return stale(0, `**\u6CA1\u6709 \`${KIT_SCHEMA_VERSION_KEY}\` \u8FD9\u4E2A\u952E**\uFF08\u8BB0\u4F5C 0\uFF1A\u672C\u952E\u51FA\u73B0\u4E4B\u524D\u7684 kit \u722C\u7684\uFF09`);
|
|
11438
|
+
}
|
|
11439
|
+
if (typeof raw !== "number" || !Number.isFinite(raw)) {
|
|
11440
|
+
const preview2 = JSON.stringify(raw);
|
|
11441
|
+
return `gates.json: \u6CBF\u7528\u7684\u4E0A\u4E00\u8F6E\u95F8\u8868\u5E26\u7740 \`${KIT_SCHEMA_VERSION_KEY}\`\uFF0C\u4F46\u5B83\u7684\u503C\u662F ${preview2.length > 60 ? `${preview2.slice(0, 60)}\u2026` : preview2}\uFF0C\u4E0D\u662F\u6570\u5B57 \u2014\u2014 **\u5224\u4E0D\u4E86**\u5B83\u662F\u54EA\u4E00\u7248\uFF0C\u56E0\u6B64\u4E5F\u8BF4\u4E0D\u51FA\u5B83\u7F3A\u54EA\u4E9B\u5B57\u6BB5\u3002\uFF08\u8FD9\u4E00\u6863\u5FC5\u987B\u5355\u5217\uFF1A\u628A\u5B83\u5F53\u6210\u300C\u7248\u672C\u4E00\u81F4\u300D\u653E\u8FC7\u53BB\uFF0C\u4E0E\u771F\u7684\u4E00\u81F4\u8F93\u51FA\u540C\u503C\u3002\uFF09${SCHEMA_RECRAWL_NEXT}`;
|
|
11442
|
+
}
|
|
11443
|
+
if (raw === GATES_SCHEMA_VERSION) return null;
|
|
11444
|
+
if (raw > GATES_SCHEMA_VERSION) {
|
|
11445
|
+
return `gates.json: \u6CBF\u7528\u7684\u4E0A\u4E00\u8F6E\u95F8\u8868\u662F schema ${raw}\uFF0C**\u6BD4\u672C kit \u7684 ${GATES_SCHEMA_VERSION} \u65B0** \u2014\u2014 \u8FD9\u4EFD\u57FA\u7EBF\u662F\u66F4\u65B0\u7248\u672C\u7684 kit \u722C\u7684\uFF0C\u672C kit \u8BFB\u4E0D\u61C2\u5B83\u591A\u51FA\u6765\u7684\u90E8\u5206\u3002\u26A0\uFE0F \u800C\u672C\u8F6E**\u5DF2\u7ECF**\u6309\u672C\u7248 schema \u628A gates.json \u6574\u4EFD\u91CD\u5199\u4E86\uFF1A\u65B0\u7248\u591A\u51FA\u6765\u7684\u9876\u5C42\u4FE1\u606F\u4E0D\u4F1A\u88AB\u4FDD\u7559\u3002\u4E0B\u4E00\u6B65\uFF1A\u628A kit \u5347\u5230\u4E0D\u4F4E\u4E8E\u90A3\u4E00\u7248\uFF08\`npm i -g @hcmai/cli@latest\`\uFF09\u518D\u91CD\u8DD1\uFF0C\u522B\u518D\u62FF\u65E7 kit \u5F80\u8FD9\u4EFD\u57FA\u7EBF\u4E0A\u5199\u3002`;
|
|
11446
|
+
}
|
|
11447
|
+
return stale(raw, `\u662F schema ${raw}`);
|
|
11448
|
+
}
|
|
7684
11449
|
function collectCarryOver(layout, freshMetas) {
|
|
7685
11450
|
const problems = [];
|
|
7686
11451
|
const carriedMetas = {};
|
|
@@ -7714,6 +11479,9 @@ function collectCarryOver(layout, freshMetas) {
|
|
|
7714
11479
|
const oldGates = readJsonSoft(path9.join(layout.dir, "gates.json"));
|
|
7715
11480
|
if (oldGates === void 0) {
|
|
7716
11481
|
problems.push("gates.json: \u6CA1\u6709\u53EF\u6CBF\u7528\u7684\u4E0A\u4E00\u8F6E\u95F8\u8868\uFF08\u4E0D\u5B58\u5728\u6216\u8BFB\u4E0D\u51FA JSON\uFF09");
|
|
11482
|
+
} else {
|
|
11483
|
+
const stale = carriedGatesSchemaProblem(oldGates);
|
|
11484
|
+
if (stale) problems.push(stale);
|
|
7717
11485
|
}
|
|
7718
11486
|
const oldList = isRecord5(oldGates) && Array.isArray(oldGates.gates) ? oldGates.gates : [];
|
|
7719
11487
|
for (const g of oldList) {
|
|
@@ -8685,7 +12453,7 @@ function attr(attrs, name) {
|
|
|
8685
12453
|
for (const [k, v] of Object.entries(attrs)) if (localName(k) === name) return v;
|
|
8686
12454
|
return void 0;
|
|
8687
12455
|
}
|
|
8688
|
-
function
|
|
12456
|
+
function walk3(text2, h) {
|
|
8689
12457
|
const p = saxParser(true, { trim: false, normalize: false, position: false });
|
|
8690
12458
|
p.onopentag = (node) => h.open?.(localName(node.name), node.attributes);
|
|
8691
12459
|
p.ontext = (t) => h.text?.(t);
|
|
@@ -8695,7 +12463,7 @@ function walk2(text2, h) {
|
|
|
8695
12463
|
}
|
|
8696
12464
|
function parseRels(text2) {
|
|
8697
12465
|
const out = [];
|
|
8698
|
-
|
|
12466
|
+
walk3(text2, {
|
|
8699
12467
|
open(local, attrs) {
|
|
8700
12468
|
if (local !== "Relationship") return;
|
|
8701
12469
|
const id = attr(attrs, "Id");
|
|
@@ -8707,7 +12475,7 @@ function parseRels(text2) {
|
|
|
8707
12475
|
}
|
|
8708
12476
|
function parseWorkbookSheets(text2) {
|
|
8709
12477
|
const out = [];
|
|
8710
|
-
|
|
12478
|
+
walk3(text2, {
|
|
8711
12479
|
open(local, attrs) {
|
|
8712
12480
|
if (local !== "sheet") return;
|
|
8713
12481
|
const name = attr(attrs, "name");
|
|
@@ -8723,7 +12491,7 @@ function parseSharedStrings(text2) {
|
|
|
8723
12491
|
let inRPh = 0;
|
|
8724
12492
|
let inT = false;
|
|
8725
12493
|
let buf = "";
|
|
8726
|
-
|
|
12494
|
+
walk3(text2, {
|
|
8727
12495
|
open(local) {
|
|
8728
12496
|
if (local === "si") {
|
|
8729
12497
|
depth = 1;
|
|
@@ -8886,7 +12654,7 @@ function readSheetText(text2, shared, headerRow, filename, notes) {
|
|
|
8886
12654
|
}
|
|
8887
12655
|
cur = null;
|
|
8888
12656
|
};
|
|
8889
|
-
|
|
12657
|
+
walk3(text2, {
|
|
8890
12658
|
open(local, attrs) {
|
|
8891
12659
|
if (local === "row") {
|
|
8892
12660
|
const r = attr(attrs, "r");
|
|
@@ -16862,7 +20630,7 @@ function scan(skillRoot, aclass, facts, options = {}) {
|
|
|
16862
20630
|
message: `\u626B\u63CF\u9762 ${skillRoot} \u4E0D\u662F\u4E00\u4E2A\u76EE\u5F55 \u21D2 \u4E00\u4E2A\u5B57\u90FD\u6CA1\u626B\u8FC7\uFF08\u8FD9\u4E0D\u662F\u300C\u626B\u8FC7\u3001\u5E72\u51C0\u300D\uFF09`
|
|
16863
20631
|
});
|
|
16864
20632
|
} else {
|
|
16865
|
-
const walked =
|
|
20633
|
+
const walked = walk4(skillRoot);
|
|
16866
20634
|
files = walked.files;
|
|
16867
20635
|
for (const link of walked.unscannedLinks) {
|
|
16868
20636
|
let target;
|
|
@@ -16926,7 +20694,7 @@ function isDirectory(target) {
|
|
|
16926
20694
|
return false;
|
|
16927
20695
|
}
|
|
16928
20696
|
}
|
|
16929
|
-
function
|
|
20697
|
+
function walk4(root) {
|
|
16930
20698
|
const files = [];
|
|
16931
20699
|
const unscannedLinks = [];
|
|
16932
20700
|
const visit = (dir) => {
|
|
@@ -18143,6 +21911,9 @@ export {
|
|
|
18143
21911
|
DRY_RUN_NOTE,
|
|
18144
21912
|
DRY_RUN_TAIL,
|
|
18145
21913
|
DriftDetected,
|
|
21914
|
+
EFFECT_READ_ONLY,
|
|
21915
|
+
EFFECT_UNKNOWN,
|
|
21916
|
+
EFFECT_WRITES,
|
|
18146
21917
|
ENDPOINT_PREFIXES,
|
|
18147
21918
|
ENTRY_SCOPE,
|
|
18148
21919
|
ENUM_ELEMENT_KEYS,
|
|
@@ -18190,6 +21961,7 @@ export {
|
|
|
18190
21961
|
META_CACHE_PATH,
|
|
18191
21962
|
META_JOURNAL_FILE,
|
|
18192
21963
|
META_PATH,
|
|
21964
|
+
META_SCHEMA_SOURCE_COMMIT,
|
|
18193
21965
|
STEPS2 as META_VERIFY_STEPS,
|
|
18194
21966
|
STEP_DIFF2 as META_VERIFY_STEP_DIFF,
|
|
18195
21967
|
STEPS as META_WRITE_STEPS,
|
|
@@ -18339,6 +22111,7 @@ export {
|
|
|
18339
22111
|
checkPremise,
|
|
18340
22112
|
checkReds,
|
|
18341
22113
|
cjkRunAt,
|
|
22114
|
+
classifyEffect,
|
|
18342
22115
|
classifyMessage,
|
|
18343
22116
|
classifyStatus,
|
|
18344
22117
|
clearMetaCache,
|
|
@@ -18382,6 +22155,7 @@ export {
|
|
|
18382
22155
|
existingJournalStop,
|
|
18383
22156
|
exitCode,
|
|
18384
22157
|
exitCodeFor,
|
|
22158
|
+
explainJacksonError,
|
|
18385
22159
|
extractNextSteps,
|
|
18386
22160
|
factsIndex,
|
|
18387
22161
|
fetchConversationTimeline,
|
|
@@ -18398,6 +22172,7 @@ export {
|
|
|
18398
22172
|
flattenSkills,
|
|
18399
22173
|
foldConfusables,
|
|
18400
22174
|
foldedNoteFor,
|
|
22175
|
+
formatMetaIssues,
|
|
18401
22176
|
formatMiniVerifyReport,
|
|
18402
22177
|
formatObject,
|
|
18403
22178
|
formatRows,
|
|
@@ -18456,6 +22231,7 @@ export {
|
|
|
18456
22231
|
matchSkills,
|
|
18457
22232
|
matchedDimensions,
|
|
18458
22233
|
metaFileUrl,
|
|
22234
|
+
metaKindFromPath,
|
|
18459
22235
|
migrateLegacyProfiles,
|
|
18460
22236
|
modelEntries,
|
|
18461
22237
|
modelKeys,
|
|
@@ -18547,6 +22323,7 @@ export {
|
|
|
18547
22323
|
unguardedKinds,
|
|
18548
22324
|
update,
|
|
18549
22325
|
uploadDocument,
|
|
22326
|
+
validateMetaContent,
|
|
18550
22327
|
validateMiniProject,
|
|
18551
22328
|
validateScriptManifest,
|
|
18552
22329
|
valueState,
|