@hcmai/sdk 0.29.0 → 0.30.0

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.js CHANGED
@@ -7946,291 +7946,64 @@ async function packDataPackage(packageDir, outPath, opts = {}) {
7946
7946
  };
7947
7947
  }
7948
7948
 
7949
- // src/datapackage/install.ts
7950
- var DEFAULT_ARTIFACT_CATEGORY = "attachment";
7951
- function unwrapActionPayload(resp) {
7952
- const body = resp;
7953
- if (body && typeof body === "object") {
7954
- if (body.data && typeof body.data === "object") return body.data;
7955
- if (body.result && typeof body.result === "object") return body.result;
7956
- }
7957
- return resp;
7958
- }
7959
- function isTerminalRunStatus(status) {
7960
- if (!status) return false;
7961
- return status !== "RUNNING" && status !== "QUEUED" && status !== "MAIN_COMMITTED";
7962
- }
7963
- function confirmationParams(opts) {
7964
- return {
7965
- ...opts.allowDowngrade ? { allowDowngrade: true } : {},
7966
- ...opts.acceptContentChange ? { acceptContentChange: true } : {}
7967
- };
7968
- }
7969
- var INSTALL_CONFIRMATION_HINTS = [
7970
- {
7971
- code: "DATA_PACKAGE_DOWNGRADE_REQUIRES_CONFIRMATION",
7972
- flag: "--allow-downgrade",
7973
- nextStep: "\u786E\u8BA4\u964D\u7EA7\u5F71\u54CD\uFF08\u65E7\u7248\u672C\u6570\u636E\u8986\u76D6\u65B0\u7248\u672C\uFF09\u540E\u52A0 --allow-downgrade \u91CD\u8DD1\uFF1B\u5426\u5219\u6539\u88C5\u4E0D\u4F4E\u4E8E\u5DF2\u88C5\u7248\u672C\u7684\u5236\u54C1"
7974
- },
7975
- {
7976
- code: "DATA_PACKAGE_VERSION_DIGEST_CONFLICT",
7977
- flag: "--accept-content-change",
7978
- nextStep: "\u9996\u9009\u5347\u7248\u672C\u53F7\u91CD\u65B0 pack \u518D\u88C5\uFF1B\u786E\u8BA4\u540C\u7248\u672C\u8986\u76D6\u5F71\u54CD\u540E\u624D\u52A0 --accept-content-change \u5168\u91CF\u91CD\u88C5"
7979
- }
7980
- ];
7981
- async function installDataPackageArtifactAsync(client, artifactPath, opts = {}) {
7982
- const meta = await uploadDocument(
7983
- client.raw(),
7984
- artifactPath,
7985
- opts.category ?? DEFAULT_ARTIFACT_CATEGORY
7986
- );
7987
- const resp = await action(
7988
- client.raw(),
7989
- "DataPackage",
7990
- "installFromDocumentAsync",
7991
- {
7992
- params: { documentId: meta.documentId, tenantId: client.tenantId, ...confirmationParams(opts) }
7993
- }
7994
- );
7995
- const body = unwrapActionPayload(resp);
7996
- const runId = body.runId;
7997
- if (typeof runId !== "string" || runId.length === 0) {
7998
- throw new Error("\u670D\u52A1\u7AEF\u672A\u8FD4\u56DE runId\uFF0C\u65E0\u6CD5\u8DDF\u8E2A\u88C5\u8F7D\u8FDB\u5EA6");
7999
- }
8000
- return {
8001
- documentId: meta.documentId,
8002
- runId,
8003
- packageName: typeof body.packageName === "string" ? body.packageName : void 0,
8004
- version: typeof body.version === "string" ? body.version : void 0
8005
- };
8006
- }
8007
- async function fetchInstallRun(client, runId) {
7949
+ // src/datapackage/column-slots.ts
7950
+ import { isMap as isMap2, isScalar as isScalar2, isSeq as isSeq2, parseDocument as parseDocument2 } from "yaml";
7951
+ function columnSlotsToFlex(text3, rewrite = true) {
7952
+ const isColumn = (storage, slot) => typeof storage === "string" && storage.trim().toLowerCase() === "column" || typeof slot === "string" && slot.trim() !== "";
7953
+ let json;
8008
7954
  try {
8009
- const resp = await client.raw().get(`/api/models/DataPackageInstallRun/${runId}`);
8010
- const body = resp.data?.data ?? resp.data;
8011
- return body && typeof body === "object" ? body : void 0;
8012
- } catch (e) {
8013
- if (e?.response?.status === 404) return void 0;
8014
- throw e;
8015
- }
8016
- }
8017
- async function waitForInstallRun(client, runId, opts) {
8018
- const pollMs = opts.pollMs ?? 2e3;
8019
- const now = opts.now ?? (() => Date.now());
8020
- const sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
8021
- const deadline = now() + opts.timeoutMs;
8022
- let last;
8023
- for (; ; ) {
8024
- const current = await fetchInstallRun(client, runId);
8025
- if (current) last = current;
8026
- opts.onProgress?.(current);
8027
- if (isTerminalRunStatus(last?.status)) {
8028
- return { run: last, timedOut: false };
8029
- }
8030
- if (now() >= deadline) {
8031
- return { run: last, timedOut: true };
8032
- }
8033
- await sleep(pollMs);
8034
- }
8035
- }
8036
- async function installDataPackageArtifact(client, artifactPath, opts = {}) {
8037
- const meta = await uploadDocument(
8038
- client.raw(),
8039
- artifactPath,
8040
- opts.category ?? DEFAULT_ARTIFACT_CATEGORY
8041
- );
8042
- const resp = await action(
8043
- client.raw(),
8044
- "DataPackage",
8045
- "installFromDocument",
8046
- {
8047
- params: { documentId: meta.documentId, tenantId: client.tenantId, ...confirmationParams(opts) }
8048
- }
8049
- );
8050
- const view = unwrapActionPayload(resp);
8051
- return { documentId: meta.documentId, view };
8052
- }
8053
-
8054
- // src/cache.ts
8055
- async function getCacheStats(http, model) {
8056
- const resp = await http.get(`/api/models/${model}/cache`);
8057
- return resp.data?.data ?? resp.data;
8058
- }
8059
- async function clearModelCache(http, model, id) {
8060
- const url = id ? `/api/models/${model}/cache/${id}` : `/api/models/${model}/cache`;
8061
- const resp = await http.delete(url);
8062
- return resp.data?.data ?? resp.data;
8063
- }
8064
- async function clearMetaCache(http, model, opts = {}) {
8065
- const params = {};
8066
- if (opts.type) params.type = opts.type;
8067
- if (opts.state) params.state = opts.state;
8068
- const resp = await http.delete(`/api/models/${model}/meta/cache`, { params });
8069
- return resp.data?.data ?? resp.data;
8070
- }
8071
-
8072
- // src/script.ts
8073
- function unwrap(data) {
8074
- const body = data;
8075
- return (body && typeof body === "object" && "data" in body ? body.data : data) ?? data;
8076
- }
8077
- async function scriptDryRun(http, request) {
8078
- const resp = await http.post("/api/script/dry-run", request);
8079
- return unwrap(resp.data);
8080
- }
8081
- async function validateScriptManifest(http, manifestYaml) {
8082
- const resp = await http.post("/api/script/manifest/validate", { manifestYaml });
8083
- return unwrap(resp.data);
8084
- }
8085
- async function queryScriptLogs(http, query2 = {}) {
8086
- const params = {};
8087
- for (const [k, v] of Object.entries(query2)) {
8088
- if (v !== void 0 && v !== null && v !== "") params[k] = v;
8089
- }
8090
- const resp = await http.get("/api/script-logs", { params });
8091
- return unwrap(resp.data);
8092
- }
8093
- async function getScriptTask(http, taskId) {
8094
- const resp = await http.get(`/api/script-tasks/${encodeURIComponent(taskId)}`);
8095
- return unwrap(resp.data);
8096
- }
8097
-
8098
- // src/tenant.ts
8099
- async function bootstrapTenant(http, bootstrapKey, req) {
8100
- const resp = await http.post("/api/bootstrap/tenant", req, {
8101
- headers: { "X-Bootstrap-Key": bootstrapKey }
8102
- });
8103
- return resp.data?.data ?? resp.data;
8104
- }
8105
- async function reconcileTenant(http, expectedTenantId) {
8106
- const { data } = await http.post("/api/operations/bootstrap/reconcile", {}, {
8107
- __skipRetry: true,
8108
- maxRedirects: 0
8109
- });
8110
- const countKeys = ["fromVersion", "toVersion", "created", "updated", "archived"];
8111
- const rows = data?.results;
8112
- if (!data || data.tenantId !== expectedTenantId || typeof data.success !== "boolean" || !(data.error == null || typeof data.error === "string") || !Array.isArray(rows) || !rows.length || !rows.every((row) => row && typeof row.component === "string" && row.component.trim() && typeof row.status === "string" && row.status.trim() && typeof row.message === "string" && countKeys.every((key) => Number.isSafeInteger(row[key]) && Number(row[key]) >= 0) && Number(row.toVersion) >= Number(row.fromVersion)) || new Set(rows.map((row) => row.component)).size !== rows.length) {
8113
- throw new CliError({
8114
- code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
8115
- message: "\u8865\u8DD1\u63A5\u53E3\u672A\u8FD4\u56DE\u5B8C\u6574\u4E14\u5339\u914D\u5F53\u524D\u79DF\u6237\u7684\u9010\u7EC4\u4EF6\u56DE\u6267\uFF0C\u7ED3\u679C\u672A\u786E\u8BA4\uFF1B\u6CA1\u6709\u628A\u7F3A\u503C\u586B\u6210\u96F6\u6216\u6210\u529F\u3002",
8116
- context: {
8117
- reasonCode: "TENANT_RECONCILE_RECEIPT_UNKNOWN",
8118
- details: { unverifiedReceipt: data },
8119
- nextStep: "\u5148\u53EA\u8BFB\u67E5\u8BE2 tenant.bootstrap \u5E76\u6838\u67E5\u670D\u52A1\u7AEF\u65E5\u5FD7\uFF1B\u4E0D\u8981\u56E0\u56DE\u6267\u672A\u77E5\u81EA\u52A8\u91CD\u53D1\u8865\u8DD1\u3002"
7955
+ json = JSON.parse(text3);
7956
+ } catch {
7957
+ json = void 0;
7958
+ }
7959
+ if (json && typeof json === "object" && !Array.isArray(json)) {
7960
+ const fields2 = [];
7961
+ const list2 = json.fields;
7962
+ if (Array.isArray(list2)) {
7963
+ for (const f of list2) {
7964
+ if (!f || typeof f !== "object") continue;
7965
+ const o = f;
7966
+ if (!isColumn(o.storage, o.columnSlot)) continue;
7967
+ fields2.push({ field: String(o.key ?? "?"), ...typeof o.columnSlot === "string" ? { columnSlot: o.columnSlot } : {}, ...typeof o.type === "string" ? { type: o.type } : {} });
7968
+ if (rewrite) {
7969
+ o.storage = "flex";
7970
+ delete o.columnSlot;
7971
+ }
8120
7972
  }
8121
- });
8122
- }
8123
- return data;
8124
- }
8125
- async function resetTenant(http, tenantId) {
8126
- const { data: envelope2 } = await http.post("/api/models/DataPackage/action/resetTenant", {
8127
- tenantId,
8128
- confirmation: `RESET_TENANT:${tenantId}`
8129
- }, { __skipRetry: true, maxRedirects: 0 });
8130
- const receipt = envelope2?.data;
8131
- const text3 = (value) => typeof value === "string" && value.trim().length > 0;
8132
- const nonPg = receipt?.nonPgSurface;
8133
- if (!envelope2 || envelope2.error != null || envelope2.success === false || !receipt || Array.isArray(receipt) || receipt.tenantId !== tenantId || !text3(receipt.runId) || receipt.state !== "FACTORY_BASELINE" || receipt.stateScope !== "POSTGRESQL" || !["deletedRows", "touchedTables", "reconciledComponents", "restoredRows"].every((key) => Number.isSafeInteger(receipt[key]) && receipt[key] >= 0) || !["pgVerified", "overallVerified", "journalReconciledMarked"].every((key) => typeof receipt[key] === "boolean") || !nonPg || !text3(nonPg.status) || !text3(nonPg.reason) || !text3(nonPg.nextStep) || !Array.isArray(nonPg.unhandledSurfaces) || !nonPg.unhandledSurfaces.length || !nonPg.unhandledSurfaces.every(text3)) {
8134
- throw new CliError({
8135
- code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
8136
- message: "\u91CD\u7F6E\u63A5\u53E3\u672A\u8FD4\u56DE\u5B8C\u6574\u4E14\u5339\u914D\u76EE\u6807\u7684\u73B0\u5F79\u56DE\u6267\uFF0C\u7ED3\u679C\u672A\u786E\u8BA4\uFF1B\u672A\u5C06\u7F3A\u503C\u8865\u6210\u96F6\u6216\u6210\u529F\u3002",
8137
- context: {
8138
- reasonCode: "TENANT_RESET_RECEIPT_UNKNOWN",
8139
- // 坐标来自未确认回执,只供追查;保留原值,绝不据此声明成功。
8140
- details: {
8141
- ...envelope2?.error ? { error: envelope2.error } : {},
8142
- ...receipt !== void 0 ? { unverifiedReceipt: receipt } : {}
8143
- },
8144
- nextStep: "\u4E0D\u8981\u76F2\u76EE\u91CD\u8DD1\u91CD\u7F6E\uFF1B\u6838\u67E5\u670D\u52A1\u7AEF\u91CD\u7F6E\u6D41\u6C34\u4E0E\u5F53\u524D\u79DF\u6237\u72B6\u6001\u3002"
7973
+ }
7974
+ if (!fields2.length || !rewrite) return { text: text3, fields: fields2 };
7975
+ return { text: JSON.stringify(json, null, 2) + (text3.endsWith("\n") ? "\n" : ""), fields: fields2 };
7976
+ }
7977
+ const doc = parseDocument2(text3);
7978
+ if (doc.errors.length) throw new Error(doc.errors.map((e) => e.message).join("; "));
7979
+ const seq = doc.get("fields", true);
7980
+ const fields = [];
7981
+ if (isSeq2(seq)) {
7982
+ for (const item of seq.items) {
7983
+ if (!isMap2(item)) continue;
7984
+ const val = (k) => {
7985
+ const v = item.get(k, true);
7986
+ return isScalar2(v) ? v.value : void 0;
7987
+ };
7988
+ if (!isColumn(val("storage"), val("columnSlot"))) continue;
7989
+ const slot = val("columnSlot");
7990
+ const type = val("type");
7991
+ fields.push({ field: String(val("key") ?? "?"), ...typeof slot === "string" ? { columnSlot: slot } : {}, ...typeof type === "string" ? { type } : {} });
7992
+ if (rewrite) {
7993
+ item.set("storage", "flex");
7994
+ item.delete("columnSlot");
8145
7995
  }
8146
- });
7996
+ }
8147
7997
  }
8148
- return receipt;
7998
+ if (!fields.length || !rewrite) return { text: text3, fields };
7999
+ return { text: doc.toString(), fields };
8149
8000
  }
8150
8001
 
8151
- // src/meta/tenant-meta.ts
8152
- async function listTenantMeta(http, opts = {}) {
8153
- const resp = await http.get("/api/tenant-meta/list", { params: opts });
8154
- const body = resp.data;
8155
- const payload = body?.data ?? body;
8156
- const items = Array.isArray(payload) ? payload : payload?.items ?? payload?.list ?? payload?.records ?? [];
8157
- const total = typeof body?.total === "number" ? body.total : payload?.total;
8158
- return { items, total, raw: payload };
8159
- }
8160
- async function getTenantMeta(http, path25) {
8161
- const resp = await http.get("/api/tenant-meta/meta", { params: { path: path25 } });
8162
- const payload = resp.data?.data ?? resp.data;
8163
- if (typeof payload === "string") return payload;
8164
- return String(payload?.content ?? "");
8165
- }
8166
- async function saveTenantMeta(http, path25, content) {
8167
- const resp = await http.put("/api/tenant-meta/meta", { content }, { params: { path: path25 } });
8168
- return resp.data?.data ?? resp.data;
8169
- }
8170
- async function deleteTenantMeta(http, path25) {
8171
- const resp = await http.delete("/api/tenant-meta/meta", { params: { path: path25 } });
8172
- return resp.data?.data ?? resp.data;
8173
- }
8174
-
8175
- // src/meta/column-slots.ts
8176
- var WORKSPACE_KEY_HEADER = "X-Workspace-Key";
8177
- var COLUMN_SLOTS_PATH = "/api/tenant-extension/column-slots";
8178
- var COLUMN_SLOT_SQL_PATH = "/api/tenant-extension/column-slots/sql";
8179
- var COLUMN_SLOT_SQL_KEYS = [
8180
- "countSlot",
8181
- "flexToSlotBatched",
8182
- "flexToSlot",
8183
- "verifyFlexToSlot",
8184
- "slotToFlex",
8185
- "removeFlexKey",
8186
- "clearSlot",
8187
- "moveFromSlot",
8188
- "verifyMoveFromSlot",
8189
- "clearFromSlot"
8190
- ];
8191
- var COLUMN_SLOT_REBIND_SQL_KEYS = ["moveFromSlot", "verifyMoveFromSlot", "clearFromSlot"];
8192
- function headers(opts) {
8193
- return opts.workspaceKey ? { [WORKSPACE_KEY_HEADER]: opts.workspaceKey } : void 0;
8194
- }
8195
- function isRecord2(value) {
8196
- return typeof value === "object" && value !== null && !Array.isArray(value);
8197
- }
8198
- function unexpected(path25, body) {
8199
- return new CliError({
8200
- code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
8201
- message: `${path25} \u8FD4\u56DE\u4E86 2xx\uFF0C\u4F46\u54CD\u5E94\u91CC\u6CA1\u6709\u7EA6\u5B9A\u7684 data \u7ED3\u6784\uFF1B\u6CA1\u6709\u628A\u7F3A\u7684\u90E8\u5206\u8865\u6210\u7A7A\u5217\u8868`,
8202
- context: {
8203
- reasonCode: "COLUMN_SLOT_RESPONSE_UNRECOGNIZED",
8204
- details: body,
8205
- nextStep: "\u7528 `hcm version` \u6838\u5BF9\u540E\u7AEF\u7248\u672C\u662F\u5426\u542B\u5217\u69FD\u767B\u8BB0\u8868\uFF08ADR-452\uFF09\uFF1B\u7248\u672C\u5BF9\u5F97\u4E0A\u5C31\u628A\u8FD9\u6BB5\u54CD\u5E94\u62A5\u7ED9 CLI \u7EF4\u62A4\u8005"
8206
- }
8207
- });
8208
- }
8209
- async function getColumnSlots(http, model, opts = {}) {
8210
- const resp = await http.get(COLUMN_SLOTS_PATH, { params: { model }, headers: headers(opts) });
8211
- const data = resp.data?.data;
8212
- if (!isRecord2(data) || !Array.isArray(data.slots) || !Array.isArray(data.occupied)) {
8213
- throw unexpected(COLUMN_SLOTS_PATH, resp.data);
8214
- }
8215
- return data;
8216
- }
8217
- async function getColumnSlotSql(http, params, opts = {}) {
8218
- const query2 = { model: params.model, field: params.field };
8219
- if (params.slot) query2.slot = params.slot;
8220
- if (params.fromSlot) query2.fromSlot = params.fromSlot;
8221
- const resp = await http.get(COLUMN_SLOT_SQL_PATH, { params: query2, headers: headers(opts) });
8222
- const data = resp.data?.data;
8223
- if (!isRecord2(data) || !isRecord2(data.sql)) {
8224
- throw unexpected(COLUMN_SLOT_SQL_PATH, resp.data);
8225
- }
8226
- return data;
8227
- }
8228
-
8229
- // src/meta/validate-meta.ts
8230
- import yaml8 from "js-yaml";
8002
+ // src/datapackage/extension-sanitize.ts
8003
+ import { isMap as isMap3, isScalar as isScalar3, isSeq as isSeq3, parseDocument as parseDocument3 } from "yaml";
8231
8004
 
8232
8005
  // src/meta/generated/meta-schemas.ts
8233
- var META_SCHEMA_SOURCE_COMMIT = "206fd90621975757bd5c77c014e037ff74f2506c";
8006
+ var META_SCHEMA_SOURCE_COMMIT = "71adaaa601037dcc8ac84d2bfb537b873be37a7c";
8234
8007
  var META_SCHEMAS = {
8235
8008
  list: {
8236
8009
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -8714,6 +8487,36 @@ var META_SCHEMAS = {
8714
8487
  "$ref": "#/$defs/Map(String,Object)"
8715
8488
  }
8716
8489
  },
8490
+ "preview": {
8491
+ "type": "object",
8492
+ "properties": {
8493
+ "bindings": {
8494
+ "$ref": "#/$defs/Map(String,String)"
8495
+ },
8496
+ "fields": {
8497
+ "type": "array",
8498
+ "items": {
8499
+ "type": "string"
8500
+ }
8501
+ },
8502
+ "itemField": {
8503
+ "type": "string"
8504
+ },
8505
+ "itemsField": {
8506
+ "type": "string"
8507
+ },
8508
+ "model": {
8509
+ "type": "string"
8510
+ },
8511
+ "pageSize": {
8512
+ "type": "integer"
8513
+ },
8514
+ "state": {
8515
+ "type": "string"
8516
+ }
8517
+ },
8518
+ "$ref": "#/$defs/FormPreview"
8519
+ },
8717
8520
  "submitLabel": {
8718
8521
  "type": "string"
8719
8522
  },
@@ -9093,6 +8896,51 @@ var META_SCHEMAS = {
9093
8896
  }
9094
8897
  },
9095
8898
  "additionalProperties": false
8899
+ },
8900
+ "FormPreview": {
8901
+ "type": "object",
8902
+ "description": "\u72EC\u7ACB\u53EA\u8BFB\u9010\u9879\u9884\u89C8\uFF1A\u590D\u7528\u76EE\u6807\u6A21\u578B info \u5B57\u6BB5\u548C behavior\uFF0C\u4E0D\u56DE\u5199\u53C2\u6570\u3001\u4E0D\u66FF\u4EE3\u63D0\u4EA4\u6821\u9A8C\u3002",
8903
+ "required": ["model", "itemsField", "itemField", "fields"],
8904
+ "properties": {
8905
+ "model": {
8906
+ "type": "string",
8907
+ "minLength": 1
8908
+ },
8909
+ "state": {
8910
+ "type": "string"
8911
+ },
8912
+ "itemsField": {
8913
+ "type": "string",
8914
+ "minLength": 1
8915
+ },
8916
+ "itemField": {
8917
+ "type": "string",
8918
+ "minLength": 1
8919
+ },
8920
+ "bindings": {
8921
+ "type": "object",
8922
+ "additionalProperties": {
8923
+ "type": "string",
8924
+ "minLength": 1
8925
+ }
8926
+ },
8927
+ "fields": {
8928
+ "type": "array",
8929
+ "minItems": 1,
8930
+ "uniqueItems": true,
8931
+ "items": {
8932
+ "type": "string",
8933
+ "minLength": 1
8934
+ }
8935
+ },
8936
+ "pageSize": {
8937
+ "type": "integer",
8938
+ "minimum": 1,
8939
+ "maximum": 20,
8940
+ "default": 10
8941
+ }
8942
+ },
8943
+ "additionalProperties": false
9096
8944
  }
9097
8945
  },
9098
8946
  "type": "object",
@@ -9625,6 +9473,9 @@ var META_SCHEMAS = {
9625
9473
  "items": {
9626
9474
  "$ref": "#/$defs/Map(String,Object)"
9627
9475
  }
9476
+ },
9477
+ "preview": {
9478
+ "$ref": "#/$defs/FormPreview"
9628
9479
  }
9629
9480
  }
