@almadar/agent 1.0.0

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