@hcmai/sdk 0.33.1 → 0.34.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
@@ -368,6 +368,103 @@ function formatCause(cause) {
368
368
  return void 0;
369
369
  }
370
370
 
371
+ // src/meta/introspection.ts
372
+ var INTROSPECTION_PATH = "/api/system/introspection";
373
+ var MODEL_SEARCH_PATH = "/api/system/models/search";
374
+ var MUTATION_CAPABILITY_PATH = (model) => `/api/models/${encodeURIComponent(model)}/mutation-capability`;
375
+ var PRESET_ORIGIN_PATH = (model) => `/api/models/${encodeURIComponent(model)}/preset-origin`;
376
+ var ROUTE_MISSING_PREFIX = "\u8BF7\u6C42\u7684\u63A5\u53E3\u6216\u8D44\u6E90\u4E0D\u5B58\u5728";
377
+ function classifyEndpointFailure(e, opts) {
378
+ const err = e;
379
+ const status = err?.response?.status;
380
+ const body = err?.response?.data?.error;
381
+ const code = typeof body?.code === "string" ? body.code : void 0;
382
+ const message = typeof body?.message === "string" ? body.message : void 0;
383
+ const field = typeof body?.field === "string" ? body.field : void 0;
384
+ const detail = status ? `HTTP ${status}${code ? ` ${code}` : ""}${message ? `\u300C${message}\u300D` : ""}` : err?.message ?? String(e);
385
+ if (status === 404 && message?.startsWith(ROUTE_MISSING_PREFIX)) {
386
+ return { kind: "not-provided", status, detail };
387
+ }
388
+ if (opts.modelScoped && status === 400 && code === "VALIDATION_ERROR" && field === "id") {
389
+ return { kind: "not-provided", status, detail };
390
+ }
391
+ return { kind: "failed", ...status ? { status } : {}, detail };
392
+ }
393
+ function isUuid(v) {
394
+ return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(v);
395
+ }
396
+ function unwrapEnvelope(body) {
397
+ if (body && typeof body === "object" && !Array.isArray(body)) {
398
+ const o = body;
399
+ if ("success" in o && "data" in o && o.data && typeof o.data === "object" && !Array.isArray(o.data)) return o.data;
400
+ }
401
+ return body;
402
+ }
403
+ function requireObject(body, path25) {
404
+ const unwrapped = unwrapEnvelope(body);
405
+ if (unwrapped && typeof unwrapped === "object" && !Array.isArray(unwrapped)) return unwrapped;
406
+ throw new CliError({
407
+ code: "SERVER_ERROR" /* SERVER_ERROR */,
408
+ message: `GET ${path25} \u56DE\u7684\u4E0D\u662F JSON \u5BF9\u8C61\uFF08${unwrapped === null ? "null" : Array.isArray(unwrapped) ? "\u6570\u7EC4" : typeof unwrapped}\uFF09\uFF0C\u8BA4\u4E0D\u51FA\u5F62\u72B6`,
409
+ context: { nextStep: "\u591A\u534A\u662F env \u7684 endpoint \u6307\u5230\u4E86\u524D\u7AEF\u6216\u7F51\u5173\uFF1A`hcm env show` \u6838\u5BF9 endpoint \u662F\u4E0D\u662F\u540E\u7AEF\u5730\u5740" }
410
+ });
411
+ }
412
+ function missingKeys(obj, keys) {
413
+ if (!obj || typeof obj !== "object") return [...keys];
414
+ return keys.filter((k) => !(k in obj));
415
+ }
416
+ var INTROSPECTION_ENVELOPE_KEYS = ["totalCount", "returnedCount", "truncatedBy", "nextStep", "detailWith"];
417
+ async function fetchIntrospection(http, q = {}) {
418
+ const params = {};
419
+ if (q.path !== void 0) params.path = q.path;
420
+ if (q.detail) params.detail = true;
421
+ if (q.limit !== void 0) params.limit = q.limit;
422
+ const resp = await http.get(INTROSPECTION_PATH, Object.keys(params).length ? { params } : void 0);
423
+ return requireObject(resp.data, INTROSPECTION_PATH);
424
+ }
425
+ var MODEL_SEARCH_KEYS = [
426
+ "scannedCount",
427
+ "totalCount",
428
+ "returned",
429
+ "effectiveLimit",
430
+ "limitNote",
431
+ "truncatedBy",
432
+ "nextStep",
433
+ "rankingNote",
434
+ "degraded",
435
+ "models"
436
+ ];
437
+ var MODEL_SEARCH_DEGRADED_COUNT_KEYS = ["notScannedCount", "scanFailedCount", "metaUnavailableCount"];
438
+ async function searchModels(http, keyword, limit) {
439
+ const params = { keyword };
440
+ if (limit !== void 0) params.limit = limit;
441
+ const resp = await http.get(MODEL_SEARCH_PATH, { params });
442
+ return requireObject(resp.data, MODEL_SEARCH_PATH);
443
+ }
444
+ var MUTATION_CAPABILITY_OPS = ["create", "update", "delete", "batchDelete"];
445
+ var MUTATION_CELL_KEYS = ["allowed", "reason", "alternatives", "scope", "rbacSource"];
446
+ async function fetchMutationCapability(http, model) {
447
+ const path25 = MUTATION_CAPABILITY_PATH(model);
448
+ try {
449
+ const resp = await http.get(path25);
450
+ const data = unwrapEnvelope(resp.data);
451
+ if (!data || typeof data !== "object" || Array.isArray(data)) {
452
+ return { available: false, notProvided: false, note: `GET ${path25} \u56DE\u7684\u4E0D\u662F\u5BF9\u8C61\uFF0C\u8BA4\u4E0D\u51FA\u5F62\u72B6` };
453
+ }
454
+ return { available: true, ops: data };
455
+ } catch (e) {
456
+ const f = classifyEndpointFailure(e, { modelScoped: true });
457
+ return f.kind === "not-provided" ? { available: false, notProvided: true, note: `GET ${path25} \u2192 ${f.detail}\uFF1A\u670D\u52A1\u7AEF\u65E9\u4E8E\u8BE5\u7AEF\u70B9` } : { available: false, notProvided: false, note: `GET ${path25} \u2192 ${f.detail}` };
458
+ }
459
+ }
460
+ async function fetchPresetOrigin(http, model, q = {}) {
461
+ const params = {};
462
+ if (q.id !== void 0) params.id = q.id;
463
+ if (q.includeTenantIds) params.includeTenantIds = true;
464
+ const resp = await http.get(PRESET_ORIGIN_PATH(model), Object.keys(params).length ? { params } : void 0);
465
+ return requireObject(resp.data, PRESET_ORIGIN_PATH(model));
466
+ }
467
+
371
468
  // src/meta/describe.ts
