@almadar/agent 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +83 -278
- package/dist/agent/index.js.map +1 -1
- package/dist/{index-D-Ahuo6F.d.ts → index-DNe7JzkE.d.ts} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +84 -281
- package/dist/index.js.map +1 -1
- package/dist/{orbital-subagent-cNfTLdXQ.d.ts → orbital-subagent-CiOIu9Ax.d.ts} +25 -25
- package/dist/tools/index.d.ts +28 -257
- package/dist/tools/index.js +84 -282
- package/dist/tools/index.js.map +1 -1
- package/package.json +4 -4
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,140 +1,10 @@
|
|
|
1
|
+
import { S as SubagentEventCallback, O as OrbitalCompleteCallback, D as DomainOrbitalEventCallback, a as DomainOrbitalCompleteCallback } from '../orbital-subagent-CiOIu9Ax.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-CiOIu9Ax.js';
|
|
1
3
|
import * as _langchain_core_tools from '@langchain/core/tools';
|
|
2
4
|
import * as zod from 'zod';
|
|
3
5
|
import { z } from 'zod';
|
|
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-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
6
|
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<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "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" | "ecommerce" | "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" | "ecommerce" | "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" | "ecommerce" | "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" | "ecommerce" | "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;
|
|
7
|
+
import { S as SSEEventType } from '../api-types-BW_58thJ.js';
|
|
138
8
|
|
|
139
9
|
type TraitEventCallback = (traitName: string, traitIndex: number, totalTraits: number, event: {
|
|
140
10
|
type: Exclude<SSEEventType, 'subagent_event'>;
|
|
@@ -425,6 +295,10 @@ declare function createFinishTaskTool(workDir: string | undefined): _langchain_c
|
|
|
425
295
|
errorCount: number;
|
|
426
296
|
warningCount: number;
|
|
427
297
|
} | undefined;
|
|
298
|
+
designQuality: {
|
|
299
|
+
propCorrections: number;
|
|
300
|
+
compositionWarnings: string[];
|
|
301
|
+
};
|
|
428
302
|
schemaPath: string | undefined;
|
|
429
303
|
nextAction: string;
|
|
430
304
|
}, "finish_task">;
|
|
@@ -1075,6 +949,10 @@ declare function createAgentTools(workDir: string): {
|
|
|
1075
949
|
errorCount: number;
|
|
1076
950
|
warningCount: number;
|
|
1077
951
|
} | undefined;
|
|
952
|
+
designQuality: {
|
|
953
|
+
propCorrections: number;
|
|
954
|
+
compositionWarnings: string[];
|
|
955
|
+
};
|
|
1078
956
|
schemaPath: string | undefined;
|
|
1079
957
|
nextAction: string;
|
|
1080
958
|
}, "finish_task">;
|
|
@@ -1242,20 +1120,20 @@ declare function createAgentTools(workDir: string): {
|
|
|
1242
1120
|
}>, "many">;
|
|
1243
1121
|
}, "strip", zod.ZodTypeAny, {
|
|
1244
1122
|
name: string;
|
|
1245
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1246
1123
|
fields: {
|
|
1247
1124
|
type: string;
|
|
1248
1125
|
name: string;
|
|
1249
1126
|
required?: boolean | undefined;
|
|
1250
1127
|
}[];
|
|
1128
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1251
1129
|
}, {
|
|
1252
1130
|
name: string;
|
|
1253
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1254
1131
|
fields: {
|
|
1255
1132
|
type: string;
|
|
1256
1133
|
name: string;
|
|
1257
1134
|
required?: boolean | undefined;
|
|
1258
1135
|
}[];
|
|
1136
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1259
1137
|
}>;
|
|
1260
1138
|
traits: zod.ZodArray<zod.ZodString, "many">;
|
|
1261
1139
|
patterns: zod.ZodArray<zod.ZodString, "many">;
|
|
@@ -1352,12 +1230,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1352
1230
|
name: string;
|
|
1353
1231
|
entity: {
|
|
1354
1232
|
name: string;
|
|
1355
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1356
1233
|
fields: {
|
|
1357
1234
|
type: string;
|
|
1358
1235
|
name: string;
|
|
1359
1236
|
required?: boolean | undefined;
|
|
1360
1237
|
}[];
|
|
1238
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1361
1239
|
};
|
|
1362
1240
|
patterns: string[];
|
|
1363
1241
|
pages?: {
|
|
@@ -1395,12 +1273,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1395
1273
|
name: string;
|
|
1396
1274
|
entity: {
|
|
1397
1275
|
name: string;
|
|
1398
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1399
1276
|
fields: {
|
|
1400
1277
|
type: string;
|
|
1401
1278
|
name: string;
|
|
1402
1279
|
required?: boolean | undefined;
|
|
1403
1280
|
}[];
|
|
1281
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1404
1282
|
};
|
|
1405
1283
|
patterns: string[];
|
|
1406
1284
|
pages?: {
|
|
@@ -1442,12 +1320,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1442
1320
|
name: string;
|
|
1443
1321
|
entity: {
|
|
1444
1322
|
name: string;
|
|
1445
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1446
1323
|
fields: {
|
|
1447
1324
|
type: string;
|
|
1448
1325
|
name: string;
|
|
1449
1326
|
required?: boolean | undefined;
|
|
1450
1327
|
}[];
|
|
1328
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1451
1329
|
};
|
|
1452
1330
|
patterns: string[];
|
|
1453
1331
|
pages?: {
|
|
@@ -1489,12 +1367,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1489
1367
|
name: string;
|
|
1490
1368
|
entity: {
|
|
1491
1369
|
name: string;
|
|
1492
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1493
1370
|
fields: {
|
|
1494
1371
|
type: string;
|
|
1495
1372
|
name: string;
|
|
1496
1373
|
required?: boolean | undefined;
|
|
1497
1374
|
}[];
|
|
1375
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1498
1376
|
};
|
|
1499
1377
|
patterns: string[];
|
|
1500
1378
|
pages?: {
|
|
@@ -1536,12 +1414,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1536
1414
|
name: string;
|
|
1537
1415
|
entity: {
|
|
1538
1416
|
name: string;
|
|
1539
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1540
1417
|
fields: {
|
|
1541
1418
|
type: string;
|
|
1542
1419
|
name: string;
|
|
1543
1420
|
required?: boolean | undefined;
|
|
1544
1421
|
}[];
|
|
1422
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1545
1423
|
};
|
|
1546
1424
|
patterns: string[];
|
|
1547
1425
|
pages?: {
|
|
@@ -1583,12 +1461,12 @@ declare function createAgentTools(workDir: string): {
|
|
|
1583
1461
|
name: string;
|
|
1584
1462
|
entity: {
|
|
1585
1463
|
name: string;
|
|
1586
|
-
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1587
1464
|
fields: {
|
|
1588
1465
|
type: string;
|
|
1589
1466
|
name: string;
|
|
1590
1467
|
required?: boolean | undefined;
|
|
1591
1468
|
}[];
|
|
1469
|
+
persistence: "persistent" | "runtime" | "singleton" | "instance";
|
|
1592
1470
|
};
|
|
1593
1471
|
patterns: string[];
|
|
1594
1472
|
pages?: {
|
|
@@ -1798,13 +1676,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
1798
1676
|
}>, "many">>;
|
|
1799
1677
|
}, "strip", zod.ZodTypeAny, {
|
|
1800
1678
|
name: string;
|
|
1801
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
1802
1679
|
fields: {
|
|
1803
1680
|
type: string;
|
|
1804
1681
|
name: string;
|
|
1805
1682
|
default?: any;
|
|
1806
1683
|
required?: boolean | undefined;
|
|
1807
1684
|
}[];
|
|
1685
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
1808
1686
|
relations?: {
|
|
1809
1687
|
type: "belongs_to" | "has_many";
|
|
1810
1688
|
entity: string;
|
|
@@ -1812,13 +1690,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
1812
1690
|
}[] | undefined;
|
|
1813
1691
|
}, {
|
|
1814
1692
|
name: string;
|
|
1815
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
1816
1693
|
fields: {
|
|
1817
1694
|
type: string;
|
|
1818
1695
|
name: string;
|
|
1819
1696
|
default?: any;
|
|
1820
1697
|
required?: boolean | undefined;
|
|
1821
1698
|
}[];
|
|
1699
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
1822
1700
|
relations?: {
|
|
1823
1701
|
type: "belongs_to" | "has_many";
|
|
1824
1702
|
entity: string;
|
|
@@ -1916,13 +1794,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
1916
1794
|
name: string;
|
|
1917
1795
|
entity: {
|
|
1918
1796
|
name: string;
|
|
1919
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
1920
1797
|
fields: {
|
|
1921
1798
|
type: string;
|
|
1922
1799
|
name: string;
|
|
1923
1800
|
default?: any;
|
|
1924
1801
|
required?: boolean | undefined;
|
|
1925
1802
|
}[];
|
|
1803
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
1926
1804
|
relations?: {
|
|
1927
1805
|
type: "belongs_to" | "has_many";
|
|
1928
1806
|
entity: string;
|
|
@@ -1961,13 +1839,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
1961
1839
|
name: string;
|
|
1962
1840
|
entity: {
|
|
1963
1841
|
name: string;
|
|
1964
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
1965
1842
|
fields: {
|
|
1966
1843
|
type: string;
|
|
1967
1844
|
name: string;
|
|
1968
1845
|
default?: any;
|
|
1969
1846
|
required?: boolean | undefined;
|
|
1970
1847
|
}[];
|
|
1848
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
1971
1849
|
relations?: {
|
|
1972
1850
|
type: "belongs_to" | "has_many";
|
|
1973
1851
|
entity: string;
|
|
@@ -2011,13 +1889,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
2011
1889
|
name: string;
|
|
2012
1890
|
entity: {
|
|
2013
1891
|
name: string;
|
|
2014
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
2015
1892
|
fields: {
|
|
2016
1893
|
type: string;
|
|
2017
1894
|
name: string;
|
|
2018
1895
|
default?: any;
|
|
2019
1896
|
required?: boolean | undefined;
|
|
2020
1897
|
}[];
|
|
1898
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
2021
1899
|
relations?: {
|
|
2022
1900
|
type: "belongs_to" | "has_many";
|
|
2023
1901
|
entity: string;
|
|
@@ -2061,13 +1939,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
2061
1939
|
name: string;
|
|
2062
1940
|
entity: {
|
|
2063
1941
|
name: string;
|
|
2064
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
2065
1942
|
fields: {
|
|
2066
1943
|
type: string;
|
|
2067
1944
|
name: string;
|
|
2068
1945
|
default?: any;
|
|
2069
1946
|
required?: boolean | undefined;
|
|
2070
1947
|
}[];
|
|
1948
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
2071
1949
|
relations?: {
|
|
2072
1950
|
type: "belongs_to" | "has_many";
|
|
2073
1951
|
entity: string;
|
|
@@ -2111,13 +1989,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
2111
1989
|
name: string;
|
|
2112
1990
|
entity: {
|
|
2113
1991
|
name: string;
|
|
2114
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
2115
1992
|
fields: {
|
|
2116
1993
|
type: string;
|
|
2117
1994
|
name: string;
|
|
2118
1995
|
default?: any;
|
|
2119
1996
|
required?: boolean | undefined;
|
|
2120
1997
|
}[];
|
|
1998
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
2121
1999
|
relations?: {
|
|
2122
2000
|
type: "belongs_to" | "has_many";
|
|
2123
2001
|
entity: string;
|
|
@@ -2161,13 +2039,13 @@ declare function createAgentTools(workDir: string): {
|
|
|
2161
2039
|
name: string;
|
|
2162
2040
|
entity: {
|
|
2163
2041
|
name: string;
|
|
2164
|
-
persistence: "persistent" | "runtime" | "singleton";
|
|
2165
2042
|
fields: {
|
|
2166
2043
|
type: string;
|
|
2167
2044
|
name: string;
|
|
2168
2045
|
default?: any;
|
|
2169
2046
|
required?: boolean | undefined;
|
|
2170
2047
|
}[];
|
|
2048
|
+
persistence: "persistent" | "runtime" | "singleton";
|
|
2171
2049
|
relations?: {
|
|
2172
2050
|
type: "belongs_to" | "has_many";
|
|
2173
2051
|
entity: string;
|
|
@@ -2268,113 +2146,6 @@ declare function createAgentTools(workDir: string): {
|
|
|
2268
2146
|
chunkId: string;
|
|
2269
2147
|
}, string, "apply_chunk">;
|
|
2270
2148
|
};
|
|
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<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "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" | "ecommerce" | "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" | "ecommerce" | "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" | "ecommerce" | "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" | "ecommerce" | "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
|
-
};
|
|
2378
2149
|
};
|
|
2379
2150
|
|
|
2380
|
-
export {
|
|
2151
|
+
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 };
|