@almadar/agent 1.0.14 → 1.1.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.
@@ -1,10 +1,140 @@
1
- import { S as SubagentEventCallback, O as OrbitalCompleteCallback, a as DomainOrbitalEventCallback, D as DomainOrbitalCompleteCallback } from '../orbital-subagent-DEb1LXxi.js';
2
- 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-DEb1LXxi.js';
3
1
  import * as _langchain_core_tools from '@langchain/core/tools';
4
2
  import * as zod from 'zod';
5
3
  import { z } from 'zod';
6
- import { Trait } from '@almadar/core/types';
7
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-kKa0EqQM.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-kKa0EqQM.js';
7
+ import { Trait } from '@almadar/core/types';
8
+
9
+ type DesignEventCallback = (transitionId: string, event: {
10
+ type: Exclude<SSEEventType, 'subagent_event'>;
11
+ data: Record<string, unknown>;
12
+ timestamp: number;
13
+ }) => void;
14
+ interface DesignTransitionToolOptions {
15
+ onEvent?: DesignEventCallback;
16
+ }
17
+ /**
18
+ * Create the design_transition tool.
19
+ *
20
+ * Takes a transition context and returns polished render-ui effects.
21
+ * Uses the kflow-design skill as system prompt with Anthropic cache control.
22
+ */
23
+ declare function createDesignTransitionTool(options?: DesignTransitionToolOptions): {
24
+ tool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
25
+ from: z.ZodString;
26
+ to: z.ZodString;
27
+ event: z.ZodString;
28
+ slot: z.ZodString;
29
+ entityName: z.ZodString;
30
+ entityFields: z.ZodArray<z.ZodObject<{
31
+ name: z.ZodString;
32
+ type: z.ZodString;
33
+ values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ type: string;
36
+ name: string;
37
+ values?: string[] | undefined;
38
+ }, {
39
+ type: string;
40
+ name: string;
41
+ values?: string[] | undefined;
42
+ }>, "many">;
43
+ domainCategory: z.ZodOptional<z.ZodEnum<["business", "game", "dashboard", "form", "content", "social", "e-commerce", "workflow"]>>;
44
+ vocabulary: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
45
+ designStyle: z.ZodOptional<z.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
46
+ flowPattern: z.ZodOptional<z.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
47
+ listPattern: z.ZodOptional<z.ZodEnum<["entity-table", "entity-cards", "entity-list"]>>;
48
+ formPattern: z.ZodOptional<z.ZodEnum<["modal", "drawer", "page"]>>;
49
+ detailPattern: z.ZodOptional<z.ZodEnum<["drawer", "page", "split"]>>;
50
+ existingEffects: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ event: string;
53
+ entityName: string;
54
+ from: string;
55
+ to: string;
56
+ slot: string;
57
+ entityFields: {
58
+ type: string;
59
+ name: string;
60
+ values?: string[] | undefined;
61
+ }[];
62
+ vocabulary?: Record<string, string> | undefined;
63
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
64
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
65
+ formPattern?: "modal" | "drawer" | "page" | undefined;
66
+ detailPattern?: "split" | "drawer" | "page" | undefined;
67
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
68
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
69
+ existingEffects?: any[] | undefined;
70
+ }, {
71
+ event: string;
72
+ entityName: string;
73
+ from: string;
74
+ to: string;
75
+ slot: string;
76
+ entityFields: {
77
+ type: string;
78
+ name: string;
79
+ values?: string[] | undefined;
80
+ }[];
81
+ vocabulary?: Record<string, string> | undefined;
82
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
83
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
84
+ formPattern?: "modal" | "drawer" | "page" | undefined;
85
+ detailPattern?: "split" | "drawer" | "page" | undefined;
86
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
87
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
88
+ existingEffects?: any[] | undefined;
89
+ }>, {
90
+ event: string;
91
+ entityName: string;
92
+ from: string;
93
+ to: string;
94
+ slot: string;
95
+ entityFields: {
96
+ type: string;
97
+ name: string;
98
+ values?: string[] | undefined;
99
+ }[];
100
+ vocabulary?: Record<string, string> | undefined;
101
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
102
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
103
+ formPattern?: "modal" | "drawer" | "page" | undefined;
104
+ detailPattern?: "split" | "drawer" | "page" | undefined;
105
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
106
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
107
+ existingEffects?: any[] | undefined;
108
+ }, {
109
+ event: string;
110
+ entityName: string;
111
+ from: string;
112
+ to: string;
113
+ slot: string;
114
+ entityFields: {
115
+ type: string;
116
+ name: string;
117
+ values?: string[] | undefined;
118
+ }[];
119
+ vocabulary?: Record<string, string> | undefined;
120
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
121
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
122
+ formPattern?: "modal" | "drawer" | "page" | undefined;
123
+ detailPattern?: "split" | "drawer" | "page" | undefined;
124
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
125
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
126
+ existingEffects?: any[] | undefined;
127
+ }, string, "design_transition">;
128
+ setEventCallback: (callback: DesignEventCallback) => void;
129
+ };
130
+ /**
131
+ * Create a helper to wrap design events into SSE format.
132
+ */
133
+ declare function createDesignEventWrapper(writeEvent: (event: {
134
+ type: string;
135
+ timestamp: number;
136
+ data: unknown;
137
+ }) => void): DesignEventCallback;
8
138
 
