@e2b/n8n-nodes-e2b 0.1.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/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/credentials/E2BApi.credentials.d.ts +13 -0
- package/dist/credentials/E2BApi.credentials.js +58 -0
- package/dist/credentials/E2BApi.credentials.js.map +1 -0
- package/dist/credentials/e2b.dark.svg +1 -0
- package/dist/credentials/e2b.svg +1 -0
- package/dist/nodes/E2B/E2b.node.d.ts +5 -0
- package/dist/nodes/E2B/E2b.node.js +2901 -0
- package/dist/nodes/E2B/E2b.node.js.map +7 -0
- package/dist/nodes/E2B/E2b.node.json +20 -0
- package/dist/nodes/E2B/actions/code.operations.d.ts +8 -0
- package/dist/nodes/E2B/actions/code.operations.js +67 -0
- package/dist/nodes/E2B/actions/code.operations.js.map +1 -0
- package/dist/nodes/E2B/actions/file.operations.d.ts +95 -0
- package/dist/nodes/E2B/actions/file.operations.js +183 -0
- package/dist/nodes/E2B/actions/file.operations.js.map +1 -0
- package/dist/nodes/E2B/actions/git.operations.d.ts +48 -0
- package/dist/nodes/E2B/actions/git.operations.js +554 -0
- package/dist/nodes/E2B/actions/git.operations.js.map +1 -0
- package/dist/nodes/E2B/actions/index.d.ts +2 -0
- package/dist/nodes/E2B/actions/index.js +95 -0
- package/dist/nodes/E2B/actions/index.js.map +1 -0
- package/dist/nodes/E2B/actions/sandbox.operations.d.ts +48 -0
- package/dist/nodes/E2B/actions/sandbox.operations.js +93 -0
- package/dist/nodes/E2B/actions/sandbox.operations.js.map +1 -0
- package/dist/nodes/E2B/actions/snapshot.operations.d.ts +22 -0
- package/dist/nodes/E2B/actions/snapshot.operations.js +46 -0
- package/dist/nodes/E2B/actions/snapshot.operations.js.map +1 -0
- package/dist/nodes/E2B/actions/volume.operations.d.ts +28 -0
- package/dist/nodes/E2B/actions/volume.operations.js +57 -0
- package/dist/nodes/E2B/actions/volume.operations.js.map +1 -0
- package/dist/nodes/E2B/client.d.ts +97 -0
- package/dist/nodes/E2B/client.js +546 -0
- package/dist/nodes/E2B/client.js.map +1 -0
- package/dist/nodes/E2B/e2b.dark.svg +1 -0
- package/dist/nodes/E2B/e2b.svg +1 -0
- package/dist/nodes/E2B/helpers.d.ts +22 -0
- package/dist/nodes/E2B/helpers.js +224 -0
- package/dist/nodes/E2B/helpers.js.map +1 -0
- package/dist/nodes/E2B/types.d.ts +21 -0
- package/dist/nodes/E2B/types.js +21 -0
- package/dist/nodes/E2B/types.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createFolder = createFolder;
|
|
4
|
+
exports.deleteFile = deleteFile;
|
|
5
|
+
exports.download = download;
|
|
6
|
+
exports.info = info;
|
|
7
|
+
exports.list = list;
|
|
8
|
+
exports.move = move;
|
|
9
|
+
exports.read = read;
|
|
10
|
+
exports.upload = upload;
|
|
11
|
+
exports.write = write;
|
|
12
|
+
const client_1 = require("../client");
|
|
13
|
+
const helpers_1 = require("../helpers");
|
|
14
|
+
async function getConnectedSandbox(context) {
|
|
15
|
+
const { executeFunctions, credentials, itemIndex, timeoutMs } = context;
|
|
16
|
+
const connection = { executeFunctions, credentials, timeoutMs };
|
|
17
|
+
const sandboxId = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'sandboxId', 'Sandbox ID', itemIndex);
|
|
18
|
+
const sandbox = await (0, client_1.connectSandbox)(connection, sandboxId);
|
|
19
|
+
return { connection, sandbox, sandboxId };
|
|
20
|
+
}
|
|
21
|
+
async function createFolder(context) {
|
|
22
|
+
const { executeFunctions, itemIndex } = context;
|
|
23
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
24
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
25
|
+
const created = await (0, client_1.createSandboxFolder)(connection, sandbox, path);
|
|
26
|
+
return [
|
|
27
|
+
{
|
|
28
|
+
json: {
|
|
29
|
+
sandboxId,
|
|
30
|
+
path,
|
|
31
|
+
created,
|
|
32
|
+
},
|
|
33
|
+
pairedItem: { item: itemIndex },
|
|
34
|
+
},
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
async function deleteFile(context) {
|
|
38
|
+
const { executeFunctions, itemIndex } = context;
|
|
39
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
40
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
41
|
+
await (0, client_1.deleteSandboxFile)(connection, sandbox, path);
|
|
42
|
+
return [
|
|
43
|
+
{
|
|
44
|
+
json: {
|
|
45
|
+
sandboxId,
|
|
46
|
+
path,
|
|
47
|
+
deleted: true,
|
|
48
|
+
},
|
|
49
|
+
pairedItem: { item: itemIndex },
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
async function download(context) {
|
|
54
|
+
const { executeFunctions, itemIndex } = context;
|
|
55
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
56
|
+
const remotePath = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'remotePath', 'Remote Path', itemIndex);
|
|
57
|
+
const binaryPropertyName = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'binaryPropertyName', 'Binary Field', itemIndex);
|
|
58
|
+
const content = await (0, client_1.readSandboxFile)(connection, sandbox, remotePath, 'bytes');
|
|
59
|
+
const buffer = Buffer.isBuffer(content) ? content : Buffer.from(content);
|
|
60
|
+
const filename = remotePath.split('/').pop()?.trim() || 'download';
|
|
61
|
+
const binaryData = await executeFunctions.helpers.prepareBinaryData(buffer, filename, 'application/octet-stream');
|
|
62
|
+
return [
|
|
63
|
+
{
|
|
64
|
+
json: {
|
|
65
|
+
sandboxId,
|
|
66
|
+
remotePath,
|
|
67
|
+
fileName: filename,
|
|
68
|
+
sizeBytes: buffer.byteLength,
|
|
69
|
+
},
|
|
70
|
+
binary: {
|
|
71
|
+
[binaryPropertyName]: binaryData,
|
|
72
|
+
},
|
|
73
|
+
pairedItem: { item: itemIndex },
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
async function info(context) {
|
|
78
|
+
const { executeFunctions, itemIndex } = context;
|
|
79
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
80
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
81
|
+
const fileInfo = await (0, client_1.getSandboxFileInfo)(connection, sandbox, path);
|
|
82
|
+
return [
|
|
83
|
+
{
|
|
84
|
+
json: {
|
|
85
|
+
sandboxId,
|
|
86
|
+
...(0, helpers_1.toFileInfoData)(fileInfo),
|
|
87
|
+
},
|
|
88
|
+
pairedItem: { item: itemIndex },
|
|
89
|
+
},
|
|
90
|
+
];
|
|
91
|
+
}
|
|
92
|
+
async function list(context) {
|
|
93
|
+
const { executeFunctions, itemIndex } = context;
|
|
94
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
95
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
96
|
+
const depth = Number(executeFunctions.getNodeParameter('depth', itemIndex, 1));
|
|
97
|
+
const entries = await (0, client_1.listSandboxFiles)(connection, sandbox, path, Number.isInteger(depth) && depth > 0 ? depth : 1);
|
|
98
|
+
return [
|
|
99
|
+
{
|
|
100
|
+
json: {
|
|
101
|
+
sandboxId,
|
|
102
|
+
path,
|
|
103
|
+
count: entries.length,
|
|
104
|
+
files: entries.map(helpers_1.toFileInfoData),
|
|
105
|
+
},
|
|
106
|
+
pairedItem: { item: itemIndex },
|
|
107
|
+
},
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
async function move(context) {
|
|
111
|
+
const { executeFunctions, itemIndex } = context;
|
|
112
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
113
|
+
const source = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'source', 'Source', itemIndex);
|
|
114
|
+
const destination = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'destination', 'Destination', itemIndex);
|
|
115
|
+
const fileInfo = await (0, client_1.moveSandboxFile)(connection, sandbox, source, destination);
|
|
116
|
+
return [
|
|
117
|
+
{
|
|
118
|
+
json: {
|
|
119
|
+
sandboxId,
|
|
120
|
+
source,
|
|
121
|
+
destination,
|
|
122
|
+
...(0, helpers_1.toFileInfoData)(fileInfo),
|
|
123
|
+
},
|
|
124
|
+
pairedItem: { item: itemIndex },
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
async function read(context) {
|
|
129
|
+
const { executeFunctions, itemIndex } = context;
|
|
130
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
131
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
132
|
+
const content = await (0, client_1.readSandboxFile)(connection, sandbox, path, 'text');
|
|
133
|
+
return [
|
|
134
|
+
{
|
|
135
|
+
json: {
|
|
136
|
+
sandboxId,
|
|
137
|
+
path,
|
|
138
|
+
content,
|
|
139
|
+
},
|
|
140
|
+
pairedItem: { item: itemIndex },
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
async function upload(context) {
|
|
145
|
+
const { executeFunctions, itemIndex } = context;
|
|
146
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
147
|
+
const remotePath = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'remotePath', 'Remote Path', itemIndex);
|
|
148
|
+
const binaryPropertyName = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'binaryPropertyName', 'Binary Field', itemIndex);
|
|
149
|
+
const binaryMeta = executeFunctions.helpers.assertBinaryData(itemIndex, binaryPropertyName);
|
|
150
|
+
const buffer = await executeFunctions.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
|
|
151
|
+
const fileInfo = await (0, client_1.writeSandboxFile)(connection, sandbox, remotePath, buffer);
|
|
152
|
+
return [
|
|
153
|
+
{
|
|
154
|
+
json: {
|
|
155
|
+
sandboxId,
|
|
156
|
+
remotePath,
|
|
157
|
+
fileName: binaryMeta.fileName,
|
|
158
|
+
mimeType: binaryMeta.mimeType,
|
|
159
|
+
sizeBytes: buffer.length,
|
|
160
|
+
...(0, helpers_1.toFileInfoData)(fileInfo),
|
|
161
|
+
},
|
|
162
|
+
pairedItem: { item: itemIndex },
|
|
163
|
+
},
|
|
164
|
+
];
|
|
165
|
+
}
|
|
166
|
+
async function write(context) {
|
|
167
|
+
const { executeFunctions, itemIndex } = context;
|
|
168
|
+
const { connection, sandbox, sandboxId } = await getConnectedSandbox(context);
|
|
169
|
+
const path = (0, helpers_1.getRequiredStringParameter)(executeFunctions, 'path', 'Path', itemIndex);
|
|
170
|
+
const content = executeFunctions.getNodeParameter('content', itemIndex, '');
|
|
171
|
+
const fileInfo = await (0, client_1.writeSandboxFile)(connection, sandbox, path, String(content));
|
|
172
|
+
return [
|
|
173
|
+
{
|
|
174
|
+
json: {
|
|
175
|
+
sandboxId,
|
|
176
|
+
contentLength: String(content).length,
|
|
177
|
+
...(0, helpers_1.toFileInfoData)(fileInfo),
|
|
178
|
+
},
|
|
179
|
+
pairedItem: { item: itemIndex },
|
|
180
|
+
},
|
|
181
|
+
];
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=file.operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.operations.js","sourceRoot":"","sources":["../../../../nodes/E2B/actions/file.operations.ts"],"names":[],"mappings":";;AA2BA,oCAgBC;AAED,gCAgBC;AAED,4BAsCC;AAED,oBAeC;AAED,oBAuBC;AAED,oBAuBC;AAED,oBAgBC;AAED,wBAgCC;AAED,sBAiBC;AA/OD,sCASmB;AACnB,wCAAwE;AAG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AAU,CAAC,QAAQ;gBAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,SAAS,EAAE,MAAM,CAAC,MAAM;gBACxB,GAAG,IAAA,wBAAc,EAAC,QAAQ,CAAC;aAC3B;YACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC/B;KACD,CAAC;AACH,CAAC;AAEM,KAAK,UAAU,KAAK,CAAC,OAA4B;IACvD,MAAM,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC;IAChD,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC9E,MAAM,IAAI,GAAG,IAAA,oCAA0B,EAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IACrF,MAAM,OAAO,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;IAC5E,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAgB,EAAC,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAEpF,OAAO;QACN;YACC,IAAI,EAAE;gBACL,SAAS;gBACT,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM;gBACrC,GAAG,IAAA,wBAAc,EAAC,QAAQ,CAAC;aAC3B;YACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;SAC/B;KACD,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
import type { E2BOperationContext } from '../types';
|
|
3
|
+
export declare function status(context: E2BOperationContext): Promise<{
|
|
4
|
+
json: {
|
|
5
|
+
sandboxId: string;
|
|
6
|
+
repositoryPath: string;
|
|
7
|
+
status: IDataObject;
|
|
8
|
+
};
|
|
9
|
+
pairedItem: {
|
|
10
|
+
item: number;
|
|
11
|
+
};
|
|
12
|
+
}[]>;
|
|
13
|
+
export declare function add(context: E2BOperationContext): Promise<{
|
|
14
|
+
json: IDataObject;
|
|
15
|
+
pairedItem: {
|
|
16
|
+
item: number;
|
|
17
|
+
};
|
|
18
|
+
}[]>;
|
|
19
|
+
export declare function checkout(context: E2BOperationContext): Promise<{
|
|
20
|
+
json: IDataObject;
|
|
21
|
+
pairedItem: {
|
|
22
|
+
item: number;
|
|
23
|
+
};
|
|
24
|
+
}[]>;
|
|
25
|
+
export declare function clone(context: E2BOperationContext): Promise<{
|
|
26
|
+
json: IDataObject;
|
|
27
|
+
pairedItem: {
|
|
28
|
+
item: number;
|
|
29
|
+
};
|
|
30
|
+
}[]>;
|
|
31
|
+
export declare function commit(context: E2BOperationContext): Promise<{
|
|
32
|
+
json: IDataObject;
|
|
33
|
+
pairedItem: {
|
|
34
|
+
item: number;
|
|
35
|
+
};
|
|
36
|
+
}[]>;
|
|
37
|
+
export declare function pull(context: E2BOperationContext): Promise<{
|
|
38
|
+
json: IDataObject;
|
|
39
|
+
pairedItem: {
|
|
40
|
+
item: number;
|
|
41
|
+
};
|
|
42
|
+
}[]>;
|
|
43
|
+
export declare function push(context: E2BOperationContext): Promise<{
|
|
44
|
+
json: IDataObject;
|
|
45
|
+
pairedItem: {
|
|
46
|
+
item: number;
|
|
47
|
+
};
|
|
48
|
+
}[]>;
|