9630
9481
  },
@@ -10063,11 +9914,11 @@ var META_SCHEMAS = {
10063
9914
  },
10064
9915
  "render": {
10065
9916
  "$ref": "#/$defs/Map(String,Object)",
10066
- "description": "\u6E32\u67D3\u914D\u7F6E\uFF1BmergeRows\u652F\u6301\u72EC\u7ACB\u7EC4\u952E\uFF0C1.81\u589E\u52A0valueMode:first/singleText/emptyText\u4E0EsecondaryField\u7EAF\u6587\u672C\u526F\u6587\u6848\uFF1B\u4EC5\u5F53\u524D\u9875\u76F8\u90BB\u65E0\u5B57\u6BB5\u88C1\u51B3\uFF0C\u4E0D\u4EE3\u8868\u5B8C\u6574\u7EC4",
9917
+ "description": "\u6E32\u67D3\u914D\u7F6E\uFF1BmergeRows\u652F\u6301\u72EC\u7ACB\u7EC4\u952E\uFF0C1.81\u589E\u52A0valueMode:first/singleText/emptyText\u4E0EsecondaryField\u7EAF\u6587\u672C\u526F\u6587\u6848\uFF0C1.89\u589E\u52A0\u4E0E\u7EC4\u952E\u4E92\u65A5\u7684continuationField\u5E03\u5C14\u7EED\u884C\u6807\u8BB0\uFF1B\u4EC5\u5F53\u524D\u9875\u76F8\u90BB\u65E0\u5B57\u6BB5\u88C1\u51B3\uFF0C\u4E0D\u4EE3\u8868\u5B8C\u6574\u7EC4",
10067
9918
  "type": "object",
10068
9919
  "properties": {
10069
9920
  "mergeRows": {
10070
- "description": "\u5F53\u524D\u9875\u8FDE\u7EED\u7EC4\uFF1B\u7F3A\u7701same\u8981\u6C42\u663E\u793A\u503C\u4E00\u81F4\uFF0Cfirst\u53D6\u6BB5\u9996\u503C\u5E76\u5141\u8BB8\u6587\u6848\uFF1B\u5B57\u6BB5\u88C1\u51B3\u62C6\u6BB5\uFF1B\u4E0D\u8868\u793A\u5B8C\u6574\u7EC4",
9921
+ "description": "\u5F53\u524D\u9875\u8FDE\u7EED\u5408\u5E76\uFF1BgroupField\u6309\u7EC4\u952E\u5408\u5E76\uFF1B1.89\u8D77continuationField\u5E03\u5C14\u6807\u8BB0\u4E0E\u7EC4\u952E\u4E92\u65A5\uFF0Cfalse\u4E14\u975E\u7A7A\u4E3A\u6BB5\u9996\u3001\u8FDE\u7EEDtrue\u4E3A\u7EED\u884C\uFF0C\u9875\u9996true\u72EC\u7ACB\u7A7A\u767D\uFF1B\u5B57\u6BB5\u88C1\u51B3\u62C6\u6BB5\uFF1B\u4E0D\u8DE8\u9875",
10071
9922
  "oneOf": [{
10072
9923
  "type": "boolean"
10073
9924
  }, {
@@ -10091,11 +9942,49 @@ var META_SCHEMAS = {
10091
9942
  "type": "string",
10092
9943
  "maxLength": 256
10093
9944
  },
9945
+ "singleTextWhen": {
9946
+ "description": "1.88.0\uFF1A\u5355\u884C\u6BB5\u6587\u6848\u7684\u5B57\u6BB5\u7B49\u503C\u6761\u4EF6\uFF1Bfield\u987B\u5DF2\u58F0\u660E\u6295\u5F71\uFF0C\u4E25\u683C\u533A\u5206\u6570\u503C/\u5B57\u7B26\u4E32/\u5E03\u5C14\u503C",
9947
+ "type": "object",
9948
+ "required": ["field", "equals"],
9949
+ "additionalProperties": false,
9950
+ "properties": {
9951
+ "field": {
9952
+ "type": "string",
9953
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$"
9954
+ },
9955
+ "equals": {
9956
+ "oneOf": [{
9957
+ "type": "string",
9958
+ "maxLength": 256
9959
+ }, {
9960
+ "type": "number"
9961
+ }, {
9962
+ "type": "boolean"
9963
+ }]
9964
+ }
9965
+ }
9966
+ },
10094
9967
  "emptyText": {
10095
9968
  "type": "string",
10096
9969
  "maxLength": 256
10097
9970
  }
10098
9971
  }
9972
+ }, {
9973
+ "type": "object",
9974
+ "required": ["continuationField"],
9975
+ "additionalProperties": false,
9976
+ "properties": {
9977
+ "continuationField": {
9978
+ "type": "string",
9979
+ "minLength": 1,
9980
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
9981
+ "description": "\u5DF2\u58F0\u660E\u6295\u5F71\u7684\u5E03\u5C14\u8DEF\u5F84\uFF1B\u4E25\u683Cfalse\u4E3A\u6BB5\u9996\u5019\u9009\u3001true\u5EF6\u7EED\u524D\u683C\uFF1B\u7F3A\u5931/\u975E\u5E03\u5C14/\u5B57\u6BB5\u88C1\u51B3\u62C6\u6BB5\uFF1B\u4E0D\u8FFD\u6EAF\u524D\u9875"
9982
+ },
9983
+ "displayField": {
9984
+ "type": "string",
9985
+ "minLength": 1
9986
+ }
9987
+ }
10099
9988
  }]
10100
9989
  },
10101
9990
  "secondaryField": {
@@ -10288,6 +10177,10 @@ var META_SCHEMAS = {
10288
10177
  "type": "string",
10289
10178
  "description": "\u5408\u8BA1\u884C\u7684\u7EAF\u6587\u672C\u6807\u9898\uFF0C\u7F3A\u7701\u672C\u9875\u5408\u8BA1",
10290
10179
  "maxLength": 128
10180
+ },
10181
+ "nullAsZero": {
10182
+ "type": "boolean",
10183
+ "description": "\u975E\u7A7A\u9875\u5168\u6388\u6743\u4E1A\u52A1\u7A7A\u503C\u8BA1\u96F6\uFF0C\u9ED8\u8BA4false\uFF1B\u9700\u524D\u7AEF1.87.0"
10291
10184
  }
10292
10185
  },
10293
10186
  "description": "\u5F53\u524D\u9875\u5DF2\u6388\u6743\u660E\u7EC6\u5408\u8BA1\uFF1B\u7A7A\u9875\u9690\u85CF\uFF0C\u672A\u77E5/\u62D2\u7EDD\u4E0D\u5F53\u4F5C0\uFF1B\u9700\u524D\u7AEF1.81.0",
@@ -10341,6 +10234,10 @@ var META_SCHEMAS = {
10341
10234
  "additionalProperties": false,
10342
10235
  "required": ["default", "options"]
10343
10236
  },
10237
+ "selectAllScope": {
10238
+ "type": "boolean",
10239
+ "description": "\u6309\u5F53\u524D\u6388\u6743\u7EC4\u7EC7\u3001\u65F6\u70B9\u548C\u7B5B\u9009\u6761\u4EF6\u9009\u5168\uFF0C\u5305\u542B\u8DE8\u9875\u53CA\u5173\u952E\u8BCD\u9690\u85CF\u8BB0\u5F55\uFF1B\u9700 selectable:true\u3001reserveSelection:true\uFF1B\u4E0D\u652F\u6301\u5361\u7247\u6216AI\u67E5\u8BE2\u65B9\u6848\uFF1B\u4EC5\u8303\u56F4\u6A21\u5F0F\u643A\u5E26selectionScope\uFF0C\u670D\u52A1\u7AEF\u6BCF500\u6761\u590D\u6838\u5217\u8868\u53CA\u52A8\u4F5C\u6388\u6743\u4EA4\u96C6\uFF0C\u65E0\u6807\u8BB0\u6CBF\u7528\u65E2\u6709\u52A8\u4F5C\u8BED\u4E49\uFF1B\u9700\u524D\u7AEF1.90.0"
10240
+ },
10344
10241
  "selectable": {
10345
10242
  "type": "boolean",
10346
10243
  "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"
@@ -10628,7 +10525,12 @@ var META_SCHEMAS = {
10628
10525
  "type": "string"
10629
10526
  },
10630
10527
  "formSchema": {
10631
- "$ref": "#/$defs/Map(String,Object)"
10528
+ "$ref": "#/$defs/Map(String,Object)",
10529
+ "properties": {
10530
+ "preview": {
10531
+ "$ref": "#/$defs/FormPreview"
10532
+ }
10533
+ }
10632
10534
  },
10633
10535
  "formRef": {
10634
10536
  "$ref": "#/$defs/Map(String,Object)"
@@ -10711,6 +10613,51 @@ var META_SCHEMAS = {
10711
10613
  }
10712
10614
  }
10713
10615
  }
10616
+ },
10617
+ "FormPreview": {
10618
+ "type": "object",
10619
+ "description": "\u72EC\u7ACB\u53EA\u8BFB\u9010\u9879\u9884\u89C8\uFF1A\u590D\u7528\u76EE\u6807\u6A21\u578B info \u5B57\u6BB5\u548C behavior\uFF0C\u4E0D\u56DE\u5199\u53C2\u6570\u3001\u4E0D\u66FF\u4EE3\u63D0\u4EA4\u6821\u9A8C\u3002",
10620
+ "required": ["model", "itemsField", "itemField", "fields"],
10621
+ "properties": {
10622
+ "model": {
10623
+ "type": "string",
10624
+ "minLength": 1
10625
+ },
10626
+ "state": {
10627
+ "type": "string"
10628
+ },
10629
+ "itemsField": {
10630
+ "type": "string",
10631
+ "minLength": 1
10632
+ },
10633
+ "itemField": {
10634
+ "type": "string",
10635
+ "minLength": 1
10636
+ },
10637
+ "bindings": {
10638
+ "type": "object",
10639
+ "additionalProperties": {
10640
+ "type": "string",
10641
+ "minLength": 1
10642
+ }
10643
+ },
10644
+ "fields": {
10645
+ "type": "array",
10646
+ "minItems": 1,
10647
+ "uniqueItems": true,
10648
+ "items": {
10649
+ "type": "string",
10650
+ "minLength": 1
10651
+ }
10652
+ },
10653
+ "pageSize": {
10654
+ "type": "integer",
10655
+ "minimum": 1,
10656
+ "maximum": 20,
10657
+ "default": 10
10658
+ }
10659
+ },
10660
+ "additionalProperties": false
10714
10661
  }
