@almadar/agent 1.3.0 → 1.3.2

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