@almadar/agent 1.1.1 → 1.1.2
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/agent/index.d.ts +2 -1
- package/dist/agent/index.js +4 -4
- package/dist/agent/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/{orbital-subagent-kKa0EqQM.d.ts → orbital-subagent-cNfTLdXQ.d.ts} +29 -28
- package/dist/tools/index.d.ts +30 -30
- package/dist/tools/index.js +4 -4
- package/dist/tools/index.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _langchain_core_tools from '@langchain/core/tools';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { S as SSEEventType, a as SSEEvent } from './api-types-BW_58thJ.js';
|
|
4
|
+
import { AgentDomainCategory } from '@almadar/core/types';
|
|
4
5
|
|
|
5
6
|
type DomainOrbitalEventCallback = (orbitalName: string, orbitalIndex: number, totalOrbitals: number, event: {
|
|
6
7
|
type: Exclude<SSEEventType, 'subagent_event'>;
|
|
@@ -41,7 +42,7 @@ interface DomainOrbitalSpec {
|
|
|
41
42
|
domainContext?: {
|
|
42
43
|
request: string;
|
|
43
44
|
requestFragment?: string;
|
|
44
|
-
category:
|
|
45
|
+
category: AgentDomainCategory;
|
|
45
46
|
vocabulary?: Record<string, string>;
|
|
46
47
|
};
|
|
47
48
|
design?: {
|
|
@@ -150,16 +151,16 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
150
151
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
151
152
|
request: z.ZodString;
|
|
152
153
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
153
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
154
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
154
155
|
vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
155
156
|
}, "strip", z.ZodTypeAny, {
|
|
156
157
|
request: string;
|
|
157
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
158
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
158
159
|
requestFragment?: string | undefined;
|
|
159
160
|
vocabulary?: Record<string, string> | undefined;
|
|
160
161
|
}, {
|
|
161
162
|
request: string;
|
|
162
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
163
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
163
164
|
requestFragment?: string | undefined;
|
|
164
165
|
vocabulary?: Record<string, string> | undefined;
|
|
165
166
|
}>>;
|
|
@@ -236,7 +237,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
236
237
|
patterns: string[];
|
|
237
238
|
domainContext?: {
|
|
238
239
|
request: string;
|
|
239
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
240
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
240
241
|
requestFragment?: string | undefined;
|
|
241
242
|
vocabulary?: Record<string, string> | undefined;
|
|
242
243
|
} | undefined;
|
|
@@ -281,7 +282,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
281
282
|
patterns: string[];
|
|
282
283
|
domainContext?: {
|
|
283
284
|
request: string;
|
|
284
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
285
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
285
286
|
requestFragment?: string | undefined;
|
|
286
287
|
vocabulary?: Record<string, string> | undefined;
|
|
287
288
|
} | undefined;
|
|
@@ -331,7 +332,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
331
332
|
patterns: string[];
|
|
332
333
|
domainContext?: {
|
|
333
334
|
request: string;
|
|
334
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
335
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
335
336
|
requestFragment?: string | undefined;
|
|
336
337
|
vocabulary?: Record<string, string> | undefined;
|
|
337
338
|
} | undefined;
|
|
@@ -381,7 +382,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
381
382
|
patterns: string[];
|
|
382
383
|
domainContext?: {
|
|
383
384
|
request: string;
|
|
384
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
385
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
385
386
|
requestFragment?: string | undefined;
|
|
386
387
|
vocabulary?: Record<string, string> | undefined;
|
|
387
388
|
} | undefined;
|
|
@@ -431,7 +432,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
431
432
|
patterns: string[];
|
|
432
433
|
domainContext?: {
|
|
433
434
|
request: string;
|
|
434
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
435
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
435
436
|
requestFragment?: string | undefined;
|
|
436
437
|
vocabulary?: Record<string, string> | undefined;
|
|
437
438
|
} | undefined;
|
|
@@ -481,7 +482,7 @@ declare function createGenerateOrbitalDomainTool(options?: DomainOrbitalToolOpti
|
|
|
481
482
|
patterns: string[];
|
|
482
483
|
domainContext?: {
|
|
483
484
|
request: string;
|
|
484
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
485
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
485
486
|
requestFragment?: string | undefined;
|
|
486
487
|
vocabulary?: Record<string, string> | undefined;
|
|
487
488
|
} | undefined;
|
|
@@ -616,16 +617,16 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
616
617
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
617
618
|
request: z.ZodString;
|
|
618
619
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
619
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
620
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
620
621
|
vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
621
622
|
}, "strip", z.ZodTypeAny, {
|
|
622
623
|
request: string;
|
|
623
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
624
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
624
625
|
requestFragment?: string | undefined;
|
|
625
626
|
vocabulary?: Record<string, string> | undefined;
|
|
626
627
|
}, {
|
|
627
628
|
request: string;
|
|
628
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
629
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
629
630
|
requestFragment?: string | undefined;
|
|
630
631
|
vocabulary?: Record<string, string> | undefined;
|
|
631
632
|
}>>;
|
|
@@ -702,7 +703,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
702
703
|
patterns: string[];
|
|
703
704
|
domainContext?: {
|
|
704
705
|
request: string;
|
|
705
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
706
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
706
707
|
requestFragment?: string | undefined;
|
|
707
708
|
vocabulary?: Record<string, string> | undefined;
|
|
708
709
|
} | undefined;
|
|
@@ -747,7 +748,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
747
748
|
patterns: string[];
|
|
748
749
|
domainContext?: {
|
|
749
750
|
request: string;
|
|
750
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
751
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
751
752
|
requestFragment?: string | undefined;
|
|
752
753
|
vocabulary?: Record<string, string> | undefined;
|
|
753
754
|
} | undefined;
|
|
@@ -797,7 +798,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
797
798
|
patterns: string[];
|
|
798
799
|
domainContext?: {
|
|
799
800
|
request: string;
|
|
800
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
801
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
801
802
|
requestFragment?: string | undefined;
|
|
802
803
|
vocabulary?: Record<string, string> | undefined;
|
|
803
804
|
} | undefined;
|
|
@@ -847,7 +848,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
847
848
|
patterns: string[];
|
|
848
849
|
domainContext?: {
|
|
849
850
|
request: string;
|
|
850
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
851
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
851
852
|
requestFragment?: string | undefined;
|
|
852
853
|
vocabulary?: Record<string, string> | undefined;
|
|
853
854
|
} | undefined;
|
|
@@ -897,7 +898,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
897
898
|
patterns: string[];
|
|
898
899
|
domainContext?: {
|
|
899
900
|
request: string;
|
|
900
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
901
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
901
902
|
requestFragment?: string | undefined;
|
|
902
903
|
vocabulary?: Record<string, string> | undefined;
|
|
903
904
|
} | undefined;
|
|
@@ -947,7 +948,7 @@ declare function createDomainOrbitalTools(options?: DomainOrbitalToolOptions): {
|
|
|
947
948
|
patterns: string[];
|
|
948
949
|
domainContext?: {
|
|
949
950
|
request: string;
|
|
950
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
951
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
951
952
|
requestFragment?: string | undefined;
|
|
952
953
|
vocabulary?: Record<string, string> | undefined;
|
|
953
954
|
} | undefined;
|
|
@@ -1063,16 +1064,16 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1063
1064
|
domainContext: z.ZodOptional<z.ZodObject<{
|
|
1064
1065
|
request: z.ZodString;
|
|
1065
1066
|
requestFragment: z.ZodOptional<z.ZodString>;
|
|
1066
|
-
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
1067
|
+
category: z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
1067
1068
|
vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1068
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1069
1070
|
request: string;
|
|
1070
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1071
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1071
1072
|
requestFragment?: string | undefined;
|
|
1072
1073
|
vocabulary?: Record<string, string> | undefined;
|
|
1073
1074
|
}, {
|
|
1074
1075
|
request: string;
|
|
1075
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1076
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1076
1077
|
requestFragment?: string | undefined;
|
|
1077
1078
|
vocabulary?: Record<string, string> | undefined;
|
|
1078
1079
|
}>>;
|
|
@@ -1160,7 +1161,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1160
1161
|
}[] | undefined;
|
|
1161
1162
|
domainContext?: {
|
|
1162
1163
|
request: string;
|
|
1163
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1164
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1164
1165
|
requestFragment?: string | undefined;
|
|
1165
1166
|
vocabulary?: Record<string, string> | undefined;
|
|
1166
1167
|
} | undefined;
|
|
@@ -1203,7 +1204,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1203
1204
|
}[] | undefined;
|
|
1204
1205
|
domainContext?: {
|
|
1205
1206
|
request: string;
|
|
1206
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1207
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1207
1208
|
requestFragment?: string | undefined;
|
|
1208
1209
|
vocabulary?: Record<string, string> | undefined;
|
|
1209
1210
|
} | undefined;
|
|
@@ -1250,7 +1251,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1250
1251
|
}[] | undefined;
|
|
1251
1252
|
domainContext?: {
|
|
1252
1253
|
request: string;
|
|
1253
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1254
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1254
1255
|
requestFragment?: string | undefined;
|
|
1255
1256
|
vocabulary?: Record<string, string> | undefined;
|
|
1256
1257
|
} | undefined;
|
|
@@ -1297,7 +1298,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1297
1298
|
}[] | undefined;
|
|
1298
1299
|
domainContext?: {
|
|
1299
1300
|
request: string;
|
|
1300
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1301
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1301
1302
|
requestFragment?: string | undefined;
|
|
1302
1303
|
vocabulary?: Record<string, string> | undefined;
|
|
1303
1304
|
} | undefined;
|
|
@@ -1344,7 +1345,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1344
1345
|
}[] | undefined;
|
|
1345
1346
|
domainContext?: {
|
|
1346
1347
|
request: string;
|
|
1347
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1348
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1348
1349
|
requestFragment?: string | undefined;
|
|
1349
1350
|
vocabulary?: Record<string, string> | undefined;
|
|
1350
1351
|
} | undefined;
|
|
@@ -1391,7 +1392,7 @@ declare function createOrbitalSubagentTool(options?: OrbitalSubagentToolOptions)
|
|
|
1391
1392
|
}[] | undefined;
|
|
1392
1393
|
domainContext?: {
|
|
1393
1394
|
request: string;
|
|
1394
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1395
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1395
1396
|
requestFragment?: string | undefined;
|
|
1396
1397
|
vocabulary?: Record<string, string> | undefined;
|
|
1397
1398
|
} | undefined;
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as _langchain_core_tools from '@langchain/core/tools';
|
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { S as SSEEventType } from '../api-types-BW_58thJ.js';
|
|
5
|
-
import { S as SubagentEventCallback, O as OrbitalCompleteCallback, a as DomainOrbitalEventCallback, D as DomainOrbitalCompleteCallback } from '../orbital-subagent-
|
|
6
|
-
export { b as DomainOrbitalSpec, c as DomainOrbitalToolOptions, d as OrbitalRequirements, e as OrbitalSubagentToolOptions, f as createConstructCombinedDomainTool, g as createDomainOrbitalTools, h as createGenerateOrbitalDomainTool, i as createOrbitalSubagentTool, j as createSubagentEventWrapper } from '../orbital-subagent-
|
|
5
|
+
import { S as SubagentEventCallback, O as OrbitalCompleteCallback, a as DomainOrbitalEventCallback, D as DomainOrbitalCompleteCallback } from '../orbital-subagent-cNfTLdXQ.js';
|
|
6
|
+
export { b as DomainOrbitalSpec, c as DomainOrbitalToolOptions, d as OrbitalRequirements, e as OrbitalSubagentToolOptions, f as createConstructCombinedDomainTool, g as createDomainOrbitalTools, h as createGenerateOrbitalDomainTool, i as createOrbitalSubagentTool, j as createSubagentEventWrapper } from '../orbital-subagent-cNfTLdXQ.js';
|
|
7
7
|
import { Trait } from '@almadar/core/types';
|
|
8
8
|
|
|
9
9
|
type DesignEventCallback = (transitionId: string, event: {
|
|
@@ -40,7 +40,7 @@ declare function createDesignTransitionTool(options?: DesignTransitionToolOption
|
|
|
40
40
|
name: string;
|
|
41
41
|
values?: string[] | undefined;
|
|
42
42
|
}>, "many">;
|
|
43
|
-
domainCategory: z.ZodOptional<z.ZodEnum<["
|
|
43
|
+
domainCategory: z.ZodOptional<z.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>>;
|
|
44
44
|
vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
45
45
|
designStyle: z.ZodOptional<z.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
|
|
46
46
|
flowPattern: z.ZodOptional<z.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
|
|
@@ -64,7 +64,7 @@ declare function createDesignTransitionTool(options?: DesignTransitionToolOption
|
|
|
64
64
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
65
65
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
66
66
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
67
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
67
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
68
68
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
69
69
|
existingEffects?: any[] | undefined;
|
|
70
70
|
}, {
|
|
@@ -83,7 +83,7 @@ declare function createDesignTransitionTool(options?: DesignTransitionToolOption
|
|
|
83
83
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
84
84
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
85
85
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
86
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
86
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
87
87
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
88
88
|
existingEffects?: any[] | undefined;
|
|
89
89
|
}>, {
|
|
@@ -102,7 +102,7 @@ declare function createDesignTransitionTool(options?: DesignTransitionToolOption
|
|
|
102
102
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
103
103
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
104
104
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
105
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
105
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
106
106
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
107
107
|
existingEffects?: any[] | undefined;
|
|
108
108
|
}, {
|
|
@@ -121,7 +121,7 @@ declare function createDesignTransitionTool(options?: DesignTransitionToolOption
|
|
|
121
121
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
122
122
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
123
123
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
124
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
124
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
125
125
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
126
126
|
existingEffects?: any[] | undefined;
|
|
127
127
|
}, string, "design_transition">;
|
|
@@ -1275,16 +1275,16 @@ declare function createAgentTools(workDir: string): {
|
|
|
1275
1275
|
domainContext: zod.ZodOptional<zod.ZodObject<{
|
|
1276
1276
|
request: zod.ZodString;
|
|
1277
1277
|
requestFragment: zod.ZodOptional<zod.ZodString>;
|
|
1278
|
-
category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
1278
|
+
category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
1279
1279
|
vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
1280
1280
|
}, "strip", zod.ZodTypeAny, {
|
|
1281
1281
|
request: string;
|
|
1282
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1282
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1283
1283
|
requestFragment?: string | undefined;
|
|
1284
1284
|
vocabulary?: Record<string, string> | undefined;
|
|
1285
1285
|
}, {
|
|
1286
1286
|
request: string;
|
|
1287
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1287
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1288
1288
|
requestFragment?: string | undefined;
|
|
1289
1289
|
vocabulary?: Record<string, string> | undefined;
|
|
1290
1290
|
}>>;
|
|
@@ -1372,7 +1372,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1372
1372
|
}[] | undefined;
|
|
1373
1373
|
domainContext?: {
|
|
1374
1374
|
request: string;
|
|
1375
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1375
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1376
1376
|
requestFragment?: string | undefined;
|
|
1377
1377
|
vocabulary?: Record<string, string> | undefined;
|
|
1378
1378
|
} | undefined;
|
|
@@ -1415,7 +1415,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1415
1415
|
}[] | undefined;
|
|
1416
1416
|
domainContext?: {
|
|
1417
1417
|
request: string;
|
|
1418
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1418
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1419
1419
|
requestFragment?: string | undefined;
|
|
1420
1420
|
vocabulary?: Record<string, string> | undefined;
|
|
1421
1421
|
} | undefined;
|
|
@@ -1462,7 +1462,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1462
1462
|
}[] | undefined;
|
|
1463
1463
|
domainContext?: {
|
|
1464
1464
|
request: string;
|
|
1465
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1465
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1466
1466
|
requestFragment?: string | undefined;
|
|
1467
1467
|
vocabulary?: Record<string, string> | undefined;
|
|
1468
1468
|
} | undefined;
|
|
@@ -1509,7 +1509,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1509
1509
|
}[] | undefined;
|
|
1510
1510
|
domainContext?: {
|
|
1511
1511
|
request: string;
|
|
1512
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1512
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1513
1513
|
requestFragment?: string | undefined;
|
|
1514
1514
|
vocabulary?: Record<string, string> | undefined;
|
|
1515
1515
|
} | undefined;
|
|
@@ -1556,7 +1556,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1556
1556
|
}[] | undefined;
|
|
1557
1557
|
domainContext?: {
|
|
1558
1558
|
request: string;
|
|
1559
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1559
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1560
1560
|
requestFragment?: string | undefined;
|
|
1561
1561
|
vocabulary?: Record<string, string> | undefined;
|
|
1562
1562
|
} | undefined;
|
|
@@ -1603,7 +1603,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1603
1603
|
}[] | undefined;
|
|
1604
1604
|
domainContext?: {
|
|
1605
1605
|
request: string;
|
|
1606
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1606
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1607
1607
|
requestFragment?: string | undefined;
|
|
1608
1608
|
vocabulary?: Record<string, string> | undefined;
|
|
1609
1609
|
} | undefined;
|
|
@@ -1846,16 +1846,16 @@ declare function createAgentTools(workDir: string): {
|
|
|
1846
1846
|
domainContext: zod.ZodOptional<zod.ZodObject<{
|
|
1847
1847
|
request: zod.ZodString;
|
|
1848
1848
|
requestFragment: zod.ZodOptional<zod.ZodString>;
|
|
1849
|
-
category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social"]>;
|
|
1849
|
+
category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
|
|
1850
1850
|
vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
1851
1851
|
}, "strip", zod.ZodTypeAny, {
|
|
1852
1852
|
request: string;
|
|
1853
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1853
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1854
1854
|
requestFragment?: string | undefined;
|
|
1855
1855
|
vocabulary?: Record<string, string> | undefined;
|
|
1856
1856
|
}, {
|
|
1857
1857
|
request: string;
|
|
1858
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1858
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1859
1859
|
requestFragment?: string | undefined;
|
|
1860
1860
|
vocabulary?: Record<string, string> | undefined;
|
|
1861
1861
|
}>>;
|
|
@@ -1932,7 +1932,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1932
1932
|
patterns: string[];
|
|
1933
1933
|
domainContext?: {
|
|
1934
1934
|
request: string;
|
|
1935
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1935
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1936
1936
|
requestFragment?: string | undefined;
|
|
1937
1937
|
vocabulary?: Record<string, string> | undefined;
|
|
1938
1938
|
} | undefined;
|
|
@@ -1977,7 +1977,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
1977
1977
|
patterns: string[];
|
|
1978
1978
|
domainContext?: {
|
|
1979
1979
|
request: string;
|
|
1980
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
1980
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
1981
1981
|
requestFragment?: string | undefined;
|
|
1982
1982
|
vocabulary?: Record<string, string> | undefined;
|
|
1983
1983
|
} | undefined;
|
|
@@ -2027,7 +2027,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2027
2027
|
patterns: string[];
|
|
2028
2028
|
domainContext?: {
|
|
2029
2029
|
request: string;
|
|
2030
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
2030
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
2031
2031
|
requestFragment?: string | undefined;
|
|
2032
2032
|
vocabulary?: Record<string, string> | undefined;
|
|
2033
2033
|
} | undefined;
|
|
@@ -2077,7 +2077,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2077
2077
|
patterns: string[];
|
|
2078
2078
|
domainContext?: {
|
|
2079
2079
|
request: string;
|
|
2080
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
2080
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
2081
2081
|
requestFragment?: string | undefined;
|
|
2082
2082
|
vocabulary?: Record<string, string> | undefined;
|
|
2083
2083
|
} | undefined;
|
|
@@ -2127,7 +2127,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2127
2127
|
patterns: string[];
|
|
2128
2128
|
domainContext?: {
|
|
2129
2129
|
request: string;
|
|
2130
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
2130
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
2131
2131
|
requestFragment?: string | undefined;
|
|
2132
2132
|
vocabulary?: Record<string, string> | undefined;
|
|
2133
2133
|
} | undefined;
|
|
@@ -2177,7 +2177,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2177
2177
|
patterns: string[];
|
|
2178
2178
|
domainContext?: {
|
|
2179
2179
|
request: string;
|
|
2180
|
-
category: "game" | "business" | "dashboard" | "form" | "content" | "social";
|
|
2180
|
+
category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
|
|
2181
2181
|
requestFragment?: string | undefined;
|
|
2182
2182
|
vocabulary?: Record<string, string> | undefined;
|
|
2183
2183
|
} | undefined;
|
|
@@ -2288,7 +2288,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2288
2288
|
name: string;
|
|
2289
2289
|
values?: string[] | undefined;
|
|
2290
2290
|
}>, "many">;
|
|
2291
|
-
domainCategory: zod.ZodOptional<zod.ZodEnum<["
|
|
2291
|
+
domainCategory: zod.ZodOptional<zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>>;
|
|
2292
2292
|
vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
|
|
2293
2293
|
designStyle: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
|
|
2294
2294
|
flowPattern: zod.ZodOptional<zod.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
|
|
@@ -2312,7 +2312,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2312
2312
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
2313
2313
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
2314
2314
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
2315
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
2315
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
2316
2316
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
2317
2317
|
existingEffects?: any[] | undefined;
|
|
2318
2318
|
}, {
|
|
@@ -2331,7 +2331,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2331
2331
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
2332
2332
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
2333
2333
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
2334
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
2334
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
2335
2335
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
2336
2336
|
existingEffects?: any[] | undefined;
|
|
2337
2337
|
}>, {
|
|
@@ -2350,7 +2350,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2350
2350
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
2351
2351
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
2352
2352
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
2353
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
2353
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
2354
2354
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
2355
2355
|
existingEffects?: any[] | undefined;
|
|
2356
2356
|
}, {
|
|
@@ -2369,7 +2369,7 @@ declare function createAgentTools(workDir: string): {
|
|
|
2369
2369
|
listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
|
|
2370
2370
|
formPattern?: "modal" | "drawer" | "page" | undefined;
|
|
2371
2371
|
detailPattern?: "split" | "drawer" | "page" | undefined;
|
|
2372
|
-
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "
|
|
2372
|
+
domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow" | undefined;
|
|
2373
2373
|
designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
|
|
2374
2374
|
existingEffects?: any[] | undefined;
|
|
2375
2375
|
}, string, "design_transition">;
|
package/dist/tools/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isOrbitalDefinition, isEntityReference, getTraitName } from '@almadar/core/types';
|
|
1
|
+
import { AgentDomainCategorySchema, isOrbitalDefinition, isEntityReference, getTraitName } from '@almadar/core/types';
|
|
2
2
|
import { tool } from '@langchain/core/tools';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { exec, spawn } from 'child_process';
|
|
@@ -1437,7 +1437,7 @@ var GenerateOrbitalDomainSchema = z.object({
|
|
|
1437
1437
|
domainContext: z.object({
|
|
1438
1438
|
request: z.string(),
|
|
1439
1439
|
requestFragment: z.string().optional(),
|
|
1440
|
-
category:
|
|
1440
|
+
category: AgentDomainCategorySchema,
|
|
1441
1441
|
vocabulary: z.record(z.string(), z.string()).optional()
|
|
1442
1442
|
}).optional(),
|
|
1443
1443
|
design: z.object({
|
|
@@ -1902,7 +1902,7 @@ var OrbitalInputSchema = z.object({
|
|
|
1902
1902
|
domainContext: z.object({
|
|
1903
1903
|
request: z.string(),
|
|
1904
1904
|
requestFragment: z.string().optional(),
|
|
1905
|
-
category:
|
|
1905
|
+
category: AgentDomainCategorySchema,
|
|
1906
1906
|
vocabulary: z.record(z.string(), z.string()).optional()
|
|
1907
1907
|
}).optional(),
|
|
1908
1908
|
design: z.object({
|
|
@@ -2865,7 +2865,7 @@ var DesignTransitionSchema = z.object({
|
|
|
2865
2865
|
type: z.string(),
|
|
2866
2866
|
values: z.array(z.string()).optional()
|
|
2867
2867
|
})).describe("Entity fields with types and optional enum values"),
|
|
2868
|
-
domainCategory:
|
|
2868
|
+
domainCategory: AgentDomainCategorySchema.optional().describe("Domain category for pattern selection"),
|
|
2869
2869
|
vocabulary: z.record(z.string(), z.string()).optional().describe('Domain vocabulary mapping (e.g., { "create": "Place Order", "item": "Order" })'),
|
|
2870
2870
|
designStyle: z.enum(["minimal", "modern", "playful", "data-driven", "immersive"]).optional().describe("Visual style hint"),
|
|
2871
2871
|
flowPattern: z.enum(["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]).optional().describe("Application flow pattern"),
|