@loopthink/n8n-nodes-loopthink 0.9.0 → 0.10.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.
|
@@ -12,15 +12,21 @@ export interface ParamsPayload {
|
|
|
12
12
|
kind: 'params';
|
|
13
13
|
params: IDataObject;
|
|
14
14
|
}
|
|
15
|
+
export interface StatementPayload {
|
|
16
|
+
kind: 'statement';
|
|
17
|
+
statement: string;
|
|
18
|
+
params: IDataObject;
|
|
19
|
+
}
|
|
15
20
|
export interface QueuedRequest {
|
|
16
21
|
requestId: string;
|
|
17
22
|
tool: string;
|
|
18
|
-
request: HttpPayload | ParamsPayload;
|
|
23
|
+
request: HttpPayload | ParamsPayload | StatementPayload;
|
|
19
24
|
masking: MaskingRule[];
|
|
20
25
|
scope?: string;
|
|
21
26
|
credentialRef?: string;
|
|
22
27
|
leaseUntil: number;
|
|
23
28
|
}
|
|
24
29
|
export declare function isParamsRequest(request: QueuedRequest['request']): request is ParamsPayload;
|
|
30
|
+
export declare function isStatementRequest(request: QueuedRequest['request']): request is StatementPayload;
|
|
25
31
|
export declare const RUNNER_OUTPUTS: INodeOutputConfiguration[];
|
|
26
32
|
export declare function emitJob(ctx: ITriggerFunctions, job: QueuedRequest): void;
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RUNNER_OUTPUTS = void 0;
|
|
4
4
|
exports.isParamsRequest = isParamsRequest;
|
|
5
|
+
exports.isStatementRequest = isStatementRequest;
|
|
5
6
|
exports.emitJob = emitJob;
|
|
6
7
|
function isParamsRequest(request) {
|
|
7
8
|
return request?.kind === 'params';
|
|
8
9
|
}
|
|
10
|
+
function isStatementRequest(request) {
|
|
11
|
+
return request?.kind === 'statement';
|
|
12
|
+
}
|
|
9
13
|
exports.RUNNER_OUTPUTS = [
|
|
10
14
|
{ type: 'main' },
|
|
11
15
|
];
|
|
@@ -16,7 +20,10 @@ function emitJob(ctx, job) {
|
|
|
16
20
|
requestId: job.requestId,
|
|
17
21
|
tool: job.tool,
|
|
18
22
|
request: job.request,
|
|
19
|
-
params: isParamsRequest(job.request)
|
|
23
|
+
params: isParamsRequest(job.request) || isStatementRequest(job.request)
|
|
24
|
+
? job.request.params
|
|
25
|
+
: {},
|
|
26
|
+
statement: isStatementRequest(job.request) ? job.request.statement : null,
|
|
20
27
|
masking: job.masking ?? [],
|
|
21
28
|
scope: job.scope ?? null,
|
|
22
29
|
leaseUntil: job.leaseUntil,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflowTools.js","sourceRoot":"","sources":["../../../nodes/LoopthinkRunner/workflowTools.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"workflowTools.js","sourceRoot":"","sources":["../../../nodes/LoopthinkRunner/workflowTools.ts"],"names":[],"mappings":";;;AAwEA,0CAEC;AAED,gDAIC;AAyBD,0BAoBC;AArDD,SAAgB,eAAe,CAAC,OAAiC;IAChE,OAAQ,OAAyB,EAAE,IAAI,KAAK,QAAQ,CAAC;AACtD,CAAC;AAED,SAAgB,kBAAkB,CACjC,OAAiC;IAEjC,OAAQ,OAA4B,EAAE,IAAI,KAAK,WAAW,CAAC;AAC5D,CAAC;AAWY,QAAA,cAAc,GAA+B;IAGzD,EAAE,IAAI,EAAE,MAA0C,EAAE;CACpD,CAAC;AAUF,SAAgB,OAAO,CAAC,GAAsB,EAAE,GAAkB;IACjE,GAAG,CAAC,IAAI,CAAC;QACR,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC;YAC3B;gBACC,SAAS,EAAE,GAAG,CAAC,SAAS;gBACxB,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,GAAG,CAAC,OAAiC;gBAI9C,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC;oBACtE,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM;oBACpB,CAAC,CAAC,EAAE;gBACL,SAAS,EAAE,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;gBACzE,OAAO,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE;gBAC1B,KAAK,EAAE,GAAG,CAAC,KAAK,IAAI,IAAI;gBACxB,UAAU,EAAE,GAAG,CAAC,UAAU;aAC1B;SACD,CAAC;KACF,CAAC,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopthink/n8n-nodes-loopthink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Run loopthink MCP tools from inside your own network. The node reaches out to loopthink, claims tool calls, executes them against your internal HTTP APIs and returns masked results \u2014 no inbound connection required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|