10715
10662
  },
10716
10663
  "type": "object",
@@ -11056,6 +11003,36 @@ var META_SCHEMAS = {
11056
11003
  "$ref": "#/$defs/Map(String,Object)"
11057
11004
  }
11058
11005
  },
11006
+ "preview": {
11007
+ "type": "object",
11008
+ "properties": {
11009
+ "bindings": {
11010
+ "$ref": "#/$defs/Map(String,String)"
11011
+ },
11012
+ "fields": {
11013
+ "type": "array",
11014
+ "items": {
11015
+ "type": "string"
11016
+ }
11017
+ },
11018
+ "itemField": {
11019
+ "type": "string"
11020
+ },
11021
+ "itemsField": {
11022
+ "type": "string"
11023
+ },
11024
+ "model": {
11025
+ "type": "string"
11026
+ },
11027
+ "pageSize": {
11028
+ "type": "integer"
11029
+ },
11030
+ "state": {
11031
+ "type": "string"
11032
+ }
11033
+ },
11034
+ "$ref": "#/$defs/FormPreview"
11035
+ },
11059
11036
  "submitLabel": {
11060
11037
  "type": "string"
11061
11038
  },
@@ -11447,7 +11424,12 @@ var META_SCHEMAS = {
11447
11424
  "type": "string"
11448
11425
  },
