@firfi/huly-mcp 0.44.1 → 0.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +50 -50
  2. package/dist/index.cjs +814 -739
  3. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -23791,7 +23791,7 @@ var require_status = __commonJS({
23791
23791
  unknownStatus: () => unknownStatus
23792
23792
  });
23793
23793
  module2.exports = __toCommonJS2(status_exports);
23794
- var import_platform4 = __toESM2(require_platform());
23794
+ var import_platform3 = __toESM2(require_platform());
23795
23795
  var Severity = /* @__PURE__ */ ((Severity2) => {
23796
23796
  Severity2["OK"] = "OK";
23797
23797
  Severity2["INFO"] = "INFO";
@@ -23822,11 +23822,11 @@ var require_status = __commonJS({
23822
23822
  this.status = status;
23823
23823
  }
23824
23824
  };
23825
- var OK2 = new Status("OK", import_platform4.default.status.OK, {});
23826
- var ERROR = new Status("ERROR", import_platform4.default.status.BadError, {});
23827
- var UNAUTHORIZED = new Status("ERROR", import_platform4.default.status.Unauthorized, {});
23825
+ var OK2 = new Status("OK", import_platform3.default.status.OK, {});
23826
+ var ERROR = new Status("ERROR", import_platform3.default.status.BadError, {});
23827
+ var UNAUTHORIZED = new Status("ERROR", import_platform3.default.status.Unauthorized, {});
23828
23828
  function unknownStatus(message) {
23829
- return new Status("ERROR", import_platform4.default.status.UnknownError, { message });
23829
+ return new Status("ERROR", import_platform3.default.status.UnknownError, { message });
23830
23830
  }
23831
23831
  __name(unknownStatus, "unknownStatus");
23832
23832
  function unknownError(err) {
@@ -28103,16 +28103,16 @@ var require_ident = __commonJS({
28103
28103
  });
28104
28104
  module2.exports = __toCommonJS2(ident_exports);
28105
28105
  var import_status = require_status();
28106
- var import_platform4 = __toESM2(require_platform());
28106
+ var import_platform3 = __toESM2(require_platform());
28107
28107
  function _parseId(id) {
28108
- const path2 = id.split(import_platform4._ID_SEPARATOR);
28108
+ const path2 = id.split(import_platform3._ID_SEPARATOR);
28109
28109
  if (path2.length < 3) {
28110
- throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.InvalidId, { id }));
28110
+ throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.InvalidId, { id }));
28111
28111
  }
28112
28112
  return {
28113
28113
  component: path2[0],
28114
28114
  kind: path2[1],
28115
- name: path2.slice(2).join(import_platform4._ID_SEPARATOR)
28115
+ name: path2.slice(2).join(import_platform3._ID_SEPARATOR)
28116
28116
  };
28117
28117
  }
28118
28118
  __name(_parseId, "_parseId");
