@hcmai/sdk 0.21.14 → 0.22.1
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 +66 -3
- package/dist/index.js +659 -107
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4501,6 +4501,15 @@ function commandFor(decision, interactionId, conversationId) {
|
|
|
4501
4501
|
}
|
|
4502
4502
|
}
|
|
4503
4503
|
|
|
4504
|
+
// src/mini/runtime-version.ts
|
|
4505
|
+
var MINI_RUNTIME_SDK_VERSION = "0.1.0";
|
|
4506
|
+
var MINI_SEMVER_PATTERN = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)(?:\.(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*))*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/;
|
|
4507
|
+
function miniRuntimeSdkVersion(value = MINI_RUNTIME_SDK_VERSION) {
|
|
4508
|
+
if (!MINI_SEMVER_PATTERN.test(value))
|
|
4509
|
+
throw new Error("runtimeSdkVersion must be a valid semver, for example 0.1.0");
|
|
4510
|
+
return value;
|
|
4511
|
+
}
|
|
4512
|
+
|
|
4504
4513
|
// src/mini/types.ts
|
|
4505
4514
|
var MINI_CONTEXT_FILE = "hcm.context.json";
|
|
4506
4515
|
var MINI_STATE_DIR = ".hcm";
|
|
@@ -4508,7 +4517,6 @@ var MINI_PULL_MANIFEST_FILE = "mini-manifest.json";
|
|
|
4508
4517
|
var MINI_REMOTE_ROOT = "mini_apps";
|
|
4509
4518
|
var MINI_CONTEXT_KIND = "hcm-mini-app";
|
|
4510
4519
|
var MINI_CONTEXT_VERSION = 1;
|
|
4511
|
-
var MINI_APP_RUNTIME_SDK_VERSION = "0.1.0";
|
|
4512
4520
|
|
|
4513
4521
|
// src/mini/workspace-files.ts
|
|
4514
4522
|
var MODEL = "TenantExtensionWorkspaceFile";
|
|
@@ -4547,6 +4555,12 @@ async function createWorkspaceFile(http, workspaceKey, relativePath, content) {
|
|
|
4547
4555
|
});
|
|
4548
4556
|
return toWorkspaceFileItem(resp.data);
|
|
4549
4557
|
}
|
|
4558
|
+
async function validateWorkspaceFiles(http, workspaceKey, files, deletedPaths = []) {
|
|
4559
|
+
const resp = await http.post(`/api/models/${MODEL}/action/validate-files`, {
|
|
4560
|
+
form: { workspaceKey, files, deletedPaths }
|
|
4561
|
+
});
|
|
4562
|
+
return toWorkspacePreflightResult(unwrapActionData(resp.data));
|
|
4563
|
+
}
|
|
4550
4564
|
async function deleteWorkspaceFile(http, fileId) {
|
|
4551
4565
|
await http.delete(`/api/models/${MODEL}/${encodeURIComponent(fileId)}`);
|
|
4552
4566
|
}
|
|
@@ -4587,6 +4601,36 @@ function toWorkspaceFileContent(value) {
|
|
|
4587
4601
|
fileType: stringOrUndefined(obj.fileType)
|
|
4588
4602
|
};
|
|
4589
4603
|
}
|
|
4604
|
+
function toWorkspacePreflightResult(value) {
|
|
4605
|
+
const obj = asRecord(value);
|
|
4606
|
+
if (typeof obj.ok !== "boolean" || typeof obj.checked !== "number" || !Array.isArray(obj.issues)) {
|
|
4607
|
+
throw new CliError({
|
|
4608
|
+
code: "NETWORK_ERROR" /* NETWORK_ERROR */,
|
|
4609
|
+
message: "\u5DE5\u4F5C\u533A validate-files \u54CD\u5E94\u7F3A\u5C11 ok / checked / issues\uFF0C\u65E0\u6CD5\u5224\u65AD\u9884\u68C0\u7ED3\u8BBA\u3002",
|
|
4610
|
+
context: {
|
|
4611
|
+
reason: "INVALID_WORKSPACE_PREFLIGHT_RESULT",
|
|
4612
|
+
nextStep: "\u786E\u8BA4\u670D\u52A1\u7AEF\u7248\u672C\u5DF2\u5305\u542B validate-files\uFF08HCMNX-328\uFF09\uFF1B\u4E0D\u80FD\u628A\u7F3A\u5931\u7684\u7ED3\u8BBA\u5F53\u4F5C\u9884\u68C0\u901A\u8FC7\u3002"
|
|
4613
|
+
}
|
|
4614
|
+
});
|
|
4615
|
+
}
|
|
4616
|
+
return {
|
|
4617
|
+
ok: obj.ok,
|
|
4618
|
+
workspaceKey: stringOr(obj.workspaceKey),
|
|
4619
|
+
checked: obj.checked,
|
|
4620
|
+
checkedPaths: Array.isArray(obj.checkedPaths) ? obj.checkedPaths.map((p) => stringOr(p)) : [],
|
|
4621
|
+
issues: obj.issues.map((raw) => {
|
|
4622
|
+
const issue = asRecord(raw);
|
|
4623
|
+
return {
|
|
4624
|
+
path: issue.path == null ? null : stringOr(issue.path),
|
|
4625
|
+
errCode: stringOrUndefined(issue.errCode),
|
|
4626
|
+
message: stringOr(issue.message),
|
|
4627
|
+
description: stringOrUndefined(issue.description),
|
|
4628
|
+
field: stringOrUndefined(issue.field),
|
|
4629
|
+
data: issue.data
|
|
4630
|
+
};
|
|
4631
|
+
})
|
|
4632
|
+
};
|
|
4633
|
+
}
|
|
4590
4634
|
function asRecord(value) {
|
|
4591
4635
|
return value && typeof value === "object" ? value : {};
|
|
4592
4636
|
}
|
|
@@ -4684,7 +4728,7 @@ function buildMiniAppTemplateFiles(args) {
|
|
|
4684
4728
|
code: args.appCode,
|
|
4685
4729
|
name: displayName,
|
|
4686
4730
|
version: SDK_VERSION,
|
|
4687
|
-
sdkVersion:
|
|
4731
|
+
sdkVersion: miniRuntimeSdkVersion(args.runtimeSdkVersion),
|
|
4688
4732
|
surfaces: ["embedded", "standalone"],
|
|
4689
4733
|
defaultSurface: args.defaultSurface,
|
|
4690
4734
|
entry: { html: "index.html", css: "index.css", js: "index.js" },
|
|
@@ -4712,7 +4756,8 @@ function buildMiniAppTemplateFiles(args) {
|
|
|
4712
4756
|
];
|
|
4713
4757
|
}
|
|
4714
4758
|
function templateHtml(templateKind, appCode, displayName, writableConfig) {
|
|
4715
|
-
if (templateKind === "writable-workbench")
|
|
4759
|
+
if (templateKind === "writable-workbench")
|
|
4760
|
+
return writableHtml(appCode, displayName, writableConfig);
|
|
4716
4761
|
if (templateKind === "multi-page") return multiPageHtml(appCode, displayName);
|
|
4717
4762
|
return dashboardHtml(appCode, displayName);
|
|
4718
4763
|
}
|
|
@@ -4772,7 +4817,9 @@ function inferWritableDefaults(fields, writableFieldSet) {
|
|
|
4772
4817
|
return defaults;
|
|
4773
4818
|
}
|
|
4774
4819
|
function inferTodayDefaultFields(fields, writableFieldSet) {
|
|
4775
|
-
return ["effecDate", "effectiveDate", "startDate"].filter(
|
|
4820
|
+
return ["effecDate", "effectiveDate", "startDate"].filter(
|
|
4821
|
+
(name) => hasWritableField(fields, writableFieldSet, name)
|
|
4822
|
+
);
|
|
4776
4823
|
}
|
|
4777
4824
|
function hasWritableField(fields, writableFieldSet, name) {
|
|
4778
4825
|
return writableFieldSet.has(name) && fields.some((field) => field.name === name);
|
|
@@ -4813,7 +4860,11 @@ function dashboardHtml(appCode, displayName) {
|
|
|
4813
4860
|
<h1>${displayName}</h1>
|
|
4814
4861
|
</header>
|
|
4815
4862
|
<main class="hcm-mini-app__body">
|
|
4816
|
-
<span data-field="status"
|
|
4863
|
+
<span data-field="status" role="status">\u51C6\u5907\u8BFB\u53D6</span>
|
|
4864
|
+
<button type="button" data-action="refresh">\u5237\u65B0</button>
|
|
4865
|
+
<button type="button" data-action="retry-reads" hidden>\u91CD\u8BFB\u5931\u8D25\u9879</button>
|
|
4866
|
+
<ul data-field="records"></ul>
|
|
4867
|
+
<pre data-field="error" hidden></pre>
|
|
4817
4868
|
</main>
|
|
4818
4869
|
</section>
|
|
4819
4870
|
`;
|
|
@@ -4845,18 +4896,133 @@ function dashboardCss() {
|
|
|
4845
4896
|
`;
|
|
4846
4897
|
}
|
|
4847
4898
|
function dashboardJs() {
|
|
4848
|
-
return
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4899
|
+
return `${readGroupRuntimeJs()}
|
|
4900
|
+
const cleanups = new WeakMap();
|
|
4901
|
+
export function mount(container, hcm) {
|
|
4902
|
+
cleanups.get(container)?.();
|
|
4903
|
+
const reads = createReadGroup(container, hcm, "dashboard", "\u8BFB\u53D6\u5458\u5DE5\u9884\u89C8");
|
|
4904
|
+
if (!reads) return;
|
|
4905
|
+
// Immutable query snapshot: changing parameters must create a new full task list.
|
|
4906
|
+
const refresh = (mode) => reads.load([{
|
|
4907
|
+
key: "employees", label: "\u5458\u5DE5\u9884\u89C8",
|
|
4908
|
+
read: signal => hcm.query({ model: "Employee", page: 0, size: 10 }, { signal }),
|
|
4909
|
+
commit: result => {
|
|
4910
|
+
const list = container.querySelector('[data-field="records"]');
|
|
4911
|
+
if (!list) return;
|
|
4912
|
+
list.innerHTML = "";
|
|
4913
|
+
for (const employee of result.rows) {
|
|
4914
|
+
const item = document.createElement("li");
|
|
4915
|
+
item.textContent = employee.name || employee.employeeName || employee.id;
|
|
4916
|
+
list.appendChild(item);
|
|
4917
|
+
}
|
|
4918
|
+
if (!result.rows.length) list.textContent = "\u6682\u65E0\u5458\u5DE5\u8BB0\u5F55";
|
|
4919
|
+
},
|
|
4920
|
+
}], mode);
|
|
4921
|
+
const onClick = event => {
|
|
4922
|
+
if (event.target.closest('[data-action="refresh"]')) void refresh("refresh");
|
|
4923
|
+
if (event.target.closest('[data-action="retry-reads"]')) void reads.retry();
|
|
4924
|
+
};
|
|
4925
|
+
container.addEventListener("click", onClick);
|
|
4926
|
+
cleanups.set(container, () => { reads.dispose(); container.removeEventListener("click", onClick); });
|
|
4927
|
+
void refresh("initial");
|
|
4853
4928
|
}
|
|
4854
4929
|
|
|
4855
4930
|
export function unmount(container) {
|
|
4931
|
+
cleanups.get(container)?.();
|
|
4932
|
+
cleanups.delete(container);
|
|
4856
4933
|
container.innerHTML = "";
|
|
4857
4934
|
}
|
|
4858
4935
|
`;
|
|
4859
4936
|
}
|
|
4937
|
+
function readGroupRuntimeJs() {
|
|
4938
|
+
return `const createReadGroup = (container, hcm, key, title) => {
|
|
4939
|
+
const status = container.querySelector('[data-field="status"]');
|
|
4940
|
+
const errorBox = container.querySelector('[data-field="error"]');
|
|
4941
|
+
const retryButton = container.querySelector('[data-action="retry-reads"]');
|
|
4942
|
+
const showError = error => {
|
|
4943
|
+
if (!errorBox) return;
|
|
4944
|
+
errorBox.hidden = !error;
|
|
4945
|
+
errorBox.textContent = error ? [error.code || "LOAD_FAILED", error.message || String(error), error.traceId ? "traceId: " + error.traceId : ""].filter(Boolean).join("\\n") : "";
|
|
4946
|
+
};
|
|
4947
|
+
if (!hcm.loading?.run) {
|
|
4948
|
+
if (status) status.textContent = "\u8FD0\u884C\u65F6\u9700\u8981\u5347\u7EA7";
|
|
4949
|
+
showError({ code: "MINI_LOADING_UNSUPPORTED", message: "\u8BF7\u5347\u7EA7 HCM \u5BBF\u4E3B\u4EE5\u652F\u6301 hcm.loading.run\uFF0C\u7136\u540E\u91CD\u65B0\u6253\u5F00\u5E94\u7528\u3002" });
|
|
4950
|
+
return null;
|
|
4951
|
+
}
|
|
4952
|
+
let mounted = true;
|
|
4953
|
+
let callId = 0;
|
|
4954
|
+
let activeController;
|
|
4955
|
+
let definitions = [];
|
|
4956
|
+
let outcomes = new Map();
|
|
4957
|
+
const failedKeys = () => [...outcomes].filter(([, result]) => result.status === "rejected").map(([key]) => key);
|
|
4958
|
+
const renderOutcomes = (busy = false) => {
|
|
4959
|
+
const failed = failedKeys();
|
|
4960
|
+
if (retryButton) { retryButton.hidden = !failed.length; retryButton.disabled = busy; }
|
|
4961
|
+
const errors = failed.map(key => {
|
|
4962
|
+
const reason = outcomes.get(key).reason;
|
|
4963
|
+
const label = definitions.find(item => item.key === key).label;
|
|
4964
|
+
return label + ": " + (reason?.message || String(reason)) + (reason?.traceId ? " (traceId: " + reason.traceId + ")" : "");
|
|
4965
|
+
});
|
|
4966
|
+
showError(errors.length ? { code: "READS_PARTIAL_FAILURE", message: errors.join("\\n") } : null);
|
|
4967
|
+
};
|
|
4968
|
+
const start = (keys, mode, present) => {
|
|
4969
|
+
if (!mounted || !keys.length) return Promise.resolve();
|
|
4970
|
+
const invocation = ++callId;
|
|
4971
|
+
activeController?.abort();
|
|
4972
|
+
activeController = new AbortController();
|
|
4973
|
+
const tasks = keys.map(key => definitions.find(item => item.key === key));
|
|
4974
|
+
let currentScope;
|
|
4975
|
+
const current = scope => mounted && invocation === callId && scope.isCurrent();
|
|
4976
|
+
if (status) status.textContent = mode === "initial" ? title : "\u6B63\u5728\u91CD\u8BFB " + tasks.length + " \u9879";
|
|
4977
|
+
renderOutcomes(true);
|
|
4978
|
+
return hcm.loading.run({ key, title, mode, signal: activeController.signal,
|
|
4979
|
+
tasks: tasks.map(task => ({ key: task.key, label: task.label })),
|
|
4980
|
+
}, async scope => {
|
|
4981
|
+
currentScope = scope;
|
|
4982
|
+
// Start the complete declared set synchronously before awaiting any receipt.
|
|
4983
|
+
const commits = tasks.map(task => {
|
|
4984
|
+
const receipt = scope.read(task.key, signal => task.read(signal));
|
|
4985
|
+
return (async () => {
|
|
4986
|
+
const [result] = await Promise.allSettled([receipt]);
|
|
4987
|
+
if (!current(scope) || scope.signal.aborted) return;
|
|
4988
|
+
outcomes.set(task.key, result);
|
|
4989
|
+
if (result.status === "fulfilled") await task.commit(result.value, () => current(scope) && !scope.signal.aborted);
|
|
4990
|
+
if (!current(scope) || scope.signal.aborted) return;
|
|
4991
|
+
renderOutcomes(true);
|
|
4992
|
+
})();
|
|
4993
|
+
});
|
|
4994
|
+
if (present) commits.push((async () => {
|
|
4995
|
+
if (!current(scope) || scope.signal.aborted) return;
|
|
4996
|
+
await present(() => current(scope) && !scope.signal.aborted);
|
|
4997
|
+
})());
|
|
4998
|
+
const settled = await Promise.allSettled(commits);
|
|
4999
|
+
// A successful read cannot certify a successful DOM commit.
|
|
5000
|
+
const failedCommit = settled.find(item => item.status === "rejected");
|
|
5001
|
+
if (failedCommit) throw failedCommit.reason;
|
|
5002
|
+
if (!current(scope) || scope.signal.aborted) return;
|
|
5003
|
+
scope.phase("presenting");
|
|
5004
|
+
renderOutcomes();
|
|
5005
|
+
if (status) status.textContent = failedKeys().length ? "\u90E8\u5206\u8BFB\u53D6\u5931\u8D25" : "\u6570\u636E\u5DF2\u66F4\u65B0";
|
|
5006
|
+
}).catch(error => {
|
|
5007
|
+
if (!mounted || invocation !== callId || error?.code === "LOAD_GROUP_CANCELLED") return;
|
|
5008
|
+
if (currentScope && !currentScope.isCurrent()) return;
|
|
5009
|
+
if (status) status.textContent = "\u8BFB\u53D6\u6216\u5448\u73B0\u5931\u8D25";
|
|
5010
|
+
renderOutcomes();
|
|
5011
|
+
showError(error ?? { code: "LOAD_FAILED", message: String(error) });
|
|
5012
|
+
});
|
|
5013
|
+
};
|
|
5014
|
+
return {
|
|
5015
|
+
load: (next, mode = "initial", present) => {
|
|
5016
|
+
definitions = Object.freeze(next.map(item => Object.freeze({ ...item })));
|
|
5017
|
+
outcomes = new Map();
|
|
5018
|
+
return start(definitions.map(item => item.key), mode, present);
|
|
5019
|
+
},
|
|
5020
|
+
retry: () => start(failedKeys(), "refresh"),
|
|
5021
|
+
cancel: () => { callId++; activeController?.abort(); definitions = []; outcomes = new Map(); renderOutcomes(); },
|
|
5022
|
+
dispose: () => { mounted = false; callId++; activeController?.abort(); },
|
|
5023
|
+
};
|
|
5024
|
+
};`;
|
|
5025
|
+
}
|
|
4860
5026
|
function multiPageHtml(appCode, displayName) {
|
|
4861
5027
|
return `<section class="mini-routed-app" data-mini-app="${appCode}">
|
|
4862
5028
|
<header class="mini-routed-app__header">
|
|
@@ -4867,6 +5033,8 @@ function multiPageHtml(appCode, displayName) {
|
|
|
4867
5033
|
<span class="mini-routed-app__status" data-field="status">\u51C6\u5907\u5C31\u7EEA</span>
|
|
4868
5034
|
</header>
|
|
4869
5035
|
|
|
5036
|
+
<button type="button" data-action="refresh">\u5237\u65B0</button>
|
|
5037
|
+
<button type="button" data-action="retry-reads" hidden>\u91CD\u8BFB\u5931\u8D25\u9879</button>
|
|
4870
5038
|
<nav class="mini-routed-app__nav" data-field="nav" aria-label="\u8F7B\u5E94\u7528\u9875\u9762"></nav>
|
|
4871
5039
|
<main class="mini-routed-app__view" data-field="view"></main>
|
|
4872
5040
|
<pre class="mini-routed-app__error" data-field="error" hidden></pre>
|
|
@@ -5025,7 +5193,9 @@ function multiPageCss() {
|
|
|
5025
5193
|
`;
|
|
5026
5194
|
}
|
|
5027
5195
|
function multiPageJs(appCode, displayName, config) {
|
|
5028
|
-
return
|
|
5196
|
+
return `${readGroupRuntimeJs()}
|
|
5197
|
+
const cleanups = new WeakMap();
|
|
5198
|
+
const APP_CODE = ${JSON.stringify(appCode)};
|
|
5029
5199
|
const APP_NAME = ${JSON.stringify(displayName)};
|
|
5030
5200
|
const DATA_MODEL = ${JSON.stringify(config.model)};
|
|
5031
5201
|
const MODEL_LABEL = ${JSON.stringify(config.modelLabel)};
|
|
@@ -5035,11 +5205,11 @@ const ROUTES = [
|
|
|
5035
5205
|
{ path: "/settings", label: "\u8BBE\u7F6E" },
|
|
5036
5206
|
];
|
|
5037
5207
|
|
|
5208
|
+
const createApp = (container, hcm, reads) => {
|
|
5038
5209
|
const state = {
|
|
5039
|
-
records:
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
unsubscribe: null,
|
|
5210
|
+
records: null,
|
|
5211
|
+
detail: null,
|
|
5212
|
+
detailId: "",
|
|
5043
5213
|
};
|
|
5044
5214
|
|
|
5045
5215
|
const textOf = (value, fallback = "-") => String(value ?? fallback);
|
|
@@ -5084,22 +5254,6 @@ const renderNav = (container, hcm) => {
|
|
|
5084
5254
|
}
|
|
5085
5255
|
};
|
|
5086
5256
|
|
|
5087
|
-
const loadRecords = async (container, hcm) => {
|
|
5088
|
-
if (state.loaded) return;
|
|
5089
|
-
setStatus(container, "\u52A0\u8F7D\u4E2D");
|
|
5090
|
-
const result = await hcm.query({ model: DATA_MODEL, page: 0, size: 10 });
|
|
5091
|
-
state.records = result.rows || [];
|
|
5092
|
-
state.loaded = true;
|
|
5093
|
-
setStatus(container, "\u5DF2\u66F4\u65B0");
|
|
5094
|
-
};
|
|
5095
|
-
|
|
5096
|
-
const loadDetail = async (hcm, id) => {
|
|
5097
|
-
if (!state.details.has(id)) {
|
|
5098
|
-
state.details.set(id, await hcm.get({ model: DATA_MODEL, id }));
|
|
5099
|
-
}
|
|
5100
|
-
return state.details.get(id);
|
|
5101
|
-
};
|
|
5102
|
-
|
|
5103
5257
|
const renderOverview = (container, hcm) => {
|
|
5104
5258
|
const view = viewOf(container);
|
|
5105
5259
|
if (!view) return;
|
|
@@ -5117,6 +5271,7 @@ const renderOverview = (container, hcm) => {
|
|
|
5117
5271
|
["\u5E94\u7528", APP_NAME],
|
|
5118
5272
|
["\u6570\u636E\u6A21\u578B", DATA_MODEL],
|
|
5119
5273
|
["\u5F53\u524D\u79DF\u6237", hcm.context.tenantId],
|
|
5274
|
+
["\u9884\u89C8\u8BB0\u5F55", state.records === null ? "\u8BFB\u53D6\u4E2D" : state.records.length],
|
|
5120
5275
|
];
|
|
5121
5276
|
for (const [label, value] of metrics) {
|
|
5122
5277
|
const card = createNode("div", "mini-routed-app__metric");
|
|
@@ -5128,8 +5283,7 @@ const renderOverview = (container, hcm) => {
|
|
|
5128
5283
|
view.appendChild(grid);
|
|
5129
5284
|
};
|
|
5130
5285
|
|
|
5131
|
-
const renderRecords =
|
|
5132
|
-
await loadRecords(container, hcm);
|
|
5286
|
+
const renderRecords = (container, hcm) => {
|
|
5133
5287
|
const view = viewOf(container);
|
|
5134
5288
|
if (!view) return;
|
|
5135
5289
|
view.innerHTML = "";
|
|
@@ -5154,8 +5308,7 @@ const renderRecords = async (container, hcm) => {
|
|
|
5154
5308
|
view.appendChild(list);
|
|
5155
5309
|
};
|
|
5156
5310
|
|
|
5157
|
-
const renderRecordDetail =
|
|
5158
|
-
const record = await loadDetail(hcm, id);
|
|
5311
|
+
const renderRecordDetail = (container, hcm, record) => {
|
|
5159
5312
|
const view = viewOf(container);
|
|
5160
5313
|
if (!view) return;
|
|
5161
5314
|
view.innerHTML = "";
|
|
@@ -5197,54 +5350,80 @@ const renderSettings = (container, hcm) => {
|
|
|
5197
5350
|
view.appendChild(section);
|
|
5198
5351
|
};
|
|
5199
5352
|
|
|
5200
|
-
const renderRoute =
|
|
5201
|
-
showError(container, null);
|
|
5353
|
+
const renderRoute = (mode = "initial") => {
|
|
5202
5354
|
renderNav(container, hcm);
|
|
5203
|
-
const detailRoute = hcm.router.match("/records/:id");
|
|
5204
|
-
if (detailRoute) {
|
|
5205
|
-
await renderRecordDetail(container, hcm, detailRoute.params.id);
|
|
5206
|
-
return;
|
|
5207
|
-
}
|
|
5208
|
-
if (hcm.router.match("/records")) {
|
|
5209
|
-
await renderRecords(container, hcm);
|
|
5210
|
-
return;
|
|
5211
|
-
}
|
|
5212
5355
|
if (hcm.router.match("/settings")) {
|
|
5356
|
+
reads.cancel();
|
|
5357
|
+
showError(container, null);
|
|
5213
5358
|
renderSettings(container, hcm);
|
|
5214
5359
|
return;
|
|
5215
5360
|
}
|
|
5216
|
-
|
|
5361
|
+
const detailRoute = hcm.router.match("/records/:id");
|
|
5362
|
+
if (detailRoute) {
|
|
5363
|
+
const id = detailRoute.params.id; // Snapshot this route parameter before reading.
|
|
5364
|
+
const view = viewOf(container);
|
|
5365
|
+
if (state.detailId === id) renderRecordDetail(container, hcm, state.detail);
|
|
5366
|
+
else if (view) view.textContent = "\u6B63\u5728\u8BFB\u53D6\u8BE6\u60C5";
|
|
5367
|
+
return reads.load([{
|
|
5368
|
+
key: "detail", label: MODEL_LABEL + "\u8BE6\u60C5",
|
|
5369
|
+
read: signal => hcm.get({ model: DATA_MODEL, id }, { signal }),
|
|
5370
|
+
commit: record => {
|
|
5371
|
+
state.detail = record;
|
|
5372
|
+
state.detailId = id;
|
|
5373
|
+
renderRecordDetail(container, hcm, record);
|
|
5374
|
+
},
|
|
5375
|
+
}], mode);
|
|
5376
|
+
}
|
|
5377
|
+
if (!hcm.router.match("/records") && hcm.router.current().path !== "/") {
|
|
5217
5378
|
hcm.router.replace("/");
|
|
5218
5379
|
return;
|
|
5219
5380
|
}
|
|
5220
|
-
|
|
5381
|
+
const route = hcm.router.current().path;
|
|
5382
|
+
if (route === "/") renderOverview(container, hcm);
|
|
5383
|
+
else if (state.records !== null) renderRecords(container, hcm);
|
|
5384
|
+
else { const view = viewOf(container); if (view) view.textContent = "\u6B63\u5728\u8BFB\u53D6" + MODEL_LABEL; }
|
|
5385
|
+
return reads.load([{
|
|
5386
|
+
key: "records", label: MODEL_LABEL + "\u5217\u8868",
|
|
5387
|
+
read: signal => hcm.query({ model: DATA_MODEL, page: 0, size: 10 }, { signal }),
|
|
5388
|
+
commit: result => {
|
|
5389
|
+
state.records = result.rows;
|
|
5390
|
+
if (route === "/") renderOverview(container, hcm);
|
|
5391
|
+
else renderRecords(container, hcm);
|
|
5392
|
+
},
|
|
5393
|
+
}], mode);
|
|
5221
5394
|
};
|
|
5222
|
-
|
|
5223
|
-
export async function mount(container, hcm) {
|
|
5224
5395
|
setText(container, '[data-field="tenant-id"]', hcm.context.tenantId);
|
|
5225
5396
|
const onClick = (event) => {
|
|
5226
|
-
|
|
5397
|
+
if (!(event.target instanceof Element)) return;
|
|
5398
|
+
if (event.target.closest('[data-action="retry-reads"]')) { void reads.retry(); return; }
|
|
5399
|
+
if (event.target.closest('[data-action="refresh"]')) { void renderRoute("refresh"); return; }
|
|
5400
|
+
const routeTarget = event.target.closest("[data-route]");
|
|
5227
5401
|
if (routeTarget?.dataset.route) {
|
|
5228
5402
|
event.preventDefault();
|
|
5229
5403
|
hcm.router.push(routeTarget.dataset.route);
|
|
5230
5404
|
return;
|
|
5231
5405
|
}
|
|
5232
|
-
const recordTarget = event.target
|
|
5233
|
-
if (recordTarget?.dataset.recordId)
|
|
5234
|
-
hcm.router.push("/records/" + encodeURIComponent(recordTarget.dataset.recordId));
|
|
5235
|
-
}
|
|
5406
|
+
const recordTarget = event.target.closest("[data-record-id]");
|
|
5407
|
+
if (recordTarget?.dataset.recordId) hcm.router.push("/records/" + encodeURIComponent(recordTarget.dataset.recordId));
|
|
5236
5408
|
};
|
|
5237
5409
|
container.addEventListener("click", onClick);
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5410
|
+
const unsubscribe = hcm.router.subscribe(() => void renderRoute());
|
|
5411
|
+
void renderRoute();
|
|
5412
|
+
return () => {
|
|
5413
|
+
reads.dispose();
|
|
5241
5414
|
container.removeEventListener("click", onClick);
|
|
5242
|
-
|
|
5415
|
+
unsubscribe();
|
|
5243
5416
|
};
|
|
5417
|
+
};
|
|
5418
|
+
export function mount(container, hcm) {
|
|
5419
|
+
cleanups.get(container)?.();
|
|
5420
|
+
const reads = createReadGroup(container, hcm, "main", "\u8BFB\u53D6" + MODEL_LABEL);
|
|
5421
|
+
if (!reads) return;
|
|
5422
|
+
cleanups.set(container, createApp(container, hcm, reads));
|
|
5244
5423
|
}
|
|
5245
|
-
|
|
5246
5424
|
export function unmount(container) {
|
|
5247
|
-
container
|
|
5425
|
+
cleanups.get(container)?.();
|
|
5426
|
+
cleanups.delete(container);
|
|
5248
5427
|
container.innerHTML = "";
|
|
5249
5428
|
}
|
|
5250
5429
|
`;
|
|
@@ -5267,6 +5446,7 @@ function writableHtml(appCode, displayName, config) {
|
|
|
5267
5446
|
<div class="mini-workbench__actions">
|
|
5268
5447
|
<button type="button" data-action="new-record">\u65B0\u5EFA</button>
|
|
5269
5448
|
<button type="button" data-action="refresh">\u5237\u65B0</button>
|
|
5449
|
+
<button type="button" data-action="retry-reads" hidden>\u91CD\u8BFB\u5931\u8D25\u9879</button>
|
|
5270
5450
|
</div>
|
|
5271
5451
|
</div>
|
|
5272
5452
|
<div class="mini-workbench__list" data-field="record-list"></div>
|
|
@@ -5495,14 +5675,21 @@ function writableJs(config) {
|
|
|
5495
5675
|
const fields = config.fields?.length ? JSON.stringify(config.fields) : "null";
|
|
5496
5676
|
const defaults = JSON.stringify(config.defaults, null, 2);
|
|
5497
5677
|
const todayDefaults = JSON.stringify(config.todayDefaultFields);
|
|
5498
|
-
return
|
|
5678
|
+
return `${readGroupRuntimeJs()}
|
|
5679
|
+
const cleanups = new WeakMap();
|
|
5680
|
+
const MODEL = ${model};
|
|
5499
5681
|
const MODEL_LABEL = ${modelLabel};
|
|
5500
5682
|
const ROUTE_BASE = "/records";
|
|
5501
5683
|
const FORM_FIELDS = ${fields};
|
|
5502
5684
|
const CREATE_DEFAULTS = ${defaults};
|
|
5503
5685
|
const TODAY_DEFAULT_FIELDS = ${todayDefaults};
|
|
5686
|
+
const createWorkbench = (container, hcm, reads) => {
|
|
5687
|
+
let mounted = true;
|
|
5688
|
+
let routeCall = 0;
|
|
5504
5689
|
const state = {
|
|
5505
|
-
records:
|
|
5690
|
+
records: null,
|
|
5691
|
+
detail: null,
|
|
5692
|
+
detailId: "",
|
|
5506
5693
|
activeId: "",
|
|
5507
5694
|
mode: "list",
|
|
5508
5695
|
meta: null,
|
|
@@ -5722,8 +5909,9 @@ const renderFormControl = (field, value, hcm) => {
|
|
|
5722
5909
|
}
|
|
5723
5910
|
return input;
|
|
5724
5911
|
};
|
|
5725
|
-
const renderForm = async (container, hcm, values = {}) => {
|
|
5912
|
+
const renderForm = async (container, hcm, values = {}, isCurrent = () => mounted) => {
|
|
5726
5913
|
const meta = await ensureMeta(hcm);
|
|
5914
|
+
if (!isCurrent()) return;
|
|
5727
5915
|
const defaults = formDefaults();
|
|
5728
5916
|
const fields = hcm.form.fields(meta, formOptions());
|
|
5729
5917
|
const fieldBox = container.querySelector('[data-field="editor-fields"]');
|
|
@@ -5770,6 +5958,7 @@ const renderList = (container, hcm) => {
|
|
|
5770
5958
|
const list = container.querySelector('[data-field="record-list"]');
|
|
5771
5959
|
if (!list) return;
|
|
5772
5960
|
list.innerHTML = "";
|
|
5961
|
+
if (state.records === null) { list.textContent = "\u6B63\u5728\u8BFB\u53D6" + MODEL_LABEL; return; }
|
|
5773
5962
|
for (const item of state.records) {
|
|
5774
5963
|
const button = document.createElement("button");
|
|
5775
5964
|
button.type = "button";
|
|
@@ -5779,46 +5968,50 @@ const renderList = (container, hcm) => {
|
|
|
5779
5968
|
list.appendChild(button);
|
|
5780
5969
|
}
|
|
5781
5970
|
if (!state.records.length) list.textContent = "\u6682\u65E0" + MODEL_LABEL;
|
|
5782
|
-
if (hcm.router.current().path === "/") hcm.router.replace(ROUTE_BASE);
|
|
5783
|
-
};
|
|
5784
|
-
const loadRecords = async (container, hcm) => {
|
|
5785
|
-
setStatus(container, "\u52A0\u8F7D\u4E2D");
|
|
5786
|
-
showError(container, null);
|
|
5787
|
-
const result = await hcm.query({ model: MODEL, page: 0, size: 50 });
|
|
5788
|
-
state.records = result.rows;
|
|
5789
|
-
renderList(container, hcm);
|
|
5790
|
-
setStatus(container, "\u5DF2\u66F4\u65B0");
|
|
5791
5971
|
};
|
|
5792
|
-
const
|
|
5793
|
-
|
|
5794
|
-
|
|
5972
|
+
const recordTask = () => ({
|
|
5973
|
+
key: "records", label: MODEL_LABEL + "\u5217\u8868",
|
|
5974
|
+
read: signal => hcm.query({ model: MODEL, page: 0, size: 50 }, { signal }),
|
|
5975
|
+
commit: result => { state.records = result.rows; renderList(container, hcm); },
|
|
5976
|
+
});
|
|
5977
|
+
const metaTask = () => ({
|
|
5978
|
+
key: "meta", label: MODEL_LABEL + "\u8868\u5355\u5B9A\u4E49",
|
|
5979
|
+
read: () => hcm.describe({ model: MODEL, type: "info" }),
|
|
5980
|
+
commit: async (meta, isCurrent) => { state.meta = meta; await presentRoute(isCurrent); },
|
|
5981
|
+
});
|
|
5982
|
+
const detailTask = id => ({
|
|
5983
|
+
key: "detail", label: MODEL_LABEL + "\u8BE6\u60C5",
|
|
5984
|
+
read: signal => hcm.get({ model: MODEL, id }, { signal }),
|
|
5985
|
+
commit: async (record, isCurrent) => { state.detailId = id; state.detail = record; await presentRoute(isCurrent); },
|
|
5986
|
+
});
|
|
5987
|
+
const loadRecords = (container, hcm) => reads.load([recordTask()], "refresh");
|
|
5988
|
+
const openEditor = async (record, isCurrent) => {
|
|
5795
5989
|
setEditorVisible(container, true);
|
|
5796
|
-
setStatus(container, "\u8BFB\u53D6\u8BE6\u60C5");
|
|
5797
|
-
showError(container, null);
|
|
5798
|
-
const record = await hcm.get({ model: MODEL, id });
|
|
5799
5990
|
setText(container, '[data-field="editor-title"]', recordName(record));
|
|
5800
|
-
await renderForm(container, hcm, record);
|
|
5991
|
+
await renderForm(container, hcm, record, isCurrent);
|
|
5992
|
+
if (!isCurrent()) return;
|
|
5801
5993
|
setDeleteVisible(container, true);
|
|
5802
|
-
setStatus(container, "\u53EF\u7F16\u8F91");
|
|
5803
5994
|
};
|
|
5804
|
-
const openNew = async (
|
|
5995
|
+
const openNew = async (isCurrent) => {
|
|
5805
5996
|
state.activeId = "";
|
|
5806
5997
|
state.mode = "new";
|
|
5807
5998
|
setEditorVisible(container, true);
|
|
5808
|
-
showError(container, null);
|
|
5809
5999
|
setText(container, '[data-field="editor-title"]', "\u65B0\u5EFA" + MODEL_LABEL);
|
|
5810
|
-
await renderForm(container, hcm, formDefaults());
|
|
6000
|
+
await renderForm(container, hcm, formDefaults(), isCurrent);
|
|
6001
|
+
if (!isCurrent()) return;
|
|
5811
6002
|
setDeleteVisible(container, false);
|
|
5812
|
-
setStatus(container, "\u53EF\u521B\u5EFA");
|
|
5813
6003
|
};
|
|
5814
|
-
const
|
|
6004
|
+
const presentRoute = async (isCurrent) => {
|
|
6005
|
+
if (!isCurrent()) return;
|
|
5815
6006
|
if (hcm.router.match(ROUTE_BASE + "/new")) {
|
|
5816
|
-
await openNew(
|
|
6007
|
+
if (state.meta) await openNew(isCurrent);
|
|
5817
6008
|
return;
|
|
5818
6009
|
}
|
|
5819
6010
|
const route = hcm.router.match(ROUTE_BASE + "/:id");
|
|
5820
6011
|
if (route) {
|
|
5821
|
-
|
|
6012
|
+
state.activeId = route.params.id;
|
|
6013
|
+
state.mode = "edit";
|
|
6014
|
+
if (state.meta && state.detailId === route.params.id) await openEditor(state.detail, isCurrent);
|
|
5822
6015
|
return;
|
|
5823
6016
|
}
|
|
5824
6017
|
state.activeId = "";
|
|
@@ -5830,6 +6023,34 @@ const renderRoute = async (container, hcm) => {
|
|
|
5830
6023
|
setDeleteVisible(container, false);
|
|
5831
6024
|
renderList(container, hcm);
|
|
5832
6025
|
};
|
|
6026
|
+
const renderRoute = (initial = false, refreshRecords = false) => {
|
|
6027
|
+
const invocation = ++routeCall;
|
|
6028
|
+
reads.cancel();
|
|
6029
|
+
const current = () => mounted && invocation === routeCall;
|
|
6030
|
+
const tasks = [];
|
|
6031
|
+
if (initial || !state.meta) tasks.push(metaTask());
|
|
6032
|
+
if (initial || refreshRecords || state.records === null) tasks.push(recordTask());
|
|
6033
|
+
if (hcm.router.match(ROUTE_BASE + "/new")) {
|
|
6034
|
+
state.activeId = "";
|
|
6035
|
+
state.mode = "new";
|
|
6036
|
+
setEditorVisible(container, false);
|
|
6037
|
+
setDeleteVisible(container, false);
|
|
6038
|
+
setText(container, '[data-field="editor-title"]', "\u65B0\u5EFA" + MODEL_LABEL);
|
|
6039
|
+
}
|
|
6040
|
+
const route = hcm.router.match(ROUTE_BASE + "/:id");
|
|
6041
|
+
if (route && route.params.id !== "new") {
|
|
6042
|
+
if (state.detailId !== route.params.id) {
|
|
6043
|
+
state.activeId = "";
|
|
6044
|
+
state.mode = "list";
|
|
6045
|
+
setEditorVisible(container, false);
|
|
6046
|
+
setDeleteVisible(container, false);
|
|
6047
|
+
setText(container, '[data-field="editor-title"]', "\u6B63\u5728\u8BFB\u53D6\u8BE6\u60C5");
|
|
6048
|
+
}
|
|
6049
|
+
tasks.push(detailTask(route.params.id));
|
|
6050
|
+
}
|
|
6051
|
+
if (tasks.length) return reads.load(tasks, initial ? "initial" : "refresh", presentRoute);
|
|
6052
|
+
return presentRoute(current).catch(error => { if (current()) showError(container, error); });
|
|
6053
|
+
};
|
|
5833
6054
|
const saveActive = async (container, hcm) => {
|
|
5834
6055
|
if (state.mode !== "new" && !state.activeId) return;
|
|
5835
6056
|
const meta = await ensureMeta(hcm);
|
|
@@ -5869,17 +6090,19 @@ const deleteActive = async (container, hcm) => {
|
|
|
5869
6090
|
hcm.router.push(ROUTE_BASE);
|
|
5870
6091
|
setStatus(container, "\u5DF2\u5220\u9664");
|
|
5871
6092
|
};
|
|
5872
|
-
export async function mount(container, hcm) {
|
|
5873
6093
|
setText(container, '[data-field="tenant-id"]', hcm.context.tenantId);
|
|
6094
|
+
if (hcm.router.current().path === "/") hcm.router.replace(ROUTE_BASE);
|
|
5874
6095
|
const onClick = (event) => {
|
|
5875
6096
|
const target = event.target instanceof Element ? event.target.closest("[data-action]") : null;
|
|
5876
6097
|
if (!target) return;
|
|
5877
|
-
if (target.dataset.action === "
|
|
6098
|
+
if (target.dataset.action === "retry-reads") void reads.retry();
|
|
6099
|
+
if (target.dataset.action === "refresh") void renderRoute(false, true);
|
|
5878
6100
|
if (target.dataset.action === "new-record") hcm.router.push(ROUTE_BASE + "/new");
|
|
5879
6101
|
if (target.dataset.action === "open-record" && target.dataset.id) hcm.router.push(ROUTE_BASE + "/" + encodeURIComponent(target.dataset.id));
|
|
5880
6102
|
if (target.dataset.action === "back") hcm.router.push(ROUTE_BASE);
|
|
5881
6103
|
if (target.dataset.action === "delete-record") {
|
|
5882
6104
|
void deleteActive(container, hcm).catch((error) => {
|
|
6105
|
+
if (!mounted) return;
|
|
5883
6106
|
setStatus(container, "\u5220\u9664\u5931\u8D25");
|
|
5884
6107
|
showError(container, error);
|
|
5885
6108
|
});
|
|
@@ -5888,25 +6111,33 @@ export async function mount(container, hcm) {
|
|
|
5888
6111
|
const onSubmit = (event) => {
|
|
5889
6112
|
event.preventDefault();
|
|
5890
6113
|
void saveActive(container, hcm).catch((error) => {
|
|
6114
|
+
if (!mounted) return;
|
|
5891
6115
|
setStatus(container, "\u4FDD\u5B58\u5931\u8D25");
|
|
5892
6116
|
showError(container, error);
|
|
5893
6117
|
});
|
|
5894
6118
|
};
|
|
5895
6119
|
container.addEventListener("click", onClick);
|
|
5896
6120
|
container.querySelector('[data-field="editor-form"]')?.addEventListener("submit", onSubmit);
|
|
5897
|
-
state.unsubscribe = hcm.router.subscribe(() => void renderRoute(
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
6121
|
+
state.unsubscribe = hcm.router.subscribe(() => void renderRoute());
|
|
6122
|
+
void renderRoute(true);
|
|
6123
|
+
return () => {
|
|
6124
|
+
mounted = false;
|
|
6125
|
+
routeCall++;
|
|
6126
|
+
reads.dispose();
|
|
5902
6127
|
container.removeEventListener("click", onClick);
|
|
5903
6128
|
container.querySelector('[data-field="editor-form"]')?.removeEventListener("submit", onSubmit);
|
|
5904
6129
|
state.unsubscribe?.();
|
|
5905
6130
|
};
|
|
6131
|
+
};
|
|
6132
|
+
export function mount(container, hcm) {
|
|
6133
|
+
cleanups.get(container)?.();
|
|
6134
|
+
const reads = createReadGroup(container, hcm, "workbench", "\u8BFB\u53D6" + MODEL_LABEL + "\u5DE5\u4F5C\u53F0");
|
|
6135
|
+
if (!reads) return;
|
|
6136
|
+
cleanups.set(container, createWorkbench(container, hcm, reads));
|
|
5906
6137
|
}
|
|
5907
|
-
|
|
5908
6138
|
export function unmount(container) {
|
|
5909
|
-
container
|
|
6139
|
+
cleanups.get(container)?.();
|
|
6140
|
+
cleanups.delete(container);
|
|
5910
6141
|
container.innerHTML = "";
|
|
5911
6142
|
}
|
|
5912
6143
|
`;
|
|
@@ -5915,7 +6146,7 @@ export function unmount(container) {
|
|
|
5915
6146
|
// src/mini/project.ts
|
|
5916
6147
|
var MINI_APP_CODE_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
5917
6148
|
var SCOPE_PATTERN = /^[A-Z][A-Za-z0-9_]*\.[a-z][A-Za-z0-9]*$/;
|
|
5918
|
-
var SEMVER_PATTERN =
|
|
6149
|
+
var SEMVER_PATTERN = MINI_SEMVER_PATTERN;
|
|
5919
6150
|
var TOP_LEVEL_MANIFEST_KEYS = /* @__PURE__ */ new Set([
|
|
5920
6151
|
"schemaVersion",
|
|
5921
6152
|
"code",
|
|
@@ -5949,6 +6180,7 @@ async function initMiniAppProject(args) {
|
|
|
5949
6180
|
const files = buildMiniAppTemplateFiles2({
|
|
5950
6181
|
appCode,
|
|
5951
6182
|
name: args.name,
|
|
6183
|
+
runtimeSdkVersion: args.runtimeSdkVersion,
|
|
5952
6184
|
defaultSurface: args.defaultSurface ?? "embedded",
|
|
5953
6185
|
templateKind,
|
|
5954
6186
|
writableModel: args.writableModel,
|
|
@@ -6142,6 +6374,23 @@ async function pushMiniAppProject(args) {
|
|
|
6142
6374
|
await writeMiniState(root, context, localFiles, remoteByLocalPath);
|
|
6143
6375
|
return result;
|
|
6144
6376
|
}
|
|
6377
|
+
async function collectMiniPushWrites(rootDir, operations) {
|
|
6378
|
+
const localByPath = new Map(
|
|
6379
|
+
(await readLocalMiniFiles(path6.resolve(rootDir))).map((file) => [file.localPath, file])
|
|
6380
|
+
);
|
|
6381
|
+
const files = [];
|
|
6382
|
+
const deletedPaths = [];
|
|
6383
|
+
for (const operation of operations) {
|
|
6384
|
+
if (operation.operation === "delete") {
|
|
6385
|
+
if (operation.fileId) deletedPaths.push(operation.remotePath);
|
|
6386
|
+
continue;
|
|
6387
|
+
}
|
|
6388
|
+
if (operation.operation !== "create" && !(operation.operation === "update" && operation.fileId)) continue;
|
|
6389
|
+
const localFile = localByPath.get(operation.localPath);
|
|
6390
|
+
if (localFile) files.push({ relativePath: operation.remotePath, content: localFile.content });
|
|
6391
|
+
}
|
|
6392
|
+
return { files, deletedPaths };
|
|
6393
|
+
}
|
|
6145
6394
|
async function buildMiniPreviewTargets(rootDir, frontendBaseUrl) {
|
|
6146
6395
|
const context = await readMiniContext(path6.resolve(rootDir));
|
|
6147
6396
|
const app = encodeURIComponent(context.appCode);
|
|
@@ -6267,10 +6516,11 @@ function buildMiniVerifyAgentReport(report) {
|
|
|
6267
6516
|
url: target.url
|
|
6268
6517
|
})
|
|
6269
6518
|
);
|
|
6270
|
-
const
|
|
6519
|
+
const preflightFailed = report.preflight?.status === "failed";
|
|
6520
|
+
const safeToPush = report.validate.valid && dryRunOk && previewUrls.length > 0 && smokeOk && !preflightFailed;
|
|
6271
6521
|
const nextAction = chooseMiniVerifyNextAction(report, previewUrls, smoke);
|
|
6272
6522
|
return {
|
|
6273
|
-
ok: report.ok && smokeOk,
|
|
6523
|
+
ok: report.ok && smokeOk && !preflightFailed,
|
|
6274
6524
|
safeToPush,
|
|
6275
6525
|
nextAction,
|
|
6276
6526
|
summary: {
|
|
@@ -6306,7 +6556,8 @@ function buildMiniVerifyAgentReport(report) {
|
|
|
6306
6556
|
ok: previewUrls.length > 0,
|
|
6307
6557
|
count: previewUrls.length,
|
|
6308
6558
|
surfaces: previewUrls.map((target) => target.surface)
|
|
6309
|
-
}
|
|
6559
|
+
},
|
|
6560
|
+
preflight: report.preflight ? { status: report.preflight.status, sent: report.preflight.sent, issues: report.preflight.issues.length } : null
|
|
6310
6561
|
},
|
|
6311
6562
|
changedFiles: report.status.filter((entry) => entry.status !== "unchanged").map(
|
|
6312
6563
|
(entry) => ({
|
|
@@ -6358,6 +6609,9 @@ function chooseMiniVerifyNextAction(report, previewUrls, smoke) {
|
|
|
6358
6609
|
if (!report.validate.valid) return "fix-validation";
|
|
6359
6610
|
if (!report.plan) return "inspect-status";
|
|
6360
6611
|
if (report.plan.conflicts.length) return "resolve-conflict";
|
|
6612
|
+
if (report.preflight?.status === "failed") {
|
|
6613
|
+
return report.preflight.issues.some((issue) => issue.errCode === "WORKSPACE_FILE_CONFLICT") ? "resolve-conflict" : "fix-validation";
|
|
6614
|
+
}
|
|
6361
6615
|
if (!previewUrls.length) return "inspect-preview";
|
|
6362
6616
|
return "push";
|
|
6363
6617
|
}
|
|
@@ -6397,6 +6651,13 @@ function formatMiniVerifyReport(report) {
|
|
|
6397
6651
|
} else {
|
|
6398
6652
|
lines.push(`[3/${totalSteps}] dry-run: - skipped (${report.planSkipped ?? "unknown reason"})`);
|
|
6399
6653
|
}
|
|
6654
|
+
if (report.preflight) {
|
|
6655
|
+
const preflight2 = report.preflight;
|
|
6656
|
+
lines.push(preflight2.status === "failed" ? ` server preflight: \u2717 ${preflight2.issues.length} issue(s)` : ` server preflight: ${preflight2.status} (${preflight2.sent} file(s) sent)`);
|
|
6657
|
+
for (const issue of preflight2.issues) {
|
|
6658
|
+
lines.push(` ${issue.path ?? "(\u6574\u6279)"}: [${issue.errCode ?? "ERROR"}] ${issue.message}`);
|
|
6659
|
+
}
|
|
6660
|
+
}
|
|
6400
6661
|
if (report.preview.length) {
|
|
6401
6662
|
lines.push(`[4/${totalSteps}] preview:`);
|
|
6402
6663
|
for (const target of report.preview) lines.push(` ${target.key.padEnd(11)} ${target.url}`);
|
|
@@ -6510,9 +6771,9 @@ async function validateManifestObject(manifest2, context, root, errors, warnings
|
|
|
6510
6771
|
requireString(manifest2, "name", errors, (value) => value.trim().length > 0);
|
|
6511
6772
|
requireString(manifest2, "version", errors, (value) => SEMVER_PATTERN.test(value));
|
|
6512
6773
|
requireString(manifest2, "sdkVersion", errors, (value) => SEMVER_PATTERN.test(value));
|
|
6513
|
-
if (typeof manifest2.sdkVersion === "string" && manifest2.sdkVersion !==
|
|
6514
|
-
|
|
6515
|
-
`
|
|
6774
|
+
if (typeof manifest2.sdkVersion === "string" && manifest2.sdkVersion !== MINI_RUNTIME_SDK_VERSION) {
|
|
6775
|
+
warnings.push(
|
|
6776
|
+
`manifest sdkVersion '${manifest2.sdkVersion}' differs from the Core source default '${MINI_RUNTIME_SDK_VERSION}'; target Core compatibility is unknown until workspace verify server preflight. Core requires an exact ABI match.`
|
|
6516
6777
|
);
|
|
6517
6778
|
}
|
|
6518
6779
|
const code = typeof manifest2.code === "string" ? manifest2.code : "";
|
|
@@ -7231,7 +7492,7 @@ async function deleteTenantMeta(http, path24) {
|
|
|
7231
7492
|
import yaml9 from "js-yaml";
|
|
7232
7493
|
|
|
7233
7494
|
// src/meta/generated/meta-schemas.ts
|
|
7234
|
-
var META_SCHEMA_SOURCE_COMMIT = "
|
|
7495
|
+
var META_SCHEMA_SOURCE_COMMIT = "cfad9ef13881cc799a88cbfcef8229b5cefcdc3f";
|
|
7235
7496
|
var META_SCHEMAS = {
|
|
7236
7497
|
list: {
|
|
7237
7498
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -7374,6 +7635,9 @@ var META_SCHEMAS = {
|
|
|
7374
7635
|
},
|
|
7375
7636
|
"targetModel": {
|
|
7376
7637
|
"type": "string"
|
|
7638
|
+
},
|
|
7639
|
+
"timeoutMs": {
|
|
7640
|
+
"type": "integer"
|
|
7377
7641
|
}
|
|
7378
7642
|
}
|
|
7379
7643
|
},
|
|
@@ -7882,6 +8146,11 @@ var META_SCHEMAS = {
|
|
|
7882
8146
|
},
|
|
7883
8147
|
"targetModel": {
|
|
7884
8148
|
"type": "string"
|
|
8149
|
+
},
|
|
8150
|
+
"timeoutMs": {
|
|
8151
|
+
"type": "integer",
|
|
8152
|
+
"minimum": 1,
|
|
8153
|
+
"maximum": 3e5
|
|
7885
8154
|
}
|
|
7886
8155
|
}
|
|
7887
8156
|
},
|
|
@@ -8902,7 +9171,60 @@ var META_SCHEMAS = {
|
|
|
8902
9171
|
"description": "\u5217\u8868\u6811\u5F62\u5C55\u793A;\u6309 parentField \u628A\u5F53\u524D\u9875\u6570\u636E\u6E32\u67D3\u6210\u53EF\u9010\u7EA7\u5C55\u5F00\u7684\u6811\u8868\u3002\u7236\u5B50\u5173\u7CFB\u53EA\u4F5C\u7528\u5728\u6E32\u67D3\u5C42,\u7B5B\u9009/\u6392\u5E8F/\u5206\u9875/\u6743\u9650\u53E3\u5F84\u4E0D\u53D8",
|
|
8903
9172
|
"additionalProperties": false,
|
|
8904
9173
|
"required": ["parentField"]
|
|
9174
|
+
},
|
|
9175
|
+
"capabilityVersion": {
|
|
9176
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9177
|
+
},
|
|
9178
|
+
"columns": {
|
|
9179
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9180
|
+
},
|
|
9181
|
+
"defaultFilter": {
|
|
9182
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9183
|
+
},
|
|
9184
|
+
"emptyState": {
|
|
9185
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9186
|
+
},
|
|
9187
|
+
"filters": {
|
|
9188
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9189
|
+
},
|
|
9190
|
+
"modelKey": {
|
|
9191
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9192
|
+
},
|
|
9193
|
+
"orders": {
|
|
9194
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9195
|
+
},
|
|
9196
|
+
"plugin": {
|
|
9197
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9198
|
+
},
|
|
9199
|
+
"query": {
|
|
9200
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9201
|
+
},
|
|
9202
|
+
"rowActions": {
|
|
9203
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9204
|
+
},
|
|
9205
|
+
"scene": {
|
|
9206
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9207
|
+
},
|
|
9208
|
+
"search": {
|
|
9209
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9210
|
+
},
|
|
9211
|
+
"state": {
|
|
9212
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9213
|
+
},
|
|
9214
|
+
"tip": {
|
|
9215
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9216
|
+
},
|
|
9217
|
+
"title": {
|
|
9218
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9219
|
+
},
|
|
9220
|
+
"toolActions": {
|
|
9221
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
8905
9222
|
}
|
|
9223
|
+
},
|
|
9224
|
+
"x-hcm-authoring": {
|
|
9225
|
+
"topLevel": "closed",
|
|
9226
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
9227
|
+
"retiredTopLevelKeys": {}
|
|
8906
9228
|
}
|
|
8907
9229
|
},
|
|
8908
9230
|
info: {
|
|
@@ -9157,6 +9479,11 @@ var META_SCHEMAS = {
|
|
|
9157
9479
|
},
|
|
9158
9480
|
"targetModel": {
|
|
9159
9481
|
"type": "string"
|
|
9482
|
+
},
|
|
9483
|
+
"timeoutMs": {
|
|
9484
|
+
"type": "integer",
|
|
9485
|
+
"minimum": 1,
|
|
9486
|
+
"maximum": 3e5
|
|
9160
9487
|
}
|
|
9161
9488
|
}
|
|
9162
9489
|
},
|
|
@@ -9610,6 +9937,55 @@ var META_SCHEMAS = {
|
|
|
9610
9937
|
"tip": {
|
|
9611
9938
|
"type": "string",
|
|
9612
9939
|
"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"
|
|
9940
|
+
},
|
|
9941
|
+
"additions": {
|
|
9942
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9943
|
+
},
|
|
9944
|
+
"capabilityVersion": {
|
|
9945
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9946
|
+
},
|
|
9947
|
+
"layout": {
|
|
9948
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9949
|
+
},
|
|
9950
|
+
"modelKey": {
|
|
9951
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9952
|
+
},
|
|
9953
|
+
"plugin": {
|
|
9954
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9955
|
+
},
|
|
9956
|
+
"pluginChildren": {
|
|
9957
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9958
|
+
},
|
|
9959
|
+
"pluginSchemeCardExtFields": {
|
|
9960
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9961
|
+
},
|
|
9962
|
+
"pluginSchemeExtFields": {
|
|
9963
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9964
|
+
},
|
|
9965
|
+
"purpose": {
|
|
9966
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9967
|
+
},
|
|
9968
|
+
"scene": {
|
|
9969
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9970
|
+
},
|
|
9971
|
+
"state": {
|
|
9972
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9973
|
+
},
|
|
9974
|
+
"synonyms": {
|
|
9975
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9976
|
+
},
|
|
9977
|
+
"title": {
|
|
9978
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9979
|
+
},
|
|
9980
|
+
"typicalQueries": {
|
|
9981
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
9982
|
+
}
|
|
9983
|
+
},
|
|
9984
|
+
"x-hcm-authoring": {
|
|
9985
|
+
"topLevel": "closed",
|
|
9986
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
9987
|
+
"retiredTopLevelKeys": {
|
|
9988
|
+
"sections": "\u6539\u5199\u4E3A\u9876\u5C42 fields[] + groups[]\uFF1Bgroups[].fields \u53EA\u586B\u5199\u5B57\u6BB5 key\uFF08\u5206\u7EC4\u7167\u6837\u6E32\u67D3\uFF09"
|
|
9613
9989
|
}
|
|
9614
9990
|
}
|
|
9615
9991
|
},
|
|
@@ -9865,6 +10241,11 @@ var META_SCHEMAS = {
|
|
|
9865
10241
|
},
|
|
9866
10242
|
"targetModel": {
|
|
9867
10243
|
"type": "string"
|
|
10244
|
+
},
|
|
10245
|
+
"timeoutMs": {
|
|
10246
|
+
"type": "integer",
|
|
10247
|
+
"minimum": 1,
|
|
10248
|
+
"maximum": 3e5
|
|
9868
10249
|
}
|
|
9869
10250
|
}
|
|
9870
10251
|
},
|
|
@@ -10274,7 +10655,30 @@ var META_SCHEMAS = {
|
|
|
10274
10655
|
"name": {
|
|
10275
10656
|
"type": "string",
|
|
10276
10657
|
"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'
|
|
10658
|
+
},
|
|
10659
|
+
"capabilityVersion": {
|
|
10660
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10661
|
+
},
|
|
10662
|
+
"children": {
|
|
10663
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10664
|
+
},
|
|
10665
|
+
"layout": {
|
|
10666
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10667
|
+
},
|
|
10668
|
+
"modelKey": {
|
|
10669
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10670
|
+
},
|
|
10671
|
+
"state": {
|
|
10672
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10673
|
+
},
|
|
10674
|
+
"subLists": {
|
|
10675
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10277
10676
|
}
|
|
10677
|
+
},
|
|
10678
|
+
"x-hcm-authoring": {
|
|
10679
|
+
"topLevel": "closed",
|
|
10680
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
10681
|
+
"retiredTopLevelKeys": {}
|
|
10278
10682
|
}
|
|
10279
10683
|
},
|
|
10280
10684
|
filter: {
|
|
@@ -10386,7 +10790,18 @@ var META_SCHEMAS = {
|
|
|
10386
10790
|
"name": {
|
|
10387
10791
|
"type": "string",
|
|
10388
10792
|
"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'
|
|
10793
|
+
},
|
|
10794
|
+
"capabilityVersion": {
|
|
10795
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10796
|
+
},
|
|
10797
|
+
"modelKey": {
|
|
10798
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
10389
10799
|
}
|
|
10800
|
+
},
|
|
10801
|
+
"x-hcm-authoring": {
|
|
10802
|
+
"topLevel": "closed",
|
|
10803
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
10804
|
+
"retiredTopLevelKeys": {}
|
|
10390
10805
|
}
|
|
10391
10806
|
},
|
|
10392
10807
|
model: {
|
|
@@ -10847,6 +11262,53 @@ var META_SCHEMAS = {
|
|
|
10847
11262
|
}
|
|
10848
11263
|
},
|
|
10849
11264
|
"required": ["kind"]
|
|
11265
|
+
}, {
|
|
11266
|
+
"type": "object",
|
|
11267
|
+
"description": "\u8BFB\u65F6\u6D3E\u751F\uFF08ADR-442\uFF09\uFF1A\u7531\u5E73\u53F0\u6CE8\u518C\u7684 provider \u5728\u53D6\u6570\u540E\u8BA1\u7B97\uFF0C\u53EA\u80FD\u653E\u5728 fields \u91CC\u5C55\u793A\uFF1B\u4E0D\u53EF\u7B5B\u9009\u3001\u6392\u5E8F\u3001\u5206\u7EC4\u3001\u805A\u5408\uFF0C\u4E0D\u4E0B\u63A8 SQL\u3002security.classification \u5FC5\u586B\u3001security.sources \u7531\u52A0\u8F7D\u5668\u751F\u6210\uFF08\u7981\u6B62\u624B\u5199\uFF09\uFF1B\u79DF\u6237\u5143\u6570\u636E\u4E00\u5F8B\u4E0D\u80FD\u58F0\u660E\u3002",
|
|
11268
|
+
"properties": {
|
|
11269
|
+
"kind": {
|
|
11270
|
+
"const": "provider"
|
|
11271
|
+
},
|
|
11272
|
+
"provider": {
|
|
11273
|
+
"type": "string",
|
|
11274
|
+
"pattern": "^platform:"
|
|
11275
|
+
},
|
|
11276
|
+
"params": {
|
|
11277
|
+
"type": "object"
|
|
11278
|
+
},
|
|
11279
|
+
"dependsOn": {
|
|
11280
|
+
"type": "array",
|
|
11281
|
+
"items": {
|
|
11282
|
+
"type": "string",
|
|
11283
|
+
"pattern": "^[^.]+$"
|
|
11284
|
+
}
|
|
11285
|
+
},
|
|
11286
|
+
"extraSources": {
|
|
11287
|
+
"type": "array",
|
|
11288
|
+
"items": {
|
|
11289
|
+
"type": "string",
|
|
11290
|
+
"pattern": "^[^.]+$"
|
|
11291
|
+
}
|
|
11292
|
+
},
|
|
11293
|
+
"returnType": {
|
|
11294
|
+
"type": "string",
|
|
11295
|
+
"enum": ["STRING", "INTEGER", "LONG", "DECIMAL", "BOOLEAN", "DATE", "DATETIME"]
|
|
11296
|
+
},
|
|
11297
|
+
"computeOnEmptyFields": {
|
|
11298
|
+
"type": "boolean"
|
|
11299
|
+
},
|
|
11300
|
+
"filterable": {
|
|
11301
|
+
"const": false
|
|
11302
|
+
},
|
|
11303
|
+
"sortable": {
|
|
11304
|
+
"const": false
|
|
11305
|
+
},
|
|
11306
|
+
"pushDownable": {
|
|
11307
|
+
"const": false
|
|
11308
|
+
}
|
|
11309
|
+
},
|
|
11310
|
+
"required": ["kind", "provider", "returnType"],
|
|
11311
|
+
"additionalProperties": false
|
|
10850
11312
|
}]
|
|
10851
11313
|
},
|
|
10852
11314
|
"description": {
|
|
@@ -11055,7 +11517,36 @@ var META_SCHEMAS = {
|
|
|
11055
11517
|
"valueMatch": {
|
|
11056
11518
|
"type": "boolean"
|
|
11057
11519
|
}
|
|
11058
|
-
}
|
|
11520
|
+
},
|
|
11521
|
+
"allOf": [{
|
|
11522
|
+
"description": "\u8BFB\u65F6\u6D3E\u751F\u5B57\u6BB5\uFF08derived.kind=provider\uFF0CADR-442\uFF09\uFF1Asecurity \u5FC5\u586B\u4E14\u5FC5\u987B\u663E\u5F0F\u5199 classification\uFF1Bsecurity.sources \u7531\u52A0\u8F7D\u5668\u6309 dependsOn \u222A extraSources \u751F\u6210\uFF0C\u7981\u6B62\u624B\u5199\u3002",
|
|
11523
|
+
"if": {
|
|
11524
|
+
"properties": {
|
|
11525
|
+
"derived": {
|
|
11526
|
+
"type": "object",
|
|
11527
|
+
"properties": {
|
|
11528
|
+
"kind": {
|
|
11529
|
+
"const": "provider"
|
|
11530
|
+
}
|
|
11531
|
+
},
|
|
11532
|
+
"required": ["kind"]
|
|
11533
|
+
}
|
|
11534
|
+
},
|
|
11535
|
+
"required": ["derived"]
|
|
11536
|
+
},
|
|
11537
|
+
"then": {
|
|
11538
|
+
"properties": {
|
|
11539
|
+
"security": {
|
|
11540
|
+
"type": "object",
|
|
11541
|
+
"required": ["classification"],
|
|
11542
|
+
"not": {
|
|
11543
|
+
"required": ["sources"]
|
|
11544
|
+
}
|
|
11545
|
+
}
|
|
11546
|
+
},
|
|
11547
|
+
"required": ["security"]
|
|
11548
|
+
}
|
|
11549
|
+
}]
|
|
11059
11550
|
}
|
|
11060
11551
|
},
|
|
11061
11552
|
"immutableWhen": {
|
|
@@ -12453,7 +12944,30 @@ var META_SCHEMAS = {
|
|
|
12453
12944
|
"name": {
|
|
12454
12945
|
"type": "string",
|
|
12455
12946
|
"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'
|
|
12947
|
+
},
|
|
12948
|
+
"actions": {
|
|
12949
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12950
|
+
},
|
|
12951
|
+
"capabilityVersion": {
|
|
12952
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12953
|
+
},
|
|
12954
|
+
"componentKey": {
|
|
12955
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12956
|
+
},
|
|
12957
|
+
"modelKey": {
|
|
12958
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12959
|
+
},
|
|
12960
|
+
"scene": {
|
|
12961
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12962
|
+
},
|
|
12963
|
+
"state": {
|
|
12964
|
+
"description": "\u4F5C\u8005\u6001\u9876\u5C42\u952E\uFF1A\u670D\u52A1\u7AEF\u79DF\u6237\u5199\u5165\u767D\u540D\u5355\u63A5\u53D7\uFF1B\u672C schema \u4E0D\u7EA6\u675F\u5176\u5185\u90E8\u5F62\u72B6\uFF08\u767D\u540D\u5355\u767B\u8BB0\u5728 MetaAuthoringContract\uFF09"
|
|
12456
12965
|
}
|
|
12966
|
+
},
|
|
12967
|
+
"x-hcm-authoring": {
|
|
12968
|
+
"topLevel": "closed",
|
|
12969
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
12970
|
+
"retiredTopLevelKeys": {}
|
|
12457
12971
|
}
|
|
12458
12972
|
},
|
|
12459
12973
|
wiz: {
|
|
@@ -13530,6 +14044,11 @@ var META_SCHEMAS = {
|
|
|
13530
14044
|
"type": {
|
|
13531
14045
|
"type": "string"
|
|
13532
14046
|
}
|
|
14047
|
+
},
|
|
14048
|
+
"x-hcm-authoring": {
|
|
14049
|
+
"topLevel": "closed",
|
|
14050
|
+
"errCode": "META_UNKNOWN_AUTHORING_KEY",
|
|
14051
|
+
"retiredTopLevelKeys": {}
|
|
13533
14052
|
}
|
|
13534
14053
|
}
|
|
13535
14054
|
};
|
|
@@ -13671,6 +14190,11 @@ function preview(v) {
|
|
|
13671
14190
|
function locateLine(rawLines, segs, root) {
|
|
13672
14191
|
const leaf = segs[segs.length - 1];
|
|
13673
14192
|
if (typeof leaf !== "string") return void 0;
|
|
14193
|
+
if (segs.length === 1) {
|
|
14194
|
+
const rootRe = new RegExp(`^["']?${leaf.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}["']?\\s*:`);
|
|
14195
|
+
const hits = rawLines.flatMap((l, i) => rootRe.test(l) ? [i] : []);
|
|
14196
|
+
return hits.length === 1 ? hits[0] + 1 : void 0;
|
|
14197
|
+
}
|
|
13674
14198
|
let anchorKey;
|
|
13675
14199
|
let node = root;
|
|
13676
14200
|
for (const s of segs) {
|
|
@@ -13742,6 +14266,11 @@ function walk2(root, schema, value, segs, kind, issues, depth) {
|
|
|
13742
14266
|
continue;
|
|
13743
14267
|
}
|
|
13744
14268
|
if (openMap || isDirectiveKey(k)) continue;
|
|
14269
|
+
const closedRoot = segs.length === 0 ? authoringContract(root) : void 0;
|
|
14270
|
+
if (closedRoot) {
|
|
14271
|
+
issues.push(closedRootIssue(kind, k, props, closedRoot));
|
|
14272
|
+
continue;
|
|
14273
|
+
}
|
|
13745
14274
|
const inFieldItem = segs.length >= 2 && typeof segs[segs.length - 1] === "number" && segs[segs.length - 2] === "fields";
|
|
13746
14275
|
const alias = inFieldItem ? ALIAS_HINTS[kind]?.[k] : void 0;
|
|
13747
14276
|
const twin = alias ? void 0 : isPrefixedTwin(props, k);
|
|
@@ -13764,6 +14293,26 @@ function walk2(root, schema, value, segs, kind, issues, depth) {
|
|
|
13764
14293
|
}
|
|
13765
14294
|
}
|
|
13766
14295
|
}
|
|
14296
|
+
var AUTHORING_EXTENSION_KEY = "x-hcm-authoring";
|
|
14297
|
+
function authoringContract(root) {
|
|
14298
|
+
const ext = root[AUTHORING_EXTENSION_KEY];
|
|
14299
|
+
if (!ext || typeof ext !== "object" || ext.topLevel !== "closed") return void 0;
|
|
14300
|
+
const retired = ext.retiredTopLevelKeys;
|
|
14301
|
+
return {
|
|
14302
|
+
errCode: typeof ext.errCode === "string" ? ext.errCode : "META_UNKNOWN_AUTHORING_KEY",
|
|
14303
|
+
retiredTopLevelKeys: retired && typeof retired === "object" ? retired : {}
|
|
14304
|
+
};
|
|
14305
|
+
}
|
|
14306
|
+
function closedRootIssue(kind, key, props, contract) {
|
|
14307
|
+
const rewrite = contract.retiredTopLevelKeys[key];
|
|
14308
|
+
const allowed = Object.keys(props).sort();
|
|
14309
|
+
return {
|
|
14310
|
+
severity: "error",
|
|
14311
|
+
path: key,
|
|
14312
|
+
message: rewrite ? `${contract.errCode}: \u9876\u5C42\u952E \`${key}\` \u662F\u5DF2\u9000\u5F79\u7684 ${kind} \u4F5C\u8005\u6001\u5F62\u6001\uFF0C\u670D\u52A1\u7AEF\u5199\u5165\u4F1A\u62D2\u7EDD` : `${contract.errCode}: \u9876\u5C42\u952E \`${key}\` \u4E0D\u662F ${kind} \u4F5C\u8005\u6001\u5951\u7EA6\u7684\u4E00\u90E8\u5206\uFF0C\u670D\u52A1\u7AEF\u5199\u5165\u4F1A\u62D2\u7EDD`,
|
|
14313
|
+
hint: (rewrite ?? `\u5141\u8BB8\u7684\u9876\u5C42\u952E\uFF1A${allowed.join(", ")}`) + `\uFF08\u5951\u7EA6\u6765\u6E90 core@${META_SCHEMA_SOURCE_COMMIT.slice(0, 8)}\uFF1B\u670D\u52A1\u7AEF\u82E5\u5DF2\u66F4\u65B0\uFF0C\u4EE5 \`hcm workspace verify\` \u7684\u670D\u52A1\u7AEF\u9884\u68C0\u4E3A\u51C6\uFF09`
|
|
14314
|
+
};
|
|
14315
|
+
}
|
|
13767
14316
|
function validateScriptActionNames(doc, issues) {
|
|
13768
14317
|
if (!doc || typeof doc !== "object" || !Array.isArray(doc.actions))
|
|
13769
14318
|
return;
|
|
@@ -25969,12 +26518,13 @@ export {
|
|
|
25969
26518
|
METHOD_REPO_DISPLAY,
|
|
25970
26519
|
METHOD_REPO_SLUG,
|
|
25971
26520
|
METHOD_REPO_URL,
|
|
25972
|
-
MINI_APP_RUNTIME_SDK_VERSION,
|
|
26521
|
+
MINI_RUNTIME_SDK_VERSION as MINI_APP_RUNTIME_SDK_VERSION,
|
|
25973
26522
|
MINI_CONTEXT_FILE,
|
|
25974
26523
|
MINI_CONTEXT_KIND,
|
|
25975
26524
|
MINI_CONTEXT_VERSION,
|
|
25976
26525
|
MINI_PULL_MANIFEST_FILE,
|
|
25977
26526
|
MINI_REMOTE_ROOT,
|
|
26527
|
+
MINI_RUNTIME_SDK_VERSION,
|
|
25978
26528
|
MINI_STATE_DIR,
|
|
25979
26529
|
MODELS_PATH,
|
|
25980
26530
|
MODEL_META_PATH,
|
|
@@ -26108,6 +26658,7 @@ export {
|
|
|
26108
26658
|
clearMetaCache,
|
|
26109
26659
|
clearModelCache,
|
|
26110
26660
|
cliAuthorizationExpired,
|
|
26661
|
+
collectMiniPushWrites,
|
|
26111
26662
|
commandsFor,
|
|
26112
26663
|
compareFingerprint,
|
|
26113
26664
|
computeFingerprint,
|
|
@@ -26354,6 +26905,7 @@ export {
|
|
|
26354
26905
|
validateMetaContent,
|
|
26355
26906
|
validateMiniProject,
|
|
26356
26907
|
validateScriptManifest,
|
|
26908
|
+
validateWorkspaceFiles,
|
|
26357
26909
|
valueState,
|
|
26358
26910
|
valuesRoundCaveat,
|
|
26359
26911
|
verifyAttention,
|