@rallycry/conveyor-mcp 5.0.14 → 5.0.16

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.
@@ -101,7 +101,7 @@ var ConveyorConnection = class {
101
101
  */
102
102
  rejoinRooms() {
103
103
  const socket = this.socket;
104
- if (!socket) return;
104
+ if (!socket || this.config.taskToken) return;
105
105
  socket.emit("projectService:subscribe", { id: this.config.projectId });
106
106
  for (const sessionId of this.subscribedSessionIds) {
107
107
  socket.emit("agentSessionService:subscribe", {
@@ -117,10 +117,9 @@ var ConveyorConnection = class {
117
117
  const maxAttempts = 15;
118
118
  this.socket = this.socketFactory(
119
119
  this.config.apiUrl,
120
- buildConveyorSocketOptions({
121
- projectToken: this.config.projectToken,
122
- runnerMode: "project"
123
- })
120
+ buildConveyorSocketOptions(
121
+ this.config.taskToken ? { taskToken: this.config.taskToken, runnerMode: "task" } : { projectToken: this.config.projectToken, runnerMode: "project" }
122
+ )
124
123
  );
125
124
  this.socket.on("connect", () => {
126
125
  this.rejoinRooms();
@@ -547,6 +546,16 @@ var ConveyorConnection = class {
547
546
  projectId: this.resolveProjectId(projectId)
548
547
  });
549
548
  }
549
+ listSiteAssetTargets(projectId) {
550
+ return this.call("listSiteAssetTargets", { projectId: this.resolveProjectId(projectId) });
551
+ }
552
+ requestSiteAssetUpload(params) {
553
+ const { projectId, ...rest } = params;
554
+ return this.call("requestSiteAssetUpload", {
555
+ projectId: this.resolveProjectId(projectId),
556
+ ...rest
557
+ });
558
+ }
550
559
  /** GA4 traffic summary; an unconfigured project answers configured:false. */
551
560
  getProjectAnalyticsSummary(params) {
552
561
  const { projectId, ...rest } = params;