@triggerix-ai/component 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";class ComponentDef{container;props;prompt;eventBindings=new Map;bind(e,n){return this.eventBindings.set(e,n),this}get events(){return[...this.eventBindings.values()]}}function defineAIComponent(t){return t}class ComponentRegistry{components=new Map;registerComponent(e){this.components.set(e.type,e)}use(e){for(const n of e)this.components.set(n.type,{type:n.type,label:n.label,description:n.description,props:n.props,container:n.container,prompt:n.prompt,events:n.events})}getComponent(e){return this.components.get(e)}getComponents(){return[...this.components.values()]}}function createComponentRegistry(){return new ComponentRegistry}class BaseRenderer{components=new ComponentRegistry;constructor(e={}){e.components?.length&&this.components.use(e.components)}}exports.BaseRenderer=BaseRenderer,exports.ComponentDef=ComponentDef,exports.ComponentRegistry=ComponentRegistry,exports.createComponentRegistry=createComponentRegistry,exports.defineAIComponent=defineAIComponent;
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Schema for a single component prop.
3
+ * Describes the shape of an AI-configurable prop without runtime behavior.
4
+ */
5
+ interface ComponentPropSchema {
6
+ type: 'string' | 'number' | 'boolean' | 'object';
7
+ description?: string;
8
+ enum?: unknown[];
9
+ default?: unknown;
10
+ required?: boolean;
11
+ }
12
+ /**
13
+ * AI-facing metadata for a component.
14
+ * What the LLM sees and reasons about — no rendering concerns.
15
+ */
16
+ interface AIComponentDef {
17
+ /** Unique component type identifier (e.g. `'button'`, `'input'`). */
18
+ type: string;
19
+ /** Human-readable label. */
20
+ label: string;
21
+ /** Description of what the component does, written for an LLM audience. */
22
+ description: string;
23
+ /** Triggerix event IDs this component can emit. */
24
+ events?: string[];
25
+ /** Per-prop schema. */
26
+ props?: Record<string, ComponentPropSchema>;
27
+ /** Whether this component can contain child components. */
28
+ container?: boolean;
29
+ /** Optional AI guidance. */
30
+ prompt?: string;
31
+ }
32
+ /**
33
+ * A component instance emitted by the AI.
34
+ *
35
+ * `name` is a semantic local identifier — unique within a single AI output,
36
+ * but not globally. Renderers scope names per mount so cross-turn reuse
37
+ * requires no random suffixes.
38
+ */
39
+ interface ComponentInstance {
40
+ type: string;
41
+ name?: string;
42
+ props?: Record<string, unknown>;
43
+ children?: ComponentInstance[];
44
+ }
45
+ /**
46
+ * Callback for a component to emit a Triggerix event.
47
+ * The renderer's mount scope wires this to trigger evaluation.
48
+ */
49
+ type EmitFn = (eventId: string, payload?: Record<string, unknown>) => void;
50
+ /**
51
+ * Complete AI output — components to render plus triggers to bind.
52
+ * Kept loose-typed for `triggers` to avoid cross-package type coupling.
53
+ */
54
+ interface AIOutput {
55
+ components: ComponentInstance[];
56
+ triggers: unknown[];
57
+ }
58
+ /**
59
+ * Lifecycle handle returned by `Renderer.mount()`.
60
+ */
61
+ interface Scope {
62
+ /** Tear down DOM nodes, listeners, and references. */
63
+ unmount: () => void;
64
+ }
65
+
66
+ /**
67
+ * Abstract base class for a concrete component implementation.
68
+ *
69
+ * Concrete renderers (DOM / React / Vue) extend this and implement `create()`
70
+ * to produce the renderer's element type. The base class manages:
71
+ *
72
+ * - AI-facing metadata (`type`, `label`, `description`, `props`, …)
73
+ * - DOM-event → Triggerix-event ID bindings (e.g. `bind('click', 'button.click')`)
74
+ * - The derived `events` list read by `ComponentRegistry.use()`
75
+ *
76
+ * Subclasses only need to implement `create()`.
77
+ */
78
+ declare abstract class ComponentDef<T = unknown> {
79
+ abstract readonly type: string;
80
+ abstract readonly label: string;
81
+ abstract readonly description: string;
82
+ readonly container?: boolean;
83
+ readonly props?: Record<string, ComponentPropSchema>;
84
+ readonly prompt?: string;
85
+ /** domEvent → Triggerix eventId bindings (renderer-specific convention). */
86
+ protected readonly eventBindings: Map<string, string>;
87
+ /**
88
+ * Map a renderer-native event name to a Triggerix event ID.
89
+ * Chainable. Re-binding the same DOM event overrides.
90
+ */
91
+ bind(domEvent: string, eventId: string): this;
92
+ /** Triggerix event IDs declared via `bind()`. */
93
+ get events(): string[];
94
+ /**
95
+ * Build a renderer-native element for a given AI prop bag.
96
+ * Implementations should attach `emit` listeners for any bound DOM events.
97
+ */
98
+ abstract create(props: Record<string, unknown>, emit: EmitFn): T;
99
+ }
100
+ /**
101
+ * Identity helper for declaring pure AI metadata without a concrete implementation.
102
+ * Use when you only need to constrain what the AI can emit, with no renderer attached.
103
+ */
104
+ declare function defineAIComponent(def: AIComponentDef): AIComponentDef;
105
+
106
+ /**
107
+ * Shape accepted by `ComponentRegistry.use()`.
108
+ *
109
+ * Expressed in terms of `AIComponentDef` (minus `events`, which the renderer
110
+ * implementation provides via its `bind()` mappings) so the field set stays
111
+ * in lockstep with the AI metadata interface.
112
+ */
113
+ type ComponentMetadataSource = Omit<AIComponentDef, 'events'> & {
114
+ events: string[];
115
+ };
116
+ /**
117
+ * Registry of AI-facing component metadata.
118
+ *
119
+ * Two registration paths:
120
+ * - `registerComponent(def)` — register plain `AIComponentDef` (no implementation).
121
+ * - `use(components)` — auto-extract AI metadata from concrete `ComponentDef` implementations.
122
+ */
123
+ declare class ComponentRegistry {
124
+ private readonly components;
125
+ /** Register AI metadata directly. */
126
+ registerComponent(def: AIComponentDef): void;
127
+ /**
128
+ * Extract AI metadata from concrete `ComponentDef` implementations
129
+ * and register them. Equivalent to calling `registerComponent` for each
130
+ * with metadata pulled from the implementation.
131
+ */
132
+ use(components: ReadonlyArray<ComponentMetadataSource>): void;
133
+ getComponent(type: string): AIComponentDef | undefined;
134
+ getComponents(): AIComponentDef[];
135
+ }
136
+ /**
137
+ * Factory for ComponentRegistry.
138
+ */
139
+ declare function createComponentRegistry(): ComponentRegistry;
140
+
141
+ /**
142
+ * Renderer interface — turns AI output into renderer-native elements.
143
+ * Implementations live in downstream packages (e.g. `triggerix-ai-ui-native`).
144
+ */
145
+ interface Renderer<T = unknown> {
146
+ mount: (output: AIOutput, container: T) => Scope;
147
+ }
148
+ /**
149
+ * Common base for renderers. Holds the component registry and accepts
150
+ * concrete `ComponentDef` instances in its constructor.
151
+ *
152
+ * Concrete renderers only need to implement `mount()` — the registry
153
+ * setup is handled here.
154
+ */
155
+ declare abstract class BaseRenderer<T = unknown> implements Renderer<T> {
156
+ readonly components: ComponentRegistry;
157
+ constructor(options?: {
158
+ components?: ReadonlyArray<ComponentDef<unknown>>;
159
+ });
160
+ abstract mount(output: AIOutput, container: T): Scope;
161
+ }
162
+
163
+ export { BaseRenderer, ComponentDef, ComponentRegistry, createComponentRegistry, defineAIComponent };
164
+ export type { AIComponentDef, AIOutput, ComponentInstance, ComponentPropSchema, EmitFn, Renderer, Scope };
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Schema for a single component prop.
3
+ * Describes the shape of an AI-configurable prop without runtime behavior.
4
+ */
5
+ interface ComponentPropSchema {
6
+ type: 'string' | 'number' | 'boolean' | 'object';
7
+ description?: string;
8
+ enum?: unknown[];
9
+ default?: unknown;
10
+ required?: boolean;
11
+ }
12
+ /**
13
+ * AI-facing metadata for a component.
14
+ * What the LLM sees and reasons about — no rendering concerns.
15
+ */
16
+ interface AIComponentDef {
17
+ /** Unique component type identifier (e.g. `'button'`, `'input'`). */
18
+ type: string;
19
+ /** Human-readable label. */
20
+ label: string;
21
+ /** Description of what the component does, written for an LLM audience. */
22
+ description: string;
23
+ /** Triggerix event IDs this component can emit. */
24
+ events?: string[];
25
+ /** Per-prop schema. */
26
+ props?: Record<string, ComponentPropSchema>;
27
+ /** Whether this component can contain child components. */
28
+ container?: boolean;
29
+ /** Optional AI guidance. */
30
+ prompt?: string;
31
+ }
32
+ /**
33
+ * A component instance emitted by the AI.
34
+ *
35
+ * `name` is a semantic local identifier — unique within a single AI output,
36
+ * but not globally. Renderers scope names per mount so cross-turn reuse
37
+ * requires no random suffixes.
38
+ */
39
+ interface ComponentInstance {
40
+ type: string;
41
+ name?: string;
42
+ props?: Record<string, unknown>;
43
+ children?: ComponentInstance[];
44
+ }
45
+ /**
46
+ * Callback for a component to emit a Triggerix event.
47
+ * The renderer's mount scope wires this to trigger evaluation.
48
+ */
49
+ type EmitFn = (eventId: string, payload?: Record<string, unknown>) => void;
50
+ /**
51
+ * Complete AI output — components to render plus triggers to bind.
52
+ * Kept loose-typed for `triggers` to avoid cross-package type coupling.
53
+ */
54
+ interface AIOutput {
55
+ components: ComponentInstance[];
56
+ triggers: unknown[];
57
+ }
58
+ /**
59
+ * Lifecycle handle returned by `Renderer.mount()`.
60
+ */
61
+ interface Scope {
62
+ /** Tear down DOM nodes, listeners, and references. */
63
+ unmount: () => void;
64
+ }
65
+
66
+ /**
67
+ * Abstract base class for a concrete component implementation.
68
+ *
69
+ * Concrete renderers (DOM / React / Vue) extend this and implement `create()`
70
+ * to produce the renderer's element type. The base class manages:
71
+ *
72
+ * - AI-facing metadata (`type`, `label`, `description`, `props`, …)
73
+ * - DOM-event → Triggerix-event ID bindings (e.g. `bind('click', 'button.click')`)
74
+ * - The derived `events` list read by `ComponentRegistry.use()`
75
+ *
76
+ * Subclasses only need to implement `create()`.
77
+ */
78
+ declare abstract class ComponentDef<T = unknown> {
79
+ abstract readonly type: string;
80
+ abstract readonly label: string;
81
+ abstract readonly description: string;
82
+ readonly container?: boolean;
83
+ readonly props?: Record<string, ComponentPropSchema>;
84
+ readonly prompt?: string;
85
+ /** domEvent → Triggerix eventId bindings (renderer-specific convention). */
86
+ protected readonly eventBindings: Map<string, string>;
87
+ /**
88
+ * Map a renderer-native event name to a Triggerix event ID.
89
+ * Chainable. Re-binding the same DOM event overrides.
90
+ */
91
+ bind(domEvent: string, eventId: string): this;
92
+ /** Triggerix event IDs declared via `bind()`. */
93
+ get events(): string[];
94
+ /**
95
+ * Build a renderer-native element for a given AI prop bag.
96
+ * Implementations should attach `emit` listeners for any bound DOM events.
97
+ */
98
+ abstract create(props: Record<string, unknown>, emit: EmitFn): T;
99
+ }
100
+ /**
101
+ * Identity helper for declaring pure AI metadata without a concrete implementation.
102
+ * Use when you only need to constrain what the AI can emit, with no renderer attached.
103
+ */
104
+ declare function defineAIComponent(def: AIComponentDef): AIComponentDef;
105
+
106
+ /**
107
+ * Shape accepted by `ComponentRegistry.use()`.
108
+ *
109
+ * Expressed in terms of `AIComponentDef` (minus `events`, which the renderer
110
+ * implementation provides via its `bind()` mappings) so the field set stays
111
+ * in lockstep with the AI metadata interface.
112
+ */
113
+ type ComponentMetadataSource = Omit<AIComponentDef, 'events'> & {
114
+ events: string[];
115
+ };
116
+ /**
117
+ * Registry of AI-facing component metadata.
118
+ *
119
+ * Two registration paths:
120
+ * - `registerComponent(def)` — register plain `AIComponentDef` (no implementation).
121
+ * - `use(components)` — auto-extract AI metadata from concrete `ComponentDef` implementations.
122
+ */
123
+ declare class ComponentRegistry {
124
+ private readonly components;
125
+ /** Register AI metadata directly. */
126
+ registerComponent(def: AIComponentDef): void;
127
+ /**
128
+ * Extract AI metadata from concrete `ComponentDef` implementations
129
+ * and register them. Equivalent to calling `registerComponent` for each
130
+ * with metadata pulled from the implementation.
131
+ */
132
+ use(components: ReadonlyArray<ComponentMetadataSource>): void;
133
+ getComponent(type: string): AIComponentDef | undefined;
134
+ getComponents(): AIComponentDef[];
135
+ }
136
+ /**
137
+ * Factory for ComponentRegistry.
138
+ */
139
+ declare function createComponentRegistry(): ComponentRegistry;
140
+
141
+ /**
142
+ * Renderer interface — turns AI output into renderer-native elements.
143
+ * Implementations live in downstream packages (e.g. `triggerix-ai-ui-native`).
144
+ */
145
+ interface Renderer<T = unknown> {
146
+ mount: (output: AIOutput, container: T) => Scope;
147
+ }
148
+ /**
149
+ * Common base for renderers. Holds the component registry and accepts
150
+ * concrete `ComponentDef` instances in its constructor.
151
+ *
152
+ * Concrete renderers only need to implement `mount()` — the registry
153
+ * setup is handled here.
154
+ */
155
+ declare abstract class BaseRenderer<T = unknown> implements Renderer<T> {
156
+ readonly components: ComponentRegistry;
157
+ constructor(options?: {
158
+ components?: ReadonlyArray<ComponentDef<unknown>>;
159
+ });
160
+ abstract mount(output: AIOutput, container: T): Scope;
161
+ }
162
+
163
+ export { BaseRenderer, ComponentDef, ComponentRegistry, createComponentRegistry, defineAIComponent };
164
+ export type { AIComponentDef, AIOutput, ComponentInstance, ComponentPropSchema, EmitFn, Renderer, Scope };
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Schema for a single component prop.
3
+ * Describes the shape of an AI-configurable prop without runtime behavior.
4
+ */
5
+ interface ComponentPropSchema {
6
+ type: 'string' | 'number' | 'boolean' | 'object';
7
+ description?: string;
8
+ enum?: unknown[];
9
+ default?: unknown;
10
+ required?: boolean;
11
+ }
12
+ /**
13
+ * AI-facing metadata for a component.
14
+ * What the LLM sees and reasons about — no rendering concerns.
15
+ */
16
+ interface AIComponentDef {
17
+ /** Unique component type identifier (e.g. `'button'`, `'input'`). */
18
+ type: string;
19
+ /** Human-readable label. */
20
+ label: string;
21
+ /** Description of what the component does, written for an LLM audience. */
22
+ description: string;
23
+ /** Triggerix event IDs this component can emit. */
24
+ events?: string[];
25
+ /** Per-prop schema. */
26
+ props?: Record<string, ComponentPropSchema>;
27
+ /** Whether this component can contain child components. */
28
+ container?: boolean;
29
+ /** Optional AI guidance. */
30
+ prompt?: string;
31
+ }
32
+ /**
33
+ * A component instance emitted by the AI.
34
+ *
35
+ * `name` is a semantic local identifier — unique within a single AI output,
36
+ * but not globally. Renderers scope names per mount so cross-turn reuse
37
+ * requires no random suffixes.
38
+ */
39
+ interface ComponentInstance {
40
+ type: string;
41
+ name?: string;
42
+ props?: Record<string, unknown>;
43
+ children?: ComponentInstance[];
44
+ }
45
+ /**
46
+ * Callback for a component to emit a Triggerix event.
47
+ * The renderer's mount scope wires this to trigger evaluation.
48
+ */
49
+ type EmitFn = (eventId: string, payload?: Record<string, unknown>) => void;
50
+ /**
51
+ * Complete AI output — components to render plus triggers to bind.
52
+ * Kept loose-typed for `triggers` to avoid cross-package type coupling.
53
+ */
54
+ interface AIOutput {
55
+ components: ComponentInstance[];
56
+ triggers: unknown[];
57
+ }
58
+ /**
59
+ * Lifecycle handle returned by `Renderer.mount()`.
60
+ */
61
+ interface Scope {
62
+ /** Tear down DOM nodes, listeners, and references. */
63
+ unmount: () => void;
64
+ }
65
+
66
+ /**
67
+ * Abstract base class for a concrete component implementation.
68
+ *
69
+ * Concrete renderers (DOM / React / Vue) extend this and implement `create()`
70
+ * to produce the renderer's element type. The base class manages:
71
+ *
72
+ * - AI-facing metadata (`type`, `label`, `description`, `props`, …)
73
+ * - DOM-event → Triggerix-event ID bindings (e.g. `bind('click', 'button.click')`)
74
+ * - The derived `events` list read by `ComponentRegistry.use()`
75
+ *
76
+ * Subclasses only need to implement `create()`.
77
+ */
78
+ declare abstract class ComponentDef<T = unknown> {
79
+ abstract readonly type: string;
80
+ abstract readonly label: string;
81
+ abstract readonly description: string;
82
+ readonly container?: boolean;
83
+ readonly props?: Record<string, ComponentPropSchema>;
84
+ readonly prompt?: string;
85
+ /** domEvent → Triggerix eventId bindings (renderer-specific convention). */
86
+ protected readonly eventBindings: Map<string, string>;
87
+ /**
88
+ * Map a renderer-native event name to a Triggerix event ID.
89
+ * Chainable. Re-binding the same DOM event overrides.
90
+ */
91
+ bind(domEvent: string, eventId: string): this;
92
+ /** Triggerix event IDs declared via `bind()`. */
93
+ get events(): string[];
94
+ /**
95
+ * Build a renderer-native element for a given AI prop bag.
96
+ * Implementations should attach `emit` listeners for any bound DOM events.
97
+ */
98
+ abstract create(props: Record<string, unknown>, emit: EmitFn): T;
99
+ }
100
+ /**
101
+ * Identity helper for declaring pure AI metadata without a concrete implementation.
102
+ * Use when you only need to constrain what the AI can emit, with no renderer attached.
103
+ */
104
+ declare function defineAIComponent(def: AIComponentDef): AIComponentDef;
105
+
106
+ /**
107
+ * Shape accepted by `ComponentRegistry.use()`.
108
+ *
109
+ * Expressed in terms of `AIComponentDef` (minus `events`, which the renderer
110
+ * implementation provides via its `bind()` mappings) so the field set stays
111
+ * in lockstep with the AI metadata interface.
112
+ */
113
+ type ComponentMetadataSource = Omit<AIComponentDef, 'events'> & {
114
+ events: string[];
115
+ };
116
+ /**
117
+ * Registry of AI-facing component metadata.
118
+ *
119
+ * Two registration paths:
120
+ * - `registerComponent(def)` — register plain `AIComponentDef` (no implementation).
121
+ * - `use(components)` — auto-extract AI metadata from concrete `ComponentDef` implementations.
122
+ */
123
+ declare class ComponentRegistry {
124
+ private readonly components;
125
+ /** Register AI metadata directly. */
126
+ registerComponent(def: AIComponentDef): void;
127
+ /**
128
+ * Extract AI metadata from concrete `ComponentDef` implementations
129
+ * and register them. Equivalent to calling `registerComponent` for each
130
+ * with metadata pulled from the implementation.
131
+ */
132
+ use(components: ReadonlyArray<ComponentMetadataSource>): void;
133
+ getComponent(type: string): AIComponentDef | undefined;
134
+ getComponents(): AIComponentDef[];
135
+ }
136
+ /**
137
+ * Factory for ComponentRegistry.
138
+ */
139
+ declare function createComponentRegistry(): ComponentRegistry;
140
+
141
+ /**
142
+ * Renderer interface — turns AI output into renderer-native elements.
143
+ * Implementations live in downstream packages (e.g. `triggerix-ai-ui-native`).
144
+ */
145
+ interface Renderer<T = unknown> {
146
+ mount: (output: AIOutput, container: T) => Scope;
147
+ }
148
+ /**
149
+ * Common base for renderers. Holds the component registry and accepts
150
+ * concrete `ComponentDef` instances in its constructor.
151
+ *
152
+ * Concrete renderers only need to implement `mount()` — the registry
153
+ * setup is handled here.
154
+ */
155
+ declare abstract class BaseRenderer<T = unknown> implements Renderer<T> {
156
+ readonly components: ComponentRegistry;
157
+ constructor(options?: {
158
+ components?: ReadonlyArray<ComponentDef<unknown>>;
159
+ });
160
+ abstract mount(output: AIOutput, container: T): Scope;
161
+ }
162
+
163
+ export { BaseRenderer, ComponentDef, ComponentRegistry, createComponentRegistry, defineAIComponent };
164
+ export type { AIComponentDef, AIOutput, ComponentInstance, ComponentPropSchema, EmitFn, Renderer, Scope };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ class s{container;props;prompt;eventBindings=new Map;bind(e,n){return this.eventBindings.set(e,n),this}get events(){return[...this.eventBindings.values()]}}function p(t){return t}class o{components=new Map;registerComponent(e){this.components.set(e.type,e)}use(e){for(const n of e)this.components.set(n.type,{type:n.type,label:n.label,description:n.description,props:n.props,container:n.container,prompt:n.prompt,events:n.events})}getComponent(e){return this.components.get(e)}getComponents(){return[...this.components.values()]}}function r(){return new o}class i{components=new o;constructor(e={}){e.components?.length&&this.components.use(e.components)}}export{i as BaseRenderer,s as ComponentDef,o as ComponentRegistry,r as createComponentRegistry,p as defineAIComponent};
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@triggerix-ai/component",
3
+ "type": "module",
4
+ "version": "0.0.0",
5
+ "description": "Component protocol layer for Triggerix AI — AI metadata definitions, component registry, and renderer abstraction",
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/component"
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
+ "devDependencies": {
33
+ "unbuild": "^3.6.1"
34
+ },
35
+ "scripts": {
36
+ "stub": "unbuild --stub",
37
+ "build": "unbuild"
38
+ }
39
+ }