9
139
  type TraitEventCallback = (traitName: string, traitIndex: number, totalTraits: number, event: {
10
140
  type: Exclude<SSEEventType, 'subagent_event'>;
@@ -642,26 +772,26 @@ declare function createGitHubTools(config: GitHubToolsConfig): {
642
772
  headBranch: z.ZodString;
643
773
  draft: z.ZodOptional<z.ZodBoolean>;
644
774
  }, "strip", z.ZodTypeAny, {
645
- title: string;
646
775
  baseBranch: string;
776
+ title: string;
647
777
  body: string;
648
778
  headBranch: string;
649
779
  draft?: boolean | undefined;
650
780
  }, {
651
- title: string;
652
781
  baseBranch: string;
782
+ title: string;
653
783
  body: string;
654
784
  headBranch: string;
655
785
  draft?: boolean | undefined;
656
786
  }>, {
657
- title: string;
658
787
  baseBranch: string;
788
+ title: string;
659
789
  body: string;
660
790
  headBranch: string;
661
791
  draft?: boolean | undefined;
662
792
  }, {
663
- title: string;
664
793
  baseBranch: string;
794
+ title: string;
665
795
  body: string;
666
796
  headBranch: string;
667
797
  draft?: boolean | undefined;
@@ -780,26 +910,26 @@ declare function createGitHubToolsArray(config: GitHubToolsConfig): (_langchain_
780
910
  headBranch: z.ZodString;
781
911
  draft: z.ZodOptional<z.ZodBoolean>;
782
912
  }, "strip", z.ZodTypeAny, {
783
- title: string;
784
913
  baseBranch: string;
914
+ title: string;
785
915
  body: string;
786
916
  headBranch: string;
787
917
  draft?: boolean | undefined;
788
918
  }, {
789
- title: string;
790
919
  baseBranch: string;
920
+ title: string;
791
921
  body: string;
792
922
  headBranch: string;
793
923
  draft?: boolean | undefined;
794
924
  }>, {
795
- title: string;
796
925
  baseBranch: string;
926
+ title: string;
797
927
  body: string;
798
928
  headBranch: string;
799
929
  draft?: boolean | undefined;
800
930
  }, {
801
- title: string;
802
931
  baseBranch: string;
932
+ title: string;
803
933
  body: string;
804
934
  headBranch: string;
805
935
  draft?: boolean | undefined;
@@ -1112,20 +1242,20 @@ declare function createAgentTools(workDir: string): {
1112
1242
  }>, "many">;
1113
1243
  }, "strip", zod.ZodTypeAny, {
1114
1244
  name: string;
1245
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1115
1246
  fields: {
1116
1247
  type: string;
1117
1248
  name: string;
1118
1249
  required?: boolean | undefined;
1119
1250
  }[];
1120
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1121
1251
  }, {
1122
1252
  name: string;
1253
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1123
1254
  fields: {
1124
1255
  type: string;
1125
1256
  name: string;
1126
1257
  required?: boolean | undefined;
1127
1258
  }[];
1128
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1129
1259
  }>;
1130
1260
  traits: zod.ZodArray<zod.ZodString, "many">;
1131
1261
  patterns: zod.ZodArray<zod.ZodString, "many">;
@@ -1149,12 +1279,12 @@ declare function createAgentTools(workDir: string): {
1149
1279
  vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1150
1280
  }, "strip", zod.ZodTypeAny, {
1151
1281
  request: string;
1152
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1282
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1153
1283
  requestFragment?: string | undefined;
1154
1284
  vocabulary?: Record<string, string> | undefined;
1155
1285
  }, {
1156
1286
  request: string;
1157
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1287
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1158
1288
  requestFragment?: string | undefined;
1159
1289
  vocabulary?: Record<string, string> | undefined;
1160
1290
  }>>;
@@ -1222,12 +1352,12 @@ declare function createAgentTools(workDir: string): {
1222
1352
  name: string;
1223
1353
  entity: {
1224
1354
  name: string;
1355
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1225
1356
  fields: {
1226
1357
  type: string;
1227
1358
  name: string;
1228
1359
  required?: boolean | undefined;
1229
1360
  }[];
1230
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1231
1361
  };
1232
1362
  patterns: string[];
1233
1363
  pages?: {
@@ -1242,7 +1372,7 @@ declare function createAgentTools(workDir: string): {
1242
1372
  }[] | undefined;
1243
1373
  domainContext?: {
1244
1374
  request: string;
1245
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1375
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1246
1376
  requestFragment?: string | undefined;
1247
1377
  vocabulary?: Record<string, string> | undefined;
1248
1378
  } | undefined;
@@ -1265,12 +1395,12 @@ declare function createAgentTools(workDir: string): {
1265
1395
  name: string;
1266
1396
  entity: {
1267
1397
  name: string;
1398
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1268
1399
  fields: {
1269
1400
  type: string;
1270
1401
  name: string;
1271
1402
  required?: boolean | undefined;
1272
1403
  }[];
1273
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1274
1404
  };
1275
1405
  patterns: string[];
1276
1406
  pages?: {
@@ -1285,7 +1415,7 @@ declare function createAgentTools(workDir: string): {
1285
1415
  }[] | undefined;
1286
1416
  domainContext?: {
1287
1417
  request: string;
1288
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1418
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1289
1419
  requestFragment?: string | undefined;
1290
1420
  vocabulary?: Record<string, string> | undefined;
1291
1421
  } | undefined;
@@ -1312,12 +1442,12 @@ declare function createAgentTools(workDir: string): {
1312
1442
  name: string;
1313
1443
  entity: {
1314
1444
  name: string;
1445
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1315
1446
  fields: {
1316
1447
  type: string;
1317
1448
  name: string;
1318
1449
  required?: boolean | undefined;
1319
1450
  }[];
1320
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1321
1451
  };
1322
1452
  patterns: string[];
1323
1453
  pages?: {
@@ -1332,7 +1462,7 @@ declare function createAgentTools(workDir: string): {
1332
1462
  }[] | undefined;
1333
1463
  domainContext?: {
1334
1464
  request: string;
1335
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1465
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1336
1466
  requestFragment?: string | undefined;
1337
1467
  vocabulary?: Record<string, string> | undefined;
1338
1468
  } | undefined;
@@ -1359,12 +1489,12 @@ declare function createAgentTools(workDir: string): {
1359
1489
  name: string;
1360
1490
  entity: {
1361
1491
  name: string;
1492
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1362
1493
  fields: {
1363
1494
  type: string;
1364
1495
  name: string;
1365
1496
  required?: boolean | undefined;
1366
1497
  }[];
1367
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1368
1498
  };
1369
1499
  patterns: string[];
1370
1500
  pages?: {
@@ -1379,7 +1509,7 @@ declare function createAgentTools(workDir: string): {
1379
1509
  }[] | undefined;
1380
1510
  domainContext?: {
1381
1511
  request: string;
1382
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1512
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1383
1513
  requestFragment?: string | undefined;
1384
1514
  vocabulary?: Record<string, string> | undefined;
1385
1515
  } | undefined;
@@ -1406,12 +1536,12 @@ declare function createAgentTools(workDir: string): {
1406
1536
  name: string;
1407
1537
  entity: {
1408
1538
  name: string;
1539
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1409
1540
  fields: {
1410
1541
  type: string;
1411
1542
  name: string;
1412
1543
  required?: boolean | undefined;
1413
1544
  }[];
1414
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1415
1545
  };
1416
1546
  patterns: string[];
1417
1547
  pages?: {
@@ -1426,7 +1556,7 @@ declare function createAgentTools(workDir: string): {
1426
1556
  }[] | undefined;
1427
1557
  domainContext?: {
1428
1558
  request: string;
1429
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1559
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1430
1560
  requestFragment?: string | undefined;
1431
1561
  vocabulary?: Record<string, string> | undefined;
1432
1562
  } | undefined;
@@ -1453,12 +1583,12 @@ declare function createAgentTools(workDir: string): {
1453
1583
  name: string;
1454
1584
  entity: {
1455
1585
  name: string;
1586
+ persistence: "persistent" | "runtime" | "singleton" | "instance";
1456
1587
  fields: {
1457
1588
  type: string;
1458
1589
  name: string;
1459
1590
  required?: boolean | undefined;
1460
1591
  }[];
1461
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1462
1592
  };
1463
1593
  patterns: string[];
1464
1594
  pages?: {
@@ -1473,7 +1603,7 @@ declare function createAgentTools(workDir: string): {
1473
1603
  }[] | undefined;
1474
1604
  domainContext?: {
1475
1605
  request: string;
1476
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1606
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1477
1607
  requestFragment?: string | undefined;
1478
1608
  vocabulary?: Record<string, string> | undefined;
1479
1609
  } | undefined;
@@ -1668,13 +1798,13 @@ declare function createAgentTools(workDir: string): {
1668
1798
  }>, "many">>;
1669
1799
  }, "strip", zod.ZodTypeAny, {
1670
1800
  name: string;
1801
+ persistence: "persistent" | "runtime" | "singleton";
1671
1802
  fields: {
1672
1803
  type: string;
1673
1804
  name: string;
1674
1805
  default?: any;
1675
1806
  required?: boolean | undefined;
1676
1807
  }[];
1677
- persistence: "persistent" | "runtime" | "singleton";
1678
1808
  relations?: {
1679
1809
  type: "belongs_to" | "has_many";
1680
1810
  entity: string;
@@ -1682,13 +1812,13 @@ declare function createAgentTools(workDir: string): {
1682
1812
  }[] | undefined;
1683
1813
  }, {
1684
1814
  name: string;
1815
+ persistence: "persistent" | "runtime" | "singleton";
1685
1816
  fields: {
1686
1817
  type: string;
1687
1818
  name: string;
1688
1819
  default?: any;
1689
1820
  required?: boolean | undefined;
1690
1821
  }[];
1691
- persistence: "persistent" | "runtime" | "singleton";
1692
1822
  relations?: {
1693
1823
  type: "belongs_to" | "has_many";
1694
1824
  entity: string;
@@ -1720,12 +1850,12 @@ declare function createAgentTools(workDir: string): {
1720
1850
  vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1721
1851
  }, "strip", zod.ZodTypeAny, {
1722
1852
  request: string;
1723
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1853
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1724
1854
  requestFragment?: string | undefined;
1725
1855
  vocabulary?: Record<string, string> | undefined;
1726
1856
  }, {
1727
1857
  request: string;
1728
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1858
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1729
1859
  requestFragment?: string | undefined;
1730
1860
  vocabulary?: Record<string, string> | undefined;
1731
1861
  }>>;
@@ -1738,12 +1868,12 @@ declare function createAgentTools(workDir: string): {
1738
1868
  detailPattern: zod.ZodOptional<zod.ZodEnum<["drawer", "page", "split"]>>;
1739
1869
  }, "strip", zod.ZodTypeAny, {
1740
1870
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1741
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1871
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1742
1872
  formPattern?: "modal" | "drawer" | "page" | undefined;
1743
1873
  detailPattern?: "split" | "drawer" | "page" | undefined;
1744
1874
  }, {
1745
1875
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1746
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1876
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1747
1877
  formPattern?: "modal" | "drawer" | "page" | undefined;
1748
1878
  detailPattern?: "split" | "drawer" | "page" | undefined;
1749
1879
  }>>;
@@ -1751,7 +1881,7 @@ declare function createAgentTools(workDir: string): {
1751
1881
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1752
1882
  uxHints?: {
1753
1883
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1754
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1884
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1755
1885
  formPattern?: "modal" | "drawer" | "page" | undefined;
1756
1886
  detailPattern?: "split" | "drawer" | "page" | undefined;
1757
1887
  } | undefined;
@@ -1759,7 +1889,7 @@ declare function createAgentTools(workDir: string): {
1759
1889
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1760
1890
  uxHints?: {
1761
1891
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1762
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1892
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1763
1893
  formPattern?: "modal" | "drawer" | "page" | undefined;
1764
1894
  detailPattern?: "split" | "drawer" | "page" | undefined;
1765
1895
  } | undefined;
@@ -1786,13 +1916,13 @@ declare function createAgentTools(workDir: string): {
1786
1916
  name: string;
1787
1917
  entity: {
1788
1918
  name: string;
1919
+ persistence: "persistent" | "runtime" | "singleton";
1789
1920
  fields: {
1790
1921
  type: string;
1791
1922
  name: string;
1792
1923
  default?: any;
1793
1924
  required?: boolean | undefined;
1794
1925
  }[];
1795
- persistence: "persistent" | "runtime" | "singleton";
1796
1926
  relations?: {
1797
1927
  type: "belongs_to" | "has_many";
1798
1928
  entity: string;
@@ -1802,7 +1932,7 @@ declare function createAgentTools(workDir: string): {
1802
1932
  patterns: string[];
1803
1933
  domainContext?: {
1804
1934
  request: string;
1805
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1935
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1806
1936
  requestFragment?: string | undefined;
1807
1937
  vocabulary?: Record<string, string> | undefined;
1808
1938
  } | undefined;
@@ -1810,7 +1940,7 @@ declare function createAgentTools(workDir: string): {
1810
1940
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1811
1941
  uxHints?: {
1812
1942
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1813
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1943
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1814
1944
  formPattern?: "modal" | "drawer" | "page" | undefined;
1815
1945
  detailPattern?: "split" | "drawer" | "page" | undefined;
1816
1946
  } | undefined;
@@ -1831,13 +1961,13 @@ declare function createAgentTools(workDir: string): {
1831
1961
  name: string;
1832
1962
  entity: {
1833
1963
  name: string;
1964
+ persistence: "persistent" | "runtime" | "singleton";
1834
1965
  fields: {
1835
1966
  type: string;
1836
1967
  name: string;
1837
1968
  default?: any;
1838
1969
  required?: boolean | undefined;
1839
1970
  }[];
1840
- persistence: "persistent" | "runtime" | "singleton";
1841
1971
  relations?: {
1842
1972
  type: "belongs_to" | "has_many";
1843
1973
  entity: string;
@@ -1847,7 +1977,7 @@ declare function createAgentTools(workDir: string): {
1847
1977
  patterns: string[];
1848
1978
  domainContext?: {
1849
1979
  request: string;
1850
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
1980
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1851
1981
  requestFragment?: string | undefined;
1852
1982
  vocabulary?: Record<string, string> | undefined;
1853
1983
  } | undefined;
@@ -1855,7 +1985,7 @@ declare function createAgentTools(workDir: string): {
1855
1985
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1856
1986
  uxHints?: {
1857
1987
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1858
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
1988
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1859
1989
  formPattern?: "modal" | "drawer" | "page" | undefined;
1860
1990
  detailPattern?: "split" | "drawer" | "page" | undefined;
1861
1991
  } | undefined;
@@ -1881,13 +2011,13 @@ declare function createAgentTools(workDir: string): {
1881
2011
  name: string;
1882
2012
  entity: {
1883
2013
  name: string;
2014
+ persistence: "persistent" | "runtime" | "singleton";
1884
2015
  fields: {
1885
2016
  type: string;
1886
2017
  name: string;
1887
2018
  default?: any;
1888
2019
  required?: boolean | undefined;
1889
2020
  }[];
1890
- persistence: "persistent" | "runtime" | "singleton";
1891
2021
  relations?: {
1892
2022
  type: "belongs_to" | "has_many";
1893
2023
  entity: string;
@@ -1897,7 +2027,7 @@ declare function createAgentTools(workDir: string): {
1897
2027
  patterns: string[];
1898
2028
  domainContext?: {
1899
2029
  request: string;
1900
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
2030
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1901
2031
  requestFragment?: string | undefined;
1902
2032
  vocabulary?: Record<string, string> | undefined;
1903
2033
  } | undefined;
@@ -1905,7 +2035,7 @@ declare function createAgentTools(workDir: string): {
1905
2035
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1906
2036
  uxHints?: {
1907
2037
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1908
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
2038
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1909
2039
  formPattern?: "modal" | "drawer" | "page" | undefined;
1910
2040
  detailPattern?: "split" | "drawer" | "page" | undefined;
1911
2041
  } | undefined;
@@ -1931,13 +2061,13 @@ declare function createAgentTools(workDir: string): {
1931
2061
  name: string;
1932
2062
  entity: {
1933
2063
  name: string;
2064
+ persistence: "persistent" | "runtime" | "singleton";
1934
2065
  fields: {
1935
2066
  type: string;
1936
2067
  name: string;
1937
2068
  default?: any;
1938
2069
  required?: boolean | undefined;
1939
2070
  }[];
1940
- persistence: "persistent" | "runtime" | "singleton";
1941
2071
  relations?: {
1942
2072
  type: "belongs_to" | "has_many";
1943
2073
  entity: string;
@@ -1947,7 +2077,7 @@ declare function createAgentTools(workDir: string): {
1947
2077
  patterns: string[];
1948
2078
  domainContext?: {
1949
2079
  request: string;
1950
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
2080
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
1951
2081
  requestFragment?: string | undefined;
1952
2082
  vocabulary?: Record<string, string> | undefined;
1953
2083
  } | undefined;
@@ -1955,7 +2085,7 @@ declare function createAgentTools(workDir: string): {
1955
2085
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1956
2086
  uxHints?: {
1957
2087
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1958
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
2088
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1959
2089
  formPattern?: "modal" | "drawer" | "page" | undefined;
1960
2090
  detailPattern?: "split" | "drawer" | "page" | undefined;
1961
2091
  } | undefined;
@@ -1981,13 +2111,13 @@ declare function createAgentTools(workDir: string): {
1981
2111
  name: string;
1982
2112
  entity: {
1983
2113
  name: string;
2114
+ persistence: "persistent" | "runtime" | "singleton";
1984
2115
  fields: {
1985
2116
  type: string;
1986
2117
  name: string;
1987
2118
  default?: any;
1988
2119
  required?: boolean | undefined;
1989
2120
  }[];
1990
- persistence: "persistent" | "runtime" | "singleton";
1991
2121
  relations?: {
1992
2122
  type: "belongs_to" | "has_many";
1993
2123
  entity: string;
@@ -1997,7 +2127,7 @@ declare function createAgentTools(workDir: string): {
1997
2127
  patterns: string[];
1998
2128
  domainContext?: {
1999
2129
  request: string;
2000
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
2130
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
2001
2131
  requestFragment?: string | undefined;
2002
2132
  vocabulary?: Record<string, string> | undefined;
2003
2133
  } | undefined;
@@ -2005,7 +2135,7 @@ declare function createAgentTools(workDir: string): {
2005
2135
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2006
2136
  uxHints?: {
2007
2137
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2008
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
2138
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2009
2139
  formPattern?: "modal" | "drawer" | "page" | undefined;
2010
2140
  detailPattern?: "split" | "drawer" | "page" | undefined;
2011
2141
  } | undefined;
@@ -2031,13 +2161,13 @@ declare function createAgentTools(workDir: string): {
2031
2161
  name: string;
2032
2162
  entity: {
2033
2163
  name: string;
2164
+ persistence: "persistent" | "runtime" | "singleton";
2034
2165
  fields: {
2035
2166
  type: string;
2036
2167
  name: string;
2037
2168
  default?: any;
2038
2169
  required?: boolean | undefined;
2039
2170
  }[];
2040
- persistence: "persistent" | "runtime" | "singleton";
2041
2171
  relations?: {
2042
2172
  type: "belongs_to" | "has_many";
2043
2173
  entity: string;
@@ -2047,7 +2177,7 @@ declare function createAgentTools(workDir: string): {
2047
2177
  patterns: string[];
2048
2178
  domainContext?: {
2049
2179
  request: string;
2050
- category: "dashboard" | "form" | "content" | "game" | "business" | "social";
2180
+ category: "game" | "business" | "dashboard" | "form" | "content" | "social";
2051
2181
  requestFragment?: string | undefined;
2052
2182
  vocabulary?: Record<string, string> | undefined;
2053
2183
  } | undefined;
@@ -2055,7 +2185,7 @@ declare function createAgentTools(workDir: string): {
2055
2185
  style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2056
2186
  uxHints?: {
2057
2187
  flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2058
- listPattern?: "entity-list" | "entity-table" | "entity-cards" | undefined;
2188
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2059
2189
  formPattern?: "modal" | "drawer" | "page" | undefined;
2060
2190
  detailPattern?: "split" | "drawer" | "page" | undefined;
2061
2191
  } | undefined;
@@ -2138,6 +2268,113 @@ declare function createAgentTools(workDir: string): {
2138
2268
  chunkId: string;
2139
2269
  }, string, "apply_chunk">;
2140
2270
  };
2271
+ designTransition: {
2272
+ tool: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2273
+ from: zod.ZodString;
2274
+ to: zod.ZodString;
2275
+ event: zod.ZodString;
2276
+ slot: zod.ZodString;
2277
+ entityName: zod.ZodString;
2278
+ entityFields: zod.ZodArray<zod.ZodObject<{
2279
+ name: zod.ZodString;
2280
+ type: zod.ZodString;
2281
+ values: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2282
+ }, "strip", zod.ZodTypeAny, {
2283
+ type: string;
2284
+ name: string;
2285
+ values?: string[] | undefined;
2286
+ }, {
2287
+ type: string;
2288
+ name: string;
2289
+ values?: string[] | undefined;
2290
+ }>, "many">;
2291
+ domainCategory: zod.ZodOptional<zod.ZodEnum<["business", "game", "dashboard", "form", "content", "social", "e-commerce", "workflow"]>>;
2292
+ vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
2293
+ designStyle: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
2294
+ flowPattern: zod.ZodOptional<zod.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
2295
+ listPattern: zod.ZodOptional<zod.ZodEnum<["entity-table", "entity-cards", "entity-list"]>>;
2296
+ formPattern: zod.ZodOptional<zod.ZodEnum<["modal", "drawer", "page"]>>;
2297
+ detailPattern: zod.ZodOptional<zod.ZodEnum<["drawer", "page", "split"]>>;
2298
+ existingEffects: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
2299
+ }, "strip", zod.ZodTypeAny, {
2300
+ event: string;
2301
+ entityName: string;
2302
+ from: string;
2303
+ to: string;
2304
+ slot: string;
2305
+ entityFields: {
2306
+ type: string;
2307
+ name: string;
2308
+ values?: string[] | undefined;
2309
+ }[];
2310
+ vocabulary?: Record<string, string> | undefined;
2311
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2312
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2313
+ formPattern?: "modal" | "drawer" | "page" | undefined;
2314
+ detailPattern?: "split" | "drawer" | "page" | undefined;
2315
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
2316
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2317
+ existingEffects?: any[] | undefined;
2318
+ }, {
2319
+ event: string;
2320
+ entityName: string;
2321
+ from: string;
2322
+ to: string;
2323
+ slot: string;
2324
+ entityFields: {
2325
+ type: string;
2326
+ name: string;
2327
+ values?: string[] | undefined;
2328
+ }[];
2329
+ vocabulary?: Record<string, string> | undefined;
2330
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2331
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2332
+ formPattern?: "modal" | "drawer" | "page" | undefined;
2333
+ detailPattern?: "split" | "drawer" | "page" | undefined;
2334
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
2335
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2336
+ existingEffects?: any[] | undefined;
2337
+ }>, {
2338
+ event: string;
2339
+ entityName: string;
2340
+ from: string;
2341
+ to: string;
2342
+ slot: string;
2343
+ entityFields: {
2344
+ type: string;
2345
+ name: string;
2346
+ values?: string[] | undefined;
2347
+ }[];
2348
+ vocabulary?: Record<string, string> | undefined;
2349
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2350
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2351
+ formPattern?: "modal" | "drawer" | "page" | undefined;
2352
+ detailPattern?: "split" | "drawer" | "page" | undefined;
2353
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
2354
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2355
+ existingEffects?: any[] | undefined;
2356
+ }, {
2357
+ event: string;
2358
+ entityName: string;
2359
+ from: string;
2360
+ to: string;
2361
+ slot: string;
2362
+ entityFields: {
2363
+ type: string;
2364
+ name: string;
2365
+ values?: string[] | undefined;
2366
+ }[];
2367
+ vocabulary?: Record<string, string> | undefined;
2368
+ flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2369
+ listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2370
+ formPattern?: "modal" | "drawer" | "page" | undefined;
2371
+ detailPattern?: "split" | "drawer" | "page" | undefined;
2372
+ domainCategory?: "game" | "business" | "dashboard" | "form" | "content" | "social" | "e-commerce" | "workflow" | undefined;
2373
+ designStyle?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2374
+ existingEffects?: any[] | undefined;
2375
+ }, string, "design_transition">;
2376
+ setEventCallback: (callback: DesignEventCallback) => void;
2377
+ };
2141
2378
  };
2142
2379
 
2143
- export { DomainOrbitalCompleteCallback, DomainOrbitalEventCallback, type GitHubToolsConfig, OrbitalCompleteCallback, SubagentEventCallback, type TraitCompleteCallback, type TraitEventCallback, type TraitSpec, type TraitSubagentToolOptions, createAgentTools, createApplyChunkTool, createCombineSchemasTool, createExecuteTool, createExtractChunkTool, createFinishTaskTool, createGenerateSchemaTool, createGitHubTools, createGitHubToolsArray, createQuerySchemaStructureTool, createSchemaChunkingTools, createTraitEventWrapper, createTraitSubagentTool, createValidateSchemaTool, validateCommandPaths };
2380
+ export { type DesignEventCallback, type DesignTransitionToolOptions, DomainOrbitalCompleteCallback, DomainOrbitalEventCallback, type GitHubToolsConfig, OrbitalCompleteCallback, SubagentEventCallback, type TraitCompleteCallback, type TraitEventCallback, type TraitSpec, type TraitSubagentToolOptions, createAgentTools, createApplyChunkTool, createCombineSchemasTool, createDesignEventWrapper, createDesignTransitionTool, createExecuteTool, createExtractChunkTool, createFinishTaskTool, createGenerateSchemaTool, createGitHubTools, createGitHubToolsArray, createQuerySchemaStructureTool, createSchemaChunkingTools, createTraitEventWrapper, createTraitSubagentTool, createValidateSchemaTool, validateCommandPaths };