@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.
- package/dist/{chunk-CRHA7PSA.js → chunk-E43OFCNP.js} +14 -5
- package/dist/chunk-P4WATE3Z.js +2559 -0
- package/dist/cli.js +1599 -3778
- package/dist/{connection-jgxgPQDm.d.ts → connection-aXGLRE5V.d.ts} +12 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/site-assets-cli.d.ts +1 -0
- package/dist/site-assets-cli.js +100 -0
- package/dist/tunnel-cli.js +1 -1
- package/dist/tunnel.d.ts +1 -1
- package/dist/wait-cli.js +1 -1
- package/dist/wait-runner.d.ts +1 -1
- package/dist/wait.d.ts +1 -1
- package/package.json +2 -1
|
@@ -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
|
-
|
|
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;
|