@triggerix-ai/registry 0.0.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 imba97 <https://github.com/imba97>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";const registry=require("@triggerix/registry");class AIRegistry extends registry.BaseRegistry{}function defineAIEvent(e){return e}function defineAIAction(e){return e}function defineAICondition(e){return e}function createAIRegistry(){return new AIRegistry}exports.AIRegistry=AIRegistry,exports.createAIRegistry=createAIRegistry,exports.defineAIAction=defineAIAction,exports.defineAICondition=defineAICondition,exports.defineAIEvent=defineAIEvent;
@@ -0,0 +1,65 @@
1
+ import { BaseRegistry } from '@triggerix/registry';
2
+
3
+ /**
4
+ * Schema description for a single parameter of an event/action/condition.
5
+ * AI-friendly: only describes structure, not runtime behavior.
6
+ */
7
+ interface ParamSchema {
8
+ type: 'string' | 'number' | 'boolean' | 'object';
9
+ description?: string;
10
+ enum?: unknown[];
11
+ required?: boolean;
12
+ default?: unknown;
13
+ }
14
+ /**
15
+ * AI-aware event definition.
16
+ * Extends BaseItemDef with metadata for LLM consumption.
17
+ */
18
+ interface AIEventDef {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ prompt?: string;
23
+ params?: Record<string, ParamSchema>;
24
+ }
25
+ /**
26
+ * AI-aware action definition.
27
+ */
28
+ interface AIActionDef {
29
+ id: string;
30
+ label: string;
31
+ description: string;
32
+ prompt?: string;
33
+ params?: Record<string, ParamSchema>;
34
+ }
35
+ /**
36
+ * AI-aware condition definition.
37
+ */
38
+ interface AIConditionDef {
39
+ id: string;
40
+ label: string;
41
+ description: string;
42
+ prompt?: string;
43
+ }
44
+ /**
45
+ * Identity helper — preserves the input type as the output type.
46
+ */
47
+ declare function defineAIEvent(def: AIEventDef): AIEventDef;
48
+ declare function defineAIAction(def: AIActionDef): AIActionDef;
49
+ declare function defineAICondition(def: AIConditionDef): AIConditionDef;
50
+
51
+ /**
52
+ * AI-enhanced registry. Inherits the type-safe event/action/condition storage
53
+ * from BaseRegistry while adding awareness of AI-facing metadata.
54
+ */
55
+ declare class AIRegistry extends BaseRegistry<AIEventDef, AIActionDef, AIConditionDef> {
56
+ }
57
+
58
+ /**
59
+ * Factory for AIRegistry. Prefer this over `new AIRegistry()` for consistency
60
+ * with other ecosystem packages.
61
+ */
62
+ declare function createAIRegistry(): AIRegistry;
63
+
64
+ export { AIRegistry, createAIRegistry, defineAIAction, defineAICondition, defineAIEvent };
65
+ export type { AIActionDef, AIConditionDef, AIEventDef, ParamSchema };
@@ -0,0 +1,65 @@
1
+ import { BaseRegistry } from '@triggerix/registry';
2
+
3
+ /**
4
+ * Schema description for a single parameter of an event/action/condition.
5
+ * AI-friendly: only describes structure, not runtime behavior.
6
+ */
7
+ interface ParamSchema {
8
+ type: 'string' | 'number' | 'boolean' | 'object';
9
+ description?: string;
10
+ enum?: unknown[];
11
+ required?: boolean;
12
+ default?: unknown;
13
+ }
14
+ /**
15
+ * AI-aware event definition.
16
+ * Extends BaseItemDef with metadata for LLM consumption.
17
+ */
18
+ interface AIEventDef {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ prompt?: string;
23
+ params?: Record<string, ParamSchema>;
24
+ }
25
+ /**
26
+ * AI-aware action definition.
27
+ */
28
+ interface AIActionDef {
29
+ id: string;
30
+ label: string;
31
+ description: string;
32
+ prompt?: string;
33
+ params?: Record<string, ParamSchema>;
34
+ }
35
+ /**
36
+ * AI-aware condition definition.
37
+ */
38
+ interface AIConditionDef {
39
+ id: string;
40
+ label: string;
41
+ description: string;
42
+ prompt?: string;
43
+ }
44
+ /**
45
+ * Identity helper — preserves the input type as the output type.
46
+ */
47
+ declare function defineAIEvent(def: AIEventDef): AIEventDef;
48
+ declare function defineAIAction(def: AIActionDef): AIActionDef;
49
+ declare function defineAICondition(def: AIConditionDef): AIConditionDef;
50
+
51
+ /**
52
+ * AI-enhanced registry. Inherits the type-safe event/action/condition storage
53
+ * from BaseRegistry while adding awareness of AI-facing metadata.
54
+ */
55
+ declare class AIRegistry extends BaseRegistry<AIEventDef, AIActionDef, AIConditionDef> {
56
+ }
57
+
58
+ /**
59
+ * Factory for AIRegistry. Prefer this over `new AIRegistry()` for consistency
60
+ * with other ecosystem packages.
61
+ */
62
+ declare function createAIRegistry(): AIRegistry;
63
+
64
+ export { AIRegistry, createAIRegistry, defineAIAction, defineAICondition, defineAIEvent };
65
+ export type { AIActionDef, AIConditionDef, AIEventDef, ParamSchema };
@@ -0,0 +1,65 @@
1
+ import { BaseRegistry } from '@triggerix/registry';
2
+
3
+ /**
4
+ * Schema description for a single parameter of an event/action/condition.
5
+ * AI-friendly: only describes structure, not runtime behavior.
6
+ */
7
+ interface ParamSchema {
8
+ type: 'string' | 'number' | 'boolean' | 'object';
9
+ description?: string;
10
+ enum?: unknown[];
11
+ required?: boolean;
12
+ default?: unknown;
13
+ }
14
+ /**
15
+ * AI-aware event definition.
16
+ * Extends BaseItemDef with metadata for LLM consumption.
17
+ */
18
+ interface AIEventDef {
19
+ id: string;
20
+ label: string;
21
+ description: string;
22
+ prompt?: string;
23
+ params?: Record<string, ParamSchema>;
24
+ }
25
+ /**
26
+ * AI-aware action definition.
27
+ */
28
+ interface AIActionDef {
29
+ id: string;
30
+ label: string;
31
+ description: string;
32
+ prompt?: string;
33
+ params?: Record<string, ParamSchema>;
34
+ }
35
+ /**
36
+ * AI-aware condition definition.
37
+ */
38
+ interface AIConditionDef {
39
+ id: string;
40
+ label: string;
41
+ description: string;
42
+ prompt?: string;
43
+ }
44
+ /**
45
+ * Identity helper — preserves the input type as the output type.
46
+ */
47
+ declare function defineAIEvent(def: AIEventDef): AIEventDef;
48
+ declare function defineAIAction(def: AIActionDef): AIActionDef;
49
+ declare function defineAICondition(def: AIConditionDef): AIConditionDef;
50
+
51
+ /**
52
+ * AI-enhanced registry. Inherits the type-safe event/action/condition storage
53
+ * from BaseRegistry while adding awareness of AI-facing metadata.
54
+ */
55
+ declare class AIRegistry extends BaseRegistry<AIEventDef, AIActionDef, AIConditionDef> {
56
+ }
57
+
58
+ /**
59
+ * Factory for AIRegistry. Prefer this over `new AIRegistry()` for consistency
60
+ * with other ecosystem packages.
61
+ */
62
+ declare function createAIRegistry(): AIRegistry;
63
+
64
+ export { AIRegistry, createAIRegistry, defineAIAction, defineAICondition, defineAIEvent };
65
+ export type { AIActionDef, AIConditionDef, AIEventDef, ParamSchema };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{BaseRegistry as t}from"@triggerix/registry";class n extends t{}function r(e){return e}function i(e){return e}function o(e){return e}function f(){return new n}export{n as AIRegistry,f as createAIRegistry,i as defineAIAction,o as defineAICondition,r as defineAIEvent};
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@triggerix-ai/registry",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "description": "AI-enhanced registry for Triggerix — extends BaseRegistry with metadata for events, actions, and conditions",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/triggerix-lang/triggerix-ai#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git@github.com:triggerix-lang/triggerix-ai.git",
11
+ "directory": "packages/registry"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/triggerix-lang/triggerix-ai/issues"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.mjs",
23
+ "require": "./dist/index.cjs"
24
+ }
25
+ },
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.mjs",
28
+ "types": "./dist/index.d.ts",
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "dependencies": {
33
+ "@triggerix/registry": "^0.0.7"
34
+ },
35
+ "devDependencies": {
36
+ "unbuild": "^3.6.1"
37
+ },
38
+ "scripts": {
39
+ "stub": "unbuild --stub",
40
+ "build": "unbuild"
41
+ }
42
+ }