@loopstack/remote-file-explorer-module 0.25.2 → 0.26.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/controllers/remote-file-explorer.controller.d.ts +2 -2
- package/dist/controllers/remote-file-explorer.controller.d.ts.map +1 -1
- package/dist/controllers/remote-file-explorer.controller.js +10 -8
- package/dist/controllers/remote-file-explorer.controller.js.map +1 -1
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ export declare class RemoteFileExplorerController {
|
|
|
4
4
|
private readonly remote;
|
|
5
5
|
private readonly env;
|
|
6
6
|
constructor(remote: RemoteClient, env: EnvironmentService);
|
|
7
|
-
getFileTree(workspaceId: string, basePath: string | undefined, _user: CurrentUserInterface): Promise<unknown>;
|
|
8
|
-
readFile(workspaceId: string, filePath: string, _user: CurrentUserInterface): Promise<import("@loopstack/remote-client").FileReadResponse>;
|
|
7
|
+
getFileTree(workspaceId: string, basePath: string | undefined, slotId: string | undefined, _user: CurrentUserInterface): Promise<unknown>;
|
|
8
|
+
readFile(workspaceId: string, filePath: string, slotId: string | undefined, _user: CurrentUserInterface): Promise<import("@loopstack/remote-client").FileReadResponse>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=remote-file-explorer.controller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE5E,qBAEa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBADH,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,kBAAkB;IAIpC,WAAW,CACO,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,oBAAoB,GACzC,OAAO,CAAC,OAAO,CAAC;IAMb,QAAQ,CACU,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"remote-file-explorer.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE5E,qBAEa,4BAA4B;IAErC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBADH,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,kBAAkB;IAIpC,WAAW,CACO,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,oBAAoB,GACzC,OAAO,CAAC,OAAO,CAAC;IAMb,QAAQ,CACU,WAAW,EAAE,MAAM,EAC1B,QAAQ,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GAAG,SAAS,EAC5B,KAAK,EAAE,oBAAoB;CAK7C"}
|
|
@@ -20,12 +20,12 @@ let RemoteFileExplorerController = class RemoteFileExplorerController {
|
|
|
20
20
|
this.remote = remote;
|
|
21
21
|
this.env = env;
|
|
22
22
|
}
|
|
23
|
-
async getFileTree(workspaceId, basePath, _user) {
|
|
24
|
-
const agentUrl = await this.env.getAgentUrlForWorkspace(workspaceId);
|
|
23
|
+
async getFileTree(workspaceId, basePath, slotId, _user) {
|
|
24
|
+
const agentUrl = await this.env.getAgentUrlForWorkspace(workspaceId, slotId);
|
|
25
25
|
return this.remote.getFileTree(agentUrl, basePath);
|
|
26
26
|
}
|
|
27
|
-
async readFile(workspaceId, filePath, _user) {
|
|
28
|
-
const agentUrl = await this.env.getAgentUrlForWorkspace(workspaceId);
|
|
27
|
+
async readFile(workspaceId, filePath, slotId, _user) {
|
|
28
|
+
const agentUrl = await this.env.getAgentUrlForWorkspace(workspaceId, slotId);
|
|
29
29
|
return this.remote.readFile(agentUrl, filePath);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -33,18 +33,20 @@ __decorate([
|
|
|
33
33
|
Get('tree'),
|
|
34
34
|
__param(0, Param('workspaceId')),
|
|
35
35
|
__param(1, Query('path')),
|
|
36
|
-
__param(2,
|
|
36
|
+
__param(2, Query('slotId')),
|
|
37
|
+
__param(3, CurrentUser()),
|
|
37
38
|
__metadata("design:type", Function),
|
|
38
|
-
__metadata("design:paramtypes", [String, Object, Object]),
|
|
39
|
+
__metadata("design:paramtypes", [String, Object, Object, Object]),
|
|
39
40
|
__metadata("design:returntype", Promise)
|
|
40
41
|
], RemoteFileExplorerController.prototype, "getFileTree", null);
|
|
41
42
|
__decorate([
|
|
42
43
|
Get('read'),
|
|
43
44
|
__param(0, Param('workspaceId')),
|
|
44
45
|
__param(1, Query('path')),
|
|
45
|
-
__param(2,
|
|
46
|
+
__param(2, Query('slotId')),
|
|
47
|
+
__param(3, CurrentUser()),
|
|
46
48
|
__metadata("design:type", Function),
|
|
47
|
-
__metadata("design:paramtypes", [String, String, Object]),
|
|
49
|
+
__metadata("design:paramtypes", [String, String, Object, Object]),
|
|
48
50
|
__metadata("design:returntype", Promise)
|
|
49
51
|
], RemoteFileExplorerController.prototype, "readFile", null);
|
|
50
52
|
RemoteFileExplorerController = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIrE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEpB;IACA;IAFnB,YACmB,MAAoB,EACpB,GAAuB;QADvB,WAAM,GAAN,MAAM,CAAc;QACpB,QAAG,GAAH,GAAG,CAAoB;IACvC,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACO,WAAmB,EAC1B,QAA4B,EAC5B,KAA2B;QAE1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-file-explorer.controller.js","sourceRoot":"","sources":["../../src/controllers/remote-file-explorer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIrE,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAEpB;IACA;IAFnB,YACmB,MAAoB,EACpB,GAAuB;QADvB,WAAM,GAAN,MAAM,CAAc;QACpB,QAAG,GAAH,GAAG,CAAoB;IACvC,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACO,WAAmB,EAC1B,QAA4B,EAC1B,MAA0B,EAC5B,KAA2B;QAE1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACrD,CAAC;IAGK,AAAN,KAAK,CAAC,QAAQ,CACU,WAAmB,EAC1B,QAAgB,EACd,MAA0B,EAC5B,KAA2B;QAE1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,uBAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAC7E,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AApBO;IADL,GAAG,CAAC,MAAM,CAAC;IAET,WAAA,KAAK,CAAC,aAAa,CAAC,CAAA;IACpB,WAAA,KAAK,CAAC,MAAM,CAAC,CAAA;IACb,WAAA,KAAK,CAAC,QAAQ,CAAC,CAAA;IACf,WAAA,WAAW,EAAE,CAAA;;;;+DAIf;AAGK;IADL,GAAG,CAAC,MAAM,CAAC;IAET,WAAA,KAAK,CAAC,aAAa,CAAC,CAAA;IACpB,WAAA,KAAK,CAAC,MAAM,CAAC,CAAA;IACb,WAAA,KAAK,CAAC,QAAQ,CAAC,CAAA;IACf,WAAA,WAAW,EAAE,CAAA;;;;4DAIf;AA1BU,4BAA4B;IAFxC,QAAQ,CAAC,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9F,UAAU,CAAC,6CAA6C,CAAC;qCAG7B,YAAY;QACf,kBAAkB;GAH/B,4BAA4B,CA2BxC"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"remote-agent",
|
|
9
9
|
"workflow"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.26.0",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "Jakob Klippel",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"watch": "nest build --watch"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@loopstack/common": "^0.
|
|
35
|
-
"@loopstack/remote-client": "^0.
|
|
34
|
+
"@loopstack/common": "^0.39.0",
|
|
35
|
+
"@loopstack/remote-client": "^0.27.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@nestjs/common": "^11.1.19",
|