11449
11426
  "formSchema": {
11450
- "$ref": "#/$defs/Map(String,Object)"
11427
+ "$ref": "#/$defs/Map(String,Object)",
11428
+ "properties": {
11429
+ "preview": {
11430
+ "$ref": "#/$defs/FormPreview"
11431
+ }
11432
+ }
11451
11433
  },
11452
11434
  "formRef": {
11453
11435
  "$ref": "#/$defs/Map(String,Object)"
@@ -11530,6 +11512,51 @@ var META_SCHEMAS = {
11530
11512
  }
11531
11513
  }
11532
11514
  }
11515
+ },
11516
+ "FormPreview": {
11517
+ "type": "object",
11518
+ "description": "\u72EC\u7ACB\u53EA\u8BFB\u9010\u9879\u9884\u89C8\uFF1A\u590D\u7528\u76EE\u6807\u6A21\u578B info \u5B57\u6BB5\u548C behavior\uFF0C\u4E0D\u56DE\u5199\u53C2\u6570\u3001\u4E0D\u66FF\u4EE3\u63D0\u4EA4\u6821\u9A8C\u3002",
11519
+ "required": ["model", "itemsField", "itemField", "fields"],
11520
+ "properties": {
11521
+ "model": {
11522
+ "type": "string",
11523
+ "minLength": 1
11524
+ },
11525
+ "state": {
11526
+ "type": "string"
11527
+ },
11528
+ "itemsField": {
11529
+ "type": "string",
11530
+ "minLength": 1
11531
+ },
11532
+ "itemField": {
11533
+ "type": "string",
11534
+ "minLength": 1
11535
+ },
11536
+ "bindings": {
11537
+ "type": "object",
11538
+ "additionalProperties": {
11539
+ "type": "string",
11540
+ "minLength": 1
11541
+ }
11542
+ },
11543
+ "fields": {
11544
+ "type": "array",
11545
+ "minItems": 1,
11546
+ "uniqueItems": true,
11547
+ "items": {
11548
+ "type": "string",
11549
+ "minLength": 1
11550
+ }
11551
+ },
11552
+ "pageSize": {
11553
+ "type": "integer",
11554
+ "minimum": 1,
11555
+ "maximum": 20,
11556
+ "default": 10
11557
+ }
11558
+ },
11559
+ "additionalProperties": false
11533
11560
  }
