@firfi/huly-mcp 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -174503,7 +174503,7 @@ var parseDeleteDriveFileCommentParams = Schema_exports.decodeUnknown(DeleteDrive
|
|
|
174503
174503
|
var parseListDriveFileActivityParams = Schema_exports.decodeUnknown(ListDriveFileActivityParamsSchema);
|
|
174504
174504
|
|
|
174505
174505
|
// src/version.ts
|
|
174506
|
-
var VERSION = true ? "0.30.
|
|
174506
|
+
var VERSION = true ? "0.30.1" : "0.0.0-dev";
|
|
174507
174507
|
|
|
174508
174508
|
// src/mcp/tool-output-schema.ts
|
|
174509
174509
|
var defaultToolOutputSchema = {
|
|
@@ -174616,6 +174616,22 @@ var findActivityMessage = (client, messageId) => findOneOrFail(
|
|
|
174616
174616
|
() => new ActivityMessageNotFoundError({ messageId })
|
|
174617
174617
|
);
|
|
174618
174618
|
|
|
174619
|
+
// src/huly/operations/thread-replies-shared.ts
|
|
174620
|
+
var removeThreadReply = (client, reply) => Effect_exports.gen(function* () {
|
|
174621
|
+
const removeCollection = client.removeCollection;
|
|
174622
|
+
if (removeCollection === void 0) {
|
|
174623
|
+
return yield* new HulyError({ message: "Huly client does not support removeCollection" });
|
|
174624
|
+
}
|
|
174625
|
+
yield* removeCollection(
|
|
174626
|
+
chunter.class.ThreadMessage,
|
|
174627
|
+
reply.space,
|
|
174628
|
+
reply._id,
|
|
174629
|
+
reply.attachedTo,
|
|
174630
|
+
reply.attachedToClass,
|
|
174631
|
+
reply.collection
|
|
174632
|
+
);
|
|
174633
|
+
});
|
|
174634
|
+
|
|
174619
174635
|
// src/huly/operations/activity-messages.ts
|
|
174620
174636
|
var getActivityMessage = (params) => Effect_exports.gen(function* () {
|
|
174621
174637
|
const client = yield* HulyClient;
|
|
@@ -174732,7 +174748,7 @@ var deleteActivityReply = (params) => Effect_exports.gen(function* () {
|
|
|
174732
174748
|
hulyQuery({ _id: toRef(params.replyId) }),
|
|
174733
174749
|
() => new ActivityMessageNotFoundError({ messageId: params.replyId })
|
|
174734
174750
|
);
|
|
174735
|
-
yield* client
|
|
174751
|
+
yield* removeThreadReply(client, reply);
|
|
174736
174752
|
return { replyId: ActivityMessageId.make(reply._id), deleted: true };
|
|
174737
174753
|
});
|
|
174738
174754
|
|
|
@@ -179601,11 +179617,7 @@ var updateThreadReply = (params) => Effect_exports.gen(function* () {
|
|
|
179601
179617
|
var deleteThreadReply = (params) => Effect_exports.gen(function* () {
|
|
179602
179618
|
const { channel, client, message } = yield* findChannelMessage(params);
|
|
179603
179619
|
const reply = yield* findReply(client, channel, message, params.replyId);
|
|
179604
|
-
yield* client
|
|
179605
|
-
chunter.class.ThreadMessage,
|
|
179606
|
-
channel._id,
|
|
179607
|
-
reply._id
|
|
179608
|
-
);
|
|
179620
|
+
yield* removeThreadReply(client, reply);
|
|
179609
179621
|
return { id: ThreadReplyId.make(reply._id), deleted: true };
|
|
179610
179622
|
});
|
|
179611
179623
|
|