@nodetool-ai/automation-nodes 0.8.1

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.
@@ -0,0 +1,600 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { BaseNode, prop } from "@nodetool-ai/node-sdk";
8
+ import * as fs from "fs";
9
+ import * as path from "path";
10
+ import { FileWatchDebouncer, shouldEmitFileWatchEvent } from "../lib/file-watch-match.js";
11
+ import { parseFileWatchEvent, parseIntervalTick, parseManualEvent, parseWebhookEvent } from "../lib/trigger-payload.js";
12
+ // Minimum wait time in seconds to prevent tight loops when drift compensation
13
+ // causes wait_time to be near zero.
14
+ const MIN_WAIT_SECONDS = 0.001;
15
+ /**
16
+ * Async queue used by trigger nodes to receive events from external sources
17
+ * (file watchers, etc.) and yield them in genProcess().
18
+ */
19
+ class AsyncQueue {
20
+ _buffer = [];
21
+ _waiters = [];
22
+ _closed = false;
23
+ push(item) {
24
+ if (this._closed)
25
+ return;
26
+ if (this._waiters.length > 0) {
27
+ const resolve = this._waiters.shift();
28
+ resolve(item);
29
+ }
30
+ else {
31
+ this._buffer.push(item);
32
+ }
33
+ }
34
+ async get(timeoutMs) {
35
+ if (this._buffer.length > 0) {
36
+ return this._buffer.shift();
37
+ }
38
+ if (this._closed)
39
+ return null;
40
+ return new Promise((resolve) => {
41
+ let timer;
42
+ const waiterResolve = (value) => {
43
+ if (timer !== undefined)
44
+ clearTimeout(timer);
45
+ resolve(value);
46
+ };
47
+ this._waiters.push(waiterResolve);
48
+ if (timeoutMs !== undefined && timeoutMs > 0) {
49
+ timer = setTimeout(() => {
50
+ const idx = this._waiters.indexOf(waiterResolve);
51
+ if (idx >= 0)
52
+ this._waiters.splice(idx, 1);
53
+ resolve(null);
54
+ }, timeoutMs);
55
+ }
56
+ });
57
+ }
58
+ close() {
59
+ this._closed = true;
60
+ for (const w of this._waiters) {
61
+ w(null);
62
+ }
63
+ this._waiters.length = 0;
64
+ }
65
+ }
66
+ export class WaitNode extends BaseNode {
67
+ static nodeType = "nodetool.triggers.Wait";
68
+ static title = "Wait";
69
+ static description = "Pause workflow execution for a fixed delay, then pass the input through unchanged.\n" +
70
+ " wait, delay, sleep, pause, throttle, timer, rate-limit\n\n" +
71
+ " Use cases:\n" +
72
+ " - Rate-limit or throttle between steps\n" +
73
+ " - Wait a fixed delay before continuing\n" +
74
+ " - Space out polling or retry attempts";
75
+ static inlineFields = [];
76
+ static inputFields = ["input"];
77
+ static metadataOutputTypes = {
78
+ data: "any",
79
+ resumed_at: "str",
80
+ waited_seconds: "float"
81
+ };
82
+ async process() {
83
+ const timeoutSeconds = this.timeout_seconds;
84
+ const inputData = this.input;
85
+ const start = Date.now();
86
+ if (timeoutSeconds > 0) {
87
+ await new Promise((resolve) => setTimeout(resolve, Math.floor(timeoutSeconds * 1000)));
88
+ }
89
+ const waitedSeconds = (Date.now() - start) / 1000;
90
+ return {
91
+ data: inputData,
92
+ resumed_at: new Date().toISOString(),
93
+ waited_seconds: waitedSeconds
94
+ };
95
+ }
96
+ }
97
+ __decorate([
98
+ prop({
99
+ type: "int",
100
+ default: 0,
101
+ title: "Timeout Seconds",
102
+ description: "Seconds to wait before continuing (0 = no wait)",
103
+ min: 0
104
+ })
105
+ ], WaitNode.prototype, "timeout_seconds", void 0);
106
+ __decorate([
107
+ prop({
108
+ type: "any",
109
+ default: "",
110
+ title: "Input",
111
+ description: "Input data to pass through to the output after waiting"
112
+ })
113
+ ], WaitNode.prototype, "input", void 0);
114
+ // ---------------------------------------------------------------------------
115
+ // ManualTriggerNode — waits for externally pushed events via the runner API
116
+ // ---------------------------------------------------------------------------
117
+ export class ManualTriggerNode extends BaseNode {
118
+ static nodeType = "nodetool.triggers.ManualTrigger";
119
+ static title = "Manual Trigger";
120
+ static description = "Wait for manual events pushed via the API to drive interactive workflows.\n" +
121
+ " trigger, manual, api, interactive, event, push, chatbot\n\n" +
122
+ " Use cases:\n" +
123
+ " - Build chatbot-style workflows\n" +
124
+ " - Interactive processing pipelines\n" +
125
+ " - Manual batch processing and testing";
126
+ static inlineFields = ["name"];
127
+ static inputFields = [];
128
+ static metadataOutputTypes = {
129
+ data: "any",
130
+ timestamp: "str",
131
+ source: "str",
132
+ event_type: "str"
133
+ };
134
+ static isStreamingInput = true;
135
+ static isTrigger = true;
136
+ async process() {
137
+ return {};
138
+ }
139
+ /**
140
+ * Wake-up entry point: a manually fired trigger input becomes one event.
141
+ * The payload is either the adapter envelope ({data, timestamp, source})
142
+ * or an arbitrary value, which is emitted whole as `data`.
143
+ */
144
+ async emitTriggerEvent(event, outputs) {
145
+ const parsed = parseManualEvent(event.payload, this.name);
146
+ await outputs.emit("data", parsed.data);
147
+ await outputs.emit("timestamp", parsed.timestamp);
148
+ await outputs.emit("source", parsed.source);
149
+ await outputs.emit("event_type", parsed.event_type);
150
+ }
151
+ /**
152
+ * Streaming run: reads events pushed into the inbox via pushInputValue()
153
+ * and emits them downstream. Keeps running until EOS or max_events.
154
+ */
155
+ async run(inputs, outputs) {
156
+ const maxEvents = this.max_events;
157
+ const triggerName = this.name;
158
+ // `timeout_seconds` defaults to null, the documented "wait forever" value.
159
+ const timeoutSeconds = this.timeout_seconds ?? 0;
160
+ const timeoutMs = timeoutSeconds > 0 ? timeoutSeconds * 1000 : 0;
161
+ let eventsProcessed = 0;
162
+ const iterator = inputs.any()[Symbol.asyncIterator]();
163
+ // `unique symbol` so the `=== TIMEOUT` check below narrows the race result.
164
+ const TIMEOUT = Symbol("timeout");
165
+ while (true) {
166
+ let result;
167
+ if (timeoutMs > 0) {
168
+ // Stop waiting if no event arrives within the configured timeout.
169
+ let timer;
170
+ const timeoutPromise = new Promise((resolve) => {
171
+ timer = setTimeout(() => resolve(TIMEOUT), timeoutMs);
172
+ });
173
+ const next = await Promise.race([iterator.next(), timeoutPromise]);
174
+ clearTimeout(timer);
175
+ if (next === TIMEOUT)
176
+ break;
177
+ result = next;
178
+ }
179
+ else {
180
+ result = await iterator.next();
181
+ }
182
+ if (result.done)
183
+ break;
184
+ const [handle, item] = result.value;
185
+ if (handle === "__control__")
186
+ continue;
187
+ const event = {
188
+ data: item,
189
+ timestamp: new Date().toISOString(),
190
+ source: triggerName,
191
+ event_type: "manual"
192
+ };
193
+ await outputs.emit("data", event.data);
194
+ await outputs.emit("timestamp", event.timestamp);
195
+ await outputs.emit("source", event.source);
196
+ await outputs.emit("event_type", event.event_type);
197
+ eventsProcessed++;
198
+ if (maxEvents > 0 && eventsProcessed >= maxEvents) {
199
+ break;
200
+ }
201
+ }
202
+ }
203
+ }
204
+ __decorate([
205
+ prop({
206
+ type: "int",
207
+ default: 0,
208
+ title: "Max Events",
209
+ description: "Events to process before the node stops listening (0 = unlimited). Applies only while the node listens in a running workflow; a fired trigger starts its own run and emits exactly one event.",
210
+ min: 0
211
+ })
212
+ ], ManualTriggerNode.prototype, "max_events", void 0);
213
+ __decorate([
214
+ prop({
215
+ type: "str",
216
+ default: "manual_trigger",
217
+ title: "Name",
218
+ description: "Name for this trigger, emitted on the source output"
219
+ })
220
+ ], ManualTriggerNode.prototype, "name", void 0);
221
+ __decorate([
222
+ prop({
223
+ type: "float",
224
+ default: null,
225
+ title: "Timeout Seconds",
226
+ description: "How long to wait for the next event before stopping (empty = wait forever). Applies only while the node listens in a running workflow.",
227
+ min: 0
228
+ })
229
+ ], ManualTriggerNode.prototype, "timeout_seconds", void 0);
230
+ // ---------------------------------------------------------------------------
231
+ // IntervalTriggerNode — fires at regular time intervals
232
+ // ---------------------------------------------------------------------------
233
+ export class IntervalTriggerNode extends BaseNode {
234
+ static nodeType = "nodetool.triggers.IntervalTrigger";
235
+ static title = "Interval Trigger";
236
+ static description = "Fire events at regular time intervals, like a timer or scheduler.\n" +
237
+ " trigger, interval, timer, schedule, cron, periodic, heartbeat\n\n" +
238
+ " Use cases:\n" +
239
+ " - Periodic data collection or polling\n" +
240
+ " - Scheduled batch processing\n" +
241
+ " - Heartbeat or time-based automation";
242
+ static inlineFields = ["interval_seconds"];
243
+ static inputFields = [];
244
+ static metadataOutputTypes = {
245
+ tick: "int",
246
+ elapsed_seconds: "float",
247
+ interval_seconds: "float",
248
+ timestamp: "str",
249
+ source: "str",
250
+ event_type: "str"
251
+ };
252
+ static isTrigger = true;
253
+ async process() {
254
+ return {};
255
+ }
256
+ /**
257
+ * Wake-up entry point: the scheduler adapter synthesizes a tick payload
258
+ * ({tick, elapsed_seconds, interval_seconds, timestamp}); missing fields
259
+ * are synthesized here so a bare fire still yields a complete event.
260
+ */
261
+ async emitTriggerEvent(event, outputs) {
262
+ const parsed = parseIntervalTick(event.payload, this.interval_seconds);
263
+ await outputs.emit("tick", parsed.tick);
264
+ await outputs.emit("elapsed_seconds", parsed.elapsed_seconds);
265
+ await outputs.emit("interval_seconds", parsed.interval_seconds);
266
+ await outputs.emit("timestamp", parsed.timestamp);
267
+ await outputs.emit("source", parsed.source);
268
+ await outputs.emit("event_type", parsed.event_type);
269
+ }
270
+ async *genProcess() {
271
+ const intervalMs = Math.max(MIN_WAIT_SECONDS * 1000, this.interval_seconds * 1000);
272
+ const initialDelayMs = this.initial_delay_seconds * 1000;
273
+ const maxEvents = this.max_events;
274
+ const emitOnStart = this.emit_on_start;
275
+ const driftCompensation = this.include_drift_compensation;
276
+ const startTime = Date.now();
277
+ let tickCount = 0;
278
+ if (initialDelayMs > 0) {
279
+ await new Promise((r) => setTimeout(r, initialDelayMs));
280
+ }
281
+ if (emitOnStart) {
282
+ tickCount++;
283
+ yield this._createEvent(tickCount, startTime);
284
+ if (maxEvents > 0 && tickCount >= maxEvents)
285
+ return;
286
+ }
287
+ // Main loop. When `emit_on_start` fired, the on-start emission already
288
+ // consumed the first slot (tickCount === 1) so `tickCount` whole intervals
289
+ // should have elapsed by the next scheduled tick. When it did not, the next
290
+ // tick is the very first one and must still land a full interval after the
291
+ // initial delay — hence the +1 offset. Without it, drift compensation makes
292
+ // the first tick fire immediately, defeating `emit_on_start = false`.
293
+ const driftOffset = emitOnStart ? 0 : 1;
294
+ while (true) {
295
+ if (driftCompensation) {
296
+ const intervalsElapsed = tickCount + driftOffset;
297
+ const nextTickMs = intervalsElapsed * intervalMs + initialDelayMs;
298
+ const elapsed = Date.now() - startTime;
299
+ const waitMs = Math.max(MIN_WAIT_SECONDS * 1000, nextTickMs - elapsed);
300
+ await new Promise((r) => setTimeout(r, waitMs));
301
+ }
302
+ else {
303
+ await new Promise((r) => setTimeout(r, intervalMs));
304
+ }
305
+ tickCount++;
306
+ yield this._createEvent(tickCount, startTime);
307
+ if (maxEvents > 0 && tickCount >= maxEvents)
308
+ return;
309
+ }
310
+ }
311
+ _createEvent(tick, startTime) {
312
+ return {
313
+ tick,
314
+ elapsed_seconds: (Date.now() - startTime) / 1000,
315
+ interval_seconds: this.interval_seconds,
316
+ timestamp: new Date().toISOString(),
317
+ source: "interval",
318
+ event_type: "tick"
319
+ };
320
+ }
321
+ }
322
+ __decorate([
323
+ prop({
324
+ type: "int",
325
+ default: 0,
326
+ title: "Max Events",
327
+ description: "Ticks to emit before the node stops (0 = unlimited). Applies only while the node runs in the editor; the scheduler keeps firing an activated trigger regardless.",
328
+ min: 0
329
+ })
330
+ ], IntervalTriggerNode.prototype, "max_events", void 0);
331
+ __decorate([
332
+ prop({
333
+ type: "float",
334
+ default: 60,
335
+ title: "Interval Seconds",
336
+ description: "Interval between triggers in seconds"
337
+ })
338
+ ], IntervalTriggerNode.prototype, "interval_seconds", void 0);
339
+ __decorate([
340
+ prop({
341
+ type: "float",
342
+ default: 0,
343
+ title: "Initial Delay Seconds",
344
+ description: "Delay before the first trigger fires",
345
+ min: 0
346
+ })
347
+ ], IntervalTriggerNode.prototype, "initial_delay_seconds", void 0);
348
+ __decorate([
349
+ prop({
350
+ type: "bool",
351
+ default: true,
352
+ title: "Emit On Start",
353
+ description: "Whether to emit an event immediately on start"
354
+ })
355
+ ], IntervalTriggerNode.prototype, "emit_on_start", void 0);
356
+ __decorate([
357
+ prop({
358
+ type: "bool",
359
+ default: true,
360
+ title: "Include Drift Compensation",
361
+ description: "Compensate for execution time to maintain accurate intervals"
362
+ })
363
+ ], IntervalTriggerNode.prototype, "include_drift_compensation", void 0);
364
+ // ---------------------------------------------------------------------------
365
+ // WebhookTriggerNode — emits the event delivered by the server webhook route
366
+ // ---------------------------------------------------------------------------
367
+ export class WebhookTriggerNode extends BaseNode {
368
+ static nodeType = "nodetool.triggers.WebhookTrigger";
369
+ static title = "Webhook Trigger";
370
+ static description = "Run the workflow whenever an HTTP request arrives at its webhook URL.\n" +
371
+ " trigger, webhook, http, api, request, integration\n\n" +
372
+ " Use cases:\n" +
373
+ " - Receive notifications from external services\n" +
374
+ " - Build API endpoints that trigger workflows\n" +
375
+ " - Integrate with third-party webhook providers\n\n" +
376
+ " The node has nothing to configure: activating the workflow creates the\n" +
377
+ " registration that owns the delivery URL and the shared secret. Both are\n" +
378
+ " shown in the workflow's trigger panel; send the secret in the\n" +
379
+ " x-webhook-secret header.";
380
+ static inlineFields = [];
381
+ static inputFields = [];
382
+ static metadataOutputTypes = {
383
+ body: "any",
384
+ headers: "dict[str, any]",
385
+ query: "dict[str, any]",
386
+ method: "str",
387
+ path: "str",
388
+ timestamp: "str",
389
+ source: "str",
390
+ event_type: "str"
391
+ };
392
+ static isTrigger = true;
393
+ async process() {
394
+ return {};
395
+ }
396
+ /**
397
+ * Wake-up entry point: the server webhook route captures
398
+ * {body, headers, query, method} (plus path/timestamp when available)
399
+ * into the trigger input; a non-envelope payload is treated as the body.
400
+ */
401
+ async emitTriggerEvent(event, outputs) {
402
+ const parsed = parseWebhookEvent(event.payload);
403
+ await outputs.emit("body", parsed.body);
404
+ await outputs.emit("headers", parsed.headers);
405
+ await outputs.emit("query", parsed.query);
406
+ await outputs.emit("method", parsed.method);
407
+ await outputs.emit("path", parsed.path);
408
+ await outputs.emit("timestamp", parsed.timestamp);
409
+ await outputs.emit("source", parsed.source);
410
+ await outputs.emit("event_type", parsed.event_type);
411
+ }
412
+ }
413
+ // ---------------------------------------------------------------------------
414
+ // FileWatchTriggerNode — monitors filesystem changes
415
+ // ---------------------------------------------------------------------------
416
+ export class FileWatchTriggerNode extends BaseNode {
417
+ static nodeType = "nodetool.triggers.FileWatchTrigger";
418
+ static title = "File Watch Trigger";
419
+ static description = "Monitor a directory or file and emit an event whenever a change is detected.\n" +
420
+ " trigger, file, watch, filesystem, monitor, change, automation\n\n" +
421
+ " Use cases:\n" +
422
+ " - Process files as they arrive in a directory\n" +
423
+ " - Trigger workflows on configuration changes\n" +
424
+ " - Build file-based automation pipelines";
425
+ static inlineFields = ["path"];
426
+ static inputFields = [];
427
+ static metadataOutputTypes = {
428
+ event: "str",
429
+ path: "str",
430
+ dest_path: "str",
431
+ is_directory: "bool",
432
+ timestamp: "str"
433
+ };
434
+ static isTrigger = true;
435
+ async process() {
436
+ return {};
437
+ }
438
+ /**
439
+ * Wake-up entry point: the file-watch adapter (or the launch-time
440
+ * snapshot diff) delivers {event, path, dest_path, is_directory}.
441
+ */
442
+ async emitTriggerEvent(event, outputs) {
443
+ const parsed = parseFileWatchEvent(event.payload);
444
+ await outputs.emit("event", parsed.event);
445
+ await outputs.emit("path", parsed.path);
446
+ await outputs.emit("dest_path", parsed.dest_path);
447
+ await outputs.emit("is_directory", parsed.is_directory);
448
+ await outputs.emit("timestamp", parsed.timestamp);
449
+ }
450
+ async *genProcess() {
451
+ const watchPath = path.resolve(this.path);
452
+ const recursive = this.recursive;
453
+ const patterns = this.patterns;
454
+ const ignorePatterns = this.ignore_patterns;
455
+ const watchEvents = this.events;
456
+ const debounceMs = this.debounce_seconds * 1000;
457
+ const maxEvents = this.max_events;
458
+ if (!fs.existsSync(watchPath)) {
459
+ throw new Error(`Watch path does not exist: ${watchPath}`);
460
+ }
461
+ const queue = new AsyncQueue();
462
+ const debouncer = new FileWatchDebouncer(debounceMs);
463
+ const filter = {
464
+ patterns,
465
+ ignorePatterns,
466
+ events: watchEvents
467
+ };
468
+ const emitEvent = (eventType, filePath, isDirectory) => {
469
+ if (!shouldEmitFileWatchEvent(eventType, filePath, filter, debouncer)) {
470
+ return;
471
+ }
472
+ queue.push({
473
+ event: eventType,
474
+ path: filePath,
475
+ dest_path: "",
476
+ is_directory: isDirectory,
477
+ timestamp: new Date().toISOString()
478
+ });
479
+ };
480
+ const watchers = [];
481
+ // Returns the failure rather than throwing it, so a path that watches
482
+ // nowhere (e.g. recursive watch unsupported on this platform) is reported
483
+ // below instead of leaving the generator blocked on queue.get() forever.
484
+ const watchDir = (dir) => {
485
+ try {
486
+ const watcher = fs.watch(dir, { recursive, persistent: true }, (eventType, filename) => {
487
+ if (!filename)
488
+ return;
489
+ const fullPath = path.join(dir, filename);
490
+ const isDir = fs.existsSync(fullPath) && fs.statSync(fullPath).isDirectory();
491
+ // fs.watch emits 'rename' for create/delete and 'change' for modify
492
+ if (eventType === "rename") {
493
+ if (fs.existsSync(fullPath)) {
494
+ emitEvent("created", fullPath, isDir);
495
+ }
496
+ else {
497
+ emitEvent("deleted", fullPath, false);
498
+ }
499
+ }
500
+ else if (eventType === "change") {
501
+ emitEvent("modified", fullPath, isDir);
502
+ }
503
+ });
504
+ watchers.push(watcher);
505
+ return null;
506
+ }
507
+ catch (err) {
508
+ return err instanceof Error ? err : null;
509
+ }
510
+ };
511
+ const watchError = watchDir(watchPath);
512
+ if (watchers.length === 0) {
513
+ throw new Error(`Failed to watch path: ${watchPath}` +
514
+ (watchError === null ? "" : ` (${watchError.message})`));
515
+ }
516
+ let eventsProcessed = 0;
517
+ try {
518
+ while (true) {
519
+ const event = await queue.get();
520
+ if (event === null)
521
+ break;
522
+ yield event;
523
+ eventsProcessed++;
524
+ if (maxEvents > 0 && eventsProcessed >= maxEvents)
525
+ break;
526
+ }
527
+ }
528
+ finally {
529
+ for (const w of watchers) {
530
+ w.close();
531
+ }
532
+ }
533
+ }
534
+ }
535
+ __decorate([
536
+ prop({
537
+ type: "int",
538
+ default: 0,
539
+ title: "Max Events",
540
+ description: "File events to emit before the node stops (0 = unlimited). Applies only while the node runs in the editor; the file-watch adapter keeps firing an activated trigger regardless.",
541
+ min: 0
542
+ })
543
+ ], FileWatchTriggerNode.prototype, "max_events", void 0);
544
+ __decorate([
545
+ prop({
546
+ type: "str",
547
+ default: ".",
548
+ title: "Path",
549
+ description: "Path to watch (file or directory)"
550
+ })
551
+ ], FileWatchTriggerNode.prototype, "path", void 0);
552
+ __decorate([
553
+ prop({
554
+ type: "bool",
555
+ default: false,
556
+ title: "Recursive",
557
+ description: "Watch subdirectories recursively"
558
+ })
559
+ ], FileWatchTriggerNode.prototype, "recursive", void 0);
560
+ __decorate([
561
+ prop({
562
+ type: "list[str]",
563
+ default: ["*"],
564
+ title: "Patterns",
565
+ description: "File patterns to watch (e.g., ['*.txt', '*.json'])"
566
+ })
567
+ ], FileWatchTriggerNode.prototype, "patterns", void 0);
568
+ __decorate([
569
+ prop({
570
+ type: "list[str]",
571
+ default: [],
572
+ title: "Ignore Patterns",
573
+ description: "File patterns to ignore"
574
+ })
575
+ ], FileWatchTriggerNode.prototype, "ignore_patterns", void 0);
576
+ __decorate([
577
+ prop({
578
+ type: "list[str]",
579
+ default: ["created", "modified", "deleted", "moved"],
580
+ title: "Events",
581
+ description: "Types of events to watch for"
582
+ })
583
+ ], FileWatchTriggerNode.prototype, "events", void 0);
584
+ __decorate([
585
+ prop({
586
+ type: "float",
587
+ default: 0.5,
588
+ title: "Debounce Seconds",
589
+ description: "Debounce time to avoid duplicate events",
590
+ min: 0
591
+ })
592
+ ], FileWatchTriggerNode.prototype, "debounce_seconds", void 0);
593
+ export const TRIGGER_NODES = [
594
+ WaitNode,
595
+ ManualTriggerNode,
596
+ IntervalTriggerNode,
597
+ WebhookTriggerNode,
598
+ FileWatchTriggerNode
599
+ ];
600
+ //# sourceMappingURL=triggers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/nodes/triggers.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAMvD,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,4BAA4B,CAAC;AAKpC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAEnC,8EAA8E;AAC9E,oCAAoC;AACpC,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAK/B;;;GAGG;AACH,MAAM,UAAU;IACN,OAAO,GAAQ,EAAE,CAAC;IAClB,QAAQ,GAAqC,EAAE,CAAC;IAChD,OAAO,GAAG,KAAK,CAAC;IAExB,IAAI,CAAC,IAAO;QACV,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAG,CAAC;YACvC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChB,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,SAAkB;QAC1B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAG,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