11534
11561
  },
11535
11562
  "type": "object",
@@ -11905,6 +11932,36 @@ var META_SCHEMAS = {
11905
11932
  "$ref": "#/$defs/Map(String,Object)"
11906
11933
  }
11907
11934
  },
11935
+ "preview": {
11936
+ "type": "object",
11937
+ "properties": {
11938
+ "bindings": {
11939
+ "$ref": "#/$defs/Map(String,String)"
11940
+ },
11941
+ "fields": {
11942
+ "type": "array",
11943
+ "items": {
11944
+ "type": "string"
11945
+ }
11946
+ },
11947
+ "itemField": {
11948
+ "type": "string"
11949
+ },
11950
+ "itemsField": {
11951
+ "type": "string"
11952
+ },
11953
+ "model": {
11954
+ "type": "string"
11955
+ },
11956
+ "pageSize": {
11957
+ "type": "integer"
11958
+ },
11959
+ "state": {
11960
+ "type": "string"
11961
+ }
11962
+ },
11963
+ "$ref": "#/$defs/FormPreview"
11964
+ },
11908
11965
  "submitLabel": {
11909
11966
  "type": "string"
11910
11967
  },
@@ -12521,6 +12578,13 @@ var META_SCHEMAS = {
12521
12578
  },
12522
12579
  "source": {
12523
12580
  "type": "string"
12581
+ },
12582
+ "verification": {
12583
+ "type": "string",
12584
+ "enum": ["NONE", "UNKNOWN"]
12585
+ },
12586
+ "verificationNote": {
12587
+ "type": "string"
12524
12588
  }
12525
12589
  }
12526
12590
  }
@@ -12936,7 +13000,7 @@ var META_SCHEMAS = {
12936
13000
  "type": "string"
12937
13001
  },
12938
13002
  "referenceDisplaySynonyms": {
12939
- "description": "\u5F15\u7528\u5C55\u793A\u503C\u79F0\u8C13\uFF1B\u5FC5\u987B\u662F\u5355\u503C object \u5B57\u6BB5\u6709\u6548 name/synonyms \u7684\u5B50\u96C6\uFF1Bnull/\u7A7A\u6570\u7EC4\u53D6\u6D88\u58F0\u660E",
13003
+ "description": "\u5F15\u7528\u5C55\u793A\u503C\u79F0\u8C13\uFF1B\u5FC5\u987B\u662F\u5355\u503C object \u5B57\u6BB5\u6709\u6548 name/synonyms \u7684\u5B50\u96C6\uFF1B\u672A\u58F0\u660E\u4E14\u76EE\u6807\u4E3A\u7801\u8868\u65F6\u9ED8\u8BA4\u53D6\u5B57\u6BB5\u81EA\u8EAB name/synonyms\uFF0C\u7A7A\u6570\u7EC4\u5173\u95ED\u9ED8\u8BA4",
12940
13004
  "type": ["array", "null"],
12941
13005
  "items": {
12942
13006
  "type": "string",
@@ -14133,6 +14197,36 @@ var META_SCHEMAS = {
14133
14197
  "$ref": "#/$defs/Map(String,Object)"
14134
14198
  }
14135
14199
  },
14200
+ "preview": {
14201
+ "type": "object",
14202
+ "properties": {
14203
+ "bindings": {
14204
+ "$ref": "#/$defs/Map(String,String)"
14205
+ },
14206
+ "fields": {
14207
+ "type": "array",
14208
+ "items": {
14209
+ "type": "string"
14210
+ }
14211
+ },
14212
+ "itemField": {
14213
+ "type": "string"
14214
+ },
14215
+ "itemsField": {
14216
+ "type": "string"
14217
+ },
14218
+ "model": {
14219
+ "type": "string"
14220
+ },
14221
+ "pageSize": {
14222
+ "type": "integer"
14223
+ },
14224
+ "state": {
14225
+ "type": "string"
14226
+ }
14227
+ },
14228
+ "$ref": "#/$defs/FormPreview"
14229
+ },
14136
14230
  "submitLabel": {
14137
14231
  "type": "string"
14138
14232
  },
@@ -14733,14 +14827,59 @@ var META_SCHEMAS = {
14733
14827
  }
14734
14828
  },
14735
14829
  "additionalProperties": false
