@hostwebhook/node-types 1.16.0 → 1.17.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/registry.d.ts +13 -0
- package/dist/registry.js +4 -0
- package/package.json +1 -1
package/dist/registry.d.ts
CHANGED
|
@@ -28,6 +28,19 @@ export interface NodeRegistryEntry {
|
|
|
28
28
|
color: string;
|
|
29
29
|
/** Whether this node supports test execution */
|
|
30
30
|
testable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional per-instance predicate marking a node as "tool-only".
|
|
33
|
+
* When this returns true, the canvas should hide every connectable
|
|
34
|
+
* handle so the user cannot draw pipeline edges to/from this node —
|
|
35
|
+
* it lives instead inside an upstream AI Node's tools[] list.
|
|
36
|
+
*
|
|
37
|
+
* Lets new toolkit-style nodes opt-in without per-component hardcoding
|
|
38
|
+
* in the dashboard. Currently only emailAction(aiEnabled=true) uses
|
|
39
|
+
* this; serviceTrigger or future Slack/Discord toolkits could too.
|
|
40
|
+
*
|
|
41
|
+
* Predicate must be pure (no side effects) — called on every render.
|
|
42
|
+
*/
|
|
43
|
+
isToolOnly?: (entity: Record<string, unknown>) => boolean;
|
|
31
44
|
}
|
|
32
45
|
export declare const NODE_REGISTRY: Record<NodeType, NodeRegistryEntry>;
|
|
33
46
|
/** Get registry entry by canonical type */
|
package/dist/registry.js
CHANGED
|
@@ -145,6 +145,10 @@ exports.NODE_REGISTRY = {
|
|
|
145
145
|
group: 'Actions', detailPath: '/dashboard/email-actions', apiPath: '/email-actions',
|
|
146
146
|
stateKey: 'emailActions', allStateKey: 'allEmailActions',
|
|
147
147
|
color: '#f472b6', testable: true,
|
|
148
|
+
// AI Toolkit mode wires the node through the upstream AI Node's
|
|
149
|
+
// tools[] list, not via canvas edges — hide handles to prevent
|
|
150
|
+
// accidental misrouting that would silently fire with empty fields.
|
|
151
|
+
isToolOnly: (e) => e.aiEnabled === true,
|
|
148
152
|
},
|
|
149
153
|
httpAction: {
|
|
150
154
|
type: 'httpAction', prefix: 'ha', label: 'HTTP Action',
|
package/package.json
CHANGED