@mastra/github-signals 0.5.0-alpha.1 → 0.5.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createHash, randomUUID } from "crypto";
1
+ import { createHash } from "crypto";
2
2
  import { readFile, stat } from "fs/promises";
3
3
  import { homedir } from "os";
4
4
  import { join } from "path";
@@ -931,7 +931,7 @@ var GithubSignals = class extends SignalProvider {
931
931
  async subscribeThreadToPR(input) {
932
932
  const pr = typeof input.pr === "number" ? { number: input.pr } : input.pr;
933
933
  return this.#subscribe({
934
- id: `github-command-subscribe-${randomUUID()}`,
934
+ id: `github-command-subscribe-${globalThis.crypto.randomUUID()}`,
935
935
  ...pr,
936
936
  mode: normalizeGithubSubscriptionMode(input.mode),
937
937
  threadId: input.threadId,
@@ -941,7 +941,7 @@ var GithubSignals = class extends SignalProvider {
941
941
  async unsubscribeThreadFromPR(input) {
942
942
  const pr = typeof input.pr === "number" ? { number: input.pr } : input.pr;
943
943
  return this.#unsubscribe({
944
- id: `github-command-unsubscribe-${randomUUID()}`,
944
+ id: `github-command-unsubscribe-${globalThis.crypto.randomUUID()}`,
945
945
  ...pr,
946
946
  threadId: input.threadId,
947
947
  resourceId: input.resourceId
@@ -1142,7 +1142,7 @@ var GithubSignals = class extends SignalProvider {
1142
1142
  const results = [];
1143
1143
  for (const pr of requestedPrs) try {
1144
1144
  const result = await this.#subscribe({
1145
- id: `github-tool-subscribe-${randomUUID()}`,
1145
+ id: `github-tool-subscribe-${globalThis.crypto.randomUUID()}`,
1146
1146
  owner: pr.owner,
1147
1147
  repo: pr.repo,
1148
1148
  number: pr.number,
@@ -1196,7 +1196,7 @@ var GithubSignals = class extends SignalProvider {
1196
1196
  const results = [];
1197
1197
  for (const pr of requestedPrs) try {
1198
1198
  const result = await this.#unsubscribe({
1199
- id: `github-tool-unsubscribe-${randomUUID()}`,
1199
+ id: `github-tool-unsubscribe-${globalThis.crypto.randomUUID()}`,
1200
1200
  owner: pr.owner,
1201
1201
  repo: pr.repo,
1202
1202
  number: pr.number,