@hostwebhook/node-types 1.41.0 → 1.42.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.
@@ -17,13 +17,13 @@ exports.isNodeType = isNodeType;
17
17
  /** All node types that can appear as pipeline outputs */
18
18
  const PROCESSING_OUTPUTS = [
19
19
  'endpoint', 'router', 'filter', 'transform', 'cache', 'code', 'rateLimiter',
20
- 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown', 'fileTransform',
20
+ 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'markdown', 'fileTransform', 'limit',
21
21
  'emailAction', 'httpAction', 'mongoAction', 'postgresAction', 'notificationAction', 'sheetsAction', 'calendarAction', 'docsAction', 'driveAction', 'firecrawlAction', 'telegramAction', 'whatsappAction', 'discordAction', 'slackAction', 'googleContactsAction', 'vectorStore', 'rssAction', 'loop',
22
22
  ];
23
23
  /** Standard processing input sources */
24
24
  const STANDARD_INPUTS = [
25
25
  'endpoint', 'scheduledWebhook', 'serviceTrigger', 'voiceAgent', 'router', 'filter', 'transform',
26
- 'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop', 'markdown', 'fileTransform',
26
+ 'cache', 'code', 'rateLimiter', 'aggregator', 'conditional', 'delay', 'schemaValidator', 'split', 'loop', 'markdown', 'fileTransform', 'limit',
27
27
  ];
28
28
  /** Action nodes that can chain (non-terminal) */
29
29
  const CHAINABLE_ACTIONS = ['httpAction', 'mongoAction', 'postgresAction', 'sheetsAction', 'calendarAction', 'docsAction', 'driveAction', 'firecrawlAction', 'telegramAction', 'whatsappAction', 'discordAction', 'slackAction', 'googleContactsAction', 'vectorStore', 'rssAction'];
@@ -82,6 +82,7 @@ exports.NODE_CONNECTIONS = {
82
82
  // ── Processing (transform-like) ──
83
83
  markdown: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
84
84
  fileTransform: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
85
+ limit: { acceptsInputFrom: STANDARD_INPUTS, canOutputTo: PROCESSING_OUTPUTS },
85
86
  // ── Annotations (visual only, no pipeline processing) ──
86
87
  stickyNote: { acceptsInputFrom: [], canOutputTo: [] },
87
88
  };
package/dist/dispatch.js CHANGED
@@ -22,6 +22,7 @@ exports.NODE_DISPATCH = {
22
22
  markdown: { service: 'markdownNodesService', collection: 'markdownnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: true, pipelineDispatch: 'generic' },
23
23
  fileTransform: { service: 'fileTransformNodesService', collection: 'filetransformnodes', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true, pipelineDispatch: 'generic' },
24
24
  vectorStore: { service: 'vectorStoreNodesService', collection: 'vectorstorenodes', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true, pipelineDispatch: 'generic' },
25
+ limit: { service: 'limitNodesService', collection: 'limitnodes', hasFilters: false, outputFields: ['outputNodes'], customDispatch: false, pipelineDispatch: 'generic' },
25
26
  // ── Pipeline processing — custom dispatch (dedicated switch case) ──
26
27
  schemaValidator: { service: 'schemaValidatorsService', collection: 'schemavalidators', hasFilters: false, outputFields: ['outputNodes', 'invalidOutputNodes'], customDispatch: true, pipelineDispatch: 'custom' },
27
28
  delay: { service: 'delayNodesService', collection: 'delaynodes', hasFilters: true, outputFields: ['outputNodes'], customDispatch: true, pipelineDispatch: 'custom' },
package/dist/registry.js CHANGED
@@ -138,6 +138,14 @@ exports.NODE_REGISTRY = {
138
138
  stateKey: 'fileTransformNodes', allStateKey: 'allFileTransformNodes',
139
139
  color: '#f97316', testable: true,
140
140
  },
141
+ limit: {
142
+ type: 'limit', prefix: 'lim', label: 'Limit',
143
+ group: 'Flow Control', detailPath: '/dashboard/limit-nodes', apiPath: '/limit-nodes',
144
+ stateKey: 'limitNodes', allStateKey: 'allLimitNodes',
145
+ // Amber matches filter / aggregator family — visually groups
146
+ // "array-shape transformations" together on the canvas.
147
+ color: '#fbbf24', testable: true,
148
+ },
141
149
  // ── Routing ──
142
150
  router: {
143
151
  type: 'router', prefix: 'ro', label: 'Router',
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** All valid node type identifiers */
2
- export type NodeType = 'endpoint' | 'scheduledWebhook' | 'chatTrigger' | 'serviceTrigger' | 'voiceAgent' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'postgresAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'driveAction' | 'firecrawlAction' | 'telegramAction' | 'whatsappAction' | 'discordAction' | 'slackAction' | 'googleContactsAction' | 'vectorStore' | 'rssAction' | 'stickyNote';
2
+ export type NodeType = 'endpoint' | 'scheduledWebhook' | 'chatTrigger' | 'serviceTrigger' | 'voiceAgent' | 'filter' | 'transform' | 'schemaValidator' | 'conditional' | 'delay' | 'rateLimiter' | 'aggregator' | 'cache' | 'code' | 'ai' | 'merge' | 'approval' | 'split' | 'loop' | 'markdown' | 'fileTransform' | 'limit' | 'router' | 'emailAction' | 'httpAction' | 'mongoAction' | 'postgresAction' | 'notificationAction' | 'sheetsAction' | 'calendarAction' | 'docsAction' | 'driveAction' | 'firecrawlAction' | 'telegramAction' | 'whatsappAction' | 'discordAction' | 'slackAction' | 'googleContactsAction' | 'vectorStore' | 'rssAction' | 'stickyNote';
3
3
  /** Node role in the pipeline */
4
4
  export type NodeRole = 'source' | 'processing' | 'flowControl' | 'routing' | 'action' | 'monitoring';
5
5
  /** Handle positions on the canvas node */
package/dist/ui.js CHANGED
@@ -31,6 +31,7 @@ exports.NODE_UI = {
31
31
  ai: { fromNodes: true, toNodes: true },
32
32
  markdown: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
33
33
  fileTransform: { fromNodes: true, toNodes: true },
34
+ limit: { fromNodes: true, toNodes: true, special: { loopBackAllowed: true } },
34
35
  // ── Flow control nodes ──
35
36
  split: { fromNodes: true, toNodes: true, outputHandles: ['right'], special: { connectModal: 'output-group', outputGroups: { field: 'outputs', nameField: 'name', summaryField: 'field', label: 'output', elseField: 'remainderOutputNodes' } } },
36
37
  merge: { fromNodes: true, toNodes: true, inputHandles: ['left', 'top'] },
@@ -95,6 +96,7 @@ exports.PREFIX_TO_TYPE = [
95
96
  { prefix: 'loop-', type: 'loop', canvasType: 'loop' },
96
97
  { prefix: 'md-', type: 'markdown', canvasType: 'markdown' },
97
98
  { prefix: 'ft-', type: 'fileTransform', canvasType: 'fileTransform' },
99
+ { prefix: 'lim-', type: 'limit', canvasType: 'limit' },
98
100
  { prefix: 'doc-', type: 'docsAction', canvasType: 'docsAction' },
99
101
  { prefix: 'drv-', type: 'driveAction', canvasType: 'driveAction' },
100
102
  { prefix: 'fc-', type: 'firecrawlAction', canvasType: 'firecrawlAction' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostwebhook/node-types",
3
- "version": "1.41.0",
3
+ "version": "1.42.0",
4
4
  "description": "Shared node type definitions, connection rules, and dispatch config for HostWebhook",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",