372
469
  var HCM_FIELD_RAW_KEYS = [
373
470
  "key",
@@ -400,10 +497,11 @@ async function fetchModelFieldKeys(http, model) {
400
497
  const fields = resp.data?.fields ?? [];
401
498
  return fields.map((f) => f.key).filter((k) => typeof k === "string" && k.length > 0);
402
499
  }
403
- async function describe(http, model, _opts = {}) {
404
- const [metaResp, effective] = await Promise.all([
500
+ async function describe(http, model, opts = {}) {
501
+ const [metaResp, effective, mutationCapability] = await Promise.all([
405
502
  http.get(`/api/models/${model}/meta`),
406
- fetchEffectiveActions(http, model)
503
+ fetchEffectiveActions(http, model, opts.state),
504
+ opts.withMutationCapability ? fetchMutationCapability(http, model) : Promise.resolve(void 0)
407
505
  ]);
408
506
  const meta = metaResp.data;
409
507
  const fields = (meta.fields ?? []).map((f) => ({
@@ -449,15 +547,36 @@ async function describe(http, model, _opts = {}) {
449
547
  model: meta.name ?? model,
450
548
  labels: meta.labels ?? {},
451
549
  fields,
452
- actions: mergeEffectiveActions(actions, effective),
550
+ actions: withNotProvided(mergeEffectiveActions(actions, effective)),
453
551
  relations: meta.relations ?? [],
454
552
  effectiveActionsAvailable: effective.available,
455
- ...effective.available ? {} : { effectiveActionsNote: effective.note }
553
+ ...effective.available ? {} : { effectiveActionsNote: effective.note },
554
+ ...effective.available && typeof effective.state === "string" ? { actionsState: effective.state } : {},
555
+ ...effective.available && typeof effective.coverage === "string" ? { actionsCoverage: effective.coverage } : {},
556
+ ...mutationCapability ? { mutationCapability } : {}
456
557
  };
457
558
  }
458
- async function fetchEffectiveActions(http, model) {
559
+ var EFFECT_STRICTNESS = { READ_ONLY: 0, ACCOUNTING_ONLY: 1, UNKNOWN: 2, WRITES: 3 };
560
+ var RISK_STRICTNESS = { NO: 0, UNKNOWN: 1, YES: 2 };
561
+ function stricter(fromMeta, fromRow, order) {
562
+ if (fromMeta === void 0) return fromRow;
563
+ const m = typeof fromMeta === "string" ? order[fromMeta] : void 0;
564
+ const r = typeof fromRow === "string" ? order[fromRow] : void 0;
565
+ if (r === void 0) return fromRow;
566
+ if (m === void 0) return fromMeta;
567
+ return m > r ? fromMeta : fromRow;
568
+ }
569
+ function withNotProvided(actions) {
570
+ return actions.map((a) => {
571
+ const missing = [];
572
+ if (a.effect === void 0) missing.push("effect");
573
+ if (a.effectiveRow === "listed" && a.grantForCaller === void 0) missing.push("grantForCaller");
574
+ return missing.length ? { ...a, notProvided: missing } : a;
575
+ });
576
+ }
577
+ async function fetchEffectiveActions(http, model, state) {
459
578
  try {
460
- const resp = await http.get(`/api/models/${model}/actions`);
579
+ const resp = state === void 0 ? await http.get(`/api/models/${model}/actions`) : await http.get(`/api/models/${model}/actions`, { params: { state } });
461
580
  const rows = resp.data?.actions;
462
581
  if (!Array.isArray(rows)) {
463
582
  return {
@@ -466,7 +585,7 @@ async function fetchEffectiveActions(http, model) {
466
585
  note: `GET /api/models/${model}/actions \u6CA1\u6709\u8FD4\u56DE actions \u6570\u7EC4\uFF0C\u811A\u672C Action \u672A\u7EB3\u5165`
467
586
  };
468
587
  }
469
- return { available: true, rows };
588
+ return { available: true, rows, state: resp.data?.state, coverage: resp.data?.coverage };
470
589
  } catch (e) {
471
590
  const err = e;
472
591
  const status = err?.response?.status;
@@ -480,6 +599,26 @@ async function fetchEffectiveActions(http, model) {
480
599
  }
481
600
  function mergeEffectiveActions(fromMeta, effective) {
482
601
  if (!effective.available) return fromMeta;
602
+ const rowsByKey = /* @__PURE__ */ new Map();
603
+ for (const row of effective.rows) {
604
+ if (row?.key && !rowsByKey.has(row.key)) rowsByKey.set(row.key, row);
605
+ }
606
+ const overlaid = fromMeta.map((a) => {
607
+ const row = rowsByKey.get(a.name);
608
+ if (!row) return { ...a, effectiveRow: "not-listed" };
609
+ return {
610
+ ...a,
611
+ ...row.effect !== void 0 ? { effect: stricter(a.effect, row.effect, EFFECT_STRICTNESS) } : {},
612
+ ...row.hasExternalDep !== void 0 ? { hasExternalDep: stricter(a.hasExternalDep, row.hasExternalDep, RISK_STRICTNESS) } : {},
613
+ ...row.sensitiveData !== void 0 ? { sensitiveData: stricter(a.sensitiveData, row.sensitiveData, RISK_STRICTNESS) } : {},
614
+ ...row.requiresConfirmation !== void 0 ? { requiresConfirmation: row.requiresConfirmation } : {},
615
+ ...row.grantForCaller !== void 0 ? { grantForCaller: row.grantForCaller } : {},
616
+ ...row.conflict !== void 0 ? { conflict: row.conflict } : {},
617
+ // readOnly 是 effect 的派生位:任一份说不是只读就不是,免得 JSON 里出现 effect=WRITES 配 readOnly=true。
618
+ ...row.readOnly !== void 0 || a.readOnly !== void 0 ? { readOnly: a.readOnly === false || row.readOnly === false ? false : row.readOnly ?? a.readOnly } : {},
619
+ effectiveRow: "listed"
620
+ };
621
+ });
483
622
  const known = new Set(fromMeta.map((a) => a.name));
484
623
  const extra = [];
485
624
  for (const row of effective.rows) {
@@ -497,10 +636,13 @@ function mergeEffectiveActions(fromMeta, effective) {
497
636
  hasExternalDep: row.hasExternalDep,
498
637
  sensitiveData: row.sensitiveData,
499
638
  readOnly: row.readOnly,
500
- source: candidate?.source
639
+ source: candidate?.source,
640
+ ...row.grantForCaller !== void 0 ? { grantForCaller: row.grantForCaller } : {},
641
+ ...row.conflict !== void 0 ? { conflict: row.conflict } : {},
642
+ effectiveRow: "listed"
501
643
  });
502
644
  }
503
- return [...fromMeta, ...extra];
645
+ return [...overlaid, ...extra];
504
646
  }
505
647
 
506
648
  // src/meta/action-effect.ts
@@ -4603,6 +4745,16 @@ function createV4Reducer(sink) {
4603
4745
  return { handle };
4604
4746
  }
4605
4747
 
4748
+ // src/chat/content-part-notice.ts
4749
+ function readTextPart(part) {
4750
+ if (part.type !== "text") return null;
4751
+ const text3 = typeof part.text === "string" ? part.text : "";
4752
+ const md = part.metadata;
4753
+ const raw = md && typeof md === "object" ? md.notice : void 0;
4754
+ const notice = typeof raw === "string" && raw.trim() ? raw : void 0;
4755
+ return notice ? { text: text3, notice } : { text: text3 };
4756
+ }
4757
+
4606
4758
  // src/chat/one-shot.ts
4607
4759
  async function oneShot(ws, prompt, opts = {}) {
4608
4760
  const t0 = Date.now();
@@ -4613,6 +4765,7 @@ async function oneShot(ws, prompt, opts = {}) {
4613
4765
  let stopReason;
4614
4766
  let tokens;
4615
4767
  const toolCalls = [];
4768
+ const notices = [];
4616
4769
  const collected = [];
4617
4770
  const argsPreviewByCallId = /* @__PURE__ */ new Map();
4618
4771
  const agentKeyByCallId = /* @__PURE__ */ new Map();
@@ -4638,7 +4791,10 @@ async function oneShot(ws, prompt, opts = {}) {
4638
4791
  });
4639
4792
  argsPreviewByCallId.delete(callId);
4640
4793
  },
4641
- onContentPart() {
4794
+ // 状态提示(🧠 已记住… 等)单独收进 notices;旧实现整块丢掉,脚本侧完全看不到。
4795
+ onContentPart(part) {
4796
+ const tp = readTextPart(part);
4797
+ if (tp?.notice) notices.push({ notice: tp.notice, text: tp.text });
4642
4798
  },
4643
4799
  onSteeringApplied() {
4644
4800
  },
@@ -4686,7 +4842,8 @@ async function oneShot(ws, prompt, opts = {}) {
4686
4842
  elapsedMs: Date.now() - t0,
4687
4843
  events: collected,
4688
4844
  stopReason,
4689
- tokens
4845
+ tokens,
4846
+ notices
4690
4847
  };
4691
4848
  }
4692
4849
 
@@ -8011,7 +8168,7 @@ function parseManifest(text3, onWarning) {
8011
8168
  // src/datapackage/uuid.ts
8012
8169
  import { isAlias, isMap, isNode, isScalar, isSeq, Parser } from "yaml";
8013
8170
  var UUID2 = /[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}/gi;
8014
- var isUuid = (value) => typeof value === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
8171
+ var isUuid2 = (value) => typeof value === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value);
8015
8172
  function validateUuids(files, opaqueFields, onWarning) {
8016
8173
  const parsed = files.map((file) => ({
8017
8174
  ...file,
@@ -8022,7 +8179,7 @@ function validateUuids(files, opaqueFields, onWarning) {
8022
8179
  if (file.model === void 0 && !/^data\/.*\.ya?ml$/.test(file.file)) continue;
8023
8180
  const data = file.yaml?.doc.toJS();
8024
8181
  if (data && Array.isArray(data.items)) {
8025
- for (const row of data.items) if (isUuid(row?.id)) ownIds.add(row.id.toLowerCase());
8182
+ for (const row of data.items) if (isUuid2(row?.id)) ownIds.add(row.id.toLowerCase());
8026
8183
  }
8027
8184
  }
8028
8185
  for (const file of parsed) {
@@ -8397,7 +8554,7 @@ function columnSlotsToFlex(text3, rewrite = true) {
8397
8554
  import { isMap as isMap3, isScalar as isScalar3, isSeq as isSeq3, parseDocument as parseDocument3 } from "yaml";
8398
8555
 
8399
8556
  // src/meta/generated/meta-schemas.ts
8400
- var META_SCHEMA_SOURCE_COMMIT = "82a5db755a7295f2adaaa8d79f755eda22d0b278";
8557
+ var META_SCHEMA_SOURCE_COMMIT = "3bc6543c7043017140c3cdab852e22e9c19600d4";
8401
8558
  var META_SCHEMAS = {
8402
8559
  list: {
8403
8560
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -9274,7 +9431,13 @@ var META_SCHEMAS = {
9274
9431
  "type": "string"
9275
9432
  },
9276
9433
  "query": {
9277
- "$ref": "#/$defs/Map(String,String)"
9434
+ "$ref": "#/$defs/Map(String,String)",
9435
+ "properties": {
9436
+ "seedFilter": {
9437
+ "type": "string",
9438
+ "x-dsl-condition": true
9439
+ }
9440
+ }
9278
9441
  },
9279
9442
  "routeName": {
9280
9443
  "type": "string"
@@ -9644,7 +9807,8 @@ var META_SCHEMAS = {
9644
9807
  "description": "all = \u8BE5\u5173\u8054\u7684\u5B58\u5728\u6027\u6309\u5168\u91CF\u5B50\u8BB0\u5F55\u5224\u5B9A\uFF0C\u4E0D\u6309\u67E5\u770B\u8005\u5BF9\u5B50\u8868\u7684\u884C\u7EA7\u8303\u56F4\u6536\u7A84\uFF08\u300C\u6CA1\u6709\u5408\u540C\u7684\u4EBA\u300D\u7C7B\u9632\u91CD\u590D\u9875\u9762\u7528\uFF09\u3002\u6309\u53EF\u89C1\u8303\u56F4\u5224\u5B9A\u65F6\u4E0D\u8981\u5199\u8FD9\u4E2A\u952E\u3002"
9645
9808
  },
9646
9809
  "where": {
9647
- "description": "\u4E3A\u7A7A\uFF0C\u6216\u53EA\u542B eq / in / is_null / is_not_null \u4E14\u503C\u4E3A\u5B57\u9762\u91CF\u7684\u53F6\u5B50\uFF08\u53EF and \u7EC4\u5408\uFF09\u3002\u4E0D\u8BB8 or / not / \u5D4C\u5957 exists / match / like / \u6BD4\u8F83\u7B97\u5B50 / \u70B9\u8DEF\u5F84\u5B57\u6BB5\uFF1B\u503C\u4E0D\u5F97\u4EE5 : ? $ \u5F00\u5934\uFF08\u4E3B\u6A21\u578B\u5B57\u6BB5\u5F15\u7528 / \u8BF7\u6C42\u53C2\u6570 / \u7CFB\u7EDF\u5360\u4F4D\u7B26\u2014\u2014defaultFilter \u4E0D\u89E3\u6790 $\uFF0C\u4E00\u5F8B\u53EA\u8BA4\u5B57\u9762\u503C\uFF09\u3002MetaYamlValidator\uFF08EXISTS_DOMAIN_ALL_INVALID\uFF09\u4E0E\u7ED1\u5B9A\u671F\uFF08EXISTS_SCOPE_UNSUPPORTED\uFF09\u540C\u4E00\u8F96\u533A\u3002"
9810
+ "description": "\u4E3A\u7A7A\uFF0C\u6216\u53EA\u542B eq / in / is_null / is_not_null \u4E14\u503C\u4E3A\u5B57\u9762\u91CF\u7684\u53F6\u5B50\uFF08\u53EF and \u7EC4\u5408\uFF09\u3002\u4E0D\u8BB8 or / not / \u5D4C\u5957 exists / match / like / \u6BD4\u8F83\u7B97\u5B50 / \u70B9\u8DEF\u5F84\u5B57\u6BB5\uFF1B\u503C\u4E0D\u5F97\u4EE5 : ? $ \u5F00\u5934\uFF08\u4E3B\u6A21\u578B\u5B57\u6BB5\u5F15\u7528 / \u8BF7\u6C42\u53C2\u6570 / \u7CFB\u7EDF\u5360\u4F4D\u7B26\u2014\u2014defaultFilter \u4E0D\u89E3\u6790 $\uFF0C\u4E00\u5F8B\u53EA\u8BA4\u5B57\u9762\u503C\uFF09\u3002MetaYamlValidator\uFF08EXISTS_DOMAIN_ALL_INVALID\uFF09\u4E0E\u7ED1\u5B9A\u671F\uFF08EXISTS_SCOPE_UNSUPPORTED\uFF09\u540C\u4E00\u8F96\u533A\u3002",
9811
+ "x-dsl-condition": true
9648
9812
  }
9649
9813
  },
9650
9814
  "required": ["relation", "domain"]
@@ -10466,7 +10630,8 @@ var META_SCHEMAS = {
10466
10630
  "type": "object",
10467
10631
  "properties": {
10468
10632
  "filter": {
10469
- "$ref": "#/$defs/JsonNode"
10633
+ "$ref": "#/$defs/JsonNode",
10634
+ "x-dsl-condition": true
10470
10635
  },
10471
10636
  "joinType": {
10472
10637
  "type": "string"
@@ -10943,10 +11108,12 @@ var META_SCHEMAS = {
10943
11108
  "properties": {
10944
11109
  "defaultFilter": {
10945
11110
  "$ref": "#/$defs/JsonNode",
10946
- "description": "\u9884\u8BBE\u8FC7\u6EE4\u6761\u4EF6\uFF08Cube AST\uFF0C\u4E0E\u516C\u5171 DSL filter \u540C\u5F62\uFF09\uFF1B\u524D\u7AEF\u9996\u6B21\u6253\u5F00\u5217\u8868\u81EA\u52A8\u5E26\u5165\uFF0C\u670D\u52A1\u7AEF bindState \u65F6\u4E0E serverFilter AND \u5408\u5E76\u8FDB DSL\u3002\u4E0D\u89E3\u6790 $ \u7CFB\u7EDF\u5360\u4F4D\u7B26\uFF08\u4E0E serverFilter \u4E0D\u540C\uFF09\uFF0C\u5199\u4E86\u4F1A\u539F\u6837\u5F53\u5B57\u9762\u503C\u6BD4\u8F83\u3002exists \u8282\u70B9\u5728\u89C6\u56FE\u91CC\u53EF\u591A\u5199\u4E00\u4E2A\u952E domain: all\uFF0C\u5F62\u72B6\u4E0E\u7EA6\u675F\u89C1 #/$defs/ViewExistsDomainAll"
11111
+ "description": "\u9884\u8BBE\u8FC7\u6EE4\u6761\u4EF6\uFF08Cube AST\uFF0C\u4E0E\u516C\u5171 DSL filter \u540C\u5F62\uFF09\uFF1B\u524D\u7AEF\u9996\u6B21\u6253\u5F00\u5217\u8868\u81EA\u52A8\u5E26\u5165\uFF0C\u670D\u52A1\u7AEF bindState \u65F6\u4E0E serverFilter AND \u5408\u5E76\u8FDB DSL\u3002\u4E0D\u89E3\u6790 $ \u7CFB\u7EDF\u5360\u4F4D\u7B26\uFF08\u4E0E serverFilter \u4E0D\u540C\uFF09\uFF0C\u5199\u4E86\u4F1A\u539F\u6837\u5F53\u5B57\u9762\u503C\u6BD4\u8F83\u3002exists \u8282\u70B9\u5728\u89C6\u56FE\u91CC\u53EF\u591A\u5199\u4E00\u4E2A\u952E domain: all\uFF0C\u5F62\u72B6\u4E0E\u7EA6\u675F\u89C1 #/$defs/ViewExistsDomainAll",
11112
+ "x-dsl-condition": true
10947
11113
  }
10948
11114
  },
10949
- "description": "\u9884\u8BBE\u8FC7\u6EE4\u6761\u4EF6;\u6309 state \u63D0\u4F9B\u9ED8\u8BA4\u67E5\u8BE2\u6761\u4EF6,\u524D\u7AEF\u9996\u6B21\u6253\u5F00\u5217\u8868\u81EA\u52A8\u5E26\u5165"
11115
+ "description": "\u9884\u8BBE\u8FC7\u6EE4\u6761\u4EF6;\u6309 state \u63D0\u4F9B\u9ED8\u8BA4\u67E5\u8BE2\u6761\u4EF6,\u524D\u7AEF\u9996\u6B21\u6253\u5F00\u5217\u8868\u81EA\u52A8\u5E26\u5165",
11116
+ "x-dsl-condition": true
10950
11117
  },
10951
11118
  "key": {
10952
11119
  "type": "string",
@@ -11109,6 +11276,10 @@ var META_SCHEMAS = {
11109
11276
  "type": "boolean",
11110
11277
  "description": "\u6A21\u578B\u5929\u7136\u53EA\u8BFB;\u9690\u85CF\u65B0\u5EFA/\u7F16\u8F91/\u5220\u9664/\u6279\u91CF\u5220\u9664\uFF0C\u4FDD\u7559\u67E5\u770B\u4E0E\u5BFC\u822A\u3002\u533A\u522B\u4E8E ?readonly=1 \u7684\u300C\u672C\u6B21\u8FDB\u5165\u53EA\u8BFB\u300D"
11111
11278
  },
11279
+ "relationshipAnalysis": {
11280
+ "$ref": "#/$defs/Map(String,Object)",
11281
+ "description": "\u5173\u7CFB\u56FE\u8C31\u573A\u666F\u7684\u6765\u6E90\u6620\u5C04\u3001\u7EAF\u8BA1\u7B97\u89C4\u5219\u5F15\u7528\u53CA\u9ED8\u8BA4\u7B5B\u9009\uFF1B\u4EBA\u5458\u8303\u56F4\u5FC5\u987B\u7531\u540C\u4E00\u5177\u540D\u5217\u8868\u7684serverFilter\u9650\u5B9A\uFF1B\u9700capabilityVersion>=1.99.0"
11282
+ },
11112
11283
  "reserveSelection": {
11113
11284
  "type": "boolean",
11114
11285
  "description": "\u540C\u4E00\u67E5\u8BE2\u8303\u56F4\u5185\u6309\u7A33\u5B9A id \u4FDD\u7559\u8DE8\u9875\u663E\u5F0F\u9009\u62E9\uFF1B\u8303\u56F4/\u6743\u9650\u8EAB\u4EFD\u6539\u53D8\u5931\u6548\uFF0C\u6267\u884C\u7AEF\u4ECD\u987B\u6388\u6743\uFF1B\u9700 frontend capability 1.82.0"
@@ -11129,7 +11300,8 @@ var META_SCHEMAS = {
11129
11300
  "properties": {
11130
11301
  "filter": {
11131
11302
  "$ref": "#/$defs/JsonNode",
11132
- "description": "\u9009\u4E2D\u8BE5\u9879\u65F6 AND \u8FDB\u67E5\u8BE2\u7684\u8FC7\u6EE4\u53F6\u5B50(Cube AST);\u7F3A\u7701\u8868\u793A\u4E0D\u8FFD\u52A0\u4EFB\u4F55\u8FC7\u6EE4"
11303
+ "description": "\u9009\u4E2D\u8BE5\u9879\u65F6 AND \u8FDB\u67E5\u8BE2\u7684\u8FC7\u6EE4\u53F6\u5B50(Cube AST);\u7F3A\u7701\u8868\u793A\u4E0D\u8FFD\u52A0\u4EFB\u4F55\u8FC7\u6EE4",
11304
+ "x-dsl-condition": true
11133
11305
  },
11134
11306
  "key": {
11135
11307
  "type": "string",
@@ -11162,7 +11334,8 @@ var META_SCHEMAS = {
11162
11334
  },
11163
11335
  "serverFilter": {
11164
11336
  "$ref": "#/$defs/JsonNode",
11165
- "description": "\u670D\u52A1\u7AEF\u5F3A\u5236\u8FC7\u6EE4\u6761\u4EF6(Cube AST);\u8DDF\u7528\u6237 DSL filter AND \u5408\u5E76\u3002\u652F\u6301 $currentUserId / $today \u7B49\u7CFB\u7EDF\u5360\u4F4D\u7B26\uFF08bindState \u524D\u7531 ServerVarResolver \u6362\u6210\u672C\u8BF7\u6C42\u5E38\u91CF\uFF09\u3002exists \u8282\u70B9\u5728\u89C6\u56FE\u91CC\u53EF\u591A\u5199\u4E00\u4E2A\u952E domain: all\uFF0C\u5F62\u72B6\u4E0E\u7EA6\u675F\u89C1 #/$defs/ViewExistsDomainAll"
11337
+ "description": "\u670D\u52A1\u7AEF\u5F3A\u5236\u8FC7\u6EE4\u6761\u4EF6(Cube AST);\u8DDF\u7528\u6237 DSL filter AND \u5408\u5E76\u3002\u652F\u6301 $currentUserId / $today \u7B49\u7CFB\u7EDF\u5360\u4F4D\u7B26\uFF08bindState \u524D\u7531 ServerVarResolver \u6362\u6210\u672C\u8BF7\u6C42\u5E38\u91CF\uFF09\u3002exists \u8282\u70B9\u5728\u89C6\u56FE\u91CC\u53EF\u591A\u5199\u4E00\u4E2A\u952E domain: all\uFF0C\u5F62\u72B6\u4E0E\u7EA6\u675F\u89C1 #/$defs/ViewExistsDomainAll",
11338
+ "x-dsl-condition": true
11166
11339
  },
11167
11340
  "statBar": {
11168
11341
  "type": "object",
@@ -11317,7 +11490,8 @@ var META_SCHEMAS = {
11317
11490
  "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"
11318
11491
  },
11319
11492
  "filters": {
11320
- "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"
11493
+ "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",
11494
+ "x-dsl-condition": true
11321
11495
  },
11322
11496
  "modelKey": {
11323
11497
  "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"
@@ -11378,7 +11552,8 @@ var META_SCHEMAS = {
11378
11552
  }
11379
11553
  },
11380
11554
  "additionalProperties": false
11381
- }
11555
+ },
11556
+ "x-dsl-condition": true
11382
11557
  }
11383
11558
  }
11384
11559
  }
@@ -12093,7 +12268,8 @@ var META_SCHEMAS = {
12093
12268
  "properties": {
12094
12269
  "conditions": {
12095
12270
  "$ref": "#/$defs/Map(String,Object)",
12096
- "description": "\u989D\u5916\u8FC7\u6EE4\u6761\u4EF6\uFF08\u5B57\u9762\u91CF key:value\uFF0CAND \u8BED\u4E49\uFF09\uFF1B\u4E0E RBAC/list defaultFilter \u53E0\u52A0\uFF1B\u7F3A\u7701\u4E3A\u7A7A map"
12271
+ "description": "\u989D\u5916\u8FC7\u6EE4\u6761\u4EF6\uFF08\u5B57\u9762\u91CF key:value\uFF0CAND \u8BED\u4E49\uFF09\uFF1B\u4E0E RBAC/list defaultFilter \u53E0\u52A0\uFF1B\u7F3A\u7701\u4E3A\u7A7A map",
12272
+ "x-dsl-condition": true
12097
12273
  },
12098
12274
  "key": {
12099
12275
  "type": "string",
@@ -13016,7 +13192,8 @@ var META_SCHEMAS = {
13016
13192
  "type": "object",
13017
13193
  "properties": {
13018
13194
  "filter": {
13019
- "type": "object"
13195
+ "type": "object",
13196
+ "x-dsl-condition": true
13020
13197
  },
13021
13198
  "joinType": {
13022
13199
  "type": "string"
@@ -13390,7 +13567,8 @@ var META_SCHEMAS = {
13390
13567
  "type": "object",
13391
13568
  "properties": {
13392
13569
  "filter": {
13393
- "type": "object"
13570
+ "type": "object",
13571
+ "x-dsl-condition": true
13394
13572
  },
13395
13573
  "joinType": {
13396
13574
  "type": "string"
@@ -13427,11 +13605,22 @@ var META_SCHEMAS = {
13427
13605
  "$ref": "#/$defs/QueryAddition"
13428
13606
  }
13429
13607
  },
13608
+ "assignmentTypes": {
13609
+ "type": "array",
13610
+ "items": {
13611
+ "type": "string",
13612
+ "pattern": "^\\S(?:.*\\S)?$"
13613
+ },
13614
+ "minItems": 1,
13615
+ "uniqueItems": true,
13616
+ "description": "assignmentPosition actor \u8303\u56F4\u5FC5\u586B\u7684\u4EFB\u804C\u7C7B\u578B\u767D\u540D\u5355\uFF0C\u6309\u79DF\u6237\u5F53\u524D\u4E1A\u52A1\u65E5\u3001\u5728\u804C\u4E14\u5728\u5C97\u4EFB\u804C\u89E3\u6790\uFF1B\u5176\u5B83\u7C7B\u578B\u53CA org/wf \u69FD\u4F4D\u7981\u6B62\u4F7F\u7528\u3002"
13617
+ },
13430
13618
  "field": {
13431
13619
  "type": "string"
13432
13620
  },
13433
13621
  "mainFilter": {
13434
- "$ref": "#/$defs/JsonNode"
13622
+ "$ref": "#/$defs/JsonNode",
13623
+ "x-dsl-condition": true
13435
13624
  },
13436
13625
  "type": {
13437
13626
  "type": "string"
@@ -13773,7 +13962,8 @@ var META_SCHEMAS = {
13773
13962
  },
13774
13963
  "value": {}
13775
13964
  }
13776
- }
13965
+ },
13966
+ "x-dsl-condition": true
13777
13967
  },
13778
13968
  "filterable": {
13779
13969
  "type": "boolean"
@@ -14657,6 +14847,17 @@ var META_SCHEMAS = {
14657
14847
  "$ref": "#/$defs/PermissionFieldAccess"
14658
14848
  }
14659
14849
  },
14850
+ "filter": {
14851
+ "$ref": "#/$defs/JsonNode",
14852
+ "type": "object",
14853
+ "minProperties": 1,
14854
+ "description": "\u53EF\u9009\u9759\u6001\u9650\u5B9A\u6761\u4EF6\uFF08Cube AST\uFF09\uFF0Cfield \u652F\u6301\u4E3B\u8868\u5B57\u6BB5\u6216\u5355\u503C\u5916\u952E\u4E00\u8DF3\uFF08\u5982 employeeId.gender\uFF09\uFF1B\u4E0E\u672C\u6761 match \u53D6\u4EA4\u96C6\uFF0C\u4E0D\u540C grants \u53D6\u5E76\u96C6\u3002\u4EC5\u652F\u6301 list/get\uFF0C\u7531\u670D\u52A1\u7AEF\u5B8C\u6574\u5019\u9009\u6821\u9A8C\u3002",
14855
+ "x-dsl-condition": true
14856
+ },
14857
+ "inheritToDerivedModels": {
14858
+ "type": "boolean",
14859
+ "description": "\u662F\u5426\u5141\u8BB8 grantsFrom \u6D3E\u751F\u6A21\u578B\u7EE7\u627F\u672C\u6761\u6388\u6743\uFF1B\u7F3A\u7701\u6216 true \u6CBF\u7528\u65E2\u6709\u7EE7\u627F\uFF0Cfalse \u4EC5\u6388\u6743\u5F53\u524D\u6A21\u578B\uFF0C\u4E0D\u6539\u53D8\u672C\u6A21\u578B\u52A8\u4F5C\u3001\u884C\u8303\u56F4\u6216\u5B57\u6BB5\u6743\u9650\u3002\u4EC5\u53EF\u5728\u652F\u6301\u8BE5\u5C5E\u6027\u7684 Core \u7248\u672C\u53D1\u5E03\uFF1B\u4E0D\u80FD\u4EE5\u6539\u53D8\u76EE\u6807\u6A21\u578B\u7684 scope \u66FF\u4EE3\u3002"
14860
+ },
14660
14861
  "match": {
14661
14862
  "type": "string",
14662
14863
  "pattern": "^[\\u0000-\\u0020]*(?:[A-Za-z\u212A][A-Za-z0-9_\u212A]*[\\u0000-\\u0020]*)?$",
@@ -14864,7 +15065,8 @@ var META_SCHEMAS = {
14864
15065
  }
14865
15066
  },
14866
15067
  "minItems": 1,
14867
- "description": "\u5DE6\u680F\u7B5B\u9009\u8868\u5355(menu.source.form)\u7684\u503C\u5E76\u8FDB\u672C\u5217\u8868\u6761\u4EF6:\u5355\u503C eq\u3001\u6570\u7EC4 in\u3001\u7A7A\u4E0D\u52A0,\u4E0E\u5DE6\u680F\u9009\u4E2D\u6761\u4EF6\u5E73\u94FA\u5728\u540C\u4E00\u4E2A\u9876\u5C42\u300C\u5E76\u4E14\u300D\u7EC4\u3002\u9700 frontend capability 1.57.0"
15068
+ "description": "\u5DE6\u680F\u7B5B\u9009\u8868\u5355(menu.source.form)\u7684\u503C\u5E76\u8FDB\u672C\u5217\u8868\u6761\u4EF6:\u5355\u503C eq\u3001\u6570\u7EC4 in\u3001\u7A7A\u4E0D\u52A0,\u4E0E\u5DE6\u680F\u9009\u4E2D\u6761\u4EF6\u5E73\u94FA\u5728\u540C\u4E00\u4E2A\u9876\u5C42\u300C\u5E76\u4E14\u300D\u7EC4\u3002\u9700 frontend capability 1.57.0",
15069
+ "x-dsl-condition": true
14868
15070
  },
14869
15071
  "metaPlugin": {
14870
15072
  "type": "string"
@@ -15870,7 +16072,8 @@ var META_SCHEMAS = {
15870
16072
  }
15871
16073
  },
15872
16074
  "required": ["field", "source", "path"]
15873
- }
16075
+ },
16076
+ "x-dsl-condition": true
15874
16077
  }
15875
16078
  }
15876
16079
  }]
@@ -16461,7 +16664,8 @@ var META_SCHEMAS = {
16461
16664
  "type": "string"
16462
16665
  },
16463
16666
  "filter": {
16464
- "type": "string"
16667
+ "type": "string",
16668
+ "x-dsl-condition": true
16465
16669
  },
16466
16670
  "order": {
16467
16671
  "type": "string",
@@ -16743,7 +16947,8 @@ var META_SCHEMAS = {
16743
16947
  }
16744
16948
  },
16745
16949
  "required": ["field", "operator", "value"]
16746
- }
16950
+ },
16951
+ "x-dsl-condition": true
16747
16952
  },
16748
16953
  "renderer": {
16749
16954
  "type": "string",
@@ -18241,6 +18446,9 @@ var META_SCHEMAS = {
18241
18446
  "export": {
18242
18447
  "type": "object",
18243
18448
  "properties": {
18449
+ "salaryItemCode": {
18450
+ "type": "string"
18451
+ },
18244
18452
  "valuePath": {
18245
18453
  "type": "string",
18246
18454
  "pattern": "^[A-Za-z_][A-Za-z0-9_]*\\.[A-Za-z_][A-Za-z0-9_]*$",
@@ -32111,6 +32319,8 @@ export {
32111
32319
  IMPORT_PLAN_FILE,
32112
32320
  INIT_EXIT_CODES,
32113
32321
  INSTALL_CONFIRMATION_HINTS,
32322
+ INTROSPECTION_ENVELOPE_KEYS,
32323
+ INTROSPECTION_PATH,
32114
32324
  JIRA_BASE,
32115
32325
  JIRA_KEYCHAIN,
32116
32326
  JIRA_PROJECT,
@@ -32158,6 +32368,12 @@ export {
32158
32368
  MINI_STATE_DIR,
32159
32369
  MODELS_PATH,
32160
32370
  MODEL_META_PATH,
32371
+ MODEL_SEARCH_DEGRADED_COUNT_KEYS,
32372
+ MODEL_SEARCH_KEYS,
32373
+ MODEL_SEARCH_PATH,
32374
+ MUTATION_CAPABILITY_OPS,
32375
+ MUTATION_CAPABILITY_PATH,
32376
+ MUTATION_CELL_KEYS,
32161
32377
  MappingError,
32162
32378
  NETWORK_GATES,
32163
32379
  NEXT_STEP2 as NEXT_STEP,
@@ -32180,6 +32396,7 @@ export {
32180
32396
  PREMISE_ROWS_TO_CHECK,
32181
32397
  PREMISE_UNMET,
32182
32398
  PREMISE_WORDS,
32399
+ PRESET_ORIGIN_PATH,
32183
32400
  PROACTIVE_REFRESH_MARGIN_SECONDS,
32184
32401
  PRODUCT_STATE_WORDS,
32185
32402
  PlanReadError,
@@ -32289,6 +32506,7 @@ export {
32289
32506
  changePassword,
32290
32507
  checkCoherence,
32291
32508
  classifyEffect,
32509
+ classifyEndpointFailure,
32292
32510
  classifyMessage,
32293
32511
  classifyStatus,
32294
32512
  clearMetaCache,
@@ -32346,6 +32564,9 @@ export {
32346
32564
  fetchConversationTimeline,
32347
32565
  fetchConversationTimelineStrict,
32348
32566
  fetchInstallRun,
32567
+ fetchIntrospection,
32568
+ fetchMutationCapability,
32569
+ fetchPresetOrigin,
32349
32570
  fetchRecentConversations,
32350
32571
  fetchReconIdentity,
32351
32572
  fetchSkillCatalog,
@@ -32405,6 +32626,7 @@ export {
32405
32626
  isSupersededItem,
32406
32627
  isTempEnv,
32407
32628
  isTerminalRunStatus,
32629
+ isUuid,
32408
32630
  isWorkspaceRelativePath,
32409
32631
  isZeroNetwork,
32410
32632
  jiraTokenHelp,
@@ -32443,6 +32665,7 @@ export {
32443
32665
  metaFileUrl,
32444
32666
  metaKindFromPath,
32445
32667
  migrateLegacyProfiles,
32668
+ missingKeys,
32446
32669
  modelEntries,
32447
32670
  modelKeys,
32448
32671
  needsRefresh,
@@ -32488,6 +32711,7 @@ export {
32488
32711
  readMiniContext,
32489
32712
  readPullManifest,
32490
32713
  readSessionPrincipal,
32714
+ readTextPart,
32491
32715
  readWorkspaceInspection,
32492
32716
  rebind,
32493
32717
  rebindPayload,
@@ -32543,6 +32767,7 @@ export {
32543
32767
  saveWorkspaceFileContent,
32544
32768
  saveWorkspaceFileContentChecked,
32545
32769
  scriptDryRun,
32770
+ searchModels,
32546
32771
  seedBaselines,
32547
32772
  seedMappingPath,
32548
32773
  seedWorkDir,