@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.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -955,7 +955,7 @@ var GithubSignals = class extends _mastra_core_signals.SignalProvider {
|
|
|
955
955
|
async subscribeThreadToPR(input) {
|
|
956
956
|
const pr = typeof input.pr === "number" ? { number: input.pr } : input.pr;
|
|
957
957
|
return this.#subscribe({
|
|
958
|
-
id: `github-command-subscribe-${
|
|
958
|
+
id: `github-command-subscribe-${globalThis.crypto.randomUUID()}`,
|
|
959
959
|
...pr,
|
|
960
960
|
mode: normalizeGithubSubscriptionMode(input.mode),
|
|
961
961
|
threadId: input.threadId,
|
|
@@ -965,7 +965,7 @@ var GithubSignals = class extends _mastra_core_signals.SignalProvider {
|
|
|
965
965
|
async unsubscribeThreadFromPR(input) {
|
|
966
966
|
const pr = typeof input.pr === "number" ? { number: input.pr } : input.pr;
|
|
967
967
|
return this.#unsubscribe({
|
|
968
|
-
id: `github-command-unsubscribe-${
|
|
968
|
+
id: `github-command-unsubscribe-${globalThis.crypto.randomUUID()}`,
|
|
969
969
|
...pr,
|
|
970
970
|
threadId: input.threadId,
|
|
971
971
|
resourceId: input.resourceId
|
|
@@ -1166,7 +1166,7 @@ var GithubSignals = class extends _mastra_core_signals.SignalProvider {
|
|
|
1166
1166
|
const results = [];
|
|
1167
1167
|
for (const pr of requestedPrs) try {
|
|
1168
1168
|
const result = await this.#subscribe({
|
|
1169
|
-
id: `github-tool-subscribe-${
|
|
1169
|
+
id: `github-tool-subscribe-${globalThis.crypto.randomUUID()}`,
|
|
1170
1170
|
owner: pr.owner,
|
|
1171
1171
|
repo: pr.repo,
|
|
1172
1172
|
number: pr.number,
|
|
@@ -1220,7 +1220,7 @@ var GithubSignals = class extends _mastra_core_signals.SignalProvider {
|
|
|
1220
1220
|
const results = [];
|
|
1221
1221
|
for (const pr of requestedPrs) try {
|
|
1222
1222
|
const result = await this.#unsubscribe({
|
|
1223
|
-
id: `github-tool-unsubscribe-${
|
|
1223
|
+
id: `github-tool-unsubscribe-${globalThis.crypto.randomUUID()}`,
|
|
1224
1224
|
owner: pr.owner,
|
|
1225
1225
|
repo: pr.repo,
|
|
1226
1226
|
number: pr.number,
|