@almadar/agent 1.2.2 → 1.3.1

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,2380 +1,7 @@
1
- import * as _langchain_core_tools from '@langchain/core/tools';
2
- import * as zod from 'zod';
3
- 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
- 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;
138
-
139
- type TraitEventCallback = (traitName: string, traitIndex: number, totalTraits: number, event: {
140
- type: Exclude<SSEEventType, 'subagent_event'>;
141
- data: Record<string, unknown>;
142
- timestamp: number;
143
- }) => void;
144
- type TraitCompleteCallback = (trait: Trait, traitName: string, traitIndex: number, totalTraits: number) => void | Promise<void>;
145
- interface TraitSubagentToolOptions {
146
- onTraitEvent?: TraitEventCallback;
147
- onTraitComplete?: TraitCompleteCallback;
148
- }
149
- interface TraitSpec {
150
- name: string;
151
- description: string;
152
- category?: string;
153
- states?: string[];
154
- events?: string[];
155
- requiredFields?: Array<{
156
- name: string;
157
- type: string;
158
- description?: string;
159
- }>;
160
- needsTicks?: boolean;
161
- needsEmit?: boolean;
162
- needsListens?: boolean;
163
- }
164
- /**
165
- * Create a tool for generating custom traits.
166
- * Uses @almadar/llm LLMClient directly.
167
- */
168
- declare function createTraitSubagentTool(options?: TraitSubagentToolOptions): {
169
- tool: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
170
- traitSpec: z.ZodObject<{
171
- name: z.ZodString;
172
- description: z.ZodString;
173
- category: z.ZodOptional<z.ZodString>;
174
- states: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
- events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
- requiredFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
177
- name: z.ZodString;
178
- type: z.ZodString;
179
- description: z.ZodOptional<z.ZodString>;
180
- }, "strip", z.ZodTypeAny, {
181
- type: string;
182
- name: string;
183
- description?: string | undefined;
184
- }, {
185
- type: string;
186
- name: string;
187
- description?: string | undefined;
188
- }>, "many">>;
189
- needsTicks: z.ZodOptional<z.ZodBoolean>;
190
- needsEmit: z.ZodOptional<z.ZodBoolean>;
191
- needsListens: z.ZodOptional<z.ZodBoolean>;
192
- }, "strip", z.ZodTypeAny, {
193
- name: string;
194
- description: string;
195
- states?: string[] | undefined;
196
- events?: string[] | undefined;
197
- category?: string | undefined;
198
- requiredFields?: {
199
- type: string;
200
- name: string;
201
- description?: string | undefined;
202
- }[] | undefined;
203
- needsTicks?: boolean | undefined;
204
- needsEmit?: boolean | undefined;
205
- needsListens?: boolean | undefined;
206
- }, {
207
- name: string;
208
- description: string;
209
- states?: string[] | undefined;
210
- events?: string[] | undefined;
211
- category?: string | undefined;
212
- requiredFields?: {
213
- type: string;
214
- name: string;
215
- description?: string | undefined;
216
- }[] | undefined;
217
- needsTicks?: boolean | undefined;
218
- needsEmit?: boolean | undefined;
219
- needsListens?: boolean | undefined;
220
- }>;
221
- traitIndex: z.ZodOptional<z.ZodNumber>;
222
- totalTraits: z.ZodOptional<z.ZodNumber>;
223
- }, "strip", z.ZodTypeAny, {
224
- traitSpec: {
225
- name: string;
226
- description: string;
227
- states?: string[] | undefined;
228
- events?: string[] | undefined;
229
- category?: string | undefined;
230
- requiredFields?: {
231
- type: string;
232
- name: string;
233
- description?: string | undefined;
234
- }[] | undefined;
235
- needsTicks?: boolean | undefined;
236
- needsEmit?: boolean | undefined;
237
- needsListens?: boolean | undefined;
238
- };
239
- traitIndex?: number | undefined;
240
- totalTraits?: number | undefined;
241
- }, {
242
- traitSpec: {
243
- name: string;
244
- description: string;
245
- states?: string[] | undefined;
246
- events?: string[] | undefined;
247
- category?: string | undefined;
248
- requiredFields?: {
249
- type: string;
250
- name: string;
251
- description?: string | undefined;
252
- }[] | undefined;
253
- needsTicks?: boolean | undefined;
254
- needsEmit?: boolean | undefined;
255
- needsListens?: boolean | undefined;
256
- };
257
- traitIndex?: number | undefined;
258
- totalTraits?: number | undefined;
259
- }>, {
260
- traitSpec: {
261
- name: string;
262
- description: string;
263
- states?: string[] | undefined;
264
- events?: string[] | undefined;
265
- category?: string | undefined;
266
- requiredFields?: {
267
- type: string;
268
- name: string;
269
- description?: string | undefined;
270
- }[] | undefined;
271
- needsTicks?: boolean | undefined;
272
- needsEmit?: boolean | undefined;
273
- needsListens?: boolean | undefined;
274
- };
275
- traitIndex?: number | undefined;
276
- totalTraits?: number | undefined;
277
- }, {
278
- traitSpec: {
279
- name: string;
280
- description: string;
281
- states?: string[] | undefined;
282
- events?: string[] | undefined;
283
- category?: string | undefined;
284
- requiredFields?: {
285
- type: string;
286
- name: string;
287
- description?: string | undefined;
288
- }[] | undefined;
289
- needsTicks?: boolean | undefined;
290
- needsEmit?: boolean | undefined;
291
- needsListens?: boolean | undefined;
292
- };
293
- traitIndex?: number | undefined;
294
- totalTraits?: number | undefined;
295
- }, string, "generate_custom_trait">;
296
- setEventCallback: (callback: TraitEventCallback) => void;
297
- setTraitCompleteCallback: (callback: TraitCompleteCallback) => void;
298
- };
299
- /**
300
- * Create a helper to wrap trait events into SSE format.
301
- */
302
- declare function createTraitEventWrapper(writeEvent: (event: {
303
- type: string;
304
- timestamp: number;
305
- data: unknown;
306
- }) => void): TraitEventCallback;
307
-
308
- /**
309
- * Check if a command contains paths outside the workspace.
310
- * Returns an error message if unsafe, null if safe.
311
- */
312
- declare function validateCommandPaths(command: string, workDir: string): string | null;
313
- /**
314
- * Create an execute tool that runs shell commands in the workspace directory.
315
- */
316
- declare function createExecuteTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
317
- command: z.ZodString;
318
- timeout: z.ZodOptional<z.ZodNumber>;
319
- }, "strip", z.ZodTypeAny, {
320
- command: string;
321
- timeout?: number | undefined;
322
- }, {
323
- command: string;
324
- timeout?: number | undefined;
325
- }>, {
326
- command: string;
327
- timeout?: number | undefined;
328
- }, {
329
- command: string;
330
- timeout?: number | undefined;
331
- }, string, "execute">;
332
-
333
- /**
334
- * Create a validate_schema tool that validates schema.json in the workspace.
335
- *
336
- * Uses `npx @almadar/cli validate --json` for comprehensive Rust-based validation.
337
- *
338
- * Has a built-in cap of MAX_VALIDATION_ATTEMPTS to prevent
339
- * infinite validation-fix loops.
340
- */
341
- declare function createValidateSchemaTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>, {}, {}, string, "validate_schema">;
342
-
343
- /**
344
- * Create a tool that generates KFlow schemas using structured output.
345
- */
346
- declare function createGenerateSchemaTool(): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
347
- userRequest: z.ZodString;
348
- suggestedTraits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
349
- suggestedEntities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
350
- suggestedPages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
351
- suggestedPatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
352
- additionalInstructions: z.ZodOptional<z.ZodString>;
353
- existingSchema: z.ZodOptional<z.ZodString>;
354
- }, "strip", z.ZodTypeAny, {
355
- userRequest: string;
356
- suggestedTraits?: string[] | undefined;
357
- suggestedEntities?: string[] | undefined;
358
- suggestedPages?: string[] | undefined;
359
- suggestedPatterns?: string[] | undefined;
360
- additionalInstructions?: string | undefined;
361
- existingSchema?: string | undefined;
362
- }, {
363
- userRequest: string;
364
- suggestedTraits?: string[] | undefined;
365
- suggestedEntities?: string[] | undefined;
366
- suggestedPages?: string[] | undefined;
367
- suggestedPatterns?: string[] | undefined;
368
- additionalInstructions?: string | undefined;
369
- existingSchema?: string | undefined;
370
- }>, {
371
- userRequest: string;
372
- suggestedTraits?: string[] | undefined;
373
- suggestedEntities?: string[] | undefined;
374
- suggestedPages?: string[] | undefined;
375
- suggestedPatterns?: string[] | undefined;
376
- additionalInstructions?: string | undefined;
377
- existingSchema?: string | undefined;
378
- }, {
379
- userRequest: string;
380
- suggestedTraits?: string[] | undefined;
381
- suggestedEntities?: string[] | undefined;
382
- suggestedPages?: string[] | undefined;
383
- suggestedPatterns?: string[] | undefined;
384
- additionalInstructions?: string | undefined;
385
- existingSchema?: string | undefined;
386
- }, string, "generate_schema">;
387
-
388
- /**
389
- * Create a finish_task tool that signals the agent has completed the workflow.
390
- *
391
- * Automatically combines orbitals from:
392
- * 1. .orbitals/ directory (for kflow-orbitals skill)
393
- * 2. domain.txt (for lean skills) - converted to schema via convertDomainToSchema
394
- */
395
- declare function createFinishTaskTool(workDir: string | undefined): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
396
- summary: z.ZodString;
397
- schemaPath: z.ZodOptional<z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- summary: string;
400
- schemaPath?: string | undefined;
401
- }, {
402
- summary: string;
403
- schemaPath?: string | undefined;
404
- }>, {
405
- summary: string;
406
- schemaPath?: string | undefined;
407
- }, {
408
- summary: string;
409
- schemaPath?: string | undefined;
410
- }, {
411
- success: boolean;
412
- status: string;
413
- message: string;
414
- summary: string;
415
- autoCombined: boolean;
416
- source: "domain" | "orbitals" | undefined;
417
- stats: {
418
- totalOrbitals: number;
419
- totalEntities: number;
420
- totalPages: number;
421
- totalTraits: number;
422
- } | undefined;
423
- validation: {
424
- valid: boolean;
425
- errorCount: number;
426
- warningCount: number;
427
- } | undefined;
428
- schemaPath: string | undefined;
429
- nextAction: string;
430
- }, "finish_task">;
431
-
432
- /**
433
- * Create the construct_combined_schema tool.
434
- */
435
- declare function createCombineSchemasTool(workDir?: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
436
- orbitals: z.ZodOptional<z.ZodArray<z.ZodObject<{
437
- name: z.ZodString;
438
- description: z.ZodOptional<z.ZodString>;
439
- entity: z.ZodObject<{
440
- name: z.ZodString;
441
- collection: z.ZodOptional<z.ZodString>;
442
- fields: z.ZodArray<z.ZodAny, "many">;
443
- timestamps: z.ZodOptional<z.ZodBoolean>;
444
- }, "strip", z.ZodTypeAny, {
445
- name: string;
446
- fields: any[];
447
- collection?: string | undefined;
448
- timestamps?: boolean | undefined;
449
- }, {
450
- name: string;
451
- fields: any[];
452
- collection?: string | undefined;
453
- timestamps?: boolean | undefined;
454
- }>;
455
- traits: z.ZodArray<z.ZodAny, "many">;
456
- pages: z.ZodArray<z.ZodAny, "many">;
457
- emits: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
- listens: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
459
- }, "strip", z.ZodTypeAny, {
460
- pages: any[];
461
- traits: any[];
462
- name: string;
463
- entity: {
464
- name: string;
465
- fields: any[];
466
- collection?: string | undefined;
467
- timestamps?: boolean | undefined;
468
- };
469
- description?: string | undefined;
470
- emits?: string[] | undefined;
471
- listens?: any[] | undefined;
472
- }, {
473
- pages: any[];
474
- traits: any[];
475
- name: string;
476
- entity: {
477
- name: string;
478
- fields: any[];
479
- collection?: string | undefined;
480
- timestamps?: boolean | undefined;
481
- };
482
- description?: string | undefined;
483
- emits?: string[] | undefined;
484
- listens?: any[] | undefined;
485
- }>, "many">>;
486
- name: z.ZodOptional<z.ZodString>;
487
- description: z.ZodOptional<z.ZodString>;
488
- version: z.ZodOptional<z.ZodString>;
489
- theme: z.ZodOptional<z.ZodString>;
490
- defaultRoute: z.ZodOptional<z.ZodString>;
491
- validate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
492
- }, "strip", z.ZodTypeAny, {
493
- validate: boolean;
494
- version?: string | undefined;
495
- name?: string | undefined;
496
- description?: string | undefined;
497
- theme?: string | undefined;
498
- orbitals?: {
499
- pages: any[];
500
- traits: any[];
501
- name: string;
502
- entity: {
503
- name: string;
504
- fields: any[];
505
- collection?: string | undefined;
506
- timestamps?: boolean | undefined;
507
- };
508
- description?: string | undefined;
509
- emits?: string[] | undefined;
510
- listens?: any[] | undefined;
511
- }[] | undefined;
512
- defaultRoute?: string | undefined;
513
- }, {
514
- version?: string | undefined;
515
- name?: string | undefined;
516
- description?: string | undefined;
517
- validate?: boolean | undefined;
518
- theme?: string | undefined;
519
- orbitals?: {
520
- pages: any[];
521
- traits: any[];
522
- name: string;
523
- entity: {
524
- name: string;
525
- fields: any[];
526
- collection?: string | undefined;
527
- timestamps?: boolean | undefined;
528
- };
529
- description?: string | undefined;
530
- emits?: string[] | undefined;
531
- listens?: any[] | undefined;
532
- }[] | undefined;
533
- defaultRoute?: string | undefined;
534
- }>, {
535
- validate: boolean;
536
- version?: string | undefined;
537
- name?: string | undefined;
538
- description?: string | undefined;
539
- theme?: string | undefined;
540
- orbitals?: {
541
- pages: any[];
542
- traits: any[];
543
- name: string;
544
- entity: {
545
- name: string;
546
- fields: any[];
547
- collection?: string | undefined;
548
- timestamps?: boolean | undefined;
549
- };
550
- description?: string | undefined;
551
- emits?: string[] | undefined;
552
- listens?: any[] | undefined;
553
- }[] | undefined;
554
- defaultRoute?: string | undefined;
555
- }, {
556
- version?: string | undefined;
557
- name?: string | undefined;
558
- description?: string | undefined;
559
- validate?: boolean | undefined;
560
- theme?: string | undefined;
561
- orbitals?: {
562
- pages: any[];
563
- traits: any[];
564
- name: string;
565
- entity: {
566
- name: string;
567
- fields: any[];
568
- collection?: string | undefined;
569
- timestamps?: boolean | undefined;
570
- };
571
- description?: string | undefined;
572
- emits?: string[] | undefined;
573
- listens?: any[] | undefined;
574
- }[] | undefined;
575
- defaultRoute?: string | undefined;
576
- }, string, "construct_combined_schema">;
577
-
578
- declare function createQuerySchemaStructureTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
579
- file: z.ZodString;
580
- }, "strip", z.ZodTypeAny, {
581
- file: string;
582
- }, {
583
- file: string;
584
- }>, {
585
- file: string;
586
- }, {
587
- file: string;
588
- }, string, "query_schema_structure">;
589
- declare function createExtractChunkTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
590
- file: z.ZodString;
591
- type: z.ZodEnum<["orbital", "trait", "inline-trait"]>;
592
- name: z.ZodString;
593
- parentOrbital: z.ZodOptional<z.ZodString>;
594
- includeTraits: z.ZodDefault<z.ZodBoolean>;
595
- }, "strip", z.ZodTypeAny, {
596
- type: "orbital" | "trait" | "inline-trait";
597
- name: string;
598
- file: string;
599
- includeTraits: boolean;
600
- parentOrbital?: string | undefined;
601
- }, {
602
- type: "orbital" | "trait" | "inline-trait";
603
- name: string;
604
- file: string;
605
- parentOrbital?: string | undefined;
606
- includeTraits?: boolean | undefined;
607
- }>, {
608
- type: "orbital" | "trait" | "inline-trait";
609
- name: string;
610
- file: string;
611
- includeTraits: boolean;
612
- parentOrbital?: string | undefined;
613
- }, {
614
- type: "orbital" | "trait" | "inline-trait";
615
- name: string;
616
- file: string;
617
- parentOrbital?: string | undefined;
618
- includeTraits?: boolean | undefined;
619
- }, string, "extract_chunk">;
620
- declare function createApplyChunkTool(workDir: string): _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
621
- chunkId: z.ZodString;
622
- }, "strip", z.ZodTypeAny, {
623
- chunkId: string;
624
- }, {
625
- chunkId: string;
626
- }>, {
627
- chunkId: string;
628
- }, {
629
- chunkId: string;
630
- }, string, "apply_chunk">;
631
- declare function createSchemaChunkingTools(workDir: string): {
632
- querySchemaStructure: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
633
- file: z.ZodString;
634
- }, "strip", z.ZodTypeAny, {
635
- file: string;
636
- }, {
637
- file: string;
638
- }>, {
639
- file: string;
640
- }, {
641
- file: string;
642
- }, string, "query_schema_structure">;
643
- extractChunk: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
644
- file: z.ZodString;
645
- type: z.ZodEnum<["orbital", "trait", "inline-trait"]>;
646
- name: z.ZodString;
647
- parentOrbital: z.ZodOptional<z.ZodString>;
648
- includeTraits: z.ZodDefault<z.ZodBoolean>;
649
- }, "strip", z.ZodTypeAny, {
650
- type: "orbital" | "trait" | "inline-trait";
651
- name: string;
652
- file: string;
653
- includeTraits: boolean;
654
- parentOrbital?: string | undefined;
655
- }, {
656
- type: "orbital" | "trait" | "inline-trait";
657
- name: string;
658
- file: string;
659
- parentOrbital?: string | undefined;
660
- includeTraits?: boolean | undefined;
661
- }>, {
662
- type: "orbital" | "trait" | "inline-trait";
663
- name: string;
664
- file: string;
665
- includeTraits: boolean;
666
- parentOrbital?: string | undefined;
667
- }, {
668
- type: "orbital" | "trait" | "inline-trait";
669
- name: string;
670
- file: string;
671
- parentOrbital?: string | undefined;
672
- includeTraits?: boolean | undefined;
673
- }, string, "extract_chunk">;
674
- applyChunk: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
675
- chunkId: z.ZodString;
676
- }, "strip", z.ZodTypeAny, {
677
- chunkId: string;
678
- }, {
679
- chunkId: string;
680
- }>, {
681
- chunkId: string;
682
- }, {
683
- chunkId: string;
684
- }, string, "apply_chunk">;
685
- };
686
-
687
- /**
688
- * GitHub tools configuration
689
- */
690
- interface GitHubToolsConfig {
691
- /** GitHub personal access token */
692
- token: string;
693
- /** Repository owner (e.g., 'octocat') */
694
- owner?: string;
695
- /** Repository name (e.g., 'hello-world') */
696
- repo?: string;
697
- /** Working directory for git operations */
698
- workDir: string;
699
- }
700
- /**
701
- * Create GitHub tools for the agent
702
- */
703
- declare function createGitHubTools(config: GitHubToolsConfig): {
704
- github_clone: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
705
- repoUrl: z.ZodString;
706
- branch: z.ZodOptional<z.ZodString>;
707
- depth: z.ZodOptional<z.ZodNumber>;
708
- }, "strip", z.ZodTypeAny, {
709
- repoUrl: string;
710
- branch?: string | undefined;
711
- depth?: number | undefined;
712
- }, {
713
- repoUrl: string;
714
- branch?: string | undefined;
715
- depth?: number | undefined;
716
- }>, {
717
- repoUrl: string;
718
- branch?: string | undefined;
719
- depth?: number | undefined;
720
- }, {
721
- repoUrl: string;
722
- branch?: string | undefined;
723
- depth?: number | undefined;
724
- }, string, "github_clone">;
725
- github_create_branch: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
726
- branchName: z.ZodString;
727
- baseBranch: z.ZodOptional<z.ZodString>;
728
- }, "strip", z.ZodTypeAny, {
729
- branchName: string;
730
- baseBranch?: string | undefined;
731
- }, {
732
- branchName: string;
733
- baseBranch?: string | undefined;
734
- }>, {
735
- branchName: string;
736
- baseBranch?: string | undefined;
737
- }, {
738
- branchName: string;
739
- baseBranch?: string | undefined;
740
- }, string, "github_create_branch">;
741
- github_commit: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
742
- message: z.ZodString;
743
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
744
- }, "strip", z.ZodTypeAny, {
745
- message: string;
746
- files?: string[] | undefined;
747
- }, {
748
- message: string;
749
- files?: string[] | undefined;
750
- }>, {
751
- message: string;
752
- files?: string[] | undefined;
753
- }, {
754
- message: string;
755
- files?: string[] | undefined;
756
- }, string, "github_commit">;
757
- github_push: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
758
- branchName: z.ZodString;
759
- }, "strip", z.ZodTypeAny, {
760
- branchName: string;
761
- }, {
762
- branchName: string;
763
- }>, {
764
- branchName: string;
765
- }, {
766
- branchName: string;
767
- }, string, "github_push">;
768
- github_create_pr: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
769
- title: z.ZodString;
770
- body: z.ZodString;
771
- baseBranch: z.ZodString;
772
- headBranch: z.ZodString;
773
- draft: z.ZodOptional<z.ZodBoolean>;
774
- }, "strip", z.ZodTypeAny, {
775
- baseBranch: string;
776
- title: string;
777
- body: string;
778
- headBranch: string;
779
- draft?: boolean | undefined;
780
- }, {
781
- baseBranch: string;
782
- title: string;
783
- body: string;
784
- headBranch: string;
785
- draft?: boolean | undefined;
786
- }>, {
787
- baseBranch: string;
788
- title: string;
789
- body: string;
790
- headBranch: string;
791
- draft?: boolean | undefined;
792
- }, {
793
- baseBranch: string;
794
- title: string;
795
- body: string;
796
- headBranch: string;
797
- draft?: boolean | undefined;
798
- }, string, "github_create_pr">;
799
- github_list_issues: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
800
- state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
801
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
802
- limit: z.ZodOptional<z.ZodNumber>;
803
- }, "strip", z.ZodTypeAny, {
804
- state?: "open" | "closed" | "all" | undefined;
805
- labels?: string[] | undefined;
806
- limit?: number | undefined;
807
- }, {
808
- state?: "open" | "closed" | "all" | undefined;
809
- labels?: string[] | undefined;
810
- limit?: number | undefined;
811
- }>, {
812
- state?: "open" | "closed" | "all" | undefined;
813
- labels?: string[] | undefined;
814
- limit?: number | undefined;
815
- }, {
816
- state?: "open" | "closed" | "all" | undefined;
817
- labels?: string[] | undefined;
818
- limit?: number | undefined;
819
- }, string, "github_list_issues">;
820
- github_get_issue: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
821
- issueNumber: z.ZodNumber;
822
- }, "strip", z.ZodTypeAny, {
823
- issueNumber: number;
824
- }, {
825
- issueNumber: number;
826
- }>, {
827
- issueNumber: number;
828
- }, {
829
- issueNumber: number;
830
- }, string, "github_get_issue">;
831
- github_get_pr_comments: _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
832
- prNumber: z.ZodNumber;
833
- }, "strip", z.ZodTypeAny, {
834
- prNumber: number;
835
- }, {
836
- prNumber: number;
837
- }>, {
838
- prNumber: number;
839
- }, {
840
- prNumber: number;
841
- }, string, "github_get_pr_comments">;
842
- };
843
- /**
844
- * Create GitHub tools as array (for easy spreading into agent tools)
845
- */
846
- declare function createGitHubToolsArray(config: GitHubToolsConfig): (_langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
847
- repoUrl: z.ZodString;
848
- branch: z.ZodOptional<z.ZodString>;
849
- depth: z.ZodOptional<z.ZodNumber>;
850
- }, "strip", z.ZodTypeAny, {
851
- repoUrl: string;
852
- branch?: string | undefined;
853
- depth?: number | undefined;
854
- }, {
855
- repoUrl: string;
856
- branch?: string | undefined;
857
- depth?: number | undefined;
858
- }>, {
859
- repoUrl: string;
860
- branch?: string | undefined;
861
- depth?: number | undefined;
862
- }, {
863
- repoUrl: string;
864
- branch?: string | undefined;
865
- depth?: number | undefined;
866
- }, string, "github_clone"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
867
- branchName: z.ZodString;
868
- baseBranch: z.ZodOptional<z.ZodString>;
869
- }, "strip", z.ZodTypeAny, {
870
- branchName: string;
871
- baseBranch?: string | undefined;
872
- }, {
873
- branchName: string;
874
- baseBranch?: string | undefined;
875
- }>, {
876
- branchName: string;
877
- baseBranch?: string | undefined;
878
- }, {
879
- branchName: string;
880
- baseBranch?: string | undefined;
881
- }, string, "github_create_branch"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
882
- message: z.ZodString;
883
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
884
- }, "strip", z.ZodTypeAny, {
885
- message: string;
886
- files?: string[] | undefined;
887
- }, {
888
- message: string;
889
- files?: string[] | undefined;
890
- }>, {
891
- message: string;
892
- files?: string[] | undefined;
893
- }, {
894
- message: string;
895
- files?: string[] | undefined;
896
- }, string, "github_commit"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
897
- branchName: z.ZodString;
898
- }, "strip", z.ZodTypeAny, {
899
- branchName: string;
900
- }, {
901
- branchName: string;
902
- }>, {
903
- branchName: string;
904
- }, {
905
- branchName: string;
906
- }, string, "github_push"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
907
- title: z.ZodString;
908
- body: z.ZodString;
909
- baseBranch: z.ZodString;
910
- headBranch: z.ZodString;
911
- draft: z.ZodOptional<z.ZodBoolean>;
912
- }, "strip", z.ZodTypeAny, {
913
- baseBranch: string;
914
- title: string;
915
- body: string;
916
- headBranch: string;
917
- draft?: boolean | undefined;
918
- }, {
919
- baseBranch: string;
920
- title: string;
921
- body: string;
922
- headBranch: string;
923
- draft?: boolean | undefined;
924
- }>, {
925
- baseBranch: string;
926
- title: string;
927
- body: string;
928
- headBranch: string;
929
- draft?: boolean | undefined;
930
- }, {
931
- baseBranch: string;
932
- title: string;
933
- body: string;
934
- headBranch: string;
935
- draft?: boolean | undefined;
936
- }, string, "github_create_pr"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
937
- state: z.ZodOptional<z.ZodEnum<["open", "closed", "all"]>>;
938
- labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
939
- limit: z.ZodOptional<z.ZodNumber>;
940
- }, "strip", z.ZodTypeAny, {
941
- state?: "open" | "closed" | "all" | undefined;
942
- labels?: string[] | undefined;
943
- limit?: number | undefined;
944
- }, {
945
- state?: "open" | "closed" | "all" | undefined;
946
- labels?: string[] | undefined;
947
- limit?: number | undefined;
948
- }>, {
949
- state?: "open" | "closed" | "all" | undefined;
950
- labels?: string[] | undefined;
951
- limit?: number | undefined;
952
- }, {
953
- state?: "open" | "closed" | "all" | undefined;
954
- labels?: string[] | undefined;
955
- limit?: number | undefined;
956
- }, string, "github_list_issues"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
957
- issueNumber: z.ZodNumber;
958
- }, "strip", z.ZodTypeAny, {
959
- issueNumber: number;
960
- }, {
961
- issueNumber: number;
962
- }>, {
963
- issueNumber: number;
964
- }, {
965
- issueNumber: number;
966
- }, string, "github_get_issue"> | _langchain_core_tools.DynamicStructuredTool<z.ZodObject<{
967
- prNumber: z.ZodNumber;
968
- }, "strip", z.ZodTypeAny, {
969
- prNumber: number;
970
- }, {
971
- prNumber: number;
972
- }>, {
973
- prNumber: number;
974
- }, {
975
- prNumber: number;
976
- }, string, "github_get_pr_comments">)[];
977
-
978
- /**
979
- * Create all agent tools for a workspace.
980
- *
981
- * All dependencies are now internal to @almadar/agent - no dependency injection needed.
982
- *
983
- * @param workDir - Workspace directory
984
- * @returns All tools ready for use
985
- */
986
- declare function createAgentTools(workDir: string): {
987
- execute: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
988
- command: zod.ZodString;
989
- timeout: zod.ZodOptional<zod.ZodNumber>;
990
- }, "strip", zod.ZodTypeAny, {
991
- command: string;
992
- timeout?: number | undefined;
993
- }, {
994
- command: string;
995
- timeout?: number | undefined;
996
- }>, {
997
- command: string;
998
- timeout?: number | undefined;
999
- }, {
1000
- command: string;
1001
- timeout?: number | undefined;
1002
- }, string, "execute">;
1003
- validateSchema: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>, {}, {}, string, "validate_schema">;
1004
- generateSchema: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1005
- userRequest: zod.ZodString;
1006
- suggestedTraits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1007
- suggestedEntities: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1008
- suggestedPages: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1009
- suggestedPatterns: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1010
- additionalInstructions: zod.ZodOptional<zod.ZodString>;
1011
- existingSchema: zod.ZodOptional<zod.ZodString>;
1012
- }, "strip", zod.ZodTypeAny, {
1013
- userRequest: string;
1014
- suggestedTraits?: string[] | undefined;
1015
- suggestedEntities?: string[] | undefined;
1016
- suggestedPages?: string[] | undefined;
1017
- suggestedPatterns?: string[] | undefined;
1018
- additionalInstructions?: string | undefined;
1019
- existingSchema?: string | undefined;
1020
- }, {
1021
- userRequest: string;
1022
- suggestedTraits?: string[] | undefined;
1023
- suggestedEntities?: string[] | undefined;
1024
- suggestedPages?: string[] | undefined;
1025
- suggestedPatterns?: string[] | undefined;
1026
- additionalInstructions?: string | undefined;
1027
- existingSchema?: string | undefined;
1028
- }>, {
1029
- userRequest: string;
1030
- suggestedTraits?: string[] | undefined;
1031
- suggestedEntities?: string[] | undefined;
1032
- suggestedPages?: string[] | undefined;
1033
- suggestedPatterns?: string[] | undefined;
1034
- additionalInstructions?: string | undefined;
1035
- existingSchema?: string | undefined;
1036
- }, {
1037
- userRequest: string;
1038
- suggestedTraits?: string[] | undefined;
1039
- suggestedEntities?: string[] | undefined;
1040
- suggestedPages?: string[] | undefined;
1041
- suggestedPatterns?: string[] | undefined;
1042
- additionalInstructions?: string | undefined;
1043
- existingSchema?: string | undefined;
1044
- }, string, "generate_schema">;
1045
- finishTask: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1046
- summary: zod.ZodString;
1047
- schemaPath: zod.ZodOptional<zod.ZodString>;
1048
- }, "strip", zod.ZodTypeAny, {
1049
- summary: string;
1050
- schemaPath?: string | undefined;
1051
- }, {
1052
- summary: string;
1053
- schemaPath?: string | undefined;
1054
- }>, {
1055
- summary: string;
1056
- schemaPath?: string | undefined;
1057
- }, {
1058
- summary: string;
1059
- schemaPath?: string | undefined;
1060
- }, {
1061
- success: boolean;
1062
- status: string;
1063
- message: string;
1064
- summary: string;
1065
- autoCombined: boolean;
1066
- source: "domain" | "orbitals" | undefined;
1067
- stats: {
1068
- totalOrbitals: number;
1069
- totalEntities: number;
1070
- totalPages: number;
1071
- totalTraits: number;
1072
- } | undefined;
1073
- validation: {
1074
- valid: boolean;
1075
- errorCount: number;
1076
- warningCount: number;
1077
- } | undefined;
1078
- schemaPath: string | undefined;
1079
- nextAction: string;
1080
- }, "finish_task">;
1081
- combineSchemas: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1082
- orbitals: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1083
- name: zod.ZodString;
1084
- description: zod.ZodOptional<zod.ZodString>;
1085
- entity: zod.ZodObject<{
1086
- name: zod.ZodString;
1087
- collection: zod.ZodOptional<zod.ZodString>;
1088
- fields: zod.ZodArray<zod.ZodAny, "many">;
1089
- timestamps: zod.ZodOptional<zod.ZodBoolean>;
1090
- }, "strip", zod.ZodTypeAny, {
1091
- name: string;
1092
- fields: any[];
1093
- collection?: string | undefined;
1094
- timestamps?: boolean | undefined;
1095
- }, {
1096
- name: string;
1097
- fields: any[];
1098
- collection?: string | undefined;
1099
- timestamps?: boolean | undefined;
1100
- }>;
1101
- traits: zod.ZodArray<zod.ZodAny, "many">;
1102
- pages: zod.ZodArray<zod.ZodAny, "many">;
1103
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1104
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodAny, "many">>;
1105
- }, "strip", zod.ZodTypeAny, {
1106
- pages: any[];
1107
- traits: any[];
1108
- name: string;
1109
- entity: {
1110
- name: string;
1111
- fields: any[];
1112
- collection?: string | undefined;
1113
- timestamps?: boolean | undefined;
1114
- };
1115
- description?: string | undefined;
1116
- emits?: string[] | undefined;
1117
- listens?: any[] | undefined;
1118
- }, {
1119
- pages: any[];
1120
- traits: any[];
1121
- name: string;
1122
- entity: {
1123
- name: string;
1124
- fields: any[];
1125
- collection?: string | undefined;
1126
- timestamps?: boolean | undefined;
1127
- };
1128
- description?: string | undefined;
1129
- emits?: string[] | undefined;
1130
- listens?: any[] | undefined;
1131
- }>, "many">>;
1132
- name: zod.ZodOptional<zod.ZodString>;
1133
- description: zod.ZodOptional<zod.ZodString>;
1134
- version: zod.ZodOptional<zod.ZodString>;
1135
- theme: zod.ZodOptional<zod.ZodString>;
1136
- defaultRoute: zod.ZodOptional<zod.ZodString>;
1137
- validate: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
1138
- }, "strip", zod.ZodTypeAny, {
1139
- validate: boolean;
1140
- version?: string | undefined;
1141
- name?: string | undefined;
1142
- description?: string | undefined;
1143
- theme?: string | undefined;
1144
- orbitals?: {
1145
- pages: any[];
1146
- traits: any[];
1147
- name: string;
1148
- entity: {
1149
- name: string;
1150
- fields: any[];
1151
- collection?: string | undefined;
1152
- timestamps?: boolean | undefined;
1153
- };
1154
- description?: string | undefined;
1155
- emits?: string[] | undefined;
1156
- listens?: any[] | undefined;
1157
- }[] | undefined;
1158
- defaultRoute?: string | undefined;
1159
- }, {
1160
- version?: string | undefined;
1161
- name?: string | undefined;
1162
- description?: string | undefined;
1163
- validate?: boolean | undefined;
1164
- theme?: string | undefined;
1165
- orbitals?: {
1166
- pages: any[];
1167
- traits: any[];
1168
- name: string;
1169
- entity: {
1170
- name: string;
1171
- fields: any[];
1172
- collection?: string | undefined;
1173
- timestamps?: boolean | undefined;
1174
- };
1175
- description?: string | undefined;
1176
- emits?: string[] | undefined;
1177
- listens?: any[] | undefined;
1178
- }[] | undefined;
1179
- defaultRoute?: string | undefined;
1180
- }>, {
1181
- validate: boolean;
1182
- version?: string | undefined;
1183
- name?: string | undefined;
1184
- description?: string | undefined;
1185
- theme?: string | undefined;
1186
- orbitals?: {
1187
- pages: any[];
1188
- traits: any[];
1189
- name: string;
1190
- entity: {
1191
- name: string;
1192
- fields: any[];
1193
- collection?: string | undefined;
1194
- timestamps?: boolean | undefined;
1195
- };
1196
- description?: string | undefined;
1197
- emits?: string[] | undefined;
1198
- listens?: any[] | undefined;
1199
- }[] | undefined;
1200
- defaultRoute?: string | undefined;
1201
- }, {
1202
- version?: string | undefined;
1203
- name?: string | undefined;
1204
- description?: string | undefined;
1205
- validate?: boolean | undefined;
1206
- theme?: string | undefined;
1207
- orbitals?: {
1208
- pages: any[];
1209
- traits: any[];
1210
- name: string;
1211
- entity: {
1212
- name: string;
1213
- fields: any[];
1214
- collection?: string | undefined;
1215
- timestamps?: boolean | undefined;
1216
- };
1217
- description?: string | undefined;
1218
- emits?: string[] | undefined;
1219
- listens?: any[] | undefined;
1220
- }[] | undefined;
1221
- defaultRoute?: string | undefined;
1222
- }, string, "construct_combined_schema">;
1223
- orbitalSubagent: {
1224
- tool: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1225
- orbital: zod.ZodObject<{
1226
- name: zod.ZodString;
1227
- entity: zod.ZodObject<{
1228
- name: zod.ZodString;
1229
- persistence: zod.ZodEnum<["persistent", "runtime", "singleton", "instance"]>;
1230
- fields: zod.ZodArray<zod.ZodObject<{
1231
- name: zod.ZodString;
1232
- type: zod.ZodString;
1233
- required: zod.ZodOptional<zod.ZodBoolean>;
1234
- }, "strip", zod.ZodTypeAny, {
1235
- type: string;
1236
- name: string;
1237
- required?: boolean | undefined;
1238
- }, {
1239
- type: string;
1240
- name: string;
1241
- required?: boolean | undefined;
1242
- }>, "many">;
1243
- }, "strip", zod.ZodTypeAny, {
1244
- name: string;
1245
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1246
- fields: {
1247
- type: string;
1248
- name: string;
1249
- required?: boolean | undefined;
1250
- }[];
1251
- }, {
1252
- name: string;
1253
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1254
- fields: {
1255
- type: string;
1256
- name: string;
1257
- required?: boolean | undefined;
1258
- }[];
1259
- }>;
1260
- traits: zod.ZodArray<zod.ZodString, "many">;
1261
- patterns: zod.ZodArray<zod.ZodString, "many">;
1262
- pages: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1263
- name: zod.ZodString;
1264
- path: zod.ZodString;
1265
- viewType: zod.ZodString;
1266
- }, "strip", zod.ZodTypeAny, {
1267
- path: string;
1268
- name: string;
1269
- viewType: string;
1270
- }, {
1271
- path: string;
1272
- name: string;
1273
- viewType: string;
1274
- }>, "many">>;
1275
- domainContext: zod.ZodOptional<zod.ZodObject<{
1276
- request: zod.ZodString;
1277
- requestFragment: zod.ZodOptional<zod.ZodString>;
1278
- category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
1279
- vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1280
- }, "strip", zod.ZodTypeAny, {
1281
- request: string;
1282
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1283
- requestFragment?: string | undefined;
1284
- vocabulary?: Record<string, string> | undefined;
1285
- }, {
1286
- request: string;
1287
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1288
- requestFragment?: string | undefined;
1289
- vocabulary?: Record<string, string> | undefined;
1290
- }>>;
1291
- design: zod.ZodOptional<zod.ZodObject<{
1292
- style: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
1293
- uxHints: zod.ZodOptional<zod.ZodObject<{
1294
- flowPattern: zod.ZodOptional<zod.ZodString>;
1295
- listPattern: zod.ZodOptional<zod.ZodString>;
1296
- formPattern: zod.ZodOptional<zod.ZodString>;
1297
- detailPattern: zod.ZodOptional<zod.ZodString>;
1298
- }, "strip", zod.ZodTypeAny, {
1299
- flowPattern?: string | undefined;
1300
- listPattern?: string | undefined;
1301
- formPattern?: string | undefined;
1302
- detailPattern?: string | undefined;
1303
- }, {
1304
- flowPattern?: string | undefined;
1305
- listPattern?: string | undefined;
1306
- formPattern?: string | undefined;
1307
- detailPattern?: string | undefined;
1308
- }>>;
1309
- }, "strip", zod.ZodTypeAny, {
1310
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1311
- uxHints?: {
1312
- flowPattern?: string | undefined;
1313
- listPattern?: string | undefined;
1314
- formPattern?: string | undefined;
1315
- detailPattern?: string | undefined;
1316
- } | undefined;
1317
- }, {
1318
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1319
- uxHints?: {
1320
- flowPattern?: string | undefined;
1321
- listPattern?: string | undefined;
1322
- formPattern?: string | undefined;
1323
- detailPattern?: string | undefined;
1324
- } | undefined;
1325
- }>>;
1326
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1327
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1328
- event: zod.ZodString;
1329
- triggers: zod.ZodString;
1330
- }, "strip", zod.ZodTypeAny, {
1331
- event: string;
1332
- triggers: string;
1333
- }, {
1334
- event: string;
1335
- triggers: string;
1336
- }>, "many">>;
1337
- relations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1338
- entity: zod.ZodString;
1339
- alias: zod.ZodOptional<zod.ZodString>;
1340
- cardinality: zod.ZodEnum<["one", "many"]>;
1341
- }, "strip", zod.ZodTypeAny, {
1342
- entity: string;
1343
- cardinality: "many" | "one";
1344
- alias?: string | undefined;
1345
- }, {
1346
- entity: string;
1347
- cardinality: "many" | "one";
1348
- alias?: string | undefined;
1349
- }>, "many">>;
1350
- }, "strip", zod.ZodTypeAny, {
1351
- traits: string[];
1352
- name: string;
1353
- entity: {
1354
- name: string;
1355
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1356
- fields: {
1357
- type: string;
1358
- name: string;
1359
- required?: boolean | undefined;
1360
- }[];
1361
- };
1362
- patterns: string[];
1363
- pages?: {
1364
- path: string;
1365
- name: string;
1366
- viewType: string;
1367
- }[] | undefined;
1368
- relations?: {
1369
- entity: string;
1370
- cardinality: "many" | "one";
1371
- alias?: string | undefined;
1372
- }[] | undefined;
1373
- domainContext?: {
1374
- request: string;
1375
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1376
- requestFragment?: string | undefined;
1377
- vocabulary?: Record<string, string> | undefined;
1378
- } | undefined;
1379
- design?: {
1380
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1381
- uxHints?: {
1382
- flowPattern?: string | undefined;
1383
- listPattern?: string | undefined;
1384
- formPattern?: string | undefined;
1385
- detailPattern?: string | undefined;
1386
- } | undefined;
1387
- } | undefined;
1388
- emits?: string[] | undefined;
1389
- listens?: {
1390
- event: string;
1391
- triggers: string;
1392
- }[] | undefined;
1393
- }, {
1394
- traits: string[];
1395
- name: string;
1396
- entity: {
1397
- name: string;
1398
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1399
- fields: {
1400
- type: string;
1401
- name: string;
1402
- required?: boolean | undefined;
1403
- }[];
1404
- };
1405
- patterns: string[];
1406
- pages?: {
1407
- path: string;
1408
- name: string;
1409
- viewType: string;
1410
- }[] | undefined;
1411
- relations?: {
1412
- entity: string;
1413
- cardinality: "many" | "one";
1414
- alias?: string | undefined;
1415
- }[] | undefined;
1416
- domainContext?: {
1417
- request: string;
1418
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1419
- requestFragment?: string | undefined;
1420
- vocabulary?: Record<string, string> | undefined;
1421
- } | undefined;
1422
- design?: {
1423
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1424
- uxHints?: {
1425
- flowPattern?: string | undefined;
1426
- listPattern?: string | undefined;
1427
- formPattern?: string | undefined;
1428
- detailPattern?: string | undefined;
1429
- } | undefined;
1430
- } | undefined;
1431
- emits?: string[] | undefined;
1432
- listens?: {
1433
- event: string;
1434
- triggers: string;
1435
- }[] | undefined;
1436
- }>;
1437
- orbitalIndex: zod.ZodOptional<zod.ZodNumber>;
1438
- totalOrbitals: zod.ZodOptional<zod.ZodNumber>;
1439
- }, "strip", zod.ZodTypeAny, {
1440
- orbital: {
1441
- traits: string[];
1442
- name: string;
1443
- entity: {
1444
- name: string;
1445
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1446
- fields: {
1447
- type: string;
1448
- name: string;
1449
- required?: boolean | undefined;
1450
- }[];
1451
- };
1452
- patterns: string[];
1453
- pages?: {
1454
- path: string;
1455
- name: string;
1456
- viewType: string;
1457
- }[] | undefined;
1458
- relations?: {
1459
- entity: string;
1460
- cardinality: "many" | "one";
1461
- alias?: string | undefined;
1462
- }[] | undefined;
1463
- domainContext?: {
1464
- request: string;
1465
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1466
- requestFragment?: string | undefined;
1467
- vocabulary?: Record<string, string> | undefined;
1468
- } | undefined;
1469
- design?: {
1470
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1471
- uxHints?: {
1472
- flowPattern?: string | undefined;
1473
- listPattern?: string | undefined;
1474
- formPattern?: string | undefined;
1475
- detailPattern?: string | undefined;
1476
- } | undefined;
1477
- } | undefined;
1478
- emits?: string[] | undefined;
1479
- listens?: {
1480
- event: string;
1481
- triggers: string;
1482
- }[] | undefined;
1483
- };
1484
- orbitalIndex?: number | undefined;
1485
- totalOrbitals?: number | undefined;
1486
- }, {
1487
- orbital: {
1488
- traits: string[];
1489
- name: string;
1490
- entity: {
1491
- name: string;
1492
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1493
- fields: {
1494
- type: string;
1495
- name: string;
1496
- required?: boolean | undefined;
1497
- }[];
1498
- };
1499
- patterns: string[];
1500
- pages?: {
1501
- path: string;
1502
- name: string;
1503
- viewType: string;
1504
- }[] | undefined;
1505
- relations?: {
1506
- entity: string;
1507
- cardinality: "many" | "one";
1508
- alias?: string | undefined;
1509
- }[] | undefined;
1510
- domainContext?: {
1511
- request: string;
1512
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1513
- requestFragment?: string | undefined;
1514
- vocabulary?: Record<string, string> | undefined;
1515
- } | undefined;
1516
- design?: {
1517
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1518
- uxHints?: {
1519
- flowPattern?: string | undefined;
1520
- listPattern?: string | undefined;
1521
- formPattern?: string | undefined;
1522
- detailPattern?: string | undefined;
1523
- } | undefined;
1524
- } | undefined;
1525
- emits?: string[] | undefined;
1526
- listens?: {
1527
- event: string;
1528
- triggers: string;
1529
- }[] | undefined;
1530
- };
1531
- orbitalIndex?: number | undefined;
1532
- totalOrbitals?: number | undefined;
1533
- }>, {
1534
- orbital: {
1535
- traits: string[];
1536
- name: string;
1537
- entity: {
1538
- name: string;
1539
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1540
- fields: {
1541
- type: string;
1542
- name: string;
1543
- required?: boolean | undefined;
1544
- }[];
1545
- };
1546
- patterns: string[];
1547
- pages?: {
1548
- path: string;
1549
- name: string;
1550
- viewType: string;
1551
- }[] | undefined;
1552
- relations?: {
1553
- entity: string;
1554
- cardinality: "many" | "one";
1555
- alias?: string | undefined;
1556
- }[] | undefined;
1557
- domainContext?: {
1558
- request: string;
1559
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1560
- requestFragment?: string | undefined;
1561
- vocabulary?: Record<string, string> | undefined;
1562
- } | undefined;
1563
- design?: {
1564
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1565
- uxHints?: {
1566
- flowPattern?: string | undefined;
1567
- listPattern?: string | undefined;
1568
- formPattern?: string | undefined;
1569
- detailPattern?: string | undefined;
1570
- } | undefined;
1571
- } | undefined;
1572
- emits?: string[] | undefined;
1573
- listens?: {
1574
- event: string;
1575
- triggers: string;
1576
- }[] | undefined;
1577
- };
1578
- orbitalIndex?: number | undefined;
1579
- totalOrbitals?: number | undefined;
1580
- }, {
1581
- orbital: {
1582
- traits: string[];
1583
- name: string;
1584
- entity: {
1585
- name: string;
1586
- persistence: "persistent" | "runtime" | "singleton" | "instance";
1587
- fields: {
1588
- type: string;
1589
- name: string;
1590
- required?: boolean | undefined;
1591
- }[];
1592
- };
1593
- patterns: string[];
1594
- pages?: {
1595
- path: string;
1596
- name: string;
1597
- viewType: string;
1598
- }[] | undefined;
1599
- relations?: {
1600
- entity: string;
1601
- cardinality: "many" | "one";
1602
- alias?: string | undefined;
1603
- }[] | undefined;
1604
- domainContext?: {
1605
- request: string;
1606
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1607
- requestFragment?: string | undefined;
1608
- vocabulary?: Record<string, string> | undefined;
1609
- } | undefined;
1610
- design?: {
1611
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1612
- uxHints?: {
1613
- flowPattern?: string | undefined;
1614
- listPattern?: string | undefined;
1615
- formPattern?: string | undefined;
1616
- detailPattern?: string | undefined;
1617
- } | undefined;
1618
- } | undefined;
1619
- emits?: string[] | undefined;
1620
- listens?: {
1621
- event: string;
1622
- triggers: string;
1623
- }[] | undefined;
1624
- };
1625
- orbitalIndex?: number | undefined;
1626
- totalOrbitals?: number | undefined;
1627
- }, string, "generate_orbital">;
1628
- setEventCallback: (callback: SubagentEventCallback) => void;
1629
- setOrbitalCompleteCallback: (callback: OrbitalCompleteCallback) => void;
1630
- };
1631
- traitSubagent: {
1632
- tool: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1633
- traitSpec: zod.ZodObject<{
1634
- name: zod.ZodString;
1635
- description: zod.ZodString;
1636
- category: zod.ZodOptional<zod.ZodString>;
1637
- states: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1638
- events: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1639
- requiredFields: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1640
- name: zod.ZodString;
1641
- type: zod.ZodString;
1642
- description: zod.ZodOptional<zod.ZodString>;
1643
- }, "strip", zod.ZodTypeAny, {
1644
- type: string;
1645
- name: string;
1646
- description?: string | undefined;
1647
- }, {
1648
- type: string;
1649
- name: string;
1650
- description?: string | undefined;
1651
- }>, "many">>;
1652
- needsTicks: zod.ZodOptional<zod.ZodBoolean>;
1653
- needsEmit: zod.ZodOptional<zod.ZodBoolean>;
1654
- needsListens: zod.ZodOptional<zod.ZodBoolean>;
1655
- }, "strip", zod.ZodTypeAny, {
1656
- name: string;
1657
- description: string;
1658
- states?: string[] | undefined;
1659
- events?: string[] | undefined;
1660
- category?: string | undefined;
1661
- requiredFields?: {
1662
- type: string;
1663
- name: string;
1664
- description?: string | undefined;
1665
- }[] | undefined;
1666
- needsTicks?: boolean | undefined;
1667
- needsEmit?: boolean | undefined;
1668
- needsListens?: boolean | undefined;
1669
- }, {
1670
- name: string;
1671
- description: string;
1672
- states?: string[] | undefined;
1673
- events?: string[] | undefined;
1674
- category?: string | undefined;
1675
- requiredFields?: {
1676
- type: string;
1677
- name: string;
1678
- description?: string | undefined;
1679
- }[] | undefined;
1680
- needsTicks?: boolean | undefined;
1681
- needsEmit?: boolean | undefined;
1682
- needsListens?: boolean | undefined;
1683
- }>;
1684
- traitIndex: zod.ZodOptional<zod.ZodNumber>;
1685
- totalTraits: zod.ZodOptional<zod.ZodNumber>;
1686
- }, "strip", zod.ZodTypeAny, {
1687
- traitSpec: {
1688
- name: string;
1689
- description: string;
1690
- states?: string[] | undefined;
1691
- events?: string[] | undefined;
1692
- category?: string | undefined;
1693
- requiredFields?: {
1694
- type: string;
1695
- name: string;
1696
- description?: string | undefined;
1697
- }[] | undefined;
1698
- needsTicks?: boolean | undefined;
1699
- needsEmit?: boolean | undefined;
1700
- needsListens?: boolean | undefined;
1701
- };
1702
- traitIndex?: number | undefined;
1703
- totalTraits?: number | undefined;
1704
- }, {
1705
- traitSpec: {
1706
- name: string;
1707
- description: string;
1708
- states?: string[] | undefined;
1709
- events?: string[] | undefined;
1710
- category?: string | undefined;
1711
- requiredFields?: {
1712
- type: string;
1713
- name: string;
1714
- description?: string | undefined;
1715
- }[] | undefined;
1716
- needsTicks?: boolean | undefined;
1717
- needsEmit?: boolean | undefined;
1718
- needsListens?: boolean | undefined;
1719
- };
1720
- traitIndex?: number | undefined;
1721
- totalTraits?: number | undefined;
1722
- }>, {
1723
- traitSpec: {
1724
- name: string;
1725
- description: string;
1726
- states?: string[] | undefined;
1727
- events?: string[] | undefined;
1728
- category?: string | undefined;
1729
- requiredFields?: {
1730
- type: string;
1731
- name: string;
1732
- description?: string | undefined;
1733
- }[] | undefined;
1734
- needsTicks?: boolean | undefined;
1735
- needsEmit?: boolean | undefined;
1736
- needsListens?: boolean | undefined;
1737
- };
1738
- traitIndex?: number | undefined;
1739
- totalTraits?: number | undefined;
1740
- }, {
1741
- traitSpec: {
1742
- name: string;
1743
- description: string;
1744
- states?: string[] | undefined;
1745
- events?: string[] | undefined;
1746
- category?: string | undefined;
1747
- requiredFields?: {
1748
- type: string;
1749
- name: string;
1750
- description?: string | undefined;
1751
- }[] | undefined;
1752
- needsTicks?: boolean | undefined;
1753
- needsEmit?: boolean | undefined;
1754
- needsListens?: boolean | undefined;
1755
- };
1756
- traitIndex?: number | undefined;
1757
- totalTraits?: number | undefined;
1758
- }, string, "generate_custom_trait">;
1759
- setEventCallback: (callback: TraitEventCallback) => void;
1760
- setTraitCompleteCallback: (callback: TraitCompleteCallback) => void;
1761
- };
1762
- domainOrbitalTools: {
1763
- generateOrbitalDomain: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
1764
- sessionId: zod.ZodString;
1765
- orbital: zod.ZodObject<{
1766
- name: zod.ZodString;
1767
- entity: zod.ZodObject<{
1768
- name: zod.ZodString;
1769
- persistence: zod.ZodEnum<["persistent", "runtime", "singleton"]>;
1770
- fields: zod.ZodArray<zod.ZodObject<{
1771
- name: zod.ZodString;
1772
- type: zod.ZodString;
1773
- required: zod.ZodOptional<zod.ZodBoolean>;
1774
- default: zod.ZodOptional<zod.ZodAny>;
1775
- }, "strip", zod.ZodTypeAny, {
1776
- type: string;
1777
- name: string;
1778
- default?: any;
1779
- required?: boolean | undefined;
1780
- }, {
1781
- type: string;
1782
- name: string;
1783
- default?: any;
1784
- required?: boolean | undefined;
1785
- }>, "many">;
1786
- relations: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1787
- entity: zod.ZodString;
1788
- alias: zod.ZodOptional<zod.ZodString>;
1789
- type: zod.ZodEnum<["belongs_to", "has_many"]>;
1790
- }, "strip", zod.ZodTypeAny, {
1791
- type: "belongs_to" | "has_many";
1792
- entity: string;
1793
- alias?: string | undefined;
1794
- }, {
1795
- type: "belongs_to" | "has_many";
1796
- entity: string;
1797
- alias?: string | undefined;
1798
- }>, "many">>;
1799
- }, "strip", zod.ZodTypeAny, {
1800
- name: string;
1801
- persistence: "persistent" | "runtime" | "singleton";
1802
- fields: {
1803
- type: string;
1804
- name: string;
1805
- default?: any;
1806
- required?: boolean | undefined;
1807
- }[];
1808
- relations?: {
1809
- type: "belongs_to" | "has_many";
1810
- entity: string;
1811
- alias?: string | undefined;
1812
- }[] | undefined;
1813
- }, {
1814
- name: string;
1815
- persistence: "persistent" | "runtime" | "singleton";
1816
- fields: {
1817
- type: string;
1818
- name: string;
1819
- default?: any;
1820
- required?: boolean | undefined;
1821
- }[];
1822
- relations?: {
1823
- type: "belongs_to" | "has_many";
1824
- entity: string;
1825
- alias?: string | undefined;
1826
- }[] | undefined;
1827
- }>;
1828
- pages: zod.ZodArray<zod.ZodObject<{
1829
- name: zod.ZodString;
1830
- path: zod.ZodString;
1831
- viewType: zod.ZodString;
1832
- isInitial: zod.ZodOptional<zod.ZodBoolean>;
1833
- }, "strip", zod.ZodTypeAny, {
1834
- path: string;
1835
- name: string;
1836
- viewType: string;
1837
- isInitial?: boolean | undefined;
1838
- }, {
1839
- path: string;
1840
- name: string;
1841
- viewType: string;
1842
- isInitial?: boolean | undefined;
1843
- }>, "many">;
1844
- traits: zod.ZodArray<zod.ZodString, "many">;
1845
- patterns: zod.ZodArray<zod.ZodString, "many">;
1846
- domainContext: zod.ZodOptional<zod.ZodObject<{
1847
- request: zod.ZodString;
1848
- requestFragment: zod.ZodOptional<zod.ZodString>;
1849
- category: zod.ZodEnum<["game", "business", "dashboard", "form", "content", "social", "ecommerce", "workflow"]>;
1850
- vocabulary: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1851
- }, "strip", zod.ZodTypeAny, {
1852
- request: string;
1853
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1854
- requestFragment?: string | undefined;
1855
- vocabulary?: Record<string, string> | undefined;
1856
- }, {
1857
- request: string;
1858
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1859
- requestFragment?: string | undefined;
1860
- vocabulary?: Record<string, string> | undefined;
1861
- }>>;
1862
- design: zod.ZodOptional<zod.ZodObject<{
1863
- style: zod.ZodOptional<zod.ZodEnum<["minimal", "modern", "playful", "data-driven", "immersive"]>>;
1864
- uxHints: zod.ZodOptional<zod.ZodObject<{
1865
- flowPattern: zod.ZodOptional<zod.ZodEnum<["hub-spoke", "master-detail", "crud-cycle", "linear", "role-based"]>>;
1866
- listPattern: zod.ZodOptional<zod.ZodEnum<["entity-table", "entity-cards", "entity-list"]>>;
1867
- formPattern: zod.ZodOptional<zod.ZodEnum<["modal", "drawer", "page"]>>;
1868
- detailPattern: zod.ZodOptional<zod.ZodEnum<["drawer", "page", "split"]>>;
1869
- }, "strip", zod.ZodTypeAny, {
1870
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1871
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1872
- formPattern?: "modal" | "drawer" | "page" | undefined;
1873
- detailPattern?: "split" | "drawer" | "page" | undefined;
1874
- }, {
1875
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1876
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1877
- formPattern?: "modal" | "drawer" | "page" | undefined;
1878
- detailPattern?: "split" | "drawer" | "page" | undefined;
1879
- }>>;
1880
- }, "strip", zod.ZodTypeAny, {
1881
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1882
- uxHints?: {
1883
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1884
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1885
- formPattern?: "modal" | "drawer" | "page" | undefined;
1886
- detailPattern?: "split" | "drawer" | "page" | undefined;
1887
- } | undefined;
1888
- }, {
1889
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1890
- uxHints?: {
1891
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1892
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1893
- formPattern?: "modal" | "drawer" | "page" | undefined;
1894
- detailPattern?: "split" | "drawer" | "page" | undefined;
1895
- } | undefined;
1896
- }>>;
1897
- emits: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1898
- listens: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1899
- event: zod.ZodString;
1900
- triggers: zod.ZodString;
1901
- }, "strip", zod.ZodTypeAny, {
1902
- event: string;
1903
- triggers: string;
1904
- }, {
1905
- event: string;
1906
- triggers: string;
1907
- }>, "many">>;
1908
- }, "strip", zod.ZodTypeAny, {
1909
- pages: {
1910
- path: string;
1911
- name: string;
1912
- viewType: string;
1913
- isInitial?: boolean | undefined;
1914
- }[];
1915
- traits: string[];
1916
- name: string;
1917
- entity: {
1918
- name: string;
1919
- persistence: "persistent" | "runtime" | "singleton";
1920
- fields: {
1921
- type: string;
1922
- name: string;
1923
- default?: any;
1924
- required?: boolean | undefined;
1925
- }[];
1926
- relations?: {
1927
- type: "belongs_to" | "has_many";
1928
- entity: string;
1929
- alias?: string | undefined;
1930
- }[] | undefined;
1931
- };
1932
- patterns: string[];
1933
- domainContext?: {
1934
- request: string;
1935
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1936
- requestFragment?: string | undefined;
1937
- vocabulary?: Record<string, string> | undefined;
1938
- } | undefined;
1939
- design?: {
1940
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1941
- uxHints?: {
1942
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1943
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1944
- formPattern?: "modal" | "drawer" | "page" | undefined;
1945
- detailPattern?: "split" | "drawer" | "page" | undefined;
1946
- } | undefined;
1947
- } | undefined;
1948
- emits?: string[] | undefined;
1949
- listens?: {
1950
- event: string;
1951
- triggers: string;
1952
- }[] | undefined;
1953
- }, {
1954
- pages: {
1955
- path: string;
1956
- name: string;
1957
- viewType: string;
1958
- isInitial?: boolean | undefined;
1959
- }[];
1960
- traits: string[];
1961
- name: string;
1962
- entity: {
1963
- name: string;
1964
- persistence: "persistent" | "runtime" | "singleton";
1965
- fields: {
1966
- type: string;
1967
- name: string;
1968
- default?: any;
1969
- required?: boolean | undefined;
1970
- }[];
1971
- relations?: {
1972
- type: "belongs_to" | "has_many";
1973
- entity: string;
1974
- alias?: string | undefined;
1975
- }[] | undefined;
1976
- };
1977
- patterns: string[];
1978
- domainContext?: {
1979
- request: string;
1980
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
1981
- requestFragment?: string | undefined;
1982
- vocabulary?: Record<string, string> | undefined;
1983
- } | undefined;
1984
- design?: {
1985
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
1986
- uxHints?: {
1987
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
1988
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
1989
- formPattern?: "modal" | "drawer" | "page" | undefined;
1990
- detailPattern?: "split" | "drawer" | "page" | undefined;
1991
- } | undefined;
1992
- } | undefined;
1993
- emits?: string[] | undefined;
1994
- listens?: {
1995
- event: string;
1996
- triggers: string;
1997
- }[] | undefined;
1998
- }>;
1999
- orbitalIndex: zod.ZodNumber;
2000
- totalOrbitals: zod.ZodNumber;
2001
- }, "strip", zod.ZodTypeAny, {
2002
- sessionId: string;
2003
- orbital: {
2004
- pages: {
2005
- path: string;
2006
- name: string;
2007
- viewType: string;
2008
- isInitial?: boolean | undefined;
2009
- }[];
2010
- traits: string[];
2011
- name: string;
2012
- entity: {
2013
- name: string;
2014
- persistence: "persistent" | "runtime" | "singleton";
2015
- fields: {
2016
- type: string;
2017
- name: string;
2018
- default?: any;
2019
- required?: boolean | undefined;
2020
- }[];
2021
- relations?: {
2022
- type: "belongs_to" | "has_many";
2023
- entity: string;
2024
- alias?: string | undefined;
2025
- }[] | undefined;
2026
- };
2027
- patterns: string[];
2028
- domainContext?: {
2029
- request: string;
2030
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2031
- requestFragment?: string | undefined;
2032
- vocabulary?: Record<string, string> | undefined;
2033
- } | undefined;
2034
- design?: {
2035
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2036
- uxHints?: {
2037
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2038
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2039
- formPattern?: "modal" | "drawer" | "page" | undefined;
2040
- detailPattern?: "split" | "drawer" | "page" | undefined;
2041
- } | undefined;
2042
- } | undefined;
2043
- emits?: string[] | undefined;
2044
- listens?: {
2045
- event: string;
2046
- triggers: string;
2047
- }[] | undefined;
2048
- };
2049
- orbitalIndex: number;
2050
- totalOrbitals: number;
2051
- }, {
2052
- sessionId: string;
2053
- orbital: {
2054
- pages: {
2055
- path: string;
2056
- name: string;
2057
- viewType: string;
2058
- isInitial?: boolean | undefined;
2059
- }[];
2060
- traits: string[];
2061
- name: string;
2062
- entity: {
2063
- name: string;
2064
- persistence: "persistent" | "runtime" | "singleton";
2065
- fields: {
2066
- type: string;
2067
- name: string;
2068
- default?: any;
2069
- required?: boolean | undefined;
2070
- }[];
2071
- relations?: {
2072
- type: "belongs_to" | "has_many";
2073
- entity: string;
2074
- alias?: string | undefined;
2075
- }[] | undefined;
2076
- };
2077
- patterns: string[];
2078
- domainContext?: {
2079
- request: string;
2080
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2081
- requestFragment?: string | undefined;
2082
- vocabulary?: Record<string, string> | undefined;
2083
- } | undefined;
2084
- design?: {
2085
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2086
- uxHints?: {
2087
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2088
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2089
- formPattern?: "modal" | "drawer" | "page" | undefined;
2090
- detailPattern?: "split" | "drawer" | "page" | undefined;
2091
- } | undefined;
2092
- } | undefined;
2093
- emits?: string[] | undefined;
2094
- listens?: {
2095
- event: string;
2096
- triggers: string;
2097
- }[] | undefined;
2098
- };
2099
- orbitalIndex: number;
2100
- totalOrbitals: number;
2101
- }>, {
2102
- sessionId: string;
2103
- orbital: {
2104
- pages: {
2105
- path: string;
2106
- name: string;
2107
- viewType: string;
2108
- isInitial?: boolean | undefined;
2109
- }[];
2110
- traits: string[];
2111
- name: string;
2112
- entity: {
2113
- name: string;
2114
- persistence: "persistent" | "runtime" | "singleton";
2115
- fields: {
2116
- type: string;
2117
- name: string;
2118
- default?: any;
2119
- required?: boolean | undefined;
2120
- }[];
2121
- relations?: {
2122
- type: "belongs_to" | "has_many";
2123
- entity: string;
2124
- alias?: string | undefined;
2125
- }[] | undefined;
2126
- };
2127
- patterns: string[];
2128
- domainContext?: {
2129
- request: string;
2130
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2131
- requestFragment?: string | undefined;
2132
- vocabulary?: Record<string, string> | undefined;
2133
- } | undefined;
2134
- design?: {
2135
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2136
- uxHints?: {
2137
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2138
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2139
- formPattern?: "modal" | "drawer" | "page" | undefined;
2140
- detailPattern?: "split" | "drawer" | "page" | undefined;
2141
- } | undefined;
2142
- } | undefined;
2143
- emits?: string[] | undefined;
2144
- listens?: {
2145
- event: string;
2146
- triggers: string;
2147
- }[] | undefined;
2148
- };
2149
- orbitalIndex: number;
2150
- totalOrbitals: number;
2151
- }, {
2152
- sessionId: string;
2153
- orbital: {
2154
- pages: {
2155
- path: string;
2156
- name: string;
2157
- viewType: string;
2158
- isInitial?: boolean | undefined;
2159
- }[];
2160
- traits: string[];
2161
- name: string;
2162
- entity: {
2163
- name: string;
2164
- persistence: "persistent" | "runtime" | "singleton";
2165
- fields: {
2166
- type: string;
2167
- name: string;
2168
- default?: any;
2169
- required?: boolean | undefined;
2170
- }[];
2171
- relations?: {
2172
- type: "belongs_to" | "has_many";
2173
- entity: string;
2174
- alias?: string | undefined;
2175
- }[] | undefined;
2176
- };
2177
- patterns: string[];
2178
- domainContext?: {
2179
- request: string;
2180
- category: "game" | "business" | "dashboard" | "form" | "content" | "social" | "ecommerce" | "workflow";
2181
- requestFragment?: string | undefined;
2182
- vocabulary?: Record<string, string> | undefined;
2183
- } | undefined;
2184
- design?: {
2185
- style?: "minimal" | "modern" | "playful" | "data-driven" | "immersive" | undefined;
2186
- uxHints?: {
2187
- flowPattern?: "hub-spoke" | "master-detail" | "crud-cycle" | "linear" | "role-based" | undefined;
2188
- listPattern?: "entity-table" | "entity-cards" | "entity-list" | undefined;
2189
- formPattern?: "modal" | "drawer" | "page" | undefined;
2190
- detailPattern?: "split" | "drawer" | "page" | undefined;
2191
- } | undefined;
2192
- } | undefined;
2193
- emits?: string[] | undefined;
2194
- listens?: {
2195
- event: string;
2196
- triggers: string;
2197
- }[] | undefined;
2198
- };
2199
- orbitalIndex: number;
2200
- totalOrbitals: number;
2201
- }, string, "generate_orbital_domain">;
2202
- constructCombinedDomain: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2203
- appName: zod.ZodString;
2204
- }, "strip", zod.ZodTypeAny, {
2205
- appName: string;
2206
- }, {
2207
- appName: string;
2208
- }>, {
2209
- appName: string;
2210
- }, {
2211
- appName: string;
2212
- }, string, "construct_combined_domain">;
2213
- setEventCallback: (callback: DomainOrbitalEventCallback) => void;
2214
- setCompleteCallback: (callback: DomainOrbitalCompleteCallback) => void;
2215
- };
2216
- schemaChunking: {
2217
- querySchemaStructure: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2218
- file: zod.ZodString;
2219
- }, "strip", zod.ZodTypeAny, {
2220
- file: string;
2221
- }, {
2222
- file: string;
2223
- }>, {
2224
- file: string;
2225
- }, {
2226
- file: string;
2227
- }, string, "query_schema_structure">;
2228
- extractChunk: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2229
- file: zod.ZodString;
2230
- type: zod.ZodEnum<["orbital", "trait", "inline-trait"]>;
2231
- name: zod.ZodString;
2232
- parentOrbital: zod.ZodOptional<zod.ZodString>;
2233
- includeTraits: zod.ZodDefault<zod.ZodBoolean>;
2234
- }, "strip", zod.ZodTypeAny, {
2235
- type: "orbital" | "trait" | "inline-trait";
2236
- name: string;
2237
- file: string;
2238
- includeTraits: boolean;
2239
- parentOrbital?: string | undefined;
2240
- }, {
2241
- type: "orbital" | "trait" | "inline-trait";
2242
- name: string;
2243
- file: string;
2244
- parentOrbital?: string | undefined;
2245
- includeTraits?: boolean | undefined;
2246
- }>, {
2247
- type: "orbital" | "trait" | "inline-trait";
2248
- name: string;
2249
- file: string;
2250
- includeTraits: boolean;
2251
- parentOrbital?: string | undefined;
2252
- }, {
2253
- type: "orbital" | "trait" | "inline-trait";
2254
- name: string;
2255
- file: string;
2256
- parentOrbital?: string | undefined;
2257
- includeTraits?: boolean | undefined;
2258
- }, string, "extract_chunk">;
2259
- applyChunk: _langchain_core_tools.DynamicStructuredTool<zod.ZodObject<{
2260
- chunkId: zod.ZodString;
2261
- }, "strip", zod.ZodTypeAny, {
2262
- chunkId: string;
2263
- }, {
2264
- chunkId: string;
2265
- }>, {
2266
- chunkId: string;
2267
- }, {
2268
- chunkId: string;
2269
- }, string, "apply_chunk">;
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<["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
- };
2379
-
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 };
1
+ export { D as DomainOrbitalCompleteCallback, a as DomainOrbitalEventCallback, b as DomainOrbitalSpec, c as DomainOrbitalToolOptions, O as OrbitalCompleteCallback, d as OrbitalRequirements, e as OrbitalSubagentToolOptions, S as SubagentEventCallback, f as createConstructCombinedDomainTool, g as createDomainOrbitalTools, h as createGenerateOrbitalDomainTool, i as createOrbitalSubagentTool, j as createSubagentEventWrapper } from '../orbital-subagent-CCo-ONJY.js';
2
+ export { B as BatchCompleteCallback, S as BatchSubagentEventCallback, G as GitHubToolsConfig, r as OrbitalBatchSubagentToolOptions, T as TraitCompleteCallback, c as TraitEventCallback, d as TraitSpec, e as TraitSubagentToolOptions, f as createAgentTools, g as createApplyChunkTool, h as createCombineSchemasTool, i as createExecuteTool, j as createExtractChunkTool, k as createFinishTaskTool, l as createGenerateSchemaTool, s as createGitHubTools, t as createGitHubToolsArray, u as createOrbitalBatchSubagentTool, m as createQuerySchemaStructureTool, n as createSchemaChunkingTools, o as createTraitEventWrapper, p as createTraitSubagentTool, q as createValidateSchemaTool, v as validateCommandPaths } from '../index-DFJdTDbo.js';
3
+ import '@langchain/core/tools';
4
+ import 'zod';
5
+ import '@almadar/llm';
6
+ import '../api-types-DVdGNr2M.js';
7
+ import '@almadar/core/types';