@@ -28216,7 +28216,7 @@ var require_i18n = __commonJS({
28216
28216
  var import_ident = require_ident();
28217
28217
  var import_status = require_status();
28218
28218
  var import_metadata = require_metadata();
28219
- var import_platform4 = __toESM2(require_platform());
28219
+ var import_platform3 = __toESM2(require_platform());
28220
28220
  var loaders = /* @__PURE__ */ new Map();
28221
28221
  var translations = /* @__PURE__ */ new Map();
28222
28222
  var cache = /* @__PURE__ */ new Map();
@@ -28245,7 +28245,7 @@ var require_i18n = __commonJS({
28245
28245
  async function loadTranslationsForComponent(plugin2, locale) {
28246
28246
  const loader = loaders.get(plugin2);
28247
28247
  if (loader === void 0) {
28248
- const status = new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.NoLoaderForStrings, { plugin: plugin2 });
28248
+ const status = new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.NoLoaderForStrings, { plugin: plugin2 });
28249
28249
  await (0, import_event.setPlatformStatus)(status);
28250
28250
  return status;
28251
28251
  }
@@ -28321,7 +28321,7 @@ var require_i18n = __commonJS({
28321
28321
  }
28322
28322
  __name(getTranslation, "getTranslation");
28323
28323
  async function translate(message, params, language) {
28324
- const locale = language ?? (0, import_metadata.getMetadata)(import_platform4.default.metadata.locale) ?? "en";
28324
+ const locale = language ?? (0, import_metadata.getMetadata)(import_platform3.default.metadata.locale) ?? "en";
28325
28325
  const localCache = cache.get(locale) ?? /* @__PURE__ */ new Map();
28326
28326
  if (!cache.has(locale)) {
28327
28327
  cache.set(locale, localCache);
@@ -28335,7 +28335,7 @@ var require_i18n = __commonJS({
28335
28335
  } else {
28336
28336
  try {
28337
28337
  const id = (0, import_ident._parseId)(message);
28338
- if (id.component === import_platform4._EmbeddedId) {
28338
+ if (id.component === import_platform3._EmbeddedId) {
28339
28339
  return id.name;
28340
28340
  }
28341
28341
  const translation = getCachedTranslation(id, locale) ?? await getTranslation(id, locale) ?? message;
@@ -28356,7 +28356,7 @@ var require_i18n = __commonJS({
28356
28356
  }
28357
28357
  __name(translate, "translate");
28358
28358
  function translateCB(message, params, language, resolve2) {
28359
- const locale = language ?? (0, import_metadata.getMetadata)(import_platform4.default.metadata.locale) ?? "en";
28359
+ const locale = language ?? (0, import_metadata.getMetadata)(import_platform3.default.metadata.locale) ?? "en";
28360
28360
  const localCache = cache.get(locale) ?? /* @__PURE__ */ new Map();
28361
28361
  if (!cache.has(locale)) {
28362
28362
  cache.set(locale, localCache);
@@ -28372,7 +28372,7 @@ var require_i18n = __commonJS({
28372
28372
  let id;
28373
28373
  try {
28374
28374
  id = (0, import_ident._parseId)(message);
28375
- if (id.component === import_platform4._EmbeddedId) {
28375
+ if (id.component === import_platform3._EmbeddedId) {
28376
28376
  resolve2(id.name);
28377
28377
  return;
28378
28378
  }
@@ -28450,7 +28450,7 @@ var require_resource = __commonJS({
28450
28450
  var import_ident = require_ident();
28451
28451
  var import_status = require_status();
28452
28452
  var import_metadata = require_metadata();
28453
- var import_platform4 = __toESM2(require_platform());
28453
+ var import_platform3 = __toESM2(require_platform());
28454
28454
  var locations = /* @__PURE__ */ new Map();
28455
28455
  function addLocation(plugin2, module22) {
28456
28456
  locations.set(plugin2, module22);
@@ -28464,7 +28464,7 @@ var require_resource = __commonJS({
28464
28464
  const location = locations.get(plugin2);
28465
28465
  if (location === void 0) {
28466
28466
  throw new import_status.PlatformError(
28467
- new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.NoLocationForPlugin, {
28467
+ new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.NoLocationForPlugin, {
28468
28468
  plugin: plugin2
28469
28469
  })
28470
28470
  );
@@ -28476,10 +28476,10 @@ var require_resource = __commonJS({
28476
28476
  function loadPlugin(id) {
28477
28477
  let pluginLoader = loading.get(id);
28478
28478
  if (pluginLoader === void 0) {
28479
- const status = new import_status.Status(import_status.Severity.INFO, import_platform4.default.status.LoadingPlugin, {
28479
+ const status = new import_status.Status(import_status.Severity.INFO, import_platform3.default.status.LoadingPlugin, {
28480
28480
  plugin: id
28481
28481
  });
28482
- const loadHelper = (0, import_metadata.getMetadata)(import_platform4.default.metadata.LoadHelper);
28482
+ const loadHelper = (0, import_metadata.getMetadata)(import_platform3.default.metadata.LoadHelper);
28483
28483
  const locationLoader = getLocation(id);
28484
28484
  pluginLoader = (0, import_event.monitor)(status, loadHelper !== void 0 ? loadHelper(locationLoader) : locationLoader()).then(
28485
28485
  async (plugin2) => {
@@ -28513,7 +28513,7 @@ var require_resource = __commonJS({
28513
28513
  }
28514
28514
  const value3 = resources[info.kind]?.[info.name];
28515
28515
  if (value3 === void 0) {
28516
- throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.ResourceNotFound, { resource }));
28516
+ throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.ResourceNotFound, { resource }));
28517
28517
  }
28518
28518
  cachedResource.set(resource, value3);
28519
28519
  return value3;
@@ -28633,7 +28633,7 @@ var require_lib = __commonJS({
28633
28633
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
28634
28634
  var index_exports2 = {};
28635
28635
  __export2(index_exports2, {
28636
- default: () => import_platform4.default
28636
+ default: () => import_platform3.default
28637
28637
  });
28638
28638
  module2.exports = __toCommonJS2(index_exports2);
28639
28639
  __reExport2(index_exports2, require_event(), module2.exports);
@@ -28641,7 +28641,7 @@ var require_lib = __commonJS({
28641
28641
  __reExport2(index_exports2, require_metadata(), module2.exports);
28642
28642
  __reExport2(index_exports2, require_platform(), module2.exports);
28643
28643
  __reExport2(index_exports2, require_ident(), module2.exports);
28644
- var import_platform4 = __toESM2(require_platform());
28644
+ var import_platform3 = __toESM2(require_platform());
28645
28645
  __reExport2(index_exports2, require_resource(), module2.exports);
28646
28646
  __reExport2(index_exports2, require_status(), module2.exports);
28647
28647
  __reExport2(index_exports2, require_testUtils(), module2.exports);
@@ -28851,7 +28851,7 @@ var require_component = __commonJS({
28851
28851
  systemAccountUuid: () => systemAccountUuid
28852
28852
  });
28853
28853
  module2.exports = __toCommonJS2(component_exports);
28854
- var import_platform4 = require_lib();
28854
+ var import_platform3 = require_lib();
28855
28855
  var import_classes = require_classes();
28856
28856
  var coreId = "core";
28857
28857
  var systemAccountEmail = "anticrm@hc.engineering";
@@ -28865,7 +28865,7 @@ var require_component = __commonJS({
28865
28865
  };
28866
28866
  var configUserAccountUuid = "0d94731c-0787-4bcd-aefe-304efc3706b1";
28867
28867
  var readOnlyGuestAccountUuid = "83bbed9a-0867-4851-be32-31d49d1d42ce";
28868
- var component_default = (0, import_platform4.plugin)(coreId, {
28868
+ var component_default = (0, import_platform3.plugin)(coreId, {
28869
28869
  class: {
28870
28870
  Obj: "",
28871
28871
  Doc: "",
@@ -29250,7 +29250,7 @@ var require_status2 = __commonJS({
29250
29250
  unknownStatus: () => unknownStatus
29251
29251
  });
29252
29252
  module2.exports = __toCommonJS2(status_exports);
29253
- var import_platform4 = __toESM2(require_platform2());
29253
+ var import_platform3 = __toESM2(require_platform2());
29254
29254
  var Severity = /* @__PURE__ */ ((Severity2) => {
29255
29255
  Severity2["OK"] = "OK";
29256
29256
  Severity2["INFO"] = "INFO";
@@ -29281,11 +29281,11 @@ var require_status2 = __commonJS({
29281
29281
  this.status = status;
29282
29282
  }
29283
29283
  };
29284
- var OK2 = new Status("OK", import_platform4.default.status.OK, {});
29285
- var ERROR = new Status("ERROR", import_platform4.default.status.BadError, {});
29286
- var UNAUTHORIZED = new Status("ERROR", import_platform4.default.status.Unauthorized, {});
29284
+ var OK2 = new Status("OK", import_platform3.default.status.OK, {});
29285
+ var ERROR = new Status("ERROR", import_platform3.default.status.BadError, {});
29286
+ var UNAUTHORIZED = new Status("ERROR", import_platform3.default.status.Unauthorized, {});
29287
29287
  function unknownStatus(message) {
29288
- return new Status("ERROR", import_platform4.default.status.UnknownError, { message });
29288
+ return new Status("ERROR", import_platform3.default.status.UnknownError, { message });
29289
29289
  }
29290
29290
  __name(unknownStatus, "unknownStatus");
29291
29291
  function isStatusLike(err) {
@@ -29444,16 +29444,16 @@ var require_ident2 = __commonJS({
29444
29444
  });
29445
29445
  module2.exports = __toCommonJS2(ident_exports);
29446
29446
  var import_status = require_status2();
29447
- var import_platform4 = __toESM2(require_platform2());
29447
+ var import_platform3 = __toESM2(require_platform2());
29448
29448
  function _parseId(id) {
29449
- const path2 = id.split(import_platform4._ID_SEPARATOR);
29449
+ const path2 = id.split(import_platform3._ID_SEPARATOR);
29450
29450
  if (path2.length < 3) {
29451
- throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.InvalidId, { id }));
29451
+ throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.InvalidId, { id }));
29452
29452
  }
29453
29453
  return {
29454
29454
  component: path2[0],
29455
29455
  kind: path2[1],
29456
- name: path2.slice(2).join(import_platform4._ID_SEPARATOR)
29456
+ name: path2.slice(2).join(import_platform3._ID_SEPARATOR)
29457
29457
  };
29458
29458
  }
29459
29459
  __name(_parseId, "_parseId");
@@ -29557,7 +29557,7 @@ var require_i18n2 = __commonJS({
29557
29557
  var import_ident = require_ident2();
29558
29558
  var import_status = require_status2();
29559
29559
  var import_metadata = require_metadata2();
29560
- var import_platform4 = __toESM2(require_platform2());
29560
+ var import_platform3 = __toESM2(require_platform2());
29561
29561
  var loaders = /* @__PURE__ */ new Map();
29562
29562
  var translations = /* @__PURE__ */ new Map();
29563
29563
  var cache = /* @__PURE__ */ new Map();
@@ -29605,7 +29605,7 @@ var require_i18n2 = __commonJS({
29605
29605
  async function loadTranslationsForComponent(plugin2, locale, skipError) {
29606
29606
  const loader = loaders.get(plugin2);
29607
29607
  if (loader === void 0) {
29608
- const status = new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.NoLoaderForStrings, { plugin: plugin2 });
29608
+ const status = new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.NoLoaderForStrings, { plugin: plugin2 });
29609
29609
  await setStatus(status, skipError);
29610
29610
  return status;
29611
29611
  }
@@ -29677,7 +29677,7 @@ var require_i18n2 = __commonJS({
29677
29677
  }
29678
29678
  __name(getTranslation, "getTranslation");
29679
29679
  async function translate(message, params, language, skipError) {
29680
- const locale = language ?? (0, import_metadata.getMetadata)(import_platform4.default.metadata.locale) ?? "en";
29680
+ const locale = language ?? (0, import_metadata.getMetadata)(import_platform3.default.metadata.locale) ?? "en";
29681
29681
  const localCache = cache.get(locale) ?? /* @__PURE__ */ new Map();
29682
29682
  if (!cache.has(locale)) {
29683
29683
  cache.set(locale, localCache);
@@ -29691,7 +29691,7 @@ var require_i18n2 = __commonJS({
29691
29691
  return compiled.format(params);
29692
29692
  }
29693
29693
  const id = (0, import_ident._parseId)(message);
29694
- if (id.component === import_platform4._EmbeddedId) {
29694
+ if (id.component === import_platform3._EmbeddedId) {
29695
29695
  return id.name;
29696
29696
  }
29697
29697
  const translation = getCachedTranslation(id, locale) ?? await getTranslation(id, locale, skipError) ?? message;
@@ -29708,7 +29708,7 @@ var require_i18n2 = __commonJS({
29708
29708
  }
29709
29709
  __name(translate, "translate");
29710
29710
  function translateCB(message, params, language, resolve2, skipError) {
29711
- const locale = language ?? (0, import_metadata.getMetadata)(import_platform4.default.metadata.locale) ?? "en";
29711
+ const locale = language ?? (0, import_metadata.getMetadata)(import_platform3.default.metadata.locale) ?? "en";
29712
29712
  const localCache = cache.get(locale) ?? /* @__PURE__ */ new Map();
29713
29713
  if (!cache.has(locale)) {
29714
29714
  cache.set(locale, localCache);
@@ -29725,7 +29725,7 @@ var require_i18n2 = __commonJS({
29725
29725
  let id;
29726
29726
  try {
29727
29727
  id = (0, import_ident._parseId)(message);
29728
- if (id.component === import_platform4._EmbeddedId) {
29728
+ if (id.component === import_platform3._EmbeddedId) {
29729
29729
  resolve2(id.name);
29730
29730
  return;
29731
29731
  }
@@ -29800,7 +29800,7 @@ var require_resource2 = __commonJS({
29800
29800
  var import_ident = require_ident2();
29801
29801
  var import_status = require_status2();
29802
29802
  var import_metadata = require_metadata2();
29803
- var import_platform4 = __toESM2(require_platform2());
29803
+ var import_platform3 = __toESM2(require_platform2());
29804
29804
  var locations = /* @__PURE__ */ new Map();
29805
29805
  function addLocation(plugin2, module22) {
29806
29806
  locations.set(plugin2, module22);
@@ -29814,7 +29814,7 @@ var require_resource2 = __commonJS({
29814
29814
  const location = locations.get(plugin2);
29815
29815
  if (location === void 0) {
29816
29816
  throw new import_status.PlatformError(
29817
- new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.NoLocationForPlugin, {
29817
+ new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.NoLocationForPlugin, {
29818
29818
  plugin: plugin2
29819
29819
  })
29820
29820
  );
@@ -29826,10 +29826,10 @@ var require_resource2 = __commonJS({
29826
29826
  function loadPlugin(id) {
29827
29827
  let pluginLoader = loading.get(id);
29828
29828
  if (pluginLoader === void 0) {
29829
- const status = new import_status.Status(import_status.Severity.INFO, import_platform4.default.status.LoadingPlugin, {
29829
+ const status = new import_status.Status(import_status.Severity.INFO, import_platform3.default.status.LoadingPlugin, {
29830
29830
  plugin: id
29831
29831
  });
29832
- const loadHelper = (0, import_metadata.getMetadata)(import_platform4.default.metadata.LoadHelper);
29832
+ const loadHelper = (0, import_metadata.getMetadata)(import_platform3.default.metadata.LoadHelper);
29833
29833
  const locationLoader = getLocation(id);
29834
29834
  pluginLoader = (0, import_event.monitor)(status, loadHelper !== void 0 ? loadHelper(locationLoader) : locationLoader()).then(
29835
29835
  async (plugin2) => {
@@ -29863,7 +29863,7 @@ var require_resource2 = __commonJS({
29863
29863
  }
29864
29864
  const value3 = resources[info.kind]?.[info.name];
29865
29865
  if (value3 === void 0) {
29866
- throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform4.default.status.ResourceNotFound, { resource }));
29866
+ throw new import_status.PlatformError(new import_status.Status(import_status.Severity.ERROR, import_platform3.default.status.ResourceNotFound, { resource }));
29867
29867
  }
29868
29868
  cachedResource.set(resource, value3);
29869
29869
  return value3;
@@ -29983,7 +29983,7 @@ var require_lib2 = __commonJS({
29983
29983
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
29984
29984
  var index_exports2 = {};
29985
29985
  __export2(index_exports2, {
29986
- default: () => import_platform4.default
29986
+ default: () => import_platform3.default
29987
29987
  });
29988
29988
  module2.exports = __toCommonJS2(index_exports2);
29989
29989
  __reExport2(index_exports2, require_event2(), module2.exports);
@@ -29991,7 +29991,7 @@ var require_lib2 = __commonJS({
29991
29991
  __reExport2(index_exports2, require_metadata2(), module2.exports);
29992
29992
  __reExport2(index_exports2, require_platform2(), module2.exports);
29993
29993
  __reExport2(index_exports2, require_ident2(), module2.exports);
29994
- var import_platform4 = __toESM2(require_platform2());
29994
+ var import_platform3 = __toESM2(require_platform2());
29995
29995
  __reExport2(index_exports2, require_resource2(), module2.exports);
29996
29996
  __reExport2(index_exports2, require_status2(), module2.exports);
29997
29997
  __reExport2(index_exports2, require_testUtils2(), module2.exports);
@@ -30025,7 +30025,7 @@ var require_lib3 = __commonJS({
30025
30025
  providers: () => providers
30026
30026
  });
30027
30027
  module2.exports = __toCommonJS2(index_exports2);
30028
- var import_platform4 = require_lib2();
30028
+ var import_platform3 = require_lib2();
30029
30029
  var providers = [];
30030
30030
  var Analytics = {
30031
30031
  data: {},
@@ -30076,9 +30076,9 @@ var require_lib3 = __commonJS({
30076
30076
  });
30077
30077
  }
30078
30078
  };
30079
- (0, import_platform4.addEventListener)(import_platform4.PlatformEvent, async (_event, _status) => {
30080
- if (_status.severity === import_platform4.Severity.ERROR) {
30081
- const label = await (0, import_platform4.translate)(_status.code, _status.params, "en", true);
30079
+ (0, import_platform3.addEventListener)(import_platform3.PlatformEvent, async (_event, _status) => {
30080
+ if (_status.severity === import_platform3.Severity.ERROR) {
30081
+ const label = await (0, import_platform3.translate)(_status.code, _status.params, "en", true);
30082
30082
  Analytics.handleError(new Error(label));
30083
30083
  }
30084
30084
  });
@@ -30232,7 +30232,7 @@ var require_proxy = __commonJS({
30232
30232
  freeze: () => freeze
30233
30233
  });
30234
30234
  module2.exports = __toCommonJS2(proxy_exports);
30235
- var import_platform4 = require_lib();
30235
+ var import_platform3 = require_lib();
30236
30236
  var PROXY_TARGET_KEY = "$___proxy_target";
30237
30237
  var PROXY_MIXIN_CLASS_KEY = "$__mixin";
30238
30238
  function _createMixinProxy(mixin, ancestorProxy) {
@@ -30259,10 +30259,10 @@ var require_proxy = __commonJS({
30259
30259
  return value3.map((it) => freeze(it));
30260
30260
  }
30261
30261
  if (value3 instanceof Map) {
30262
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Map is not allowed in model"));
30262
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Map is not allowed in model"));
30263
30263
  }
30264
30264
  if (value3 instanceof Set) {
30265
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Set is not allowed in model"));
30265
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Set is not allowed in model"));
30266
30266
  }
30267
30267
  return new Proxy(value3, _createFreezeProxy(value3));
30268
30268
  }
@@ -30276,16 +30276,16 @@ var require_proxy = __commonJS({
30276
30276
  return freeze(value3);
30277
30277
  },
30278
30278
  set(target, p, newValue, receiver) {
30279
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Modification is not allowed"));
30279
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Modification is not allowed"));
30280
30280
  },
30281
30281
  defineProperty(target, property2, attributes) {
30282
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Modification is not allowed"));
30282
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Modification is not allowed"));
30283
30283
  },
30284
30284
  deleteProperty(target, p) {
30285
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Modification is not allowed"));
30285
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Modification is not allowed"));
30286
30286
  },
30287
30287
  setPrototypeOf(target, v) {
30288
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)("Modification is not allowed"));
30288
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)("Modification is not allowed"));
30289
30289
  }
30290
30290
  };
30291
30291
  }
@@ -30343,7 +30343,7 @@ var require_objvalue = __commonJS({
30343
30343
  setObjectValue: () => setObjectValue
30344
30344
  });
30345
30345
  module2.exports = __toCommonJS2(objvalue_exports);
30346
- var import_platform4 = require_lib();
30346
+ var import_platform3 = require_lib();
30347
30347
  var import_clone2 = require_clone();
30348
30348
  var import_component = __toESM2(require_component());
30349
30349
  function getObjectValue(key, doc) {
@@ -30375,7 +30375,7 @@ var require_objvalue = __commonJS({
30375
30375
  let value3 = doc;
30376
30376
  for (const d of dots) {
30377
30377
  if (Array.isArray(value3) && isNestedArrayQuery(value3, d)) {
30378
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id: "dots" }));
30378
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id: "dots" }));
30379
30379
  }
30380
30380
  const lvalue = value3?.[d];
30381
30381
  if (lvalue === void 0) {
@@ -31996,7 +31996,7 @@ var require_utils2 = __commonJS({
31996
31996
  uniqueNotEmpty: () => uniqueNotEmpty
31997
31997
  });
31998
31998
  module2.exports = __toCommonJS2(utils_exports);
31999
- var import_platform4 = require_lib();
31999
+ var import_platform3 = require_lib();
32000
32000
  var import_fast_equals = require_cjs();
32001
32001
  var import_benchmark = require_benchmark();
32002
32002
  var import_classes = require_classes();
@@ -32360,13 +32360,13 @@ var require_utils2 = __commonJS({
32360
32360
  return typeof token === "string" && Object.values(e).includes(token);
32361
32361
  }, "isEnum");
32362
32362
  async function checkPermission(client, _id, _space, space) {
32363
- const arePermissionsDisabled = (0, import_platform4.getMetadata)(import_component.default.metadata.DisablePermissions) ?? false;
32363
+ const arePermissionsDisabled = (0, import_platform3.getMetadata)(import_component.default.metadata.DisablePermissions) ?? false;
32364
32364
  if (arePermissionsDisabled) return true;
32365
32365
  return await hasPermission(client, _id, _space, space);
32366
32366
  }
32367
32367
  __name(checkPermission, "checkPermission");
32368
32368
  async function checkForbiddenPermission(client, _id, _space, space) {
32369
- const arePermissionsDisabled = (0, import_platform4.getMetadata)(import_component.default.metadata.DisablePermissions) ?? false;
32369
+ const arePermissionsDisabled = (0, import_platform3.getMetadata)(import_component.default.metadata.DisablePermissions) ?? false;
32370
32370
  if (arePermissionsDisabled) return false;
32371
32371
  return await hasPermission(client, _id, _space, space);
32372
32372
  }
@@ -32389,7 +32389,7 @@ var require_utils2 = __commonJS({
32389
32389
  }
32390
32390
  __name(hasPermission, "hasPermission");
32391
32391
  function getRoleAttributeLabel(roleName) {
32392
- return (0, import_platform4.getEmbeddedLabel)(`Role: ${roleName.trim()}`);
32392
+ return (0, import_platform3.getEmbeddedLabel)(`Role: ${roleName.trim()}`);
32393
32393
  }
32394
32394
  __name(getRoleAttributeLabel, "getRoleAttributeLabel");
32395
32395
  function getFullTextIndexableAttributes(hierarchy, clazz, skipDocs = false) {
@@ -33781,7 +33781,7 @@ var require_memdb = __commonJS({
33781
33781
  TxDb: () => TxDb
33782
33782
  });
33783
33783
  module2.exports = __toCommonJS2(memdb_exports);
33784
- var import_platform4 = require_lib();
33784
+ var import_platform3 = require_lib();
33785
33785
  var import__ = require_lib5();
33786
33786
  var import_component = __toESM2(require_component());
33787
33787
  var import_query = require_query();
@@ -33829,7 +33829,7 @@ var require_memdb = __commonJS({
33829
33829
  getObject(_id) {
33830
33830
  const doc = this.objectById.get(_id);
33831
33831
  if (doc === void 0) {
33832
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id }));
33832
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id }));
33833
33833
  }
33834
33834
  return doc;
33835
33835
  }
@@ -33974,7 +33974,7 @@ var require_memdb = __commonJS({
33974
33974
  delDoc(_id) {
33975
33975
  const doc = this.objectById.get(_id);
33976
33976
  if (doc === void 0) {
33977
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id }));
33977
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_component.default.status.ObjectNotFound, { _id }));
33978
33978
  }
33979
33979
  this.objectById.delete(_id);
33980
33980
  this.hierarchy.getAncestors(doc._class).forEach((_class) => {
@@ -35508,7 +35508,7 @@ var require_client3 = __commonJS({
35508
35508
  });
35509
35509
  module2.exports = __toCommonJS2(client_exports);
35510
35510
  var import_core105 = require_lib5();
35511
- var import_platform4 = __toESM2(require_lib());
35511
+ var import_platform3 = __toESM2(require_lib());
35512
35512
  var import_utils14 = require_utils3();
35513
35513
  function getClient(accountsUrl, token, retryTimeoutMs) {
35514
35514
  if (accountsUrl === void 0) {
@@ -35563,13 +35563,13 @@ var require_client3 = __commonJS({
35563
35563
  });
35564
35564
  const result = await response.json();
35565
35565
  if (result.error != null) {
35566
- throw new import_platform4.PlatformError(result.error);
35566
+ throw new import_platform3.PlatformError(result.error);
35567
35567
  }
35568
35568
  return result.result;
35569
35569
  }
35570
35570
  flattenStatus(ws) {
35571
35571
  if (ws === void 0) {
35572
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_platform4.default.status.WorkspaceNotFound, {}));
35572
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_platform3.default.status.WorkspaceNotFound, {}));
35573
35573
  }
35574
35574
  const status = ws.status;
35575
35575
  if (status === void 0) {
@@ -36203,7 +36203,7 @@ var require_client3 = __commonJS({
36203
36203
  if (!response.ok) {
36204
36204
  const result = await response.json();
36205
36205
  if (result.error != null) {
36206
- throw new import_platform4.PlatformError(result.error);
36206
+ throw new import_platform3.PlatformError(result.error);
36207
36207
  }
36208
36208
  }
36209
36209
  }
@@ -36213,7 +36213,7 @@ var require_client3 = __commonJS({
36213
36213
  if (!response.ok) {
36214
36214
  const result = await response.json();
36215
36215
  if (result.error != null) {
36216
- throw new import_platform4.PlatformError(result.error);
36216
+ throw new import_platform3.PlatformError(result.error);
36217
36217
  }
36218
36218
  }
36219
36219
  }
@@ -36431,7 +36431,7 @@ var require_lib7 = __commonJS({
36431
36431
  pongConst: () => pongConst
36432
36432
  });
36433
36433
  module2.exports = __toCommonJS2(index_exports2);
36434
- var import_platform4 = require_lib();
36434
+ var import_platform3 = require_lib();
36435
36435
  var clientId = "client";
36436
36436
  var ClientSocketReadyState = /* @__PURE__ */ ((ClientSocketReadyState2) => {
36437
36437
  ClientSocketReadyState2[ClientSocketReadyState2["CONNECTING"] = 0] = "CONNECTING";
@@ -36442,7 +36442,7 @@ var require_lib7 = __commonJS({
36442
36442
  })(ClientSocketReadyState || {});
36443
36443
  var pingConst = "ping";
36444
36444
  var pongConst = "pong!";
36445
- var index_default = (0, import_platform4.plugin)(clientId, {
36445
+ var index_default = (0, import_platform3.plugin)(clientId, {
36446
36446
  metadata: {
36447
36447
  ClientSocketFactory: "",
36448
36448
  FilterModel: "",
@@ -37127,16 +37127,16 @@ var require_dist2 = __commonJS({
37127
37127
  }, {
37128
37128
  key: "textBetween",
37129
37129
  value: function textBetween(from, to, blockSeparator, leafText) {
37130
- var text = "", first2 = true;
37130
+ var text2 = "", first2 = true;
37131
37131
  this.nodesBetween(from, to, function(node, pos) {
37132
37132
  var nodeText = node.isText ? node.text.slice(Math.max(from, pos) - pos, to - pos) : !node.isLeaf ? "" : leafText ? typeof leafText === "function" ? leafText(node) : leafText : node.type.spec.leafText ? node.type.spec.leafText(node) : "";
37133
37133
  if (node.isBlock && (node.isLeaf && nodeText || node.isTextblock) && blockSeparator) {
37134
37134
  if (first2) first2 = false;
37135
- else text += blockSeparator;
37135
+ else text2 += blockSeparator;
37136
37136
  }
37137
- text += nodeText;
37137
+ text2 += nodeText;
37138
37138
  }, 0);
37139
- return text;
37139
+ return text2;
37140
37140
  }
37141
37141
  }, {
37142
37142
  key: "append",
@@ -38210,9 +38210,9 @@ var require_dist2 = __commonJS({
38210
38210
  }
38211
38211
  }, {
38212
38212
  key: "withText",
38213
- value: function withText(text) {
38214
- if (text == this.text) return this;
38215
- return new TextNode2(this.type, this.attrs, text, this.marks);
38213
+ value: function withText(text2) {
38214
+ if (text2 == this.text) return this;
38215
+ return new TextNode2(this.type, this.attrs, text2, this.marks);
38216
38216
  }
38217
38217
  }, {
38218
38218
  key: "cut",
@@ -38951,7 +38951,7 @@ var require_dist2 = __commonJS({
38951
38951
  }
38952
38952
  }, {
38953
38953
  key: "text",
38954
- value: function text(_text, marks) {
38954
+ value: function text2(_text, marks) {
38955
38955
  var type = this.nodes.text;
38956
38956
  return new TextNode(type, type.defaultAttrs, _text, Mark.setFrom(marks));
38957
38957
  }
@@ -39195,9 +39195,9 @@ var require_dist2 = __commonJS({
39195
39195
  if (!(this.options & OPT_PRESERVE_WS)) {
39196
39196
  var last4 = this.content[this.content.length - 1], m;
39197
39197
  if (last4 && last4.isText && (m = /[ \t\r\n\u000c]+$/.exec(last4.text))) {
39198
- var text = last4;
39198
+ var text2 = last4;
39199
39199
  if (last4.text.length == m[0].length) this.content.pop();
39200
- else this.content[this.content.length - 1] = text.withText(text.text.slice(0, text.text.length - m[0].length));
39200
+ else this.content[this.content.length - 1] = text2.withText(text2.text.slice(0, text2.text.length - m[0].length));
39201
39201
  }
39202
39202
  }
39203
39203
  var content = Fragment.from(this.content);
@@ -42311,14 +42311,14 @@ var require_dist4 = __commonJS({
42311
42311
  }
42312
42312
  };
42313
42313
  function findSelectionIn(doc, node, pos, index, dir) {
42314
- var text = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
42314
+ var text2 = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
42315
42315
  if (node.inlineContent) return TextSelection.create(doc, pos);
42316
42316
  for (var i = index - (dir > 0 ? 0 : 1); dir > 0 ? i < node.childCount : i >= 0; i += dir) {
42317
42317
  var child = node.child(i);
42318
42318
  if (!child.isAtom) {
42319
- var inner = findSelectionIn(doc, child, pos + dir, dir < 0 ? child.childCount : 0, dir, text);
42319
+ var inner = findSelectionIn(doc, child, pos + dir, dir < 0 ? child.childCount : 0, dir, text2);
42320
42320
  if (inner) return inner;
42321
- } else if (!text && NodeSelection.isSelectable(child)) {
42321
+ } else if (!text2 && NodeSelection.isSelectable(child)) {
42322
42322
  return NodeSelection.create(doc, pos - (dir < 0 ? child.nodeSize : 0));
42323
42323
  }
42324
42324
  pos += child.nodeSize * dir;
@@ -42442,21 +42442,21 @@ var require_dist4 = __commonJS({
42442
42442
  }
42443
42443
  }, {
42444
42444
  key: "insertText",
42445
- value: function insertText(text, from, to) {
42445
+ value: function insertText(text2, from, to) {
42446
42446
  var schema = this.doc.type.schema;
42447
42447
  if (from == null) {
42448
- if (!text) return this.deleteSelection();
42449
- return this.replaceSelectionWith(schema.text(text), true);
42448
+ if (!text2) return this.deleteSelection();
42449
+ return this.replaceSelectionWith(schema.text(text2), true);
42450
42450
  } else {
42451
42451
  if (to == null) to = from;
42452
- if (!text) return this.deleteRange(from, to);
42452
+ if (!text2) return this.deleteRange(from, to);
42453
42453
  var marks = this.storedMarks;
42454
42454
  if (!marks) {
42455
42455
  var $from = this.doc.resolve(from);
42456
42456
  marks = to == from ? $from.marks() : $from.marksAcross(this.doc.resolve(to));
42457
42457
  }
42458
- this.replaceRangeWith(from, to, schema.text(text, marks));
42459
- if (!this.selection.empty && this.selection.to == from + text.length) this.setSelection(Selection.near(this.selection.$to));
42458
+ this.replaceRangeWith(from, to, schema.text(text2, marks));
42459
+ if (!this.selection.empty && this.selection.to == from + text2.length) this.setSelection(Selection.near(this.selection.$to));
42460
42460
  return this;
42461
42461
  }
42462
42462
  }
@@ -44004,7 +44004,7 @@ var require_dist6 = __commonJS({
44004
44004
  }
44005
44005
  }, {
44006
44006
  key: "isText",
44007
- value: function isText(text) {
44007
+ value: function isText(text2) {
44008
44008
  return false;
44009
44009
  }
44010
44010
  }]);
@@ -44086,12 +44086,12 @@ var require_dist6 = __commonJS({
44086
44086
  var CompositionViewDesc = (function(_ViewDesc2) {
44087
44087
  _inherits(CompositionViewDesc2, _ViewDesc2);
44088
44088
  var _super2 = _createSuper(CompositionViewDesc2);
44089
- function CompositionViewDesc2(parent, dom, textDOM, text) {
44089
+ function CompositionViewDesc2(parent, dom, textDOM, text2) {
44090
44090
  var _this2;
44091
44091
  _classCallCheck(this, CompositionViewDesc2);
44092
44092
  _this2 = _super2.call(this, parent, [], dom, null);
44093
44093
  _this2.textDOM = textDOM;
44094
- _this2.text = text;
44094
+ _this2.text = text2;
44095
44095
  return _this2;
44096
44096
  }
44097
44097
  _createClass(CompositionViewDesc2, [{
@@ -44290,12 +44290,12 @@ var require_dist6 = __commonJS({
44290
44290
  var textNode = view2.input.compositionNode;
44291
44291
  if (!textNode || !this.dom.contains(textNode.parentNode)) return null;
44292
44292
  if (this.node.inlineContent) {
44293
- var text = textNode.nodeValue;
44294
- var textPos = findTextInFragment(this.node.content, text, from - pos, to - pos);
44293
+ var text2 = textNode.nodeValue;
44294
+ var textPos = findTextInFragment(this.node.content, text2, from - pos, to - pos);
44295
44295
  return textPos < 0 ? null : {
44296
44296
  node: textNode,
44297
44297
  pos: textPos,
44298
- text
44298
+ text: text2
44299
44299
  };
44300
44300
  } else {
44301
44301
  return {
@@ -44308,7 +44308,7 @@ var require_dist6 = __commonJS({
44308
44308
  }, {
44309
44309
  key: "protectLocalComposition",
44310
44310
  value: function protectLocalComposition(view2, _ref2) {
44311
- var node = _ref2.node, pos = _ref2.pos, text = _ref2.text;
44311
+ var node = _ref2.node, pos = _ref2.pos, text2 = _ref2.text;
44312
44312
  if (this.getDesc(node)) return;
44313
44313
  var topNode = node;
44314
44314
  for (; ; topNode = topNode.parentNode) {
@@ -44317,9 +44317,9 @@ var require_dist6 = __commonJS({
44317
44317
  while (topNode.nextSibling) topNode.parentNode.removeChild(topNode.nextSibling);
44318
44318
  if (topNode.pmViewDesc) topNode.pmViewDesc = void 0;
44319
44319
  }
44320
- var desc = new CompositionViewDesc(this, topNode, node, text);
44320
+ var desc = new CompositionViewDesc(this, topNode, node, text2);
44321
44321
  view2.input.compositionNodes.push(desc);
44322
- this.children = replaceNodes(this.children, pos, pos + text.length, view2, desc);
44322
+ this.children = replaceNodes(this.children, pos, pos + text2.length, view2, desc);
44323
44323
  }
44324
44324
  }, {
44325
44325
  key: "update",
@@ -44481,8 +44481,8 @@ var require_dist6 = __commonJS({
44481
44481
  }
44482
44482
  }, {
44483
44483
  key: "isText",
44484
- value: function isText(text) {
44485
- return this.node.text == text;
44484
+ value: function isText(text2) {
44485
+ return this.node.text == text2;
44486
44486
  }
44487
44487
  }]);
44488
44488
  return TextViewDesc2;
@@ -45011,7 +45011,7 @@ var require_dist6 = __commonJS({
45011
45011
  dom.style.cssText = oldCSS;
45012
45012
  }
45013
45013
  }
45014
- function findTextInFragment(frag, text, from, to) {
45014
+ function findTextInFragment(frag, text2, from, to) {
45015
45015
  for (var i = 0, pos = 0; i < frag.childCount && pos <= to; ) {
45016
45016
  var child = frag.child(i++), childStart = pos;
45017
45017
  pos += child.nodeSize;
@@ -45024,10 +45024,10 @@ var require_dist6 = __commonJS({
45024
45024
  str += next4.text;
45025
45025
  }
45026
45026
  if (pos >= from) {
45027
- if (pos >= to && str.slice(to - text.length - childStart, to - childStart) == text) return to - text.length;
45028
- var found = childStart < to ? str.lastIndexOf(text, to - childStart - 1) : -1;
45029
- if (found >= 0 && found + text.length + childStart >= from) return childStart + found;
45030
- if (from == to && str.length >= to + text.length - childStart && str.slice(to - childStart, to - childStart + text.length) == text) return to;
45027
+ if (pos >= to && str.slice(to - text2.length - childStart, to - childStart) == text2) return to - text2.length;
45028
+ var found = childStart < to ? str.lastIndexOf(text2, to - childStart - 1) : -1;
45029
+ if (found >= 0 && found + text2.length + childStart >= from) return childStart + found;
45030
+ if (from == to && str.length >= to + text2.length - childStart && str.slice(to - childStart, to - childStart + text2.length) == text2) return to;
45031
45031
  }
45032
45032
  }
45033
45033
  return -1;
@@ -45540,33 +45540,33 @@ var require_dist6 = __commonJS({
45540
45540
  firstChild = wrap.firstChild;
45541
45541
  }
45542
45542
  if (firstChild && firstChild.nodeType == 1) firstChild.setAttribute("data-pm-slice", "".concat(openStart, " ").concat(openEnd).concat(wrappers ? " -".concat(wrappers) : "", " ").concat(JSON.stringify(context6)));
45543
- var text = view2.someProp("clipboardTextSerializer", function(f) {
45543
+ var text2 = view2.someProp("clipboardTextSerializer", function(f) {
45544
45544
  return f(slice, view2);
45545
45545
  }) || slice.content.textBetween(0, slice.content.size, "\n\n");
45546
45546
  return {
45547
45547
  dom: wrap,
45548
- text,
45548
+ text: text2,
45549
45549
  slice
45550
45550
  };
45551
45551
  }
45552
- function parseFromClipboard(view2, text, html, plainText, $context) {
45552
+ function parseFromClipboard(view2, text2, html, plainText, $context) {
45553
45553
  var inCode = $context.parent.type.spec.code;
45554
45554
  var dom, slice;
45555
- if (!html && !text) return null;
45556
- var asText = !!text && (plainText || inCode || !html);
45555
+ if (!html && !text2) return null;
45556
+ var asText = !!text2 && (plainText || inCode || !html);
45557
45557
  if (asText) {
45558
45558
  view2.someProp("transformPastedText", function(f) {
45559
- text = f(text, inCode || plainText, view2);
45559
+ text2 = f(text2, inCode || plainText, view2);
45560
45560
  });
45561
45561
  if (inCode) {
45562
- slice = new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(view2.state.schema.text(text.replace(/\r\n?/g, "\n"))), 0, 0);
45562
+ slice = new prosemirrorModel.Slice(prosemirrorModel.Fragment.from(view2.state.schema.text(text2.replace(/\r\n?/g, "\n"))), 0, 0);
45563
45563
  view2.someProp("transformPasted", function(f) {
45564
45564
  slice = f(slice, view2, true);
45565
45565
  });
45566
45566
  return slice;
45567
45567
  }
45568
45568
  var parsed = view2.someProp("clipboardTextParser", function(f) {
45569
- return f(text, $context, plainText, view2);
45569
+ return f(text2, $context, plainText, view2);
45570
45570
  });
45571
45571
  if (parsed) {
45572
45572
  slice = parsed;
@@ -45574,7 +45574,7 @@ var require_dist6 = __commonJS({
45574
45574
  var marks = $context.marks();
45575
45575
  var schema = view2.state.schema, serializer = prosemirrorModel.DOMSerializer.fromSchema(schema);
45576
45576
  dom = document.createElement("div");
45577
- text.split(/(?:\r\n?|\n)+/).forEach(function(block) {
45577
+ text2.split(/(?:\r\n?|\n)+/).forEach(function(block) {
45578
45578
  var p = dom.appendChild(document.createElement("p"));
45579
45579
  if (block) p.appendChild(serializer.serializeNode(schema.text(block, marks)));
45580
45580
  });
@@ -45880,12 +45880,12 @@ var require_dist6 = __commonJS({
45880
45880
  }
45881
45881
  var sel = view2.state.selection;
45882
45882
  if (!(sel instanceof prosemirrorState.TextSelection) || !sel.$from.sameParent(sel.$to)) {
45883
- var text = String.fromCharCode(event.charCode);
45883
+ var text2 = String.fromCharCode(event.charCode);
45884
45884
  var deflt = function deflt2() {
45885
- return view2.state.tr.insertText(text).scrollIntoView();
45885
+ return view2.state.tr.insertText(text2).scrollIntoView();
45886
45886
  };
45887
- if (!/[\r\n]/.test(text) && !view2.someProp("handleTextInput", function(f) {
45888
- return f(view2, sel.$from.pos, sel.$to.pos, text, deflt);
45887
+ if (!/[\r\n]/.test(text2) && !view2.someProp("handleTextInput", function(f) {
45888
+ return f(view2, sel.$from.pos, sel.$to.pos, text2, deflt);
45889
45889
  })) view2.dispatch(deflt());
45890
45890
  event.preventDefault();
45891
45891
  }
@@ -46256,12 +46256,12 @@ var require_dist6 = __commonJS({
46256
46256
  var sel = view2.state.selection, cut = event.type == "cut";
46257
46257
  if (sel.empty) return;
46258
46258
  var data = brokenClipboardAPI ? null : event.clipboardData;
46259
- var slice = sel.content(), _serializeForClipboar = _serializeForClipboard(view2, slice), dom = _serializeForClipboar.dom, text = _serializeForClipboar.text;
46259
+ var slice = sel.content(), _serializeForClipboar = _serializeForClipboard(view2, slice), dom = _serializeForClipboar.dom, text2 = _serializeForClipboar.text;
46260
46260
  if (data) {
46261
46261
  event.preventDefault();
46262
46262
  data.clearData();
46263
46263
  data.setData("text/html", dom.innerHTML);
46264
- data.setData("text/plain", text);
46264
+ data.setData("text/plain", text2);
46265
46265
  } else {
46266
46266
  captureCopy(view2, dom);
46267
46267
  }
@@ -46285,8 +46285,8 @@ var require_dist6 = __commonJS({
46285
46285
  else doPaste(view2, target.textContent, target.innerHTML, plain, event);
46286
46286
  }, 50);
46287
46287
  }
46288
- function doPaste(view2, text, html, preferPlain, event) {
46289
- var slice = parseFromClipboard(view2, text, html, preferPlain, view2.state.selection.$from);
46288
+ function doPaste(view2, text2, html, preferPlain, event) {
46289
+ var slice = parseFromClipboard(view2, text2, html, preferPlain, view2.state.selection.$from);
46290
46290
  if (view2.someProp("handlePaste", function(f) {
46291
46291
  return f(view2, event, slice || prosemirrorModel.Slice.empty);
46292
46292
  })) return true;
@@ -46297,8 +46297,8 @@ var require_dist6 = __commonJS({
46297
46297
  return true;
46298
46298
  }
46299
46299
  function getText(clipboardData) {
46300
- var text = clipboardData.getData("text/plain") || clipboardData.getData("Text");
46301
- if (text) return text;
46300
+ var text2 = clipboardData.getData("text/plain") || clipboardData.getData("Text");
46301
+ if (text2) return text2;
46302
46302
  var uris = clipboardData.getData("text/uri-list");
46303
46303
  return uris ? uris.replace(/\r?\n/g, " ") : "";
46304
46304
  }
@@ -46339,11 +46339,11 @@ var require_dist6 = __commonJS({
46339
46339
  if (desc && desc.node.type.spec.draggable && desc != view2.docView) node = prosemirrorState.NodeSelection.create(view2.state.doc, desc.posBefore);
46340
46340
  }
46341
46341
  var draggedSlice = (node || view2.state.selection).content();
46342
- var _serializeForClipboar2 = _serializeForClipboard(view2, draggedSlice), dom = _serializeForClipboar2.dom, text = _serializeForClipboar2.text, slice = _serializeForClipboar2.slice;
46342
+ var _serializeForClipboar2 = _serializeForClipboard(view2, draggedSlice), dom = _serializeForClipboar2.dom, text2 = _serializeForClipboar2.text, slice = _serializeForClipboar2.slice;
46343
46343
  if (!event.dataTransfer.files.length || !chrome || chrome_version > 120) event.dataTransfer.clearData();
46344
46344
  event.dataTransfer.setData(brokenClipboardAPI ? "Text" : "text/html", dom.innerHTML);
46345
46345
  event.dataTransfer.effectAllowed = "copyMove";
46346
- if (!brokenClipboardAPI) event.dataTransfer.setData("text/plain", text);
46346
+ if (!brokenClipboardAPI) event.dataTransfer.setData("text/plain", text2);
46347
46347
  view2.dragging = new Dragging(slice, dragMoves(view2, event), node);
46348
46348
  };
46349
46349
  handlers.dragend = function(view2) {
@@ -47652,12 +47652,12 @@ var require_dist6 = __commonJS({
47652
47652
  else _tr3.removeMark(chFrom, chTo, markChange.mark);
47653
47653
  view2.dispatch(_tr3);
47654
47654
  } else if ($from.parent.child($from.index()).isText && $from.index() == $to.index() - ($to.textOffset ? 0 : 1)) {
47655
- var text = $from.parent.textBetween($from.parentOffset, $to.parentOffset);
47655
+ var text2 = $from.parent.textBetween($from.parentOffset, $to.parentOffset);
47656
47656
  var deflt = function deflt2() {
47657
- return mkTr(view2.state.tr.insertText(text, chFrom, chTo));
47657
+ return mkTr(view2.state.tr.insertText(text2, chFrom, chTo));
47658
47658
  };
47659
47659
  if (!view2.someProp("handleTextInput", function(f) {
47660
- return f(view2, chFrom, chTo, text, deflt);
47660
+ return f(view2, chFrom, chTo, text2, deflt);
47661
47661
  })) view2.dispatch(deflt());
47662
47662
  } else {
47663
47663
  view2.dispatch(mkTr());
@@ -48063,8 +48063,8 @@ var require_dist6 = __commonJS({
48063
48063
  }
48064
48064
  }, {
48065
48065
  key: "pasteText",
48066
- value: function pasteText(text, event) {
48067
- return doPaste(this, text, null, true, event || new ClipboardEvent("paste"));
48066
+ value: function pasteText(text2, event) {
48067
+ return doPaste(this, text2, null, true, event || new ClipboardEvent("paste"));
48068
48068
  }
48069
48069
  }, {
48070
48070
  key: "serializeForClipboard",
@@ -49881,17 +49881,17 @@ var require_dist16 = __commonJS({
49881
49881
  this.handler = config3.handler;
49882
49882
  }
49883
49883
  };
49884
- var inputRuleMatcherHandler = (text, find3) => {
49884
+ var inputRuleMatcherHandler = (text2, find3) => {
49885
49885
  if (isRegExp2(find3)) {
49886
- return find3.exec(text);
49886
+ return find3.exec(text2);
49887
49887
  }
49888
- const inputRuleMatch = find3(text);
49888
+ const inputRuleMatch = find3(text2);
49889
49889
  if (!inputRuleMatch) {
49890
49890
  return null;
49891
49891
  }
49892
49892
  const result = [inputRuleMatch.text];
49893
49893
  result.index = inputRuleMatch.index;
49894
- result.input = text;
49894
+ result.input = text2;
49895
49895
  result.data = inputRuleMatch.data;
49896
49896
  if (inputRuleMatch.replaceWith) {
49897
49897
  if (!inputRuleMatch.text.includes(inputRuleMatch.replaceWith)) {
@@ -49903,7 +49903,7 @@ var require_dist16 = __commonJS({
49903
49903
  };
49904
49904
  function run$1(config3) {
49905
49905
  var _a2;
49906
- const { editor, from, to, text, rules, plugin: plugin2 } = config3;
49906
+ const { editor, from, to, text: text2, rules, plugin: plugin2 } = config3;
49907
49907
  const { view: view3 } = editor;
49908
49908
  if (view3.composing) {
49909
49909
  return false;
@@ -49916,7 +49916,7 @@ var require_dist16 = __commonJS({
49916
49916
  return false;
49917
49917
  }
49918
49918
  let matched = false;
49919
- const textBefore = getTextContentFromNodes($from) + text;
49919
+ const textBefore = getTextContentFromNodes($from) + text2;
49920
49920
  rules.forEach((rule) => {
49921
49921
  if (matched) {
49922
49922
  return;
@@ -49931,7 +49931,7 @@ var require_dist16 = __commonJS({
49931
49931
  transaction: tr
49932
49932
  });
49933
49933
  const range3 = {
49934
- from: from - (match16[0].length - text.length),
49934
+ from: from - (match16[0].length - text2.length),
49935
49935
  to
49936
49936
  };
49937
49937
  const { commands: commands3, chain, can } = new CommandManager({
@@ -49953,7 +49953,7 @@ var require_dist16 = __commonJS({
49953
49953
  transform: tr,
49954
49954
  from,
49955
49955
  to,
49956
- text
49956
+ text: text2
49957
49957
  });
49958
49958
  view3.dispatch(tr);
49959
49959
  matched = true;
@@ -49976,19 +49976,19 @@ var require_dist16 = __commonJS({
49976
49976
  const isSimulatedInput = !!simulatedInputMeta;
49977
49977
  if (isSimulatedInput) {
49978
49978
  setTimeout(() => {
49979
- let { text } = simulatedInputMeta;
49980
- if (typeof text === "string") {
49981
- text = text;
49979
+ let { text: text2 } = simulatedInputMeta;
49980
+ if (typeof text2 === "string") {
49981
+ text2 = text2;
49982
49982
  } else {
49983
- text = getHTMLFromFragment(model.Fragment.from(text), state2.schema);
49983
+ text2 = getHTMLFromFragment(model.Fragment.from(text2), state2.schema);
49984
49984
  }
49985
49985
  const { from } = simulatedInputMeta;
49986
- const to = from + text.length;
49986
+ const to = from + text2.length;
49987
49987
  run$1({
49988
49988
  editor,
49989
49989
  from,
49990
49990
  to,
49991
- text,
49991
+ text: text2,
49992
49992
  rules,
49993
49993
  plugin: plugin2
49994
49994
  });
@@ -49998,12 +49998,12 @@ var require_dist16 = __commonJS({
49998
49998
  }
49999
49999
  },
50000
50000
  props: {
50001
- handleTextInput(view3, from, to, text) {
50001
+ handleTextInput(view3, from, to, text2) {
50002
50002
  return run$1({
50003
50003
  editor,
50004
50004
  from,
50005
50005
  to,
50006
- text,
50006
+ text: text2,
50007
50007
  rules,
50008
50008
  plugin: plugin2
50009
50009
  });
@@ -50163,18 +50163,18 @@ var require_dist16 = __commonJS({
50163
50163
  this.handler = config3.handler;
50164
50164
  }
50165
50165
  };
50166
- var pasteRuleMatcherHandler = (text, find3, event) => {
50166
+ var pasteRuleMatcherHandler = (text2, find3, event) => {
50167
50167
  if (isRegExp2(find3)) {
50168
- return [...text.matchAll(find3)];
50168
+ return [...text2.matchAll(find3)];
50169
50169
  }
50170
- const matches = find3(text, event);
50170
+ const matches = find3(text2, event);
50171
50171
  if (!matches) {
50172
50172
  return [];
50173
50173
  }
50174
50174
  return matches.map((pasteRuleMatch) => {
50175
50175
  const result = [pasteRuleMatch.text];
50176
50176
  result.index = pasteRuleMatch.index;
50177
- result.input = text;
50177
+ result.input = text2;
50178
50178
  result.data = pasteRuleMatch.data;
50179
50179
  if (pasteRuleMatch.replaceWith) {
50180
50180
  if (!pasteRuleMatch.text.includes(pasteRuleMatch.replaceWith)) {
@@ -50227,12 +50227,12 @@ var require_dist16 = __commonJS({
50227
50227
  return success2;
50228
50228
  }
50229
50229
  var tiptapDragFromOtherEditor = null;
50230
- var createClipboardPasteEvent = (text) => {
50230
+ var createClipboardPasteEvent = (text2) => {
50231
50231
  var _a2;
50232
50232
  const event = new ClipboardEvent("paste", {
50233
50233
  clipboardData: new DataTransfer()
50234
50234
  });
50235
- (_a2 = event.clipboardData) === null || _a2 === void 0 ? void 0 : _a2.setData("text/html", text);
50235
+ (_a2 = event.clipboardData) === null || _a2 === void 0 ? void 0 : _a2.setData("text/html", text2);
50236
50236
  return event;
50237
50237
  };
50238
50238
  function pasteRulesPlugin(props) {
@@ -50335,15 +50335,15 @@ var require_dist16 = __commonJS({
50335
50335
  return;
50336
50336
  }
50337
50337
  if (isSimulatedPaste) {
50338
- let { text } = simulatedPasteMeta;
50339
- if (typeof text === "string") {
50340
- text = text;
50338
+ let { text: text2 } = simulatedPasteMeta;
50339
+ if (typeof text2 === "string") {
50340
+ text2 = text2;
50341
50341
  } else {
50342
- text = getHTMLFromFragment(model.Fragment.from(text), state2.schema);
50342
+ text2 = getHTMLFromFragment(model.Fragment.from(text2), state2.schema);
50343
50343
  }
50344
50344
  const { from: from2 } = simulatedPasteMeta;
50345
- const to2 = from2 + text.length;
50346
- const pasteEvt = createClipboardPasteEvent(text);
50345
+ const to2 = from2 + text2.length;
50346
+ const pasteEvt = createClipboardPasteEvent(text2);
50347
50347
  return processEvent({
50348
50348
  rule,
50349
50349
  state: state2,
@@ -50679,16 +50679,16 @@ var require_dist16 = __commonJS({
50679
50679
  function getTextBetween(startNode, range3, options) {
50680
50680
  const { from, to } = range3;
50681
50681
  const { blockSeparator = "\n\n", textSerializers = {} } = options || {};
50682
- let text = "";
50682
+ let text2 = "";
50683
50683
  startNode.nodesBetween(from, to, (node, pos, parent, index2) => {
50684
50684
  var _a2;
50685
50685
  if (node.isBlock && pos > from) {
50686
- text += blockSeparator;
50686
+ text2 += blockSeparator;
50687
50687
  }
50688
50688
  const textSerializer = textSerializers === null || textSerializers === void 0 ? void 0 : textSerializers[node.type.name];
50689
50689
  if (textSerializer) {
50690
50690
  if (parent) {
50691
- text += textSerializer({
50691
+ text2 += textSerializer({
50692
50692
  node,
50693
50693
  pos,
50694
50694
  parent,
@@ -50699,10 +50699,10 @@ var require_dist16 = __commonJS({
50699
50699
  return false;
50700
50700
  }
50701
50701
  if (node.isText) {
50702
- text += (_a2 = node === null || node === void 0 ? void 0 : node.text) === null || _a2 === void 0 ? void 0 : _a2.slice(Math.max(from, pos) - pos, to - pos);
50702
+ text2 += (_a2 = node === null || node === void 0 ? void 0 : node.text) === null || _a2 === void 0 ? void 0 : _a2.slice(Math.max(from, pos) - pos, to - pos);
50703
50703
  }
50704
50704
  });
50705
- return text;
50705
+ return text2;
50706
50706
  }
50707
50707
  function getTextSerializersFromSchema(schema) {
50708
50708
  return Object.fromEntries(Object.entries(schema.nodes).filter(([, node]) => node.spec.toText).map(([name, node]) => [name, node.spec.toText]));
@@ -51203,13 +51203,13 @@ var require_dist16 = __commonJS({
51203
51203
  if (Array.isArray(value3)) {
51204
51204
  newContent = value3.map((v) => v.text || "").join("");
51205
51205
  } else if (value3 instanceof model.Fragment) {
51206
- let text = "";
51206
+ let text2 = "";
51207
51207
  value3.forEach((node) => {
51208
51208
  if (node.text) {
51209
- text += node.text;
51209
+ text2 += node.text;
51210
51210
  }
51211
51211
  });
51212
- newContent = text;
51212
+ newContent = text2;
51213
51213
  } else if (typeof value3 === "object" && !!value3 && !!value3.text) {
51214
51214
  newContent = value3.text;
51215
51215
  } else {
@@ -55005,15 +55005,15 @@ var require_dist19 = __commonJS({
55005
55005
  if (this.editor.isActive(this.type.name)) {
55006
55006
  return false;
55007
55007
  }
55008
- const text = event.clipboardData.getData("text/plain");
55008
+ const text2 = event.clipboardData.getData("text/plain");
55009
55009
  const vscode = event.clipboardData.getData("vscode-editor-data");
55010
55010
  const vscodeData = vscode ? JSON.parse(vscode) : void 0;
55011
55011
  const language = vscodeData === null || vscodeData === void 0 ? void 0 : vscodeData.mode;
55012
- if (!text || !language) {
55012
+ if (!text2 || !language) {
55013
55013
  return false;
55014
55014
  }
55015
55015
  const { tr, schema } = view2.state;
55016
- const textNode = schema.text(text.replace(/\r\n?/g, "\n"));
55016
+ const textNode = schema.text(text2.replace(/\r\n?/g, "\n"));
55017
55017
  tr.replaceSelectionWith(this.type.create({ language }, textNode));
55018
55018
  if (tr.selection.$from.parent.type !== this.type) {
55019
55019
  tr.setSelection(state.TextSelection.near(tr.doc.resolve(Math.max(0, tr.selection.from - 2))));
@@ -59061,11 +59061,11 @@ var require_dist41 = __commonJS({
59061
59061
  addPasteRules() {
59062
59062
  return [
59063
59063
  core2.markPasteRule({
59064
- find: (text) => {
59064
+ find: (text2) => {
59065
59065
  const foundLinks = [];
59066
- if (text) {
59066
+ if (text2) {
59067
59067
  const { protocols, defaultProtocol } = this.options;
59068
- const links = linkifyjs.find(text).filter((item) => item.isLink && this.options.isAllowedUri(item.value, {
59068
+ const links = linkifyjs.find(text2).filter((item) => item.isLink && this.options.isAllowedUri(item.value, {
59069
59069
  defaultValidate: (href) => !!isAllowedUri(href, protocols),
59070
59070
  protocols,
59071
59071
  defaultProtocol
@@ -62802,7 +62802,7 @@ var require_inputRules = __commonJS({
62802
62802
  }
62803
62803
  var markBefore = {
62804
62804
  match: /`((?:[^`\w]|[\w])+)`$/,
62805
- handler: (markType, view2, text, match16, from, to, plugins) => {
62805
+ handler: (markType, view2, text2, match16, from, to, plugins) => {
62806
62806
  if (stopMatch(markType, view2, from, to))
62807
62807
  return false;
62808
62808
  const code = match16[1];
@@ -62814,7 +62814,7 @@ var require_inputRules = __commonJS({
62814
62814
  transform: selected,
62815
62815
  from,
62816
62816
  to,
62817
- text: `\`${code}${text}`
62817
+ text: `\`${code}${text2}`
62818
62818
  });
62819
62819
  view2.dispatch(withMeta);
62820
62820
  return true;
@@ -62822,7 +62822,7 @@ var require_inputRules = __commonJS({
62822
62822
  };
62823
62823
  var markAfter = {
62824
62824
  match: /^`((?:[^`\w]|[\w])+)`/,
62825
- handler: (markType, view2, text, match16, from, to, plugins) => {
62825
+ handler: (markType, view2, text2, match16, from, to, plugins) => {
62826
62826
  if (stopMatch(markType, view2, from, to))
62827
62827
  return false;
62828
62828
  const mark = markType.create();
@@ -62834,13 +62834,13 @@ var require_inputRules = __commonJS({
62834
62834
  transform: selected,
62835
62835
  from,
62836
62836
  to,
62837
- text: `\`${code}${text}`
62837
+ text: `\`${code}${text2}`
62838
62838
  });
62839
62839
  view2.dispatch(withMeta);
62840
62840
  return true;
62841
62841
  }
62842
62842
  };
62843
- function run3(markType, view2, from, to, text, plugins) {
62843
+ function run3(markType, view2, from, to, text2, plugins) {
62844
62844
  if (view2.composing)
62845
62845
  return false;
62846
62846
  const { state } = view2;
@@ -62848,17 +62848,17 @@ var require_inputRules = __commonJS({
62848
62848
  if ($from.parent.type.spec.code)
62849
62849
  return false;
62850
62850
  const leafText = "\uFFFC";
62851
- const textBefore = $from.parent.textBetween(Math.max(0, $from.parentOffset - utils_1.MAX_MATCH), $from.parentOffset, void 0, leafText) + text;
62852
- const textAfter = text + $from.parent.textBetween($from.parentOffset, Math.min($from.parent.nodeSize - 2, $from.parentOffset + utils_1.MAX_MATCH), void 0, leafText);
62851
+ const textBefore = $from.parent.textBetween(Math.max(0, $from.parentOffset - utils_1.MAX_MATCH), $from.parentOffset, void 0, leafText) + text2;
62852
+ const textAfter = text2 + $from.parent.textBetween($from.parentOffset, Math.min($from.parent.nodeSize - 2, $from.parentOffset + utils_1.MAX_MATCH), void 0, leafText);
62853
62853
  const matchB = markBefore.match.exec(textBefore);
62854
62854
  const matchA = markAfter.match.exec(textAfter);
62855
62855
  if (matchB) {
62856
- const handled = markBefore.handler(markType, view2, text, matchB, from - matchB[0].length + text.length, to, plugins);
62856
+ const handled = markBefore.handler(markType, view2, text2, matchB, from - matchB[0].length + text2.length, to, plugins);
62857
62857
  if (handled)
62858
62858
  return handled;
62859
62859
  }
62860
62860
  if (matchA)
62861
- return markAfter.handler(markType, view2, text, matchA, from, to + matchA[0].length - text.length, plugins);
62861
+ return markAfter.handler(markType, view2, text2, matchA, from, to + matchA[0].length - text2.length, plugins);
62862
62862
  return false;
62863
62863
  }
62864
62864
  function createInputRule(cursorPlugin, opts) {
@@ -62874,9 +62874,9 @@ var require_inputRules = __commonJS({
62874
62874
  }
62875
62875
  },
62876
62876
  props: {
62877
- handleTextInput(view2, from, to, text) {
62877
+ handleTextInput(view2, from, to, text2) {
62878
62878
  const markType = (0, utils_1.getMarkType)(view2, opts);
62879
- return run3(markType, view2, from, to, text, { input: plugin2, cursor: cursorPlugin });
62879
+ return run3(markType, view2, from, to, text2, { input: plugin2, cursor: cursorPlugin });
62880
62880
  }
62881
62881
  }
62882
62882
  });
@@ -63289,16 +63289,16 @@ var require_code = __commonJS({
63289
63289
  props: {
63290
63290
  // Typing a character inside of two backticks will wrap the character
63291
63291
  // in an inline code mark.
63292
- handleTextInput: /* @__PURE__ */ __name((view2, from, to, text) => {
63292
+ handleTextInput: /* @__PURE__ */ __name((view2, from, to, text2) => {
63293
63293
  const { state } = view2;
63294
- if (from === 0 || to === state.doc.nodeSize - 1 || text === "`") {
63294
+ if (from === 0 || to === state.doc.nodeSize - 1 || text2 === "`") {
63295
63295
  return false;
63296
63296
  }
63297
63297
  if (from === to && state.doc.textBetween(from - 1, from) === "`" && state.doc.textBetween(to, to + 1) === "`") {
63298
63298
  const start3 = from - 1;
63299
63299
  const end3 = to + 1;
63300
63300
  view2.dispatch(
63301
- state.tr.delete(start3, end3).insertText(text, start3).addMark(start3, start3 + text.length, state.schema.marks.code.create())
63301
+ state.tr.delete(start3, end3).insertText(text2, start3).addMark(start3, start3 + text2.length, state.schema.marks.code.create())
63302
63302
  );
63303
63303
  return true;
63304
63304
  }
@@ -63624,7 +63624,7 @@ var require_model = __commonJS({
63624
63624
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
63625
63625
  var model_exports = {};
63626
63626
  __export2(model_exports, {
63627
- MarkupMarkType: () => MarkupMarkType,
63627
+ MarkupMarkType: () => MarkupMarkType2,
63628
63628
  MarkupNodeType: () => MarkupNodeType2,
63629
63629
  emptyMarkupNode: () => emptyMarkupNode
63630
63630
  });
@@ -63660,17 +63660,17 @@ var require_model = __commonJS({
63660
63660
  MarkupNodeType22["embed"] = "embed";
63661
63661
  return MarkupNodeType22;
63662
63662
  })(MarkupNodeType2 || {});
63663
- var MarkupMarkType = /* @__PURE__ */ ((MarkupMarkType2) => {
63664
- MarkupMarkType2["link"] = "link";
63665
- MarkupMarkType2["em"] = "italic";
63666
- MarkupMarkType2["bold"] = "bold";
63667
- MarkupMarkType2["code"] = "code";
63668
- MarkupMarkType2["strike"] = "strike";
63669
- MarkupMarkType2["underline"] = "underline";
63670
- MarkupMarkType2["textColor"] = "textColor";
63671
- MarkupMarkType2["textStyle"] = "textStyle";
63672
- return MarkupMarkType2;
63673
- })(MarkupMarkType || {});
63663
+ var MarkupMarkType2 = /* @__PURE__ */ ((MarkupMarkType22) => {
63664
+ MarkupMarkType22["link"] = "link";
63665
+ MarkupMarkType22["em"] = "italic";
63666
+ MarkupMarkType22["bold"] = "bold";
63667
+ MarkupMarkType22["code"] = "code";
63668
+ MarkupMarkType22["strike"] = "strike";
63669
+ MarkupMarkType22["underline"] = "underline";
63670
+ MarkupMarkType22["textColor"] = "textColor";
63671
+ MarkupMarkType22["textStyle"] = "textStyle";
63672
+ return MarkupMarkType22;
63673
+ })(MarkupMarkType2 || {});
63674
63674
  function emptyMarkupNode() {
63675
63675
  return {
63676
63676
  type: "doc",
@@ -63727,8 +63727,8 @@ var require_dsl = __commonJS({
63727
63727
  return node(import_model.MarkupNodeType.paragraph, ...content);
63728
63728
  }
63729
63729
  __name(nodeParagraph, "nodeParagraph");
63730
- function nodeText(text) {
63731
- return { type: import_model.MarkupNodeType.text, text };
63730
+ function nodeText(text2) {
63731
+ return { type: import_model.MarkupNodeType.text, text: text2 };
63732
63732
  }
63733
63733
  __name(nodeText, "nodeText");
63734
63734
  function nodeImage(attrs) {
@@ -64247,8 +64247,8 @@ var require_utils7 = __commonJS({
64247
64247
  hashAttrs: () => hashAttrs,
64248
64248
  isEmptyMarkup: () => isEmptyMarkup,
64249
64249
  isEmptyNode: () => isEmptyNode2,
64250
- jsonToMarkup: () => jsonToMarkup3,
64251
- markupToJSON: () => markupToJSON4,
64250
+ jsonToMarkup: () => jsonToMarkup2,
64251
+ markupToJSON: () => markupToJSON3,
64252
64252
  markupToText: () => markupToText,
64253
64253
  stripHash: () => stripHash,
64254
64254
  stripTags: () => stripTags
@@ -64259,20 +64259,20 @@ var require_utils7 = __commonJS({
64259
64259
  var import_dsl = require_dsl();
64260
64260
  var import_model = require_model();
64261
64261
  var import_traverse = require_traverse();
64262
- var EmptyMarkup = jsonToMarkup3((0, import_model.emptyMarkupNode)());
64262
+ var EmptyMarkup = jsonToMarkup2((0, import_model.emptyMarkupNode)());
64263
64263
  function isEmptyMarkup(markup) {
64264
64264
  if (markup === void 0 || markup === null || markup === "") {
64265
64265
  return true;
64266
64266
  }
64267
- return isEmptyNode2(markupToJSON4(markup));
64267
+ return isEmptyNode2(markupToJSON3(markup));
64268
64268
  }
64269
64269
  __name(isEmptyMarkup, "isEmptyMarkup");
64270
64270
  function areEqualMarkups(markup1, markup2) {
64271
64271
  if (markup1 === markup2) {
64272
64272
  return true;
64273
64273
  }
64274
- const node1 = markupToJSON4(markup1);
64275
- const node2 = markupToJSON4(markup2);
64274
+ const node1 = markupToJSON3(markup1);
64275
+ const node2 = markupToJSON3(markup2);
64276
64276
  if (isEmptyNode2(node1) && isEmptyNode2(node2)) {
64277
64277
  return true;
64278
64278
  }
@@ -64330,11 +64330,11 @@ var require_utils7 = __commonJS({
64330
64330
  return content.every(isEmptyNode2);
64331
64331
  }
64332
64332
  __name(isEmptyNode2, "isEmptyNode");
64333
- function jsonToMarkup3(json3) {
64333
+ function jsonToMarkup2(json3) {
64334
64334
  return JSON.stringify(json3);
64335
64335
  }
64336
- __name(jsonToMarkup3, "jsonToMarkup");
64337
- function markupToJSON4(markup) {
64336
+ __name(jsonToMarkup2, "jsonToMarkup");
64337
+ function markupToJSON3(markup) {
64338
64338
  if (markup == null || markup === "") {
64339
64339
  return (0, import_model.emptyMarkupNode)();
64340
64340
  }
@@ -64352,24 +64352,24 @@ var require_utils7 = __commonJS({
64352
64352
  return (0, import_model.emptyMarkupNode)();
64353
64353
  }
64354
64354
  }
64355
- __name(markupToJSON4, "markupToJSON");
64355
+ __name(markupToJSON3, "markupToJSON");
64356
64356
  var ELLIPSIS_CHAR = "\u2026";
64357
64357
  var WHITESPACE = " ";
64358
64358
  function stripTags(markup, textLimit = 0) {
64359
- const parsed = markupToJSON4(markup);
64359
+ const parsed = markupToJSON3(markup);
64360
64360
  const textParts = [];
64361
64361
  let charCount = 0;
64362
64362
  let isHardStop = false;
64363
- const pushText = /* @__PURE__ */ __name((text) => {
64364
- if (textLimit > 0 && charCount + text.length > textLimit) {
64363
+ const pushText = /* @__PURE__ */ __name((text2) => {
64364
+ if (textLimit > 0 && charCount + text2.length > textLimit) {
64365
64365
  const toAddCount = textLimit - charCount;
64366
- const textPart = text.substring(0, toAddCount);
64366
+ const textPart = text2.substring(0, toAddCount);
64367
64367
  textParts.push(textPart);
64368
64368
  textParts.push(ELLIPSIS_CHAR);
64369
64369
  isHardStop = true;
64370
64370
  } else {
64371
- textParts.push(text);
64372
- charCount += text.length;
64371
+ textParts.push(text2);
64372
+ charCount += text2.length;
64373
64373
  }
64374
64374
  }, "pushText");
64375
64375
  (0, import_traverse.traverseNode)(parsed, (node, parent) => {
@@ -64377,8 +64377,8 @@ var require_utils7 = __commonJS({
64377
64377
  return false;
64378
64378
  }
64379
64379
  if (node.type === import_model.MarkupNodeType.text) {
64380
- const text = node.text ?? "";
64381
- pushText(text);
64380
+ const text2 = node.text ?? "";
64381
+ pushText(text2);
64382
64382
  return false;
64383
64383
  } else if (node.type === import_model.MarkupNodeType.paragraph || node.type === import_model.MarkupNodeType.table || node.type === import_model.MarkupNodeType.doc || node.type === import_model.MarkupNodeType.blockquote) {
64384
64384
  if (textParts.length > 0 && textParts[textParts.length - 1] !== WHITESPACE) {
@@ -64396,13 +64396,13 @@ var require_utils7 = __commonJS({
64396
64396
  }
64397
64397
  __name(stripTags, "stripTags");
64398
64398
  function markupToText(markup) {
64399
- const jsonModel = markupToJSON4(markup);
64399
+ const jsonModel = markupToJSON3(markup);
64400
64400
  const fragments = [];
64401
64401
  (0, import_traverse.traverseNode)(jsonModel, (node) => {
64402
64402
  if (node.type === import_model.MarkupNodeType.text) {
64403
- const text = node.text ?? "";
64403
+ const text2 = node.text ?? "";
64404
64404
  if (node.text !== void 0 && node.text.length > 0) {
64405
- fragments.push(text);
64405
+ fragments.push(text2);
64406
64406
  }
64407
64407
  } else if (node.type === import_model.MarkupNodeType.paragraph) {
64408
64408
  fragments.push("\n\n");
@@ -65834,8 +65834,8 @@ var require_index_browser = __commonJS({
65834
65834
  });
65835
65835
  module2.exports = __toCommonJS2(index_browser_exports);
65836
65836
  var import_entities = require_commonjs();
65837
- function escapeHTML(text) {
65838
- return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/\xA0/g, "&nbsp;").replace(/\xAD/g, "&shy;");
65837
+ function escapeHTML(text2) {
65838
+ return text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/'/g, "&apos;").replace(/"/g, "&quot;").replace(/\xA0/g, "&nbsp;").replace(/\xAD/g, "&shy;");
65839
65839
  }
65840
65840
  var unescapeHTML = (html2) => (0, import_entities.decodeHTML)(html2);
65841
65841
  function _h(context6, tag2, attrs, children) {
@@ -66102,8 +66102,8 @@ var require_index_browser = __commonJS({
66102
66102
  this._childNodes.push(node);
66103
66103
  } else {
66104
66104
  try {
66105
- const text = typeof node === "string" ? node : JSON.stringify(node, null, 2);
66106
- this._childNodes.push(new VTextNode(text));
66105
+ const text2 = typeof node === "string" ? node : JSON.stringify(node, null, 2);
66106
+ this._childNodes.push(new VTextNode(text2));
66107
66107
  } catch (err) {
66108
66108
  console.error(`The data ${node} to be added to ${this.render()} is problematic: ${err}`);
66109
66109
  }
@@ -66198,10 +66198,10 @@ var require_index_browser = __commonJS({
66198
66198
  get textContent() {
66199
66199
  return this._childNodes.map((c) => c.textContent).join("");
66200
66200
  }
66201
- set textContent(text) {
66201
+ set textContent(text2) {
66202
66202
  this._childNodes = [];
66203
- if (text)
66204
- this.appendChild(new VTextNode(text.toString()));
66203
+ if (text2)
66204
+ this.appendChild(new VTextNode(text2.toString()));
66205
66205
  }
66206
66206
  contains(otherNode) {
66207
66207
  if (otherNode === this)
@@ -66242,9 +66242,9 @@ var require_index_browser = __commonJS({
66242
66242
  get textContent() {
66243
66243
  return this.nodeValue;
66244
66244
  }
66245
- constructor(text = "") {
66245
+ constructor(text2 = "") {
66246
66246
  super();
66247
- this._text = text;
66247
+ this._text = text2;
66248
66248
  }
66249
66249
  render() {
66250
66250
  const parentTagName = this.parentNode?.tagName;
@@ -66508,8 +66508,8 @@ var require_index_browser = __commonJS({
66508
66508
  createDocumentFragment() {
66509
66509
  return new _VDocumentFragment();
66510
66510
  }
66511
- createTextNode(text) {
66512
- return new VTextNode(text);
66511
+ createTextNode(text2) {
66512
+ return new VTextNode(text2);
66513
66513
  }
66514
66514
  };
66515
66515
  var VDocument = class extends VDocumentFragment {
@@ -66857,14 +66857,14 @@ var require_index_browser = __commonJS({
66857
66857
  endElement(_tagName) {
66858
66858
  stack.pop();
66859
66859
  },
66860
- characters(text) {
66861
- text = unescapeHTML(text);
66860
+ characters(text2) {
66861
+ text2 = unescapeHTML(text2);
66862
66862
  const parentNode = stack[stack.length - 1];
66863
66863
  if (parentNode?.lastChild?.nodeType === VNode.TEXT_NODE) {
66864
- parentNode.lastChild._text += text;
66864
+ parentNode.lastChild._text += text2;
66865
66865
  } else {
66866
66866
  if (parentNode)
66867
- parentNode.appendChild(new VTextNode(text));
66867
+ parentNode.appendChild(new VTextNode(text2));
66868
66868
  }
66869
66869
  },
66870
66870
  comment(_text) {
@@ -69396,11 +69396,11 @@ var require_lib12 = __commonJS({
69396
69396
  this.lastNode = null;
69397
69397
  };
69398
69398
  DomHandler2.prototype.oncdatastart = function() {
69399
- var text = new node_js_1.Text("");
69400
- var node = new node_js_1.CDATA([text]);
69399
+ var text2 = new node_js_1.Text("");
69400
+ var node = new node_js_1.CDATA([text2]);
69401
69401
  this.addNode(node);
69402
- text.parent = node;
69403
- this.lastNode = text;
69402
+ text2.parent = node;
69403
+ this.lastNode = text2;
69404
69404
  };
69405
69405
  DomHandler2.prototype.oncdataend = function() {
69406
69406
  this.lastNode = null;
@@ -70889,19 +70889,19 @@ var require_parser2 = __commonJS({
70889
70889
  top() {
70890
70890
  return this.stack[this.stack.length - 1];
70891
70891
  }
70892
- addText(text) {
70892
+ addText(text2) {
70893
70893
  const top = this.top();
70894
- if (top === void 0 || text.length === 0) {
70894
+ if (top === void 0 || text2.length === 0) {
70895
70895
  return;
70896
70896
  }
70897
70897
  if (top.type === import_text_core.MarkupNodeType.doc) {
70898
70898
  this.openNode(import_text_core.MarkupNodeType.paragraph);
70899
- const node2 = this.marks.length > 0 ? { type: import_text_core.MarkupNodeType.text, text, marks: [...this.marks] } : { type: import_text_core.MarkupNodeType.text, text };
70899
+ const node2 = this.marks.length > 0 ? { type: import_text_core.MarkupNodeType.text, text: text2, marks: [...this.marks] } : { type: import_text_core.MarkupNodeType.text, text: text2 };
70900
70900
  this.push(node2);
70901
70901
  this.closeNode(import_text_core.MarkupNodeType.paragraph);
70902
70902
  return;
70903
70903
  }
70904
- const node = this.marks.length > 0 ? { type: import_text_core.MarkupNodeType.text, text, marks: [...this.marks] } : { type: import_text_core.MarkupNodeType.text, text };
70904
+ const node = this.marks.length > 0 ? { type: import_text_core.MarkupNodeType.text, text: text2, marks: [...this.marks] } : { type: import_text_core.MarkupNodeType.text, text: text2 };
70905
70905
  this.push(node);
70906
70906
  }
70907
70907
  openMark(mark, attrs) {
@@ -71313,21 +71313,21 @@ var require_parser2 = __commonJS({
71313
71313
  rawDepth = 0;
71314
71314
  }
71315
71315
  },
71316
- ontext(text) {
71316
+ ontext(text2) {
71317
71317
  if (rawDepth !== void 0) {
71318
71318
  return;
71319
71319
  }
71320
- if (text.length === 0) {
71320
+ if (text2.length === 0) {
71321
71321
  return;
71322
71322
  }
71323
- state.addText(text);
71323
+ state.addText(text2);
71324
71324
  },
71325
- oncomment(text) {
71325
+ oncomment(text2) {
71326
71326
  if (rawDepth !== void 0) {
71327
71327
  return;
71328
71328
  }
71329
71329
  state.openNode(import_text_core.MarkupNodeType.comment);
71330
- state.addText(text);
71330
+ state.addText(text2);
71331
71331
  state.closeNode(import_text_core.MarkupNodeType.comment);
71332
71332
  },
71333
71333
  onclosetag(tag2) {
@@ -71336,8 +71336,8 @@ var require_parser2 = __commonJS({
71336
71336
  if (rawDepth === 0) {
71337
71337
  const start3 = rawPos ?? 0;
71338
71338
  const end3 = parser.endIndex;
71339
- const text = html.substring(start3, end3);
71340
- state.addText(text);
71339
+ const text2 = html.substring(start3, end3);
71340
+ state.addText(text2);
71341
71341
  rawPos = void 0;
71342
71342
  rawDepth = void 0;
71343
71343
  }
@@ -71434,8 +71434,8 @@ var require_serializer = __commonJS({
71434
71434
  __name(this, "NodeBuilder");
71435
71435
  }
71436
71436
  textParts = [];
71437
- addText(text) {
71438
- this.textParts.push(text);
71437
+ addText(text2) {
71438
+ this.textParts.push(text2);
71439
71439
  }
71440
71440
  openTag(tag2, attributes = {}, options) {
71441
71441
  if (this.addTags) {
@@ -71469,8 +71469,8 @@ var require_serializer = __commonJS({
71469
71469
  return this.textParts.join("");
71470
71470
  }
71471
71471
  };
71472
- function escapeHtml(text) {
71473
- return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;").replace(/\r/g, "&#13;").replace(/\n/g, "&#10;");
71472
+ function escapeHtml(text2) {
71473
+ return text2.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;").replace(/\r/g, "&#13;").replace(/\n/g, "&#10;");
71474
71474
  }
71475
71475
  __name(escapeHtml, "escapeHtml");
71476
71476
  function addMark(builder, mark, next4) {
@@ -72225,8 +72225,8 @@ var require_index_cjs3 = __commonJS({
72225
72225
  }
72226
72226
  var defaultSchemas = {
72227
72227
  "http:": {
72228
- validate: function(text, pos, self) {
72229
- const tail3 = text.slice(pos);
72228
+ validate: function(text2, pos, self) {
72229
+ const tail3 = text2.slice(pos);
72230
72230
  if (!self.re.http) {
72231
72231
  self.re.http = new RegExp(
72232
72232
  "^\\/\\/" + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path,
@@ -72242,8 +72242,8 @@ var require_index_cjs3 = __commonJS({
72242
72242
  "https:": "http:",
72243
72243
  "ftp:": "http:",
72244
72244
  "//": {
72245
- validate: function(text, pos, self) {
72246
- const tail3 = text.slice(pos);
72245
+ validate: function(text2, pos, self) {
72246
+ const tail3 = text2.slice(pos);
72247
72247
  if (!self.re.no_http) {
72248
72248
  self.re.no_http = new RegExp(
72249
72249
  "^" + self.re.src_auth + // Don't allow single-level domains, because of false positives like '//test'
@@ -72253,10 +72253,10 @@ var require_index_cjs3 = __commonJS({
72253
72253
  );
72254
72254
  }
72255
72255
  if (self.re.no_http.test(tail3)) {
72256
- if (pos >= 3 && text[pos - 3] === ":") {
72256
+ if (pos >= 3 && text2[pos - 3] === ":") {
72257
72257
  return 0;
72258
72258
  }
72259
- if (pos >= 3 && text[pos - 3] === "/") {
72259
+ if (pos >= 3 && text2[pos - 3] === "/") {
72260
72260
  return 0;
72261
72261
  }
72262
72262
  return tail3.match(self.re.no_http)[0].length;
@@ -72265,8 +72265,8 @@ var require_index_cjs3 = __commonJS({
72265
72265
  }
72266
72266
  },
72267
72267
  "mailto:": {
72268
- validate: function(text, pos, self) {
72269
- const tail3 = text.slice(pos);
72268
+ validate: function(text2, pos, self) {
72269
+ const tail3 = text2.slice(pos);
72270
72270
  if (!self.re.mailto) {
72271
72271
  self.re.mailto = new RegExp(
72272
72272
  "^" + self.re.src_email_name + "@" + self.re.src_host_strict,
@@ -72287,8 +72287,8 @@ var require_index_cjs3 = __commonJS({
72287
72287
  self.__text_cache__ = "";
72288
72288
  }
72289
72289
  function createValidator(re) {
72290
- return function(text, pos) {
72291
- const tail3 = text.slice(pos);
72290
+ return function(text2, pos) {
72291
+ const tail3 = text2.slice(pos);
72292
72292
  if (re.test(tail3)) {
72293
72293
  return tail3.match(re)[0].length;
72294
72294
  }
@@ -72374,13 +72374,13 @@ var require_index_cjs3 = __commonJS({
72374
72374
  function Match(self, shift2) {
72375
72375
  const start3 = self.__index__;
72376
72376
  const end3 = self.__last_index__;
72377
- const text = self.__text_cache__.slice(start3, end3);
72377
+ const text2 = self.__text_cache__.slice(start3, end3);
72378
72378
  this.schema = self.__schema__.toLowerCase();
72379
72379
  this.index = start3 + shift2;
72380
72380
  this.lastIndex = end3 + shift2;
72381
- this.raw = text;
72382
- this.text = text;
72383
- this.url = text;
72381
+ this.raw = text2;
72382
+ this.text = text2;
72383
+ this.url = text2;
72384
72384
  }
72385
72385
  function createMatch(self, shift2) {
72386
72386
  const match16 = new Match(self, shift2);
@@ -72418,18 +72418,18 @@ var require_index_cjs3 = __commonJS({
72418
72418
  this.__opts__ = assign(this.__opts__, options);
72419
72419
  return this;
72420
72420
  };
72421
- LinkifyIt.prototype.test = function test(text) {
72422
- this.__text_cache__ = text;
72421
+ LinkifyIt.prototype.test = function test(text2) {
72422
+ this.__text_cache__ = text2;
72423
72423
  this.__index__ = -1;
72424
- if (!text.length) {
72424
+ if (!text2.length) {
72425
72425
  return false;
72426
72426
  }
72427
72427
  let m, ml, me, len, shift2, next4, re, tld_pos, at_pos;
72428
- if (this.re.schema_test.test(text)) {
72428
+ if (this.re.schema_test.test(text2)) {
72429
72429
  re = this.re.schema_search;
72430
72430
  re.lastIndex = 0;
72431
- while ((m = re.exec(text)) !== null) {
72432
- len = this.testSchemaAt(text, m[2], re.lastIndex);
72431
+ while ((m = re.exec(text2)) !== null) {
72432
+ len = this.testSchemaAt(text2, m[2], re.lastIndex);
72433
72433
  if (len) {
72434
72434
  this.__schema__ = m[2];
72435
72435
  this.__index__ = m.index + m[1].length;
@@ -72439,10 +72439,10 @@ var require_index_cjs3 = __commonJS({
72439
72439
  }
72440
72440
  }
72441
72441
  if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) {
72442
- tld_pos = text.search(this.re.host_fuzzy_test);
72442
+ tld_pos = text2.search(this.re.host_fuzzy_test);
72443
72443
  if (tld_pos >= 0) {
72444
72444
  if (this.__index__ < 0 || tld_pos < this.__index__) {
72445
- if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
72445
+ if ((ml = text2.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
72446
72446
  shift2 = ml.index + ml[1].length;
72447
72447
  if (this.__index__ < 0 || shift2 < this.__index__) {
72448
72448
  this.__schema__ = "";
@@ -72454,9 +72454,9 @@ var require_index_cjs3 = __commonJS({
72454
72454
  }
72455
72455
  }
72456
72456
  if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) {
72457
- at_pos = text.indexOf("@");
72457
+ at_pos = text2.indexOf("@");
72458
72458
  if (at_pos >= 0) {
72459
- if ((me = text.match(this.re.email_fuzzy)) !== null) {
72459
+ if ((me = text2.match(this.re.email_fuzzy)) !== null) {
72460
72460
  shift2 = me.index + me[1].length;
72461
72461
  next4 = me.index + me[0].length;
72462
72462
  if (this.__index__ < 0 || shift2 < this.__index__ || shift2 === this.__index__ && next4 > this.__last_index__) {
@@ -72469,23 +72469,23 @@ var require_index_cjs3 = __commonJS({
72469
72469
  }
72470
72470
  return this.__index__ >= 0;
72471
72471
  };
72472
- LinkifyIt.prototype.pretest = function pretest(text) {
72473
- return this.re.pretest.test(text);
72472
+ LinkifyIt.prototype.pretest = function pretest(text2) {
72473
+ return this.re.pretest.test(text2);
72474
72474
  };
72475
- LinkifyIt.prototype.testSchemaAt = function testSchemaAt(text, schema, pos) {
72475
+ LinkifyIt.prototype.testSchemaAt = function testSchemaAt(text2, schema, pos) {
72476
72476
  if (!this.__compiled__[schema.toLowerCase()]) {
72477
72477
  return 0;
72478
72478
  }
72479
- return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);
72479
+ return this.__compiled__[schema.toLowerCase()].validate(text2, pos, this);
72480
72480
  };
72481
- LinkifyIt.prototype.match = function match16(text) {
72481
+ LinkifyIt.prototype.match = function match16(text2) {
72482
72482
  const result = [];
72483
72483
  let shift2 = 0;
72484
- if (this.__index__ >= 0 && this.__text_cache__ === text) {
72484
+ if (this.__index__ >= 0 && this.__text_cache__ === text2) {
72485
72485
  result.push(createMatch(this, shift2));
72486
72486
  shift2 = this.__last_index__;
72487
72487
  }
72488
- let tail3 = shift2 ? text.slice(shift2) : text;
72488
+ let tail3 = shift2 ? text2.slice(shift2) : text2;
72489
72489
  while (this.test(tail3)) {
72490
72490
  result.push(createMatch(this, shift2));
72491
72491
  tail3 = tail3.slice(this.__last_index__);
@@ -72496,13 +72496,13 @@ var require_index_cjs3 = __commonJS({
72496
72496
  }
72497
72497
  return null;
72498
72498
  };
72499
- LinkifyIt.prototype.matchAtStart = function matchAtStart(text) {
72500
- this.__text_cache__ = text;
72499
+ LinkifyIt.prototype.matchAtStart = function matchAtStart(text2) {
72500
+ this.__text_cache__ = text2;
72501
72501
  this.__index__ = -1;
72502
- if (!text.length) return null;
72503
- const m = this.re.schema_at_start.exec(text);
72502
+ if (!text2.length) return null;
72503
+ const m = this.re.schema_at_start.exec(text2);
72504
72504
  if (!m) return null;
72505
- const len = this.testSchemaAt(text, m[2], m[0].length);
72505
+ const len = this.testSchemaAt(text2, m[2], m[0].length);
72506
72506
  if (!len) return null;
72507
72507
  this.__schema__ = m[2];
72508
72508
  this.__index__ = m.index + m[1].length;
@@ -73628,8 +73628,8 @@ var require_index_cjs4 = __commonJS({
73628
73628
  continue;
73629
73629
  }
73630
73630
  if (currentToken.type === "text" && state.md.linkify.test(currentToken.content)) {
73631
- const text2 = currentToken.content;
73632
- let links = state.md.linkify.match(text2);
73631
+ const text3 = currentToken.content;
73632
+ let links = state.md.linkify.match(text3);
73633
73633
  const nodes = [];
73634
73634
  let level = currentToken.level;
73635
73635
  let lastPos = 0;
@@ -73653,7 +73653,7 @@ var require_index_cjs4 = __commonJS({
73653
73653
  const pos = links[ln].index;
73654
73654
  if (pos > lastPos) {
73655
73655
  const token = new state.Token("text", "", 0);
73656
- token.content = text2.slice(lastPos, pos);
73656
+ token.content = text3.slice(lastPos, pos);
73657
73657
  token.level = level;
73658
73658
  nodes.push(token);
73659
73659
  }
@@ -73674,9 +73674,9 @@ var require_index_cjs4 = __commonJS({
73674
73674
  nodes.push(token_c);
73675
73675
  lastPos = links[ln].lastIndex;
73676
73676
  }
73677
- if (lastPos < text2.length) {
73677
+ if (lastPos < text3.length) {
73678
73678
  const token = new state.Token("text", "", 0);
73679
- token.content = text2.slice(lastPos);
73679
+ token.content = text3.slice(lastPos);
73680
73680
  token.level = level;
73681
73681
  nodes.push(token);
73682
73682
  }
@@ -73766,12 +73766,12 @@ var require_index_cjs4 = __commonJS({
73766
73766
  if (token.type !== "text") {
73767
73767
  continue;
73768
73768
  }
73769
- let text2 = token.content;
73769
+ let text3 = token.content;
73770
73770
  let pos = 0;
73771
- let max7 = text2.length;
73771
+ let max7 = text3.length;
73772
73772
  OUTER: while (pos < max7) {
73773
73773
  QUOTE_RE.lastIndex = pos;
73774
- const t = QUOTE_RE.exec(text2);
73774
+ const t = QUOTE_RE.exec(text3);
73775
73775
  if (!t) {
73776
73776
  break;
73777
73777
  }
@@ -73781,7 +73781,7 @@ var require_index_cjs4 = __commonJS({
73781
73781
  const isSingle3 = t[0] === "'";
73782
73782
  let lastChar = 32;
73783
73783
  if (t.index - 1 >= 0) {
73784
- lastChar = text2.charCodeAt(t.index - 1);
73784
+ lastChar = text3.charCodeAt(t.index - 1);
73785
73785
  } else {
73786
73786
  for (j = i - 1; j >= 0; j--) {
73787
73787
  if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
@@ -73792,7 +73792,7 @@ var require_index_cjs4 = __commonJS({
73792
73792
  }
73793
73793
  let nextChar = 32;
73794
73794
  if (pos < max7) {
73795
- nextChar = text2.charCodeAt(pos);
73795
+ nextChar = text3.charCodeAt(pos);
73796
73796
  } else {
73797
73797
  for (j = i + 1; j < tokens.length; j++) {
73798
73798
  if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
@@ -73857,8 +73857,8 @@ var require_index_cjs4 = __commonJS({
73857
73857
  if (item.token === i) {
73858
73858
  pos += openQuote.length - 1;
73859
73859
  }
73860
- text2 = token.content;
73861
- max7 = text2.length;
73860
+ text3 = token.content;
73861
+ max7 = text3.length;
73862
73862
  stack.length = j;
73863
73863
  continue OUTER;
73864
73864
  }
@@ -75302,7 +75302,7 @@ var require_index_cjs4 = __commonJS({
75302
75302
  return false;
75303
75303
  }
75304
75304
  }
75305
- function text(state, silent) {
75305
+ function text2(state, silent) {
75306
75306
  let pos = state.pos;
75307
75307
  while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) {
75308
75308
  pos++;
@@ -76084,7 +76084,7 @@ var require_index_cjs4 = __commonJS({
76084
76084
  tokens.length = last4;
76085
76085
  }
76086
76086
  }
76087
- var _rules = [["text", text], ["linkify", linkify], ["newline", newline], ["escape", escape3], ["backticks", backtick], ["strikethrough", r_strikethrough.tokenize], ["emphasis", r_emphasis.tokenize], ["link", link], ["image", image], ["autolink", autolink], ["html_inline", html_inline], ["entity", entity]];
76087
+ var _rules = [["text", text2], ["linkify", linkify], ["newline", newline], ["escape", escape3], ["backticks", backtick], ["strikethrough", r_strikethrough.tokenize], ["emphasis", r_emphasis.tokenize], ["link", link], ["image", image], ["autolink", autolink], ["html_inline", html_inline], ["entity", entity]];
76088
76088
  var _rules2 = [
76089
76089
  ["balance_pairs", link_pairs],
76090
76090
  ["strikethrough", r_strikethrough.postProcess],
@@ -76661,14 +76661,14 @@ var require_parser3 = __commonJS({
76661
76661
  }
76662
76662
  // Adds the given text to the current position in the document,
76663
76663
  // using the current marks as styling.
76664
- addText(text) {
76664
+ addText(text2) {
76665
76665
  const top = this.top();
76666
- if (text === void 0 || top === void 0 || text.length === 0) {
76666
+ if (text2 === void 0 || top === void 0 || text2.length === 0) {
76667
76667
  return;
76668
76668
  }
76669
76669
  const node = {
76670
76670
  type: import_text_core.MarkupNodeType.text,
76671
- text
76671
+ text: text2
76672
76672
  };
76673
76673
  if (this.marks !== void 0) {
76674
76674
  node.marks = this.marks;
@@ -77154,10 +77154,10 @@ var require_parser3 = __commonJS({
77154
77154
  tokenizer;
77155
77155
  tokenHandlers;
77156
77156
  htmlParser;
77157
- parse(text) {
77157
+ parse(text2) {
77158
77158
  const state = new MarkdownParseState(this.tokenHandlers, this.options.refUrl, this.options.imageUrl);
77159
77159
  let doc;
77160
- const tokens = this.tokenizer.parse(text, {});
77160
+ const tokens = this.tokenizer.parse(text2, {});
77161
77161
  state.parseTokens(tokens);
77162
77162
  do {
77163
77163
  doc = state.closeNode();
@@ -77717,8 +77717,8 @@ var require_serializer2 = __commonJS({
77717
77717
  // :: (string, ?bool)
77718
77718
  // Add the given text to the document. When escape is not `false`,
77719
77719
  // it will be escaped.
77720
- text(text, escape3 = false) {
77721
- const lines = text.split("\n");
77720
+ text(text2, escape3 = false) {
77721
+ const lines = text2.split("\n");
77722
77722
  for (let i = 0; i < lines.length; i++) {
77723
77723
  const startOfLine = this.atBlank() || this.closed;
77724
77724
  this.write("");
@@ -78098,8 +78098,8 @@ var require_lib18 = __commonJS({
78098
78098
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
78099
78099
  var index_exports2 = {};
78100
78100
  __export2(index_exports2, {
78101
- markdownToMarkup: () => markdownToMarkup3,
78102
- markupToMarkdown: () => markupToMarkdown3
78101
+ markdownToMarkup: () => markdownToMarkup2,
78102
+ markupToMarkdown: () => markupToMarkdown2
78103
78103
  });
78104
78104
  module2.exports = __toCommonJS2(index_exports2);
78105
78105
  var import_parser = require_parser3();
@@ -78107,21 +78107,21 @@ var require_lib18 = __commonJS({
78107
78107
  __reExport2(index_exports2, require_compare(), module2.exports);
78108
78108
  __reExport2(index_exports2, require_parser3(), module2.exports);
78109
78109
  __reExport2(index_exports2, require_serializer2(), module2.exports);
78110
- function markupToMarkdown3(markup, options) {
78110
+ function markupToMarkdown2(markup, options) {
78111
78111
  const refUrl = options?.refUrl ?? "ref://";
78112
78112
  const imageUrl = options?.imageUrl ?? "image://";
78113
78113
  const state = new import_serializer.MarkdownState(import_serializer.storeNodes, import_serializer.storeMarks, { tightLists: true, refUrl, imageUrl });
78114
78114
  state.renderContent(markup);
78115
78115
  return state.out;
78116
78116
  }
78117
- __name(markupToMarkdown3, "markupToMarkdown");
78118
- function markdownToMarkup3(markdown, options) {
78117
+ __name(markupToMarkdown2, "markupToMarkdown");
78118
+ function markdownToMarkup2(markdown, options) {
78119
78119
  const refUrl = options?.refUrl ?? "ref://";
78120
78120
  const imageUrl = options?.imageUrl ?? "image://";
78121
78121
  const parser = new import_parser.MarkdownParser({ refUrl, imageUrl });
78122
78122
  return parser.parse(markdown ?? "");
78123
78123
  }
78124
- __name(markdownToMarkup3, "markdownToMarkup");
78124
+ __name(markdownToMarkup2, "markdownToMarkup");
78125
78125
  }
78126
78126
  });
78127
78127
 
@@ -78153,9 +78153,9 @@ var require_client5 = __commonJS({
78153
78153
  });
78154
78154
  module2.exports = __toCommonJS2(client_exports);
78155
78155
  var import_core105 = require_lib5();
78156
- var import_collaborator_client2 = require_lib8();
78157
- var import_text5 = require_lib10();
78158
- var import_text_markdown3 = require_lib18();
78156
+ var import_collaborator_client = require_lib8();
78157
+ var import_text3 = require_lib10();
78158
+ var import_text_markdown = require_lib18();
78159
78159
  function createMarkupOperations(url4, workspace2, token, config3) {
78160
78160
  return new MarkupOperationsImpl(url4, workspace2, token, config3);
78161
78161
  }
@@ -78168,7 +78168,7 @@ var require_client5 = __commonJS({
78168
78168
  this.config = config3;
78169
78169
  this.refUrl = (0, import_core105.concatLink)(this.url, `/browse?workspace=${workspace2}`);
78170
78170
  this.imageUrl = (0, import_core105.concatLink)(this.url, `/files?workspace=${workspace2}&file=`);
78171
- this.collaborator = (0, import_collaborator_client2.getClient)(workspace2, token, config3.COLLABORATOR_URL);
78171
+ this.collaborator = (0, import_collaborator_client.getClient)(workspace2, token, config3.COLLABORATOR_URL);
78172
78172
  }
78173
78173
  static {
78174
78174
  __name(this, "MarkupOperationsImpl");
@@ -78179,14 +78179,14 @@ var require_client5 = __commonJS({
78179
78179
  async fetchMarkup(objectClass, objectId, objectAttr, doc, format7) {
78180
78180
  const collabId = (0, import_core105.makeCollabId)(objectClass, objectId, objectAttr);
78181
78181
  const markup = await this.collaborator.getMarkup(collabId, doc);
78182
- const json3 = (0, import_text5.markupToJSON)(markup);
78182
+ const json3 = (0, import_text3.markupToJSON)(markup);
78183
78183
  switch (format7) {
78184
78184
  case "markup":
78185
78185
  return markup;
78186
78186
  case "html":
78187
- return (0, import_text5.jsonToHTML)(json3);
78187
+ return (0, import_text3.jsonToHTML)(json3);
78188
78188
  case "markdown":
78189
- return (0, import_text_markdown3.markupToMarkdown)(json3, { refUrl: this.refUrl, imageUrl: this.imageUrl });
78189
+ return (0, import_text_markdown.markupToMarkdown)(json3, { refUrl: this.refUrl, imageUrl: this.imageUrl });
78190
78190
  default:
78191
78191
  throw new Error("Unknown content format");
78192
78192
  }
@@ -78198,10 +78198,10 @@ var require_client5 = __commonJS({
78198
78198
  markup = value3;
78199
78199
  break;
78200
78200
  case "html":
78201
- markup = (0, import_text5.jsonToMarkup)((0, import_text5.htmlToJSON)(value3));
78201
+ markup = (0, import_text3.jsonToMarkup)((0, import_text3.htmlToJSON)(value3));
78202
78202
  break;
78203
78203
  case "markdown":
78204
- markup = (0, import_text5.jsonToMarkup)((0, import_text_markdown3.markdownToMarkup)(value3, { refUrl: this.refUrl, imageUrl: this.imageUrl }));
78204
+ markup = (0, import_text3.jsonToMarkup)((0, import_text_markdown.markdownToMarkup)(value3, { refUrl: this.refUrl, imageUrl: this.imageUrl }));
78205
78205
  break;
78206
78206
  default:
78207
78207
  throw new Error("Unknown content format");
@@ -78314,7 +78314,7 @@ var require_utils9 = __commonJS({
78314
78314
  getWorkspaceToken: () => getWorkspaceToken2
78315
78315
  });
78316
78316
  module2.exports = __toCommonJS2(utils_exports);
78317
- var import_account_client2 = require_lib6();
78317
+ var import_account_client = require_lib6();
78318
78318
  var import_config10 = require_config();
78319
78319
  async function getWorkspaceToken2(url4, options, config3) {
78320
78320
  config3 ??= await (0, import_config10.loadServerConfig)(url4);
@@ -78323,13 +78323,13 @@ var require_utils9 = __commonJS({
78323
78323
  token = options.token;
78324
78324
  } else {
78325
78325
  const { email: email3, password } = options;
78326
- const loginInfo = await (0, import_account_client2.getClient)(config3.ACCOUNTS_URL).login(email3, password);
78326
+ const loginInfo = await (0, import_account_client.getClient)(config3.ACCOUNTS_URL).login(email3, password);
78327
78327
  token = loginInfo.token;
78328
78328
  }
78329
78329
  if (token === void 0) {
78330
78330
  throw new Error("Login failed");
78331
78331
  }
78332
- const ws = await (0, import_account_client2.getClient)(config3.ACCOUNTS_URL, token).selectWorkspace(options.workspace);
78332
+ const ws = await (0, import_account_client.getClient)(config3.ACCOUNTS_URL, token).selectWorkspace(options.workspace);
78333
78333
  if (ws === void 0) {
78334
78334
  throw new Error("Workspace not found");
78335
78335
  }
@@ -78710,8 +78710,8 @@ var require_node_gyp_build = __commonJS({
78710
78710
  }
78711
78711
  var runtime5 = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
78712
78712
  var arch = process.env.npm_config_arch || os2.arch();
78713
- var platform = process.env.npm_config_platform || os2.platform();
78714
- var libc = process.env.LIBC || (isMusl(platform) ? "musl" : "glibc");
78713
+ var platform2 = process.env.npm_config_platform || os2.platform();
78714
+ var libc = process.env.LIBC || (isMusl(platform2) ? "musl" : "glibc");
78715
78715
  var armv = process.env.ARM_VERSION || (arch === "arm64" ? "8" : vars.arm_version) || "";
78716
78716
  var uv = (versions.uv || "").split(".")[0];
78717
78717
  module2.exports = load;
@@ -78739,7 +78739,7 @@ var require_node_gyp_build = __commonJS({
78739
78739
  if (prebuild) return prebuild;
78740
78740
  var nearby = resolve2(path2.dirname(process.execPath));
78741
78741
  if (nearby) return nearby;
78742
- var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform + "-" + arch;
78742
+ var platformPackage = (packageName[0] == "@" ? "" : "@" + packageName + "/") + packageName + "-" + platform2 + "-" + arch;
78743
78743
  var packageResolutionError;
78744
78744
  try {
78745
78745
  var prebuildPackage = path2.dirname(require("module").createRequire(url4.pathToFileURL(path2.join(dir, "package.json"))).resolve(platformPackage));
@@ -78748,7 +78748,7 @@ var require_node_gyp_build = __commonJS({
78748
78748
  packageResolutionError = error2;
78749
78749
  }
78750
78750
  var target = [
78751
- "platform=" + platform,
78751
+ "platform=" + platform2,
78752
78752
  "arch=" + arch,
78753
78753
  "runtime=" + runtime5,
78754
78754
  "abi=" + abi,
@@ -78770,7 +78770,7 @@ var require_node_gyp_build = __commonJS({
78770
78770
  throw new Error(errMessage);
78771
78771
  function resolve2(dir2) {
78772
78772
  var tuples = readdirSync(path2.join(dir2, "prebuilds")).map(parseTuple);
78773
- var tuple5 = tuples.filter(matchTuple(platform, arch)).sort(compareTuples)[0];
78773
+ var tuple5 = tuples.filter(matchTuple(platform2, arch)).sort(compareTuples)[0];
78774
78774
  if (!tuple5) return;
78775
78775
  return resolveFile2(path2.join(dir2, "prebuilds", tuple5.name));
78776
78776
  }
@@ -78798,17 +78798,17 @@ var require_node_gyp_build = __commonJS({
78798
78798
  function parseTuple(name) {
78799
78799
  var arr = name.split("-");
78800
78800
  if (arr.length !== 2) return;
78801
- var platform2 = arr[0];
78801
+ var platform3 = arr[0];
78802
78802
  var architectures = arr[1].split("+");
78803
- if (!platform2) return;
78803
+ if (!platform3) return;
78804
78804
  if (!architectures.length) return;
78805
78805
  if (!architectures.every(Boolean)) return;
78806
- return { name, platform: platform2, architectures };
78806
+ return { name, platform: platform3, architectures };
78807
78807
  }
78808
- function matchTuple(platform2, arch2) {
78808
+ function matchTuple(platform3, arch2) {
78809
78809
  return function(tuple5) {
78810
78810
  if (tuple5 == null) return false;
78811
- if (tuple5.platform !== platform2) return false;
78811
+ if (tuple5.platform !== platform3) return false;
78812
78812
  return tuple5.architectures.includes(arch2);
78813
78813
  };
78814
78814
  }
@@ -78876,8 +78876,8 @@ var require_node_gyp_build = __commonJS({
78876
78876
  if (process.env.ELECTRON_RUN_AS_NODE) return true;
78877
78877
  return typeof window !== "undefined" && window.process && window.process.type === "renderer";
78878
78878
  }
78879
- function isMusl(platform2) {
78880
- if (platform2 !== "linux") return false;
78879
+ function isMusl(platform3) {
78880
+ if (platform3 !== "linux") return false;
78881
78881
  const { familySync, MUSL } = require_detect_libc();
78882
78882
  return familySync() === MUSL;
78883
78883
  }
@@ -82030,7 +82030,7 @@ var require_rpc = __commonJS({
82030
82030
  rpcJSONReplacer: () => rpcJSONReplacer
82031
82031
  });
82032
82032
  module2.exports = __toCommonJS2(rpc_exports);
82033
- var import_platform4 = __toESM2(require_lib());
82033
+ var import_platform3 = __toESM2(require_lib());
82034
82034
  var import_msgpackr = require_node3();
82035
82035
  function isTotalArray(value3) {
82036
82036
  return Array.isArray(value3) && (value3.total !== void 0 || value3.lookupMap !== void 0);
@@ -82133,7 +82133,7 @@ var require_rpc = __commonJS({
82133
82133
  readRequest(request3, binary) {
82134
82134
  const result = this.protoDeserialize(request3, binary);
82135
82135
  if (typeof result.method !== "string") {
82136
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_platform4.default.status.BadRequest, {}));
82136
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_platform3.default.status.BadRequest, {}));
82137
82137
  }
82138
82138
  return result;
82139
82139
  }
@@ -82692,7 +82692,7 @@ var require_connection2 = __commonJS({
82692
82692
  var import_analytics = require_lib3();
82693
82693
  var import_client89 = __toESM2(require_lib7());
82694
82694
  var import_core105 = __toESM2(require_lib5());
82695
- var import_platform4 = __toESM2(require_lib());
82695
+ var import_platform3 = __toESM2(require_lib());
82696
82696
  var import_rpc = require_lib19();
82697
82697
  var import_snappyjs = require_snappyjs();
82698
82698
  var SECOND = 1e3;
@@ -82899,8 +82899,8 @@ var require_connection2 = __commonJS({
82899
82899
  }
82900
82900
  if (resp.error !== void 0) {
82901
82901
  if (resp.terminate === true) {
82902
- if (resp.error.code !== import_platform4.default.status.WorkspaceArchived && resp.error.code !== import_platform4.default.status.WorkspaceNotFound) {
82903
- import_analytics.Analytics.handleError(new import_platform4.PlatformError(resp.error));
82902
+ if (resp.error.code !== import_platform3.default.status.WorkspaceArchived && resp.error.code !== import_platform3.default.status.WorkspaceNotFound) {
82903
+ import_analytics.Analytics.handleError(new import_platform3.PlatformError(resp.error));
82904
82904
  }
82905
82905
  this.closed = true;
82906
82906
  this.websocket?.close();
@@ -82918,7 +82918,7 @@ var require_connection2 = __commonJS({
82918
82918
  }
82919
82919
  }
82920
82920
  if (promise4 !== void 0) {
82921
- promise4.reject(new import_platform4.PlatformError(resp.error));
82921
+ promise4.reject(new import_platform3.PlatformError(resp.error));
82922
82922
  }
82923
82923
  }
82924
82924
  return;
@@ -83040,7 +83040,7 @@ var require_connection2 = __commonJS({
83040
83040
  this.workspace,
83041
83041
  this.user
83042
83042
  );
83043
- promise4.reject(new import_platform4.PlatformError(resp.error));
83043
+ promise4.reject(new import_platform3.PlatformError(resp.error));
83044
83044
  } else {
83045
83045
  if (request3?.handleResult !== void 0) {
83046
83046
  void request3.handleResult(resp.result).then(() => {
@@ -83068,14 +83068,14 @@ var require_connection2 = __commonJS({
83068
83068
  }
83069
83069
  checkArrayBufferPing(data) {
83070
83070
  if (data.byteLength === import_client89.pingConst.length || data.byteLength === import_client89.pongConst.length) {
83071
- const text = new TextDecoder().decode(data);
83072
- if (text === import_client89.pingConst) {
83071
+ const text2 = new TextDecoder().decode(data);
83072
+ if (text2 === import_client89.pingConst) {
83073
83073
  void this.sendRequest({ method: import_client89.pingConst, params: [] }).catch((err) => {
83074
83074
  this.ctx.error("failed to send ping", { err });
83075
83075
  });
83076
83076
  return true;
83077
83077
  }
83078
- if (text === import_client89.pongConst) {
83078
+ if (text2 === import_client89.pongConst) {
83079
83079
  this.pingResponse = Date.now();
83080
83080
  return true;
83081
83081
  }
@@ -83085,7 +83085,7 @@ var require_connection2 = __commonJS({
83085
83085
  openConnection(ctx, socketId) {
83086
83086
  this.binaryMode = false;
83087
83087
  this.helloReceived = false;
83088
- const clientSocketFactory = this.opt?.socketFactory ?? (0, import_platform4.getMetadata)(import_client89.default.metadata.ClientSocketFactory) ?? ((url4) => {
83088
+ const clientSocketFactory = this.opt?.socketFactory ?? (0, import_platform3.getMetadata)(import_client89.default.metadata.ClientSocketFactory) ?? ((url4) => {
83089
83089
  const s = new WebSocket(url4);
83090
83090
  return s;
83091
83091
  });
@@ -83190,8 +83190,8 @@ var require_connection2 = __commonJS({
83190
83190
  if (this.websocket !== wsocket) {
83191
83191
  return;
83192
83192
  }
83193
- const useBinary = this.opt?.useBinaryProtocol ?? (0, import_platform4.getMetadata)(import_client89.default.metadata.UseBinaryProtocol) ?? true;
83194
- this.compressionMode = this.opt?.useProtocolCompression ?? (0, import_platform4.getMetadata)(import_client89.default.metadata.UseProtocolCompression) ?? false;
83193
+ const useBinary = this.opt?.useBinaryProtocol ?? (0, import_platform3.getMetadata)(import_client89.default.metadata.UseBinaryProtocol) ?? true;
83194
+ this.compressionMode = this.opt?.useProtocolCompression ?? (0, import_platform3.getMetadata)(import_client89.default.metadata.UseProtocolCompression) ?? false;
83195
83195
  const helloRequest = {
83196
83196
  method: "hello",
83197
83197
  params: [],
@@ -83217,7 +83217,7 @@ var require_connection2 = __commonJS({
83217
83217
  {},
83218
83218
  async (ctx) => {
83219
83219
  if (this.closed) {
83220
- throw new import_platform4.PlatformError(new import_platform4.Status(import_platform4.Severity.ERROR, import_platform4.default.status.ConnectionClosed, {}));
83220
+ throw new import_platform3.PlatformError(new import_platform3.Status(import_platform3.Severity.ERROR, import_platform3.default.status.ConnectionClosed, {}));
83221
83221
  }
83222
83222
  if (this.slowDownTimer > 0) {
83223
83223
  await new Promise((resolve2) => setTimeout(resolve2, this.slowDownTimer));
@@ -83438,7 +83438,7 @@ var require_lib20 = __commonJS({
83438
83438
  module2.exports = __toCommonJS2(index_exports2);
83439
83439
  var import_client89 = __toESM2(require_lib7());
83440
83440
  var import_core105 = __toESM2(require_lib5());
83441
- var import_platform4 = __toESM2(require_lib());
83441
+ var import_platform3 = __toESM2(require_lib());
83442
83442
  var import_connection = require_connection2();
83443
83443
  var dbRequest;
83444
83444
  var dbPromise = Promise.resolve(void 0);
@@ -83480,8 +83480,8 @@ var require_lib20 = __commonJS({
83480
83480
  return {
83481
83481
  function: {
83482
83482
  GetClient: /* @__PURE__ */ __name(async (token, endpoint, opt) => {
83483
- const filterModel = (0, import_platform4.getMetadata)(import_client89.default.metadata.FilterModel) ?? "none";
83484
- const extraFilter = (0, import_platform4.getMetadata)(import_client89.default.metadata.ExtraFilter) ?? [];
83483
+ const filterModel = (0, import_platform3.getMetadata)(import_client89.default.metadata.FilterModel) ?? "none";
83484
+ const extraFilter = (0, import_platform3.getMetadata)(import_client89.default.metadata.ExtraFilter) ?? [];
83485
83485
  const handler = /* @__PURE__ */ __name(async (handler2) => {
83486
83486
  const url4 = (0, import_core105.concatLink)(endpoint, `/${token}`);
83487
83487
  const upgradeHandler = /* @__PURE__ */ __name((...txes) => {
@@ -83493,8 +83493,8 @@ var require_lib20 = __commonJS({
83493
83493
  if (tx?._class === import_core105.default.class.TxWorkspaceEvent) {
83494
83494
  const event = tx;
83495
83495
  if (event.event === import_core105.WorkspaceEvent.MaintenanceNotification) {
83496
- void (0, import_platform4.setPlatformStatus)(
83497
- new import_platform4.Status(import_platform4.Severity.WARNING, import_platform4.default.status.MaintenanceWarning, {
83496
+ void (0, import_platform3.setPlatformStatus)(
83497
+ new import_platform3.Status(import_platform3.Severity.WARNING, import_platform3.default.status.MaintenanceWarning, {
83498
83498
  time: event.params.timeMinutes,
83499
83499
  message: event.params.message ?? ""
83500
83500
  })
@@ -83509,7 +83509,7 @@ var require_lib20 = __commonJS({
83509
83509
  throw new Error("Workspace or account not found in token");
83510
83510
  }
83511
83511
  const newOpt = { ...opt };
83512
- const connectTimeout = opt?.connectionTimeout ?? (0, import_platform4.getMetadata)(import_client89.default.metadata.ConnectionTimeout);
83512
+ const connectTimeout = opt?.connectionTimeout ?? (0, import_platform3.getMetadata)(import_client89.default.metadata.ConnectionTimeout);
83513
83513
  let connectPromise;
83514
83514
  if ((connectTimeout ?? 0) > 0) {
83515
83515
  connectPromise = new Promise((resolve2, reject) => {
@@ -83561,7 +83561,7 @@ var require_lib20 = __commonJS({
83561
83561
  function returnUITxes(txes, extraFilter) {
83562
83562
  const configs = /* @__PURE__ */ new Map();
83563
83563
  (0, import_core105.fillConfiguration)(txes, configs);
83564
- const allowedPlugins = [...(0, import_platform4.getPlugins)(), ...(0, import_platform4.getMetadata)(import_client89.default.metadata.ExtraPlugins) ?? []];
83564
+ const allowedPlugins = [...(0, import_platform3.getPlugins)(), ...(0, import_platform3.getMetadata)(import_client89.default.metadata.ExtraPlugins) ?? []];
83565
83565
  const excludedPlugins = Array.from(configs.values()).filter(
83566
83566
  (it) => !it.enabled || !allowedPlugins.includes(it.pluginId) || extraFilter.includes(it.pluginId)
83567
83567
  );
@@ -83609,7 +83609,7 @@ var require_lib20 = __commonJS({
83609
83609
  }
83610
83610
  __name(returnClientTxes, "returnClientTxes");
83611
83611
  function createModelPersistence(workspace2) {
83612
- const overrideStore = (0, import_platform4.getMetadata)(import_client89.default.metadata.OverridePersistenceStore);
83612
+ const overrideStore = (0, import_platform3.getMetadata)(import_client89.default.metadata.OverridePersistenceStore);
83613
83613
  if (overrideStore !== void 0) {
83614
83614
  return overrideStore;
83615
83615
  }
@@ -83705,19 +83705,19 @@ var require_client6 = __commonJS({
83705
83705
  connect: () => connect
83706
83706
  });
83707
83707
  module2.exports = __toCommonJS2(client_exports);
83708
- var import_account_client2 = require_lib6();
83708
+ var import_account_client = require_lib6();
83709
83709
  var import_client89 = __toESM2(require_lib7());
83710
83710
  var import_core105 = require_lib5();
83711
- var import_platform4 = require_lib();
83711
+ var import_platform3 = require_lib();
83712
83712
  var import_config10 = require_config();
83713
83713
  var import_markup22 = require_markup();
83714
83714
  var import_utils14 = require_utils9();
83715
83715
  async function connect(url4, options) {
83716
83716
  const config3 = await (0, import_config10.loadServerConfig)(url4);
83717
83717
  const { endpoint, token } = await (0, import_utils14.getWorkspaceToken)(url4, options, config3);
83718
- const accountClient = (0, import_account_client2.getClient)(config3.ACCOUNTS_URL, token);
83719
- const socialIds = await accountClient.getSocialIds(true);
83720
- const wsLoginInfo = await accountClient.selectWorkspace(options.workspace);
83718
+ const accountClient2 = (0, import_account_client.getClient)(config3.ACCOUNTS_URL, token);
83719
+ const socialIds = await accountClient2.getSocialIds(true);
83720
+ const wsLoginInfo = await accountClient2.selectWorkspace(options.workspace);
83721
83721
  if (wsLoginInfo === void 0) {
83722
83722
  throw new Error(`Workspace ${options.workspace} not found`);
83723
83723
  }
@@ -83732,9 +83732,9 @@ var require_client6 = __commonJS({
83732
83732
  }
83733
83733
  __name(connect, "connect");
83734
83734
  async function createClient(url4, endpoint, token, workspaceUuid, account, config3, options) {
83735
- (0, import_platform4.addLocation)(import_client89.clientId, () => Promise.resolve().then(() => __toESM(require_lib20())));
83735
+ (0, import_platform3.addLocation)(import_client89.clientId, () => Promise.resolve().then(() => __toESM(require_lib20())));
83736
83736
  const { socketFactory, connectionTimeout } = options;
83737
- const clientFactory = await (0, import_platform4.getResource)(import_client89.default.function.GetClient);
83737
+ const clientFactory = await (0, import_platform3.getResource)(import_client89.default.function.GetClient);
83738
83738
  const connection = await clientFactory(token, endpoint, {
83739
83739
  socketFactory,
83740
83740
  connectionTimeout
@@ -84131,7 +84131,7 @@ var require_rest = __commonJS({
84131
84131
  });
84132
84132
  module2.exports = __toCommonJS2(rest_exports);
84133
84133
  var import_core105 = require_lib5();
84134
- var import_platform4 = require_lib();
84134
+ var import_platform3 = require_lib();
84135
84135
  var import_utils14 = require_utils9();
84136
84136
  var import_utils22 = require_utils10();
84137
84137
  function createRestClient2(endpoint, workspaceId, token) {
@@ -84190,13 +84190,13 @@ var require_rest = __commonJS({
84190
84190
  const response = await fetch(requestUrl2, this.requestInit());
84191
84191
  if (!response.ok) {
84192
84192
  await this.checkRateLimits(response);
84193
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84193
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84194
84194
  }
84195
84195
  this.updateRateLimit(response);
84196
84196
  return await (0, import_utils22.extractJson)(response);
84197
84197
  }, isRLE);
84198
84198
  if (result.error !== void 0) {
84199
- throw new import_platform4.PlatformError(result.error);
84199
+ throw new import_platform3.PlatformError(result.error);
84200
84200
  }
84201
84201
  if (result.lookupMap !== void 0) {
84202
84202
  for (const d of result) {
@@ -84265,13 +84265,13 @@ var require_rest = __commonJS({
84265
84265
  const response = await fetch(requestUrl2, this.requestInit());
84266
84266
  if (!response.ok) {
84267
84267
  await this.checkRateLimits(response);
84268
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84268
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84269
84269
  }
84270
84270
  this.updateRateLimit(response);
84271
84271
  return await (0, import_utils22.extractJson)(response);
84272
84272
  });
84273
84273
  if (result.error !== void 0) {
84274
- throw new import_platform4.PlatformError(result.error);
84274
+ throw new import_platform3.PlatformError(result.error);
84275
84275
  }
84276
84276
  return result;
84277
84277
  }
@@ -84285,7 +84285,7 @@ var require_rest = __commonJS({
84285
84285
  const response = await fetch(requestUrl2, this.requestInit());
84286
84286
  if (!response.ok) {
84287
84287
  await this.checkRateLimits(response);
84288
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84288
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84289
84289
  }
84290
84290
  this.updateRateLimit(response);
84291
84291
  const modelResponse = await (0, import_utils22.extractJson)(response);
@@ -84296,7 +84296,7 @@ var require_rest = __commonJS({
84296
84296
  return { hierarchy, model };
84297
84297
  }, isRLE);
84298
84298
  if (result.error !== void 0) {
84299
- throw new import_platform4.PlatformError(result.error);
84299
+ throw new import_platform3.PlatformError(result.error);
84300
84300
  }
84301
84301
  return result;
84302
84302
  }
@@ -84315,13 +84315,13 @@ var require_rest = __commonJS({
84315
84315
  });
84316
84316
  if (!response.ok) {
84317
84317
  await this.checkRateLimits(response);
84318
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84318
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84319
84319
  }
84320
84320
  this.updateRateLimit(response);
84321
84321
  return await (0, import_utils22.extractJson)(response);
84322
84322
  }, isRLE);
84323
84323
  if (result.error !== void 0) {
84324
- throw new import_platform4.PlatformError(result.error);
84324
+ throw new import_platform3.PlatformError(result.error);
84325
84325
  }
84326
84326
  return result;
84327
84327
  }
@@ -84346,13 +84346,13 @@ var require_rest = __commonJS({
84346
84346
  });
84347
84347
  if (!response.ok) {
84348
84348
  await this.checkRateLimits(response);
84349
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84349
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84350
84350
  }
84351
84351
  this.updateRateLimit(response);
84352
84352
  return await (0, import_utils22.extractJson)(response);
84353
84353
  });
84354
84354
  if (result.error !== void 0) {
84355
- throw new import_platform4.PlatformError(result.error);
84355
+ throw new import_platform3.PlatformError(result.error);
84356
84356
  }
84357
84357
  return result;
84358
84358
  }
@@ -84368,7 +84368,7 @@ var require_rest = __commonJS({
84368
84368
  });
84369
84369
  if (!response.ok) {
84370
84370
  await this.checkRateLimits(response);
84371
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84371
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84372
84372
  }
84373
84373
  this.updateRateLimit(response);
84374
84374
  const value3 = await (0, import_utils22.extractJson)(response);
@@ -84392,13 +84392,13 @@ var require_rest = __commonJS({
84392
84392
  });
84393
84393
  if (!response.ok) {
84394
84394
  await this.checkRateLimits(response);
84395
- throw new import_platform4.PlatformError((0, import_platform4.unknownError)(response.statusText));
84395
+ throw new import_platform3.PlatformError((0, import_platform3.unknownError)(response.statusText));
84396
84396
  }
84397
84397
  this.updateRateLimit(response);
84398
84398
  return await (0, import_utils22.extractJson)(response);
84399
84399
  }, isRLE);
84400
84400
  if (result.error !== void 0) {
84401
- throw new import_platform4.PlatformError(result.error);
84401
+ throw new import_platform3.PlatformError(result.error);
84402
84402
  }
84403
84403
  return result;
84404
84404
  }
@@ -84781,11 +84781,11 @@ var require_client7 = __commonJS({
84781
84781
  throw new import_error.NetworkError(`Network error ${error2}`);
84782
84782
  }
84783
84783
  if (!response.ok) {
84784
- const text = await response.text();
84784
+ const text2 = await response.text();
84785
84785
  if (response.status === 404) {
84786
- throw new import_error.NotFoundError(text);
84786
+ throw new import_error.NotFoundError(text2);
84787
84787
  } else {
84788
- throw new import_error.StorageError(text);
84788
+ throw new import_error.StorageError(text2);
84789
84789
  }
84790
84790
  }
84791
84791
  return response;
@@ -84923,9 +84923,9 @@ var require_lib22 = __commonJS({
84923
84923
  default: () => index_default
84924
84924
  });
84925
84925
  module2.exports = __toCommonJS2(index_exports2);
84926
- var import_platform4 = require_lib();
84926
+ var import_platform3 = require_lib();
84927
84927
  var activityId = "activity";
84928
- var index_default = (0, import_platform4.plugin)(activityId, {
84928
+ var index_default = (0, import_platform3.plugin)(activityId, {
84929
84929
  mixin: {
84930
84930
  ActivityDoc: "",
84931
84931
  ActivityAttributeUpdatesPresenter: "",
@@ -85093,10 +85093,10 @@ var require_lib23 = __commonJS({
85093
85093
  default: () => index_default
85094
85094
  });
85095
85095
  module2.exports = __toCommonJS2(index_exports2);
85096
- var import_platform4 = require_lib();
85096
+ var import_platform3 = require_lib();
85097
85097
  __reExport2(index_exports2, require_analytics(), module2.exports);
85098
85098
  var attachmentId = "attachment";
85099
- var index_default = (0, import_platform4.plugin)(attachmentId, {
85099
+ var index_default = (0, import_platform3.plugin)(attachmentId, {
85100
85100
  component: {
85101
85101
  Attachments: "",
85102
85102
  Photos: "",
@@ -85178,9 +85178,9 @@ var require_lib24 = __commonJS({
85178
85178
  default: () => index_default
85179
85179
  });
85180
85180
  module2.exports = __toCommonJS2(index_exports2);
85181
- var import_platform4 = require_lib();
85181
+ var import_platform3 = require_lib();
85182
85182
  var boardId = "board";
85183
- var boards = (0, import_platform4.plugin)(boardId, {
85183
+ var boards = (0, import_platform3.plugin)(boardId, {
85184
85184
  app: {
85185
85185
  Board: ""
85186
85186
  },
@@ -85671,7 +85671,7 @@ var require_lib25 = __commonJS({
85671
85671
  default: () => index_default
85672
85672
  });
85673
85673
  module2.exports = __toCommonJS2(index_exports2);
85674
- var import_platform4 = require_lib();
85674
+ var import_platform3 = require_lib();
85675
85675
  __reExport2(index_exports2, require_utils11(), module2.exports);
85676
85676
  var AccessLevel4 = /* @__PURE__ */ ((AccessLevel22) => {
85677
85677
  AccessLevel22["FreeBusyReader"] = "freeBusyReader";
@@ -85683,7 +85683,7 @@ var require_lib25 = __commonJS({
85683
85683
  var calendarIntegrationKind = "google-calendar";
85684
85684
  var caldavIntegrationKind = "caldav";
85685
85685
  var calendarId = "calendar";
85686
- var calendarPlugin = (0, import_platform4.plugin)(calendarId, {
85686
+ var calendarPlugin = (0, import_platform3.plugin)(calendarId, {
85687
85687
  class: {
85688
85688
  Calendar: "",
85689
85689
  ExternalCalendar: "",
@@ -85882,11 +85882,11 @@ var require_lib26 = __commonJS({
85882
85882
  default: () => index_default
85883
85883
  });
85884
85884
  module2.exports = __toCommonJS2(index_exports2);
85885
- var import_platform4 = require_lib();
85885
+ var import_platform3 = require_lib();
85886
85886
  __reExport2(index_exports2, require_analytics2(), module2.exports);
85887
85887
  var cardId = "card";
85888
85888
  var DOMAIN_CARD = "card";
85889
- var cardPlugin2 = (0, import_platform4.plugin)(cardId, {
85889
+ var cardPlugin2 = (0, import_platform3.plugin)(cardId, {
85890
85890
  class: {
85891
85891
  Card: "",
85892
85892
  MasterTag: "",
@@ -86095,11 +86095,11 @@ var require_lib27 = __commonJS({
86095
86095
  default: () => index_default
86096
86096
  });
86097
86097
  module2.exports = __toCommonJS2(index_exports2);
86098
- var import_platform4 = require_lib();
86098
+ var import_platform3 = require_lib();
86099
86099
  __reExport2(index_exports2, require_utils12(), module2.exports);
86100
86100
  __reExport2(index_exports2, require_analytics3(), module2.exports);
86101
86101
  var chunterId = "chunter";
86102
- var index_default = (0, import_platform4.plugin)(chunterId, {
86102
+ var index_default = (0, import_platform3.plugin)(chunterId, {
86103
86103
  icon: {
86104
86104
  Chunter: "",
86105
86105
  Hashtag: "",
@@ -86588,7 +86588,7 @@ var require_utils13 = __commonJS({
86588
86588
  });
86589
86589
  module2.exports = __toCommonJS2(utils_exports);
86590
86590
  var import_core105 = require_lib5();
86591
- var import_platform4 = require_lib();
86591
+ var import_platform3 = require_lib();
86592
86592
  var import__ = __toESM2(require_lib28());
86593
86593
  var import_types15 = require_types9();
86594
86594
  var import_cache2 = __toESM2(require_cache4());
@@ -86732,7 +86732,7 @@ var require_utils13 = __commonJS({
86732
86732
  }
86733
86733
  __name(getLastName, "getLastName");
86734
86734
  function formatName2(name, lastNameFirst) {
86735
- const lastNameFirstCombined = lastNameFirst !== void 0 ? lastNameFirst === "true" : (0, import_platform4.getMetadata)(import__.default.metadata.LastNameFirst) === true;
86735
+ const lastNameFirstCombined = lastNameFirst !== void 0 ? lastNameFirst === "true" : (0, import_platform3.getMetadata)(import__.default.metadata.LastNameFirst) === true;
86736
86736
  return lastNameFirstCombined ? getLastName(name) + " " + getFirstName(name) : getFirstName(name) + " " + getLastName(name);
86737
86737
  }
86738
86738
  __name(formatName2, "formatName");
@@ -87274,7 +87274,7 @@ var require_avatar = __commonJS({
87274
87274
  getAvatarUrlInfo: () => getAvatarUrlInfo
87275
87275
  });
87276
87276
  module2.exports = __toCommonJS2(avatar_exports);
87277
- var import_platform4 = require_lib();
87277
+ var import_platform3 = require_lib();
87278
87278
  var import__ = __toESM2(require_lib28());
87279
87279
  var providers = /* @__PURE__ */ new Map();
87280
87280
  async function getAvatarProvider(client, providerId) {
@@ -87296,7 +87296,7 @@ var require_avatar = __commonJS({
87296
87296
  const avatarProviderId = (0, import__.getAvatarProviderId)(avatar.avatarType);
87297
87297
  const avatarProvider = avatarProviderId !== void 0 ? await getAvatarProvider(client, avatarProviderId) : void 0;
87298
87298
  if (avatarProvider !== void 0) {
87299
- const getUrlHandler = await (0, import_platform4.getResource)(avatarProvider.getUrl);
87299
+ const getUrlHandler = await (0, import_platform3.getResource)(avatarProvider.getUrl);
87300
87300
  ({ url: url4, srcSet, color } = await getUrlHandler(avatar, displayName, width));
87301
87301
  }
87302
87302
  }
@@ -87311,7 +87311,7 @@ var require_avatar = __commonJS({
87311
87311
  if (name == null) {
87312
87312
  return "";
87313
87313
  }
87314
- const lastFirst = (0, import_platform4.getMetadata)(import__.default.metadata.LastNameFirst) === true;
87314
+ const lastFirst = (0, import_platform3.getMetadata)(import__.default.metadata.LastNameFirst) === true;
87315
87315
  const fname = (0, import__.getFirstName)(name ?? "").trim()[0] ?? "";
87316
87316
  const lname = (0, import__.getLastName)(name ?? "").trim()[0] ?? "";
87317
87317
  return lastFirst ? lname + fname : fname + lname;
@@ -87350,7 +87350,7 @@ var require_lib28 = __commonJS({
87350
87350
  default: () => index_default
87351
87351
  });
87352
87352
  module2.exports = __toCommonJS2(index_exports2);
87353
- var import_platform4 = require_lib();
87353
+ var import_platform3 = require_lib();
87354
87354
  __reExport2(index_exports2, require_types9(), module2.exports);
87355
87355
  __reExport2(index_exports2, require_utils13(), module2.exports);
87356
87356
  __reExport2(index_exports2, require_analytics4(), module2.exports);
@@ -87363,7 +87363,7 @@ var require_lib28 = __commonJS({
87363
87363
  return AvatarType22;
87364
87364
  })(AvatarType3 || {});
87365
87365
  var contactId = "contact";
87366
- var contactPlugin = (0, import_platform4.plugin)(contactId, {
87366
+ var contactPlugin = (0, import_platform3.plugin)(contactId, {
87367
87367
  class: {
87368
87368
  AvatarProvider: "",
87369
87369
  ChannelProvider: "",
@@ -87598,9 +87598,9 @@ var require_plugin2 = __commonJS({
87598
87598
  documentPlugin: () => documentPlugin2
87599
87599
  });
87600
87600
  module2.exports = __toCommonJS2(plugin_exports);
87601
- var import_platform4 = require_lib();
87601
+ var import_platform3 = require_lib();
87602
87602
  var documentId = "document";
87603
- var documentPlugin2 = (0, import_platform4.plugin)(documentId, {
87603
+ var documentPlugin2 = (0, import_platform3.plugin)(documentId, {
87604
87604
  class: {
87605
87605
  Document: "",
87606
87606
  DocumentSnapshot: "",
@@ -87837,9 +87837,9 @@ var require_lib30 = __commonJS({
87837
87837
  inventoryId: () => inventoryId
87838
87838
  });
87839
87839
  module2.exports = __toCommonJS2(index_exports2);
87840
- var import_platform4 = require_lib();
87840
+ var import_platform3 = require_lib();
87841
87841
  var inventoryId = "inventory";
87842
- var inventory2 = (0, import_platform4.plugin)(inventoryId, {
87842
+ var inventory2 = (0, import_platform3.plugin)(inventoryId, {
87843
87843
  class: {
87844
87844
  Product: "",
87845
87845
  Category: "",
@@ -87947,10 +87947,10 @@ var require_plugin3 = __commonJS({
87947
87947
  roomAccessLabel: () => roomAccessLabel
87948
87948
  });
87949
87949
  module2.exports = __toCommonJS2(plugin_exports);
87950
- var import_platform4 = require_lib();
87950
+ var import_platform3 = require_lib();
87951
87951
  var import_types22 = require_types11();
87952
87952
  var loveId = "love";
87953
- var love2 = (0, import_platform4.plugin)(loveId, {
87953
+ var love2 = (0, import_platform3.plugin)(loveId, {
87954
87954
  class: {
87955
87955
  Room: "",
87956
87956
  Floor: "",
@@ -88444,13 +88444,13 @@ var require_lib32 = __commonJS({
88444
88444
  notificationId: () => notificationId
88445
88445
  });
88446
88446
  module2.exports = __toCommonJS2(index_exports2);
88447
- var import_platform4 = require_lib();
88447
+ var import_platform3 = require_lib();
88448
88448
  __reExport2(index_exports2, require_types12(), module2.exports);
88449
88449
  var DOMAIN_NOTIFICATION = "notification";
88450
88450
  var DOMAIN_DOC_NOTIFY = "notification-dnc";
88451
88451
  var DOMAIN_USER_NOTIFY = "notification-user";
88452
88452
  var notificationId = "notification";
88453
- var notification2 = (0, import_platform4.plugin)(notificationId, {
88453
+ var notification2 = (0, import_platform3.plugin)(notificationId, {
88454
88454
  mixin: {
88455
88455
  Collaborators: "",
88456
88456
  NotificationObjectPresenter: "",
@@ -88594,10 +88594,10 @@ var require_lib33 = __commonJS({
88594
88594
  preferenceId: () => preferenceId
88595
88595
  });
88596
88596
  module2.exports = __toCommonJS2(index_exports2);
88597
- var import_platform4 = require_lib();
88597
+ var import_platform3 = require_lib();
88598
88598
  var preferenceId = "preference";
88599
88599
  var DOMAIN_PREFERENCE = "preference";
88600
- var preference2 = (0, import_platform4.plugin)(preferenceId, {
88600
+ var preference2 = (0, import_platform3.plugin)(preferenceId, {
88601
88601
  class: {
88602
88602
  Preference: "",
88603
88603
  SpacePreference: ""
@@ -88643,7 +88643,7 @@ var require_lib34 = __commonJS({
88643
88643
  requestId: () => requestId2
88644
88644
  });
88645
88645
  module2.exports = __toCommonJS2(index_exports2);
88646
- var import_platform4 = require_lib();
88646
+ var import_platform3 = require_lib();
88647
88647
  var RequestStatus = /* @__PURE__ */ ((RequestStatus2) => {
88648
88648
  RequestStatus2["Active"] = "Active";
88649
88649
  RequestStatus2["Completed"] = "Completed";
@@ -88652,7 +88652,7 @@ var require_lib34 = __commonJS({
88652
88652
  return RequestStatus2;
88653
88653
  })(RequestStatus || {});
88654
88654
  var requestId2 = "request";
88655
- var request3 = (0, import_platform4.plugin)(requestId2, {
88655
+ var request3 = (0, import_platform3.plugin)(requestId2, {
88656
88656
  class: {
88657
88657
  Request: ""
88658
88658
  },
@@ -88740,10 +88740,10 @@ var require_lib35 = __commonJS({
88740
88740
  tagsId: () => tagsId
88741
88741
  });
88742
88742
  module2.exports = __toCommonJS2(index_exports2);
88743
- var import_platform4 = require_lib();
88743
+ var import_platform3 = require_lib();
88744
88744
  __reExport2(index_exports2, require_analytics7(), module2.exports);
88745
88745
  var tagsId = "tags";
88746
- var tagsPlugin = (0, import_platform4.plugin)(tagsId, {
88746
+ var tagsPlugin = (0, import_platform3.plugin)(tagsId, {
88747
88747
  class: {
88748
88748
  TagElement: "",
88749
88749
  TagReference: "",
@@ -90077,7 +90077,7 @@ var require_utils17 = __commonJS({
90077
90077
  });
90078
90078
  module2.exports = __toCommonJS2(utils_exports);
90079
90079
  var import_core105 = __toESM2(require_lib5());
90080
- var import_platform4 = require_lib();
90080
+ var import_platform3 = require_lib();
90081
90081
  var import__ = __toESM2(require_lib38());
90082
90082
  var import_rank7 = require_lib37();
90083
90083
  var import_rank22 = require_lib37();
@@ -90194,7 +90194,7 @@ var require_utils17 = __commonJS({
90194
90194
  {
90195
90195
  extends: categoryObj.baseClass,
90196
90196
  kind: import_core105.ClassifierKind.MIXIN,
90197
- label: (0, import_platform4.getEmbeddedLabel)(data.name),
90197
+ label: (0, import_platform3.getEmbeddedLabel)(data.name),
90198
90198
  icon: baseClassClass.icon
90199
90199
  },
90200
90200
  targetProjectClassId
@@ -90208,7 +90208,7 @@ var require_utils17 = __commonJS({
90208
90208
  async function updateProjectType(client, projectType, tasks) {
90209
90209
  const current = await client.findOne(import__.default.class.ProjectType, { _id: projectType });
90210
90210
  if (current === void 0) {
90211
- throw new import_platform4.PlatformError((0, import_platform4.unknownStatus)("No project type found"));
90211
+ throw new import_platform3.PlatformError((0, import_platform3.unknownStatus)("No project type found"));
90212
90212
  }
90213
90213
  const _tasks = [...current.tasks];
90214
90214
  const tasksData = /* @__PURE__ */ new Map();
@@ -90312,7 +90312,7 @@ var require_lib38 = __commonJS({
90312
90312
  taskId: () => taskId
90313
90313
  });
90314
90314
  module2.exports = __toCommonJS2(index_exports2);
90315
- var import_platform4 = require_lib();
90315
+ var import_platform3 = require_lib();
90316
90316
  __reExport2(index_exports2, require_utils17(), module2.exports);
90317
90317
  var TaskOrdering = /* @__PURE__ */ ((TaskOrdering2) => {
90318
90318
  TaskOrdering2["State"] = "state";
@@ -90322,7 +90322,7 @@ var require_lib38 = __commonJS({
90322
90322
  return TaskOrdering2;
90323
90323
  })(TaskOrdering || {});
90324
90324
  var taskId = "task";
90325
- var task2 = (0, import_platform4.plugin)(taskId, {
90325
+ var task2 = (0, import_platform3.plugin)(taskId, {
90326
90326
  app: {
90327
90327
  Tasks: ""
90328
90328
  },
@@ -90446,10 +90446,10 @@ var require_lib39 = __commonJS({
90446
90446
  templatesId: () => templatesId
90447
90447
  });
90448
90448
  module2.exports = __toCommonJS2(index_exports2);
90449
- var import_platform4 = require_lib();
90449
+ var import_platform3 = require_lib();
90450
90450
  var templateFieldRegexp3 = /\$\{(\S+?)}/gi;
90451
90451
  var templatesId = "templates";
90452
- var index_default = (0, import_platform4.plugin)(templatesId, {
90452
+ var index_default = (0, import_platform3.plugin)(templatesId, {
90453
90453
  class: {
90454
90454
  MessageTemplate: "",
90455
90455
  TemplateCategory: "",
@@ -90541,7 +90541,7 @@ var require_lib40 = __commonJS({
90541
90541
  timeId: () => timeId
90542
90542
  });
90543
90543
  module2.exports = __toCommonJS2(index_exports2);
90544
- var import_platform4 = require_lib();
90544
+ var import_platform3 = require_lib();
90545
90545
  __reExport2(index_exports2, require_analytics8(), module2.exports);
90546
90546
  var timeId = "time";
90547
90547
  var ToDoPriority2 = /* @__PURE__ */ ((ToDoPriority22) => {
@@ -90552,7 +90552,7 @@ var require_lib40 = __commonJS({
90552
90552
  ToDoPriority22[ToDoPriority22["Urgent"] = 4] = "Urgent";
90553
90553
  return ToDoPriority22;
90554
90554
  })(ToDoPriority2 || {});
90555
- var index_default = (0, import_platform4.plugin)(timeId, {
90555
+ var index_default = (0, import_platform3.plugin)(timeId, {
90556
90556
  component: {
90557
90557
  Me: "",
90558
90558
  Team: "",
@@ -90697,7 +90697,7 @@ var require_lib41 = __commonJS({
90697
90697
  trackerId: () => trackerId
90698
90698
  });
90699
90699
  module2.exports = __toCommonJS2(index_exports2);
90700
- var import_platform4 = require_lib();
90700
+ var import_platform3 = require_lib();
90701
90701
  __reExport2(index_exports2, require_analytics9(), module2.exports);
90702
90702
  __reExport2(index_exports2, require_analytics9(), module2.exports);
90703
90703
  var TimeReportDayType2 = /* @__PURE__ */ ((TimeReportDayType22) => {
@@ -90744,7 +90744,7 @@ var require_lib41 = __commonJS({
90744
90744
  return MilestoneStatus22;
90745
90745
  })(MilestoneStatus2 || {});
90746
90746
  var trackerId = "tracker";
90747
- var pluginState = (0, import_platform4.plugin)(trackerId, {
90747
+ var pluginState = (0, import_platform3.plugin)(trackerId, {
90748
90748
  class: {
90749
90749
  Project: "",
90750
90750
  Issue: "",
@@ -91045,11 +91045,11 @@ var require_lib42 = __commonJS({
91045
91045
  viewId: () => viewId
91046
91046
  });
91047
91047
  module2.exports = __toCommonJS2(index_exports2);
91048
- var import_platform4 = require_lib();
91048
+ var import_platform3 = require_lib();
91049
91049
  __reExport2(index_exports2, require_types14(), module2.exports);
91050
91050
  __reExport2(index_exports2, require_utils18(), module2.exports);
91051
91051
  var viewId = "view";
91052
- var view2 = (0, import_platform4.plugin)(viewId, {
91052
+ var view2 = (0, import_platform3.plugin)(viewId, {
91053
91053
  mixin: {
91054
91054
  ClassFilters: "",
91055
91055
  AttributeFilter: "",
@@ -107254,8 +107254,8 @@ var require_text = __commonJS({
107254
107254
  var debug = require_src()("body-parser:text");
107255
107255
  var read = require_read();
107256
107256
  var { normalizeOptions, passthrough: passthrough5 } = require_utils19();
107257
- module2.exports = text;
107258
- function text(options) {
107257
+ module2.exports = text2;
107258
+ function text2(options) {
107259
107259
  const normalizedOptions = normalizeOptions(options, "text/plain");
107260
107260
  return function textParser(req, res, next4) {
107261
107261
  read(req, res, next4, passthrough5, debug, normalizedOptions);
@@ -111422,11 +111422,11 @@ var require_dist57 = __commonJS({
111422
111422
  exports2.TokenData = TokenData;
111423
111423
  var PathError = class extends TypeError {
111424
111424
  constructor(message, originalPath) {
111425
- let text = message;
111425
+ let text2 = message;
111426
111426
  if (originalPath)
111427
- text += `: ${originalPath}`;
111428
- text += `; visit https://git.new/pathToRegexpError for info`;
111429
- super(text);
111427
+ text2 += `: ${originalPath}`;
111428
+ text2 += `; visit https://git.new/pathToRegexpError for info`;
111429
+ super(text2);
111430
111430
  this.originalPath = originalPath;
111431
111431
  }
111432
111432
  };
@@ -119437,7 +119437,7 @@ var require_core2 = __commonJS({
119437
119437
  errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
119438
119438
  if (!errors || errors.length === 0)
119439
119439
  return "No errors";
119440
- return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
119440
+ return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text2, msg) => text2 + separator + msg);
119441
119441
  }
119442
119442
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
119443
119443
  const rules = this.RULES.all;
@@ -130293,18 +130293,18 @@ var within = /* @__PURE__ */ dual(3, (self, path2, f) => {
130293
130293
  const nest = reduceRight(path2, f(unnest), (provider, name) => nested2(provider, name));
130294
130294
  return orElse4(nest, () => self);
130295
130295
  });
130296
- var splitPathString = (text, delim) => {
130297
- const split4 = text.split(new RegExp(`\\s*${escape2(delim)}\\s*`));
130296
+ var splitPathString = (text2, delim) => {
130297
+ const split4 = text2.split(new RegExp(`\\s*${escape2(delim)}\\s*`));
130298
130298
  return split4;
130299
130299
  };
130300
- var parsePrimitive = (text, path2, primitive3, delimiter, split4) => {
130300
+ var parsePrimitive = (text2, path2, primitive3, delimiter, split4) => {
130301
130301
  if (!split4) {
130302
- return pipe(primitive3.parse(text), mapBoth2({
130302
+ return pipe(primitive3.parse(text2), mapBoth2({
130303
130303
  onFailure: prefixed(path2),
130304
130304
  onSuccess: of
130305
130305
  }));
130306
130306
  }
130307
- return pipe(splitPathString(text, delimiter), forEachSequential((char2) => primitive3.parse(char2.trim())), mapError(prefixed(path2)));
130307
+ return pipe(splitPathString(text2, delimiter), forEachSequential((char2) => primitive3.parse(char2.trim())), mapError(prefixed(path2)));
130308
130308
  };
130309
130309
  var transpose = (array9) => {
130310
130310
  return Object.keys(array9[0]).map((column) => array9.map((row) => row[column]));
@@ -133114,14 +133114,14 @@ var structuredMessage = (u) => {
133114
133114
  }
133115
133115
  }
133116
133116
  };
133117
- var withColor = (text, ...colors2) => {
133117
+ var withColor = (text2, ...colors2) => {
133118
133118
  let out = "";
133119
133119
  for (let i = 0; i < colors2.length; i++) {
133120
133120
  out += `\x1B[${colors2[i]}m`;
133121
133121
  }
133122
- return out + text + "\x1B[0m";
133122
+ return out + text2 + "\x1B[0m";
133123
133123
  };
133124
- var withColorNoop = (text, ..._colors) => text;
133124
+ var withColorNoop = (text2, ..._colors) => text2;
133125
133125
  var colors = {
133126
133126
  bold: "1",
133127
133127
  red: "31",
@@ -142616,8 +142616,8 @@ var make45 = (bytes) => {
142616
142616
  redactedRegistry.set(secret3, bytes.map((byte) => String.fromCharCode(byte)).join(""));
142617
142617
  return secret3;
142618
142618
  };
142619
- var fromString3 = (text) => {
142620
- return make45(text.split("").map((char2) => char2.charCodeAt(0)));
142619
+ var fromString3 = (text2) => {
142620
+ return make45(text2.split("").map((char2) => char2.charCodeAt(0)));
142621
142621
  };
142622
142622
 
142623
142623
  // node_modules/.pnpm/effect@3.21.4/node_modules/effect/dist/esm/internal/config.js
@@ -142635,8 +142635,8 @@ var proto5 = {
142635
142635
  }
142636
142636
  };
142637
142637
  var boolean = (name) => {
142638
- const config3 = primitive("a boolean property", (text) => {
142639
- switch (text) {
142638
+ const config3 = primitive("a boolean property", (text2) => {
142639
+ switch (text2) {
142640
142640
  case "true":
142641
142641
  case "yes":
142642
142642
  case "on":
@@ -142650,7 +142650,7 @@ var boolean = (name) => {
142650
142650
  return right2(false);
142651
142651
  }
142652
142652
  default: {
142653
- const error2 = InvalidData([], `Expected a boolean value but received ${formatUnknown(text)}`);
142653
+ const error2 = InvalidData([], `Expected a boolean value but received ${formatUnknown(text2)}`);
142654
142654
  return left2(error2);
142655
142655
  }
142656
142656
  }
@@ -142658,17 +142658,17 @@ var boolean = (name) => {
142658
142658
  return name === void 0 ? config3 : nested3(config3, name);
142659
142659
  };
142660
142660
  var url = (name) => {
142661
- const config3 = primitive("an URL property", (text) => try_({
142662
- try: () => new URL(text),
142663
- catch: (_) => InvalidData([], `Expected an URL value but received ${formatUnknown(text)}`)
142661
+ const config3 = primitive("an URL property", (text2) => try_({
142662
+ try: () => new URL(text2),
142663
+ catch: (_) => InvalidData([], `Expected an URL value but received ${formatUnknown(text2)}`)
142664
142664
  }));
142665
142665
  return name === void 0 ? config3 : nested3(config3, name);
142666
142666
  };
142667
142667
  var port = (name) => {
142668
- const config3 = primitive("a network port property", (text) => {
142669
- const result = Number(text);
142670
- if (Number.isNaN(result) || result.toString() !== text.toString() || !Number.isInteger(result) || result < 1 || result > 65535) {
142671
- return left2(InvalidData([], `Expected a network port value but received ${formatUnknown(text)}`));
142668
+ const config3 = primitive("a network port property", (text2) => {
142669
+ const result = Number(text2);
142670
+ if (Number.isNaN(result) || result.toString() !== text2.toString() || !Number.isInteger(result) || result < 1 || result > 65535) {
142671
+ return left2(InvalidData([], `Expected a network port value but received ${formatUnknown(text2)}`));
142672
142672
  }
142673
142673
  return right2(result);
142674
142674
  });
@@ -142681,10 +142681,10 @@ var chunk2 = (config3, name) => {
142681
142681
  return map19(name === void 0 ? repeat2(config3) : nested3(repeat2(config3), name), unsafeFromArray);
142682
142682
  };
142683
142683
  var date = (name) => {
142684
- const config3 = primitive("a date property", (text) => {
142685
- const result = Date.parse(text);
142684
+ const config3 = primitive("a date property", (text2) => {
142685
+ const result = Date.parse(text2);
142686
142686
  if (Number.isNaN(result)) {
142687
- return left2(InvalidData([], `Expected a Date value but received ${formatUnknown(text)}`));
142687
+ return left2(InvalidData([], `Expected a Date value but received ${formatUnknown(text2)}`));
142688
142688
  }
142689
142689
  return right2(new Date(result));
142690
142690
  });
@@ -142698,20 +142698,20 @@ var fail9 = (message) => {
142698
142698
  return fail12;
142699
142699
  };
142700
142700
  var number4 = (name) => {
142701
- const config3 = primitive("a number property", (text) => {
142702
- const result = Number(text);
142701
+ const config3 = primitive("a number property", (text2) => {
142702
+ const result = Number(text2);
142703
142703
  if (Number.isNaN(result)) {
142704
- return left2(InvalidData([], `Expected a number value but received ${formatUnknown(text)}`));
142704
+ return left2(InvalidData([], `Expected a number value but received ${formatUnknown(text2)}`));
142705
142705
  }
142706
142706
  return right2(result);
142707
142707
  });
142708
142708
  return name === void 0 ? config3 : nested3(config3, name);
142709
142709
  };
142710
142710
  var integer = (name) => {
142711
- const config3 = primitive("an integer property", (text) => {
142712
- const result = Number(text);
142711
+ const config3 = primitive("an integer property", (text2) => {
142712
+ const result = Number(text2);
142713
142713
  if (!Number.isInteger(result)) {
142714
- return left2(InvalidData([], `Expected an integer value but received ${formatUnknown(text)}`));
142714
+ return left2(InvalidData([], `Expected an integer value but received ${formatUnknown(text2)}`));
142715
142715
  }
142716
142716
  return right2(result);
142717
142717
  });
@@ -142719,10 +142719,10 @@ var integer = (name) => {
142719
142719
  };
142720
142720
  var literal = (...literals) => (name) => {
142721
142721
  const valuesString = literals.map(String).join(", ");
142722
- const config3 = primitive(`one of (${valuesString})`, (text) => {
142723
- const found = literals.find((value3) => String(value3) === text);
142722
+ const config3 = primitive(`one of (${valuesString})`, (text2) => {
142723
+ const found = literals.find((value3) => String(value3) === text2);
142724
142724
  if (found === void 0) {
142725
- return left2(InvalidData([], `Expected one of (${valuesString}) but received ${formatUnknown(text)}`));
142725
+ return left2(InvalidData([], `Expected one of (${valuesString}) but received ${formatUnknown(text2)}`));
142726
142726
  }
142727
142727
  return right2(found);
142728
142728
  });
@@ -142801,7 +142801,7 @@ var repeat2 = (self) => {
142801
142801
  return repeat4;
142802
142802
  };
142803
142803
  var secret = (name) => {
142804
- const config3 = primitive("a secret property", (text) => right2(fromString3(text)));
142804
+ const config3 = primitive("a secret property", (text2) => right2(fromString3(text2)));
142805
142805
  return name === void 0 ? config3 : nested3(config3, name);
142806
142806
  };
142807
142807
  var redacted = (nameOrConfig) => {
@@ -142821,7 +142821,7 @@ var string2 = (name) => {
142821
142821
  return name === void 0 ? config3 : nested3(config3, name);
142822
142822
  };
142823
142823
  var nonEmptyString = (name) => {
142824
- const config3 = primitive("a non-empty text property", liftPredicate((text) => text.length > 0, () => MissingData([], "Expected a non-empty string")));
142824
+ const config3 = primitive("a non-empty text property", liftPredicate((text2) => text2.length > 0, () => MissingData([], "Expected a non-empty string")));
142825
142825
  return name === void 0 ? config3 : nested3(config3, name);
142826
142826
  };
142827
142827
  var all7 = (arg) => {
@@ -154285,9 +154285,8 @@ var HulyConfigService = class _HulyConfigService extends Context_exports.Tag("@h
154285
154285
  };
154286
154286
 
154287
154287
  // src/huly/client.ts
154288
- var import_api_client2 = __toESM(require_lib21(), 1);
154288
+ var import_api_client = __toESM(require_lib21(), 1);
154289
154289
  var import_core2 = __toESM(require_lib5(), 1);
154290
- var import_platform = __toESM(require_lib(), 1);
154291
154290
 
154292
154291
  // src/domain/schemas/shared.ts
154293
154292
  var MAX_LIMIT = 200;
@@ -158436,9 +158435,23 @@ var HulyDomainError = Schema_exports.Union(
158436
158435
  TemplateFieldCategoryIdentifierAmbiguousError
158437
158436
  );
158438
158437
 
158439
- // src/huly/operations/markup.ts
158440
- var import_text = __toESM(require_lib10(), 1);
158441
- var import_text_markdown = __toESM(require_lib18(), 1);
158438
+ // src/huly/huly-platform.ts
158439
+ var platform = require_lib();
158440
+ var PlatformError = platform.PlatformError;
158441
+
158442
+ // src/huly/huly-text-markdown.ts
158443
+ var textMarkdown = require_lib18();
158444
+ var markdownToMarkup = textMarkdown.markdownToMarkup;
158445
+ var markupToMarkdown = textMarkdown.markupToMarkdown;
158446
+
158447
+ // src/huly/huly-text.ts
158448
+ var text = require_lib10();
158449
+ var jsonToMarkup = text.jsonToMarkup;
158450
+ var htmlToJSON = text.htmlToJSON;
158451
+ var jsonToHTML = text.jsonToHTML;
158452
+ var MarkupMarkType = text.MarkupMarkType;
158453
+ var MarkupNodeType = text.MarkupNodeType;
158454
+ var markupToJSON = text.markupToJSON;
158442
158455
 
158443
158456
  // src/huly/operations/inline-comment-mark.ts
158444
158457
  var INLINE_COMMENT_MARK_TYPE = "inline-comment";
@@ -158446,7 +158459,7 @@ var isInlineCommentMark = (mark) => mark.type === INLINE_COMMENT_MARK_TYPE;
158446
158459
  var isMarkdownSerializableMark = (mark) => !isInlineCommentMark(mark);
158447
158460
 
158448
158461
  // src/huly/operations/markup.ts
158449
- var jsonAsMarkup = import_text.jsonToMarkup;
158462
+ var jsonAsMarkup = jsonToMarkup;
158450
158463
  var MARKDOWN_INPUT_REF_URL = "https://huly-mcp.invalid/no-reference-conversion";
158451
158464
  var markdownInputRefUrl = UrlString.make(MARKDOWN_INPUT_REF_URL);
158452
158465
  var markdownInputUrlConfig = (urls) => ({
@@ -158486,14 +158499,13 @@ var sanitizeNodeForMarkdown = (node) => {
158486
158499
  ...marks.marks === void 0 ? {} : { marks: marks.marks }
158487
158500
  };
158488
158501
  };
158489
- var markupNodeToMarkdownString = (node, urls, serialize2 = import_text_markdown.markupToMarkdown) => serialize2(sanitizeNodeForMarkdown(node), urls);
158502
+ var markupNodeToMarkdownString = (node, urls, serialize2 = markupToMarkdown) => serialize2(sanitizeNodeForMarkdown(node), urls);
158490
158503
  var markupToMarkdownString = (markup, urls) => {
158491
- const json3 = (0, import_text.markupToJSON)(markup);
158504
+ const json3 = markupToJSON(markup);
158492
158505
  return markupNodeToMarkdownString(json3, urls);
158493
158506
  };
158494
158507
  var markdownToMarkupString = (markdown, urls) => {
158495
- const json3 = (0, import_text_markdown.markdownToMarkup)(markdown, markdownInputUrlConfig(urls));
158496
- return jsonAsMarkup(json3);
158508
+ return markdownToMarkupStringWithHulyLinks(markdown, urls).markup;
158497
158509
  };
158498
158510
  var trimmedQueryValue = (query, name) => {
158499
158511
  const value3 = query.get(name);
@@ -158564,16 +158576,20 @@ var linkHref = (node) => {
158564
158576
  const href = linkMark?.attrs?.href;
158565
158577
  return typeof href === "string" ? href : void 0;
158566
158578
  };
158567
- var referenceNodeFromTextNode = (node, reference) => ({
158568
- type: import_text.MarkupNodeType.reference,
158569
- attrs: {
158570
- id: reference.id,
158571
- objectclass: reference.objectClass,
158572
- label: reference.label
158573
- }
158574
- });
158579
+ var referenceNodeFromTextNode = (node, reference) => {
158580
+ const nonLinkMarks = node.marks?.filter((mark) => mark.type !== MarkupMarkType.link);
158581
+ return {
158582
+ type: MarkupNodeType.reference,
158583
+ attrs: {
158584
+ id: reference.id,
158585
+ objectclass: reference.objectClass,
158586
+ label: reference.label
158587
+ },
158588
+ ...nonLinkMarks !== void 0 && nonLinkMarks.length > 0 ? { marks: nonLinkMarks } : {}
158589
+ };
158590
+ };
158575
158591
  var transformNativeReferenceLinks = (node, urls) => {
158576
- const href = node.type === import_text.MarkupNodeType.text ? linkHref(node) : void 0;
158592
+ const href = node.type === MarkupNodeType.text ? linkHref(node) : void 0;
158577
158593
  if (href !== void 0) {
158578
158594
  const parsed = parseNativeBrowseReferenceHref(href, urls);
158579
158595
  if (parsed._tag === "malformed") {
@@ -158587,7 +158603,7 @@ var transformNativeReferenceLinks = (node, urls) => {
158587
158603
  };
158588
158604
  }
158589
158605
  }
158590
- if (node.content === void 0) {
158606
+ if (!Array.isArray(node.content)) {
158591
158607
  return { node, malformedReferences: [], changed: false };
158592
158608
  }
158593
158609
  const transformed = node.content.map((child) => transformNativeReferenceLinks(child, urls));
@@ -158599,39 +158615,51 @@ var transformNativeReferenceLinks = (node, urls) => {
158599
158615
  };
158600
158616
  };
158601
158617
  var markdownToMarkupStringWithHulyLinks = (markdown, urls) => {
158602
- const json3 = (0, import_text_markdown.markdownToMarkup)(markdown, markdownInputUrlConfig(urls));
158603
- const transformed = transformNativeReferenceLinks(json3, urls);
158618
+ const json3 = markdownToMarkup(markdown, markdownInputUrlConfig(urls));
158619
+ const transformed = transformMarkupNodeNativeReferenceLinks(json3, urls);
158604
158620
  return {
158605
158621
  markup: jsonAsMarkup(transformed.node),
158606
158622
  malformedReferences: transformed.malformedReferences
158607
158623
  };
158608
158624
  };
158625
+ var transformMarkupNodeNativeReferenceLinks = (node, urls) => {
158626
+ const transformed = transformNativeReferenceLinks(node, urls);
158627
+ return {
158628
+ node: transformed.node,
158629
+ malformedReferences: transformed.malformedReferences
158630
+ };
158631
+ };
158609
158632
  var optionalMarkdownToMarkup = (md, urls, fallback = "") => md && md.trim() !== "" ? markdownToMarkupString(md, urls) : fallback;
158610
158633
  function optionalMarkupToMarkdown(markup, urls, fallback = "") {
158611
158634
  return markup === null || markup === void 0 ? fallback : markupToMarkdownString(markup, urls);
158612
158635
  }
158613
158636
 
158614
158637
  // src/huly/sdk-deps.ts
158615
- var import_account_client = __toESM(require_lib6(), 1);
158616
- var import_api_client = __toESM(require_lib21(), 1);
158617
- var import_collaborator_client = __toESM(require_lib8(), 1);
158618
- var import_text2 = __toESM(require_lib10(), 1);
158619
- var import_text_markdown2 = __toESM(require_lib18(), 1);
158638
+ var accountClient = require_lib6();
158639
+ var apiClient = require_lib21();
158640
+ var collaboratorClient = require_lib8();
158641
+ var createRestClient = apiClient.createRestClient;
158642
+ var createRestTxOperations = apiClient.createRestTxOperations;
158643
+ var createStorageClient = apiClient.createStorageClient;
158644
+ var getAccountClient = accountClient.getClient;
158645
+ var getCollaboratorClient = collaboratorClient.getClient;
158646
+ var getWorkspaceToken = apiClient.getWorkspaceToken;
158647
+ var loadServerConfig = apiClient.loadServerConfig;
158620
158648
  var HulySdk = class _HulySdk extends Context_exports.Tag("@hulymcp/HulySdk")() {
158621
158649
  static defaultLayer = Layer_exports.succeed(_HulySdk, {
158622
- createRestClient: import_api_client.createRestClient,
158623
- createRestTxOperations: import_api_client.createRestTxOperations,
158624
- createStorageClient: import_api_client.createStorageClient,
158625
- getAccountClient: import_account_client.getClient,
158626
- getCollaboratorClient: import_collaborator_client.getClient,
158627
- getWorkspaceToken: import_api_client.getWorkspaceToken,
158628
- htmlToJSON: import_text2.htmlToJSON,
158629
- jsonToHTML: import_text2.jsonToHTML,
158630
- jsonToMarkup: import_text2.jsonToMarkup,
158631
- loadServerConfig: import_api_client.loadServerConfig,
158632
- markdownToMarkup: import_text_markdown2.markdownToMarkup,
158633
- markupToJSON: import_text2.markupToJSON,
158634
- markupToMarkdown: import_text_markdown2.markupToMarkdown
158650
+ createRestClient,
158651
+ createRestTxOperations,
158652
+ createStorageClient,
158653
+ getAccountClient,
158654
+ getCollaboratorClient,
158655
+ getWorkspaceToken,
158656
+ htmlToJSON,
158657
+ jsonToHTML,
158658
+ jsonToMarkup,
158659
+ loadServerConfig,
158660
+ markdownToMarkup,
158661
+ markupToJSON,
158662
+ markupToMarkdown
158635
158663
  });
158636
158664
  };
158637
158665
 
@@ -158682,7 +158710,7 @@ var AUTH_STATUS_CODES = /* @__PURE__ */ new Set([
158682
158710
  "platform:status:AccountNotConfirmed"
158683
158711
  ]);
158684
158712
  var authToOptions = (auth, workspace2) => auth._tag === "token" ? { token: Redacted_exports.value(auth.token), workspace: workspace2 } : { email: auth.email, password: Redacted_exports.value(auth.password), workspace: workspace2 };
158685
- var isAuthError = (error2) => error2 instanceof import_platform.PlatformError && AUTH_STATUS_CODES.has(error2.status.code);
158713
+ var isAuthError = (error2) => error2 instanceof PlatformError && AUTH_STATUS_CODES.has(error2.status.code);
158686
158714
  var MAX_RETRIES = 2;
158687
158715
  var connectionRetrySchedule = Schedule_exports.exponential("100 millis").pipe(
158688
158716
  Schedule_exports.compose(Schedule_exports.recurs(MAX_RETRIES))
@@ -158709,10 +158737,6 @@ var connectWithRetry = (connect, errorPrefix) => withConnectionRetry(
158709
158737
  }
158710
158738
  })
158711
158739
  );
158712
- var markdownInputOptions = (opts) => ({
158713
- refUrl: MARKDOWN_INPUT_REF_URL,
158714
- imageUrl: opts.imageUrl
158715
- });
158716
158740
  function toInternalMarkup(value3, format7, opts, sdk) {
158717
158741
  switch (format7) {
158718
158742
  case "markup":
@@ -158720,7 +158744,9 @@ function toInternalMarkup(value3, format7, opts, sdk) {
158720
158744
  case "html":
158721
158745
  return sdk.jsonToMarkup(sdk.htmlToJSON(value3));
158722
158746
  case "markdown":
158723
- return sdk.jsonToMarkup(sdk.markdownToMarkup(value3, markdownInputOptions(opts)));
158747
+ return sdk.jsonToMarkup(
158748
+ transformMarkupNodeNativeReferenceLinks(sdk.markdownToMarkup(value3, markdownInputUrlConfig(opts)), opts).node
158749
+ );
158724
158750
  default:
158725
158751
  absurd(format7);
158726
158752
  throw new Error(`Invalid format: ${format7}`);
@@ -158906,8 +158932,8 @@ var HulyClient = class _HulyClient extends Context_exports.Tag("@hulymcp/HulyCli
158906
158932
  }
158907
158933
  };
158908
158934
  function createMarkupOps(url4, workspace2, token, collaboratorUrl, sdk) {
158909
- const refUrl = concatLink(url4, `/browse?workspace=${workspace2}`);
158910
- const imageUrl = concatLink(url4, `/files?workspace=${workspace2}&file=`);
158935
+ const refUrl = UrlString.make(concatLink(url4, `/browse?workspace=${workspace2}`));
158936
+ const imageUrl = UrlString.make(concatLink(url4, `/files?workspace=${workspace2}&file=`));
158911
158937
  const collaborator = sdk.getCollaboratorClient(workspace2, token, collaboratorUrl);
158912
158938
  return {
158913
158939
  refUrl,
@@ -158963,7 +158989,7 @@ var connectRestWithRetry = (config3, sdk) => connectWithRetry(() => connectRest(
158963
158989
  // src/huly/storage.ts
158964
158990
  var fs = __toESM(require("node:fs/promises"), 1);
158965
158991
  var path = __toESM(require("node:path"), 1);
158966
- var import_api_client3 = __toESM(require_lib21(), 1);
158992
+ var import_api_client2 = __toESM(require_lib21(), 1);
158967
158993
 
158968
158994
  // src/huly/operations/sdk-boundary.ts
158969
158995
  var toRef = (id) => id;
@@ -169337,10 +169363,10 @@ var McpErrorCode = {
169337
169363
  InternalError: -32603,
169338
169364
  ResourceNotFound: -32002
169339
169365
  };
169340
- var createErrorResponse = (text, errorCode, errorTag, warnings = []) => {
169366
+ var createErrorResponse = (text2, errorCode, errorTag, warnings = []) => {
169341
169367
  const warningContent = warnings.length > 0 ? [{ type: "text", text: encodeJsonText({ warnings }) }] : [];
169342
169368
  return {
169343
- content: [{ type: "text", text }, ...warningContent],
169369
+ content: [{ type: "text", text: text2 }, ...warningContent],
169344
169370
  isError: true,
169345
169371
  _meta: { errorCode, errorTag }
169346
169372
  };
@@ -169568,8 +169594,8 @@ var mapDomainCauseToMcp = (cause3, warnings = []) => {
169568
169594
  return createErrorResponse("An unexpected error occurred", McpErrorCode.InternalError, void 0, warnings);
169569
169595
  };
169570
169596
  var encodeJsonText = (value3) => {
169571
- const text = JSON.stringify(value3);
169572
- return typeof text === "string" ? text : "null";
169597
+ const text2 = JSON.stringify(value3);
169598
+ return typeof text2 === "string" ? text2 : "null";
169573
169599
  };
169574
169600
  var createSuccessResponse = (result, warnings = []) => ({
169575
169601
  content: [
@@ -170183,6 +170209,11 @@ var ToolWarningSchema = Schema_exports.Struct({
170183
170209
  description: "Warning surfaced to an agent when a tool result is intentionally degraded instead of failing."
170184
170210
  });
170185
170211
 
170212
+ // src/domain/schemas/document-native-references.ts
170213
+ var HULY_NATIVE_REFERENCE_MARKDOWN_INPUT = "Markdown links to current-workspace Huly browse URLs with _class, _id, and label become native Huly references; external URLs and other-workspace browse URLs stay normal links.";
170214
+ var DOCUMENT_NATIVE_REFERENCE_LINK_USAGE = "Use markdown links to current-workspace Huly browse URLs for native references; Huly browse links returned in get_document content round-trip as native references. The URL identifies the object; link text is display text; plain issue keys stay text.";
170215
+ var DOCUMENT_NATIVE_REFERENCE_TOOL_USAGE = `${DOCUMENT_NATIVE_REFERENCE_LINK_USAGE} External URLs stay normal markdown links.`;
170216
+
170186
170217
  // src/domain/schemas/approval-requests.ts
170187
170218
  var SdkOpenPayload = Schema_exports.Unknown.annotations({
170188
170219
  description: "Raw SDK-owned approval transaction payload passed through without inventing a closed MCP-side schema."
@@ -170191,7 +170222,7 @@ var ApprovalRequestPersonIdentifier = NonEmptyString2.annotations({
170191
170222
  description: "Person identifier for an approval participant. Prefer a raw Huly contact Person _id from read tools; exact email or exact display name are also accepted."
170192
170223
  });
170193
170224
  var ApprovalRequestBody = NonEmptyString2.annotations({
170194
- description: "Approval request comment body. Markdown is accepted and converted to Huly markup."
170225
+ description: `Approval request comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
170195
170226
  });
170196
170227
  var ApprovalRequestId = DocId.pipe(Schema_exports.brand("ApprovalRequestId")).annotations({
170197
170228
  identifier: "ApprovalRequestId",
@@ -171622,7 +171653,7 @@ var CreateBoardCardParamsSchema = Schema_exports.Struct({
171622
171653
  board: BoardRefSchema,
171623
171654
  title: BoardCardTitle.annotations({ description: "Board card title." }),
171624
171655
  description: Schema_exports.optional(Schema_exports.String.annotations({
171625
- description: "Board card description in markdown. Stored as inline Huly Markup."
171656
+ description: `Board card description in markdown. Stored as inline Huly Markup. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
171626
171657
  })),
171627
171658
  kind: Schema_exports.optional(TaskTypeRefSchema.annotations({
171628
171659
  description: "Board card task type _id or exact task type name. Omit to use the unambiguous board card task type for the board project type."
@@ -171663,7 +171694,9 @@ var UpdateBoardCardParamsSchema = Schema_exports.Struct({
171663
171694
  board: BoardRefSchema,
171664
171695
  card: BoardCardRefSchema,
171665
171696
  title: Schema_exports.optional(BoardCardTitle.annotations({ description: "New board card title." })),
171666
- description: Schema_exports.optional(clearableText("New board card description in markdown.")),
171697
+ description: Schema_exports.optional(
171698
+ clearableText(`New board card description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
171699
+ ),
171667
171700
  status: Schema_exports.optional(NonEmptyString2.annotations({
171668
171701
  description: "New workflow status _id or exact status name in the board project type."
171669
171702
  })),
@@ -172448,7 +172481,7 @@ var CreateCardParamsSchema = Schema_exports.Struct({
172448
172481
  description: "Card title"
172449
172482
  }),
172450
172483
  content: Schema_exports.optional(Schema_exports.String.annotations({
172451
- description: "Card content (markdown supported)"
172484
+ description: `Card content in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
172452
172485
  })),
172453
172486
  parent: Schema_exports.optional(CardIdentifier.annotations({
172454
172487
  description: "Parent card title or ID (for creating child cards)"
@@ -172468,7 +172501,7 @@ var UpdateCardParamsSchema = Schema_exports.Struct({
172468
172501
  title: Schema_exports.optional(NonEmptyString2.annotations({
172469
172502
  description: "New card title"
172470
172503
  })),
172471
- content: Schema_exports.optional(clearableText("New card content (markdown supported)."))
172504
+ content: Schema_exports.optional(clearableText(`New card content in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`))
172472
172505
  }).pipe(
172473
172506
  Schema_exports.filter(
172474
172507
  (params) => hasAtLeastOneDefined(params, UPDATE_CARD_FIELDS) ? void 0 : atLeastOneUpdateFieldMessage(UPDATE_CARD_FIELDS)
@@ -173214,7 +173247,7 @@ var CreateComponentParamsSchema = Schema_exports.Struct({
173214
173247
  description: "Component name/label"
173215
173248
  }),
173216
173249
  description: Schema_exports.optional(Schema_exports.String.annotations({
173217
- description: "Component description (markdown supported)"
173250
+ description: `Component description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
173218
173251
  })),
173219
173252
  lead: Schema_exports.optional(PersonRefInput.annotations({
173220
173253
  description: "Lead person email address or display name"
@@ -173238,7 +173271,9 @@ var UpdateComponentParamsSchema = Schema_exports.Struct({
173238
173271
  label: Schema_exports.optional(ComponentLabel.annotations({
173239
173272
  description: "New component name/label"
173240
173273
  })),
173241
- description: Schema_exports.optional(clearableText("New component description (markdown supported).")),
173274
+ description: Schema_exports.optional(
173275
+ clearableText(`New component description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
173276
+ ),
173242
173277
  lead: Schema_exports.optional(
173243
173278
  Schema_exports.NullOr(PersonRefInput).annotations({
173244
173279
  description: "New lead person email or display name (null to unassign)"
@@ -173589,7 +173624,7 @@ var ChildTemplateFieldsSchema = Schema_exports.Struct({
173589
173624
  description: "Child template title"
173590
173625
  }),
173591
173626
  description: Schema_exports.optional(Schema_exports.String.annotations({
173592
- description: "Child template description"
173627
+ description: `Child template description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
173593
173628
  })),
173594
173629
  priority: Schema_exports.optional(IssuePrioritySchema.annotations({
173595
173630
  description: "Child default priority"
@@ -173666,7 +173701,7 @@ var CreateIssueTemplateParamsSchema = Schema_exports.Struct({
173666
173701
  description: "Template title"
173667
173702
  }),
173668
173703
  description: Schema_exports.optional(Schema_exports.String.annotations({
173669
- description: "Template description (markdown supported)"
173704
+ description: `Template description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
173670
173705
  })),
173671
173706
  priority: Schema_exports.optional(IssuePrioritySchema.annotations({
173672
173707
  description: "Default priority for issues created from this template"
@@ -173700,7 +173735,7 @@ var CreateIssueFromTemplateParamsSchema = Schema_exports.Struct({
173700
173735
  description: "Override title (uses template title if not specified)"
173701
173736
  })),
173702
173737
  description: Schema_exports.optional(Schema_exports.String.annotations({
173703
- description: "Override description (uses template description if not specified)"
173738
+ description: `Override description in markdown (uses template description if not specified). ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
173704
173739
  })),
173705
173740
  priority: Schema_exports.optional(IssuePrioritySchema.annotations({
173706
173741
  description: "Override priority"
@@ -173736,7 +173771,9 @@ var UpdateIssueTemplateParamsSchema = Schema_exports.Struct({
173736
173771
  title: Schema_exports.optional(NonEmptyString2.annotations({
173737
173772
  description: "New template title"
173738
173773
  })),
173739
- description: Schema_exports.optional(clearableText("New template description (markdown supported).")),
173774
+ description: Schema_exports.optional(
173775
+ clearableText(`New template description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
173776
+ ),
173740
173777
  priority: Schema_exports.optional(IssuePrioritySchema.annotations({
173741
173778
  description: "New default priority"
173742
173779
  })),
@@ -173854,10 +173891,6 @@ var RemoveTemplateChildResultSchema = Schema_exports.Struct({
173854
173891
  var ListIssueTemplatesResultSchema = Schema_exports.Array(IssueTemplateSummarySchema);
173855
173892
  var GetIssueTemplateResultSchema = IssueTemplateSchema;
173856
173893
 
173857
- // src/domain/schemas/document-native-references.ts
173858
- var DOCUMENT_NATIVE_REFERENCE_LINK_USAGE = "Use markdown links to current-workspace Huly browse URLs for native references; Huly browse links returned in get_document content round-trip as native references. The URL identifies the object; link text is display text; plain issue keys stay text.";
173859
- var DOCUMENT_NATIVE_REFERENCE_TOOL_USAGE = `${DOCUMENT_NATIVE_REFERENCE_LINK_USAGE} External URLs stay normal markdown links.`;
173860
-
173861
173894
  // src/domain/schemas/document-snapshots.ts
173862
173895
  var DocumentSnapshotId = DocId.pipe(Schema_exports.brand("DocumentSnapshotId"));
173863
173896
  var DocumentSnapshotIdentifier = NonEmptyString2.pipe(Schema_exports.brand("DocumentSnapshotIdentifier"));
@@ -174023,7 +174056,7 @@ var CreateDocumentParamsSchema = Schema_exports.Struct({
174023
174056
  description: "Document title"
174024
174057
  }),
174025
174058
  content: Schema_exports.optional(Schema_exports.String.annotations({
174026
- description: "Document content (markdown supported)"
174059
+ description: `Document content in markdown. ${DOCUMENT_NATIVE_REFERENCE_TOOL_USAGE}`
174027
174060
  })),
174028
174061
  parent: Schema_exports.optional(DocumentIdentifier.annotations({
174029
174062
  description: "Parent document title or ID to nest this document under. If omitted, creates a top-level document."
@@ -174043,7 +174076,7 @@ var EditDocumentParamsBase = Schema_exports.Struct({
174043
174076
  description: "New document title"
174044
174077
  })),
174045
174078
  content: Schema_exports.optional(Schema_exports.String.annotations({
174046
- description: "Full replacement content (markdown). Mutually exclusive with old_text/new_text."
174079
+ description: `Full replacement content in markdown. Mutually exclusive with old_text/new_text. ${DOCUMENT_NATIVE_REFERENCE_TOOL_USAGE}`
174047
174080
  })),
174048
174081
  old_text: Schema_exports.optional(Schema_exports.String.annotations({
174049
174082
  description: "Exact text to find in the document. Must be non-empty. Mutually exclusive with content."
@@ -174347,7 +174380,7 @@ var AddCommentParamsSchema = Schema_exports.Struct({
174347
174380
  description: "Issue identifier (e.g., 'HULY-123' or just '123')"
174348
174381
  }),
174349
174382
  body: NonEmptyString2.annotations({
174350
- description: "Comment body (markdown supported)"
174383
+ description: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
174351
174384
  })
174352
174385
  }).annotations({
174353
174386
  title: "AddCommentParams",
@@ -174364,7 +174397,7 @@ var UpdateCommentParamsSchema = Schema_exports.Struct({
174364
174397
  description: "Comment ID to update"
174365
174398
  }),
174366
174399
  body: NonEmptyString2.annotations({
174367
- description: "New comment body (markdown supported)"
174400
+ description: `New comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
174368
174401
  })
174369
174402
  }).annotations({
174370
174403
  title: "UpdateCommentParams",
@@ -174470,7 +174503,7 @@ var CreateMilestoneParamsSchema = Schema_exports.Struct({
174470
174503
  description: "Milestone name/label"
174471
174504
  }),
174472
174505
  description: Schema_exports.optional(Schema_exports.String.annotations({
174473
- description: "Milestone description (markdown supported)"
174506
+ description: `Milestone description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
174474
174507
  })),
174475
174508
  targetDate: Timestamp.annotations({
174476
174509
  description: "Target date as Unix timestamp in milliseconds"
@@ -174495,7 +174528,9 @@ var UpdateMilestoneParamsSchema = Schema_exports.Struct({
174495
174528
  label: Schema_exports.optional(MilestoneLabel.annotations({
174496
174529
  description: "New milestone name/label"
174497
174530
  })),
174498
- description: Schema_exports.optional(clearableText("New milestone description (markdown supported).")),
174531
+ description: Schema_exports.optional(
174532
+ clearableText(`New milestone description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
174533
+ ),
174499
174534
  targetDate: Schema_exports.optional(Timestamp.annotations({
174500
174535
  description: "New target date as Unix timestamp in milliseconds"
174501
174536
  })),
@@ -174863,7 +174898,7 @@ var UpdateOrganizationParamsSchema = Schema_exports.Struct({
174863
174898
  ),
174864
174899
  description: Schema_exports.optional(
174865
174900
  Schema_exports.NullOr(Schema_exports.String).annotations({
174866
- description: "New description/notes (null to clear). Supports multi-line plain text."
174901
+ description: `New description/notes in markdown, or null to clear. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
174867
174902
  })
174868
174903
  )
174869
174904
  }).pipe(
@@ -175397,7 +175432,7 @@ var SendChannelMessageParamsSchema = Schema_exports.Struct({
175397
175432
  description: "Channel name or ID"
175398
175433
  }),
175399
175434
  body: NonEmptyString2.annotations({
175400
- description: "Message body (markdown supported)"
175435
+ description: `Message body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
175401
175436
  })
175402
175437
  }).annotations({
175403
175438
  title: "SendChannelMessageParams",
@@ -175411,7 +175446,7 @@ var UpdateChannelMessageParamsSchema = Schema_exports.Struct({
175411
175446
  description: "Message ID to update"
175412
175447
  }),
175413
175448
  body: NonEmptyString2.annotations({
175414
- description: "New message body (markdown supported)"
175449
+ description: `New message body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
175415
175450
  })
175416
175451
  }).annotations({
175417
175452
  title: "UpdateChannelMessageParams",
@@ -175472,7 +175507,7 @@ var AddThreadReplyParamsSchema = Schema_exports.Struct({
175472
175507
  description: "Parent message ID to reply to"
175473
175508
  }),
175474
175509
  body: NonEmptyString2.annotations({
175475
- description: "Reply body (markdown supported)"
175510
+ description: `Reply body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
175476
175511
  })
175477
175512
  }).annotations({
175478
175513
  title: "AddThreadReplyParams",
@@ -175489,7 +175524,7 @@ var UpdateThreadReplyParamsSchema = Schema_exports.Struct({
175489
175524
  description: "Thread reply ID to update"
175490
175525
  }),
175491
175526
  body: NonEmptyString2.annotations({
175492
- description: "New reply body (markdown supported)"
175527
+ description: `New reply body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
175493
175528
  })
175494
175529
  }).annotations({
175495
175530
  title: "UpdateThreadReplyParams",
@@ -176166,7 +176201,7 @@ var SendDmMessageParamsSchema = Schema_exports.Struct({
176166
176201
  description: "Direct-message conversation: either the DM `_id` or a participant display name (e.g. `Kerr,Shannon`). A participant name resolves only to a one-to-one DM with the authenticated account."
176167
176202
  }),
176168
176203
  body: NonEmptyString2.annotations({
176169
- description: "Message body (markdown supported)"
176204
+ description: `Message body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
176170
176205
  })
176171
176206
  }).annotations({
176172
176207
  title: "SendDmMessageParams",
@@ -176180,7 +176215,7 @@ var UpdateDmMessageParamsSchema = Schema_exports.Struct({
176180
176215
  description: "Message ID to update"
176181
176216
  }),
176182
176217
  body: NonEmptyString2.annotations({
176183
- description: "New message body (markdown supported)"
176218
+ description: `New message body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
176184
176219
  })
176185
176220
  }).annotations({
176186
176221
  title: "UpdateDmMessageParams",
@@ -176513,7 +176548,7 @@ var CreateEventParamsSchema = Schema_exports.Struct({
176513
176548
  description: "Event title"
176514
176549
  }),
176515
176550
  description: Schema_exports.optional(Schema_exports.String.annotations({
176516
- description: "Event description (markdown supported)"
176551
+ description: `Event description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
176517
176552
  })),
176518
176553
  date: Timestamp.annotations({
176519
176554
  description: "Start date/time (timestamp)"
@@ -176594,7 +176629,9 @@ var UpdateEventParamsSchema = Schema_exports.Struct({
176594
176629
  title: Schema_exports.optional(CalendarEventTitle.annotations({
176595
176630
  description: "New event title"
176596
176631
  })),
176597
- description: Schema_exports.optional(clearableText("New event description (markdown supported).")),
176632
+ description: Schema_exports.optional(
176633
+ clearableText(`New event description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
176634
+ ),
176598
176635
  date: Schema_exports.optional(Timestamp.annotations({
176599
176636
  description: "New start date/time (timestamp)"
176600
176637
  })),
@@ -176864,7 +176901,7 @@ var CreateRecurringEventParamsSchema = Schema_exports.Struct({
176864
176901
  description: "Event title"
176865
176902
  }),
176866
176903
  description: Schema_exports.optional(Schema_exports.String.annotations({
176867
- description: "Event description (markdown supported)"
176904
+ description: `Event description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
176868
176905
  })),
176869
176906
  startDate: Timestamp.annotations({
176870
176907
  description: "First occurrence start date/time (timestamp)"
@@ -177798,7 +177835,7 @@ var CreateTodoParamsSchema = Schema_exports.Struct({
177798
177835
  description: "ToDo title."
177799
177836
  }),
177800
177837
  description: Schema_exports.optional(Schema_exports.String.annotations({
177801
- description: "ToDo description in markdown."
177838
+ description: `ToDo description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
177802
177839
  })),
177803
177840
  owner: Schema_exports.optional(NonEmptyString2.annotations({
177804
177841
  description: "Owner exact email or display name. If omitted, uses the authenticated user."
@@ -177832,7 +177869,9 @@ var UpdateTodoParamsSchema = Schema_exports.Struct({
177832
177869
  title: Schema_exports.optional(TodoTitle.annotations({
177833
177870
  description: "New ToDo title."
177834
177871
  })),
177835
- description: Schema_exports.optional(clearableText("New ToDo description in markdown.")),
177872
+ description: Schema_exports.optional(
177873
+ clearableText(`New ToDo description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`)
177874
+ ),
177836
177875
  owner: Schema_exports.optional(NonEmptyString2.annotations({
177837
177876
  description: "New owner exact email or display name."
177838
177877
  })),
@@ -178434,7 +178473,7 @@ var AddActivityReplyParamsSchema = Schema_exports.Struct({
178434
178473
  description: "ID of the activity message to reply to."
178435
178474
  }),
178436
178475
  body: Schema_exports.NonEmptyString.annotations({
178437
- description: "Reply body in Markdown."
178476
+ description: `Reply body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
178438
178477
  })
178439
178478
  }).annotations({
178440
178479
  title: "AddActivityReplyParams",
@@ -178445,7 +178484,7 @@ var UpdateActivityReplyParamsSchema = Schema_exports.Struct({
178445
178484
  description: "ID of the reply activity message to update."
178446
178485
  }),
178447
178486
  body: Schema_exports.NonEmptyString.annotations({
178448
- description: "New reply body in Markdown."
178487
+ description: `New reply body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
178449
178488
  })
178450
178489
  }).annotations({
178451
178490
  title: "UpdateActivityReplyParams",
@@ -179796,7 +179835,7 @@ var CreateTestCaseParamsSchema = Schema_exports.Struct({
179796
179835
  }),
179797
179836
  description: Schema_exports.optional(
179798
179837
  Schema_exports.String.annotations({
179799
- description: "Test case description"
179838
+ description: `Test case description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
179800
179839
  })
179801
179840
  ),
179802
179841
  type: Schema_exports.optional(
@@ -179845,7 +179884,7 @@ var UpdateTestCaseParamsSchema = Schema_exports.Struct({
179845
179884
  ),
179846
179885
  description: Schema_exports.optional(
179847
179886
  Schema_exports.NullOr(Schema_exports.String).annotations({
179848
- description: "New description (null to clear)"
179887
+ description: `New test case description in markdown, or null to clear. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
179849
179888
  })
179850
179889
  ),
179851
179890
  type: Schema_exports.optional(
@@ -179971,8 +180010,12 @@ var planField = TestPlanIdentifier.annotations({ description: "Test plan ID or n
179971
180010
  var runField = TestRunIdentifier.annotations({ description: "Test run ID or name" });
179972
180011
  var resultField = TestResultIdentifier.annotations({ description: "Test result ID or name" });
179973
180012
  var nameField = NonEmptyString2.annotations({ description: "Name" });
179974
- var descField = Schema_exports.String.annotations({ description: "Description" });
179975
- var descNullField = Schema_exports.NullOr(Schema_exports.String).annotations({ description: "Description, or null to clear" });
180013
+ var descField = Schema_exports.String.annotations({
180014
+ description: `Description in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180015
+ });
180016
+ var descNullField = Schema_exports.NullOr(Schema_exports.String).annotations({
180017
+ description: `Description in markdown, or null to clear. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180018
+ });
179976
180019
  var assigneeField = NonEmptyString2.annotations({ description: "Assignee email or name" });
179977
180020
  var TestPlanSummarySchema = Schema_exports.Struct({
179978
180021
  id: TestPlanId,
@@ -180335,10 +180378,10 @@ var RecruitingSearchText = NonEmptyString2.annotations({
180335
180378
  description: "Non-empty case-insensitive search text."
180336
180379
  });
180337
180380
  var RecruitingMarkdownInput = NonEmptyString2.annotations({
180338
- description: "Non-empty markdown text converted to Huly rich-text markup."
180381
+ description: `Non-empty markdown text converted to Huly rich-text markup. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180339
180382
  });
180340
180383
  var RecruitingClearableMarkdownInput = Schema_exports.NullOr(RecruitingMarkdownInput).annotations({
180341
- description: "Non-empty markdown replacement text, or null to clear this rich-text field."
180384
+ description: `Non-empty markdown replacement text, or null to clear this rich-text field. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180342
180385
  });
180343
180386
  var RecruitingFreeTextInput = NonEmptyString2.annotations({
180344
180387
  description: "Non-empty free-form Recruiting text."
@@ -180729,7 +180772,7 @@ var ListRecruitingCommentsParamsSchema = Schema_exports.Struct({
180729
180772
  var AddRecruitingCommentParamsSchema = Schema_exports.Struct({
180730
180773
  target: RecruitingCommentTargetSchema,
180731
180774
  body: NonEmptyString2.annotations({
180732
- description: "Comment body. Markdown is supported."
180775
+ description: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180733
180776
  })
180734
180777
  });
180735
180778
  var UpdateRecruitingCommentParamsSchema = Schema_exports.Struct({
@@ -180738,7 +180781,7 @@ var UpdateRecruitingCommentParamsSchema = Schema_exports.Struct({
180738
180781
  description: "Comment ID. Must belong directly to the resolved Recruiting target."
180739
180782
  }),
180740
180783
  body: NonEmptyString2.annotations({
180741
- description: "New comment body. Markdown is supported."
180784
+ description: `New comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180742
180785
  })
180743
180786
  });
180744
180787
  var DeleteRecruitingCommentParamsSchema = Schema_exports.Struct({
@@ -180815,7 +180858,7 @@ var RemoveRecruitingRelatedIssueParamsSchema = AddRecruitingRelatedIssueParamsSc
180815
180858
  var RECRUITING_MEDIA_FIELD_DESCRIPTIONS = {
180816
180859
  target: "Recruiting target locator. Supported kinds depend on the tool: comments use vacancy/candidate/applicant/review/opinion; attachments use vacancy/candidate/applicant/opinion; activity uses vacancy/candidate/applicant/review; related issues use vacancy/candidate/applicant.",
180817
180860
  limit: `Maximum number of matching rows to return (default: ${DEFAULT_LIMIT}).`,
180818
- body: "Comment body. Markdown is supported.",
180861
+ body: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`,
180819
180862
  commentId: "Comment ID. Must belong directly to the resolved Recruiting target.",
180820
180863
  attachmentId: "Attachment ID. Must belong directly to the resolved Recruiting target.",
180821
180864
  filename: "Name of the file to attach to the Recruiting object.",
@@ -180931,7 +180974,7 @@ var CreateRecruitingVacancyParamsSchema = Schema_exports.Struct({
180931
180974
  description: "Non-empty short vacancy summary."
180932
180975
  })),
180933
180976
  fullDescription: Schema_exports.optional(RecruitingOptionalTextInput.annotations({
180934
- description: "Non-empty full vacancy description uploaded as collaborative markup."
180977
+ description: `Non-empty full vacancy description uploaded as collaborative markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180935
180978
  })),
180936
180979
  type: Schema_exports.optional(NonEmptyString2.annotations({
180937
180980
  description: "Vacancy type ID or exact type name. Defaults to Huly's Default vacancy type."
@@ -180964,7 +181007,7 @@ var UpdateRecruitingVacancyParamsSchema = Schema_exports.Struct({
180964
181007
  description: "Non-empty replacement short vacancy summary."
180965
181008
  })),
180966
181009
  fullDescription: Schema_exports.optional(RecruitingClearableTextInput.annotations({
180967
- description: "Non-empty replacement full vacancy description, or null to clear."
181010
+ description: `Non-empty replacement full vacancy description in markdown, or null to clear. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
180968
181011
  })),
180969
181012
  type: Schema_exports.optional(NonEmptyString2.annotations({
180970
181013
  description: "Replacement vacancy type ID or exact type name."
@@ -181549,7 +181592,7 @@ var AddDriveFileCommentParamsSchema = Schema_exports.Struct({
181549
181592
  drive: DriveIdentifier,
181550
181593
  ...DriveFileLocatorFields,
181551
181594
  body: NonEmptyString2.annotations({
181552
- description: "Comment body. Markdown is supported."
181595
+ description: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
181553
181596
  })
181554
181597
  }).pipe(
181555
181598
  Schema_exports.filter(requireOneDriveFileLocator),
@@ -181562,7 +181605,7 @@ var UpdateDriveFileCommentParamsSchema = Schema_exports.Struct({
181562
181605
  description: "Drive file comment id to update."
181563
181606
  }),
181564
181607
  body: NonEmptyString2.annotations({
181565
- description: "New comment body. Markdown is supported."
181608
+ description: `New comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
181566
181609
  })
181567
181610
  }).pipe(
181568
181611
  Schema_exports.filter(requireOneDriveFileLocator),
@@ -181640,7 +181683,7 @@ var parseDeleteDriveFileCommentParams = Schema_exports.decodeUnknown(DeleteDrive
181640
181683
  var parseListDriveFileActivityParams = Schema_exports.decodeUnknown(ListDriveFileActivityParamsSchema);
181641
181684
 
181642
181685
  // src/version.ts
181643
- var VERSION = true ? "0.44.1" : "0.0.0-dev";
181686
+ var VERSION = true ? "0.44.2" : "0.0.0-dev";
181644
181687
 
181645
181688
  // src/mcp/json-schema-refs.ts
181646
181689
  var isJsonObject = (value3) => typeof value3 === "object" && value3 !== null && !Array.isArray(value3);
@@ -183015,6 +183058,10 @@ var renderMarkdownWithNativeReferencesForWrite = (content, urls, fieldName) => {
183015
183058
  rendered: { markup: rendered.markup, format: "markup" }
183016
183059
  };
183017
183060
  };
183061
+ var renderMarkdownPreservingNativeReferences = (content, urls) => ({
183062
+ markup: markdownToMarkupStringWithHulyLinks(content, urls).markup,
183063
+ format: "markup"
183064
+ });
183018
183065
 
183019
183066
  // src/huly/operations/document-native-references.ts
183020
183067
  var renderDocumentContentForWrite = (content) => Effect_exports.gen(function* () {
@@ -183197,24 +183244,24 @@ var editDocument = (params) => Effect_exports.gen(function* () {
183197
183244
  }
183198
183245
  return { id: DocumentId.make(doc._id), updated: true, url: url4 };
183199
183246
  });
183200
- var countOccurrences = (text, search) => {
183247
+ var countOccurrences = (text2, search) => {
183201
183248
  let count4 = 0;
183202
- let pos = text.indexOf(search);
183249
+ let pos = text2.indexOf(search);
183203
183250
  while (pos !== -1) {
183204
183251
  count4++;
183205
- pos = text.indexOf(search, pos + search.length);
183252
+ pos = text2.indexOf(search, pos + search.length);
183206
183253
  }
183207
183254
  return count4;
183208
183255
  };
183209
183256
 
183210
183257
  // src/huly/operations/documents-inline-comments.ts
183211
183258
  var import_core18 = __toESM(require_lib5(), 1);
183212
- var import_text4 = __toESM(require_lib10(), 1);
183259
+ var import_text2 = __toESM(require_lib10(), 1);
183213
183260
 
183214
183261
  // src/huly/operations/markup-traversal.ts
183215
- var import_text3 = __toESM(require_lib10(), 1);
183262
+ var import_text = __toESM(require_lib10(), 1);
183216
183263
  var traverseAllMarks = (root, visit) => {
183217
- (0, import_text3.traverseAllMarks)(root, (node, mark) => {
183264
+ (0, import_text.traverseAllMarks)(root, (node, mark) => {
183218
183265
  visit(node, mark);
183219
183266
  });
183220
183267
  };
@@ -183226,11 +183273,11 @@ var extractInlineComments = (root) => {
183226
183273
  if (!isInlineCommentMark(mark)) return;
183227
183274
  const threadId = mark.attrs?.thread;
183228
183275
  if (typeof threadId !== "string" || threadId === "") return;
183229
- const text = textNode.text ?? "";
183276
+ const text2 = textNode.text ?? "";
183230
183277
  if (!threadMap.has(threadId)) {
183231
183278
  threadMap.set(threadId, []);
183232
183279
  }
183233
- threadMap.get(threadId)?.push(text);
183280
+ threadMap.get(threadId)?.push(text2);
183234
183281
  });
183235
183282
  return [...threadMap.entries()].map(([threadId, textFragments]) => ({
183236
183283
  threadId,
@@ -183252,7 +183299,7 @@ var listInlineComments = (params) => Effect_exports.gen(function* () {
183252
183299
  if (rawMarkup === void 0) {
183253
183300
  return { comments: [], total: listTotal(0) };
183254
183301
  }
183255
- const root = (0, import_text4.markupToJSON)(rawMarkup);
183302
+ const root = (0, import_text2.markupToJSON)(rawMarkup);
183256
183303
  const extracted = extractInlineComments(root);
183257
183304
  if (extracted.length === 0) {
183258
183305
  return { comments: [], total: listTotal(0) };
@@ -184178,7 +184225,7 @@ var activityTools = [
184178
184225
  defineTool(
184179
184226
  {
184180
184227
  name: "add_activity_reply",
184181
- description: "Add a Markdown reply to any activity message.",
184228
+ description: "Add a Markdown reply to any activity message. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
184182
184229
  category: CATEGORY,
184183
184230
  inputSchema: addActivityReplyParamsJsonSchema,
184184
184231
  resultSchema: AddActivityReplyResultSchema
@@ -184189,7 +184236,7 @@ var activityTools = [
184189
184236
  defineTool(
184190
184237
  {
184191
184238
  name: "update_activity_reply",
184192
- description: "Update a generic activity reply body.",
184239
+ description: "Update a generic activity reply body. Body supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
184193
184240
  category: CATEGORY,
184194
184241
  inputSchema: updateActivityReplyParamsJsonSchema,
184195
184242
  resultSchema: UpdateActivityReplyResultSchema
@@ -184700,7 +184747,7 @@ var approvalRequestTools = [
184700
184747
  defineTool(
184701
184748
  {
184702
184749
  name: "add_approval_request_comment",
184703
- description: "Add a plain markdown comment to an approval Request by request _id. This does not approve, reject, cancel, or create a decision comment mixin.",
184750
+ description: "Add a plain markdown comment to an approval Request by request _id. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " This does not approve, reject, cancel, or create a decision comment mixin.",
184704
184751
  category: CATEGORY2,
184705
184752
  inputSchema: addApprovalRequestCommentParamsJsonSchema,
184706
184753
  resultSchema: ApprovalRequestMutationResultSchema
@@ -184711,7 +184758,7 @@ var approvalRequestTools = [
184711
184758
  defineTool(
184712
184759
  {
184713
184760
  name: "approve_approval_request",
184714
- description: "Approve an active approval Request as the current Huly user. The current user's Employee/Person ref must be in the request's requested list. Optionally attach a markdown decision comment before approval. If the current user already approved it, returns changed=false.",
184761
+ description: "Approve an active approval Request as the current Huly user. The current user's Employee/Person ref must be in the request's requested list. Optionally attach a markdown decision comment before approval. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " If the current user already approved it, returns changed=false.",
184715
184762
  category: CATEGORY2,
184716
184763
  inputSchema: approveApprovalRequestParamsJsonSchema,
184717
184764
  resultSchema: ApprovalRequestMutationResultSchema,
@@ -184723,7 +184770,7 @@ var approvalRequestTools = [
184723
184770
  defineTool(
184724
184771
  {
184725
184772
  name: "reject_approval_request",
184726
- description: "Reject an active approval Request as the current Huly user and attach the required markdown rejection decision comment. Huly applies rejectedTx when present.",
184773
+ description: "Reject an active approval Request as the current Huly user and attach the required markdown rejection decision comment. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Huly applies rejectedTx when present.",
184727
184774
  category: CATEGORY2,
184728
184775
  inputSchema: rejectApprovalRequestParamsJsonSchema,
184729
184776
  resultSchema: ApprovalRequestMutationResultSchema,
@@ -186521,7 +186568,7 @@ var boardTools = [
186521
186568
  defineTool(
186522
186569
  {
186523
186570
  name: "create_board_card",
186524
- description: "Create a board card with safe defaults. Resolves kind/status from the board project type, increments the CARD-number sequence, and stores markdown description as inline Huly Markup.",
186571
+ description: "Create a board card with safe defaults. Resolves kind/status from the board project type, increments the CARD-number sequence, and stores markdown description as inline Huly Markup. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
186525
186572
  category: CATEGORY4,
186526
186573
  inputSchema: createBoardCardParamsJsonSchema,
186527
186574
  resultSchema: CreateBoardCardResultSchema
@@ -186532,7 +186579,7 @@ var boardTools = [
186532
186579
  defineTool(
186533
186580
  {
186534
186581
  name: "update_board_card",
186535
- description: "Update board card fields: title, markdown description, status, assignee, members, location, cover, startDate, and dueDate. Use null to clear clearable fields.",
186582
+ description: "Update board card fields: title, markdown description, status, assignee, members, location, cover, startDate, and dueDate. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Use null to clear clearable fields.",
186536
186583
  category: CATEGORY4,
186537
186584
  inputSchema: updateBoardCardParamsJsonSchema,
186538
186585
  resultSchema: BoardCardMutationResultSchema
@@ -186865,13 +186912,17 @@ var buildParticipants = (client, participantRefs) => Effect_exports.gen(function
186865
186912
  var resolveEventInputs = (client, params, eventClass, eventId) => Effect_exports.gen(function* () {
186866
186913
  const calendarRef = yield* resolveCalendarRef(client, params.calendarId, params.calendarName);
186867
186914
  const participantRefs = Array_exports.isNonEmptyReadonlyArray(params.participants ?? []) ? yield* resolveParticipantLocators(client, params.participants) : [];
186868
- const descriptionRef = params.description && params.description.trim() !== "" ? yield* client.uploadMarkup(
186869
- eventClass,
186870
- toRef(eventId),
186871
- "description",
186872
- params.description,
186873
- "markdown"
186874
- ) : null;
186915
+ const description = params.description;
186916
+ const descriptionRef = description !== void 0 && description.trim() !== "" ? yield* Effect_exports.gen(function* () {
186917
+ const rendered = renderMarkdownPreservingNativeReferences(description, client.markupUrlConfig);
186918
+ return yield* client.uploadMarkup(
186919
+ eventClass,
186920
+ toRef(eventId),
186921
+ "description",
186922
+ rendered.markup,
186923
+ rendered.format
186924
+ );
186925
+ }) : null;
186875
186926
  return { calendarRef, participantRefs, descriptionRef };
186876
186927
  });
186877
186928
 
@@ -187643,16 +187694,17 @@ var updateEvent = (params) => Effect_exports.gen(function* () {
187643
187694
  if (params.description === null || params.description.trim() === "") {
187644
187695
  return { description: emptyEventDescription };
187645
187696
  }
187697
+ const rendered = renderMarkdownPreservingNativeReferences(params.description, client.markupUrlConfig);
187646
187698
  if (event.description) {
187647
- yield* client.updateMarkup(calendar.class.Event, event._id, "description", params.description, "markdown");
187699
+ yield* client.updateMarkup(calendar.class.Event, event._id, "description", rendered.markup, rendered.format);
187648
187700
  return {};
187649
187701
  }
187650
187702
  const descriptionRef = yield* client.uploadMarkup(
187651
187703
  calendar.class.Event,
187652
187704
  event._id,
187653
187705
  "description",
187654
- params.description,
187655
- "markdown"
187706
+ rendered.markup,
187707
+ rendered.format
187656
187708
  );
187657
187709
  return { description: markupRefAsDescription(descriptionRef) };
187658
187710
  }),
@@ -187783,7 +187835,7 @@ var calendarTools = [
187783
187835
  defineTool(
187784
187836
  {
187785
187837
  name: "create_event",
187786
- description: "Create a new calendar event. Description supports markdown formatting. Optional calendarId targets a specific calendar; when omitted, the event uses the authenticated user's primary personal calendar. Returns the created event ID.",
187838
+ description: "Create a new calendar event. Description supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Optional calendarId targets a specific calendar; when omitted, the event uses the authenticated user's primary personal calendar. Returns the created event ID.",
187787
187839
  category: CATEGORY5,
187788
187840
  inputSchema: createEventParamsJsonSchema,
187789
187841
  resultSchema: CreateEventResultSchema
@@ -187794,7 +187846,7 @@ var calendarTools = [
187794
187846
  defineTool(
187795
187847
  {
187796
187848
  name: "update_event",
187797
- description: "Update fields on an existing calendar event. Only provided fields are modified. Description updates support markdown.",
187849
+ description: "Update fields on an existing calendar event. Only provided fields are modified. Description updates support markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
187798
187850
  category: CATEGORY5,
187799
187851
  inputSchema: updateEventParamsJsonSchema,
187800
187852
  resultSchema: UpdateEventResultSchema
@@ -187882,7 +187934,7 @@ var calendarTools = [
187882
187934
  defineTool(
187883
187935
  {
187884
187936
  name: "create_recurring_event",
187885
- description: "Create a new recurring calendar event with RFC5545 RRULE rules. Description supports markdown. Optional calendarId targets a specific calendar; when omitted, the event uses the authenticated user's primary personal calendar. Returns the created event ID.",
187937
+ description: "Create a new recurring calendar event with RFC5545 RRULE rules. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Optional calendarId targets a specific calendar; when omitted, the event uses the authenticated user's primary personal calendar. Returns the created event ID.",
187886
187938
  category: CATEGORY5,
187887
187939
  inputSchema: createRecurringEventParamsJsonSchema,
187888
187940
  resultSchema: CreateRecurringEventResultSchema
@@ -188616,12 +188668,13 @@ var createCard = (params) => Effect_exports.gen(function* () {
188616
188668
  { sort: { rank: import_core37.SortingOrder.Descending } }
188617
188669
  );
188618
188670
  const rank = (0, import_rank4.makeRank)(lastCard?.rank, void 0);
188671
+ const renderedContent = renderMarkdownPreservingNativeReferences(params.content ?? "", client.markupUrlConfig);
188619
188672
  const contentMarkupRef = yield* client.uploadMarkup(
188620
188673
  masterTag._id,
188621
188674
  cardId,
188622
188675
  "content",
188623
- params.content ?? "",
188624
- "markdown"
188676
+ renderedContent.markup,
188677
+ renderedContent.format
188625
188678
  );
188626
188679
  const parentParam = params.parent;
188627
188680
  const { parentInfo, parentRef } = parentParam !== void 0 ? yield* Effect_exports.gen(function* () {
@@ -188672,16 +188725,17 @@ var updateCard = (params) => Effect_exports.gen(function* () {
188672
188725
  content: Effect_exports.gen(function* () {
188673
188726
  if (params.content === void 0) return {};
188674
188727
  const content = clearTextAsEmptyString(params.content);
188728
+ const renderedContent = renderMarkdownPreservingNativeReferences(content, client.markupUrlConfig);
188675
188729
  if (card.content) {
188676
- yield* client.updateMarkup(card._class, card._id, "content", content, "markdown");
188730
+ yield* client.updateMarkup(card._class, card._id, "content", renderedContent.markup, renderedContent.format);
188677
188731
  return {};
188678
188732
  }
188679
188733
  const contentMarkupRef = yield* client.uploadMarkup(
188680
188734
  card._class,
188681
188735
  card._id,
188682
188736
  "content",
188683
- content,
188684
- "markdown"
188737
+ renderedContent.markup,
188738
+ renderedContent.format
188685
188739
  );
188686
188740
  return { content: contentMarkupRef };
188687
188741
  })
@@ -188760,7 +188814,7 @@ var cardTools = [
188760
188814
  defineTool(
188761
188815
  {
188762
188816
  name: "create_card",
188763
- description: "Create a new card in a Huly card space. Requires a master tag (card type). Content supports markdown formatting. Returns the created card id.",
188817
+ description: "Create a new card in a Huly card space. Requires a master tag (card type). Content supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Returns the created card id.",
188764
188818
  category: CATEGORY6,
188765
188819
  inputSchema: createCardParamsJsonSchema,
188766
188820
  resultSchema: CreateCardResultSchema
@@ -188771,7 +188825,7 @@ var cardTools = [
188771
188825
  defineTool(
188772
188826
  {
188773
188827
  name: "update_card",
188774
- description: "Update fields on an existing Huly card. Only provided fields are modified. Content updates support markdown.",
188828
+ description: "Update fields on an existing Huly card. Only provided fields are modified. Content updates support markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
188775
188829
  category: CATEGORY6,
188776
188830
  inputSchema: updateCardParamsJsonSchema,
188777
188831
  resultSchema: UpdateCardResultSchema
@@ -189402,7 +189456,7 @@ var channelTools = [
189402
189456
  defineTool(
189403
189457
  {
189404
189458
  name: "send_channel_message",
189405
- description: "Send a message to a Huly channel. Message body supports markdown formatting.",
189459
+ description: "Send a message to a Huly channel. Message body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189406
189460
  category: CATEGORY8,
189407
189461
  inputSchema: sendChannelMessageParamsJsonSchema,
189408
189462
  resultSchema: SendChannelMessageResultSchema
@@ -189413,7 +189467,7 @@ var channelTools = [
189413
189467
  defineTool(
189414
189468
  {
189415
189469
  name: "update_channel_message",
189416
- description: "Update a channel message. Only the body can be modified.",
189470
+ description: "Update a channel message. Only the body can be modified; body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189417
189471
  category: CATEGORY8,
189418
189472
  inputSchema: updateChannelMessageParamsJsonSchema,
189419
189473
  resultSchema: UpdateChannelMessageResultSchema
@@ -189468,7 +189522,7 @@ var channelTools = [
189468
189522
  defineTool(
189469
189523
  {
189470
189524
  name: "send_dm_message",
189471
- description: "Send a message to a direct-message conversation. The `dm` argument accepts either the DM `_id` or a participant display name; a name resolves only to a one-to-one DM with the authenticated account. Message body supports markdown formatting.",
189525
+ description: "Send a message to a direct-message conversation. The `dm` argument accepts either the DM `_id` or a participant display name; a name resolves only to a one-to-one DM with the authenticated account. Message body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189472
189526
  category: CATEGORY8,
189473
189527
  inputSchema: sendDmMessageParamsJsonSchema,
189474
189528
  resultSchema: SendDmMessageResultSchema
@@ -189479,7 +189533,7 @@ var channelTools = [
189479
189533
  defineTool(
189480
189534
  {
189481
189535
  name: "update_dm_message",
189482
- description: "Update a direct-message message. The `dm` argument accepts either the DM `_id` or a participant display name; a name resolves only to a one-to-one DM with the authenticated account. Only the body can be modified.",
189536
+ description: "Update a direct-message message. The `dm` argument accepts either the DM `_id` or a participant display name; a name resolves only to a one-to-one DM with the authenticated account. Only the body can be modified; body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189483
189537
  category: CATEGORY8,
189484
189538
  inputSchema: updateDmMessageParamsJsonSchema,
189485
189539
  resultSchema: UpdateDmMessageResultSchema
@@ -189512,7 +189566,7 @@ var channelTools = [
189512
189566
  defineTool(
189513
189567
  {
189514
189568
  name: "add_thread_reply",
189515
- description: "Add a reply to a message thread. Reply body supports markdown formatting.",
189569
+ description: "Add a reply to a message thread. Reply body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189516
189570
  category: CATEGORY8,
189517
189571
  inputSchema: addThreadReplyParamsJsonSchema,
189518
189572
  resultSchema: AddThreadReplyResultSchema
@@ -189523,7 +189577,7 @@ var channelTools = [
189523
189577
  defineTool(
189524
189578
  {
189525
189579
  name: "update_thread_reply",
189526
- description: "Update a thread reply. Only the body can be modified.",
189580
+ description: "Update a thread reply. Only the body can be modified; body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189527
189581
  category: CATEGORY8,
189528
189582
  inputSchema: updateThreadReplyParamsJsonSchema,
189529
189583
  resultSchema: UpdateThreadReplyResultSchema
@@ -189915,7 +189969,7 @@ var commentTools = [
189915
189969
  defineTool(
189916
189970
  {
189917
189971
  name: "add_comment",
189918
- description: "Add a comment to a Huly issue. Comment body supports markdown formatting.",
189972
+ description: "Add a comment to a Huly issue. Comment body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189919
189973
  category: CATEGORY10,
189920
189974
  inputSchema: addCommentParamsJsonSchema,
189921
189975
  resultSchema: AddCommentResultSchema
@@ -189926,7 +189980,7 @@ var commentTools = [
189926
189980
  defineTool(
189927
189981
  {
189928
189982
  name: "update_comment",
189929
- description: "Update an existing comment on a Huly issue. Comment body supports markdown formatting.",
189983
+ description: "Update an existing comment on a Huly issue. Comment body supports markdown formatting. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
189930
189984
  category: CATEGORY10,
189931
189985
  inputSchema: updateCommentParamsJsonSchema,
189932
189986
  resultSchema: UpdateCommentResultSchema
@@ -190396,8 +190450,15 @@ var updateOrganization = (params) => Effect_exports.gen(function* () {
190396
190450
  if (params.description === null || params.description === "") {
190397
190451
  return { description: null };
190398
190452
  }
190453
+ const rendered = renderMarkdownPreservingNativeReferences(params.description, client.markupUrlConfig);
190399
190454
  if (org.description !== null) {
190400
- yield* client.updateMarkup(contact.class.Organization, org._id, "description", params.description, "markdown");
190455
+ yield* client.updateMarkup(
190456
+ contact.class.Organization,
190457
+ org._id,
190458
+ "description",
190459
+ rendered.markup,
190460
+ rendered.format
190461
+ );
190401
190462
  return {};
190402
190463
  }
190403
190464
  return {
@@ -190405,8 +190466,8 @@ var updateOrganization = (params) => Effect_exports.gen(function* () {
190405
190466
  contact.class.Organization,
190406
190467
  org._id,
190407
190468
  "description",
190408
- params.description,
190409
- "markdown"
190469
+ rendered.markup,
190470
+ rendered.format
190410
190471
  )
190411
190472
  };
190412
190473
  })
@@ -190901,7 +190962,7 @@ var contactTools = [
190901
190962
  defineTool(
190902
190963
  {
190903
190964
  name: "update_organization",
190904
- description: "Update fields on an existing organization identified by ID or exact name when that name is unique. Only provided fields are modified. Description supports multi-line plain text and is the right place to store CRM notes / revenue summaries / context. Pass null to clear city or description. If multiple organizations share the same name, use the organization ID.",
190965
+ description: "Update fields on an existing organization identified by ID or exact name when that name is unique. Only provided fields are modified. Description supports markdown for CRM notes / revenue summaries / context. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Pass null to clear city or description. If multiple organizations share the same name, use the organization ID.",
190905
190966
  category: CATEGORY11,
190906
190967
  inputSchema: updateOrganizationParamsJsonSchema,
190907
190968
  resultSchema: UpdateOrganizationResultSchema
@@ -193052,7 +193113,7 @@ var driveTools = [
193052
193113
  defineCombinedTool(
193053
193114
  {
193054
193115
  name: "add_drive_file_comment",
193055
- description: "Add a Markdown comment to a Drive file resolved by filePath or fileId. Provide only one locator. The comment is attached directly to the file.",
193116
+ description: "Add a Markdown comment to a Drive file resolved by filePath or fileId. Provide only one locator. The comment is attached directly to the file. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
193056
193117
  category: CATEGORY16,
193057
193118
  inputSchema: addDriveFileCommentParamsJsonSchema,
193058
193119
  annotations: { idempotentHint: false, destructiveHint: false },
@@ -193064,7 +193125,7 @@ var driveTools = [
193064
193125
  defineCombinedTool(
193065
193126
  {
193066
193127
  name: "update_drive_file_comment",
193067
- description: "Update a comment on a Drive file resolved by filePath or fileId. Provide only one locator. Idempotent when the comment body is unchanged.",
193128
+ description: "Update a comment on a Drive file resolved by filePath or fileId. Provide only one locator. Idempotent when the comment body is unchanged. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
193068
193129
  category: CATEGORY16,
193069
193130
  inputSchema: updateDriveFileCommentParamsJsonSchema,
193070
193131
  annotations: { idempotentHint: true, destructiveHint: false },
@@ -194477,7 +194538,7 @@ var INVENTORY_MEDIA_FIELD_DESCRIPTIONS = {
194477
194538
  description: "Optional media description. Use null on update to clear it.",
194478
194539
  pinned: "Whether the media item should be pinned.",
194479
194540
  commentId: "Product comment ID. Must belong directly to the resolved inventory product.",
194480
- body: "Comment body. Markdown is supported."
194541
+ body: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
194481
194542
  };
194482
194543
  var inventoryMediaJsonSchema = (schema) => withJsonSchemaPropertyDescriptions(JSONSchema_exports.make(schema), INVENTORY_MEDIA_FIELD_DESCRIPTIONS);
194483
194544
  var withExactlyOneInventoryMediaFileSource = (schema) => withExactlyOneRequired(schema, INVENTORY_MEDIA_FILE_SOURCE_FIELDS);
@@ -194640,7 +194701,7 @@ var ListInventoryProductCommentsParamsSchema = Schema_exports.Struct({
194640
194701
  var AddInventoryProductCommentParamsSchema = Schema_exports.Struct({
194641
194702
  ...ProductLocatorFields,
194642
194703
  body: NonEmptyString2.annotations({
194643
- description: "Comment body. Markdown is supported."
194704
+ description: `Comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
194644
194705
  })
194645
194706
  }).annotations({
194646
194707
  title: "AddInventoryProductCommentParams",
@@ -194652,7 +194713,7 @@ var UpdateInventoryProductCommentParamsSchema = Schema_exports.Struct({
194652
194713
  description: "Product comment ID to update."
194653
194714
  }),
194654
194715
  body: NonEmptyString2.annotations({
194655
- description: "New comment body. Markdown is supported."
194716
+ description: `New comment body in markdown. ${HULY_NATIVE_REFERENCE_MARKDOWN_INPUT}`
194656
194717
  })
194657
194718
  }).annotations({
194658
194719
  title: "UpdateInventoryProductCommentParams",
@@ -195949,7 +196010,7 @@ var inventoryMediaTools = [
195949
196010
  defineTool(
195950
196011
  {
195951
196012
  name: "add_inventory_product_comment",
195952
- description: "Add a Markdown comment directly to an inventory product resolved by product ID or exact name. Pass category to disambiguate duplicate names.",
196013
+ description: "Add a Markdown comment directly to an inventory product resolved by product ID or exact name. Pass category to disambiguate duplicate names. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
195953
196014
  category: CATEGORY18,
195954
196015
  inputSchema: addInventoryProductCommentParamsJsonSchema,
195955
196016
  resultSchema: AddInventoryProductCommentResultSchema
@@ -195960,7 +196021,7 @@ var inventoryMediaTools = [
195960
196021
  defineTool(
195961
196022
  {
195962
196023
  name: "update_inventory_product_comment",
195963
- description: "Update a comment attached directly to an inventory product. The commentId must belong to the resolved product.",
196024
+ description: "Update a comment attached directly to an inventory product. The commentId must belong to the resolved product. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
195964
196025
  category: CATEGORY18,
195965
196026
  inputSchema: updateInventoryProductCommentParamsJsonSchema,
195966
196027
  resultSchema: UpdateInventoryProductCommentResultSchema
@@ -197606,7 +197667,7 @@ var issueComponentTools = [
197606
197667
  defineTool(
197607
197668
  {
197608
197669
  name: "create_component",
197609
- description: "Create a new component in a Huly project. Components help organize issues by area/feature. Returns the created component ID and label.",
197670
+ description: "Create a new component in a Huly project. Components help organize issues by area/feature. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Returns the created component ID and label.",
197610
197671
  category: CATEGORY20,
197611
197672
  inputSchema: createComponentParamsJsonSchema,
197612
197673
  resultSchema: CreateComponentResultSchema
@@ -197617,7 +197678,7 @@ var issueComponentTools = [
197617
197678
  defineTool(
197618
197679
  {
197619
197680
  name: "update_component",
197620
- description: "Update fields on an existing Huly component. Only provided fields are modified.",
197681
+ description: "Update fields on an existing Huly component. Only provided fields are modified. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
197621
197682
  category: CATEGORY20,
197622
197683
  inputSchema: updateComponentParamsJsonSchema,
197623
197684
  resultSchema: UpdateComponentResultSchema
@@ -197766,7 +197827,7 @@ var issueTools = [
197766
197827
  defineTool(
197767
197828
  {
197768
197829
  name: "create_issue_template",
197769
- description: "Create a new issue template in a Huly project. Templates define default values for new issues. Optionally include children (sub-task templates) that will become sub-issues when creating issues from this template. Returns the created template ID and title.",
197830
+ description: "Create a new issue template in a Huly project. Templates define default values for new issues. Template and child descriptions support markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Optionally include children (sub-task templates) that will become sub-issues when creating issues from this template. Returns the created template ID and title.",
197770
197831
  category: CATEGORY21,
197771
197832
  inputSchema: createIssueTemplateParamsJsonSchema,
197772
197833
  resultSchema: CreateIssueTemplateResultSchema
@@ -197777,7 +197838,7 @@ var issueTools = [
197777
197838
  defineTool(
197778
197839
  {
197779
197840
  name: "create_issue_from_template",
197780
- description: "Create a new issue from a template. Applies template defaults, allowing overrides for specific fields. If the template has children (sub-task templates), sub-issues are created automatically unless includeChildren is set to false. Returns the created issue identifier and count of children created.",
197841
+ description: "Create a new issue from a template. Applies template defaults, allowing overrides for specific fields. Description override supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " If the template has children (sub-task templates), sub-issues are created automatically unless includeChildren is set to false. Returns the created issue identifier and count of children created.",
197781
197842
  category: CATEGORY21,
197782
197843
  inputSchema: createIssueFromTemplateParamsJsonSchema,
197783
197844
  resultSchema: CreateIssueFromTemplateResultSchema
@@ -197788,7 +197849,7 @@ var issueTools = [
197788
197849
  defineTool(
197789
197850
  {
197790
197851
  name: "update_issue_template",
197791
- description: "Update fields on an existing Huly issue template. Only provided fields are modified.",
197852
+ description: "Update fields on an existing Huly issue template. Only provided fields are modified. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
197792
197853
  category: CATEGORY21,
197793
197854
  inputSchema: updateIssueTemplateParamsJsonSchema,
197794
197855
  resultSchema: UpdateIssueTemplateResultSchema
@@ -197810,7 +197871,7 @@ var issueTools = [
197810
197871
  defineTool(
197811
197872
  {
197812
197873
  name: "add_template_child",
197813
- description: "Add a child (sub-task) template to an issue template. The child defines default values for sub-issues created when using create_issue_from_template. Returns the child template ID.",
197874
+ description: "Add a child (sub-task) template to an issue template. The child defines default values for sub-issues created when using create_issue_from_template. Child description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Returns the child template ID.",
197814
197875
  category: CATEGORY21,
197815
197876
  inputSchema: addTemplateChildParamsJsonSchema,
197816
197877
  resultSchema: AddTemplateChildResultSchema
@@ -198721,12 +198782,13 @@ var createMilestone = (params) => Effect_exports.gen(function* () {
198721
198782
  milestoneId
198722
198783
  );
198723
198784
  if (params.description !== void 0 && params.description.trim() !== "") {
198785
+ const rendered = renderMarkdownPreservingNativeReferences(params.description, client.markupUrlConfig);
198724
198786
  yield* client.uploadMarkup(
198725
198787
  tracker.class.Milestone,
198726
198788
  milestoneId,
198727
198789
  "description",
198728
- params.description,
198729
- "markdown"
198790
+ rendered.markup,
198791
+ rendered.format
198730
198792
  );
198731
198793
  }
198732
198794
  return { id: MilestoneId.make(milestoneId), label: MilestoneLabel.make(params.label) };
@@ -198741,12 +198803,13 @@ var updateMilestone = (params) => Effect_exports.gen(function* () {
198741
198803
  if (params.description === void 0) return {};
198742
198804
  const description = textContentOrClear(params.description);
198743
198805
  if (description !== void 0) {
198806
+ const rendered = renderMarkdownPreservingNativeReferences(description, client.markupUrlConfig);
198744
198807
  yield* client.uploadMarkup(
198745
198808
  tracker.class.Milestone,
198746
198809
  milestone._id,
198747
198810
  "description",
198748
- description,
198749
- "markdown"
198811
+ rendered.markup,
198812
+ rendered.format
198750
198813
  );
198751
198814
  }
198752
198815
  return {
@@ -198814,7 +198877,7 @@ var milestoneTools = [
198814
198877
  defineTool(
198815
198878
  {
198816
198879
  name: "create_milestone",
198817
- description: "Create a new milestone in a Huly project. Returns the created milestone ID and label.",
198880
+ description: "Create a new milestone in a Huly project. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Returns the created milestone ID and label.",
198818
198881
  category: CATEGORY25,
198819
198882
  inputSchema: createMilestoneParamsJsonSchema,
198820
198883
  resultSchema: CreateMilestoneResultSchema
@@ -198825,7 +198888,7 @@ var milestoneTools = [
198825
198888
  defineTool(
198826
198889
  {
198827
198890
  name: "update_milestone",
198828
- description: "Update fields on an existing Huly milestone. Only provided fields are modified.",
198891
+ description: "Update fields on an existing Huly milestone. Only provided fields are modified. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
198829
198892
  category: CATEGORY25,
198830
198893
  inputSchema: updateMilestoneParamsJsonSchema,
198831
198894
  resultSchema: UpdateMilestoneResultSchema
@@ -199959,7 +200022,8 @@ var detailFromTodo = (client, todo) => Effect_exports.gen(function* () {
199959
200022
  });
199960
200023
  var uploadTodoDescription = (client, objectClass, todoId, description) => Effect_exports.gen(function* () {
199961
200024
  if (description === void 0 || description.trim() === "") return "";
199962
- const ref = yield* client.uploadMarkup(objectClass, todoId, "description", description, "markdown");
200025
+ const rendered = renderMarkdownPreservingNativeReferences(description, client.markupUrlConfig);
200026
+ const ref = yield* client.uploadMarkup(objectClass, todoId, "description", rendered.markup, rendered.format);
199963
200027
  return markupRefAsTodoDescription(ref);
199964
200028
  });
199965
200029
  var createPersonalTodo = (client, params, owner, todoId, description, rank) => {
@@ -200066,11 +200130,18 @@ var updateTodo = (params) => Effect_exports.gen(function* () {
200066
200130
  yield* Effect_exports.gen(function* () {
200067
200131
  if (params.description === void 0) return {};
200068
200132
  if (params.description === null || params.description.trim() === "") return { description: "" };
200133
+ const rendered = renderMarkdownPreservingNativeReferences(params.description, client.markupUrlConfig);
200069
200134
  if (todo.description) {
200070
- yield* client.updateMarkup(time.class.ToDo, todo._id, "description", params.description, "markdown");
200135
+ yield* client.updateMarkup(time.class.ToDo, todo._id, "description", rendered.markup, rendered.format);
200071
200136
  return {};
200072
200137
  }
200073
- const ref = yield* client.uploadMarkup(time.class.ToDo, todo._id, "description", params.description, "markdown");
200138
+ const ref = yield* client.uploadMarkup(
200139
+ time.class.ToDo,
200140
+ todo._id,
200141
+ "description",
200142
+ rendered.markup,
200143
+ rendered.format
200144
+ );
200074
200145
  return { description: markupRefAsTodoDescription(ref) };
200075
200146
  })
200076
200147
  ];
@@ -200194,7 +200265,7 @@ var plannerTools = [
200194
200265
  defineTool(
200195
200266
  {
200196
200267
  name: "create_todo",
200197
- description: "Create a Planner ToDo. Omit attachedTo for a personal ToDo, or pass attachedTo.type=issue with project and identifier for an issue action item. Omit owner to use the authenticated user.",
200268
+ description: "Create a Planner ToDo. Omit attachedTo for a personal ToDo, or pass attachedTo.type=issue with project and identifier for an issue action item. Omit owner to use the authenticated user. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
200198
200269
  category: CATEGORY27,
200199
200270
  inputSchema: createTodoParamsJsonSchema,
200200
200271
  resultSchema: CreateTodoResultSchema
@@ -200205,7 +200276,7 @@ var plannerTools = [
200205
200276
  defineTool(
200206
200277
  {
200207
200278
  name: "update_todo",
200208
- description: "Update a Planner ToDo by human locator or raw todoId. Supports title, markdown description, owner, dueDate including null to clear, priority, and visibility.",
200279
+ description: "Update a Planner ToDo by human locator or raw todoId. Supports title, markdown description, owner, dueDate including null to clear, priority, and visibility. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
200209
200280
  category: CATEGORY27,
200210
200281
  inputSchema: updateTodoParamsJsonSchema,
200211
200282
  resultSchema: UpdateTodoResultSchema
@@ -200445,9 +200516,9 @@ var preferenceTools = [
200445
200516
  var import_core71 = __toESM(require_lib5(), 1);
200446
200517
 
200447
200518
  // src/huly/process-plugin.ts
200448
- var import_platform2 = __toESM(require_lib(), 1);
200519
+ var import_platform = __toESM(require_lib(), 1);
200449
200520
  var processId = "process";
200450
- var processPlugin = (0, import_platform2.plugin)(processId, {
200521
+ var processPlugin = (0, import_platform.plugin)(processId, {
200451
200522
  class: {
200452
200523
  Process: "",
200453
200524
  Execution: "",
@@ -201869,10 +201940,17 @@ var companySummary = (client, company) => company === void 0 ? Effect_exports.su
201869
201940
  client.findOne(contact.class.Organization, { _id: company }),
201870
201941
  (org) => org === void 0 ? void 0 : { id: DocId.make(org._id), name: org.name }
201871
201942
  );
201872
- var uploadFullDescription = (client, vacancyId, fullDescription) => fullDescription === void 0 || fullDescription.trim() === "" ? Effect_exports.succeed(null) : Effect_exports.map(
201873
- client.uploadMarkup(recruitIds.class.Vacancy, vacancyId, "fullDescription", fullDescription, "markdown"),
201874
- markupRefAsBlobRef
201875
- );
201943
+ var uploadFullDescription = (client, vacancyId, fullDescription) => fullDescription === void 0 || fullDescription.trim() === "" ? Effect_exports.succeed(null) : Effect_exports.gen(function* () {
201944
+ const rendered = renderMarkdownPreservingNativeReferences(fullDescription, client.markupUrlConfig);
201945
+ const ref = yield* client.uploadMarkup(
201946
+ recruitIds.class.Vacancy,
201947
+ vacancyId,
201948
+ "fullDescription",
201949
+ rendered.markup,
201950
+ rendered.format
201951
+ );
201952
+ return markupRefAsBlobRef(ref);
201953
+ });
201876
201954
  var fetchFullDescription = (client, vacancy) => vacancy.fullDescription === null ? Effect_exports.succeed(void 0) : client.fetchMarkup(
201877
201955
  recruitIds.class.Vacancy,
201878
201956
  vacancy._id,
@@ -202513,7 +202591,7 @@ var recruitingExtendedTools = [
202513
202591
  defineTool(
202514
202592
  {
202515
202593
  name: "create_recruiting_review",
202516
- description: "Create a Recruiting review/interview like the Huly UI: increments RVE sequence, attaches to the candidate reviews collection, stores markdown description as Huly markup, defaults dueDate to 30 minutes after date, and recruit-enables the person if needed.",
202594
+ description: "Create a Recruiting review/interview like the Huly UI: increments RVE sequence, attaches to the candidate reviews collection, stores markdown description as Huly markup, defaults dueDate to 30 minutes after date, and recruit-enables the person if needed. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
202517
202595
  category: CATEGORY32,
202518
202596
  inputSchema: createRecruitingReviewParamsJsonSchema,
202519
202597
  resultSchema: RecruitingReviewMutationResultSchema
@@ -202524,7 +202602,7 @@ var recruitingExtendedTools = [
202524
202602
  defineTool(
202525
202603
  {
202526
202604
  name: "update_recruiting_review",
202527
- description: "Update a Recruiting review. review accepts raw _id, RVE-<number>, number, or exact title; candidate/applicationContext only disambiguate. Pass null for description, verdict, application, company, or location to clear.",
202605
+ description: "Update a Recruiting review. review accepts raw _id, RVE-<number>, number, or exact title; candidate/applicationContext only disambiguate. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Pass null for description, verdict, application, company, or location to clear.",
202528
202606
  category: CATEGORY32,
202529
202607
  inputSchema: updateRecruitingReviewParamsJsonSchema,
202530
202608
  resultSchema: RecruitingReviewMutationResultSchema
@@ -202569,7 +202647,7 @@ var recruitingExtendedTools = [
202569
202647
  defineTool(
202570
202648
  {
202571
202649
  name: "create_recruiting_opinion",
202572
- description: "Create a Recruiting opinion on one review. Increments the OPE sequence, attaches to the review opinions collection, and stores markdown description as Huly markup.",
202650
+ description: "Create a Recruiting opinion on one review. Increments the OPE sequence, attaches to the review opinions collection, and stores markdown description as Huly markup. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
202573
202651
  category: CATEGORY32,
202574
202652
  inputSchema: createRecruitingOpinionParamsJsonSchema,
202575
202653
  resultSchema: RecruitingOpinionMutationResultSchema
@@ -202580,7 +202658,7 @@ var recruitingExtendedTools = [
202580
202658
  defineTool(
202581
202659
  {
202582
202660
  name: "update_recruiting_opinion",
202583
- description: "Update a Recruiting opinion value and/or markdown description. opinion accepts raw _id, OPE-<number>, or number; review can disambiguate. Pass null for description to clear it.",
202661
+ description: "Update a Recruiting opinion value and/or markdown description. opinion accepts raw _id, OPE-<number>, or number; review can disambiguate. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Pass null for description to clear it.",
202584
202662
  category: CATEGORY32,
202585
202663
  inputSchema: updateRecruitingOpinionParamsJsonSchema,
202586
202664
  resultSchema: RecruitingOpinionMutationResultSchema
@@ -203001,7 +203079,7 @@ var recruitingMediaTools = [
203001
203079
  defineTool(
203002
203080
  {
203003
203081
  name: "add_recruiting_comment",
203004
- description: "Add a Markdown comment directly to a Recruiting vacancy, candidate, applicant, review, or opinion target resolved by the shared target locator.",
203082
+ description: "Add a Markdown comment directly to a Recruiting vacancy, candidate, applicant, review, or opinion target resolved by the shared target locator. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
203005
203083
  category: CATEGORY33,
203006
203084
  inputSchema: addRecruitingCommentParamsJsonSchema,
203007
203085
  resultSchema: AddRecruitingCommentResultSchema
@@ -203012,7 +203090,7 @@ var recruitingMediaTools = [
203012
203090
  defineTool(
203013
203091
  {
203014
203092
  name: "update_recruiting_comment",
203015
- description: "Update one comment attached directly to a Recruiting vacancy, candidate, applicant, review, or opinion. The commentId must belong to the resolved target.",
203093
+ description: "Update one comment attached directly to a Recruiting vacancy, candidate, applicant, review, or opinion. The commentId must belong to the resolved target. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
203016
203094
  category: CATEGORY33,
203017
203095
  inputSchema: updateRecruitingCommentParamsJsonSchema,
203018
203096
  resultSchema: UpdateRecruitingCommentResultSchema
@@ -203182,7 +203260,7 @@ var recruitingTools = [
203182
203260
  defineTool(
203183
203261
  {
203184
203262
  name: "create_recruiting_vacancy",
203185
- description: "Create a Recruiting vacancy like the Huly UI: increments the vacancy sequence, stores fullDescription as markdown-backed collaborative markup, defaults members/owners to the current account, and creates vacancy type-data mixin {}.",
203263
+ description: "Create a Recruiting vacancy like the Huly UI: increments the vacancy sequence, stores fullDescription as markdown-backed collaborative markup, defaults members/owners to the current account, and creates vacancy type-data mixin {}. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT,
203186
203264
  category: CATEGORY34,
203187
203265
  inputSchema: createRecruitingVacancyParamsJsonSchema,
203188
203266
  resultSchema: RecruitingVacancyMutationResultSchema
@@ -203193,7 +203271,7 @@ var recruitingTools = [
203193
203271
  defineTool(
203194
203272
  {
203195
203273
  name: "update_recruiting_vacancy",
203196
- description: "Update mutable Recruiting vacancy fields. vacancy accepts raw _id, VCN-<number>, bare number, or exact name. Provide at least one field. Pass null for fullDescription, company, location, or dueTo to clear.",
203274
+ description: "Update mutable Recruiting vacancy fields. vacancy accepts raw _id, VCN-<number>, bare number, or exact name. Provide at least one field. fullDescription supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Pass null for fullDescription, company, location, or dueTo to clear.",
203197
203275
  category: CATEGORY34,
203198
203276
  inputSchema: updateRecruitingVacancyParamsJsonSchema,
203199
203277
  resultSchema: RecruitingVacancyMutationResultSchema
@@ -203826,7 +203904,7 @@ var describeHulySpaceTypeCapabilities = (params) => Effect_exports.gen(function*
203826
203904
  var import_core86 = __toESM(require_lib5(), 1);
203827
203905
  var MAX_ANCESTOR_DEPTH = 32;
203828
203906
  var classRef3 = core.class.Class;
203829
- var includesQuery = (text, query) => Option_exports.isNone(query) || text.includes(query.value.toLowerCase());
203907
+ var includesQuery = (text2, query) => Option_exports.isNone(query) || text2.includes(query.value.toLowerCase());
203830
203908
  var batchResolveClassLabels2 = (client, classIds) => Effect_exports.gen(function* () {
203831
203909
  if (classIds.length === 0) return /* @__PURE__ */ new Map();
203832
203910
  const uniqueIds = [...new Set(classIds)];
@@ -204710,7 +204788,7 @@ var tagTools = [
204710
204788
 
204711
204789
  // src/huly/operations/task-management.ts
204712
204790
  var import_core88 = __toESM(require_lib5(), 1);
204713
- var import_platform3 = __toESM(require_lib(), 1);
204791
+ var import_platform2 = __toESM(require_lib(), 1);
204714
204792
  var STATUS_CATEGORY_BY_SDK_KEY = {
204715
204793
  UnStarted: { value: "UnStarted", ref: StatusCategoryBySdkKey.UnStarted, name: "UnStarted" },
204716
204794
  ToDo: { value: "ToDo", ref: StatusCategoryBySdkKey.ToDo, name: "ToDo" },
@@ -204961,7 +205039,7 @@ var createTaskType = (params) => Effect_exports.gen(function* () {
204961
205039
  {
204962
205040
  extends: template.ofClass,
204963
205041
  kind: import_core88.ClassifierKind.MIXIN,
204964
- label: (0, import_platform3.getEmbeddedLabel)(params.name),
205042
+ label: (0, import_platform2.getEmbeddedLabel)(params.name),
204965
205043
  ...template.icon === void 0 ? {} : { icon: template.icon }
204966
205044
  },
204967
205045
  toRef(targetClassId)
@@ -205279,6 +205357,10 @@ var stringToRunStatus = stringToRunStatusExact;
205279
205357
  var testRunStatusToString = (s) => runStatusToString[s];
205280
205358
  var stringToTestRunStatus = (s) => lookupEnumValue(stringToRunStatus, s);
205281
205359
  var fetchDescription = (client, _class, docId, description) => description !== null ? client.fetchMarkup(_class, docId, "description", description, "markdown") : Effect_exports.succeed(void 0);
205360
+ var uploadDescription = (client, _class, docId, description) => {
205361
+ const rendered = renderMarkdownPreservingNativeReferences(description, client.markupUrlConfig);
205362
+ return client.uploadMarkup(_class, docId, "description", rendered.markup, rendered.format);
205363
+ };
205282
205364
  var findTestProject = (client, idOrName) => findByNameOrIdOrFail(
205283
205365
  client,
205284
205366
  testManagement.class.TestProject,
@@ -205342,12 +205424,11 @@ var updateTestCase = (params) => Effect_exports.gen(function* () {
205342
205424
  if (params.description === void 0) return {};
205343
205425
  if (params.description === null) return { description: null };
205344
205426
  return {
205345
- description: yield* client.uploadMarkup(
205427
+ description: yield* uploadDescription(
205428
+ client,
205346
205429
  testManagement.class.TestCase,
205347
205430
  tc._id,
205348
- "description",
205349
- params.description,
205350
- "markdown"
205431
+ params.description
205351
205432
  )
205352
205433
  };
205353
205434
  }),
@@ -205562,12 +205643,11 @@ var createTestCase = (params) => Effect_exports.gen(function* () {
205562
205643
  const typeEnum = resolveCaseType(params.type ?? DEFAULT_TEST_CASE_TYPE);
205563
205644
  const priorityEnum = resolveCasePriority(params.priority ?? DEFAULT_TEST_CASE_PRIORITY);
205564
205645
  const statusEnum = resolveCaseStatus(params.status ?? DEFAULT_TEST_CASE_STATUS);
205565
- const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* client.uploadMarkup(
205646
+ const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* uploadDescription(
205647
+ client,
205566
205648
  testManagement.class.TestCase,
205567
205649
  caseId,
205568
- "description",
205569
- params.description,
205570
- "markdown"
205650
+ params.description
205571
205651
  ) : null;
205572
205652
  const attrs = {
205573
205653
  name: params.name,
@@ -205695,7 +205775,7 @@ var testManagementCoreTools = [
205695
205775
  defineTool(
205696
205776
  {
205697
205777
  name: "create_test_case",
205698
- description: "Create a test case attached to a suite. Requires project and suite. Defaults: type=functional, priority=medium, status=draft.",
205778
+ description: "Create a test case attached to a suite. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Requires project and suite. Defaults: type=functional, priority=medium, status=draft.",
205699
205779
  category: CATEGORY43,
205700
205780
  inputSchema: createTestCaseParamsJsonSchema,
205701
205781
  resultSchema: CreateTestCaseResultSchema
@@ -205706,7 +205786,7 @@ var testManagementCoreTools = [
205706
205786
  defineTool(
205707
205787
  {
205708
205788
  name: "update_test_case",
205709
- description: "Update a test case. Accepts test case ID or name. Only provided fields are modified. Set assignee to null to unassign.",
205789
+ description: "Update a test case. Accepts test case ID or name. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Only provided fields are modified. Set assignee to null to unassign.",
205710
205790
  category: CATEGORY43,
205711
205791
  inputSchema: updateTestCaseParamsJsonSchema,
205712
205792
  resultSchema: UpdateTestCaseResultSchema
@@ -205782,12 +205862,11 @@ var createTestPlan = (params) => Effect_exports.gen(function* () {
205782
205862
  return { id: TestPlanId.make(existing._id), name: existing.name, created: false };
205783
205863
  }
205784
205864
  const planId = (0, import_core90.generateId)();
205785
- const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* client.uploadMarkup(
205865
+ const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* uploadDescription(
205866
+ client,
205786
205867
  testManagement.class.TestPlan,
205787
205868
  planId,
205788
- "description",
205789
- params.description,
205790
- "markdown"
205869
+ params.description
205791
205870
  ) : null;
205792
205871
  yield* client.createDoc(testManagement.class.TestPlan, project3._id, {
205793
205872
  name: params.name,
@@ -205806,12 +205885,11 @@ var updateTestPlan = (params) => Effect_exports.gen(function* () {
205806
205885
  if (params.description === void 0) return {};
205807
205886
  if (params.description === null) return { description: null };
205808
205887
  return {
205809
- description: yield* client.uploadMarkup(
205888
+ description: yield* uploadDescription(
205889
+ client,
205810
205890
  testManagement.class.TestPlan,
205811
205891
  plan._id,
205812
- "description",
205813
- params.description,
205814
- "markdown"
205892
+ params.description
205815
205893
  )
205816
205894
  };
205817
205895
  })
@@ -205922,12 +206000,11 @@ var createTestRun = (params) => Effect_exports.gen(function* () {
205922
206000
  const client = yield* HulyClient;
205923
206001
  const project3 = yield* findTestProject(client, params.project);
205924
206002
  const runId = (0, import_core91.generateId)();
205925
- const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* client.uploadMarkup(
206003
+ const descRef = params.description !== void 0 && params.description.trim() !== "" ? yield* uploadDescription(
206004
+ client,
205926
206005
  testManagement.class.TestRun,
205927
206006
  runId,
205928
- "description",
205929
- params.description,
205930
- "markdown"
206007
+ params.description
205931
206008
  ) : null;
205932
206009
  yield* client.createDoc(testManagement.class.TestRun, project3._id, {
205933
206010
  name: params.name,
@@ -205947,12 +206024,11 @@ var updateTestRun = (params) => Effect_exports.gen(function* () {
205947
206024
  if (params.description === void 0) return coveredUpdateEntry("description", {});
205948
206025
  if (params.description === null) return coveredUpdateEntry("description", { description: null });
205949
206026
  return coveredUpdateEntry("description", {
205950
- description: yield* client.uploadMarkup(
206027
+ description: yield* uploadDescription(
206028
+ client,
205951
206029
  testManagement.class.TestRun,
205952
206030
  run3._id,
205953
- "description",
205954
- params.description,
205955
- "markdown"
206031
+ params.description
205956
206032
  )
205957
206033
  });
205958
206034
  }),
@@ -206055,12 +206131,11 @@ var updateTestResult = (params) => Effect_exports.gen(function* () {
206055
206131
  if (params.description === void 0) return coveredUpdateEntry("description", {});
206056
206132
  if (params.description === null) return coveredUpdateEntry("description", { description: null });
206057
206133
  return coveredUpdateEntry("description", {
206058
- description: yield* client.uploadMarkup(
206134
+ description: yield* uploadDescription(
206135
+ client,
206059
206136
  testManagement.class.TestResult,
206060
206137
  result._id,
206061
- "description",
206062
- params.description,
206063
- "markdown"
206138
+ params.description
206064
206139
  )
206065
206140
  });
206066
206141
  })
@@ -206152,7 +206227,7 @@ var testManagementPlansTools = [
206152
206227
  defineTool(
206153
206228
  {
206154
206229
  name: "create_test_plan",
206155
- description: "Create a test plan in a project. Idempotent: returns existing plan if one with the same name exists (created=false).",
206230
+ description: "Create a test plan in a project. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Idempotent: returns existing plan if one with the same name exists (created=false).",
206156
206231
  category: CATEGORY44,
206157
206232
  inputSchema: createTestPlanParamsJsonSchema,
206158
206233
  resultSchema: CreateTestPlanResultSchema
@@ -206163,7 +206238,7 @@ var testManagementPlansTools = [
206163
206238
  defineTool(
206164
206239
  {
206165
206240
  name: "update_test_plan",
206166
- description: "Update a test plan's name or description. Only provided fields are modified. Pass description=null to clear.",
206241
+ description: "Update a test plan's name or description. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Only provided fields are modified. Pass description=null to clear.",
206167
206242
  category: CATEGORY44,
206168
206243
  inputSchema: updateTestPlanParamsJsonSchema,
206169
206244
  resultSchema: UpdateTestPlanResultSchema
@@ -206231,7 +206306,7 @@ var testManagementPlansTools = [
206231
206306
  defineTool(
206232
206307
  {
206233
206308
  name: "create_test_run",
206234
- description: "Create a test run in a project. For bulk creation from a plan, use run_test_plan instead.",
206309
+ description: "Create a test run in a project. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " For bulk creation from a plan, use run_test_plan instead.",
206235
206310
  category: CATEGORY44,
206236
206311
  inputSchema: createTestRunParamsJsonSchema,
206237
206312
  resultSchema: CreateTestRunResultSchema
@@ -206242,7 +206317,7 @@ var testManagementPlansTools = [
206242
206317
  defineTool(
206243
206318
  {
206244
206319
  name: "update_test_run",
206245
- description: "Update a test run's name, description, or due date. Only provided fields are modified. Pass null to clear optional fields.",
206320
+ description: "Update a test run's name, description, or due date. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Only provided fields are modified. Pass null to clear optional fields.",
206246
206321
  category: CATEGORY44,
206247
206322
  inputSchema: updateTestRunParamsJsonSchema,
206248
206323
  resultSchema: UpdateTestRunResultSchema
@@ -206298,7 +206373,7 @@ var testManagementPlansTools = [
206298
206373
  defineTool(
206299
206374
  {
206300
206375
  name: "update_test_result",
206301
- description: "Update a test result's status, assignee, or description. Status values: untested, blocked, passed, failed.",
206376
+ description: "Update a test result's status, assignee, or description. Description supports markdown. " + HULY_NATIVE_REFERENCE_MARKDOWN_INPUT + " Status values: untested, blocked, passed, failed.",
206302
206377
  category: CATEGORY44,
206303
206378
  inputSchema: updateTestResultParamsJsonSchema,
206304
206379
  resultSchema: UpdateTestResultResultSchema
@@ -208080,8 +208155,8 @@ var listCategories = (registry2) => {
208080
208155
  });
208081
208156
  };
208082
208157
  var queryTokens = (query) => query.toLowerCase().split(/[^a-z0-9]+/u).filter((token) => token !== "");
208083
- var tokenHitCount = (tokens, text) => {
208084
- const lower = text.toLowerCase();
208158
+ var tokenHitCount = (tokens, text2) => {
208159
+ const lower = text2.toLowerCase();
208085
208160
  return tokens.filter((token) => lower.includes(token)).length;
208086
208161
  };
208087
208162
  var toolScore = (tool, tokens, normalizedQuery) => {
@@ -214649,21 +214724,21 @@ var UUID2 = class _UUID {
214649
214724
  throw new SyntaxError("could not parse UUID string");
214650
214725
  }
214651
214726
  toString() {
214652
- let text = "";
214727
+ let text2 = "";
214653
214728
  for (let i = 0; i < this.bytes.length; i++) {
214654
- text += DIGITS.charAt(this.bytes[i] >>> 4);
214655
- text += DIGITS.charAt(15 & this.bytes[i]);
214656
- if (3 === i || 5 === i || 7 === i || 9 === i) text += "-";
214729
+ text2 += DIGITS.charAt(this.bytes[i] >>> 4);
214730
+ text2 += DIGITS.charAt(15 & this.bytes[i]);
214731
+ if (3 === i || 5 === i || 7 === i || 9 === i) text2 += "-";
214657
214732
  }
214658
- return text;
214733
+ return text2;
214659
214734
  }
214660
214735
  toHex() {
214661
- let text = "";
214736
+ let text2 = "";
214662
214737
  for (let i = 0; i < this.bytes.length; i++) {
214663
- text += DIGITS.charAt(this.bytes[i] >>> 4);
214664
- text += DIGITS.charAt(15 & this.bytes[i]);
214738
+ text2 += DIGITS.charAt(this.bytes[i] >>> 4);
214739
+ text2 += DIGITS.charAt(15 & this.bytes[i]);
214665
214740
  }
214666
- return text;
214741
+ return text2;
214667
214742
  }
214668
214743
  toJSON() {
214669
214744
  return this.toString();
@@ -215392,12 +215467,12 @@ var PostHogFetchNetworkError = class extends Error {
215392
215467
  };
215393
215468
  async function logFlushError(err) {
215394
215469
  if (err instanceof PostHogFetchHttpError) {
215395
- let text = "";
215470
+ let text2 = "";
215396
215471
  try {
215397
- text = await err.text;
215472
+ text2 = await err.text;
215398
215473
  } catch {
215399
215474
  }
215400
- console.error(`Error while flushing PostHog: message=${err.message}, response body=${text}`, err);
215475
+ console.error(`Error while flushing PostHog: message=${err.message}, response body=${text2}`, err);
215401
215476
  } else console.error("Error while flushing PostHog", err);
215402
215477
  return Promise.resolve();
215403
215478
  }
@@ -216205,9 +216280,9 @@ var ErrorPropertiesBuilder = class {
216205
216280
 
216206
216281
  // node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
216207
216282
  var UNKNOWN_FUNCTION = "?";
216208
- function createFrame(platform, filename, func2, lineno, colno) {
216283
+ function createFrame(platform2, filename, func2, lineno, colno) {
216209
216284
  const frame = {
216210
- platform,
216285
+ platform: platform2,
216211
216286
  filename,
216212
216287
  function: "<anonymous>" === func2 ? UNKNOWN_FUNCTION : func2,
216213
216288
  in_app: true
@@ -216234,11 +216309,11 @@ var extractSafariExtensionDetails = (func2, filename) => {
216234
216309
  var chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
216235
216310
  var chromeRegex = /^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
216236
216311
  var chromeEvalRegex = /\((\S*)(?::(\d+))(?::(\d+))\)/;
216237
- var chromeStackLineParser = (line, platform) => {
216312
+ var chromeStackLineParser = (line, platform2) => {
216238
216313
  const noFnParts = chromeRegexNoFnName.exec(line);
216239
216314
  if (noFnParts) {
216240
216315
  const [, filename, line2, col] = noFnParts;
216241
- return createFrame(platform, filename, UNKNOWN_FUNCTION, +line2, +col);
216316
+ return createFrame(platform2, filename, UNKNOWN_FUNCTION, +line2, +col);
216242
216317
  }
216243
216318
  const parts2 = chromeRegex.exec(line);
216244
216319
  if (parts2) {
@@ -216252,14 +216327,14 @@ var chromeStackLineParser = (line, platform) => {
216252
216327
  }
216253
216328
  }
216254
216329
  const [func2, filename] = extractSafariExtensionDetails(parts2[1] || UNKNOWN_FUNCTION, parts2[2]);
216255
- return createFrame(platform, filename, func2, parts2[3] ? +parts2[3] : void 0, parts2[4] ? +parts2[4] : void 0);
216330
+ return createFrame(platform2, filename, func2, parts2[3] ? +parts2[3] : void 0, parts2[4] ? +parts2[4] : void 0);
216256
216331
  }
216257
216332
  };
216258
216333
 
216259
216334
  // node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
216260
216335
  var geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
216261
216336
  var geckoEvalRegex = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
216262
- var geckoStackLineParser = (line, platform) => {
216337
+ var geckoStackLineParser = (line, platform2) => {
216263
216338
  const parts2 = geckoREgex.exec(line);
216264
216339
  if (parts2) {
216265
216340
  const isEval = parts2[3] && parts2[3].indexOf(" > eval") > -1;
@@ -216275,33 +216350,33 @@ var geckoStackLineParser = (line, platform) => {
216275
216350
  let filename = parts2[3];
216276
216351
  let func2 = parts2[1] || UNKNOWN_FUNCTION;
216277
216352
  [func2, filename] = extractSafariExtensionDetails(func2, filename);
216278
- return createFrame(platform, filename, func2, parts2[4] ? +parts2[4] : void 0, parts2[5] ? +parts2[5] : void 0);
216353
+ return createFrame(platform2, filename, func2, parts2[4] ? +parts2[4] : void 0, parts2[5] ? +parts2[5] : void 0);
216279
216354
  }
216280
216355
  };
216281
216356
 
216282
216357
  // node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
216283
216358
  var winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
216284
- var winjsStackLineParser = (line, platform) => {
216359
+ var winjsStackLineParser = (line, platform2) => {
216285
216360
  const parts2 = winjsRegex.exec(line);
216286
- return parts2 ? createFrame(platform, parts2[2], parts2[1] || UNKNOWN_FUNCTION, +parts2[3], parts2[4] ? +parts2[4] : void 0) : void 0;
216361
+ return parts2 ? createFrame(platform2, parts2[2], parts2[1] || UNKNOWN_FUNCTION, +parts2[3], parts2[4] ? +parts2[4] : void 0) : void 0;
216287
216362
  };
216288
216363
 
216289
216364
  // node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
216290
216365
  var opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
216291
- var opera10StackLineParser = (line, platform) => {
216366
+ var opera10StackLineParser = (line, platform2) => {
216292
216367
  const parts2 = opera10Regex.exec(line);
216293
- return parts2 ? createFrame(platform, parts2[2], parts2[3] || UNKNOWN_FUNCTION, +parts2[1]) : void 0;
216368
+ return parts2 ? createFrame(platform2, parts2[2], parts2[3] || UNKNOWN_FUNCTION, +parts2[1]) : void 0;
216294
216369
  };
216295
216370
  var opera11Regex = / line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i;
216296
- var opera11StackLineParser = (line, platform) => {
216371
+ var opera11StackLineParser = (line, platform2) => {
216297
216372
  const parts2 = opera11Regex.exec(line);
216298
- return parts2 ? createFrame(platform, parts2[5], parts2[3] || parts2[4] || UNKNOWN_FUNCTION, +parts2[1], +parts2[2]) : void 0;
216373
+ return parts2 ? createFrame(platform2, parts2[5], parts2[3] || parts2[4] || UNKNOWN_FUNCTION, +parts2[1], +parts2[2]) : void 0;
216299
216374
  };
216300
216375
 
216301
216376
  // node_modules/.pnpm/@posthog+core@1.20.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
216302
216377
  var FILENAME_MATCH = /^\s*[-]{4,}$/;
216303
216378
  var FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
216304
- var nodeStackLineParser = (line, platform) => {
216379
+ var nodeStackLineParser = (line, platform2) => {
216305
216380
  const lineMatch = line.match(FULL_MATCH);
216306
216381
  if (lineMatch) {
216307
216382
  let object4;
@@ -216347,12 +216422,12 @@ var nodeStackLineParser = (line, platform) => {
216347
216422
  lineno: _parseIntOrUndefined(lineMatch[3]),
216348
216423
  colno: _parseIntOrUndefined(lineMatch[4]),
216349
216424
  in_app: filenameIsInApp(filename || "", isNative),
216350
- platform
216425
+ platform: platform2
216351
216426
  };
216352
216427
  }
216353
216428
  if (line.match(FILENAME_MATCH)) return {
216354
216429
  filename: line,
216355
- platform
216430
+ platform: platform2
216356
216431
  };
216357
216432
  };
216358
216433
  function filenameIsInApp(filename, isNative = false) {
@@ -216382,7 +216457,7 @@ function getLastStackFrame(arr) {
216382
216457
  function createDefaultStackParser() {
216383
216458
  return createStackParser("web:javascript", chromeStackLineParser, geckoStackLineParser);
216384
216459
  }
216385
- function createStackParser(platform, ...parsers) {
216460
+ function createStackParser(platform2, ...parsers) {
216386
216461
  return (stack, skipFirstLines = 0) => {
216387
216462
  const frames = [];
216388
216463
  const lines = stack.split("\n");
@@ -216392,7 +216467,7 @@ function createStackParser(platform, ...parsers) {
216392
216467
  const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, "$1") : line;
216393
216468
  if (!cleanedLine.match(/\S*Error: /)) {
216394
216469
  for (const parser of parsers) {
216395
- const frame = parser(cleanedLine, platform);
216470
+ const frame = parser(cleanedLine, platform2);
216396
216471
  if (frame) {
216397
216472
  frames.push(frame);
216398
216473
  break;
@@ -216966,10 +217041,10 @@ var FeatureFlagError2 = {
216966
217041
  };
216967
217042
 
216968
217043
  // node_modules/.pnpm/posthog-node@5.24.11/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
216969
- async function hashSHA1(text) {
217044
+ async function hashSHA1(text2) {
216970
217045
  const subtle = globalThis.crypto?.subtle;
216971
217046
  if (!subtle) throw new Error("SubtleCrypto API not available");
216972
- const hashBuffer = await subtle.digest("SHA-1", new TextEncoder().encode(text));
217047
+ const hashBuffer = await subtle.digest("SHA-1", new TextEncoder().encode(text2));
216973
217048
  const hashArray = Array.from(new Uint8Array(hashBuffer));
216974
217049
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
216975
217050
  }