@firfi/huly-mcp 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -82791,7 +82791,7 @@ var require_client6 = __commonJS({
82791
82791
  var import_core46 = require_lib4();
82792
82792
  var import_platform2 = require_lib();
82793
82793
  var import_config8 = require_config();
82794
- var import_markup9 = require_markup();
82794
+ var import_markup8 = require_markup();
82795
82795
  var import_utils14 = require_utils9();
82796
82796
  async function connect(url4, options) {
82797
82797
  const config3 = await (0, import_config8.loadServerConfig)(url4);
@@ -82832,7 +82832,7 @@ var require_client6 = __commonJS({
82832
82832
  this.connection = connection;
82833
82833
  this.account = account;
82834
82834
  this.client = new import_core46.TxOperations(connection, account.primarySocialId);
82835
- this.markup = (0, import_markup9.createMarkupOperations)(url4, workspace, token, config3);
82835
+ this.markup = (0, import_markup8.createMarkupOperations)(url4, workspace, token, config3);
82836
82836
  }
82837
82837
  static {
82838
82838
  __name(this, "PlatformClientImpl");
@@ -82861,7 +82861,7 @@ var require_client6 = __commonJS({
82861
82861
  async processMarkup(_class, id, data) {
82862
82862
  const result = {};
82863
82863
  for (const [key, value3] of Object.entries(data)) {
82864
- if (value3 instanceof import_markup9.MarkupContent) {
82864
+ if (value3 instanceof import_markup8.MarkupContent) {
82865
82865
  result[key] = this.markup.uploadMarkup(_class, id, key, value3.content, value3.kind);
82866
82866
  } else {
82867
82867
  result[key] = value3;
@@ -171226,7 +171226,7 @@ var PostHog = class extends PostHogBackendClient {
171226
171226
  };
171227
171227
 
171228
171228
  // src/version.ts
171229
- var VERSION = true ? "0.5.0" : "0.0.0-dev";
171229
+ var VERSION = true ? "0.5.2" : "0.0.0-dev";
171230
171230
 
171231
171231
  // src/telemetry/posthog.ts
171232
171232
  var POSTHOG_API_KEY = "phc_TGfFqCGdnF0p68wuFzd5WSw1IsBvOJW0YgoMJDyZPjm";
@@ -172168,7 +172168,9 @@ var markdownToMarkupString = (markdown) => {
172168
172168
  return jsonAsMarkup(json3);
172169
172169
  };
172170
172170
  var optionalMarkdownToMarkup = (md, fallback = "") => md && md.trim() !== "" ? markdownToMarkupString(md) : fallback;
172171
- var optionalMarkupToMarkdown = (markup, fallback = "") => markup ? markupToMarkdownString(markup) : fallback;
172171
+ function optionalMarkupToMarkdown(markup, fallback = "") {
172172
+ return markup ? markupToMarkdownString(markup) : fallback;
172173
+ }
172172
172174
 
172173
172175
  // src/huly/operations/channels.ts
172174
172176
  var personIdsAsSocialIdentityRefs = (ids3) => ids3;
@@ -172495,7 +172497,7 @@ var listInlineComments = (params) => Effect_exports.gen(function* () {
172495
172497
  const threadReplies = threadRepliesMap.get(comment.threadId) ?? [];
172496
172498
  const replies = threadReplies.map((r) => ({
172497
172499
  id: r._id,
172498
- body: r.message ? markupToMarkdownString(r.message) : "",
172500
+ body: optionalMarkupToMarkdown(r.message),
172499
172501
  sender: r.createdBy !== void 0 ? nameMap.get(r.createdBy) : void 0,
172500
172502
  createdOn: r.createdOn
172501
172503
  }));
@@ -179465,7 +179467,7 @@ var createIssueFromTemplate = (params) => Effect_exports.gen(function* () {
179465
179467
  const includeChildren = params.includeChildren !== false;
179466
179468
  if (includeChildren && template.children.length > 0) {
179467
179469
  for (const child of template.children) {
179468
- const childDescription = child.description !== "" ? optionalMarkupToMarkdown(child.description) : void 0;
179470
+ const childDescription = optionalMarkupToMarkdown(child.description, void 0);
179469
179471
  const childResult = yield* createIssue({
179470
179472
  project: params.project,
179471
179473
  title: child.title,
@@ -180307,6 +180309,15 @@ var createMilestone = (params) => Effect_exports.gen(function* () {
180307
180309
  milestoneData,
180308
180310
  milestoneId
180309
180311
  );
180312
+ if (params.description !== void 0 && params.description.trim() !== "") {
180313
+ yield* client.uploadMarkup(
180314
+ tracker.class.Milestone,
180315
+ milestoneId,
180316
+ "description",
180317
+ params.description,
180318
+ "markdown"
180319
+ );
180320
+ }
180310
180321
  return { id: MilestoneId.make(milestoneId), label: MilestoneLabel.make(params.label) };
180311
180322
  });
180312
180323
  var updateMilestone = (params) => Effect_exports.gen(function* () {
@@ -180316,6 +180327,15 @@ var updateMilestone = (params) => Effect_exports.gen(function* () {
180316
180327
  updateOps.label = params.label;
180317
180328
  }
180318
180329
  if (params.description !== void 0) {
180330
+ if (params.description.trim() !== "") {
180331
+ yield* client.uploadMarkup(
180332
+ tracker.class.Milestone,
180333
+ milestone._id,
180334
+ "description",
180335
+ params.description,
180336
+ "markdown"
180337
+ );
180338
+ }
180319
180339
  updateOps.description = optionalMarkdownToMarkup(params.description);
180320
180340
  }
180321
180341
  if (params.targetDate !== void 0) {