14736
- }
14737
- },
14738
- "type": "object",
14739
- "properties": {
14740
- "actions": {
14741
- "type": "array",
14742
- "items": {
14743
- "$ref": "#/$defs/ListActionMeta",
14830
+ },
14831
+ "FormPreview": {
14832
+ "type": "object",
14833
+ "description": "\u72EC\u7ACB\u53EA\u8BFB\u9010\u9879\u9884\u89C8\uFF1A\u590D\u7528\u76EE\u6807\u6A21\u578B info \u5B57\u6BB5\u548C behavior\uFF0C\u4E0D\u56DE\u5199\u53C2\u6570\u3001\u4E0D\u66FF\u4EE3\u63D0\u4EA4\u6821\u9A8C\u3002",
14834
+ "required": ["model", "itemsField", "itemField", "fields"],
14835
+ "properties": {
14836
+ "model": {
14837
+ "type": "string",
14838
+ "minLength": 1
14839
+ },
14840
+ "state": {
14841
+ "type": "string"
14842
+ },
14843
+ "itemsField": {
14844
+ "type": "string",
14845
+ "minLength": 1
14846
+ },
14847
+ "itemField": {
14848
+ "type": "string",
14849
+ "minLength": 1
14850
+ },
14851
+ "bindings": {
14852
+ "type": "object",
14853
+ "additionalProperties": {
14854
+ "type": "string",
14855
+ "minLength": 1
14856
+ }
14857
+ },
14858
+ "fields": {
14859
+ "type": "array",
14860
+ "minItems": 1,
14861
+ "uniqueItems": true,
14862
+ "items": {
14863
+ "type": "string",
14864
+ "minLength": 1
14865
+ }
14866
+ },
14867
+ "pageSize": {
14868
+ "type": "integer",
14869
+ "minimum": 1,
14870
+ "maximum": 20,
14871
+ "default": 10
14872
+ }
14873
+ },
14874
+ "additionalProperties": false
14875
+ }
14876
+ },
14877
+ "type": "object",
14878
+ "properties": {
14879
+ "actions": {
14880
+ "type": "array",
14881
+ "items": {
14882
+ "$ref": "#/$defs/ListActionMeta",
14744
14883
  "properties": {
14745
14884
  "position": {
14746
14885
  "const": "toolbar"
@@ -15416,6 +15555,10 @@ var META_SCHEMAS = {
15416
15555
  },
15417
15556
  "showAllOnRoot": {
15418
15557
  "type": "boolean"
15558
+ },
15559
+ "showScopeSelector": {
15560
+ "type": "boolean",
15561
+ "default": false
15419
15562
  }
15420
15563
  }
15421
15564
  },
@@ -16949,6 +17092,451 @@ var META_SCHEMAS = {
16949
17092
  }
16950
17093
  };
16951
17094
 
17095
+ // src/datapackage/extension-sanitize.ts
17096
+ var UUID_RE = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi;
17097
+ var REDACTED_SOURCE_ID = "[\u6E90\u73AF\u5883ID\u5DF2\u79FB\u9664]";
17098
+ var DESCRIPTIVE_KEY_RE = /^(description|desc|tip|tips|hint|help|helpText|label|title|subtitle|caption|tooltip|placeholder|remark|comment|note|notes|summary|purpose|message|text|example|examples|typicalQueries|synonyms)$/i;
17099
+ function redactDescriptiveUuids(text3) {
17100
+ const doc = parseDocument3(text3);
17101
+ if (doc.errors.length) throw new Error(doc.errors.map((e) => e.message).join("; "));
17102
+ const edits = [];
17103
+ const redactions = [];
17104
+ const walk4 = (node, path25, inDesc) => {
17105
+ if (isMap3(node)) {
17106
+ for (const pair of node.items) {
17107
+ const k = isScalar3(pair.key) ? String(pair.key.value) : "?";
17108
+ walk4(pair.value, path25 ? `${path25}.${k}` : k, inDesc || DESCRIPTIVE_KEY_RE.test(k));
17109
+ }
17110
+ } else if (isSeq3(node)) {
17111
+ node.items.forEach((item, i) => walk4(item, `${path25}[${i}]`, inDesc));
17112
+ } else if (isScalar3(node) && inDesc && typeof node.value === "string" && node.range) {
17113
+ const [start, end] = node.range;
17114
+ for (const m of text3.slice(start, end).matchAll(UUID_RE)) {
17115
+ edits.push({ start: start + m.index, end: start + m.index + m[0].length });
17116
+ redactions.push({ path: path25, uuidPrefix: m[0].slice(0, 8) });
17117
+ }
17118
+ }
17119
+ };
17120
+ walk4(doc.contents, "", false);
17121
+ let out = text3;
17122
+ for (const e of edits.sort((a, b) => b.start - a.start)) out = out.slice(0, e.start) + REDACTED_SOURCE_ID + out.slice(e.end);
17123
+ return { text: out, redactions };
17124
+ }
17125
+ function removeActionsUsingScripts(text3, droppedScriptKeys) {
17126
+ if (!droppedScriptKeys.size) return { text: text3, removed: [] };
17127
+ const doc = parseDocument3(text3);
17128
+ if (doc.errors.length) throw new Error(doc.errors.map((e) => e.message).join("; "));
17129
+ const removed = [];
17130
+ const scriptKeyOf = (node) => {
17131
+ if (isMap3(node)) {
17132
+ for (const pair of node.items) {
17133
+ const k = isScalar3(pair.key) ? String(pair.key.value) : "";
17134
+ if (k === "scriptKey" && isScalar3(pair.value) && droppedScriptKeys.has(String(pair.value.value))) return String(pair.value.value);
17135
+ const hit = scriptKeyOf(pair.value);
17136
+ if (hit) return hit;
17137
+ }
17138
+ } else if (isSeq3(node)) for (const item of node.items) {
17139
+ const hit = scriptKeyOf(item);
17140
+ if (hit) return hit;
17141
+ }
17142
+ return void 0;
17143
+ };
17144
+ const walk4 = (node, path25) => {
17145
+ if (isMap3(node)) {
17146
+ for (const pair of node.items) {
17147
+ const k = isScalar3(pair.key) ? String(pair.key.value) : "?";
17148
+ const p = path25 ? `${path25}.${k}` : k;
17149
+ if (k === "actions" && isSeq3(pair.value)) {
17150
+ const seq = pair.value;
17151
+ seq.items = seq.items.filter((item, i) => {
17152
+ const hit = scriptKeyOf(item);
17153
+ if (!hit) return true;
17154
+ const key = isMap3(item) ? item.get("key") : void 0;
17155
+ removed.push({ path: `${p}[${i}]`, actionKey: typeof key === "string" ? key : "?", scriptKey: hit });
17156
+ return false;
17157
+ });
17158
+ }
17159
+ walk4(pair.value, p);
17160
+ }
17161
+ } else if (isSeq3(node)) node.items.forEach((item, i) => walk4(item, `${path25}[${i}]`));
17162
+ };
17163
+ walk4(doc.contents, "");
17164
+ return removed.length ? { text: doc.toString(), removed } : { text: text3, removed };
17165
+ }
17166
+ function fieldContractKind(path25) {
17167
+ const typed = /(?:^|\/)metas\/[A-Za-z0-9_]+\.(list|info|edit|view|page|filter|wiz|impexp)(\.[A-Za-z0-9_]+)?\.ya?ml$/i.exec(path25);
17168
+ if (typed) {
17169
+ const k = typed[1].toLowerCase();
17170
+ return k === "edit" ? "info" : ["list", "info", "view", "filter"].includes(k) ? k : void 0;
17171
+ }
17172
+ return /(?:^|\/)metas\/[A-Za-z0-9_]+(\.model)?\.ya?ml$/i.test(path25) ? "model" : void 0;
17173
+ }
17174
+ function fieldContractKeys(schemas, kind) {
17175
+ const s = schemas[kind];
17176
+ let items = s?.properties?.fields?.items;
17177
+ if (items?.$ref) items = s?.$defs?.[items.$ref.split("/").pop()];
17178
+ return new Set(Object.keys(items?.properties ?? {}));
17179
+ }
17180
+ function stripUnknownFieldKeys(text3, known) {
17181
+ if (!known.size) return { text: text3, removed: [] };
17182
+ const removed = [];
17183
+ const isDirective = (keys) => keys.some((k) => k.startsWith("__"));
17184
+ let json;
17185
+ try {
17186
+ json = JSON.parse(text3);
17187
+ } catch {
17188
+ json = void 0;
17189
+ }
17190
+ if (json && typeof json === "object" && !Array.isArray(json)) {
17191
+ const top = json;
17192
+ const lists = [top.fields, ...Array.isArray(top.sections) ? top.sections.map((s) => s?.fields) : []];
17193
+ for (const list2 of lists) {
17194
+ if (!Array.isArray(list2)) continue;
17195
+ for (const f of list2) {
17196
+ if (!f || typeof f !== "object" || Array.isArray(f) || isDirective(Object.keys(f))) continue;
17197
+ for (const k of Object.keys(f)) if (!known.has(k)) {
17198
+ removed.push({ field: String(f.key ?? "?"), key: k });
17199
+ delete f[k];
17200
+ }
17201
+ }
17202
+ }
17203
+ return removed.length ? { text: JSON.stringify(json, null, 2) + (text3.endsWith("\n") ? "\n" : ""), removed } : { text: text3, removed };
17204
+ }
17205
+ const doc = parseDocument3(text3);
17206
+ if (doc.errors.length) throw new Error(doc.errors.map((e) => e.message).join("; "));
17207
+ const seqs = [doc.get("fields", true)];
17208
+ const sections = doc.get("sections", true);
17209
+ if (isSeq3(sections)) {
17210
+ for (const s of sections.items) if (isMap3(s)) seqs.push(s.get("fields", true));
17211
+ }
17212
+ for (const seq of seqs) {
17213
+ if (!isSeq3(seq)) continue;
17214
+ for (const item of seq.items) {
17215
+ if (!isMap3(item)) continue;
17216
+ const keys = item.items.map((p) => isScalar3(p.key) ? String(p.key.value) : "");
17217
+ if (isDirective(keys)) continue;
17218
+ const fieldKey = item.get("key");
17219
+ for (const k of keys) if (k && !known.has(k)) {
17220
+ removed.push({ field: typeof fieldKey === "string" ? fieldKey : "?", key: k });
17221
+ item.delete(k);
17222
+ }
17223
+ }
17224
+ }
17225
+ return removed.length ? { text: doc.toString(), removed } : { text: text3, removed };
17226
+ }
17227
+ function stripUnknownFieldKeysForPath(path25, text3) {
17228
+ const kind = fieldContractKind(path25);
17229
+ if (!kind) return { text: text3, removed: [] };
17230
+ return { ...stripUnknownFieldKeys(text3, fieldContractKeys(META_SCHEMAS, kind)), kind };
17231
+ }
17232
+
17233
+ // src/datapackage/install.ts
17234
+ var DEFAULT_ARTIFACT_CATEGORY = "attachment";
17235
+ function unwrapActionPayload(resp) {
17236
+ const body = resp;
17237
+ if (body && typeof body === "object") {
17238
+ if (body.data && typeof body.data === "object") return body.data;
17239
+ if (body.result && typeof body.result === "object") return body.result;
17240
+ }
17241
+ return resp;
17242
+ }
17243
+ function isTerminalRunStatus(status) {
17244
+ if (!status) return false;
17245
+ return status !== "RUNNING" && status !== "QUEUED" && status !== "MAIN_COMMITTED";
17246
+ }
17247
+ function confirmationParams(opts) {
17248
+ return {
17249
+ ...opts.allowDowngrade ? { allowDowngrade: true } : {},
17250
+ ...opts.acceptContentChange ? { acceptContentChange: true } : {}
17251
+ };
17252
+ }
17253
+ var INSTALL_CONFIRMATION_HINTS = [
17254
+ {
17255
+ code: "DATA_PACKAGE_DOWNGRADE_REQUIRES_CONFIRMATION",
17256
+ flag: "--allow-downgrade",
17257
+ nextStep: "\u786E\u8BA4\u964D\u7EA7\u5F71\u54CD\uFF08\u65E7\u7248\u672C\u6570\u636E\u8986\u76D6\u65B0\u7248\u672C\uFF09\u540E\u52A0 --allow-downgrade \u91CD\u8DD1\uFF1B\u5426\u5219\u6539\u88C5\u4E0D\u4F4E\u4E8E\u5DF2\u88C5\u7248\u672C\u7684\u5236\u54C1"
17258
+ },
17259
+ {
17260
+ code: "DATA_PACKAGE_VERSION_DIGEST_CONFLICT",
17261
+ flag: "--accept-content-change",
17262
+ nextStep: "\u9996\u9009\u5347\u7248\u672C\u53F7\u91CD\u65B0 pack \u518D\u88C5\uFF1B\u786E\u8BA4\u540C\u7248\u672C\u8986\u76D6\u5F71\u54CD\u540E\u624D\u52A0 --accept-content-change \u5168\u91CF\u91CD\u88C5"
17263
+ }
17264
+ ];
17265
+ async function installDataPackageArtifactAsync(client, artifactPath, opts = {}) {
17266
+ const meta = await uploadDocument(
17267
+ client.raw(),
17268
+ artifactPath,
17269
+ opts.category ?? DEFAULT_ARTIFACT_CATEGORY
17270
+ );
17271
+ const resp = await action(
17272
+ client.raw(),
17273
+ "DataPackage",
17274
+ "installFromDocumentAsync",
17275
+ {
17276
+ params: { documentId: meta.documentId, tenantId: client.tenantId, ...confirmationParams(opts) }
17277
+ }
17278
+ );
17279
+ const body = unwrapActionPayload(resp);
17280
+ const runId = body.runId;
17281
+ if (typeof runId !== "string" || runId.length === 0) {
17282
+ throw new Error("\u670D\u52A1\u7AEF\u672A\u8FD4\u56DE runId\uFF0C\u65E0\u6CD5\u8DDF\u8E2A\u88C5\u8F7D\u8FDB\u5EA6");
17283
+ }
17284
+ return {
17285
+ documentId: meta.documentId,
17286
+ runId,
17287
+ packageName: typeof body.packageName === "string" ? body.packageName : void 0,
17288
+ version: typeof body.version === "string" ? body.version : void 0
17289
+ };
17290
+ }
17291
+ async function fetchInstallRun(client, runId) {
17292
+ try {
17293
+ const resp = await client.raw().get(`/api/models/DataPackageInstallRun/${runId}`);
17294
+ const body = resp.data?.data ?? resp.data;
17295
+ return body && typeof body === "object" ? body : void 0;
17296
+ } catch (e) {
17297
+ if (e?.response?.status === 404) return void 0;
17298
+ throw e;
17299
+ }
17300
+ }
17301
+ function isTransientPollError(e) {
17302
+ const err = e;
17303
+ const status = err?.response?.status ?? err?.status ?? err?.httpStatus;
17304
+ if (typeof status === "number") return status >= 500 || status === 429;
17305
+ return Boolean(err?.isAxiosError) && !err?.response;
17306
+ }
17307
+ function describePollError(e) {
17308
+ const err = e;
17309
+ const status = err?.response?.status ?? err?.status ?? err?.httpStatus;
17310
+ const message = String(err?.message ?? e).slice(0, 200);
17311
+ return { status: typeof status === "number" ? status : "NETWORK", message };
17312
+ }
17313
+ async function waitForInstallRun(client, runId, opts) {
17314
+ const pollMs = opts.pollMs ?? 2e3;
17315
+ const now = opts.now ?? (() => Date.now());
17316
+ const sleep = opts.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
17317
+ const deadline = now() + opts.timeoutMs;
17318
+ let last;
17319
+ let consecutiveErrors = 0;
17320
+ for (; ; ) {
17321
+ let current;
17322
+ try {
17323
+ current = await fetchInstallRun(client, runId);
17324
+ consecutiveErrors = 0;
17325
+ } catch (e) {
17326
+ if (!isTransientPollError(e)) throw e;
17327
+ consecutiveErrors += 1;
17328
+ opts.onPollError?.(e, consecutiveErrors);
17329
+ if (now() >= deadline) return { run: last, timedOut: true, pollErrors: consecutiveErrors, lastPollError: describePollError(e) };
17330
+ await sleep(pollMs);
17331
+ continue;
17332
+ }
17333
+ if (current) last = current;
17334
+ opts.onProgress?.(current);
17335
+ if (isTerminalRunStatus(last?.status)) {
17336
+ return { run: last, timedOut: false };
17337
+ }
17338
+ if (now() >= deadline) {
17339
+ return { run: last, timedOut: true };
17340
+ }
17341
+ await sleep(pollMs);
17342
+ }
17343
+ }
17344
+ async function installDataPackageArtifact(client, artifactPath, opts = {}) {
17345
+ const meta = await uploadDocument(
17346
+ client.raw(),
17347
+ artifactPath,
17348
+ opts.category ?? DEFAULT_ARTIFACT_CATEGORY
17349
+ );
17350
+ const resp = await action(
17351
+ client.raw(),
17352
+ "DataPackage",
17353
+ "installFromDocument",
17354
+ {
17355
+ params: { documentId: meta.documentId, tenantId: client.tenantId, ...confirmationParams(opts) }
17356
+ }
17357
+ );
17358
+ const view = unwrapActionPayload(resp);
17359
+ return { documentId: meta.documentId, view };
17360
+ }
17361
+
17362
+ // src/cache.ts
17363
+ async function getCacheStats(http, model) {
17364
+ const resp = await http.get(`/api/models/${model}/cache`);
17365
+ return resp.data?.data ?? resp.data;
17366
+ }
17367
+ async function clearModelCache(http, model, id) {
17368
+ const url = id ? `/api/models/${model}/cache/${id}` : `/api/models/${model}/cache`;
17369
+ const resp = await http.delete(url);
17370
+ return resp.data?.data ?? resp.data;
17371
+ }
17372
+ async function clearMetaCache(http, model, opts = {}) {
17373
+ const params = {};
17374
+ if (opts.type) params.type = opts.type;
17375
+ if (opts.state) params.state = opts.state;
17376
+ const resp = await http.delete(`/api/models/${model}/meta/cache`, { params });
17377
+ return resp.data?.data ?? resp.data;
17378
+ }
17379
+
17380
+ // src/script.ts
17381
+ function unwrap(data) {
17382
+ const body = data;
17383
+ return (body && typeof body === "object" && "data" in body ? body.data : data) ?? data;
17384
+ }
17385
+ async function scriptDryRun(http, request) {
17386
+ const resp = await http.post("/api/script/dry-run", request);
17387
+ return unwrap(resp.data);
17388
+ }
17389
+ async function validateScriptManifest(http, manifestYaml) {
17390
+ const resp = await http.post("/api/script/manifest/validate", { manifestYaml });
17391
+ return unwrap(resp.data);
17392
+ }
17393
+ async function queryScriptLogs(http, query2 = {}) {
17394
+ const params = {};
17395
+ for (const [k, v] of Object.entries(query2)) {
17396
+ if (v !== void 0 && v !== null && v !== "") params[k] = v;
17397
+ }
17398
+ const resp = await http.get("/api/script-logs", { params });
17399
+ return unwrap(resp.data);
17400
+ }
17401
+ async function getScriptTask(http, taskId) {
17402
+ const resp = await http.get(`/api/script-tasks/${encodeURIComponent(taskId)}`);
17403
+ return unwrap(resp.data);
17404
+ }
17405
+
17406
+ // src/tenant.ts
17407
+ async function bootstrapTenant(http, bootstrapKey, req) {
17408
+ const resp = await http.post("/api/bootstrap/tenant", req, {
17409
+ headers: { "X-Bootstrap-Key": bootstrapKey }
17410
+ });
17411
+ return resp.data?.data ?? resp.data;
17412
+ }
17413
+ async function reconcileTenant(http, expectedTenantId) {
17414
+ const { data } = await http.post("/api/operations/bootstrap/reconcile", {}, {
17415
+ __skipRetry: true,
17416
+ maxRedirects: 0
17417
+ });
17418
+ const countKeys = ["fromVersion", "toVersion", "created", "updated", "archived"];
17419
+ const rows = data?.results;
17420
+ if (!data || data.tenantId !== expectedTenantId || typeof data.success !== "boolean" || !(data.error == null || typeof data.error === "string") || !Array.isArray(rows) || !rows.length || !rows.every((row) => row && typeof row.component === "string" && row.component.trim() && typeof row.status === "string" && row.status.trim() && typeof row.message === "string" && countKeys.every((key) => Number.isSafeInteger(row[key]) && Number(row[key]) >= 0) && Number(row.toVersion) >= Number(row.fromVersion)) || new Set(rows.map((row) => row.component)).size !== rows.length) {
17421
+ throw new CliError({
17422
+ code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
17423
+ message: "\u8865\u8DD1\u63A5\u53E3\u672A\u8FD4\u56DE\u5B8C\u6574\u4E14\u5339\u914D\u5F53\u524D\u79DF\u6237\u7684\u9010\u7EC4\u4EF6\u56DE\u6267\uFF0C\u7ED3\u679C\u672A\u786E\u8BA4\uFF1B\u6CA1\u6709\u628A\u7F3A\u503C\u586B\u6210\u96F6\u6216\u6210\u529F\u3002",
17424
+ context: {
17425
+ reasonCode: "TENANT_RECONCILE_RECEIPT_UNKNOWN",
17426
+ details: { unverifiedReceipt: data },
17427
+ nextStep: "\u5148\u53EA\u8BFB\u67E5\u8BE2 tenant.bootstrap \u5E76\u6838\u67E5\u670D\u52A1\u7AEF\u65E5\u5FD7\uFF1B\u4E0D\u8981\u56E0\u56DE\u6267\u672A\u77E5\u81EA\u52A8\u91CD\u53D1\u8865\u8DD1\u3002"
17428
+ }
17429
+ });
17430
+ }
17431
+ return data;
17432
+ }
17433
+ async function resetTenant(http, tenantId) {
17434
+ const { data: envelope2 } = await http.post("/api/models/DataPackage/action/resetTenant", {
17435
+ tenantId,
17436
+ confirmation: `RESET_TENANT:${tenantId}`
17437
+ }, { __skipRetry: true, maxRedirects: 0 });
17438
+ const receipt = envelope2?.data;
17439
+ const text3 = (value) => typeof value === "string" && value.trim().length > 0;
17440
+ const nonPg = receipt?.nonPgSurface;
17441
+ if (!envelope2 || envelope2.error != null || envelope2.success === false || !receipt || Array.isArray(receipt) || receipt.tenantId !== tenantId || !text3(receipt.runId) || receipt.state !== "FACTORY_BASELINE" || receipt.stateScope !== "POSTGRESQL" || !["deletedRows", "touchedTables", "reconciledComponents", "restoredRows"].every((key) => Number.isSafeInteger(receipt[key]) && receipt[key] >= 0) || !["pgVerified", "overallVerified", "journalReconciledMarked"].every((key) => typeof receipt[key] === "boolean") || !nonPg || !text3(nonPg.status) || !text3(nonPg.reason) || !text3(nonPg.nextStep) || !Array.isArray(nonPg.unhandledSurfaces) || !nonPg.unhandledSurfaces.length || !nonPg.unhandledSurfaces.every(text3)) {
17442
+ throw new CliError({
17443
+ code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
17444
+ message: "\u91CD\u7F6E\u63A5\u53E3\u672A\u8FD4\u56DE\u5B8C\u6574\u4E14\u5339\u914D\u76EE\u6807\u7684\u73B0\u5F79\u56DE\u6267\uFF0C\u7ED3\u679C\u672A\u786E\u8BA4\uFF1B\u672A\u5C06\u7F3A\u503C\u8865\u6210\u96F6\u6216\u6210\u529F\u3002",
17445
+ context: {
17446
+ reasonCode: "TENANT_RESET_RECEIPT_UNKNOWN",
17447
+ // 坐标来自未确认回执,只供追查;保留原值,绝不据此声明成功。
17448
+ details: {
17449
+ ...envelope2?.error ? { error: envelope2.error } : {},
17450
+ ...receipt !== void 0 ? { unverifiedReceipt: receipt } : {}
17451
+ },
17452
+ nextStep: "\u4E0D\u8981\u76F2\u76EE\u91CD\u8DD1\u91CD\u7F6E\uFF1B\u6838\u67E5\u670D\u52A1\u7AEF\u91CD\u7F6E\u6D41\u6C34\u4E0E\u5F53\u524D\u79DF\u6237\u72B6\u6001\u3002"
17453
+ }
17454
+ });
17455
+ }
17456
+ return receipt;
17457
+ }
17458
+
17459
+ // src/meta/tenant-meta.ts
17460
+ async function listTenantMeta(http, opts = {}) {
17461
+ const resp = await http.get("/api/tenant-meta/list", { params: opts });
17462
+ const body = resp.data;
17463
+ const payload = body?.data ?? body;
17464
+ const items = Array.isArray(payload) ? payload : payload?.items ?? payload?.list ?? payload?.records ?? [];
17465
+ const total = typeof body?.total === "number" ? body.total : payload?.total;
17466
+ return { items, total, raw: payload };
17467
+ }
17468
+ async function getTenantMeta(http, path25) {
17469
+ const resp = await http.get("/api/tenant-meta/meta", { params: { path: path25 } });
17470
+ const payload = resp.data?.data ?? resp.data;
17471
+ if (typeof payload === "string") return payload;
17472
+ return String(payload?.content ?? "");
17473
+ }
17474
+ async function saveTenantMeta(http, path25, content) {
17475
+ const resp = await http.put("/api/tenant-meta/meta", { content }, { params: { path: path25 } });
17476
+ return resp.data?.data ?? resp.data;
17477
+ }
17478
+ async function deleteTenantMeta(http, path25) {
17479
+ const resp = await http.delete("/api/tenant-meta/meta", { params: { path: path25 } });
17480
+ return resp.data?.data ?? resp.data;
17481
+ }
17482
+
17483
+ // src/meta/column-slots.ts
17484
+ var WORKSPACE_KEY_HEADER = "X-Workspace-Key";
17485
+ var COLUMN_SLOTS_PATH = "/api/tenant-extension/column-slots";
17486
+ var COLUMN_SLOT_SQL_PATH = "/api/tenant-extension/column-slots/sql";
17487
+ var COLUMN_SLOT_SQL_KEYS = [
17488
+ "countSlot",
17489
+ "flexToSlotBatched",
17490
+ "flexToSlot",
17491
+ "verifyFlexToSlot",
17492
+ "slotToFlex",
17493
+ "removeFlexKey",
17494
+ "clearSlot",
17495
+ "moveFromSlot",
17496
+ "verifyMoveFromSlot",
17497
+ "clearFromSlot"
17498
+ ];
17499
+ var COLUMN_SLOT_REBIND_SQL_KEYS = ["moveFromSlot", "verifyMoveFromSlot", "clearFromSlot"];
17500
+ function headers(opts) {
17501
+ return opts.workspaceKey ? { [WORKSPACE_KEY_HEADER]: opts.workspaceKey } : void 0;
17502
+ }
17503
+ function isRecord2(value) {
17504
+ return typeof value === "object" && value !== null && !Array.isArray(value);
17505
+ }
17506
+ function unexpected(path25, body) {
17507
+ return new CliError({
17508
+ code: "PROTOCOL_UNSUPPORTED" /* PROTOCOL_UNSUPPORTED */,
17509
+ message: `${path25} \u8FD4\u56DE\u4E86 2xx\uFF0C\u4F46\u54CD\u5E94\u91CC\u6CA1\u6709\u7EA6\u5B9A\u7684 data \u7ED3\u6784\uFF1B\u6CA1\u6709\u628A\u7F3A\u7684\u90E8\u5206\u8865\u6210\u7A7A\u5217\u8868`,
17510
+ context: {
17511
+ reasonCode: "COLUMN_SLOT_RESPONSE_UNRECOGNIZED",
17512
+ details: body,
17513
+ nextStep: "\u7528 `hcm version` \u6838\u5BF9\u540E\u7AEF\u7248\u672C\u662F\u5426\u542B\u5217\u69FD\u767B\u8BB0\u8868\uFF08ADR-452\uFF09\uFF1B\u7248\u672C\u5BF9\u5F97\u4E0A\u5C31\u628A\u8FD9\u6BB5\u54CD\u5E94\u62A5\u7ED9 CLI \u7EF4\u62A4\u8005"
17514
+ }
17515
+ });
17516
+ }
17517
+ async function getColumnSlots(http, model, opts = {}) {
17518
+ const resp = await http.get(COLUMN_SLOTS_PATH, { params: { model }, headers: headers(opts) });
17519
+ const data = resp.data?.data;
17520
+ if (!isRecord2(data) || !Array.isArray(data.slots) || !Array.isArray(data.occupied)) {
17521
+ throw unexpected(COLUMN_SLOTS_PATH, resp.data);
17522
+ }
17523
+ return data;
17524
+ }
17525
+ async function getColumnSlotSql(http, params, opts = {}) {
17526
+ const query2 = { model: params.model, field: params.field };
17527
+ if (params.slot) query2.slot = params.slot;
17528
+ if (params.fromSlot) query2.fromSlot = params.fromSlot;
17529
+ const resp = await http.get(COLUMN_SLOT_SQL_PATH, { params: query2, headers: headers(opts) });
17530
+ const data = resp.data?.data;
17531
+ if (!isRecord2(data) || !isRecord2(data.sql)) {
17532
+ throw unexpected(COLUMN_SLOT_SQL_PATH, resp.data);
17533
+ }
17534
+ return data;
17535
+ }
17536
+
17537
+ // src/meta/validate-meta.ts
17538
+ import yaml8 from "js-yaml";
17539
+
16952
17540
  // src/meta/generated/layout-class-catalog.ts
16953
17541
  var LAYOUT_CLASS_CATALOG = {
16954
17542
  "version": "1.68.0",
@@ -30086,6 +30674,7 @@ export {
30086
30674
  DEFAULT_ARTIFACT_CATEGORY,
30087
30675
  DEFAULT_SESSION_TTL_SECONDS,
30088
30676
  PREMISE_CODES4 as DELIVERY_PREMISE_CODES,
30677
+ DESCRIPTIVE_KEY_RE,
30089
30678
  DEV_MODE_PATH,
30090
30679
  DIMENSION_LABELS,
30091
30680
  DRY_RUN_NOTE,
@@ -30195,6 +30784,7 @@ export {
30195
30784
  REASON_BASELINE_ROUND_NOT_COMPLETE,
30196
30785
  VERDICTS2 as RECONCILE_VERDICTS,
30197
30786
  RECOVERY_WORDS,
30787
+ REDACTED_SOURCE_ID,
30198
30788
  REJECTED_BEFORE_ROUTING_CODE,
30199
30789
  REQUIRED_SECTIONS,
30200
30790
  RESPOND_TIMEOUT_MS,
@@ -30298,6 +30888,7 @@ export {
30298
30888
  clearModelCache,
30299
30889
  cliAuthorizationExpired,
30300
30890
  collectMiniPushWrites,
30891
+ columnSlotsToFlex,
30301
30892
  commandsFor,
30302
30893
  compareFingerprint,
30303
30894
  computeFingerprint,
@@ -30353,6 +30944,8 @@ export {
30353
30944
  fetchSkillMarkdown,
30354
30945
  fetchSkillReference,
30355
30946
  fieldByName,
30947
+ fieldContractKeys,
30948
+ fieldContractKind,
30356
30949
  filterByStage,
30357
30950
  find,
30358
30951
  findEnvByEndpoint,
@@ -30487,9 +31080,11 @@ export {
30487
31080
  rebind,
30488
31081
  rebindPayload,
30489
31082
  reconcileTenant,
31083
+ redactDescriptiveUuids,
30490
31084
  refreshToken,
30491
31085
  releasePendingImpersonationSessions,
30492
31086
  remove,
31087
+ removeActionsUsingScripts,
30493
31088
  renameIdentity,
30494
31089
  renderEnvYaml,
30495
31090
  renderFind,
@@ -30541,6 +31136,9 @@ export {
30541
31136
  shelfPartition,
30542
31137
  snakeToCamel,
30543
31138
  startImpersonation,
31139
+ stripDefinitionIds,
31140
+ stripUnknownFieldKeys,
31141
+ stripUnknownFieldKeysForPath,
30544
31142
  tenantSegment,
30545
31143
  toAcceptLanguage,
30546
31144
  toJson,